UNPKG

codebyai-mcp-server

Version:

MCP server for converting design files to frontend code

2 lines 538 kB
#!/usr/bin/env node import{createRequire as ZY}from"node:module";var IY=Object.create;var{getPrototypeOf:xY,defineProperty:d6,getOwnPropertyNames:SY}=Object;var TY=Object.prototype.hasOwnProperty;var A2=($,H,J)=>{J=$!=null?IY(xY($)):{};let Y=H||!$||!$.__esModule?d6(J,"default",{value:$,enumerable:!0}):J;for(let X of SY($))if(!TY.call(Y,X))d6(Y,X,{get:()=>$[X],enumerable:!0});return Y};var z=($,H)=>()=>(H||$((H={exports:{}}).exports,H),H.exports);var BY=($,H)=>{for(var J in H)d6($,J,{get:H[J],enumerable:!0,configurable:!0,set:(Y)=>H[J]=()=>Y})};var j=ZY(import.meta.url);var W7=z((Mz,G7)=>{var P4=j("path"),X7=j("fs"),Q7=parseInt("0777",8);G7.exports=l0.mkdirp=l0.mkdirP=l0;function l0($,H,J,Y){if(typeof H==="function")J=H,H={};else if(!H||typeof H!=="object")H={mode:H};var X=H.mode,Q=H.fs||X7;if(X===void 0)X=Q7;if(!Y)Y=null;var G=J||function(){};$=P4.resolve($),Q.mkdir($,X,function(W){if(!W)return Y=Y||$,G(null,Y);switch(W.code){case"ENOENT":if(P4.dirname($)===$)return G(W);l0(P4.dirname($),H,function(q,M){if(q)G(q,M);else l0($,H,G,M)});break;default:Q.stat($,function(q,M){if(q||!M.isDirectory())G(W,Y);else G(null,Y)});break}})}l0.sync=function $(H,J,Y){if(!J||typeof J!=="object")J={mode:J};var X=J.mode,Q=J.fs||X7;if(X===void 0)X=Q7;if(!Y)Y=null;H=P4.resolve(H);try{Q.mkdirSync(H,X),Y=Y||H}catch(W){switch(W.code){case"ENOENT":Y=$(P4.dirname(H),J,Y),$(H,J,Y);break;default:var G;try{G=Q.statSync(H)}catch(q){throw W}if(!G.isDirectory())throw W;break}}return Y}});var M7=z((Vz,w7)=>{w7.exports=q7;function q7($,H){if($&&H)return q7($)(H);if(typeof $!=="function")throw new TypeError("need wrapper function");return Object.keys($).forEach(function(Y){J[Y]=$[Y]}),J;function J(){var Y=new Array(arguments.length);for(var X=0;X<Y.length;X++)Y[X]=arguments[X];var Q=$.apply(this,Y),G=Y[Y.length-1];if(typeof Q==="function"&&Q!==G)Object.keys(G).forEach(function(W){Q[W]=G[W]});return Q}}});var k9=z((Kz,y9)=>{var V7=M7();y9.exports=V7(g8);y9.exports.strict=V7(K7);g8.proto=g8(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return g8(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return K7(this)},configurable:!0})});function g8($){var H=function(){if(H.called)return H.value;return H.called=!0,H.value=$.apply(this,arguments)};return H.called=!1,H}function K7($){var H=function(){if(H.called)throw new Error(H.onceError);return H.called=!0,H.value=$.apply(this,arguments)},J=$.name||"Function wrapped with `once`";return H.onceError=J+" shouldn't be called more than once",H.called=!1,H}});var C9=z((_z,O7)=>{var IG=k9(),xG=function(){},SG=function($){return $.setHeader&&typeof $.abort==="function"},TG=function($){return $.stdio&&Array.isArray($.stdio)&&$.stdio.length===3},_7=function($,H,J){if(typeof H==="function")return _7($,null,H);if(!H)H={};J=IG(J||xG);var{_writableState:Y,_readableState:X}=$,Q=H.readable||H.readable!==!1&&$.readable,G=H.writable||H.writable!==!1&&$.writable,W=!1,q=function(){if(!$.writable)M()},M=function(){if(G=!1,!Q)J.call($)},V=function(){if(Q=!1,!G)J.call($)},_=function(S){J.call($,S?new Error("exited with error code: "+S):null)},K=function(S){J.call($,S)},R=function(){process.nextTick(v)},v=function(){if(W)return;if(Q&&!(X&&(X.ended&&!X.destroyed)))return J.call($,new Error("premature close"));if(G&&!(Y&&(Y.ended&&!Y.destroyed)))return J.call($,new Error("premature close"))},E=function(){$.req.on("finish",M)};if(SG($))if($.on("complete",M),$.on("abort",R),$.req)E();else $.on("request",E);else if(G&&!Y)$.on("end",q),$.on("close",q);if(TG($))$.on("exit",_);if($.on("end",V),$.on("finish",M),H.error!==!1)$.on("error",K);return $.on("close",R),function(){if(W=!0,$.removeListener("complete",M),$.removeListener("abort",R),$.removeListener("request",E),$.req)$.req.removeListener("finish",M);$.removeListener("end",q),$.removeListener("close",q),$.removeListener("finish",M),$.removeListener("exit",_),$.removeListener("end",V),$.removeListener("error",K),$.removeListener("close",R)}};O7.exports=_7});var h9=z((Oz,D7)=>{var BG=k9(),ZG=C9(),b8;try{b8=j("fs")}catch($){}var v4=function(){},yG=/^v?\.0/.test(process.version),m8=function($){return typeof $==="function"},kG=function($){if(!yG)return!1;if(!b8)return!1;return($ instanceof(b8.ReadStream||v4)||$ instanceof(b8.WriteStream||v4))&&m8($.close)},CG=function($){return $.setHeader&&m8($.abort)},hG=function($,H,J,Y){Y=BG(Y);var X=!1;$.on("close",function(){X=!0}),ZG($,{readable:H,writable:J},function(G){if(G)return Y(G);X=!0,Y()});var Q=!1;return function(G){if(X)return;if(Q)return;if(Q=!0,kG($))return $.close(v4);if(CG($))return $.abort();if(m8($.destroy))return $.destroy();Y(G||new Error("stream was destroyed"))}},L7=function($){$()},gG=function($,H){return $.pipe(H)},bG=function(){var $=Array.prototype.slice.call(arguments),H=m8($[$.length-1]||v4)&&$.pop()||v4;if(Array.isArray($[0]))$=$[0];if($.length<2)throw new Error("pump requires two streams per minimum");var J,Y=$.map(function(X,Q){var G=Q<$.length-1,W=Q>0;return hG(X,G,W,function(q){if(!J)J=q;if(q)Y.forEach(L7);if(G)return;Y.forEach(L7),H(J)})});return $.reduce(gG)};D7.exports=bG});var s=z((lG)=>{var l8=j("fs"),p0=j("path"),f8=W7(),z7=h9();lG.sourceType=($)=>{if(!$)return;if($ instanceof Buffer)return"buffer";if(typeof $._read==="function"||typeof $._transform==="function")return"stream";if(typeof $!=="string"){let H=new Error("Type is not supported, must be a file path, file buffer, or a readable stream");throw H.name="IlligalSourceError",H}return"file"};function p8($){if(typeof $._write==="function"||typeof $._transform==="function")return"stream";if(typeof $!=="string"){let H=new Error("Type is not supported, must be a file path, or a writable stream");throw H.name="IlligalDestinationError",H}return"path"}lG.destType=p8;var U7=new Error("Type is not supported, must be a file path, directory path, file buffer, or a readable stream");U7.name="IlligalEntryError";lG.entryType=($)=>{if(!$)return;if($ instanceof Buffer)return"buffer";if(typeof $._read==="function"||typeof $._transform==="function")return"stream";if(typeof $!=="string")throw U7;return"fileOrDir"};lG.clone=($)=>{let H={};for(let J in $)H[J]=$[J];return H};lG.makeFileProcessFn=($)=>{return(H,J,Y)=>{Y=Y||{},Y.source=H;let X=p8(J)==="path"?l8.createWriteStream(J):J,Q=new $(Y);return g9([Q,X])}};lG.makeCompressDirFn=($)=>{return(H,J,Y)=>{let X=p8(J)==="path"?l8.createWriteStream(J):J,Q=new $;return Q.addEntry(H,Y),g9([Q,X])}};lG.makeUncompressFn=($)=>{return(H,J,Y)=>{if(Y=Y||{},Y.source=H,!H){let X=new Error("Type is not supported, must be a file path, file buffer, or a readable stream");throw X.name="IlligalSourceError",X}if(p8(J)!=="path"){let X=new Error("uncompress destination must be a directory");throw X.name="IlligalDestError",X}return new Promise((X,Q)=>{f8(J,(G)=>{if(G)return Q(G);let W=0,q=0,M=!1;function V(){if(M&&W===q)X()}new $(Y).on("finish",()=>{M=!0,V()}).on("error",Q).on("entry",(_,K,R)=>{K.on("end",R);let v=p0.join(J,_.name);if(_.type==="file"){let E=p0.dirname(v);f8(E,(S)=>{if(S)return Q(S);W++,z7(K,l8.createWriteStream(v,{mode:Y.mode||_.mode}),(Z)=>{if(Z)return Q(Z);q++,V()})})}else if(_.type==="symlink"){let E=p0.dirname(v),S=p0.resolve(E,_.linkname);W++,f8(E,(Z)=>{if(Z)return Q(Z);let b=p0.relative(E,S);l8.symlink(b,v,(C)=>{if(C)return Q(C);q++,K.resume()})})}else f8(v,(E)=>{if(E)return Q(E);K.resume()})})})})}};lG.streamToBuffer=($)=>{return new Promise((H,J)=>{let Y=[];$.on("readable",()=>{let X;while(X=$.read())Y.push(X)}).on("end",()=>H(Buffer.concat(Y))).on("error",(X)=>J(X))})};function g9($){return new Promise((H,J)=>{z7($[0],$[1],(Y)=>{if(Y)return J(Y);H()})})}lG.safePipe=g9;function mG($){if($=p0.normalize($),process.platform==="win32")$=$.replace(/\\+/g,"/");return $}function fG($,H,J){if(Buffer.isBuffer(H))H=H.toString();if(H.indexOf("\\")!==-1)H=H.replace(/\\+/g,"/");if(H[0]==="/")H=H.replace(/^\/+/,"");if(H)H=mG(H);let Y=H.split("/");if(Y.indexOf("..")!==-1){if(H=H.replace(/(\.\.\/)+/,""),J==="directory"&&H&&H[H.length-1]!=="/")H+="/";Y=H.split("/")}return $=Math.min($,Y.length-1),Y.slice($).join("/")||"/"}lG.stripFileName=fG});var l9=z((Dz,j7)=>{var d1=j("buffer").Buffer,b9=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918000,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];if(typeof Int32Array!=="undefined")b9=new Int32Array(b9);function F7($){if(d1.isBuffer($))return $;var H=typeof d1.alloc==="function"&&typeof d1.from==="function";if(typeof $==="number")return H?d1.alloc($):new d1($);else if(typeof $==="string")return H?d1.from($):new d1($);else throw new Error("input must be buffer, number, or string, received "+typeof $)}function sG($){var H=F7(4);return H.writeInt32BE($,0),H}function m9($,H){if($=F7($),d1.isBuffer(H))H=H.readUInt32BE(0);var J=~~H^-1;for(var Y=0;Y<$.length;Y++)J=b9[(J^$[Y])&255]^J>>>8;return J^-1}function f9(){return sG(m9.apply(null,arguments))}f9.signed=function(){return m9.apply(null,arguments)};f9.unsigned=function(){return m9.apply(null,arguments)>>>0};j7.exports=f9});var d9=z((XW)=>{var R7=j("fs"),d8=j("stream").Transform,N7=j("stream").PassThrough,A7=j("zlib"),i9=j("util"),eG=j("events").EventEmitter,E7=l9();XW.ZipFile=V0;XW.dateToDosDateTime=C7;i9.inherits(V0,eG);function V0(){this.outputStream=new N7,this.entries=[],this.outputStreamCursor=0,this.ended=!1,this.allDone=!1,this.forceZip64Eocd=!1}V0.prototype.addFile=function($,H,J){var Y=this;if(H=a8(H,!1),J==null)J={};var X=new h(H,!1,J);Y.entries.push(X),R7.stat($,function(Q,G){if(Q)return Y.emit("error",Q);if(!G.isFile())return Y.emit("error",new Error("not a file: "+$));if(X.uncompressedSize=G.size,J.mtime==null)X.setLastModDate(G.mtime);if(J.mode==null)X.setFileAttributesMode(G.mode);X.setFileDataPumpFunction(function(){var W=R7.createReadStream($);X.state=h.FILE_DATA_IN_PROGRESS,W.on("error",function(q){Y.emit("error",q)}),P7(Y,X,W)}),r1(Y)})};V0.prototype.addReadStream=function($,H,J){var Y=this;if(H=a8(H,!1),J==null)J={};var X=new h(H,!1,J);Y.entries.push(X),X.setFileDataPumpFunction(function(){X.state=h.FILE_DATA_IN_PROGRESS,P7(Y,X,$)}),r1(Y)};V0.prototype.addBuffer=function($,H,J){var Y=this;if(H=a8(H,!1),$.length>1073741823)throw new Error("buffer too large: "+$.length+" > 1073741823");if(J==null)J={};if(J.size!=null)throw new Error("options.size not allowed");var X=new h(H,!1,J);if(X.uncompressedSize=$.length,X.crc32=E7.unsigned($),X.crcAndFileSizeKnown=!0,Y.entries.push(X),!X.compress)Q($);else A7.deflateRaw($,function(G,W){Q(W)});function Q(G){X.compressedSize=G.length,X.setFileDataPumpFunction(function(){M0(Y,G),M0(Y,X.getDataDescriptor()),X.state=h.FILE_DATA_DONE,setImmediate(function(){r1(Y)})}),r1(Y)}};V0.prototype.addEmptyDirectory=function($,H){var J=this;if($=a8($,!0),H==null)H={};if(H.size!=null)throw new Error("options.size not allowed");if(H.compress!=null)throw new Error("options.compress not allowed");var Y=new h($,!0,H);J.entries.push(Y),Y.setFileDataPumpFunction(function(){M0(J,Y.getDataDescriptor()),Y.state=h.FILE_DATA_DONE,r1(J)}),r1(J)};var $W=a1([80,75,5,6]);V0.prototype.end=function($,H){if(typeof $==="function")H=$,$=null;if($==null)$={};if(this.ended)return;if(this.ended=!0,this.finalSizeCallback=H,this.forceZip64Eocd=!!$.forceZip64Format,$.comment){if(typeof $.comment==="string")this.comment=YW($.comment);else this.comment=$.comment;if(this.comment.length>65535)throw new Error("comment is too large");if(I4(this.comment,$W))throw new Error("comment contains end of central directory record signature")}else this.comment=r8;r1(this)};function M0($,H){$.outputStream.write(H),$.outputStreamCursor+=H.length}function P7($,H,J){var Y=new n9,X=new n8,Q=H.compress?new A7.DeflateRaw:new N7,G=new n8;J.pipe(Y).pipe(X).pipe(Q).pipe(G).pipe($.outputStream,{end:!1}),G.on("end",function(){if(H.crc32=Y.crc32,H.uncompressedSize==null)H.uncompressedSize=X.byteCount;else if(H.uncompressedSize!==X.byteCount)return $.emit("error",new Error("file data stream has unexpected number of bytes"));H.compressedSize=G.byteCount,$.outputStreamCursor+=H.compressedSize,M0($,H.getDataDescriptor()),H.state=h.FILE_DATA_DONE,r1($)})}function r1($){if($.allDone)return;if($.ended&&$.finalSizeCallback!=null){var H=HW($);if(H!=null)$.finalSizeCallback(H),$.finalSizeCallback=null}var J=Y();function Y(){for(var Q=0;Q<$.entries.length;Q++){var G=$.entries[Q];if(G.state<h.FILE_DATA_DONE)return G}return null}if(J!=null){if(J.state<h.READY_TO_PUMP_FILE_DATA)return;if(J.state===h.FILE_DATA_IN_PROGRESS)return;J.relativeOffsetOfLocalHeader=$.outputStreamCursor;var X=J.getLocalFileHeader();M0($,X),J.doFileDataPump()}else if($.ended)$.offsetOfStartOfCentralDirectory=$.outputStreamCursor,$.entries.forEach(function(Q){var G=Q.getCentralDirectoryRecord();M0($,G)}),M0($,JW($)),$.outputStream.end(),$.allDone=!0}function HW($){var H=0,J=0;for(var Y=0;Y<$.entries.length;Y++){var X=$.entries[Y];if(X.compress)return-1;if(X.state>=h.READY_TO_PUMP_FILE_DATA){if(X.uncompressedSize==null)return-1}else if(X.uncompressedSize==null)return null;X.relativeOffsetOfLocalHeader=H;var Q=X.useZip64Format();if(H+=v7+X.utf8FileName.length,H+=X.uncompressedSize,!X.crcAndFileSizeKnown)if(Q)H+=y7;else H+=Z7;if(J+=k7+X.utf8FileName.length+X.fileComment.length,Q)J+=u9}var G=0;if($.forceZip64Eocd||$.entries.length>=65535||J>=65535||H>=4294967295)G+=c8+p9;return G+=i8+$.comment.length,H+J+G}var c8=56,p9=20,i8=22;function JW($,H){var J=!1,Y=$.entries.length;if($.forceZip64Eocd||$.entries.length>=65535)Y=65535,J=!0;var X=$.outputStreamCursor-$.offsetOfStartOfCentralDirectory,Q=X;if($.forceZip64Eocd||X>=4294967295)Q=4294967295,J=!0;var G=$.offsetOfStartOfCentralDirectory;if($.forceZip64Eocd||$.offsetOfStartOfCentralDirectory>=4294967295)G=4294967295,J=!0;if(H)if(J)return c8+p9+i8;else return i8;var W=e(i8+$.comment.length);if(W.writeUInt32LE(101010256,0),W.writeUInt16LE(0,4),W.writeUInt16LE(0,6),W.writeUInt16LE(Y,8),W.writeUInt16LE(Y,10),W.writeUInt32LE(Q,12),W.writeUInt32LE(G,16),W.writeUInt16LE($.comment.length,20),$.comment.copy(W,22),!J)return W;var q=e(c8);q.writeUInt32LE(101075792,0),U1(q,c8-12,4),q.writeUInt16LE(S7,12),q.writeUInt16LE(x7,14),q.writeUInt32LE(0,16),q.writeUInt32LE(0,20),U1(q,$.entries.length,24),U1(q,$.entries.length,32),U1(q,X,40),U1(q,$.offsetOfStartOfCentralDirectory,48);var M=e(p9);return M.writeUInt32LE(117853008,0),M.writeUInt32LE(0,4),U1(M,$.outputStreamCursor,8),M.writeUInt32LE(1,16),Buffer.concat([q,M,W])}function a8($,H){if($==="")throw new Error("empty metadataPath");if($=$.replace(/\\/g,"/"),/^[a-zA-Z]:/.test($)||/^\//.test($))throw new Error("absolute path: "+$);if($.split("/").indexOf("..")!==-1)throw new Error("invalid relative path: "+$);var J=/\/$/.test($);if(H){if(!J)$+="/"}else if(J)throw new Error("file path cannot end with '/': "+$);return $}var r8=e(0);function h($,H,J){if(this.utf8FileName=a1($),this.utf8FileName.length>65535)throw new Error("utf8 file name too long. "+utf8FileName.length+" > 65535");if(this.isDirectory=H,this.state=h.WAITING_FOR_METADATA,this.setLastModDate(J.mtime!=null?J.mtime:new Date),J.mode!=null)this.setFileAttributesMode(J.mode);else this.setFileAttributesMode(H?16893:33204);if(H)this.crcAndFileSizeKnown=!0,this.crc32=0,this.uncompressedSize=0,this.compressedSize=0;else if(this.crcAndFileSizeKnown=!1,this.crc32=null,this.uncompressedSize=null,this.compressedSize=null,J.size!=null)this.uncompressedSize=J.size;if(H)this.compress=!1;else if(this.compress=!0,J.compress!=null)this.compress=!!J.compress;if(this.forceZip64Format=!!J.forceZip64Format,J.fileComment){if(typeof J.fileComment==="string")this.fileComment=a1(J.fileComment,"utf-8");else this.fileComment=J.fileComment;if(this.fileComment.length>65535)throw new Error("fileComment is too large")}else this.fileComment=r8}h.WAITING_FOR_METADATA=0;h.READY_TO_PUMP_FILE_DATA=1;h.FILE_DATA_IN_PROGRESS=2;h.FILE_DATA_DONE=3;h.prototype.setLastModDate=function($){var H=C7($);this.lastModFileTime=H.time,this.lastModFileDate=H.date};h.prototype.setFileAttributesMode=function($){if(($&65535)!==$)throw new Error("invalid mode. expected: 0 <= "+$+" <= 65535");this.externalFileAttributes=$<<16>>>0};h.prototype.setFileDataPumpFunction=function($){this.doFileDataPump=$,this.state=h.READY_TO_PUMP_FILE_DATA};h.prototype.useZip64Format=function(){return this.forceZip64Format||this.uncompressedSize!=null&&this.uncompressedSize>4294967294||this.compressedSize!=null&&this.compressedSize>4294967294||this.relativeOffsetOfLocalHeader!=null&&this.relativeOffsetOfLocalHeader>4294967294};var v7=30,I7=20,x7=45,S7=831,T7=2048,B7=8;h.prototype.getLocalFileHeader=function(){var $=0,H=0,J=0;if(this.crcAndFileSizeKnown)$=this.crc32,H=this.compressedSize,J=this.uncompressedSize;var Y=e(v7),X=T7;if(!this.crcAndFileSizeKnown)X|=B7;return Y.writeUInt32LE(67324752,0),Y.writeUInt16LE(I7,4),Y.writeUInt16LE(X,6),Y.writeUInt16LE(this.getCompressionMethod(),8),Y.writeUInt16LE(this.lastModFileTime,10),Y.writeUInt16LE(this.lastModFileDate,12),Y.writeUInt32LE($,14),Y.writeUInt32LE(H,18),Y.writeUInt32LE(J,22),Y.writeUInt16LE(this.utf8FileName.length,26),Y.writeUInt16LE(0,28),Buffer.concat([Y,this.utf8FileName])};var Z7=16,y7=24;h.prototype.getDataDescriptor=function(){if(this.crcAndFileSizeKnown)return r8;if(!this.useZip64Format()){var $=e(Z7);return $.writeUInt32LE(134695760,0),$.writeUInt32LE(this.crc32,4),$.writeUInt32LE(this.compressedSize,8),$.writeUInt32LE(this.uncompressedSize,12),$}else{var $=e(y7);return $.writeUInt32LE(134695760,0),$.writeUInt32LE(this.crc32,4),U1($,this.compressedSize,8),U1($,this.uncompressedSize,16),$}};var k7=46,u9=28;h.prototype.getCentralDirectoryRecord=function(){var $=e(k7),H=T7;if(!this.crcAndFileSizeKnown)H|=B7;var J=this.compressedSize,Y=this.uncompressedSize,X=this.relativeOffsetOfLocalHeader,Q,G;if(this.useZip64Format())J=4294967295,Y=4294967295,X=4294967295,Q=x7,G=e(u9),G.writeUInt16LE(1,0),G.writeUInt16LE(u9-4,2),U1(G,this.uncompressedSize,4),U1(G,this.compressedSize,12),U1(G,this.relativeOffsetOfLocalHeader,20);else Q=I7,G=r8;return $.writeUInt32LE(33639248,0),$.writeUInt16LE(S7,4),$.writeUInt16LE(Q,6),$.writeUInt16LE(H,8),$.writeUInt16LE(this.getCompressionMethod(),10),$.writeUInt16LE(this.lastModFileTime,12),$.writeUInt16LE(this.lastModFileDate,14),$.writeUInt32LE(this.crc32,16),$.writeUInt32LE(J,20),$.writeUInt32LE(Y,24),$.writeUInt16LE(this.utf8FileName.length,28),$.writeUInt16LE(G.length,30),$.writeUInt16LE(this.fileComment.length,32),$.writeUInt16LE(0,34),$.writeUInt16LE(0,36),$.writeUInt32LE(this.externalFileAttributes,38),$.writeUInt32LE(X,42),Buffer.concat([$,this.utf8FileName,G,this.fileComment])};h.prototype.getCompressionMethod=function(){var $=0,H=8;return this.compress?H:$};function C7($){var H=0;H|=$.getDate()&31,H|=($.getMonth()+1&15)<<5,H|=($.getFullYear()-1980&127)<<9;var J=0;return J|=Math.floor($.getSeconds()/2),J|=($.getMinutes()&63)<<5,J|=($.getHours()&31)<<11,{date:H,time:J}}function U1($,H,J){var Y=Math.floor(H/4294967296),X=H%4294967296;$.writeUInt32LE(X,J),$.writeUInt32LE(Y,J+4)}i9.inherits(n8,d8);function n8($){d8.call(this,$),this.byteCount=0}n8.prototype._transform=function($,H,J){this.byteCount+=$.length,J(null,$)};i9.inherits(n9,d8);function n9($){d8.call(this,$),this.crc32=0}n9.prototype._transform=function($,H,J){this.crc32=E7.unsigned($,this.crc32),J(null,$)};var c9="\x00☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ";if(c9.length!==256)throw new Error("assertion failure");var u8=null;function YW($){if(/^[\x20-\x7e]*$/.test($))return a1($,"utf-8");if(u8==null){u8={};for(var H=0;H<c9.length;H++)u8[c9[H]]=H}var J=e($.length);for(var H=0;H<$.length;H++){var Y=u8[$[H]];if(Y==null)throw new Error("character not encodable in CP437: "+JSON.stringify($[H]));J[H]=Y}return J}function e($){e=H;try{return e($)}catch(Y){return e=J,e($)}function H(Y){return Buffer.allocUnsafe(Y)}function J(Y){return new Buffer(Y)}}function a1($,H){a1=J;try{return a1($,H)}catch(X){return a1=Y,a1($,H)}function J(X,Q){return Buffer.from(X,Q)}function Y(X,Q){return new Buffer(X,Q)}}function I4($,H){I4=J;try{return I4($,H)}catch(X){return I4=Y,I4($,H)}function J(X,Q){return X.includes(Q)}function Y(X,Q){for(var G=0;G<=X.length-Q.length;G++)for(var W=0;;W++){if(W===Q.length)return!0;if(X[G+W]!==Q[W])break}return!1}}});var x4=z((Uz,a9)=>{if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0)a9.exports={nextTick:WW};else a9.exports=process;function WW($,H,J,Y){if(typeof $!=="function")throw new TypeError('"callback" argument must be a function');var X=arguments.length,Q,G;switch(X){case 0:case 1:return process.nextTick($);case 2:return process.nextTick(function W(){$.call(null,H)});case 3:return process.nextTick(function W(){$.call(null,H,J)});case 4:return process.nextTick(function W(){$.call(null,H,J,Y)});default:Q=new Array(X-1),G=0;while(G<Q.length)Q[G++]=arguments[G];return process.nextTick(function W(){$.apply(null,Q)})}}});var g7=z((Fz,h7)=>{var qW={}.toString;h7.exports=Array.isArray||function($){return qW.call($)=="[object Array]"}});var t8=z((r9,m7)=>{var o8=j("buffer"),C1=o8.Buffer;function b7($,H){for(var J in $)H[J]=$[J]}if(C1.from&&C1.alloc&&C1.allocUnsafe&&C1.allocUnsafeSlow)m7.exports=o8;else b7(o8,r9),r9.Buffer=u0;function u0($,H,J){return C1($,H,J)}b7(C1,u0);u0.from=function($,H,J){if(typeof $==="number")throw new TypeError("Argument must not be a number");return C1($,H,J)};u0.alloc=function($,H,J){if(typeof $!=="number")throw new TypeError("Argument must be a number");var Y=C1($);if(H!==void 0)if(typeof J==="string")Y.fill(H,J);else Y.fill(H);else Y.fill(0);return Y};u0.allocUnsafe=function($){if(typeof $!=="number")throw new TypeError("Argument must be a number");return C1($)};u0.allocUnsafeSlow=function($){if(typeof $!=="number")throw new TypeError("Argument must be a number");return o8.SlowBuffer($)}});var c0=z((AW)=>{function wW($){if(Array.isArray)return Array.isArray($);return s8($)==="[object Array]"}AW.isArray=wW;function MW($){return typeof $==="boolean"}AW.isBoolean=MW;function VW($){return $===null}AW.isNull=VW;function KW($){return $==null}AW.isNullOrUndefined=KW;function _W($){return typeof $==="number"}AW.isNumber=_W;function OW($){return typeof $==="string"}AW.isString=OW;function LW($){return typeof $==="symbol"}AW.isSymbol=LW;function DW($){return $===void 0}AW.isUndefined=DW;function zW($){return s8($)==="[object RegExp]"}AW.isRegExp=zW;function UW($){return typeof $==="object"&&$!==null}AW.isObject=UW;function FW($){return s8($)==="[object Date]"}AW.isDate=FW;function jW($){return s8($)==="[object Error]"||$ instanceof Error}AW.isError=jW;function RW($){return typeof $==="function"}AW.isFunction=RW;function NW($){return $===null||typeof $==="boolean"||typeof $==="number"||typeof $==="string"||typeof $==="symbol"||typeof $==="undefined"}AW.isPrimitive=NW;AW.isBuffer=j("buffer").Buffer.isBuffer;function s8($){return Object.prototype.toString.call($)}});var f7=z((Rz,o9)=>{if(typeof Object.create==="function")o9.exports=function $(H,J){if(J)H.super_=J,H.prototype=Object.create(J.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}})};else o9.exports=function $(H,J){if(J){H.super_=J;var Y=function(){};Y.prototype=J.prototype,H.prototype=new Y,H.prototype.constructor=H}}});var i0=z((Nz,t9)=>{try{if(e8=j("util"),typeof e8.inherits!=="function")throw"";t9.exports=e8.inherits}catch($){t9.exports=f7()}var e8});var p7=z((Az,s9)=>{function mW($,H){if(!($ instanceof H))throw new TypeError("Cannot call a class as a function")}var l7=t8().Buffer,S4=j("util");function fW($,H,J){$.copy(H,J)}s9.exports=function(){function $(){mW(this,$),this.head=null,this.tail=null,this.length=0}return $.prototype.push=function H(J){var Y={data:J,next:null};if(this.length>0)this.tail.next=Y;else this.head=Y;this.tail=Y,++this.length},$.prototype.unshift=function H(J){var Y={data:J,next:this.head};if(this.length===0)this.tail=Y;this.head=Y,++this.length},$.prototype.shift=function H(){if(this.length===0)return;var J=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,J},$.prototype.clear=function H(){this.head=this.tail=null,this.length=0},$.prototype.join=function H(J){if(this.length===0)return"";var Y=this.head,X=""+Y.data;while(Y=Y.next)X+=J+Y.data;return X},$.prototype.concat=function H(J){if(this.length===0)return l7.alloc(0);var Y=l7.allocUnsafe(J>>>0),X=this.head,Q=0;while(X)fW(X.data,Y,Q),Q+=X.data.length,X=X.next;return Y},$}();if(S4&&S4.inspect&&S4.inspect.custom)s9.exports.prototype[S4.inspect.custom]=function(){var $=S4.inspect({length:this.length});return this.constructor.name+" "+$}});var e9=z((Ez,u7)=>{var $6=x4();function lW($,H){var J=this,Y=this._readableState&&this._readableState.destroyed,X=this._writableState&&this._writableState.destroyed;if(Y||X){if(H)H($);else if($){if(!this._writableState)$6.nextTick(H6,this,$);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,$6.nextTick(H6,this,$)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy($||null,function(Q){if(!H&&Q){if(!J._writableState)$6.nextTick(H6,J,Q);else if(!J._writableState.errorEmitted)J._writableState.errorEmitted=!0,$6.nextTick(H6,J,Q)}else if(H)H(Q)}),this}function pW(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(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 H6($,H){$.emit("error",H)}u7.exports={destroy:lW,undestroy:pW}});var i7=z((Pz,c7)=>{c7.exports=j("util").deprecate});var H5=z((vz,e7)=>{var K0=x4();e7.exports=i;function d7($){var H=this;this.next=null,this.entry=null,this.finish=function(){Gq(H,$)}}var uW=["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:K0.nextTick,n0;i.WritableState=B4;var a7=Object.create(c0());a7.inherits=i0();var cW={deprecate:i7()},r7=j("stream"),Y6=t8().Buffer,iW=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function nW($){return Y6.from($)}function dW($){return Y6.isBuffer($)||$ instanceof iW}var o7=e9();a7.inherits(i,r7);function aW(){}function B4($,H){n0=n0||_0(),$=$||{};var J=H instanceof n0;if(this.objectMode=!!$.objectMode,J)this.objectMode=this.objectMode||!!$.writableObjectMode;var{highWaterMark:Y,writableHighWaterMark:X}=$,Q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(J&&(X||X===0))this.highWaterMark=X;else this.highWaterMark=Q;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 G=$.decodeStrings===!1;this.decodeStrings=!G,this.defaultEncoding=$.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(W){Hq(H,W)},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 d7(this)}B4.prototype.getBuffer=function $(){var H=this.bufferedRequest,J=[];while(H)J.push(H),H=H.next;return J};(function(){try{Object.defineProperty(B4.prototype,"buffer",{get:cW.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch($){}})();var J6;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")J6=Function.prototype[Symbol.hasInstance],Object.defineProperty(i,Symbol.hasInstance,{value:function($){if(J6.call(this,$))return!0;if(this!==i)return!1;return $&&$._writableState instanceof B4}});else J6=function($){return $ instanceof this};function i($){if(n0=n0||_0(),!J6.call(i,this)&&!(this instanceof n0))return new i($);if(this._writableState=new B4($,this),this.writable=!0,$){if(typeof $.write==="function")this._write=$.write;if(typeof $.writev==="function")this._writev=$.writev;if(typeof $.destroy==="function")this._destroy=$.destroy;if(typeof $.final==="function")this._final=$.final}r7.call(this)}i.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function rW($,H){var J=new Error("write after end");$.emit("error",J),K0.nextTick(H,J)}function oW($,H,J,Y){var X=!0,Q=!1;if(J===null)Q=new TypeError("May not write null values to stream");else if(typeof J!=="string"&&J!==void 0&&!H.objectMode)Q=new TypeError("Invalid non-string/buffer chunk");if(Q)$.emit("error",Q),K0.nextTick(Y,Q),X=!1;return X}i.prototype.write=function($,H,J){var Y=this._writableState,X=!1,Q=!Y.objectMode&&dW($);if(Q&&!Y6.isBuffer($))$=nW($);if(typeof H==="function")J=H,H=null;if(Q)H="buffer";else if(!H)H=Y.defaultEncoding;if(typeof J!=="function")J=aW;if(Y.ended)rW(this,J);else if(Q||oW(this,Y,$,J))Y.pendingcb++,X=sW(this,Y,Q,$,H,J);return X};i.prototype.cork=function(){var $=this._writableState;$.corked++};i.prototype.uncork=function(){var $=this._writableState;if($.corked){if($.corked--,!$.writing&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest)t7(this,$)}};i.prototype.setDefaultEncoding=function $(H){if(typeof H==="string")H=H.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((H+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+H);return this._writableState.defaultEncoding=H,this};function tW($,H,J){if(!$.objectMode&&$.decodeStrings!==!1&&typeof H==="string")H=Y6.from(H,J);return H}Object.defineProperty(i.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function sW($,H,J,Y,X,Q){if(!J){var G=tW(H,Y,X);if(Y!==G)J=!0,X="buffer",Y=G}var W=H.objectMode?1:Y.length;H.length+=W;var q=H.length<H.highWaterMark;if(!q)H.needDrain=!0;if(H.writing||H.corked){var M=H.lastBufferedRequest;if(H.lastBufferedRequest={chunk:Y,encoding:X,isBuf:J,callback:Q,next:null},M)M.next=H.lastBufferedRequest;else H.bufferedRequest=H.lastBufferedRequest;H.bufferedRequestCount+=1}else $5($,H,!1,W,Y,X,Q);return q}function $5($,H,J,Y,X,Q,G){if(H.writelen=Y,H.writecb=G,H.writing=!0,H.sync=!0,J)$._writev(X,H.onwrite);else $._write(X,Q,H.onwrite);H.sync=!1}function eW($,H,J,Y,X){if(--H.pendingcb,J)K0.nextTick(X,Y),K0.nextTick(T4,$,H),$._writableState.errorEmitted=!0,$.emit("error",Y);else X(Y),$._writableState.errorEmitted=!0,$.emit("error",Y),T4($,H)}function $q($){$.writing=!1,$.writecb=null,$.length-=$.writelen,$.writelen=0}function Hq($,H){var J=$._writableState,Y=J.sync,X=J.writecb;if($q(J),H)eW($,J,Y,H,X);else{var Q=s7(J);if(!Q&&!J.corked&&!J.bufferProcessing&&J.bufferedRequest)t7($,J);if(Y)uW(n7,$,J,Q,X);else n7($,J,Q,X)}}function n7($,H,J,Y){if(!J)Jq($,H);H.pendingcb--,Y(),T4($,H)}function Jq($,H){if(H.length===0&&H.needDrain)H.needDrain=!1,$.emit("drain")}function t7($,H){H.bufferProcessing=!0;var J=H.bufferedRequest;if($._writev&&J&&J.next){var Y=H.bufferedRequestCount,X=new Array(Y),Q=H.corkedRequestsFree;Q.entry=J;var G=0,W=!0;while(J){if(X[G]=J,!J.isBuf)W=!1;J=J.next,G+=1}if(X.allBuffers=W,$5($,H,!0,H.length,X,"",Q.finish),H.pendingcb++,H.lastBufferedRequest=null,Q.next)H.corkedRequestsFree=Q.next,Q.next=null;else H.corkedRequestsFree=new d7(H);H.bufferedRequestCount=0}else{while(J){var{chunk:q,encoding:M,callback:V}=J,_=H.objectMode?1:q.length;if($5($,H,!1,_,q,M,V),J=J.next,H.bufferedRequestCount--,H.writing)break}if(J===null)H.lastBufferedRequest=null}H.bufferedRequest=J,H.bufferProcessing=!1}i.prototype._write=function($,H,J){J(new Error("_write() is not implemented"))};i.prototype._writev=null;i.prototype.end=function($,H,J){var Y=this._writableState;if(typeof $==="function")J=$,$=null,H=null;else if(typeof H==="function")J=H,H=null;if($!==null&&$!==void 0)this.write($,H);if(Y.corked)Y.corked=1,this.uncork();if(!Y.ending)Qq(this,Y,J)};function s7($){return $.ending&&$.length===0&&$.bufferedRequest===null&&!$.finished&&!$.writing}function Yq($,H){$._final(function(J){if(H.pendingcb--,J)$.emit("error",J);H.prefinished=!0,$.emit("prefinish"),T4($,H)})}function Xq($,H){if(!H.prefinished&&!H.finalCalled)if(typeof $._final==="function")H.pendingcb++,H.finalCalled=!0,K0.nextTick(Yq,$,H);else H.prefinished=!0,$.emit("prefinish")}function T4($,H){var J=s7(H);if(J){if(Xq($,H),H.pendingcb===0)H.finished=!0,$.emit("finish")}return J}function Qq($,H,J){if(H.ending=!0,T4($,H),J)if(H.finished)K0.nextTick(J);else $.once("finish",J);H.ended=!0,$.writable=!1}function Gq($,H,J){var Y=$.entry;$.entry=null;while(Y){var X=Y.callback;H.pendingcb--,X(J),Y=Y.next}H.corkedRequestsFree.next=$}Object.defineProperty(i.prototype,"destroyed",{get:function(){if(this._writableState===void 0)return!1;return this._writableState.destroyed},set:function($){if(!this._writableState)return;this._writableState.destroyed=$}});i.prototype.destroy=o7.destroy;i.prototype._undestroy=o7.undestroy;i.prototype._destroy=function($,H){this.end(),H($)}});var _0=z((Iz,Y$)=>{var $$=x4(),Wq=Object.keys||function($){var H=[];for(var J in $)H.push(J);return H};Y$.exports=h1;var H$=Object.create(c0());H$.inherits=i0();var J$=Y5(),J5=H5();H$.inherits(h1,J$);{X6=Wq(J5.prototype);for(Z4=0;Z4<X6.length;Z4++)if(y4=X6[Z4],!h1.prototype[y4])h1.prototype[y4]=J5.prototype[y4]}var X6,y4,Z4;function h1($){if(!(this instanceof h1))return new h1($);if(J$.call(this,$),J5.call(this,$),$&&$.readable===!1)this.readable=!1;if($&&$.writable===!1)this.writable=!1;if(this.allowHalfOpen=!0,$&&$.allowHalfOpen===!1)this.allowHalfOpen=!1;this.once("end",qq)}Object.defineProperty(h1.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function qq(){if(this.allowHalfOpen||this._writableState.ended)return;$$.nextTick(wq,this)}function wq($){$.end()}Object.defineProperty(h1.prototype,"destroyed",{get:function(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set:function($){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=$,this._writableState.destroyed=$}});h1.prototype._destroy=function($,H){this.push(null),this.end(),$$.nextTick(H,$)}});var G$=z((X5,Q$)=>{var Q6=j("buffer"),g1=Q6.Buffer;function X$($,H){for(var J in $)H[J]=$[J]}if(g1.from&&g1.alloc&&g1.allocUnsafe&&g1.allocUnsafeSlow)Q$.exports=Q6;else X$(Q6,X5),X5.Buffer=d0;function d0($,H,J){return g1($,H,J)}X$(g1,d0);d0.from=function($,H,J){if(typeof $==="number")throw new TypeError("Argument must not be a number");return g1($,H,J)};d0.alloc=function($,H,J){if(typeof $!=="number")throw new TypeError("Argument must be a number");var Y=g1($);if(H!==void 0)if(typeof J==="string")Y.fill(H,J);else Y.fill(H);else Y.fill(0);return Y};d0.allocUnsafe=function($){if(typeof $!=="number")throw new TypeError("Argument must be a number");return g1($)};d0.allocUnsafeSlow=function($){if(typeof $!=="number")throw new TypeError("Argument must be a number");return Q6.SlowBuffer($)}});var W5=z((Aq)=>{var G5=G$().Buffer,W$=G5.isEncoding||function($){switch($=""+$,$&&$.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 Mq($){if(!$)return"utf8";var H;while(!0)switch($){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 $;default:if(H)return;$=(""+$).toLowerCase(),H=!0}}function Vq($){var H=Mq($);if(typeof H!=="string"&&(G5.isEncoding===W$||!W$($)))throw new Error("Unknown encoding: "+$);return H||$}Aq.StringDecoder=k4;function k4($){this.encoding=Vq($);var H;switch(this.encoding){case"utf16le":this.text=zq,this.end=Uq,H=4;break;case"utf8":this.fillLast=Oq,H=4;break;case"base64":this.text=Fq,this.end=jq,H=3;break;default:this.write=Rq,this.end=Nq;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=G5.allocUnsafe(H)}k4.prototype.write=function($){if($.length===0)return"";var H,J;if(this.lastNeed){if(H=this.fillLast($),H===void 0)return"";J=this.lastNeed,this.lastNeed=0}else J=0;if(J<$.length)return H?H+this.text($,J):this.text($,J);return H||""};k4.prototype.end=Dq;k4.prototype.text=Lq;k4.prototype.fillLast=function($){if(this.lastNeed<=$.length)return $.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,this.lastTotal-this.lastNeed,0,$.length),this.lastNeed-=$.length};function Q5($){if($<=127)return 0;else if($>>5===6)return 2;else if($>>4===14)return 3;else if($>>3===30)return 4;return $>>6===2?-1:-2}function Kq($,H,J){var Y=H.length-1;if(Y<J)return 0;var X=Q5(H[Y]);if(X>=0){if(X>0)$.lastNeed=X-1;return X}if(--Y<J||X===-2)return 0;if(X=Q5(H[Y]),X>=0){if(X>0)$.lastNeed=X-2;return X}if(--Y<J||X===-2)return 0;if(X=Q5(H[Y]),X>=0){if(X>0)if(X===2)X=0;else $.lastNeed=X-3;return X}return 0}function _q($,H,J){if((H[0]&192)!==128)return $.lastNeed=0,"�";if($.lastNeed>1&&H.length>1){if((H[1]&192)!==128)return $.lastNeed=1,"�";if($.lastNeed>2&&H.length>2){if((H[2]&192)!==128)return $.lastNeed=2,"�"}}}function Oq($){var H=this.lastTotal-this.lastNeed,J=_q(this,$,H);if(J!==void 0)return J;if(this.lastNeed<=$.length)return $.copy(this.lastChar,H,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);$.copy(this.lastChar,H,0,$.length),this.lastNeed-=$.length}function Lq($,H){var J=Kq(this,$,H);if(!this.lastNeed)return $.toString("utf8",H);this.lastTotal=J;var Y=$.length-(J-this.lastNeed);return $.copy(this.lastChar,0,Y),$.toString("utf8",H,Y)}function Dq($){var H=$&&$.length?this.write($):"";if(this.lastNeed)return H+"�";return H}function zq($,H){if(($.length-H)%2===0){var J=$.toString("utf16le",H);if(J){var Y=J.charCodeAt(J.length-1);if(Y>=55296&&Y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1],J.slice(0,-1)}return J}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=$[$.length-1],$.toString("utf16le",H,$.length-1)}function Uq($){var H=$&&$.length?this.write($):"";if(this.lastNeed){var J=this.lastTotal-this.lastNeed;return H+this.lastChar.toString("utf16le",0,J)}return H}function Fq($,H){var J=($.length-H)%3;if(J===0)return $.toString("base64",H);if(this.lastNeed=3-J,this.lastTotal=3,J===1)this.lastChar[0]=$[$.length-1];else this.lastChar[0]=$[$.length-2],this.lastChar[1]=$[$.length-1];return $.toString("base64",H,$.length-J)}function jq($){var H=$&&$.length?this.write($):"";if(this.lastNeed)return H+this.lastChar.toString("base64",0,3-this.lastNeed);return H}function Rq($){return $.toString(this.encoding)}function Nq($){return $&&$.length?this.write($):""}});var Y5=z((Tz,F$)=>{var r0=x4();F$.exports=g;var Pq=g7(),C4;g.ReadableState=O$;var Sz=j("events").EventEmitter,V$=function($,H){return $.listeners(H).length},K5=j("stream"),h4=t8().Buffer,vq=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function Iq($){return h4.from($)}function xq($){return h4.isBuffer($)||$ instanceof vq}var K$=Object.create(c0());K$.inherits=i0();var q5=j("util"),y=void 0;if(q5&&q5.debuglog)y=q5.debuglog("stream");else y=function(){};var Sq=p7(),_$=e9(),a0;K$.inherits(g,K5);var w5=["error","close","destroy","pause","resume"];function Tq($,H,J){if(typeof $.prependListener==="function")return $.prependListener(H,J);if(!$._events||!$._events[H])$.on(H,J);else if(Pq($._events[H]))$._events[H].unshift(J);else $._events[H]=[J,$._events[H]]}function O$($,H){C4=C4||_0(),$=$||{};var J=H instanceof C4;if(this.objectMode=!!$.objectMode,J)this.objectMode=this.objectMode||!!$.readableObjectMode;var{highWaterMark:Y,readableHighWaterMark:X}=$,Q=this.objectMode?16:16384;if(Y||Y===0)this.highWaterMark=Y;else if(J&&(X||X===0))this.highWaterMark=X;else this.highWaterMark=Q;if(this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Sq,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=$.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$.encoding){if(!a0)a0=W5().StringDecoder;this.decoder=new a0($.encoding),this.encoding=$.encoding}}function g($){if(C4=C4||_0(),!(this instanceof g))return new g($);if(this._readableState=new O$($,this),this.readable=!0,$){if(typeof $.read==="function")this._read=$.read;if(typeof $.destroy==="function")this._destroy=$.destroy}K5.call(this)}Object.defineProperty(g.prototype,"destroyed",{get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function($){if(!this._readableState)return;this._readableState.destroyed=$}});g.prototype.destroy=_$.destroy;g.prototype._undestroy=_$.undestroy;g.prototype._destroy=function($,H){this.push(null),H($)};g.prototype.push=function($,H){var J=this._readableState,Y;if(!J.objectMode){if(typeof $==="string"){if(H=H||J.defaultEncoding,H!==J.encoding)$=h4.from($,H),H="";Y=!0}}else Y=!0;return L$(this,$,H,!1,Y)};g.prototype.unshift=function($){return L$(this,$,null,!0,!1)};function L$($,H,J,Y,X){var Q=$._readableState;if(H===null)Q.reading=!1,kq($,Q);else{var G;if(!X)G=Bq(Q,H);if(G)$.emit("error",G);else if(Q.objectMode||H&&H.length>0){if(typeof H!=="string"&&!Q.objectMode&&Object.getPrototypeOf(H)!==h4.prototype)H=Iq(H);if(Y)if(Q.endEmitted)$.emit("error",new Error("stream.unshift() after end event"));else M5($,Q,H,!0);else if(Q.ended)$.emit("error",new Error("stream.push() after EOF"));else if(Q.reading=!1,Q.decoder&&!J)if(H=Q.decoder.write(H),Q.objectMode||H.length!==0)M5($,Q,H,!1);else D$($,Q);else M5($,Q,H,!1)}else if(!Y)Q.reading=!1}return Zq(Q)}function M5($,H,J,Y){if(H.flowing&&H.length===0&&!H.sync)$.emit("data",J),$.read(0);else{if(H.length+=H.objectMode?1:J.length,Y)H.buffer.unshift(J);else H.buffer.push(J);if(H.needReadable)G6($)}D$($,H)}function Bq($,H){var J;if(!xq(H)&&typeof H!=="string"&&H!==void 0&&!$.objectMode)J=new TypeError("Invalid non-string/buffer chunk");return J}function Zq($){return!$.ended&&($.needReadable||$.length<$.highWaterMark||$.length===0)}g.prototype.isPaused=function(){return this._readableState.flowing===!1};g.prototype.setEncoding=function($){if(!a0)a0=W5().StringDecoder;return this._readableState.decoder=new a0($),this._readableState.encoding=$,this};var q$=8388608;function yq($){if($>=q$)$=q$;else $--,$|=$>>>1,$|=$>>>2,$|=$>>>4,$|=$>>>8,$|=$>>>16,$++;return $}function w$($,H){if($<=0||H.length===0&&H.ended)return 0;if(H.objectMode)return 1;if($!==$)if(H.flowing&&H.length)return H.buffer.head.data.length;else return H.length;if($>H.highWaterMark)H.highWaterMark=yq($);if($<=H.length)return $;if(!H.ended)return H.needReadable=!0,0;return H.length}g.prototype.read=function($){y("read",$),$=parseInt($,10);var H=this._readableState,J=$;if($!==0)H.emittedReadable=!1;if($===0&&H.needReadable&&(H.length>=H.highWaterMark||H.ended)){if(y("read: emitReadable",H.length,H.ended),H.length===0&&H.ended)V5(this);else G6(this);return null}if($=w$($,H),$===0&&H.ended){if(H.length===0)V5(this);return null}var Y=H.needReadable;if(y("need readable",Y),H.length===0||H.length-$<H.highWaterMark)Y=!0,y("length less than watermark",Y);if(H.ended||H.reading)Y=!1,y("reading or ended",Y);else if(Y){if(y("do read"),H.reading=!0,H.sync=!0,H.length===0)H.needReadable=!0;if(this._read(H.highWaterMark),H.sync=!1,!H.reading)$=w$(J,H)}var X;if($>0)X=z$($,H);else X=null;if(X===null)H.needReadable=!0,$=0;else H.length-=$;if(H.length===0){if(!H.ended)H.needReadable=!0;if(J!==$&&H.ended)V5(this)}if(X!==null)this.emit("data",X);return X};function kq($,H){if(H.ended)return;if(H.decoder){var J=H.decoder.end();if(J&&J.length)H.buffer.push(J),H.length+=H.objectMode?1:J.length}H.ended=!0,G6($)}function G6($){var H=$._readableState;if(H.needReadable=!1,!H.emittedReadable)if(y("emitReadable",H.flowing),H.emittedReadable=!0,H.sync)r0.nextTick(M$,$);else M$($)}function M$($){y("emit readable"),$.emit("readable"),_5($)}function D$($,H){if(!H.readingMore)H.readingMore=!0,r0.nextTick(Cq,$,H)}function Cq($,H){var J=H.length;while(!H.reading&&!H.flowing&&!H.ended&&H.length<H.highWaterMark)if(y("maybeReadMore read 0"),$.read(0),J===H.length)break;else J=H.length;H.readingMore=!1}g.prototype._read=function($){this.emit("error",new Error("_read() is not implemented"))};g.prototype.pipe=function($,H){var J=this,Y=this._readableState;switch(Y.pipesCount){case 0:Y.pipes=$;break;case 1:Y.pipes=[Y.pipes,$];break;default:Y.pipes.push($);break}Y.pipesCount+=1,y("pipe count=%d opts=%j",Y.pipesCount,H);var X=(!H||H.end!==!1)&&$!==process.stdout&&$!==process.stderr,Q=X?W:S;if(Y.endEmitted)r0.nextTick(Q);else J.once("end",Q);$.on("unpipe",G);function G(Z,b){if(y("onunpipe"),Z===J){if(b&&b.hasUnpiped===!1)b.hasUnpiped=!0,V()}}function W(){y("onend"),$.end()}var q=hq(J);$.on("drain",q);var M=!1;function V(){if(y("cleanup"),$.removeListener("close",v),$.removeListener("finish",E),$.removeListener("drain",q),$.removeListener("error",R),$.removeListener("unpipe",G),J.removeListener("end",W),J.removeListener("end",S),J.removeListener("data",K),M=!0,Y.awaitDrain&&(!$._writableState||$._writableState.needDrain))q()}var _=!1;J.on("data",K);function K(Z){y("ondata"),_=!1;var b=$.write(Z);if(b===!1&&!_){if((Y.pipesCount===1&&Y.pipes===$||Y.pipesCount>1&&U$(Y.pipes,$)!==-1)&&!M)y("false write response, pause",Y.awaitDrain),Y.awaitDrain++,_=!0;J.pause()}}function R(Z){if(y("onerror",Z),S(),$.removeListener("error",R),V$($,"error")===0)$.emit("error",Z)}Tq($,"error",R);function v(){$.removeListener("finish",E),S()}$.once("close",v);function E(){y("onfinish"),$.removeListener("close",v),S()}$.once("finish",E);function S(){y("unpipe"),J.unpipe($)}if($.emit("pipe",J),!Y.flowing)y("pipe resume"),J.resume();return $};function hq($){return function(){var H=$._readableState;if(y("pipeOnDrain",H.awaitDrain),H.awaitDrain)H.awaitDrain--;if(H.awaitDrain===0&&V$($,"data"))H.flowing=!0,_5($)}}g.prototype.unpipe=function($){var H=this._readableState,J={hasUnpiped:!1};if(H.pipesCount===0)return this;if(H.pipesCount===1){if($&&$!==H.pipes)return this;if(!$)$=H.pipes;if(H.pipes=null,H.pipesCount=0,H.flowing=!1,$)$.emit("unpipe",this,J);return this}if(!$){var{pipes:Y,pipesCount:X}=H;H.pipes=null,H.pipesCount=0,H.flowing=!1;for(var Q=0;Q<X;Q++)Y[Q].emit("unpipe",this,{hasUnpiped:!1});return this}var G=U$(H.pipes,$);if(G===-1)return this;if(H.pipes.splice(G,1),H.pipesCount-=1,H.pipesCount===1)H.pipes=H.pipes[0];return $.emit("unpipe",this,J),this};g.prototype.on=function($,H){var J=K5.prototype.on.call(this,$,H);i