@mindw1n/webnative 2.0.0 → 2.0.1
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 +14 -14
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var uu=Object.create;var Ea=Object.defineProperty;var hu=Object.getOwnPropertyDescriptor;var cu=Object.getOwnPropertyNames;var du=Object.getPrototypeOf,pu=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 _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var mu=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of cu(t))!pu.call(e,n)&&n!==r&&Ea(e,n,{get:()=>t[n],enumerable:!(i=hu(t,n))||i.enumerable});return e};var Ca=(e,t,r)=>(r=e!=null?uu(du(e)):{},mu(t||!e||!e.__esModule?Ea(r,"default",{value:e,enumerable:!0}):r,e));var Lt=_((Z_,Oi)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Oi.exports={nextTick:Wu}:Oi.exports=process;function Wu(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 Na=_((V_,Fa)=>{var Hu={}.toString;Fa.exports=Array.isArray||function(e){return Hu.call(e)=="[object Array]"}});var Ai=_((G_,Pa)=>{Pa.exports=be("stream")});var qt=_((Ti,za)=>{var Ir=be("buffer"),ye=Ir.Buffer;function Ba(e,t){for(var r in e)t[r]=e[r]}ye.from&&ye.alloc&&ye.allocUnsafe&&ye.allocUnsafeSlow?za.exports=Ir:(Ba(Ir,Ti),Ti.Buffer=ot);function ot(e,t,r){return ye(e,t,r)}Ba(ye,ot);ot.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ye(e,t,r)};ot.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};ot.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ye(e)};ot.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Ir.SlowBuffer(e)}});var lt=_($=>{function Uu(e){return Array.isArray?Array.isArray(e):Rr(e)==="[object Array]"}$.isArray=Uu;function $u(e){return typeof e=="boolean"}$.isBoolean=$u;function Zu(e){return e===null}$.isNull=Zu;function Vu(e){return e==null}$.isNullOrUndefined=Vu;function Gu(e){return typeof e=="number"}$.isNumber=Gu;function Ku(e){return typeof e=="string"}$.isString=Ku;function Yu(e){return typeof e=="symbol"}$.isSymbol=Yu;function Xu(e){return e===void 0}$.isUndefined=Xu;function Ju(e){return Rr(e)==="[object RegExp]"}$.isRegExp=Ju;function Qu(e){return typeof e=="object"&&e!==null}$.isObject=Qu;function eh(e){return Rr(e)==="[object Date]"}$.isDate=eh;function th(e){return Rr(e)==="[object Error]"||e instanceof Error}$.isError=th;function rh(e){return typeof e=="function"}$.isFunction=rh;function ih(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}$.isPrimitive=ih;$.isBuffer=be("buffer").Buffer.isBuffer;function Rr(e){return Object.prototype.toString.call(e)}});var La=_((Y_,Di)=>{typeof Object.create=="function"?Di.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Di.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 ft=_((X_,Ri)=>{try{if(Ii=be("util"),typeof Ii.inherits!="function")throw"";Ri.exports=Ii.inherits}catch{Ri.exports=La()}var Ii});var Ma=_((J_,Fi)=>{"use strict";function nh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var qa=qt().Buffer,Mt=be("util");function ah(e,t,r){e.copy(t,r)}Fi.exports=(function(){function e(){nh(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 qa.alloc(0);for(var i=qa.allocUnsafe(r>>>0),n=this.head,a=0;n;)ah(n.data,i,a),a+=n.data.length,n=n.next;return i},e})();Mt&&Mt.inspect&&Mt.inspect.custom&&(Fi.exports.prototype[Mt.inspect.custom]=function(){var e=Mt.inspect({length:this.length});return this.constructor.name+" "+e})});var Ni=_((Q_,ja)=>{"use strict";var Fr=Lt();function sh(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,Fr.nextTick(Nr,this,e)):Fr.nextTick(Nr,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,Fr.nextTick(Nr,r,a)):Fr.nextTick(Nr,r,a):t&&t(a)}),this)}function oh(){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 Nr(e,t){e.emit("error",t)}ja.exports={destroy:sh,undestroy:oh}});var Ha=_((eg,Wa)=>{Wa.exports=be("util").deprecate});var Bi=_((tg,Xa)=>{"use strict";var Ue=Lt();Xa.exports=M;function $a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Eh(t,e)}}var lh=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Ue.nextTick,ut;M.WritableState=Wt;var Za=Object.create(lt());Za.inherits=ft();var fh={deprecate:Ha()},Va=Ai(),Br=qt().Buffer,uh=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function hh(e){return Br.from(e)}function ch(e){return Br.isBuffer(e)||e instanceof uh}var Ga=Ni();Za.inherits(M,Va);function dh(){}function Wt(e,t){ut=ut||$e(),e=e||{};var r=t instanceof ut;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){wh(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 $a(this)}Wt.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Wt.prototype,"buffer",{get:fh.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Pr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Pr=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(e){return Pr.call(this,e)?!0:this!==M?!1:e&&e._writableState instanceof Wt}})):Pr=function(e){return e instanceof this};function M(e){if(ut=ut||$e(),!Pr.call(M,this)&&!(this instanceof ut))return new M(e);this._writableState=new Wt(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)),Va.call(this)}M.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function ph(e,t){var r=new Error("write after end");e.emit("error",r),Ue.nextTick(t,r)}function mh(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),Ue.nextTick(i,a),n=!1),n}M.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&ch(e);return a&&!Br.isBuffer(e)&&(e=hh(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=dh),i.ended?ph(this,r):(a||mh(this,i,e,r))&&(i.pendingcb++,n=gh(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&&Ka(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 _h(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Br.from(t,r)),t}Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function gh(e,t,r,i,n,a){if(!r){var s=_h(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 Pi(e,t,!1,o,i,n,a);return u}function Pi(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 vh(e,t,r,i,n){--t.pendingcb,r?(Ue.nextTick(n,i),Ue.nextTick(jt,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(n(i),e._writableState.errorEmitted=!0,e.emit("error",i),jt(e,t))}function bh(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function wh(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(bh(r),t)vh(e,r,i,t,n);else{var a=Ya(r);!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Ka(e,r),i?lh(Ua,e,r,a,n):Ua(e,r,a,n)}}function Ua(e,t,r,i){r||yh(e,t),t.pendingcb--,i(),jt(e,t)}function yh(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function Ka(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,Pi(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 $a(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,l=r.callback,h=t.objectMode?1:u.length;if(Pi(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||Sh(this,i,r)};function Ya(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function xh(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),jt(e,t)})}function kh(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,Ue.nextTick(xh,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function jt(e,t){var r=Ya(t);return r&&(kh(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function Sh(e,t,r){t.ending=!0,jt(e,t),r&&(t.finished?Ue.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function Eh(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=Ga.destroy;M.prototype._undestroy=Ga.undestroy;M.prototype._destroy=function(e,t){this.end(),t(e)}});var $e=_((rg,ts)=>{"use strict";var Ja=Lt(),Ch=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};ts.exports=xe;var Qa=Object.create(lt());Qa.inherits=ft();var es=qi(),Li=Bi();Qa.inherits(xe,es);for(zi=Ch(Li.prototype),zr=0;zr<zi.length;zr++)Lr=zi[zr],xe.prototype[Lr]||(xe.prototype[Lr]=Li.prototype[Lr]);var zi,Lr,zr;function xe(e){if(!(this instanceof xe))return new xe(e);es.call(this,e),Li.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",Oh)}Object.defineProperty(xe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Oh(){this.allowHalfOpen||this._writableState.ended||Ja.nextTick(Ah,this)}function Ah(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(),Ja.nextTick(t,e)}});var Wi=_(is=>{"use strict";var ji=qt().Buffer,rs=ji.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 Th(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 Dh(e){var t=Th(e);if(typeof t!="string"&&(ji.isEncoding===rs||!rs(e)))throw new Error("Unknown encoding: "+e);return t||e}is.StringDecoder=Ht;function Ht(e){this.encoding=Dh(e);var t;switch(this.encoding){case"utf16le":this.text=Bh,this.end=zh,t=4;break;case"utf8":this.fillLast=Fh,t=4;break;case"base64":this.text=Lh,this.end=qh,t=3;break;default:this.write=Mh,this.end=jh;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ji.allocUnsafe(t)}Ht.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||""};Ht.prototype.end=Ph;Ht.prototype.text=Nh;Ht.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 Mi(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Ih(e,t,r){var i=t.length-1;if(i<r)return 0;var n=Mi(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||n===-2?0:(n=Mi(t[i]),n>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||n===-2?0:(n=Mi(t[i]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function Rh(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 Fh(e){var t=this.lastTotal-this.lastNeed,r=Rh(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 Nh(e,t){var r=Ih(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 Ph(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function Bh(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 zh(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 Lh(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 qh(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function Mh(e){return e.toString(this.encoding)}function jh(e){return e&&e.length?this.write(e):""}});var qi=_((ag,ms)=>{"use strict";var ct=Lt();ms.exports=N;var Wh=Na(),Ut;N.ReadableState=us;var ng=be("events").EventEmitter,os=function(e,t){return e.listeners(t).length},Vi=Ai(),$t=qt().Buffer,Hh=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Uh(e){return $t.from(e)}function $h(e){return $t.isBuffer(e)||e instanceof Hh}var ls=Object.create(lt());ls.inherits=ft();var Hi=be("util"),I=void 0;Hi&&Hi.debuglog?I=Hi.debuglog("stream"):I=function(){};var Zh=Ma(),fs=Ni(),ht;ls.inherits(N,Vi);var Ui=["error","close","destroy","pause","resume"];function Vh(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Wh(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function us(e,t){Ut=Ut||$e(),e=e||{};var r=t instanceof Ut;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 Zh,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&&(ht||(ht=Wi().StringDecoder),this.decoder=new ht(e.encoding),this.encoding=e.encoding)}function N(e){if(Ut=Ut||$e(),!(this instanceof N))return new N(e);this._readableState=new us(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Vi.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=fs.destroy;N.prototype._undestroy=fs.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=$t.from(e,t),t=""),i=!0),hs(this,e,t,!1,i)};N.prototype.unshift=function(e){return hs(this,e,null,!0,!1)};function hs(e,t,r,i,n){var a=e._readableState;if(t===null)a.reading=!1,Xh(e,a);else{var s;n||(s=Gh(a,t)),s?e.emit("error",s):a.objectMode||t&&t.length>0?(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==$t.prototype&&(t=Uh(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):$i(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?$i(e,a,t,!1):cs(e,a)):$i(e,a,t,!1))):i||(a.reading=!1)}return Kh(a)}function $i(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&&qr(e)),cs(e,t)}function Gh(e,t){var r;return!$h(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function Kh(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 ht||(ht=Wi().StringDecoder),this._readableState.decoder=new ht(e),this._readableState.encoding=e,this};var ns=8388608;function Yh(e){return e>=ns?e=ns:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function as(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=Yh(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?Zi(this):qr(this),null;if(e=as(e,t),e===0&&t.ended)return t.length===0&&Zi(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=as(r,t)));var n;return e>0?n=ds(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&&Zi(this)),n!==null&&this.emit("data",n),n};function Xh(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,qr(e)}}function qr(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(I("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?ct.nextTick(ss,e):ss(e))}function ss(e){I("emit readable"),e.emit("readable"),Gi(e)}function cs(e,t){t.readingMore||(t.readingMore=!0,ct.nextTick(Jh,e,t))}function Jh(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?ct.nextTick(a):r.once("end",a),e.on("unpipe",s);function s(g,p){I("onunpipe"),g===r&&p&&p.hasUnpiped===!1&&(p.hasUnpiped=!0,l())}function o(){I("onend"),e.end()}var u=Qh(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(g){I("ondata"),h=!1;var p=e.write(g);p===!1&&!h&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&ps(i.pipes,e)!==-1)&&!f&&(I("false write response, pause",i.awaitDrain),i.awaitDrain++,h=!0),r.pause())}function d(g){I("onerror",g),x(),e.removeListener("error",d),os(e,"error")===0&&e.emit("error",g)}Vh(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 Qh(e){return function(){var t=e._readableState;I("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&os(e,"data")&&(t.flowing=!0,Gi(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=ps(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=Vi.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&&qr(this):ct.nextTick(ec,this))}return r};N.prototype.addListener=N.prototype.on;function ec(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,tc(this,e)),this};function tc(e,t){t.resumeScheduled||(t.resumeScheduled=!0,ct.nextTick(rc,e,t))}function rc(e,t){t.reading||(I("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Gi(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 Gi(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<Ui.length;a++)e.on(Ui[a],this.emit.bind(this,Ui[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=ds;function ds(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=ic(e,t.buffer,t.decoder),r}function ic(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?nc(e,t):ac(e,t),i}function nc(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 ac(e,t){var r=$t.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 Zi(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,ct.nextTick(sc,t,e))}function sc(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function ps(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var Ki=_((sg,vs)=>{"use strict";vs.exports=ke;var Mr=$e(),gs=Object.create(lt());gs.inherits=ft();gs.inherits(ke,Mr);function oc(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);Mr.call(this,e),this._transformState={afterTransform:oc.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",lc)}function lc(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){_s(e,t,r)}):_s(this,null,null)}ke.prototype.push=function(e,t){return this._transformState.needTransform=!1,Mr.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;Mr.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function _s(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 xs=_((og,ys)=>{"use strict";ys.exports=Zt;var bs=Ki(),ws=Object.create(lt());ws.inherits=ft();ws.inherits(Zt,bs);function Zt(e){if(!(this instanceof Zt))return new Zt(e);bs.call(this,e)}Zt.prototype._transform=function(e,t,r){r(null,e)}});var Yi=_((H,jr)=>{var ce=be("stream");process.env.READABLE_STREAM==="disable"&&ce?(jr.exports=ce,H=jr.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=jr.exports=qi(),H.Stream=ce||H,H.Readable=H,H.Writable=Bi(),H.Duplex=$e(),H.Transform=Ki(),H.PassThrough=xs())});var Se=_(Q=>{"use strict";Q.base64=!0;Q.array=!0;Q.string=!0;Q.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";Q.nodebuffer=typeof Buffer<"u";Q.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")Q.blob=!1;else{Xi=new ArrayBuffer(0);try{Q.blob=new Blob([Xi],{type:"application/zip"}).size===0}catch{try{ks=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,Ji=new ks,Ji.append(Xi),Q.blob=Ji.getBlob("application/zip").size===0}catch{Q.blob=!1}}}var Xi,ks,Ji;try{Q.nodestream=!!Yi().Readable}catch{Q.nodestream=!1}});var en=_(Qi=>{"use strict";var fc=B(),uc=Se(),de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";Qi.encode=function(e){for(var t=[],r,i,n,a,s,o,u,f=0,l=e.length,h=l,c=fc.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("")};Qi.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(uc.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 Vt=_((ug,Ss)=>{"use strict";Ss.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 As=_((hg,Os)=>{"use strict";var Es=global.MutationObserver||global.WebKitMutationObserver,dt;process.browser?Es?(tn=0,Cs=new Es(Gt),rn=global.document.createTextNode(""),Cs.observe(rn,{characterData:!0}),dt=function(){rn.data=tn=++tn%2}):!global.setImmediate&&typeof global.MessageChannel<"u"?(nn=new global.MessageChannel,nn.port1.onmessage=Gt,dt=function(){nn.port2.postMessage(0)}):"document"in global&&"onreadystatechange"in global.document.createElement("script")?dt=function(){var e=global.document.createElement("script");e.onreadystatechange=function(){Gt(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},global.document.documentElement.appendChild(e)}:dt=function(){setTimeout(Gt,0)}:dt=function(){process.nextTick(Gt)};var tn,Cs,rn,nn,an,Kt=[];function Gt(){an=!0;for(var e,t,r=Kt.length;r;){for(t=Kt,Kt=[],e=-1;++e<r;)t[e]();r=Kt.length}an=!1}Os.exports=hc;function hc(e){Kt.push(e)===1&&!an&&dt()}});var Ps=_((cg,Ns)=>{"use strict";var Ts=As();function pt(){}var Z={},Ds=["REJECTED"],sn=["FULFILLED"],Is=["PENDING"];process.browser||(Yt=["UNHANDLED"]);var Yt;Ns.exports=Re;function Re(e){if(typeof e!="function")throw new TypeError("resolver must be a function");this.state=Is,this.queue=[],this.outcome=void 0,process.browser||(this.handled=Yt),e!==pt&&Rs(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===sn||typeof t!="function"&&this.state===Ds)return this;var r=new this.constructor(pt);if(process.browser||this.handled===Yt&&(this.handled=null),this.state!==Is){var i=this.state===sn?e:t;on(r,i,this.outcome)}else this.queue.push(new Xt(r,e,t));return r};function Xt(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)}Xt.prototype.callFulfilled=function(e){Z.resolve(this.promise,e)};Xt.prototype.otherCallFulfilled=function(e){on(this.promise,this.onFulfilled,e)};Xt.prototype.callRejected=function(e){Z.reject(this.promise,e)};Xt.prototype.otherCallRejected=function(e){on(this.promise,this.onRejected,e)};function on(e,t,r){Ts(function(){var i;try{i=t(r)}catch(n){return Z.reject(e,n)}i===e?Z.reject(e,new TypeError("Cannot resolve promise with itself")):Z.resolve(e,i)})}Z.resolve=function(e,t){var r=Fs(cc,t);if(r.status==="error")return Z.reject(e,r.value);var i=r.value;if(i)Rs(e,i);else{e.state=sn,e.outcome=t;for(var n=-1,a=e.queue.length;++n<a;)e.queue[n].callFulfilled(t)}return e};Z.reject=function(e,t){e.state=Ds,e.outcome=t,process.browser||e.handled===Yt&&Ts(function(){e.handled===Yt&&process.emit("unhandledRejection",t,e)});for(var r=-1,i=e.queue.length;++r<i;)e.queue[r].callRejected(t);return e};function cc(e){var t=e&&e.then;if(e&&(typeof e=="object"||typeof e=="function")&&typeof t=="function")return function(){t.apply(e,arguments)}}function Rs(e,t){var r=!1;function i(o){r||(r=!0,Z.reject(e,o))}function n(o){r||(r=!0,Z.resolve(e,o))}function a(){t(n,i)}var s=Fs(a);s.status==="error"&&i(s.value)}function Fs(e,t){var r={};try{r.value=e(t),r.status="success"}catch(i){r.status="error",r.value=i}return r}Re.resolve=dc;function dc(e){return e instanceof this?e:Z.resolve(new this(pt),e)}Re.reject=pc;function pc(e){var t=new this(pt);return Z.reject(t,e)}Re.all=mc;function mc(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(pt);++s<r;)u(e[s],s);return o;function u(f,l){t.resolve(f).then(h,function(c){i||(i=!0,Z.reject(o,c))});function h(c){n[l]=c,++a===r&&!i&&(i=!0,Z.resolve(o,n))}}}Re.race=_c;function _c(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(pt);++n<r;)s(e[n]);return a;function s(o){t.resolve(o).then(function(u){i||(i=!0,Z.resolve(a,u))},function(u){i||(i=!0,Z.reject(a,u))})}}});var mt=_((dg,Bs)=>{"use strict";var ln=null;typeof Promise<"u"?ln=Promise:ln=Ps();Bs.exports={Promise:ln}});var Ls=_(zs=>{(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 g=Object.getPrototypeOf&&Object.getPrototypeOf(e);g=g&&g.setTimeout?g:e,{}.toString.call(e.process)==="[object process]"?h():c()?d():e.MessageChannel?b():a&&"onreadystatechange"in a.createElement("script")?w():x(),g.setImmediate=o,g.clearImmediate=u})(typeof self>"u"?typeof global>"u"?zs:global:self)});var B=_(j=>{"use strict";var Fe=Se(),gc=en(),_t=Vt(),fn=mt();Ls();function vc(e){var t=null;return Fe.uint8array?t=new Uint8Array(e.length):t=new Array(e.length),Hr(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 Jt(e){return e}function Hr(e,t){for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)&255;return t}var Wr={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 Qt(e){var t=65536,r=j.getTypeOf(e),i=!0;if(r==="uint8array"?i=Wr.applyCanBeUsed.uint8array:r==="nodebuffer"&&(i=Wr.applyCanBeUsed.nodebuffer),i)for(;t>1;)try{return Wr.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return Wr.stringifyByChar(e)}j.applyFromCharCode=Qt;function Ur(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}var Ne={};Ne.string={string:Jt,array:function(e){return Hr(e,new Array(e.length))},arraybuffer:function(e){return Ne.string.uint8array(e).buffer},uint8array:function(e){return Hr(e,new Uint8Array(e.length))},nodebuffer:function(e){return Hr(e,_t.allocBuffer(e.length))}};Ne.array={string:Qt,array:Jt,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 Qt(new Uint8Array(e))},array:function(e){return Ur(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:Jt,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return _t.newBufferFrom(new Uint8Array(e))}};Ne.uint8array={string:Qt,array:function(e){return Ur(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:Jt,nodebuffer:function(e){return _t.newBufferFrom(e)}};Ne.nodebuffer={string:Qt,array:function(e){return Ur(e,new Array(e.length))},arraybuffer:function(e){return Ne.nodebuffer.uint8array(e).buffer},uint8array:function(e){return Ur(e,new Uint8Array(e.length))},nodebuffer:Jt};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=fn.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 fn.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=gc.decode(s):r&&i!==!0&&(s=vc(s))),s):fn.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}});var ee=_((_g,Ms)=>{"use strict";function qs(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}qs.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}};Ms.exports=qs});var vt=_(Pe=>{"use strict";var gt=B(),Ze=Se(),bc=Vt(),$r=ee(),er=new Array(256);for(Ee=0;Ee<256;Ee++)er[Ee]=Ee>=252?6:Ee>=248?5:Ee>=240?4:Ee>=224?3:Ee>=192?2:1;var Ee;er[254]=er[254]=1;var wc=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(Ze.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},yc=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+er[e[r]]>t?r:t},xc=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=er[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),gt.applyFromCharCode(s)};Pe.utf8encode=function(t){return Ze.nodebuffer?bc.newBufferFrom(t,"utf-8"):wc(t)};Pe.utf8decode=function(t){return Ze.nodebuffer?gt.transformTo("nodebuffer",t).toString("utf-8"):(t=gt.transformTo(Ze.uint8array?"uint8array":"array",t),xc(t))};function Zr(){$r.call(this,"utf-8 decode"),this.leftOver=null}gt.inherits(Zr,$r);Zr.prototype.processChunk=function(e){var t=gt.transformTo(Ze.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(Ze.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=yc(t),n=t;i!==t.length&&(Ze.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})};Zr.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:Pe.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)};Pe.Utf8DecodeWorker=Zr;function un(){$r.call(this,"utf-8 encode")}gt.inherits(un,$r);un.prototype.processChunk=function(e){this.push({data:Pe.utf8encode(e.data),meta:e.meta})};Pe.Utf8EncodeWorker=un});var Us=_((vg,Hs)=>{"use strict";var js=ee(),Ws=B();function hn(e){js.call(this,"ConvertWorker to "+e),this.destType=e}Ws.inherits(hn,js);hn.prototype.processChunk=function(e){this.push({data:Ws.transformTo(this.destType,e.data),meta:e.meta})};Hs.exports=hn});var Vs=_((bg,Zs)=>{"use strict";var $s=Yi().Readable,kc=B();kc.inherits(cn,$s);function cn(e,t,r){$s.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)})}cn.prototype._read=function(){this._helper.resume()};Zs.exports=cn});var dn=_((wg,Ys)=>{"use strict";var Ve=B(),Sc=Us(),Ec=ee(),Cc=en(),Oc=Se(),Ac=mt(),Gs=null;if(Oc.nodestream)try{Gs=Vs()}catch{}function Tc(e,t,r){switch(e){case"blob":return Ve.newBlob(Ve.transformTo("arraybuffer",t),r);case"base64":return Cc.encode(t);default:return Ve.transformTo(e,t)}}function Dc(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 Ic(e,t){return new Ac.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=Tc(s,Dc(a,n),o);r(u)}catch(f){i(f)}n=[]}).resume()})}function Ks(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,Ve.checkSupport(i),this._worker=e.pipe(new Sc(i)),e.lock()}catch(n){this._worker=new Ec("error"),this._worker.error(n)}}Ks.prototype={accumulate:function(e){return Ic(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(){Ve.delay(t,arguments,r)}),this},resume:function(){return Ve.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(Ve.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new Gs(this,{objectMode:this._outputType!=="nodebuffer"},e)}};Ys.exports=Ks});var pn=_(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 mn=_((xg,Xs)=>{"use strict";var Vr=B(),Gr=ee(),Rc=16*1024;function bt(e){Gr.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=Vr.getTypeOf(r),t.isPaused||t._tickAndRepeat()},function(r){t.error(r)})}Vr.inherits(bt,Gr);bt.prototype.cleanUp=function(){Gr.prototype.cleanUp.call(this),this.data=null};bt.prototype.resume=function(){return Gr.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Vr.delay(this._tickAndRepeat,[],this)),!0):!1};bt.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(Vr.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))};bt.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=Rc,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}})};Xs.exports=bt});var Kr=_((kg,Qs)=>{"use strict";var Fc=B();function Nc(){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 Js=Nc();function Pc(e,t,r,i){var n=Js,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 Bc(e,t,r,i){var n=Js,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}Qs.exports=function(t,r){if(typeof t>"u"||!t.length)return 0;var i=Fc.getTypeOf(t)!=="string";return i?Pc(r|0,t,t.length,0):Bc(r|0,t,t.length,0)}});var gn=_((Sg,to)=>{"use strict";var eo=ee(),zc=Kr(),Lc=B();function _n(){eo.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}Lc.inherits(_n,eo);_n.prototype.processChunk=function(e){this.streamInfo.crc32=zc(e.data,this.streamInfo.crc32||0),this.push(e)};to.exports=_n});var io=_((Eg,ro)=>{"use strict";var qc=B(),vn=ee();function bn(e){vn.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}qc.inherits(bn,vn);bn.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}vn.prototype.processChunk.call(this,e)};ro.exports=bn});var Yr=_((Cg,so)=>{"use strict";var no=mt(),ao=mn(),Mc=gn(),wn=io();function yn(e,t,r,i,n){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=i,this.compressedContent=n}yn.prototype={getContentWorker:function(){var e=new ao(no.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new wn("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 ao(no.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};yn.createWorkerFrom=function(e,t,r){return e.pipe(new Mc).pipe(new wn("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new wn("compressedSize")).withStreamInfo("compression",t)};so.exports=yn});var uo=_((Og,fo)=>{"use strict";var jc=dn(),Wc=mn(),xn=vt(),kn=Yr(),oo=ee(),Sn=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}};Sn.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 xn.Utf8EncodeWorker)),!n&&i&&(t=t.pipe(new xn.Utf8DecodeWorker))}catch(a){t=new oo("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 kn&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new xn.Utf8EncodeWorker)),kn.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof kn?this._data.getContentWorker():this._data instanceof oo?this._data:new Wc(this._data)}};var lo=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Hc=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(Xr=0;Xr<lo.length;Xr++)Sn.prototype[lo[Xr]]=Hc;var Xr;fo.exports=Sn});var Ce=_(V=>{"use strict";var Uc=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function $c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}V.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)$c(r,i)&&(e[i]=r[i])}}return e};V.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var Zc={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}},Vc={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)}};V.setTyped=function(e){e?(V.Buf8=Uint8Array,V.Buf16=Uint16Array,V.Buf32=Int32Array,V.assign(V,Zc)):(V.Buf8=Array,V.Buf16=Array,V.Buf32=Array,V.assign(V,Vc))};V.setTyped(Uc)});var No=_(xt=>{"use strict";var Gc=Ce(),Kc=4,ho=0,co=1,Yc=2;function yt(e){for(var t=e.length;--t>=0;)e[t]=0}var Xc=0,bo=1,Jc=2,Qc=3,ed=258,In=29,sr=256,rr=sr+1+In,wt=30,Rn=19,wo=2*rr+1,Ge=15,En=16,td=7,Fn=256,yo=16,xo=17,ko=18,Tn=[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],Jr=[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],rd=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],So=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],id=512,Oe=new Array((rr+2)*2);yt(Oe);var tr=new Array(wt*2);yt(tr);var ir=new Array(id);yt(ir);var nr=new Array(ed-Qc+1);yt(nr);var Nn=new Array(In);yt(Nn);var Qr=new Array(wt);yt(Qr);function Cn(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 Eo,Co,Oo;function On(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Ao(e){return e<256?ir[e]:ir[256+(e>>>7)]}function ar(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>En-r?(e.bi_buf|=t<<e.bi_valid&65535,ar(e,e.bi_buf),e.bi_buf=t>>En-e.bi_valid,e.bi_valid+=r-En):(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 To(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function nd(e){e.bi_valid===16?(ar(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 ad(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<=Ge;c++)e.bl_count[c]=0;for(r[e.heap[e.heap_max]*2+1]=0,f=e.heap_max+1;f<wo;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 Do(e,t,r){var i=new Array(Ge+1),n=0,a,s;for(a=1;a<=Ge;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]=To(i[o]++,o))}}function sd(){var e,t,r,i,n,a=new Array(Ge+1);for(r=0,i=0;i<In-1;i++)for(Nn[i]=r,e=0;e<1<<Tn[i];e++)nr[r++]=i;for(nr[r-1]=i,n=0,i=0;i<16;i++)for(Qr[i]=n,e=0;e<1<<Jr[i];e++)ir[n++]=i;for(n>>=7;i<wt;i++)for(Qr[i]=n<<7,e=0;e<1<<Jr[i]-7;e++)ir[256+n++]=i;for(t=0;t<=Ge;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(Do(Oe,rr+1,a),e=0;e<wt;e++)tr[e*2+1]=5,tr[e*2]=To(e,5);Eo=new Cn(Oe,Tn,sr+1,rr,Ge),Co=new Cn(tr,Jr,0,wt,Ge),Oo=new Cn(new Array(0),rd,0,Rn,td)}function Io(e){var t;for(t=0;t<rr;t++)e.dyn_ltree[t*2]=0;for(t=0;t<wt;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Rn;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Fn*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Ro(e){e.bi_valid>8?ar(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 od(e,t,r,i){Ro(e),i&&(ar(e,r),ar(e,~r)),Gc.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function po(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 An(e,t,r){for(var i=e.heap[r],n=r<<1;n<=e.heap_len&&(n<e.heap_len&&po(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!po(t,i,e.heap[n],e.depth));)e.heap[r]=e.heap[n],r=n,n<<=1;e.heap[r]=i}function mo(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=nr[n],pe(e,s+sr+1,t),o=Tn[s],o!==0&&(n-=Nn[s],X(e,n,o)),i--,s=Ao(i),pe(e,s,r),o=Jr[s],o!==0&&(i-=Qr[s],X(e,i,o)));while(a<e.last_lit);pe(e,Fn,t)}function Dn(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=wo,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--)An(e,r,s);f=a;do s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],An(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++,An(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],ad(e,t),Do(r,u,e.bl_count)}function _o(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[yo*2]++):o<=10?e.bl_tree[xo*2]++:e.bl_tree[ko*2]++,o=0,n=a,s===0?(u=138,f=3):a===s?(u=6,f=3):(u=7,f=4))}function go(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,yo,e.bl_tree),X(e,o-3,2)):o<=10?(pe(e,xo,e.bl_tree),X(e,o-3,3)):(pe(e,ko,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 ld(e){var t;for(_o(e,e.dyn_ltree,e.l_desc.max_code),_o(e,e.dyn_dtree,e.d_desc.max_code),Dn(e,e.bl_desc),t=Rn-1;t>=3&&e.bl_tree[So[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function fd(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[So[n]*2+1],3);go(e,e.dyn_ltree,t-1),go(e,e.dyn_dtree,r-1)}function ud(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return ho;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return co;for(r=32;r<sr;r++)if(e.dyn_ltree[r*2]!==0)return co;return ho}var vo=!1;function hd(e){vo||(sd(),vo=!0),e.l_desc=new On(e.dyn_ltree,Eo),e.d_desc=new On(e.dyn_dtree,Co),e.bl_desc=new On(e.bl_tree,Oo),e.bi_buf=0,e.bi_valid=0,Io(e)}function Fo(e,t,r,i){X(e,(Xc<<1)+(i?1:0),3),od(e,t,r,!0)}function cd(e){X(e,bo<<1,3),pe(e,Fn,Oe),nd(e)}function dd(e,t,r,i){var n,a,s=0;e.level>0?(e.strm.data_type===Yc&&(e.strm.data_type=ud(e)),Dn(e,e.l_desc),Dn(e,e.d_desc),s=ld(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?Fo(e,t,r,i):e.strategy===Kc||a===n?(X(e,(bo<<1)+(i?1:0),3),mo(e,Oe,tr)):(X(e,(Jc<<1)+(i?1:0),3),fd(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),mo(e,e.dyn_ltree,e.dyn_dtree)),Io(e),i&&Ro(e)}function pd(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[(nr[r]+sr+1)*2]++,e.dyn_dtree[Ao(t)*2]++),e.last_lit===e.lit_bufsize-1}xt._tr_init=hd;xt._tr_stored_block=Fo;xt._tr_flush_block=dd;xt._tr_tally=pd;xt._tr_align=cd});var Pn=_((Dg,Po)=>{"use strict";function md(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}Po.exports=md});var Bn=_((Ig,Bo)=>{"use strict";function _d(){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 gd=_d();function vd(e,t,r,i){var n=gd,a=i+r;e^=-1;for(var s=i;s<a;s++)e=e>>>8^n[(e^t[s])&255];return e^-1}Bo.exports=vd});var ei=_((Rg,zo)=>{"use strict";zo.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 Zo=_(ge=>{"use strict";var G=Ce(),re=No(),jo=Pn(),Be=Bn(),bd=ei(),Je=0,wd=1,yd=3,je=4,Lo=5,_e=0,qo=1,ie=-2,xd=-3,zn=-5,kd=-1,Sd=1,ti=2,Ed=3,Cd=4,Od=0,Ad=2,ai=8,Td=9,Dd=15,Id=8,Rd=29,Fd=256,qn=Fd+1+Rd,Nd=30,Pd=19,Bd=2*qn+1,zd=15,A=3,qe=258,le=qe+A+1,Ld=32,si=42,Mn=69,ri=73,ii=91,ni=103,Ke=113,lr=666,W=1,fr=2,Ye=3,Et=4,qd=3;function Me(e,t){return e.msg=bd[t],t}function Mo(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&&(G.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){re._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 or(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function Md(e,t,r,i){var n=e.avail_in;return n>i&&(n=i),n===0?0:(e.avail_in-=n,G.arraySet(t,e.input,e.next_in,n,r),e.state.wrap===1?e.adler=jo(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 Wo(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 Xe(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)){G.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=Md(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(Xe(e),e.lookahead===0&&t===Je)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?Ye:Et):(e.strstart>e.block_start&&(U(e,!1),e.strm.avail_out===0),W)}function Ln(e,t){for(var r,i;;){if(e.lookahead<le){if(Xe(e),e.lookahead<le&&t===Je)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=Wo(e,r)),e.match_length>=A)if(i=re._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=re._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?Ye:Et):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:fr}function kt(e,t){for(var r,i,n;;){if(e.lookahead<le){if(Xe(e),e.lookahead<le&&t===Je)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=Wo(e,r),e.match_length<=5&&(e.strategy===Sd||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=re._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=re._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=re._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?Ye:Et):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:fr}function Wd(e,t){for(var r,i,n,a,s=e.window;;){if(e.lookahead<=qe){if(Xe(e),e.lookahead<=qe&&t===Je)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=re._tr_tally(e,1,e.match_length-A),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=re._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?Ye:Et):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:fr}function Hd(e,t){for(var r;;){if(e.lookahead===0&&(Xe(e),e.lookahead===0)){if(t===Je)return W;break}if(e.match_length=0,r=re._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?Ye:Et):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:fr}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 St;St=[new me(0,0,0,0,jd),new me(4,4,8,4,Ln),new me(4,5,16,8,Ln),new me(4,6,32,32,Ln),new me(4,4,16,16,kt),new me(8,16,32,32,kt),new me(8,16,128,128,kt),new me(8,32,128,256,kt),new me(32,128,258,1024,kt),new me(32,258,258,4096,kt)];function Ud(e){e.window_size=2*e.w_size,Le(e.head),e.max_lazy_match=St[e.level].max_lazy,e.good_match=St[e.level].good_length,e.nice_match=St[e.level].nice_length,e.max_chain_length=St[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 $d(){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=ai,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 G.Buf16(Bd*2),this.dyn_dtree=new G.Buf16((2*Nd+1)*2),this.bl_tree=new G.Buf16((2*Pd+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 G.Buf16(zd+1),this.heap=new G.Buf16(2*qn+1),Le(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new G.Buf16(2*qn+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 Ho(e){var t;return!e||!e.state?Me(e,ie):(e.total_in=e.total_out=0,e.data_type=Ad,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?si:Ke,e.adler=t.wrap===2?0:1,t.last_flush=Je,re._tr_init(t),_e)}function Uo(e){var t=Ho(e);return t===_e&&Ud(e.state),t}function Zd(e,t){return!e||!e.state||e.state.wrap!==2?ie:(e.state.gzhead=t,_e)}function $o(e,t,r,i,n,a){if(!e)return ie;var s=1;if(t===kd&&(t=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),n<1||n>Td||r!==ai||i<8||i>15||t<0||t>9||a<0||a>Cd)return Me(e,ie);i===8&&(i=9);var o=new $d;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 G.Buf8(o.w_size*2),o.head=new G.Buf16(o.hash_size),o.prev=new G.Buf16(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new G.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,Uo(e)}function Vd(e,t){return $o(e,t,ai,Dd,Id,Od)}function Gd(e,t){var r,i,n,a;if(!e||!e.state||t>Lo||t<0)return e?Me(e,ie):ie;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===lr&&t!==je)return Me(e,e.avail_out===0?zn:ie);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===si)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>=ti||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=Mn):(T(i,0),T(i,0),T(i,0),T(i,0),T(i,0),T(i,i.level===9?2:i.strategy>=ti||i.level<2?4:0),T(i,qd),i.status=Ke);else{var s=ai+(i.w_bits-8<<4)<<8,o=-1;i.strategy>=ti||i.level<2?o=0:i.level<6?o=1:i.level===6?o=2:o=3,s|=o<<6,i.strstart!==0&&(s|=Ld),s+=31-s%31,i.status=Ke,or(i,s),i.strstart!==0&&(or(i,e.adler>>>16),or(i,e.adler&65535)),e.adler=1}if(i.status===Mn)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=ri)}else i.status=ri;if(i.status===ri)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=ii)}else i.status=ii;if(i.status===ii)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=ni)}else i.status=ni;if(i.status===ni&&(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=Ke)):i.status=Ke),i.pending!==0){if(ze(e),e.avail_out===0)return i.last_flush=-1,_e}else if(e.avail_in===0&&Mo(t)<=Mo(r)&&t!==je)return Me(e,zn);if(i.status===lr&&e.avail_in!==0)return Me(e,zn);if(e.avail_in!==0||i.lookahead!==0||t!==Je&&i.status!==lr){var u=i.strategy===ti?Hd(i,t):i.strategy===Ed?Wd(i,t):St[i.level].func(i,t);if((u===Ye||u===Et)&&(i.status=lr),u===W||u===Ye)return e.avail_out===0&&(i.last_flush=-1),_e;if(u===fr&&(t===wd?re._tr_align(i):t!==Lo&&(re._tr_stored_block(i,0,0,!1),t===yd&&(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,_e}return t!==je?_e:i.wrap<=0?qo:(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)):(or(i,e.adler>>>16),or(i,e.adler&65535)),ze(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?_e:qo)}function Kd(e){var t;return!e||!e.state?ie:(t=e.state.status,t!==si&&t!==Mn&&t!==ri&&t!==ii&&t!==ni&&t!==Ke&&t!==lr?Me(e,ie):(e.state=null,t===Ke?Me(e,xd):_e))}function Yd(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!==si||i.lookahead))return ie;for(s===1&&(e.adler=jo(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 G.Buf8(i.w_size),G.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,Xe(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,Xe(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,_e}ge.deflateInit=Vd;ge.deflateInit2=$o;ge.deflateReset=Uo;ge.deflateResetKeep=Ho;ge.deflateSetHeader=Zd;ge.deflate=Gd;ge.deflateEnd=Kd;ge.deflateSetDictionary=Yd;ge.deflateInfo="pako deflate (from Nodeca project)"});var jn=_(Ct=>{"use strict";var oi=Ce(),Vo=!0,Go=!0;try{String.fromCharCode.apply(null,[0])}catch{Vo=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Go=!1}var ur=new oi.Buf8(256);for(Ae=0;Ae<256;Ae++)ur[Ae]=Ae>=252?6:Ae>=248?5:Ae>=240?4:Ae>=224?3:Ae>=192?2:1;var Ae;ur[254]=ur[254]=1;Ct.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 oi.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 Ko(e,t){if(t<65534&&(e.subarray&&Go||!e.subarray&&Vo))return String.fromCharCode.apply(null,oi.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}Ct.buf2binstring=function(e){return Ko(e,e.length)};Ct.binstring2buf=function(e){for(var t=new oi.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};Ct.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=ur[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 Ko(o,i)};Ct.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+ur[e[r]]>t?r:t}});var Wn=_((Pg,Yo)=>{"use strict";function Xd(){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}Yo.exports=Xd});var el=_(dr=>{"use strict";var hr=Zo(),cr=Ce(),Un=jn(),$n=ei(),Jd=Wn(),Qo=Object.prototype.toString,Qd=0,Hn=4,Ot=0,Xo=1,Jo=2,ep=-1,tp=0,rp=8;function Qe(e){if(!(this instanceof Qe))return new Qe(e);this.options=cr.assign({level:ep,method:rp,chunkSize:16384,windowBits:15,memLevel:8,strategy:tp,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 Jd,this.strm.avail_out=0;var r=hr.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==Ot)throw new Error($n[r]);if(t.header&&hr.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=Un.string2buf(t.dictionary):Qo.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=hr.deflateSetDictionary(this.strm,i),r!==Ot)throw new Error($n[r]);this._dict_set=!0}}Qe.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?Hn:Qd,typeof e=="string"?r.input=Un.string2buf(e):Qo.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 cr.Buf8(i),r.next_out=0,r.avail_out=i),n=hr.deflate(r,a),n!==Xo&&n!==Ot)return this.onEnd(n),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(a===Hn||a===Jo))&&(this.options.to==="string"?this.onData(Un.buf2binstring(cr.shrinkBuf(r.output,r.next_out))):this.onData(cr.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&n!==Xo);return a===Hn?(n=hr.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Ot):(a===Jo&&(this.onEnd(Ot),r.avail_out=0),!0)};Qe.prototype.onData=function(e){this.chunks.push(e)};Qe.prototype.onEnd=function(e){e===Ot&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=cr.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Zn(e,t){var r=new Qe(t);if(r.push(e,!0),r.err)throw r.msg||$n[r.err];return r.result}function ip(e,t){return t=t||{},t.raw=!0,Zn(e,t)}function np(e,t){return t=t||{},t.gzip=!0,Zn(e,t)}dr.Deflate=Qe;dr.deflate=Zn;dr.deflateRaw=ip;dr.gzip=np});var rl=_((zg,tl)=>{"use strict";var li=30,ap=12;tl.exports=function(t,r){var i,n,a,s,o,u,f,l,h,c,d,b,w,x,g,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,g=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=g[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=li;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=li;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=g[(m&65535)+(b&(1<<v)-1)];continue r}else{t.msg="invalid distance code",i.mode=li;break e}break}}else if((v&64)===0){m=x[(m&65535)+(b&(1<<v)-1)];continue t}else if(v&32){i.mode=ap;break e}else{t.msg="invalid literal/length code",i.mode=li;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 fl=_((Lg,ll)=>{"use strict";var il=Ce(),At=15,nl=852,al=592,sl=0,Vn=1,ol=2,sp=[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],op=[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],lp=[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],fp=[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];ll.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,g=0,p=0,y=0,m,v,C,E,S,O=null,F=0,k,J=new il.Buf16(At+1),nt=new il.Buf16(At+1),yr=null,ka=0,Sa,xr,kr;for(l=0;l<=At;l++)J[l]=0;for(h=0;h<n;h++)J[r[i+h]]++;for(b=f,d=At;d>=1&&J[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&&J[c]===0;c++);for(b<c&&(b=c),g=1,l=1;l<=At;l++)if(g<<=1,g-=J[l],g<0)return-1;if(g>0&&(t===sl||d!==1))return-1;for(nt[1]=0,l=1;l<At;l++)nt[l+1]=nt[l]+J[l];for(h=0;h<n;h++)r[i+h]!==0&&(o[nt[r[i+h]]++]=h);if(t===sl?(O=yr=o,k=19):t===Vn?(O=sp,F-=257,yr=op,ka-=257,k=256):(O=lp,yr=fp,k=-1),y=0,h=0,l=c,S=s,w=b,x=0,C=-1,p=1<<b,E=p-1,t===Vn&&p>nl||t===ol&&p>al)return 1;for(;;){Sa=l-x,o[h]<k?(xr=0,kr=o[h]):o[h]>k?(xr=yr[ka+o[h]],kr=O[F+o[h]]):(xr=96,kr=0),m=1<<l-x,v=1<<w,c=v;do v-=m,a[S+(y>>x)+v]=Sa<<24|xr<<16|kr|0;while(v!==0);for(m=1<<l-1;y&m;)m>>=1;if(m!==0?(y&=m-1,y+=m):y=0,h++,--J[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,g=1<<w;w+x<d&&(g-=J[w+x],!(g<=0));)w++,g<<=1;if(p+=1<<w,t===Vn&&p>nl||t===ol&&p>al)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 Ul=_(fe=>{"use strict";var te=Ce(),Qn=Pn(),ve=Bn(),up=rl(),pr=fl(),hp=0,Pl=1,Bl=2,ul=4,cp=5,fi=6,et=0,dp=1,pp=2,ne=-2,zl=-3,ea=-4,mp=-5,hl=8,Ll=1,cl=2,dl=3,pl=4,ml=5,_l=6,gl=7,vl=8,bl=9,wl=10,ci=11,Te=12,Gn=13,yl=14,Kn=15,xl=16,kl=17,Sl=18,El=19,ui=20,hi=21,Cl=22,Ol=23,Al=24,Tl=25,Dl=26,Yn=27,Il=28,Rl=29,P=30,ta=31,_p=32,gp=852,vp=592,bp=15,wp=bp;function Fl(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function yp(){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 te.Buf16(320),this.work=new te.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ql(e){var t;return!e||!e.state?ne:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Ll,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new te.Buf32(gp),t.distcode=t.distdyn=new te.Buf32(vp),t.sane=1,t.back=-1,et)}function Ml(e){var t;return!e||!e.state?ne:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,ql(e))}function jl(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))?ne:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,Ml(e))}function Wl(e,t){var r,i;return e?(i=new yp,e.state=i,i.window=null,r=jl(e,t),r!==et&&(e.state=null),r):ne}function xp(e){return Wl(e,wp)}var Nl=!0,Xn,Jn;function kp(e){if(Nl){var t;for(Xn=new te.Buf32(512),Jn=new te.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(pr(Pl,e.lens,0,288,Xn,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;pr(Bl,e.lens,0,32,Jn,0,e.work,{bits:5}),Nl=!1}e.lencode=Xn,e.lenbits=9,e.distcode=Jn,e.distbits=5}function Hl(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 te.Buf8(a.wsize)),i>=a.wsize?(te.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),te.arraySet(a.window,t,r-i,n,a.wnext),i-=n,i?(te.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 Sp(e,t){var r,i,n,a,s,o,u,f,l,h,c,d,b,w,x=0,g,p,y,m,v,C,E,S,O=new te.Buf8(4),F,k,J=[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 ne;r=e.state,r.mode===Te&&(r.mode=Gn),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=et;e:for(;;)switch(r.mode){case Ll:if(r.wrap===0){r.mode=Gn;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=cl;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)!==hl){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?wl:Te,f=0,l=0;break;case cl:for(;l<16;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(r.flags=f,(r.flags&255)!==hl){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=dl;case dl: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=pl;case pl: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=ml;case ml: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=_l;case _l: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)),te.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=gl;case gl: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=vl;case vl: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=bl;case bl: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 wl:for(;l<32;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}e.adler=r.check=Fl(f),f=0,l=0,r.mode=ci;case ci: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,pp;e.adler=r.check=1,r.mode=Te;case Te:if(t===cp||t===fi)break e;case Gn:if(r.last){f>>>=l&7,l-=l&7,r.mode=Yn;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=yl;break;case 1:if(kp(r),r.mode=ui,t===fi){f>>>=2,l-=2;break e}break;case 2:r.mode=kl;break;case 3:e.msg="invalid block type",r.mode=P}f>>>=2,l-=2;break;case yl: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=Kn,t===fi)break e;case Kn:r.mode=xl;case xl:if(d=r.length,d){if(d>o&&(d=o),d>u&&(d=u),d===0)break e;te.arraySet(n,i,a,d,s),o-=d,a+=d,u-=d,s+=d,r.length-=d;break}r.mode=Te;break;case kl: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=Sl;case Sl:for(;r.have<r.ncode;){for(;l<3;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.lens[J[r.have++]]=f&7,f>>>=3,l-=3}for(;r.have<19;)r.lens[J[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,F={bits:r.lenbits},S=pr(hp,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=El;case El:for(;r.have<r.nlen+r.ndist;){for(;x=r.lencode[f&(1<<r.lenbits)-1],g=x>>>24,p=x>>>16&255,y=x&65535,!(g<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(y<16)f>>>=g,l-=g,r.lens[r.have++]=y;else{if(y===16){for(k=g+2;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(f>>>=g,l-=g,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=g+3;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=g,l-=g,E=0,d=3+(f&7),f>>>=3,l-=3}else{for(k=g+7;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=g,l-=g,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=pr(Pl,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=pr(Bl,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=ui,t===fi)break e;case ui:r.mode=hi;case hi: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,up(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],g=x>>>24,p=x>>>16&255,y=x&65535,!(g<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(p&&(p&240)===0){for(m=g,v=p,C=y;x=r.lencode[C+((f&(1<<m+v)-1)>>m)],g=x>>>24,p=x>>>16&255,y=x&65535,!(m+g<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=m,l-=m,r.back+=m}if(f>>>=g,l-=g,r.back+=g,r.length=y,p===0){r.mode=Dl;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=Cl;case Cl: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=Ol;case Ol:for(;x=r.distcode[f&(1<<r.distbits)-1],g=x>>>24,p=x>>>16&255,y=x&65535,!(g<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if((p&240)===0){for(m=g,v=p,C=y;x=r.distcode[C+((f&(1<<m+v)-1)>>m)],g=x>>>24,p=x>>>16&255,y=x&65535,!(m+g<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=m,l-=m,r.back+=m}if(f>>>=g,l-=g,r.back+=g,p&64){e.msg="invalid distance code",r.mode=P;break}r.offset=y,r.extra=p&15,r.mode=Al;case Al: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=Tl;case Tl: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=hi);break;case Dl:if(u===0)break e;n[s++]=r.length,u--,r.mode=hi;break;case Yn: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):Qn(r.check,n,c,s-c)),c=u,(r.flags?f:Fl(f))!==r.check){e.msg="incorrect data check",r.mode=P;break}f=0,l=0}r.mode=Il;case Il: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=Rl;case Rl:S=dp;break e;case P:S=zl;break e;case ta:return ea;case _p:default:return ne}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<Yn||t!==ul))&&Hl(e,e.output,e.next_out,c-e.avail_out)?(r.mode=ta,ea):(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):Qn(r.check,n,c,e.next_out-c)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Te?128:0)+(r.mode===ui||r.mode===Kn?256:0),(h===0&&c===0||t===ul)&&S===et&&(S=mp),S)}function Ep(e){if(!e||!e.state)return ne;var t=e.state;return t.window&&(t.window=null),e.state=null,et}function Cp(e,t){var r;return!e||!e.state||(r=e.state,(r.wrap&2)===0)?ne:(r.head=t,t.done=!1,et)}function Op(e,t){var r=t.length,i,n,a;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==ci)?ne:i.mode===ci&&(n=1,n=Qn(n,t,r,0),n!==i.check)?zl:(a=Hl(e,t,r,r),a?(i.mode=ta,ea):(i.havedict=1,et))}fe.inflateReset=Ml;fe.inflateReset2=jl;fe.inflateResetKeep=ql;fe.inflateInit=xp;fe.inflateInit2=Wl;fe.inflate=Sp;fe.inflateEnd=Ep;fe.inflateGetHeader=Cp;fe.inflateSetDictionary=Op;fe.inflateInfo="pako inflate (from Nodeca project)"});var ra=_((Mg,$l)=>{"use strict";$l.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 Vl=_((jg,Zl)=>{"use strict";function Ap(){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}Zl.exports=Ap});var Kl=_(_r=>{"use strict";var Tt=Ul(),mr=Ce(),di=jn(),q=ra(),ia=ei(),Tp=Wn(),Dp=Vl(),Gl=Object.prototype.toString;function tt(e){if(!(this instanceof tt))return new tt(e);this.options=mr.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 Tp,this.strm.avail_out=0;var r=Tt.inflateInit2(this.strm,t.windowBits);if(r!==q.Z_OK)throw new Error(ia[r]);if(this.header=new Dp,Tt.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=di.string2buf(t.dictionary):Gl.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Tt.inflateSetDictionary(this.strm,t.dictionary),r!==q.Z_OK)))throw new Error(ia[r])}tt.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=di.binstring2buf(e):Gl.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 mr.Buf8(i),r.next_out=0,r.avail_out=i),a=Tt.inflate(r,q.Z_NO_FLUSH),a===q.Z_NEED_DICT&&n&&(a=Tt.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=di.utf8border(r.output,r.next_out),u=r.next_out-o,f=di.buf2string(r.output,o),r.next_out=u,r.avail_out=i-u,u&&mr.arraySet(r.output,r.output,o,u,0),this.onData(f)):this.onData(mr.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=Tt.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)};tt.prototype.onData=function(e){this.chunks.push(e)};tt.prototype.onEnd=function(e){e===q.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=mr.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function na(e,t){var r=new tt(t);if(r.push(e,!0),r.err)throw r.msg||ia[r.err];return r.result}function Ip(e,t){return t=t||{},t.raw=!0,na(e,t)}_r.Inflate=tt;_r.inflate=na;_r.inflateRaw=Ip;_r.ungzip=na});var Jl=_((Hg,Xl)=>{"use strict";var Rp=Ce().assign,Fp=el(),Np=Kl(),Pp=ra(),Yl={};Rp(Yl,Fp,Np,Pp);Xl.exports=Yl});var ef=_(mi=>{"use strict";var Bp=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",zp=Jl(),Ql=B(),pi=ee(),Lp=Bp?"uint8array":"array";mi.magic="\b\0";function rt(e,t){pi.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}Ql.inherits(rt,pi);rt.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(Ql.transformTo(Lp,e.data),!1)};rt.prototype.flush=function(){pi.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)};rt.prototype.cleanUp=function(){pi.prototype.cleanUp.call(this),this._pako=null};rt.prototype._createPako=function(){this._pako=new zp[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};mi.compressWorker=function(e){return new rt("Deflate",e)};mi.uncompressWorker=function(){return new rt("Inflate",{})}});var sa=_(aa=>{"use strict";var tf=ee();aa.STORE={magic:"\0\0",compressWorker:function(){return new tf("STORE compression")},uncompressWorker:function(){return new tf("STORE decompression")}};aa.DEFLATE=ef()});var oa=_(it=>{"use strict";it.LOCAL_FILE_HEADER="PK";it.CENTRAL_FILE_HEADER="PK";it.CENTRAL_DIRECTORY_END="PK";it.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07";it.ZIP64_CENTRAL_DIRECTORY_END="PK";it.DATA_DESCRIPTOR="PK\x07\b"});var sf=_((Vg,af)=>{"use strict";var Dt=B(),It=ee(),la=vt(),rf=Kr(),_i=oa(),R=function(e,t){var r="",i;for(i=0;i<t;i++)r+=String.fromCharCode(e&255),e=e>>>8;return r},qp=function(e,t){var r=e;return e||(r=t?16893:33204),(r&65535)<<16},Mp=function(e){return(e||0)&63},nf=function(e,t,r,i,n,a){var s=e.file,o=e.compression,u=a!==la.utf8encode,f=Dt.transformTo("string",a(s.name)),l=Dt.transformTo("string",la.utf8encode(s.name)),h=s.comment,c=Dt.transformTo("string",a(h)),d=Dt.transformTo("string",la.utf8encode(h)),b=l.length!==s.name.length,w=d.length!==h.length,x,g,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|=qp(s.unixPermissions,v)):(F=20,O|=Mp(s.dosPermissions,v)),x=C.getUTCHours(),x=x<<6,x=x|C.getUTCMinutes(),x=x<<5,x=x|C.getUTCSeconds()/2,g=C.getUTCFullYear()-1980,g=g<<4,g=g|C.getUTCMonth()+1,g=g<<5,g=g|C.getUTCDate(),b&&(y=R(1,1)+R(rf(f),4)+l,p+="up"+R(y.length,2)+y),w&&(m=R(1,1)+R(rf(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(g,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 J=_i.LOCAL_FILE_HEADER+k+f+p,nt=_i.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:J,dirRecord:nt}},jp=function(e,t,r,i,n){var a="",s=Dt.transformTo("string",n(i));return a=_i.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},Wp=function(e){var t="";return t=_i.DATA_DESCRIPTOR+R(e.crc32,4)+R(e.compressedSize,4)+R(e.uncompressedSize,4),t};function ue(e,t,r,i){It.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=[]}Dt.inherits(ue,It);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,It.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=nf(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=nf(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:Wp(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(!It.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(!It.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(){It.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()};af.exports=ue});var lf=_(of=>{"use strict";var Hp=sa(),Up=sf(),$p=function(e,t){var r=e||t,i=Hp[r];if(!i)throw new Error(r+" is not a valid compression method !");return i};of.generateWorker=function(e,t,r){var i=new Up(t.streamFiles,r,t.platform,t.encodeFileName),n=0;try{e.forEach(function(a,s){n++;var o=$p(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 uf=_((Kg,ff)=>{"use strict";var Zp=B(),gi=ee();function gr(e,t){gi.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}Zp.inherits(gr,gi);gr.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()})};gr.prototype.pause=function(){return gi.prototype.pause.call(this)?(this._stream.pause(),!0):!1};gr.prototype.resume=function(){return gi.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),!0):!1};ff.exports=gr});var wf=_((Yg,bf)=>{"use strict";var Vp=vt(),vr=B(),pf=ee(),Gp=dn(),mf=pn(),hf=Yr(),Kp=uo(),Yp=lf(),cf=Vt(),Xp=uf(),_f=function(e,t,r){var i=vr.getTypeOf(t),n,a=vr.extend(r||{},mf);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=gf(e)),a.createFolders&&(n=Jp(e))&&vf.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 hf&&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 hf||t instanceof pf?u=t:cf.isNode&&cf.isStream(t)?u=new Xp(e,t):u=vr.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64);var f=new Kp(e,u,a);this.files[e]=f},Jp=function(e){e.slice(-1)==="/"&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},gf=function(e){return e.slice(-1)!=="/"&&(e+="/"),e},vf=function(e,t){return t=typeof t<"u"?t:mf.createFolders,e=gf(e),this.files[e]||_f.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function df(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var Qp={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(df(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,_f.call(this,e,t,r);return this},folder:function(e){if(!e)return this;if(df(e))return this.filter(function(n,a){return a.dir&&e.test(n)});var t=this.root+e,r=vf.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=vr.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Vp.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.");vr.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=Yp.generateWorker(this,r,i)}catch(n){t=new pf("error"),t.error(n)}return new Gp(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)}};bf.exports=Qp});var fa=_((Xg,xf)=>{"use strict";var em=B();function yf(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}yf.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 em.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))}};xf.exports=yf});var ua=_((Jg,Sf)=>{"use strict";var kf=fa(),tm=B();function Rt(e){kf.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255}tm.inherits(Rt,kf);Rt.prototype.byteAt=function(e){return this.data[this.zero+e]};Rt.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};Rt.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]};Rt.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};Sf.exports=Rt});var Of=_((Qg,Cf)=>{"use strict";var Ef=fa(),rm=B();function Ft(e){Ef.call(this,e)}rm.inherits(Ft,Ef);Ft.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};Ft.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};Ft.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};Ft.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};Cf.exports=Ft});var ca=_((e0,Tf)=>{"use strict";var Af=ua(),im=B();function ha(e){Af.call(this,e)}im.inherits(ha,Af);ha.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};Tf.exports=ha});var Rf=_((t0,If)=>{"use strict";var Df=ca(),nm=B();function da(e){Df.call(this,e)}nm.inherits(da,Df);da.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=da});var pa=_((r0,Nf)=>{"use strict";var vi=B(),Ff=Se(),am=ua(),sm=Of(),om=Rf(),lm=ca();Nf.exports=function(e){var t=vi.getTypeOf(e);return vi.checkSupport(t),t==="string"&&!Ff.uint8array?new sm(e):t==="nodebuffer"?new om(e):Ff.uint8array?new lm(vi.transformTo("uint8array",e)):new am(vi.transformTo("array",e))}});var Lf=_((i0,zf)=>{"use strict";var ma=pa(),We=B(),fm=Yr(),Pf=Kr(),bi=vt(),wi=sa(),um=Se(),hm=0,cm=3,dm=function(e){for(var t in wi)if(Object.prototype.hasOwnProperty.call(wi,t)&&wi[t].magic===e)return wi[t];return null};function Bf(e,t){this.options=e,this.loadOptions=t}Bf.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=dm(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 fm(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===hm&&(this.dosPermissions=this.externalFileAttributes&63),e===cm&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=ma(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=um.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=bi.utf8decode(this.fileName),this.fileCommentStr=bi.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=ma(e.value);return t.readInt(1)!==1||Pf(this.fileName)!==t.readInt(4)?null:bi.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=ma(e.value);return t.readInt(1)!==1||Pf(this.fileComment)!==t.readInt(4)?null:bi.utf8decode(t.readData(e.length-5))}return null}};zf.exports=Bf});var jf=_((n0,Mf)=>{"use strict";var pm=pa(),De=B(),he=oa(),mm=Lf(),_m=Se();function qf(e){this.files=[],this.loadOptions=e}qf.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=_m.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 mm({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=pm(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};Mf.exports=qf});var Uf=_((a0,Hf)=>{"use strict";var _a=B(),yi=mt(),gm=vt(),vm=jf(),bm=gn(),Wf=Vt();function wm(e){return new yi.Promise(function(t,r){var i=e.decompressed.getContentWorker().pipe(new bm);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()})}Hf.exports=function(e,t){var r=this;return t=_a.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:gm.utf8decode}),Wf.isNode&&Wf.isStream(e)?yi.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):_a.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(i){var n=new vm(t);return n.load(i),n}).then(function(n){var a=[yi.Promise.resolve(n)],s=n.files;if(t.checkCRC32)for(var o=0;o<s.length;o++)a.push(wm(s[o]));return yi.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=_a.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 ga=_((s0,$f)=>{"use strict";function ae(){if(!(this instanceof ae))return new ae;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 ae;for(var t in this)typeof this[t]!="function"&&(e[t]=this[t]);return e}}ae.prototype=wf();ae.prototype.loadAsync=Uf();ae.support=Se();ae.defaults=pn();ae.version="3.10.1";ae.loadAsync=function(e,t){return new ae().loadAsync(e,t)};ae.external=mt();$f.exports=ae});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 Nt=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 Sr(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}import{EventEmitter as bu}from"node:events";import Ci from"node:child_process";import we from"node:path";import Cr from"node:fs";import D from"node:process";import{stripVTControlCharacters as wu}from"node:util";import{stripVTControlCharacters as _u}from"node:util";var Pt=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=>Sr(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 cu=Object.create;var Ca=Object.defineProperty;var du=Object.getOwnPropertyDescriptor;var pu=Object.getOwnPropertyNames;var mu=Object.getPrototypeOf,_u=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 _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var gu=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of pu(t))!_u.call(e,n)&&n!==r&&Ca(e,n,{get:()=>t[n],enumerable:!(i=du(t,n))||i.enumerable});return e};var Oa=(e,t,r)=>(r=e!=null?cu(mu(e)):{},gu(t||!e||!e.__esModule?Ca(r,"default",{value:e,enumerable:!0}):r,e));var Lt=_((V_,Oi)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Oi.exports={nextTick:Uu}:Oi.exports=process;function Uu(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 Pa=_((G_,Na)=>{var $u={}.toString;Na.exports=Array.isArray||function(e){return $u.call(e)=="[object Array]"}});var Ai=_((K_,Ba)=>{Ba.exports=be("stream")});var qt=_((Ti,La)=>{var Ir=be("buffer"),ye=Ir.Buffer;function za(e,t){for(var r in e)t[r]=e[r]}ye.from&&ye.alloc&&ye.allocUnsafe&&ye.allocUnsafeSlow?La.exports=Ir:(za(Ir,Ti),Ti.Buffer=ot);function ot(e,t,r){return ye(e,t,r)}za(ye,ot);ot.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ye(e,t,r)};ot.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};ot.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ye(e)};ot.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Ir.SlowBuffer(e)}});var lt=_($=>{function Zu(e){return Array.isArray?Array.isArray(e):Rr(e)==="[object Array]"}$.isArray=Zu;function Vu(e){return typeof e=="boolean"}$.isBoolean=Vu;function Gu(e){return e===null}$.isNull=Gu;function Ku(e){return e==null}$.isNullOrUndefined=Ku;function Yu(e){return typeof e=="number"}$.isNumber=Yu;function Xu(e){return typeof e=="string"}$.isString=Xu;function Ju(e){return typeof e=="symbol"}$.isSymbol=Ju;function Qu(e){return e===void 0}$.isUndefined=Qu;function eh(e){return Rr(e)==="[object RegExp]"}$.isRegExp=eh;function th(e){return typeof e=="object"&&e!==null}$.isObject=th;function rh(e){return Rr(e)==="[object Date]"}$.isDate=rh;function ih(e){return Rr(e)==="[object Error]"||e instanceof Error}$.isError=ih;function nh(e){return typeof e=="function"}$.isFunction=nh;function ah(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}$.isPrimitive=ah;$.isBuffer=be("buffer").Buffer.isBuffer;function Rr(e){return Object.prototype.toString.call(e)}});var qa=_((X_,Di)=>{typeof Object.create=="function"?Di.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Di.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 ft=_((J_,Ri)=>{try{if(Ii=be("util"),typeof Ii.inherits!="function")throw"";Ri.exports=Ii.inherits}catch{Ri.exports=qa()}var Ii});var ja=_((Q_,Fi)=>{"use strict";function sh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Ma=qt().Buffer,Mt=be("util");function oh(e,t,r){e.copy(t,r)}Fi.exports=(function(){function e(){sh(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 Ma.alloc(0);for(var i=Ma.allocUnsafe(r>>>0),n=this.head,a=0;n;)oh(n.data,i,a),a+=n.data.length,n=n.next;return i},e})();Mt&&Mt.inspect&&Mt.inspect.custom&&(Fi.exports.prototype[Mt.inspect.custom]=function(){var e=Mt.inspect({length:this.length});return this.constructor.name+" "+e})});var Ni=_((eg,Wa)=>{"use strict";var Fr=Lt();function lh(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,Fr.nextTick(Nr,this,e)):Fr.nextTick(Nr,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,Fr.nextTick(Nr,r,a)):Fr.nextTick(Nr,r,a):t&&t(a)}),this)}function fh(){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 Nr(e,t){e.emit("error",t)}Wa.exports={destroy:lh,undestroy:fh}});var Ua=_((tg,Ha)=>{Ha.exports=be("util").deprecate});var Bi=_((rg,Ja)=>{"use strict";var Ue=Lt();Ja.exports=M;function Za(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Oh(t,e)}}var uh=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Ue.nextTick,ut;M.WritableState=Wt;var Va=Object.create(lt());Va.inherits=ft();var hh={deprecate:Ua()},Ga=Ai(),Br=qt().Buffer,ch=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function dh(e){return Br.from(e)}function ph(e){return Br.isBuffer(e)||e instanceof ch}var Ka=Ni();Va.inherits(M,Ga);function mh(){}function Wt(e,t){ut=ut||$e(),e=e||{};var r=t instanceof ut;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){xh(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 Za(this)}Wt.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Wt.prototype,"buffer",{get:hh.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Pr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Pr=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(e){return Pr.call(this,e)?!0:this!==M?!1:e&&e._writableState instanceof Wt}})):Pr=function(e){return e instanceof this};function M(e){if(ut=ut||$e(),!Pr.call(M,this)&&!(this instanceof ut))return new M(e);this._writableState=new Wt(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)),Ga.call(this)}M.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function _h(e,t){var r=new Error("write after end");e.emit("error",r),Ue.nextTick(t,r)}function gh(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),Ue.nextTick(i,a),n=!1),n}M.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&ph(e);return a&&!Br.isBuffer(e)&&(e=dh(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=mh),i.ended?_h(this,r):(a||gh(this,i,e,r))&&(i.pendingcb++,n=bh(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&&Ya(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 vh(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Br.from(t,r)),t}Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function bh(e,t,r,i,n,a){if(!r){var s=vh(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 Pi(e,t,!1,o,i,n,a);return u}function Pi(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 wh(e,t,r,i,n){--t.pendingcb,r?(Ue.nextTick(n,i),Ue.nextTick(jt,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(n(i),e._writableState.errorEmitted=!0,e.emit("error",i),jt(e,t))}function yh(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function xh(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(yh(r),t)wh(e,r,i,t,n);else{var a=Xa(r);!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Ya(e,r),i?uh($a,e,r,a,n):$a(e,r,a,n)}}function $a(e,t,r,i){r||kh(e,t),t.pendingcb--,i(),jt(e,t)}function kh(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function Ya(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,Pi(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 Za(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,l=r.callback,h=t.objectMode?1:u.length;if(Pi(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||Ch(this,i,r)};function Xa(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Sh(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),jt(e,t)})}function Eh(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,Ue.nextTick(Sh,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function jt(e,t){var r=Xa(t);return r&&(Eh(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function Ch(e,t,r){t.ending=!0,jt(e,t),r&&(t.finished?Ue.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function Oh(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=Ka.destroy;M.prototype._undestroy=Ka.undestroy;M.prototype._destroy=function(e,t){this.end(),t(e)}});var $e=_((ig,rs)=>{"use strict";var Qa=Lt(),Ah=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};rs.exports=xe;var es=Object.create(lt());es.inherits=ft();var ts=qi(),Li=Bi();es.inherits(xe,ts);for(zi=Ah(Li.prototype),zr=0;zr<zi.length;zr++)Lr=zi[zr],xe.prototype[Lr]||(xe.prototype[Lr]=Li.prototype[Lr]);var zi,Lr,zr;function xe(e){if(!(this instanceof xe))return new xe(e);ts.call(this,e),Li.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",Th)}Object.defineProperty(xe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Th(){this.allowHalfOpen||this._writableState.ended||Qa.nextTick(Dh,this)}function Dh(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(),Qa.nextTick(t,e)}});var Wi=_(ns=>{"use strict";var ji=qt().Buffer,is=ji.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 Ih(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 Rh(e){var t=Ih(e);if(typeof t!="string"&&(ji.isEncoding===is||!is(e)))throw new Error("Unknown encoding: "+e);return t||e}ns.StringDecoder=Ht;function Ht(e){this.encoding=Rh(e);var t;switch(this.encoding){case"utf16le":this.text=Lh,this.end=qh,t=4;break;case"utf8":this.fillLast=Ph,t=4;break;case"base64":this.text=Mh,this.end=jh,t=3;break;default:this.write=Wh,this.end=Hh;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ji.allocUnsafe(t)}Ht.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||""};Ht.prototype.end=zh;Ht.prototype.text=Bh;Ht.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 Mi(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Fh(e,t,r){var i=t.length-1;if(i<r)return 0;var n=Mi(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||n===-2?0:(n=Mi(t[i]),n>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||n===-2?0:(n=Mi(t[i]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function Nh(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 Ph(e){var t=this.lastTotal-this.lastNeed,r=Nh(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 Bh(e,t){var r=Fh(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 Lh(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 qh(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 Mh(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 jh(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function Wh(e){return e.toString(this.encoding)}function Hh(e){return e&&e.length?this.write(e):""}});var qi=_((sg,_s)=>{"use strict";var ct=Lt();_s.exports=N;var Uh=Pa(),Ut;N.ReadableState=hs;var ag=be("events").EventEmitter,ls=function(e,t){return e.listeners(t).length},Vi=Ai(),$t=qt().Buffer,$h=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Zh(e){return $t.from(e)}function Vh(e){return $t.isBuffer(e)||e instanceof $h}var fs=Object.create(lt());fs.inherits=ft();var Hi=be("util"),I=void 0;Hi&&Hi.debuglog?I=Hi.debuglog("stream"):I=function(){};var Gh=ja(),us=Ni(),ht;fs.inherits(N,Vi);var Ui=["error","close","destroy","pause","resume"];function Kh(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Uh(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function hs(e,t){Ut=Ut||$e(),e=e||{};var r=t instanceof Ut;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 Gh,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&&(ht||(ht=Wi().StringDecoder),this.decoder=new ht(e.encoding),this.encoding=e.encoding)}function N(e){if(Ut=Ut||$e(),!(this instanceof N))return new N(e);this._readableState=new hs(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Vi.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=us.destroy;N.prototype._undestroy=us.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=$t.from(e,t),t=""),i=!0),cs(this,e,t,!1,i)};N.prototype.unshift=function(e){return cs(this,e,null,!0,!1)};function cs(e,t,r,i,n){var a=e._readableState;if(t===null)a.reading=!1,Qh(e,a);else{var s;n||(s=Yh(a,t)),s?e.emit("error",s):a.objectMode||t&&t.length>0?(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==$t.prototype&&(t=Zh(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):$i(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?$i(e,a,t,!1):ds(e,a)):$i(e,a,t,!1))):i||(a.reading=!1)}return Xh(a)}function $i(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&&qr(e)),ds(e,t)}function Yh(e,t){var r;return!Vh(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function Xh(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 ht||(ht=Wi().StringDecoder),this._readableState.decoder=new ht(e),this._readableState.encoding=e,this};var as=8388608;function Jh(e){return e>=as?e=as:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function ss(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=Jh(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?Zi(this):qr(this),null;if(e=ss(e,t),e===0&&t.ended)return t.length===0&&Zi(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=ss(r,t)));var n;return e>0?n=ps(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&&Zi(this)),n!==null&&this.emit("data",n),n};function Qh(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,qr(e)}}function qr(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(I("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?ct.nextTick(os,e):os(e))}function os(e){I("emit readable"),e.emit("readable"),Gi(e)}function ds(e,t){t.readingMore||(t.readingMore=!0,ct.nextTick(ec,e,t))}function ec(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?ct.nextTick(a):r.once("end",a),e.on("unpipe",s);function s(g,p){I("onunpipe"),g===r&&p&&p.hasUnpiped===!1&&(p.hasUnpiped=!0,l())}function o(){I("onend"),e.end()}var u=tc(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(g){I("ondata"),h=!1;var p=e.write(g);p===!1&&!h&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&ms(i.pipes,e)!==-1)&&!f&&(I("false write response, pause",i.awaitDrain),i.awaitDrain++,h=!0),r.pause())}function d(g){I("onerror",g),x(),e.removeListener("error",d),ls(e,"error")===0&&e.emit("error",g)}Kh(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 tc(e){return function(){var t=e._readableState;I("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&ls(e,"data")&&(t.flowing=!0,Gi(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=ms(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=Vi.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&&qr(this):ct.nextTick(rc,this))}return r};N.prototype.addListener=N.prototype.on;function rc(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,ic(this,e)),this};function ic(e,t){t.resumeScheduled||(t.resumeScheduled=!0,ct.nextTick(nc,e,t))}function nc(e,t){t.reading||(I("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Gi(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 Gi(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<Ui.length;a++)e.on(Ui[a],this.emit.bind(this,Ui[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=ps;function ps(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=ac(e,t.buffer,t.decoder),r}function ac(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?sc(e,t):oc(e,t),i}function sc(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 oc(e,t){var r=$t.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 Zi(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,ct.nextTick(lc,t,e))}function lc(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function ms(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var Ki=_((og,bs)=>{"use strict";bs.exports=ke;var Mr=$e(),vs=Object.create(lt());vs.inherits=ft();vs.inherits(ke,Mr);function fc(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);Mr.call(this,e),this._transformState={afterTransform:fc.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",uc)}function uc(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){gs(e,t,r)}):gs(this,null,null)}ke.prototype.push=function(e,t){return this._transformState.needTransform=!1,Mr.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;Mr.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function gs(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 ks=_((lg,xs)=>{"use strict";xs.exports=Zt;var ws=Ki(),ys=Object.create(lt());ys.inherits=ft();ys.inherits(Zt,ws);function Zt(e){if(!(this instanceof Zt))return new Zt(e);ws.call(this,e)}Zt.prototype._transform=function(e,t,r){r(null,e)}});var Yi=_((H,jr)=>{var ce=be("stream");process.env.READABLE_STREAM==="disable"&&ce?(jr.exports=ce,H=jr.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=jr.exports=qi(),H.Stream=ce||H,H.Readable=H,H.Writable=Bi(),H.Duplex=$e(),H.Transform=Ki(),H.PassThrough=ks())});var Se=_(Q=>{"use strict";Q.base64=!0;Q.array=!0;Q.string=!0;Q.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";Q.nodebuffer=typeof Buffer<"u";Q.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")Q.blob=!1;else{Xi=new ArrayBuffer(0);try{Q.blob=new Blob([Xi],{type:"application/zip"}).size===0}catch{try{Ss=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,Ji=new Ss,Ji.append(Xi),Q.blob=Ji.getBlob("application/zip").size===0}catch{Q.blob=!1}}}var Xi,Ss,Ji;try{Q.nodestream=!!Yi().Readable}catch{Q.nodestream=!1}});var en=_(Qi=>{"use strict";var hc=B(),cc=Se(),de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";Qi.encode=function(e){for(var t=[],r,i,n,a,s,o,u,f=0,l=e.length,h=l,c=hc.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("")};Qi.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(cc.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 Vt=_((hg,Es)=>{"use strict";Es.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 Ts=_((cg,As)=>{"use strict";var Cs=global.MutationObserver||global.WebKitMutationObserver,dt;process.browser?Cs?(tn=0,Os=new Cs(Gt),rn=global.document.createTextNode(""),Os.observe(rn,{characterData:!0}),dt=function(){rn.data=tn=++tn%2}):!global.setImmediate&&typeof global.MessageChannel<"u"?(nn=new global.MessageChannel,nn.port1.onmessage=Gt,dt=function(){nn.port2.postMessage(0)}):"document"in global&&"onreadystatechange"in global.document.createElement("script")?dt=function(){var e=global.document.createElement("script");e.onreadystatechange=function(){Gt(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},global.document.documentElement.appendChild(e)}:dt=function(){setTimeout(Gt,0)}:dt=function(){process.nextTick(Gt)};var tn,Os,rn,nn,an,Kt=[];function Gt(){an=!0;for(var e,t,r=Kt.length;r;){for(t=Kt,Kt=[],e=-1;++e<r;)t[e]();r=Kt.length}an=!1}As.exports=dc;function dc(e){Kt.push(e)===1&&!an&&dt()}});var Bs=_((dg,Ps)=>{"use strict";var Ds=Ts();function pt(){}var Z={},Is=["REJECTED"],sn=["FULFILLED"],Rs=["PENDING"];process.browser||(Yt=["UNHANDLED"]);var Yt;Ps.exports=Re;function Re(e){if(typeof e!="function")throw new TypeError("resolver must be a function");this.state=Rs,this.queue=[],this.outcome=void 0,process.browser||(this.handled=Yt),e!==pt&&Fs(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===sn||typeof t!="function"&&this.state===Is)return this;var r=new this.constructor(pt);if(process.browser||this.handled===Yt&&(this.handled=null),this.state!==Rs){var i=this.state===sn?e:t;on(r,i,this.outcome)}else this.queue.push(new Xt(r,e,t));return r};function Xt(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)}Xt.prototype.callFulfilled=function(e){Z.resolve(this.promise,e)};Xt.prototype.otherCallFulfilled=function(e){on(this.promise,this.onFulfilled,e)};Xt.prototype.callRejected=function(e){Z.reject(this.promise,e)};Xt.prototype.otherCallRejected=function(e){on(this.promise,this.onRejected,e)};function on(e,t,r){Ds(function(){var i;try{i=t(r)}catch(n){return Z.reject(e,n)}i===e?Z.reject(e,new TypeError("Cannot resolve promise with itself")):Z.resolve(e,i)})}Z.resolve=function(e,t){var r=Ns(pc,t);if(r.status==="error")return Z.reject(e,r.value);var i=r.value;if(i)Fs(e,i);else{e.state=sn,e.outcome=t;for(var n=-1,a=e.queue.length;++n<a;)e.queue[n].callFulfilled(t)}return e};Z.reject=function(e,t){e.state=Is,e.outcome=t,process.browser||e.handled===Yt&&Ds(function(){e.handled===Yt&&process.emit("unhandledRejection",t,e)});for(var r=-1,i=e.queue.length;++r<i;)e.queue[r].callRejected(t);return e};function pc(e){var t=e&&e.then;if(e&&(typeof e=="object"||typeof e=="function")&&typeof t=="function")return function(){t.apply(e,arguments)}}function Fs(e,t){var r=!1;function i(o){r||(r=!0,Z.reject(e,o))}function n(o){r||(r=!0,Z.resolve(e,o))}function a(){t(n,i)}var s=Ns(a);s.status==="error"&&i(s.value)}function Ns(e,t){var r={};try{r.value=e(t),r.status="success"}catch(i){r.status="error",r.value=i}return r}Re.resolve=mc;function mc(e){return e instanceof this?e:Z.resolve(new this(pt),e)}Re.reject=_c;function _c(e){var t=new this(pt);return Z.reject(t,e)}Re.all=gc;function gc(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(pt);++s<r;)u(e[s],s);return o;function u(f,l){t.resolve(f).then(h,function(c){i||(i=!0,Z.reject(o,c))});function h(c){n[l]=c,++a===r&&!i&&(i=!0,Z.resolve(o,n))}}}Re.race=vc;function vc(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(pt);++n<r;)s(e[n]);return a;function s(o){t.resolve(o).then(function(u){i||(i=!0,Z.resolve(a,u))},function(u){i||(i=!0,Z.reject(a,u))})}}});var mt=_((pg,zs)=>{"use strict";var ln=null;typeof Promise<"u"?ln=Promise:ln=Bs();zs.exports={Promise:ln}});var qs=_(Ls=>{(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 g=Object.getPrototypeOf&&Object.getPrototypeOf(e);g=g&&g.setTimeout?g:e,{}.toString.call(e.process)==="[object process]"?h():c()?d():e.MessageChannel?b():a&&"onreadystatechange"in a.createElement("script")?w():x(),g.setImmediate=o,g.clearImmediate=u})(typeof self>"u"?typeof global>"u"?Ls:global:self)});var B=_(j=>{"use strict";var Fe=Se(),bc=en(),_t=Vt(),fn=mt();qs();function wc(e){var t=null;return Fe.uint8array?t=new Uint8Array(e.length):t=new Array(e.length),Hr(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 Jt(e){return e}function Hr(e,t){for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)&255;return t}var Wr={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 Qt(e){var t=65536,r=j.getTypeOf(e),i=!0;if(r==="uint8array"?i=Wr.applyCanBeUsed.uint8array:r==="nodebuffer"&&(i=Wr.applyCanBeUsed.nodebuffer),i)for(;t>1;)try{return Wr.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return Wr.stringifyByChar(e)}j.applyFromCharCode=Qt;function Ur(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}var Ne={};Ne.string={string:Jt,array:function(e){return Hr(e,new Array(e.length))},arraybuffer:function(e){return Ne.string.uint8array(e).buffer},uint8array:function(e){return Hr(e,new Uint8Array(e.length))},nodebuffer:function(e){return Hr(e,_t.allocBuffer(e.length))}};Ne.array={string:Qt,array:Jt,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 Qt(new Uint8Array(e))},array:function(e){return Ur(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:Jt,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return _t.newBufferFrom(new Uint8Array(e))}};Ne.uint8array={string:Qt,array:function(e){return Ur(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:Jt,nodebuffer:function(e){return _t.newBufferFrom(e)}};Ne.nodebuffer={string:Qt,array:function(e){return Ur(e,new Array(e.length))},arraybuffer:function(e){return Ne.nodebuffer.uint8array(e).buffer},uint8array:function(e){return Ur(e,new Uint8Array(e.length))},nodebuffer:Jt};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=fn.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 fn.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=bc.decode(s):r&&i!==!0&&(s=wc(s))),s):fn.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}});var ee=_((gg,js)=>{"use strict";function Ms(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}Ms.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}};js.exports=Ms});var vt=_(Pe=>{"use strict";var gt=B(),Ze=Se(),yc=Vt(),$r=ee(),er=new Array(256);for(Ee=0;Ee<256;Ee++)er[Ee]=Ee>=252?6:Ee>=248?5:Ee>=240?4:Ee>=224?3:Ee>=192?2:1;var Ee;er[254]=er[254]=1;var xc=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(Ze.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},kc=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+er[e[r]]>t?r:t},Sc=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=er[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),gt.applyFromCharCode(s)};Pe.utf8encode=function(t){return Ze.nodebuffer?yc.newBufferFrom(t,"utf-8"):xc(t)};Pe.utf8decode=function(t){return Ze.nodebuffer?gt.transformTo("nodebuffer",t).toString("utf-8"):(t=gt.transformTo(Ze.uint8array?"uint8array":"array",t),Sc(t))};function Zr(){$r.call(this,"utf-8 decode"),this.leftOver=null}gt.inherits(Zr,$r);Zr.prototype.processChunk=function(e){var t=gt.transformTo(Ze.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(Ze.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=kc(t),n=t;i!==t.length&&(Ze.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})};Zr.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:Pe.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)};Pe.Utf8DecodeWorker=Zr;function un(){$r.call(this,"utf-8 encode")}gt.inherits(un,$r);un.prototype.processChunk=function(e){this.push({data:Pe.utf8encode(e.data),meta:e.meta})};Pe.Utf8EncodeWorker=un});var $s=_((bg,Us)=>{"use strict";var Ws=ee(),Hs=B();function hn(e){Ws.call(this,"ConvertWorker to "+e),this.destType=e}Hs.inherits(hn,Ws);hn.prototype.processChunk=function(e){this.push({data:Hs.transformTo(this.destType,e.data),meta:e.meta})};Us.exports=hn});var Gs=_((wg,Vs)=>{"use strict";var Zs=Yi().Readable,Ec=B();Ec.inherits(cn,Zs);function cn(e,t,r){Zs.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)})}cn.prototype._read=function(){this._helper.resume()};Vs.exports=cn});var dn=_((yg,Xs)=>{"use strict";var Ve=B(),Cc=$s(),Oc=ee(),Ac=en(),Tc=Se(),Dc=mt(),Ks=null;if(Tc.nodestream)try{Ks=Gs()}catch{}function Ic(e,t,r){switch(e){case"blob":return Ve.newBlob(Ve.transformTo("arraybuffer",t),r);case"base64":return Ac.encode(t);default:return Ve.transformTo(e,t)}}function Rc(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 Fc(e,t){return new Dc.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=Ic(s,Rc(a,n),o);r(u)}catch(f){i(f)}n=[]}).resume()})}function Ys(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,Ve.checkSupport(i),this._worker=e.pipe(new Cc(i)),e.lock()}catch(n){this._worker=new Oc("error"),this._worker.error(n)}}Ys.prototype={accumulate:function(e){return Fc(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(){Ve.delay(t,arguments,r)}),this},resume:function(){return Ve.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(Ve.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new Ks(this,{objectMode:this._outputType!=="nodebuffer"},e)}};Xs.exports=Ys});var pn=_(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 mn=_((kg,Js)=>{"use strict";var Vr=B(),Gr=ee(),Nc=16*1024;function bt(e){Gr.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=Vr.getTypeOf(r),t.isPaused||t._tickAndRepeat()},function(r){t.error(r)})}Vr.inherits(bt,Gr);bt.prototype.cleanUp=function(){Gr.prototype.cleanUp.call(this),this.data=null};bt.prototype.resume=function(){return Gr.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Vr.delay(this._tickAndRepeat,[],this)),!0):!1};bt.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(Vr.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))};bt.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=Nc,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}})};Js.exports=bt});var Kr=_((Sg,eo)=>{"use strict";var Pc=B();function Bc(){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 Qs=Bc();function zc(e,t,r,i){var n=Qs,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 Lc(e,t,r,i){var n=Qs,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}eo.exports=function(t,r){if(typeof t>"u"||!t.length)return 0;var i=Pc.getTypeOf(t)!=="string";return i?zc(r|0,t,t.length,0):Lc(r|0,t,t.length,0)}});var gn=_((Eg,ro)=>{"use strict";var to=ee(),qc=Kr(),Mc=B();function _n(){to.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}Mc.inherits(_n,to);_n.prototype.processChunk=function(e){this.streamInfo.crc32=qc(e.data,this.streamInfo.crc32||0),this.push(e)};ro.exports=_n});var no=_((Cg,io)=>{"use strict";var jc=B(),vn=ee();function bn(e){vn.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}jc.inherits(bn,vn);bn.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}vn.prototype.processChunk.call(this,e)};io.exports=bn});var Yr=_((Og,oo)=>{"use strict";var ao=mt(),so=mn(),Wc=gn(),wn=no();function yn(e,t,r,i,n){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=i,this.compressedContent=n}yn.prototype={getContentWorker:function(){var e=new so(ao.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new wn("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 so(ao.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};yn.createWorkerFrom=function(e,t,r){return e.pipe(new Wc).pipe(new wn("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new wn("compressedSize")).withStreamInfo("compression",t)};oo.exports=yn});var ho=_((Ag,uo)=>{"use strict";var Hc=dn(),Uc=mn(),xn=vt(),kn=Yr(),lo=ee(),Sn=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}};Sn.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 xn.Utf8EncodeWorker)),!n&&i&&(t=t.pipe(new xn.Utf8DecodeWorker))}catch(a){t=new lo("error"),t.error(a)}return new Hc(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 kn&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new xn.Utf8EncodeWorker)),kn.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof kn?this._data.getContentWorker():this._data instanceof lo?this._data:new Uc(this._data)}};var fo=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],$c=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(Xr=0;Xr<fo.length;Xr++)Sn.prototype[fo[Xr]]=$c;var Xr;uo.exports=Sn});var Ce=_(V=>{"use strict";var Zc=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function Vc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}V.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)Vc(r,i)&&(e[i]=r[i])}}return e};V.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var Gc={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}},Kc={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)}};V.setTyped=function(e){e?(V.Buf8=Uint8Array,V.Buf16=Uint16Array,V.Buf32=Int32Array,V.assign(V,Gc)):(V.Buf8=Array,V.Buf16=Array,V.Buf32=Array,V.assign(V,Kc))};V.setTyped(Zc)});var Po=_(xt=>{"use strict";var Yc=Ce(),Xc=4,co=0,po=1,Jc=2;function yt(e){for(var t=e.length;--t>=0;)e[t]=0}var Qc=0,wo=1,ed=2,td=3,rd=258,In=29,sr=256,rr=sr+1+In,wt=30,Rn=19,yo=2*rr+1,Ge=15,En=16,id=7,Fn=256,xo=16,ko=17,So=18,Tn=[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],Jr=[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],nd=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Eo=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ad=512,Oe=new Array((rr+2)*2);yt(Oe);var tr=new Array(wt*2);yt(tr);var ir=new Array(ad);yt(ir);var nr=new Array(rd-td+1);yt(nr);var Nn=new Array(In);yt(Nn);var Qr=new Array(wt);yt(Qr);function Cn(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 Co,Oo,Ao;function On(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function To(e){return e<256?ir[e]:ir[256+(e>>>7)]}function ar(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>En-r?(e.bi_buf|=t<<e.bi_valid&65535,ar(e,e.bi_buf),e.bi_buf=t>>En-e.bi_valid,e.bi_valid+=r-En):(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 Do(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function sd(e){e.bi_valid===16?(ar(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 od(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<=Ge;c++)e.bl_count[c]=0;for(r[e.heap[e.heap_max]*2+1]=0,f=e.heap_max+1;f<yo;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 Io(e,t,r){var i=new Array(Ge+1),n=0,a,s;for(a=1;a<=Ge;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]=Do(i[o]++,o))}}function ld(){var e,t,r,i,n,a=new Array(Ge+1);for(r=0,i=0;i<In-1;i++)for(Nn[i]=r,e=0;e<1<<Tn[i];e++)nr[r++]=i;for(nr[r-1]=i,n=0,i=0;i<16;i++)for(Qr[i]=n,e=0;e<1<<Jr[i];e++)ir[n++]=i;for(n>>=7;i<wt;i++)for(Qr[i]=n<<7,e=0;e<1<<Jr[i]-7;e++)ir[256+n++]=i;for(t=0;t<=Ge;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(Io(Oe,rr+1,a),e=0;e<wt;e++)tr[e*2+1]=5,tr[e*2]=Do(e,5);Co=new Cn(Oe,Tn,sr+1,rr,Ge),Oo=new Cn(tr,Jr,0,wt,Ge),Ao=new Cn(new Array(0),nd,0,Rn,id)}function Ro(e){var t;for(t=0;t<rr;t++)e.dyn_ltree[t*2]=0;for(t=0;t<wt;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Rn;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Fn*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Fo(e){e.bi_valid>8?ar(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 fd(e,t,r,i){Fo(e),i&&(ar(e,r),ar(e,~r)),Yc.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function mo(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 An(e,t,r){for(var i=e.heap[r],n=r<<1;n<=e.heap_len&&(n<e.heap_len&&mo(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!mo(t,i,e.heap[n],e.depth));)e.heap[r]=e.heap[n],r=n,n<<=1;e.heap[r]=i}function _o(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=nr[n],pe(e,s+sr+1,t),o=Tn[s],o!==0&&(n-=Nn[s],X(e,n,o)),i--,s=To(i),pe(e,s,r),o=Jr[s],o!==0&&(i-=Qr[s],X(e,i,o)));while(a<e.last_lit);pe(e,Fn,t)}function Dn(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=yo,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--)An(e,r,s);f=a;do s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],An(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++,An(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],od(e,t),Io(r,u,e.bl_count)}function go(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[xo*2]++):o<=10?e.bl_tree[ko*2]++:e.bl_tree[So*2]++,o=0,n=a,s===0?(u=138,f=3):a===s?(u=6,f=3):(u=7,f=4))}function vo(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,xo,e.bl_tree),X(e,o-3,2)):o<=10?(pe(e,ko,e.bl_tree),X(e,o-3,3)):(pe(e,So,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 ud(e){var t;for(go(e,e.dyn_ltree,e.l_desc.max_code),go(e,e.dyn_dtree,e.d_desc.max_code),Dn(e,e.bl_desc),t=Rn-1;t>=3&&e.bl_tree[Eo[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function hd(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[Eo[n]*2+1],3);vo(e,e.dyn_ltree,t-1),vo(e,e.dyn_dtree,r-1)}function cd(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return co;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return po;for(r=32;r<sr;r++)if(e.dyn_ltree[r*2]!==0)return po;return co}var bo=!1;function dd(e){bo||(ld(),bo=!0),e.l_desc=new On(e.dyn_ltree,Co),e.d_desc=new On(e.dyn_dtree,Oo),e.bl_desc=new On(e.bl_tree,Ao),e.bi_buf=0,e.bi_valid=0,Ro(e)}function No(e,t,r,i){X(e,(Qc<<1)+(i?1:0),3),fd(e,t,r,!0)}function pd(e){X(e,wo<<1,3),pe(e,Fn,Oe),sd(e)}function md(e,t,r,i){var n,a,s=0;e.level>0?(e.strm.data_type===Jc&&(e.strm.data_type=cd(e)),Dn(e,e.l_desc),Dn(e,e.d_desc),s=ud(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?No(e,t,r,i):e.strategy===Xc||a===n?(X(e,(wo<<1)+(i?1:0),3),_o(e,Oe,tr)):(X(e,(ed<<1)+(i?1:0),3),hd(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),_o(e,e.dyn_ltree,e.dyn_dtree)),Ro(e),i&&Fo(e)}function _d(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[(nr[r]+sr+1)*2]++,e.dyn_dtree[To(t)*2]++),e.last_lit===e.lit_bufsize-1}xt._tr_init=dd;xt._tr_stored_block=No;xt._tr_flush_block=md;xt._tr_tally=_d;xt._tr_align=pd});var Pn=_((Ig,Bo)=>{"use strict";function gd(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}Bo.exports=gd});var Bn=_((Rg,zo)=>{"use strict";function vd(){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 bd=vd();function wd(e,t,r,i){var n=bd,a=i+r;e^=-1;for(var s=i;s<a;s++)e=e>>>8^n[(e^t[s])&255];return e^-1}zo.exports=wd});var ei=_((Fg,Lo)=>{"use strict";Lo.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 Vo=_(ge=>{"use strict";var G=Ce(),re=Po(),Wo=Pn(),Be=Bn(),yd=ei(),Je=0,xd=1,kd=3,je=4,qo=5,_e=0,Mo=1,ie=-2,Sd=-3,zn=-5,Ed=-1,Cd=1,ti=2,Od=3,Ad=4,Td=0,Dd=2,ai=8,Id=9,Rd=15,Fd=8,Nd=29,Pd=256,qn=Pd+1+Nd,Bd=30,zd=19,Ld=2*qn+1,qd=15,A=3,qe=258,le=qe+A+1,Md=32,si=42,Mn=69,ri=73,ii=91,ni=103,Ke=113,lr=666,W=1,fr=2,Ye=3,Et=4,jd=3;function Me(e,t){return e.msg=yd[t],t}function jo(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&&(G.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){re._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 or(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function Wd(e,t,r,i){var n=e.avail_in;return n>i&&(n=i),n===0?0:(e.avail_in-=n,G.arraySet(t,e.input,e.next_in,n,r),e.state.wrap===1?e.adler=Wo(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 Ho(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 Xe(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)){G.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=Wd(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 Hd(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Xe(e),e.lookahead===0&&t===Je)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?Ye:Et):(e.strstart>e.block_start&&(U(e,!1),e.strm.avail_out===0),W)}function Ln(e,t){for(var r,i;;){if(e.lookahead<le){if(Xe(e),e.lookahead<le&&t===Je)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=Ho(e,r)),e.match_length>=A)if(i=re._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=re._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?Ye:Et):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:fr}function kt(e,t){for(var r,i,n;;){if(e.lookahead<le){if(Xe(e),e.lookahead<le&&t===Je)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=Ho(e,r),e.match_length<=5&&(e.strategy===Cd||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=re._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=re._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=re._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?Ye:Et):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:fr}function Ud(e,t){for(var r,i,n,a,s=e.window;;){if(e.lookahead<=qe){if(Xe(e),e.lookahead<=qe&&t===Je)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=re._tr_tally(e,1,e.match_length-A),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=re._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?Ye:Et):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:fr}function $d(e,t){for(var r;;){if(e.lookahead===0&&(Xe(e),e.lookahead===0)){if(t===Je)return W;break}if(e.match_length=0,r=re._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?Ye:Et):e.last_lit&&(U(e,!1),e.strm.avail_out===0)?W:fr}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 St;St=[new me(0,0,0,0,Hd),new me(4,4,8,4,Ln),new me(4,5,16,8,Ln),new me(4,6,32,32,Ln),new me(4,4,16,16,kt),new me(8,16,32,32,kt),new me(8,16,128,128,kt),new me(8,32,128,256,kt),new me(32,128,258,1024,kt),new me(32,258,258,4096,kt)];function Zd(e){e.window_size=2*e.w_size,Le(e.head),e.max_lazy_match=St[e.level].max_lazy,e.good_match=St[e.level].good_length,e.nice_match=St[e.level].nice_length,e.max_chain_length=St[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 Vd(){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=ai,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 G.Buf16(Ld*2),this.dyn_dtree=new G.Buf16((2*Bd+1)*2),this.bl_tree=new G.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 G.Buf16(qd+1),this.heap=new G.Buf16(2*qn+1),Le(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new G.Buf16(2*qn+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 Uo(e){var t;return!e||!e.state?Me(e,ie):(e.total_in=e.total_out=0,e.data_type=Dd,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?si:Ke,e.adler=t.wrap===2?0:1,t.last_flush=Je,re._tr_init(t),_e)}function $o(e){var t=Uo(e);return t===_e&&Zd(e.state),t}function Gd(e,t){return!e||!e.state||e.state.wrap!==2?ie:(e.state.gzhead=t,_e)}function Zo(e,t,r,i,n,a){if(!e)return ie;var s=1;if(t===Ed&&(t=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),n<1||n>Id||r!==ai||i<8||i>15||t<0||t>9||a<0||a>Ad)return Me(e,ie);i===8&&(i=9);var o=new Vd;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 G.Buf8(o.w_size*2),o.head=new G.Buf16(o.hash_size),o.prev=new G.Buf16(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new G.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,$o(e)}function Kd(e,t){return Zo(e,t,ai,Rd,Fd,Td)}function Yd(e,t){var r,i,n,a;if(!e||!e.state||t>qo||t<0)return e?Me(e,ie):ie;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===lr&&t!==je)return Me(e,e.avail_out===0?zn:ie);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===si)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>=ti||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=Mn):(T(i,0),T(i,0),T(i,0),T(i,0),T(i,0),T(i,i.level===9?2:i.strategy>=ti||i.level<2?4:0),T(i,jd),i.status=Ke);else{var s=ai+(i.w_bits-8<<4)<<8,o=-1;i.strategy>=ti||i.level<2?o=0:i.level<6?o=1:i.level===6?o=2:o=3,s|=o<<6,i.strstart!==0&&(s|=Md),s+=31-s%31,i.status=Ke,or(i,s),i.strstart!==0&&(or(i,e.adler>>>16),or(i,e.adler&65535)),e.adler=1}if(i.status===Mn)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=ri)}else i.status=ri;if(i.status===ri)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=ii)}else i.status=ii;if(i.status===ii)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=ni)}else i.status=ni;if(i.status===ni&&(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=Ke)):i.status=Ke),i.pending!==0){if(ze(e),e.avail_out===0)return i.last_flush=-1,_e}else if(e.avail_in===0&&jo(t)<=jo(r)&&t!==je)return Me(e,zn);if(i.status===lr&&e.avail_in!==0)return Me(e,zn);if(e.avail_in!==0||i.lookahead!==0||t!==Je&&i.status!==lr){var u=i.strategy===ti?$d(i,t):i.strategy===Od?Ud(i,t):St[i.level].func(i,t);if((u===Ye||u===Et)&&(i.status=lr),u===W||u===Ye)return e.avail_out===0&&(i.last_flush=-1),_e;if(u===fr&&(t===xd?re._tr_align(i):t!==qo&&(re._tr_stored_block(i,0,0,!1),t===kd&&(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,_e}return t!==je?_e:i.wrap<=0?Mo:(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)):(or(i,e.adler>>>16),or(i,e.adler&65535)),ze(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?_e:Mo)}function Xd(e){var t;return!e||!e.state?ie:(t=e.state.status,t!==si&&t!==Mn&&t!==ri&&t!==ii&&t!==ni&&t!==Ke&&t!==lr?Me(e,ie):(e.state=null,t===Ke?Me(e,Sd):_e))}function Jd(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!==si||i.lookahead))return ie;for(s===1&&(e.adler=Wo(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 G.Buf8(i.w_size),G.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,Xe(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,Xe(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,_e}ge.deflateInit=Kd;ge.deflateInit2=Zo;ge.deflateReset=$o;ge.deflateResetKeep=Uo;ge.deflateSetHeader=Gd;ge.deflate=Yd;ge.deflateEnd=Xd;ge.deflateSetDictionary=Jd;ge.deflateInfo="pako deflate (from Nodeca project)"});var jn=_(Ct=>{"use strict";var oi=Ce(),Go=!0,Ko=!0;try{String.fromCharCode.apply(null,[0])}catch{Go=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Ko=!1}var ur=new oi.Buf8(256);for(Ae=0;Ae<256;Ae++)ur[Ae]=Ae>=252?6:Ae>=248?5:Ae>=240?4:Ae>=224?3:Ae>=192?2:1;var Ae;ur[254]=ur[254]=1;Ct.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 oi.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 Yo(e,t){if(t<65534&&(e.subarray&&Ko||!e.subarray&&Go))return String.fromCharCode.apply(null,oi.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}Ct.buf2binstring=function(e){return Yo(e,e.length)};Ct.binstring2buf=function(e){for(var t=new oi.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};Ct.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=ur[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 Yo(o,i)};Ct.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+ur[e[r]]>t?r:t}});var Wn=_((Bg,Xo)=>{"use strict";function Qd(){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}Xo.exports=Qd});var tl=_(dr=>{"use strict";var hr=Vo(),cr=Ce(),Un=jn(),$n=ei(),ep=Wn(),el=Object.prototype.toString,tp=0,Hn=4,Ot=0,Jo=1,Qo=2,rp=-1,ip=0,np=8;function Qe(e){if(!(this instanceof Qe))return new Qe(e);this.options=cr.assign({level:rp,method:np,chunkSize:16384,windowBits:15,memLevel:8,strategy:ip,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 ep,this.strm.avail_out=0;var r=hr.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==Ot)throw new Error($n[r]);if(t.header&&hr.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=Un.string2buf(t.dictionary):el.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=hr.deflateSetDictionary(this.strm,i),r!==Ot)throw new Error($n[r]);this._dict_set=!0}}Qe.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?Hn:tp,typeof e=="string"?r.input=Un.string2buf(e):el.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 cr.Buf8(i),r.next_out=0,r.avail_out=i),n=hr.deflate(r,a),n!==Jo&&n!==Ot)return this.onEnd(n),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(a===Hn||a===Qo))&&(this.options.to==="string"?this.onData(Un.buf2binstring(cr.shrinkBuf(r.output,r.next_out))):this.onData(cr.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&n!==Jo);return a===Hn?(n=hr.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Ot):(a===Qo&&(this.onEnd(Ot),r.avail_out=0),!0)};Qe.prototype.onData=function(e){this.chunks.push(e)};Qe.prototype.onEnd=function(e){e===Ot&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=cr.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Zn(e,t){var r=new Qe(t);if(r.push(e,!0),r.err)throw r.msg||$n[r.err];return r.result}function ap(e,t){return t=t||{},t.raw=!0,Zn(e,t)}function sp(e,t){return t=t||{},t.gzip=!0,Zn(e,t)}dr.Deflate=Qe;dr.deflate=Zn;dr.deflateRaw=ap;dr.gzip=sp});var il=_((Lg,rl)=>{"use strict";var li=30,op=12;rl.exports=function(t,r){var i,n,a,s,o,u,f,l,h,c,d,b,w,x,g,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,g=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=g[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=li;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=li;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=g[(m&65535)+(b&(1<<v)-1)];continue r}else{t.msg="invalid distance code",i.mode=li;break e}break}}else if((v&64)===0){m=x[(m&65535)+(b&(1<<v)-1)];continue t}else if(v&32){i.mode=op;break e}else{t.msg="invalid literal/length code",i.mode=li;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 ul=_((qg,fl)=>{"use strict";var nl=Ce(),At=15,al=852,sl=592,ol=0,Vn=1,ll=2,lp=[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],fp=[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],up=[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],hp=[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];fl.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,g=0,p=0,y=0,m,v,C,E,S,O=null,F=0,k,J=new nl.Buf16(At+1),nt=new nl.Buf16(At+1),yr=null,Sa=0,Ea,xr,kr;for(l=0;l<=At;l++)J[l]=0;for(h=0;h<n;h++)J[r[i+h]]++;for(b=f,d=At;d>=1&&J[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&&J[c]===0;c++);for(b<c&&(b=c),g=1,l=1;l<=At;l++)if(g<<=1,g-=J[l],g<0)return-1;if(g>0&&(t===ol||d!==1))return-1;for(nt[1]=0,l=1;l<At;l++)nt[l+1]=nt[l]+J[l];for(h=0;h<n;h++)r[i+h]!==0&&(o[nt[r[i+h]]++]=h);if(t===ol?(O=yr=o,k=19):t===Vn?(O=lp,F-=257,yr=fp,Sa-=257,k=256):(O=up,yr=hp,k=-1),y=0,h=0,l=c,S=s,w=b,x=0,C=-1,p=1<<b,E=p-1,t===Vn&&p>al||t===ll&&p>sl)return 1;for(;;){Ea=l-x,o[h]<k?(xr=0,kr=o[h]):o[h]>k?(xr=yr[Sa+o[h]],kr=O[F+o[h]]):(xr=96,kr=0),m=1<<l-x,v=1<<w,c=v;do v-=m,a[S+(y>>x)+v]=Ea<<24|xr<<16|kr|0;while(v!==0);for(m=1<<l-1;y&m;)m>>=1;if(m!==0?(y&=m-1,y+=m):y=0,h++,--J[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,g=1<<w;w+x<d&&(g-=J[w+x],!(g<=0));)w++,g<<=1;if(p+=1<<w,t===Vn&&p>al||t===ll&&p>sl)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 $l=_(fe=>{"use strict";var te=Ce(),Qn=Pn(),ve=Bn(),cp=il(),pr=ul(),dp=0,Bl=1,zl=2,hl=4,pp=5,fi=6,et=0,mp=1,_p=2,ne=-2,Ll=-3,ea=-4,gp=-5,cl=8,ql=1,dl=2,pl=3,ml=4,_l=5,gl=6,vl=7,bl=8,wl=9,yl=10,ci=11,Te=12,Gn=13,xl=14,Kn=15,kl=16,Sl=17,El=18,Cl=19,ui=20,hi=21,Ol=22,Al=23,Tl=24,Dl=25,Il=26,Yn=27,Rl=28,Fl=29,P=30,ta=31,vp=32,bp=852,wp=592,yp=15,xp=yp;function Nl(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function kp(){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 te.Buf16(320),this.work=new te.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ml(e){var t;return!e||!e.state?ne:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=ql,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new te.Buf32(bp),t.distcode=t.distdyn=new te.Buf32(wp),t.sane=1,t.back=-1,et)}function jl(e){var t;return!e||!e.state?ne:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Ml(e))}function Wl(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))?ne:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,jl(e))}function Hl(e,t){var r,i;return e?(i=new kp,e.state=i,i.window=null,r=Wl(e,t),r!==et&&(e.state=null),r):ne}function Sp(e){return Hl(e,xp)}var Pl=!0,Xn,Jn;function Ep(e){if(Pl){var t;for(Xn=new te.Buf32(512),Jn=new te.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(pr(Bl,e.lens,0,288,Xn,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;pr(zl,e.lens,0,32,Jn,0,e.work,{bits:5}),Pl=!1}e.lencode=Xn,e.lenbits=9,e.distcode=Jn,e.distbits=5}function Ul(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 te.Buf8(a.wsize)),i>=a.wsize?(te.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),te.arraySet(a.window,t,r-i,n,a.wnext),i-=n,i?(te.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 Cp(e,t){var r,i,n,a,s,o,u,f,l,h,c,d,b,w,x=0,g,p,y,m,v,C,E,S,O=new te.Buf8(4),F,k,J=[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 ne;r=e.state,r.mode===Te&&(r.mode=Gn),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=et;e:for(;;)switch(r.mode){case ql:if(r.wrap===0){r.mode=Gn;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=dl;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)!==cl){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?yl:Te,f=0,l=0;break;case dl:for(;l<16;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(r.flags=f,(r.flags&255)!==cl){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=pl;case pl: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=ml;case ml: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=_l;case _l: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=gl;case gl: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)),te.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=vl;case vl: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=bl;case bl: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=wl;case wl: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 yl:for(;l<32;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}e.adler=r.check=Nl(f),f=0,l=0,r.mode=ci;case ci: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,_p;e.adler=r.check=1,r.mode=Te;case Te:if(t===pp||t===fi)break e;case Gn:if(r.last){f>>>=l&7,l-=l&7,r.mode=Yn;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=xl;break;case 1:if(Ep(r),r.mode=ui,t===fi){f>>>=2,l-=2;break e}break;case 2:r.mode=Sl;break;case 3:e.msg="invalid block type",r.mode=P}f>>>=2,l-=2;break;case xl: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=Kn,t===fi)break e;case Kn:r.mode=kl;case kl:if(d=r.length,d){if(d>o&&(d=o),d>u&&(d=u),d===0)break e;te.arraySet(n,i,a,d,s),o-=d,a+=d,u-=d,s+=d,r.length-=d;break}r.mode=Te;break;case Sl: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=El;case El:for(;r.have<r.ncode;){for(;l<3;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}r.lens[J[r.have++]]=f&7,f>>>=3,l-=3}for(;r.have<19;)r.lens[J[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,F={bits:r.lenbits},S=pr(dp,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=Cl;case Cl:for(;r.have<r.nlen+r.ndist;){for(;x=r.lencode[f&(1<<r.lenbits)-1],g=x>>>24,p=x>>>16&255,y=x&65535,!(g<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(y<16)f>>>=g,l-=g,r.lens[r.have++]=y;else{if(y===16){for(k=g+2;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(f>>>=g,l-=g,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=g+3;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=g,l-=g,E=0,d=3+(f&7),f>>>=3,l-=3}else{for(k=g+7;l<k;){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=g,l-=g,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=pr(Bl,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=pr(zl,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=ui,t===fi)break e;case ui:r.mode=hi;case hi: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,cp(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],g=x>>>24,p=x>>>16&255,y=x&65535,!(g<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if(p&&(p&240)===0){for(m=g,v=p,C=y;x=r.lencode[C+((f&(1<<m+v)-1)>>m)],g=x>>>24,p=x>>>16&255,y=x&65535,!(m+g<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=m,l-=m,r.back+=m}if(f>>>=g,l-=g,r.back+=g,r.length=y,p===0){r.mode=Il;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=Ol;case Ol: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=Al;case Al:for(;x=r.distcode[f&(1<<r.distbits)-1],g=x>>>24,p=x>>>16&255,y=x&65535,!(g<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}if((p&240)===0){for(m=g,v=p,C=y;x=r.distcode[C+((f&(1<<m+v)-1)>>m)],g=x>>>24,p=x>>>16&255,y=x&65535,!(m+g<=l);){if(o===0)break e;o--,f+=i[a++]<<l,l+=8}f>>>=m,l-=m,r.back+=m}if(f>>>=g,l-=g,r.back+=g,p&64){e.msg="invalid distance code",r.mode=P;break}r.offset=y,r.extra=p&15,r.mode=Tl;case Tl: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=Dl;case Dl: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=hi);break;case Il:if(u===0)break e;n[s++]=r.length,u--,r.mode=hi;break;case Yn: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):Qn(r.check,n,c,s-c)),c=u,(r.flags?f:Nl(f))!==r.check){e.msg="incorrect data check",r.mode=P;break}f=0,l=0}r.mode=Rl;case Rl: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=Fl;case Fl:S=mp;break e;case P:S=Ll;break e;case ta:return ea;case vp:default:return ne}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<Yn||t!==hl))&&Ul(e,e.output,e.next_out,c-e.avail_out)?(r.mode=ta,ea):(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):Qn(r.check,n,c,e.next_out-c)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Te?128:0)+(r.mode===ui||r.mode===Kn?256:0),(h===0&&c===0||t===hl)&&S===et&&(S=gp),S)}function Op(e){if(!e||!e.state)return ne;var t=e.state;return t.window&&(t.window=null),e.state=null,et}function Ap(e,t){var r;return!e||!e.state||(r=e.state,(r.wrap&2)===0)?ne:(r.head=t,t.done=!1,et)}function Tp(e,t){var r=t.length,i,n,a;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==ci)?ne:i.mode===ci&&(n=1,n=Qn(n,t,r,0),n!==i.check)?Ll:(a=Ul(e,t,r,r),a?(i.mode=ta,ea):(i.havedict=1,et))}fe.inflateReset=jl;fe.inflateReset2=Wl;fe.inflateResetKeep=Ml;fe.inflateInit=Sp;fe.inflateInit2=Hl;fe.inflate=Cp;fe.inflateEnd=Op;fe.inflateGetHeader=Ap;fe.inflateSetDictionary=Tp;fe.inflateInfo="pako inflate (from Nodeca project)"});var ra=_((jg,Zl)=>{"use strict";Zl.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 Gl=_((Wg,Vl)=>{"use strict";function Dp(){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}Vl.exports=Dp});var Yl=_(_r=>{"use strict";var Tt=$l(),mr=Ce(),di=jn(),q=ra(),ia=ei(),Ip=Wn(),Rp=Gl(),Kl=Object.prototype.toString;function tt(e){if(!(this instanceof tt))return new tt(e);this.options=mr.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 Ip,this.strm.avail_out=0;var r=Tt.inflateInit2(this.strm,t.windowBits);if(r!==q.Z_OK)throw new Error(ia[r]);if(this.header=new Rp,Tt.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=di.string2buf(t.dictionary):Kl.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Tt.inflateSetDictionary(this.strm,t.dictionary),r!==q.Z_OK)))throw new Error(ia[r])}tt.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=di.binstring2buf(e):Kl.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 mr.Buf8(i),r.next_out=0,r.avail_out=i),a=Tt.inflate(r,q.Z_NO_FLUSH),a===q.Z_NEED_DICT&&n&&(a=Tt.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=di.utf8border(r.output,r.next_out),u=r.next_out-o,f=di.buf2string(r.output,o),r.next_out=u,r.avail_out=i-u,u&&mr.arraySet(r.output,r.output,o,u,0),this.onData(f)):this.onData(mr.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=Tt.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)};tt.prototype.onData=function(e){this.chunks.push(e)};tt.prototype.onEnd=function(e){e===q.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=mr.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function na(e,t){var r=new tt(t);if(r.push(e,!0),r.err)throw r.msg||ia[r.err];return r.result}function Fp(e,t){return t=t||{},t.raw=!0,na(e,t)}_r.Inflate=tt;_r.inflate=na;_r.inflateRaw=Fp;_r.ungzip=na});var Ql=_((Ug,Jl)=>{"use strict";var Np=Ce().assign,Pp=tl(),Bp=Yl(),zp=ra(),Xl={};Np(Xl,Pp,Bp,zp);Jl.exports=Xl});var tf=_(mi=>{"use strict";var Lp=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",qp=Ql(),ef=B(),pi=ee(),Mp=Lp?"uint8array":"array";mi.magic="\b\0";function rt(e,t){pi.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}ef.inherits(rt,pi);rt.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(ef.transformTo(Mp,e.data),!1)};rt.prototype.flush=function(){pi.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)};rt.prototype.cleanUp=function(){pi.prototype.cleanUp.call(this),this._pako=null};rt.prototype._createPako=function(){this._pako=new qp[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};mi.compressWorker=function(e){return new rt("Deflate",e)};mi.uncompressWorker=function(){return new rt("Inflate",{})}});var sa=_(aa=>{"use strict";var rf=ee();aa.STORE={magic:"\0\0",compressWorker:function(){return new rf("STORE compression")},uncompressWorker:function(){return new rf("STORE decompression")}};aa.DEFLATE=tf()});var oa=_(it=>{"use strict";it.LOCAL_FILE_HEADER="PK";it.CENTRAL_FILE_HEADER="PK";it.CENTRAL_DIRECTORY_END="PK";it.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07";it.ZIP64_CENTRAL_DIRECTORY_END="PK";it.DATA_DESCRIPTOR="PK\x07\b"});var of=_((Gg,sf)=>{"use strict";var Dt=B(),It=ee(),la=vt(),nf=Kr(),_i=oa(),R=function(e,t){var r="",i;for(i=0;i<t;i++)r+=String.fromCharCode(e&255),e=e>>>8;return r},jp=function(e,t){var r=e;return e||(r=t?16893:33204),(r&65535)<<16},Wp=function(e){return(e||0)&63},af=function(e,t,r,i,n,a){var s=e.file,o=e.compression,u=a!==la.utf8encode,f=Dt.transformTo("string",a(s.name)),l=Dt.transformTo("string",la.utf8encode(s.name)),h=s.comment,c=Dt.transformTo("string",a(h)),d=Dt.transformTo("string",la.utf8encode(h)),b=l.length!==s.name.length,w=d.length!==h.length,x,g,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|=jp(s.unixPermissions,v)):(F=20,O|=Wp(s.dosPermissions,v)),x=C.getUTCHours(),x=x<<6,x=x|C.getUTCMinutes(),x=x<<5,x=x|C.getUTCSeconds()/2,g=C.getUTCFullYear()-1980,g=g<<4,g=g|C.getUTCMonth()+1,g=g<<5,g=g|C.getUTCDate(),b&&(y=R(1,1)+R(nf(f),4)+l,p+="up"+R(y.length,2)+y),w&&(m=R(1,1)+R(nf(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(g,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 J=_i.LOCAL_FILE_HEADER+k+f+p,nt=_i.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:J,dirRecord:nt}},Hp=function(e,t,r,i,n){var a="",s=Dt.transformTo("string",n(i));return a=_i.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},Up=function(e){var t="";return t=_i.DATA_DESCRIPTOR+R(e.crc32,4)+R(e.compressedSize,4)+R(e.uncompressedSize,4),t};function ue(e,t,r,i){It.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=[]}Dt.inherits(ue,It);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,It.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=af(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=af(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:Up(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=Hp(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(!It.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(!It.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(){It.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()};sf.exports=ue});var ff=_(lf=>{"use strict";var $p=sa(),Zp=of(),Vp=function(e,t){var r=e||t,i=$p[r];if(!i)throw new Error(r+" is not a valid compression method !");return i};lf.generateWorker=function(e,t,r){var i=new Zp(t.streamFiles,r,t.platform,t.encodeFileName),n=0;try{e.forEach(function(a,s){n++;var o=Vp(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 hf=_((Yg,uf)=>{"use strict";var Gp=B(),gi=ee();function gr(e,t){gi.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}Gp.inherits(gr,gi);gr.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()})};gr.prototype.pause=function(){return gi.prototype.pause.call(this)?(this._stream.pause(),!0):!1};gr.prototype.resume=function(){return gi.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),!0):!1};uf.exports=gr});var yf=_((Xg,wf)=>{"use strict";var Kp=vt(),vr=B(),mf=ee(),Yp=dn(),_f=pn(),cf=Yr(),Xp=ho(),Jp=ff(),df=Vt(),Qp=hf(),gf=function(e,t,r){var i=vr.getTypeOf(t),n,a=vr.extend(r||{},_f);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=vf(e)),a.createFolders&&(n=em(e))&&bf.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 cf&&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 cf||t instanceof mf?u=t:df.isNode&&df.isStream(t)?u=new Qp(e,t):u=vr.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64);var f=new Xp(e,u,a);this.files[e]=f},em=function(e){e.slice(-1)==="/"&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},vf=function(e){return e.slice(-1)!=="/"&&(e+="/"),e},bf=function(e,t){return t=typeof t<"u"?t:_f.createFolders,e=vf(e),this.files[e]||gf.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function pf(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var tm={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(pf(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,gf.call(this,e,t,r);return this},folder:function(e){if(!e)return this;if(pf(e))return this.filter(function(n,a){return a.dir&&e.test(n)});var t=this.root+e,r=bf.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=vr.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Kp.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.");vr.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=Jp.generateWorker(this,r,i)}catch(n){t=new mf("error"),t.error(n)}return new Yp(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)}};wf.exports=tm});var fa=_((Jg,kf)=>{"use strict";var rm=B();function xf(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}xf.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 rm.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))}};kf.exports=xf});var ua=_((Qg,Ef)=>{"use strict";var Sf=fa(),im=B();function Rt(e){Sf.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255}im.inherits(Rt,Sf);Rt.prototype.byteAt=function(e){return this.data[this.zero+e]};Rt.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};Rt.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]};Rt.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};Ef.exports=Rt});var Af=_((e0,Of)=>{"use strict";var Cf=fa(),nm=B();function Ft(e){Cf.call(this,e)}nm.inherits(Ft,Cf);Ft.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};Ft.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};Ft.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};Ft.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};Of.exports=Ft});var ca=_((t0,Df)=>{"use strict";var Tf=ua(),am=B();function ha(e){Tf.call(this,e)}am.inherits(ha,Tf);ha.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};Df.exports=ha});var Ff=_((r0,Rf)=>{"use strict";var If=ca(),sm=B();function da(e){If.call(this,e)}sm.inherits(da,If);da.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};Rf.exports=da});var pa=_((i0,Pf)=>{"use strict";var vi=B(),Nf=Se(),om=ua(),lm=Af(),fm=Ff(),um=ca();Pf.exports=function(e){var t=vi.getTypeOf(e);return vi.checkSupport(t),t==="string"&&!Nf.uint8array?new lm(e):t==="nodebuffer"?new fm(e):Nf.uint8array?new um(vi.transformTo("uint8array",e)):new om(vi.transformTo("array",e))}});var qf=_((n0,Lf)=>{"use strict";var ma=pa(),We=B(),hm=Yr(),Bf=Kr(),bi=vt(),wi=sa(),cm=Se(),dm=0,pm=3,mm=function(e){for(var t in wi)if(Object.prototype.hasOwnProperty.call(wi,t)&&wi[t].magic===e)return wi[t];return null};function zf(e,t){this.options=e,this.loadOptions=t}zf.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=mm(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 hm(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===dm&&(this.dosPermissions=this.externalFileAttributes&63),e===pm&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=ma(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=cm.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=bi.utf8decode(this.fileName),this.fileCommentStr=bi.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=ma(e.value);return t.readInt(1)!==1||Bf(this.fileName)!==t.readInt(4)?null:bi.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=ma(e.value);return t.readInt(1)!==1||Bf(this.fileComment)!==t.readInt(4)?null:bi.utf8decode(t.readData(e.length-5))}return null}};Lf.exports=zf});var Wf=_((a0,jf)=>{"use strict";var _m=pa(),De=B(),he=oa(),gm=qf(),vm=Se();function Mf(e){this.files=[],this.loadOptions=e}Mf.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=vm.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 gm({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=_m(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};jf.exports=Mf});var $f=_((s0,Uf)=>{"use strict";var _a=B(),yi=mt(),bm=vt(),wm=Wf(),ym=gn(),Hf=Vt();function xm(e){return new yi.Promise(function(t,r){var i=e.decompressed.getContentWorker().pipe(new ym);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()})}Uf.exports=function(e,t){var r=this;return t=_a.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:bm.utf8decode}),Hf.isNode&&Hf.isStream(e)?yi.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):_a.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(i){var n=new wm(t);return n.load(i),n}).then(function(n){var a=[yi.Promise.resolve(n)],s=n.files;if(t.checkCRC32)for(var o=0;o<s.length;o++)a.push(xm(s[o]));return yi.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=_a.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 ga=_((o0,Zf)=>{"use strict";function ae(){if(!(this instanceof ae))return new ae;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 ae;for(var t in this)typeof this[t]!="function"&&(e[t]=this[t]);return e}}ae.prototype=yf();ae.prototype.loadAsync=$f();ae.support=Se();ae.defaults=pn();ae.version="3.10.1";ae.loadAsync=function(e,t){return new ae().loadAsync(e,t)};ae.external=mt();Zf.exports=ae});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 Nt=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 Sr(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}import{EventEmitter as yu}from"node:events";import Ci from"node:child_process";import we from"node:path";import Cr from"node:fs";import D from"node:process";import{stripVTControlCharacters as xu}from"node:util";import{stripVTControlCharacters as vu}from"node:util";var Pt=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=>Sr(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 vu(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 at=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 at=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=bu(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?Aa(this.name().replace(/^no-/,"")):Aa(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}},Er=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 Aa(e){return e.split("-").reduce((t,r)=>t+r[0].toUpperCase()+r.slice(1))}function bu(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 wu(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 Ei(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=wu(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 Or=class e extends
|
|
15
|
+
(Did you mean ${i[0]}?)`:""}var Or=class e extends yu{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:()=>Da()??(D.stdout.isTTY&&D.stdout.hasColors?.()),getErrHasColors:()=>Da()??(D.stderr.isTTY&&D.stderr.hasColors?.()),stripColor:r=>xu(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 Pt,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
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 Nt(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 at(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 at)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
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(Cr.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(Cr.existsSync(c))return c;if(i.includes(we.extname(h)))return;let d=i.find(b=>Cr.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=Cr.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=
|
|
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(Cr.existsSync(c))return c;if(i.includes(we.extname(h)))return;let d=i.find(b=>Cr.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=Cr.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=Ta(D.execArgv).concat(r),u=Ci.spawn(D.argv[0],r,{stdio:"inherit"})):u=Ci.spawn(a,r,{stdio:"inherit"}):(this._checkForMissingExecutable(a,s,t._name),r.unshift(a),r=Ta(D.execArgv).concat(r),u=Ci.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
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 Er(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=Ei(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=Ei(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
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=>Sr(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
|
|
28
|
+
`)}),this}_outputHelpIfRequested(t){let r=this._getHelpOption();r&&t.find(n=>r.is(n))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function Ta(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 Da(){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 Ar=new Or;import{readFile as Nm}from"node:fs/promises";import{mkdir as tu,copyFile as xi,cp as eu,writeFile as Cm,chmod as ki}from"node:fs/promises";import{join as L}from"node:path";import{exec as ku}from"child_process";import{promisify as Su}from"util";var Eu=Su(ku),se=Eu;import{rm as Cu}from"node:fs/promises";import{join as Ia}from"node:path";import{cwd as Ou}from"node:process";var Au=Ia(Ou(),"dist");async function Bt(){await Cu(Ia(Au,"tmp"),{recursive:!0})}import Tu from"node:path";import{fileURLToPath as Du}from"node:url";var Iu=Tu.dirname(Du(import.meta.url)),st=Iu;import{chmod as Ru,mkdir as Fu}from"node:fs/promises";import{existsSync as Nu}from"node:fs";import{dirname as Pu}from"node:path";async function Ra(e){Nu(e)||(console.log("Downloading appimagetool..."),await Fu(Pu(e),{recursive:!0}),await se(`wget -O ${e} https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage`),await Ru(e,493))}import{join as Bu}from"node:path";import{homedir as zu}from"node:os";var zt=Bu(zu(),".webnative");import{readFile as Lu}from"node:fs/promises";import{join as qu}from"node:path";var Tr;async function Fa(){return Tr||(Tr=await Mu(),Tr)}async function Mu(){let e=await Lu(qu(process.cwd(),"webnative.json"),"utf-8");return JSON.parse(e)}import{existsSync as Kf}from"node:fs";import{createWriteStream as ju}from"node:fs";import{Readable as Wu}from"node:stream";import{pipeline as Hu}from"node:stream/promises";async function Dr(e,t){let r=await fetch(e);if(!r.body)throw new Error(`Failed to download ${e}`);await Hu(Wu.fromWeb(r.body),ju(t))}import{dirname as va}from"node:path";import{chmod as Em,mkdir as Yf,rm as Xf}from"node:fs/promises";var Vf=Oa(ga(),1);import{readFile as km,writeFile as Sm,readdir as f0,mkdir as u0}from"node:fs/promises";async function Gf(e,t,r){let i=await km(e),a=(await Vf.default.loadAsync(i)).file(t);if(!a)throw new Error(`File ${t} not found in zip`);let s=await a.async("nodebuffer");await Sm(r,s)}async function Jf(e){if(Kf(e))return;console.log("Downloading Node.js..."),await Yf(va(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 Dr(r,i),await se(`tar -xz -f ${i} -C ${va(e)} --strip-components=2 node-${t}-linux-x64/bin/node`),await Xf(i),await Em(e,493)}async function Qf(e){if(Kf(e))return;console.log("Downloading Node.js..."),await Yf(va(e),{recursive:!0});let t="v22.0.0",r=`https://nodejs.org/dist/${t}/node-${t}-win-x64.zip`,i=e+".zip";await Dr(r,i),await Gf(i,`node-${t}-win-x64/node.exe`,e),await Xf(i)}var br=process.cwd(),z={prebuilds:L(st,"prebuilds/dist"),appImageTool:L(zt,"appimagetool"),node:L(zt,"node"),bin:L(br,"dist/tmp/bin"),public:L(br,"app/public"),backend:L(br,"app/backend/dist"),dist:L(br,"dist")};async function ba(){await Ra(z.appImageTool),await Jf(z.node),await Om(),await tu(z.dist,{recursive:!0}),await se(`${z.appImageTool} ${z.bin} -n ${z.dist}/linux-appimage`),await ki(L(z.dist,"linux-appimage"),493),await Bt()}async function Om(){let e=await Fa();await tu(L(z.bin,"usr/bin"),{recursive:!0}),await xi(L(z.prebuilds,"AppRun"),L(z.bin,"AppRun")),await ki(L(z.bin,"AppRun"),493),await Cm(L(z.bin,"app.desktop"),`[Desktop Entry]
|
|
29
29
|
Name=${e.name}
|
|
30
30
|
Exec=app
|
|
31
31
|
Icon=app
|
|
32
32
|
Type=Application
|
|
33
|
-
Categories=${(e.categories??["Utility"]).join(";")};`),e.icon&&await xi(L(br,e.icon),L(z.bin,"app.png")),await xi(L(z.prebuilds,"linux_self_contained"),L(z.bin,"usr/bin/linux")),await ki(L(z.bin,"usr/bin/linux"),493),await
|
|
33
|
+
Categories=${(e.categories??["Utility"]).join(";")};`),e.icon&&await xi(L(br,e.icon),L(z.bin,"app.png")),await xi(L(z.prebuilds,"linux_self_contained"),L(z.bin,"usr/bin/linux")),await ki(L(z.bin,"usr/bin/linux"),493),await eu(z.public,L(z.bin,"usr/bin/public"),{recursive:!0}),await eu(z.backend,L(z.bin,"usr/bin/backend"),{recursive:!0}),await xi(z.node,L(z.bin,"usr/bin/node")),await ki(L(z.bin,"usr/bin/node"),493)}import{mkdir as iu,copyFile as wa,cp as ru,readFile as Am,writeFile as Tm,readdir as Dm}from"node:fs/promises";import{join as Y,relative as Im}from"node:path";var nu=Oa(ga(),1),Si=process.cwd(),K={prebuilds:Y(st,"prebuilds/dist"),node:Y(zt,"node.exe"),bin:Y(Si,"dist/tmp"),public:Y(Si,"app/public"),backend:Y(Si,"app/backend/dist"),dist:Y(Si,"dist")};async function ya(){await Qf(K.node),await Rm(),await iu(K.dist,{recursive:!0}),await Fm(K.bin,Y(K.dist,"windows.zip")),await Bt()}async function Rm(){await iu(K.bin,{recursive:!0}),await wa(Y(K.prebuilds,"windows.exe"),Y(K.bin,"windows.exe")),await wa(Y(K.prebuilds,"WebView2Loader.dll"),Y(K.bin,"WebView2Loader.dll")),await wa(K.node,Y(K.bin,"node.exe")),await ru(K.public,Y(K.bin,"public"),{recursive:!0}),await ru(K.backend,Y(K.bin,"backend"),{recursive:!0})}async function Fm(e,t){let r=new nu.default;await au(r,e,e);let i=await r.generateAsync({type:"nodebuffer",compression:"DEFLATE"});await Tm(t,i)}async function au(e,t,r){let i=await Dm(t,{withFileTypes:!0});for(let n of i){let a=Y(t,n.name);if(n.isDirectory())await au(e,a,r);else{let s=await Am(a);e.file(Im(r,a),s)}}}var wr={linux:{appimage:ba},windows:{zip:ya}};function xa(){return`Available platforms:
|
|
34
34
|
`+Object.entries(wr).map(([e,t])=>` ${e}, targets: ${Object.keys(t).join(", ")}`).join(`
|
|
35
|
-
`)}import{join as
|
|
35
|
+
`)}import{join as Pm}from"node:path";function su(e){e.command("build <platform>").usage("<platform> [options]").description(`Build the application
|
|
36
36
|
|
|
37
|
-
${
|
|
37
|
+
${xa()}`).option("-t, --target <target>","build specific target","all").addHelpText("after",`
|
|
38
38
|
Examples:
|
|
39
39
|
$ webnative build linux
|
|
40
40
|
$ webnative build linux --target appimage
|
|
41
|
-
$ webnative build linux -t appimage`).action(async(t,r)=>
|
|
41
|
+
$ webnative build linux -t appimage`).action(async(t,r)=>ou(t,r.target))}async function ou(e,t){if(e=="all"){if(t!="all")throw new Error("Can't use target option with platform set to 'all'");return Lm()}return lu(e,t)}async function lu(e,t){return t=="all"?Bm(e):fu(e,t)}async function Bm(e){for(let t of Object.keys(wr[e]))await fu(e,t)}async function fu(e,t){let i=wr[e][t];if(!i)throw new Error(`Unknown target ${t}
|
|
42
42
|
|
|
43
|
-
${
|
|
43
|
+
${xa()}`);await zm(e),console.log(`Building ${e} ${t}...`),await i(),console.log(`${t} is built`)}async function zm(e){console.log(`Building fullstack for ${e}...`),JSON.parse(await Nm(Pm(process.cwd(),"package.json"),"utf-8")).scripts?.build&&await se("npm run build",{env:{...process.env,PLATFORM:e}})}async function Lm(){for(let e of Object.keys(wr))await lu(e,"all")}import{join as ka}from"path";import{cp as qm,readFile as Mm,writeFile as jm}from"fs/promises";import{createInterface as Wm}from"node:readline/promises";function uu(e){e.command("init [project-name]").description("Initialize a new webnative project").addHelpText("after",`
|
|
44
44
|
Examples:
|
|
45
45
|
$ webnative init
|
|
46
|
-
$ webnative init my-app`).action(
|
|
46
|
+
$ webnative init my-app`).action(hu)}async function hu(e){let t=e?ka(process.cwd(),e):process.cwd(),r=await Hm();await Um(r,t),await $m(r,t),console.log(`Project initialized${e?` in ${e}`:""}`)}async function Hm(){let e=Wm({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 Um(e,t){await qm(ka(st,"template",e?"ts":"js"),t,{recursive:!0})}async function $m(e,t){await se("npm init -y",{cwd:t});let r=ka(t,"package.json");await Zm(e,r),await Vm(e,t)}async function Zm(e,t){let r=JSON.parse(await Mm(t,"utf-8"));r.scripts={...r.scripts,"build:frontend":"webpack","build:backend":`esbuild app/backend/index.${e?"ts":"js"} --bundle --platform=node --format=esm --outfile=app/backend/dist/index.js`,build:"npm run build:frontend && npm run build:backend"},r.type="module",await jm(t,JSON.stringify(r,null,2),"utf-8")}async function Vm(e,t){await se(`npm install ${`webpack webpack-cli esbuild${e?" ts-loader typescript":""}`} --save-dev`,{cwd:t})}uu(Ar);su(Ar);Ar.parse();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindw1n/webnative",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "esbuild src/index.ts --bundle --platform=node --format=esm --target=es2020 --outfile=index.js --banner:js=\"#!/usr/bin/env node\" --minify"
|
|
7
7
|
},
|