@microsoft/managed-apps-cli 0.21.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{AddConnector-4AMM746J.js → AddConnector-5DUBFLEK.js} +2 -2
- package/dist/{AuthStatus-ZZIP3LBD.js → AuthStatus-6DMK7O6W.js} +2 -2
- package/dist/{AuthSwitch-HK7JU2FR.js → AuthSwitch-NUQIIRCG.js} +2 -2
- package/dist/Bin.js +1 -1
- package/dist/{BuildMaafApp-MOTZOLJZ.js → BuildMaafApp-A4IUU6LI.js} +2 -2
- package/dist/{Cli-6CCXMCPX.js → Cli-LYSWG64H.js} +5 -5
- package/dist/CloneMaafApp-B672N7T5.js +11 -0
- package/dist/CreateMaafApp-RWL7FXSP.js +20 -0
- package/dist/{DeleteMaafApp-MZVGIAX3.js → DeleteMaafApp-GT4CEFAE.js} +2 -2
- package/dist/{DeployMaafApp-KXATM3E3.js → DeployMaafApp-E4TQU6RO.js} +4 -4
- package/dist/{Dev-SHIA5S7X.js → Dev-ICCA5DEJ.js} +2 -2
- package/dist/{EnvironmentVariableAuthenticationProvider-5YTMRAE4.js → EnvironmentVariableAuthenticationProvider-LYCQ5D47.js} +2 -2
- package/dist/{GetMaafBuildStatus-3W7LI5TJ.js → GetMaafBuildStatus-UGAHVANE.js} +2 -2
- package/dist/{GetSettings-NM6H2U5F.js → GetSettings-ZI2IBKV5.js} +2 -2
- package/dist/InfoMaafApp-FL5PICDD.js +13 -0
- package/dist/{Init-CH5DUQWA.js → Init-XCSK3WQM.js} +2 -2
- package/dist/{ListConnectorActions-7SIFGPYR.js → ListConnectorActions-B2YD24RX.js} +2 -2
- package/dist/{ListConnectors-TRKIWRVQ.js → ListConnectors-MYUEVJPT.js} +2 -2
- package/dist/{ListMaafApps-RT3PGZSJ.js → ListMaafApps-3W6W6UYP.js} +2 -2
- package/dist/{Login-HG5S7LBC.js → Login-7RW6OEST.js} +2 -2
- package/dist/{Logout-BUPHLOAH.js → Logout-IXK2TMRL.js} +2 -2
- package/dist/{MockFetch-4CYTSNJ7.js → MockFetch-THQJ4KFB.js} +2 -2
- package/dist/{NodeMsalAuthenticationProvider-HTH3V3G2.js → NodeMsalAuthenticationProvider-VVQ6CCZ5.js} +2 -2
- package/dist/Pack-IWU3PFQL.js +8 -0
- package/dist/PlayMaafApp-5H3DCJ2C.js +12 -0
- package/dist/{RefreshDataSource-ZFZJXJ5L.js → RefreshDataSource-XQT7LVMO.js} +2 -2
- package/dist/{RefreshGitAuth-5A3SX2HC.js → RefreshGitAuth-IQBAFR37.js} +2 -2
- package/dist/{RemoveDataSource-57JJLK5I.js → RemoveDataSource-PGPLMJUX.js} +2 -2
- package/dist/{ServicePrincipalAuthenticationProvider-SVKDZG6X.js → ServicePrincipalAuthenticationProvider-IZZRJFZQ.js} +2 -2
- package/dist/{SetSetting-RB3F7IXG.js → SetSetting-SEWDA4TF.js} +2 -2
- package/dist/{ShareLinkCreate-7BCDPWY6.js → ShareLinkCreate-T5FN47J2.js} +2 -2
- package/dist/{ShareLinkList-4BI3WMNN.js → ShareLinkList-6JCVEYNC.js} +2 -2
- package/dist/{ShareLinkRevoke-EEJVCRCY.js → ShareLinkRevoke-OH5DZDHR.js} +2 -2
- package/dist/{ShareList-LJDAEGI3.js → ShareList-QCEL7QNJ.js} +2 -2
- package/dist/{ShareMaafApp-QFRXLYUD.js → ShareMaafApp-6MKZ33HW.js} +2 -2
- package/dist/{TelemetrySettings-A474HALH.js → TelemetrySettings-RXPPIEVO.js} +2 -2
- package/dist/{UnshareMaafApp-423RNXCN.js → UnshareMaafApp-OSE2TOBJ.js} +2 -2
- package/dist/{chunk-YIKNM523.js → chunk-23T63QIT.js} +2 -2
- package/dist/chunk-3JIZGVCA.js +11 -0
- package/dist/chunk-47LJLFDF.js +11 -0
- package/dist/{chunk-G33Q5FWT.js → chunk-4LIR3ZYP.js} +243 -243
- package/dist/{chunk-MFPX2RFH.js → chunk-4VBFOKV6.js} +2 -2
- package/dist/chunk-6LKH5WE7.js +104 -0
- package/dist/{chunk-EV3TTTOT.js → chunk-6RSE3J4X.js} +2 -2
- package/dist/chunk-7BRIEYGR.js +20 -0
- package/dist/{chunk-UBTSW22U.js → chunk-7GGFN2IW.js} +2 -2
- package/dist/{chunk-QSB5P4RM.js → chunk-AQLFVAFU.js} +11 -11
- package/dist/{chunk-NP2KJOYC.js → chunk-EQCYKUEU.js} +2 -2
- package/dist/{chunk-7NXJAIJX.js → chunk-EX6IKPAO.js} +2 -2
- package/dist/{chunk-VFSTQAZ2.js → chunk-IQGMFWXB.js} +2 -2
- package/dist/{chunk-3BRAT6NP.js → chunk-KYL2Y5G4.js} +2 -2
- package/dist/{chunk-6FFQN2SO.js → chunk-LQ65CHNN.js} +2 -2
- package/dist/{chunk-U36HMOQW.js → chunk-PPW4XUZO.js} +9 -9
- package/dist/{chunk-5AUOEXAR.js → chunk-SNWTSI75.js} +2 -2
- package/dist/{chunk-S5HEU7XK.js → chunk-UNJJUCSA.js} +2 -2
- package/dist/{chunk-QAFCXGBD.js → chunk-VMSJG53Y.js} +2 -2
- package/package.json +4 -4
- package/dist/CreateMaafApp-TUO72CW7.js +0 -20
- package/dist/GetMaafApp-ELB5KMHW.js +0 -11
- package/dist/Pack-AHKC2MYF.js +0 -8
- package/dist/PlayMaafApp-LWKJU2IN.js +0 -12
- package/dist/ShowMaafApp-3KK6NUG2.js +0 -11
- package/dist/chunk-6MXOK2LG.js +0 -11
- package/dist/chunk-DREO7EYO.js +0 -20
- package/dist/chunk-VNEZZ3RI.js +0 -11
- package/dist/chunk-W7EWOZPO.js +0 -104
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __pathDirname } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __pathDirname(__filename);
|
|
7
|
+
import{a as iA}from"./chunk-HBLO3WDD.js";import{a as wd}from"./chunk-OL6CTXQR.js";import{a as bd,va as _d}from"./chunk-4LIR3ZYP.js";import{a as Zt,d as De}from"./chunk-RBG2H562.js";import{a as fd}from"./chunk-6RSE3J4X.js";import{c as yd,d as md,h as pi}from"./chunk-PVAIJSAI.js";import{a as Ea}from"./chunk-47LJLFDF.js";import{a as cd,c as Ne,i as hd,j as dd,k as pd,l as gd,m as Da}from"./chunk-PPW4XUZO.js";import{a as U,b as w,d as ld}from"./chunk-UT667QSU.js";var vd=w((RL,Xs)=>{Xs.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;Xs.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;Xs.exports.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/});var Aa=w((OL,Cd)=>{var Sa=vd();Cd.exports={isSpaceSeparator(t){return typeof t=="string"&&Sa.Space_Separator.test(t)},isIdStartChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t==="$"||t==="_"||Sa.ID_Start.test(t))},isIdContinueChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||t==="$"||t==="_"||t==="\u200C"||t==="\u200D"||Sa.ID_Continue.test(t))},isDigit(t){return typeof t=="string"&&/[0-9]/.test(t)},isHexDigit(t){return typeof t=="string"&&/[0-9A-Fa-f]/.test(t)}}});var Od=w((BL,Rd)=>{var Ue=Aa(),Ca,it,Qt,to,dr,Ct,$e,xa,gn;Rd.exports=function(e,r){Ca=String(e),it="start",Qt=[],to=0,dr=1,Ct=0,$e=void 0,xa=void 0,gn=void 0;do $e=sA(),aA[it]();while($e.type!=="eof");return typeof r=="function"?Fa({"":gn},"",r):gn};function Fa(t,e,r){let i=t[e];if(i!=null&&typeof i=="object")if(Array.isArray(i))for(let n=0;n<i.length;n++){let s=String(n),o=Fa(i,s,r);o===void 0?delete i[s]:Object.defineProperty(i,s,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(let n in i){let s=Fa(i,n,r);s===void 0?delete i[n]:Object.defineProperty(i,n,{value:s,writable:!0,enumerable:!0,configurable:!0})}return r.call(t,e,i)}var K,V,pn,Kt,ne;function sA(){for(K="default",V="",pn=!1,Kt=1;;){ne=Jt();let t=Td[K]();if(t)return t}}function Jt(){if(Ca[to])return String.fromCodePoint(Ca.codePointAt(to))}function B(){let t=Jt();return t===`
|
|
8
|
+
`?(dr++,Ct=0):t?Ct+=t.length:Ct++,t&&(to+=t.length),t}var Td={default(){switch(ne){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
|
|
9
|
+
`:case"\r":case"\u2028":case"\u2029":B();return;case"/":B(),K="comment";return;case void 0:return B(),Ee("eof")}if(Ue.isSpaceSeparator(ne)){B();return}return Td[it]()},comment(){switch(ne){case"*":B(),K="multiLineComment";return;case"/":B(),K="singleLineComment";return}throw Se(B())},multiLineComment(){switch(ne){case"*":B(),K="multiLineCommentAsterisk";return;case void 0:throw Se(B())}B()},multiLineCommentAsterisk(){switch(ne){case"*":B();return;case"/":B(),K="default";return;case void 0:throw Se(B())}B(),K="multiLineComment"},singleLineComment(){switch(ne){case`
|
|
10
|
+
`:case"\r":case"\u2028":case"\u2029":B(),K="default";return;case void 0:return B(),Ee("eof")}B()},value(){switch(ne){case"{":case"[":return Ee("punctuator",B());case"n":return B(),qr("ull"),Ee("null",null);case"t":return B(),qr("rue"),Ee("boolean",!0);case"f":return B(),qr("alse"),Ee("boolean",!1);case"-":case"+":B()==="-"&&(Kt=-1),K="sign";return;case".":V=B(),K="decimalPointLeading";return;case"0":V=B(),K="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":V=B(),K="decimalInteger";return;case"I":return B(),qr("nfinity"),Ee("numeric",1/0);case"N":return B(),qr("aN"),Ee("numeric",NaN);case'"':case"'":pn=B()==='"',V="",K="string";return}throw Se(B())},identifierNameStartEscape(){if(ne!=="u")throw Se(B());B();let t=Ta();switch(t){case"$":case"_":break;default:if(!Ue.isIdStartChar(t))throw Fd();break}V+=t,K="identifierName"},identifierName(){switch(ne){case"$":case"_":case"\u200C":case"\u200D":V+=B();return;case"\\":B(),K="identifierNameEscape";return}if(Ue.isIdContinueChar(ne)){V+=B();return}return Ee("identifier",V)},identifierNameEscape(){if(ne!=="u")throw Se(B());B();let t=Ta();switch(t){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!Ue.isIdContinueChar(t))throw Fd();break}V+=t,K="identifierName"},sign(){switch(ne){case".":V=B(),K="decimalPointLeading";return;case"0":V=B(),K="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":V=B(),K="decimalInteger";return;case"I":return B(),qr("nfinity"),Ee("numeric",Kt*(1/0));case"N":return B(),qr("aN"),Ee("numeric",NaN)}throw Se(B())},zero(){switch(ne){case".":V+=B(),K="decimalPoint";return;case"e":case"E":V+=B(),K="decimalExponent";return;case"x":case"X":V+=B(),K="hexadecimal";return}return Ee("numeric",Kt*0)},decimalInteger(){switch(ne){case".":V+=B(),K="decimalPoint";return;case"e":case"E":V+=B(),K="decimalExponent";return}if(Ue.isDigit(ne)){V+=B();return}return Ee("numeric",Kt*Number(V))},decimalPointLeading(){if(Ue.isDigit(ne)){V+=B(),K="decimalFraction";return}throw Se(B())},decimalPoint(){switch(ne){case"e":case"E":V+=B(),K="decimalExponent";return}if(Ue.isDigit(ne)){V+=B(),K="decimalFraction";return}return Ee("numeric",Kt*Number(V))},decimalFraction(){switch(ne){case"e":case"E":V+=B(),K="decimalExponent";return}if(Ue.isDigit(ne)){V+=B();return}return Ee("numeric",Kt*Number(V))},decimalExponent(){switch(ne){case"+":case"-":V+=B(),K="decimalExponentSign";return}if(Ue.isDigit(ne)){V+=B(),K="decimalExponentInteger";return}throw Se(B())},decimalExponentSign(){if(Ue.isDigit(ne)){V+=B(),K="decimalExponentInteger";return}throw Se(B())},decimalExponentInteger(){if(Ue.isDigit(ne)){V+=B();return}return Ee("numeric",Kt*Number(V))},hexadecimal(){if(Ue.isHexDigit(ne)){V+=B(),K="hexadecimalInteger";return}throw Se(B())},hexadecimalInteger(){if(Ue.isHexDigit(ne)){V+=B();return}return Ee("numeric",Kt*Number(V))},string(){switch(ne){case"\\":B(),V+=oA();return;case'"':if(pn)return B(),Ee("string",V);V+=B();return;case"'":if(!pn)return B(),Ee("string",V);V+=B();return;case`
|
|
11
|
+
`:case"\r":throw Se(B());case"\u2028":case"\u2029":lA(ne);break;case void 0:throw Se(B())}V+=B()},start(){switch(ne){case"{":case"[":return Ee("punctuator",B())}K="value"},beforePropertyName(){switch(ne){case"$":case"_":V=B(),K="identifierName";return;case"\\":B(),K="identifierNameStartEscape";return;case"}":return Ee("punctuator",B());case'"':case"'":pn=B()==='"',K="string";return}if(Ue.isIdStartChar(ne)){V+=B(),K="identifierName";return}throw Se(B())},afterPropertyName(){if(ne===":")return Ee("punctuator",B());throw Se(B())},beforePropertyValue(){K="value"},afterPropertyValue(){switch(ne){case",":case"}":return Ee("punctuator",B())}throw Se(B())},beforeArrayValue(){if(ne==="]")return Ee("punctuator",B());K="value"},afterArrayValue(){switch(ne){case",":case"]":return Ee("punctuator",B())}throw Se(B())},end(){throw Se(B())}};function Ee(t,e){return{type:t,value:e,line:dr,column:Ct}}function qr(t){for(let e of t){if(Jt()!==e)throw Se(B());B()}}function oA(){switch(Jt()){case"b":return B(),"\b";case"f":return B(),"\f";case"n":return B(),`
|
|
12
|
+
`;case"r":return B(),"\r";case"t":return B()," ";case"v":return B(),"\v";case"0":if(B(),Ue.isDigit(Jt()))throw Se(B());return"\0";case"x":return B(),uA();case"u":return B(),Ta();case`
|
|
13
|
+
`:case"\u2028":case"\u2029":return B(),"";case"\r":return B(),Jt()===`
|
|
14
|
+
`&&B(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw Se(B());case void 0:throw Se(B())}return B()}function uA(){let t="",e=Jt();if(!Ue.isHexDigit(e)||(t+=B(),e=Jt(),!Ue.isHexDigit(e)))throw Se(B());return t+=B(),String.fromCodePoint(parseInt(t,16))}function Ta(){let t="",e=4;for(;e-- >0;){let r=Jt();if(!Ue.isHexDigit(r))throw Se(B());t+=B()}return String.fromCodePoint(parseInt(t,16))}var aA={start(){if($e.type==="eof")throw jr();va()},beforePropertyName(){switch($e.type){case"identifier":case"string":xa=$e.value,it="afterPropertyName";return;case"punctuator":eo();return;case"eof":throw jr()}},afterPropertyName(){if($e.type==="eof")throw jr();it="beforePropertyValue"},beforePropertyValue(){if($e.type==="eof")throw jr();va()},beforeArrayValue(){if($e.type==="eof")throw jr();if($e.type==="punctuator"&&$e.value==="]"){eo();return}va()},afterPropertyValue(){if($e.type==="eof")throw jr();switch($e.value){case",":it="beforePropertyName";return;case"}":eo()}},afterArrayValue(){if($e.type==="eof")throw jr();switch($e.value){case",":it="beforeArrayValue";return;case"]":eo()}},end(){}};function va(){let t;switch($e.type){case"punctuator":switch($e.value){case"{":t={};break;case"[":t=[];break}break;case"null":case"boolean":case"numeric":case"string":t=$e.value;break}if(gn===void 0)gn=t;else{let e=Qt[Qt.length-1];Array.isArray(e)?e.push(t):Object.defineProperty(e,xa,{value:t,writable:!0,enumerable:!0,configurable:!0})}if(t!==null&&typeof t=="object")Qt.push(t),Array.isArray(t)?it="beforeArrayValue":it="beforePropertyName";else{let e=Qt[Qt.length-1];e==null?it="end":Array.isArray(e)?it="afterArrayValue":it="afterPropertyValue"}}function eo(){Qt.pop();let t=Qt[Qt.length-1];t==null?it="end":Array.isArray(t)?it="afterArrayValue":it="afterPropertyValue"}function Se(t){return ro(t===void 0?`JSON5: invalid end of input at ${dr}:${Ct}`:`JSON5: invalid character '${xd(t)}' at ${dr}:${Ct}`)}function jr(){return ro(`JSON5: invalid end of input at ${dr}:${Ct}`)}function Fd(){return Ct-=5,ro(`JSON5: invalid identifier character at ${dr}:${Ct}`)}function lA(t){console.warn(`JSON5: '${xd(t)}' in strings is not valid ECMAScript; consider escaping`)}function xd(t){let e={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(e[t])return e[t];if(t<" "){let r=t.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return t}function ro(t){let e=new SyntaxError(t);return e.lineNumber=dr,e.columnNumber=Ct,e}});var Id=w((IL,Bd)=>{var Ra=Aa();Bd.exports=function(e,r,i){let n=[],s="",o,u,a="",l;if(r!=null&&typeof r=="object"&&!Array.isArray(r)&&(i=r.space,l=r.quote,r=r.replacer),typeof r=="function")u=r;else if(Array.isArray(r)){o=[];for(let m of r){let E;typeof m=="string"?E=m:(typeof m=="number"||m instanceof String||m instanceof Number)&&(E=String(m)),E!==void 0&&o.indexOf(E)<0&&o.push(E)}}return i instanceof Number?i=Number(i):i instanceof String&&(i=String(i)),typeof i=="number"?i>0&&(i=Math.min(10,Math.floor(i)),a=" ".substr(0,i)):typeof i=="string"&&(a=i.substr(0,10)),f("",{"":e});function f(m,E){let b=E[m];switch(b!=null&&(typeof b.toJSON5=="function"?b=b.toJSON5(m):typeof b.toJSON=="function"&&(b=b.toJSON(m))),u&&(b=u.call(E,m,b)),b instanceof Number?b=Number(b):b instanceof String?b=String(b):b instanceof Boolean&&(b=b.valueOf()),b){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof b=="string")return c(b,!1);if(typeof b=="number")return String(b);if(typeof b=="object")return Array.isArray(b)?S(b):g(b)}function c(m){let E={"'":.1,'"':.2},b={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},v="";for(let T=0;T<m.length;T++){let L=m[T];switch(L){case"'":case'"':E[L]++,v+=L;continue;case"\0":if(Ra.isDigit(m[T+1])){v+="\\x00";continue}}if(b[L]){v+=b[L];continue}if(L<" "){let J=L.charCodeAt(0).toString(16);v+="\\x"+("00"+J).substring(J.length);continue}v+=L}let I=l||Object.keys(E).reduce((T,L)=>E[T]<E[L]?T:L);return v=v.replace(new RegExp(I,"g"),b[I]),I+v+I}function g(m){if(n.indexOf(m)>=0)throw TypeError("Converting circular structure to JSON5");n.push(m);let E=s;s=s+a;let b=o||Object.keys(m),v=[];for(let T of b){let L=f(T,m);if(L!==void 0){let J=y(T)+":";a!==""&&(J+=" "),J+=L,v.push(J)}}let I;if(v.length===0)I="{}";else{let T;if(a==="")T=v.join(","),I="{"+T+"}";else{let L=`,
|
|
15
|
+
`+s;T=v.join(L),I=`{
|
|
16
|
+
`+s+T+`,
|
|
17
|
+
`+E+"}"}}return n.pop(),s=E,I}function y(m){if(m.length===0)return c(m,!0);let E=String.fromCodePoint(m.codePointAt(0));if(!Ra.isIdStartChar(E))return c(m,!0);for(let b=E.length;b<m.length;b++)if(!Ra.isIdContinueChar(String.fromCodePoint(m.codePointAt(b))))return c(m,!0);return m}function S(m){if(n.indexOf(m)>=0)throw TypeError("Converting circular structure to JSON5");n.push(m);let E=s;s=s+a;let b=[];for(let I=0;I<m.length;I++){let T=f(String(I),m);b.push(T!==void 0?T:"null")}let v;if(b.length===0)v="[]";else if(a==="")v="["+b.join(",")+"]";else{let I=`,
|
|
18
|
+
`+s,T=b.join(I);v=`[
|
|
19
|
+
`+s+T+`,
|
|
20
|
+
`+E+"]"}return n.pop(),s=E,v}}});var Nd=w((PL,Pd)=>{var fA=Od(),cA=Id(),hA={parse:fA,stringify:cA};Pd.exports=hA});var qd=w((LL,kd)=>{var gA=typeof process=="object"&&process&&process.platform==="win32";kd.exports=gA?{sep:"\\"}:{sep:"/"}});var zd=w((kL,$d)=>{"use strict";$d.exports=Wd;function Wd(t,e,r){t instanceof RegExp&&(t=jd(t,r)),e instanceof RegExp&&(e=jd(e,r));var i=Ud(t,e,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+t.length,i[1]),post:r.slice(i[1]+e.length)}}function jd(t,e){var r=e.match(t);return r?r[0]:null}Wd.range=Ud;function Ud(t,e,r){var i,n,s,o,u,a=r.indexOf(t),l=r.indexOf(e,a+1),f=a;if(a>=0&&l>0){if(t===e)return[a,l];for(i=[],s=r.length;f>=0&&!u;)f==a?(i.push(f),a=r.indexOf(t,f+1)):i.length==1?u=[i.pop(),l]:(n=i.pop(),n<s&&(s=n,o=l),l=r.indexOf(e,f+1)),f=a<l&&a>=0?a:l;i.length&&(u=[s,o])}return u}});var Pa=w((qL,Qd)=>{var Gd=zd();Qd.exports=wA;var Hd="\0SLASH"+Math.random()+"\0",Vd="\0OPEN"+Math.random()+"\0",Ia="\0CLOSE"+Math.random()+"\0",Yd="\0COMMA"+Math.random()+"\0",Zd="\0PERIOD"+Math.random()+"\0",yA=1e5,mA=4e6;function Oa(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function bA(t){return t.split("\\\\").join(Hd).split("\\{").join(Vd).split("\\}").join(Ia).split("\\,").join(Yd).split("\\.").join(Zd)}function _A(t){return t.split(Hd).join("\\").split(Vd).join("{").split(Ia).join("}").split(Yd).join(",").split(Zd).join(".")}function Kd(t){if(!t)return[""];var e=[],r=Gd("{","}",t);if(!r)return t.split(",");var i=r.pre,n=r.body,s=r.post,o=i.split(",");o[o.length-1]+="{"+n+"}";var u=Kd(s);return s.length&&(o[o.length-1]+=u.shift(),o.push.apply(o,u)),e.push.apply(e,o),e}function wA(t,e){if(!t)return[];e=e||{};var r=e.max==null?yA:e.max,i=e.maxLength==null?mA:e.maxLength;return t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),Ba(bA(t),r,i,!0).map(_A)}function DA(t){return"{"+t+"}"}function EA(t){return/^-?0\d/.test(t)}function SA(t,e){return t<=e}function AA(t,e){return t>=e}function yn(t,e,r,i,n,s){for(var o=[],u=0,a=0;a<t.length;a++)for(var l=0;l<r.length;l++){if(o.length>=i)return o;var f=t[a]+e+r[l];if(!(s&&!f)){if(u+f.length>n)return o;o.push(f),u+=f.length}}return o}function vA(t,e,r,i){var n=t.split(/\.\./),s=[];if(n[0]===void 0||n[1]===void 0)return s;var o=Oa(n[0]),u=Oa(n[1]),a=Math.max(n[0].length,n[1].length),l=n.length===3&&n[2]!==void 0?Math.max(Math.abs(Oa(n[2])),1):1,f=SA,c=u<o;c&&(l*=-1,f=AA);for(var g=n.some(EA),y=0,S=o;f(S,u)&&s.length<r;S+=l){var m;if(e)m=String.fromCharCode(S),m==="\\"&&(m="");else if(m=String(S),g){var E=a-m.length;if(E>0){var b=new Array(E+1).join("0");S<0?m="-"+b+m.slice(1):m=b+m}}if(y+m.length>i)break;s.push(m),y+=m.length}return s}function Ba(t,e,r,i){for(var n=[""],s=!1,o=!0;;){let T=Gd("{","}",t);if(!T)return yn(n,t,[""],e,r,s);let L=T.pre;if(/\$$/.test(L)){if(n=yn(n,L+"{"+T.body+"}",[""],e,r,s&&!T.post.length),o=!1,!T.post.length)break;t=T.post;continue}var u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(T.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(T.body),l=u||a,f=T.body.indexOf(",")>=0;if(!l&&!f){if(T.post.match(/,(?!,).*\}/)){t=T.pre+"{"+T.body+Ia+T.post,i=!0;continue}return yn(n,L+"{"+T.body+"}"+T.post,[""],e,r,s)}o&&(s=i&&!l,o=!1);var c;if(l)c=vA(T.body,a,e,r);else{var g=Kd(T.body);if(g.length===1&&g[0]!==void 0&&(g=Ba(g[0],e,r,!1).map(DA),g.length===1)){if(n=yn(n,L+g[0],[""],e,r,s&&!T.post.length),!T.post.length)break;t=T.post;continue}for(var y=s&&!T.post.length&&!L,S=0;y&&S<n.length;S++)n[S]&&(y=!1);c=[];var m=0;e:for(var E=0;E<g.length;E++)for(var b=Ba(g[E],e,r,!1),v=0;v<b.length;v++){var I=b[v];if(!(y&&!I)){if(c.length>=e||m+I.length>r)break e;c.push(I),m+=I.length}}}if(n=yn(n,L,c,e,r,s&&!T.post.length),!T.post.length)break;t=T.post}return n}});var ip=w((WL,qa)=>{var ct=qa.exports=(t,e,r={})=>(no(e),!r.nocomment&&e.charAt(0)==="#"?!1:new gi(e,r).match(t));qa.exports=ct;var La=qd();ct.sep=La.sep;var nt=Symbol("globstar **");ct.GLOBSTAR=nt;var CA=Pa(),Jd={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},ka="[^/]",Na=ka+"*?",FA="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",TA="(?:(?!(?:\\/|^)\\.).)*?",tp=t=>t.split("").reduce((e,r)=>(e[r]=!0,e),{}),Xd=tp("().*{}+?[]^$\\!"),xA=tp("[.("),ep=/\/+/;ct.filter=(t,e={})=>(r,i,n)=>ct(r,t,e);var pr=(t,e={})=>{let r={};return Object.keys(t).forEach(i=>r[i]=t[i]),Object.keys(e).forEach(i=>r[i]=e[i]),r};ct.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return ct;let e=ct,r=(i,n,s)=>e(i,n,pr(t,s));return r.Minimatch=class extends e.Minimatch{constructor(n,s){super(n,pr(t,s))}},r.Minimatch.defaults=i=>e.defaults(pr(t,i)).Minimatch,r.filter=(i,n)=>e.filter(i,pr(t,n)),r.defaults=i=>e.defaults(pr(t,i)),r.makeRe=(i,n)=>e.makeRe(i,pr(t,n)),r.braceExpand=(i,n)=>e.braceExpand(i,pr(t,n)),r.match=(i,n,s)=>e.match(i,n,pr(t,s)),r};ct.braceExpand=(t,e)=>rp(t,e);var rp=(t,e={})=>(no(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:CA(t)),RA=1024*64,no=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>RA)throw new TypeError("pattern is too long")},Ma=Symbol("subparse");ct.makeRe=(t,e)=>new gi(t,e||{}).makeRe();ct.match=(t,e,r={})=>{let i=new gi(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};var OA=t=>t.replace(/\\(.)/g,"$1"),BA=t=>t.replace(/\\([^-\]])/g,"$1"),IA=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),PA=t=>t.replace(/[[\]\\]/g,"\\$&"),gi=class{constructor(e,r){no(e),r||(r={}),this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion!==void 0?r.maxGlobstarRecursion:200,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.make()}debug(){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();let i=this.globSet=this.braceExpand();r.debug&&(this.debug=(...n)=>console.error(...n)),this.debug(this.pattern,i),i=this.globParts=i.map(n=>n.split(ep)),this.debug(this.pattern,i),i=i.map((n,s,o)=>n.map(this.parse,this)),this.debug(this.pattern,i),i=i.filter(n=>n.indexOf(!1)===-1),this.debug(this.pattern,i),this.set=i}parseNegate(){if(this.options.nonegate)return;let e=this.pattern,r=!1,i=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++)r=!r,i++;i&&(this.pattern=e.slice(i)),this.negate=r}matchOne(e,r,i){return r.indexOf(nt)!==-1?this._matchGlobstar(e,r,i,0,0):this._matchOne(e,r,i,0,0)}_matchGlobstar(e,r,i,n,s){let o=-1;for(let v=s;v<r.length;v++)if(r[v]===nt){o=v;break}let u=-1;for(let v=r.length-1;v>=0;v--)if(r[v]===nt){u=v;break}let a=r.slice(s,o),l=i?r.slice(o+1):r.slice(o+1,u),f=i?[]:r.slice(u+1);if(a.length){let v=e.slice(n,n+a.length);if(!this._matchOne(v,a,i,0,0))return!1;n+=a.length}let c=0;if(f.length){if(f.length+n>e.length)return!1;let v=e.length-f.length;if(this._matchOne(e,f,i,v,0))c=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||!this._matchOne(e,f,i,v-1,0))return!1;c=f.length+1}}if(!l.length){let v=!!c;for(let I=n;I<e.length-c;I++){let T=String(e[I]);if(v=!0,T==="."||T===".."||!this.options.dot&&T.charAt(0)===".")return!1}return i||v}let g=[[[],0]],y=g[0],S=0,m=[0];for(let v of l)v===nt?(m.push(S),y=[[],0],g.push(y)):(y[0].push(v),S++);let E=g.length-1,b=e.length-c;for(let v of g)v[1]=b-(m[E--]+v[0].length);return!!this._matchGlobStarBodySections(e,g,n,0,i,0,!!c)}_matchGlobStarBodySections(e,r,i,n,s,o,u){let a=r[n];if(!a){for(let c=i;c<e.length;c++){u=!0;let g=e[c];if(g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return u}let[l,f]=a;for(;i<=f;){if(this._matchOne(e.slice(0,i+l.length),l,s,i,0)&&o<this.maxGlobstarRecursion){let y=this._matchGlobStarBodySections(e,r,i+l.length,n+1,s,o+1,u);if(y!==!1)return y}let g=e[i];if(g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1;i++}return s||null}_matchOne(e,r,i,n,s){let o,u,a,l;for(o=n,u=s,a=e.length,l=r.length;o<a&&u<l;o++,u++){this.debug("matchOne loop");let f=r[u],c=e[o];if(this.debug(r,f,c),f===!1||f===nt)return!1;let g;if(typeof f=="string"?(g=c===f,this.debug("string match",f,c,g)):(g=c.match(f),this.debug("pattern match",f,c,g)),!g)return!1}if(o===a&&u===l)return!0;if(o===a)return i;if(u===l)return o===a-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return rp(this.pattern,this.options)}parse(e,r){no(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return nt;if(e==="")return"";let n="",s=!1,o=!1,u=[],a=[],l,f=!1,c=-1,g=-1,y,S,m,E=e.charAt(0)===".",b=i.dot||E,v=()=>E?"":b?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",I=O=>O.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",T=()=>{if(l){switch(l){case"*":n+=Na,s=!0;break;case"?":n+=ka,s=!0;break;default:n+="\\"+l;break}this.debug("clearStateChar %j %j",l,n),l=!1}};for(let O=0,q;O<e.length&&(q=e.charAt(O));O++){if(this.debug("%s %s %s %j",e,O,n,q),o){if(q==="/")return!1;Xd[q]&&(n+="\\"),n+=q,o=!1;continue}switch(q){case"/":return!1;case"\\":if(f&&e.charAt(O+1)==="-"){n+=q;continue}T(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,O,n,q),f){this.debug(" in class"),q==="!"&&O===g+1&&(q="^"),n+=q;continue}if(q==="*"&&l==="*")continue;this.debug("call clearStateChar %j",l),T(),l=q,i.noext&&T();continue;case"(":{if(f){n+="(";continue}if(!l){n+="\\(";continue}let F={type:l,start:O-1,reStart:n.length,open:Jd[l].open,close:Jd[l].close};this.debug(this.pattern," ",F),u.push(F),n+=F.open,F.start===0&&F.type!=="!"&&(E=!0,n+=I(e.slice(O+1))),this.debug("plType %j %j",l,n),l=!1;continue}case")":{let F=u[u.length-1];if(f||!F){n+="\\)";continue}u.pop(),T(),s=!0,S=F,n+=S.close,S.type==="!"&&a.push(Object.assign(S,{reEnd:n.length}));continue}case"|":{let F=u[u.length-1];if(f||!F){n+="\\|";continue}T(),n+="|",F.start===0&&F.type!=="!"&&(E=!0,n+=I(e.slice(O+1)));continue}case"[":if(T(),f){n+="\\"+q;continue}f=!0,g=O,c=n.length,n+=q;continue;case"]":if(O===g+1||!f){n+="\\"+q;continue}y=e.substring(g+1,O);try{RegExp("["+PA(BA(y))+"]"),n+=q}catch{n=n.substring(0,c)+"(?:$.)"}s=!0,f=!1;continue;default:T(),Xd[q]&&!(q==="^"&&f)&&(n+="\\"),n+=q;break}}for(f&&(y=e.slice(g+1),m=this.parse(y,Ma),n=n.substring(0,c)+"\\["+m[0],s=s||m[1]),S=u.pop();S;S=u.pop()){let O;O=n.slice(S.reStart+S.open.length),this.debug("setting tail",n,S),O=O.replace(/((?:\\{2}){0,64})(\\?)\|/g,(F,N,M)=>(M||(M="\\"),N+N+M+"|")),this.debug(`tail=%j
|
|
21
|
+
%s`,O,O,S,n);let q=S.type==="*"?Na:S.type==="?"?ka:"\\"+S.type;s=!0,n=n.slice(0,S.reStart)+q+"\\("+O}T(),o&&(n+="\\\\");let L=xA[n.charAt(0)];for(let O=a.length-1;O>-1;O--){let q=a[O],F=n.slice(0,q.reStart),N=n.slice(q.reStart,q.reEnd-8),M=n.slice(q.reEnd),$=n.slice(q.reEnd-8,q.reEnd)+M,te=F.split(")").length,ue=F.split("(").length-te,ge=M;for(let ie=0;ie<ue;ie++)ge=ge.replace(/\)[+*?]?/,"");M=ge;let X=M===""&&r!==Ma?"(?:$|\\/)":"";n=F+N+M+X+$}if(n!==""&&s&&(n="(?=.)"+n),L&&(n=v()+n),r===Ma)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return OA(e);let J=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",J),{_glob:e,_src:n})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?Na:r.dot?FA:TA,n=r.nocase?"i":"",s=e.map(o=>(o=o.map(u=>typeof u=="string"?IA(u):u===nt?nt:u._src).reduce((u,a)=>(u[u.length-1]===nt&&a===nt||u.push(a),u),[]),o.forEach((u,a)=>{u!==nt||o[a-1]===nt||(a===0?o.length>1?o[a+1]="(?:\\/|"+i+"\\/)?"+o[a+1]:o[a]=i:a===o.length-1?o[a-1]+="(?:\\/|"+i+")?":(o[a-1]+="(?:\\/|\\/"+i+"\\/)"+o[a+1],o[a+1]=nt))}),o.filter(u=>u!==nt).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;La.sep!=="/"&&(e=e.split(La.sep).join("/")),e=e.split(ep),this.debug(this.pattern,"split",e);let n=this.set;this.debug(this.pattern,"set",n);let s;for(let o=e.length-1;o>=0&&(s=e[o],!s);o--);for(let o=0;o<n.length;o++){let u=n[o],a=e;if(i.matchBase&&u.length===1&&(a=[s]),this.matchOne(a,u,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return ct.defaults(e).Minimatch}};ct.Minimatch=gi});var ap=w((UL,up)=>{up.exports=op;var Wa=U("fs"),{EventEmitter:NA}=U("events"),{Minimatch:ja}=ip(),{resolve:MA}=U("path");function LA(t,e){return new Promise((r,i)=>{Wa.readdir(t,{withFileTypes:!0},(n,s)=>{if(n)switch(n.code){case"ENOTDIR":e?i(n):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(n);break}else r(s)})})}function np(t,e){return new Promise((r,i)=>{(e?Wa.stat:Wa.lstat)(t,(s,o)=>{s?s.code==="ENOENT"?r(e?np(t,!1):null):r(null):r(o)})})}async function*sp(t,e,r,i,n,s){let o=await LA(e+t,s);for(let u of o){let a=u.name;a===void 0&&(a=u,i=!0);let l=t+"/"+a,f=l.slice(1),c=e+"/"+f,g=null;(i||r)&&(g=await np(c,r)),!g&&u.name!==void 0&&(g=u),g===null&&(g={isDirectory:()=>!1}),g.isDirectory()?n(f)||(yield{relative:f,absolute:c,stats:g},yield*sp(l,e,r,i,n,!1)):yield{relative:f,absolute:c,stats:g}}}async function*kA(t,e,r,i){yield*sp("",t,e,r,i,!0)}function qA(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var so=class extends NA{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=qA(r||{}),this.matchers=[],this.options.pattern){let n=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=n.map(s=>new ja(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let n=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=n.map(s=>new ja(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let n=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=n.map(s=>new ja(s,{dot:!0}))}this.iterator=kA(MA(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,i&&(this._matches=[],this.on("match",n=>this._matches.push(this.options.absolute?n.absolute:n.relative)),this.on("error",n=>i(n)),this.on("end",()=>i(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let i=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(n=>n.match(i)))&&!this.ignoreMatchers.some(n=>n.match(i))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let i=e.value.relative,n=e.value.absolute;this.options.mark&&r&&(i+="/",n+="/"),this.options.stat?this.emit("match",{relative:i,absolute:n,stat:e.value.stats}):this.emit("match",{relative:i,absolute:n})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}};function op(t,e,r){return new so(t,e,r)}op.ReaddirGlob=so});var fp=w((oo,lp)=>{(function(t,e){typeof oo=="object"&&typeof lp<"u"?e(oo):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.async={}))})(oo,(function(t){"use strict";function e(d,...h){return(...p)=>d(...h,...p)}function r(d){return function(...h){var p=h.pop();return d.call(this,h,p)}}var i=typeof queueMicrotask=="function"&&queueMicrotask,n=typeof setImmediate=="function"&&setImmediate,s=typeof process=="object"&&typeof process.nextTick=="function";function o(d){setTimeout(d,0)}function u(d){return(h,...p)=>d(()=>h(...p))}var a;i?a=queueMicrotask:n?a=setImmediate:s?a=process.nextTick:a=o;var l=u(a);function f(d){return y(d)?function(...h){let p=h.pop(),D=d.apply(this,h);return c(D,p)}:r(function(h,p){var D;try{D=d.apply(this,h)}catch(A){return p(A)}if(D&&typeof D.then=="function")return c(D,p);p(null,D)})}function c(d,h){return d.then(p=>{g(h,null,p)},p=>{g(h,p&&(p instanceof Error||p.message)?p:new Error(p))})}function g(d,h,p){try{d(h,p)}catch(D){l(A=>{throw A},D)}}function y(d){return d[Symbol.toStringTag]==="AsyncFunction"}function S(d){return d[Symbol.toStringTag]==="AsyncGenerator"}function m(d){return typeof d[Symbol.asyncIterator]=="function"}function E(d){if(typeof d!="function")throw new Error("expected a function");return y(d)?f(d):d}function b(d,h){if(h||(h=d.length),!h)throw new Error("arity is undefined");function p(...D){return typeof D[h-1]=="function"?d.apply(this,D):new Promise((A,C)=>{D[h-1]=(x,...R)=>{if(x)return C(x);A(R.length>1?R:R[0])},d.apply(this,D)})}return p}function v(d){return function(p,...D){return b(function(C){var x=this;return d(p,(R,P)=>{E(R).apply(x,D.concat(P))},C)})}}function I(d,h,p,D){h=h||[];var A=[],C=0,x=E(p);return d(h,(R,P,W)=>{var ae=C++;x(R,(he,le)=>{A[ae]=le,W(he)})},R=>{D(R,A)})}function T(d){return d&&typeof d.length=="number"&&d.length>=0&&d.length%1===0}let L={};function J(d){function h(...p){if(d!==null){var D=d;d=null,D.apply(this,p)}}return Object.assign(h,d),h}function O(d){return d[Symbol.iterator]&&d[Symbol.iterator]()}function q(d){var h=-1,p=d.length;return function(){return++h<p?{value:d[h],key:h}:null}}function F(d){var h=-1;return function(){var D=d.next();return D.done?null:(h++,{value:D.value,key:h})}}function N(d){var h=d?Object.keys(d):[],p=-1,D=h.length;return function A(){var C=h[++p];return C==="__proto__"?A():p<D?{value:d[C],key:C}:null}}function M(d){if(T(d))return q(d);var h=O(d);return h?F(h):N(d)}function $(d){return function(...h){if(d===null)throw new Error("Callback was already called.");var p=d;d=null,p.apply(this,h)}}function te(d,h,p,D){let A=!1,C=!1,x=!1,R=0,P=0;function W(){R>=h||x||A||(x=!0,d.next().then(({value:le,done:yt})=>{if(!(C||A)){if(x=!1,yt){A=!0,R<=0&&D(null);return}R++,p(le,P,ae),P++,W()}}).catch(he))}function ae(le,yt){if(R-=1,!C){if(le)return he(le);if(le===!1){A=!0,C=!0;return}if(yt===L||A&&R<=0)return A=!0,D(null);W()}}function he(le){C||(x=!1,A=!0,D(le))}W()}var ue=d=>(h,p,D)=>{if(D=J(D),d<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!h)return D(null);if(S(h))return te(h,d,p,D);if(m(h))return te(h[Symbol.asyncIterator](),d,p,D);var A=M(h),C=!1,x=!1,R=0,P=!1;function W(he,le){if(!x)if(R-=1,he)C=!0,D(he);else if(he===!1)C=!0,x=!0;else{if(le===L||C&&R<=0)return C=!0,D(null);P||ae()}}function ae(){for(P=!0;R<d&&!C;){var he=A();if(he===null){C=!0,R<=0&&D(null);return}R+=1,p(he.value,he.key,$(W))}P=!1}ae()};function ge(d,h,p,D){return ue(h)(d,E(p),D)}var X=b(ge,4);function ie(d,h,p){p=J(p);var D=0,A=0,{length:C}=d,x=!1;C===0&&p(null);function R(P,W){P===!1&&(x=!0),x!==!0&&(P?p(P):(++A===C||W===L)&&p(null))}for(;D<C;D++)h(d[D],D,$(R))}function Te(d,h,p){return X(d,1/0,h,p)}function be(d,h,p){var D=T(d)?ie:Te;return D(d,E(h),p)}var ke=b(be,3);function la(d,h,p){return I(ke,d,h,p)}var Mr=b(la,3),vt=v(Mr);function cr(d,h,p){return X(d,1,h,p)}var ft=b(cr,3);function fa(d,h,p){return I(ft,d,h,p)}var ca=b(fa,3),Eh=v(ca);let li=Symbol("promiseCallback");function fi(){let d,h;function p(D,...A){if(D)return h(D);d(A.length>1?A:A[0])}return p[li]=new Promise((D,A)=>{d=D,h=A}),p}function ha(d,h,p){typeof h!="number"&&(p=h,h=null),p=J(p||fi());var D=Object.keys(d).length;if(!D)return p(null);h||(h=D);var A={},C=0,x=!1,R=!1,P=Object.create(null),W=[],ae=[],he={};Object.keys(d).forEach(j=>{var G=d[j];if(!Array.isArray(G)){le(j,[G]),ae.push(j);return}var fe=G.slice(0,G.length-1),xe=fe.length;if(xe===0){le(j,G),ae.push(j);return}he[j]=xe,fe.forEach(We=>{if(!d[We])throw new Error("async.auto task `"+j+"` has a non-existent dependency `"+We+"` in "+fe.join(", "));hi(We,()=>{xe--,xe===0&&le(j,G)})})}),de(),yt();function le(j,G){W.push(()=>hn(j,G))}function yt(){if(!x){if(W.length===0&&C===0)return p(null,A);for(;W.length&&C<h;){var j=W.shift();j()}}}function hi(j,G){var fe=P[j];fe||(fe=P[j]=[]),fe.push(G)}function Lr(j){var G=P[j]||[];G.forEach(fe=>fe()),yt()}function hn(j,G){if(!R){var fe=$((We,...mt)=>{if(C--,We===!1){x=!0;return}if(mt.length<2&&([mt]=mt),We){var di={};if(Object.keys(A).forEach(kr=>{di[kr]=A[kr]}),di[j]=mt,R=!0,P=Object.create(null),x)return;p(We,di)}else A[j]=mt,Lr(j)});C++;var xe=E(G[G.length-1]);G.length>1?xe(A,fe):xe(fe)}}function de(){for(var j,G=0;ae.length;)j=ae.pop(),G++,z(j).forEach(fe=>{--he[fe]===0&&ae.push(fe)});if(G!==D)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function z(j){var G=[];return Object.keys(d).forEach(fe=>{let xe=d[fe];Array.isArray(xe)&&xe.indexOf(j)>=0&&G.push(fe)}),G}return p[li]}var c1=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,h1=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,d1=/,/,p1=/(=.+)?(\s*)$/;function g1(d){let h="",p=0,D=d.indexOf("*/");for(;p<d.length;)if(d[p]==="/"&&d[p+1]==="/"){let A=d.indexOf(`
|
|
22
|
+
`,p);p=A===-1?d.length:A}else if(D!==-1&&d[p]==="/"&&d[p+1]==="*"){let A=d.indexOf("*/",p);A!==-1?(p=A+2,D=d.indexOf("*/",p)):(h+=d[p],p++)}else h+=d[p],p++;return h}function y1(d){let h=g1(d.toString()),p=h.match(c1);if(p||(p=h.match(h1)),!p)throw new Error(`could not parse args in autoInject
|
|
23
|
+
Source:
|
|
24
|
+
`+h);let[,D]=p;return D.replace(/\s/g,"").split(d1).map(A=>A.replace(p1,"").trim())}function Sh(d,h){var p={};return Object.keys(d).forEach(D=>{var A=d[D],C,x=y(A),R=!x&&A.length===1||x&&A.length===0;if(Array.isArray(A))C=[...A],A=C.pop(),p[D]=C.concat(C.length>0?P:A);else if(R)p[D]=A;else{if(C=y1(A),A.length===0&&!x&&C.length===0)throw new Error("autoInject task functions require explicit parameters.");x||C.pop(),p[D]=C.concat(P)}function P(W,ae){var he=C.map(le=>W[le]);he.push(ae),E(A)(...he)}}),ha(p,h)}class m1{constructor(){this.head=this.tail=null,this.length=0}removeLink(h){return h.prev?h.prev.next=h.next:this.head=h.next,h.next?h.next.prev=h.prev:this.tail=h.prev,h.prev=h.next=null,this.length-=1,h}empty(){for(;this.head;)this.shift();return this}insertAfter(h,p){p.prev=h,p.next=h.next,h.next?h.next.prev=p:this.tail=p,h.next=p,this.length+=1}insertBefore(h,p){p.prev=h.prev,p.next=h,h.prev?h.prev.next=p:this.head=p,h.prev=p,this.length+=1}unshift(h){this.head?this.insertBefore(this.head,h):Ah(this,h)}push(h){this.tail?this.insertAfter(this.tail,h):Ah(this,h)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var h=this.head;h;)yield h.data,h=h.next}remove(h){for(var p=this.head;p;){var{next:D}=p;h(p)&&this.removeLink(p),p=D}return this}}function Ah(d,h){d.length=1,d.head=d.tail=h}function da(d,h,p){if(h==null)h=1;else if(h===0)throw new RangeError("Concurrency must not be zero");var D=E(d),A=0,C=[];let x={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function R(z,j){x[z].push(j)}function P(z,j){let G=(...fe)=>{W(z,G),j(...fe)};x[z].push(G)}function W(z,j){if(!z)return Object.keys(x).forEach(G=>x[G]=[]);if(!j)return x[z]=[];x[z]=x[z].filter(G=>G!==j)}function ae(z,...j){x[z].forEach(G=>G(...j))}var he=!1;function le(z,j,G,fe){if(fe!=null&&typeof fe!="function")throw new Error("task callback must be a function");de.started=!0;var xe,We;function mt(kr,...dn){if(kr)return G?We(kr):xe();if(dn.length<=1)return xe(dn[0]);xe(dn)}var di=de._createTaskItem(z,G?mt:fe||mt);if(j?de._tasks.unshift(di):de._tasks.push(di),he||(he=!0,l(()=>{he=!1,de.process()})),G||!fe)return new Promise((kr,dn)=>{xe=kr,We=dn})}function yt(z){return function(j,...G){A-=1;for(var fe=0,xe=z.length;fe<xe;fe++){var We=z[fe],mt=C.indexOf(We);mt===0?C.shift():mt>0&&C.splice(mt,1),We.callback(j,...G),j!=null&&ae("error",j,We.data)}A<=de.concurrency-de.buffer&&ae("unsaturated"),de.idle()&&ae("drain"),de.process()}}function hi(z){return z.length===0&&de.idle()?(l(()=>ae("drain")),!0):!1}let Lr=z=>j=>{if(!j)return new Promise((G,fe)=>{P(z,(xe,We)=>{if(xe)return fe(xe);G(We)})});W(z),R(z,j)};var hn=!1,de={_tasks:new m1,_createTaskItem(z,j){return{data:z,callback:j}},*[Symbol.iterator](){yield*de._tasks[Symbol.iterator]()},concurrency:h,payload:p,buffer:h/4,started:!1,paused:!1,push(z,j){return Array.isArray(z)?hi(z)?void 0:z.map(G=>le(G,!1,!1,j)):le(z,!1,!1,j)},pushAsync(z,j){return Array.isArray(z)?hi(z)?void 0:z.map(G=>le(G,!1,!0,j)):le(z,!1,!0,j)},kill(){W(),de._tasks.empty()},unshift(z,j){return Array.isArray(z)?hi(z)?void 0:z.map(G=>le(G,!0,!1,j)):le(z,!0,!1,j)},unshiftAsync(z,j){return Array.isArray(z)?hi(z)?void 0:z.map(G=>le(G,!0,!0,j)):le(z,!0,!0,j)},remove(z){de._tasks.remove(z)},process(){if(!hn){for(hn=!0;!de.paused&&A<de.concurrency&&de._tasks.length;){var z=[],j=[],G=de._tasks.length;de.payload&&(G=Math.min(G,de.payload));for(var fe=0;fe<G;fe++){var xe=de._tasks.shift();z.push(xe),C.push(xe),j.push(xe.data)}A+=1,de._tasks.length===0&&ae("empty"),A===de.concurrency&&ae("saturated");var We=$(yt(z));D(j,We)}hn=!1}},length(){return de._tasks.length},running(){return A},workersList(){return C},idle(){return de._tasks.length+A===0},pause(){de.paused=!0},resume(){de.paused!==!1&&(de.paused=!1,l(de.process))}};return Object.defineProperties(de,{saturated:{writable:!1,value:Lr("saturated")},unsaturated:{writable:!1,value:Lr("unsaturated")},empty:{writable:!1,value:Lr("empty")},drain:{writable:!1,value:Lr("drain")},error:{writable:!1,value:Lr("error")}}),de}function vh(d,h){return da(d,1,h)}function Ch(d,h,p){return da(d,h,p)}function b1(d,h,p,D){D=J(D);var A=E(p);return ft(d,(C,x,R)=>{A(h,C,(P,W)=>{h=W,R(P)})},C=>D(C,h))}var hr=b(b1,4);function pa(...d){var h=d.map(E);return function(...p){var D=this,A=p[p.length-1];return typeof A=="function"?p.pop():A=fi(),hr(h,p,(C,x,R)=>{x.apply(D,C.concat((P,...W)=>{R(P,W)}))},(C,x)=>A(C,...x)),A[li]}}function Fh(...d){return pa(...d.reverse())}function _1(d,h,p,D){return I(ue(h),d,p,D)}var un=b(_1,4);function w1(d,h,p,D){var A=E(p);return un(d,h,(C,x)=>{A(C,(R,...P)=>R?x(R):x(R,P))},(C,x)=>{for(var R=[],P=0;P<x.length;P++)x[P]&&(R=R.concat(...x[P]));return D(C,R)})}var ci=b(w1,4);function D1(d,h,p){return ci(d,1/0,h,p)}var xs=b(D1,3);function E1(d,h,p){return ci(d,1,h,p)}var Rs=b(E1,3);function Th(...d){return function(...h){var p=h.pop();return p(null,...d)}}function Yt(d,h){return(p,D,A,C)=>{var x=!1,R;let P=E(A);p(D,(W,ae,he)=>{P(W,(le,yt)=>{if(le||le===!1)return he(le);if(d(yt)&&!R)return x=!0,R=h(!0,W),he(null,L);he()})},W=>{if(W)return C(W);C(null,x?R:h(!1))})}}function S1(d,h,p){return Yt(D=>D,(D,A)=>A)(ke,d,h,p)}var Os=b(S1,3);function A1(d,h,p,D){return Yt(A=>A,(A,C)=>C)(ue(h),d,p,D)}var Bs=b(A1,4);function v1(d,h,p){return Yt(D=>D,(D,A)=>A)(ue(1),d,h,p)}var Is=b(v1,3);function xh(d){return(h,...p)=>E(h)(...p,(D,...A)=>{typeof console=="object"&&(D?console.error&&console.error(D):console[d]&&A.forEach(C=>console[d](C)))})}var Rh=xh("dir");function C1(d,h,p){p=$(p);var D=E(d),A=E(h),C;function x(P,...W){if(P)return p(P);P!==!1&&(C=W,A(...W,R))}function R(P,W){if(P)return p(P);if(P!==!1){if(!W)return p(null,...C);D(x)}}return R(null,!0)}var an=b(C1,3);function Oh(d,h,p){let D=E(h);return an(d,(...A)=>{let C=A.pop();D(...A,(x,R)=>C(x,!R))},p)}function Bh(d){return(h,p,D)=>d(h,D)}function F1(d,h,p){return ke(d,Bh(E(h)),p)}var Ps=b(F1,3);function T1(d,h,p,D){return ue(h)(d,Bh(E(p)),D)}var ln=b(T1,4);function x1(d,h,p){return ln(d,1,h,p)}var fn=b(x1,3);function ga(d){return y(d)?d:function(...h){var p=h.pop(),D=!0;h.push((...A)=>{D?l(()=>p(...A)):p(...A)}),d.apply(this,h),D=!1}}function R1(d,h,p){return Yt(D=>!D,D=>!D)(ke,d,h,p)}var Ns=b(R1,3);function O1(d,h,p,D){return Yt(A=>!A,A=>!A)(ue(h),d,p,D)}var Ms=b(O1,4);function B1(d,h,p){return Yt(D=>!D,D=>!D)(ft,d,h,p)}var Ls=b(B1,3);function I1(d,h,p,D){var A=new Array(h.length);d(h,(C,x,R)=>{p(C,(P,W)=>{A[x]=!!W,R(P)})},C=>{if(C)return D(C);for(var x=[],R=0;R<h.length;R++)A[R]&&x.push(h[R]);D(null,x)})}function P1(d,h,p,D){var A=[];d(h,(C,x,R)=>{p(C,(P,W)=>{if(P)return R(P);W&&A.push({index:x,value:C}),R(P)})},C=>{if(C)return D(C);D(null,A.sort((x,R)=>x.index-R.index).map(x=>x.value))})}function ks(d,h,p,D){var A=T(h)?I1:P1;return A(d,h,E(p),D)}function N1(d,h,p){return ks(ke,d,h,p)}var qs=b(N1,3);function M1(d,h,p,D){return ks(ue(h),d,p,D)}var js=b(M1,4);function L1(d,h,p){return ks(ft,d,h,p)}var Ws=b(L1,3);function k1(d,h){var p=$(h),D=E(ga(d));function A(C){if(C)return p(C);C!==!1&&D(A)}return A()}var Ih=b(k1,2);function q1(d,h,p,D){var A=E(p);return un(d,h,(C,x)=>{A(C,(R,P)=>R?x(R):x(R,{key:P,val:C}))},(C,x)=>{for(var R={},{hasOwnProperty:P}=Object.prototype,W=0;W<x.length;W++)if(x[W]){var{key:ae}=x[W],{val:he}=x[W];P.call(R,ae)?R[ae].push(he):R[ae]=[he]}return D(C,R)})}var Us=b(q1,4);function Ph(d,h,p){return Us(d,1/0,h,p)}function Nh(d,h,p){return Us(d,1,h,p)}var Mh=xh("log");function j1(d,h,p,D){D=J(D);var A={},C=E(p);return ue(h)(d,(x,R,P)=>{C(x,R,(W,ae)=>{if(W)return P(W);A[R]=ae,P(W)})},x=>D(x,A))}var $s=b(j1,4);function Lh(d,h,p){return $s(d,1/0,h,p)}function kh(d,h,p){return $s(d,1,h,p)}function qh(d,h=p=>p){var p=Object.create(null),D=Object.create(null),A=E(d),C=r((x,R)=>{var P=h(...x);P in p?l(()=>R(null,...p[P])):P in D?D[P].push(R):(D[P]=[R],A(...x,(W,...ae)=>{W||(p[P]=ae);var he=D[P];delete D[P];for(var le=0,yt=he.length;le<yt;le++)he[le](W,...ae)}))});return C.memo=p,C.unmemoized=d,C}var zs;s?zs=process.nextTick:n?zs=setImmediate:zs=o;var jh=u(zs),ya=b((d,h,p)=>{var D=T(h)?[]:{};d(h,(A,C,x)=>{E(A)((R,...P)=>{P.length<2&&([P]=P),D[C]=P,x(R)})},A=>p(A,D))},3);function Wh(d,h){return ya(ke,d,h)}function Uh(d,h,p){return ya(ue(h),d,p)}function ma(d,h){var p=E(d);return da((D,A)=>{p(D[0],A)},h,1)}class W1{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(h){let p;for(;h>0&&ba(this.heap[h],this.heap[p=$h(h)]);){let D=this.heap[h];this.heap[h]=this.heap[p],this.heap[p]=D,h=p}}percDown(h){let p;for(;(p=U1(h))<this.heap.length&&(p+1<this.heap.length&&ba(this.heap[p+1],this.heap[p])&&(p=p+1),!ba(this.heap[h],this.heap[p]));){let D=this.heap[h];this.heap[h]=this.heap[p],this.heap[p]=D,h=p}}push(h){h.pushCount=++this.pushCount,this.heap.push(h),this.percUp(this.heap.length-1)}unshift(h){return this.heap.push(h)}shift(){let[h]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),h}toArray(){return[...this]}*[Symbol.iterator](){for(let h=0;h<this.heap.length;h++)yield this.heap[h].data}remove(h){let p=0;for(let D=0;D<this.heap.length;D++)h(this.heap[D])||(this.heap[p]=this.heap[D],p++);this.heap.splice(p);for(let D=$h(this.heap.length-1);D>=0;D--)this.percDown(D);return this}}function U1(d){return(d<<1)+1}function $h(d){return(d+1>>1)-1}function ba(d,h){return d.priority!==h.priority?d.priority<h.priority:d.pushCount<h.pushCount}function zh(d,h){var p=ma(d,h),{push:D,pushAsync:A}=p;p._tasks=new W1,p._createTaskItem=({data:x,priority:R},P)=>({data:x,priority:R,callback:P});function C(x,R){return Array.isArray(x)?x.map(P=>({data:P,priority:R})):{data:x,priority:R}}return p.push=function(x,R=0,P){return D(C(x,R),P)},p.pushAsync=function(x,R=0,P){return A(C(x,R),P)},delete p.unshift,delete p.unshiftAsync,p}function $1(d,h){if(h=J(h),!Array.isArray(d))return h(new TypeError("First argument to race must be an array of functions"));if(!d.length)return h();for(var p=0,D=d.length;p<D;p++)E(d[p])(h)}var Gh=b($1,2);function Gs(d,h,p,D){var A=[...d].reverse();return hr(A,h,p,D)}function Hs(d){var h=E(d);return r(function(D,A){return D.push((C,...x)=>{let R={};if(C&&(R.error=C),x.length>0){var P=x;x.length<=1&&([P]=x),R.value=P}A(null,R)}),h.apply(this,D)})}function Hh(d){var h;return Array.isArray(d)?h=d.map(Hs):(h={},Object.keys(d).forEach(p=>{h[p]=Hs.call(this,d[p])})),h}function _a(d,h,p,D){let A=E(p);return ks(d,h,(C,x)=>{A(C,(R,P)=>{x(R,!P)})},D)}function z1(d,h,p){return _a(ke,d,h,p)}var Vh=b(z1,3);function G1(d,h,p,D){return _a(ue(h),d,p,D)}var Yh=b(G1,4);function H1(d,h,p){return _a(ft,d,h,p)}var Zh=b(H1,3);function Kh(d){return function(){return d}}let wa=5,Qh=0;function Vs(d,h,p){var D={times:wa,intervalFunc:Kh(Qh)};if(arguments.length<3&&typeof d=="function"?(p=h||fi(),h=d):(V1(D,d),p=p||fi()),typeof h!="function")throw new Error("Invalid arguments for async.retry");var A=E(h),C=1;function x(){A((R,...P)=>{R!==!1&&(R&&C++<D.times&&(typeof D.errorFilter!="function"||D.errorFilter(R))?setTimeout(x,D.intervalFunc(C-1)):p(R,...P))})}return x(),p[li]}function V1(d,h){if(typeof h=="object")d.times=+h.times||wa,d.intervalFunc=typeof h.interval=="function"?h.interval:Kh(+h.interval||Qh),d.errorFilter=h.errorFilter;else if(typeof h=="number"||typeof h=="string")d.times=+h||wa;else throw new Error("Invalid arguments for async.retry")}function Jh(d,h){h||(h=d,d=null);let p=d&&d.arity||h.length;y(h)&&(p+=1);var D=E(h);return r((A,C)=>{(A.length<p-1||C==null)&&(A.push(C),C=fi());function x(R){D(...A,R)}return d?Vs(d,x,C):Vs(x,C),C[li]})}function Xh(d,h){return ya(ft,d,h)}function Y1(d,h,p){return Yt(Boolean,D=>D)(ke,d,h,p)}var Ys=b(Y1,3);function Z1(d,h,p,D){return Yt(Boolean,A=>A)(ue(h),d,p,D)}var Zs=b(Z1,4);function K1(d,h,p){return Yt(Boolean,D=>D)(ft,d,h,p)}var Ks=b(K1,3);function Q1(d,h,p){var D=E(h);return Mr(d,(C,x)=>{D(C,(R,P)=>{if(R)return x(R);x(R,{value:C,criteria:P})})},(C,x)=>{if(C)return p(C);p(null,x.sort(A).map(R=>R.value))});function A(C,x){var R=C.criteria,P=x.criteria;return R<P?-1:R>P?1:0}}var ed=b(Q1,3);function td(d,h,p){var D=E(d);return r((A,C)=>{var x=!1,R;function P(){var W=d.name||"anonymous",ae=new Error('Callback function "'+W+'" timed out.');ae.code="ETIMEDOUT",p&&(ae.info=p),x=!0,C(ae)}A.push((...W)=>{x||(C(...W),clearTimeout(R))}),R=setTimeout(P,h),D(...A)})}function J1(d){for(var h=Array(d);d--;)h[d]=d;return h}function Qs(d,h,p,D){var A=E(p);return un(J1(d),h,A,D)}function rd(d,h,p){return Qs(d,1/0,h,p)}function id(d,h,p){return Qs(d,1,h,p)}function nd(d,h,p,D){arguments.length<=3&&typeof h=="function"&&(D=p,p=h,h=Array.isArray(d)?[]:{}),D=J(D||fi());var A=E(p);return ke(d,(C,x,R)=>{A(h,C,x,R)},C=>D(C,h)),D[li]}function X1(d,h){var p=null,D;return fn(d,(A,C)=>{E(A)((x,...R)=>{if(x===!1)return C(x);R.length<2?[D]=R:D=R,p=x,C(x?null:{})})},()=>h(p,D))}var sd=b(X1);function od(d){return(...h)=>(d.unmemoized||d)(...h)}function eA(d,h,p){p=$(p);var D=E(h),A=E(d),C=[];function x(P,...W){if(P)return p(P);C=W,P!==!1&&A(R)}function R(P,W){if(P)return p(P);if(P!==!1){if(!W)return p(null,...C);D(x)}}return A(R)}var cn=b(eA,3);function ud(d,h,p){let D=E(d);return cn(A=>D((C,x)=>A(C,!x)),h,p)}function tA(d,h){if(h=J(h),!Array.isArray(d))return h(new Error("First argument to waterfall must be an array of functions"));if(!d.length)return h();var p=0;function D(C){var x=E(d[p++]);x(...C,$(A))}function A(C,...x){if(C!==!1){if(C||p===d.length)return h(C,...x);D(x)}}D([])}var ad=b(tA),rA={apply:e,applyEach:vt,applyEachSeries:Eh,asyncify:f,auto:ha,autoInject:Sh,cargo:vh,cargoQueue:Ch,compose:Fh,concat:xs,concatLimit:ci,concatSeries:Rs,constant:Th,detect:Os,detectLimit:Bs,detectSeries:Is,dir:Rh,doUntil:Oh,doWhilst:an,each:Ps,eachLimit:ln,eachOf:ke,eachOfLimit:X,eachOfSeries:ft,eachSeries:fn,ensureAsync:ga,every:Ns,everyLimit:Ms,everySeries:Ls,filter:qs,filterLimit:js,filterSeries:Ws,forever:Ih,groupBy:Ph,groupByLimit:Us,groupBySeries:Nh,log:Mh,map:Mr,mapLimit:un,mapSeries:ca,mapValues:Lh,mapValuesLimit:$s,mapValuesSeries:kh,memoize:qh,nextTick:jh,parallel:Wh,parallelLimit:Uh,priorityQueue:zh,queue:ma,race:Gh,reduce:hr,reduceRight:Gs,reflect:Hs,reflectAll:Hh,reject:Vh,rejectLimit:Yh,rejectSeries:Zh,retry:Vs,retryable:Jh,seq:pa,series:Xh,setImmediate:l,some:Ys,someLimit:Zs,someSeries:Ks,sortBy:ed,timeout:td,times:rd,timesLimit:Qs,timesSeries:id,transform:nd,tryEach:sd,unmemoize:od,until:ud,waterfall:ad,whilst:cn,all:Ns,allLimit:Ms,allSeries:Ls,any:Ys,anyLimit:Zs,anySeries:Ks,find:Os,findLimit:Bs,findSeries:Is,flatMap:xs,flatMapLimit:ci,flatMapSeries:Rs,forEach:Ps,forEachSeries:fn,forEachLimit:ln,forEachOf:ke,forEachOfSeries:ft,forEachOfLimit:X,inject:hr,foldl:hr,foldr:Gs,select:qs,selectLimit:js,selectSeries:Ws,wrapSync:f,during:cn,doDuring:an};t.all=Ns,t.allLimit=Ms,t.allSeries=Ls,t.any=Ys,t.anyLimit=Zs,t.anySeries=Ks,t.apply=e,t.applyEach=vt,t.applyEachSeries=Eh,t.asyncify=f,t.auto=ha,t.autoInject=Sh,t.cargo=vh,t.cargoQueue=Ch,t.compose=Fh,t.concat=xs,t.concatLimit=ci,t.concatSeries=Rs,t.constant=Th,t.default=rA,t.detect=Os,t.detectLimit=Bs,t.detectSeries=Is,t.dir=Rh,t.doDuring=an,t.doUntil=Oh,t.doWhilst=an,t.during=cn,t.each=Ps,t.eachLimit=ln,t.eachOf=ke,t.eachOfLimit=X,t.eachOfSeries=ft,t.eachSeries=fn,t.ensureAsync=ga,t.every=Ns,t.everyLimit=Ms,t.everySeries=Ls,t.filter=qs,t.filterLimit=js,t.filterSeries=Ws,t.find=Os,t.findLimit=Bs,t.findSeries=Is,t.flatMap=xs,t.flatMapLimit=ci,t.flatMapSeries=Rs,t.foldl=hr,t.foldr=Gs,t.forEach=Ps,t.forEachLimit=ln,t.forEachOf=ke,t.forEachOfLimit=X,t.forEachOfSeries=ft,t.forEachSeries=fn,t.forever=Ih,t.groupBy=Ph,t.groupByLimit=Us,t.groupBySeries=Nh,t.inject=hr,t.log=Mh,t.map=Mr,t.mapLimit=un,t.mapSeries=ca,t.mapValues=Lh,t.mapValuesLimit=$s,t.mapValuesSeries=kh,t.memoize=qh,t.nextTick=jh,t.parallel=Wh,t.parallelLimit=Uh,t.priorityQueue=zh,t.queue=ma,t.race=Gh,t.reduce=hr,t.reduceRight=Gs,t.reflect=Hs,t.reflectAll=Hh,t.reject=Vh,t.rejectLimit=Yh,t.rejectSeries=Zh,t.retry=Vs,t.retryable=Jh,t.select=qs,t.selectLimit=js,t.selectSeries=Ws,t.seq=pa,t.series=Xh,t.setImmediate=l,t.some=Ys,t.someLimit=Zs,t.someSeries=Ks,t.sortBy=ed,t.timeout=td,t.times=rd,t.timesLimit=Qs,t.timesSeries=id,t.transform=nd,t.tryEach=sd,t.unmemoize=od,t.until=ud,t.waterfall=ad,t.whilst=cn,t.wrapSync=f,Object.defineProperty(t,"__esModule",{value:!0})}))});var hp=w(($L,cp)=>{var gr=U("constants"),jA=process.cwd,uo=null,WA=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return uo||(uo=jA.call(process)),uo};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Ua=process.chdir,process.chdir=function(t){uo=null,Ua.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ua));var Ua;cp.exports=UA;function UA(t){gr.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=i(t.chmod),t.fchmod=i(t.fchmod),t.lchmod=i(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=n(t.chmodSync),t.fchmodSync=n(t.fchmodSync),t.lchmodSync=n(t.lchmodSync),t.stat=u(t.stat),t.fstat=u(t.fstat),t.lstat=u(t.lstat),t.statSync=a(t.statSync),t.fstatSync=a(t.fstatSync),t.lstatSync=a(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(f,c,g){g&&process.nextTick(g)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(f,c,g,y){y&&process.nextTick(y)},t.lchownSync=function(){}),WA==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:(function(f){function c(g,y,S){var m=Date.now(),E=0;f(g,y,function b(v){if(v&&(v.code==="EACCES"||v.code==="EPERM"||v.code==="EBUSY")&&Date.now()-m<6e4){setTimeout(function(){t.stat(y,function(I,T){I&&I.code==="ENOENT"?f(g,y,b):S(v)})},E),E<100&&(E+=10);return}S&&S(v)})}return Object.setPrototypeOf&&Object.setPrototypeOf(c,f),c})(t.rename)),t.read=typeof t.read!="function"?t.read:(function(f){function c(g,y,S,m,E,b){var v;if(b&&typeof b=="function"){var I=0;v=function(T,L,J){if(T&&T.code==="EAGAIN"&&I<10)return I++,f.call(t,g,y,S,m,E,v);b.apply(this,arguments)}}return f.call(t,g,y,S,m,E,v)}return Object.setPrototypeOf&&Object.setPrototypeOf(c,f),c})(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:(function(f){return function(c,g,y,S,m){for(var E=0;;)try{return f.call(t,c,g,y,S,m)}catch(b){if(b.code==="EAGAIN"&&E<10){E++;continue}throw b}}})(t.readSync);function e(f){f.lchmod=function(c,g,y){f.open(c,gr.O_WRONLY|gr.O_SYMLINK,g,function(S,m){if(S){y&&y(S);return}f.fchmod(m,g,function(E){f.close(m,function(b){y&&y(E||b)})})})},f.lchmodSync=function(c,g){var y=f.openSync(c,gr.O_WRONLY|gr.O_SYMLINK,g),S=!0,m;try{m=f.fchmodSync(y,g),S=!1}finally{if(S)try{f.closeSync(y)}catch{}else f.closeSync(y)}return m}}function r(f){gr.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(c,g,y,S){f.open(c,gr.O_SYMLINK,function(m,E){if(m){S&&S(m);return}f.futimes(E,g,y,function(b){f.close(E,function(v){S&&S(b||v)})})})},f.lutimesSync=function(c,g,y){var S=f.openSync(c,gr.O_SYMLINK),m,E=!0;try{m=f.futimesSync(S,g,y),E=!1}finally{if(E)try{f.closeSync(S)}catch{}else f.closeSync(S)}return m}):f.futimes&&(f.lutimes=function(c,g,y,S){S&&process.nextTick(S)},f.lutimesSync=function(){})}function i(f){return f&&function(c,g,y){return f.call(t,c,g,function(S){l(S)&&(S=null),y&&y.apply(this,arguments)})}}function n(f){return f&&function(c,g){try{return f.call(t,c,g)}catch(y){if(!l(y))throw y}}}function s(f){return f&&function(c,g,y,S){return f.call(t,c,g,y,function(m){l(m)&&(m=null),S&&S.apply(this,arguments)})}}function o(f){return f&&function(c,g,y){try{return f.call(t,c,g,y)}catch(S){if(!l(S))throw S}}}function u(f){return f&&function(c,g,y){typeof g=="function"&&(y=g,g=null);function S(m,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),y&&y.apply(this,arguments)}return g?f.call(t,c,g,S):f.call(t,c,S)}}function a(f){return f&&function(c,g){var y=g?f.call(t,c,g):f.call(t,c);return y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),y}}function l(f){if(!f||f.code==="ENOSYS")return!0;var c=!process.getuid||process.getuid()!==0;return!!(c&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var gp=w((zL,pp)=>{var dp=U("stream").Stream;pp.exports=$A;function $A(t){return{ReadStream:e,WriteStream:r};function e(i,n){if(!(this instanceof e))return new e(i,n);dp.call(this);var s=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,n=n||{};for(var o=Object.keys(n),u=0,a=o.length;u<a;u++){var l=o[u];this[l]=n[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(f,c){if(f){s.emit("error",f),s.readable=!1;return}s.fd=c,s.emit("open",c),s._read()})}function r(i,n){if(!(this instanceof r))return new r(i,n);dp.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,n=n||{};for(var s=Object.keys(n),o=0,u=s.length;o<u;o++){var a=s[o];this[a]=n[a]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var mp=w((GL,yp)=>{"use strict";yp.exports=GA;var zA=Object.getPrototypeOf||function(t){return t.__proto__};function GA(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:zA(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var Ha=w((HL,Ga)=>{var Oe=U("fs"),HA=hp(),VA=gp(),YA=mp(),ao=U("util"),Ye,fo;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Ye=Symbol.for("graceful-fs.queue"),fo=Symbol.for("graceful-fs.previous")):(Ye="___graceful-fs.queue",fo="___graceful-fs.previous");function ZA(){}function wp(t,e){Object.defineProperty(t,Ye,{get:function(){return e}})}var Wr=ZA;ao.debuglog?Wr=ao.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Wr=function(){var t=ao.format.apply(ao,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
25
|
+
GFS4: `),console.error(t)});Oe[Ye]||(bp=global[Ye]||[],wp(Oe,bp),Oe.close=(function(t){function e(r,i){return t.call(Oe,r,function(n){n||_p(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,fo,{value:t}),e})(Oe.close),Oe.closeSync=(function(t){function e(r){t.apply(Oe,arguments),_p()}return Object.defineProperty(e,fo,{value:t}),e})(Oe.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Wr(Oe[Ye]),U("assert").equal(Oe[Ye].length,0)}));var bp;global[Ye]||wp(global,Oe[Ye]);Ga.exports=$a(YA(Oe));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Oe.__patched&&(Ga.exports=$a(Oe),Oe.__patched=!0);function $a(t){HA(t),t.gracefulify=$a,t.createReadStream=L,t.createWriteStream=J;var e=t.readFile;t.readFile=r;function r(F,N,M){return typeof N=="function"&&(M=N,N=null),$(F,N,M);function $(te,ue,ge,X){return e(te,ue,function(ie){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?yi([$,[te,ue,ge],ie,X||Date.now(),Date.now()]):typeof ge=="function"&&ge.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=n;function n(F,N,M,$){return typeof M=="function"&&($=M,M=null),te(F,N,M,$);function te(ue,ge,X,ie,Te){return i(ue,ge,X,function(be){be&&(be.code==="EMFILE"||be.code==="ENFILE")?yi([te,[ue,ge,X,ie],be,Te||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(F,N,M,$){return typeof M=="function"&&($=M,M=null),te(F,N,M,$);function te(ue,ge,X,ie,Te){return s(ue,ge,X,function(be){be&&(be.code==="EMFILE"||be.code==="ENFILE")?yi([te,[ue,ge,X,ie],be,Te||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var u=t.copyFile;u&&(t.copyFile=a);function a(F,N,M,$){return typeof M=="function"&&($=M,M=0),te(F,N,M,$);function te(ue,ge,X,ie,Te){return u(ue,ge,X,function(be){be&&(be.code==="EMFILE"||be.code==="ENFILE")?yi([te,[ue,ge,X,ie],be,Te||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}var l=t.readdir;t.readdir=c;var f=/^v[0-5]\./;function c(F,N,M){typeof N=="function"&&(M=N,N=null);var $=f.test(process.version)?function(ge,X,ie,Te){return l(ge,te(ge,X,ie,Te))}:function(ge,X,ie,Te){return l(ge,X,te(ge,X,ie,Te))};return $(F,N,M);function te(ue,ge,X,ie){return function(Te,be){Te&&(Te.code==="EMFILE"||Te.code==="ENFILE")?yi([$,[ue,ge,X],Te,ie||Date.now(),Date.now()]):(be&&be.sort&&be.sort(),typeof X=="function"&&X.call(this,Te,be))}}}if(process.version.substr(0,4)==="v0.8"){var g=VA(t);b=g.ReadStream,I=g.WriteStream}var y=t.ReadStream;y&&(b.prototype=Object.create(y.prototype),b.prototype.open=v);var S=t.WriteStream;S&&(I.prototype=Object.create(S.prototype),I.prototype.open=T),Object.defineProperty(t,"ReadStream",{get:function(){return b},set:function(F){b=F},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return I},set:function(F){I=F},enumerable:!0,configurable:!0});var m=b;Object.defineProperty(t,"FileReadStream",{get:function(){return m},set:function(F){m=F},enumerable:!0,configurable:!0});var E=I;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(F){E=F},enumerable:!0,configurable:!0});function b(F,N){return this instanceof b?(y.apply(this,arguments),this):b.apply(Object.create(b.prototype),arguments)}function v(){var F=this;q(F.path,F.flags,F.mode,function(N,M){N?(F.autoClose&&F.destroy(),F.emit("error",N)):(F.fd=M,F.emit("open",M),F.read())})}function I(F,N){return this instanceof I?(S.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function T(){var F=this;q(F.path,F.flags,F.mode,function(N,M){N?(F.destroy(),F.emit("error",N)):(F.fd=M,F.emit("open",M))})}function L(F,N){return new t.ReadStream(F,N)}function J(F,N){return new t.WriteStream(F,N)}var O=t.open;t.open=q;function q(F,N,M,$){return typeof M=="function"&&($=M,M=null),te(F,N,M,$);function te(ue,ge,X,ie,Te){return O(ue,ge,X,function(be,ke){be&&(be.code==="EMFILE"||be.code==="ENFILE")?yi([te,[ue,ge,X,ie],be,Te||Date.now(),Date.now()]):typeof ie=="function"&&ie.apply(this,arguments)})}}return t}function yi(t){Wr("ENQUEUE",t[0].name,t[1]),Oe[Ye].push(t),za()}var lo;function _p(){for(var t=Date.now(),e=0;e<Oe[Ye].length;++e)Oe[Ye][e].length>2&&(Oe[Ye][e][3]=t,Oe[Ye][e][4]=t);za()}function za(){if(clearTimeout(lo),lo=void 0,Oe[Ye].length!==0){var t=Oe[Ye].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void 0)Wr("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){Wr("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,i)}else{var u=Date.now()-s,a=Math.max(s-n,1),l=Math.min(a*1.2,100);u>=l?(Wr("RETRY",e.name,r),e.apply(null,r.concat([n]))):Oe[Ye].push(t)}lo===void 0&&(lo=setTimeout(za,0))}}});var co=w((VL,Dp)=>{"use strict";var Pt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Pt.writable=t=>Pt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Pt.readable=t=>Pt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Pt.duplex=t=>Pt.writable(t)&&Pt.readable(t);Pt.transform=t=>Pt.duplex(t)&&typeof t._transform=="function";Dp.exports=Pt});var mn=w((YL,Va)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Va.exports={nextTick:KA}:Va.exports=process;function KA(t,e,r,i){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,s,o;switch(n){case 0:case 1:return process.nextTick(t);case 2:return process.nextTick(function(){t.call(null,e)});case 3:return process.nextTick(function(){t.call(null,e,r)});case 4:return process.nextTick(function(){t.call(null,e,r,i)});default:for(s=new Array(n-1),o=0;o<s.length;)s[o++]=arguments[o];return process.nextTick(function(){t.apply(null,s)})}}});var Sp=w((ZL,Ep)=>{var QA={}.toString;Ep.exports=Array.isArray||function(t){return QA.call(t)=="[object Array]"}});var Ya=w((KL,Ap)=>{Ap.exports=U("stream")});var bn=w((Za,Cp)=>{var ho=U("buffer"),Xt=ho.Buffer;function vp(t,e){for(var r in t)e[r]=t[r]}Xt.from&&Xt.alloc&&Xt.allocUnsafe&&Xt.allocUnsafeSlow?Cp.exports=ho:(vp(ho,Za),Za.Buffer=mi);function mi(t,e,r){return Xt(t,e,r)}vp(Xt,mi);mi.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Xt(t,e,r)};mi.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=Xt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};mi.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Xt(t)};mi.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ho.SlowBuffer(t)}});var bi=w(Xe=>{function JA(t){return Array.isArray?Array.isArray(t):po(t)==="[object Array]"}Xe.isArray=JA;function XA(t){return typeof t=="boolean"}Xe.isBoolean=XA;function ev(t){return t===null}Xe.isNull=ev;function tv(t){return t==null}Xe.isNullOrUndefined=tv;function rv(t){return typeof t=="number"}Xe.isNumber=rv;function iv(t){return typeof t=="string"}Xe.isString=iv;function nv(t){return typeof t=="symbol"}Xe.isSymbol=nv;function sv(t){return t===void 0}Xe.isUndefined=sv;function ov(t){return po(t)==="[object RegExp]"}Xe.isRegExp=ov;function uv(t){return typeof t=="object"&&t!==null}Xe.isObject=uv;function av(t){return po(t)==="[object Date]"}Xe.isDate=av;function lv(t){return po(t)==="[object Error]"||t instanceof Error}Xe.isError=lv;function fv(t){return typeof t=="function"}Xe.isFunction=fv;function cv(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}Xe.isPrimitive=cv;Xe.isBuffer=U("buffer").Buffer.isBuffer;function po(t){return Object.prototype.toString.call(t)}});var Fp=w((JL,Ka)=>{typeof Object.create=="function"?Ka.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Ka.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var _i=w((XL,Ja)=>{try{if(Qa=U("util"),typeof Qa.inherits!="function")throw"";Ja.exports=Qa.inherits}catch{Ja.exports=Fp()}var Qa});var xp=w((ek,Xa)=>{"use strict";function hv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Tp=bn().Buffer,_n=U("util");function dv(t,e,r){t.copy(e,r)}Xa.exports=(function(){function t(){hv(this,t),this.head=null,this.tail=null,this.length=0}return t.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},t.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},t.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}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.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},t.prototype.concat=function(r){if(this.length===0)return Tp.alloc(0);for(var i=Tp.allocUnsafe(r>>>0),n=this.head,s=0;n;)dv(n.data,i,s),s+=n.data.length,n=n.next;return i},t})();_n&&_n.inspect&&_n.inspect.custom&&(Xa.exports.prototype[_n.inspect.custom]=function(){var t=_n.inspect({length:this.length});return this.constructor.name+" "+t})});var el=w((tk,Rp)=>{"use strict";var go=mn();function pv(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,go.nextTick(yo,this,t)):go.nextTick(yo,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,go.nextTick(yo,r,s)):go.nextTick(yo,r,s):e&&e(s)}),this)}function gv(){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 yo(t,e){t.emit("error",e)}Rp.exports={destroy:pv,undestroy:gv}});var Bp=w((rk,Op)=>{Op.exports=U("util").deprecate});var rl=w((ik,jp)=>{"use strict";var Ur=mn();jp.exports=Le;function Pp(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Iv(e,t)}}var yv=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Ur.nextTick,wi;Le.WritableState=Dn;var Np=Object.create(bi());Np.inherits=_i();var mv={deprecate:Bp()},Mp=Ya(),bo=bn().Buffer,bv=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function _v(t){return bo.from(t)}function wv(t){return bo.isBuffer(t)||t instanceof bv}var Lp=el();Np.inherits(Le,Mp);function Dv(){}function Dn(t,e){wi=wi||$r(),t=t||{};var r=e instanceof wi;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,n=t.writableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=s,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 o=t.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(u){Tv(e,u)},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 Pp(this)}Dn.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Dn.prototype,"buffer",{get:mv.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var mo;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(mo=Function.prototype[Symbol.hasInstance],Object.defineProperty(Le,Symbol.hasInstance,{value:function(t){return mo.call(this,t)?!0:this!==Le?!1:t&&t._writableState instanceof Dn}})):mo=function(t){return t instanceof this};function Le(t){if(wi=wi||$r(),!mo.call(Le,this)&&!(this instanceof wi))return new Le(t);this._writableState=new Dn(t,this),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Mp.call(this)}Le.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Ev(t,e){var r=new Error("write after end");t.emit("error",r),Ur.nextTick(e,r)}function Sv(t,e,r,i){var n=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!e.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),Ur.nextTick(i,s),n=!1),n}Le.prototype.write=function(t,e,r){var i=this._writableState,n=!1,s=!i.objectMode&&wv(t);return s&&!bo.isBuffer(t)&&(t=_v(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=Dv),i.ended?Ev(this,r):(s||Sv(this,i,t,r))&&(i.pendingcb++,n=vv(this,i,s,t,e,r)),n};Le.prototype.cork=function(){var t=this._writableState;t.corked++};Le.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&kp(this,t))};Le.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this};function Av(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=bo.from(e,r)),e}Object.defineProperty(Le.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function vv(t,e,r,i,n,s){if(!r){var o=Av(e,i,n);i!==o&&(r=!0,n="buffer",i=o)}var u=e.objectMode?1:i.length;e.length+=u;var a=e.length<e.highWaterMark;if(a||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:s,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else tl(t,e,!1,u,i,n,s);return a}function tl(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function Cv(t,e,r,i,n){--e.pendingcb,r?(Ur.nextTick(n,i),Ur.nextTick(wn,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(n(i),t._writableState.errorEmitted=!0,t.emit("error",i),wn(t,e))}function Fv(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function Tv(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(Fv(r),e)Cv(t,r,i,e,n);else{var s=qp(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&kp(t,r),i?yv(Ip,t,r,s,n):Ip(t,r,s,n)}}function Ip(t,e,r,i){r||xv(t,e),e.pendingcb--,i(),wn(t,e)}function xv(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function kp(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),s=e.corkedRequestsFree;s.entry=r;for(var o=0,u=!0;r;)n[o]=r,r.isBuf||(u=!1),r=r.next,o+=1;n.allBuffers=u,tl(t,e,!0,e.length,n,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new Pp(e),e.bufferedRequestCount=0}else{for(;r;){var a=r.chunk,l=r.encoding,f=r.callback,c=e.objectMode?1:a.length;if(tl(t,e,!1,c,a,l,f),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}Le.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))};Le.prototype._writev=null;Le.prototype.end=function(t,e,r){var i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||Bv(this,i,r)};function qp(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function Rv(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),wn(t,e)})}function Ov(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,Ur.nextTick(Rv,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function wn(t,e){var r=qp(e);return r&&(Ov(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),r}function Bv(t,e,r){e.ending=!0,wn(t,e),r&&(e.finished?Ur.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Iv(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(Le.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});Le.prototype.destroy=Lp.destroy;Le.prototype._undestroy=Lp.undestroy;Le.prototype._destroy=function(t,e){this.end(),e(t)}});var $r=w((nk,zp)=>{"use strict";var Wp=mn(),Pv=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};zp.exports=er;var Up=Object.create(bi());Up.inherits=_i();var $p=sl(),nl=rl();Up.inherits(er,$p);for(il=Pv(nl.prototype),_o=0;_o<il.length;_o++)wo=il[_o],er.prototype[wo]||(er.prototype[wo]=nl.prototype[wo]);var il,wo,_o;function er(t){if(!(this instanceof er))return new er(t);$p.call(this,t),nl.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",Nv)}Object.defineProperty(er.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Nv(){this.allowHalfOpen||this._writableState.ended||Wp.nextTick(Mv,this)}function Mv(t){t.end()}Object.defineProperty(er.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}});er.prototype._destroy=function(t,e){this.push(null),this.end(),Wp.nextTick(e,t)}});var al=w(Hp=>{"use strict";var ul=bn().Buffer,Gp=ul.isEncoding||function(t){switch(t=""+t,t&&t.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 Lv(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function kv(t){var e=Lv(t);if(typeof e!="string"&&(ul.isEncoding===Gp||!Gp(t)))throw new Error("Unknown encoding: "+t);return e||t}Hp.StringDecoder=En;function En(t){this.encoding=kv(t);var e;switch(this.encoding){case"utf16le":this.text=zv,this.end=Gv,e=4;break;case"utf8":this.fillLast=Wv,e=4;break;case"base64":this.text=Hv,this.end=Vv,e=3;break;default:this.write=Yv,this.end=Zv;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ul.allocUnsafe(e)}En.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};En.prototype.end=$v;En.prototype.text=Uv;En.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function ol(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function qv(t,e,r){var i=e.length-1;if(i<r)return 0;var n=ol(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=ol(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=ol(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function jv(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function Wv(t){var e=this.lastTotal-this.lastNeed,r=jv(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function Uv(t,e){var r=qv(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function $v(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function zv(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function Gv(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function Hv(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function Vv(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Yv(t){return t.toString(this.encoding)}function Zv(t){return t&&t.length?this.write(t):""}});var sl=w((uk,n0)=>{"use strict";var Ei=mn();n0.exports=Ae;var Kv=Sp(),Sn;Ae.ReadableState=Xp;var ok=U("events").EventEmitter,Kp=function(t,e){return t.listeners(e).length},dl=Ya(),An=bn().Buffer,Qv=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Jv(t){return An.from(t)}function Xv(t){return An.isBuffer(t)||t instanceof Qv}var Qp=Object.create(bi());Qp.inherits=_i();var ll=U("util"),ye=void 0;ll&&ll.debuglog?ye=ll.debuglog("stream"):ye=function(){};var eC=xp(),Jp=el(),Di;Qp.inherits(Ae,dl);var fl=["error","close","destroy","pause","resume"];function tC(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):Kv(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Xp(t,e){Sn=Sn||$r(),t=t||{};var r=e instanceof Sn;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,n=t.readableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new eC,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=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Di||(Di=al().StringDecoder),this.decoder=new Di(t.encoding),this.encoding=t.encoding)}function Ae(t){if(Sn=Sn||$r(),!(this instanceof Ae))return new Ae(t);this._readableState=new Xp(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),dl.call(this)}Object.defineProperty(Ae.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Ae.prototype.destroy=Jp.destroy;Ae.prototype._undestroy=Jp.undestroy;Ae.prototype._destroy=function(t,e){this.push(null),e(t)};Ae.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=An.from(t,e),e=""),i=!0),e0(this,t,e,!1,i)};Ae.prototype.unshift=function(t){return e0(this,t,null,!0,!1)};function e0(t,e,r,i,n){var s=t._readableState;if(e===null)s.reading=!1,sC(t,s);else{var o;n||(o=rC(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==An.prototype&&(e=Jv(e)),i?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):cl(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?cl(t,s,e,!1):t0(t,s)):cl(t,s,e,!1))):i||(s.reading=!1)}return iC(s)}function cl(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&Do(t)),t0(t,e)}function rC(t,e){var r;return!Xv(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function iC(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}Ae.prototype.isPaused=function(){return this._readableState.flowing===!1};Ae.prototype.setEncoding=function(t){return Di||(Di=al().StringDecoder),this._readableState.decoder=new Di(t),this._readableState.encoding=t,this};var Vp=8388608;function nC(t){return t>=Vp?t=Vp:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Yp(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=nC(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}Ae.prototype.read=function(t){ye("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return ye("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?hl(this):Do(this),null;if(t=Yp(t,e),t===0&&e.ended)return e.length===0&&hl(this),null;var i=e.needReadable;ye("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,ye("length less than watermark",i)),e.ended||e.reading?(i=!1,ye("reading or ended",i)):i&&(ye("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Yp(r,e)));var n;return t>0?n=r0(t,e):n=null,n===null?(e.needReadable=!0,t=0):e.length-=t,e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&hl(this)),n!==null&&this.emit("data",n),n};function sC(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,Do(t)}}function Do(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(ye("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Ei.nextTick(Zp,t):Zp(t))}function Zp(t){ye("emit readable"),t.emit("readable"),pl(t)}function t0(t,e){e.readingMore||(e.readingMore=!0,Ei.nextTick(oC,t,e))}function oC(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(ye("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}Ae.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))};Ae.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,ye("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=n?u:E;i.endEmitted?Ei.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(b,v){ye("onunpipe"),b===r&&v&&v.hasUnpiped===!1&&(v.hasUnpiped=!0,f())}function u(){ye("onend"),t.end()}var a=uC(r);t.on("drain",a);var l=!1;function f(){ye("cleanup"),t.removeListener("close",S),t.removeListener("finish",m),t.removeListener("drain",a),t.removeListener("error",y),t.removeListener("unpipe",o),r.removeListener("end",u),r.removeListener("end",E),r.removeListener("data",g),l=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&a()}var c=!1;r.on("data",g);function g(b){ye("ondata"),c=!1;var v=t.write(b);v===!1&&!c&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&i0(i.pipes,t)!==-1)&&!l&&(ye("false write response, pause",i.awaitDrain),i.awaitDrain++,c=!0),r.pause())}function y(b){ye("onerror",b),E(),t.removeListener("error",y),Kp(t,"error")===0&&t.emit("error",b)}tC(t,"error",y);function S(){t.removeListener("finish",m),E()}t.once("close",S);function m(){ye("onfinish"),t.removeListener("close",S),E()}t.once("finish",m);function E(){ye("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(ye("pipe resume"),r.resume()),t};function uC(t){return function(){var e=t._readableState;ye("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&Kp(t,"data")&&(e.flowing=!0,pl(t))}}Ae.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<n;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=i0(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};Ae.prototype.on=function(t,e){var r=dl.prototype.on.call(this,t,e);if(t==="data")this._readableState.flowing!==!1&&this.resume();else if(t==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&Do(this):Ei.nextTick(aC,this))}return r};Ae.prototype.addListener=Ae.prototype.on;function aC(t){ye("readable nexttick read 0"),t.read(0)}Ae.prototype.resume=function(){var t=this._readableState;return t.flowing||(ye("resume"),t.flowing=!0,lC(this,t)),this};function lC(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ei.nextTick(fC,t,e))}function fC(t,e){e.reading||(ye("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),pl(t),e.flowing&&!e.reading&&t.read(0)}Ae.prototype.pause=function(){return ye("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ye("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function pl(t){var e=t._readableState;for(ye("flow",e.flowing);e.flowing&&t.read()!==null;);}Ae.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(ye("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(ye("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var u=e.push(o);u||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(o){return function(){return t[o].apply(t,arguments)}})(n));for(var s=0;s<fl.length;s++)t.on(fl[s],this.emit.bind(this,fl[s]));return this._read=function(o){ye("wrapped _read",o),i&&(i=!1,t.resume())},this};Object.defineProperty(Ae.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Ae._fromList=r0;function r0(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.head.data:r=e.buffer.concat(e.length),e.buffer.clear()):r=cC(t,e.buffer,e.decoder),r}function cC(t,e,r){var i;return t<e.head.data.length?(i=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):t===e.head.data.length?i=e.shift():i=r?hC(t,e):dC(t,e),i}function hC(t,e){var r=e.head,i=1,n=r.data;for(t-=n.length;r=r.next;){var s=r.data,o=t>s.length?s.length:t;if(o===s.length?n+=s:n+=s.slice(0,t),t-=o,t===0){o===s.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=s.slice(o));break}++i}return e.length-=i,n}function dC(t,e){var r=An.allocUnsafe(t),i=e.head,n=1;for(i.data.copy(r),t-=i.data.length;i=i.next;){var s=i.data,o=t>s.length?s.length:t;if(s.copy(r,r.length-t,0,o),t-=o,t===0){o===s.length?(++n,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=s.slice(o));break}++n}return e.length-=n,r}function hl(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Ei.nextTick(pC,e,t))}function pC(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function i0(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var gl=w((ak,u0)=>{"use strict";u0.exports=tr;var Eo=$r(),o0=Object.create(bi());o0.inherits=_i();o0.inherits(tr,Eo);function gC(t,e){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,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function tr(t){if(!(this instanceof tr))return new tr(t);Eo.call(this,t),this._transformState={afterTransform:gC.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",yC)}function yC(){var t=this;typeof this._flush=="function"?this._flush(function(e,r){s0(t,e,r)}):s0(this,null,null)}tr.prototype.push=function(t,e){return this._transformState.needTransform=!1,Eo.prototype.push.call(this,t,e)};tr.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")};tr.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};tr.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};tr.prototype._destroy=function(t,e){var r=this;Eo.prototype._destroy.call(this,t,function(i){e(i),r.emit("close")})};function s0(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}});var c0=w((lk,f0)=>{"use strict";f0.exports=vn;var a0=gl(),l0=Object.create(bi());l0.inherits=_i();l0.inherits(vn,a0);function vn(t){if(!(this instanceof vn))return new vn(t);a0.call(this,t)}vn.prototype._transform=function(t,e,r){r(null,t)}});var h0=w((Ze,So)=>{var Nt=U("stream");process.env.READABLE_STREAM==="disable"&&Nt?(So.exports=Nt,Ze=So.exports=Nt.Readable,Ze.Readable=Nt.Readable,Ze.Writable=Nt.Writable,Ze.Duplex=Nt.Duplex,Ze.Transform=Nt.Transform,Ze.PassThrough=Nt.PassThrough,Ze.Stream=Nt):(Ze=So.exports=sl(),Ze.Stream=Nt||Ze,Ze.Readable=Ze,Ze.Writable=rl(),Ze.Duplex=$r(),Ze.Transform=gl(),Ze.PassThrough=c0())});var p0=w((fk,d0)=>{d0.exports=h0().PassThrough});var b0=w((ck,m0)=>{var g0=U("util"),Co=p0();m0.exports={Readable:Ao,Writable:vo};g0.inherits(Ao,Co);g0.inherits(vo,Co);function y0(t,e,r){t[e]=function(){return delete t[e],r.apply(this,arguments),this[e].apply(this,arguments)}}function Ao(t,e){if(!(this instanceof Ao))return new Ao(t,e);Co.call(this,e),y0(this,"_read",function(){var r=t.call(this,e),i=this.emit.bind(this,"error");r.on("error",i),r.pipe(this)}),this.emit("readable")}function vo(t,e){if(!(this instanceof vo))return new vo(t,e);Co.call(this,e),y0(this,"_write",function(){var r=t.call(this,e),i=this.emit.bind(this,"error");r.on("error",i),this.pipe(r)}),this.emit("writable")}});var yl=w((hk,_0)=>{_0.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var r=t.length;if(r<=1)return t;var i="";if(r>4&&t[3]==="\\"){var n=t[2];(n==="?"||n===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),i="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),i+s.join("/")}});var ml=w((dk,w0)=>{function mC(t){return t}w0.exports=mC});var E0=w((pk,D0)=>{function bC(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}D0.exports=bC});var v0=w((gk,A0)=>{var _C=E0(),S0=Math.max;function wC(t,e,r){return e=S0(e===void 0?t.length-1:e,0),function(){for(var i=arguments,n=-1,s=S0(i.length-e,0),o=Array(s);++n<s;)o[n]=i[e+n];n=-1;for(var u=Array(e+1);++n<e;)u[n]=i[n];return u[e]=r(o),_C(t,this,u)}}A0.exports=wC});var F0=w((yk,C0)=>{function DC(t){return function(){return t}}C0.exports=DC});var bl=w((mk,T0)=>{var EC=typeof global=="object"&&global&&global.Object===Object&&global;T0.exports=EC});var Si=w((bk,x0)=>{var SC=bl(),AC=typeof self=="object"&&self&&self.Object===Object&&self,vC=SC||AC||Function("return this")();x0.exports=vC});var Fo=w((_k,R0)=>{var CC=Si(),FC=CC.Symbol;R0.exports=FC});var P0=w((wk,I0)=>{var O0=Fo(),B0=Object.prototype,TC=B0.hasOwnProperty,xC=B0.toString,Cn=O0?O0.toStringTag:void 0;function RC(t){var e=TC.call(t,Cn),r=t[Cn];try{t[Cn]=void 0;var i=!0}catch{}var n=xC.call(t);return i&&(e?t[Cn]=r:delete t[Cn]),n}I0.exports=RC});var M0=w((Dk,N0)=>{var OC=Object.prototype,BC=OC.toString;function IC(t){return BC.call(t)}N0.exports=IC});var Fn=w((Ek,q0)=>{var L0=Fo(),PC=P0(),NC=M0(),MC="[object Null]",LC="[object Undefined]",k0=L0?L0.toStringTag:void 0;function kC(t){return t==null?t===void 0?LC:MC:k0&&k0 in Object(t)?PC(t):NC(t)}q0.exports=kC});var Tn=w((Sk,j0)=>{function qC(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}j0.exports=qC});var _l=w((Ak,W0)=>{var jC=Fn(),WC=Tn(),UC="[object AsyncFunction]",$C="[object Function]",zC="[object GeneratorFunction]",GC="[object Proxy]";function HC(t){if(!WC(t))return!1;var e=jC(t);return e==$C||e==zC||e==UC||e==GC}W0.exports=HC});var $0=w((vk,U0)=>{var VC=Si(),YC=VC["__core-js_shared__"];U0.exports=YC});var H0=w((Ck,G0)=>{var wl=$0(),z0=(function(){var t=/[^.]+$/.exec(wl&&wl.keys&&wl.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function ZC(t){return!!z0&&z0 in t}G0.exports=ZC});var Y0=w((Fk,V0)=>{var KC=Function.prototype,QC=KC.toString;function JC(t){if(t!=null){try{return QC.call(t)}catch{}try{return t+""}catch{}}return""}V0.exports=JC});var K0=w((Tk,Z0)=>{var XC=_l(),eF=H0(),tF=Tn(),rF=Y0(),iF=/[\\^$.*+?()[\]{}|]/g,nF=/^\[object .+?Constructor\]$/,sF=Function.prototype,oF=Object.prototype,uF=sF.toString,aF=oF.hasOwnProperty,lF=RegExp("^"+uF.call(aF).replace(iF,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fF(t){if(!tF(t)||eF(t))return!1;var e=XC(t)?lF:nF;return e.test(rF(t))}Z0.exports=fF});var J0=w((xk,Q0)=>{function cF(t,e){return t?.[e]}Q0.exports=cF});var xn=w((Rk,X0)=>{var hF=K0(),dF=J0();function pF(t,e){var r=dF(t,e);return hF(r)?r:void 0}X0.exports=pF});var tg=w((Ok,eg)=>{var gF=xn(),yF=(function(){try{var t=gF(Object,"defineProperty");return t({},"",{}),t}catch{}})();eg.exports=yF});var ng=w((Bk,ig)=>{var mF=F0(),rg=tg(),bF=ml(),_F=rg?function(t,e){return rg(t,"toString",{configurable:!0,enumerable:!1,value:mF(e),writable:!0})}:bF;ig.exports=_F});var og=w((Ik,sg)=>{var wF=800,DF=16,EF=Date.now;function SF(t){var e=0,r=0;return function(){var i=EF(),n=DF-(i-r);if(r=i,n>0){if(++e>=wF)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}sg.exports=SF});var ag=w((Pk,ug)=>{var AF=ng(),vF=og(),CF=vF(AF);ug.exports=CF});var To=w((Nk,lg)=>{var FF=ml(),TF=v0(),xF=ag();function RF(t,e){return xF(TF(t,e,FF),t+"")}lg.exports=RF});var xo=w((Mk,fg)=>{function OF(t,e){return t===e||t!==t&&e!==e}fg.exports=OF});var Dl=w((Lk,cg)=>{var BF=9007199254740991;function IF(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=BF}cg.exports=IF});var Ro=w((kk,hg)=>{var PF=_l(),NF=Dl();function MF(t){return t!=null&&NF(t.length)&&!PF(t)}hg.exports=MF});var El=w((qk,dg)=>{var LF=9007199254740991,kF=/^(?:0|[1-9]\d*)$/;function qF(t,e){var r=typeof t;return e=e??LF,!!e&&(r=="number"||r!="symbol"&&kF.test(t))&&t>-1&&t%1==0&&t<e}dg.exports=qF});var gg=w((jk,pg)=>{var jF=xo(),WF=Ro(),UF=El(),$F=Tn();function zF(t,e,r){if(!$F(r))return!1;var i=typeof e;return(i=="number"?WF(r)&&UF(e,r.length):i=="string"&&e in r)?jF(r[e],t):!1}pg.exports=zF});var mg=w((Wk,yg)=>{function GF(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}yg.exports=GF});var Ai=w((Uk,bg)=>{function HF(t){return t!=null&&typeof t=="object"}bg.exports=HF});var wg=w(($k,_g)=>{var VF=Fn(),YF=Ai(),ZF="[object Arguments]";function KF(t){return YF(t)&&VF(t)==ZF}_g.exports=KF});var Sl=w((zk,Sg)=>{var Dg=wg(),QF=Ai(),Eg=Object.prototype,JF=Eg.hasOwnProperty,XF=Eg.propertyIsEnumerable,eT=Dg((function(){return arguments})())?Dg:function(t){return QF(t)&&JF.call(t,"callee")&&!XF.call(t,"callee")};Sg.exports=eT});var Al=w((Gk,Ag)=>{var tT=Array.isArray;Ag.exports=tT});var Cg=w((Hk,vg)=>{function rT(){return!1}vg.exports=rT});var Rg=w((Rn,vi)=>{var iT=Si(),nT=Cg(),xg=typeof Rn=="object"&&Rn&&!Rn.nodeType&&Rn,Fg=xg&&typeof vi=="object"&&vi&&!vi.nodeType&&vi,sT=Fg&&Fg.exports===xg,Tg=sT?iT.Buffer:void 0,oT=Tg?Tg.isBuffer:void 0,uT=oT||nT;vi.exports=uT});var Bg=w((Vk,Og)=>{var aT=Fn(),lT=Dl(),fT=Ai(),cT="[object Arguments]",hT="[object Array]",dT="[object Boolean]",pT="[object Date]",gT="[object Error]",yT="[object Function]",mT="[object Map]",bT="[object Number]",_T="[object Object]",wT="[object RegExp]",DT="[object Set]",ET="[object String]",ST="[object WeakMap]",AT="[object ArrayBuffer]",vT="[object DataView]",CT="[object Float32Array]",FT="[object Float64Array]",TT="[object Int8Array]",xT="[object Int16Array]",RT="[object Int32Array]",OT="[object Uint8Array]",BT="[object Uint8ClampedArray]",IT="[object Uint16Array]",PT="[object Uint32Array]",ve={};ve[CT]=ve[FT]=ve[TT]=ve[xT]=ve[RT]=ve[OT]=ve[BT]=ve[IT]=ve[PT]=!0;ve[cT]=ve[hT]=ve[AT]=ve[dT]=ve[vT]=ve[pT]=ve[gT]=ve[yT]=ve[mT]=ve[bT]=ve[_T]=ve[wT]=ve[DT]=ve[ET]=ve[ST]=!1;function NT(t){return fT(t)&&lT(t.length)&&!!ve[aT(t)]}Og.exports=NT});var vl=w((Yk,Ig)=>{function MT(t){return function(e){return t(e)}}Ig.exports=MT});var Ng=w((On,Ci)=>{var LT=bl(),Pg=typeof On=="object"&&On&&!On.nodeType&&On,Bn=Pg&&typeof Ci=="object"&&Ci&&!Ci.nodeType&&Ci,kT=Bn&&Bn.exports===Pg,Cl=kT&<.process,qT=(function(){try{var t=Bn&&Bn.require&&Bn.require("util").types;return t||Cl&&Cl.binding&&Cl.binding("util")}catch{}})();Ci.exports=qT});var qg=w((Zk,kg)=>{var jT=Bg(),WT=vl(),Mg=Ng(),Lg=Mg&&Mg.isTypedArray,UT=Lg?WT(Lg):jT;kg.exports=UT});var Wg=w((Kk,jg)=>{var $T=mg(),zT=Sl(),GT=Al(),HT=Rg(),VT=El(),YT=qg(),ZT=Object.prototype,KT=ZT.hasOwnProperty;function QT(t,e){var r=GT(t),i=!r&&zT(t),n=!r&&!i&&HT(t),s=!r&&!i&&!n&&YT(t),o=r||i||n||s,u=o?$T(t.length,String):[],a=u.length;for(var l in t)(e||KT.call(t,l))&&!(o&&(l=="length"||n&&(l=="offset"||l=="parent")||s&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||VT(l,a)))&&u.push(l);return u}jg.exports=QT});var $g=w((Qk,Ug)=>{var JT=Object.prototype;function XT(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||JT;return t===r}Ug.exports=XT});var Gg=w((Jk,zg)=>{function ex(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}zg.exports=ex});var Vg=w((Xk,Hg)=>{var tx=Tn(),rx=$g(),ix=Gg(),nx=Object.prototype,sx=nx.hasOwnProperty;function ox(t){if(!tx(t))return ix(t);var e=rx(t),r=[];for(var i in t)i=="constructor"&&(e||!sx.call(t,i))||r.push(i);return r}Hg.exports=ox});var Zg=w((e5,Yg)=>{var ux=Wg(),ax=Vg(),lx=Ro();function fx(t){return lx(t)?ux(t,!0):ax(t)}Yg.exports=fx});var Jg=w((t5,Qg)=>{var cx=To(),hx=xo(),dx=gg(),px=Zg(),Kg=Object.prototype,gx=Kg.hasOwnProperty,yx=cx(function(t,e){t=Object(t);var r=-1,i=e.length,n=i>2?e[2]:void 0;for(n&&dx(e[0],e[1],n)&&(i=1);++r<i;)for(var s=e[r],o=px(s),u=-1,a=o.length;++u<a;){var l=o[u],f=t[l];(f===void 0||hx(f,Kg[l])&&!gx.call(t,l))&&(t[l]=s[l])}return t});Qg.exports=yx});var Re=w((r5,Xg)=>{"use strict";var Fl=class extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);let r="";for(let i=0;i<e.length;i++)r+=` ${e[i].stack}
|
|
26
|
+
`;super(r),this.name="AggregateError",this.errors=e}};Xg.exports={AggregateError:Fl,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var Tl=w((i5,ey)=>{"use strict";ey.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let n=e.shift();return i==="f"?n.toFixed(6):i==="j"?JSON.stringify(n):i==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var et=w((n5,iy)=>{"use strict";var{format:mx,inspect:Oo}=Tl(),{AggregateError:bx}=Re(),_x=globalThis.AggregateError||bx,wx=Symbol("kIsNodeError"),Dx=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Ex=/^([A-Z][a-z0-9]*)+$/,Sx="__node_internal_",Bo={};function zr(t,e){if(!t)throw new Bo.ERR_INTERNAL_ASSERTION(e)}function ty(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function Ax(t,e,r){if(typeof e=="function")return zr(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return zr(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:mx(e,...r)}function Ke(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(Ax(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[wx]=!0,Bo[t]=i}function ry(t){let e=Sx+t.name;return Object.defineProperty(t,"name",{value:e}),t}function vx(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new _x([e,t],e.message);return r.code=e.code,r}return t||e}var xl=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new Bo.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};Ke("ERR_ASSERTION","%s",Error);Ke("ERR_INVALID_ARG_TYPE",(t,e,r)=>{zr(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let i="The ";t.endsWith(" argument")?i+=`${t} `:i+=`"${t}" ${t.includes(".")?"property":"argument"} `,i+="must be ";let n=[],s=[],o=[];for(let a of e)zr(typeof a=="string","All expected entries have to be of type string"),Dx.includes(a)?n.push(a.toLowerCase()):Ex.test(a)?s.push(a):(zr(a!=="object",'The value "object" should be written as "Object"'),o.push(a));if(s.length>0){let a=n.indexOf("object");a!==-1&&(n.splice(n,a,1),s.push("Object"))}if(n.length>0){switch(n.length){case 1:i+=`of type ${n[0]}`;break;case 2:i+=`one of type ${n[0]} or ${n[1]}`;break;default:{let a=n.pop();i+=`one of type ${n.join(", ")}, or ${a}`}}(s.length>0||o.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let a=s.pop();i+=`an instance of ${s.join(", ")}, or ${a}`}}o.length>0&&(i+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(i+="an "),i+=`${o[0]}`;break;case 2:i+=`one of ${o[0]} or ${o[1]}`;break;default:{let a=o.pop();i+=`one of ${o.join(", ")}, or ${a}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var u;if((u=r.constructor)!==null&&u!==void 0&&u.name)i+=`. Received an instance of ${r.constructor.name}`;else{let a=Oo(r,{depth:-1});i+=`. Received ${a}`}}else{let a=Oo(r,{colors:!1});a.length>25&&(a=`${a.slice(0,25)}...`),i+=`. Received type ${typeof r} (${a})`}return i},TypeError);Ke("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let i=Oo(e);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${i}`},TypeError);Ke("ERR_INVALID_RETURN_VALUE",(t,e,r)=>{var i;let n=r!=null&&(i=r.constructor)!==null&&i!==void 0&&i.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the "${e}" function but got ${n}.`},TypeError);Ke("ERR_MISSING_ARGS",(...t)=>{zr(t.length>0,"At least one arg needs to be specified");let e,r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(i=>`"${i}"`).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{let i=t.pop();e+=`The ${t.join(", ")}, and ${i} arguments`}break}return`${e} must be specified`},TypeError);Ke("ERR_OUT_OF_RANGE",(t,e,r)=>{zr(e,'Missing "range" argument');let i;if(Number.isInteger(r)&&Math.abs(r)>2**32)i=ty(String(r));else if(typeof r=="bigint"){i=String(r);let n=BigInt(2)**BigInt(32);(r>n||r<-n)&&(i=ty(i)),i+="n"}else i=Oo(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${i}`},RangeError);Ke("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Ke("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Ke("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Ke("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Ke("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Ke("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ke("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Ke("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Ke("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Ke("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Ke("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);iy.exports={AbortError:xl,aggregateTwoErrors:ry(vx),hideStackFrames:ry,codes:Bo}});var dy=w((Nn,Pn)=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});var ly=new WeakMap,Rl=new WeakMap;function Ce(t){let e=ly.get(t);return console.assert(e!=null,"'this' is expected an Event object, but got",t),e}function ny(t){if(t.passiveListener!=null){typeof console<"u"&&typeof console.error=="function"&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener);return}t.event.cancelable&&(t.canceled=!0,typeof t.event.preventDefault=="function"&&t.event.preventDefault())}function Fi(t,e){ly.set(this,{eventTarget:t,event:e,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:e.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let r=Object.keys(e);for(let i=0;i<r.length;++i){let n=r[i];n in this||Object.defineProperty(this,n,fy(n))}}Fi.prototype={get type(){return Ce(this).event.type},get target(){return Ce(this).eventTarget},get currentTarget(){return Ce(this).currentTarget},composedPath(){let t=Ce(this).currentTarget;return t==null?[]:[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return Ce(this).eventPhase},stopPropagation(){let t=Ce(this);t.stopped=!0,typeof t.event.stopPropagation=="function"&&t.event.stopPropagation()},stopImmediatePropagation(){let t=Ce(this);t.stopped=!0,t.immediateStopped=!0,typeof t.event.stopImmediatePropagation=="function"&&t.event.stopImmediatePropagation()},get bubbles(){return!!Ce(this).event.bubbles},get cancelable(){return!!Ce(this).event.cancelable},preventDefault(){ny(Ce(this))},get defaultPrevented(){return Ce(this).canceled},get composed(){return!!Ce(this).event.composed},get timeStamp(){return Ce(this).timeStamp},get srcElement(){return Ce(this).eventTarget},get cancelBubble(){return Ce(this).stopped},set cancelBubble(t){if(!t)return;let e=Ce(this);e.stopped=!0,typeof e.event.cancelBubble=="boolean"&&(e.event.cancelBubble=!0)},get returnValue(){return!Ce(this).canceled},set returnValue(t){t||ny(Ce(this))},initEvent(){}};Object.defineProperty(Fi.prototype,"constructor",{value:Fi,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(Fi.prototype,window.Event.prototype),Rl.set(window.Event.prototype,Fi));function fy(t){return{get(){return Ce(this).event[t]},set(e){Ce(this).event[t]=e},configurable:!0,enumerable:!0}}function Cx(t){return{value(){let e=Ce(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function Fx(t,e){let r=Object.keys(e);if(r.length===0)return t;function i(n,s){t.call(this,n,s)}i.prototype=Object.create(t.prototype,{constructor:{value:i,configurable:!0,writable:!0}});for(let n=0;n<r.length;++n){let s=r[n];if(!(s in t.prototype)){let u=typeof Object.getOwnPropertyDescriptor(e,s).value=="function";Object.defineProperty(i.prototype,s,u?Cx(s):fy(s))}}return i}function cy(t){if(t==null||t===Object.prototype)return Fi;let e=Rl.get(t);return e==null&&(e=Fx(cy(Object.getPrototypeOf(t)),t),Rl.set(t,e)),e}function Tx(t,e){let r=cy(Object.getPrototypeOf(e));return new r(t,e)}function xx(t){return Ce(t).immediateStopped}function Rx(t,e){Ce(t).eventPhase=e}function Ox(t,e){Ce(t).currentTarget=e}function sy(t,e){Ce(t).passiveListener=e}var hy=new WeakMap,oy=1,uy=2,Io=3;function Po(t){return t!==null&&typeof t=="object"}function In(t){let e=hy.get(t);if(e==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function Bx(t){return{get(){let r=In(this).get(t);for(;r!=null;){if(r.listenerType===Io)return r.listener;r=r.next}return null},set(e){typeof e!="function"&&!Po(e)&&(e=null);let r=In(this),i=null,n=r.get(t);for(;n!=null;)n.listenerType===Io?i!==null?i.next=n.next:n.next!==null?r.set(t,n.next):r.delete(t):i=n,n=n.next;if(e!==null){let s={listener:e,listenerType:Io,passive:!1,once:!1,next:null};i===null?r.set(t,s):i.next=s}},configurable:!0,enumerable:!0}}function Ol(t,e){Object.defineProperty(t,`on${e}`,Bx(e))}function ay(t){function e(){Ft.call(this)}e.prototype=Object.create(Ft.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(let r=0;r<t.length;++r)Ol(e.prototype,t[r]);return e}function Ft(){if(this instanceof Ft){hy.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return ay(arguments[0]);if(arguments.length>0){let t=new Array(arguments.length);for(let e=0;e<arguments.length;++e)t[e]=arguments[e];return ay(t)}throw new TypeError("Cannot call a class as a function")}Ft.prototype={addEventListener(t,e,r){if(e==null)return;if(typeof e!="function"&&!Po(e))throw new TypeError("'listener' should be a function or an object.");let i=In(this),n=Po(r),o=(n?!!r.capture:!!r)?oy:uy,u={listener:e,listenerType:o,passive:n&&!!r.passive,once:n&&!!r.once,next:null},a=i.get(t);if(a===void 0){i.set(t,u);return}let l=null;for(;a!=null;){if(a.listener===e&&a.listenerType===o)return;l=a,a=a.next}l.next=u},removeEventListener(t,e,r){if(e==null)return;let i=In(this),s=(Po(r)?!!r.capture:!!r)?oy:uy,o=null,u=i.get(t);for(;u!=null;){if(u.listener===e&&u.listenerType===s){o!==null?o.next=u.next:u.next!==null?i.set(t,u.next):i.delete(t);return}o=u,u=u.next}},dispatchEvent(t){if(t==null||typeof t.type!="string")throw new TypeError('"event.type" should be a string.');let e=In(this),r=t.type,i=e.get(r);if(i==null)return!0;let n=Tx(this,t),s=null;for(;i!=null;){if(i.once?s!==null?s.next=i.next:i.next!==null?e.set(r,i.next):e.delete(r):s=i,sy(n,i.passive?i.listener:null),typeof i.listener=="function")try{i.listener.call(this,n)}catch(o){typeof console<"u"&&typeof console.error=="function"&&console.error(o)}else i.listenerType!==Io&&typeof i.listener.handleEvent=="function"&&i.listener.handleEvent(n);if(xx(n))break;i=i.next}return sy(n,null),Rx(n,0),Ox(n,null),!n.defaultPrevented}};Object.defineProperty(Ft.prototype,"constructor",{value:Ft,configurable:!0,writable:!0});typeof window<"u"&&typeof window.EventTarget<"u"&&Object.setPrototypeOf(Ft.prototype,window.EventTarget.prototype);Nn.defineEventAttribute=Ol;Nn.EventTarget=Ft;Nn.default=Ft;Pn.exports=Ft;Pn.exports.EventTarget=Pn.exports.default=Ft;Pn.exports.defineEventAttribute=Ol});var Ti=w((Ln,Mn)=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});var Bl=dy(),yr=class extends Bl.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let e=No.get(this);if(typeof e!="boolean")throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return e}};Bl.defineEventAttribute(yr.prototype,"abort");function Ix(){let t=Object.create(yr.prototype);return Bl.EventTarget.call(t),No.set(t,!1),t}function Px(t){No.get(t)===!1&&(No.set(t,!0),t.dispatchEvent({type:"abort"}))}var No=new WeakMap;Object.defineProperties(yr.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(yr.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var mr=class{constructor(){gy.set(this,Ix())}get signal(){return py(this)}abort(){Px(py(this))}},gy=new WeakMap;function py(t){let e=gy.get(t);if(e==null)throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${t===null?"null":typeof t}`);return e}Object.defineProperties(mr.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(mr.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Ln.AbortController=mr;Ln.AbortSignal=yr;Ln.default=mr;Mn.exports=mr;Mn.exports.AbortController=Mn.exports.default=mr;Mn.exports.AbortSignal=yr});var st=w((s5,Pl)=>{"use strict";var Nx=U("buffer"),{format:Mx,inspect:Lx}=Tl(),{codes:{ERR_INVALID_ARG_TYPE:Il}}=et(),{kResistStopPropagation:kx,AggregateError:qx,SymbolDispose:jx}=Re(),Wx=globalThis.AbortSignal||Ti().AbortSignal,Ux=globalThis.AbortController||Ti().AbortController,$x=Object.getPrototypeOf(async function(){}).constructor,yy=globalThis.Blob||Nx.Blob,zx=typeof yy<"u"?function(e){return e instanceof yy}:function(e){return!1},my=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Il(e,"AbortSignal",t)},Gx=(t,e)=>{if(typeof t!="function")throw new Il(e,"Function",t)};Pl.exports={AggregateError:qx,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((i,...n)=>i?r(i):e(...n))})},debuglog(){return function(){}},format:Mx,inspect:Lx,types:{isAsyncFunction(t){return t instanceof $x},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:zx,deprecate(t,e){return t},addAbortListener:U("events").addAbortListener||function(e,r){if(e===void 0)throw new Il("signal","AbortSignal",e);my(e,"signal"),Gx(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[kx]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[jx](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:Wx.any||function(e){if(e.length===1)return e[0];let r=new Ux,i=()=>r.abort();return e.forEach(n=>{my(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};Pl.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var Ri=w((o5,Fy)=>{"use strict";var{ArrayIsArray:Ml,ArrayPrototypeIncludes:Dy,ArrayPrototypeJoin:Ey,ArrayPrototypeMap:Hx,NumberIsInteger:Ll,NumberIsNaN:Vx,NumberMAX_SAFE_INTEGER:Yx,NumberMIN_SAFE_INTEGER:Zx,NumberParseInt:Kx,ObjectPrototypeHasOwnProperty:Qx,RegExpPrototypeExec:Sy,String:Jx,StringPrototypeToUpperCase:Xx,StringPrototypeTrim:e2}=Re(),{hideStackFrames:bt,codes:{ERR_SOCKET_BAD_PORT:t2,ERR_INVALID_ARG_TYPE:tt,ERR_INVALID_ARG_VALUE:xi,ERR_OUT_OF_RANGE:Gr,ERR_UNKNOWN_SIGNAL:by}}=et(),{normalizeEncoding:r2}=st(),{isAsyncFunction:i2,isArrayBufferView:n2}=st().types,_y={};function s2(t){return t===(t|0)}function o2(t){return t===t>>>0}var u2=/^[0-7]+$/,a2="must be a 32-bit unsigned integer or an octal string";function l2(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(Sy(u2,t)===null)throw new xi(e,t,a2);t=Kx(t,8)}return Ay(t,e),t}var f2=bt((t,e,r=Zx,i=Yx)=>{if(typeof t!="number")throw new tt(e,"number",t);if(!Ll(t))throw new Gr(e,"an integer",t);if(t<r||t>i)throw new Gr(e,`>= ${r} && <= ${i}`,t)}),c2=bt((t,e,r=-2147483648,i=2147483647)=>{if(typeof t!="number")throw new tt(e,"number",t);if(!Ll(t))throw new Gr(e,"an integer",t);if(t<r||t>i)throw new Gr(e,`>= ${r} && <= ${i}`,t)}),Ay=bt((t,e,r=!1)=>{if(typeof t!="number")throw new tt(e,"number",t);if(!Ll(t))throw new Gr(e,"an integer",t);let i=r?1:0,n=4294967295;if(t<i||t>n)throw new Gr(e,`>= ${i} && <= ${n}`,t)});function kl(t,e){if(typeof t!="string")throw new tt(e,"string",t)}function h2(t,e,r=void 0,i){if(typeof t!="number")throw new tt(e,"number",t);if(r!=null&&t<r||i!=null&&t>i||(r!=null||i!=null)&&Vx(t))throw new Gr(e,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,t)}var d2=bt((t,e,r)=>{if(!Dy(r,t)){let n="must be one of: "+Ey(Hx(r,s=>typeof s=="string"?`'${s}'`:Jx(s)),", ");throw new xi(e,t,n)}});function vy(t,e){if(typeof t!="boolean")throw new tt(e,"boolean",t)}function Nl(t,e,r){return t==null||!Qx(t,e)?r:t[e]}var p2=bt((t,e,r=null)=>{let i=Nl(r,"allowArray",!1),n=Nl(r,"allowFunction",!1);if(!Nl(r,"nullable",!1)&&t===null||!i&&Ml(t)||typeof t!="object"&&(!n||typeof t!="function"))throw new tt(e,"Object",t)}),g2=bt((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new tt(e,"a dictionary",t)}),Mo=bt((t,e,r=0)=>{if(!Ml(t))throw new tt(e,"Array",t);if(t.length<r){let i=`must be longer than ${r}`;throw new xi(e,t,i)}});function y2(t,e){Mo(t,e);for(let r=0;r<t.length;r++)kl(t[r],`${e}[${r}]`)}function m2(t,e){Mo(t,e);for(let r=0;r<t.length;r++)vy(t[r],`${e}[${r}]`)}function b2(t,e){Mo(t,e);for(let r=0;r<t.length;r++){let i=t[r],n=`${e}[${r}]`;if(i==null)throw new tt(n,"AbortSignal",i);Cy(i,n)}}function _2(t,e="signal"){if(kl(t,e),_y[t]===void 0)throw _y[Xx(t)]!==void 0?new by(t+" (signals must use all capital letters)"):new by(t)}var w2=bt((t,e="buffer")=>{if(!n2(t))throw new tt(e,["Buffer","TypedArray","DataView"],t)});function D2(t,e){let r=r2(e),i=t.length;if(r==="hex"&&i%2!==0)throw new xi("encoding",e,`is invalid for data of length ${i}`)}function E2(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&e2(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new t2(e,t,r);return t|0}var Cy=bt((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new tt(e,"AbortSignal",t)}),S2=bt((t,e)=>{if(typeof t!="function")throw new tt(e,"Function",t)}),A2=bt((t,e)=>{if(typeof t!="function"||i2(t))throw new tt(e,"Function",t)}),v2=bt((t,e)=>{if(t!==void 0)throw new tt(e,"undefined",t)});function C2(t,e,r){if(!Dy(r,t))throw new tt(e,`('${Ey(r,"|")}')`,t)}var F2=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function wy(t,e){if(typeof t>"u"||!Sy(F2,t))throw new xi(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function T2(t){if(typeof t=="string")return wy(t,"hints"),t;if(Ml(t)){let e=t.length,r="";if(e===0)return r;for(let i=0;i<e;i++){let n=t[i];wy(n,"hints"),r+=n,i!==e-1&&(r+=", ")}return r}throw new xi("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}Fy.exports={isInt32:s2,isUint32:o2,parseFileMode:l2,validateArray:Mo,validateStringArray:y2,validateBooleanArray:m2,validateAbortSignalArray:b2,validateBoolean:vy,validateBuffer:w2,validateDictionary:g2,validateEncoding:D2,validateFunction:S2,validateInt32:c2,validateInteger:f2,validateNumber:h2,validateObject:p2,validateOneOf:d2,validatePlainFunction:A2,validatePort:E2,validateSignalName:_2,validateString:kl,validateUint32:Ay,validateUndefined:v2,validateUnion:C2,validateAbortSignal:Cy,validateLinkHeaderValue:T2}});var br=w((u5,Ty)=>{Ty.exports=global.process});var Lt=w((a5,$y)=>{"use strict";var{SymbolAsyncIterator:xy,SymbolIterator:Ry,SymbolFor:Hr}=Re(),Oy=Hr("nodejs.stream.destroyed"),By=Hr("nodejs.stream.errored"),ql=Hr("nodejs.stream.readable"),jl=Hr("nodejs.stream.writable"),Iy=Hr("nodejs.stream.disturbed"),x2=Hr("nodejs.webstream.isClosedPromise"),R2=Hr("nodejs.webstream.controllerErrorFunction");function Lo(t,e=!1){var r;return!!(t&&typeof t.pipe=="function"&&typeof t.on=="function"&&(!e||typeof t.pause=="function"&&typeof t.resume=="function")&&(!t._writableState||((r=t._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!t._writableState||t._readableState))}function ko(t){var e;return!!(t&&typeof t.write=="function"&&typeof t.on=="function"&&(!t._readableState||((e=t._writableState)===null||e===void 0?void 0:e.writable)!==!1))}function O2(t){return!!(t&&typeof t.pipe=="function"&&t._readableState&&typeof t.on=="function"&&typeof t.write=="function")}function Mt(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}function Py(t){return!!(t&&!Mt(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function Ny(t){return!!(t&&!Mt(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function My(t){return!!(t&&!Mt(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function B2(t){return Py(t)||Ny(t)||My(t)}function I2(t,e){return t==null?!1:e===!0?typeof t[xy]=="function":e===!1?typeof t[Ry]=="function":typeof t[xy]=="function"||typeof t[Ry]=="function"}function qo(t){if(!Mt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!!(t.destroyed||t[Oy]||i!=null&&i.destroyed)}function Ly(t){if(!ko(t))return null;if(t.writableEnded===!0)return!0;let e=t._writableState;return e!=null&&e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function P2(t,e){if(!ko(t))return null;if(t.writableFinished===!0)return!0;let r=t._writableState;return r!=null&&r.errored?!1:typeof r?.finished!="boolean"?null:!!(r.finished||e===!1&&r.ended===!0&&r.length===0)}function N2(t){if(!Lo(t))return null;if(t.readableEnded===!0)return!0;let e=t._readableState;return!e||e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function ky(t,e){if(!Lo(t))return null;let r=t._readableState;return r!=null&&r.errored?!1:typeof r?.endEmitted!="boolean"?null:!!(r.endEmitted||e===!1&&r.ended===!0&&r.length===0)}function qy(t){return t&&t[ql]!=null?t[ql]:typeof t?.readable!="boolean"?null:qo(t)?!1:Lo(t)&&t.readable&&!ky(t)}function jy(t){return t&&t[jl]!=null?t[jl]:typeof t?.writable!="boolean"?null:qo(t)?!1:ko(t)&&t.writable&&!Ly(t)}function M2(t,e){return Mt(t)?qo(t)?!0:!(e?.readable!==!1&&qy(t)||e?.writable!==!1&&jy(t)):null}function L2(t){var e,r;return Mt(t)?t.writableErrored?t.writableErrored:(e=(r=t._writableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function k2(t){var e,r;return Mt(t)?t.readableErrored?t.readableErrored:(e=(r=t._readableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function q2(t){if(!Mt(t))return null;if(typeof t.closed=="boolean")return t.closed;let e=t._writableState,r=t._readableState;return typeof e?.closed=="boolean"||typeof r?.closed=="boolean"?e?.closed||r?.closed:typeof t._closed=="boolean"&&Wy(t)?t._closed:null}function Wy(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function Uy(t){return typeof t._sent100=="boolean"&&Wy(t)}function j2(t){var e;return typeof t._consuming=="boolean"&&typeof t._dumped=="boolean"&&((e=t.req)===null||e===void 0?void 0:e.upgradeOrConnect)===void 0}function W2(t){if(!Mt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!i&&Uy(t)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function U2(t){var e;return!!(t&&((e=t[Iy])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function $2(t){var e,r,i,n,s,o,u,a,l,f;return!!(t&&((e=(r=(i=(n=(s=(o=t[By])!==null&&o!==void 0?o:t.readableErrored)!==null&&s!==void 0?s:t.writableErrored)!==null&&n!==void 0?n:(u=t._readableState)===null||u===void 0?void 0:u.errorEmitted)!==null&&i!==void 0?i:(a=t._writableState)===null||a===void 0?void 0:a.errorEmitted)!==null&&r!==void 0?r:(l=t._readableState)===null||l===void 0?void 0:l.errored)!==null&&e!==void 0?e:!((f=t._writableState)===null||f===void 0)&&f.errored))}$y.exports={isDestroyed:qo,kIsDestroyed:Oy,isDisturbed:U2,kIsDisturbed:Iy,isErrored:$2,kIsErrored:By,isReadable:qy,kIsReadable:ql,kIsClosedPromise:x2,kControllerErrorFunction:R2,kIsWritable:jl,isClosed:q2,isDuplexNodeStream:O2,isFinished:M2,isIterable:I2,isReadableNodeStream:Lo,isReadableStream:Py,isReadableEnded:N2,isReadableFinished:ky,isReadableErrored:k2,isNodeStream:Mt,isWebStream:B2,isWritable:jy,isWritableNodeStream:ko,isWritableStream:Ny,isWritableEnded:Ly,isWritableFinished:P2,isWritableErrored:L2,isServerRequest:j2,isServerResponse:Uy,willEmitClose:W2,isTransformStream:My}});var rr=w((l5,Gl)=>{"use strict";var _r=br(),{AbortError:Jy,codes:z2}=et(),{ERR_INVALID_ARG_TYPE:G2,ERR_STREAM_PREMATURE_CLOSE:zy}=z2,{kEmptyObject:Ul,once:$l}=st(),{validateAbortSignal:H2,validateFunction:V2,validateObject:Y2,validateBoolean:Z2}=Ri(),{Promise:K2,PromisePrototypeThen:Q2,SymbolDispose:Xy}=Re(),{isClosed:J2,isReadable:Gy,isReadableNodeStream:Wl,isReadableStream:X2,isReadableFinished:Hy,isReadableErrored:Vy,isWritable:Yy,isWritableNodeStream:Zy,isWritableStream:eR,isWritableFinished:Ky,isWritableErrored:Qy,isNodeStream:tR,willEmitClose:rR,kIsClosedPromise:iR}=Lt(),Oi;function nR(t){return t.setHeader&&typeof t.abort=="function"}var zl=()=>{};function em(t,e,r){var i,n;if(arguments.length===2?(r=e,e=Ul):e==null?e=Ul:Y2(e,"options"),V2(r,"callback"),H2(e.signal,"options.signal"),r=$l(r),X2(t)||eR(t))return sR(t,e,r);if(!tR(t))throw new G2("stream",["ReadableStream","WritableStream","Stream"],t);let s=(i=e.readable)!==null&&i!==void 0?i:Wl(t),o=(n=e.writable)!==null&&n!==void 0?n:Zy(t),u=t._writableState,a=t._readableState,l=()=>{t.writable||g()},f=rR(t)&&Wl(t)===s&&Zy(t)===o,c=Ky(t,!1),g=()=>{c=!0,t.destroyed&&(f=!1),!(f&&(!t.readable||s))&&(!s||y)&&r.call(t)},y=Hy(t,!1),S=()=>{y=!0,t.destroyed&&(f=!1),!(f&&(!t.writable||o))&&(!o||c)&&r.call(t)},m=L=>{r.call(t,L)},E=J2(t),b=()=>{E=!0;let L=Qy(t)||Vy(t);if(L&&typeof L!="boolean")return r.call(t,L);if(s&&!y&&Wl(t,!0)&&!Hy(t,!1))return r.call(t,new zy);if(o&&!c&&!Ky(t,!1))return r.call(t,new zy);r.call(t)},v=()=>{E=!0;let L=Qy(t)||Vy(t);if(L&&typeof L!="boolean")return r.call(t,L);r.call(t)},I=()=>{t.req.on("finish",g)};nR(t)?(t.on("complete",g),f||t.on("abort",b),t.req?I():t.on("request",I)):o&&!u&&(t.on("end",l),t.on("close",l)),!f&&typeof t.aborted=="boolean"&&t.on("aborted",b),t.on("end",S),t.on("finish",g),e.error!==!1&&t.on("error",m),t.on("close",b),E?_r.nextTick(b):u!=null&&u.errorEmitted||a!=null&&a.errorEmitted?f||_r.nextTick(v):(!s&&(!f||Gy(t))&&(c||Yy(t)===!1)||!o&&(!f||Yy(t))&&(y||Gy(t)===!1)||a&&t.req&&t.aborted)&&_r.nextTick(v);let T=()=>{r=zl,t.removeListener("aborted",b),t.removeListener("complete",g),t.removeListener("abort",b),t.removeListener("request",I),t.req&&t.req.removeListener("finish",g),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",g),t.removeListener("end",S),t.removeListener("error",m),t.removeListener("close",b)};if(e.signal&&!E){let L=()=>{let J=r;T(),J.call(t,new Jy(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)_r.nextTick(L);else{Oi=Oi||st().addAbortListener;let J=Oi(e.signal,L),O=r;r=$l((...q)=>{J[Xy](),O.apply(t,q)})}}return T}function sR(t,e,r){let i=!1,n=zl;if(e.signal)if(n=()=>{i=!0,r.call(t,new Jy(void 0,{cause:e.signal.reason}))},e.signal.aborted)_r.nextTick(n);else{Oi=Oi||st().addAbortListener;let o=Oi(e.signal,n),u=r;r=$l((...a)=>{o[Xy](),u.apply(t,a)})}let s=(...o)=>{i||_r.nextTick(()=>r.apply(t,o))};return Q2(t[iR].promise,s,s),zl}function oR(t,e){var r;let i=!1;return e===null&&(e=Ul),(r=e)!==null&&r!==void 0&&r.cleanup&&(Z2(e.cleanup,"cleanup"),i=e.cleanup),new K2((n,s)=>{let o=em(t,e,u=>{i&&o(),u?s(u):n()})})}Gl.exports=em;Gl.exports.finished=oR});var Vr=w((f5,am)=>{"use strict";var kt=br(),{aggregateTwoErrors:uR,codes:{ERR_MULTIPLE_CALLBACK:aR},AbortError:lR}=et(),{Symbol:im}=Re(),{kIsDestroyed:fR,isDestroyed:cR,isFinished:hR,isServerRequest:dR}=Lt(),nm=im("kDestroy"),Hl=im("kConstruct");function sm(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function pR(t,e){let r=this._readableState,i=this._writableState,n=i||r;return i!=null&&i.destroyed||r!=null&&r.destroyed?(typeof e=="function"&&e(),this):(sm(t,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),n.constructed?tm(this,t,e):this.once(nm,function(s){tm(this,uR(s,t),e)}),this)}function tm(t,e,r){let i=!1;function n(s){if(i)return;i=!0;let o=t._readableState,u=t._writableState;sm(s,u,o),u&&(u.closed=!0),o&&(o.closed=!0),typeof r=="function"&&r(s),s?kt.nextTick(gR,t,s):kt.nextTick(om,t)}try{t._destroy(e||null,n)}catch(s){n(s)}}function gR(t,e){Vl(t,e),om(t)}function om(t){let e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(r!=null&&r.emitClose||e!=null&&e.emitClose)&&t.emit("close")}function Vl(t,e){let r=t._readableState,i=t._writableState;i!=null&&i.errorEmitted||r!=null&&r.errorEmitted||(i&&(i.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function yR(){let t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}function Yl(t,e,r){let i=t._readableState,n=t._writableState;if(n!=null&&n.destroyed||i!=null&&i.destroyed)return this;i!=null&&i.autoDestroy||n!=null&&n.autoDestroy?t.destroy(e):e&&(e.stack,n&&!n.errored&&(n.errored=e),i&&!i.errored&&(i.errored=e),r?kt.nextTick(Vl,t,e):Vl(t,e))}function mR(t,e){if(typeof t._construct!="function")return;let r=t._readableState,i=t._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),t.once(Hl,e),!(t.listenerCount(Hl)>1)&&kt.nextTick(bR,t)}function bR(t){let e=!1;function r(i){if(e){Yl(t,i??new aR);return}e=!0;let n=t._readableState,s=t._writableState,o=s||n;n&&(n.constructed=!0),s&&(s.constructed=!0),o.destroyed?t.emit(nm,i):i?Yl(t,i,!0):kt.nextTick(_R,t)}try{t._construct(i=>{kt.nextTick(r,i)})}catch(i){kt.nextTick(r,i)}}function _R(t){t.emit(Hl)}function rm(t){return t?.setHeader&&typeof t.abort=="function"}function um(t){t.emit("close")}function wR(t,e){t.emit("error",e),kt.nextTick(um,t)}function DR(t,e){!t||cR(t)||(!e&&!hR(t)&&(e=new lR),dR(t)?(t.socket=null,t.destroy(e)):rm(t)?t.abort():rm(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?kt.nextTick(wR,t,e):kt.nextTick(um,t),t.destroyed||(t[fR]=!0))}am.exports={construct:mR,destroyer:DR,destroy:pR,undestroy:yR,errorOrDestroy:Yl}});var Uo=w((c5,fm)=>{"use strict";var{ArrayIsArray:ER,ObjectSetPrototypeOf:lm}=Re(),{EventEmitter:jo}=U("events");function Wo(t){jo.call(this,t)}lm(Wo.prototype,jo.prototype);lm(Wo,jo);Wo.prototype.pipe=function(t,e){let r=this;function i(f){t.writable&&t.write(f)===!1&&r.pause&&r.pause()}r.on("data",i);function n(){r.readable&&r.resume&&r.resume()}t.on("drain",n),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",o),r.on("close",u));let s=!1;function o(){s||(s=!0,t.end())}function u(){s||(s=!0,typeof t.destroy=="function"&&t.destroy())}function a(f){l(),jo.listenerCount(this,"error")===0&&this.emit("error",f)}Zl(r,"error",a),Zl(t,"error",a);function l(){r.removeListener("data",i),t.removeListener("drain",n),r.removeListener("end",o),r.removeListener("close",u),r.removeListener("error",a),t.removeListener("error",a),r.removeListener("end",l),r.removeListener("close",l),t.removeListener("close",l)}return r.on("end",l),r.on("close",l),t.on("close",l),t.emit("pipe",r),t};function Zl(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):ER(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}fm.exports={Stream:Wo,prependListener:Zl}});var kn=w((h5,$o)=>{"use strict";var{SymbolDispose:SR}=Re(),{AbortError:cm,codes:AR}=et(),{isNodeStream:hm,isWebStream:vR,kControllerErrorFunction:CR}=Lt(),FR=rr(),{ERR_INVALID_ARG_TYPE:dm}=AR,Kl,TR=(t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new dm(e,"AbortSignal",t)};$o.exports.addAbortSignal=function(e,r){if(TR(e,"signal"),!hm(r)&&!vR(r))throw new dm("stream",["ReadableStream","WritableStream","Stream"],r);return $o.exports.addAbortSignalNoValidate(e,r)};$o.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let r=hm(e)?()=>{e.destroy(new cm(void 0,{cause:t.reason}))}:()=>{e[CR](new cm(void 0,{cause:t.reason}))};if(t.aborted)r();else{Kl=Kl||st().addAbortListener;let i=Kl(t,r);FR(e,i[SR])}return e}});var ym=w((p5,gm)=>{"use strict";var{StringPrototypeSlice:pm,SymbolIterator:xR,TypedArrayPrototypeSet:zo,Uint8Array:RR}=Re(),{Buffer:Ql}=U("buffer"),{inspect:OR}=st();gm.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let r={data:e,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(e){let r={data:e,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let r=this.head,i=""+r.data;for(;(r=r.next)!==null;)i+=e+r.data;return i}concat(e){if(this.length===0)return Ql.alloc(0);let r=Ql.allocUnsafe(e>>>0),i=this.head,n=0;for(;i;)zo(r,i.data,n),n+=i.data.length,i=i.next;return r}consume(e,r){let i=this.head.data;if(e<i.length){let n=i.slice(0,e);return this.head.data=i.slice(e),n}return e===i.length?this.shift():r?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[xR](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let r="",i=this.head,n=0;do{let s=i.data;if(e>s.length)r+=s,e-=s.length;else{e===s.length?(r+=s,++n,i.next?this.head=i.next:this.head=this.tail=null):(r+=pm(s,0,e),this.head=i,i.data=pm(s,e));break}++n}while((i=i.next)!==null);return this.length-=n,r}_getBuffer(e){let r=Ql.allocUnsafe(e),i=e,n=this.head,s=0;do{let o=n.data;if(e>o.length)zo(r,o,i-e),e-=o.length;else{e===o.length?(zo(r,o,i-e),++s,n.next?this.head=n.next:this.head=this.tail=null):(zo(r,new RR(o.buffer,o.byteOffset,e),i-e),this.head=n,n.data=o.slice(e));break}++s}while((n=n.next)!==null);return this.length-=s,r}[Symbol.for("nodejs.util.inspect.custom")](e,r){return OR(this,{...r,depth:0,customInspect:!1})}}});var qn=w((g5,wm)=>{"use strict";var{MathFloor:BR,NumberIsInteger:IR}=Re(),{validateInteger:PR}=Ri(),{ERR_INVALID_ARG_VALUE:NR}=et().codes,mm=16*1024,bm=16;function MR(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function _m(t){return t?bm:mm}function LR(t,e){PR(e,"value",0),t?bm=e:mm=e}function kR(t,e,r,i){let n=MR(e,i,r);if(n!=null){if(!IR(n)||n<0){let s=i?`options.${r}`:"options.highWaterMark";throw new NR(s,n)}return BR(n)}return _m(t.objectMode)}wm.exports={getHighWaterMark:kR,getDefaultHighWaterMark:_m,setDefaultHighWaterMark:LR}});var Sm=w(Em=>{"use strict";var Xl=iA().Buffer,Dm=Xl.isEncoding||function(t){switch(t=""+t,t&&t.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 qR(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function jR(t){var e=qR(t);if(typeof e!="string"&&(Xl.isEncoding===Dm||!Dm(t)))throw new Error("Unknown encoding: "+t);return e||t}Em.StringDecoder=jn;function jn(t){this.encoding=jR(t);var e;switch(this.encoding){case"utf16le":this.text=HR,this.end=VR,e=4;break;case"utf8":this.fillLast=$R,e=4;break;case"base64":this.text=YR,this.end=ZR,e=3;break;default:this.write=KR,this.end=QR;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Xl.allocUnsafe(e)}jn.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};jn.prototype.end=GR;jn.prototype.text=zR;jn.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Jl(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function WR(t,e,r){var i=e.length-1;if(i<r)return 0;var n=Jl(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=Jl(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=Jl(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function UR(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function $R(t){var e=this.lastTotal-this.lastNeed,r=UR(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function zR(t,e){var r=WR(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function GR(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function HR(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function VR(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function YR(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function ZR(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function KR(t){return t.toString(this.encoding)}function QR(t){return t&&t.length?this.write(t):""}});var ef=w((m5,Fm)=>{"use strict";var Am=br(),{PromisePrototypeThen:JR,SymbolAsyncIterator:vm,SymbolIterator:Cm}=Re(),{Buffer:XR}=U("buffer"),{ERR_INVALID_ARG_TYPE:eO,ERR_STREAM_NULL_VALUES:tO}=et().codes;function rO(t,e,r){let i;if(typeof e=="string"||e instanceof XR)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let n;if(e&&e[vm])n=!0,i=e[vm]();else if(e&&e[Cm])n=!1,i=e[Cm]();else throw new eO("iterable",["Iterable"],e);let s=new t({objectMode:!0,highWaterMark:1,...r}),o=!1;s._read=function(){o||(o=!0,a())},s._destroy=function(l,f){JR(u(l),()=>Am.nextTick(f,l),c=>Am.nextTick(f,c||l))};async function u(l){let f=l!=null,c=typeof i.throw=="function";if(f&&c){let{value:g,done:y}=await i.throw(l);if(await g,y)return}if(typeof i.return=="function"){let{value:g}=await i.return();await g}}async function a(){for(;;){try{let{value:l,done:f}=n?await i.next():i.next();if(f)s.push(null);else{let c=l&&typeof l.then=="function"?await l:l;if(c===null)throw o=!1,new tO;if(s.push(c))continue;o=!1}}catch(l){s.destroy(l)}break}}return s}Fm.exports=rO});var Un=w((b5,Gm)=>{"use strict";var Tt=br(),{ArrayPrototypeIndexOf:iO,NumberIsInteger:nO,NumberIsNaN:sO,NumberParseInt:oO,ObjectDefineProperties:lf,ObjectKeys:uO,ObjectSetPrototypeOf:Rm,Promise:Om,SafeSet:aO,SymbolAsyncDispose:lO,SymbolAsyncIterator:fO,Symbol:cO}=Re();Gm.exports=Q;Q.ReadableState=Yo;var{EventEmitter:hO}=U("events"),{Stream:wr,prependListener:dO}=Uo(),{Buffer:tf}=U("buffer"),{addAbortSignal:pO}=kn(),Bm=rr(),se=st().debuglog("stream",t=>{se=t}),gO=ym(),Pi=Vr(),{getHighWaterMark:yO,getDefaultHighWaterMark:mO}=qn(),{aggregateTwoErrors:Tm,codes:{ERR_INVALID_ARG_TYPE:bO,ERR_METHOD_NOT_IMPLEMENTED:_O,ERR_OUT_OF_RANGE:wO,ERR_STREAM_PUSH_AFTER_EOF:DO,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:EO},AbortError:SO}=et(),{validateObject:AO}=Ri(),Yr=cO("kPaused"),{StringDecoder:Im}=Sm(),vO=ef();Rm(Q.prototype,wr.prototype);Rm(Q,wr);var rf=()=>{},{errorOrDestroy:Bi}=Pi,Ii=1,CO=2,Pm=4,Wn=8,Nm=16,Go=32,Ho=64,Mm=128,FO=256,TO=512,xO=1024,uf=2048,af=4096,RO=8192,OO=16384,BO=32768,Lm=65536,IO=1<<17,PO=1<<18;function qe(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}lf(Yo.prototype,{objectMode:qe(Ii),ended:qe(CO),endEmitted:qe(Pm),reading:qe(Wn),constructed:qe(Nm),sync:qe(Go),needReadable:qe(Ho),emittedReadable:qe(Mm),readableListening:qe(FO),resumeScheduled:qe(TO),errorEmitted:qe(xO),emitClose:qe(uf),autoDestroy:qe(af),destroyed:qe(RO),closed:qe(OO),closeEmitted:qe(BO),multiAwaitDrain:qe(Lm),readingMore:qe(IO),dataEmitted:qe(PO)});function Yo(t,e,r){typeof r!="boolean"&&(r=e instanceof qt()),this.state=uf|af|Nm|Go,t&&t.objectMode&&(this.state|=Ii),r&&t&&t.readableObjectMode&&(this.state|=Ii),this.highWaterMark=t?yO(this,t,"readableHighWaterMark",r):mO(!1),this.buffer=new gO,this.length=0,this.pipes=[],this.flowing=null,this[Yr]=null,t&&t.emitClose===!1&&(this.state&=~uf),t&&t.autoDestroy===!1&&(this.state&=~af),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new Im(t.encoding),this.encoding=t.encoding)}function Q(t){if(!(this instanceof Q))return new Q(t);let e=this instanceof qt();this._readableState=new Yo(t,this,e),t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&!e&&pO(t.signal,this)),wr.call(this,t),Pi.construct(this,()=>{this._readableState.needReadable&&Vo(this,this._readableState)})}Q.prototype.destroy=Pi.destroy;Q.prototype._undestroy=Pi.undestroy;Q.prototype._destroy=function(t,e){e(t)};Q.prototype[hO.captureRejectionSymbol]=function(t){this.destroy(t)};Q.prototype[lO]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new SO,this.destroy(t)),new Om((e,r)=>Bm(this,i=>i&&i!==t?r(i):e(null)))};Q.prototype.push=function(t,e){return km(this,t,e,!1)};Q.prototype.unshift=function(t,e){return km(this,t,e,!0)};function km(t,e,r,i){se("readableAddChunk",e);let n=t._readableState,s;if((n.state&Ii)===0&&(typeof e=="string"?(r=r||n.defaultEncoding,n.encoding!==r&&(i&&n.encoding?e=tf.from(e,r).toString(n.encoding):(e=tf.from(e,r),r=""))):e instanceof tf?r="":wr._isUint8Array(e)?(e=wr._uint8ArrayToBuffer(e),r=""):e!=null&&(s=new bO("chunk",["string","Buffer","Uint8Array"],e))),s)Bi(t,s);else if(e===null)n.state&=~Wn,LO(t,n);else if((n.state&Ii)!==0||e&&e.length>0)if(i)if((n.state&Pm)!==0)Bi(t,new EO);else{if(n.destroyed||n.errored)return!1;nf(t,n,e,!0)}else if(n.ended)Bi(t,new DO);else{if(n.destroyed||n.errored)return!1;n.state&=~Wn,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?nf(t,n,e,!1):Vo(t,n)):nf(t,n,e,!1)}else i||(n.state&=~Wn,Vo(t,n));return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function nf(t,e,r,i){e.flowing&&e.length===0&&!e.sync&&t.listenerCount("data")>0?((e.state&Lm)!==0?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),(e.state&Ho)!==0&&Zo(t)),Vo(t,e)}Q.prototype.isPaused=function(){let t=this._readableState;return t[Yr]===!0||t.flowing===!1};Q.prototype.setEncoding=function(t){let e=new Im(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer,i="";for(let n of r)i+=e.write(n);return r.clear(),i!==""&&r.push(i),this._readableState.length=i.length,this};var NO=1073741824;function MO(t){if(t>NO)throw new wO("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}function xm(t,e){return t<=0||e.length===0&&e.ended?0:(e.state&Ii)!==0?1:sO(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}Q.prototype.read=function(t){se("read",t),t===void 0?t=NaN:nO(t)||(t=oO(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=MO(t)),t!==0&&(e.state&=~Mm),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return se("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?sf(this):Zo(this),null;if(t=xm(t,e),t===0&&e.ended)return e.length===0&&sf(this),null;let i=(e.state&Ho)!==0;if(se("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,se("length less than watermark",i)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)i=!1,se("reading, ended or constructing",i);else if(i){se("do read"),e.state|=Wn|Go,e.length===0&&(e.state|=Ho);try{this._read(e.highWaterMark)}catch(s){Bi(this,s)}e.state&=~Go,e.reading||(t=xm(r,e))}let n;return t>0?n=$m(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&sf(this)),n!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",n)),n};function LO(t,e){if(se("onEofChunk"),!e.ended){if(e.decoder){let r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?Zo(t):(e.needReadable=!1,e.emittedReadable=!0,qm(t))}}function Zo(t){let e=t._readableState;se("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(se("emitReadable",e.flowing),e.emittedReadable=!0,Tt.nextTick(qm,t))}function qm(t){let e=t._readableState;se("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&!e.errored&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,Wm(t)}function Vo(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,Tt.nextTick(kO,t,e))}function kO(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){let r=e.length;if(se("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}Q.prototype._read=function(t){throw new _O("_read()")};Q.prototype.pipe=function(t,e){let r=this,i=this._readableState;i.pipes.length===1&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new aO(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(t),se("pipe count=%d opts=%j",i.pipes.length,e);let s=(!e||e.end!==!1)&&t!==Tt.stdout&&t!==Tt.stderr?u:E;i.endEmitted?Tt.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(b,v){se("onunpipe"),b===r&&v&&v.hasUnpiped===!1&&(v.hasUnpiped=!0,f())}function u(){se("onend"),t.end()}let a,l=!1;function f(){se("cleanup"),t.removeListener("close",S),t.removeListener("finish",m),a&&t.removeListener("drain",a),t.removeListener("error",y),t.removeListener("unpipe",o),r.removeListener("end",u),r.removeListener("end",E),r.removeListener("data",g),l=!0,a&&i.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&a()}function c(){l||(i.pipes.length===1&&i.pipes[0]===t?(se("false write response, pause",0),i.awaitDrainWriters=t,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(t)&&(se("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(t)),r.pause()),a||(a=qO(r,t),t.on("drain",a))}r.on("data",g);function g(b){se("ondata");let v=t.write(b);se("dest.write",v),v===!1&&c()}function y(b){if(se("onerror",b),E(),t.removeListener("error",y),t.listenerCount("error")===0){let v=t._writableState||t._readableState;v&&!v.errorEmitted?Bi(t,b):t.emit("error",b)}}dO(t,"error",y);function S(){t.removeListener("finish",m),E()}t.once("close",S);function m(){se("onfinish"),t.removeListener("close",S),E()}t.once("finish",m);function E(){se("unpipe"),r.unpipe(t)}return t.emit("pipe",r),t.writableNeedDrain===!0?c():i.flowing||(se("pipe resume"),r.resume()),t};function qO(t,e){return function(){let i=t._readableState;i.awaitDrainWriters===e?(se("pipeOnDrain",1),i.awaitDrainWriters=null):i.multiAwaitDrain&&(se("pipeOnDrain",i.awaitDrainWriters.size),i.awaitDrainWriters.delete(e)),(!i.awaitDrainWriters||i.awaitDrainWriters.size===0)&&t.listenerCount("data")&&t.resume()}}Q.prototype.unpipe=function(t){let e=this._readableState,r={hasUnpiped:!1};if(e.pipes.length===0)return this;if(!t){let n=e.pipes;e.pipes=[],this.pause();for(let s=0;s<n.length;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}let i=iO(e.pipes,t);return i===-1?this:(e.pipes.splice(i,1),e.pipes.length===0&&this.pause(),t.emit("unpipe",this,r),this)};Q.prototype.on=function(t,e){let r=wr.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,se("on readable",i.length,i.reading),i.length?Zo(this):i.reading||Tt.nextTick(jO,this)),r};Q.prototype.addListener=Q.prototype.on;Q.prototype.removeListener=function(t,e){let r=wr.prototype.removeListener.call(this,t,e);return t==="readable"&&Tt.nextTick(jm,this),r};Q.prototype.off=Q.prototype.removeListener;Q.prototype.removeAllListeners=function(t){let e=wr.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&Tt.nextTick(jm,this),e};function jm(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[Yr]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function jO(t){se("readable nexttick read 0"),t.read(0)}Q.prototype.resume=function(){let t=this._readableState;return t.flowing||(se("resume"),t.flowing=!t.readableListening,WO(this,t)),t[Yr]=!1,this};function WO(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Tt.nextTick(UO,t,e))}function UO(t,e){se("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Wm(t),e.flowing&&!e.reading&&t.read(0)}Q.prototype.pause=function(){return se("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(se("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[Yr]=!0,this};function Wm(t){let e=t._readableState;for(se("flow",e.flowing);e.flowing&&t.read()!==null;);}Q.prototype.wrap=function(t){let e=!1;t.on("data",i=>{!this.push(i)&&t.pause&&(e=!0,t.pause())}),t.on("end",()=>{this.push(null)}),t.on("error",i=>{Bi(this,i)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=uO(t);for(let i=1;i<r.length;i++){let n=r[i];this[n]===void 0&&typeof t[n]=="function"&&(this[n]=t[n].bind(t))}return this};Q.prototype[fO]=function(){return Um(this)};Q.prototype.iterator=function(t){return t!==void 0&&AO(t,"options"),Um(this,t)};function Um(t,e){typeof t.read!="function"&&(t=Q.wrap(t,{objectMode:!0}));let r=$O(t,e);return r.stream=t,r}async function*$O(t,e){let r=rf;function i(o){this===t?(r(),r=rf):r=o}t.on("readable",i);let n,s=Bm(t,{writable:!1},o=>{n=o?Tm(n,o):null,r(),r=rf});try{for(;;){let o=t.destroyed?null:t.read();if(o!==null)yield o;else{if(n)throw n;if(n===null)return;await new Om(i)}}}catch(o){throw n=Tm(n,o),n}finally{(n||e?.destroyOnReturn!==!1)&&(n===void 0||t._readableState.autoDestroy)?Pi.destroyer(t,null):(t.off("readable",i),s())}}lf(Q.prototype,{readable:{__proto__:null,get(){let t=this._readableState;return!!t&&t.readable!==!1&&!t.destroyed&&!t.errorEmitted&&!t.endEmitted},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});lf(Yo.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[Yr]!==!1},set(t){this[Yr]=!!t}}});Q._fromList=$m;function $m(t,e){if(e.length===0)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function sf(t){let e=t._readableState;se("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,Tt.nextTick(zO,e,t))}function zO(t,e){if(se("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&t.length===0){if(t.endEmitted=!0,e.emit("end"),e.writable&&e.allowHalfOpen===!1)Tt.nextTick(GO,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}function GO(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}Q.from=function(t,e){return vO(Q,t,e)};var of;function zm(){return of===void 0&&(of={}),of}Q.fromWeb=function(t,e){return zm().newStreamReadableFromReadableStream(t,e)};Q.toWeb=function(t,e){return zm().newReadableStreamFromStreamReadable(t,e)};Q.wrap=function(t,e){var r,i;return new Q({objectMode:(r=(i=t.readableObjectMode)!==null&&i!==void 0?i:t.objectMode)!==null&&r!==void 0?r:!0,...e,destroy(n,s){Pi.destroyer(t,n),s(n)}}).wrap(t)}});var eu=w((_5,ib)=>{"use strict";var Zr=br(),{ArrayPrototypeSlice:Ym,Error:HO,FunctionPrototypeSymbolHasInstance:Zm,ObjectDefineProperty:Km,ObjectDefineProperties:VO,ObjectSetPrototypeOf:Qm,StringPrototypeToLowerCase:YO,Symbol:ZO,SymbolHasInstance:KO}=Re();ib.exports=Be;Be.WritableState=Gn;var{EventEmitter:QO}=U("events"),$n=Uo().Stream,{Buffer:Ko}=U("buffer"),Xo=Vr(),{addAbortSignal:JO}=kn(),{getHighWaterMark:XO,getDefaultHighWaterMark:eB}=qn(),{ERR_INVALID_ARG_TYPE:tB,ERR_METHOD_NOT_IMPLEMENTED:rB,ERR_MULTIPLE_CALLBACK:Jm,ERR_STREAM_CANNOT_PIPE:iB,ERR_STREAM_DESTROYED:zn,ERR_STREAM_ALREADY_FINISHED:nB,ERR_STREAM_NULL_VALUES:sB,ERR_STREAM_WRITE_AFTER_END:oB,ERR_UNKNOWN_ENCODING:Xm}=et().codes,{errorOrDestroy:Ni}=Xo;Qm(Be.prototype,$n.prototype);Qm(Be,$n);function hf(){}var Mi=ZO("kOnFinished");function Gn(t,e,r){typeof r!="boolean"&&(r=e instanceof qt()),this.objectMode=!!(t&&t.objectMode),r&&(this.objectMode=this.objectMode||!!(t&&t.writableObjectMode)),this.highWaterMark=t?XO(this,t,"writableHighWaterMark",r):eB(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let i=!!(t&&t.decodeStrings===!1);this.decodeStrings=!i,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=aB.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,Jo(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||t.emitClose!==!1,this.autoDestroy=!t||t.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[Mi]=[]}function Jo(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}Gn.prototype.getBuffer=function(){return Ym(this.buffered,this.bufferedIndex)};Km(Gn.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function Be(t){let e=this instanceof qt();if(!e&&!Zm(Be,this))return new Be(t);this._writableState=new Gn(t,this,e),t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&JO(t.signal,this)),$n.call(this,t),Xo.construct(this,()=>{let r=this._writableState;r.writing||pf(this,r),gf(this,r)})}Km(Be,KO,{__proto__:null,value:function(t){return Zm(this,t)?!0:this!==Be?!1:t&&t._writableState instanceof Gn}});Be.prototype.pipe=function(){Ni(this,new iB)};function eb(t,e,r,i){let n=t._writableState;if(typeof r=="function")i=r,r=n.defaultEncoding;else{if(!r)r=n.defaultEncoding;else if(r!=="buffer"&&!Ko.isEncoding(r))throw new Xm(r);typeof i!="function"&&(i=hf)}if(e===null)throw new sB;if(!n.objectMode)if(typeof e=="string")n.decodeStrings!==!1&&(e=Ko.from(e,r),r="buffer");else if(e instanceof Ko)r="buffer";else if($n._isUint8Array(e))e=$n._uint8ArrayToBuffer(e),r="buffer";else throw new tB("chunk",["string","Buffer","Uint8Array"],e);let s;return n.ending?s=new oB:n.destroyed&&(s=new zn("write")),s?(Zr.nextTick(i,s),Ni(t,s,!0),s):(n.pendingcb++,uB(t,n,e,r,i))}Be.prototype.write=function(t,e,r){return eb(this,t,e,r)===!0};Be.prototype.cork=function(){this._writableState.corked++};Be.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||pf(this,t))};Be.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=YO(e)),!Ko.isEncoding(e))throw new Xm(e);return this._writableState.defaultEncoding=e,this};function uB(t,e,r,i,n){let s=e.objectMode?1:r.length;e.length+=s;let o=e.length<e.highWaterMark;return o||(e.needDrain=!0),e.writing||e.corked||e.errored||!e.constructed?(e.buffered.push({chunk:r,encoding:i,callback:n}),e.allBuffers&&i!=="buffer"&&(e.allBuffers=!1),e.allNoop&&n!==hf&&(e.allNoop=!1)):(e.writelen=s,e.writecb=n,e.writing=!0,e.sync=!0,t._write(r,i,e.onwrite),e.sync=!1),o&&!e.errored&&!e.destroyed}function Hm(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new zn("write")):r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function Vm(t,e,r,i){--e.pendingcb,i(r),df(e),Ni(t,r)}function aB(t,e){let r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function"){Ni(t,new Jm);return}r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e?(e.stack,r.errored||(r.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),i?Zr.nextTick(Vm,t,r,e,n):Vm(t,r,e,n)):(r.buffered.length>r.bufferedIndex&&pf(t,r),i?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===n?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:n,stream:t,state:r},Zr.nextTick(lB,r.afterWriteTickInfo)):tb(t,r,1,n))}function lB({stream:t,state:e,count:r,cb:i}){return e.afterWriteTickInfo=null,tb(t,e,r,i)}function tb(t,e,r,i){for(!e.ending&&!t.destroyed&&e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));r-- >0;)e.pendingcb--,i();e.destroyed&&df(e),gf(t,e)}function df(t){if(t.writing)return;for(let n=t.bufferedIndex;n<t.buffered.length;++n){var e;let{chunk:s,callback:o}=t.buffered[n],u=t.objectMode?1:s.length;t.length-=u,o((e=t.errored)!==null&&e!==void 0?e:new zn("write"))}let r=t[Mi].splice(0);for(let n=0;n<r.length;n++){var i;r[n]((i=t.errored)!==null&&i!==void 0?i:new zn("end"))}Jo(t)}function pf(t,e){if(e.corked||e.bufferProcessing||e.destroyed||!e.constructed)return;let{buffered:r,bufferedIndex:i,objectMode:n}=e,s=r.length-i;if(!s)return;let o=i;if(e.bufferProcessing=!0,s>1&&t._writev){e.pendingcb-=s-1;let u=e.allNoop?hf:l=>{for(let f=o;f<r.length;++f)r[f].callback(l)},a=e.allNoop&&o===0?r:Ym(r,o);a.allBuffers=e.allBuffers,Hm(t,e,!0,e.length,a,"",u),Jo(e)}else{do{let{chunk:u,encoding:a,callback:l}=r[o];r[o++]=null;let f=n?1:u.length;Hm(t,e,!1,f,u,a,l)}while(o<r.length&&!e.writing);o===r.length?Jo(e):o>256?(r.splice(0,o),e.bufferedIndex=0):e.bufferedIndex=o}e.bufferProcessing=!1}Be.prototype._write=function(t,e,r){if(this._writev)this._writev([{chunk:t,encoding:e}],r);else throw new rB("_write()")};Be.prototype._writev=null;Be.prototype.end=function(t,e,r){let i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null);let n;if(t!=null){let s=eb(this,t,e);s instanceof HO&&(n=s)}return i.corked&&(i.corked=1,this.uncork()),n||(!i.errored&&!i.ending?(i.ending=!0,gf(this,i,!0),i.ended=!0):i.finished?n=new nB("end"):i.destroyed&&(n=new zn("end"))),typeof r=="function"&&(n||i.finished?Zr.nextTick(r,n):i[Mi].push(r)),this};function Qo(t){return t.ending&&!t.destroyed&&t.constructed&&t.length===0&&!t.errored&&t.buffered.length===0&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function fB(t,e){let r=!1;function i(n){if(r){Ni(t,n??Jm());return}if(r=!0,e.pendingcb--,n){let s=e[Mi].splice(0);for(let o=0;o<s.length;o++)s[o](n);Ni(t,n,e.sync)}else Qo(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,Zr.nextTick(cf,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(n){i(n)}e.sync=!1}function cB(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.finalCalled=!0,fB(t,e)):(e.prefinished=!0,t.emit("prefinish")))}function gf(t,e,r){Qo(e)&&(cB(t,e),e.pendingcb===0&&(r?(e.pendingcb++,Zr.nextTick((i,n)=>{Qo(n)?cf(i,n):n.pendingcb--},t,e)):Qo(e)&&(e.pendingcb++,cf(t,e))))}function cf(t,e){e.pendingcb--,e.finished=!0;let r=e[Mi].splice(0);for(let i=0;i<r.length;i++)r[i]();if(t.emit("finish"),e.autoDestroy){let i=t._readableState;(!i||i.autoDestroy&&(i.endEmitted||i.readable===!1))&&t.destroy()}}VO(Be.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(t){this._writableState&&(this._writableState.destroyed=t)}},writable:{__proto__:null,get(){let t=this._writableState;return!!t&&t.writable!==!1&&!t.destroyed&&!t.errored&&!t.ending&&!t.ended},set(t){this._writableState&&(this._writableState.writable=!!t)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let t=this._writableState;return t?!t.destroyed&&!t.ending&&t.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var hB=Xo.destroy;Be.prototype.destroy=function(t,e){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[Mi].length)&&Zr.nextTick(df,r),hB.call(this,t,e),this};Be.prototype._undestroy=Xo.undestroy;Be.prototype._destroy=function(t,e){e(t)};Be.prototype[QO.captureRejectionSymbol]=function(t){this.destroy(t)};var ff;function rb(){return ff===void 0&&(ff={}),ff}Be.fromWeb=function(t,e){return rb().newStreamWritableFromWritableStream(t,e)};Be.toWeb=function(t){return rb().newWritableStreamFromStreamWritable(t)}});var bb=w((w5,mb)=>{var yf=br(),dB=U("buffer"),{isReadable:pB,isWritable:gB,isIterable:nb,isNodeStream:yB,isReadableNodeStream:sb,isWritableNodeStream:ob,isDuplexNodeStream:mB,isReadableStream:ub,isWritableStream:ab}=Lt(),lb=rr(),{AbortError:gb,codes:{ERR_INVALID_ARG_TYPE:bB,ERR_INVALID_RETURN_VALUE:fb}}=et(),{destroyer:ki}=Vr(),_B=qt(),yb=Un(),wB=eu(),{createDeferredPromise:cb}=st(),hb=ef(),db=globalThis.Blob||dB.Blob,DB=typeof db<"u"?function(e){return e instanceof db}:function(e){return!1},EB=globalThis.AbortController||Ti().AbortController,{FunctionPrototypeCall:pb}=Re(),Dr=class extends _B{constructor(e){super(e),e?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};mb.exports=function t(e,r){if(mB(e))return e;if(sb(e))return Li({readable:e});if(ob(e))return Li({writable:e});if(yB(e))return Li({writable:!1,readable:!1});if(ub(e))return Li({readable:yb.fromWeb(e)});if(ab(e))return Li({writable:wB.fromWeb(e)});if(typeof e=="function"){let{value:n,write:s,final:o,destroy:u}=SB(e);if(nb(n))return hb(Dr,n,{objectMode:!0,write:s,final:o,destroy:u});let a=n?.then;if(typeof a=="function"){let l,f=pb(a,n,c=>{if(c!=null)throw new fb("nully","body",c)},c=>{ki(l,c)});return l=new Dr({objectMode:!0,readable:!1,write:s,final(c){o(async()=>{try{await f,yf.nextTick(c,null)}catch(g){yf.nextTick(c,g)}})},destroy:u})}throw new fb("Iterable, AsyncIterable or AsyncFunction",r,n)}if(DB(e))return t(e.arrayBuffer());if(nb(e))return hb(Dr,e,{objectMode:!0,writable:!1});if(ub(e?.readable)&&ab(e?.writable))return Dr.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let n=e!=null&&e.readable?sb(e?.readable)?e?.readable:t(e.readable):void 0,s=e!=null&&e.writable?ob(e?.writable)?e?.writable:t(e.writable):void 0;return Li({readable:n,writable:s})}let i=e?.then;if(typeof i=="function"){let n;return pb(i,e,s=>{s!=null&&n.push(s),n.push(null)},s=>{ki(n,s)}),n=new Dr({objectMode:!0,writable:!1,read(){}})}throw new bB(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)};function SB(t){let{promise:e,resolve:r}=cb(),i=new EB,n=i.signal;return{value:t((async function*(){for(;;){let o=e;e=null;let{chunk:u,done:a,cb:l}=await o;if(yf.nextTick(l),a)return;if(n.aborted)throw new gb(void 0,{cause:n.reason});({promise:e,resolve:r}=cb()),yield u}})(),{signal:n}),write(o,u,a){let l=r;r=null,l({chunk:o,done:!1,cb:a})},final(o){let u=r;r=null,u({done:!0,cb:o})},destroy(o,u){i.abort(),u(o)}}}function Li(t){let e=t.readable&&typeof t.readable.read!="function"?yb.wrap(t.readable):t.readable,r=t.writable,i=!!pB(e),n=!!gB(r),s,o,u,a,l;function f(c){let g=a;a=null,g?g(c):c&&l.destroy(c)}return l=new Dr({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(r!=null&&r.writableObjectMode),readable:i,writable:n}),n&&(lb(r,c=>{n=!1,c&&ki(e,c),f(c)}),l._write=function(c,g,y){r.write(c,g)?y():s=y},l._final=function(c){r.end(),o=c},r.on("drain",function(){if(s){let c=s;s=null,c()}}),r.on("finish",function(){if(o){let c=o;o=null,c()}})),i&&(lb(e,c=>{i=!1,c&&ki(e,c),f(c)}),e.on("readable",function(){if(u){let c=u;u=null,c()}}),e.on("end",function(){l.push(null)}),l._read=function(){for(;;){let c=e.read();if(c===null){u=l._read;return}if(!l.push(c))return}}),l._destroy=function(c,g){!c&&a!==null&&(c=new gb),u=null,s=null,o=null,a===null?g(c):(a=g,ki(r,c),ki(e,c))},l}});var qt=w((D5,Db)=>{"use strict";var{ObjectDefineProperties:AB,ObjectGetOwnPropertyDescriptor:ir,ObjectKeys:vB,ObjectSetPrototypeOf:_b}=Re();Db.exports=xt;var _f=Un(),_t=eu();_b(xt.prototype,_f.prototype);_b(xt,_f);{let t=vB(_t.prototype);for(let e=0;e<t.length;e++){let r=t[e];xt.prototype[r]||(xt.prototype[r]=_t.prototype[r])}}function xt(t){if(!(this instanceof xt))return new xt(t);_f.call(this,t),_t.call(this,t),t?(this.allowHalfOpen=t.allowHalfOpen!==!1,t.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),t.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}AB(xt.prototype,{writable:{__proto__:null,...ir(_t.prototype,"writable")},writableHighWaterMark:{__proto__:null,...ir(_t.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...ir(_t.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...ir(_t.prototype,"writableBuffer")},writableLength:{__proto__:null,...ir(_t.prototype,"writableLength")},writableFinished:{__proto__:null,...ir(_t.prototype,"writableFinished")},writableCorked:{__proto__:null,...ir(_t.prototype,"writableCorked")},writableEnded:{__proto__:null,...ir(_t.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...ir(_t.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}});var mf;function wb(){return mf===void 0&&(mf={}),mf}xt.fromWeb=function(t,e){return wb().newStreamDuplexFromReadableWritablePair(t,e)};xt.toWeb=function(t){return wb().newReadableWritablePairFromDuplex(t)};var bf;xt.from=function(t){return bf||(bf=bb()),bf(t,"body")}});var Ef=w((E5,Sb)=>{"use strict";var{ObjectSetPrototypeOf:Eb,Symbol:CB}=Re();Sb.exports=nr;var{ERR_METHOD_NOT_IMPLEMENTED:FB}=et().codes,Df=qt(),{getHighWaterMark:TB}=qn();Eb(nr.prototype,Df.prototype);Eb(nr,Df);var Hn=CB("kCallback");function nr(t){if(!(this instanceof nr))return new nr(t);let e=t?TB(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),Df.call(this,t),this._readableState.sync=!1,this[Hn]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",xB)}function wf(t){typeof this._flush=="function"&&!this.destroyed?this._flush((e,r)=>{if(e){t?t(e):this.destroy(e);return}r!=null&&this.push(r),this.push(null),t&&t()}):(this.push(null),t&&t())}function xB(){this._final!==wf&&wf.call(this)}nr.prototype._final=wf;nr.prototype._transform=function(t,e,r){throw new FB("_transform()")};nr.prototype._write=function(t,e,r){let i=this._readableState,n=this._writableState,s=i.length;this._transform(t,e,(o,u)=>{if(o){r(o);return}u!=null&&this.push(u),n.ended||s===i.length||i.length<i.highWaterMark?r():this[Hn]=r})};nr.prototype._read=function(){if(this[Hn]){let t=this[Hn];this[Hn]=null,t()}}});var Af=w((S5,vb)=>{"use strict";var{ObjectSetPrototypeOf:Ab}=Re();vb.exports=qi;var Sf=Ef();Ab(qi.prototype,Sf.prototype);Ab(qi,Sf);function qi(t){if(!(this instanceof qi))return new qi(t);Sf.call(this,t)}qi.prototype._transform=function(t,e,r){r(null,t)}});var nu=w((A5,Rb)=>{var Vn=br(),{ArrayIsArray:RB,Promise:OB,SymbolAsyncIterator:BB,SymbolDispose:IB}=Re(),iu=rr(),{once:PB}=st(),NB=Vr(),Cb=qt(),{aggregateTwoErrors:MB,codes:{ERR_INVALID_ARG_TYPE:If,ERR_INVALID_RETURN_VALUE:vf,ERR_MISSING_ARGS:LB,ERR_STREAM_DESTROYED:kB,ERR_STREAM_PREMATURE_CLOSE:qB},AbortError:jB}=et(),{validateFunction:WB,validateAbortSignal:UB}=Ri(),{isIterable:Kr,isReadable:Cf,isReadableNodeStream:ru,isNodeStream:Fb,isTransformStream:ji,isWebStream:$B,isReadableStream:Ff,isReadableFinished:zB}=Lt(),GB=globalThis.AbortController||Ti().AbortController,Tf,xf,Rf;function Tb(t,e,r){let i=!1;t.on("close",()=>{i=!0});let n=iu(t,{readable:e,writable:r},s=>{i=!s});return{destroy:s=>{i||(i=!0,NB.destroyer(t,s||new kB("pipe")))},cleanup:n}}function HB(t){return WB(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function Of(t){if(Kr(t))return t;if(ru(t))return VB(t);throw new If("val",["Readable","Iterable","AsyncIterable"],t)}async function*VB(t){xf||(xf=Un()),yield*xf.prototype[BB].call(t)}async function tu(t,e,r,{end:i}){let n,s=null,o=l=>{if(l&&(n=l),s){let f=s;s=null,f()}},u=()=>new OB((l,f)=>{n?f(n):s=()=>{n?f(n):l()}});e.on("drain",o);let a=iu(e,{readable:!1},o);try{e.writableNeedDrain&&await u();for await(let l of t)e.write(l)||await u();i&&(e.end(),await u()),r()}catch(l){r(n!==l?MB(n,l):l)}finally{a(),e.off("drain",o)}}async function Bf(t,e,r,{end:i}){ji(e)&&(e=e.writable);let n=e.getWriter();try{for await(let s of t)await n.ready,n.write(s).catch(()=>{});await n.ready,i&&await n.close(),r()}catch(s){try{await n.abort(s),r(s)}catch(o){r(o)}}}function YB(...t){return xb(t,PB(HB(t)))}function xb(t,e,r){if(t.length===1&&RB(t[0])&&(t=t[0]),t.length<2)throw new LB("streams");let i=new GB,n=i.signal,s=r?.signal,o=[];UB(s,"options.signal");function u(){S(new jB)}Rf=Rf||st().addAbortListener;let a;s&&(a=Rf(s,u));let l,f,c=[],g=0;function y(I){S(I,--g===0)}function S(I,T){var L;if(I&&(!l||l.code==="ERR_STREAM_PREMATURE_CLOSE")&&(l=I),!(!l&&!T)){for(;c.length;)c.shift()(l);(L=a)===null||L===void 0||L[IB](),i.abort(),T&&(l||o.forEach(J=>J()),Vn.nextTick(e,l,f))}}let m;for(let I=0;I<t.length;I++){let T=t[I],L=I<t.length-1,J=I>0,O=L||r?.end!==!1,q=I===t.length-1;if(Fb(T)){let F=function(N){N&&N.name!=="AbortError"&&N.code!=="ERR_STREAM_PREMATURE_CLOSE"&&y(N)};var v=F;if(O){let{destroy:N,cleanup:M}=Tb(T,L,J);c.push(N),Cf(T)&&q&&o.push(M)}T.on("error",F),Cf(T)&&q&&o.push(()=>{T.removeListener("error",F)})}if(I===0)if(typeof T=="function"){if(m=T({signal:n}),!Kr(m))throw new vf("Iterable, AsyncIterable or Stream","source",m)}else Kr(T)||ru(T)||ji(T)?m=T:m=Cb.from(T);else if(typeof T=="function"){if(ji(m)){var E;m=Of((E=m)===null||E===void 0?void 0:E.readable)}else m=Of(m);if(m=T(m,{signal:n}),L){if(!Kr(m,!0))throw new vf("AsyncIterable",`transform[${I-1}]`,m)}else{var b;Tf||(Tf=Af());let F=new Tf({objectMode:!0}),N=(b=m)===null||b===void 0?void 0:b.then;if(typeof N=="function")g++,N.call(m,te=>{f=te,te!=null&&F.write(te),O&&F.end(),Vn.nextTick(y)},te=>{F.destroy(te),Vn.nextTick(y,te)});else if(Kr(m,!0))g++,tu(m,F,y,{end:O});else if(Ff(m)||ji(m)){let te=m.readable||m;g++,tu(te,F,y,{end:O})}else throw new vf("AsyncIterable or Promise","destination",m);m=F;let{destroy:M,cleanup:$}=Tb(m,!1,!0);c.push(M),q&&o.push($)}}else if(Fb(T)){if(ru(m)){g+=2;let F=ZB(m,T,y,{end:O});Cf(T)&&q&&o.push(F)}else if(ji(m)||Ff(m)){let F=m.readable||m;g++,tu(F,T,y,{end:O})}else if(Kr(m))g++,tu(m,T,y,{end:O});else throw new If("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],m);m=T}else if($B(T)){if(ru(m))g++,Bf(Of(m),T,y,{end:O});else if(Ff(m)||Kr(m))g++,Bf(m,T,y,{end:O});else if(ji(m))g++,Bf(m.readable,T,y,{end:O});else throw new If("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],m);m=T}else m=Cb.from(T)}return(n!=null&&n.aborted||s!=null&&s.aborted)&&Vn.nextTick(u),m}function ZB(t,e,r,{end:i}){let n=!1;if(e.on("close",()=>{n||r(new qB)}),t.pipe(e,{end:!1}),i){let o=function(){n=!0,e.end()};var s=o;zB(t)?Vn.nextTick(o):t.once("end",o)}else r();return iu(t,{readable:!0,writable:!1},o=>{let u=t._readableState;o&&o.code==="ERR_STREAM_PREMATURE_CLOSE"&&u&&u.ended&&!u.errored&&!u.errorEmitted?t.once("end",r).once("error",r):r(o)}),iu(e,{readable:!1,writable:!0},r)}Rb.exports={pipelineImpl:xb,pipeline:YB}});var Nf=w((v5,Mb)=>{"use strict";var{pipeline:KB}=nu(),su=qt(),{destroyer:QB}=Vr(),{isNodeStream:ou,isReadable:Ob,isWritable:Bb,isWebStream:Pf,isTransformStream:Qr,isWritableStream:Ib,isReadableStream:Pb}=Lt(),{AbortError:JB,codes:{ERR_INVALID_ARG_VALUE:Nb,ERR_MISSING_ARGS:XB}}=et(),e3=rr();Mb.exports=function(...e){if(e.length===0)throw new XB("streams");if(e.length===1)return su.from(e[0]);let r=[...e];if(typeof e[0]=="function"&&(e[0]=su.from(e[0])),typeof e[e.length-1]=="function"){let y=e.length-1;e[y]=su.from(e[y])}for(let y=0;y<e.length;++y)if(!(!ou(e[y])&&!Pf(e[y]))){if(y<e.length-1&&!(Ob(e[y])||Pb(e[y])||Qr(e[y])))throw new Nb(`streams[${y}]`,r[y],"must be readable");if(y>0&&!(Bb(e[y])||Ib(e[y])||Qr(e[y])))throw new Nb(`streams[${y}]`,r[y],"must be writable")}let i,n,s,o,u;function a(y){let S=o;o=null,S?S(y):y?u.destroy(y):!g&&!c&&u.destroy()}let l=e[0],f=KB(e,a),c=!!(Bb(l)||Ib(l)||Qr(l)),g=!!(Ob(f)||Pb(f)||Qr(f));if(u=new su({writableObjectMode:!!(l!=null&&l.writableObjectMode),readableObjectMode:!!(f!=null&&f.readableObjectMode),writable:c,readable:g}),c){if(ou(l))u._write=function(S,m,E){l.write(S,m)?E():i=E},u._final=function(S){l.end(),n=S},l.on("drain",function(){if(i){let S=i;i=null,S()}});else if(Pf(l)){let m=(Qr(l)?l.writable:l).getWriter();u._write=async function(E,b,v){try{await m.ready,m.write(E).catch(()=>{}),v()}catch(I){v(I)}},u._final=async function(E){try{await m.ready,m.close().catch(()=>{}),n=E}catch(b){E(b)}}}let y=Qr(f)?f.readable:f;e3(y,()=>{if(n){let S=n;n=null,S()}})}if(g){if(ou(f))f.on("readable",function(){if(s){let y=s;s=null,y()}}),f.on("end",function(){u.push(null)}),u._read=function(){for(;;){let y=f.read();if(y===null){s=u._read;return}if(!u.push(y))return}};else if(Pf(f)){let S=(Qr(f)?f.readable:f).getReader();u._read=async function(){for(;;)try{let{value:m,done:E}=await S.read();if(!u.push(m))return;if(E){u.push(null);return}}catch{return}}}}return u._destroy=function(y,S){!y&&o!==null&&(y=new JB),s=null,i=null,n=null,o===null?S(y):(o=S,ou(f)&&QB(f,y))},u}});var Hb=w((C5,kf)=>{"use strict";var t3=globalThis.AbortController||Ti().AbortController,{codes:{ERR_INVALID_ARG_VALUE:r3,ERR_INVALID_ARG_TYPE:Yn,ERR_MISSING_ARGS:i3,ERR_OUT_OF_RANGE:n3},AbortError:jt}=et(),{validateAbortSignal:Jr,validateInteger:Lb,validateObject:Xr}=Ri(),s3=Re().Symbol("kWeak"),o3=Re().Symbol("kResistStopPropagation"),{finished:u3}=rr(),a3=Nf(),{addAbortSignalNoValidate:l3}=kn(),{isWritable:f3,isNodeStream:c3}=Lt(),{deprecate:h3}=st(),{ArrayPrototypePush:d3,Boolean:p3,MathFloor:kb,Number:g3,NumberIsNaN:y3,Promise:qb,PromiseReject:jb,PromiseResolve:m3,PromisePrototypeThen:Wb,Symbol:$b}=Re(),uu=$b("kEmpty"),Ub=$b("kEof");function b3(t,e){if(e!=null&&Xr(e,"options"),e?.signal!=null&&Jr(e.signal,"options.signal"),c3(t)&&!f3(t))throw new r3("stream",t,"must be writable");let r=a3(this,t);return e!=null&&e.signal&&l3(e.signal,r),r}function au(t,e){if(typeof t!="function")throw new Yn("fn",["Function","AsyncFunction"],t);e!=null&&Xr(e,"options"),e?.signal!=null&&Jr(e.signal,"options.signal");let r=1;e?.concurrency!=null&&(r=kb(e.concurrency));let i=r-1;return e?.highWaterMark!=null&&(i=kb(e.highWaterMark)),Lb(r,"options.concurrency",1),Lb(i,"options.highWaterMark",0),i+=r,async function*(){let s=st().AbortSignalAny([e?.signal].filter(p3)),o=this,u=[],a={signal:s},l,f,c=!1,g=0;function y(){c=!0,S()}function S(){g-=1,m()}function m(){f&&!c&&g<r&&u.length<i&&(f(),f=null)}async function E(){try{for await(let b of o){if(c)return;if(s.aborted)throw new jt;try{if(b=t(b,a),b===uu)continue;b=m3(b)}catch(v){b=jb(v)}g+=1,Wb(b,S,y),u.push(b),l&&(l(),l=null),!c&&(u.length>=i||g>=r)&&await new qb(v=>{f=v})}u.push(Ub)}catch(b){let v=jb(b);Wb(v,S,y),u.push(v)}finally{c=!0,l&&(l(),l=null)}}E();try{for(;;){for(;u.length>0;){let b=await u[0];if(b===Ub)return;if(s.aborted)throw new jt;b!==uu&&(yield b),u.shift(),m()}await new qb(b=>{l=b})}}finally{c=!0,f&&(f(),f=null)}}.call(this)}function _3(t=void 0){return t!=null&&Xr(t,"options"),t?.signal!=null&&Jr(t.signal,"options.signal"),async function*(){let r=0;for await(let n of this){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new jt({cause:t.signal.reason});yield[r++,n]}}.call(this)}async function zb(t,e=void 0){for await(let r of Lf.call(this,t,e))return!0;return!1}async function w3(t,e=void 0){if(typeof t!="function")throw new Yn("fn",["Function","AsyncFunction"],t);return!await zb.call(this,async(...r)=>!await t(...r),e)}async function D3(t,e){for await(let r of Lf.call(this,t,e))return r}async function E3(t,e){if(typeof t!="function")throw new Yn("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n),uu}for await(let i of au.call(this,r,e));}function Lf(t,e){if(typeof t!="function")throw new Yn("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n)?i:uu}return au.call(this,r,e)}var Mf=class extends i3{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function S3(t,e,r){var i;if(typeof t!="function")throw new Yn("reducer",["Function","AsyncFunction"],t);r!=null&&Xr(r,"options"),r?.signal!=null&&Jr(r.signal,"options.signal");let n=arguments.length>1;if(r!=null&&(i=r.signal)!==null&&i!==void 0&&i.aborted){let l=new jt(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await u3(this.destroy(l)),l}let s=new t3,o=s.signal;if(r!=null&&r.signal){let l={once:!0,[s3]:this,[o3]:!0};r.signal.addEventListener("abort",()=>s.abort(),l)}let u=!1;try{for await(let l of this){var a;if(u=!0,r!=null&&(a=r.signal)!==null&&a!==void 0&&a.aborted)throw new jt;n?e=await t(e,l,{signal:o}):(e=l,n=!0)}if(!u&&!n)throw new Mf}finally{s.abort()}return e}async function A3(t){t!=null&&Xr(t,"options"),t?.signal!=null&&Jr(t.signal,"options.signal");let e=[];for await(let i of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new jt(void 0,{cause:t.signal.reason});d3(e,i)}return e}function v3(t,e){let r=au.call(this,t,e);return async function*(){for await(let n of r)yield*n}.call(this)}function Gb(t){if(t=g3(t),y3(t))return 0;if(t<0)throw new n3("number",">= 0",t);return t}function C3(t,e=void 0){return e!=null&&Xr(e,"options"),e?.signal!=null&&Jr(e.signal,"options.signal"),t=Gb(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new jt;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new jt;t--<=0&&(yield s)}}.call(this)}function F3(t,e=void 0){return e!=null&&Xr(e,"options"),e?.signal!=null&&Jr(e.signal,"options.signal"),t=Gb(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new jt;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new jt;if(t-- >0&&(yield s),t<=0)return}}.call(this)}kf.exports.streamReturningOperators={asIndexedPairs:h3(_3,"readable.asIndexedPairs will be removed in a future version."),drop:C3,filter:Lf,flatMap:v3,map:au,take:F3,compose:b3};kf.exports.promiseReturningOperators={every:w3,forEach:E3,reduce:S3,toArray:A3,some:zb,find:D3}});var qf=w((F5,Vb)=>{"use strict";var{ArrayPrototypePop:T3,Promise:x3}=Re(),{isIterable:R3,isNodeStream:O3,isWebStream:B3}=Lt(),{pipelineImpl:I3}=nu(),{finished:P3}=rr();jf();function N3(...t){return new x3((e,r)=>{let i,n,s=t[t.length-1];if(s&&typeof s=="object"&&!O3(s)&&!R3(s)&&!B3(s)){let o=T3(t);i=o.signal,n=o.end}I3(t,(o,u)=>{o?r(o):e(u)},{signal:i,end:n})})}Vb.exports={finished:P3,pipeline:N3}});var jf=w((T5,r_)=>{"use strict";var{Buffer:M3}=U("buffer"),{ObjectDefineProperty:sr,ObjectKeys:Kb,ReflectApply:Qb}=Re(),{promisify:{custom:Jb}}=st(),{streamReturningOperators:Yb,promiseReturningOperators:Zb}=Hb(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:Xb}}=et(),L3=Nf(),{setDefaultHighWaterMark:k3,getDefaultHighWaterMark:q3}=qn(),{pipeline:e_}=nu(),{destroyer:j3}=Vr(),t_=rr(),Wf=qf(),Zn=Lt(),Fe=r_.exports=Uo().Stream;Fe.isDestroyed=Zn.isDestroyed;Fe.isDisturbed=Zn.isDisturbed;Fe.isErrored=Zn.isErrored;Fe.isReadable=Zn.isReadable;Fe.isWritable=Zn.isWritable;Fe.Readable=Un();for(let t of Kb(Yb)){let r=function(...i){if(new.target)throw Xb();return Fe.Readable.from(Qb(e,this,i))},e=Yb[t];sr(r,"name",{__proto__:null,value:e.name}),sr(r,"length",{__proto__:null,value:e.length}),sr(Fe.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}for(let t of Kb(Zb)){let r=function(...i){if(new.target)throw Xb();return Qb(e,this,i)},e=Zb[t];sr(r,"name",{__proto__:null,value:e.name}),sr(r,"length",{__proto__:null,value:e.length}),sr(Fe.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}Fe.Writable=eu();Fe.Duplex=qt();Fe.Transform=Ef();Fe.PassThrough=Af();Fe.pipeline=e_;var{addAbortSignal:W3}=kn();Fe.addAbortSignal=W3;Fe.finished=t_;Fe.destroy=j3;Fe.compose=L3;Fe.setDefaultHighWaterMark=k3;Fe.getDefaultHighWaterMark=q3;sr(Fe,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return Wf}});sr(e_,Jb,{__proto__:null,enumerable:!0,get(){return Wf.pipeline}});sr(t_,Jb,{__proto__:null,enumerable:!0,get(){return Wf.finished}});Fe.Stream=Fe;Fe._isUint8Array=function(e){return e instanceof Uint8Array};Fe._uint8ArrayToBuffer=function(e){return M3.from(e.buffer,e.byteOffset,e.byteLength)}});var ei=w((x5,re)=>{"use strict";var je=U("stream");if(je&&process.env.READABLE_STREAM==="disable"){let t=je.promises;re.exports._uint8ArrayToBuffer=je._uint8ArrayToBuffer,re.exports._isUint8Array=je._isUint8Array,re.exports.isDisturbed=je.isDisturbed,re.exports.isErrored=je.isErrored,re.exports.isReadable=je.isReadable,re.exports.Readable=je.Readable,re.exports.Writable=je.Writable,re.exports.Duplex=je.Duplex,re.exports.Transform=je.Transform,re.exports.PassThrough=je.PassThrough,re.exports.addAbortSignal=je.addAbortSignal,re.exports.finished=je.finished,re.exports.destroy=je.destroy,re.exports.pipeline=je.pipeline,re.exports.compose=je.compose,Object.defineProperty(je,"promises",{configurable:!0,enumerable:!0,get(){return t}}),re.exports.Stream=je.Stream}else{let t=jf(),e=qf(),r=t.Readable.destroy;re.exports=t.Readable,re.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,re.exports._isUint8Array=t._isUint8Array,re.exports.isDisturbed=t.isDisturbed,re.exports.isErrored=t.isErrored,re.exports.isReadable=t.isReadable,re.exports.Readable=t.Readable,re.exports.Writable=t.Writable,re.exports.Duplex=t.Duplex,re.exports.Transform=t.Transform,re.exports.PassThrough=t.PassThrough,re.exports.addAbortSignal=t.addAbortSignal,re.exports.finished=t.finished,re.exports.destroy=t.destroy,re.exports.destroy=r,re.exports.pipeline=t.pipeline,re.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return e}}),re.exports.Stream=t.Stream}re.exports.default=re.exports});var n_=w((R5,i_)=>{function U3(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}i_.exports=U3});var a_=w((O5,u_)=>{var s_=Fo(),$3=Sl(),z3=Al(),o_=s_?s_.isConcatSpreadable:void 0;function G3(t){return z3(t)||$3(t)||!!(o_&&t&&t[o_])}u_.exports=G3});var lu=w((B5,f_)=>{var H3=n_(),V3=a_();function l_(t,e,r,i,n){var s=-1,o=t.length;for(r||(r=V3),n||(n=[]);++s<o;){var u=t[s];e>0&&r(u)?e>1?l_(u,e-1,r,i,n):H3(n,u):i||(n[n.length]=u)}return n}f_.exports=l_});var h_=w((I5,c_)=>{var Y3=lu();function Z3(t){var e=t==null?0:t.length;return e?Y3(t,1):[]}c_.exports=Z3});var Kn=w((P5,d_)=>{var K3=xn(),Q3=K3(Object,"create");d_.exports=Q3});var y_=w((N5,g_)=>{var p_=Kn();function J3(){this.__data__=p_?p_(null):{},this.size=0}g_.exports=J3});var b_=w((M5,m_)=>{function X3(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}m_.exports=X3});var w_=w((L5,__)=>{var e8=Kn(),t8="__lodash_hash_undefined__",r8=Object.prototype,i8=r8.hasOwnProperty;function n8(t){var e=this.__data__;if(e8){var r=e[t];return r===t8?void 0:r}return i8.call(e,t)?e[t]:void 0}__.exports=n8});var E_=w((k5,D_)=>{var s8=Kn(),o8=Object.prototype,u8=o8.hasOwnProperty;function a8(t){var e=this.__data__;return s8?e[t]!==void 0:u8.call(e,t)}D_.exports=a8});var A_=w((q5,S_)=>{var l8=Kn(),f8="__lodash_hash_undefined__";function c8(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=l8&&e===void 0?f8:e,this}S_.exports=c8});var C_=w((j5,v_)=>{var h8=y_(),d8=b_(),p8=w_(),g8=E_(),y8=A_();function Wi(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Wi.prototype.clear=h8;Wi.prototype.delete=d8;Wi.prototype.get=p8;Wi.prototype.has=g8;Wi.prototype.set=y8;v_.exports=Wi});var T_=w((W5,F_)=>{function m8(){this.__data__=[],this.size=0}F_.exports=m8});var Qn=w((U5,x_)=>{var b8=xo();function _8(t,e){for(var r=t.length;r--;)if(b8(t[r][0],e))return r;return-1}x_.exports=_8});var O_=w(($5,R_)=>{var w8=Qn(),D8=Array.prototype,E8=D8.splice;function S8(t){var e=this.__data__,r=w8(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():E8.call(e,r,1),--this.size,!0}R_.exports=S8});var I_=w((z5,B_)=>{var A8=Qn();function v8(t){var e=this.__data__,r=A8(e,t);return r<0?void 0:e[r][1]}B_.exports=v8});var N_=w((G5,P_)=>{var C8=Qn();function F8(t){return C8(this.__data__,t)>-1}P_.exports=F8});var L_=w((H5,M_)=>{var T8=Qn();function x8(t,e){var r=this.__data__,i=T8(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}M_.exports=x8});var q_=w((V5,k_)=>{var R8=T_(),O8=O_(),B8=I_(),I8=N_(),P8=L_();function Ui(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Ui.prototype.clear=R8;Ui.prototype.delete=O8;Ui.prototype.get=B8;Ui.prototype.has=I8;Ui.prototype.set=P8;k_.exports=Ui});var W_=w((Y5,j_)=>{var N8=xn(),M8=Si(),L8=N8(M8,"Map");j_.exports=L8});var z_=w((Z5,$_)=>{var U_=C_(),k8=q_(),q8=W_();function j8(){this.size=0,this.__data__={hash:new U_,map:new(q8||k8),string:new U_}}$_.exports=j8});var H_=w((K5,G_)=>{function W8(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}G_.exports=W8});var Jn=w((Q5,V_)=>{var U8=H_();function $8(t,e){var r=t.__data__;return U8(e)?r[typeof e=="string"?"string":"hash"]:r.map}V_.exports=$8});var Z_=w((J5,Y_)=>{var z8=Jn();function G8(t){var e=z8(this,t).delete(t);return this.size-=e?1:0,e}Y_.exports=G8});var Q_=w((X5,K_)=>{var H8=Jn();function V8(t){return H8(this,t).get(t)}K_.exports=V8});var X_=w((eq,J_)=>{var Y8=Jn();function Z8(t){return Y8(this,t).has(t)}J_.exports=Z8});var tw=w((tq,ew)=>{var K8=Jn();function Q8(t,e){var r=K8(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}ew.exports=Q8});var iw=w((rq,rw)=>{var J8=z_(),X8=Z_(),eI=Q_(),tI=X_(),rI=tw();function $i(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}$i.prototype.clear=J8;$i.prototype.delete=X8;$i.prototype.get=eI;$i.prototype.has=tI;$i.prototype.set=rI;rw.exports=$i});var sw=w((iq,nw)=>{var iI="__lodash_hash_undefined__";function nI(t){return this.__data__.set(t,iI),this}nw.exports=nI});var uw=w((nq,ow)=>{function sI(t){return this.__data__.has(t)}ow.exports=sI});var Uf=w((sq,aw)=>{var oI=iw(),uI=sw(),aI=uw();function fu(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new oI;++e<r;)this.add(t[e])}fu.prototype.add=fu.prototype.push=uI;fu.prototype.has=aI;aw.exports=fu});var fw=w((oq,lw)=>{function lI(t,e,r,i){for(var n=t.length,s=r+(i?1:-1);i?s--:++s<n;)if(e(t[s],s,t))return s;return-1}lw.exports=lI});var hw=w((uq,cw)=>{function fI(t){return t!==t}cw.exports=fI});var pw=w((aq,dw)=>{function cI(t,e,r){for(var i=r-1,n=t.length;++i<n;)if(t[i]===e)return i;return-1}dw.exports=cI});var yw=w((lq,gw)=>{var hI=fw(),dI=hw(),pI=pw();function gI(t,e,r){return e===e?pI(t,e,r):hI(t,dI,r)}gw.exports=gI});var $f=w((fq,mw)=>{var yI=yw();function mI(t,e){var r=t==null?0:t.length;return!!r&&yI(t,e,0)>-1}mw.exports=mI});var zf=w((cq,bw)=>{function bI(t,e,r){for(var i=-1,n=t==null?0:t.length;++i<n;)if(r(e,t[i]))return!0;return!1}bw.exports=bI});var ww=w((hq,_w)=>{function _I(t,e){for(var r=-1,i=t==null?0:t.length,n=Array(i);++r<i;)n[r]=e(t[r],r,t);return n}_w.exports=_I});var Gf=w((dq,Dw)=>{function wI(t,e){return t.has(e)}Dw.exports=wI});var Sw=w((pq,Ew)=>{var DI=Uf(),EI=$f(),SI=zf(),AI=ww(),vI=vl(),CI=Gf(),FI=200;function TI(t,e,r,i){var n=-1,s=EI,o=!0,u=t.length,a=[],l=e.length;if(!u)return a;r&&(e=AI(e,vI(r))),i?(s=SI,o=!1):e.length>=FI&&(s=CI,o=!1,e=new DI(e));e:for(;++n<u;){var f=t[n],c=r==null?f:r(f);if(f=i||f!==0?f:0,o&&c===c){for(var g=l;g--;)if(e[g]===c)continue e;a.push(f)}else s(e,c,i)||a.push(f)}return a}Ew.exports=TI});var Hf=w((gq,Aw)=>{var xI=Ro(),RI=Ai();function OI(t){return RI(t)&&xI(t)}Aw.exports=OI});var Fw=w((yq,Cw)=>{var BI=Sw(),II=lu(),PI=To(),vw=Hf(),NI=PI(function(t,e){return vw(t)?BI(t,II(e,1,vw,!0)):[]});Cw.exports=NI});var xw=w((mq,Tw)=>{var MI=xn(),LI=Si(),kI=MI(LI,"Set");Tw.exports=kI});var Ow=w((bq,Rw)=>{function qI(){}Rw.exports=qI});var Vf=w((_q,Bw)=>{function jI(t){var e=-1,r=Array(t.size);return t.forEach(function(i){r[++e]=i}),r}Bw.exports=jI});var Pw=w((wq,Iw)=>{var Yf=xw(),WI=Ow(),UI=Vf(),$I=1/0,zI=Yf&&1/UI(new Yf([,-0]))[1]==$I?function(t){return new Yf(t)}:WI;Iw.exports=zI});var Mw=w((Dq,Nw)=>{var GI=Uf(),HI=$f(),VI=zf(),YI=Gf(),ZI=Pw(),KI=Vf(),QI=200;function JI(t,e,r){var i=-1,n=HI,s=t.length,o=!0,u=[],a=u;if(r)o=!1,n=VI;else if(s>=QI){var l=e?null:ZI(t);if(l)return KI(l);o=!1,n=YI,a=new GI}else a=e?[]:u;e:for(;++i<s;){var f=t[i],c=e?e(f):f;if(f=r||f!==0?f:0,o&&c===c){for(var g=a.length;g--;)if(a[g]===c)continue e;e&&a.push(c),u.push(f)}else n(a,c,r)||(a!==u&&a.push(c),u.push(f))}return u}Nw.exports=JI});var kw=w((Eq,Lw)=>{var XI=lu(),eP=To(),tP=Mw(),rP=Hf(),iP=eP(function(t){return tP(XI(t,1,rP,!0))});Lw.exports=iP});var jw=w((Sq,qw)=>{function nP(t,e){return function(r){return t(e(r))}}qw.exports=nP});var Uw=w((Aq,Ww)=>{var sP=jw(),oP=sP(Object.getPrototypeOf,Object);Ww.exports=oP});var Gw=w((vq,zw)=>{var uP=Fn(),aP=Uw(),lP=Ai(),fP="[object Object]",cP=Function.prototype,hP=Object.prototype,$w=cP.toString,dP=hP.hasOwnProperty,pP=$w.call(Object);function gP(t){if(!lP(t)||uP(t)!=fP)return!1;var e=aP(t);if(e===null)return!0;var r=dP.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&$w.call(r)==pP}zw.exports=gP});var Hw=w(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.assertValidPattern=void 0;var yP=1024*64,mP=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>yP)throw new TypeError("pattern is too long")};cu.assertValidPattern=mP});var Yw=w(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.parseClass=void 0;var bP={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Xn=t=>t.replace(/[[\]\\-]/g,"\\$&"),_P=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Vw=t=>t.join(""),wP=(t,e)=>{let r=e;if(t.charAt(r)!=="[")throw new Error("not in a brace expression");let i=[],n=[],s=r+1,o=!1,u=!1,a=!1,l=!1,f=r,c="";e:for(;s<t.length;){let m=t.charAt(s);if((m==="!"||m==="^")&&s===r+1){l=!0,s++;continue}if(m==="]"&&o&&!a){f=s+1;break}if(o=!0,m==="\\"&&!a){a=!0,s++;continue}if(m==="["&&!a){for(let[E,[b,v,I]]of Object.entries(bP))if(t.startsWith(E,s)){if(c)return["$.",!1,t.length-r,!0];s+=E.length,I?n.push(b):i.push(b),u=u||v;continue e}}if(a=!1,c){m>c?i.push(Xn(c)+"-"+Xn(m)):m===c&&i.push(Xn(m)),c="",s++;continue}if(t.startsWith("-]",s+1)){i.push(Xn(m+"-")),s+=2;continue}if(t.startsWith("-",s+1)){c=m,s+=2;continue}i.push(Xn(m)),s++}if(f<s)return["",!1,0,!1];if(!i.length&&!n.length)return["$.",!1,t.length-r,!0];if(n.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!l){let m=i[0].length===2?i[0].slice(-1):i[0];return[_P(m),!1,f-r,!1]}let g="["+(l?"^":"")+Vw(i)+"]",y="["+(l?"":"^")+Vw(n)+"]";return[i.length&&n.length?"("+g+"|"+y+")":i.length?g:y,u,f-r,!0]};hu.parseClass=wP});var pu=w(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.unescape=void 0;var DP=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");du.unescape=DP});var Qf=w(bu=>{"use strict";var lt;Object.defineProperty(bu,"__esModule",{value:!0});bu.AST=void 0;var EP=Yw(),gu=pu(),SP=new Set(["!","?","+","*","@"]),Zf=t=>SP.has(t),Zw=t=>Zf(t.type),AP=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),vP=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),CP=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Kw=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),FP="(?!(?:^|/)\\.\\.?(?:$|/))",yu="(?!\\.)",TP=new Set(["[","."]),xP=new Set(["..","."]),RP=new Set("().*{}+?[]^$\\!"),OP=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Kf="[^/]",Qw=Kf+"*?",Jw=Kf+"+?",mu=class{type;#e;#r;#n=!1;#t=[];#o;#D;#l;#c=!1;#a;#u;#s=!1;constructor(e,r,i={}){this.type=e,e&&(this.#r=!0),this.#o=r,this.#e=this.#o?this.#o.#e:this,this.#a=this.#e===this?i:this.#e.#a,this.#l=this.#e===this?[]:this.#e.#l,e==="!"&&!this.#e.#c&&this.#l.push(this),this.#D=this.#o?this.#o.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#u!==void 0?this.#u:this.type?this.#u=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#u=this.#t.map(e=>String(e)).join("")}#m(){if(this!==this.#e)throw new Error("should only call on root");if(this.#c)return this;this.toString(),this.#c=!0;let e;for(;e=this.#l.pop();){if(e.type!=="!")continue;let r=e,i=r.#o;for(;i;){for(let n=r.#D+1;!i.type&&n<i.#t.length;n++)for(let s of e.#t){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(i.#t[n])}r=i,i=r.#o}}return this}push(...e){for(let r of e)if(r!==""){if(typeof r!="string"&&!(r instanceof lt&&r.#o===this))throw new Error("invalid part: "+r);this.#t.push(r)}}toJSON(){let e=this.type===null?this.#t.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#t.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#c&&this.#o?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#o?.isStart())return!1;if(this.#D===0)return!0;let e=this.#o;for(let r=0;r<this.#D;r++){let i=e.#t[r];if(!(i instanceof lt&&i.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#o?.type==="!")return!0;if(!this.#o?.isEnd())return!1;if(!this.type)return this.#o?.isEnd();let e=this.#o?this.#o.#t.length:0;return this.#D===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let r=new lt(this.type,e);for(let i of this.#t)r.copyIn(i);return r}static#b(e,r,i,n,s){let o=n.maxExtglobRecursion??2,u=!1,a=!1,l=-1,f=!1;if(r.type===null){let m=i,E="";for(;m<e.length;){let b=e.charAt(m++);if(u||b==="\\"){u=!u,E+=b;continue}if(a){m===l+1?(b==="^"||b==="!")&&(f=!0):b==="]"&&!(m===l+2&&f)&&(a=!1),E+=b;continue}else if(b==="["){a=!0,l=m,f=!1,E+=b;continue}if(!n.noext&&Zf(b)&&e.charAt(m)==="("&&s<=o){r.push(E),E="";let I=new lt(b,r);m=lt.#b(e,I,m,n,s+1),r.push(I);continue}E+=b}return r.push(E),m}let c=i+1,g=new lt(null,r),y=[],S="";for(;c<e.length;){let m=e.charAt(c++);if(u||m==="\\"){u=!u,S+=m;continue}if(a){c===l+1?(m==="^"||m==="!")&&(f=!0):m==="]"&&!(c===l+2&&f)&&(a=!1),S+=m;continue}else if(m==="["){a=!0,l=c,f=!1,S+=m;continue}if(Zf(m)&&e.charAt(c)==="("&&(s<=o||r&&r.#E(m))){let b=r&&r.#E(m)?0:1;g.push(S),S="";let v=new lt(m,g);g.push(v),c=lt.#b(e,v,c,n,s+b);continue}if(m==="|"){g.push(S),S="",y.push(g),g=new lt(null,r);continue}if(m===")")return S===""&&r.#t.length===0&&(r.#s=!0),g.push(S),S="",r.push(...y,g),c;S+=m}return r.type=null,r.#r=void 0,r.#t=[e.substring(i-1)],c}#g(e){return this.#d(e,vP)}#d(e,r=AP){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null)return!1;let i=e.#t[0];return!i||typeof i!="object"||i.type===null?!1:this.#E(i.type,r)}#E(e,r=CP){return!!r.get(this.type)?.includes(e)}#p(e,r){let i=e.#t[0],n=new lt(null,i,this.options);n.#t.push(""),i.push(n),this.#A(e,r)}#A(e,r){let i=e.#t[0];this.#t.splice(r,1,...i.#t);for(let n of i.#t)typeof n=="object"&&(n.#o=this);this.#u=void 0}#v(e){return!!Kw.get(this.type)?.has(e)}#y(e){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null||this.#t.length!==1)return!1;let r=e.#t[0];return!r||typeof r!="object"||r.type===null?!1:this.#v(r.type)}#S(e){let r=Kw.get(this.type),i=e.#t[0],n=r?.get(i.type);if(!n)return!1;this.#t=i.#t;for(let s of this.#t)typeof s=="object"&&(s.#o=this);this.type=n,this.#u=void 0,this.#s=!1}#_(){if(Zw(this)){let e=0,r=!1;do{r=!0;for(let i=0;i<this.#t.length;i++){let n=this.#t[i];typeof n=="object"&&(n.#_(),this.#d(n)?(r=!1,this.#A(n,i)):this.#g(n)?(r=!1,this.#p(n,i)):this.#y(n)&&(r=!1,this.#S(n)))}}while(!r&&++e<10)}else for(let e of this.#t)typeof e=="object"&&e.#_();this.#u=void 0}static fromGlob(e,r={}){let i=new lt(null,void 0,r);return lt.#b(e,i,0,r,0),i}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[r,i,n,s]=this.toRegExpSource();if(!(n||this.#r||this.#a.nocase&&!this.#a.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return i;let u=(this.#a.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,u),{_src:r,_glob:e})}get options(){return this.#a}toRegExpSource(e){let r=e??!!this.#a.dot;if(this.#e===this&&(this.#_(),this.#m()),!Zw(this)){let a=this.isStart()&&this.isEnd(),l=this.#t.map(y=>{let[S,m,E,b]=typeof y=="string"?lt.#C(y,this.#r,a):y.toRegExpSource(e);return this.#r=this.#r||E,this.#n=this.#n||b,S}).join(""),f="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&xP.has(this.#t[0]))){let S=TP,m=r&&S.has(l.charAt(0))||l.startsWith("\\.")&&S.has(l.charAt(2))||l.startsWith("\\.\\.")&&S.has(l.charAt(4)),E=!r&&!e&&S.has(l.charAt(0));f=m?FP:E?yu:""}let c="";return this.isEnd()&&this.#e.#c&&this.#o?.type==="!"&&(c="(?:$|\\/)"),[f+l+c,(0,gu.unescape)(l),this.#r=!!this.#r,this.#n]}let i=this.type==="*"||this.type==="+",n=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#h(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let a=this.toString(),l=this;return l.#t=[a],l.type=null,l.#r=void 0,[a,(0,gu.unescape)(this.toString()),!1,!1]}let o=!i||e||r||!yu?"":this.#h(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let u="";if(this.type==="!"&&this.#s)u=(this.isStart()&&!r?yu:"")+Jw;else{let a=this.type==="!"?"))"+(this.isStart()&&!r&&!e?yu:"")+Qw+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;u=n+s+a}return[u,(0,gu.unescape)(s),this.#r=!!this.#r,this.#n]}#h(e){return this.#t.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[i,n,s,o]=r.toRegExpSource(e);return this.#n=this.#n||o,i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#C(e,r,i=!1){let n=!1,s="",o=!1,u=!1;for(let a=0;a<e.length;a++){let l=e.charAt(a);if(n){n=!1,s+=(RP.has(l)?"\\":"")+l,u=!1;continue}if(l==="\\"){a===e.length-1?s+="\\\\":n=!0;continue}if(l==="["){let[f,c,g,y]=(0,EP.parseClass)(e,a);if(g){s+=f,o=o||c,a+=g-1,r=r||y,u=!1;continue}}if(l==="*"){if(u)continue;u=!0,s+=i&&/^[*]+$/.test(e)?Jw:Qw,r=!0;continue}else u=!1;if(l==="?"){s+=Kf,r=!0;continue}s+=OP(l)}return[s,(0,gu.unescape)(e),!!r,o]}};bu.AST=mu;lt=mu});var Jf=w(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.escape=void 0;var BP=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");_u.escape=BP});var Er=w(k=>{"use strict";var IP=k&&k.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(k,"__esModule",{value:!0});k.unescape=k.escape=k.AST=k.Minimatch=k.match=k.makeRe=k.braceExpand=k.defaults=k.filter=k.GLOBSTAR=k.sep=k.minimatch=void 0;var PP=IP(Pa()),wu=Hw(),tD=Qf(),NP=Jf(),MP=pu(),LP=(t,e,r={})=>((0,wu.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new ti(e,r).match(t));k.minimatch=LP;var kP=/^\*+([^+@!?\*\[\(]*)$/,qP=t=>e=>!e.startsWith(".")&&e.endsWith(t),jP=t=>e=>e.endsWith(t),WP=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),UP=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),$P=/^\*+\.\*+$/,zP=t=>!t.startsWith(".")&&t.includes("."),GP=t=>t!=="."&&t!==".."&&t.includes("."),HP=/^\.\*+$/,VP=t=>t!=="."&&t!==".."&&t.startsWith("."),YP=/^\*+$/,ZP=t=>t.length!==0&&!t.startsWith("."),KP=t=>t.length!==0&&t!=="."&&t!=="..",QP=/^\?+([^+@!?\*\[\(]*)?$/,JP=([t,e=""])=>{let r=rD([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},XP=([t,e=""])=>{let r=iD([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},eN=([t,e=""])=>{let r=iD([t]);return e?i=>r(i)&&i.endsWith(e):r},tN=([t,e=""])=>{let r=rD([t]);return e?i=>r(i)&&i.endsWith(e):r},rD=([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},iD=([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},nD=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Xw={win32:{sep:"\\"},posix:{sep:"/"}};k.sep=nD==="win32"?Xw.win32.sep:Xw.posix.sep;k.minimatch.sep=k.sep;k.GLOBSTAR=Symbol("globstar **");k.minimatch.GLOBSTAR=k.GLOBSTAR;var rN="[^/]",iN=rN+"*?",nN="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",sN="(?:(?!(?:\\/|^)\\.).)*?",oN=(t,e={})=>r=>(0,k.minimatch)(r,t,e);k.filter=oN;k.minimatch.filter=k.filter;var wt=(t,e={})=>Object.assign({},t,e),uN=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return k.minimatch;let e=k.minimatch;return Object.assign((i,n,s={})=>e(i,n,wt(t,s)),{Minimatch:class extends e.Minimatch{constructor(n,s={}){super(n,wt(t,s))}static defaults(n){return e.defaults(wt(t,n)).Minimatch}},AST:class extends e.AST{constructor(n,s,o={}){super(n,s,wt(t,o))}static fromGlob(n,s={}){return e.AST.fromGlob(n,wt(t,s))}},unescape:(i,n={})=>e.unescape(i,wt(t,n)),escape:(i,n={})=>e.escape(i,wt(t,n)),filter:(i,n={})=>e.filter(i,wt(t,n)),defaults:i=>e.defaults(wt(t,i)),makeRe:(i,n={})=>e.makeRe(i,wt(t,n)),braceExpand:(i,n={})=>e.braceExpand(i,wt(t,n)),match:(i,n,s={})=>e.match(i,n,wt(t,s)),sep:e.sep,GLOBSTAR:k.GLOBSTAR})};k.defaults=uN;k.minimatch.defaults=k.defaults;var aN=(t,e={})=>((0,wu.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,PP.default)(t));k.braceExpand=aN;k.minimatch.braceExpand=k.braceExpand;var lN=(t,e={})=>new ti(t,e).makeRe();k.makeRe=lN;k.minimatch.makeRe=k.makeRe;var fN=(t,e,r={})=>{let i=new ti(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};k.match=fN;k.minimatch.match=k.match;var eD=/[?*]|[+@!]\(.*?\)|\[|\]/,cN=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),ti=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,wu.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||nD,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let r of e)if(typeof r!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let n=this.globParts.map((s,o,u)=>{if(this.isWindows&&this.windowsNoMagicRoot){let a=s[0]===""&&s[1]===""&&(s[2]==="?"||!eD.test(s[2]))&&!eD.test(s[3]),l=/^[a-z]:/i.test(s[0]);if(a)return[...s.slice(0,4),...s.slice(4).map(f=>this.parse(f))];if(l)return[s[0],...s.slice(1).map(f=>this.parse(f))]}return s.map(a=>this.parse(a))});if(this.debug(this.pattern,n),this.set=n.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let i=0;i<e.length;i++)for(let n=0;n<e[i].length;n++)e[i][n]==="**"&&(e[i][n]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):r>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let n=i;for(;r[n+1]==="**";)n++;n!==i&&r.splice(i,n-i)}return r})}levelOneOptimize(e){return e.map(r=>(r=r.reduce((i,n)=>{let s=i[i.length-1];return n==="**"&&s==="**"?i:n===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(n),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let s=e[n];n===1&&s===""&&e[0]===""||(s==="."||s==="")&&(r=!0,e.splice(n,1),n--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(r=!0,e.pop())}let i=0;for(;(i=e.indexOf("..",i+1))!==-1;){let n=e[i-1];n&&n!=="."&&n!==".."&&n!=="**"&&(r=!0,e.splice(i-1,2),i-=2)}}while(r);return e.length===0?[""]:e}firstPhasePreProcess(e){let r=!1;do{r=!1;for(let i of e){let n=-1;for(;(n=i.indexOf("**",n+1))!==-1;){let o=n;for(;i[o+1]==="**";)o++;o>n&&i.splice(n+1,o-n);let u=i[n+1],a=i[n+2],l=i[n+3];if(u!==".."||!a||a==="."||a===".."||!l||l==="."||l==="..")continue;r=!0,i.splice(n,1);let f=i.slice(0);f[n]="**",e.push(f),n--}if(!this.preserveMultipleSlashes){for(let o=1;o<i.length-1;o++){let u=i[o];o===1&&u===""&&i[0]===""||(u==="."||u==="")&&(r=!0,i.splice(o,1),o--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let s=0;for(;(s=i.indexOf("..",s+1))!==-1;){let o=i[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){r=!0;let a=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...a),i.length===0&&i.push(""),s-=2}}}}while(r);return e}secondPhasePreProcess(e){for(let r=0;r<e.length-1;r++)for(let i=r+1;i<e.length;i++){let n=this.partsMatch(e[r],e[i],!this.preserveMultipleSlashes);if(n){e[r]=[],e[i]=n;break}}return e.filter(r=>r.length)}partsMatch(e,r,i=!1){let n=0,s=0,o=[],u="";for(;n<e.length&&s<r.length;)if(e[n]===r[s])o.push(u==="b"?r[s]:e[n]),n++,s++;else if(i&&e[n]==="**"&&r[s]===e[n+1])o.push(e[n]),n++;else if(i&&r[s]==="**"&&e[n]===r[s+1])o.push(r[s]),s++;else if(e[n]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(u==="b")return!1;u="a",o.push(e[n]),n++,s++}else if(r[s]==="*"&&e[n]&&(this.options.dot||!e[n].startsWith("."))&&e[n]!=="**"){if(u==="a")return!1;u="b",o.push(r[s]),n++,s++}else return!1;return e.length===r.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,r=!1,i=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++)r=!r,i++;i&&(this.pattern=e.slice(i)),this.negate=r}matchOne(e,r,i=!1){let n=0,s=0;if(this.isWindows){let u=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),a=!u&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),l=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),f=!l&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),c=a?3:u?0:void 0,g=f?3:l?0:void 0;if(typeof c=="number"&&typeof g=="number"){let[y,S]=[e[c],r[g]];y.toLowerCase()===S.toLowerCase()&&(r[g]=y,s=g,n=c)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(e=this.levelTwoFileOptimize(e)),r.includes(k.GLOBSTAR)?this.#e(e,r,i,n,s):this.#n(e,r,i,n,s)}#e(e,r,i,n,s){let o=r.indexOf(k.GLOBSTAR,s),u=r.lastIndexOf(k.GLOBSTAR),[a,l,f]=i?[r.slice(s,o),r.slice(o+1),[]]:[r.slice(s,o),r.slice(o+1,u),r.slice(u+1)];if(a.length){let v=e.slice(n,n+a.length);if(!this.#n(v,a,i,0,0))return!1;n+=a.length}let c=0;if(f.length){if(f.length+n>e.length)return!1;let v=e.length-f.length;if(this.#n(e,f,i,v,0))c=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||(v--,!this.#n(e,f,i,v,0)))return!1;c=f.length+1}}if(!l.length){let v=!!c;for(let I=n;I<e.length-c;I++){let T=String(e[I]);if(v=!0,T==="."||T===".."||!this.options.dot&&T.startsWith("."))return!1}return i||v}let g=[[[],0]],y=g[0],S=0,m=[0];for(let v of l)v===k.GLOBSTAR?(m.push(S),y=[[],0],g.push(y)):(y[0].push(v),S++);let E=g.length-1,b=e.length-c;for(let v of g)v[1]=b-(m[E--]+v[0].length);return!!this.#r(e,g,n,0,i,0,!!c)}#r(e,r,i,n,s,o,u){let a=r[n];if(!a){for(let c=i;c<e.length;c++){u=!0;let g=e[c];if(g==="."||g===".."||!this.options.dot&&g.startsWith("."))return!1}return u}let[l,f]=a;for(;i<=f;){if(this.#n(e.slice(0,i+l.length),l,s,i,0)&&o<this.maxGlobstarRecursion){let y=this.#r(e,r,i+l.length,n+1,s,o+1,u);if(y!==!1)return y}let g=e[i];if(g==="."||g===".."||!this.options.dot&&g.startsWith("."))return!1;i++}return s||null}#n(e,r,i,n,s){let o,u,a,l;for(o=n,u=s,l=e.length,a=r.length;o<l&&u<a;o++,u++){this.debug("matchOne loop");let f=r[u],c=e[o];if(this.debug(r,f,c),f===!1||f===k.GLOBSTAR)return!1;let g;if(typeof f=="string"?(g=c===f,this.debug("string match",f,c,g)):(g=f.test(c),this.debug("pattern match",f,c,g)),!g)return!1}if(o===l&&u===a)return!0;if(o===l)return i;if(u===a)return o===l-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,k.braceExpand)(this.pattern,this.options)}parse(e){(0,wu.assertValidPattern)(e);let r=this.options;if(e==="**")return k.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(YP))?n=r.dot?KP:ZP:(i=e.match(kP))?n=(r.nocase?r.dot?UP:WP:r.dot?jP:qP)(i[1]):(i=e.match(QP))?n=(r.nocase?r.dot?XP:JP:r.dot?eN:tN)(i):(i=e.match($P))?n=r.dot?GP:zP:(i=e.match(HP))&&(n=VP);let s=tD.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?iN:r.dot?nN:sN,n=new Set(r.nocase?["i"]:[]),s=e.map(a=>{let l=a.map(f=>{if(f instanceof RegExp)for(let c of f.flags.split(""))n.add(c);return typeof f=="string"?cN(f):f===k.GLOBSTAR?k.GLOBSTAR:f._src});return l.forEach((f,c)=>{let g=l[c+1],y=l[c-1];f!==k.GLOBSTAR||y===k.GLOBSTAR||(y===void 0?g!==void 0&&g!==k.GLOBSTAR?l[c+1]="(?:\\/|"+i+"\\/)?"+g:l[c]=i:g===void 0?l[c-1]=y+"(?:\\/|"+i+")?":g!==k.GLOBSTAR&&(l[c-1]=y+"(?:\\/|\\/"+i+"\\/)"+g,l[c+1]=k.GLOBSTAR))}),l.filter(f=>f!==k.GLOBSTAR).join("/")}).join("|"),[o,u]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+u+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let o=n[n.length-1];if(!o)for(let u=n.length-2;!o&&u>=0;u--)o=n[u];for(let u=0;u<s.length;u++){let a=s[u],l=n;if(i.matchBase&&a.length===1&&(l=[o]),this.matchOne(l,a,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return k.minimatch.defaults(e).Minimatch}};k.Minimatch=ti;var hN=Qf();Object.defineProperty(k,"AST",{enumerable:!0,get:function(){return hN.AST}});var dN=Jf();Object.defineProperty(k,"escape",{enumerable:!0,get:function(){return dN.escape}});var pN=pu();Object.defineProperty(k,"unescape",{enumerable:!0,get:function(){return pN.unescape}});k.minimatch.AST=tD.AST;k.minimatch.Minimatch=ti;k.minimatch.escape=NP.escape;k.minimatch.unescape=MP.unescape});var lD=w(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.LRUCache=void 0;var zi=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,oD=new Set,Xf=typeof process=="object"&&process?process:{},uD=(t,e,r,i)=>{typeof Xf.emitWarning=="function"?Xf.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},Du=globalThis.AbortController,sD=globalThis.AbortSignal;if(typeof Du>"u"){sD=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},Du=class{constructor(){e()}signal=new sD;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let n of this.signal._onabort)n(i);this.signal.onabort?.(i)}}};let t=Xf.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,uD("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var gN=t=>!oD.has(t),Sr=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),aD=t=>Sr(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Gi:null:null,Gi=class extends Array{constructor(e){super(e),this.fill(0)}},ec=class t{heap;length;static#e=!1;static create(e){let r=aD(e);if(!r)return[];t.#e=!0;let i=new t(e,r);return t.#e=!1,i}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},tc=class t{#e;#r;#n;#t;#o;#D;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#l;#c;#a;#u;#s;#m;#b;#g;#d;#E;#p;#A;#v;#y;#S;#_;#h;static unsafeExposeInternals(e){return{starts:e.#v,ttls:e.#y,sizes:e.#A,keyMap:e.#a,keyList:e.#u,valList:e.#s,next:e.#m,prev:e.#b,get head(){return e.#g},get tail(){return e.#d},free:e.#E,isBackgroundFetch:r=>e.#f(r),backgroundFetch:(r,i,n,s)=>e.#k(r,i,n,s),moveToTail:r=>e.#j(r),indexes:r=>e.#T(r),rindexes:r=>e.#x(r),isStale:r=>e.#w(r)}}get max(){return this.#e}get maxSize(){return this.#r}get calculatedSize(){return this.#c}get size(){return this.#l}get fetchMethod(){return this.#o}get memoMethod(){return this.#D}get dispose(){return this.#n}get disposeAfter(){return this.#t}constructor(e){let{max:r=0,ttl:i,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:u,allowStale:a,dispose:l,disposeAfter:f,noDisposeOnSet:c,noUpdateTTL:g,maxSize:y=0,maxEntrySize:S=0,sizeCalculation:m,fetchMethod:E,memoMethod:b,noDeleteOnFetchRejection:v,noDeleteOnStaleGet:I,allowStaleOnFetchRejection:T,allowStaleOnFetchAbort:L,ignoreFetchAbort:J}=e;if(r!==0&&!Sr(r))throw new TypeError("max option must be a nonnegative integer");let O=r?aD(r):Array;if(!O)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=y,this.maxEntrySize=S||this.#r,this.sizeCalculation=m,this.sizeCalculation){if(!this.#r&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(b!==void 0&&typeof b!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#D=b,E!==void 0&&typeof E!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=E,this.#_=!!E,this.#a=new Map,this.#u=new Array(r).fill(void 0),this.#s=new Array(r).fill(void 0),this.#m=new O(r),this.#b=new O(r),this.#g=0,this.#d=0,this.#E=ec.create(r),this.#l=0,this.#c=0,typeof l=="function"&&(this.#n=l),typeof f=="function"?(this.#t=f,this.#p=[]):(this.#t=void 0,this.#p=void 0),this.#S=!!this.#n,this.#h=!!this.#t,this.noDisposeOnSet=!!c,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!v,this.allowStaleOnFetchRejection=!!T,this.allowStaleOnFetchAbort=!!L,this.ignoreFetchAbort=!!J,this.maxEntrySize!==0){if(this.#r!==0&&!Sr(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!Sr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#R()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!I,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!u,this.ttlResolution=Sr(n)||n===0?n:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!Sr(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#C()}if(this.#e===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#r){let q="LRU_CACHE_UNBOUNDED";gN(q)&&(oD.add(q),uD("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",q,t))}}getRemainingTTL(e){return this.#a.has(e)?1/0:0}#C(){let e=new Gi(this.#e),r=new Gi(this.#e);this.#y=e,this.#v=r,this.#B=(s,o,u=zi.now())=>{if(r[s]=o!==0?u:0,e[s]=o,o!==0&&this.ttlAutopurge){let a=setTimeout(()=>{this.#w(s)&&this.#O(this.#u[s],"expire")},o+1);a.unref&&a.unref()}},this.#F=s=>{r[s]=e[s]!==0?zi.now():0},this.#i=(s,o)=>{if(e[o]){let u=e[o],a=r[o];if(!u||!a)return;s.ttl=u,s.start=a,s.now=i||n();let l=s.now-a;s.remainingTTL=u-l}};let i=0,n=()=>{let s=zi.now();if(this.ttlResolution>0){i=s;let o=setTimeout(()=>i=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#a.get(s);if(o===void 0)return 0;let u=e[o],a=r[o];if(!u||!a)return 1/0;let l=(i||n())-a;return u-l},this.#w=s=>{let o=r[s],u=e[s];return!!u&&!!o&&(i||n())-o>u}}#F=()=>{};#i=()=>{};#B=()=>{};#w=()=>!1;#R(){let e=new Gi(this.#e);this.#c=0,this.#A=e,this.#I=r=>{this.#c-=e[r],e[r]=0},this.#N=(r,i,n,s)=>{if(this.#f(i))return 0;if(!Sr(n))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(n=s(i,r),!Sr(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.#P=(r,i,n)=>{if(e[r]=i,this.#r){let s=this.#r-e[r];for(;this.#c>s;)this.#L(!0)}this.#c+=e[r],n&&(n.entrySize=i,n.totalCalculatedSize=this.#c)}}#I=e=>{};#P=(e,r,i)=>{};#N=(e,r,i,n)=>{if(i||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#T({allowStale:e=this.allowStale}={}){if(this.#l)for(let r=this.#d;!(!this.#M(r)||((e||!this.#w(r))&&(yield r),r===this.#g));)r=this.#b[r]}*#x({allowStale:e=this.allowStale}={}){if(this.#l)for(let r=this.#g;!(!this.#M(r)||((e||!this.#w(r))&&(yield r),r===this.#d));)r=this.#m[r]}#M(e){return e!==void 0&&this.#a.get(this.#u[e])===e}*entries(){for(let e of this.#T())this.#s[e]!==void 0&&this.#u[e]!==void 0&&!this.#f(this.#s[e])&&(yield[this.#u[e],this.#s[e]])}*rentries(){for(let e of this.#x())this.#s[e]!==void 0&&this.#u[e]!==void 0&&!this.#f(this.#s[e])&&(yield[this.#u[e],this.#s[e]])}*keys(){for(let e of this.#T()){let r=this.#u[e];r!==void 0&&!this.#f(this.#s[e])&&(yield r)}}*rkeys(){for(let e of this.#x()){let r=this.#u[e];r!==void 0&&!this.#f(this.#s[e])&&(yield r)}}*values(){for(let e of this.#T())this.#s[e]!==void 0&&!this.#f(this.#s[e])&&(yield this.#s[e])}*rvalues(){for(let e of this.#x())this.#s[e]!==void 0&&!this.#f(this.#s[e])&&(yield this.#s[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,r={}){for(let i of this.#T()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;if(s!==void 0&&e(s,this.#u[i],this))return this.get(this.#u[i],r)}}forEach(e,r=this){for(let i of this.#T()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&e.call(r,s,this.#u[i],this)}}rforEach(e,r=this){for(let i of this.#x()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&e.call(r,s,this.#u[i],this)}}purgeStale(){let e=!1;for(let r of this.#x({allowStale:!0}))this.#w(r)&&(this.#O(this.#u[r],"expire"),e=!0);return e}info(e){let r=this.#a.get(e);if(r===void 0)return;let i=this.#s[r],n=this.#f(i)?i.__staleWhileFetching:i;if(n===void 0)return;let s={value:n};if(this.#y&&this.#v){let o=this.#y[r],u=this.#v[r];if(o&&u){let a=o-(zi.now()-u);s.ttl=a,s.start=Date.now()}}return this.#A&&(s.size=this.#A[r]),s}dump(){let e=[];for(let r of this.#T({allowStale:!0})){let i=this.#u[r],n=this.#s[r],s=this.#f(n)?n.__staleWhileFetching:n;if(s===void 0||i===void 0)continue;let o={value:s};if(this.#y&&this.#v){o.ttl=this.#y[r];let u=zi.now()-this.#v[r];o.start=Math.floor(Date.now()-u)}this.#A&&(o.size=this.#A[r]),e.unshift([i,o])}return e}load(e){this.clear();for(let[r,i]of e){if(i.start){let n=Date.now()-i.start;i.start=zi.now()-n}this.set(r,i.value,i)}}set(e,r,i={}){if(r===void 0)return this.delete(e),this;let{ttl:n=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:u=this.sizeCalculation,status:a}=i,{noUpdateTTL:l=this.noUpdateTTL}=i,f=this.#N(e,r,i.size||0,u);if(this.maxEntrySize&&f>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.#O(e,"set"),this;let c=this.#l===0?void 0:this.#a.get(e);if(c===void 0)c=this.#l===0?this.#d:this.#E.length!==0?this.#E.pop():this.#l===this.#e?this.#L(!1):this.#l,this.#u[c]=e,this.#s[c]=r,this.#a.set(e,c),this.#m[this.#d]=c,this.#b[c]=this.#d,this.#d=c,this.#l++,this.#P(c,f,a),a&&(a.set="add"),l=!1;else{this.#j(c);let g=this.#s[c];if(r!==g){if(this.#_&&this.#f(g)){g.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:y}=g;y!==void 0&&!o&&(this.#S&&this.#n?.(y,e,"set"),this.#h&&this.#p?.push([y,e,"set"]))}else o||(this.#S&&this.#n?.(g,e,"set"),this.#h&&this.#p?.push([g,e,"set"]));if(this.#I(c),this.#P(c,f,a),this.#s[c]=r,a){a.set="replace";let y=g&&this.#f(g)?g.__staleWhileFetching:g;y!==void 0&&(a.oldValue=y)}}else a&&(a.set="update")}if(n!==0&&!this.#y&&this.#C(),this.#y&&(l||this.#B(c,n,s),a&&this.#i(a,c)),!o&&this.#h&&this.#p){let g=this.#p,y;for(;y=g?.shift();)this.#t?.(...y)}return this}pop(){try{for(;this.#l;){let e=this.#s[this.#g];if(this.#L(!0),this.#f(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#h&&this.#p){let e=this.#p,r;for(;r=e?.shift();)this.#t?.(...r)}}}#L(e){let r=this.#g,i=this.#u[r],n=this.#s[r];return this.#_&&this.#f(n)?n.__abortController.abort(new Error("evicted")):(this.#S||this.#h)&&(this.#S&&this.#n?.(n,i,"evict"),this.#h&&this.#p?.push([n,i,"evict"])),this.#I(r),e&&(this.#u[r]=void 0,this.#s[r]=void 0,this.#E.push(r)),this.#l===1?(this.#g=this.#d=0,this.#E.length=0):this.#g=this.#m[r],this.#a.delete(i),this.#l--,r}has(e,r={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:n}=r,s=this.#a.get(e);if(s!==void 0){let o=this.#s[s];if(this.#f(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#w(s))n&&(n.has="stale",this.#i(n,s));else return i&&this.#F(s),n&&(n.has="hit",this.#i(n,s)),!0}else n&&(n.has="miss");return!1}peek(e,r={}){let{allowStale:i=this.allowStale}=r,n=this.#a.get(e);if(n===void 0||!i&&this.#w(n))return;let s=this.#s[n];return this.#f(s)?s.__staleWhileFetching:s}#k(e,r,i,n){let s=r===void 0?void 0:this.#s[r];if(this.#f(s))return s;let o=new Du,{signal:u}=i;u?.addEventListener("abort",()=>o.abort(u.reason),{signal:o.signal});let a={signal:o.signal,options:i,context:n},l=(m,E=!1)=>{let{aborted:b}=o.signal,v=i.ignoreFetchAbort&&m!==void 0;if(i.status&&(b&&!E?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,v&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),b&&!v&&!E)return c(o.signal.reason);let I=y;return this.#s[r]===y&&(m===void 0?I.__staleWhileFetching?this.#s[r]=I.__staleWhileFetching:this.#O(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,m,a.options))),m},f=m=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=m),c(m)),c=m=>{let{aborted:E}=o.signal,b=E&&i.allowStaleOnFetchAbort,v=b||i.allowStaleOnFetchRejection,I=v||i.noDeleteOnFetchRejection,T=y;if(this.#s[r]===y&&(!I||T.__staleWhileFetching===void 0?this.#O(e,"fetch"):b||(this.#s[r]=T.__staleWhileFetching)),v)return i.status&&T.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),T.__staleWhileFetching;if(T.__returned===T)throw m},g=(m,E)=>{let b=this.#o?.(e,s,a);b&&b instanceof Promise&&b.then(v=>m(v===void 0?void 0:v),E),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(m(void 0),i.allowStaleOnFetchAbort&&(m=v=>l(v,!0)))})};i.status&&(i.status.fetchDispatched=!0);let y=new Promise(g).then(l,f),S=Object.assign(y,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(e,S,{...a.options,status:void 0}),r=this.#a.get(e)):this.#s[r]=S,S}#f(e){if(!this.#_)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof Du}async fetch(e,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:u=this.noDisposeOnSet,size:a=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:g=this.allowStaleOnFetchRejection,ignoreFetchAbort:y=this.ignoreFetchAbort,allowStaleOnFetchAbort:S=this.allowStaleOnFetchAbort,context:m,forceRefresh:E=!1,status:b,signal:v}=r;if(!this.#_)return b&&(b.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,status:b});let I={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:u,size:a,sizeCalculation:l,noUpdateTTL:f,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:g,allowStaleOnFetchAbort:S,ignoreFetchAbort:y,status:b,signal:v},T=this.#a.get(e);if(T===void 0){b&&(b.fetch="miss");let L=this.#k(e,T,I,m);return L.__returned=L}else{let L=this.#s[T];if(this.#f(L)){let N=i&&L.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",N&&(b.returnedStale=!0)),N?L.__staleWhileFetching:L.__returned=L}let J=this.#w(T);if(!E&&!J)return b&&(b.fetch="hit"),this.#j(T),n&&this.#F(T),b&&this.#i(b,T),L;let O=this.#k(e,T,I,m),F=O.__staleWhileFetching!==void 0&&i;return b&&(b.fetch=J?"stale":"refresh",F&&J&&(b.returnedStale=!0)),F?O.__staleWhileFetching:O.__returned=O}}async forceFetch(e,r={}){let i=await this.fetch(e,r);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(e,r={}){let i=this.#D;if(!i)throw new Error("no memoMethod provided to constructor");let{context:n,forceRefresh:s,...o}=r,u=this.get(e,o);if(!s&&u!==void 0)return u;let a=i(e,u,{options:o,context:n});return this.set(e,a,o),a}get(e,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,u=this.#a.get(e);if(u!==void 0){let a=this.#s[u],l=this.#f(a);return o&&this.#i(o,u),this.#w(u)?(o&&(o.get="stale"),l?(o&&i&&a.__staleWhileFetching!==void 0&&(o.returnedStale=!0),i?a.__staleWhileFetching:void 0):(s||this.#O(e,"expire"),o&&i&&(o.returnedStale=!0),i?a:void 0)):(o&&(o.get="hit"),l?a.__staleWhileFetching:(this.#j(u),n&&this.#F(u),a))}else o&&(o.get="miss")}#q(e,r){this.#b[r]=e,this.#m[e]=r}#j(e){e!==this.#d&&(e===this.#g?this.#g=this.#m[e]:this.#q(this.#b[e],this.#m[e]),this.#q(this.#d,e),this.#d=e)}delete(e){return this.#O(e,"delete")}#O(e,r){let i=!1;if(this.#l!==0){let n=this.#a.get(e);if(n!==void 0)if(i=!0,this.#l===1)this.#W(r);else{this.#I(n);let s=this.#s[n];if(this.#f(s)?s.__abortController.abort(new Error("deleted")):(this.#S||this.#h)&&(this.#S&&this.#n?.(s,e,r),this.#h&&this.#p?.push([s,e,r])),this.#a.delete(e),this.#u[n]=void 0,this.#s[n]=void 0,n===this.#d)this.#d=this.#b[n];else if(n===this.#g)this.#g=this.#m[n];else{let o=this.#b[n];this.#m[o]=this.#m[n];let u=this.#m[n];this.#b[u]=this.#b[n]}this.#l--,this.#E.push(n)}}if(this.#h&&this.#p?.length){let n=this.#p,s;for(;s=n?.shift();)this.#t?.(...s)}return i}clear(){return this.#W("delete")}#W(e){for(let r of this.#x({allowStale:!0})){let i=this.#s[r];if(this.#f(i))i.__abortController.abort(new Error("deleted"));else{let n=this.#u[r];this.#S&&this.#n?.(i,n,e),this.#h&&this.#p?.push([i,n,e])}}if(this.#a.clear(),this.#s.fill(void 0),this.#u.fill(void 0),this.#y&&this.#v&&(this.#y.fill(0),this.#v.fill(0)),this.#A&&this.#A.fill(0),this.#g=0,this.#d=0,this.#E.length=0,this.#c=0,this.#l=0,this.#h&&this.#p){let r=this.#p,i;for(;i=r?.shift();)this.#t?.(...i)}}};Eu.LRUCache=tc});var lc=w(ut=>{"use strict";var yN=ut&&ut.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ut,"__esModule",{value:!0});ut.Minipass=ut.isWritable=ut.isReadable=ut.isStream=void 0;var fD=typeof process=="object"&&process?process:{stdout:null,stderr:null},ac=U("node:events"),pD=yN(U("node:stream")),mN=U("node:string_decoder"),bN=t=>!!t&&typeof t=="object"&&(t instanceof xu||t instanceof pD.default||(0,ut.isReadable)(t)||(0,ut.isWritable)(t));ut.isStream=bN;var _N=t=>!!t&&typeof t=="object"&&t instanceof ac.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==pD.default.Writable.prototype.pipe;ut.isReadable=_N;var wN=t=>!!t&&typeof t=="object"&&t instanceof ac.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";ut.isWritable=wN;var or=Symbol("EOF"),ur=Symbol("maybeEmitEnd"),Ar=Symbol("emittedEnd"),Su=Symbol("emittingEnd"),es=Symbol("emittedError"),Au=Symbol("closed"),cD=Symbol("read"),vu=Symbol("flush"),hD=Symbol("flushChunk"),Rt=Symbol("encoding"),Hi=Symbol("decoder"),ze=Symbol("flowing"),ts=Symbol("paused"),Vi=Symbol("resume"),Ge=Symbol("buffer"),ot=Symbol("pipes"),He=Symbol("bufferLength"),rc=Symbol("bufferPush"),Cu=Symbol("bufferShift"),rt=Symbol("objectMode"),Me=Symbol("destroyed"),ic=Symbol("error"),nc=Symbol("emitData"),dD=Symbol("emitEnd"),sc=Symbol("emitEnd2"),Wt=Symbol("async"),oc=Symbol("abort"),Fu=Symbol("aborted"),rs=Symbol("signal"),ri=Symbol("dataListeners"),ht=Symbol("discarded"),is=t=>Promise.resolve().then(t),DN=t=>t(),EN=t=>t==="end"||t==="finish"||t==="prefinish",SN=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,AN=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Tu=class{src;dest;opts;ondrain;constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Vi](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},uc=class extends Tu{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>this.dest.emit("error",n),e.on("error",this.proxyErrors)}},vN=t=>!!t.objectMode,CN=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",xu=class extends ac.EventEmitter{[ze]=!1;[ts]=!1;[ot]=[];[Ge]=[];[rt];[Rt];[Wt];[Hi];[or]=!1;[Ar]=!1;[Su]=!1;[Au]=!1;[es]=null;[He]=0;[Me]=!1;[rs];[Fu]=!1;[ri]=0;[ht]=!1;writable=!0;readable=!0;constructor(...e){let r=e[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");vN(r)?(this[rt]=!0,this[Rt]=null):CN(r)?(this[Rt]=r.encoding,this[rt]=!1):(this[rt]=!1,this[Rt]=null),this[Wt]=!!r.async,this[Hi]=this[Rt]?new mN.StringDecoder(this[Rt]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Ge]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[ot]});let{signal:i}=r;i&&(this[rs]=i,i.aborted?this[oc]():i.addEventListener("abort",()=>this[oc]()))}get bufferLength(){return this[He]}get encoding(){return this[Rt]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[rt]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Wt]}set async(e){this[Wt]=this[Wt]||!!e}[oc](){this[Fu]=!0,this.emit("abort",this[rs]?.reason),this.destroy(this[rs]?.reason)}get aborted(){return this[Fu]}set aborted(e){}write(e,r,i){if(this[Fu])return!1;if(this[or])throw new Error("write after end");if(this[Me])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[Wt]?is:DN;if(!this[rt]&&!Buffer.isBuffer(e)){if(AN(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(SN(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[rt]?(this[ze]&&this[He]!==0&&this[vu](!0),this[ze]?this.emit("data",e):this[rc](e),this[He]!==0&&this.emit("readable"),i&&n(i),this[ze]):e.length?(typeof e=="string"&&!(r===this[Rt]&&!this[Hi]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Rt]&&(e=this[Hi].write(e)),this[ze]&&this[He]!==0&&this[vu](!0),this[ze]?this.emit("data",e):this[rc](e),this[He]!==0&&this.emit("readable"),i&&n(i),this[ze]):(this[He]!==0&&this.emit("readable"),i&&n(i),this[ze])}read(e){if(this[Me])return null;if(this[ht]=!1,this[He]===0||e===0||e&&e>this[He])return this[ur](),null;this[rt]&&(e=null),this[Ge].length>1&&!this[rt]&&(this[Ge]=[this[Rt]?this[Ge].join(""):Buffer.concat(this[Ge],this[He])]);let r=this[cD](e||null,this[Ge][0]);return this[ur](),r}[cD](e,r){if(this[rt])this[Cu]();else{let i=r;e===i.length||e===null?this[Cu]():typeof i=="string"?(this[Ge][0]=i.slice(e),r=i.slice(0,e),this[He]-=e):(this[Ge][0]=i.subarray(e),r=i.subarray(0,e),this[He]-=e)}return this.emit("data",r),!this[Ge].length&&!this[or]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=void 0),typeof r=="function"&&(i=r,r="utf8"),e!==void 0&&this.write(e,r),i&&this.once("end",i),this[or]=!0,this.writable=!1,(this[ze]||!this[ts])&&this[ur](),this}[Vi](){this[Me]||(!this[ri]&&!this[ot].length&&(this[ht]=!0),this[ts]=!1,this[ze]=!0,this.emit("resume"),this[Ge].length?this[vu]():this[or]?this[ur]():this.emit("drain"))}resume(){return this[Vi]()}pause(){this[ze]=!1,this[ts]=!0,this[ht]=!1}get destroyed(){return this[Me]}get flowing(){return this[ze]}get paused(){return this[ts]}[rc](e){this[rt]?this[He]+=1:this[He]+=e.length,this[Ge].push(e)}[Cu](){return this[rt]?this[He]-=1:this[He]-=this[Ge][0].length,this[Ge].shift()}[vu](e=!1){do;while(this[hD](this[Cu]())&&this[Ge].length);!e&&!this[Ge].length&&!this[or]&&this.emit("drain")}[hD](e){return this.emit("data",e),this[ze]}pipe(e,r){if(this[Me])return e;this[ht]=!1;let i=this[Ar];return r=r||{},e===fD.stdout||e===fD.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[ot].push(r.proxyErrors?new uc(this,e,r):new Tu(this,e,r)),this[Wt]?is(()=>this[Vi]()):this[Vi]()),e}unpipe(e){let r=this[ot].find(i=>i.dest===e);r&&(this[ot].length===1?(this[ze]&&this[ri]===0&&(this[ze]=!1),this[ot]=[]):this[ot].splice(this[ot].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);if(e==="data")this[ht]=!1,this[ri]++,!this[ot].length&&!this[ze]&&this[Vi]();else if(e==="readable"&&this[He]!==0)super.emit("readable");else if(EN(e)&&this[Ar])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[es]){let n=r;this[Wt]?is(()=>n.call(this,this[es])):n.call(this,this[es])}return i}removeListener(e,r){return this.off(e,r)}off(e,r){let i=super.off(e,r);return e==="data"&&(this[ri]=this.listeners("data").length,this[ri]===0&&!this[ht]&&!this[ot].length&&(this[ze]=!1)),i}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[ri]=0,!this[ht]&&!this[ot].length&&(this[ze]=!1)),r}get emittedEnd(){return this[Ar]}[ur](){!this[Su]&&!this[Ar]&&!this[Me]&&this[Ge].length===0&&this[or]&&(this[Su]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Au]&&this.emit("close"),this[Su]=!1)}emit(e,...r){let i=r[0];if(e!=="error"&&e!=="close"&&e!==Me&&this[Me])return!1;if(e==="data")return!this[rt]&&!i?!1:this[Wt]?(is(()=>this[nc](i)),!0):this[nc](i);if(e==="end")return this[dD]();if(e==="close"){if(this[Au]=!0,!this[Ar]&&!this[Me])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[es]=i,super.emit(ic,i);let s=!this[rs]||this.listeners("error").length?super.emit("error",i):!1;return this[ur](),s}else if(e==="resume"){let s=super.emit("resume");return this[ur](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,...r);return this[ur](),n}[nc](e){for(let i of this[ot])i.dest.write(e)===!1&&this.pause();let r=this[ht]?!1:super.emit("data",e);return this[ur](),r}[dD](){return this[Ar]?!1:(this[Ar]=!0,this.readable=!1,this[Wt]?(is(()=>this[sc]()),!0):this[sc]())}[sc](){if(this[Hi]){let r=this[Hi].end();if(r){for(let i of this[ot])i.dest.write(r);this[ht]||super.emit("data",r)}}for(let r of this[ot])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[rt]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[rt]||(e.dataLength+=i.length)}),await r,e}async concat(){if(this[rt])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Rt]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,r)=>{this.on(Me,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[ht]=!1;let e=!1,r=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return r();let n=this.read();if(n!==null)return Promise.resolve({done:!1,value:n});if(this[or])return r();let s,o,u=c=>{this.off("data",a),this.off("end",l),this.off(Me,f),r(),o(c)},a=c=>{this.off("error",u),this.off("end",l),this.off(Me,f),this.pause(),s({value:c,done:!!this[or]})},l=()=>{this.off("error",u),this.off("data",a),this.off(Me,f),r(),s({done:!0,value:void 0})},f=()=>u(new Error("stream destroyed"));return new Promise((c,g)=>{o=g,s=c,this.once(Me,f),this.once("error",u),this.once("end",l),this.once("data",a)})},throw:r,return:r,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[ht]=!1;let e=!1,r=()=>(this.pause(),this.off(ic,r),this.off(Me,r),this.off("end",r),e=!0,{done:!0,value:void 0}),i=()=>{if(e)return r();let n=this.read();return n===null?r():{done:!1,value:n}};return this.once("end",r),this.once(ic,r),this.once(Me,r),{next:i,throw:r,return:r,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[Me])return e?this.emit("error",e):this.emit(Me),this;this[Me]=!0,this[ht]=!0,this[Ge].length=0,this[He]=0;let r=this;return typeof r.close=="function"&&!this[Au]&&r.close(),e?this.emit("error",e):this.emit(Me),this}static get isStream(){return ut.isStream}};ut.Minipass=xu});var xD=w(me=>{"use strict";var FN=me&&me.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),TN=me&&me.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xN=me&&me.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&FN(e,t,r);return TN(e,t),e};Object.defineProperty(me,"__esModule",{value:!0});me.PathScurry=me.Path=me.PathScurryDarwin=me.PathScurryPosix=me.PathScurryWin32=me.PathScurryBase=me.PathPosix=me.PathWin32=me.PathBase=me.ChildrenCache=me.ResolveCache=void 0;var wD=lD(),Pu=U("node:path"),RN=U("node:url"),ss=U("fs"),ON=xN(U("node:fs")),BN=ss.realpathSync.native,Ru=U("node:fs/promises"),gD=lc(),os={lstatSync:ss.lstatSync,readdir:ss.readdir,readdirSync:ss.readdirSync,readlinkSync:ss.readlinkSync,realpathSync:BN,promises:{lstat:Ru.lstat,readdir:Ru.readdir,readlink:Ru.readlink,realpath:Ru.realpath}},DD=t=>!t||t===os||t===ON?os:{...os,...t,promises:{...os.promises,...t.promises||{}}},ED=/^\\\\\?\\([a-z]:)\\?$/i,IN=t=>t.replace(/\//g,"\\").replace(ED,"$1\\"),PN=/[\\\/]/,Et=0,SD=1,AD=2,Ut=4,vD=6,CD=8,ii=10,FD=12,Dt=15,ns=~Dt,fc=16,yD=32,us=64,Ot=128,Ou=256,Iu=512,mD=us|Ot|Iu,NN=1023,cc=t=>t.isFile()?CD:t.isDirectory()?Ut:t.isSymbolicLink()?ii:t.isCharacterDevice()?AD:t.isBlockDevice()?vD:t.isSocket()?FD:t.isFIFO()?SD:Et,bD=new Map,as=t=>{let e=bD.get(t);if(e)return e;let r=t.normalize("NFKD");return bD.set(t,r),r},_D=new Map,Bu=t=>{let e=_D.get(t);if(e)return e;let r=as(t.toLowerCase());return _D.set(t,r),r},ls=class extends wD.LRUCache{constructor(){super({max:256})}};me.ResolveCache=ls;var Nu=class extends wD.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:r=>r.length+1})}};me.ChildrenCache=Nu;var TD=Symbol("PathScurry setAsCwd"),Qe=class{name;root;roots;parent;nocase;isCWD=!1;#e;#r;get dev(){return this.#r}#n;get mode(){return this.#n}#t;get nlink(){return this.#t}#o;get uid(){return this.#o}#D;get gid(){return this.#D}#l;get rdev(){return this.#l}#c;get blksize(){return this.#c}#a;get ino(){return this.#a}#u;get size(){return this.#u}#s;get blocks(){return this.#s}#m;get atimeMs(){return this.#m}#b;get mtimeMs(){return this.#b}#g;get ctimeMs(){return this.#g}#d;get birthtimeMs(){return this.#d}#E;get atime(){return this.#E}#p;get mtime(){return this.#p}#A;get ctime(){return this.#A}#v;get birthtime(){return this.#v}#y;#S;#_;#h;#C;#F;#i;#B;#w;#R;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,r=Et,i,n,s,o,u){this.name=e,this.#y=s?Bu(e):as(e),this.#i=r&NN,this.nocase=s,this.roots=n,this.root=i||this,this.#B=o,this.#_=u.fullpath,this.#C=u.relative,this.#F=u.relativePosix,this.parent=u.parent,this.parent?this.#e=this.parent.#e:this.#e=DD(u.fs)}depth(){return this.#S!==void 0?this.#S:this.parent?this.#S=this.parent.depth()+1:this.#S=0}childrenCache(){return this.#B}resolve(e){if(!e)return this;let r=this.getRootString(e),n=e.substring(r.length).split(this.splitSep);return r?this.getRoot(r).#I(n):this.#I(n)}#I(e){let r=this;for(let i of e)r=r.child(i);return r}children(){let e=this.#B.get(this);if(e)return e;let r=Object.assign([],{provisional:0});return this.#B.set(this,r),this.#i&=~fc,r}child(e,r){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let i=this.children(),n=this.nocase?Bu(e):as(e);for(let a of i)if(a.#y===n)return a;let s=this.parent?this.sep:"",o=this.#_?this.#_+s+e:void 0,u=this.newChild(e,Et,{...r,parent:this,fullpath:o});return this.canReaddir()||(u.#i|=Ot),i.push(u),u}relative(){if(this.isCWD)return"";if(this.#C!==void 0)return this.#C;let e=this.name,r=this.parent;if(!r)return this.#C=this.name;let i=r.relative();return i+(!i||!r.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#F!==void 0)return this.#F;let e=this.name,r=this.parent;if(!r)return this.#F=this.fullpathPosix();let i=r.relativePosix();return i+(!i||!r.parent?"":"/")+e}fullpath(){if(this.#_!==void 0)return this.#_;let e=this.name,r=this.parent;if(!r)return this.#_=this.name;let n=r.fullpath()+(r.parent?this.sep:"")+e;return this.#_=n}fullpathPosix(){if(this.#h!==void 0)return this.#h;if(this.sep==="/")return this.#h=this.fullpath();if(!this.parent){let n=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(n)?this.#h=`//?/${n}`:this.#h=n}let e=this.parent,r=e.fullpathPosix(),i=r+(!r||!e.parent?"":"/")+this.name;return this.#h=i}isUnknown(){return(this.#i&Dt)===Et}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#i&Dt)===CD}isDirectory(){return(this.#i&Dt)===Ut}isCharacterDevice(){return(this.#i&Dt)===AD}isBlockDevice(){return(this.#i&Dt)===vD}isFIFO(){return(this.#i&Dt)===SD}isSocket(){return(this.#i&Dt)===FD}isSymbolicLink(){return(this.#i&ii)===ii}lstatCached(){return this.#i&yD?this:void 0}readlinkCached(){return this.#w}realpathCached(){return this.#R}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#w)return!0;if(!this.parent)return!1;let e=this.#i&Dt;return!(e!==Et&&e!==ii||this.#i&Ou||this.#i&Ot)}calledReaddir(){return!!(this.#i&fc)}isENOENT(){return!!(this.#i&Ot)}isNamed(e){return this.nocase?this.#y===Bu(e):this.#y===as(e)}async readlink(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=await this.#e.promises.readlink(this.fullpath()),i=(await this.parent.realpath())?.resolve(r);if(i)return this.#w=i}catch(r){this.#f(r.code);return}}readlinkSync(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=this.#e.readlinkSync(this.fullpath()),i=this.parent.realpathSync()?.resolve(r);if(i)return this.#w=i}catch(r){this.#f(r.code);return}}#P(e){this.#i|=fc;for(let r=e.provisional;r<e.length;r++){let i=e[r];i&&i.#N()}}#N(){this.#i&Ot||(this.#i=(this.#i|Ot)&ns,this.#T())}#T(){let e=this.children();e.provisional=0;for(let r of e)r.#N()}#x(){this.#i|=Iu,this.#M()}#M(){if(this.#i&us)return;let e=this.#i;(e&Dt)===Ut&&(e&=ns),this.#i=e|us,this.#T()}#L(e=""){e==="ENOTDIR"||e==="EPERM"?this.#M():e==="ENOENT"?this.#N():this.children().provisional=0}#k(e=""){e==="ENOTDIR"?this.parent.#M():e==="ENOENT"&&this.#N()}#f(e=""){let r=this.#i;r|=Ou,e==="ENOENT"&&(r|=Ot),(e==="EINVAL"||e==="UNKNOWN")&&(r&=ns),this.#i=r,e==="ENOTDIR"&&this.parent&&this.parent.#M()}#q(e,r){return this.#O(e,r)||this.#j(e,r)}#j(e,r){let i=cc(e),n=this.newChild(e.name,i,{parent:this}),s=n.#i&Dt;return s!==Ut&&s!==ii&&s!==Et&&(n.#i|=us),r.unshift(n),r.provisional++,n}#O(e,r){for(let i=r.provisional;i<r.length;i++){let n=r[i];if((this.nocase?Bu(e.name):as(e.name))===n.#y)return this.#W(e,n,i,r)}}#W(e,r,i,n){let s=r.name;return r.#i=r.#i&ns|cc(e),s!==e.name&&(r.name=e.name),i!==n.provisional&&(i===n.length-1?n.pop():n.splice(i,1),n.unshift(r)),n.provisional++,r}async lstat(){if((this.#i&Ot)===0)try{return this.#G(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#k(e.code)}}lstatSync(){if((this.#i&Ot)===0)try{return this.#G(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#k(e.code)}}#G(e){let{atime:r,atimeMs:i,birthtime:n,birthtimeMs:s,blksize:o,blocks:u,ctime:a,ctimeMs:l,dev:f,gid:c,ino:g,mode:y,mtime:S,mtimeMs:m,nlink:E,rdev:b,size:v,uid:I}=e;this.#E=r,this.#m=i,this.#v=n,this.#d=s,this.#c=o,this.#s=u,this.#A=a,this.#g=l,this.#r=f,this.#D=c,this.#a=g,this.#n=y,this.#p=S,this.#b=m,this.#t=E,this.#l=b,this.#u=v,this.#o=I;let T=cc(e);this.#i=this.#i&ns|T|yD,T!==Et&&T!==Ut&&T!==ii&&(this.#i|=us)}#$=[];#z=!1;#H(e){this.#z=!1;let r=this.#$.slice();this.#$.length=0,r.forEach(i=>i(null,e))}readdirCB(e,r=!1){if(!this.canReaddir()){r?e(null,[]):queueMicrotask(()=>e(null,[]));return}let i=this.children();if(this.calledReaddir()){let s=i.slice(0,i.provisional);r?e(null,s):queueMicrotask(()=>e(null,s));return}if(this.#$.push(e),this.#z)return;this.#z=!0;let n=this.fullpath();this.#e.readdir(n,{withFileTypes:!0},(s,o)=>{if(s)this.#L(s.code),i.provisional=0;else{for(let u of o)this.#q(u,i);this.#P(i)}this.#H(i.slice(0,i.provisional))})}#U;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();if(this.#U)await this.#U;else{let i=()=>{};this.#U=new Promise(n=>i=n);try{for(let n of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#q(n,e);this.#P(e)}catch(n){this.#L(n.code),e.provisional=0}this.#U=void 0,i()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();try{for(let i of this.#e.readdirSync(r,{withFileTypes:!0}))this.#q(i,e);this.#P(e)}catch(i){this.#L(i.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#i&mD)return!1;let e=Dt&this.#i;return e===Et||e===Ut||e===ii}shouldWalk(e,r){return(this.#i&Ut)===Ut&&!(this.#i&mD)&&!e.has(this)&&(!r||r(this))}async realpath(){if(this.#R)return this.#R;if(!((Iu|Ou|Ot)&this.#i))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#R=this.resolve(e)}catch{this.#x()}}realpathSync(){if(this.#R)return this.#R;if(!((Iu|Ou|Ot)&this.#i))try{let e=this.#e.realpathSync(this.fullpath());return this.#R=this.resolve(e)}catch{this.#x()}}[TD](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let r=new Set([]),i=[],n=this;for(;n&&n.parent;)r.add(n),n.#C=i.join(this.sep),n.#F=i.join("/"),n=n.parent,i.push("..");for(n=e;n&&n.parent&&!r.has(n);)n.#C=void 0,n.#F=void 0,n=n.parent}};me.PathBase=Qe;var fs=class t extends Qe{sep="\\";splitSep=PN;constructor(e,r=Et,i,n,s,o,u){super(e,r,i,n,s,o,u)}newChild(e,r=Et,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(e){return Pu.win32.parse(e).root}getRoot(e){if(e=IN(e.toUpperCase()),e===this.root.name)return this.root;for(let[r,i]of Object.entries(this.roots))if(this.sameRoot(e,r))return this.roots[e]=i;return this.roots[e]=new ds(e,this).root}sameRoot(e,r=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(ED,"$1\\"),e===r}};me.PathWin32=fs;var cs=class t extends Qe{splitSep="/";sep="/";constructor(e,r=Et,i,n,s,o,u){super(e,r,i,n,s,o,u)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,r=Et,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}};me.PathPosix=cs;var hs=class{root;rootPath;roots;cwd;#e;#r;#n;nocase;#t;constructor(e=process.cwd(),r,i,{nocase:n,childrenCacheSize:s=16*1024,fs:o=os}={}){this.#t=DD(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,RN.fileURLToPath)(e));let u=r.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(u),this.#e=new ls,this.#r=new ls,this.#n=new Nu(s);let a=u.substring(this.rootPath.length).split(i);if(a.length===1&&!a[0]&&a.pop(),n===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=n,this.root=this.newRoot(this.#t),this.roots[this.rootPath]=this.root;let l=this.root,f=a.length-1,c=r.sep,g=this.rootPath,y=!1;for(let S of a){let m=f--;l=l.child(S,{relative:new Array(m).fill("..").join(c),relativePosix:new Array(m).fill("..").join("/"),fullpath:g+=(y?"":c)+S}),y=!0}this.cwd=l}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#n}resolve(...e){let r="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let i=this.#e.get(r);if(i!==void 0)return i;let n=this.cwd.resolve(r).fullpath();return this.#e.set(r,n),n}resolvePosix(...e){let r="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let i=this.#r.get(r);if(i!==void 0)return i;let n=this.cwd.resolve(r).fullpathPosix();return this.#r.set(r,n),n}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Qe||(r=e,e=this.cwd);let{withFileTypes:i}=r;if(e.canReaddir()){let n=await e.readdir();return i?n:n.map(s=>s.name)}else return[]}readdirSync(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Qe||(r=e,e=this.cwd);let{withFileTypes:i=!0}=r;return e.canReaddir()?i?e.readdirSync():e.readdirSync().map(n=>n.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Qe||(r=e.withFileTypes,e=this.cwd);let i=await e.readlink();return r?i:i?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Qe||(r=e.withFileTypes,e=this.cwd);let i=e.readlinkSync();return r?i:i?.fullpath()}async realpath(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Qe||(r=e.withFileTypes,e=this.cwd);let i=await e.realpath();return r?i:i?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Qe||(r=e.withFileTypes,e=this.cwd);let i=e.realpathSync();return r?i:i?.fullpath()}async walk(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Qe||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,u=[];(!s||s(e))&&u.push(i?e:e.fullpath());let a=new Set,l=(c,g)=>{a.add(c),c.readdirCB((y,S)=>{if(y)return g(y);let m=S.length;if(!m)return g();let E=()=>{--m===0&&g()};for(let b of S)(!s||s(b))&&u.push(i?b:b.fullpath()),n&&b.isSymbolicLink()?b.realpath().then(v=>v?.isUnknown()?v.lstat():v).then(v=>v?.shouldWalk(a,o)?l(v,E):E()):b.shouldWalk(a,o)?l(b,E):E()},!0)},f=e;return new Promise((c,g)=>{l(f,y=>{if(y)return g(y);c(u)})})}walkSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Qe||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,u=[];(!s||s(e))&&u.push(i?e:e.fullpath());let a=new Set([e]);for(let l of a){let f=l.readdirSync();for(let c of f){(!s||s(c))&&u.push(i?c:c.fullpath());let g=c;if(c.isSymbolicLink()){if(!(n&&(g=c.realpathSync())))continue;g.isUnknown()&&g.lstatSync()}g.shouldWalk(a,o)&&a.add(g)}}return u}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,r={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof Qe||(r=e,e=this.cwd),this.stream(e,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Qe||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r;(!s||s(e))&&(yield i?e:e.fullpath());let u=new Set([e]);for(let a of u){let l=a.readdirSync();for(let f of l){(!s||s(f))&&(yield i?f:f.fullpath());let c=f;if(f.isSymbolicLink()){if(!(n&&(c=f.realpathSync())))continue;c.isUnknown()&&c.lstatSync()}c.shouldWalk(u,o)&&u.add(c)}}}stream(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Qe||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,u=new gD.Minipass({objectMode:!0});(!s||s(e))&&u.write(i?e:e.fullpath());let a=new Set,l=[e],f=0,c=()=>{let g=!1;for(;!g;){let y=l.shift();if(!y){f===0&&u.end();return}f++,a.add(y);let S=(E,b,v=!1)=>{if(E)return u.emit("error",E);if(n&&!v){let I=[];for(let T of b)T.isSymbolicLink()&&I.push(T.realpath().then(L=>L?.isUnknown()?L.lstat():L));if(I.length){Promise.all(I).then(()=>S(null,b,!0));return}}for(let I of b)I&&(!s||s(I))&&(u.write(i?I:I.fullpath())||(g=!0));f--;for(let I of b){let T=I.realpathCached()||I;T.shouldWalk(a,o)&&l.push(T)}g&&!u.flowing?u.once("drain",c):m||c()},m=!0;y.readdirCB(S,!0),m=!1}};return c(),u}streamSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Qe||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,u=new gD.Minipass({objectMode:!0}),a=new Set;(!s||s(e))&&u.write(i?e:e.fullpath());let l=[e],f=0,c=()=>{let g=!1;for(;!g;){let y=l.shift();if(!y){f===0&&u.end();return}f++,a.add(y);let S=y.readdirSync();for(let m of S)(!s||s(m))&&(u.write(i?m:m.fullpath())||(g=!0));f--;for(let m of S){let E=m;if(m.isSymbolicLink()){if(!(n&&(E=m.realpathSync())))continue;E.isUnknown()&&E.lstatSync()}E.shouldWalk(a,o)&&l.push(E)}}g&&!u.flowing&&u.once("drain",c)};return c(),u}chdir(e=this.cwd){let r=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[TD](r)}};me.PathScurryBase=hs;var ds=class extends hs{sep="\\";constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,Pu.win32,"\\",{...r,nocase:i}),this.nocase=i;for(let n=this.cwd;n;n=n.parent)n.nocase=this.nocase}parseRootPath(e){return Pu.win32.parse(e).root.toUpperCase()}newRoot(e){return new fs(this.rootPath,Ut,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};me.PathScurryWin32=ds;var ps=class extends hs{sep="/";constructor(e=process.cwd(),r={}){let{nocase:i=!1}=r;super(e,Pu.posix,"/",{...r,nocase:i}),this.nocase=i}parseRootPath(e){return"/"}newRoot(e){return new cs(this.rootPath,Ut,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};me.PathScurryPosix=ps;var Mu=class extends ps{constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,{...r,nocase:i})}};me.PathScurryDarwin=Mu;me.Path=process.platform==="win32"?fs:cs;me.PathScurry=process.platform==="win32"?ds:process.platform==="darwin"?Mu:ps});var dc=w(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.Pattern=void 0;var MN=Er(),LN=t=>t.length>=1,kN=t=>t.length>=1,hc=class t{#e;#r;#n;length;#t;#o;#D;#l;#c;#a;#u=!0;constructor(e,r,i,n){if(!LN(e))throw new TypeError("empty pattern list");if(!kN(r))throw new TypeError("empty glob list");if(r.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,i<0||i>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#r=r,this.#n=i,this.#t=n,this.#n===0){if(this.isUNC()){let[s,o,u,a,...l]=this.#e,[f,c,g,y,...S]=this.#r;l[0]===""&&(l.shift(),S.shift());let m=[s,o,u,a,""].join("/"),E=[f,c,g,y,""].join("/");this.#e=[m,...l],this.#r=[E,...S],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...o]=this.#e,[u,...a]=this.#r;o[0]===""&&(o.shift(),a.shift());let l=s+"/",f=u+"/";this.#e=[l,...o],this.#r=[f,...a],this.length=this.#e.length}}}pattern(){return this.#e[this.#n]}isString(){return typeof this.#e[this.#n]=="string"}isGlobstar(){return this.#e[this.#n]===MN.GLOBSTAR}isRegExp(){return this.#e[this.#n]instanceof RegExp}globString(){return this.#D=this.#D||(this.#n===0?this.isAbsolute()?this.#r[0]+this.#r.slice(1).join("/"):this.#r.join("/"):this.#r.slice(this.#n).join("/"))}hasMore(){return this.length>this.#n+1}rest(){return this.#o!==void 0?this.#o:this.hasMore()?(this.#o=new t(this.#e,this.#r,this.#n+1,this.#t),this.#o.#a=this.#a,this.#o.#c=this.#c,this.#o.#l=this.#l,this.#o):this.#o=null}isUNC(){let e=this.#e;return this.#c!==void 0?this.#c:this.#c=this.#t==="win32"&&this.#n===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#l!==void 0?this.#l:this.#l=this.#t==="win32"&&this.#n===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#a!==void 0?this.#a:this.#a=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#n===0?e:""}checkFollowGlobstar(){return!(this.#n===0||!this.isGlobstar()||!this.#u)}markFollowGlobstar(){return this.#n===0||!this.isGlobstar()||!this.#u?!1:(this.#u=!1,!0)}};Lu.Pattern=hc});var gc=w(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.Ignore=void 0;var RD=Er(),qN=dc(),jN=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",pc=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:r,nocase:i,noext:n,noglobstar:s,platform:o=jN}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:r,nocase:i,noext:n,noglobstar:s,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let u of e)this.add(u)}add(e){let r=new RD.Minimatch(e,this.mmopts);for(let i=0;i<r.set.length;i++){let n=r.set[i],s=r.globParts[i];if(!n||!s)throw new Error("invalid pattern object");for(;n[0]==="."&&s[0]===".";)n.shift(),s.shift();let o=new qN.Pattern(n,s,0,this.platform),u=new RD.Minimatch(o.globString(),this.mmopts),a=s[s.length-1]==="**",l=o.isAbsolute();l?this.absolute.push(u):this.relative.push(u),a&&(l?this.absoluteChildren.push(u):this.relativeChildren.push(u))}}ignored(e){let r=e.fullpath(),i=`${r}/`,n=e.relative()||".",s=`${n}/`;for(let o of this.relative)if(o.match(n)||o.match(s))return!0;for(let o of this.absolute)if(o.match(r)||o.match(i))return!0;return!1}childrenIgnored(e){let r=e.fullpath()+"/",i=(e.relative()||".")+"/";for(let n of this.relativeChildren)if(n.match(i))return!0;for(let n of this.absoluteChildren)if(n.match(r))return!0;return!1}};ku.Ignore=pc});var BD=w($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.Processor=$t.SubWalks=$t.MatchRecord=$t.HasWalkedCache=void 0;var OD=Er(),qu=class t{store;constructor(e=new Map){this.store=e}copy(){return new t(new Map(this.store))}hasWalked(e,r){return this.store.get(e.fullpath())?.has(r.globString())}storeWalked(e,r){let i=e.fullpath(),n=this.store.get(i);n?n.add(r.globString()):this.store.set(i,new Set([r.globString()]))}};$t.HasWalkedCache=qu;var ju=class{store=new Map;add(e,r,i){let n=(r?2:0)|(i?1:0),s=this.store.get(e);this.store.set(e,s===void 0?n:n&s)}entries(){return[...this.store.entries()].map(([e,r])=>[e,!!(r&2),!!(r&1)])}};$t.MatchRecord=ju;var Wu=class{store=new Map;add(e,r){if(!e.canReaddir())return;let i=this.store.get(e);i?i.find(n=>n.globString()===r.globString())||i.push(r):this.store.set(e,[r])}get(e){let r=this.store.get(e);if(!r)throw new Error("attempting to walk unknown path");return r}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}};$t.SubWalks=Wu;var yc=class t{hasWalkedCache;matches=new ju;subwalks=new Wu;patterns;follow;dot;opts;constructor(e,r){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=r?r.copy():new qu}processPatterns(e,r){this.patterns=r;let i=r.map(n=>[e,n]);for(let[n,s]of i){this.hasWalkedCache.storeWalked(n,s);let o=s.root(),u=s.isAbsolute()&&this.opts.absolute!==!1;if(o){n=n.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let c=s.rest();if(c)s=c;else{this.matches.add(n,!0,!1);continue}}if(n.isENOENT())continue;let a,l,f=!1;for(;typeof(a=s.pattern())=="string"&&(l=s.rest());)n=n.resolve(a),s=l,f=!0;if(a=s.pattern(),l=s.rest(),f){if(this.hasWalkedCache.hasWalked(n,s))continue;this.hasWalkedCache.storeWalked(n,s)}if(typeof a=="string"){let c=a===".."||a===""||a===".";this.matches.add(n.resolve(a),u,c);continue}else if(a===OD.GLOBSTAR){(!n.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(n,s);let c=l?.pattern(),g=l?.rest();if(!l||(c===""||c===".")&&!g)this.matches.add(n,u,c===""||c===".");else if(c===".."){let y=n.parent||n;g?this.hasWalkedCache.hasWalked(y,g)||this.subwalks.add(y,g):this.matches.add(y,u,!0)}}else a instanceof RegExp&&this.subwalks.add(n,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(e,r){let i=this.subwalks.get(e),n=this.child();for(let s of r)for(let o of i){let u=o.isAbsolute(),a=o.pattern(),l=o.rest();a===OD.GLOBSTAR?n.testGlobstar(s,o,l,u):a instanceof RegExp?n.testRegExp(s,a,l,u):n.testString(s,a,l,u)}return n}testGlobstar(e,r,i,n){if((this.dot||!e.name.startsWith("."))&&(r.hasMore()||this.matches.add(e,n,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,r):e.isSymbolicLink()&&(i&&r.checkFollowGlobstar()?this.subwalks.add(e,i):r.markFollowGlobstar()&&this.subwalks.add(e,r)))),i){let s=i.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(e,s,i.rest(),n);else if(s===".."){let o=e.parent||e;this.subwalks.add(o,i)}else s instanceof RegExp&&this.testRegExp(e,s,i.rest(),n)}}testRegExp(e,r,i,n){r.test(e.name)&&(i?this.subwalks.add(e,i):this.matches.add(e,n,!1))}testString(e,r,i,n){e.isNamed(r)&&(i?this.subwalks.add(e,i):this.matches.add(e,n,!1))}};$t.Processor=yc});var ND=w(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.GlobStream=vr.GlobWalker=vr.GlobUtil=void 0;var WN=lc(),ID=gc(),PD=BD(),UN=(t,e)=>typeof t=="string"?new ID.Ignore([t],e):Array.isArray(t)?new ID.Ignore(t,e):t,gs=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#r;#n;signal;maxDepth;includeChildMatches;constructor(e,r,i){if(this.patterns=e,this.path=r,this.opts=i,this.#n=!i.posix&&i.platform==="win32"?"\\":"/",this.includeChildMatches=i.includeChildMatches!==!1,(i.ignore||!this.includeChildMatches)&&(this.#r=UN(i.ignore??[],i),!this.includeChildMatches&&typeof this.#r.add!="function")){let n="cannot ignore child matches, ignore lacks add() method.";throw new Error(n)}this.maxDepth=i.maxDepth||1/0,i.signal&&(this.signal=i.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#t(e){return this.seen.has(e)||!!this.#r?.ignored?.(e)}#o(e){return!!this.#r?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||await e.realpath(),!i)return;e=i}let s=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=await s.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(s,r)}matchCheckTest(e,r){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!r||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#t(e)?e:void 0}matchCheckSync(e,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||e.realpathSync(),!i)return;e=i}let s=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=s.realpathSync();o&&(o?.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(s,r)}matchFinish(e,r){if(this.#t(e))return;if(!this.includeChildMatches&&this.#r?.add){let s=`${e.relativePosix()}/**`;this.#r.add(s)}let i=this.opts.absolute===void 0?r:this.opts.absolute;this.seen.add(e);let n=this.opts.mark&&e.isDirectory()?this.#n:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(i){let s=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(s+n)}else{let s=this.opts.posix?e.relativePosix():e.relative(),o=this.opts.dotRelative&&!s.startsWith(".."+this.#n)?"."+this.#n:"";this.matchEmit(s?o+s+n:"."+n)}}async match(e,r,i){let n=await this.matchCheck(e,i);n&&this.matchFinish(n,r)}matchSync(e,r,i){let n=this.matchCheckSync(e,i);n&&this.matchFinish(n,r)}walkCB(e,r,i){this.signal?.aborted&&i(),this.walkCB2(e,r,new PD.Processor(this.opts),i)}walkCB2(e,r,i,n){if(this.#o(e))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2(e,r,i,n));return}i.processPatterns(e,r);let s=1,o=()=>{--s===0&&n()};for(let[u,a,l]of i.matches.entries())this.#t(u)||(s++,this.match(u,a,l).then(()=>o()));for(let u of i.subwalkTargets()){if(this.maxDepth!==1/0&&u.depth()>=this.maxDepth)continue;s++;let a=u.readdirCached();u.calledReaddir()?this.walkCB3(u,a,i,o):u.readdirCB((l,f)=>this.walkCB3(u,f,i,o),!0)}o()}walkCB3(e,r,i,n){i=i.filterEntries(e,r);let s=1,o=()=>{--s===0&&n()};for(let[u,a,l]of i.matches.entries())this.#t(u)||(s++,this.match(u,a,l).then(()=>o()));for(let[u,a]of i.subwalks.entries())s++,this.walkCB2(u,a,i.child(),o);o()}walkCBSync(e,r,i){this.signal?.aborted&&i(),this.walkCB2Sync(e,r,new PD.Processor(this.opts),i)}walkCB2Sync(e,r,i,n){if(this.#o(e))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2Sync(e,r,i,n));return}i.processPatterns(e,r);let s=1,o=()=>{--s===0&&n()};for(let[u,a,l]of i.matches.entries())this.#t(u)||this.matchSync(u,a,l);for(let u of i.subwalkTargets()){if(this.maxDepth!==1/0&&u.depth()>=this.maxDepth)continue;s++;let a=u.readdirSync();this.walkCB3Sync(u,a,i,o)}o()}walkCB3Sync(e,r,i,n){i=i.filterEntries(e,r);let s=1,o=()=>{--s===0&&n()};for(let[u,a,l]of i.matches.entries())this.#t(u)||this.matchSync(u,a,l);for(let[u,a]of i.subwalks.entries())s++,this.walkCB2Sync(u,a,i.child(),o);o()}};vr.GlobUtil=gs;var mc=class extends gs{matches=new Set;constructor(e,r,i){super(e,r,i)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,r)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?r(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};vr.GlobWalker=mc;var bc=class extends gs{results;constructor(e,r,i){super(e,r,i),this.results=new WN.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};vr.GlobStream=bc});var wc=w(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.Glob=void 0;var $N=Er(),zN=U("node:url"),Uu=xD(),GN=dc(),$u=ND(),HN=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",_c=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,r){if(!r)throw new TypeError("glob options required");if(this.withFileTypes=!!r.withFileTypes,this.signal=r.signal,this.follow=!!r.follow,this.dot=!!r.dot,this.dotRelative=!!r.dotRelative,this.nodir=!!r.nodir,this.mark=!!r.mark,r.cwd?(r.cwd instanceof URL||r.cwd.startsWith("file://"))&&(r.cwd=(0,zN.fileURLToPath)(r.cwd)):this.cwd="",this.cwd=r.cwd||"",this.root=r.root,this.magicalBraces=!!r.magicalBraces,this.nobrace=!!r.nobrace,this.noext=!!r.noext,this.realpath=!!r.realpath,this.absolute=r.absolute,this.includeChildMatches=r.includeChildMatches!==!1,this.noglobstar=!!r.noglobstar,this.matchBase=!!r.matchBase,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:1/0,this.stat=!!r.stat,this.ignore=r.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(a=>a.replace(/\\/g,"/"))),this.matchBase){if(r.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(a=>a.includes("/")?a:`./**/${a}`)}if(this.pattern=e,this.platform=r.platform||HN,this.opts={...r,platform:this.platform},r.scurry){if(this.scurry=r.scurry,r.nocase!==void 0&&r.nocase!==r.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let a=r.platform==="win32"?Uu.PathScurryWin32:r.platform==="darwin"?Uu.PathScurryDarwin:r.platform?Uu.PathScurryPosix:Uu.PathScurry;this.scurry=new a(this.cwd,{nocase:r.nocase,fs:r.fs})}this.nocase=this.scurry.nocase;let i=this.platform==="darwin"||this.platform==="win32",n={...r,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:i,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(a=>new $N.Minimatch(a,n)),[o,u]=s.reduce((a,l)=>(a[0].push(...l.set),a[1].push(...l.globParts),a),[[],[]]);this.patterns=o.map((a,l)=>{let f=u[l];if(!f)throw new Error("invalid pattern object");return new GN.Pattern(a,f,0,this.platform)})}async walk(){return[...await new $u.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new $u.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new $u.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new $u.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};zu.Glob=_c});var Dc=w(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.hasMagic=void 0;var VN=Er(),YN=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let r of t)if(new VN.Minimatch(r,e).hasMagic())return!0;return!1};Gu.hasMagic=YN});var qD=w(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.glob=oe.sync=oe.iterate=oe.iterateSync=oe.stream=oe.streamSync=oe.Ignore=oe.hasMagic=oe.Glob=oe.unescape=oe.escape=void 0;oe.globStreamSync=ys;oe.globStream=Ec;oe.globSync=Sc;oe.globIterateSync=ms;oe.globIterate=Ac;var MD=Er(),ni=wc(),ZN=Dc(),kD=Er();Object.defineProperty(oe,"escape",{enumerable:!0,get:function(){return kD.escape}});Object.defineProperty(oe,"unescape",{enumerable:!0,get:function(){return kD.unescape}});var KN=wc();Object.defineProperty(oe,"Glob",{enumerable:!0,get:function(){return KN.Glob}});var QN=Dc();Object.defineProperty(oe,"hasMagic",{enumerable:!0,get:function(){return QN.hasMagic}});var JN=gc();Object.defineProperty(oe,"Ignore",{enumerable:!0,get:function(){return JN.Ignore}});function ys(t,e={}){return new ni.Glob(t,e).streamSync()}function Ec(t,e={}){return new ni.Glob(t,e).stream()}function Sc(t,e={}){return new ni.Glob(t,e).walkSync()}async function LD(t,e={}){return new ni.Glob(t,e).walk()}function ms(t,e={}){return new ni.Glob(t,e).iterateSync()}function Ac(t,e={}){return new ni.Glob(t,e).iterate()}oe.streamSync=ys;oe.stream=Object.assign(Ec,{sync:ys});oe.iterateSync=ms;oe.iterate=Object.assign(Ac,{sync:ms});oe.sync=Object.assign(Sc,{stream:ys,iterate:ms});oe.glob=Object.assign(LD,{glob:LD,globSync:Sc,sync:oe.sync,globStream:Ec,stream:oe.stream,globStreamSync:ys,streamSync:oe.streamSync,globIterate:Ac,iterate:oe.iterate,globIterateSync:ms,iterateSync:oe.iterateSync,Glob:ni.Glob,hasMagic:ZN.hasMagic,escape:MD.escape,unescape:MD.unescape});oe.glob.glob=oe.glob});var $D=w((Hq,UD)=>{var WD=Ha(),Yi=U("path"),vc=h_(),XN=Fw(),e6=kw(),t6=Gw(),r6=qD(),si=UD.exports={},jD=/[\/\\]/g,i6=function(t,e){var r=[];return vc(t).forEach(function(i){var n=i.indexOf("!")===0;n&&(i=i.slice(1));var s=e(i);n?r=XN(r,s):r=e6(r,s)}),r};si.exists=function(){var t=Yi.join.apply(Yi,arguments);return WD.existsSync(t)};si.expand=function(...t){var e=t6(t[0])?t.shift():{},r=Array.isArray(t[0])?t[0]:t;if(r.length===0)return[];var i=i6(r,function(n){return r6.sync(n,e)});return e.filter&&(i=i.filter(function(n){n=Yi.join(e.cwd||"",n);try{return typeof e.filter=="function"?e.filter(n):WD.statSync(n)[e.filter]()}catch{return!1}})),i};si.expandMapping=function(t,e,r){r=Object.assign({rename:function(s,o){return Yi.join(s||"",o)}},r);var i=[],n={};return si.expand(r,t).forEach(function(s){var o=s;r.flatten&&(o=Yi.basename(o)),r.ext&&(o=o.replace(/(\.[^\/]*)?$/,r.ext));var u=r.rename(e,o,r);r.cwd&&(s=Yi.join(r.cwd,s)),u=u.replace(jD,"/"),s=s.replace(jD,"/"),n[u]?n[u].src.push(s):(i.push({src:[s],dest:u}),n[u]=i[i.length-1])}),i};si.normalizeFilesArray=function(t){var e=[];return t.forEach(function(r){var i;("src"in r||"dest"in r)&&e.push(r)}),e.length===0?[]:(e=_(e).chain().forEach(function(r){!("src"in r)||!r.src||(Array.isArray(r.src)?r.src=vc(r.src):r.src=[r.src])}).map(function(r){var i=Object.assign({},r);if(delete i.src,delete i.dest,r.expand)return si.expandMapping(r.src,r.dest,i).map(function(s){var o=Object.assign({},r);return o.orig=Object.assign({},r),o.src=s.src,o.dest=s.dest,["expand","cwd","flatten","rename","ext"].forEach(function(u){delete o[u]}),o});var n=Object.assign({},r);return n.orig=Object.assign({},r),"src"in n&&Object.defineProperty(n,"src",{enumerable:!0,get:function s(){var o;return"result"in s||(o=r.src,o=Array.isArray(o)?vc(o):[o],s.result=si.expand(i,o)),s.result}}),"dest"in n&&(n.dest=r.dest),n}).flatten().value(),e)}});var Zi=w((Yq,HD)=>{var Cc=Ha(),zD=U("path"),n6=co(),s6=b0(),GD=yl(),o6=Jg(),Vq=U("stream").Stream,u6=ei().PassThrough,dt=HD.exports={};dt.file=$D();dt.collectStream=function(t,e){var r=[],i=0;t.on("error",e),t.on("data",function(n){r.push(n),i+=n.length}),t.on("end",function(){var n=Buffer.alloc(i),s=0;r.forEach(function(o){o.copy(n,s),s+=o.length}),e(null,n)})};dt.dateify=function(t){return t=t||new Date,t instanceof Date?t=t:typeof t=="string"?t=new Date(t):t=new Date,t};dt.defaults=function(t,e,r){var i=arguments;return i[0]=i[0]||{},o6(...i)};dt.isStream=function(t){return n6(t)};dt.lazyReadStream=function(t){return new s6.Readable(function(){return Cc.createReadStream(t)})};dt.normalizeInputSource=function(t){return t===null?Buffer.alloc(0):typeof t=="string"?Buffer.from(t):dt.isStream(t)?t.pipe(new u6):t};dt.sanitizePath=function(t){return GD(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};dt.trailingSlashIt=function(t){return t.slice(-1)!=="/"?t+"/":t};dt.unixifyPath=function(t){return GD(t,!1).replace(/^\w+:/,"")};dt.walkdir=function(t,e,r){var i=[];typeof e=="function"&&(r=e,e=t),Cc.readdir(t,function(n,s){var o=0,u,a;if(n)return r(n);(function l(){if(u=s[o++],!u)return r(null,i);a=zD.join(t,u),Cc.stat(a,function(f,c){i.push({path:a,relative:zD.relative(e,a).replace(/\\/g,"/"),stats:c}),c&&c.isDirectory()?dt.walkdir(a,e,function(g,y){if(g)return r(g);y.forEach(function(S){i.push(S)}),l()}):l()})})()})}});var KD=w((YD,ZD)=>{var a6=U("util"),l6={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function VD(t,e){Error.captureStackTrace(this,this.constructor),this.message=l6[t]||t,this.code=t,this.data=e}a6.inherits(VD,Error);YD=ZD.exports=VD});var tE=w((Zq,eE)=>{var xc=U("fs"),JD=ap(),QD=fp(),Fc=U("path"),zt=Zi(),f6=U("util").inherits,Pe=KD(),XD=ei().Transform,Tc=process.platform==="win32",pe=function(t,e){if(!(this instanceof pe))return new pe(t,e);typeof t!="string"&&(e=t,t="zip"),e=this.options=zt.defaults(e,{highWaterMark:1024*1024,statConcurrency:4}),XD.call(this,e),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=QD.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=QD.queue(this._onStatQueueTask.bind(this),e.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};f6(pe,XD);pe.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()};pe.prototype._append=function(t,e){e=e||{};var r={source:null,filepath:t};e.name||(e.name=t),e.sourcePath=t,r.data=e,this._entriesCount++,e.stats&&e.stats instanceof xc.Stats?(r=this._updateQueueTaskWithStats(r,e.stats),r&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(r))):this._statQueue.push(r)};pe.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)};pe.prototype._maybeFinalize=function(){return this._state.finalizing||this._state.finalized||this._state.aborted?!1:this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()?(this._finalize(),!0):!1};pe.prototype._moduleAppend=function(t,e,r){if(this._state.aborted){r();return}this._module.append(t,e,function(i){if(this._task=null,this._state.aborted){this._shutdown();return}if(i){this.emit("error",i),setImmediate(r);return}this.emit("entry",e),this._entriesProcessedCount++,e.stats&&e.stats.size&&(this._fsEntriesProcessedBytes+=e.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(r)}.bind(this))};pe.prototype._moduleFinalize=function(){typeof this._module.finalize=="function"?this._module.finalize():typeof this._module.end=="function"?this._module.end():this.emit("error",new Pe("NOENDMETHOD"))};pe.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};pe.prototype._moduleSupports=function(t){return!this._module.supports||!this._module.supports[t]?!1:this._module.supports[t]};pe.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};pe.prototype._normalizeEntryData=function(t,e){t=zt.defaults(t,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),e&&t.stats===!1&&(t.stats=e);var r=t.type==="directory";return t.name&&(typeof t.prefix=="string"&&t.prefix!==""&&(t.name=t.prefix+"/"+t.name,t.prefix=null),t.name=zt.sanitizePath(t.name),t.type!=="symlink"&&t.name.slice(-1)==="/"?(r=!0,t.type="directory"):r&&(t.name+="/")),typeof t.mode=="number"?Tc?t.mode&=511:t.mode&=4095:t.stats&&t.mode===null?(Tc?t.mode=t.stats.mode&511:t.mode=t.stats.mode&4095,Tc&&r&&(t.mode=493)):t.mode===null&&(t.mode=r?493:420),t.stats&&t.date===null?t.date=t.stats.mtime:t.date=zt.dateify(t.date),t};pe.prototype._onModuleError=function(t){this.emit("error",t)};pe.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()};pe.prototype._onQueueTask=function(t,e){var r=()=>{t.data.callback&&t.data.callback(),e()};if(this._state.finalizing||this._state.finalized||this._state.aborted){r();return}this._task=t,this._moduleAppend(t.source,t.data,r)};pe.prototype._onStatQueueTask=function(t,e){if(this._state.finalizing||this._state.finalized||this._state.aborted){e();return}xc.lstat(t.filepath,function(r,i){if(this._state.aborted){setImmediate(e);return}if(r){this._entriesCount--,this.emit("warning",r),setImmediate(e);return}t=this._updateQueueTaskWithStats(t,i),t&&(i.size&&(this._fsEntriesTotalBytes+=i.size),this._queue.push(t)),setImmediate(e)}.bind(this))};pe.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};pe.prototype._transform=function(t,e,r){t&&(this._pointer+=t.length),r(null,t)};pe.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=zt.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=zt.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=zt.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else if(e.isSymbolicLink()&&this._moduleSupports("symlink")){var r=xc.readlinkSync(t.filepath),i=Fc.dirname(t.filepath);t.data.type="symlink",t.data.linkname=Fc.relative(i,Fc.resolve(i,r)),t.data.sourceType="buffer",t.source=Buffer.concat([])}else return e.isDirectory()?this.emit("warning",new Pe("DIRECTORYNOTSUPPORTED",t.data)):e.isSymbolicLink()?this.emit("warning",new Pe("SYMLINKNOTSUPPORTED",t.data)):this.emit("warning",new Pe("ENTRYNOTSUPPORTED",t.data)),null;return t.data=this._normalizeEntryData(t.data,e),t};pe.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};pe.prototype.append=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new Pe("QUEUECLOSED")),this;if(e=this._normalizeEntryData(e),typeof e.name!="string"||e.name.length===0)return this.emit("error",new Pe("ENTRYNAMEREQUIRED")),this;if(e.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new Pe("DIRECTORYNOTSUPPORTED",{name:e.name})),this;if(t=zt.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else if(zt.isStream(t))e.sourceType="stream";else return this.emit("error",new Pe("INPUTSTEAMBUFFERREQUIRED",{name:e.name})),this;return this._entriesCount++,this._queue.push({data:e,source:t}),this};pe.prototype.directory=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new Pe("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new Pe("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,e===!1?e="":typeof e!="string"&&(e=t);var i=!1;typeof r=="function"?(i=r,r={}):typeof r!="object"&&(r={});var n={stat:!0,dot:!0};function s(){this._pending--,this._maybeFinalize()}function o(l){this.emit("error",l)}function u(l){a.pause();var f=!1,c=Object.assign({},r);c.name=l.relative,c.prefix=e,c.stats=l.stat,c.callback=a.resume.bind(a);try{if(i){if(c=i(c),c===!1)f=!0;else if(typeof c!="object")throw new Pe("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}}catch(g){this.emit("error",g);return}if(f){a.resume();return}this._append(l.absolute,c)}var a=JD(t,n);return a.on("error",o.bind(this)),a.on("match",u.bind(this)),a.on("end",s.bind(this)),this};pe.prototype.file=function(t,e){return this._state.finalize||this._state.aborted?(this.emit("error",new Pe("QUEUECLOSED")),this):typeof t!="string"||t.length===0?(this.emit("error",new Pe("FILEFILEPATHREQUIRED")),this):(this._append(t,e),this)};pe.prototype.glob=function(t,e,r){this._pending++,e=zt.defaults(e,{stat:!0,pattern:t});function i(){this._pending--,this._maybeFinalize()}function n(u){this.emit("error",u)}function s(u){o.pause();var a=Object.assign({},r);a.callback=o.resume.bind(o),a.stats=u.stat,a.name=u.relative,this._append(u.absolute,a)}var o=JD(e.cwd||".",e);return o.on("error",n.bind(this)),o.on("match",s.bind(this)),o.on("end",i.bind(this)),this};pe.prototype.finalize=function(){if(this._state.aborted){var t=new Pe("ABORTED");return this.emit("error",t),Promise.reject(t)}if(this._state.finalize){var e=new Pe("FINALIZING");return this.emit("error",e),Promise.reject(e)}this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var r=this;return new Promise(function(i,n){var s;r._module.on("end",function(){s||i()}),r._module.on("error",function(o){s=!0,n(o)})})};pe.prototype.setFormat=function(t){return this._format?(this.emit("error",new Pe("FORMATSET")),this):(this._format=t,this)};pe.prototype.setModule=function(t){return this._state.aborted?(this.emit("error",new Pe("ABORTED")),this):this._state.module?(this.emit("error",new Pe("MODULESET")),this):(this._module=t,this._modulePipe(),this)};pe.prototype.symlink=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new Pe("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new Pe("SYMLINKFILEPATHREQUIRED")),this;if(typeof e!="string"||e.length===0)return this.emit("error",new Pe("SYMLINKTARGETREQUIRED",{filepath:t})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new Pe("SYMLINKNOTSUPPORTED",{filepath:t})),this;var i={};return i.type="symlink",i.name=t.replace(/\\/g,"/"),i.linkname=e.replace(/\\/g,"/"),i.sourceType="buffer",typeof r=="number"&&(i.mode=r),this._entriesCount++,this._queue.push({data:i,source:Buffer.concat([])}),this};pe.prototype.pointer=function(){return this._pointer};pe.prototype.use=function(t){return this._streams.push(t),this};eE.exports=pe});var Vu=w((Kq,rE)=>{var Hu=rE.exports=function(){};Hu.prototype.getName=function(){};Hu.prototype.getSize=function(){};Hu.prototype.getLastModifiedDate=function(){};Hu.prototype.isDirectory=function(){}});var Yu=w((Qq,iE)=>{var St=iE.exports={};St.dateToDos=function(t,e){e=e||!1;var r=e?t.getFullYear():t.getUTCFullYear();if(r<1980)return 2162688;if(r>=2044)return 2141175677;var i={year:r,month:e?t.getMonth():t.getUTCMonth(),date:e?t.getDate():t.getUTCDate(),hours:e?t.getHours():t.getUTCHours(),minutes:e?t.getMinutes():t.getUTCMinutes(),seconds:e?t.getSeconds():t.getUTCSeconds()};return i.year-1980<<25|i.month+1<<21|i.date<<16|i.hours<<11|i.minutes<<5|i.seconds/2};St.dosToDate=function(t){return new Date((t>>25&127)+1980,(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(t&31)<<1)};St.fromDosTime=function(t){return St.dosToDate(t.readUInt32LE(0))};St.getEightBytes=function(t){var e=Buffer.alloc(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e};St.getShortBytes=function(t){var e=Buffer.alloc(2);return e.writeUInt16LE((t&65535)>>>0,0),e};St.getShortBytesValue=function(t,e){return t.readUInt16LE(e)};St.getLongBytes=function(t){var e=Buffer.alloc(4);return e.writeUInt32LE((t&4294967295)>>>0,0),e};St.getLongBytesValue=function(t,e){return t.readUInt32LE(e)};St.toDosTime=function(t){return St.getLongBytes(St.dateToDos(t))}});var Rc=w((Jq,lE)=>{var nE=Yu(),sE=8,oE=1,c6=4,h6=2,uE=64,aE=2048,Je=lE.exports=function(){return this instanceof Je?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new Je};Je.prototype.encode=function(){return nE.getShortBytes((this.descriptor?sE:0)|(this.utf8?aE:0)|(this.encryption?oE:0)|(this.strongEncryption?uE:0))};Je.prototype.parse=function(t,e){var r=nE.getShortBytesValue(t,e),i=new Je;return i.useDataDescriptor((r&sE)!==0),i.useUTF8ForNames((r&aE)!==0),i.useStrongEncryption((r&uE)!==0),i.useEncryption((r&oE)!==0),i.setSlidingDictionarySize((r&h6)!==0?8192:4096),i.setNumberOfShannonFanoTrees((r&c6)!==0?3:2),i};Je.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t};Je.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};Je.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t};Je.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};Je.prototype.useDataDescriptor=function(t){this.descriptor=t};Je.prototype.usesDataDescriptor=function(){return this.descriptor};Je.prototype.useEncryption=function(t){this.encryption=t};Je.prototype.usesEncryption=function(){return this.encryption};Je.prototype.useStrongEncryption=function(t){this.strongEncryption=t};Je.prototype.usesStrongEncryption=function(){return this.strongEncryption};Je.prototype.useUTF8ForNames=function(t){this.utf8=t};Je.prototype.usesUTF8ForNames=function(){return this.utf8}});var cE=w((Xq,fE)=>{fE.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}});var Oc=w((e7,hE)=>{hE.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}});var Bc=w((t7,mE)=>{var d6=U("util").inherits,p6=yl(),pE=Vu(),gE=Rc(),dE=cE(),at=Oc(),yE=Yu(),ee=mE.exports=function(t){if(!(this instanceof ee))return new ee(t);pE.call(this),this.platform=at.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new gE,this.crc=0,this.time=-1,this.minver=at.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,t&&this.setName(t)};d6(ee,pE);ee.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};ee.prototype.getComment=function(){return this.comment!==null?this.comment:""};ee.prototype.getCompressedSize=function(){return this.csize};ee.prototype.getCrc=function(){return this.crc};ee.prototype.getExternalAttributes=function(){return this.exattr};ee.prototype.getExtra=function(){return this.extra!==null?this.extra:at.EMPTY};ee.prototype.getGeneralPurposeBit=function(){return this.gpb};ee.prototype.getInternalAttributes=function(){return this.inattr};ee.prototype.getLastModifiedDate=function(){return this.getTime()};ee.prototype.getLocalFileDataExtra=function(){return this.getExtra()};ee.prototype.getMethod=function(){return this.method};ee.prototype.getName=function(){return this.name};ee.prototype.getPlatform=function(){return this.platform};ee.prototype.getSize=function(){return this.size};ee.prototype.getTime=function(){return this.time!==-1?yE.dosToDate(this.time):-1};ee.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};ee.prototype.getUnixMode=function(){return this.platform!==at.PLATFORM_UNIX?0:this.getExternalAttributes()>>at.SHORT_SHIFT&at.SHORT_MASK};ee.prototype.getVersionNeededToExtract=function(){return this.minver};ee.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t};ee.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t};ee.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t};ee.prototype.setExternalAttributes=function(t){this.exattr=t>>>0};ee.prototype.setExtra=function(t){this.extra=t};ee.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof gE))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t};ee.prototype.setInternalAttributes=function(t){this.inattr=t};ee.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t};ee.prototype.setName=function(t,e=!1){t=p6(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t};ee.prototype.setPlatform=function(t){this.platform=t};ee.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t};ee.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=yE.dateToDos(t,e)};ee.prototype.setUnixMode=function(t){t|=this.isDirectory()?at.S_IFDIR:at.S_IFREG;var e=0;e|=t<<at.SHORT_SHIFT|(this.isDirectory()?at.S_DOS_D:at.S_DOS_A),this.setExternalAttributes(e),this.mode=t&at.MODE_MASK,this.platform=at.PLATFORM_UNIX};ee.prototype.setVersionNeededToExtract=function(t){this.minver=t};ee.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};ee.prototype.isUnixSymlink=function(){return(this.getUnixMode()&dE.FILE_TYPE_FLAG)===dE.LINK_FLAG};ee.prototype.isZip64=function(){return this.csize>at.ZIP64_MAGIC||this.size>at.ZIP64_MAGIC}});var Ic=w((i7,bE)=>{var r7=U("stream").Stream,g6=ei().PassThrough,y6=co(),m6=bE.exports={};m6.normalizeInputSource=function(t){if(t===null)return Buffer.alloc(0);if(typeof t=="string")return Buffer.from(t);if(y6(t)&&!t._readableState){var e=new g6;return t.pipe(e),e}return t}});var Nc=w((n7,_E)=>{var b6=U("util").inherits,_6=co(),Pc=ei().Transform,w6=Vu(),D6=Ic(),pt=_E.exports=function(t){if(!(this instanceof pt))return new pt(t);Pc.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};b6(pt,Pc);pt.prototype._appendBuffer=function(t,e,r){};pt.prototype._appendStream=function(t,e,r){};pt.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)};pt.prototype._finish=function(t){};pt.prototype._normalizeEntry=function(t){};pt.prototype._transform=function(t,e,r){r(null,t)};pt.prototype.entry=function(t,e,r){if(e=e||null,typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),!(t instanceof w6)){r(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){r(new Error("unacceptable entry after finish"));return}if(this._archive.processing){r(new Error("already processing an entry"));return}if(this._archive.processing=!0,this._normalizeEntry(t),this._entry=t,e=D6.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,r);else if(_6(e))this._appendStream(t,e,r);else{this._archive.processing=!1,r(new Error("input source must be valid Stream or Buffer instance"));return}return this};pt.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};pt.prototype.getBytesWritten=function(){return this.offset};pt.prototype.write=function(t,e){return t&&(this.offset+=t.length),Pc.prototype.write.call(this,t,e)}});var Zu=w(Mc=>{var wE;(function(t){typeof DO_NOT_EXPORT_CRC>"u"?typeof Mc=="object"?t(Mc):typeof define=="function"&&define.amd?define(function(){var e={};return t(e),e}):t(wE={}):t(wE={})})(function(t){t.version="1.2.2";function e(){for(var O=0,q=new Array(256),F=0;F!=256;++F)O=F,O=O&1?-306674912^O>>>1:O>>>1,O=O&1?-306674912^O>>>1:O>>>1,O=O&1?-306674912^O>>>1:O>>>1,O=O&1?-306674912^O>>>1:O>>>1,O=O&1?-306674912^O>>>1:O>>>1,O=O&1?-306674912^O>>>1:O>>>1,O=O&1?-306674912^O>>>1:O>>>1,O=O&1?-306674912^O>>>1:O>>>1,q[F]=O;return typeof Int32Array<"u"?new Int32Array(q):q}var r=e();function i(O){var q=0,F=0,N=0,M=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(N=0;N!=256;++N)M[N]=O[N];for(N=0;N!=256;++N)for(F=O[N],q=256+N;q<4096;q+=256)F=M[q]=F>>>8^O[F&255];var $=[];for(N=1;N!=16;++N)$[N-1]=typeof Int32Array<"u"?M.subarray(N*256,N*256+256):M.slice(N*256,N*256+256);return $}var n=i(r),s=n[0],o=n[1],u=n[2],a=n[3],l=n[4],f=n[5],c=n[6],g=n[7],y=n[8],S=n[9],m=n[10],E=n[11],b=n[12],v=n[13],I=n[14];function T(O,q){for(var F=q^-1,N=0,M=O.length;N<M;)F=F>>>8^r[(F^O.charCodeAt(N++))&255];return~F}function L(O,q){for(var F=q^-1,N=O.length-15,M=0;M<N;)F=I[O[M++]^F&255]^v[O[M++]^F>>8&255]^b[O[M++]^F>>16&255]^E[O[M++]^F>>>24]^m[O[M++]]^S[O[M++]]^y[O[M++]]^g[O[M++]]^c[O[M++]]^f[O[M++]]^l[O[M++]]^a[O[M++]]^u[O[M++]]^o[O[M++]]^s[O[M++]]^r[O[M++]];for(N+=15;M<N;)F=F>>>8^r[(F^O[M++])&255];return~F}function J(O,q){for(var F=q^-1,N=0,M=O.length,$=0,te=0;N<M;)$=O.charCodeAt(N++),$<128?F=F>>>8^r[(F^$)&255]:$<2048?(F=F>>>8^r[(F^(192|$>>6&31))&255],F=F>>>8^r[(F^(128|$&63))&255]):$>=55296&&$<57344?($=($&1023)+64,te=O.charCodeAt(N++)&1023,F=F>>>8^r[(F^(240|$>>8&7))&255],F=F>>>8^r[(F^(128|$>>2&63))&255],F=F>>>8^r[(F^(128|te>>6&15|($&3)<<4))&255],F=F>>>8^r[(F^(128|te&63))&255]):(F=F>>>8^r[(F^(224|$>>12&15))&255],F=F>>>8^r[(F^(128|$>>6&63))&255],F=F>>>8^r[(F^(128|$&63))&255]);return~F}t.table=r,t.bstr=T,t.buf=L,t.str=J})});var EE=w((o7,DE)=>{"use strict";var{Transform:E6}=ei(),S6=Zu(),Lc=class extends E6{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,r,i){e&&(this.checksum=S6.buf(e,this.checksum)>>>0,this.rawSize+=e.length),i(null,e)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}};DE.exports=Lc});var AE=w((u7,SE)=>{"use strict";var{DeflateRaw:A6}=U("zlib"),v6=Zu(),kc=class extends A6{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(e,r){return e&&(this.compressedSize+=e.length),super.push(e,r)}_transform(e,r,i){e&&(this.checksum=v6.buf(e,this.checksum)>>>0,this.rawSize+=e.length),super._transform(e,r,i)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(e=!1){return e?this.compressedSize:this.rawSize}};SE.exports=kc});var qc=w((a7,vE)=>{"use strict";vE.exports={CRC32Stream:EE(),DeflateCRC32Stream:AE()}});var TE=w((h7,FE)=>{var C6=U("util").inherits,F6=Zu(),{CRC32Stream:T6}=qc(),{DeflateCRC32Stream:x6}=qc(),CE=Nc(),l7=Bc(),f7=Rc(),Z=Oc(),c7=Ic(),H=Yu(),Ve=FE.exports=function(t){if(!(this instanceof Ve))return new Ve(t);t=this.options=this._defaults(t),CE.call(this,t),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:t.forceZip64,forceLocalTime:t.forceLocalTime}};C6(Ve,CE);Ve.prototype._afterAppend=function(t){this._entries.push(t),t.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(t),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()};Ve.prototype._appendBuffer=function(t,e,r){e.length===0&&t.setMethod(Z.METHOD_STORED);var i=t.getMethod();if(i===Z.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(F6.buf(e)>>>0)),this._writeLocalFileHeader(t),i===Z.METHOD_STORED){this.write(e),this._afterAppend(t),r(null,t);return}else if(i===Z.METHOD_DEFLATED){this._smartStream(t,r).end(e);return}else{r(new Error("compression method "+i+" not implemented"));return}};Ve.prototype._appendStream=function(t,e,r){t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(Z.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(t);var i=this._smartStream(t,r);e.once("error",function(n){i.emit("error",n),i.end()}),e.pipe(i)};Ve.prototype._defaults=function(t){return typeof t!="object"&&(t={}),typeof t.zlib!="object"&&(t.zlib={}),typeof t.zlib.level!="number"&&(t.zlib.level=Z.ZLIB_BEST_SPEED),t.forceZip64=!!t.forceZip64,t.forceLocalTime=!!t.forceLocalTime,t};Ve.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(t){this._writeCentralFileHeader(t)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()};Ve.prototype._normalizeEntry=function(t){t.getMethod()===-1&&t.setMethod(Z.METHOD_DEFLATED),t.getMethod()===Z.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(Z.MIN_VERSION_DATA_DESCRIPTOR)),t.getTime()===-1&&t.setTime(new Date,this._archive.forceLocalTime),t._offsets={file:0,data:0,contents:0}};Ve.prototype._smartStream=function(t,e){var r=t.getMethod()===Z.METHOD_DEFLATED,i=r?new x6(this.options.zlib):new T6,n=null;function s(){var o=i.digest().readUInt32BE(0);t.setCrc(o),t.setSize(i.size()),t.setCompressedSize(i.size(!0)),this._afterAppend(t),e(n,t)}return i.once("end",s.bind(this)),i.once("error",function(o){n=o}),i.pipe(this,{end:!1}),i};Ve.prototype._writeCentralDirectoryEnd=function(){var t=this._entries.length,e=this._archive.centralLength,r=this._archive.centralOffset;this.isZip64()&&(t=Z.ZIP64_MAGIC_SHORT,e=Z.ZIP64_MAGIC,r=Z.ZIP64_MAGIC),this.write(H.getLongBytes(Z.SIG_EOCD)),this.write(Z.SHORT_ZERO),this.write(Z.SHORT_ZERO),this.write(H.getShortBytes(t)),this.write(H.getShortBytes(t)),this.write(H.getLongBytes(e)),this.write(H.getLongBytes(r));var i=this.getComment(),n=Buffer.byteLength(i);this.write(H.getShortBytes(n)),this.write(i)};Ve.prototype._writeCentralDirectoryZip64=function(){this.write(H.getLongBytes(Z.SIG_ZIP64_EOCD)),this.write(H.getEightBytes(44)),this.write(H.getShortBytes(Z.MIN_VERSION_ZIP64)),this.write(H.getShortBytes(Z.MIN_VERSION_ZIP64)),this.write(Z.LONG_ZERO),this.write(Z.LONG_ZERO),this.write(H.getEightBytes(this._entries.length)),this.write(H.getEightBytes(this._entries.length)),this.write(H.getEightBytes(this._archive.centralLength)),this.write(H.getEightBytes(this._archive.centralOffset)),this.write(H.getLongBytes(Z.SIG_ZIP64_EOCD_LOC)),this.write(Z.LONG_ZERO),this.write(H.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(H.getLongBytes(1))};Ve.prototype._writeCentralFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),i=t._offsets.file,n=t.getSize(),s=t.getCompressedSize();if(t.isZip64()||i>Z.ZIP64_MAGIC){n=Z.ZIP64_MAGIC,s=Z.ZIP64_MAGIC,i=Z.ZIP64_MAGIC,t.setVersionNeededToExtract(Z.MIN_VERSION_ZIP64);var o=Buffer.concat([H.getShortBytes(Z.ZIP64_EXTRA_ID),H.getShortBytes(24),H.getEightBytes(t.getSize()),H.getEightBytes(t.getCompressedSize()),H.getEightBytes(t._offsets.file)],28);t.setExtra(o)}this.write(H.getLongBytes(Z.SIG_CFH)),this.write(H.getShortBytes(t.getPlatform()<<8|Z.VERSION_MADEBY)),this.write(H.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(H.getShortBytes(r)),this.write(H.getLongBytes(t.getTimeDos())),this.write(H.getLongBytes(t.getCrc())),this.write(H.getLongBytes(s)),this.write(H.getLongBytes(n));var u=t.getName(),a=t.getComment(),l=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(u=Buffer.from(u),a=Buffer.from(a)),this.write(H.getShortBytes(u.length)),this.write(H.getShortBytes(l.length)),this.write(H.getShortBytes(a.length)),this.write(Z.SHORT_ZERO),this.write(H.getShortBytes(t.getInternalAttributes())),this.write(H.getLongBytes(t.getExternalAttributes())),this.write(H.getLongBytes(i)),this.write(u),this.write(l),this.write(a)};Ve.prototype._writeDataDescriptor=function(t){this.write(H.getLongBytes(Z.SIG_DD)),this.write(H.getLongBytes(t.getCrc())),t.isZip64()?(this.write(H.getEightBytes(t.getCompressedSize())),this.write(H.getEightBytes(t.getSize()))):(this.write(H.getLongBytes(t.getCompressedSize())),this.write(H.getLongBytes(t.getSize())))};Ve.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),i=t.getName(),n=t.getLocalFileDataExtra();t.isZip64()&&(e.useDataDescriptor(!0),t.setVersionNeededToExtract(Z.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(i=Buffer.from(i)),t._offsets.file=this.offset,this.write(H.getLongBytes(Z.SIG_LFH)),this.write(H.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(H.getShortBytes(r)),this.write(H.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,e.usesDataDescriptor()?(this.write(Z.LONG_ZERO),this.write(Z.LONG_ZERO),this.write(Z.LONG_ZERO)):(this.write(H.getLongBytes(t.getCrc())),this.write(H.getLongBytes(t.getCompressedSize())),this.write(H.getLongBytes(t.getSize()))),this.write(H.getShortBytes(i.length)),this.write(H.getShortBytes(n.length)),this.write(i),this.write(n),t._offsets.contents=this.offset};Ve.prototype.getComment=function(t){return this._archive.comment!==null?this._archive.comment:""};Ve.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>Z.ZIP64_MAGIC_SHORT||this._archive.centralLength>Z.ZIP64_MAGIC||this._archive.centralOffset>Z.ZIP64_MAGIC};Ve.prototype.setComment=function(t){this._archive.comment=t}});var jc=w((d7,xE)=>{xE.exports={ArchiveEntry:Vu(),ZipArchiveEntry:Bc(),ArchiveOutputStream:Nc(),ZipArchiveOutputStream:TE()}});var OE=w((p7,RE)=>{var R6=U("util").inherits,Uc=jc().ZipArchiveOutputStream,O6=jc().ZipArchiveEntry,Wc=Zi(),Ki=RE.exports=function(t){if(!(this instanceof Ki))return new Ki(t);t=this.options=t||{},t.zlib=t.zlib||{},Uc.call(this,t),typeof t.level=="number"&&t.level>=0&&(t.zlib.level=t.level,delete t.level),!t.forceZip64&&typeof t.zlib.level=="number"&&t.zlib.level===0&&(t.store=!0),t.namePrependSlash=t.namePrependSlash||!1,t.comment&&t.comment.length>0&&this.setComment(t.comment)};R6(Ki,Uc);Ki.prototype._normalizeFileData=function(t){t=Wc.defaults(t,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var e=t.type==="directory",r=t.type==="symlink";return t.name&&(t.name=Wc.sanitizePath(t.name),!r&&t.name.slice(-1)==="/"?(e=!0,t.type="directory"):e&&(t.name+="/")),(e||r)&&(t.store=!0),t.date=Wc.dateify(t.date),t};Ki.prototype.entry=function(t,e,r){if(typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),e=this._normalizeFileData(e),e.type!=="file"&&e.type!=="directory"&&e.type!=="symlink"){r(new Error(e.type+" entries not currently supported"));return}if(typeof e.name!="string"||e.name.length===0){r(new Error("entry name must be a non-empty string value"));return}if(e.type==="symlink"&&typeof e.linkname!="string"){r(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var i=new O6(e.name);return i.setTime(e.date,this.options.forceLocalTime),e.namePrependSlash&&i.setName(e.name,!0),e.store&&i.setMethod(0),e.comment.length>0&&i.setComment(e.comment),e.type==="symlink"&&typeof e.mode!="number"&&(e.mode=40960),typeof e.mode=="number"&&(e.type==="symlink"&&(e.mode|=40960),i.setUnixMode(e.mode)),e.type==="symlink"&&typeof e.linkname=="string"&&(t=Buffer.from(e.linkname)),Uc.prototype.entry.call(this,i,t,r)};Ki.prototype.finalize=function(){this.finish()}});var IE=w((g7,BE)=>{var B6=OE(),I6=Zi(),Cr=function(t){if(!(this instanceof Cr))return new Cr(t);t=this.options=I6.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new B6(t)};Cr.prototype.append=function(t,e,r){this.engine.entry(t,e,r)};Cr.prototype.finalize=function(){this.engine.finalize()};Cr.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Cr.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Cr.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};BE.exports=Cr});var NE=w((y7,PE)=>{PE.exports=U("events")});var LE=w((b7,ME)=>{ME.exports=class{constructor(e){if(!(e>0)||(e-1&e)!==0)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return this.buffer[this.top]!==void 0?!1:(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){let e=this.buffer[this.btm];if(e!==void 0)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===void 0}}});var $c=w((w7,qE)=>{var kE=LE();qE.exports=class{constructor(e){this.hwm=e||16,this.head=new kE(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){let r=this.head;this.head=r.next=new kE(2*this.head.buffer.length),this.head.push(e)}}shift(){this.length!==0&&this.length--;let e=this.tail.shift();if(e===void 0&&this.tail.next){let r=this.tail.next;return this.tail.next=null,this.tail=r,this.tail.shift()}return e}peek(){let e=this.tail.peek();return e===void 0&&this.tail.next?this.tail.next.peek():e}isEmpty(){return this.length===0}}});var Qi=w((D7,jE)=>{function P6(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function N6(t){return Buffer.isEncoding(t)}function M6(t,e,r){return Buffer.alloc(t,e,r)}function L6(t){return Buffer.allocUnsafe(t)}function k6(t){return Buffer.allocUnsafeSlow(t)}function q6(t,e){return Buffer.byteLength(t,e)}function j6(t,e){return Buffer.compare(t,e)}function W6(t,e){return Buffer.concat(t,e)}function U6(t,e,r,i,n){return _e(t).copy(e,r,i,n)}function $6(t,e){return _e(t).equals(e)}function z6(t,e,r,i,n){return _e(t).fill(e,r,i,n)}function G6(t,e,r){return Buffer.from(t,e,r)}function H6(t,e,r,i){return _e(t).includes(e,r,i)}function V6(t,e,r,i){return _e(t).indexOf(e,r,i)}function Y6(t,e,r,i){return _e(t).lastIndexOf(e,r,i)}function Z6(t){return _e(t).swap16()}function K6(t){return _e(t).swap32()}function Q6(t){return _e(t).swap64()}function _e(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function J6(t,e,r,i){return _e(t).toString(e,r,i)}function X6(t,e,r,i,n){return _e(t).write(e,r,i,n)}function e4(t,e){return _e(t).readDoubleBE(e)}function t4(t,e){return _e(t).readDoubleLE(e)}function r4(t,e){return _e(t).readFloatBE(e)}function i4(t,e){return _e(t).readFloatLE(e)}function n4(t,e){return _e(t).readInt32BE(e)}function s4(t,e){return _e(t).readInt32LE(e)}function o4(t,e){return _e(t).readUInt32BE(e)}function u4(t,e){return _e(t).readUInt32LE(e)}function a4(t,e,r){return _e(t).writeDoubleBE(e,r)}function l4(t,e,r){return _e(t).writeDoubleLE(e,r)}function f4(t,e,r){return _e(t).writeFloatBE(e,r)}function c4(t,e,r){return _e(t).writeFloatLE(e,r)}function h4(t,e,r){return _e(t).writeInt32BE(e,r)}function d4(t,e,r){return _e(t).writeInt32LE(e,r)}function p4(t,e,r){return _e(t).writeUInt32BE(e,r)}function g4(t,e,r){return _e(t).writeUInt32LE(e,r)}jE.exports={isBuffer:P6,isEncoding:N6,alloc:M6,allocUnsafe:L6,allocUnsafeSlow:k6,byteLength:q6,compare:j6,concat:W6,copy:U6,equals:$6,fill:z6,from:G6,includes:H6,indexOf:V6,lastIndexOf:Y6,swap16:Z6,swap32:K6,swap64:Q6,toBuffer:_e,toString:J6,write:X6,readDoubleBE:e4,readDoubleLE:t4,readFloatBE:r4,readFloatLE:i4,readInt32BE:n4,readInt32LE:s4,readUInt32BE:o4,readUInt32LE:u4,writeDoubleBE:a4,writeDoubleLE:l4,writeFloatBE:f4,writeFloatLE:c4,writeInt32BE:h4,writeInt32LE:d4,writeUInt32BE:p4,writeUInt32LE:g4}});var UE=w((S7,WE)=>{var y4=Qi();WE.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return y4.toString(e,this.encoding)}flush(){return""}}});var HE=w((v7,GE)=>{var $E=Qi();GE.exports=class{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(e){if(e.byteLength===0)return"";if(this.bytesNeeded===0&&zE(e,0)===0)return this.bytesSeen=m4(e),$E.toString(e,"utf8");let r="",i=0;if(this.bytesNeeded>0){for(;i<e.byteLength;){let o=e[i];if(o<this.lowerBoundary||o>this.upperBoundary){r+="\uFFFD",this._reset();break}if(this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|o&63,this.bytesSeen++,i++,this.bytesSeen===this.bytesNeeded){r+=String.fromCodePoint(this.codePoint),this._reset();break}}if(this.bytesNeeded>0)return r}let n=zE(e,i),s=e.byteLength-n;s>i&&(r+=$E.toString(e,"utf8",i,s));for(let o=s;o<e.byteLength;o++){let u=e[o];if(this.bytesNeeded===0){u<=127?(this.bytesSeen=0,r+=String.fromCharCode(u)):u>=194&&u<=223?(this.bytesNeeded=2,this.bytesSeen=1,this.codePoint=u&31):u>=224&&u<=239?(u===224?this.lowerBoundary=160:u===237&&(this.upperBoundary=159),this.bytesNeeded=3,this.bytesSeen=1,this.codePoint=u&15):u>=240&&u<=244?(u===240?this.lowerBoundary=144:u===244&&(this.upperBoundary=143),this.bytesNeeded=4,this.bytesSeen=1,this.codePoint=u&7):(this.bytesSeen=1,r+="\uFFFD");continue}if(u<this.lowerBoundary||u>this.upperBoundary){r+="\uFFFD",o--,this._reset();continue}this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|u&63,this.bytesSeen++,this.bytesSeen===this.bytesNeeded&&(r+=String.fromCodePoint(this.codePoint),this._reset())}return r}flush(){let e=this.bytesNeeded>0?"\uFFFD":"";return this._reset(),e}_reset(){this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191}};function zE(t,e){let r=t.byteLength;if(r<=e)return 0;let i=Math.max(e,r-4),n=r-1;for(;n>i&&(t[n]&192)===128;)n--;if(n<e)return 0;let s=t[n],o;if(s<=127)return 0;if(s>=194&&s<=223)o=2;else if(s>=224&&s<=239)o=3;else if(s>=240&&s<=244)o=4;else return 0;let u=r-n;return u<o?u:0}function m4(t){let e=t.byteLength;if(e===0)return 0;let r=t[e-1];if(r<=127)return 0;if((r&192)!==128)return 1;let i=Math.max(0,e-4),n=e-2;for(;n>=i&&(t[n]&192)===128;)n--;if(n<0)return 1;let s=t[n],o;if(s>=194&&s<=223)o=2;else if(s>=224&&s<=239)o=3;else if(s>=240&&s<=244)o=4;else return 1;if(e-n!==o)return 1;if(o>=3){let u=t[n+1];if(s===224&&u<160||s===237&&u>159||s===240&&u<144||s===244&&u>143)return 1}return 0}});var YE=w((F7,VE)=>{var b4=UE(),_4=HE();VE.exports=class{constructor(e="utf8"){switch(this.encoding=w4(e),this.encoding){case"utf8":this.decoder=new _4;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new b4(this.encoding)}}get remaining(){return this.decoder.remaining}push(e){return typeof e=="string"?e:this.decoder.decode(e)}write(e){return this.push(e)}end(e){let r="";return e&&(r=this.push(e)),r+=this.decoder.flush(),r}};function w4(t){switch(t=t.toLowerCase(),t){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 t;default:throw new Error("Unknown encoding: "+t)}}});var KE=w((T7,ZE)=>{ZE.exports=class Gt extends Error{constructor(e,r,i=Gt){super(e),this.code=r,Error.captureStackTrace&&Error.captureStackTrace(this,i)}static isStreamDestroyed(e){return e&&e.code==="STREAM_DESTROYED"}static isPrematureClose(e){return e&&e.code==="PREMATURE_CLOSE"}static isAborted(e){return e&&e.code==="ABORTED"}static isBadArgument(e){return e&&e.code==="BAD_ARGUMENT"}get name(){return"StreamError"}static STREAM_DESTROYED(){return new Gt("Stream was destroyed","STREAM_DESTROYED",Gt.STREAM_DESTROYED)}static PREMATURE_CLOSE(e="Premature close"){return new Gt(e,"PREMATURE_CLOSE",Gt.PREMATURE_CLOSE)}static ABORTED(){return new Gt("Stream aborted","ABORTED",Gt.ABORTED)}static BAD_ARGUMENT(e="Bad argument"){return new Gt(e,"BAD_ARGUMENT",Gt.BAD_ARGUMENT)}}});var sh=w((x7,mS)=>{var{EventEmitter:D4}=NE(),tS=$c(),E4=YE(),At=KE(),zc=typeof queueMicrotask>"u"?t=>global.process.nextTick(t):queueMicrotask,Ie=(1<<29)-1,Ht=1,Qc=2,ar=4,bs=8,rS=Ie^Ht,S4=Ie^Qc,Ss=16,Ji=32,tn=64,Tr=128,As=256,Jc=512,xr=1024,Gc=2048,Xc=4096,eh=8192,Bt=16384,Fr=32768,ra=65536,oi=131072,iS=As|Jc,A4=Ss|ra,v4=tn|Ss,C4=Xc|Tr,th=As|oi,F4=Ie^Ss,T4=Ie^tn,x4=Ie^(tn|ra),QE=Ie^ra,R4=Ie^As,O4=Ie^(Tr|eh),B4=Ie^xr,JE=Ie^iS,nS=Ie^Fr,I4=Ie^Ji,sS=Ie^oi,P4=Ie^th,lr=1<<18,en=2<<18,vs=4<<18,ui=8<<18,Cs=16<<18,Or=32<<18,Hc=64<<18,Xi=128<<18,rh=256<<18,Rr=512<<18,ia=1024<<18,N4=Ie^(lr|rh),oS=Ie^vs,M4=Ie^(lr|Rr),L4=Ie^Cs,k4=Ie^ui,uS=Ie^Xi,q4=Ie^en,aS=Ie^ia,_s=Ss|lr,lS=Ie^_s,ih=Bt|Or,Vt=ar|bs|Qc,gt=Vt|Ht,fS=Vt|ih,j4=oS&T4,na=Xi|Fr,W4=na&lS,cS=gt|W4,U4=gt|xr|Bt,XE=gt|Bt|Tr,$4=gt|xr|Tr,z4=gt|Xc|Tr|eh,G4=gt|Ss|xr|Bt|ra|oi,H4=Vt|xr|Bt,V4=Ji|gt|Fr|tn,Y4=Fr|Ht,Z4=gt|Rr|Or,K4=ui|Cs,hS=ui|lr,Q4=ui|Cs|gt|lr,eS=gt|lr|ui|ia,J4=vs|lr,X4=lr|rh,eM=gt|Rr|hS|Or,tM=Cs|Vt|Rr|Or,rM=en|gt|Xi|vs,iM=Rr|Or|Vt,Ku=Symbol.asyncIterator||Symbol("asyncIterator"),Qu=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapWritable:n,byteLength:s,byteLengthWritable:o}={}){this.stream=e,this.queue=new tS,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||s||yS,this.map=n||i,this.afterWrite=oM.bind(this),this.afterUpdateNextTick=lM.bind(this)}get ending(){return(this.stream._duplexState&Rr)!==0}get ended(){return(this.stream._duplexState&Or)!==0}push(e){return(this.stream._duplexState&iM)!==0?!1:(this.map!==null&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered<this.highWaterMark?(this.stream._duplexState|=ui,!0):(this.stream._duplexState|=K4,!1))}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=k4),e}end(e){typeof e=="function"?this.stream.once("finish",e):e!=null&&this.push(e),this.stream._duplexState=(this.stream._duplexState|Rr)&oS}autoBatch(e,r){let i=[],n=this.stream;for(i.push(e);(n._duplexState&eS)===hS;)i.push(n._writableState.shift());if((n._duplexState>)!==0)return r(null);n._writev(i,r)}update(){let e=this.stream;e._duplexState|=en;do{for(;(e._duplexState&eS)===ui;){let r=this.shift();e._duplexState|=X4,e._write(r,this.afterWrite)}(e._duplexState&J4)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=q4}updateNonPrimary(){let e=this.stream;if((e._duplexState&eM)===Rr){e._duplexState=e._duplexState|lr,e._final(sM.bind(this));return}if((e._duplexState&Vt)===ar){(e._duplexState&na)===0&&(e._duplexState|=_s,e._destroy(dS.bind(this)));return}(e._duplexState&cS)===Ht&&(e._duplexState=(e._duplexState|_s)&rS,e._open(pS.bind(this)))}continueUpdate(){return(this.stream._duplexState&Xi)===0?!1:(this.stream._duplexState&=uS,!0)}updateCallback(){(this.stream._duplexState&rM)===vs?this.update():this.updateNextTick()}updateNextTick(){(this.stream._duplexState&Xi)===0&&(this.stream._duplexState|=Xi,(this.stream._duplexState&en)===0&&zc(this.afterUpdateNextTick))}},Vc=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapReadable:n,byteLength:s,byteLengthReadable:o}={}){this.stream=e,this.queue=new tS,this.highWaterMark=r===0?1:r,this.buffered=0,this.readAhead=r>0,this.error=null,this.pipeline=null,this.byteLength=o||s||yS,this.map=n||i,this.pipeTo=null,this.afterRead=uM.bind(this),this.afterUpdateNextTick=aM.bind(this)}get ending(){return(this.stream._duplexState&xr)!==0}get ended(){return(this.stream._duplexState&Bt)!==0}pipe(e,r){if(this.pipeTo!==null)throw At.BAD_ARGUMENT("Can only pipe to one destination");if(typeof r!="function"&&(r=null),this.stream._duplexState|=Jc,this.pipeTo=e,this.pipeline=new Zc(this.stream,e,r),r&&this.stream.on("error",Kc),Es(e))e._writableState.pipeline=this.pipeline,r&&e.on("error",Kc),e.on("finish",this.pipeline.finished.bind(this.pipeline));else{let i=this.pipeline.done.bind(this.pipeline,e),n=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",i),e.on("close",n),e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",nM.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){let r=this.stream;return e===null?(this.highWaterMark=0,r._duplexState=(r._duplexState|xr)&x4,!1):this.map!==null&&(e=this.map(e),e===null)?(r._duplexState&=QE,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(e),this.queue.push(e),r._duplexState=(r._duplexState|Tr)&QE,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=O4),e}unshift(e){let r=[this.map!==null?this.map(e):e];for(;this.buffered>0;)r.push(this.shift());for(let i=0;i<r.length-1;i++){let n=r[i];this.buffered+=this.byteLength(n),this.queue.push(n)}this.push(r[r.length-1])}read(){let e=this.stream;if((e._duplexState&XE)===Tr){let r=this.shift();return this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=JE),(e._duplexState&Gc)!==0&&e.emit("data",r),r}return this.readAhead===!1&&(e._duplexState|=oi,this.updateNextTick()),null}drain(){let e=this.stream;for(;(e._duplexState&XE)===Tr&&(e._duplexState&iS)!==0;){let r=this.shift();this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=JE),(e._duplexState&Gc)!==0&&e.emit("data",r)}}update(){let e=this.stream;e._duplexState|=Ji;do{for(this.drain();this.buffered<this.highWaterMark&&(e._duplexState&G4)===oi;)e._duplexState|=A4,e._read(this.afterRead),this.drain();(e._duplexState&z4)===C4&&(e._duplexState|=eh,e.emit("readable")),(e._duplexState&v4)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=I4}updateNonPrimary(){let e=this.stream;if((e._duplexState&$4)===xr&&(e._duplexState=(e._duplexState|Bt)&B4,e.emit("end"),(e._duplexState&fS)===ih&&(e._duplexState|=ar),this.pipeTo!==null&&this.pipeTo.end()),(e._duplexState&Vt)===ar){(e._duplexState&na)===0&&(e._duplexState|=_s,e._destroy(dS.bind(this)));return}(e._duplexState&cS)===Ht&&(e._duplexState=(e._duplexState|_s)&rS,e._open(pS.bind(this)))}continueUpdate(){return(this.stream._duplexState&Fr)===0?!1:(this.stream._duplexState&=nS,!0)}updateCallback(){(this.stream._duplexState&V4)===tn?this.update():this.updateNextTick()}updateNextTickIfOpen(){(this.stream._duplexState&Y4)===0&&(this.stream._duplexState|=Fr,(this.stream._duplexState&Ji)===0&&zc(this.afterUpdateNextTick))}updateNextTick(){(this.stream._duplexState&Fr)===0&&(this.stream._duplexState|=Fr,(this.stream._duplexState&Ji)===0&&zc(this.afterUpdateNextTick))}},Yc=class{constructor(e){this.data=null,this.afterTransform=cM.bind(e),this.afterFinal=null}},Zc=class{constructor(e,r,i){this.from=e,this.to=r,this.afterPipe=i,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(e,r){if(r&&(this.error=r),e===this.to&&(this.to=null,this.from!==null)){((this.from._duplexState&Bt)===0||!this.pipeToFinished)&&this.from.destroy(this.error||At.PREMATURE_CLOSE("Writable stream closed"));return}if(e===this.from&&(this.from=null,this.to!==null)){(e._duplexState&Bt)===0&&this.to.destroy(this.error||At.PREMATURE_CLOSE("Readable stream closed"));return}this.afterPipe!==null&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null}};function nM(){this.stream._duplexState|=Jc,this.updateCallback()}function sM(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&Vt)===0&&(e._duplexState|=Or,e.emit("finish")),(e._duplexState&fS)===ih&&(e._duplexState|=ar),e._duplexState&=M4,(e._duplexState&en)===0?this.update():this.updateNextTick()}function dS(t){let e=this.stream;!t&&!At.isStreamDestroyed(this.error)&&(t=this.error),t&&e.emit("error",t),e._duplexState|=bs,e.emit("close");let r=e._readableState,i=e._writableState;if(r!==null&&r.pipeline!==null&&r.pipeline.done(e,t),i!==null){for(;i.drains!==null&&i.drains.length>0;)i.drains.shift().resolve(!1);i.pipeline!==null&&i.pipeline.done(e,t)}}function oM(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=N4,this.drains!==null&&fM(this.drains),(e._duplexState&Q4)===Cs&&(e._duplexState&=L4,(e._duplexState&Hc)===Hc&&e.emit("drain")),this.updateCallback()}function uM(t){t&&this.stream.destroy(t),this.stream._duplexState&=F4,this.readAhead===!1&&(this.stream._duplexState&As)===0&&(this.stream._duplexState&=sS),this.updateCallback()}function aM(){(this.stream._duplexState&Ji)===0&&(this.stream._duplexState&=nS,this.update())}function lM(){(this.stream._duplexState&en)===0&&(this.stream._duplexState&=uS,this.update())}function fM(t){for(let e=0;e<t.length;e++)--t[e].writes===0&&(t.shift().resolve(!0),e--)}function pS(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&ar)===0&&((e._duplexState&U4)===0&&(e._duplexState|=tn),(e._duplexState&Z4)===0&&(e._duplexState|=vs),e.emit("open")),e._duplexState&=lS,e._writableState!==null&&e._writableState.updateCallback(),e._readableState!==null&&e._readableState.updateCallback()}function cM(t,e){e!=null&&this.push(e),this._writableState.afterWrite(t)}function hM(t){this._readableState!==null&&(t==="data"&&(this._duplexState|=Gc|th,this._readableState.updateNextTick()),t==="readable"&&(this._duplexState|=Xc,this._readableState.updateNextTick())),this._writableState!==null&&t==="drain"&&(this._duplexState|=Hc,this._writableState.updateNextTick())}var ws=class extends D4{constructor(e){super(),this._duplexState=0,this._readableState=null,this._writableState=null,e&&(e.open&&(this._open=e.open),e.destroy&&(this._destroy=e.destroy),e.predestroy&&(this._predestroy=e.predestroy),e.signal&&e.signal.addEventListener("abort",AM.bind(this))),this.on("newListener",hM)}_open(e){e(null)}_destroy(e){e(null)}_predestroy(){}get readable(){return this._readableState!==null?!0:void 0}get writable(){return this._writableState!==null?!0:void 0}get destroyed(){return(this._duplexState&bs)!==0}get destroying(){return(this._duplexState&Vt)!==0}destroy(e){(this._duplexState&Vt)===0&&(e||(e=At.STREAM_DESTROYED()),this._duplexState=(this._duplexState|ar)&j4,this._readableState!==null&&(this._readableState.highWaterMark=0,this._readableState.error=e),this._writableState!==null&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=Qc,this._predestroy(),this._duplexState&=S4,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}},Ju=class t extends ws{constructor(e){super(e),this._duplexState|=Ht|Or|oi,this._readableState=new Vc(this,e),e&&(this._readableState.readAhead===!1&&(this._duplexState&=sS),e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick(),e.encoding&&this.setEncoding(e.encoding))}static deferred(e,r){let i=new ta(r);return e().then(n=>{if(n===null)return i.end();i.destroying||nh(n,i,Kc)}).catch(n=>i.destroy(n)),i}setEncoding(e){let r=new E4(e),i=this._readableState.map||gM;return this._readableState.map=n,this;function n(s){let o=r.push(s);return o===""&&(s.byteLength!==0||r.remaining>0)?null:i(o)}}_read(e){e(null)}pipe(e,r){return this._readableState.updateNextTick(),this._readableState.pipe(e,r),e}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(e){return this._readableState.updateNextTickIfOpen(),this._readableState.push(e)}unshift(e){return this._readableState.updateNextTickIfOpen(),this._readableState.unshift(e)}resume(){return this._duplexState|=th,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?P4:R4,this}static _fromAsyncIterator(e,r){let i,n=new t({...r,read(o){e.next().then(s).then(o.bind(null,null)).catch(o)},predestroy(){i=e.return()},destroy(o){if(!i)return o(null);i.then(o.bind(null,null)).catch(o)}});return n;function s(o){o.done?n.push(null):n.push(o.value)}}static from(e,r){if(DM(e))return e;if(e[Ku])return this._fromAsyncIterator(e[Ku](),r);Array.isArray(e)||(e=e===void 0?[]:[e]);let i=0;return new t({...r,read(n){this.push(i===e.length?null:e[i++]),n(null)}})}static isBackpressured(e){return(e._duplexState&H4)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&As)===0}[Ku](){let e=this,r=null,i=null,n=null;return this.on("error",l=>{r=l}),this.on("readable",s),this.on("close",o),{[Ku](){return this},next(){return new Promise(function(l,f){i=l,n=f;let c=e.read();c!==null?u(c):(e._duplexState&bs)!==0&&u(null)})},return(){return a(null)},throw(l){return a(l)}};function s(){i!==null&&u(e.read())}function o(){i!==null&&u(null)}function u(l){n!==null&&(r?n(r):l===null&&(e._duplexState&Bt)===0?n(At.STREAM_DESTROYED()):i({value:l,done:l===null}),n=i=null)}function a(l){return e.destroy(l),new Promise((f,c)=>{if(e._duplexState&bs)return f({value:void 0,done:!0});e.once("close",function(){l?c(l):f({value:void 0,done:!0})})})}}},Xu=class extends ws{constructor(e){super(e),this._duplexState|=Ht|Bt,this._writableState=new Qu(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}cork(){this._duplexState|=ia}uncork(){this._duplexState&=aS,this._writableState.updateNextTick()}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}static isBackpressured(e){return(e._duplexState&tM)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let r=e._writableState,n=(vM(e)?Math.min(1,r.queue.length):r.queue.length)+(e._duplexState&rh?1:0);return n===0?Promise.resolve(!0):(r.drains===null&&(r.drains=[]),new Promise(s=>{r.drains.push({writes:n,resolve:s})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},Ds=class extends Ju{constructor(e){super(e),this._duplexState=Ht|this._duplexState&oi,this._writableState=new Qu(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=ia}uncork(){this._duplexState&=aS,this._writableState.updateNextTick()}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},ea=class extends Ds{constructor(e){super(e),this._transformState=new Yc(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,r){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(this._transformState.data!==null){let r=this._transformState.data;this._transformState.data=null,e(null),this._transform(r,this._transformState.afterTransform)}else e(null)}destroy(e){super.destroy(e),this._transformState.data!==null&&(this._transformState.data=null,this._transformState.afterTransform())}_transform(e,r){r(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(dM.bind(this))}},ta=class extends ea{};function dM(t,e){let r=this._transformState.afterFinal;if(t)return r(t);e!=null&&this.push(e),this.push(null),r(null)}function pM(...t){return new Promise((e,r)=>nh(...t,i=>{if(i)return r(i);e()}))}function nh(t,...e){let r=Array.isArray(t)?[...t,...e]:[t,...e],i=r.length&&typeof r[r.length-1]=="function"?r.pop():null;if(r.length<2)throw At.BAD_ARGUMENT("Pipeline requires at least 2 streams");let n=r[0],s=null,o=null;for(let l=1;l<r.length;l++)s=r[l],Es(n)?n.pipe(s,a):(u(n,!0,l>1,a),n.pipe(s)),n=s;if(i){let l=!1,f=Es(s)||!!(s._writableState&&s._writableState.autoDestroy);s.on("error",c=>{o===null&&(o=c)}),s.on("finish",()=>{l=!0,f||i(o)}),f&&s.on("close",()=>i(o||(l?null:At.PREMATURE_CLOSE())))}return s;function u(l,f,c,g){l.on("error",g),l.on("close",y);function y(){if(f&&l._readableState&&!l._readableState.ended||c&&l._writableState&&!l._writableState.ended)return g(At.PREMATURE_CLOSE())}}function a(l){if(!(!l||o)){o=l;for(let f of r)f.destroy(l)}}}function gM(t){return t}function gS(t){return!!t._readableState||!!t._writableState}function Es(t){return typeof t._duplexState=="number"&&gS(t)}function yM(t){return!!t._readableState&&t._readableState.ending}function mM(t){return!!t._readableState&&t._readableState.ended}function bM(t){return!!t._writableState&&t._writableState.ending}function _M(t){return!!t._writableState&&t._writableState.ended}function wM(t,e={}){let r=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return!e.all&&At.isStreamDestroyed(r)?null:r}function DM(t){return Es(t)&&t.readable}function EM(t){return(t._duplexState&Ht)!==Ht||(t._duplexState&ar)===ar||(t._duplexState&na)!==0}function SM(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}function yS(t){return SM(t)?t.byteLength:1024}function Kc(){}function AM(){this.destroy(At.ABORTED())}function vM(t){return t._writev!==Xu.prototype._writev&&t._writev!==Ds.prototype._writev}mS.exports={pipeline:nh,pipelinePromise:pM,isStream:gS,isStreamx:Es,isEnding:yM,isEnded:mM,isFinishing:bM,isFinished:_M,isDisturbed:EM,getStreamError:wM,Stream:ws,Writable:Xu,Readable:Ju,Duplex:Ds,Transform:ea,PassThrough:ta}});var ah=w(nn=>{var ce=Qi(),CM="0000000000000000000",FM="7777777777777777777",sa=48,bS=ce.from([117,115,116,97,114,0]),TM=ce.from([sa,sa]),xM=ce.from([117,115,116,97,114,32]),RM=ce.from([32,0]),OM=4095,Fs=257,uh=263;nn.decodeLongPath=function(e,r){return rn(e,0,e.length,r)};nn.encodePax=function(e){let r="";e.name&&(r+=oh(" path="+e.name+`
|
|
27
|
+
`)),e.linkname&&(r+=oh(" linkpath="+e.linkname+`
|
|
28
|
+
`));let i=e.pax;if(i)for(let n in i)r+=oh(" "+n+"="+i[n]+`
|
|
29
|
+
`);return ce.from(r)};nn.decodePax=function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let n=parseInt(ce.toString(e.subarray(0,i)),10);if(!n)return r;let s=ce.toString(e.subarray(i+1,n-1)),o=s.indexOf("=");if(o===-1)return r;r[s.slice(0,o)]=s.slice(o+1),e=e.subarray(n)}return r};nn.encode=function(e){let r=ce.alloc(512),i=e.name,n="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),ce.byteLength(i)!==i.length)return null;for(;ce.byteLength(i)>100;){let s=i.indexOf("/");if(s===-1)return null;n+=n?"/"+i.slice(0,s):i.slice(0,s),i=i.slice(s+1)}return ce.byteLength(i)>100||ce.byteLength(n)>155||e.linkname&&ce.byteLength(e.linkname)>100?null:(ce.write(r,i),ce.write(r,Ir(e.mode&OM,6),100),ce.write(r,Ir(e.uid,6),108),ce.write(r,Ir(e.gid,6),116),kM(e.size,r,124),ce.write(r,Ir(e.mtime.getTime()/1e3|0,11),136),r[156]=sa+MM(e.type),e.linkname&&ce.write(r,e.linkname,157),ce.copy(bS,r,Fs),ce.copy(TM,r,uh),e.uname&&ce.write(r,e.uname,265),e.gname&&ce.write(r,e.gname,297),ce.write(r,Ir(e.devmajor||0,6),329),ce.write(r,Ir(e.devminor||0,6),337),n&&ce.write(r,n,345),ce.write(r,Ir(wS(r),6),148),r)};nn.decode=function(e,r,i){let n=e[156]===0?0:e[156]-sa,s=rn(e,0,100,r),o=Br(e,100,8),u=Br(e,108,8),a=Br(e,116,8),l=Br(e,124,12),f=Br(e,136,12),c=NM(n),g=e[157]===0?null:rn(e,157,100,r),y=rn(e,265,32),S=rn(e,297,32),m=Br(e,329,8),E=Br(e,337,8),b=wS(e);if(b===256)return null;if(b!==Br(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(BM(e))e[345]&&(s=rn(e,345,155,r)+"/"+s);else if(!IM(e)){if(!i)throw new Error("Invalid tar header: unknown format.")}return n===0&&s&&s[s.length-1]==="/"&&(n=5),{name:s,mode:o,uid:u,gid:a,size:l,byteOffset:0,mtime:new Date(1e3*f),type:c,linkname:g,uname:y,gname:S,devmajor:m,devminor:E,pax:null}};function BM(t){return ce.equals(bS,t.subarray(Fs,Fs+6))}function IM(t){return ce.equals(xM,t.subarray(Fs,Fs+6))&&ce.equals(RM,t.subarray(uh,uh+2))}function PM(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function NM(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function MM(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function _S(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function wS(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function Ir(t,e){return t=t.toString(8),t.length>e?FM.slice(0,e)+" ":CM.slice(0,e-t.length)+t+" "}function LM(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function kM(t,e,r){t.toString(8).length>11?LM(t,e,r):ce.write(e,Ir(t,11),r)}function qM(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],i;for(i=t.length-1;i>0;i--){let o=t[i];e?r.push(o):r.push(255-o)}let n=0,s=r.length;for(i=0;i<s;i++)n+=r[i]*Math.pow(256,i);return e?n:-1*n}function Br(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return qM(t);{for(;e<t.length&&t[e]===32;)e++;let i=PM(_S(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(ce.toString(t.subarray(e,i)),8)}}function rn(t,e,r,i){return ce.toString(t.subarray(e,_S(t,0,e,e+r)),i)}function oh(t){let e=ce.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var vS=w((O7,AS)=>{var{Writable:jM,Readable:WM,getStreamError:DS}=sh(),UM=$c(),ES=Qi(),sn=ah(),$M=ES.alloc(0),zM=4*1024*1024,fh=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new UM,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this.buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return $M;let r=this._next(e);if(e===r.byteLength)return r;let i=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),i.push(r);return ES.concat(i)}_next(e){let r=this.queue.peek(),i=r.byteLength-this._offset;if(e>=i){let n=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=i,this.shifted+=i,n}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},ch=class extends WM{constructor(e,r,i){super(),this.header=r,this.offset=i,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(DS(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=SS(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},hh=class extends jM{constructor(e){super(e),e||(e={}),this._buffer=new fh,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=lh,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=sn.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.byteOffset=this._buffer.shifted,this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,this._missing>zM?(this._continueWrite(new Error("Header exceeds max size")),!1):!0}return this._locked=!0,this._applyLongHeaders(),this._header.size>=0?this._header.size===0||this._header.type==="directory"?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0):(this._continueWrite(new Error("Invalid header")),!1)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=sn.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=sn.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=sn.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?sn.decodePax(e):Object.assign({},this._paxGlobal,sn.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=SS(this._header.size);let e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(r){return this._continueWrite(r),!1}return!0}_consumeStream(){let e=this._buffer.shiftFirst(this._missing);if(e===null)return!1;this._missing-=e.byteLength;let r=this._stream.push(e);return this._missing===0?(this._stream.push(null),r&&this._stream._detach(),r&&this._locked===!1):r}_createStream(){return new ch(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===!1)return;continue}if(this._longHeader===!0){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===!1)return!1;continue}let e=this._buffer.shiftFirst(this._missing);e!==null&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===!1)return}this._continueWrite(null)}_continueWrite(e){let r=this._callback;this._callback=lh,r(e)}_write(e,r){this._callback=r,this._buffer.push(e),this._update()}_final(e){this._finished=this._missing===0&&this._buffer.buffered===0,e(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(DS(this)),e(null)}[Symbol.asyncIterator](){let e=null,r=null,i=null,n=null,s=null,o=this;return this.on("entry",l),this.on("error",g=>{e=g}),this.on("close",f),{[Symbol.asyncIterator](){return this},next(){return new Promise(a)},return(){return c(null)},throw(g){return c(g)}};function u(g){if(!s)return;let y=s;s=null,y(g)}function a(g,y){if(e)return y(e);if(n){g({value:n,done:!1}),n=null;return}r=g,i=y,u(null),o._finished&&r&&(r({value:void 0,done:!0}),r=i=null)}function l(g,y,S){s=S,y.on("error",lh),r?(r({value:y,done:!1}),r=i=null):n=y}function f(){u(e),r&&(e?i(e):r({value:void 0,done:!0}),r=i=null)}function c(g){return o.destroy(g),u(g),new Promise((y,S)=>{if(o.destroyed)return y({value:void 0,done:!0});o.once("close",function(){g?S(g):y({value:void 0,done:!0})})})}}};AS.exports=function(e){return new hh(e)};function lh(){}function SS(t){return t&=511,t&&512-t}});var FS=w((B7,dh)=>{var CS={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{dh.exports=U("fs").constants||CS}catch{dh.exports=CS}});var BS=w((I7,OS)=>{var{Readable:GM,Writable:HM,getStreamError:TS}=sh(),ai=Qi(),on=FS(),oa=ah(),VM=493,YM=420,xS=ai.alloc(1024),gh=class extends HM{constructor(e,r,i){super({mapWritable:KM,eagerOpen:!0}),this.written=0,this.header=r,this._callback=i,this._linkname=null,this._isLinkname=r.type==="symlink"&&!r.linkname,this._isVoid=r.type!=="file"&&r.type!=="contiguous-file",this._finished=!1,this._pack=e,this._openCallback=null,this._pack._stream===null?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(this._callback===null)return;let r=this._callback;this._callback=null,r(e)}_continueOpen(){this._pack._stream===null&&(this._pack._stream=this);let e=this._openCallback;if(this._openCallback=null,e!==null){if(this._pack.destroying)return e(new Error("pack stream destroyed"));if(this._pack._finalized)return e(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,r){if(this._isLinkname)return this._linkname=this._linkname?ai.concat([this._linkname,e]):e,r(null);if(this._isVoid)return e.byteLength>0?r(new Error("No body allowed for this entry")):r();if(this.written+=e.byteLength,this._pack.push(e))return r();this._pack._drain=r}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?ai.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),RS(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(new Error("Size mismatch"));this._finish(),e(null)}_getError(){return TS(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}},yh=class extends GM{constructor(e){super(e),this._drain=ph,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,r,i){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");typeof r=="function"&&(i=r,r=null),i||(i=ph),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=ZM(e.mode)),e.mode||(e.mode=e.type==="directory"?VM:YM),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof r=="string"&&(r=ai.from(r));let n=new gh(this,e,i);return ai.isBuffer(r)?(e.size=r.byteLength,n.write(r),n.end(),n):(n._isVoid,n)}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(xS),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){let r=oa.encode(e);if(r){this.push(r);return}}this._encodePax(e)}_encodePax(e){let r=oa.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),i={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:r.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(oa.encode(i)),this.push(r),RS(this,r.byteLength),i.size=e.size,i.type=e.type,this.push(oa.encode(i))}_doDrain(){let e=this._drain;this._drain=ph,e()}_predestroy(){let e=TS(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){let r=this._pending.shift();r.destroy(e),r._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}};OS.exports=function(e){return new yh(e)};function ZM(t){switch(t&on.S_IFMT){case on.S_IFBLK:return"block-device";case on.S_IFCHR:return"character-device";case on.S_IFDIR:return"directory";case on.S_IFIFO:return"fifo";case on.S_IFLNK:return"symlink"}return"file"}function ph(){}function RS(t,e){e&=511,e&&t.push(xS.subarray(0,512-e))}function KM(t){return ai.isBuffer(t)?t:ai.from(t)}});var IS=w(mh=>{mh.extract=vS();mh.pack=BS()});var MS=w((N7,NS)=>{var QM=U("zlib"),JM=IS(),PS=Zi(),fr=function(t){if(!(this instanceof fr))return new fr(t);t=this.options=PS.defaults(t,{gzip:!1}),typeof t.gzipOptions!="object"&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=JM.pack(t),this.compressor=!1,t.gzip&&(this.compressor=QM.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};fr.prototype._onCompressorError=function(t){this.engine.emit("error",t)};fr.prototype.append=function(t,e,r){var i=this;e.mtime=e.date;function n(o,u){if(o){r(o);return}i.engine.entry(e,u,function(a){r(a,e)})}if(e.sourceType==="buffer")n(null,t);else if(e.sourceType==="stream"&&e.stats){e.size=e.stats.size;var s=i.engine.entry(e,function(o){r(o,e)});t.pipe(s)}else e.sourceType==="stream"&&PS.collectStream(t,n)};fr.prototype.finalize=function(){this.engine.finalize()};fr.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};fr.prototype.pipe=function(t,e){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(t,e):this.engine.pipe.apply(this.engine,arguments)};fr.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)};NS.exports=fr});var qS=w((M7,kS)=>{"use strict";function XM(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var eL=new Int32Array([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,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function LS(t){if(Buffer.isBuffer(t))return t;if(typeof t=="number")return Buffer.alloc(t);if(typeof t=="string")return Buffer.from(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function tL(t){let e=LS(4);return e.writeInt32BE(t,0),e}function bh(t,e){t=LS(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let r=~~e^-1;for(var i=0;i<t.length;i++)r=eL[(r^t[i])&255]^r>>>8;return r^-1}function _h(){return tL(bh.apply(null,arguments))}_h.signed=function(){return bh.apply(null,arguments)};_h.unsigned=function(){return bh.apply(null,arguments)>>>0};var rL=_h,iL=XM(rL);kS.exports=iL});var $S=w((L7,US)=>{var nL=U("util").inherits,jS=ei().Transform,sL=qS(),WS=Zi(),Pr=function(t){if(!(this instanceof Pr))return new Pr(t);t=this.options=WS.defaults(t,{}),jS.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};nL(Pr,jS);Pr.prototype._transform=function(t,e,r){r(null,t)};Pr.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)};Pr.prototype.append=function(t,e,r){var i=this;e.crc32=0;function n(s,o){if(s){r(s);return}e.size=o.length||0,e.crc32=sL.unsigned(o),i.files.push(e),r(null,e)}e.sourceType==="buffer"?n(null,t):e.sourceType==="stream"&&WS.collectStream(t,n)};Pr.prototype.finalize=function(){this._writeStringified(),this.end()};US.exports=Pr});var GS=w((k7,zS)=>{var oL=tE(),Ts={},Nr=function(t,e){return Nr.create(t,e)};Nr.create=function(t,e){if(Ts[t]){var r=new oL(t,e);return r.setFormat(t),r.setModule(new Ts[t](e)),r}else throw new Error("create("+t+"): format not registered")};Nr.registerFormat=function(t,e){if(Ts[t])throw new Error("register("+t+"): format already registered");if(typeof e!="function")throw new Error("register("+t+"): format module invalid");if(typeof e.prototype.append!="function"||typeof e.prototype.finalize!="function")throw new Error("register("+t+"): format module missing methods");Ts[t]=e};Nr.isRegisteredFormat=function(t){return!!Ts[t]};Nr.registerFormat("zip",IE());Nr.registerFormat("tar",MS());Nr.registerFormat("json",$S());zS.exports=Nr});import*as we from"node:fs/promises";import*as Y from"node:path";var Js="0.0",Dd=Ne.object({type:Ne.literal("client"),path:Ne.string()}),Ed=Ne.object({type:Ne.literal("function"),path:Ne.string()}),Sd=Ne.discriminatedUnion("type",[Dd,Ed]),Ad=Ne.object({path:Ne.string(),archive:Ne.literal("zip"),compression:Ne.literal("deflate")}),nA=Ne.object({cliVersion:Ne.string(),manifestVersion:Ne.literal(Js),clientDirectory:Ne.string(),hasCustomMiddleTier:Ne.boolean(),functionsPackage:Ad.optional(),iconPath:Ne.string().optional(),dataSchemaPath:Ne.string().optional(),routes:Ne.record(Ne.string(),Sd)});var f1=ld(Nd(),1);import*as It from"node:path";var io={"@microsoft/managed-apps/data":"@microsoft/managed-apps-functions/data"},Md="@config/dataSources";async function Ld(t){let{projectRoot:e,functions:r}=t;if(r.length===0)return new Map;let i=await import("esbuild").catch(s=>{throw new Zt(`esbuild is required to pack functions but could not be loaded: ${s.message}`)}),n=await Promise.all(r.map(async s=>{let u=(await i.build({entryPoints:[s.absPath],bundle:!0,write:!1,format:"esm",platform:"neutral",target:"es2022",external:[...Object.values(io),Md],alias:io,plugins:[dA(e),pA(e)],logLevel:"silent"})).outputFiles?.[0];if(!u)throw new Zt(`Failed to bundle function ${s.relPath}: esbuild produced no output`);return[s.relPath,u.text]}));return new Map(n)}function dA(t){let e=It.resolve(t,"generated/dataSources.ts");return{name:"external-data-sources",setup(r){r.onResolve({filter:/(^|\/)dataSources$/},i=>!i.path.startsWith(".")||It.resolve(It.dirname(i.importer),i.path)+".ts"!==e?null:{path:Md,external:!0})}}}function pA(t){let e=It.resolve(t,"generated");return{name:"allowlist-imports",setup(r){r.onResolve({filter:/.*/},i=>{if(i.kind==="entry-point")return null;if(i.path.startsWith(".")){let n=It.resolve(It.dirname(i.importer),i.path);return n===e||n.startsWith(e+It.sep)?null:{errors:[{text:`Relative import '${i.path}' is outside the allowed 'generated/' folder`}]}}return io[i.path]?null:{errors:[{text:`Import '${i.path}' is not on the allowlist. Allowed: relative imports into 'generated/' and ${Object.keys(io).map(n=>`'${n}'`).join(", ")}.`}]}})}}}var VS=ld(GS(),1);import*as ua from"node:fs/promises";import*as HS from"node:path";var wh="functions.zip",YS={archive:"zip",compression:"deflate"};async function ZS(t){let e=[];return await KS(t,"",e),e.sort((r,i)=>r.relPath.localeCompare(i.relPath)),e}async function KS(t,e,r){let i=await ua.readdir(t,{withFileTypes:!0});for(let n of i){let s=e?`${e}/${n.name}`:n.name,o=HS.join(t,n.name);n.isDirectory()?await KS(o,s,r):n.isFile()&&uL(n.name)&&r.push({relPath:s,absPath:o})}}function uL(t){return t.endsWith(".ts")&&!t.endsWith(".d.ts")&&!t.endsWith(".test.ts")&&!t.endsWith(".spec.ts")}async function QS(t){let e;try{e=await ua.stat(t)}catch{throw new De(`functions.baseDirectory does not exist: ${t}`)}if(!e.isDirectory())throw new De(`functions.baseDirectory is not a directory: ${t}`)}function JS(t,e){let r={};for(let i of t){let n=`${e}/${XS(i.relPath)}`;r[`/${n}`]={type:"function",path:`${n}.js`}}return r}function XS(t){return t.slice(0,-3)}async function e1(t){let{baseDirName:e,functions:r,bundles:i,manifestContent:n,dataSourcesJson:s}=t;return new Promise((o,u)=>{let a=[],l=(0,VS.default)("zip",{zlib:{level:9}});l.on("data",f=>a.push(f)),l.on("warning",u),l.on("error",u),l.on("end",()=>o(Buffer.concat(a)));for(let f of r){let c=i.get(f.relPath);if(c===void 0){u(new Error(`Missing bundled output for function ${f.relPath}`));return}let g=XS(f.relPath);l.append(c,{name:`${e}/${g}.js`})}l.append(n,{name:"manifest.json"}),s!==void 0&&l.append(s,{name:"dataSources.json"}),l.finalize()})}import{spawn as aL}from"node:child_process";var lL=8*1024;function t1(){return{chunks:[],bytes:0,dropped:0}}function r1(t,e,r){for(t.chunks.push(e),t.bytes+=e.length;t.bytes>r;){let i=t.bytes-r,n=t.chunks[0];n.length<=i?(t.chunks.shift(),t.bytes-=n.length,t.dropped+=n.length):(t.chunks[0]=n.subarray(i),t.bytes-=i,t.dropped+=i)}}function i1(t){let e=Buffer.concat(t.chunks).toString("utf8").trimEnd();return t.dropped===0?e:`[truncated earlier ${t.dropped} bytes; showing last ${t.bytes} bytes]
|
|
30
|
+
${e}`}function n1(t,e,r={}){return new Promise((i,n)=>{let{quiet:s=!1,captureTailCapBytes:o=lL}=r,u=aL(t,{cwd:e,stdio:s?["ignore","pipe","pipe"]:"inherit",shell:!0}),a=t1(),l=t1();s&&(u.stdout?.on("data",f=>r1(a,f,o)),u.stderr?.on("data",f=>r1(l,f,o))),u.on("close",f=>{if(f===0){i();return}let c=`Command exited with code ${f}: ${t}`;if(!s){n(new Zt(c,f??1));return}let g=i1(l),y=i1(a),S=g.length>0?g:y,m=S.length>0?`${c}
|
|
31
|
+
${S}`:c;n(new Zt(m,f??1))}),u.on("error",n)})}var s1="client",cL="manifest.json",hL="dataSources.json",o1="dbSchema.json",u1=10*1024*1024;function dL(t,e=cd){if(!t.buildPath)throw new De(`buildPath is required in ${e} to pack an app`);if(!t.buildCommand)throw new De(`buildCommand is required in ${e} to pack an app`);if(!t.buildEntryPoint)throw new De(`buildEntryPoint is required in ${e} to pack an app`)}async function pL(t,e){if(e===void 0)return;if(e===null||typeof e!="object")throw new De(`db must be an object with a schemaPath string: ${JSON.stringify(e)}`);let r="schemaPath"in e?e.schemaPath:void 0;if(typeof r!="string")throw new De(`db.schemaPath must be a string: ${JSON.stringify(r)}`);if(!r.trim())throw new De(`db.schemaPath must not be empty: "${r}"`);if(Y.isAbsolute(r))throw new De(`db.schemaPath must be relative to the project root: "${r}"`);let i=Y.resolve(t,r),n=Y.relative(t,i);if(n===".."||n.startsWith(`..${Y.sep}`)||Y.isAbsolute(n))throw new De(`db.schemaPath must not resolve outside the project root: "${r}"`);let s;try{s=await we.stat(i)}catch(u){throw new De(`Unable to access db.schemaPath "${r}": ${u.message}`)}if(!s.isFile())throw new De(`db.schemaPath must reference a regular file: "${r}"`);if(s.size>u1)throw new De(`db.schemaPath "${r}" is ${s.size} bytes, which exceeds the ${u1/(1024*1024)} MB limit`);let o;try{o=await we.readFile(i)}catch(u){throw new De(`Unable to read db.schemaPath "${r}": ${u.message}`)}try{JSON.parse(o.toString("utf8"))}catch(u){throw new De(`db.schemaPath "${r}" must contain valid JSON: ${u.message}`)}return o}var a1="prod";function Dh(t,e){return{fileName:e,filePath:Y.join(t,e)}}async function l1(t){return(await we.stat(t).catch(()=>null))?.isFile()??!1}async function gL(t,e){let r=Y.basename(e);if(await l1(Y.resolve(e)))return Dh(t,r);for(let i of hd)if(i!==r&&await l1(Y.join(t,i)))return Dh(t,i);return Dh(t,r)}async function yL(t){let e;try{e=await we.readFile(t,"utf-8")}catch(r){throw new De(`Failed to read ${Y.basename(t)}: ${r.message}`)}try{return JSON.parse(e)}catch(r){throw new De(`${Y.basename(t)}: ${r.message}`)}}async function mL(t,e,r){let n=(await we.readdir(t,{withFileTypes:!0})).filter(o=>o.isFile()).map(o=>({fileName:o.name,stageName:pd(o.name,r.fileName)})).filter(o=>o.stageName!==void 0).sort((o,u)=>o.fileName.localeCompare(u.fileName)),s=[];for(let{fileName:o,stageName:u}of n){let a;try{a=await we.readFile(Y.join(t,o),"utf-8")}catch(c){throw new De(`Failed to read stage config: ${o}: ${c.message}`)}let l;try{l=gd(a)}catch(c){throw new De(`${o}: ${c.message}`)}let f;try{({config:f}=Da(e,l))}catch(c){throw new De(`${o} contains invalid overrides:
|
|
32
|
+
${c.message}`)}s.push({stageName:u,resolvedConfig:f})}if(!s.some(({stageName:o})=>o===a1)){let{config:o}=Da(e);s.push({stageName:a1,resolvedConfig:o})}return s}async function bL(t={}){let e=Date.now(),{quiet:r=!1}=t,{appConfig:i,fileConfig:n}=_d(),s=Y.dirname(Y.resolve(n.appConfigPath)),o=await gL(s,n.appConfigPath),u=o.fileName===Y.basename(n.appConfigPath)?i:await yL(o.filePath);if(!u)throw new De(`${o.fileName} is required to pack an app`);let a=u.appId;if(!a)throw new De(`appId is required in ${o.fileName} to pack an app`);dL(u,o.fileName);let{buildPath:l,buildCommand:f,buildEntryPoint:c}=u,g=Y.join(s,`.${"ms"}`,"packed"),y=Y.join(g,"apps",a),S=Y.join(y,s1),m=await pL(s,u.db),E=u.functions?.baseDirectory?Y.resolve(s,u.functions.baseDirectory):void 0;E!==void 0&&await QS(E);let b=await mL(s,u,o);r||pi(`Running: ${f}`);let v=Date.now();await n1(f,s,{quiet:r});let I=Date.now()-v,T=0,L=0,J=0,O=0,q=0,F=Y.resolve(s,l),N=r?null:new wd;N?.start("Packing client output...");try{let $=Date.now();await we.rm(g,{recursive:!0,force:!0}),await we.mkdir(S,{recursive:!0}),await we.cp(F,S,{recursive:!0}),await we.copyFile(o.filePath,Y.join(y,o.fileName)),m!==void 0&&await we.writeFile(Y.join(y,o1),m),T=Date.now()-$;for(let{stageName:vt,resolvedConfig:cr}of b)await we.writeFile(Y.join(y,dd(vt,o.fileName)),JSON.stringify(cr,null,2));let te=Date.now(),ue=await wL(s,y,{quiet:r});ue!==void 0&&(L=Date.now()-te);let ge=Date.now(),X=E!==void 0?await ZS(E):[];E!==void 0&&(J=Date.now()-ge);let ie=X.length>0,Te=E!==void 0?Y.basename(E):void 0,be={"/":{type:"client",path:c}};ie&&Te!==void 0&&Object.assign(be,JS(X,Te));let ke;if(u.iconPath){let vt=Y.join(s,u.iconPath),cr=Y.extname(vt).toLowerCase();if(cr!==".png"&&cr!==".jpg")throw new De(`iconPath in ${o.fileName} must reference a .png or .jpg file, but got "${Y.basename(vt)}".`);ke=Y.basename(vt),await we.copyFile(vt,Y.join(y,ke))}let la={cliVersion:fd.version,manifestVersion:Js,clientDirectory:s1,hasCustomMiddleTier:ie,...ie?{functionsPackage:{path:wh,...YS}}:{},...ke?{iconPath:ke}:{},...m!==void 0?{dataSchemaPath:o1}:{},routes:be},Mr=JSON.stringify(la,null,2);if(await we.writeFile(Y.join(y,cL),Mr),ie&&Te!==void 0){N?.update(`Bundling ${X.length} function${X.length===1?"":"s"}...`);let vt=Date.now(),cr=await Ld({projectRoot:s,functions:X});O=Date.now()-vt,N?.update("Writing functions archive...");let ft=Date.now(),fa=await e1({baseDirName:Te,functions:X,bundles:cr,manifestContent:Mr,dataSourcesJson:ue});await we.writeFile(Y.join(y,wh),fa),q=Date.now()-ft}}finally{N?.stop()}let M={clientBuildMs:I,clientCopyMs:T,dataSourcesMs:L,functionsDiscoveryMs:J,middletierBuildMs:O,functionsArchiveMs:q,totalMs:Date.now()-e};return{appId:a,packedFolder:g,packAppOutputDir:y,packClientOutputDir:S,timings:M}}var aa=Y.join(bd,"dataSources.ts"),_L=/export\s+default\s+(\{[\s\S]*\});/;async function wL(t,e,r){let i=Y.join(t,aa);try{await we.access(i)}catch{r.quiet||pi(`${aa} not found \u2014 dataSources.json will not be included in the pack.`);return}let n=await we.readFile(i,"utf-8"),s=_L.exec(n);if(!s?.[1])throw new Zt(`Could not extract dataSources from ${aa}`);let o;try{o=f1.default.parse(s[1])}catch(a){throw new Zt(`${aa} has an unexpected format: ${a.message}`)}let u=JSON.stringify(o,null,2);return await we.writeFile(Y.join(e,hL),u),u}function DL(t){return t<1e3?`${Math.round(t)}ms`:`${(t/1e3).toFixed(2)}s`}function EL(t){let e=[["Client build",t.clientBuildMs],["Client copy",t.clientCopyMs]];t.dataSourcesMs>0&&e.push(["Data sources",t.dataSourcesMs]),t.middletierBuildMs>0&&e.push(["Middletier build",t.middletierBuildMs]),t.functionsArchiveMs>0&&e.push(["Functions archive",t.functionsArchiveMs]),e.push(["Total",t.totalMs]);let r=Math.max(...e.map(([i])=>i.length));pi(""),pi("Timings:");for(let[i,n]of e)pi(` ${i.padEnd(r)} ${DL(n)}`)}async function i9(t){t.setDescription(Ea.app.pack.description),t.addExamples(Ea.app.pack.examples),await t.runVerb();let e=t.isJsonMode(),r=await bL({quiet:e});e?md(r):(yd("App successfully packed."),EL(r.timings))}export{GS as a,dL as b,bL as c,i9 as d};
|
|
33
|
+
/*!
|
|
34
|
+
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
35
|
+
*/
|
|
36
|
+
/*! Bundled license information:
|
|
37
|
+
|
|
38
|
+
normalize-path/index.js:
|
|
39
|
+
(*!
|
|
40
|
+
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
|
41
|
+
*
|
|
42
|
+
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|
43
|
+
* Released under the MIT License.
|
|
44
|
+
*)
|
|
45
|
+
|
|
46
|
+
archiver/lib/error.js:
|
|
47
|
+
archiver/lib/core.js:
|
|
48
|
+
(**
|
|
49
|
+
* Archiver Core
|
|
50
|
+
*
|
|
51
|
+
* @ignore
|
|
52
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
53
|
+
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
54
|
+
*)
|
|
55
|
+
|
|
56
|
+
crc-32/crc32.js:
|
|
57
|
+
(*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com *)
|
|
58
|
+
|
|
59
|
+
zip-stream/index.js:
|
|
60
|
+
(**
|
|
61
|
+
* ZipStream
|
|
62
|
+
*
|
|
63
|
+
* @ignore
|
|
64
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE}
|
|
65
|
+
* @copyright (c) 2014 Chris Talkington, contributors.
|
|
66
|
+
*)
|
|
67
|
+
|
|
68
|
+
archiver/lib/plugins/zip.js:
|
|
69
|
+
(**
|
|
70
|
+
* ZIP Format Plugin
|
|
71
|
+
*
|
|
72
|
+
* @module plugins/zip
|
|
73
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
74
|
+
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
75
|
+
*)
|
|
76
|
+
|
|
77
|
+
archiver/lib/plugins/tar.js:
|
|
78
|
+
(**
|
|
79
|
+
* TAR Format Plugin
|
|
80
|
+
*
|
|
81
|
+
* @module plugins/tar
|
|
82
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
83
|
+
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
84
|
+
*)
|
|
85
|
+
|
|
86
|
+
archiver/lib/plugins/json.js:
|
|
87
|
+
(**
|
|
88
|
+
* JSON Format Plugin
|
|
89
|
+
*
|
|
90
|
+
* @module plugins/json
|
|
91
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
92
|
+
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
93
|
+
*)
|
|
94
|
+
|
|
95
|
+
archiver/index.js:
|
|
96
|
+
(**
|
|
97
|
+
* Archiver Vending
|
|
98
|
+
*
|
|
99
|
+
* @ignore
|
|
100
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
101
|
+
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
102
|
+
*)
|
|
103
|
+
*/
|
|
104
|
+
//# sourceMappingURL=chunk-6LKH5WE7.js.map
|