@mindw1n/webnative 3.0.4 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +19 -19
- package/package.json +2 -2
- package/prebuilds/dist/linux +0 -0
- package/template/js/app/api/android.js +4 -0
- package/template/js/app/api/ios.js +4 -0
- package/template/js/app/api/linux.js +23 -0
- package/template/js/app/api/macos.js +4 -0
- package/template/js/app/api/windows.js +4 -0
- package/template/js/app/backend/index.js +36 -1
- package/template/js/app/index.js +4 -1
- package/template/js/app/public/index.css +12 -3
- package/template/js/app/public/index.html +1 -0
- package/template/js/webnative.json +7 -2
- package/template/js/webpack.config.js +1 -0
- package/template/ts/app/api/android.ts +4 -0
- package/template/ts/app/api/index.d.ts +1 -0
- package/template/ts/app/api/ios.ts +4 -0
- package/template/ts/app/api/linux.ts +23 -0
- package/template/ts/app/api/macos.ts +4 -0
- package/template/ts/app/api/windows.ts +4 -0
- package/template/ts/app/backend/index.ts +36 -1
- package/template/ts/app/index.ts +4 -1
- package/template/ts/app/public/index.css +12 -3
- package/template/ts/app/public/index.html +1 -0
- package/template/ts/webnative.json +7 -2
- package/template/ts/webpack.config.js +1 -0
- package/prebuilds/dist/linux_self_contained +0 -0
- package/template/js/app/public/index.js +0 -6
package/index.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var vu=Object.create;var Ia=Object.defineProperty;var bu=Object.getOwnPropertyDescriptor;var wu=Object.getOwnPropertyNames;var yu=Object.getPrototypeOf,xu=Object.prototype.hasOwnProperty;var be=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ku=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of wu(t))!xu.call(e,n)&&n!==r&&Ia(e,n,{get:()=>t[n],enumerable:!(i=bu(t,n))||i.enumerable});return e};var Su=(e,t,r)=>(r=e!=null?vu(yu(e)):{},ku(t||!e||!e.__esModule?Ia(r,"default",{value:e,enumerable:!0}):r,e));var qt=g((s_,Ri)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Ri.exports={nextTick:Qu}:Ri.exports=process;function Qu(e,t,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,a,s;switch(n){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,r)});case 4:return process.nextTick(function(){e.call(null,t,r,i)});default:for(a=new Array(n-1),s=0;s<a.length;)a[s++]=arguments[s];return process.nextTick(function(){e.apply(null,a)})}}});var qa=g((o_,La)=>{var eh={}.toString;La.exports=Array.isArray||function(e){return eh.call(e)=="[object Array]"}});var Fi=g((l_,Ma)=>{Ma.exports=be("stream")});var Mt=g((Ni,Wa)=>{var Pr=be("buffer"),ye=Pr.Buffer;function ja(e,t){for(var r in e)t[r]=e[r]}ye.from&&ye.alloc&&ye.allocUnsafe&&ye.allocUnsafeSlow?Wa.exports=Pr:(ja(Pr,Ni),Ni.Buffer=lt);function lt(e,t,r){return ye(e,t,r)}ja(ye,lt);lt.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ye(e,t,r)};lt.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=ye(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};lt.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ye(e)};lt.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Pr.SlowBuffer(e)}});var ft=g(Z=>{function th(e){return Array.isArray?Array.isArray(e):Br(e)==="[object Array]"}Z.isArray=th;function rh(e){return typeof e=="boolean"}Z.isBoolean=rh;function ih(e){return e===null}Z.isNull=ih;function nh(e){return e==null}Z.isNullOrUndefined=nh;function ah(e){return typeof e=="number"}Z.isNumber=ah;function sh(e){return typeof e=="string"}Z.isString=sh;function oh(e){return typeof e=="symbol"}Z.isSymbol=oh;function lh(e){return e===void 0}Z.isUndefined=lh;function fh(e){return Br(e)==="[object RegExp]"}Z.isRegExp=fh;function uh(e){return typeof e=="object"&&e!==null}Z.isObject=uh;function hh(e){return Br(e)==="[object Date]"}Z.isDate=hh;function ch(e){return Br(e)==="[object Error]"||e instanceof Error}Z.isError=ch;function dh(e){return typeof e=="function"}Z.isFunction=dh;function ph(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}Z.isPrimitive=ph;Z.isBuffer=be("buffer").Buffer.isBuffer;function Br(e){return Object.prototype.toString.call(e)}});var Ha=g((u_,Pi)=>{typeof Object.create=="function"?Pi.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Pi.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var ut=g((h_,zi)=>{try{if(Bi=be("util"),typeof Bi.inherits!="function")throw"";zi.exports=Bi.inherits}catch{zi.exports=Ha()}var Bi});var $a=g((c_,Li)=>{"use strict";function mh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Ua=Mt().Buffer,jt=be("util");function gh(e,t,r){e.copy(t,r)}Li.exports=(function(){function e(){mh(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},e.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},e.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},e.prototype.concat=function(r){if(this.length===0)return Ua.alloc(0);for(var i=Ua.allocUnsafe(r>>>0),n=this.head,a=0;n;)gh(n.data,i,a),a+=n.data.length,n=n.next;return i},e})();jt&&jt.inspect&&jt.inspect.custom&&(Li.exports.prototype[jt.inspect.custom]=function(){var e=jt.inspect({length:this.length});return this.constructor.name+" "+e})});var qi=g((d_,Za)=>{"use strict";var zr=qt();function _h(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,zr.nextTick(Lr,this,e)):zr.nextTick(Lr,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,zr.nextTick(Lr,r,a)):zr.nextTick(Lr,r,a):t&&t(a)}),this)}function vh(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Lr(e,t){e.emit("error",t)}Za.exports={destroy:_h,undestroy:vh}});var Ga=g((p_,Va)=>{Va.exports=be("util").deprecate});var ji=g((m_,rs)=>{"use strict";var $e=qt();rs.exports=M;function Ya(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Bh(t,e)}}var bh=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:$e.nextTick,ht;M.WritableState=Ht;var Xa=Object.create(ft());Xa.inherits=ut();var wh={deprecate:Ga()},Ja=Fi(),Mr=Mt().Buffer,yh=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function xh(e){return Mr.from(e)}function kh(e){return Mr.isBuffer(e)||e instanceof yh}var Qa=qi();Xa.inherits(M,Ja);function Sh(){}function Ht(e,t){ht=ht||Ze(),e=e||{};var r=t instanceof ht;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,n=e.writableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=e.decodeStrings===!1;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(o){Ih(t,o)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ya(this)}Ht.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Ht.prototype,"buffer",{get:wh.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var qr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(qr=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(e){return qr.call(this,e)?!0:this!==M?!1:e&&e._writableState instanceof Ht}})):qr=function(e){return e instanceof this};function M(e){if(ht=ht||Ze(),!qr.call(M,this)&&!(this instanceof ht))return new M(e);this._writableState=new Ht(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Ja.call(this)}M.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Eh(e,t){var r=new Error("write after end");e.emit("error",r),$e.nextTick(t,r)}function Ch(e,t,r,i){var n=!0,a=!1;return r===null?a=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),$e.nextTick(i,a),n=!1),n}M.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&kh(e);return a&&!Mr.isBuffer(e)&&(e=xh(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=Sh),i.ended?Eh(this,r):(a||Ch(this,i,e,r))&&(i.pendingcb++,n=Ah(this,i,a,e,t,r)),n};M.prototype.cork=function(){var e=this._writableState;e.corked++};M.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&es(this,e))};M.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function Oh(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Mr.from(t,r)),t}Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ah(e,t,r,i,n,a){if(!r){var s=Oh(t,i,n);i!==s&&(r=!0,n="buffer",i=s)}var o=t.objectMode?1:i.length;t.length+=o;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Mi(e,t,!1,o,i,n,a);return u}function Mi(e,t,r,i,n,a,s){t.writelen=i,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}function Th(e,t,r,i,n){--t.pendingcb,r?($e.nextTick(n,i),$e.nextTick(Wt,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(n(i),e._writableState.errorEmitted=!0,e.emit("error",i),Wt(e,t))}function Dh(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Ih(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(Dh(r),t)Th(e,r,i,t,n);else{var a=ts(r);!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&es(e,r),i?bh(Ka,e,r,a,n):Ka(e,r,a,n)}}function Ka(e,t,r,i){r||Rh(e,t),t.pendingcb--,i(),Wt(e,t)}function Rh(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function es(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),a=t.corkedRequestsFree;a.entry=r;for(var s=0,o=!0;r;)n[s]=r,r.isBuf||(o=!1),r=r.next,s+=1;n.allBuffers=o,Mi(e,t,!0,t.length,n,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new Ya(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,l=r.callback,h=t.objectMode?1:u.length;if(Mi(e,t,!1,h,u,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}M.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};M.prototype._writev=null;M.prototype.end=function(e,t,r){var i=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||Ph(this,i,r)};function ts(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Fh(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),Wt(e,t)})}function Nh(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,$e.nextTick(Fh,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Wt(e,t){var r=ts(t);return r&&(Nh(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function Ph(e,t,r){t.ending=!0,Wt(e,t),r&&(t.finished?$e.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function Bh(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(M.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});M.prototype.destroy=Qa.destroy;M.prototype._undestroy=Qa.undestroy;M.prototype._destroy=function(e,t){this.end(),t(e)}});var Ze=g((g_,ss)=>{"use strict";var is=qt(),zh=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};ss.exports=xe;var ns=Object.create(ft());ns.inherits=ut();var as=Ui(),Hi=ji();ns.inherits(xe,as);for(Wi=zh(Hi.prototype),jr=0;jr<Wi.length;jr++)Wr=Wi[jr],xe.prototype[Wr]||(xe.prototype[Wr]=Hi.prototype[Wr]);var Wi,Wr,jr;function xe(e){if(!(this instanceof xe))return new xe(e);as.call(this,e),Hi.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",Lh)}Object.defineProperty(xe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Lh(){this.allowHalfOpen||this._writableState.ended||is.nextTick(qh,this)}function qh(e){e.end()}Object.defineProperty(xe.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}});xe.prototype._destroy=function(e,t){this.push(null),this.end(),is.nextTick(t,e)}});var Vi=g(ls=>{"use strict";var Zi=Mt().Buffer,os=Zi.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Mh(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function jh(e){var t=Mh(e);if(typeof t!="string"&&(Zi.isEncoding===os||!os(e)))throw new Error("Unknown encoding: "+e);return t||e}ls.StringDecoder=Ut;function Ut(e){this.encoding=jh(e);var t;switch(this.encoding){case"utf16le":this.text=Vh,this.end=Gh,t=4;break;case"utf8":this.fillLast=Uh,t=4;break;case"base64":this.text=Kh,this.end=Yh,t=3;break;default:this.write=Xh,this.end=Jh;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Zi.allocUnsafe(t)}Ut.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};Ut.prototype.end=Zh;Ut.prototype.text=$h;Ut.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function $i(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Wh(e,t,r){var i=t.length-1;if(i<r)return 0;var n=$i(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||n===-2?0:(n=$i(t[i]),n>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||n===-2?0:(n=$i(t[i]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function Hh(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function Uh(e){var t=this.lastTotal-this.lastNeed,r=Hh(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function $h(e,t){var r=Wh(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function Zh(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function Vh(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function Gh(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function Kh(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function Yh(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function Xh(e){return e.toString(this.encoding)}function Jh(e){return e&&e.length?this.write(e):""}});var Ui=g((b_,ws)=>{"use strict";var dt=qt();ws.exports=N;var Qh=qa(),$t;N.ReadableState=ms;var v_=be("events").EventEmitter,cs=function(e,t){return e.listeners(t).length},Ji=Fi(),Zt=Mt().Buffer,ec=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function tc(e){return Zt.from(e)}function rc(e){return Zt.isBuffer(e)||e instanceof ec}var ds=Object.create(ft());ds.inherits=ut();var Gi=be("util"),I=void 0;Gi&&Gi.debuglog?I=Gi.debuglog("stream"):I=function(){};var ic=$a(),ps=qi(),ct;ds.inherits(N,Ji);var Ki=["error","close","destroy","pause","resume"];function nc(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Qh(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function ms(e,t){$t=$t||Ze(),e=e||{};var r=t instanceof $t;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,n=e.readableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new ic,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(ct||(ct=Vi().StringDecoder),this.decoder=new ct(e.encoding),this.encoding=e.encoding)}function N(e){if($t=$t||Ze(),!(this instanceof N))return new N(e);this._readableState=new ms(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Ji.call(this)}Object.defineProperty(N.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});N.prototype.destroy=ps.destroy;N.prototype._undestroy=ps.undestroy;N.prototype._destroy=function(e,t){this.push(null),t(e)};N.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Zt.from(e,t),t=""),i=!0),gs(this,e,t,!1,i)};N.prototype.unshift=function(e){return gs(this,e,null,!0,!1)};function gs(e,t,r,i,n){var a=e._readableState;if(t===null)a.reading=!1,lc(e,a);else{var s;n||(s=ac(a,t)),s?e.emit("error",s):a.objectMode||t&&t.length>0?(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==Zt.prototype&&(t=tc(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):Yi(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?Yi(e,a,t,!1):_s(e,a)):Yi(e,a,t,!1))):i||(a.reading=!1)}return sc(a)}function Yi(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&Hr(e)),_s(e,t)}function ac(e,t){var r;return!rc(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function sc(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}N.prototype.isPaused=function(){return this._readableState.flowing===!1};N.prototype.setEncoding=function(e){return ct||(ct=Vi().StringDecoder),this._readableState.decoder=new ct(e),this._readableState.encoding=e,this};var fs=8388608;function oc(e){return e>=fs?e=fs:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function us(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=oc(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}N.prototype.read=function(e){I("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return I("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Xi(this):Hr(this),null;if(e=us(e,t),e===0&&t.ended)return t.length===0&&Xi(this),null;var i=t.needReadable;I("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,I("length less than watermark",i)),t.ended||t.reading?(i=!1,I("reading or ended",i)):i&&(I("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=us(r,t)));var n;return e>0?n=vs(e,t):n=null,n===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Xi(this)),n!==null&&this.emit("data",n),n};function lc(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,Hr(e)}}function Hr(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(I("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?dt.nextTick(hs,e):hs(e))}function hs(e){I("emit readable"),e.emit("readable"),Qi(e)}function _s(e,t){t.readingMore||(t.readingMore=!0,dt.nextTick(fc,e,t))}function fc(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(I("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}N.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};N.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,I("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,a=n?o:x;i.endEmitted?dt.nextTick(a):r.once("end",a),e.on("unpipe",s);function s(_,p){I("onunpipe"),_===r&&p&&p.hasUnpiped===!1&&(p.hasUnpiped=!0,l())}function o(){I("onend"),e.end()}var u=uc(r);e.on("drain",u);var f=!1;function l(){I("cleanup"),e.removeListener("close",b),e.removeListener("finish",w),e.removeListener("drain",u),e.removeListener("error",d),e.removeListener("unpipe",s),r.removeListener("end",o),r.removeListener("end",x),r.removeListener("data",c),f=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}var h=!1;r.on("data",c);function c(_){I("ondata"),h=!1;var p=e.write(_);p===!1&&!h&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&bs(i.pipes,e)!==-1)&&!f&&(I("false write response, pause",i.awaitDrain),i.awaitDrain++,h=!0),r.pause())}function d(_){I("onerror",_),x(),e.removeListener("error",d),cs(e,"error")===0&&e.emit("error",_)}nc(e,"error",d);function b(){e.removeListener("finish",w),x()}e.once("close",b);function w(){I("onfinish"),e.removeListener("close",b),x()}e.once("finish",w);function x(){I("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(I("pipe resume"),r.resume()),e};function uc(e){return function(){var t=e._readableState;I("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&cs(e,"data")&&(t.flowing=!0,Qi(e))}}N.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var s=bs(t.pipes,e);return s===-1?this:(t.pipes.splice(s,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};N.prototype.on=function(e,t){var r=Ji.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&Hr(this):dt.nextTick(hc,this))}return r};N.prototype.addListener=N.prototype.on;function hc(e){I("readable nexttick read 0"),e.read(0)}N.prototype.resume=function(){var e=this._readableState;return e.flowing||(I("resume"),e.flowing=!0,cc(this,e)),this};function cc(e,t){t.resumeScheduled||(t.resumeScheduled=!0,dt.nextTick(dc,e,t))}function dc(e,t){t.reading||(I("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Qi(e),t.flowing&&!t.reading&&e.read(0)}N.prototype.pause=function(){return I("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(I("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Qi(e){var t=e._readableState;for(I("flow",t.flowing);t.flowing&&e.read()!==null;);}N.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(I("wrapped end"),r.decoder&&!r.ended){var s=r.decoder.end();s&&s.length&&t.push(s)}t.push(null)}),e.on("data",function(s){if(I("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var o=t.push(s);o||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(s){return function(){return e[s].apply(e,arguments)}})(n));for(var a=0;a<Ki.length;a++)e.on(Ki[a],this.emit.bind(this,Ki[a]));return this._read=function(s){I("wrapped _read",s),i&&(i=!1,e.resume())},this};Object.defineProperty(N.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});N._fromList=vs;function vs(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=pc(e,t.buffer,t.decoder),r}function pc(e,t,r){var i;return e<t.head.data.length?(i=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?i=t.shift():i=r?mc(e,t):gc(e,t),i}function mc(e,t){var r=t.head,i=1,n=r.data;for(e-=n.length;r=r.next;){var a=r.data,s=e>a.length?a.length:e;if(s===a.length?n+=a:n+=a.slice(0,e),e-=s,e===0){s===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(s));break}++i}return t.length-=i,n}function gc(e,t){var r=Zt.allocUnsafe(e),i=t.head,n=1;for(i.data.copy(r),e-=i.data.length;i=i.next;){var a=i.data,s=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,s),e-=s,e===0){s===a.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=a.slice(s));break}++n}return t.length-=n,r}function Xi(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,dt.nextTick(_c,t,e))}function _c(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function bs(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var en=g((w_,ks)=>{"use strict";ks.exports=ke;var Ur=Ze(),xs=Object.create(ft());xs.inherits=ut();xs.inherits(ke,Ur);function vc(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function ke(e){if(!(this instanceof ke))return new ke(e);Ur.call(this,e),this._transformState={afterTransform:vc.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",bc)}function bc(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){ys(e,t,r)}):ys(this,null,null)}ke.prototype.push=function(e,t){return this._transformState.needTransform=!1,Ur.prototype.push.call(this,e,t)};ke.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};ke.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};ke.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};ke.prototype._destroy=function(e,t){var r=this;Ur.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function ys(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var Os=g((y_,Cs)=>{"use strict";Cs.exports=Vt;var Ss=en(),Es=Object.create(ft());Es.inherits=ut();Es.inherits(Vt,Ss);function Vt(e){if(!(this instanceof Vt))return new Vt(e);Ss.call(this,e)}Vt.prototype._transform=function(e,t,r){r(null,e)}});var tn=g((H,$r)=>{var ce=be("stream");process.env.READABLE_STREAM==="disable"&&ce?($r.exports=ce,H=$r.exports=ce.Readable,H.Readable=ce.Readable,H.Writable=ce.Writable,H.Duplex=ce.Duplex,H.Transform=ce.Transform,H.PassThrough=ce.PassThrough,H.Stream=ce):(H=$r.exports=Ui(),H.Stream=ce||H,H.Readable=H,H.Writable=ji(),H.Duplex=Ze(),H.Transform=en(),H.PassThrough=Os())});var Se=g(ee=>{"use strict";ee.base64=!0;ee.array=!0;ee.string=!0;ee.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";ee.nodebuffer=typeof Buffer<"u";ee.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")ee.blob=!1;else{rn=new ArrayBuffer(0);try{ee.blob=new Blob([rn],{type:"application/zip"}).size===0}catch{try{As=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,nn=new As,nn.append(rn),ee.blob=nn.getBlob("application/zip").size===0}catch{ee.blob=!1}}}var rn,As,nn;try{ee.nodestream=!!tn().Readable}catch{ee.nodestream=!1}});var sn=g(an=>{"use strict";var wc=B(),yc=Se(),de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";an.encode=function(e){for(var t=[],r,i,n,a,s,o,u,f=0,l=e.length,h=l,c=wc.getTypeOf(e)!=="string";f<e.length;)h=l-f,c?(r=e[f++],i=f<l?e[f++]:0,n=f<l?e[f++]:0):(r=e.charCodeAt(f++),i=f<l?e.charCodeAt(f++):0,n=f<l?e.charCodeAt(f++):0),a=r>>2,s=(r&3)<<4|i>>4,o=h>1?(i&15)<<2|n>>6:64,u=h>2?n&63:64,t.push(de.charAt(a)+de.charAt(s)+de.charAt(o)+de.charAt(u));return t.join("")};an.decode=function(e){var t,r,i,n,a,s,o,u=0,f=0,l="data:";if(e.substr(0,l.length)===l)throw new Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9+/=]/g,"");var h=e.length*3/4;if(e.charAt(e.length-1)===de.charAt(64)&&h--,e.charAt(e.length-2)===de.charAt(64)&&h--,h%1!==0)throw new Error("Invalid base64 input, bad content length.");var c;for(yc.uint8array?c=new Uint8Array(h|0):c=new Array(h|0);u<e.length;)n=de.indexOf(e.charAt(u++)),a=de.indexOf(e.charAt(u++)),s=de.indexOf(e.charAt(u++)),o=de.indexOf(e.charAt(u++)),t=n<<2|a>>4,r=(a&15)<<4|s>>2,i=(s&3)<<6|o,c[f++]=t,s!==64&&(c[f++]=r),o!==64&&(c[f++]=i);return c}});var Gt=g((S_,Ts)=>{"use strict";Ts.exports={isNode:typeof Buffer<"u",newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if(typeof e=="number")throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&typeof e.on=="function"&&typeof e.pause=="function"&&typeof e.resume=="function"}}});var Fs=g((E_,Rs)=>{"use strict";var Ds=global.MutationObserver||global.WebKitMutationObserver,pt;process.browser?Ds?(on=0,Is=new Ds(Kt),ln=global.document.createTextNode(""),Is.observe(ln,{characterData:!0}),pt=function(){ln.data=on=++on%2}):!global.setImmediate&&typeof global.MessageChannel<"u"?(fn=new global.MessageChannel,fn.port1.onmessage=Kt,pt=function(){fn.port2.postMessage(0)}):"document"in global&&"onreadystatechange"in global.document.createElement("script")?pt=function(){var e=global.document.createElement("script");e.onreadystatechange=function(){Kt(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},global.document.documentElement.appendChild(e)}:pt=function(){setTimeout(Kt,0)}:pt=function(){process.nextTick(Kt)};var on,Is,ln,fn,un,Yt=[];function Kt(){un=!0;for(var e,t,r=Yt.length;r;){for(t=Yt,Yt=[],e=-1;++e<r;)t[e]();r=Yt.length}un=!1}Rs.exports=xc;function xc(e){Yt.push(e)===1&&!un&&pt()}});var Ms=g((C_,qs)=>{"use strict";var Ns=Fs();function mt(){}var V={},Ps=["REJECTED"],hn=["FULFILLED"],Bs=["PENDING"];process.browser||(Xt=["UNHANDLED"]);var Xt;qs.exports=Re;function Re(e){if(typeof e!="function")throw new TypeError("resolver must be a function");this.state=Bs,this.queue=[],this.outcome=void 0,process.browser||(this.handled=Xt),e!==mt&&zs(this,e)}Re.prototype.finally=function(e){if(typeof e!="function")return this;var t=this.constructor;return this.then(r,i);function r(n){function a(){return n}return t.resolve(e()).then(a)}function i(n){function a(){throw n}return t.resolve(e()).then(a)}};Re.prototype.catch=function(e){return this.then(null,e)};Re.prototype.then=function(e,t){if(typeof e!="function"&&this.state===hn||typeof t!="function"&&this.state===Ps)return this;var r=new this.constructor(mt);if(process.browser||this.handled===Xt&&(this.handled=null),this.state!==Bs){var i=this.state===hn?e:t;cn(r,i,this.outcome)}else this.queue.push(new Jt(r,e,t));return r};function Jt(e,t,r){this.promise=e,typeof t=="function"&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),typeof r=="function"&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}Jt.prototype.callFulfilled=function(e){V.resolve(this.promise,e)};Jt.prototype.otherCallFulfilled=function(e){cn(this.promise,this.onFulfilled,e)};Jt.prototype.callRejected=function(e){V.reject(this.promise,e)};Jt.prototype.otherCallRejected=function(e){cn(this.promise,this.onRejected,e)};function cn(e,t,r){Ns(function(){var i;try{i=t(r)}catch(n){return V.reject(e,n)}i===e?V.reject(e,new TypeError("Cannot resolve promise with itself")):V.resolve(e,i)})}V.resolve=function(e,t){var r=Ls(kc,t);if(r.status==="error")return V.reject(e,r.value);var i=r.value;if(i)zs(e,i);else{e.state=hn,e.outcome=t;for(var n=-1,a=e.queue.length;++n<a;)e.queue[n].callFulfilled(t)}return e};V.reject=function(e,t){e.state=Ps,e.outcome=t,process.browser||e.handled===Xt&&Ns(function(){e.handled===Xt&&process.emit("unhandledRejection",t,e)});for(var r=-1,i=e.queue.length;++r<i;)e.queue[r].callRejected(t);return e};function kc(e){var t=e&&e.then;if(e&&(typeof e=="object"||typeof e=="function")&&typeof t=="function")return function(){t.apply(e,arguments)}}function zs(e,t){var r=!1;function i(o){r||(r=!0,V.reject(e,o))}function n(o){r||(r=!0,V.resolve(e,o))}function a(){t(n,i)}var s=Ls(a);s.status==="error"&&i(s.value)}function Ls(e,t){var r={};try{r.value=e(t),r.status="success"}catch(i){r.status="error",r.value=i}return r}Re.resolve=Sc;function Sc(e){return e instanceof this?e:V.resolve(new this(mt),e)}Re.reject=Ec;function Ec(e){var t=new this(mt);return V.reject(t,e)}Re.all=Cc;function Cc(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var r=e.length,i=!1;if(!r)return this.resolve([]);for(var n=new Array(r),a=0,s=-1,o=new this(mt);++s<r;)u(e[s],s);return o;function u(f,l){t.resolve(f).then(h,function(c){i||(i=!0,V.reject(o,c))});function h(c){n[l]=c,++a===r&&!i&&(i=!0,V.resolve(o,n))}}}Re.race=Oc;function Oc(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var r=e.length,i=!1;if(!r)return this.resolve([]);for(var n=-1,a=new this(mt);++n<r;)s(e[n]);return a;function s(o){t.resolve(o).then(function(u){i||(i=!0,V.resolve(a,u))},function(u){i||(i=!0,V.reject(a,u))})}}});var gt=g((O_,js)=>{"use strict";var dn=null;typeof Promise<"u"?dn=Promise:dn=Ms();js.exports={Promise:dn}});var Hs=g(Ws=>{(function(e,t){"use strict";if(e.setImmediate)return;var r=1,i={},n=!1,a=e.document,s;function o(p){typeof p!="function"&&(p=new Function(""+p));for(var y=new Array(arguments.length-1),m=0;m<y.length;m++)y[m]=arguments[m+1];var v={callback:p,args:y};return i[r]=v,s(r),r++}function u(p){delete i[p]}function f(p){var y=p.callback,m=p.args;switch(m.length){case 0:y();break;case 1:y(m[0]);break;case 2:y(m[0],m[1]);break;case 3:y(m[0],m[1],m[2]);break;default:y.apply(t,m);break}}function l(p){if(n)setTimeout(l,0,p);else{var y=i[p];if(y){n=!0;try{f(y)}finally{u(p),n=!1}}}}function h(){s=function(p){process.nextTick(function(){l(p)})}}function c(){if(e.postMessage&&!e.importScripts){var p=!0,y=e.onmessage;return e.onmessage=function(){p=!1},e.postMessage("","*"),e.onmessage=y,p}}function d(){var p="setImmediate$"+Math.random()+"$",y=function(m){m.source===e&&typeof m.data=="string"&&m.data.indexOf(p)===0&&l(+m.data.slice(p.length))};e.addEventListener?e.addEventListener("message",y,!1):e.attachEvent("onmessage",y),s=function(m){e.postMessage(p+m,"*")}}function b(){var p=new MessageChannel;p.port1.onmessage=function(y){var m=y.data;l(m)},s=function(y){p.port2.postMessage(y)}}function w(){var p=a.documentElement;s=function(y){var m=a.createElement("script");m.onreadystatechange=function(){l(y),m.onreadystatechange=null,p.removeChild(m),m=null},p.appendChild(m)}}function x(){s=function(p){setTimeout(l,0,p)}}var _=Object.getPrototypeOf&&Object.getPrototypeOf(e);_=_&&_.setTimeout?_:e,{}.toString.call(e.process)==="[object process]"?h():c()?d():e.MessageChannel?b():a&&"onreadystatechange"in a.createElement("script")?w():x(),_.setImmediate=o,_.clearImmediate=u})(typeof self>"u"?typeof global>"u"?Ws:global:self)});var B=g(j=>{"use strict";var Fe=Se(),Ac=sn(),_t=Gt(),pn=gt();Hs();function Tc(e){var t=null;return Fe.uint8array?t=new Uint8Array(e.length):t=new Array(e.length),Vr(e,t)}j.newBlob=function(e,t){j.checkSupport("blob");try{return new Blob([e],{type:t})}catch{try{var r=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,i=new r;return i.append(e),i.getBlob(t)}catch{throw new Error("Bug : can't construct the Blob.")}}};function Qt(e){return e}function Vr(e,t){for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)&255;return t}var Zr={stringifyByChunk:function(e,t,r){var i=[],n=0,a=e.length;if(a<=r)return String.fromCharCode.apply(null,e);for(;n<a;)t==="array"||t==="nodebuffer"?i.push(String.fromCharCode.apply(null,e.slice(n,Math.min(n+r,a)))):i.push(String.fromCharCode.apply(null,e.subarray(n,Math.min(n+r,a)))),n+=r;return i.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:(function(){try{return Fe.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return Fe.nodebuffer&&String.fromCharCode.apply(null,_t.allocBuffer(1)).length===1}catch{return!1}})()}};function er(e){var t=65536,r=j.getTypeOf(e),i=!0;if(r==="uint8array"?i=Zr.applyCanBeUsed.uint8array:r==="nodebuffer"&&(i=Zr.applyCanBeUsed.nodebuffer),i)for(;t>1;)try{return Zr.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return Zr.stringifyByChar(e)}j.applyFromCharCode=er;function Gr(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}var Ne={};Ne.string={string:Qt,array:function(e){return Vr(e,new Array(e.length))},arraybuffer:function(e){return Ne.string.uint8array(e).buffer},uint8array:function(e){return Vr(e,new Uint8Array(e.length))},nodebuffer:function(e){return Vr(e,_t.allocBuffer(e.length))}};Ne.array={string:er,array:Qt,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return _t.newBufferFrom(e)}};Ne.arraybuffer={string:function(e){return er(new Uint8Array(e))},array:function(e){return Gr(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:Qt,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return _t.newBufferFrom(new Uint8Array(e))}};Ne.uint8array={string:er,array:function(e){return Gr(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:Qt,nodebuffer:function(e){return _t.newBufferFrom(e)}};Ne.nodebuffer={string:er,array:function(e){return Gr(e,new Array(e.length))},arraybuffer:function(e){return Ne.nodebuffer.uint8array(e).buffer},uint8array:function(e){return Gr(e,new Uint8Array(e.length))},nodebuffer:Qt};j.transformTo=function(e,t){if(t||(t=""),!e)return t;j.checkSupport(e);var r=j.getTypeOf(t),i=Ne[r][e](t);return i};j.resolve=function(e){for(var t=e.split("/"),r=[],i=0;i<t.length;i++){var n=t[i];n==="."||n===""&&i!==0&&i!==t.length-1||(n===".."?r.pop():r.push(n))}return r.join("/")};j.getTypeOf=function(e){if(typeof e=="string")return"string";if(Object.prototype.toString.call(e)==="[object Array]")return"array";if(Fe.nodebuffer&&_t.isBuffer(e))return"nodebuffer";if(Fe.uint8array&&e instanceof Uint8Array)return"uint8array";if(Fe.arraybuffer&&e instanceof ArrayBuffer)return"arraybuffer"};j.checkSupport=function(e){var t=Fe[e.toLowerCase()];if(!t)throw new Error(e+" is not supported by this platform")};j.MAX_VALUE_16BITS=65535;j.MAX_VALUE_32BITS=-1;j.pretty=function(e){var t="",r,i;for(i=0;i<(e||"").length;i++)r=e.charCodeAt(i),t+="\\x"+(r<16?"0":"")+r.toString(16).toUpperCase();return t};j.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})};j.inherits=function(e,t){var r=function(){};r.prototype=t.prototype,e.prototype=new r};j.extend=function(){var e={},t,r;for(t=0;t<arguments.length;t++)for(r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&typeof e[r]>"u"&&(e[r]=arguments[t][r]);return e};j.prepareContent=function(e,t,r,i,n){var a=pn.Promise.resolve(t).then(function(s){var o=Fe.blob&&(s instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(s))!==-1);return o&&typeof FileReader<"u"?new pn.Promise(function(u,f){var l=new FileReader;l.onload=function(h){u(h.target.result)},l.onerror=function(h){f(h.target.error)},l.readAsArrayBuffer(s)}):s});return a.then(function(s){var o=j.getTypeOf(s);return o?(o==="arraybuffer"?s=j.transformTo("uint8array",s):o==="string"&&(n?s=Ac.decode(s):r&&i!==!0&&(s=Tc(s))),s):pn.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}});var te=g((D_,$s)=>{"use strict";function Us(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}Us.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return this.isFinished?!1:(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.end()}),e.on("error",function(r){t.error(r)}),this},pause:function(){return this.isPaused||this.isFinished?!1:(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}};$s.exports=Us});var bt=g(Pe=>{"use strict";var vt=B(),Ve=Se(),Dc=Gt(),Kr=te(),tr=new Array(256);for(Ee=0;Ee<256;Ee++)tr[Ee]=Ee>=252?6:Ee>=248?5:Ee>=240?4:Ee>=224?3:Ee>=192?2:1;var Ee;tr[254]=tr[254]=1;var Ic=function(e){var t,r,i,n,a,s=e.length,o=0;for(n=0;n<s;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<s&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),o+=r<128?1:r<2048?2:r<65536?3:4;for(Ve.uint8array?t=new Uint8Array(o):t=new Array(o),a=0,n=0;a<o;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<s&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|r&63):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|r&63):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|r&63);return t},Rc=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+tr[e[r]]>t?r:t},Fc=function(e){var t,r,i,n,a=e.length,s=new Array(a*2);for(r=0,t=0;t<a;){if(i=e[t++],i<128){s[r++]=i;continue}if(n=tr[i],n>4){s[r++]=65533,t+=n-1;continue}for(i&=n===2?31:n===3?15:7;n>1&&t<a;)i=i<<6|e[t++]&63,n--;if(n>1){s[r++]=65533;continue}i<65536?s[r++]=i:(i-=65536,s[r++]=55296|i>>10&1023,s[r++]=56320|i&1023)}return s.length!==r&&(s.subarray?s=s.subarray(0,r):s.length=r),vt.applyFromCharCode(s)};Pe.utf8encode=function(t){return Ve.nodebuffer?Dc.newBufferFrom(t,"utf-8"):Ic(t)};Pe.utf8decode=function(t){return Ve.nodebuffer?vt.transformTo("nodebuffer",t).toString("utf-8"):(t=vt.transformTo(Ve.uint8array?"uint8array":"array",t),Fc(t))};function Yr(){Kr.call(this,"utf-8 decode"),this.leftOver=null}vt.inherits(Yr,Kr);Yr.prototype.processChunk=function(e){var t=vt.transformTo(Ve.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(Ve.uint8array){var r=t;t=new Uint8Array(r.length+this.leftOver.length),t.set(this.leftOver,0),t.set(r,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var i=Rc(t),n=t;i!==t.length&&(Ve.uint8array?(n=t.subarray(0,i),this.leftOver=t.subarray(i,t.length)):(n=t.slice(0,i),this.leftOver=t.slice(i,t.length))),this.push({data:Pe.utf8decode(n),meta:e.meta})};Yr.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:Pe.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)};Pe.Utf8DecodeWorker=Yr;function mn(){Kr.call(this,"utf-8 encode")}vt.inherits(mn,Kr);mn.prototype.processChunk=function(e){this.push({data:Pe.utf8encode(e.data),meta:e.meta})};Pe.Utf8EncodeWorker=mn});var Ks=g((R_,Gs)=>{"use strict";var Zs=te(),Vs=B();function gn(e){Zs.call(this,"ConvertWorker to "+e),this.destType=e}Vs.inherits(gn,Zs);gn.prototype.processChunk=function(e){this.push({data:Vs.transformTo(this.destType,e.data),meta:e.meta})};Gs.exports=gn});var Js=g((F_,Xs)=>{"use strict";var Ys=tn().Readable,Nc=B();Nc.inherits(_n,Ys);function _n(e,t,r){Ys.call(this,t),this._helper=e;var i=this;e.on("data",function(n,a){i.push(n)||i._helper.pause(),r&&r(a)}).on("error",function(n){i.emit("error",n)}).on("end",function(){i.push(null)})}_n.prototype._read=function(){this._helper.resume()};Xs.exports=_n});var vn=g((N_,to)=>{"use strict";var Ge=B(),Pc=Ks(),Bc=te(),zc=sn(),Lc=Se(),qc=gt(),Qs=null;if(Lc.nodestream)try{Qs=Js()}catch{}function Mc(e,t,r){switch(e){case"blob":return Ge.newBlob(Ge.transformTo("arraybuffer",t),r);case"base64":return zc.encode(t);default:return Ge.transformTo(e,t)}}function jc(e,t){var r,i=0,n=null,a=0;for(r=0;r<t.length;r++)a+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(n=new Uint8Array(a),r=0;r<t.length;r++)n.set(t[r],i),i+=t[r].length;return n;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}function Wc(e,t){return new qc.Promise(function(r,i){var n=[],a=e._internalType,s=e._outputType,o=e._mimeType;e.on("data",function(u,f){n.push(u),t&&t(f)}).on("error",function(u){n=[],i(u)}).on("end",function(){try{var u=Mc(s,jc(a,n),o);r(u)}catch(f){i(f)}n=[]}).resume()})}function eo(e,t,r){var i=t;switch(t){case"blob":case"arraybuffer":i="uint8array";break;case"base64":i="string";break}try{this._internalType=i,this._outputType=t,this._mimeType=r,Ge.checkSupport(i),this._worker=e.pipe(new Pc(i)),e.lock()}catch(n){this._worker=new Bc("error"),this._worker.error(n)}}eo.prototype={accumulate:function(e){return Wc(this,e)},on:function(e,t){var r=this;return e==="data"?this._worker.on(e,function(i){t.call(r,i.data,i.meta)}):this._worker.on(e,function(){Ge.delay(t,arguments,r)}),this},resume:function(){return Ge.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(Ge.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new Qs(this,{objectMode:this._outputType!=="nodebuffer"},e)}};to.exports=eo});var bn=g(oe=>{"use strict";oe.base64=!1;oe.binary=!1;oe.dir=!1;oe.createFolders=!0;oe.date=null;oe.compression=null;oe.compressionOptions=null;oe.comment=null;oe.unixPermissions=null;oe.dosPermissions=null});var wn=g((B_,ro)=>{"use strict";var Xr=B(),Jr=te(),Hc=16*1024;function wt(e){Jr.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(r){t.dataIsReady=!0,t.data=r,t.max=r&&r.length||0,t.type=Xr.getTypeOf(r),t.isPaused||t._tickAndRepeat()},function(r){t.error(r)})}Xr.inherits(wt,Jr);wt.prototype.cleanUp=function(){Jr.prototype.cleanUp.call(this),this.data=null};wt.prototype.resume=function(){return Jr.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Xr.delay(this._tickAndRepeat,[],this)),!0):!1};wt.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(Xr.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))};wt.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=Hc,t=null,r=Math.min(this.max,this.index+e);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,r);break;case"uint8array":t=this.data.subarray(this.index,r);break;case"array":case"nodebuffer":t=this.data.slice(this.index,r);break}return this.index=r,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})};ro.exports=wt});var Qr=g((z_,no)=>{"use strict";var Uc=B();function $c(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var io=$c();function Zc(e,t,r,i){var n=io,a=i+r;e=e^-1;for(var s=i;s<a;s++)e=e>>>8^n[(e^t[s])&255];return e^-1}function Vc(e,t,r,i){var n=io,a=i+r;e=e^-1;for(var s=i;s<a;s++)e=e>>>8^n[(e^t.charCodeAt(s))&255];return e^-1}no.exports=function(t,r){if(typeof t>"u"||!t.length)return 0;var i=Uc.getTypeOf(t)!=="string";return i?Zc(r|0,t,t.length,0):Vc(r|0,t,t.length,0)}});var xn=g((L_,so)=>{"use strict";var ao=te(),Gc=Qr(),Kc=B();function yn(){ao.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}Kc.inherits(yn,ao);yn.prototype.processChunk=function(e){this.streamInfo.crc32=Gc(e.data,this.streamInfo.crc32||0),this.push(e)};so.exports=yn});var lo=g((q_,oo)=>{"use strict";var Yc=B(),kn=te();function Sn(e){kn.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}Yc.inherits(Sn,kn);Sn.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}kn.prototype.processChunk.call(this,e)};oo.exports=Sn});var ei=g((M_,ho)=>{"use strict";var fo=gt(),uo=wn(),Xc=xn(),En=lo();function Cn(e,t,r,i,n){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=i,this.compressedContent=n}Cn.prototype={getContentWorker:function(){var e=new uo(fo.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new En("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new uo(fo.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};Cn.createWorkerFrom=function(e,t,r){return e.pipe(new Xc).pipe(new En("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new En("compressedSize")).withStreamInfo("compression",t)};ho.exports=Cn});var go=g((j_,mo)=>{"use strict";var Jc=vn(),Qc=wn(),On=bt(),An=ei(),co=te(),Tn=function(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}};Tn.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");r=e.toLowerCase();var i=r==="string"||r==="text";(r==="binarystring"||r==="text")&&(r="string"),t=this._decompressWorker();var n=!this._dataBinary;n&&!i&&(t=t.pipe(new On.Utf8EncodeWorker)),!n&&i&&(t=t.pipe(new On.Utf8DecodeWorker))}catch(a){t=new co("error"),t.error(a)}return new Jc(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof An&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new On.Utf8EncodeWorker)),An.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof An?this._data.getContentWorker():this._data instanceof co?this._data:new Qc(this._data)}};var po=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],ed=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(ti=0;ti<po.length;ti++)Tn.prototype[po[ti]]=ed;var ti;mo.exports=Tn});var Ce=g(G=>{"use strict";var td=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function rd(e,t){return Object.prototype.hasOwnProperty.call(e,t)}G.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(var i in r)rd(r,i)&&(e[i]=r[i])}}return e};G.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var id={arraySet:function(e,t,r,i,n){if(t.subarray&&e.subarray){e.set(t.subarray(r,r+i),n);return}for(var a=0;a<i;a++)e[n+a]=t[r+a]},flattenChunks:function(e){var t,r,i,n,a,s;for(i=0,t=0,r=e.length;t<r;t++)i+=e[t].length;for(s=new Uint8Array(i),n=0,t=0,r=e.length;t<r;t++)a=e[t],s.set(a,n),n+=a.length;return s}},nd={arraySet:function(e,t,r,i,n){for(var a=0;a<i;a++)e[n+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}};G.setTyped=function(e){e?(G.Buf8=Uint8Array,G.Buf16=Uint16Array,G.Buf32=Int32Array,G.assign(G,id)):(G.Buf8=Array,G.Buf16=Array,G.Buf32=Array,G.assign(G,nd))};G.setTyped(td)});var qo=g(kt=>{"use strict";var ad=Ce(),sd=4,_o=0,vo=1,od=2;function xt(e){for(var t=e.length;--t>=0;)e[t]=0}var ld=0,So=1,fd=2,ud=3,hd=258,Bn=29,or=256,ir=or+1+Bn,yt=30,zn=19,Eo=2*ir+1,Ke=15,Dn=16,cd=7,Ln=256,Co=16,Oo=17,Ao=18,Nn=[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],ri=[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],dd=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],To=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],pd=512,Oe=new Array((ir+2)*2);xt(Oe);var rr=new Array(yt*2);xt(rr);var nr=new Array(pd);xt(nr);var ar=new Array(hd-ud+1);xt(ar);var qn=new Array(Bn);xt(qn);var ii=new Array(yt);xt(ii);function In(e,t,r,i,n){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=n,this.has_stree=e&&e.length}var Do,Io,Ro;function Rn(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Fo(e){return e<256?nr[e]:nr[256+(e>>>7)]}function sr(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function X(e,t,r){e.bi_valid>Dn-r?(e.bi_buf|=t<<e.bi_valid&65535,sr(e,e.bi_buf),e.bi_buf=t>>Dn-e.bi_valid,e.bi_valid+=r-Dn):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function pe(e,t,r){X(e,r[t*2],r[t*2+1])}function No(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function md(e){e.bi_valid===16?(sr(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function gd(e,t){var r=t.dyn_tree,i=t.max_code,n=t.stat_desc.static_tree,a=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,o=t.stat_desc.extra_base,u=t.stat_desc.max_length,f,l,h,c,d,b,w=0;for(c=0;c<=Ke;c++)e.bl_count[c]=0;for(r[e.heap[e.heap_max]*2+1]=0,f=e.heap_max+1;f<Eo;f++)l=e.heap[f],c=r[r[l*2+1]*2+1]+1,c>u&&(c=u,w++),r[l*2+1]=c,!(l>i)&&(e.bl_count[c]++,d=0,l>=o&&(d=s[l-o]),b=r[l*2],e.opt_len+=b*(c+d),a&&(e.static_len+=b*(n[l*2+1]+d)));if(w!==0){do{for(c=u-1;e.bl_count[c]===0;)c--;e.bl_count[c]--,e.bl_count[c+1]+=2,e.bl_count[u]--,w-=2}while(w>0);for(c=u;c!==0;c--)for(l=e.bl_count[c];l!==0;)h=e.heap[--f],!(h>i)&&(r[h*2+1]!==c&&(e.opt_len+=(c-r[h*2+1])*r[h*2],r[h*2+1]=c),l--)}}function Po(e,t,r){var i=new Array(Ke+1),n=0,a,s;for(a=1;a<=Ke;a++)i[a]=n=n+r[a-1]<<1;for(s=0;s<=t;s++){var o=e[s*2+1];o!==0&&(e[s*2]=No(i[o]++,o))}}function _d(){var e,t,r,i,n,a=new Array(Ke+1);for(r=0,i=0;i<Bn-1;i++)for(qn[i]=r,e=0;e<1<<Nn[i];e++)ar[r++]=i;for(ar[r-1]=i,n=0,i=0;i<16;i++)for(ii[i]=n,e=0;e<1<<ri[i];e++)nr[n++]=i;for(n>>=7;i<yt;i++)for(ii[i]=n<<7,e=0;e<1<<ri[i]-7;e++)nr[256+n++]=i;for(t=0;t<=Ke;t++)a[t]=0;for(e=0;e<=143;)Oe[e*2+1]=8,e++,a[8]++;for(;e<=255;)Oe[e*2+1]=9,e++,a[9]++;for(;e<=279;)Oe[e*2+1]=7,e++,a[7]++;for(;e<=287;)Oe[e*2+1]=8,e++,a[8]++;for(Po(Oe,ir+1,a),e=0;e<yt;e++)rr[e*2+1]=5,rr[e*2]=No(e,5);Do=new In(Oe,Nn,or+1,ir,Ke),Io=new In(rr,ri,0,yt,Ke),Ro=new In(new Array(0),dd,0,zn,cd)}function Bo(e){var t;for(t=0;t<ir;t++)e.dyn_ltree[t*2]=0;for(t=0;t<yt;t++)e.dyn_dtree[t*2]=0;for(t=0;t<zn;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Ln*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function zo(e){e.bi_valid>8?sr(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function vd(e,t,r,i){zo(e),i&&(sr(e,r),sr(e,~r)),ad.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function bo(e,t,r,i){var n=t*2,a=r*2;return e[n]<e[a]||e[n]===e[a]&&i[t]<=i[r]}function Fn(e,t,r){for(var i=e.heap[r],n=r<<1;n<=e.heap_len&&(n<e.heap_len&&bo(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!bo(t,i,e.heap[n],e.depth));)e.heap[r]=e.heap[n],r=n,n<<=1;e.heap[r]=i}function wo(e,t,r){var i,n,a=0,s,o;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+a*2]<<8|e.pending_buf[e.d_buf+a*2+1],n=e.pending_buf[e.l_buf+a],a++,i===0?pe(e,n,t):(s=ar[n],pe(e,s+or+1,t),o=Nn[s],o!==0&&(n-=qn[s],X(e,n,o)),i--,s=Fo(i),pe(e,s,r),o=ri[s],o!==0&&(i-=ii[s],X(e,i,o)));while(a<e.last_lit);pe(e,Ln,t)}function Pn(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,n=t.stat_desc.has_stree,a=t.stat_desc.elems,s,o,u=-1,f;for(e.heap_len=0,e.heap_max=Eo,s=0;s<a;s++)r[s*2]!==0?(e.heap[++e.heap_len]=u=s,e.depth[s]=0):r[s*2+1]=0;for(;e.heap_len<2;)f=e.heap[++e.heap_len]=u<2?++u:0,r[f*2]=1,e.depth[f]=0,e.opt_len--,n&&(e.static_len-=i[f*2+1]);for(t.max_code=u,s=e.heap_len>>1;s>=1;s--)Fn(e,r,s);f=a;do s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Fn(e,r,1),o=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=o,r[f*2]=r[s*2]+r[o*2],e.depth[f]=(e.depth[s]>=e.depth[o]?e.depth[s]:e.depth[o])+1,r[s*2+1]=r[o*2+1]=f,e.heap[1]=f++,Fn(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],gd(e,t),Po(r,u,e.bl_count)}function yo(e,t,r){var i,n=-1,a,s=t[1],o=0,u=7,f=4;for(s===0&&(u=138,f=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)a=s,s=t[(i+1)*2+1],!(++o<u&&a===s)&&(o<f?e.bl_tree[a*2]+=o:a!==0?(a!==n&&e.bl_tree[a*2]++,e.bl_tree[Co*2]++):o<=10?e.bl_tree[Oo*2]++:e.bl_tree[Ao*2]++,o=0,n=a,s===0?(u=138,f=3):a===s?(u=6,f=3):(u=7,f=4))}function xo(e,t,r){var i,n=-1,a,s=t[1],o=0,u=7,f=4;for(s===0&&(u=138,f=3),i=0;i<=r;i++)if(a=s,s=t[(i+1)*2+1],!(++o<u&&a===s)){if(o<f)do pe(e,a,e.bl_tree);while(--o!==0);else a!==0?(a!==n&&(pe(e,a,e.bl_tree),o--),pe(e,Co,e.bl_tree),X(e,o-3,2)):o<=10?(pe(e,Oo,e.bl_tree),X(e,o-3,3)):(pe(e,Ao,e.bl_tree),X(e,o-11,7));o=0,n=a,s===0?(u=138,f=3):a===s?(u=6,f=3):(u=7,f=4)}}function bd(e){var t;for(yo(e,e.dyn_ltree,e.l_desc.max_code),yo(e,e.dyn_dtree,e.d_desc.max_code),Pn(e,e.bl_desc),t=zn-1;t>=3&&e.bl_tree[To[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function wd(e,t,r,i){var n;for(X(e,t-257,5),X(e,r-1,5),X(e,i-4,4),n=0;n<i;n++)X(e,e.bl_tree[To[n]*2+1],3);xo(e,e.dyn_ltree,t-1),xo(e,e.dyn_dtree,r-1)}function yd(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return _o;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return vo;for(r=32;r<or;r++)if(e.dyn_ltree[r*2]!==0)return vo;return _o}var ko=!1;function xd(e){ko||(_d(),ko=!0),e.l_desc=new Rn(e.dyn_ltree,Do),e.d_desc=new Rn(e.dyn_dtree,Io),e.bl_desc=new Rn(e.bl_tree,Ro),e.bi_buf=0,e.bi_valid=0,Bo(e)}function Lo(e,t,r,i){X(e,(ld<<1)+(i?1:0),3),vd(e,t,r,!0)}function kd(e){X(e,So<<1,3),pe(e,Ln,Oe),md(e)}function Sd(e,t,r,i){var n,a,s=0;e.level>0?(e.strm.data_type===od&&(e.strm.data_type=yd(e)),Pn(e,e.l_desc),Pn(e,e.d_desc),s=bd(e),n=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=n&&(n=a)):n=a=r+5,r+4<=n&&t!==-1?Lo(e,t,r,i):e.strategy===sd||a===n?(X(e,(So<<1)+(i?1:0),3),wo(e,Oe,rr)):(X(e,(fd<<1)+(i?1:0),3),wd(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),wo(e,e.dyn_ltree,e.dyn_dtree)),Bo(e),i&&zo(e)}function Ed(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(ar[r]+or+1)*2]++,e.dyn_dtree[Fo(t)*2]++),e.last_lit===e.lit_bufsize-1}kt._tr_init=xd;kt._tr_stored_block=Lo;kt._tr_flush_block=Sd;kt._tr_tally=Ed;kt._tr_align=kd});var Mn=g((U_,Mo)=>{"use strict";function Cd(e,t,r,i){for(var n=e&65535|0,a=e>>>16&65535|0,s=0;r!==0;){s=r>2e3?2e3:r,r-=s;do n=n+t[i++]|0,a=a+n|0;while(--s);n%=65521,a%=65521}return n|a<<16|0}Mo.exports=Cd});var jn=g(($_,jo)=>{"use strict";function Od(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var Ad=Od();function Td(e,t,r,i){var n=Ad,a=i+r;e^=-1;for(var s=i;s<a;s++)e=e>>>8^n[(e^t[s])&255];return e^-1}jo.exports=Td});var ni=g((Z_,Wo)=>{"use strict";Wo.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"}});var Xo=g(_e=>{"use strict";var K=Ce(),ie=qo(),Zo=Mn(),Be=jn(),Dd=ni(),Qe=0,Id=1,Rd=3,je=4,Ho=5,ge=0,Uo=1,ne=-2,Fd=-3,Wn=-5,Nd=-1,Pd=1,ai=2,Bd=3,zd=4,Ld=0,qd=2,fi=8,Md=9,jd=15,Wd=8,Hd=29,Ud=256,Un=Ud+1+Hd,$d=30,Zd=19,Vd=2*Un+1,Gd=15,A=3,qe=258,le=qe+A+1,Kd=32,ui=42,$n=69,si=73,oi=91,li=103,Ye=113,fr=666,W=1,ur=2,Xe=3,Ct=4,Yd=3;function Me(e,t){return e.msg=Dd[t],t}function $o(e){return(e<<1)-(e>4?9:0)}function Le(e){for(var t=e.length;--t>=0;)e[t]=0}function ze(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(K.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function U(e,t){ie._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ze(e.strm)}function T(e,t){e.pending_buf[e.pending++]=t}function lr(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function Xd(e,t,r,i){var n=e.avail_in;return n>i&&(n=i),n===0?0:(e.avail_in-=n,K.arraySet(t,e.input,e.next_in,n,r),e.state.wrap===1?e.adler=Zo(e.adler,t,n,r):e.state.wrap===2&&(e.adler=Be(e.adler,t,n,r)),e.next_in+=n,e.total_in+=n,n)}function Vo(e,t){var r=e.max_chain_length,i=e.strstart,n,a,s=e.prev_length,o=e.nice_match,u=e.strstart>e.w_size-le?e.strstart-(e.w_size-le):0,f=e.window,l=e.w_mask,h=e.prev,c=e.strstart+qe,d=f[i+s-1],b=f[i+s];e.prev_length>=e.good_match&&(r>>=2),o>e.lookahead&&(o=e.lookahead);do if(n=t,!(f[n+s]!==b||f[n+s-1]!==d||f[n]!==f[i]||f[++n]!==f[i+1])){i+=2,n++;do;while(f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&i<c);if(a=qe-(c-i),i=c-qe,a>s){if(e.match_start=t,s=a,a>=o)break;d=f[i+s-1],b=f[i+s]}}while((t=h[t&l])>u&&--r!==0);return s<=e.lookahead?s:e.lookahead}function Je(e){var t=e.w_size,r,i,n,a,s;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-le)){K.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do n=e.head[--r],e.head[r]=n>=t?n-t:0;while(--i);i=t,r=i;do n=e.prev[--r],e.prev[r]=n>=t?n-t:0;while(--i);a+=t}if(e.strm.avail_in===0)break;if(i=Xd(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=i,e.lookahead+e.insert>=A)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+A-1])&e.hash_mask,e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert<A)););}while(e.lookahead<le&&e.strm.avail_in!==0)}function Jd(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Je(e),e.lookahead===0&&t===Qe)return W;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,U(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-le&&(U(e,!1),e.strm.avail_out===0))return W}return e.insert=0,t===je?(U(e,!0),e.strm.avail_out===0?Xe:Ct):(e.strstart>e.block_start&&(U(e,!1),e.strm.avail_out===0),W)}function Hn(e,t){for(var r,i;;){if(e.lookahead<le){if(Je(e),e.lookahead<le&&t===Qe)return W;if(e.lookahead===0)break}if(r=0,e.lookahead>=A&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-le&&(e.match_length=Vo(e,r)),e.match_length>=A)if(i=ie._tr_tally(e,e.strstart-e.match_start,e.match_length-A),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=A){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=ie._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(U(e,!1),e.strm.avail_out===0))return W}return e.insert=e.strstart<A-1?e.strstart:A-1,t===je?(U(e,!0),e.strm.avail_out===0?Xe:Ct):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:ur}function St(e,t){for(var r,i,n;;){if(e.lookahead<le){if(Je(e),e.lookahead<le&&t===Qe)return W;if(e.lookahead===0)break}if(r=0,e.lookahead>=A&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=A-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-le&&(e.match_length=Vo(e,r),e.match_length<=5&&(e.strategy===Pd||e.match_length===A&&e.strstart-e.match_start>4096)&&(e.match_length=A-1)),e.prev_length>=A&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-A,i=ie._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-A),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=n&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=A-1,e.strstart++,i&&(U(e,!1),e.strm.avail_out===0))return W}else if(e.match_available){if(i=ie._tr_tally(e,0,e.window[e.strstart-1]),i&&U(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return W}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=ie._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<A-1?e.strstart:A-1,t===je?(U(e,!0),e.strm.avail_out===0?Xe:Ct):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:ur}function Qd(e,t){for(var r,i,n,a,s=e.window;;){if(e.lookahead<=qe){if(Je(e),e.lookahead<=qe&&t===Qe)return W;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=A&&e.strstart>0&&(n=e.strstart-1,i=s[n],i===s[++n]&&i===s[++n]&&i===s[++n])){a=e.strstart+qe;do;while(i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&n<a);e.match_length=qe-(a-n),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=A?(r=ie._tr_tally(e,1,e.match_length-A),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=ie._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(U(e,!1),e.strm.avail_out===0))return W}return e.insert=0,t===je?(U(e,!0),e.strm.avail_out===0?Xe:Ct):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:ur}function ep(e,t){for(var r;;){if(e.lookahead===0&&(Je(e),e.lookahead===0)){if(t===Qe)return W;break}if(e.match_length=0,r=ie._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(U(e,!1),e.strm.avail_out===0))return W}return e.insert=0,t===je?(U(e,!0),e.strm.avail_out===0?Xe:Ct):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:ur}function me(e,t,r,i,n){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=n}var Et;Et=[new me(0,0,0,0,Jd),new me(4,4,8,4,Hn),new me(4,5,16,8,Hn),new me(4,6,32,32,Hn),new me(4,4,16,16,St),new me(8,16,32,32,St),new me(8,16,128,128,St),new me(8,32,128,256,St),new me(32,128,258,1024,St),new me(32,258,258,4096,St)];function tp(e){e.window_size=2*e.w_size,Le(e.head),e.max_lazy_match=Et[e.level].max_lazy,e.good_match=Et[e.level].good_length,e.nice_match=Et[e.level].nice_length,e.max_chain_length=Et[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=A-1,e.match_available=0,e.ins_h=0}function rp(){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=fi,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 K.Buf16(Vd*2),this.dyn_dtree=new K.Buf16((2*$d+1)*2),this.bl_tree=new K.Buf16((2*Zd+1)*2),Le(this.dyn_ltree),Le(this.dyn_dtree),Le(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new K.Buf16(Gd+1),this.heap=new K.Buf16(2*Un+1),Le(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new K.Buf16(2*Un+1),Le(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 Go(e){var t;return!e||!e.state?Me(e,ne):(e.total_in=e.total_out=0,e.data_type=qd,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?ui:Ye,e.adler=t.wrap===2?0:1,t.last_flush=Qe,ie._tr_init(t),ge)}function Ko(e){var t=Go(e);return t===ge&&tp(e.state),t}function ip(e,t){return!e||!e.state||e.state.wrap!==2?ne:(e.state.gzhead=t,ge)}function Yo(e,t,r,i,n,a){if(!e)return ne;var s=1;if(t===Nd&&(t=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),n<1||n>Md||r!==fi||i<8||i>15||t<0||t>9||a<0||a>zd)return Me(e,ne);i===8&&(i=9);var o=new rp;return e.state=o,o.strm=e,o.wrap=s,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+A-1)/A),o.window=new K.Buf8(o.w_size*2),o.head=new K.Buf16(o.hash_size),o.prev=new K.Buf16(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new K.Buf8(o.pending_buf_size),o.d_buf=1*o.lit_bufsize,o.l_buf=3*o.lit_bufsize,o.level=t,o.strategy=a,o.method=r,Ko(e)}function np(e,t){return Yo(e,t,fi,jd,Wd,Ld)}function ap(e,t){var r,i,n,a;if(!e||!e.state||t>Ho||t<0)return e?Me(e,ne):ne;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===fr&&t!==je)return Me(e,e.avail_out===0?Wn:ne);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===ui)if(i.wrap===2)e.adler=0,T(i,31),T(i,139),T(i,8),i.gzhead?(T(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),T(i,i.gzhead.time&255),T(i,i.gzhead.time>>8&255),T(i,i.gzhead.time>>16&255),T(i,i.gzhead.time>>24&255),T(i,i.level===9?2:i.strategy>=ai||i.level<2?4:0),T(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(T(i,i.gzhead.extra.length&255),T(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=Be(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=$n):(T(i,0),T(i,0),T(i,0),T(i,0),T(i,0),T(i,i.level===9?2:i.strategy>=ai||i.level<2?4:0),T(i,Yd),i.status=Ye);else{var s=fi+(i.w_bits-8<<4)<<8,o=-1;i.strategy>=ai||i.level<2?o=0:i.level<6?o=1:i.level===6?o=2:o=3,s|=o<<6,i.strstart!==0&&(s|=Kd),s+=31-s%31,i.status=Ye,lr(i,s),i.strstart!==0&&(lr(i,e.adler>>>16),lr(i,e.adler&65535)),e.adler=1}if(i.status===$n)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),ze(e),n=i.pending,i.pending===i.pending_buf_size));)T(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=si)}else i.status=si;if(i.status===si)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),ze(e),n=i.pending,i.pending===i.pending_buf_size)){a=1;break}i.gzindex<i.gzhead.name.length?a=i.gzhead.name.charCodeAt(i.gzindex++)&255:a=0,T(i,a)}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.gzindex=0,i.status=oi)}else i.status=oi;if(i.status===oi)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),ze(e),n=i.pending,i.pending===i.pending_buf_size)){a=1;break}i.gzindex<i.gzhead.comment.length?a=i.gzhead.comment.charCodeAt(i.gzindex++)&255:a=0,T(i,a)}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.status=li)}else i.status=li;if(i.status===li&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&ze(e),i.pending+2<=i.pending_buf_size&&(T(i,e.adler&255),T(i,e.adler>>8&255),e.adler=0,i.status=Ye)):i.status=Ye),i.pending!==0){if(ze(e),e.avail_out===0)return i.last_flush=-1,ge}else if(e.avail_in===0&&$o(t)<=$o(r)&&t!==je)return Me(e,Wn);if(i.status===fr&&e.avail_in!==0)return Me(e,Wn);if(e.avail_in!==0||i.lookahead!==0||t!==Qe&&i.status!==fr){var u=i.strategy===ai?ep(i,t):i.strategy===Bd?Qd(i,t):Et[i.level].func(i,t);if((u===Xe||u===Ct)&&(i.status=fr),u===W||u===Xe)return e.avail_out===0&&(i.last_flush=-1),ge;if(u===ur&&(t===Id?ie._tr_align(i):t!==Ho&&(ie._tr_stored_block(i,0,0,!1),t===Rd&&(Le(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),ze(e),e.avail_out===0))return i.last_flush=-1,ge}return t!==je?ge:i.wrap<=0?Uo:(i.wrap===2?(T(i,e.adler&255),T(i,e.adler>>8&255),T(i,e.adler>>16&255),T(i,e.adler>>24&255),T(i,e.total_in&255),T(i,e.total_in>>8&255),T(i,e.total_in>>16&255),T(i,e.total_in>>24&255)):(lr(i,e.adler>>>16),lr(i,e.adler&65535)),ze(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?ge:Uo)}function sp(e){var t;return!e||!e.state?ne:(t=e.state.status,t!==ui&&t!==$n&&t!==si&&t!==oi&&t!==li&&t!==Ye&&t!==fr?Me(e,ne):(e.state=null,t===Ye?Me(e,Fd):ge))}function op(e,t){var r=t.length,i,n,a,s,o,u,f,l;if(!e||!e.state||(i=e.state,s=i.wrap,s===2||s===1&&i.status!==ui||i.lookahead))return ne;for(s===1&&(e.adler=Zo(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(s===0&&(Le(i.head),i.strstart=0,i.block_start=0,i.insert=0),l=new K.Buf8(i.w_size),K.arraySet(l,t,r-i.w_size,i.w_size,0),t=l,r=i.w_size),o=e.avail_in,u=e.next_in,f=e.input,e.avail_in=r,e.next_in=0,e.input=t,Je(i);i.lookahead>=A;){n=i.strstart,a=i.lookahead-(A-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+A-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++;while(--a);i.strstart=n,i.lookahead=A-1,Je(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=A-1,i.match_available=0,e.next_in=u,e.input=f,e.avail_in=o,i.wrap=s,ge}_e.deflateInit=np;_e.deflateInit2=Yo;_e.deflateReset=Ko;_e.deflateResetKeep=Go;_e.deflateSetHeader=ip;_e.deflate=ap;_e.deflateEnd=sp;_e.deflateSetDictionary=op;_e.deflateInfo="pako deflate (from Nodeca project)"});var Zn=g(Ot=>{"use strict";var hi=Ce(),Jo=!0,Qo=!0;try{String.fromCharCode.apply(null,[0])}catch{Jo=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Qo=!1}var hr=new hi.Buf8(256);for(Ae=0;Ae<256;Ae++)hr[Ae]=Ae>=252?6:Ae>=248?5:Ae>=240?4:Ae>=224?3:Ae>=192?2:1;var Ae;hr[254]=hr[254]=1;Ot.string2buf=function(e){var t,r,i,n,a,s=e.length,o=0;for(n=0;n<s;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<s&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),o+=r<128?1:r<2048?2:r<65536?3:4;for(t=new hi.Buf8(o),a=0,n=0;a<o;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<s&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|r&63):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|r&63):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|r&63);return t};function el(e,t){if(t<65534&&(e.subarray&&Qo||!e.subarray&&Jo))return String.fromCharCode.apply(null,hi.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}Ot.buf2binstring=function(e){return el(e,e.length)};Ot.binstring2buf=function(e){for(var t=new hi.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};Ot.buf2string=function(e,t){var r,i,n,a,s=t||e.length,o=new Array(s*2);for(i=0,r=0;r<s;){if(n=e[r++],n<128){o[i++]=n;continue}if(a=hr[n],a>4){o[i++]=65533,r+=a-1;continue}for(n&=a===2?31:a===3?15:7;a>1&&r<s;)n=n<<6|e[r++]&63,a--;if(a>1){o[i++]=65533;continue}n<65536?o[i++]=n:(n-=65536,o[i++]=55296|n>>10&1023,o[i++]=56320|n&1023)}return el(o,i)};Ot.utf8border=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+hr[e[r]]>t?r:t}});var Vn=g((K_,tl)=>{"use strict";function lp(){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}tl.exports=lp});var al=g(pr=>{"use strict";var cr=Xo(),dr=Ce(),Kn=Zn(),Yn=ni(),fp=Vn(),nl=Object.prototype.toString,up=0,Gn=4,At=0,rl=1,il=2,hp=-1,cp=0,dp=8;function et(e){if(!(this instanceof et))return new et(e);this.options=dr.assign({level:hp,method:dp,chunkSize:16384,windowBits:15,memLevel:8,strategy:cp,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new fp,this.strm.avail_out=0;var r=cr.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==At)throw new Error(Yn[r]);if(t.header&&cr.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=Kn.string2buf(t.dictionary):nl.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=cr.deflateSetDictionary(this.strm,i),r!==At)throw new Error(Yn[r]);this._dict_set=!0}}et.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,n,a;if(this.ended)return!1;a=t===~~t?t:t===!0?Gn:up,typeof e=="string"?r.input=Kn.string2buf(e):nl.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new dr.Buf8(i),r.next_out=0,r.avail_out=i),n=cr.deflate(r,a),n!==rl&&n!==At)return this.onEnd(n),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(a===Gn||a===il))&&(this.options.to==="string"?this.onData(Kn.buf2binstring(dr.shrinkBuf(r.output,r.next_out))):this.onData(dr.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&n!==rl);return a===Gn?(n=cr.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===At):(a===il&&(this.onEnd(At),r.avail_out=0),!0)};et.prototype.onData=function(e){this.chunks.push(e)};et.prototype.onEnd=function(e){e===At&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=dr.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Xn(e,t){var r=new et(t);if(r.push(e,!0),r.err)throw r.msg||Yn[r.err];return r.result}function pp(e,t){return t=t||{},t.raw=!0,Xn(e,t)}function mp(e,t){return t=t||{},t.gzip=!0,Xn(e,t)}pr.Deflate=et;pr.deflate=Xn;pr.deflateRaw=pp;pr.gzip=mp});var ol=g((X_,sl)=>{"use strict";var ci=30,gp=12;sl.exports=function(t,r){var i,n,a,s,o,u,f,l,h,c,d,b,w,x,_,p,y,m,v,C,E,S,O,F,k;i=t.state,n=t.next_in,F=t.input,a=n+(t.avail_in-5),s=t.next_out,k=t.output,o=s-(r-t.avail_out),u=s+(t.avail_out-257),f=i.dmax,l=i.wsize,h=i.whave,c=i.wnext,d=i.window,b=i.hold,w=i.bits,x=i.lencode,_=i.distcode,p=(1<<i.lenbits)-1,y=(1<<i.distbits)-1;e:do{w<15&&(b+=F[n++]<<w,w+=8,b+=F[n++]<<w,w+=8),m=x[b&p];t:for(;;){if(v=m>>>24,b>>>=v,w-=v,v=m>>>16&255,v===0)k[s++]=m&65535;else if(v&16){C=m&65535,v&=15,v&&(w<v&&(b+=F[n++]<<w,w+=8),C+=b&(1<<v)-1,b>>>=v,w-=v),w<15&&(b+=F[n++]<<w,w+=8,b+=F[n++]<<w,w+=8),m=_[b&y];r:for(;;){if(v=m>>>24,b>>>=v,w-=v,v=m>>>16&255,v&16){if(E=m&65535,v&=15,w<v&&(b+=F[n++]<<w,w+=8,w<v&&(b+=F[n++]<<w,w+=8)),E+=b&(1<<v)-1,E>f){t.msg="invalid distance too far back",i.mode=ci;break e}if(b>>>=v,w-=v,v=s-o,E>v){if(v=E-v,v>h&&i.sane){t.msg="invalid distance too far back",i.mode=ci;break e}if(S=0,O=d,c===0){if(S+=l-v,v<C){C-=v;do k[s++]=d[S++];while(--v);S=s-E,O=k}}else if(c<v){if(S+=l+c-v,v-=c,v<C){C-=v;do k[s++]=d[S++];while(--v);if(S=0,c<C){v=c,C-=v;do k[s++]=d[S++];while(--v);S=s-E,O=k}}}else if(S+=c-v,v<C){C-=v;do k[s++]=d[S++];while(--v);S=s-E,O=k}for(;C>2;)k[s++]=O[S++],k[s++]=O[S++],k[s++]=O[S++],C-=3;C&&(k[s++]=O[S++],C>1&&(k[s++]=O[S++]))}else{S=s-E;do k[s++]=k[S++],k[s++]=k[S++],k[s++]=k[S++],C-=3;while(C>2);C&&(k[s++]=k[S++],C>1&&(k[s++]=k[S++]))}}else if((v&64)===0){m=_[(m&65535)+(b&(1<<v)-1)];continue r}else{t.msg="invalid distance code",i.mode=ci;break e}break}}else if((v&64)===0){m=x[(m&65535)+(b&(1<<v)-1)];continue t}else if(v&32){i.mode=gp;break e}else{t.msg="invalid literal/length code",i.mode=ci;break e}break}}while(n<a&&s<u);C=w>>3,n-=C,w-=C<<3,b&=(1<<w)-1,t.next_in=n,t.next_out=s,t.avail_in=n<a?5+(a-n):5-(n-a),t.avail_out=s<u?257+(u-s):257-(s-u),i.hold=b,i.bits=w}});var pl=g((J_,dl)=>{"use strict";var ll=Ce(),Tt=15,fl=852,ul=592,hl=0,Jn=1,cl=2,_p=[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],vp=[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],bp=[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],wp=[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];dl.exports=function(t,r,i,n,a,s,o,u){var f=u.bits,l=0,h=0,c=0,d=0,b=0,w=0,x=0,_=0,p=0,y=0,m,v,C,E,S,O=null,F=0,k,Q=new ll.Buf16(Tt+1),at=new ll.Buf16(Tt+1),xr=null,Ta=0,Da,kr,Sr;for(l=0;l<=Tt;l++)Q[l]=0;for(h=0;h<n;h++)Q[r[i+h]]++;for(b=f,d=Tt;d>=1&&Q[d]===0;d--);if(b>d&&(b=d),d===0)return a[s++]=1<<24|64<<16|0,a[s++]=1<<24|64<<16|0,u.bits=1,0;for(c=1;c<d&&Q[c]===0;c++);for(b<c&&(b=c),_=1,l=1;l<=Tt;l++)if(_<<=1,_-=Q[l],_<0)return-1;if(_>0&&(t===hl||d!==1))return-1;for(at[1]=0,l=1;l<Tt;l++)at[l+1]=at[l]+Q[l];for(h=0;h<n;h++)r[i+h]!==0&&(o[at[r[i+h]]++]=h);if(t===hl?(O=xr=o,k=19):t===Jn?(O=_p,F-=257,xr=vp,Ta-=257,k=256):(O=bp,xr=wp,k=-1),y=0,h=0,l=c,S=s,w=b,x=0,C=-1,p=1<<b,E=p-1,t===Jn&&p>fl||t===cl&&p>ul)return 1;for(;;){Da=l-x,o[h]<k?(kr=0,Sr=o[h]):o[h]>k?(kr=xr[Ta+o[h]],Sr=O[F+o[h]]):(kr=96,Sr=0),m=1<<l-x,v=1<<w,c=v;do v-=m,a[S+(y>>x)+v]=Da<<24|kr<<16|Sr|0;while(v!==0);for(m=1<<l-1;y&m;)m>>=1;if(m!==0?(y&=m-1,y+=m):y=0,h++,--Q[l]===0){if(l===d)break;l=r[i+o[h]]}if(l>b&&(y&E)!==C){for(x===0&&(x=b),S+=c,w=l-x,_=1<<w;w+x<d&&(_-=Q[w+x],!(_<=0));)w++,_<<=1;if(p+=1<<w,t===Jn&&p>fl||t===cl&&p>ul)return 1;C=y&E,a[C]=b<<24|w<<16|S-s|0}}return y!==0&&(a[S+y]=l-x<<24|64<<16|0),u.bits=b,0}});var Kl=g(fe=>{"use strict";var re=Ce(),na=Mn(),ve=jn(),yp=ol(),mr=pl(),xp=0,Ml=1,jl=2,ml=4,kp=5,di=6,tt=0,Sp=1,Ep=2,ae=-2,Wl=-3,aa=-4,Cp=-5,gl=8,Hl=1,_l=2,vl=3,bl=4,wl=5,yl=6,xl=7,kl=8,Sl=9,El=10,gi=11,Te=12,Qn=13,Cl=14,ea=15,Ol=16,Al=17,Tl=18,Dl=19,pi=20,mi=21,Il=22,Rl=23,Fl=24,Nl=25,Pl=26,ta=27,Bl=28,zl=29,P=30,sa=31,Op=32,Ap=852,Tp=592,Dp=15,Ip=Dp;function Ll(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function Rp(){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 re.Buf16(320),this.work=new re.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ul(e){var t;return!e||!e.state?ae:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Hl,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new re.Buf32(Ap),t.distcode=t.distdyn=new re.Buf32(Tp),t.sane=1,t.back=-1,tt)}function $l(e){var t;return!e||!e.state?ae:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Ul(e))}function Zl(e,t){var r,i;return!e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?ae:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,$l(e))}function Vl(e,t){var r,i;return e?(i=new Rp,e.state=i,i.window=null,r=Zl(e,t),r!==tt&&(e.state=null),r):ae}function Fp(e){return Vl(e,Ip)}var ql=!0,ra,ia;function Np(e){if(ql){var t;for(ra=new re.Buf32(512),ia=new re.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(mr(Ml,e.lens,0,288,ra,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;mr(jl,e.lens,0,32,ia,0,e.work,{bits:5}),ql=!1}e.lencode=ra,e.lenbits=9,e.distcode=ia,e.distbits=5}function Gl(e,t,r,i){var n,a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new re.Buf8(a.wsize)),i>=a.wsize?(re.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(n=a.wsize-a.wnext,n>i&&(n=i),re.arraySet(a.window,t,r-i,n,a.wnext),i-=n,i?(re.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=n,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=n))),0}function Pp(e,t){var r,i,n,a,s,o,u,f,l,h,c,d,b,w,x=0,_,p,y,m,v,C,E,S,O=new re.Buf8(4),F,k,Q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return ae;r=e.state,r.mode===Te&&(r.mode=Qn),s=e.next_out,n=e.output,u=e.avail_out,a=e.next_in,i=e.input,o=e.avail_in,f=r.hold,l=r.bits,h=o,c=u,S=tt;e:for(;;)switch(r.mode){case Hl:if(r.wrap===0){r.mode=Qn;break}for(;l<16;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(r.wrap&2&&f===35615){r.check=0,O[0]=f&255,O[1]=f>>>8&255,r.check=ve(r.check,O,2,0),f=0,l=0,r.mode=_l;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((f&255)<<8)+(f>>8))%31){e.msg="incorrect header check",r.mode=P;break}if((f&15)!==gl){e.msg="unknown compression method",r.mode=P;break}if(f>>>=4,l-=4,E=(f&15)+8,r.wbits===0)r.wbits=E;else if(E>r.wbits){e.msg="invalid window size",r.mode=P;break}r.dmax=1<<E,e.adler=r.check=1,r.mode=f&512?El:Te,f=0,l=0;break;case _l:for(;l<16;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(r.flags=f,(r.flags&255)!==gl){e.msg="unknown compression method",r.mode=P;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=P;break}r.head&&(r.head.text=f>>8&1),r.flags&512&&(O[0]=f&255,O[1]=f>>>8&255,r.check=ve(r.check,O,2,0)),f=0,l=0,r.mode=vl;case vl:for(;l<32;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.head&&(r.head.time=f),r.flags&512&&(O[0]=f&255,O[1]=f>>>8&255,O[2]=f>>>16&255,O[3]=f>>>24&255,r.check=ve(r.check,O,4,0)),f=0,l=0,r.mode=bl;case bl:for(;l<16;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.head&&(r.head.xflags=f&255,r.head.os=f>>8),r.flags&512&&(O[0]=f&255,O[1]=f>>>8&255,r.check=ve(r.check,O,2,0)),f=0,l=0,r.mode=wl;case wl:if(r.flags&1024){for(;l<16;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.length=f,r.head&&(r.head.extra_len=f),r.flags&512&&(O[0]=f&255,O[1]=f>>>8&255,r.check=ve(r.check,O,2,0)),f=0,l=0}else r.head&&(r.head.extra=null);r.mode=yl;case yl:if(r.flags&1024&&(d=r.length,d>o&&(d=o),d&&(r.head&&(E=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),re.arraySet(r.head.extra,i,a,d,E)),r.flags&512&&(r.check=ve(r.check,i,d,a)),o-=d,a+=d,r.length-=d),r.length))break e;r.length=0,r.mode=xl;case xl:if(r.flags&2048){if(o===0)break e;d=0;do E=i[a+d++],r.head&&E&&r.length<65536&&(r.head.name+=String.fromCharCode(E));while(E&&d<o);if(r.flags&512&&(r.check=ve(r.check,i,d,a)),o-=d,a+=d,E)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=kl;case kl:if(r.flags&4096){if(o===0)break e;d=0;do E=i[a+d++],r.head&&E&&r.length<65536&&(r.head.comment+=String.fromCharCode(E));while(E&&d<o);if(r.flags&512&&(r.check=ve(r.check,i,d,a)),o-=d,a+=d,E)break e}else r.head&&(r.head.comment=null);r.mode=Sl;case Sl:if(r.flags&512){for(;l<16;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(f!==(r.check&65535)){e.msg="header crc mismatch",r.mode=P;break}f=0,l=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Te;break;case El:for(;l<32;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}e.adler=r.check=Ll(f),f=0,l=0,r.mode=gi;case gi:if(r.havedict===0)return e.next_out=s,e.avail_out=u,e.next_in=a,e.avail_in=o,r.hold=f,r.bits=l,Ep;e.adler=r.check=1,r.mode=Te;case Te:if(t===kp||t===di)break e;case Qn:if(r.last){f>>>=l&7,l-=l&7,r.mode=ta;break}for(;l<3;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}switch(r.last=f&1,f>>>=1,l-=1,f&3){case 0:r.mode=Cl;break;case 1:if(Np(r),r.mode=pi,t===di){f>>>=2,l-=2;break e}break;case 2:r.mode=Al;break;case 3:e.msg="invalid block type",r.mode=P}f>>>=2,l-=2;break;case Cl:for(f>>>=l&7,l-=l&7;l<32;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if((f&65535)!==(f>>>16^65535)){e.msg="invalid stored block lengths",r.mode=P;break}if(r.length=f&65535,f=0,l=0,r.mode=ea,t===di)break e;case ea:r.mode=Ol;case Ol:if(d=r.length,d){if(d>o&&(d=o),d>u&&(d=u),d===0)break e;re.arraySet(n,i,a,d,s),o-=d,a+=d,u-=d,s+=d,r.length-=d;break}r.mode=Te;break;case Al:for(;l<14;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(r.nlen=(f&31)+257,f>>>=5,l-=5,r.ndist=(f&31)+1,f>>>=5,l-=5,r.ncode=(f&15)+4,f>>>=4,l-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=P;break}r.have=0,r.mode=Tl;case Tl:for(;r.have<r.ncode;){for(;l<3;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.lens[Q[r.have++]]=f&7,f>>>=3,l-=3}for(;r.have<19;)r.lens[Q[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,F={bits:r.lenbits},S=mr(xp,r.lens,0,19,r.lencode,0,r.work,F),r.lenbits=F.bits,S){e.msg="invalid code lengths set",r.mode=P;break}r.have=0,r.mode=Dl;case Dl:for(;r.have<r.nlen+r.ndist;){for(;x=r.lencode[f&(1<<r.lenbits)-1],_=x>>>24,p=x>>>16&255,y=x&65535,!(_<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(y<16)f>>>=_,l-=_,r.lens[r.have++]=y;else{if(y===16){for(k=_+2;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(f>>>=_,l-=_,r.have===0){e.msg="invalid bit length repeat",r.mode=P;break}E=r.lens[r.have-1],d=3+(f&3),f>>>=2,l-=2}else if(y===17){for(k=_+3;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=_,l-=_,E=0,d=3+(f&7),f>>>=3,l-=3}else{for(k=_+7;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=_,l-=_,E=0,d=11+(f&127),f>>>=7,l-=7}if(r.have+d>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=P;break}for(;d--;)r.lens[r.have++]=E}}if(r.mode===P)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=P;break}if(r.lenbits=9,F={bits:r.lenbits},S=mr(Ml,r.lens,0,r.nlen,r.lencode,0,r.work,F),r.lenbits=F.bits,S){e.msg="invalid literal/lengths set",r.mode=P;break}if(r.distbits=6,r.distcode=r.distdyn,F={bits:r.distbits},S=mr(jl,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,F),r.distbits=F.bits,S){e.msg="invalid distances set",r.mode=P;break}if(r.mode=pi,t===di)break e;case pi:r.mode=mi;case mi:if(o>=6&&u>=258){e.next_out=s,e.avail_out=u,e.next_in=a,e.avail_in=o,r.hold=f,r.bits=l,yp(e,c),s=e.next_out,n=e.output,u=e.avail_out,a=e.next_in,i=e.input,o=e.avail_in,f=r.hold,l=r.bits,r.mode===Te&&(r.back=-1);break}for(r.back=0;x=r.lencode[f&(1<<r.lenbits)-1],_=x>>>24,p=x>>>16&255,y=x&65535,!(_<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(p&&(p&240)===0){for(m=_,v=p,C=y;x=r.lencode[C+((f&(1<<m+v)-1)>>m)],_=x>>>24,p=x>>>16&255,y=x&65535,!(m+_<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=m,l-=m,r.back+=m}if(f>>>=_,l-=_,r.back+=_,r.length=y,p===0){r.mode=Pl;break}if(p&32){r.back=-1,r.mode=Te;break}if(p&64){e.msg="invalid literal/length code",r.mode=P;break}r.extra=p&15,r.mode=Il;case Il:if(r.extra){for(k=r.extra;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.length+=f&(1<<r.extra)-1,f>>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=Rl;case Rl:for(;x=r.distcode[f&(1<<r.distbits)-1],_=x>>>24,p=x>>>16&255,y=x&65535,!(_<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if((p&240)===0){for(m=_,v=p,C=y;x=r.distcode[C+((f&(1<<m+v)-1)>>m)],_=x>>>24,p=x>>>16&255,y=x&65535,!(m+_<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=m,l-=m,r.back+=m}if(f>>>=_,l-=_,r.back+=_,p&64){e.msg="invalid distance code",r.mode=P;break}r.offset=y,r.extra=p&15,r.mode=Fl;case Fl:if(r.extra){for(k=r.extra;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.offset+=f&(1<<r.extra)-1,f>>>=r.extra,l-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=P;break}r.mode=Nl;case Nl:if(u===0)break e;if(d=c-u,r.offset>d){if(d=r.offset-d,d>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=P;break}d>r.wnext?(d-=r.wnext,b=r.wsize-d):b=r.wnext-d,d>r.length&&(d=r.length),w=r.window}else w=n,b=s-r.offset,d=r.length;d>u&&(d=u),u-=d,r.length-=d;do n[s++]=w[b++];while(--d);r.length===0&&(r.mode=mi);break;case Pl:if(u===0)break e;n[s++]=r.length,u--,r.mode=mi;break;case ta:if(r.wrap){for(;l<32;){if(o===0)break e;o--,f|=i[a++]<<l,l+=8}if(c-=u,e.total_out+=c,r.total+=c,c&&(e.adler=r.check=r.flags?ve(r.check,n,c,s-c):na(r.check,n,c,s-c)),c=u,(r.flags?f:Ll(f))!==r.check){e.msg="incorrect data check",r.mode=P;break}f=0,l=0}r.mode=Bl;case Bl:if(r.wrap&&r.flags){for(;l<32;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(f!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=P;break}f=0,l=0}r.mode=zl;case zl:S=Sp;break e;case P:S=Wl;break e;case sa:return aa;case Op:default:return ae}return e.next_out=s,e.avail_out=u,e.next_in=a,e.avail_in=o,r.hold=f,r.bits=l,(r.wsize||c!==e.avail_out&&r.mode<P&&(r.mode<ta||t!==ml))&&Gl(e,e.output,e.next_out,c-e.avail_out)?(r.mode=sa,aa):(h-=e.avail_in,c-=e.avail_out,e.total_in+=h,e.total_out+=c,r.total+=c,r.wrap&&c&&(e.adler=r.check=r.flags?ve(r.check,n,c,e.next_out-c):na(r.check,n,c,e.next_out-c)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Te?128:0)+(r.mode===pi||r.mode===ea?256:0),(h===0&&c===0||t===ml)&&S===tt&&(S=Cp),S)}function Bp(e){if(!e||!e.state)return ae;var t=e.state;return t.window&&(t.window=null),e.state=null,tt}function zp(e,t){var r;return!e||!e.state||(r=e.state,(r.wrap&2)===0)?ae:(r.head=t,t.done=!1,tt)}function Lp(e,t){var r=t.length,i,n,a;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==gi)?ae:i.mode===gi&&(n=1,n=na(n,t,r,0),n!==i.check)?Wl:(a=Gl(e,t,r,r),a?(i.mode=sa,aa):(i.havedict=1,tt))}fe.inflateReset=$l;fe.inflateReset2=Zl;fe.inflateResetKeep=Ul;fe.inflateInit=Fp;fe.inflateInit2=Vl;fe.inflate=Pp;fe.inflateEnd=Bp;fe.inflateGetHeader=zp;fe.inflateSetDictionary=Lp;fe.inflateInfo="pako inflate (from Nodeca project)"});var oa=g((e0,Yl)=>{"use strict";Yl.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}});var Jl=g((t0,Xl)=>{"use strict";function qp(){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}Xl.exports=qp});var ef=g(_r=>{"use strict";var Dt=Kl(),gr=Ce(),_i=Zn(),q=oa(),la=ni(),Mp=Vn(),jp=Jl(),Ql=Object.prototype.toString;function rt(e){if(!(this instanceof rt))return new rt(e);this.options=gr.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Mp,this.strm.avail_out=0;var r=Dt.inflateInit2(this.strm,t.windowBits);if(r!==q.Z_OK)throw new Error(la[r]);if(this.header=new jp,Dt.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=_i.string2buf(t.dictionary):Ql.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Dt.inflateSetDictionary(this.strm,t.dictionary),r!==q.Z_OK)))throw new Error(la[r])}rt.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,n=this.options.dictionary,a,s,o,u,f,l=!1;if(this.ended)return!1;s=t===~~t?t:t===!0?q.Z_FINISH:q.Z_NO_FLUSH,typeof e=="string"?r.input=_i.binstring2buf(e):Ql.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new gr.Buf8(i),r.next_out=0,r.avail_out=i),a=Dt.inflate(r,q.Z_NO_FLUSH),a===q.Z_NEED_DICT&&n&&(a=Dt.inflateSetDictionary(this.strm,n)),a===q.Z_BUF_ERROR&&l===!0&&(a=q.Z_OK,l=!1),a!==q.Z_STREAM_END&&a!==q.Z_OK)return this.onEnd(a),this.ended=!0,!1;r.next_out&&(r.avail_out===0||a===q.Z_STREAM_END||r.avail_in===0&&(s===q.Z_FINISH||s===q.Z_SYNC_FLUSH))&&(this.options.to==="string"?(o=_i.utf8border(r.output,r.next_out),u=r.next_out-o,f=_i.buf2string(r.output,o),r.next_out=u,r.avail_out=i-u,u&&gr.arraySet(r.output,r.output,o,u,0),this.onData(f)):this.onData(gr.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(l=!0)}while((r.avail_in>0||r.avail_out===0)&&a!==q.Z_STREAM_END);return a===q.Z_STREAM_END&&(s=q.Z_FINISH),s===q.Z_FINISH?(a=Dt.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===q.Z_OK):(s===q.Z_SYNC_FLUSH&&(this.onEnd(q.Z_OK),r.avail_out=0),!0)};rt.prototype.onData=function(e){this.chunks.push(e)};rt.prototype.onEnd=function(e){e===q.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=gr.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function fa(e,t){var r=new rt(t);if(r.push(e,!0),r.err)throw r.msg||la[r.err];return r.result}function Wp(e,t){return t=t||{},t.raw=!0,fa(e,t)}_r.Inflate=rt;_r.inflate=fa;_r.inflateRaw=Wp;_r.ungzip=fa});var nf=g((i0,rf)=>{"use strict";var Hp=Ce().assign,Up=al(),$p=ef(),Zp=oa(),tf={};Hp(tf,Up,$p,Zp);rf.exports=tf});var sf=g(bi=>{"use strict";var Vp=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",Gp=nf(),af=B(),vi=te(),Kp=Vp?"uint8array":"array";bi.magic="\b\0";function it(e,t){vi.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}af.inherits(it,vi);it.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(af.transformTo(Kp,e.data),!1)};it.prototype.flush=function(){vi.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)};it.prototype.cleanUp=function(){vi.prototype.cleanUp.call(this),this._pako=null};it.prototype._createPako=function(){this._pako=new Gp[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};bi.compressWorker=function(e){return new it("Deflate",e)};bi.uncompressWorker=function(){return new it("Inflate",{})}});var ha=g(ua=>{"use strict";var of=te();ua.STORE={magic:"\0\0",compressWorker:function(){return new of("STORE compression")},uncompressWorker:function(){return new of("STORE decompression")}};ua.DEFLATE=sf()});var ca=g(nt=>{"use strict";nt.LOCAL_FILE_HEADER="PK";nt.CENTRAL_FILE_HEADER="PK";nt.CENTRAL_DIRECTORY_END="PK";nt.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07";nt.ZIP64_CENTRAL_DIRECTORY_END="PK";nt.DATA_DESCRIPTOR="PK\x07\b"});var hf=g((o0,uf)=>{"use strict";var It=B(),Rt=te(),da=bt(),lf=Qr(),wi=ca(),R=function(e,t){var r="",i;for(i=0;i<t;i++)r+=String.fromCharCode(e&255),e=e>>>8;return r},Yp=function(e,t){var r=e;return e||(r=t?16893:33204),(r&65535)<<16},Xp=function(e){return(e||0)&63},ff=function(e,t,r,i,n,a){var s=e.file,o=e.compression,u=a!==da.utf8encode,f=It.transformTo("string",a(s.name)),l=It.transformTo("string",da.utf8encode(s.name)),h=s.comment,c=It.transformTo("string",a(h)),d=It.transformTo("string",da.utf8encode(h)),b=l.length!==s.name.length,w=d.length!==h.length,x,_,p="",y="",m="",v=s.dir,C=s.date,E={crc32:0,compressedSize:0,uncompressedSize:0};(!t||r)&&(E.crc32=e.crc32,E.compressedSize=e.compressedSize,E.uncompressedSize=e.uncompressedSize);var S=0;t&&(S|=8),!u&&(b||w)&&(S|=2048);var O=0,F=0;v&&(O|=16),n==="UNIX"?(F=798,O|=Yp(s.unixPermissions,v)):(F=20,O|=Xp(s.dosPermissions,v)),x=C.getUTCHours(),x=x<<6,x=x|C.getUTCMinutes(),x=x<<5,x=x|C.getUTCSeconds()/2,_=C.getUTCFullYear()-1980,_=_<<4,_=_|C.getUTCMonth()+1,_=_<<5,_=_|C.getUTCDate(),b&&(y=R(1,1)+R(lf(f),4)+l,p+="up"+R(y.length,2)+y),w&&(m=R(1,1)+R(lf(c),4)+d,p+="uc"+R(m.length,2)+m);var k="";k+=`
|
|
3
|
-
\0`,k+=R(S,2),k+=o.magic,k+=R(x,2),k+=R(_,2),k+=R(E.crc32,4),k+=R(E.compressedSize,4),k+=R(E.uncompressedSize,4),k+=R(f.length,2),k+=R(p.length,2);var Q=wi.LOCAL_FILE_HEADER+k+f+p,at=wi.CENTRAL_FILE_HEADER+R(F,2)+k+R(c.length,2)+"\0\0\0\0"+R(O,4)+R(i,4)+f+p+c;return{fileRecord:Q,dirRecord:at}},Jp=function(e,t,r,i,n){var a="",s=It.transformTo("string",n(i));return a=wi.CENTRAL_DIRECTORY_END+"\0\0\0\0"+R(e,2)+R(e,2)+R(t,4)+R(r,4)+R(s.length,2)+s,a},Qp=function(e){var t="";return t=wi.DATA_DESCRIPTOR+R(e.crc32,4)+R(e.compressedSize,4)+R(e.uncompressedSize,4),t};function ue(e,t,r,i){Rt.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}It.inherits(ue,Rt);ue.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,Rt.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-i-1))/r:100}}))};ue.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=ff(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0};ue.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=ff(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:Qp(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null};ue.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,i=Jp(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})};ue.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()};ue.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(r){t.error(r)}),this};ue.prototype.resume=function(){if(!Rt.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0};ue.prototype.error=function(e){var t=this._sources;if(!Rt.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch{}return!0};ue.prototype.lock=function(){Rt.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()};uf.exports=ue});var df=g(cf=>{"use strict";var em=ha(),tm=hf(),rm=function(e,t){var r=e||t,i=em[r];if(!i)throw new Error(r+" is not a valid compression method !");return i};cf.generateWorker=function(e,t,r){var i=new tm(t.streamFiles,r,t.platform,t.encodeFileName),n=0;try{e.forEach(function(a,s){n++;var o=rm(s.options.compression,t.compression),u=s.options.compressionOptions||t.compressionOptions||{},f=s.dir,l=s.date;s._compressWorker(o,u).withStreamInfo("file",{name:a,dir:f,date:l,comment:s.comment||"",unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions}).pipe(i)}),i.entriesCount=n}catch(a){i.error(a)}return i}});var mf=g((f0,pf)=>{"use strict";var im=B(),yi=te();function vr(e,t){yi.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}im.inherits(vr,yi);vr.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",function(r){t.push({data:r,meta:{percent:0}})}).on("error",function(r){t.isPaused?this.generatedError=r:t.error(r)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})};vr.prototype.pause=function(){return yi.prototype.pause.call(this)?(this._stream.pause(),!0):!1};vr.prototype.resume=function(){return yi.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),!0):!1};pf.exports=vr});var Ef=g((u0,Sf)=>{"use strict";var nm=bt(),br=B(),bf=te(),am=vn(),wf=bn(),gf=ei(),sm=go(),om=df(),_f=Gt(),lm=mf(),yf=function(e,t,r){var i=br.getTypeOf(t),n,a=br.extend(r||{},wf);a.date=a.date||new Date,a.compression!==null&&(a.compression=a.compression.toUpperCase()),typeof a.unixPermissions=="string"&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&a.unixPermissions&16384&&(a.dir=!0),a.dosPermissions&&a.dosPermissions&16&&(a.dir=!0),a.dir&&(e=xf(e)),a.createFolders&&(n=fm(e))&&kf.call(this,n,!0);var s=i==="string"&&a.binary===!1&&a.base64===!1;(!r||typeof r.binary>"u")&&(a.binary=!s);var o=t instanceof gf&&t.uncompressedSize===0;(o||a.dir||!t||t.length===0)&&(a.base64=!1,a.binary=!0,t="",a.compression="STORE",i="string");var u=null;t instanceof gf||t instanceof bf?u=t:_f.isNode&&_f.isStream(t)?u=new lm(e,t):u=br.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64);var f=new sm(e,u,a);this.files[e]=f},fm=function(e){e.slice(-1)==="/"&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},xf=function(e){return e.slice(-1)!=="/"&&(e+="/"),e},kf=function(e,t){return t=typeof t<"u"?t:wf.createFolders,e=xf(e),this.files[e]||yf.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function vf(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var um={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,i;for(t in this.files)i=this.files[t],r=t.slice(this.root.length,t.length),r&&t.slice(0,this.root.length)===this.root&&e(r,i)},filter:function(e){var t=[];return this.forEach(function(r,i){e(r,i)&&t.push(i)}),t},file:function(e,t,r){if(arguments.length===1)if(vf(e)){var i=e;return this.filter(function(a,s){return!s.dir&&i.test(a)})}else{var n=this.files[this.root+e];return n&&!n.dir?n:null}else e=this.root+e,yf.call(this,e,t,r);return this},folder:function(e){if(!e)return this;if(vf(e))return this.filter(function(n,a){return a.dir&&e.test(n)});var t=this.root+e,r=kf.call(this,t),i=this.clone();return i.root=r.name,i},remove:function(e){e=this.root+e;var t=this.files[e];if(t||(e.slice(-1)!=="/"&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(n,a){return a.name.slice(0,e.length)===e}),i=0;i<r.length;i++)delete this.files[r[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if(r=br.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:nm.utf8encode}),r.type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),r.type==="binarystring"&&(r.type="string"),!r.type)throw new Error("No output type specified.");br.checkSupport(r.type),(r.platform==="darwin"||r.platform==="freebsd"||r.platform==="linux"||r.platform==="sunos")&&(r.platform="UNIX"),r.platform==="win32"&&(r.platform="DOS");var i=r.comment||this.comment||"";t=om.generateWorker(this,r,i)}catch(n){t=new bf("error"),t.error(n)}return new am(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return e=e||{},e.type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};Sf.exports=um});var pa=g((h0,Of)=>{"use strict";var hm=B();function Cf(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}Cf.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t=0,r;for(this.checkOffset(e),r=this.index+e-1;r>=this.index;r--)t=(t<<8)+this.byteAt(r);return this.index+=e,t},readString:function(e){return hm.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1))}};Of.exports=Cf});var ma=g((c0,Tf)=>{"use strict";var Af=pa(),cm=B();function Ft(e){Af.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255}cm.inherits(Ft,Af);Ft.prototype.byteAt=function(e){return this.data[this.zero+e]};Ft.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===t&&this.data[a+1]===r&&this.data[a+2]===i&&this.data[a+3]===n)return a-this.zero;return-1};Ft.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&r===a[1]&&i===a[2]&&n===a[3]};Ft.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Tf.exports=Ft});var Rf=g((d0,If)=>{"use strict";var Df=pa(),dm=B();function Nt(e){Df.call(this,e)}dm.inherits(Nt,Df);Nt.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};Nt.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};Nt.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};Nt.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};If.exports=Nt});var _a=g((p0,Nf)=>{"use strict";var Ff=ma(),pm=B();function ga(e){Ff.call(this,e)}pm.inherits(ga,Ff);ga.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Nf.exports=ga});var zf=g((m0,Bf)=>{"use strict";var Pf=_a(),mm=B();function va(e){Pf.call(this,e)}mm.inherits(va,Pf);va.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Bf.exports=va});var ba=g((g0,qf)=>{"use strict";var xi=B(),Lf=Se(),gm=ma(),_m=Rf(),vm=zf(),bm=_a();qf.exports=function(e){var t=xi.getTypeOf(e);return xi.checkSupport(t),t==="string"&&!Lf.uint8array?new _m(e):t==="nodebuffer"?new vm(e):Lf.uint8array?new bm(xi.transformTo("uint8array",e)):new gm(xi.transformTo("array",e))}});var Hf=g((_0,Wf)=>{"use strict";var wa=ba(),We=B(),wm=ei(),Mf=Qr(),ki=bt(),Si=ha(),ym=Se(),xm=0,km=3,Sm=function(e){for(var t in Si)if(Object.prototype.hasOwnProperty.call(Si,t)&&Si[t].magic===e)return Si[t];return null};function jf(e,t){this.options=e,this.loadOptions=t}jf.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),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(t=Sm(this.compressionMethod),t===null)throw new Error("Corrupted zip : compression "+We.pretty(this.compressionMethod)+" unknown (inner file : "+We.transformTo("string",this.fileName)+")");this.decompressed=new wm(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),e===xm&&(this.dosPermissions=this.externalFileAttributes&63),e===km&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=wa(this.extraFields[1].value);this.uncompressedSize===We.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===We.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===We.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===We.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t=e.index+this.extraFieldsLength,r,i,n;for(this.extraFields||(this.extraFields={});e.index+4<t;)r=e.readInt(2),i=e.readInt(2),n=e.readData(i),this.extraFields[r]={id:r,length:i,value:n};e.setIndex(t)},handleUTF8:function(){var e=ym.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=ki.utf8decode(this.fileName),this.fileCommentStr=ki.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var r=We.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var i=this.findExtraFieldUnicodeComment();if(i!==null)this.fileCommentStr=i;else{var n=We.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(n)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=wa(e.value);return t.readInt(1)!==1||Mf(this.fileName)!==t.readInt(4)?null:ki.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=wa(e.value);return t.readInt(1)!==1||Mf(this.fileComment)!==t.readInt(4)?null:ki.utf8decode(t.readData(e.length-5))}return null}};Wf.exports=jf});var Zf=g((v0,$f)=>{"use strict";var Em=ba(),De=B(),he=ca(),Cm=Hf(),Om=Se();function Uf(e){this.files=[],this.loadOptions=e}Uf.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+De.pretty(t)+", expected "+De.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4),n=i===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=Om.uint8array?"uint8array":"array",r=De.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e=this.zip64EndOfCentralSize-44,t=0,r,i,n;t<e;)r=this.reader.readInt(2),i=this.reader.readInt(4),n=this.reader.readData(i),this.zip64ExtensibleData[r]={id:r,length:i,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(he.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(he.CENTRAL_FILE_HEADER);)e=new Cm({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e);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 e=this.reader.lastIndexOfSignature(he.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,he.LOCAL_FILE_HEADER);throw t?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"):new Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(e);var r=e;if(this.checkSignature(he.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===De.MAX_VALUE_16BITS||this.diskWithCentralDirStart===De.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===De.MAX_VALUE_16BITS||this.centralDirRecords===De.MAX_VALUE_16BITS||this.centralDirSize===De.MAX_VALUE_32BITS||this.centralDirOffset===De.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(he.ZIP64_CENTRAL_DIRECTORY_LOCATOR),e<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(he.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,he.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(he.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(he.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var n=r-i;if(n>0)this.isSignature(r,he.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=Em(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};$f.exports=Uf});var Kf=g((b0,Gf)=>{"use strict";var ya=B(),Ei=gt(),Am=bt(),Tm=Zf(),Dm=xn(),Vf=Gt();function Im(e){return new Ei.Promise(function(t,r){var i=e.decompressed.getContentWorker().pipe(new Dm);i.on("error",function(n){r(n)}).on("end",function(){i.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}Gf.exports=function(e,t){var r=this;return t=ya.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:Am.utf8decode}),Vf.isNode&&Vf.isStream(e)?Ei.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):ya.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(i){var n=new Tm(t);return n.load(i),n}).then(function(n){var a=[Ei.Promise.resolve(n)],s=n.files;if(t.checkCRC32)for(var o=0;o<s.length;o++)a.push(Im(s[o]));return Ei.Promise.all(a)}).then(function(n){for(var a=n.shift(),s=a.files,o=0;o<s.length;o++){var u=s[o],f=u.fileNameStr,l=ya.resolve(u.fileNameStr);r.file(l,u.decompressed,{binary:!0,optimizedBinaryString:!0,date:u.date,dir:u.dir,comment:u.fileCommentStr.length?u.fileCommentStr:null,unixPermissions:u.unixPermissions,dosPermissions:u.dosPermissions,createFolders:t.createFolders}),u.dir||(r.file(l).unsafeOriginalName=f)}return a.zipComment.length&&(r.comment=a.zipComment),r})}});var Xf=g((w0,Yf)=>{"use strict";function se(){if(!(this instanceof se))return new se;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new se;for(var t in this)typeof this[t]!="function"&&(e[t]=this[t]);return e}}se.prototype=Ef();se.prototype.loadAsync=Kf();se.support=Se();se.defaults=bn();se.version="3.10.1";se.loadAsync=function(e,t){return new se().loadAsync(e,t)};se.external=gt();Yf.exports=se});var Ie=class extends Error{constructor(t,r,i){super(i),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=t,this.nestedError=void 0}},He=class extends Ie{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};var Pt=class{constructor(t,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t;break}this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:(r.push(t),r)}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,i)=>{if(!this.argChoices.includes(r))throw new He(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(r,i):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function Er(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}import{EventEmitter as Au}from"node:events";import Di from"node:child_process";import we from"node:path";import Or from"node:fs";import D from"node:process";import{stripVTControlCharacters as Tu}from"node:util";import{stripVTControlCharacters as Eu}from"node:util";var Bt=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(t){this.helpWidth=this.helpWidth??t.helpWidth??80}visibleCommands(t){let r=t.commands.filter(n=>!n._hidden),i=t._getHelpCommand();return i&&!i._hidden&&r.push(i),this.sortSubcommands&&r.sort((n,a)=>n.name().localeCompare(a.name())),r}compareOptions(t,r){let i=n=>n.short?n.short.replace(/^-/,""):n.long.replace(/^--/,"");return i(t).localeCompare(i(r))}visibleOptions(t){let r=t.options.filter(n=>!n.hidden),i=t._getHelpOption();if(i&&!i.hidden){let n=i.short&&t._findOption(i.short),a=i.long&&t._findOption(i.long);!n&&!a?r.push(i):i.long&&!a?r.push(t.createOption(i.long,i.description)):i.short&&!n&&r.push(t.createOption(i.short,i.description))}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];let r=[];for(let i=t.parent;i;i=i.parent){let n=i.options.filter(a=>!a.hidden);r.push(...n)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach(r=>{r.description=r.description||t._argsDescription[r.name()]||""}),t.registeredArguments.find(r=>r.description)?t.registeredArguments:[]}subcommandTerm(t){let r=t.registeredArguments.map(i=>Er(i)).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,r){return r.visibleCommands(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleSubcommandTerm(r.subcommandTerm(n)))),0)}longestOptionTermLength(t,r){return r.visibleOptions(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestGlobalOptionTermLength(t,r){return r.visibleGlobalOptions(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestArgumentTermLength(t,r){return r.visibleArguments(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleArgumentTerm(r.argumentTerm(n)))),0)}commandUsage(t){let r=t._name;t._aliases[0]&&(r=r+"|"+t._aliases[0]);let i="";for(let n=t.parent;n;n=n.parent)i=n.name()+" "+i;return i+r+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),t.defaultValue!==void 0&&(t.required||t.optional||t.isBoolean()&&typeof t.defaultValue=="boolean")&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),t.presetArg!==void 0&&t.optional&&r.push(`preset: ${JSON.stringify(t.presetArg)}`),t.envVar!==void 0&&r.push(`env: ${t.envVar}`),r.length>0){let i=`(${r.join(", ")})`;return t.description?`${t.description} ${i}`:i}return t.description}argumentDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),t.defaultValue!==void 0&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),r.length>0){let i=`(${r.join(", ")})`;return t.description?`${t.description} ${i}`:i}return t.description}formatItemList(t,r,i){return r.length===0?[]:[i.styleTitle(t),...r,""]}groupItems(t,r,i){let n=new Map;return t.forEach(a=>{let s=i(a);n.has(s)||n.set(s,[])}),r.forEach(a=>{let s=i(a);n.has(s)||n.set(s,[]),n.get(s).push(a)}),n}formatHelp(t,r){let i=r.padWidth(t,r),n=r.helpWidth??80;function a(h,c){return r.formatItem(h,i,c,r)}let s=[`${r.styleTitle("Usage:")} ${r.styleUsage(r.commandUsage(t))}`,""],o=r.commandDescription(t);o.length>0&&(s=s.concat([r.boxWrap(r.styleCommandDescription(o),n),""]));let u=r.visibleArguments(t).map(h=>a(r.styleArgumentTerm(r.argumentTerm(h)),r.styleArgumentDescription(r.argumentDescription(h))));if(s=s.concat(this.formatItemList("Arguments:",u,r)),this.groupItems(t.options,r.visibleOptions(t),h=>h.helpGroupHeading??"Options:").forEach((h,c)=>{let d=h.map(b=>a(r.styleOptionTerm(r.optionTerm(b)),r.styleOptionDescription(r.optionDescription(b))));s=s.concat(this.formatItemList(c,d,r))}),r.showGlobalOptions){let h=r.visibleGlobalOptions(t).map(c=>a(r.styleOptionTerm(r.optionTerm(c)),r.styleOptionDescription(r.optionDescription(c))));s=s.concat(this.formatItemList("Global Options:",h,r))}return this.groupItems(t.commands,r.visibleCommands(t),h=>h.helpGroup()||"Commands:").forEach((h,c)=>{let d=h.map(b=>a(r.styleSubcommandTerm(r.subcommandTerm(b)),r.styleSubcommandDescription(r.subcommandDescription(b))));s=s.concat(this.formatItemList(c,d,r))}),s.join(`
|
|
4
|
-
`)}displayWidth(t){return
|
|
2
|
+
var bu=Object.create;var Ia=Object.defineProperty;var wu=Object.getOwnPropertyDescriptor;var yu=Object.getOwnPropertyNames;var xu=Object.getPrototypeOf,ku=Object.prototype.hasOwnProperty;var be=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Su=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of yu(t))!ku.call(e,n)&&n!==r&&Ia(e,n,{get:()=>t[n],enumerable:!(i=wu(t,n))||i.enumerable});return e};var Eu=(e,t,r)=>(r=e!=null?bu(xu(e)):{},Su(t||!e||!e.__esModule?Ia(r,"default",{value:e,enumerable:!0}):r,e));var Mt=g((o_,Ri)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Ri.exports={nextTick:eh}:Ri.exports=process;function eh(e,t,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,a,s;switch(n){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,r)});case 4:return process.nextTick(function(){e.call(null,t,r,i)});default:for(a=new Array(n-1),s=0;s<a.length;)a[s++]=arguments[s];return process.nextTick(function(){e.apply(null,a)})}}});var qa=g((l_,La)=>{var th={}.toString;La.exports=Array.isArray||function(e){return th.call(e)=="[object Array]"}});var Fi=g((f_,Ma)=>{Ma.exports=be("stream")});var jt=g((Ni,Wa)=>{var Br=be("buffer"),ye=Br.Buffer;function ja(e,t){for(var r in e)t[r]=e[r]}ye.from&&ye.alloc&&ye.allocUnsafe&&ye.allocUnsafeSlow?Wa.exports=Br:(ja(Br,Ni),Ni.Buffer=lt);function lt(e,t,r){return ye(e,t,r)}ja(ye,lt);lt.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ye(e,t,r)};lt.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=ye(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};lt.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ye(e)};lt.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Br.SlowBuffer(e)}});var ft=g(Z=>{function rh(e){return Array.isArray?Array.isArray(e):zr(e)==="[object Array]"}Z.isArray=rh;function ih(e){return typeof e=="boolean"}Z.isBoolean=ih;function nh(e){return e===null}Z.isNull=nh;function ah(e){return e==null}Z.isNullOrUndefined=ah;function sh(e){return typeof e=="number"}Z.isNumber=sh;function oh(e){return typeof e=="string"}Z.isString=oh;function lh(e){return typeof e=="symbol"}Z.isSymbol=lh;function fh(e){return e===void 0}Z.isUndefined=fh;function uh(e){return zr(e)==="[object RegExp]"}Z.isRegExp=uh;function hh(e){return typeof e=="object"&&e!==null}Z.isObject=hh;function ch(e){return zr(e)==="[object Date]"}Z.isDate=ch;function dh(e){return zr(e)==="[object Error]"||e instanceof Error}Z.isError=dh;function ph(e){return typeof e=="function"}Z.isFunction=ph;function mh(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}Z.isPrimitive=mh;Z.isBuffer=be("buffer").Buffer.isBuffer;function zr(e){return Object.prototype.toString.call(e)}});var Ha=g((h_,Pi)=>{typeof Object.create=="function"?Pi.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Pi.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var ut=g((c_,zi)=>{try{if(Bi=be("util"),typeof Bi.inherits!="function")throw"";zi.exports=Bi.inherits}catch{zi.exports=Ha()}var Bi});var $a=g((d_,Li)=>{"use strict";function gh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Ua=jt().Buffer,Wt=be("util");function _h(e,t,r){e.copy(t,r)}Li.exports=(function(){function e(){gh(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},e.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},e.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},e.prototype.concat=function(r){if(this.length===0)return Ua.alloc(0);for(var i=Ua.allocUnsafe(r>>>0),n=this.head,a=0;n;)_h(n.data,i,a),a+=n.data.length,n=n.next;return i},e})();Wt&&Wt.inspect&&Wt.inspect.custom&&(Li.exports.prototype[Wt.inspect.custom]=function(){var e=Wt.inspect({length:this.length});return this.constructor.name+" "+e})});var qi=g((p_,Za)=>{"use strict";var Lr=Mt();function vh(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Lr.nextTick(qr,this,e)):Lr.nextTick(qr,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,Lr.nextTick(qr,r,a)):Lr.nextTick(qr,r,a):t&&t(a)}),this)}function bh(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function qr(e,t){e.emit("error",t)}Za.exports={destroy:vh,undestroy:bh}});var Ga=g((m_,Va)=>{Va.exports=be("util").deprecate});var ji=g((g_,rs)=>{"use strict";var $e=Mt();rs.exports=M;function Ya(e){var t=this;this.next=null,this.entry=null,this.finish=function(){zh(t,e)}}var wh=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:$e.nextTick,ht;M.WritableState=Ut;var Xa=Object.create(ft());Xa.inherits=ut();var yh={deprecate:Ga()},Ja=Fi(),jr=jt().Buffer,xh=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function kh(e){return jr.from(e)}function Sh(e){return jr.isBuffer(e)||e instanceof xh}var Qa=qi();Xa.inherits(M,Ja);function Eh(){}function Ut(e,t){ht=ht||Ze(),e=e||{};var r=t instanceof ht;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,n=e.writableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=e.decodeStrings===!1;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(o){Rh(t,o)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ya(this)}Ut.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Ut.prototype,"buffer",{get:yh.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Mr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Mr=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(e){return Mr.call(this,e)?!0:this!==M?!1:e&&e._writableState instanceof Ut}})):Mr=function(e){return e instanceof this};function M(e){if(ht=ht||Ze(),!Mr.call(M,this)&&!(this instanceof ht))return new M(e);this._writableState=new Ut(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Ja.call(this)}M.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Ch(e,t){var r=new Error("write after end");e.emit("error",r),$e.nextTick(t,r)}function Oh(e,t,r,i){var n=!0,a=!1;return r===null?a=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),$e.nextTick(i,a),n=!1),n}M.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&Sh(e);return a&&!jr.isBuffer(e)&&(e=kh(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=Eh),i.ended?Ch(this,r):(a||Oh(this,i,e,r))&&(i.pendingcb++,n=Th(this,i,a,e,t,r)),n};M.prototype.cork=function(){var e=this._writableState;e.corked++};M.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&es(this,e))};M.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function Ah(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=jr.from(t,r)),t}Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Th(e,t,r,i,n,a){if(!r){var s=Ah(t,i,n);i!==s&&(r=!0,n="buffer",i=s)}var o=t.objectMode?1:i.length;t.length+=o;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Mi(e,t,!1,o,i,n,a);return u}function Mi(e,t,r,i,n,a,s){t.writelen=i,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}function Dh(e,t,r,i,n){--t.pendingcb,r?($e.nextTick(n,i),$e.nextTick(Ht,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(n(i),e._writableState.errorEmitted=!0,e.emit("error",i),Ht(e,t))}function Ih(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Rh(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(Ih(r),t)Dh(e,r,i,t,n);else{var a=ts(r);!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&es(e,r),i?wh(Ka,e,r,a,n):Ka(e,r,a,n)}}function Ka(e,t,r,i){r||Fh(e,t),t.pendingcb--,i(),Ht(e,t)}function Fh(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function es(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),a=t.corkedRequestsFree;a.entry=r;for(var s=0,o=!0;r;)n[s]=r,r.isBuf||(o=!1),r=r.next,s+=1;n.allBuffers=o,Mi(e,t,!0,t.length,n,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new Ya(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,l=r.callback,h=t.objectMode?1:u.length;if(Mi(e,t,!1,h,u,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}M.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};M.prototype._writev=null;M.prototype.end=function(e,t,r){var i=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||Bh(this,i,r)};function ts(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Nh(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),Ht(e,t)})}function Ph(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,$e.nextTick(Nh,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Ht(e,t){var r=ts(t);return r&&(Ph(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function Bh(e,t,r){t.ending=!0,Ht(e,t),r&&(t.finished?$e.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function zh(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(M.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});M.prototype.destroy=Qa.destroy;M.prototype._undestroy=Qa.undestroy;M.prototype._destroy=function(e,t){this.end(),t(e)}});var Ze=g((__,ss)=>{"use strict";var is=Mt(),Lh=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};ss.exports=xe;var ns=Object.create(ft());ns.inherits=ut();var as=Ui(),Hi=ji();ns.inherits(xe,as);for(Wi=Lh(Hi.prototype),Wr=0;Wr<Wi.length;Wr++)Hr=Wi[Wr],xe.prototype[Hr]||(xe.prototype[Hr]=Hi.prototype[Hr]);var Wi,Hr,Wr;function xe(e){if(!(this instanceof xe))return new xe(e);as.call(this,e),Hi.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",qh)}Object.defineProperty(xe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function qh(){this.allowHalfOpen||this._writableState.ended||is.nextTick(Mh,this)}function Mh(e){e.end()}Object.defineProperty(xe.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}});xe.prototype._destroy=function(e,t){this.push(null),this.end(),is.nextTick(t,e)}});var Vi=g(ls=>{"use strict";var Zi=jt().Buffer,os=Zi.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function jh(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function Wh(e){var t=jh(e);if(typeof t!="string"&&(Zi.isEncoding===os||!os(e)))throw new Error("Unknown encoding: "+e);return t||e}ls.StringDecoder=$t;function $t(e){this.encoding=Wh(e);var t;switch(this.encoding){case"utf16le":this.text=Gh,this.end=Kh,t=4;break;case"utf8":this.fillLast=$h,t=4;break;case"base64":this.text=Yh,this.end=Xh,t=3;break;default:this.write=Jh,this.end=Qh;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Zi.allocUnsafe(t)}$t.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};$t.prototype.end=Vh;$t.prototype.text=Zh;$t.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function $i(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Hh(e,t,r){var i=t.length-1;if(i<r)return 0;var n=$i(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||n===-2?0:(n=$i(t[i]),n>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||n===-2?0:(n=$i(t[i]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function Uh(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function $h(e){var t=this.lastTotal-this.lastNeed,r=Uh(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function Zh(e,t){var r=Hh(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function Vh(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function Gh(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function Kh(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function Yh(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function Xh(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function Jh(e){return e.toString(this.encoding)}function Qh(e){return e&&e.length?this.write(e):""}});var Ui=g((w_,ws)=>{"use strict";var dt=Mt();ws.exports=B;var ec=qa(),Zt;B.ReadableState=ms;var b_=be("events").EventEmitter,cs=function(e,t){return e.listeners(t).length},Ji=Fi(),Vt=jt().Buffer,tc=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function rc(e){return Vt.from(e)}function ic(e){return Vt.isBuffer(e)||e instanceof tc}var ds=Object.create(ft());ds.inherits=ut();var Gi=be("util"),I=void 0;Gi&&Gi.debuglog?I=Gi.debuglog("stream"):I=function(){};var nc=$a(),ps=qi(),ct;ds.inherits(B,Ji);var Ki=["error","close","destroy","pause","resume"];function ac(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):ec(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function ms(e,t){Zt=Zt||Ze(),e=e||{};var r=t instanceof Zt;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,n=e.readableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new nc,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(ct||(ct=Vi().StringDecoder),this.decoder=new ct(e.encoding),this.encoding=e.encoding)}function B(e){if(Zt=Zt||Ze(),!(this instanceof B))return new B(e);this._readableState=new ms(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Ji.call(this)}Object.defineProperty(B.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});B.prototype.destroy=ps.destroy;B.prototype._undestroy=ps.undestroy;B.prototype._destroy=function(e,t){this.push(null),t(e)};B.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Vt.from(e,t),t=""),i=!0),gs(this,e,t,!1,i)};B.prototype.unshift=function(e){return gs(this,e,null,!0,!1)};function gs(e,t,r,i,n){var a=e._readableState;if(t===null)a.reading=!1,fc(e,a);else{var s;n||(s=sc(a,t)),s?e.emit("error",s):a.objectMode||t&&t.length>0?(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==Vt.prototype&&(t=rc(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):Yi(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?Yi(e,a,t,!1):_s(e,a)):Yi(e,a,t,!1))):i||(a.reading=!1)}return oc(a)}function Yi(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&Ur(e)),_s(e,t)}function sc(e,t){var r;return!ic(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function oc(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}B.prototype.isPaused=function(){return this._readableState.flowing===!1};B.prototype.setEncoding=function(e){return ct||(ct=Vi().StringDecoder),this._readableState.decoder=new ct(e),this._readableState.encoding=e,this};var fs=8388608;function lc(e){return e>=fs?e=fs:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function us(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=lc(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}B.prototype.read=function(e){I("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return I("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Xi(this):Ur(this),null;if(e=us(e,t),e===0&&t.ended)return t.length===0&&Xi(this),null;var i=t.needReadable;I("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,I("length less than watermark",i)),t.ended||t.reading?(i=!1,I("reading or ended",i)):i&&(I("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=us(r,t)));var n;return e>0?n=vs(e,t):n=null,n===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Xi(this)),n!==null&&this.emit("data",n),n};function fc(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,Ur(e)}}function Ur(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(I("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?dt.nextTick(hs,e):hs(e))}function hs(e){I("emit readable"),e.emit("readable"),Qi(e)}function _s(e,t){t.readingMore||(t.readingMore=!0,dt.nextTick(uc,e,t))}function uc(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(I("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}B.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};B.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,I("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,a=n?o:x;i.endEmitted?dt.nextTick(a):r.once("end",a),e.on("unpipe",s);function s(_,p){I("onunpipe"),_===r&&p&&p.hasUnpiped===!1&&(p.hasUnpiped=!0,l())}function o(){I("onend"),e.end()}var u=hc(r);e.on("drain",u);var f=!1;function l(){I("cleanup"),e.removeListener("close",b),e.removeListener("finish",w),e.removeListener("drain",u),e.removeListener("error",d),e.removeListener("unpipe",s),r.removeListener("end",o),r.removeListener("end",x),r.removeListener("data",c),f=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}var h=!1;r.on("data",c);function c(_){I("ondata"),h=!1;var p=e.write(_);p===!1&&!h&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&bs(i.pipes,e)!==-1)&&!f&&(I("false write response, pause",i.awaitDrain),i.awaitDrain++,h=!0),r.pause())}function d(_){I("onerror",_),x(),e.removeListener("error",d),cs(e,"error")===0&&e.emit("error",_)}ac(e,"error",d);function b(){e.removeListener("finish",w),x()}e.once("close",b);function w(){I("onfinish"),e.removeListener("close",b),x()}e.once("finish",w);function x(){I("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(I("pipe resume"),r.resume()),e};function hc(e){return function(){var t=e._readableState;I("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&cs(e,"data")&&(t.flowing=!0,Qi(e))}}B.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var s=bs(t.pipes,e);return s===-1?this:(t.pipes.splice(s,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};B.prototype.on=function(e,t){var r=Ji.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&Ur(this):dt.nextTick(cc,this))}return r};B.prototype.addListener=B.prototype.on;function cc(e){I("readable nexttick read 0"),e.read(0)}B.prototype.resume=function(){var e=this._readableState;return e.flowing||(I("resume"),e.flowing=!0,dc(this,e)),this};function dc(e,t){t.resumeScheduled||(t.resumeScheduled=!0,dt.nextTick(pc,e,t))}function pc(e,t){t.reading||(I("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Qi(e),t.flowing&&!t.reading&&e.read(0)}B.prototype.pause=function(){return I("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(I("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Qi(e){var t=e._readableState;for(I("flow",t.flowing);t.flowing&&e.read()!==null;);}B.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(I("wrapped end"),r.decoder&&!r.ended){var s=r.decoder.end();s&&s.length&&t.push(s)}t.push(null)}),e.on("data",function(s){if(I("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var o=t.push(s);o||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(s){return function(){return e[s].apply(e,arguments)}})(n));for(var a=0;a<Ki.length;a++)e.on(Ki[a],this.emit.bind(this,Ki[a]));return this._read=function(s){I("wrapped _read",s),i&&(i=!1,e.resume())},this};Object.defineProperty(B.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});B._fromList=vs;function vs(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=mc(e,t.buffer,t.decoder),r}function mc(e,t,r){var i;return e<t.head.data.length?(i=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?i=t.shift():i=r?gc(e,t):_c(e,t),i}function gc(e,t){var r=t.head,i=1,n=r.data;for(e-=n.length;r=r.next;){var a=r.data,s=e>a.length?a.length:e;if(s===a.length?n+=a:n+=a.slice(0,e),e-=s,e===0){s===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(s));break}++i}return t.length-=i,n}function _c(e,t){var r=Vt.allocUnsafe(e),i=t.head,n=1;for(i.data.copy(r),e-=i.data.length;i=i.next;){var a=i.data,s=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,s),e-=s,e===0){s===a.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=a.slice(s));break}++n}return t.length-=n,r}function Xi(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,dt.nextTick(vc,t,e))}function vc(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function bs(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var en=g((y_,ks)=>{"use strict";ks.exports=ke;var $r=Ze(),xs=Object.create(ft());xs.inherits=ut();xs.inherits(ke,$r);function bc(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function ke(e){if(!(this instanceof ke))return new ke(e);$r.call(this,e),this._transformState={afterTransform:bc.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",wc)}function wc(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){ys(e,t,r)}):ys(this,null,null)}ke.prototype.push=function(e,t){return this._transformState.needTransform=!1,$r.prototype.push.call(this,e,t)};ke.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};ke.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};ke.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};ke.prototype._destroy=function(e,t){var r=this;$r.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function ys(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var Os=g((x_,Cs)=>{"use strict";Cs.exports=Gt;var Ss=en(),Es=Object.create(ft());Es.inherits=ut();Es.inherits(Gt,Ss);function Gt(e){if(!(this instanceof Gt))return new Gt(e);Ss.call(this,e)}Gt.prototype._transform=function(e,t,r){r(null,e)}});var tn=g((H,Zr)=>{var ce=be("stream");process.env.READABLE_STREAM==="disable"&&ce?(Zr.exports=ce,H=Zr.exports=ce.Readable,H.Readable=ce.Readable,H.Writable=ce.Writable,H.Duplex=ce.Duplex,H.Transform=ce.Transform,H.PassThrough=ce.PassThrough,H.Stream=ce):(H=Zr.exports=Ui(),H.Stream=ce||H,H.Readable=H,H.Writable=ji(),H.Duplex=Ze(),H.Transform=en(),H.PassThrough=Os())});var Se=g(ee=>{"use strict";ee.base64=!0;ee.array=!0;ee.string=!0;ee.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";ee.nodebuffer=typeof Buffer<"u";ee.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")ee.blob=!1;else{rn=new ArrayBuffer(0);try{ee.blob=new Blob([rn],{type:"application/zip"}).size===0}catch{try{As=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,nn=new As,nn.append(rn),ee.blob=nn.getBlob("application/zip").size===0}catch{ee.blob=!1}}}var rn,As,nn;try{ee.nodestream=!!tn().Readable}catch{ee.nodestream=!1}});var sn=g(an=>{"use strict";var yc=L(),xc=Se(),de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";an.encode=function(e){for(var t=[],r,i,n,a,s,o,u,f=0,l=e.length,h=l,c=yc.getTypeOf(e)!=="string";f<e.length;)h=l-f,c?(r=e[f++],i=f<l?e[f++]:0,n=f<l?e[f++]:0):(r=e.charCodeAt(f++),i=f<l?e.charCodeAt(f++):0,n=f<l?e.charCodeAt(f++):0),a=r>>2,s=(r&3)<<4|i>>4,o=h>1?(i&15)<<2|n>>6:64,u=h>2?n&63:64,t.push(de.charAt(a)+de.charAt(s)+de.charAt(o)+de.charAt(u));return t.join("")};an.decode=function(e){var t,r,i,n,a,s,o,u=0,f=0,l="data:";if(e.substr(0,l.length)===l)throw new Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9+/=]/g,"");var h=e.length*3/4;if(e.charAt(e.length-1)===de.charAt(64)&&h--,e.charAt(e.length-2)===de.charAt(64)&&h--,h%1!==0)throw new Error("Invalid base64 input, bad content length.");var c;for(xc.uint8array?c=new Uint8Array(h|0):c=new Array(h|0);u<e.length;)n=de.indexOf(e.charAt(u++)),a=de.indexOf(e.charAt(u++)),s=de.indexOf(e.charAt(u++)),o=de.indexOf(e.charAt(u++)),t=n<<2|a>>4,r=(a&15)<<4|s>>2,i=(s&3)<<6|o,c[f++]=t,s!==64&&(c[f++]=r),o!==64&&(c[f++]=i);return c}});var Kt=g((E_,Ts)=>{"use strict";Ts.exports={isNode:typeof Buffer<"u",newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if(typeof e=="number")throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&typeof e.on=="function"&&typeof e.pause=="function"&&typeof e.resume=="function"}}});var Fs=g((C_,Rs)=>{"use strict";var Ds=global.MutationObserver||global.WebKitMutationObserver,pt;process.browser?Ds?(on=0,Is=new Ds(Yt),ln=global.document.createTextNode(""),Is.observe(ln,{characterData:!0}),pt=function(){ln.data=on=++on%2}):!global.setImmediate&&typeof global.MessageChannel<"u"?(fn=new global.MessageChannel,fn.port1.onmessage=Yt,pt=function(){fn.port2.postMessage(0)}):"document"in global&&"onreadystatechange"in global.document.createElement("script")?pt=function(){var e=global.document.createElement("script");e.onreadystatechange=function(){Yt(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},global.document.documentElement.appendChild(e)}:pt=function(){setTimeout(Yt,0)}:pt=function(){process.nextTick(Yt)};var on,Is,ln,fn,un,Xt=[];function Yt(){un=!0;for(var e,t,r=Xt.length;r;){for(t=Xt,Xt=[],e=-1;++e<r;)t[e]();r=Xt.length}un=!1}Rs.exports=kc;function kc(e){Xt.push(e)===1&&!un&&pt()}});var Ms=g((O_,qs)=>{"use strict";var Ns=Fs();function mt(){}var V={},Ps=["REJECTED"],hn=["FULFILLED"],Bs=["PENDING"];process.browser||(Jt=["UNHANDLED"]);var Jt;qs.exports=Re;function Re(e){if(typeof e!="function")throw new TypeError("resolver must be a function");this.state=Bs,this.queue=[],this.outcome=void 0,process.browser||(this.handled=Jt),e!==mt&&zs(this,e)}Re.prototype.finally=function(e){if(typeof e!="function")return this;var t=this.constructor;return this.then(r,i);function r(n){function a(){return n}return t.resolve(e()).then(a)}function i(n){function a(){throw n}return t.resolve(e()).then(a)}};Re.prototype.catch=function(e){return this.then(null,e)};Re.prototype.then=function(e,t){if(typeof e!="function"&&this.state===hn||typeof t!="function"&&this.state===Ps)return this;var r=new this.constructor(mt);if(process.browser||this.handled===Jt&&(this.handled=null),this.state!==Bs){var i=this.state===hn?e:t;cn(r,i,this.outcome)}else this.queue.push(new Qt(r,e,t));return r};function Qt(e,t,r){this.promise=e,typeof t=="function"&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),typeof r=="function"&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}Qt.prototype.callFulfilled=function(e){V.resolve(this.promise,e)};Qt.prototype.otherCallFulfilled=function(e){cn(this.promise,this.onFulfilled,e)};Qt.prototype.callRejected=function(e){V.reject(this.promise,e)};Qt.prototype.otherCallRejected=function(e){cn(this.promise,this.onRejected,e)};function cn(e,t,r){Ns(function(){var i;try{i=t(r)}catch(n){return V.reject(e,n)}i===e?V.reject(e,new TypeError("Cannot resolve promise with itself")):V.resolve(e,i)})}V.resolve=function(e,t){var r=Ls(Sc,t);if(r.status==="error")return V.reject(e,r.value);var i=r.value;if(i)zs(e,i);else{e.state=hn,e.outcome=t;for(var n=-1,a=e.queue.length;++n<a;)e.queue[n].callFulfilled(t)}return e};V.reject=function(e,t){e.state=Ps,e.outcome=t,process.browser||e.handled===Jt&&Ns(function(){e.handled===Jt&&process.emit("unhandledRejection",t,e)});for(var r=-1,i=e.queue.length;++r<i;)e.queue[r].callRejected(t);return e};function Sc(e){var t=e&&e.then;if(e&&(typeof e=="object"||typeof e=="function")&&typeof t=="function")return function(){t.apply(e,arguments)}}function zs(e,t){var r=!1;function i(o){r||(r=!0,V.reject(e,o))}function n(o){r||(r=!0,V.resolve(e,o))}function a(){t(n,i)}var s=Ls(a);s.status==="error"&&i(s.value)}function Ls(e,t){var r={};try{r.value=e(t),r.status="success"}catch(i){r.status="error",r.value=i}return r}Re.resolve=Ec;function Ec(e){return e instanceof this?e:V.resolve(new this(mt),e)}Re.reject=Cc;function Cc(e){var t=new this(mt);return V.reject(t,e)}Re.all=Oc;function Oc(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var r=e.length,i=!1;if(!r)return this.resolve([]);for(var n=new Array(r),a=0,s=-1,o=new this(mt);++s<r;)u(e[s],s);return o;function u(f,l){t.resolve(f).then(h,function(c){i||(i=!0,V.reject(o,c))});function h(c){n[l]=c,++a===r&&!i&&(i=!0,V.resolve(o,n))}}}Re.race=Ac;function Ac(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var r=e.length,i=!1;if(!r)return this.resolve([]);for(var n=-1,a=new this(mt);++n<r;)s(e[n]);return a;function s(o){t.resolve(o).then(function(u){i||(i=!0,V.resolve(a,u))},function(u){i||(i=!0,V.reject(a,u))})}}});var gt=g((A_,js)=>{"use strict";var dn=null;typeof Promise<"u"?dn=Promise:dn=Ms();js.exports={Promise:dn}});var Hs=g(Ws=>{(function(e,t){"use strict";if(e.setImmediate)return;var r=1,i={},n=!1,a=e.document,s;function o(p){typeof p!="function"&&(p=new Function(""+p));for(var y=new Array(arguments.length-1),m=0;m<y.length;m++)y[m]=arguments[m+1];var v={callback:p,args:y};return i[r]=v,s(r),r++}function u(p){delete i[p]}function f(p){var y=p.callback,m=p.args;switch(m.length){case 0:y();break;case 1:y(m[0]);break;case 2:y(m[0],m[1]);break;case 3:y(m[0],m[1],m[2]);break;default:y.apply(t,m);break}}function l(p){if(n)setTimeout(l,0,p);else{var y=i[p];if(y){n=!0;try{f(y)}finally{u(p),n=!1}}}}function h(){s=function(p){process.nextTick(function(){l(p)})}}function c(){if(e.postMessage&&!e.importScripts){var p=!0,y=e.onmessage;return e.onmessage=function(){p=!1},e.postMessage("","*"),e.onmessage=y,p}}function d(){var p="setImmediate$"+Math.random()+"$",y=function(m){m.source===e&&typeof m.data=="string"&&m.data.indexOf(p)===0&&l(+m.data.slice(p.length))};e.addEventListener?e.addEventListener("message",y,!1):e.attachEvent("onmessage",y),s=function(m){e.postMessage(p+m,"*")}}function b(){var p=new MessageChannel;p.port1.onmessage=function(y){var m=y.data;l(m)},s=function(y){p.port2.postMessage(y)}}function w(){var p=a.documentElement;s=function(y){var m=a.createElement("script");m.onreadystatechange=function(){l(y),m.onreadystatechange=null,p.removeChild(m),m=null},p.appendChild(m)}}function x(){s=function(p){setTimeout(l,0,p)}}var _=Object.getPrototypeOf&&Object.getPrototypeOf(e);_=_&&_.setTimeout?_:e,{}.toString.call(e.process)==="[object process]"?h():c()?d():e.MessageChannel?b():a&&"onreadystatechange"in a.createElement("script")?w():x(),_.setImmediate=o,_.clearImmediate=u})(typeof self>"u"?typeof global>"u"?Ws:global:self)});var L=g(j=>{"use strict";var Fe=Se(),Tc=sn(),_t=Kt(),pn=gt();Hs();function Dc(e){var t=null;return Fe.uint8array?t=new Uint8Array(e.length):t=new Array(e.length),Gr(e,t)}j.newBlob=function(e,t){j.checkSupport("blob");try{return new Blob([e],{type:t})}catch{try{var r=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,i=new r;return i.append(e),i.getBlob(t)}catch{throw new Error("Bug : can't construct the Blob.")}}};function er(e){return e}function Gr(e,t){for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)&255;return t}var Vr={stringifyByChunk:function(e,t,r){var i=[],n=0,a=e.length;if(a<=r)return String.fromCharCode.apply(null,e);for(;n<a;)t==="array"||t==="nodebuffer"?i.push(String.fromCharCode.apply(null,e.slice(n,Math.min(n+r,a)))):i.push(String.fromCharCode.apply(null,e.subarray(n,Math.min(n+r,a)))),n+=r;return i.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:(function(){try{return Fe.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return Fe.nodebuffer&&String.fromCharCode.apply(null,_t.allocBuffer(1)).length===1}catch{return!1}})()}};function tr(e){var t=65536,r=j.getTypeOf(e),i=!0;if(r==="uint8array"?i=Vr.applyCanBeUsed.uint8array:r==="nodebuffer"&&(i=Vr.applyCanBeUsed.nodebuffer),i)for(;t>1;)try{return Vr.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return Vr.stringifyByChar(e)}j.applyFromCharCode=tr;function Kr(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}var Ne={};Ne.string={string:er,array:function(e){return Gr(e,new Array(e.length))},arraybuffer:function(e){return Ne.string.uint8array(e).buffer},uint8array:function(e){return Gr(e,new Uint8Array(e.length))},nodebuffer:function(e){return Gr(e,_t.allocBuffer(e.length))}};Ne.array={string:tr,array:er,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return _t.newBufferFrom(e)}};Ne.arraybuffer={string:function(e){return tr(new Uint8Array(e))},array:function(e){return Kr(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:er,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return _t.newBufferFrom(new Uint8Array(e))}};Ne.uint8array={string:tr,array:function(e){return Kr(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:er,nodebuffer:function(e){return _t.newBufferFrom(e)}};Ne.nodebuffer={string:tr,array:function(e){return Kr(e,new Array(e.length))},arraybuffer:function(e){return Ne.nodebuffer.uint8array(e).buffer},uint8array:function(e){return Kr(e,new Uint8Array(e.length))},nodebuffer:er};j.transformTo=function(e,t){if(t||(t=""),!e)return t;j.checkSupport(e);var r=j.getTypeOf(t),i=Ne[r][e](t);return i};j.resolve=function(e){for(var t=e.split("/"),r=[],i=0;i<t.length;i++){var n=t[i];n==="."||n===""&&i!==0&&i!==t.length-1||(n===".."?r.pop():r.push(n))}return r.join("/")};j.getTypeOf=function(e){if(typeof e=="string")return"string";if(Object.prototype.toString.call(e)==="[object Array]")return"array";if(Fe.nodebuffer&&_t.isBuffer(e))return"nodebuffer";if(Fe.uint8array&&e instanceof Uint8Array)return"uint8array";if(Fe.arraybuffer&&e instanceof ArrayBuffer)return"arraybuffer"};j.checkSupport=function(e){var t=Fe[e.toLowerCase()];if(!t)throw new Error(e+" is not supported by this platform")};j.MAX_VALUE_16BITS=65535;j.MAX_VALUE_32BITS=-1;j.pretty=function(e){var t="",r,i;for(i=0;i<(e||"").length;i++)r=e.charCodeAt(i),t+="\\x"+(r<16?"0":"")+r.toString(16).toUpperCase();return t};j.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})};j.inherits=function(e,t){var r=function(){};r.prototype=t.prototype,e.prototype=new r};j.extend=function(){var e={},t,r;for(t=0;t<arguments.length;t++)for(r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&typeof e[r]>"u"&&(e[r]=arguments[t][r]);return e};j.prepareContent=function(e,t,r,i,n){var a=pn.Promise.resolve(t).then(function(s){var o=Fe.blob&&(s instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(s))!==-1);return o&&typeof FileReader<"u"?new pn.Promise(function(u,f){var l=new FileReader;l.onload=function(h){u(h.target.result)},l.onerror=function(h){f(h.target.error)},l.readAsArrayBuffer(s)}):s});return a.then(function(s){var o=j.getTypeOf(s);return o?(o==="arraybuffer"?s=j.transformTo("uint8array",s):o==="string"&&(n?s=Tc.decode(s):r&&i!==!0&&(s=Dc(s))),s):pn.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}});var te=g((I_,$s)=>{"use strict";function Us(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}Us.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return this.isFinished?!1:(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.end()}),e.on("error",function(r){t.error(r)}),this},pause:function(){return this.isPaused||this.isFinished?!1:(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}};$s.exports=Us});var bt=g(Pe=>{"use strict";var vt=L(),Ve=Se(),Ic=Kt(),Yr=te(),rr=new Array(256);for(Ee=0;Ee<256;Ee++)rr[Ee]=Ee>=252?6:Ee>=248?5:Ee>=240?4:Ee>=224?3:Ee>=192?2:1;var Ee;rr[254]=rr[254]=1;var Rc=function(e){var t,r,i,n,a,s=e.length,o=0;for(n=0;n<s;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<s&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),o+=r<128?1:r<2048?2:r<65536?3:4;for(Ve.uint8array?t=new Uint8Array(o):t=new Array(o),a=0,n=0;a<o;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<s&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|r&63):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|r&63):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|r&63);return t},Fc=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+rr[e[r]]>t?r:t},Nc=function(e){var t,r,i,n,a=e.length,s=new Array(a*2);for(r=0,t=0;t<a;){if(i=e[t++],i<128){s[r++]=i;continue}if(n=rr[i],n>4){s[r++]=65533,t+=n-1;continue}for(i&=n===2?31:n===3?15:7;n>1&&t<a;)i=i<<6|e[t++]&63,n--;if(n>1){s[r++]=65533;continue}i<65536?s[r++]=i:(i-=65536,s[r++]=55296|i>>10&1023,s[r++]=56320|i&1023)}return s.length!==r&&(s.subarray?s=s.subarray(0,r):s.length=r),vt.applyFromCharCode(s)};Pe.utf8encode=function(t){return Ve.nodebuffer?Ic.newBufferFrom(t,"utf-8"):Rc(t)};Pe.utf8decode=function(t){return Ve.nodebuffer?vt.transformTo("nodebuffer",t).toString("utf-8"):(t=vt.transformTo(Ve.uint8array?"uint8array":"array",t),Nc(t))};function Xr(){Yr.call(this,"utf-8 decode"),this.leftOver=null}vt.inherits(Xr,Yr);Xr.prototype.processChunk=function(e){var t=vt.transformTo(Ve.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(Ve.uint8array){var r=t;t=new Uint8Array(r.length+this.leftOver.length),t.set(this.leftOver,0),t.set(r,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var i=Fc(t),n=t;i!==t.length&&(Ve.uint8array?(n=t.subarray(0,i),this.leftOver=t.subarray(i,t.length)):(n=t.slice(0,i),this.leftOver=t.slice(i,t.length))),this.push({data:Pe.utf8decode(n),meta:e.meta})};Xr.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:Pe.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)};Pe.Utf8DecodeWorker=Xr;function mn(){Yr.call(this,"utf-8 encode")}vt.inherits(mn,Yr);mn.prototype.processChunk=function(e){this.push({data:Pe.utf8encode(e.data),meta:e.meta})};Pe.Utf8EncodeWorker=mn});var Ks=g((F_,Gs)=>{"use strict";var Zs=te(),Vs=L();function gn(e){Zs.call(this,"ConvertWorker to "+e),this.destType=e}Vs.inherits(gn,Zs);gn.prototype.processChunk=function(e){this.push({data:Vs.transformTo(this.destType,e.data),meta:e.meta})};Gs.exports=gn});var Js=g((N_,Xs)=>{"use strict";var Ys=tn().Readable,Pc=L();Pc.inherits(_n,Ys);function _n(e,t,r){Ys.call(this,t),this._helper=e;var i=this;e.on("data",function(n,a){i.push(n)||i._helper.pause(),r&&r(a)}).on("error",function(n){i.emit("error",n)}).on("end",function(){i.push(null)})}_n.prototype._read=function(){this._helper.resume()};Xs.exports=_n});var vn=g((P_,to)=>{"use strict";var Ge=L(),Bc=Ks(),zc=te(),Lc=sn(),qc=Se(),Mc=gt(),Qs=null;if(qc.nodestream)try{Qs=Js()}catch{}function jc(e,t,r){switch(e){case"blob":return Ge.newBlob(Ge.transformTo("arraybuffer",t),r);case"base64":return Lc.encode(t);default:return Ge.transformTo(e,t)}}function Wc(e,t){var r,i=0,n=null,a=0;for(r=0;r<t.length;r++)a+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(n=new Uint8Array(a),r=0;r<t.length;r++)n.set(t[r],i),i+=t[r].length;return n;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}function Hc(e,t){return new Mc.Promise(function(r,i){var n=[],a=e._internalType,s=e._outputType,o=e._mimeType;e.on("data",function(u,f){n.push(u),t&&t(f)}).on("error",function(u){n=[],i(u)}).on("end",function(){try{var u=jc(s,Wc(a,n),o);r(u)}catch(f){i(f)}n=[]}).resume()})}function eo(e,t,r){var i=t;switch(t){case"blob":case"arraybuffer":i="uint8array";break;case"base64":i="string";break}try{this._internalType=i,this._outputType=t,this._mimeType=r,Ge.checkSupport(i),this._worker=e.pipe(new Bc(i)),e.lock()}catch(n){this._worker=new zc("error"),this._worker.error(n)}}eo.prototype={accumulate:function(e){return Hc(this,e)},on:function(e,t){var r=this;return e==="data"?this._worker.on(e,function(i){t.call(r,i.data,i.meta)}):this._worker.on(e,function(){Ge.delay(t,arguments,r)}),this},resume:function(){return Ge.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(Ge.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new Qs(this,{objectMode:this._outputType!=="nodebuffer"},e)}};to.exports=eo});var bn=g(oe=>{"use strict";oe.base64=!1;oe.binary=!1;oe.dir=!1;oe.createFolders=!0;oe.date=null;oe.compression=null;oe.compressionOptions=null;oe.comment=null;oe.unixPermissions=null;oe.dosPermissions=null});var wn=g((z_,ro)=>{"use strict";var Jr=L(),Qr=te(),Uc=16*1024;function wt(e){Qr.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(r){t.dataIsReady=!0,t.data=r,t.max=r&&r.length||0,t.type=Jr.getTypeOf(r),t.isPaused||t._tickAndRepeat()},function(r){t.error(r)})}Jr.inherits(wt,Qr);wt.prototype.cleanUp=function(){Qr.prototype.cleanUp.call(this),this.data=null};wt.prototype.resume=function(){return Qr.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Jr.delay(this._tickAndRepeat,[],this)),!0):!1};wt.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(Jr.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))};wt.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=Uc,t=null,r=Math.min(this.max,this.index+e);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,r);break;case"uint8array":t=this.data.subarray(this.index,r);break;case"array":case"nodebuffer":t=this.data.slice(this.index,r);break}return this.index=r,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})};ro.exports=wt});var ei=g((L_,no)=>{"use strict";var $c=L();function Zc(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var io=Zc();function Vc(e,t,r,i){var n=io,a=i+r;e=e^-1;for(var s=i;s<a;s++)e=e>>>8^n[(e^t[s])&255];return e^-1}function Gc(e,t,r,i){var n=io,a=i+r;e=e^-1;for(var s=i;s<a;s++)e=e>>>8^n[(e^t.charCodeAt(s))&255];return e^-1}no.exports=function(t,r){if(typeof t>"u"||!t.length)return 0;var i=$c.getTypeOf(t)!=="string";return i?Vc(r|0,t,t.length,0):Gc(r|0,t,t.length,0)}});var xn=g((q_,so)=>{"use strict";var ao=te(),Kc=ei(),Yc=L();function yn(){ao.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}Yc.inherits(yn,ao);yn.prototype.processChunk=function(e){this.streamInfo.crc32=Kc(e.data,this.streamInfo.crc32||0),this.push(e)};so.exports=yn});var lo=g((M_,oo)=>{"use strict";var Xc=L(),kn=te();function Sn(e){kn.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}Xc.inherits(Sn,kn);Sn.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}kn.prototype.processChunk.call(this,e)};oo.exports=Sn});var ti=g((j_,ho)=>{"use strict";var fo=gt(),uo=wn(),Jc=xn(),En=lo();function Cn(e,t,r,i,n){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=i,this.compressedContent=n}Cn.prototype={getContentWorker:function(){var e=new uo(fo.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new En("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new uo(fo.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};Cn.createWorkerFrom=function(e,t,r){return e.pipe(new Jc).pipe(new En("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new En("compressedSize")).withStreamInfo("compression",t)};ho.exports=Cn});var go=g((W_,mo)=>{"use strict";var Qc=vn(),ed=wn(),On=bt(),An=ti(),co=te(),Tn=function(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}};Tn.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");r=e.toLowerCase();var i=r==="string"||r==="text";(r==="binarystring"||r==="text")&&(r="string"),t=this._decompressWorker();var n=!this._dataBinary;n&&!i&&(t=t.pipe(new On.Utf8EncodeWorker)),!n&&i&&(t=t.pipe(new On.Utf8DecodeWorker))}catch(a){t=new co("error"),t.error(a)}return new Qc(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof An&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new On.Utf8EncodeWorker)),An.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof An?this._data.getContentWorker():this._data instanceof co?this._data:new ed(this._data)}};var po=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],td=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(ri=0;ri<po.length;ri++)Tn.prototype[po[ri]]=td;var ri;mo.exports=Tn});var Ce=g(G=>{"use strict";var rd=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function id(e,t){return Object.prototype.hasOwnProperty.call(e,t)}G.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(var i in r)id(r,i)&&(e[i]=r[i])}}return e};G.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var nd={arraySet:function(e,t,r,i,n){if(t.subarray&&e.subarray){e.set(t.subarray(r,r+i),n);return}for(var a=0;a<i;a++)e[n+a]=t[r+a]},flattenChunks:function(e){var t,r,i,n,a,s;for(i=0,t=0,r=e.length;t<r;t++)i+=e[t].length;for(s=new Uint8Array(i),n=0,t=0,r=e.length;t<r;t++)a=e[t],s.set(a,n),n+=a.length;return s}},ad={arraySet:function(e,t,r,i,n){for(var a=0;a<i;a++)e[n+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}};G.setTyped=function(e){e?(G.Buf8=Uint8Array,G.Buf16=Uint16Array,G.Buf32=Int32Array,G.assign(G,nd)):(G.Buf8=Array,G.Buf16=Array,G.Buf32=Array,G.assign(G,ad))};G.setTyped(rd)});var qo=g(kt=>{"use strict";var sd=Ce(),od=4,_o=0,vo=1,ld=2;function xt(e){for(var t=e.length;--t>=0;)e[t]=0}var fd=0,So=1,ud=2,hd=3,cd=258,Bn=29,lr=256,nr=lr+1+Bn,yt=30,zn=19,Eo=2*nr+1,Ke=15,Dn=16,dd=7,Ln=256,Co=16,Oo=17,Ao=18,Nn=[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],ii=[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],pd=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],To=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],md=512,Oe=new Array((nr+2)*2);xt(Oe);var ir=new Array(yt*2);xt(ir);var ar=new Array(md);xt(ar);var sr=new Array(cd-hd+1);xt(sr);var qn=new Array(Bn);xt(qn);var ni=new Array(yt);xt(ni);function In(e,t,r,i,n){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=n,this.has_stree=e&&e.length}var Do,Io,Ro;function Rn(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Fo(e){return e<256?ar[e]:ar[256+(e>>>7)]}function or(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function X(e,t,r){e.bi_valid>Dn-r?(e.bi_buf|=t<<e.bi_valid&65535,or(e,e.bi_buf),e.bi_buf=t>>Dn-e.bi_valid,e.bi_valid+=r-Dn):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function pe(e,t,r){X(e,r[t*2],r[t*2+1])}function No(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function gd(e){e.bi_valid===16?(or(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function _d(e,t){var r=t.dyn_tree,i=t.max_code,n=t.stat_desc.static_tree,a=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,o=t.stat_desc.extra_base,u=t.stat_desc.max_length,f,l,h,c,d,b,w=0;for(c=0;c<=Ke;c++)e.bl_count[c]=0;for(r[e.heap[e.heap_max]*2+1]=0,f=e.heap_max+1;f<Eo;f++)l=e.heap[f],c=r[r[l*2+1]*2+1]+1,c>u&&(c=u,w++),r[l*2+1]=c,!(l>i)&&(e.bl_count[c]++,d=0,l>=o&&(d=s[l-o]),b=r[l*2],e.opt_len+=b*(c+d),a&&(e.static_len+=b*(n[l*2+1]+d)));if(w!==0){do{for(c=u-1;e.bl_count[c]===0;)c--;e.bl_count[c]--,e.bl_count[c+1]+=2,e.bl_count[u]--,w-=2}while(w>0);for(c=u;c!==0;c--)for(l=e.bl_count[c];l!==0;)h=e.heap[--f],!(h>i)&&(r[h*2+1]!==c&&(e.opt_len+=(c-r[h*2+1])*r[h*2],r[h*2+1]=c),l--)}}function Po(e,t,r){var i=new Array(Ke+1),n=0,a,s;for(a=1;a<=Ke;a++)i[a]=n=n+r[a-1]<<1;for(s=0;s<=t;s++){var o=e[s*2+1];o!==0&&(e[s*2]=No(i[o]++,o))}}function vd(){var e,t,r,i,n,a=new Array(Ke+1);for(r=0,i=0;i<Bn-1;i++)for(qn[i]=r,e=0;e<1<<Nn[i];e++)sr[r++]=i;for(sr[r-1]=i,n=0,i=0;i<16;i++)for(ni[i]=n,e=0;e<1<<ii[i];e++)ar[n++]=i;for(n>>=7;i<yt;i++)for(ni[i]=n<<7,e=0;e<1<<ii[i]-7;e++)ar[256+n++]=i;for(t=0;t<=Ke;t++)a[t]=0;for(e=0;e<=143;)Oe[e*2+1]=8,e++,a[8]++;for(;e<=255;)Oe[e*2+1]=9,e++,a[9]++;for(;e<=279;)Oe[e*2+1]=7,e++,a[7]++;for(;e<=287;)Oe[e*2+1]=8,e++,a[8]++;for(Po(Oe,nr+1,a),e=0;e<yt;e++)ir[e*2+1]=5,ir[e*2]=No(e,5);Do=new In(Oe,Nn,lr+1,nr,Ke),Io=new In(ir,ii,0,yt,Ke),Ro=new In(new Array(0),pd,0,zn,dd)}function Bo(e){var t;for(t=0;t<nr;t++)e.dyn_ltree[t*2]=0;for(t=0;t<yt;t++)e.dyn_dtree[t*2]=0;for(t=0;t<zn;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Ln*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function zo(e){e.bi_valid>8?or(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function bd(e,t,r,i){zo(e),i&&(or(e,r),or(e,~r)),sd.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function bo(e,t,r,i){var n=t*2,a=r*2;return e[n]<e[a]||e[n]===e[a]&&i[t]<=i[r]}function Fn(e,t,r){for(var i=e.heap[r],n=r<<1;n<=e.heap_len&&(n<e.heap_len&&bo(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!bo(t,i,e.heap[n],e.depth));)e.heap[r]=e.heap[n],r=n,n<<=1;e.heap[r]=i}function wo(e,t,r){var i,n,a=0,s,o;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+a*2]<<8|e.pending_buf[e.d_buf+a*2+1],n=e.pending_buf[e.l_buf+a],a++,i===0?pe(e,n,t):(s=sr[n],pe(e,s+lr+1,t),o=Nn[s],o!==0&&(n-=qn[s],X(e,n,o)),i--,s=Fo(i),pe(e,s,r),o=ii[s],o!==0&&(i-=ni[s],X(e,i,o)));while(a<e.last_lit);pe(e,Ln,t)}function Pn(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,n=t.stat_desc.has_stree,a=t.stat_desc.elems,s,o,u=-1,f;for(e.heap_len=0,e.heap_max=Eo,s=0;s<a;s++)r[s*2]!==0?(e.heap[++e.heap_len]=u=s,e.depth[s]=0):r[s*2+1]=0;for(;e.heap_len<2;)f=e.heap[++e.heap_len]=u<2?++u:0,r[f*2]=1,e.depth[f]=0,e.opt_len--,n&&(e.static_len-=i[f*2+1]);for(t.max_code=u,s=e.heap_len>>1;s>=1;s--)Fn(e,r,s);f=a;do s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Fn(e,r,1),o=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=o,r[f*2]=r[s*2]+r[o*2],e.depth[f]=(e.depth[s]>=e.depth[o]?e.depth[s]:e.depth[o])+1,r[s*2+1]=r[o*2+1]=f,e.heap[1]=f++,Fn(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],_d(e,t),Po(r,u,e.bl_count)}function yo(e,t,r){var i,n=-1,a,s=t[1],o=0,u=7,f=4;for(s===0&&(u=138,f=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)a=s,s=t[(i+1)*2+1],!(++o<u&&a===s)&&(o<f?e.bl_tree[a*2]+=o:a!==0?(a!==n&&e.bl_tree[a*2]++,e.bl_tree[Co*2]++):o<=10?e.bl_tree[Oo*2]++:e.bl_tree[Ao*2]++,o=0,n=a,s===0?(u=138,f=3):a===s?(u=6,f=3):(u=7,f=4))}function xo(e,t,r){var i,n=-1,a,s=t[1],o=0,u=7,f=4;for(s===0&&(u=138,f=3),i=0;i<=r;i++)if(a=s,s=t[(i+1)*2+1],!(++o<u&&a===s)){if(o<f)do pe(e,a,e.bl_tree);while(--o!==0);else a!==0?(a!==n&&(pe(e,a,e.bl_tree),o--),pe(e,Co,e.bl_tree),X(e,o-3,2)):o<=10?(pe(e,Oo,e.bl_tree),X(e,o-3,3)):(pe(e,Ao,e.bl_tree),X(e,o-11,7));o=0,n=a,s===0?(u=138,f=3):a===s?(u=6,f=3):(u=7,f=4)}}function wd(e){var t;for(yo(e,e.dyn_ltree,e.l_desc.max_code),yo(e,e.dyn_dtree,e.d_desc.max_code),Pn(e,e.bl_desc),t=zn-1;t>=3&&e.bl_tree[To[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function yd(e,t,r,i){var n;for(X(e,t-257,5),X(e,r-1,5),X(e,i-4,4),n=0;n<i;n++)X(e,e.bl_tree[To[n]*2+1],3);xo(e,e.dyn_ltree,t-1),xo(e,e.dyn_dtree,r-1)}function xd(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return _o;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return vo;for(r=32;r<lr;r++)if(e.dyn_ltree[r*2]!==0)return vo;return _o}var ko=!1;function kd(e){ko||(vd(),ko=!0),e.l_desc=new Rn(e.dyn_ltree,Do),e.d_desc=new Rn(e.dyn_dtree,Io),e.bl_desc=new Rn(e.bl_tree,Ro),e.bi_buf=0,e.bi_valid=0,Bo(e)}function Lo(e,t,r,i){X(e,(fd<<1)+(i?1:0),3),bd(e,t,r,!0)}function Sd(e){X(e,So<<1,3),pe(e,Ln,Oe),gd(e)}function Ed(e,t,r,i){var n,a,s=0;e.level>0?(e.strm.data_type===ld&&(e.strm.data_type=xd(e)),Pn(e,e.l_desc),Pn(e,e.d_desc),s=wd(e),n=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=n&&(n=a)):n=a=r+5,r+4<=n&&t!==-1?Lo(e,t,r,i):e.strategy===od||a===n?(X(e,(So<<1)+(i?1:0),3),wo(e,Oe,ir)):(X(e,(ud<<1)+(i?1:0),3),yd(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),wo(e,e.dyn_ltree,e.dyn_dtree)),Bo(e),i&&zo(e)}function Cd(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(sr[r]+lr+1)*2]++,e.dyn_dtree[Fo(t)*2]++),e.last_lit===e.lit_bufsize-1}kt._tr_init=kd;kt._tr_stored_block=Lo;kt._tr_flush_block=Ed;kt._tr_tally=Cd;kt._tr_align=Sd});var Mn=g(($_,Mo)=>{"use strict";function Od(e,t,r,i){for(var n=e&65535|0,a=e>>>16&65535|0,s=0;r!==0;){s=r>2e3?2e3:r,r-=s;do n=n+t[i++]|0,a=a+n|0;while(--s);n%=65521,a%=65521}return n|a<<16|0}Mo.exports=Od});var jn=g((Z_,jo)=>{"use strict";function Ad(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var Td=Ad();function Dd(e,t,r,i){var n=Td,a=i+r;e^=-1;for(var s=i;s<a;s++)e=e>>>8^n[(e^t[s])&255];return e^-1}jo.exports=Dd});var ai=g((V_,Wo)=>{"use strict";Wo.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"}});var Xo=g(_e=>{"use strict";var K=Ce(),ie=qo(),Zo=Mn(),Be=jn(),Id=ai(),Qe=0,Rd=1,Fd=3,je=4,Ho=5,ge=0,Uo=1,ne=-2,Nd=-3,Wn=-5,Pd=-1,Bd=1,si=2,zd=3,Ld=4,qd=0,Md=2,ui=8,jd=9,Wd=15,Hd=8,Ud=29,$d=256,Un=$d+1+Ud,Zd=30,Vd=19,Gd=2*Un+1,Kd=15,A=3,qe=258,le=qe+A+1,Yd=32,hi=42,$n=69,oi=73,li=91,fi=103,Ye=113,ur=666,W=1,hr=2,Xe=3,Ct=4,Xd=3;function Me(e,t){return e.msg=Id[t],t}function $o(e){return(e<<1)-(e>4?9:0)}function Le(e){for(var t=e.length;--t>=0;)e[t]=0}function ze(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(K.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function U(e,t){ie._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ze(e.strm)}function T(e,t){e.pending_buf[e.pending++]=t}function fr(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function Jd(e,t,r,i){var n=e.avail_in;return n>i&&(n=i),n===0?0:(e.avail_in-=n,K.arraySet(t,e.input,e.next_in,n,r),e.state.wrap===1?e.adler=Zo(e.adler,t,n,r):e.state.wrap===2&&(e.adler=Be(e.adler,t,n,r)),e.next_in+=n,e.total_in+=n,n)}function Vo(e,t){var r=e.max_chain_length,i=e.strstart,n,a,s=e.prev_length,o=e.nice_match,u=e.strstart>e.w_size-le?e.strstart-(e.w_size-le):0,f=e.window,l=e.w_mask,h=e.prev,c=e.strstart+qe,d=f[i+s-1],b=f[i+s];e.prev_length>=e.good_match&&(r>>=2),o>e.lookahead&&(o=e.lookahead);do if(n=t,!(f[n+s]!==b||f[n+s-1]!==d||f[n]!==f[i]||f[++n]!==f[i+1])){i+=2,n++;do;while(f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&i<c);if(a=qe-(c-i),i=c-qe,a>s){if(e.match_start=t,s=a,a>=o)break;d=f[i+s-1],b=f[i+s]}}while((t=h[t&l])>u&&--r!==0);return s<=e.lookahead?s:e.lookahead}function Je(e){var t=e.w_size,r,i,n,a,s;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-le)){K.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do n=e.head[--r],e.head[r]=n>=t?n-t:0;while(--i);i=t,r=i;do n=e.prev[--r],e.prev[r]=n>=t?n-t:0;while(--i);a+=t}if(e.strm.avail_in===0)break;if(i=Jd(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=i,e.lookahead+e.insert>=A)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+A-1])&e.hash_mask,e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert<A)););}while(e.lookahead<le&&e.strm.avail_in!==0)}function Qd(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Je(e),e.lookahead===0&&t===Qe)return W;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,U(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-le&&(U(e,!1),e.strm.avail_out===0))return W}return e.insert=0,t===je?(U(e,!0),e.strm.avail_out===0?Xe:Ct):(e.strstart>e.block_start&&(U(e,!1),e.strm.avail_out===0),W)}function Hn(e,t){for(var r,i;;){if(e.lookahead<le){if(Je(e),e.lookahead<le&&t===Qe)return W;if(e.lookahead===0)break}if(r=0,e.lookahead>=A&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-le&&(e.match_length=Vo(e,r)),e.match_length>=A)if(i=ie._tr_tally(e,e.strstart-e.match_start,e.match_length-A),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=A){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=ie._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(U(e,!1),e.strm.avail_out===0))return W}return e.insert=e.strstart<A-1?e.strstart:A-1,t===je?(U(e,!0),e.strm.avail_out===0?Xe:Ct):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:hr}function St(e,t){for(var r,i,n;;){if(e.lookahead<le){if(Je(e),e.lookahead<le&&t===Qe)return W;if(e.lookahead===0)break}if(r=0,e.lookahead>=A&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=A-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-le&&(e.match_length=Vo(e,r),e.match_length<=5&&(e.strategy===Bd||e.match_length===A&&e.strstart-e.match_start>4096)&&(e.match_length=A-1)),e.prev_length>=A&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-A,i=ie._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-A),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=n&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=A-1,e.strstart++,i&&(U(e,!1),e.strm.avail_out===0))return W}else if(e.match_available){if(i=ie._tr_tally(e,0,e.window[e.strstart-1]),i&&U(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return W}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=ie._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<A-1?e.strstart:A-1,t===je?(U(e,!0),e.strm.avail_out===0?Xe:Ct):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:hr}function ep(e,t){for(var r,i,n,a,s=e.window;;){if(e.lookahead<=qe){if(Je(e),e.lookahead<=qe&&t===Qe)return W;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=A&&e.strstart>0&&(n=e.strstart-1,i=s[n],i===s[++n]&&i===s[++n]&&i===s[++n])){a=e.strstart+qe;do;while(i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&n<a);e.match_length=qe-(a-n),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=A?(r=ie._tr_tally(e,1,e.match_length-A),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=ie._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(U(e,!1),e.strm.avail_out===0))return W}return e.insert=0,t===je?(U(e,!0),e.strm.avail_out===0?Xe:Ct):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:hr}function tp(e,t){for(var r;;){if(e.lookahead===0&&(Je(e),e.lookahead===0)){if(t===Qe)return W;break}if(e.match_length=0,r=ie._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(U(e,!1),e.strm.avail_out===0))return W}return e.insert=0,t===je?(U(e,!0),e.strm.avail_out===0?Xe:Ct):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:hr}function me(e,t,r,i,n){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=n}var Et;Et=[new me(0,0,0,0,Qd),new me(4,4,8,4,Hn),new me(4,5,16,8,Hn),new me(4,6,32,32,Hn),new me(4,4,16,16,St),new me(8,16,32,32,St),new me(8,16,128,128,St),new me(8,32,128,256,St),new me(32,128,258,1024,St),new me(32,258,258,4096,St)];function rp(e){e.window_size=2*e.w_size,Le(e.head),e.max_lazy_match=Et[e.level].max_lazy,e.good_match=Et[e.level].good_length,e.nice_match=Et[e.level].nice_length,e.max_chain_length=Et[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=A-1,e.match_available=0,e.ins_h=0}function ip(){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=ui,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 K.Buf16(Gd*2),this.dyn_dtree=new K.Buf16((2*Zd+1)*2),this.bl_tree=new K.Buf16((2*Vd+1)*2),Le(this.dyn_ltree),Le(this.dyn_dtree),Le(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new K.Buf16(Kd+1),this.heap=new K.Buf16(2*Un+1),Le(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new K.Buf16(2*Un+1),Le(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 Go(e){var t;return!e||!e.state?Me(e,ne):(e.total_in=e.total_out=0,e.data_type=Md,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?hi:Ye,e.adler=t.wrap===2?0:1,t.last_flush=Qe,ie._tr_init(t),ge)}function Ko(e){var t=Go(e);return t===ge&&rp(e.state),t}function np(e,t){return!e||!e.state||e.state.wrap!==2?ne:(e.state.gzhead=t,ge)}function Yo(e,t,r,i,n,a){if(!e)return ne;var s=1;if(t===Pd&&(t=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),n<1||n>jd||r!==ui||i<8||i>15||t<0||t>9||a<0||a>Ld)return Me(e,ne);i===8&&(i=9);var o=new ip;return e.state=o,o.strm=e,o.wrap=s,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+A-1)/A),o.window=new K.Buf8(o.w_size*2),o.head=new K.Buf16(o.hash_size),o.prev=new K.Buf16(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new K.Buf8(o.pending_buf_size),o.d_buf=1*o.lit_bufsize,o.l_buf=3*o.lit_bufsize,o.level=t,o.strategy=a,o.method=r,Ko(e)}function ap(e,t){return Yo(e,t,ui,Wd,Hd,qd)}function sp(e,t){var r,i,n,a;if(!e||!e.state||t>Ho||t<0)return e?Me(e,ne):ne;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===ur&&t!==je)return Me(e,e.avail_out===0?Wn:ne);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===hi)if(i.wrap===2)e.adler=0,T(i,31),T(i,139),T(i,8),i.gzhead?(T(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),T(i,i.gzhead.time&255),T(i,i.gzhead.time>>8&255),T(i,i.gzhead.time>>16&255),T(i,i.gzhead.time>>24&255),T(i,i.level===9?2:i.strategy>=si||i.level<2?4:0),T(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(T(i,i.gzhead.extra.length&255),T(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=Be(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=$n):(T(i,0),T(i,0),T(i,0),T(i,0),T(i,0),T(i,i.level===9?2:i.strategy>=si||i.level<2?4:0),T(i,Xd),i.status=Ye);else{var s=ui+(i.w_bits-8<<4)<<8,o=-1;i.strategy>=si||i.level<2?o=0:i.level<6?o=1:i.level===6?o=2:o=3,s|=o<<6,i.strstart!==0&&(s|=Yd),s+=31-s%31,i.status=Ye,fr(i,s),i.strstart!==0&&(fr(i,e.adler>>>16),fr(i,e.adler&65535)),e.adler=1}if(i.status===$n)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),ze(e),n=i.pending,i.pending===i.pending_buf_size));)T(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=oi)}else i.status=oi;if(i.status===oi)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),ze(e),n=i.pending,i.pending===i.pending_buf_size)){a=1;break}i.gzindex<i.gzhead.name.length?a=i.gzhead.name.charCodeAt(i.gzindex++)&255:a=0,T(i,a)}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.gzindex=0,i.status=li)}else i.status=li;if(i.status===li)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),ze(e),n=i.pending,i.pending===i.pending_buf_size)){a=1;break}i.gzindex<i.gzhead.comment.length?a=i.gzhead.comment.charCodeAt(i.gzindex++)&255:a=0,T(i,a)}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=Be(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.status=fi)}else i.status=fi;if(i.status===fi&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&ze(e),i.pending+2<=i.pending_buf_size&&(T(i,e.adler&255),T(i,e.adler>>8&255),e.adler=0,i.status=Ye)):i.status=Ye),i.pending!==0){if(ze(e),e.avail_out===0)return i.last_flush=-1,ge}else if(e.avail_in===0&&$o(t)<=$o(r)&&t!==je)return Me(e,Wn);if(i.status===ur&&e.avail_in!==0)return Me(e,Wn);if(e.avail_in!==0||i.lookahead!==0||t!==Qe&&i.status!==ur){var u=i.strategy===si?tp(i,t):i.strategy===zd?ep(i,t):Et[i.level].func(i,t);if((u===Xe||u===Ct)&&(i.status=ur),u===W||u===Xe)return e.avail_out===0&&(i.last_flush=-1),ge;if(u===hr&&(t===Rd?ie._tr_align(i):t!==Ho&&(ie._tr_stored_block(i,0,0,!1),t===Fd&&(Le(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),ze(e),e.avail_out===0))return i.last_flush=-1,ge}return t!==je?ge:i.wrap<=0?Uo:(i.wrap===2?(T(i,e.adler&255),T(i,e.adler>>8&255),T(i,e.adler>>16&255),T(i,e.adler>>24&255),T(i,e.total_in&255),T(i,e.total_in>>8&255),T(i,e.total_in>>16&255),T(i,e.total_in>>24&255)):(fr(i,e.adler>>>16),fr(i,e.adler&65535)),ze(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?ge:Uo)}function op(e){var t;return!e||!e.state?ne:(t=e.state.status,t!==hi&&t!==$n&&t!==oi&&t!==li&&t!==fi&&t!==Ye&&t!==ur?Me(e,ne):(e.state=null,t===Ye?Me(e,Nd):ge))}function lp(e,t){var r=t.length,i,n,a,s,o,u,f,l;if(!e||!e.state||(i=e.state,s=i.wrap,s===2||s===1&&i.status!==hi||i.lookahead))return ne;for(s===1&&(e.adler=Zo(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(s===0&&(Le(i.head),i.strstart=0,i.block_start=0,i.insert=0),l=new K.Buf8(i.w_size),K.arraySet(l,t,r-i.w_size,i.w_size,0),t=l,r=i.w_size),o=e.avail_in,u=e.next_in,f=e.input,e.avail_in=r,e.next_in=0,e.input=t,Je(i);i.lookahead>=A;){n=i.strstart,a=i.lookahead-(A-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+A-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++;while(--a);i.strstart=n,i.lookahead=A-1,Je(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=A-1,i.match_available=0,e.next_in=u,e.input=f,e.avail_in=o,i.wrap=s,ge}_e.deflateInit=ap;_e.deflateInit2=Yo;_e.deflateReset=Ko;_e.deflateResetKeep=Go;_e.deflateSetHeader=np;_e.deflate=sp;_e.deflateEnd=op;_e.deflateSetDictionary=lp;_e.deflateInfo="pako deflate (from Nodeca project)"});var Zn=g(Ot=>{"use strict";var ci=Ce(),Jo=!0,Qo=!0;try{String.fromCharCode.apply(null,[0])}catch{Jo=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Qo=!1}var cr=new ci.Buf8(256);for(Ae=0;Ae<256;Ae++)cr[Ae]=Ae>=252?6:Ae>=248?5:Ae>=240?4:Ae>=224?3:Ae>=192?2:1;var Ae;cr[254]=cr[254]=1;Ot.string2buf=function(e){var t,r,i,n,a,s=e.length,o=0;for(n=0;n<s;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<s&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),o+=r<128?1:r<2048?2:r<65536?3:4;for(t=new ci.Buf8(o),a=0,n=0;a<o;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<s&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|r&63):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|r&63):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|r&63);return t};function el(e,t){if(t<65534&&(e.subarray&&Qo||!e.subarray&&Jo))return String.fromCharCode.apply(null,ci.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}Ot.buf2binstring=function(e){return el(e,e.length)};Ot.binstring2buf=function(e){for(var t=new ci.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};Ot.buf2string=function(e,t){var r,i,n,a,s=t||e.length,o=new Array(s*2);for(i=0,r=0;r<s;){if(n=e[r++],n<128){o[i++]=n;continue}if(a=cr[n],a>4){o[i++]=65533,r+=a-1;continue}for(n&=a===2?31:a===3?15:7;a>1&&r<s;)n=n<<6|e[r++]&63,a--;if(a>1){o[i++]=65533;continue}n<65536?o[i++]=n:(n-=65536,o[i++]=55296|n>>10&1023,o[i++]=56320|n&1023)}return el(o,i)};Ot.utf8border=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+cr[e[r]]>t?r:t}});var Vn=g((Y_,tl)=>{"use strict";function fp(){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}tl.exports=fp});var al=g(mr=>{"use strict";var dr=Xo(),pr=Ce(),Kn=Zn(),Yn=ai(),up=Vn(),nl=Object.prototype.toString,hp=0,Gn=4,At=0,rl=1,il=2,cp=-1,dp=0,pp=8;function et(e){if(!(this instanceof et))return new et(e);this.options=pr.assign({level:cp,method:pp,chunkSize:16384,windowBits:15,memLevel:8,strategy:dp,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new up,this.strm.avail_out=0;var r=dr.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==At)throw new Error(Yn[r]);if(t.header&&dr.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=Kn.string2buf(t.dictionary):nl.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=dr.deflateSetDictionary(this.strm,i),r!==At)throw new Error(Yn[r]);this._dict_set=!0}}et.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,n,a;if(this.ended)return!1;a=t===~~t?t:t===!0?Gn:hp,typeof e=="string"?r.input=Kn.string2buf(e):nl.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new pr.Buf8(i),r.next_out=0,r.avail_out=i),n=dr.deflate(r,a),n!==rl&&n!==At)return this.onEnd(n),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(a===Gn||a===il))&&(this.options.to==="string"?this.onData(Kn.buf2binstring(pr.shrinkBuf(r.output,r.next_out))):this.onData(pr.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&n!==rl);return a===Gn?(n=dr.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===At):(a===il&&(this.onEnd(At),r.avail_out=0),!0)};et.prototype.onData=function(e){this.chunks.push(e)};et.prototype.onEnd=function(e){e===At&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=pr.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Xn(e,t){var r=new et(t);if(r.push(e,!0),r.err)throw r.msg||Yn[r.err];return r.result}function mp(e,t){return t=t||{},t.raw=!0,Xn(e,t)}function gp(e,t){return t=t||{},t.gzip=!0,Xn(e,t)}mr.Deflate=et;mr.deflate=Xn;mr.deflateRaw=mp;mr.gzip=gp});var ol=g((J_,sl)=>{"use strict";var di=30,_p=12;sl.exports=function(t,r){var i,n,a,s,o,u,f,l,h,c,d,b,w,x,_,p,y,m,v,C,E,S,O,P,k;i=t.state,n=t.next_in,P=t.input,a=n+(t.avail_in-5),s=t.next_out,k=t.output,o=s-(r-t.avail_out),u=s+(t.avail_out-257),f=i.dmax,l=i.wsize,h=i.whave,c=i.wnext,d=i.window,b=i.hold,w=i.bits,x=i.lencode,_=i.distcode,p=(1<<i.lenbits)-1,y=(1<<i.distbits)-1;e:do{w<15&&(b+=P[n++]<<w,w+=8,b+=P[n++]<<w,w+=8),m=x[b&p];t:for(;;){if(v=m>>>24,b>>>=v,w-=v,v=m>>>16&255,v===0)k[s++]=m&65535;else if(v&16){C=m&65535,v&=15,v&&(w<v&&(b+=P[n++]<<w,w+=8),C+=b&(1<<v)-1,b>>>=v,w-=v),w<15&&(b+=P[n++]<<w,w+=8,b+=P[n++]<<w,w+=8),m=_[b&y];r:for(;;){if(v=m>>>24,b>>>=v,w-=v,v=m>>>16&255,v&16){if(E=m&65535,v&=15,w<v&&(b+=P[n++]<<w,w+=8,w<v&&(b+=P[n++]<<w,w+=8)),E+=b&(1<<v)-1,E>f){t.msg="invalid distance too far back",i.mode=di;break e}if(b>>>=v,w-=v,v=s-o,E>v){if(v=E-v,v>h&&i.sane){t.msg="invalid distance too far back",i.mode=di;break e}if(S=0,O=d,c===0){if(S+=l-v,v<C){C-=v;do k[s++]=d[S++];while(--v);S=s-E,O=k}}else if(c<v){if(S+=l+c-v,v-=c,v<C){C-=v;do k[s++]=d[S++];while(--v);if(S=0,c<C){v=c,C-=v;do k[s++]=d[S++];while(--v);S=s-E,O=k}}}else if(S+=c-v,v<C){C-=v;do k[s++]=d[S++];while(--v);S=s-E,O=k}for(;C>2;)k[s++]=O[S++],k[s++]=O[S++],k[s++]=O[S++],C-=3;C&&(k[s++]=O[S++],C>1&&(k[s++]=O[S++]))}else{S=s-E;do k[s++]=k[S++],k[s++]=k[S++],k[s++]=k[S++],C-=3;while(C>2);C&&(k[s++]=k[S++],C>1&&(k[s++]=k[S++]))}}else if((v&64)===0){m=_[(m&65535)+(b&(1<<v)-1)];continue r}else{t.msg="invalid distance code",i.mode=di;break e}break}}else if((v&64)===0){m=x[(m&65535)+(b&(1<<v)-1)];continue t}else if(v&32){i.mode=_p;break e}else{t.msg="invalid literal/length code",i.mode=di;break e}break}}while(n<a&&s<u);C=w>>3,n-=C,w-=C<<3,b&=(1<<w)-1,t.next_in=n,t.next_out=s,t.avail_in=n<a?5+(a-n):5-(n-a),t.avail_out=s<u?257+(u-s):257-(s-u),i.hold=b,i.bits=w}});var pl=g((Q_,dl)=>{"use strict";var ll=Ce(),Tt=15,fl=852,ul=592,hl=0,Jn=1,cl=2,vp=[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],bp=[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],wp=[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],yp=[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];dl.exports=function(t,r,i,n,a,s,o,u){var f=u.bits,l=0,h=0,c=0,d=0,b=0,w=0,x=0,_=0,p=0,y=0,m,v,C,E,S,O=null,P=0,k,Q=new ll.Buf16(Tt+1),at=new ll.Buf16(Tt+1),kr=null,Ta=0,Da,Sr,Er;for(l=0;l<=Tt;l++)Q[l]=0;for(h=0;h<n;h++)Q[r[i+h]]++;for(b=f,d=Tt;d>=1&&Q[d]===0;d--);if(b>d&&(b=d),d===0)return a[s++]=1<<24|64<<16|0,a[s++]=1<<24|64<<16|0,u.bits=1,0;for(c=1;c<d&&Q[c]===0;c++);for(b<c&&(b=c),_=1,l=1;l<=Tt;l++)if(_<<=1,_-=Q[l],_<0)return-1;if(_>0&&(t===hl||d!==1))return-1;for(at[1]=0,l=1;l<Tt;l++)at[l+1]=at[l]+Q[l];for(h=0;h<n;h++)r[i+h]!==0&&(o[at[r[i+h]]++]=h);if(t===hl?(O=kr=o,k=19):t===Jn?(O=vp,P-=257,kr=bp,Ta-=257,k=256):(O=wp,kr=yp,k=-1),y=0,h=0,l=c,S=s,w=b,x=0,C=-1,p=1<<b,E=p-1,t===Jn&&p>fl||t===cl&&p>ul)return 1;for(;;){Da=l-x,o[h]<k?(Sr=0,Er=o[h]):o[h]>k?(Sr=kr[Ta+o[h]],Er=O[P+o[h]]):(Sr=96,Er=0),m=1<<l-x,v=1<<w,c=v;do v-=m,a[S+(y>>x)+v]=Da<<24|Sr<<16|Er|0;while(v!==0);for(m=1<<l-1;y&m;)m>>=1;if(m!==0?(y&=m-1,y+=m):y=0,h++,--Q[l]===0){if(l===d)break;l=r[i+o[h]]}if(l>b&&(y&E)!==C){for(x===0&&(x=b),S+=c,w=l-x,_=1<<w;w+x<d&&(_-=Q[w+x],!(_<=0));)w++,_<<=1;if(p+=1<<w,t===Jn&&p>fl||t===cl&&p>ul)return 1;C=y&E,a[C]=b<<24|w<<16|S-s|0}}return y!==0&&(a[S+y]=l-x<<24|64<<16|0),u.bits=b,0}});var Kl=g(fe=>{"use strict";var re=Ce(),na=Mn(),ve=jn(),xp=ol(),gr=pl(),kp=0,Ml=1,jl=2,ml=4,Sp=5,pi=6,tt=0,Ep=1,Cp=2,ae=-2,Wl=-3,aa=-4,Op=-5,gl=8,Hl=1,_l=2,vl=3,bl=4,wl=5,yl=6,xl=7,kl=8,Sl=9,El=10,_i=11,Te=12,Qn=13,Cl=14,ea=15,Ol=16,Al=17,Tl=18,Dl=19,mi=20,gi=21,Il=22,Rl=23,Fl=24,Nl=25,Pl=26,ta=27,Bl=28,zl=29,z=30,sa=31,Ap=32,Tp=852,Dp=592,Ip=15,Rp=Ip;function Ll(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function Fp(){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 re.Buf16(320),this.work=new re.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ul(e){var t;return!e||!e.state?ae:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Hl,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new re.Buf32(Tp),t.distcode=t.distdyn=new re.Buf32(Dp),t.sane=1,t.back=-1,tt)}function $l(e){var t;return!e||!e.state?ae:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Ul(e))}function Zl(e,t){var r,i;return!e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?ae:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,$l(e))}function Vl(e,t){var r,i;return e?(i=new Fp,e.state=i,i.window=null,r=Zl(e,t),r!==tt&&(e.state=null),r):ae}function Np(e){return Vl(e,Rp)}var ql=!0,ra,ia;function Pp(e){if(ql){var t;for(ra=new re.Buf32(512),ia=new re.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(gr(Ml,e.lens,0,288,ra,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;gr(jl,e.lens,0,32,ia,0,e.work,{bits:5}),ql=!1}e.lencode=ra,e.lenbits=9,e.distcode=ia,e.distbits=5}function Gl(e,t,r,i){var n,a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new re.Buf8(a.wsize)),i>=a.wsize?(re.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(n=a.wsize-a.wnext,n>i&&(n=i),re.arraySet(a.window,t,r-i,n,a.wnext),i-=n,i?(re.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=n,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=n))),0}function Bp(e,t){var r,i,n,a,s,o,u,f,l,h,c,d,b,w,x=0,_,p,y,m,v,C,E,S,O=new re.Buf8(4),P,k,Q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return ae;r=e.state,r.mode===Te&&(r.mode=Qn),s=e.next_out,n=e.output,u=e.avail_out,a=e.next_in,i=e.input,o=e.avail_in,f=r.hold,l=r.bits,h=o,c=u,S=tt;e:for(;;)switch(r.mode){case Hl:if(r.wrap===0){r.mode=Qn;break}for(;l<16;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(r.wrap&2&&f===35615){r.check=0,O[0]=f&255,O[1]=f>>>8&255,r.check=ve(r.check,O,2,0),f=0,l=0,r.mode=_l;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((f&255)<<8)+(f>>8))%31){e.msg="incorrect header check",r.mode=z;break}if((f&15)!==gl){e.msg="unknown compression method",r.mode=z;break}if(f>>>=4,l-=4,E=(f&15)+8,r.wbits===0)r.wbits=E;else if(E>r.wbits){e.msg="invalid window size",r.mode=z;break}r.dmax=1<<E,e.adler=r.check=1,r.mode=f&512?El:Te,f=0,l=0;break;case _l:for(;l<16;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(r.flags=f,(r.flags&255)!==gl){e.msg="unknown compression method",r.mode=z;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=z;break}r.head&&(r.head.text=f>>8&1),r.flags&512&&(O[0]=f&255,O[1]=f>>>8&255,r.check=ve(r.check,O,2,0)),f=0,l=0,r.mode=vl;case vl:for(;l<32;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.head&&(r.head.time=f),r.flags&512&&(O[0]=f&255,O[1]=f>>>8&255,O[2]=f>>>16&255,O[3]=f>>>24&255,r.check=ve(r.check,O,4,0)),f=0,l=0,r.mode=bl;case bl:for(;l<16;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.head&&(r.head.xflags=f&255,r.head.os=f>>8),r.flags&512&&(O[0]=f&255,O[1]=f>>>8&255,r.check=ve(r.check,O,2,0)),f=0,l=0,r.mode=wl;case wl:if(r.flags&1024){for(;l<16;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.length=f,r.head&&(r.head.extra_len=f),r.flags&512&&(O[0]=f&255,O[1]=f>>>8&255,r.check=ve(r.check,O,2,0)),f=0,l=0}else r.head&&(r.head.extra=null);r.mode=yl;case yl:if(r.flags&1024&&(d=r.length,d>o&&(d=o),d&&(r.head&&(E=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),re.arraySet(r.head.extra,i,a,d,E)),r.flags&512&&(r.check=ve(r.check,i,d,a)),o-=d,a+=d,r.length-=d),r.length))break e;r.length=0,r.mode=xl;case xl:if(r.flags&2048){if(o===0)break e;d=0;do E=i[a+d++],r.head&&E&&r.length<65536&&(r.head.name+=String.fromCharCode(E));while(E&&d<o);if(r.flags&512&&(r.check=ve(r.check,i,d,a)),o-=d,a+=d,E)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=kl;case kl:if(r.flags&4096){if(o===0)break e;d=0;do E=i[a+d++],r.head&&E&&r.length<65536&&(r.head.comment+=String.fromCharCode(E));while(E&&d<o);if(r.flags&512&&(r.check=ve(r.check,i,d,a)),o-=d,a+=d,E)break e}else r.head&&(r.head.comment=null);r.mode=Sl;case Sl:if(r.flags&512){for(;l<16;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(f!==(r.check&65535)){e.msg="header crc mismatch",r.mode=z;break}f=0,l=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Te;break;case El:for(;l<32;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}e.adler=r.check=Ll(f),f=0,l=0,r.mode=_i;case _i:if(r.havedict===0)return e.next_out=s,e.avail_out=u,e.next_in=a,e.avail_in=o,r.hold=f,r.bits=l,Cp;e.adler=r.check=1,r.mode=Te;case Te:if(t===Sp||t===pi)break e;case Qn:if(r.last){f>>>=l&7,l-=l&7,r.mode=ta;break}for(;l<3;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}switch(r.last=f&1,f>>>=1,l-=1,f&3){case 0:r.mode=Cl;break;case 1:if(Pp(r),r.mode=mi,t===pi){f>>>=2,l-=2;break e}break;case 2:r.mode=Al;break;case 3:e.msg="invalid block type",r.mode=z}f>>>=2,l-=2;break;case Cl:for(f>>>=l&7,l-=l&7;l<32;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if((f&65535)!==(f>>>16^65535)){e.msg="invalid stored block lengths",r.mode=z;break}if(r.length=f&65535,f=0,l=0,r.mode=ea,t===pi)break e;case ea:r.mode=Ol;case Ol:if(d=r.length,d){if(d>o&&(d=o),d>u&&(d=u),d===0)break e;re.arraySet(n,i,a,d,s),o-=d,a+=d,u-=d,s+=d,r.length-=d;break}r.mode=Te;break;case Al:for(;l<14;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(r.nlen=(f&31)+257,f>>>=5,l-=5,r.ndist=(f&31)+1,f>>>=5,l-=5,r.ncode=(f&15)+4,f>>>=4,l-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=z;break}r.have=0,r.mode=Tl;case Tl:for(;r.have<r.ncode;){for(;l<3;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.lens[Q[r.have++]]=f&7,f>>>=3,l-=3}for(;r.have<19;)r.lens[Q[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,P={bits:r.lenbits},S=gr(kp,r.lens,0,19,r.lencode,0,r.work,P),r.lenbits=P.bits,S){e.msg="invalid code lengths set",r.mode=z;break}r.have=0,r.mode=Dl;case Dl:for(;r.have<r.nlen+r.ndist;){for(;x=r.lencode[f&(1<<r.lenbits)-1],_=x>>>24,p=x>>>16&255,y=x&65535,!(_<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(y<16)f>>>=_,l-=_,r.lens[r.have++]=y;else{if(y===16){for(k=_+2;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(f>>>=_,l-=_,r.have===0){e.msg="invalid bit length repeat",r.mode=z;break}E=r.lens[r.have-1],d=3+(f&3),f>>>=2,l-=2}else if(y===17){for(k=_+3;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=_,l-=_,E=0,d=3+(f&7),f>>>=3,l-=3}else{for(k=_+7;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=_,l-=_,E=0,d=11+(f&127),f>>>=7,l-=7}if(r.have+d>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=z;break}for(;d--;)r.lens[r.have++]=E}}if(r.mode===z)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=z;break}if(r.lenbits=9,P={bits:r.lenbits},S=gr(Ml,r.lens,0,r.nlen,r.lencode,0,r.work,P),r.lenbits=P.bits,S){e.msg="invalid literal/lengths set",r.mode=z;break}if(r.distbits=6,r.distcode=r.distdyn,P={bits:r.distbits},S=gr(jl,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,P),r.distbits=P.bits,S){e.msg="invalid distances set",r.mode=z;break}if(r.mode=mi,t===pi)break e;case mi:r.mode=gi;case gi:if(o>=6&&u>=258){e.next_out=s,e.avail_out=u,e.next_in=a,e.avail_in=o,r.hold=f,r.bits=l,xp(e,c),s=e.next_out,n=e.output,u=e.avail_out,a=e.next_in,i=e.input,o=e.avail_in,f=r.hold,l=r.bits,r.mode===Te&&(r.back=-1);break}for(r.back=0;x=r.lencode[f&(1<<r.lenbits)-1],_=x>>>24,p=x>>>16&255,y=x&65535,!(_<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(p&&(p&240)===0){for(m=_,v=p,C=y;x=r.lencode[C+((f&(1<<m+v)-1)>>m)],_=x>>>24,p=x>>>16&255,y=x&65535,!(m+_<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=m,l-=m,r.back+=m}if(f>>>=_,l-=_,r.back+=_,r.length=y,p===0){r.mode=Pl;break}if(p&32){r.back=-1,r.mode=Te;break}if(p&64){e.msg="invalid literal/length code",r.mode=z;break}r.extra=p&15,r.mode=Il;case Il:if(r.extra){for(k=r.extra;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.length+=f&(1<<r.extra)-1,f>>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=Rl;case Rl:for(;x=r.distcode[f&(1<<r.distbits)-1],_=x>>>24,p=x>>>16&255,y=x&65535,!(_<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if((p&240)===0){for(m=_,v=p,C=y;x=r.distcode[C+((f&(1<<m+v)-1)>>m)],_=x>>>24,p=x>>>16&255,y=x&65535,!(m+_<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=m,l-=m,r.back+=m}if(f>>>=_,l-=_,r.back+=_,p&64){e.msg="invalid distance code",r.mode=z;break}r.offset=y,r.extra=p&15,r.mode=Fl;case Fl:if(r.extra){for(k=r.extra;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.offset+=f&(1<<r.extra)-1,f>>>=r.extra,l-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=z;break}r.mode=Nl;case Nl:if(u===0)break e;if(d=c-u,r.offset>d){if(d=r.offset-d,d>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=z;break}d>r.wnext?(d-=r.wnext,b=r.wsize-d):b=r.wnext-d,d>r.length&&(d=r.length),w=r.window}else w=n,b=s-r.offset,d=r.length;d>u&&(d=u),u-=d,r.length-=d;do n[s++]=w[b++];while(--d);r.length===0&&(r.mode=gi);break;case Pl:if(u===0)break e;n[s++]=r.length,u--,r.mode=gi;break;case ta:if(r.wrap){for(;l<32;){if(o===0)break e;o--,f|=i[a++]<<l,l+=8}if(c-=u,e.total_out+=c,r.total+=c,c&&(e.adler=r.check=r.flags?ve(r.check,n,c,s-c):na(r.check,n,c,s-c)),c=u,(r.flags?f:Ll(f))!==r.check){e.msg="incorrect data check",r.mode=z;break}f=0,l=0}r.mode=Bl;case Bl:if(r.wrap&&r.flags){for(;l<32;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(f!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=z;break}f=0,l=0}r.mode=zl;case zl:S=Ep;break e;case z:S=Wl;break e;case sa:return aa;case Ap:default:return ae}return e.next_out=s,e.avail_out=u,e.next_in=a,e.avail_in=o,r.hold=f,r.bits=l,(r.wsize||c!==e.avail_out&&r.mode<z&&(r.mode<ta||t!==ml))&&Gl(e,e.output,e.next_out,c-e.avail_out)?(r.mode=sa,aa):(h-=e.avail_in,c-=e.avail_out,e.total_in+=h,e.total_out+=c,r.total+=c,r.wrap&&c&&(e.adler=r.check=r.flags?ve(r.check,n,c,e.next_out-c):na(r.check,n,c,e.next_out-c)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Te?128:0)+(r.mode===mi||r.mode===ea?256:0),(h===0&&c===0||t===ml)&&S===tt&&(S=Op),S)}function zp(e){if(!e||!e.state)return ae;var t=e.state;return t.window&&(t.window=null),e.state=null,tt}function Lp(e,t){var r;return!e||!e.state||(r=e.state,(r.wrap&2)===0)?ae:(r.head=t,t.done=!1,tt)}function qp(e,t){var r=t.length,i,n,a;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==_i)?ae:i.mode===_i&&(n=1,n=na(n,t,r,0),n!==i.check)?Wl:(a=Gl(e,t,r,r),a?(i.mode=sa,aa):(i.havedict=1,tt))}fe.inflateReset=$l;fe.inflateReset2=Zl;fe.inflateResetKeep=Ul;fe.inflateInit=Np;fe.inflateInit2=Vl;fe.inflate=Bp;fe.inflateEnd=zp;fe.inflateGetHeader=Lp;fe.inflateSetDictionary=qp;fe.inflateInfo="pako inflate (from Nodeca project)"});var oa=g((t0,Yl)=>{"use strict";Yl.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}});var Jl=g((r0,Xl)=>{"use strict";function Mp(){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}Xl.exports=Mp});var ef=g(vr=>{"use strict";var Dt=Kl(),_r=Ce(),vi=Zn(),q=oa(),la=ai(),jp=Vn(),Wp=Jl(),Ql=Object.prototype.toString;function rt(e){if(!(this instanceof rt))return new rt(e);this.options=_r.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new jp,this.strm.avail_out=0;var r=Dt.inflateInit2(this.strm,t.windowBits);if(r!==q.Z_OK)throw new Error(la[r]);if(this.header=new Wp,Dt.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=vi.string2buf(t.dictionary):Ql.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Dt.inflateSetDictionary(this.strm,t.dictionary),r!==q.Z_OK)))throw new Error(la[r])}rt.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,n=this.options.dictionary,a,s,o,u,f,l=!1;if(this.ended)return!1;s=t===~~t?t:t===!0?q.Z_FINISH:q.Z_NO_FLUSH,typeof e=="string"?r.input=vi.binstring2buf(e):Ql.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new _r.Buf8(i),r.next_out=0,r.avail_out=i),a=Dt.inflate(r,q.Z_NO_FLUSH),a===q.Z_NEED_DICT&&n&&(a=Dt.inflateSetDictionary(this.strm,n)),a===q.Z_BUF_ERROR&&l===!0&&(a=q.Z_OK,l=!1),a!==q.Z_STREAM_END&&a!==q.Z_OK)return this.onEnd(a),this.ended=!0,!1;r.next_out&&(r.avail_out===0||a===q.Z_STREAM_END||r.avail_in===0&&(s===q.Z_FINISH||s===q.Z_SYNC_FLUSH))&&(this.options.to==="string"?(o=vi.utf8border(r.output,r.next_out),u=r.next_out-o,f=vi.buf2string(r.output,o),r.next_out=u,r.avail_out=i-u,u&&_r.arraySet(r.output,r.output,o,u,0),this.onData(f)):this.onData(_r.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(l=!0)}while((r.avail_in>0||r.avail_out===0)&&a!==q.Z_STREAM_END);return a===q.Z_STREAM_END&&(s=q.Z_FINISH),s===q.Z_FINISH?(a=Dt.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===q.Z_OK):(s===q.Z_SYNC_FLUSH&&(this.onEnd(q.Z_OK),r.avail_out=0),!0)};rt.prototype.onData=function(e){this.chunks.push(e)};rt.prototype.onEnd=function(e){e===q.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=_r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function fa(e,t){var r=new rt(t);if(r.push(e,!0),r.err)throw r.msg||la[r.err];return r.result}function Hp(e,t){return t=t||{},t.raw=!0,fa(e,t)}vr.Inflate=rt;vr.inflate=fa;vr.inflateRaw=Hp;vr.ungzip=fa});var nf=g((n0,rf)=>{"use strict";var Up=Ce().assign,$p=al(),Zp=ef(),Vp=oa(),tf={};Up(tf,$p,Zp,Vp);rf.exports=tf});var sf=g(wi=>{"use strict";var Gp=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",Kp=nf(),af=L(),bi=te(),Yp=Gp?"uint8array":"array";wi.magic="\b\0";function it(e,t){bi.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}af.inherits(it,bi);it.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(af.transformTo(Yp,e.data),!1)};it.prototype.flush=function(){bi.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)};it.prototype.cleanUp=function(){bi.prototype.cleanUp.call(this),this._pako=null};it.prototype._createPako=function(){this._pako=new Kp[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};wi.compressWorker=function(e){return new it("Deflate",e)};wi.uncompressWorker=function(){return new it("Inflate",{})}});var ha=g(ua=>{"use strict";var of=te();ua.STORE={magic:"\0\0",compressWorker:function(){return new of("STORE compression")},uncompressWorker:function(){return new of("STORE decompression")}};ua.DEFLATE=sf()});var ca=g(nt=>{"use strict";nt.LOCAL_FILE_HEADER="PK";nt.CENTRAL_FILE_HEADER="PK";nt.CENTRAL_DIRECTORY_END="PK";nt.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07";nt.ZIP64_CENTRAL_DIRECTORY_END="PK";nt.DATA_DESCRIPTOR="PK\x07\b"});var hf=g((l0,uf)=>{"use strict";var It=L(),Rt=te(),da=bt(),lf=ei(),yi=ca(),R=function(e,t){var r="",i;for(i=0;i<t;i++)r+=String.fromCharCode(e&255),e=e>>>8;return r},Xp=function(e,t){var r=e;return e||(r=t?16893:33204),(r&65535)<<16},Jp=function(e){return(e||0)&63},ff=function(e,t,r,i,n,a){var s=e.file,o=e.compression,u=a!==da.utf8encode,f=It.transformTo("string",a(s.name)),l=It.transformTo("string",da.utf8encode(s.name)),h=s.comment,c=It.transformTo("string",a(h)),d=It.transformTo("string",da.utf8encode(h)),b=l.length!==s.name.length,w=d.length!==h.length,x,_,p="",y="",m="",v=s.dir,C=s.date,E={crc32:0,compressedSize:0,uncompressedSize:0};(!t||r)&&(E.crc32=e.crc32,E.compressedSize=e.compressedSize,E.uncompressedSize=e.uncompressedSize);var S=0;t&&(S|=8),!u&&(b||w)&&(S|=2048);var O=0,P=0;v&&(O|=16),n==="UNIX"?(P=798,O|=Xp(s.unixPermissions,v)):(P=20,O|=Jp(s.dosPermissions,v)),x=C.getUTCHours(),x=x<<6,x=x|C.getUTCMinutes(),x=x<<5,x=x|C.getUTCSeconds()/2,_=C.getUTCFullYear()-1980,_=_<<4,_=_|C.getUTCMonth()+1,_=_<<5,_=_|C.getUTCDate(),b&&(y=R(1,1)+R(lf(f),4)+l,p+="up"+R(y.length,2)+y),w&&(m=R(1,1)+R(lf(c),4)+d,p+="uc"+R(m.length,2)+m);var k="";k+=`
|
|
3
|
+
\0`,k+=R(S,2),k+=o.magic,k+=R(x,2),k+=R(_,2),k+=R(E.crc32,4),k+=R(E.compressedSize,4),k+=R(E.uncompressedSize,4),k+=R(f.length,2),k+=R(p.length,2);var Q=yi.LOCAL_FILE_HEADER+k+f+p,at=yi.CENTRAL_FILE_HEADER+R(P,2)+k+R(c.length,2)+"\0\0\0\0"+R(O,4)+R(i,4)+f+p+c;return{fileRecord:Q,dirRecord:at}},Qp=function(e,t,r,i,n){var a="",s=It.transformTo("string",n(i));return a=yi.CENTRAL_DIRECTORY_END+"\0\0\0\0"+R(e,2)+R(e,2)+R(t,4)+R(r,4)+R(s.length,2)+s,a},em=function(e){var t="";return t=yi.DATA_DESCRIPTOR+R(e.crc32,4)+R(e.compressedSize,4)+R(e.uncompressedSize,4),t};function ue(e,t,r,i){Rt.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}It.inherits(ue,Rt);ue.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,Rt.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-i-1))/r:100}}))};ue.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=ff(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0};ue.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=ff(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:em(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null};ue.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,i=Qp(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})};ue.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()};ue.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(r){t.error(r)}),this};ue.prototype.resume=function(){if(!Rt.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0};ue.prototype.error=function(e){var t=this._sources;if(!Rt.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch{}return!0};ue.prototype.lock=function(){Rt.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()};uf.exports=ue});var df=g(cf=>{"use strict";var tm=ha(),rm=hf(),im=function(e,t){var r=e||t,i=tm[r];if(!i)throw new Error(r+" is not a valid compression method !");return i};cf.generateWorker=function(e,t,r){var i=new rm(t.streamFiles,r,t.platform,t.encodeFileName),n=0;try{e.forEach(function(a,s){n++;var o=im(s.options.compression,t.compression),u=s.options.compressionOptions||t.compressionOptions||{},f=s.dir,l=s.date;s._compressWorker(o,u).withStreamInfo("file",{name:a,dir:f,date:l,comment:s.comment||"",unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions}).pipe(i)}),i.entriesCount=n}catch(a){i.error(a)}return i}});var mf=g((u0,pf)=>{"use strict";var nm=L(),xi=te();function br(e,t){xi.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}nm.inherits(br,xi);br.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",function(r){t.push({data:r,meta:{percent:0}})}).on("error",function(r){t.isPaused?this.generatedError=r:t.error(r)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})};br.prototype.pause=function(){return xi.prototype.pause.call(this)?(this._stream.pause(),!0):!1};br.prototype.resume=function(){return xi.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),!0):!1};pf.exports=br});var Ef=g((h0,Sf)=>{"use strict";var am=bt(),wr=L(),bf=te(),sm=vn(),wf=bn(),gf=ti(),om=go(),lm=df(),_f=Kt(),fm=mf(),yf=function(e,t,r){var i=wr.getTypeOf(t),n,a=wr.extend(r||{},wf);a.date=a.date||new Date,a.compression!==null&&(a.compression=a.compression.toUpperCase()),typeof a.unixPermissions=="string"&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&a.unixPermissions&16384&&(a.dir=!0),a.dosPermissions&&a.dosPermissions&16&&(a.dir=!0),a.dir&&(e=xf(e)),a.createFolders&&(n=um(e))&&kf.call(this,n,!0);var s=i==="string"&&a.binary===!1&&a.base64===!1;(!r||typeof r.binary>"u")&&(a.binary=!s);var o=t instanceof gf&&t.uncompressedSize===0;(o||a.dir||!t||t.length===0)&&(a.base64=!1,a.binary=!0,t="",a.compression="STORE",i="string");var u=null;t instanceof gf||t instanceof bf?u=t:_f.isNode&&_f.isStream(t)?u=new fm(e,t):u=wr.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64);var f=new om(e,u,a);this.files[e]=f},um=function(e){e.slice(-1)==="/"&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},xf=function(e){return e.slice(-1)!=="/"&&(e+="/"),e},kf=function(e,t){return t=typeof t<"u"?t:wf.createFolders,e=xf(e),this.files[e]||yf.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function vf(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var hm={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,i;for(t in this.files)i=this.files[t],r=t.slice(this.root.length,t.length),r&&t.slice(0,this.root.length)===this.root&&e(r,i)},filter:function(e){var t=[];return this.forEach(function(r,i){e(r,i)&&t.push(i)}),t},file:function(e,t,r){if(arguments.length===1)if(vf(e)){var i=e;return this.filter(function(a,s){return!s.dir&&i.test(a)})}else{var n=this.files[this.root+e];return n&&!n.dir?n:null}else e=this.root+e,yf.call(this,e,t,r);return this},folder:function(e){if(!e)return this;if(vf(e))return this.filter(function(n,a){return a.dir&&e.test(n)});var t=this.root+e,r=kf.call(this,t),i=this.clone();return i.root=r.name,i},remove:function(e){e=this.root+e;var t=this.files[e];if(t||(e.slice(-1)!=="/"&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(n,a){return a.name.slice(0,e.length)===e}),i=0;i<r.length;i++)delete this.files[r[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if(r=wr.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:am.utf8encode}),r.type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),r.type==="binarystring"&&(r.type="string"),!r.type)throw new Error("No output type specified.");wr.checkSupport(r.type),(r.platform==="darwin"||r.platform==="freebsd"||r.platform==="linux"||r.platform==="sunos")&&(r.platform="UNIX"),r.platform==="win32"&&(r.platform="DOS");var i=r.comment||this.comment||"";t=lm.generateWorker(this,r,i)}catch(n){t=new bf("error"),t.error(n)}return new sm(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return e=e||{},e.type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};Sf.exports=hm});var pa=g((c0,Of)=>{"use strict";var cm=L();function Cf(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}Cf.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t=0,r;for(this.checkOffset(e),r=this.index+e-1;r>=this.index;r--)t=(t<<8)+this.byteAt(r);return this.index+=e,t},readString:function(e){return cm.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1))}};Of.exports=Cf});var ma=g((d0,Tf)=>{"use strict";var Af=pa(),dm=L();function Ft(e){Af.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255}dm.inherits(Ft,Af);Ft.prototype.byteAt=function(e){return this.data[this.zero+e]};Ft.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===t&&this.data[a+1]===r&&this.data[a+2]===i&&this.data[a+3]===n)return a-this.zero;return-1};Ft.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&r===a[1]&&i===a[2]&&n===a[3]};Ft.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Tf.exports=Ft});var Rf=g((p0,If)=>{"use strict";var Df=pa(),pm=L();function Nt(e){Df.call(this,e)}pm.inherits(Nt,Df);Nt.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};Nt.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};Nt.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};Nt.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};If.exports=Nt});var _a=g((m0,Nf)=>{"use strict";var Ff=ma(),mm=L();function ga(e){Ff.call(this,e)}mm.inherits(ga,Ff);ga.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Nf.exports=ga});var zf=g((g0,Bf)=>{"use strict";var Pf=_a(),gm=L();function va(e){Pf.call(this,e)}gm.inherits(va,Pf);va.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Bf.exports=va});var ba=g((_0,qf)=>{"use strict";var ki=L(),Lf=Se(),_m=ma(),vm=Rf(),bm=zf(),wm=_a();qf.exports=function(e){var t=ki.getTypeOf(e);return ki.checkSupport(t),t==="string"&&!Lf.uint8array?new vm(e):t==="nodebuffer"?new bm(e):Lf.uint8array?new wm(ki.transformTo("uint8array",e)):new _m(ki.transformTo("array",e))}});var Hf=g((v0,Wf)=>{"use strict";var wa=ba(),We=L(),ym=ti(),Mf=ei(),Si=bt(),Ei=ha(),xm=Se(),km=0,Sm=3,Em=function(e){for(var t in Ei)if(Object.prototype.hasOwnProperty.call(Ei,t)&&Ei[t].magic===e)return Ei[t];return null};function jf(e,t){this.options=e,this.loadOptions=t}jf.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),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(t=Em(this.compressionMethod),t===null)throw new Error("Corrupted zip : compression "+We.pretty(this.compressionMethod)+" unknown (inner file : "+We.transformTo("string",this.fileName)+")");this.decompressed=new ym(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),e===km&&(this.dosPermissions=this.externalFileAttributes&63),e===Sm&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=wa(this.extraFields[1].value);this.uncompressedSize===We.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===We.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===We.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===We.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t=e.index+this.extraFieldsLength,r,i,n;for(this.extraFields||(this.extraFields={});e.index+4<t;)r=e.readInt(2),i=e.readInt(2),n=e.readData(i),this.extraFields[r]={id:r,length:i,value:n};e.setIndex(t)},handleUTF8:function(){var e=xm.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Si.utf8decode(this.fileName),this.fileCommentStr=Si.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var r=We.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var i=this.findExtraFieldUnicodeComment();if(i!==null)this.fileCommentStr=i;else{var n=We.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(n)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=wa(e.value);return t.readInt(1)!==1||Mf(this.fileName)!==t.readInt(4)?null:Si.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=wa(e.value);return t.readInt(1)!==1||Mf(this.fileComment)!==t.readInt(4)?null:Si.utf8decode(t.readData(e.length-5))}return null}};Wf.exports=jf});var Zf=g((b0,$f)=>{"use strict";var Cm=ba(),De=L(),he=ca(),Om=Hf(),Am=Se();function Uf(e){this.files=[],this.loadOptions=e}Uf.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+De.pretty(t)+", expected "+De.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4),n=i===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=Am.uint8array?"uint8array":"array",r=De.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e=this.zip64EndOfCentralSize-44,t=0,r,i,n;t<e;)r=this.reader.readInt(2),i=this.reader.readInt(4),n=this.reader.readData(i),this.zip64ExtensibleData[r]={id:r,length:i,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(he.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(he.CENTRAL_FILE_HEADER);)e=new Om({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e);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 e=this.reader.lastIndexOfSignature(he.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,he.LOCAL_FILE_HEADER);throw t?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"):new Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(e);var r=e;if(this.checkSignature(he.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===De.MAX_VALUE_16BITS||this.diskWithCentralDirStart===De.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===De.MAX_VALUE_16BITS||this.centralDirRecords===De.MAX_VALUE_16BITS||this.centralDirSize===De.MAX_VALUE_32BITS||this.centralDirOffset===De.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(he.ZIP64_CENTRAL_DIRECTORY_LOCATOR),e<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(he.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,he.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(he.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(he.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var n=r-i;if(n>0)this.isSignature(r,he.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=Cm(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};$f.exports=Uf});var Kf=g((w0,Gf)=>{"use strict";var ya=L(),Ci=gt(),Tm=bt(),Dm=Zf(),Im=xn(),Vf=Kt();function Rm(e){return new Ci.Promise(function(t,r){var i=e.decompressed.getContentWorker().pipe(new Im);i.on("error",function(n){r(n)}).on("end",function(){i.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}Gf.exports=function(e,t){var r=this;return t=ya.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:Tm.utf8decode}),Vf.isNode&&Vf.isStream(e)?Ci.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):ya.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(i){var n=new Dm(t);return n.load(i),n}).then(function(n){var a=[Ci.Promise.resolve(n)],s=n.files;if(t.checkCRC32)for(var o=0;o<s.length;o++)a.push(Rm(s[o]));return Ci.Promise.all(a)}).then(function(n){for(var a=n.shift(),s=a.files,o=0;o<s.length;o++){var u=s[o],f=u.fileNameStr,l=ya.resolve(u.fileNameStr);r.file(l,u.decompressed,{binary:!0,optimizedBinaryString:!0,date:u.date,dir:u.dir,comment:u.fileCommentStr.length?u.fileCommentStr:null,unixPermissions:u.unixPermissions,dosPermissions:u.dosPermissions,createFolders:t.createFolders}),u.dir||(r.file(l).unsafeOriginalName=f)}return a.zipComment.length&&(r.comment=a.zipComment),r})}});var Xf=g((y0,Yf)=>{"use strict";function se(){if(!(this instanceof se))return new se;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new se;for(var t in this)typeof this[t]!="function"&&(e[t]=this[t]);return e}}se.prototype=Ef();se.prototype.loadAsync=Kf();se.support=Se();se.defaults=bn();se.version="3.10.1";se.loadAsync=function(e,t){return new se().loadAsync(e,t)};se.external=gt();Yf.exports=se});var Ie=class extends Error{constructor(t,r,i){super(i),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=t,this.nestedError=void 0}},He=class extends Ie{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};var Bt=class{constructor(t,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t;break}this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:(r.push(t),r)}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,i)=>{if(!this.argChoices.includes(r))throw new He(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(r,i):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function Cr(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}import{EventEmitter as Tu}from"node:events";import Di from"node:child_process";import we from"node:path";import Ar from"node:fs";import D from"node:process";import{stripVTControlCharacters as Du}from"node:util";import{stripVTControlCharacters as Cu}from"node:util";var zt=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(t){this.helpWidth=this.helpWidth??t.helpWidth??80}visibleCommands(t){let r=t.commands.filter(n=>!n._hidden),i=t._getHelpCommand();return i&&!i._hidden&&r.push(i),this.sortSubcommands&&r.sort((n,a)=>n.name().localeCompare(a.name())),r}compareOptions(t,r){let i=n=>n.short?n.short.replace(/^-/,""):n.long.replace(/^--/,"");return i(t).localeCompare(i(r))}visibleOptions(t){let r=t.options.filter(n=>!n.hidden),i=t._getHelpOption();if(i&&!i.hidden){let n=i.short&&t._findOption(i.short),a=i.long&&t._findOption(i.long);!n&&!a?r.push(i):i.long&&!a?r.push(t.createOption(i.long,i.description)):i.short&&!n&&r.push(t.createOption(i.short,i.description))}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];let r=[];for(let i=t.parent;i;i=i.parent){let n=i.options.filter(a=>!a.hidden);r.push(...n)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach(r=>{r.description=r.description||t._argsDescription[r.name()]||""}),t.registeredArguments.find(r=>r.description)?t.registeredArguments:[]}subcommandTerm(t){let r=t.registeredArguments.map(i=>Cr(i)).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,r){return r.visibleCommands(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleSubcommandTerm(r.subcommandTerm(n)))),0)}longestOptionTermLength(t,r){return r.visibleOptions(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestGlobalOptionTermLength(t,r){return r.visibleGlobalOptions(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleOptionTerm(r.optionTerm(n)))),0)}longestArgumentTermLength(t,r){return r.visibleArguments(t).reduce((i,n)=>Math.max(i,this.displayWidth(r.styleArgumentTerm(r.argumentTerm(n)))),0)}commandUsage(t){let r=t._name;t._aliases[0]&&(r=r+"|"+t._aliases[0]);let i="";for(let n=t.parent;n;n=n.parent)i=n.name()+" "+i;return i+r+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),t.defaultValue!==void 0&&(t.required||t.optional||t.isBoolean()&&typeof t.defaultValue=="boolean")&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),t.presetArg!==void 0&&t.optional&&r.push(`preset: ${JSON.stringify(t.presetArg)}`),t.envVar!==void 0&&r.push(`env: ${t.envVar}`),r.length>0){let i=`(${r.join(", ")})`;return t.description?`${t.description} ${i}`:i}return t.description}argumentDescription(t){let r=[];if(t.argChoices&&r.push(`choices: ${t.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),t.defaultValue!==void 0&&r.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),r.length>0){let i=`(${r.join(", ")})`;return t.description?`${t.description} ${i}`:i}return t.description}formatItemList(t,r,i){return r.length===0?[]:[i.styleTitle(t),...r,""]}groupItems(t,r,i){let n=new Map;return t.forEach(a=>{let s=i(a);n.has(s)||n.set(s,[])}),r.forEach(a=>{let s=i(a);n.has(s)||n.set(s,[]),n.get(s).push(a)}),n}formatHelp(t,r){let i=r.padWidth(t,r),n=r.helpWidth??80;function a(h,c){return r.formatItem(h,i,c,r)}let s=[`${r.styleTitle("Usage:")} ${r.styleUsage(r.commandUsage(t))}`,""],o=r.commandDescription(t);o.length>0&&(s=s.concat([r.boxWrap(r.styleCommandDescription(o),n),""]));let u=r.visibleArguments(t).map(h=>a(r.styleArgumentTerm(r.argumentTerm(h)),r.styleArgumentDescription(r.argumentDescription(h))));if(s=s.concat(this.formatItemList("Arguments:",u,r)),this.groupItems(t.options,r.visibleOptions(t),h=>h.helpGroupHeading??"Options:").forEach((h,c)=>{let d=h.map(b=>a(r.styleOptionTerm(r.optionTerm(b)),r.styleOptionDescription(r.optionDescription(b))));s=s.concat(this.formatItemList(c,d,r))}),r.showGlobalOptions){let h=r.visibleGlobalOptions(t).map(c=>a(r.styleOptionTerm(r.optionTerm(c)),r.styleOptionDescription(r.optionDescription(c))));s=s.concat(this.formatItemList("Global Options:",h,r))}return this.groupItems(t.commands,r.visibleCommands(t),h=>h.helpGroup()||"Commands:").forEach((h,c)=>{let d=h.map(b=>a(r.styleSubcommandTerm(r.subcommandTerm(b)),r.styleSubcommandDescription(r.subcommandDescription(b))));s=s.concat(this.formatItemList(c,d,r))}),s.join(`
|
|
4
|
+
`)}displayWidth(t){return Cu(t).length}styleTitle(t){return t}styleUsage(t){return t.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r==="[command]"?this.styleSubcommandText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleCommandText(r)).join(" ")}styleCommandDescription(t){return this.styleDescriptionText(t)}styleOptionDescription(t){return this.styleDescriptionText(t)}styleSubcommandDescription(t){return this.styleDescriptionText(t)}styleArgumentDescription(t){return this.styleDescriptionText(t)}styleDescriptionText(t){return t}styleOptionTerm(t){return this.styleOptionText(t)}styleSubcommandTerm(t){return t.split(" ").map(r=>r==="[options]"?this.styleOptionText(r):r[0]==="["||r[0]==="<"?this.styleArgumentText(r):this.styleSubcommandText(r)).join(" ")}styleArgumentTerm(t){return this.styleArgumentText(t)}styleOptionText(t){return t}styleArgumentText(t){return t}styleSubcommandText(t){return t}styleCommandText(t){return t}padWidth(t,r){return Math.max(r.longestOptionTermLength(t,r),r.longestGlobalOptionTermLength(t,r),r.longestSubcommandTermLength(t,r),r.longestArgumentTermLength(t,r))}preformatted(t){return/\n[^\S\r\n]/.test(t)}formatItem(t,r,i,n){let s=" ".repeat(2);if(!i)return s+t;let o=t.padEnd(r+t.length-n.displayWidth(t)),u=2,l=(this.helpWidth??80)-r-u-2,h;return l<this.minWidthToWrap||n.preformatted(i)?h=i:h=n.boxWrap(i,l).replace(/\n/g,`
|
|
5
5
|
`+" ".repeat(r+u)),s+o+" ".repeat(u)+h.replace(/\n/g,`
|
|
6
6
|
${s}`)}boxWrap(t,r){if(r<this.minWidthToWrap)return t;let i=t.split(/\r\n|\n/),n=/[\s]*[^\s]+/g,a=[];return i.forEach(s=>{let o=s.match(n);if(o===null){a.push("");return}let u=[o.shift()],f=this.displayWidth(u[0]);o.forEach(l=>{let h=this.displayWidth(l);if(f+h<=r){u.push(l),f+=h;return}a.push(u.join(""));let c=l.trimStart();u=[c],f=this.displayWidth(c)}),a.push(u.join(""))}),a.join(`
|
|
7
|
-
`)}};var st=class{constructor(t,r){this.flags=t,this.description=r||"",this.required=t.includes("<"),this.optional=t.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(t),this.mandatory=!1;let i=
|
|
7
|
+
`)}};var st=class{constructor(t,r){this.flags=t,this.description=r||"",this.required=t.includes("<"),this.optional=t.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(t),this.mandatory=!1;let i=Ou(t);this.short=i.shortFlag,this.long=i.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(t,r){return this.defaultValue=t,this.defaultValueDescription=r,this}preset(t){return this.presetArg=t,this}conflicts(t){return this.conflictsWith=this.conflictsWith.concat(t),this}implies(t){let r=t;return typeof t=="string"&&(r={[t]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(t){return this.envVar=t,this}argParser(t){return this.parseArg=t,this}makeOptionMandatory(t=!0){return this.mandatory=!!t,this}hideHelp(t=!0){return this.hidden=!!t,this}_collectValue(t,r){return r===this.defaultValue||!Array.isArray(r)?[t]:(r.push(t),r)}choices(t){return this.argChoices=t.slice(),this.parseArg=(r,i)=>{if(!this.argChoices.includes(r))throw new He(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(r,i):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?Ra(this.name().replace(/^no-/,"")):Ra(this.name())}helpGroup(t){return this.helpGroupHeading=t,this}is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Or=class{constructor(t){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,t.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,i)=>{this.positiveOptions.has(i)&&this.dualOptions.add(i)})}valueFromOption(t,r){let i=r.attributeName();if(!this.dualOptions.has(i))return!0;let n=this.negativeOptions.get(i).presetArg,a=n!==void 0?n:!1;return r.negate===(a===t)}};function Ra(e){return e.split("-").reduce((t,r)=>t+r[0].toUpperCase()+r.slice(1))}function Ou(e){let t,r,i=/^-[^-]$/,n=/^--[^-]/,a=e.split(/[ |,]+/).concat("guard");if(i.test(a[0])&&(t=a.shift()),n.test(a[0])&&(r=a.shift()),!t&&i.test(a[0])&&(t=a.shift()),!t&&n.test(a[0])&&(t=r,r=a.shift()),a[0].startsWith("-")){let s=a[0],o=`option creation failed due to '${s}' in option flags '${e}'`;throw/^-[^-][^-]/.test(s)?new Error(`${o}
|
|
8
8
|
- a short flag is a single dash and a single character
|
|
9
9
|
- either use a single dash and a single character (for a short flag)
|
|
10
10
|
- or use a double dash for a long option (and can have two, like '--ws, --workspace')`):i.test(s)?new Error(`${o}
|
|
11
11
|
- too many short flags`):n.test(s)?new Error(`${o}
|
|
12
12
|
- too many long flags`):new Error(`${o}
|
|
13
|
-
- unrecognised flag format`)}if(t===void 0&&r===void 0)throw new Error(`option creation failed due to no flags found in '${e}'.`);return{shortFlag:t,longFlag:r}}function
|
|
13
|
+
- unrecognised flag format`)}if(t===void 0&&r===void 0)throw new Error(`option creation failed due to no flags found in '${e}'.`);return{shortFlag:t,longFlag:r}}function Au(e,t){if(Math.abs(e.length-t.length)>3)return Math.max(e.length,t.length);let r=[];for(let i=0;i<=e.length;i++)r[i]=[i];for(let i=0;i<=t.length;i++)r[0][i]=i;for(let i=1;i<=t.length;i++)for(let n=1;n<=e.length;n++){let a;e[n-1]===t[i-1]?a=0:a=1,r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+a),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+1))}return r[e.length][t.length]}function Ti(e,t){if(!t||t.length===0)return"";t=Array.from(new Set(t));let r=e.startsWith("--");r&&(e=e.slice(2),t=t.map(s=>s.slice(2)));let i=[],n=3,a=.4;return t.forEach(s=>{if(s.length<=1)return;let o=Au(e,s),u=Math.max(e.length,s.length);(u-o)/u>a&&(o<n?(n=o,i=[s]):o===n&&i.push(s))}),i.sort((s,o)=>s.localeCompare(o)),r&&(i=i.map(s=>`--${s}`)),i.length>1?`
|
|
14
14
|
(Did you mean one of ${i.join(", ")}?)`:i.length===1?`
|
|
15
|
-
(Did you mean ${i[0]}?)`:""}var
|
|
16
|
-
- specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=t._name),(r.noHelp||r.hidden)&&(t._hidden=!0),this._registerCommand(t),t.parent=this,t._checkForBrokenPassThrough(),this}createArgument(t,r){return new
|
|
15
|
+
(Did you mean ${i[0]}?)`:""}var Tr=class e extends Tu{constructor(t){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=t||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:r=>D.stdout.write(r),writeErr:r=>D.stderr.write(r),outputError:(r,i)=>i(r),getOutHelpWidth:()=>D.stdout.isTTY?D.stdout.columns:void 0,getErrHelpWidth:()=>D.stderr.isTTY?D.stderr.columns:void 0,getOutHasColors:()=>Na()??(D.stdout.isTTY&&D.stdout.hasColors?.()),getErrHasColors:()=>Na()??(D.stderr.isTTY&&D.stderr.hasColors?.()),stripColor:r=>Du(r)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(t){return this._outputConfiguration=t._outputConfiguration,this._helpOption=t._helpOption,this._helpCommand=t._helpCommand,this._helpConfiguration=t._helpConfiguration,this._exitCallback=t._exitCallback,this._storeOptionsAsProperties=t._storeOptionsAsProperties,this._combineFlagAndOptionalValue=t._combineFlagAndOptionalValue,this._allowExcessArguments=t._allowExcessArguments,this._enablePositionalOptions=t._enablePositionalOptions,this._showHelpAfterError=t._showHelpAfterError,this._showSuggestionAfterError=t._showSuggestionAfterError,this}_getCommandAndAncestors(){let t=[];for(let r=this;r;r=r.parent)t.push(r);return t}command(t,r,i){let n=r,a=i;typeof n=="object"&&n!==null&&(a=n,n=null),a=a||{};let[,s,o]=t.match(/([^ ]+) *(.*)/),u=this.createCommand(s);return n&&(u.description(n),u._executableHandler=!0),a.isDefault&&(this._defaultCommandName=u._name),u._hidden=!!(a.noHelp||a.hidden),u._executableFile=a.executableFile||null,o&&u.arguments(o),this._registerCommand(u),u.parent=this,u.copyInheritedSettings(this),n?this:u}createCommand(t){return new e(t)}createHelp(){return Object.assign(new zt,this.configureHelp())}configureHelp(t){return t===void 0?this._helpConfiguration:(this._helpConfiguration=t,this)}configureOutput(t){return t===void 0?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...t},this)}showHelpAfterError(t=!0){return typeof t!="string"&&(t=!!t),this._showHelpAfterError=t,this}showSuggestionAfterError(t=!0){return this._showSuggestionAfterError=!!t,this}addCommand(t,r){if(!t._name)throw new Error(`Command passed to .addCommand() must have a name
|
|
16
|
+
- specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=t._name),(r.noHelp||r.hidden)&&(t._hidden=!0),this._registerCommand(t),t.parent=this,t._checkForBrokenPassThrough(),this}createArgument(t,r){return new Bt(t,r)}argument(t,r,i,n){let a=this.createArgument(t,r);return typeof i=="function"?a.default(n).argParser(i):a.default(i),this.addArgument(a),this}arguments(t){return t.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(t){let r=this.registeredArguments.slice(-1)[0];if(r?.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(t.required&&t.defaultValue!==void 0&&t.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${t.name()}'`);return this.registeredArguments.push(t),this}helpCommand(t,r){if(typeof t=="boolean")return this._addImplicitHelpCommand=t,t&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;let i=t??"help [command]",[,n,a]=i.match(/([^ ]+) *(.*)/),s=r??"display help for command",o=this.createCommand(n);return o.helpOption(!1),a&&o.arguments(a),s&&o.description(s),this._addImplicitHelpCommand=!0,this._helpCommand=o,(t||r)&&this._initCommandGroup(o),this}addHelpCommand(t,r){return typeof t!="object"?(this.helpCommand(t,r),this):(this._addImplicitHelpCommand=!0,this._helpCommand=t,this._initCommandGroup(t),this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(t,r){let i=["preSubcommand","preAction","postAction"];if(!i.includes(t))throw new Error(`Unexpected value for event passed to hook : '${t}'.
|
|
17
17
|
Expecting one of '${i.join("', '")}'`);return this._lifeCycleHooks[t]?this._lifeCycleHooks[t].push(r):this._lifeCycleHooks[t]=[r],this}exitOverride(t){return t?this._exitCallback=t:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(t,r,i){this._exitCallback&&this._exitCallback(new Ie(t,r,i)),D.exit(t)}action(t){let r=i=>{let n=this.registeredArguments.length,a=i.slice(0,n);return this._storeOptionsAsProperties?a[n]=this:a[n]=this.opts(),a.push(this),t.apply(this,a)};return this._actionHandler=r,this}createOption(t,r){return new st(t,r)}_callParseArg(t,r,i,n){try{return t.parseArg(r,i)}catch(a){if(a.code==="commander.invalidArgument"){let s=`${n} ${a.message}`;this.error(s,{exitCode:a.exitCode,code:a.code})}throw a}}_registerOption(t){let r=t.short&&this._findOption(t.short)||t.long&&this._findOption(t.long);if(r){let i=t.long&&this._findOption(t.long)?t.long:t.short;throw new Error(`Cannot add option '${t.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${i}'
|
|
18
18
|
- already used by option '${r.flags}'`)}this._initOptionGroup(t),this.options.push(t)}_registerCommand(t){let r=n=>[n.name()].concat(n.aliases()),i=r(t).find(n=>this._findCommand(n));if(i){let n=r(this._findCommand(i)).join("|"),a=r(t).join("|");throw new Error(`cannot add command '${a}' as already have command '${n}'`)}this._initCommandGroup(t),this.commands.push(t)}addOption(t){this._registerOption(t);let r=t.name(),i=t.attributeName();t.defaultValue!==void 0&&this.setOptionValueWithSource(i,t.defaultValue,"default");let n=(a,s,o)=>{a==null&&t.presetArg!==void 0&&(a=t.presetArg);let u=this.getOptionValue(i);a!==null&&t.parseArg?a=this._callParseArg(t,a,u,s):a!==null&&t.variadic&&(a=t._collectValue(a,u)),a==null&&(t.negate?a=!1:t.isBoolean()||t.optional?a=!0:a=""),this.setOptionValueWithSource(i,a,o)};return this.on("option:"+r,a=>{let s=`error: option '${t.flags}' argument '${a}' is invalid.`;n(a,s,"cli")}),t.envVar&&this.on("optionEnv:"+r,a=>{let s=`error: option '${t.flags}' value '${a}' from env '${t.envVar}' is invalid.`;n(a,s,"env")}),this}_optionEx(t,r,i,n,a){if(typeof r=="object"&&r instanceof st)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let s=this.createOption(r,i);if(s.makeOptionMandatory(!!t.mandatory),typeof n=="function")s.default(a).argParser(n);else if(n instanceof RegExp){let o=n;n=(u,f)=>{let l=o.exec(u);return l?l[0]:f},s.default(a).argParser(n)}else s.default(n);return this.addOption(s)}option(t,r,i,n){return this._optionEx({},t,r,i,n)}requiredOption(t,r,i,n){return this._optionEx({mandatory:!0},t,r,i,n)}combineFlagAndOptionalValue(t=!0){return this._combineFlagAndOptionalValue=!!t,this}allowUnknownOption(t=!0){return this._allowUnknownOption=!!t,this}allowExcessArguments(t=!0){return this._allowExcessArguments=!!t,this}enablePositionalOptions(t=!0){return this._enablePositionalOptions=!!t,this}passThroughOptions(t=!0){return this._passThroughOptions=!!t,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(t=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!t,this}getOptionValue(t){return this._storeOptionsAsProperties?this[t]:this._optionValues[t]}setOptionValue(t,r){return this.setOptionValueWithSource(t,r,void 0)}setOptionValueWithSource(t,r,i){return this._storeOptionsAsProperties?this[t]=r:this._optionValues[t]=r,this._optionValueSources[t]=i,this}getOptionValueSource(t){return this._optionValueSources[t]}getOptionValueSourceWithGlobals(t){let r;return this._getCommandAndAncestors().forEach(i=>{i.getOptionValueSource(t)!==void 0&&(r=i.getOptionValueSource(t))}),r}_prepareUserArgs(t,r){if(t!==void 0&&!Array.isArray(t))throw new Error("first parameter to parse must be array or undefined");if(r=r||{},t===void 0&&r.from===void 0){D.versions?.electron&&(r.from="electron");let n=D.execArgv??[];(n.includes("-e")||n.includes("--eval")||n.includes("-p")||n.includes("--print"))&&(r.from="eval")}t===void 0&&(t=D.argv),this.rawArgs=t.slice();let i;switch(r.from){case void 0:case"node":this._scriptPath=t[1],i=t.slice(2);break;case"electron":D.defaultApp?(this._scriptPath=t[1],i=t.slice(2)):i=t.slice(1);break;case"user":i=t.slice(0);break;case"eval":i=t.slice(1);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",i}parse(t,r){this._prepareForParse();let i=this._prepareUserArgs(t,r);return this._parseCommand([],i),this}async parseAsync(t,r){this._prepareForParse();let i=this._prepareUserArgs(t,r);return await this._parseCommand([],i),this}_prepareForParse(){this._savedState===null?(this.options.filter(t=>t.negate&&t.defaultValue===void 0&&this.getOptionValue(t.attributeName())===void 0).forEach(t=>{let r=t.long.replace(/^--no-/,"--");this._findOption(r)||this.setOptionValueWithSource(t.attributeName(),!0,"default")}),this.saveStateBeforeParse()):this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error(`Can not call parse again when storeOptionsAsProperties is true.
|
|
19
|
-
- either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(t,r,i){if(
|
|
19
|
+
- either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(t,r,i){if(Ar.existsSync(t))return;let n=r?`searched for local subcommand relative to directory '${r}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",a=`'${t}' does not exist
|
|
20
20
|
- if '${i}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
21
21
|
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
22
|
-
- ${n}`;throw new Error(a)}_executeSubCommand(t,r){r=r.slice();let i=[".js",".ts",".tsx",".mjs",".cjs"];function n(l,h){let c=we.resolve(l,h);if(
|
|
22
|
+
- ${n}`;throw new Error(a)}_executeSubCommand(t,r){r=r.slice();let i=[".js",".ts",".tsx",".mjs",".cjs"];function n(l,h){let c=we.resolve(l,h);if(Ar.existsSync(c))return c;if(i.includes(we.extname(h)))return;let d=i.find(b=>Ar.existsSync(`${c}${b}`));if(d)return`${c}${d}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let a=t._executableFile||`${this._name}-${t._name}`,s=this._executableDir||"";if(this._scriptPath){let l;try{l=Ar.realpathSync(this._scriptPath)}catch{l=this._scriptPath}s=we.resolve(we.dirname(l),s)}if(s){let l=n(s,a);if(!l&&!t._executableFile&&this._scriptPath){let h=we.basename(this._scriptPath,we.extname(this._scriptPath));h!==this._name&&(l=n(s,`${h}-${t._name}`))}a=l||a}let o=i.includes(we.extname(a)),u;D.platform!=="win32"?o?(r.unshift(a),r=Fa(D.execArgv).concat(r),u=Di.spawn(D.argv[0],r,{stdio:"inherit"})):u=Di.spawn(a,r,{stdio:"inherit"}):(this._checkForMissingExecutable(a,s,t._name),r.unshift(a),r=Fa(D.execArgv).concat(r),u=Di.spawn(D.execPath,r,{stdio:"inherit"})),u.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(h=>{D.on(h,()=>{u.killed===!1&&u.exitCode===null&&u.kill(h)})});let f=this._exitCallback;u.on("close",l=>{l=l??1,f?f(new Ie(l,"commander.executeSubCommandAsync","(close)")):D.exit(l)}),u.on("error",l=>{if(l.code==="ENOENT")this._checkForMissingExecutable(a,s,t._name);else if(l.code==="EACCES")throw new Error(`'${a}' not executable`);if(!f)D.exit(1);else{let h=new Ie(1,"commander.executeSubCommandAsync","(error)");h.nestedError=l,f(h)}}),this.runningCommand=u}_dispatchSubcommand(t,r,i){let n=this._findCommand(t);n||this.help({error:!0}),n._prepareForParse();let a;return a=this._chainOrCallSubCommandHook(a,n,"preSubcommand"),a=this._chainOrCall(a,()=>{if(n._executableHandler)this._executeSubCommand(n,r.concat(i));else return n._parseCommand(r,i)}),a}_dispatchHelpCommand(t){t||this.help();let r=this._findCommand(t);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(t,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((t,r)=>{t.required&&this.args[r]==null&&this.missingArgument(t.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let t=(i,n,a)=>{let s=n;if(n!==null&&i.parseArg){let o=`error: command-argument value '${n}' is invalid for argument '${i.name()}'.`;s=this._callParseArg(i,n,a,o)}return s};this._checkNumberOfArguments();let r=[];this.registeredArguments.forEach((i,n)=>{let a=i.defaultValue;i.variadic?n<this.args.length?(a=this.args.slice(n),i.parseArg&&(a=a.reduce((s,o)=>t(i,o,s),i.defaultValue))):a===void 0&&(a=[]):n<this.args.length&&(a=this.args[n],i.parseArg&&(a=t(i,a,i.defaultValue))),r[n]=a}),this.processedArgs=r}_chainOrCall(t,r){return t?.then&&typeof t.then=="function"?t.then(()=>r()):r()}_chainOrCallHooks(t,r){let i=t,n=[];return this._getCommandAndAncestors().reverse().filter(a=>a._lifeCycleHooks[r]!==void 0).forEach(a=>{a._lifeCycleHooks[r].forEach(s=>{n.push({hookedCommand:a,callback:s})})}),r==="postAction"&&n.reverse(),n.forEach(a=>{i=this._chainOrCall(i,()=>a.callback(a.hookedCommand,this))}),i}_chainOrCallSubCommandHook(t,r,i){let n=t;return this._lifeCycleHooks[i]!==void 0&&this._lifeCycleHooks[i].forEach(a=>{n=this._chainOrCall(n,()=>a(this,r))}),n}_parseCommand(t,r){let i=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),t=t.concat(i.operands),r=i.unknown,this.args=t.concat(r),t&&this._findCommand(t[0]))return this._dispatchSubcommand(t[0],t.slice(1),r);if(this._getHelpCommand()&&t[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(t[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(r),this._dispatchSubcommand(this._defaultCommandName,t,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(i.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let n=()=>{i.unknown.length>0&&this.unknownOption(i.unknown[0])},a=`command:${this.name()}`;if(this._actionHandler){n(),this._processArguments();let s;return s=this._chainOrCallHooks(s,"preAction"),s=this._chainOrCall(s,()=>this._actionHandler(this.processedArgs)),this.parent&&(s=this._chainOrCall(s,()=>{this.parent.emit(a,t,r)})),s=this._chainOrCallHooks(s,"postAction"),s}if(this.parent?.listenerCount(a))n(),this._processArguments(),this.parent.emit(a,t,r);else if(t.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",t,r);this.listenerCount("command:*")?this.emit("command:*",t,r):this.commands.length?this.unknownCommand():(n(),this._processArguments())}else this.commands.length?(n(),this.help({error:!0})):(n(),this._processArguments())}_findCommand(t){if(t)return this.commands.find(r=>r._name===t||r._aliases.includes(t))}_findOption(t){return this.options.find(r=>r.is(t))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(t=>{t.options.forEach(r=>{r.mandatory&&t.getOptionValue(r.attributeName())===void 0&&t.missingMandatoryOptionValue(r)})})}_checkForConflictingLocalOptions(){let t=this.options.filter(i=>{let n=i.attributeName();return this.getOptionValue(n)===void 0?!1:this.getOptionValueSource(n)!=="default"});t.filter(i=>i.conflictsWith.length>0).forEach(i=>{let n=t.find(a=>i.conflictsWith.includes(a.attributeName()));n&&this._conflictingOption(i,n)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(t=>{t._checkForConflictingLocalOptions()})}parseOptions(t){let r=[],i=[],n=r;function a(l){return l.length>1&&l[0]==="-"}let s=l=>/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(l)?!this._getCommandAndAncestors().some(h=>h.options.map(c=>c.short).some(c=>/^-\d$/.test(c))):!1,o=null,u=null,f=0;for(;f<t.length||u;){let l=u??t[f++];if(u=null,l==="--"){n===i&&n.push(l),n.push(...t.slice(f));break}if(o&&(!a(l)||s(l))){this.emit(`option:${o.name()}`,l);continue}if(o=null,a(l)){let h=this._findOption(l);if(h){if(h.required){let c=t[f++];c===void 0&&this.optionMissingArgument(h),this.emit(`option:${h.name()}`,c)}else if(h.optional){let c=null;f<t.length&&(!a(t[f])||s(t[f]))&&(c=t[f++]),this.emit(`option:${h.name()}`,c)}else this.emit(`option:${h.name()}`);o=h.variadic?h:null;continue}}if(l.length>2&&l[0]==="-"&&l[1]!=="-"){let h=this._findOption(`-${l[1]}`);if(h){h.required||h.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${h.name()}`,l.slice(2)):(this.emit(`option:${h.name()}`),u=`-${l.slice(2)}`);continue}}if(/^--[^=]+=/.test(l)){let h=l.indexOf("="),c=this._findOption(l.slice(0,h));if(c&&(c.required||c.optional)){this.emit(`option:${c.name()}`,l.slice(h+1));continue}}if(n===r&&a(l)&&!(this.commands.length===0&&s(l))&&(n=i),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&i.length===0){if(this._findCommand(l)){r.push(l),i.push(...t.slice(f));break}else if(this._getHelpCommand()&&l===this._getHelpCommand().name()){r.push(l,...t.slice(f));break}else if(this._defaultCommandName){i.push(l,...t.slice(f));break}}if(this._passThroughOptions){n.push(l,...t.slice(f));break}n.push(l)}return{operands:r,unknown:i}}opts(){if(this._storeOptionsAsProperties){let t={},r=this.options.length;for(let i=0;i<r;i++){let n=this.options[i].attributeName();t[n]=n===this._versionOptionName?this._version:this[n]}return t}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((t,r)=>Object.assign(t,r.opts()),{})}error(t,r){this._outputConfiguration.outputError(`${t}
|
|
23
23
|
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
|
|
24
24
|
`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
|
|
25
|
-
`),this.outputHelp({error:!0}));let i=r||{},n=i.exitCode||1,a=i.code||"commander.error";this._exit(n,a,t)}_parseOptionsEnv(){this.options.forEach(t=>{if(t.envVar&&t.envVar in D.env){let r=t.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(t.required||t.optional?this.emit(`optionEnv:${t.name()}`,D.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}})}_parseOptionsImplied(){let t=new
|
|
26
|
-
`),this._exit(0,"commander.version",t)}),this}description(t,r){return t===void 0&&r===void 0?this._description:(this._description=t,r&&(this._argsDescription=r),this)}summary(t){return t===void 0?this._summary:(this._summary=t,this)}alias(t){if(t===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),t===r._name)throw new Error("Command alias can't be the same as its name");let i=this.parent?._findCommand(t);if(i){let n=[i.name()].concat(i.aliases()).join("|");throw new Error(`cannot add alias '${t}' to command '${this.name()}' as already have command '${n}'`)}return r._aliases.push(t),this}aliases(t){return t===void 0?this._aliases:(t.forEach(r=>this.alias(r)),this)}usage(t){if(t===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(i=>
|
|
25
|
+
`),this.outputHelp({error:!0}));let i=r||{},n=i.exitCode||1,a=i.code||"commander.error";this._exit(n,a,t)}_parseOptionsEnv(){this.options.forEach(t=>{if(t.envVar&&t.envVar in D.env){let r=t.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(t.required||t.optional?this.emit(`optionEnv:${t.name()}`,D.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}})}_parseOptionsImplied(){let t=new Or(this.options),r=i=>this.getOptionValue(i)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(i));this.options.filter(i=>i.implied!==void 0&&r(i.attributeName())&&t.valueFromOption(this.getOptionValue(i.attributeName()),i)).forEach(i=>{Object.keys(i.implied).filter(n=>!r(n)).forEach(n=>{this.setOptionValueWithSource(n,i.implied[n],"implied")})})}missingArgument(t){let r=`error: missing required argument '${t}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(t){let r=`error: option '${t.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(t){let r=`error: required option '${t.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(t,r){let i=s=>{let o=s.attributeName(),u=this.getOptionValue(o),f=this.options.find(h=>h.negate&&o===h.attributeName()),l=this.options.find(h=>!h.negate&&o===h.attributeName());return f&&(f.presetArg===void 0&&u===!1||f.presetArg!==void 0&&u===f.presetArg)?f:l||s},n=s=>{let o=i(s),u=o.attributeName();return this.getOptionValueSource(u)==="env"?`environment variable '${o.envVar}'`:`option '${o.flags}'`},a=`error: ${n(t)} cannot be used with ${n(r)}`;this.error(a,{code:"commander.conflictingOption"})}unknownOption(t){if(this._allowUnknownOption)return;let r="";if(t.startsWith("--")&&this._showSuggestionAfterError){let n=[],a=this;do{let s=a.createHelp().visibleOptions(a).filter(o=>o.long).map(o=>o.long);n=n.concat(s),a=a.parent}while(a&&!a._enablePositionalOptions);r=Ti(t,n)}let i=`error: unknown option '${t}'${r}`;this.error(i,{code:"commander.unknownOption"})}_excessArguments(t){if(this._allowExcessArguments)return;let r=this.registeredArguments.length,i=r===1?"":"s",n=t.length,a=this.parent?` for '${this.name()}'`:"",s=t.join(", "),o=`error: too many arguments${a}. Expected ${r} argument${i} but got ${n}: ${s}.`;this.error(o,{code:"commander.excessArguments"})}unknownCommand(){let t=this.args[0],r="";if(this._showSuggestionAfterError){let n=[];this.createHelp().visibleCommands(this).forEach(a=>{n.push(a.name()),a.alias()&&n.push(a.alias())}),r=Ti(t,n)}let i=`error: unknown command '${t}'${r}`;this.error(i,{code:"commander.unknownCommand"})}version(t,r,i){if(t===void 0)return this._version;this._version=t,r=r||"-V, --version",i=i||"output the version number";let n=this.createOption(r,i);return this._versionOptionName=n.attributeName(),this._registerOption(n),this.on("option:"+n.name(),()=>{this._outputConfiguration.writeOut(`${t}
|
|
26
|
+
`),this._exit(0,"commander.version",t)}),this}description(t,r){return t===void 0&&r===void 0?this._description:(this._description=t,r&&(this._argsDescription=r),this)}summary(t){return t===void 0?this._summary:(this._summary=t,this)}alias(t){if(t===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),t===r._name)throw new Error("Command alias can't be the same as its name");let i=this.parent?._findCommand(t);if(i){let n=[i.name()].concat(i.aliases()).join("|");throw new Error(`cannot add alias '${t}' to command '${this.name()}' as already have command '${n}'`)}return r._aliases.push(t),this}aliases(t){return t===void 0?this._aliases:(t.forEach(r=>this.alias(r)),this)}usage(t){if(t===void 0){if(this._usage)return this._usage;let r=this.registeredArguments.map(i=>Cr(i));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}return this._usage=t,this}name(t){return t===void 0?this._name:(this._name=t,this)}helpGroup(t){return t===void 0?this._helpGroupHeading??"":(this._helpGroupHeading=t,this)}commandsGroup(t){return t===void 0?this._defaultCommandGroup??"":(this._defaultCommandGroup=t,this)}optionsGroup(t){return t===void 0?this._defaultOptionGroup??"":(this._defaultOptionGroup=t,this)}_initOptionGroup(t){this._defaultOptionGroup&&!t.helpGroupHeading&&t.helpGroup(this._defaultOptionGroup)}_initCommandGroup(t){this._defaultCommandGroup&&!t.helpGroup()&&t.helpGroup(this._defaultCommandGroup)}nameFromFilename(t){return this._name=we.basename(t,we.extname(t)),this}executableDir(t){return t===void 0?this._executableDir:(this._executableDir=t,this)}helpInformation(t){let r=this.createHelp(),i=this._getOutputContext(t);r.prepareContext({error:i.error,helpWidth:i.helpWidth,outputHasColors:i.hasColors});let n=r.formatHelp(this,r);return i.hasColors?n:this._outputConfiguration.stripColor(n)}_getOutputContext(t){t=t||{};let r=!!t.error,i,n,a;return r?(i=o=>this._outputConfiguration.writeErr(o),n=this._outputConfiguration.getErrHasColors(),a=this._outputConfiguration.getErrHelpWidth()):(i=o=>this._outputConfiguration.writeOut(o),n=this._outputConfiguration.getOutHasColors(),a=this._outputConfiguration.getOutHelpWidth()),{error:r,write:o=>(n||(o=this._outputConfiguration.stripColor(o)),i(o)),hasColors:n,helpWidth:a}}outputHelp(t){let r;typeof t=="function"&&(r=t,t=void 0);let i=this._getOutputContext(t),n={error:i.error,write:i.write,command:this};this._getCommandAndAncestors().reverse().forEach(s=>s.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let a=this.helpInformation({error:i.error});if(r&&(a=r(a),typeof a!="string"&&!Buffer.isBuffer(a)))throw new Error("outputHelp callback must return a string or a Buffer");i.write(a),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach(s=>s.emit("afterAllHelp",n))}helpOption(t,r){return typeof t=="boolean"?(t?(this._helpOption===null&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(t??"-h, --help",r??"display help for command"),(t||r)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(t){return this._helpOption=t,this._initOptionGroup(t),this}help(t){this.outputHelp(t);let r=Number(D.exitCode??0);r===0&&t&&typeof t!="function"&&t.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(t,r){let i=["beforeAll","before","after","afterAll"];if(!i.includes(t))throw new Error(`Unexpected value for position to addHelpText.
|
|
27
27
|
Expecting one of '${i.join("', '")}'`);let n=`${t}Help`;return this.on(n,a=>{let s;typeof r=="function"?s=r({error:a.error,command:a.command}):s=r,s&&a.write(`${s}
|
|
28
|
-
`)}),this}_outputHelpIfRequested(t){let r=this._getHelpOption();r&&t.find(n=>r.is(n))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function Fa(e){return e.map(t=>{if(!t.startsWith("--inspect"))return t;let r,i="127.0.0.1",n="9229",a;return(a=t.match(/^(--inspect(-brk)?)$/))!==null?r=a[1]:(a=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=a[1],/^\d+$/.test(a[3])?n=a[3]:i=a[3]):(a=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=a[1],i=a[3],n=a[4]),r&&n!=="0"?`${r}=${i}:${parseInt(n)+1}`:t})}function Na(){if(D.env.NO_COLOR||D.env.FORCE_COLOR==="0"||D.env.FORCE_COLOR==="false")return!1;if(D.env.FORCE_COLOR||D.env.CLICOLOR_FORCE!==void 0)return!0}var
|
|
29
|
-
Please install Docker: https://docs.docker.com/get-docker/`)}}import{readFile as
|
|
28
|
+
`)}),this}_outputHelpIfRequested(t){let r=this._getHelpOption();r&&t.find(n=>r.is(n))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function Fa(e){return e.map(t=>{if(!t.startsWith("--inspect"))return t;let r,i="127.0.0.1",n="9229",a;return(a=t.match(/^(--inspect(-brk)?)$/))!==null?r=a[1]:(a=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=a[1],/^\d+$/.test(a[3])?n=a[3]:i=a[3]):(a=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=a[1],i=a[3],n=a[4]),r&&n!=="0"?`${r}=${i}:${parseInt(n)+1}`:t})}function Na(){if(D.env.NO_COLOR||D.env.FORCE_COLOR==="0"||D.env.FORCE_COLOR==="false")return!1;if(D.env.FORCE_COLOR||D.env.CLICOLOR_FORCE!==void 0)return!0}var Dr=new Tr;import{readFile as Mm}from"node:fs/promises";import{mkdir as Lu,writeFile as qu}from"node:fs/promises";import{join as Fr}from"node:path";import{rm as Iu}from"node:fs/promises";import{join as Pa}from"node:path";import{cwd as Ru}from"node:process";var Fu=Pa(Ru(),"dist");async function Ue(){await Iu(Pa(Fu,"tmp"),{recursive:!0})}import{spawn as Nu}from"node:child_process";function $(e,t){return new Promise((r,i)=>{let[n,...a]=e.split(" "),s=Nu(n,a,{stdio:t?.ignore?"ignore":"inherit",env:t?.env,cwd:t?.cwd,shell:!0}),o=()=>s.kill();process.on("exit",o),process.on("SIGINT",o),process.on("SIGTERM",o),s.on("close",u=>{process.off("exit",o),process.off("SIGINT",o),process.off("SIGTERM",o),u===0?r():i(new Error(`Command failed: ${e}`))})})}async function Ba(){try{await $("docker info",{ignore:!0})}catch{throw new Error(`Docker is required to build Android targets.
|
|
29
|
+
Please install Docker: https://docs.docker.com/get-docker/`)}}import{readFile as Pu}from"node:fs/promises";import{join as Bu}from"node:path";var Ir;async function Rr(){return Ir||(Ir=await zu(),Ir)}async function zu(){let e=await Pu(Bu(process.cwd(),"webnative.json"),"utf-8");return JSON.parse(e)}var Nr=process.cwd(),Lt={public:Fr(Nr,"app/public"),config:Fr(Nr,"dist/tmp/capacitor.config.json"),dist:Fr(Nr,"dist"),tmp:Fr(Nr,"dist/tmp")};async function Ii(){await Ba(),await Lu(Lt.tmp,{recursive:!0}),await Mu(),await ju(),await Ue()}async function Mu(){let e=await Rr();await qu(Lt.config,JSON.stringify({appId:e.id??"com.example.app",appName:e.name,webDir:"public"},null,2))}async function ju(){await $(`docker run --rm -v webnative-android-cache:/root -v ${Lt.public}:/project/public -v ${Lt.config}:/project/capacitor.config.json -v ${Lt.dist}:/output -w /project mindw1n/webnative-android bash -c "npm install @capacitor/cli @capacitor/core @capacitor/android && npx cap add android && npx cap sync && cd android && yes | sdkmanager --licenses && ./gradlew assembleDebug && cp app/build/outputs/apk/debug/app-debug.apk /output/android.apk"`)}import{mkdir as fu,copyFile as yr,cp as lu,writeFile as zm,chmod as Oi,readFile as uu}from"node:fs/promises";import{join as N}from"node:path";import Wu from"node:path";import{fileURLToPath as Hu}from"node:url";var Uu=Wu.dirname(Hu(import.meta.url)),ot=Uu;import{chmod as $u,mkdir as Zu}from"node:fs/promises";import{existsSync as Vu}from"node:fs";import{dirname as Gu}from"node:path";async function za(e){Vu(e)||(console.log("Downloading appimagetool..."),await Zu(Gu(e),{recursive:!0}),await $(`wget -O ${e} https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage`),await $u(e,493))}import{join as Ku}from"node:path";import{homedir as Yu}from"node:os";var qt=Ku(Yu(),".webnative");import{existsSync as iu}from"node:fs";import{createWriteStream as Xu}from"node:fs";import{Readable as Ju}from"node:stream";import{pipeline as Qu}from"node:stream/promises";async function Pr(e,t){let r=await fetch(e);if(!r.body)throw new Error(`Failed to download ${e}`);await Qu(Ju.fromWeb(r.body),Xu(t))}import{dirname as ka}from"node:path";import{chmod as Bm,mkdir as nu,rm as au}from"node:fs/promises";var xa=Eu(Xf(),1);import{readFile as Jf,writeFile as Qf,readdir as Fm,mkdir as k0}from"node:fs/promises";import{dirname as E0,join as Nm,relative as Pm}from"node:path";async function eu(e,t){let r=new xa.default;await ru(r,e,e);let i=await r.generateAsync({type:"nodebuffer",compression:"DEFLATE"});await Qf(t,i)}async function tu(e,t,r){let i=await Jf(e),a=(await xa.default.loadAsync(i)).file(t);if(!a)throw new Error(`File ${t} not found in zip`);let s=await a.async("nodebuffer");await Qf(r,s)}async function ru(e,t,r){let i=await Fm(t,{withFileTypes:!0});for(let n of i){let a=Nm(t,n.name);if(n.isDirectory())await ru(e,a,r);else{let s=await Jf(a);e.file(Pm(r,a),s)}}}async function su(e){if(iu(e))return;console.log("Downloading Node.js..."),await nu(ka(e),{recursive:!0});let t="v22.0.0",r=`https://nodejs.org/dist/${t}/node-${t}-linux-x64.tar.gz`,i=e+".tar.gz";await Pr(r,i),await $(`tar -xz -f ${i} -C ${ka(e)} --strip-components=2 node-${t}-linux-x64/bin/node`),await au(i),await Bm(e,493)}async function ou(e){if(iu(e))return;console.log("Downloading Node.js..."),await nu(ka(e),{recursive:!0});let t="v22.0.0",r=`https://nodejs.org/dist/${t}/node-${t}-win-x64.zip`,i=e+".zip";await Pr(r,i),await tu(i,`node-${t}-win-x64/node.exe`,e),await au(i)}var Pt=process.cwd(),F={prebuilds:N(ot,"prebuilds/dist"),appImageTool:N(qt,"appimagetool"),node:N(qt,"node"),bin:N(Pt,"dist/tmp/bin"),public:N(Pt,"app/public"),backend:N(Pt,"app/backend/dist"),dist:N(Pt,"dist")};async function Sa(){await za(F.appImageTool),await uu(N(F.backend,"index.js"),"utf8").then(e=>e.length).catch()&&await su(F.node),await Lm(),await fu(F.dist,{recursive:!0}),await $(`${F.appImageTool} ${F.bin} -n ${F.dist}/linux-appimage`),await Oi(N(F.dist,"linux-appimage"),493),await Ue()}async function Lm(){let e=await Rr();await fu(N(F.bin,"usr/bin"),{recursive:!0}),await yr(N(F.prebuilds,"AppRun"),N(F.bin,"AppRun")),await Oi(N(F.bin,"AppRun"),493),await zm(N(F.bin,"app.desktop"),`[Desktop Entry]
|
|
30
30
|
Name=${e.name}
|
|
31
31
|
Exec=app
|
|
32
32
|
Icon=app
|
|
33
33
|
Type=Application
|
|
34
|
-
Categories=${(e.categories??["Utility"]).join(";")};`),e.icon&&await
|
|
35
|
-
`+Object.entries(
|
|
36
|
-
`)}import{join as
|
|
34
|
+
Categories=${(e.categories??["Utility"]).join(";")};`),e.icon&&await yr(N(Pt,e.icon),N(F.bin,"app.png")),await yr(N(F.prebuilds,"linux"),N(F.bin,"usr/bin/linux")),await yr(N(Pt,"webnative.json"),N(F.bin,"usr/bin/webnative.json")),await Oi(N(F.bin,"usr/bin/linux"),493),await lu(F.public,N(F.bin,"usr/bin/public"),{recursive:!0}),await lu(F.backend,N(F.bin,"usr/bin/backend"),{recursive:!0}),await uu(N(F.backend,"index.js"),"utf8").then(t=>t.length).catch()&&(await yr(F.node,N(F.bin,"usr/bin/node")),await Oi(N(F.bin,"usr/bin/node"),493))}import{mkdir as cu,copyFile as Ea,cp as hu}from"node:fs/promises";import{join as J}from"node:path";var Ai=process.cwd(),Y={prebuilds:J(ot,"prebuilds/dist"),node:J(qt,"node.exe"),bin:J(Ai,"dist/tmp"),public:J(Ai,"app/public"),backend:J(Ai,"app/backend/dist"),dist:J(Ai,"dist")};async function Ca(){await ou(Y.node),await qm(),await cu(Y.dist,{recursive:!0}),await eu(Y.bin,J(Y.dist,"windows.zip")),await Ue()}async function qm(){await cu(Y.bin,{recursive:!0}),await Ea(J(Y.prebuilds,"windows.exe"),J(Y.bin,"windows.exe")),await Ea(J(Y.prebuilds,"WebView2Loader.dll"),J(Y.bin,"WebView2Loader.dll")),await Ea(Y.node,J(Y.bin,"node.exe")),await hu(Y.public,J(Y.bin,"public"),{recursive:!0}),await hu(Y.backend,J(Y.bin,"backend"),{recursive:!0})}var xr={linux:{appimage:Sa},windows:{zip:Ca},android:{apk:Ii}};function Oa(){return`Available platforms:
|
|
35
|
+
`+Object.entries(xr).map(([e,t])=>` ${e}, targets: ${Object.keys(t).join(", ")}`).join(`
|
|
36
|
+
`)}import{join as jm}from"node:path";function du(e){e.command("build <platform>").usage("<platform> [options]").description(`Build the application
|
|
37
37
|
|
|
38
38
|
${Oa()}`).option("-t, --target <target>","build specific target","all").addHelpText("after",`
|
|
39
39
|
Examples:
|
|
40
40
|
$ webnative build linux
|
|
41
41
|
$ webnative build linux --target appimage
|
|
42
|
-
$ webnative build linux -t appimage`).action(async(t,r)=>
|
|
42
|
+
$ webnative build linux -t appimage`).action(async(t,r)=>pu(t,r.target))}async function pu(e,t){if(e=="all"){if(t!="all")throw new Error("Can't use target option with platform set to 'all'");return Um()}return mu(e,t)}async function mu(e,t){return t=="all"?Wm(e):gu(e,t)}async function Wm(e){for(let t of Object.keys(xr[e]))await gu(e,t)}async function gu(e,t){let i=xr[e][t];if(!i)throw new Error(`Unknown target ${t}
|
|
43
43
|
|
|
44
|
-
${Oa()}`);await
|
|
44
|
+
${Oa()}`);await Hm(e),console.log(`Building ${e} ${t}...`),await i(),console.log(`${t} is built`)}async function Hm(e){console.log(`Building fullstack for ${e}...`),JSON.parse(await Mm(jm(process.cwd(),"package.json"),"utf-8")).scripts?.build&&await $("npm run build",{env:{...process.env,PLATFORM:e}})}async function Um(){for(let e of Object.keys(xr))await mu(e,"all")}import{join as Aa}from"path";import{cp as $m,readFile as Zm,writeFile as Vm}from"fs/promises";import{createInterface as Gm}from"node:readline/promises";function _u(e){e.command("init [project-name]").description("Initialize a new webnative project").addHelpText("after",`
|
|
45
45
|
Examples:
|
|
46
46
|
$ webnative init
|
|
47
|
-
$ webnative init my-app`).action(
|
|
47
|
+
$ webnative init my-app`).action(vu)}async function vu(e){let t=e?Aa(process.cwd(),e):process.cwd(),r=await Km();await Ym(r,t),await Xm(r,t),console.log(`Project initialized${e?` in ${e}`:""}`)}async function Km(){let e=Gm({input:process.stdin,output:process.stdout}),t=await e.question("Would you like to use TypeScript? (y/n): ");return e.close(),t.toLowerCase()==="y"}async function Ym(e,t){await $m(Aa(ot,"template",e?"ts":"js"),t,{recursive:!0})}async function Xm(e,t){await $("npm init -y",{cwd:t});let r=Aa(t,"package.json");await Jm(e,r),await Qm(e,t)}async function Jm(e,t){let r=JSON.parse(await Zm(t,"utf-8"));r.scripts={...r.scripts,"build:frontend":"webpack","build:backend":`esbuild app/backend/index.${e?"ts":"js"} --bundle --platform=node --format=cjs --outfile=app/backend/dist/index.js --minify`,build:"npm run build:frontend && npm run build:backend"},r.type="module",await Vm(t,JSON.stringify(r,null,2),"utf-8")}async function Qm(e,t){await $(`npm install ${`webpack webpack-cli esbuild @mindw1n/webnative-core cors express${e?" ts-loader typescript @types/cors @types/express":""}`} --save-dev`,{cwd:t})}_u(Dr);du(Dr);Dr.parse();
|