@modern-js/upgrade 0.0.0-next-20221206090411 → 0.0.0-next-20221206140510
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/dist/index.js +623 -334
- package/package.json +6 -6
package/dist/index.js
CHANGED
@@ -30605,13 +30605,13 @@ var require_browsers2 = __commonJSMin((exports, module2) => {
|
|
30605
30605
|
module2.exports.browsers = require_browsers();
|
30606
30606
|
});
|
30607
30607
|
var require_browserVersions = __commonJSMin((exports, module2) => {
|
30608
|
-
module2.exports = { "0": "27", "1": "28", "2": "29", "3": "30", "4": "31", "5": "32", "6": "33", "7": "34", "8": "35", "9": "36", A: "10", B: "11", C: "12", D: "7", E: "8", F: "9", G: "15", H: "107", I: "4", J: "6", K: "13", L: "14", M: "16", N: "17", O: "18", P: "79", Q: "80", R: "81", S: "83", T: "84", U: "85", V: "86", W: "87", X: "88", Y: "89", Z: "90", a: "91", b: "92", c: "106", d: "72", e: "93", f: "94", g: "95", h: "96", i: "97", j: "98", k: "99", l: "100", m: "101", n: "102", o: "103", p: "104", q: "105", r: "5", s: "19", t: "20", u: "21", v: "22", w: "23", x: "24", y: "25", z: "26", AB: "37", BB: "38", CB: "39", DB: "40", EB: "41", FB: "42", GB: "43", HB: "44", IB: "45", JB: "46", KB: "47", LB: "48", MB: "49", NB: "50", OB: "51", PB: "52", QB: "53", RB: "54", SB: "55", TB: "56", UB: "57", VB: "58", WB: "60", XB: "62", YB: "63", ZB: "64", aB: "65", bB: "66", cB: "67", dB: "68", eB: "69", fB: "70", gB: "71", hB: "73", iB: "74", jB: "75", kB: "76", lB: "77", mB: "78", nB: "11.1", oB: "12.1", pB: "16.0", qB: "3", rB: "59", sB: "61", tB: "82", uB: "108", vB: "109", wB: "3.2", xB: "10.1", yB: "13.1", zB: "15.2-15.3", "0B": "15.4", "1B": "15.5", "2B": "15.6", "3B": "16.1", "4B": "11.5", "5B": "4.2-4.3", "6B": "5.5", "7B": "2", "8B": "3.5", "9B": "3.6", AC: "110", BC: "3.1",
|
30608
|
+
module2.exports = { "0": "27", "1": "28", "2": "29", "3": "30", "4": "31", "5": "32", "6": "33", "7": "34", "8": "35", "9": "36", A: "10", B: "11", C: "12", D: "7", E: "8", F: "9", G: "15", H: "107", I: "4", J: "6", K: "13", L: "14", M: "16", N: "17", O: "18", P: "79", Q: "80", R: "81", S: "83", T: "84", U: "85", V: "86", W: "87", X: "88", Y: "89", Z: "90", a: "91", b: "92", c: "106", d: "72", e: "93", f: "94", g: "95", h: "96", i: "97", j: "98", k: "99", l: "100", m: "101", n: "102", o: "103", p: "104", q: "105", r: "5", s: "19", t: "20", u: "21", v: "22", w: "23", x: "24", y: "25", z: "26", AB: "37", BB: "38", CB: "39", DB: "40", EB: "41", FB: "42", GB: "43", HB: "44", IB: "45", JB: "46", KB: "47", LB: "48", MB: "49", NB: "50", OB: "51", PB: "52", QB: "53", RB: "54", SB: "55", TB: "56", UB: "57", VB: "58", WB: "60", XB: "62", YB: "63", ZB: "64", aB: "65", bB: "66", cB: "67", dB: "68", eB: "69", fB: "70", gB: "71", hB: "73", iB: "74", jB: "75", kB: "76", lB: "77", mB: "78", nB: "11.1", oB: "12.1", pB: "16.0", qB: "3", rB: "59", sB: "61", tB: "82", uB: "108", vB: "109", wB: "3.2", xB: "10.1", yB: "13.1", zB: "15.2-15.3", "0B": "15.4", "1B": "15.5", "2B": "15.6", "3B": "16.1", "4B": "11.5", "5B": "4.2-4.3", "6B": "5.5", "7B": "2", "8B": "3.5", "9B": "3.6", AC: "110", BC: "111", CC: "3.1", DC: "5.1", EC: "6.1", FC: "7.1", GC: "9.1", HC: "14.1", IC: "15.1", JC: "16.2", KC: "TP", LC: "9.5-9.6", MC: "10.0-10.1", NC: "10.5", OC: "10.6", PC: "11.6", QC: "4.0-4.1", RC: "5.0-5.1", SC: "6.0-6.1", TC: "7.0-7.1", UC: "8.1-8.4", VC: "9.0-9.2", WC: "9.3", XC: "10.0-10.2", YC: "10.3", ZC: "11.0-11.2", aC: "11.3-11.4", bC: "12.0-12.1", cC: "12.2-12.5", dC: "13.0-13.1", eC: "13.2", fC: "13.3", gC: "13.4-13.7", hC: "14.0-14.4", iC: "14.5-14.8", jC: "15.0-15.1", kC: "all", lC: "2.1", mC: "2.2", nC: "2.3", oC: "4.1", pC: "4.4", qC: "4.4.3-4.4.4", rC: "13.4", sC: "5.0-5.4", tC: "6.2-6.4", uC: "7.2-7.4", vC: "8.2", wC: "9.2", xC: "11.1-11.2", yC: "12.0", zC: "13.0", "0C": "14.0", "1C": "15.0", "2C": "17.0", "3C": "18.0", "4C": "19.0", "5C": "13.18", "6C": "2.5" };
|
30609
30609
|
});
|
30610
30610
|
var require_browserVersions2 = __commonJSMin((exports, module2) => {
|
30611
30611
|
module2.exports.browserVersions = require_browserVersions();
|
30612
30612
|
});
|
30613
30613
|
var require_agents = __commonJSMin((exports, module2) => {
|
30614
|
-
module2.exports = { A: { A: { J: 0.0131217, D: 621152e-8, E: 0.0440661, F: 0.0881323, A: 734435e-8, B: 0.440661, "6B": 9298e-6 }, B: "ms", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "6B", "J", "D", "E", "F", "A", "B", "", "", ""], E: "IE", F: { "6B": 962323200, J: 998870400, D: 1161129600, E: 1237420800, F: 1300060800, A: 1346716800, B: 1381968e3 } }, B: { A: { C: 7948e-6, K: 4267e-6, L: 4268e-6, G: 3974e-6, M: 3702e-6, N: 3974e-6, O: 0.01987, P: 0, Q: 4298e-6, R: 944e-5, S: 4043e-6, T: 3974e-6, U: 3974e-6, V: 3974e-6, W: 3974e-6, X: 4318e-6, Y: 3974e-6, Z: 4118e-6, a: 3939e-6, b: 7948e-6, e: 4118e-6, f: 3939e-6, g: 3801e-6, h: 3929e-6, i: 3855e-6, j: 3929e-6, k: 3974e-6, l: 3974e-6, m: 0.011922, n: 0.011922, o: 0.035766, p: 0.067558, q: 0.802748, c: 3.07588, H: 0.246388 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "C", "K", "L", "G", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "", "", ""], E: "Edge", F: { C: 1438128e3, K: 1447286400, L: 1470096e3, G: 1491868800, M: 1508198400, N: 1525046400, O: 1542067200, P: 1579046400, Q: 1581033600, R: 1586736e3, S: 1590019200, T: 1594857600, U: 1598486400, V: 1602201600, W: 1605830400, X: 161136e4, Y: 1614816e3, Z: 1618358400, a: 1622073600, b: 1626912e3, e: 1630627200, f: 1632441600, g: 1634774400, h: 1637539200, i: 1641427200, j: 1643932800, k: 1646265600, l: 1649635200, m: 1651190400, n: 1653955200, o: 1655942400, p: 1659657600, q: 1661990400, c: 1664755200, H: 1666915200 }, D: { C: "ms", K: "ms", L: "ms", G: "ms", M: "ms", N: "ms", O: "ms" } }, C: { A: { "0": 4393e-6, "1": 4418e-6, "2": 8834e-6, "3": 8322e-6, "4": 8928e-6, "5": 4471e-6, "6": 9284e-6, "7": 4707e-6, "8": 9076e-6, "9": 7948e-6, "7B": 4118e-6, qB: 4271e-6, I: 0.015896, r: 4879e-6, J: 0.020136, D: 5725e-6, E: 4525e-6, F: 533e-5, A: 4283e-6, B: 7948e-6, C: 4471e-6, K: 4486e-6, L: 453e-5, G: 8322e-6, M: 4417e-6, N: 4425e-6, O: 4161e-6, s: 4443e-6, t: 4283e-6, u: 8322e-6, v: 0.013698, w: 4161e-6, x: 8786e-6, y: 4118e-6, z: 4317e-6, AB: 4783e-6, BB: 3929e-6, CB: 4783e-6, DB: 487e-5, EB: 5029e-6, FB: 47e-4, GB: 0.015896, HB: 7948e-6, IB: 3867e-6, JB: 4525e-6, KB: 4293e-6, LB: 3702e-6, MB: 4538e-6, NB: 8282e-6, OB: 0.011601, PB: 0.051662, QB: 0.011601, RB: 3929e-6, SB: 3974e-6, TB: 3974e-6, UB: 0.011601, VB: 3939e-6, rB: 3855e-6, WB: 3929e-6, sB: 4356e-6, XB: 4425e-6, YB: 8322e-6, ZB: 415e-5, aB: 4267e-6, bB: 3801e-6, cB: 4267e-6, dB: 7948e-6, eB: 415e-5, fB: 4293e-6, gB: 4425e-6, d: 3974e-6, hB: 415e-5, iB: 415e-5, jB: 4318e-6, kB: 4356e-6, lB: 3974e-6, mB: 0.035766, P: 3974e-6, Q: 7948e-6, R: 7948e-6, tB: 3974e-6, S: 3974e-6, T: 3929e-6, U: 4268e-6, V: 3801e-6, W: 7948e-6, X: 7948e-6, Y: 3974e-6, Z: 3974e-6, a: 0.03974, b: 3801e-6, e: 3855e-6, f: 0.015896, g: 3974e-6, h: 3974e-6, i: 3974e-6, j: 3974e-6, k: 0.011922, l: 7948e-6, m: 0.011922, n: 0.063584, o: 0.043714, p: 0.071532, q: 1.50615, c: 0.679554, H: 7948e-6, uB: 0, vB: 0, "8B": 8786e-6, "9B": 487e-5 }, B: "moz", C: ["7B", "qB", "8B", "9B", "I", "r", "J", "D", "E", "F", "A", "B", "C", "K", "L", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "rB", "WB", "sB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "tB", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "uB", "vB", ""], E: "Firefox", F: { "0": 1391472e3, "1": 1395100800, "2": 1398729600, "3": 1402358400, "4": 1405987200, "5": 1409616e3, "6": 1413244800, "7": 1417392e3, "8": 1421107200, "9": 1424736e3, "7B": 1161648e3, qB: 1213660800, "8B": 124632e4, "9B": 1264032e3, I: 1300752e3, r: 1308614400, J: 1313452800, D: 1317081600, E: 1317081600, F: 1320710400, A: 1324339200, B: 1327968e3, C: 1331596800, K: 1335225600, L: 1338854400, G: 1342483200, M: 1346112e3, N: 1349740800, O: 1353628800, s: 1357603200, t: 1361232e3, u: 1364860800, v: 1368489600, w: 1372118400, x: 1375747200, y: 1379376e3, z: 1386633600, AB: 1428278400, BB: 1431475200, CB: 1435881600, DB: 1439251200, EB: 144288e4, FB: 1446508800, GB: 1450137600, HB: 1453852800, IB: 1457395200, JB: 1461628800, KB: 1465257600, LB: 1470096e3, MB: 1474329600, NB: 1479168e3, OB: 1485216e3, PB: 1488844800, QB: 149256e4, RB: 1497312e3, SB: 1502150400, TB: 1506556800, UB: 1510617600, VB: 1516665600, rB: 1520985600, WB: 1525824e3, sB: 1529971200, XB: 1536105600, YB: 1540252800, ZB: 1544486400, aB: 154872e4, bB: 1552953600, cB: 1558396800, dB: 1562630400, eB: 1567468800, fB: 1571788800, gB: 1575331200, d: 1578355200, hB: 1581379200, iB: 1583798400, jB: 1586304e3, kB: 1588636800, lB: 1591056e3, mB: 1593475200, P: 1595894400, Q: 1598313600, R: 1600732800, tB: 1603152e3, S: 1605571200, T: 1607990400, U: 1611619200, V: 1614038400, W: 1616457600, X: 1618790400, Y: 1622505600, Z: 1626134400, a: 1628553600, b: 1630972800, e: 1633392e3, f: 1635811200, g: 1638835200, h: 1641859200, i: 1644364800, j: 1646697600, k: 1649116800, l: 1651536e3, m: 1653955200, n: 1656374400, o: 1658793600, p: 1661212800, q: 1663632e3, c: 1666051200, H: 1668470400, uB: null, vB: null } }, D: { A: { "0": 4326e-6, "1": 47e-4, "2": 4538e-6, "3": 8322e-6, "4": 8596e-6, "5": 4566e-6, "6": 4118e-6, "7": 7948e-6, "8": 3702e-6, "9": 4335e-6, I: 4706e-6, r: 4879e-6, J: 4879e-6, D: 5591e-6, E: 5591e-6, F: 5591e-6, A: 4534e-6, B: 4464e-6, C: 0.010424, K: 83e-4, L: 4706e-6, G: 0.015087, M: 4393e-6, N: 4393e-6, O: 8652e-6, s: 8322e-6, t: 4393e-6, u: 4317e-6, v: 3974e-6, w: 8786e-6, x: 3939e-6, y: 4461e-6, z: 4141e-6, AB: 4464e-6, BB: 0.015896, CB: 3867e-6, DB: 0.015896, EB: 3974e-6, FB: 3974e-6, GB: 7948e-6, HB: 7948e-6, IB: 3974e-6, JB: 3867e-6, KB: 7948e-6, LB: 0.01987, MB: 0.047688, NB: 3867e-6, OB: 3929e-6, PB: 3974e-6, QB: 7948e-6, RB: 3867e-6, SB: 3974e-6, TB: 0.035766, UB: 3974e-6, VB: 3702e-6, rB: 3702e-6, WB: 0.011922, sB: 0.011922, XB: 3974e-6, YB: 7948e-6, ZB: 3929e-6, aB: 0.011922, bB: 0.027818, cB: 7948e-6, dB: 7948e-6, eB: 0.047688, fB: 0.023844, gB: 0.011922, d: 0.03974, hB: 0.011922, iB: 0.031792, jB: 0.043714, kB: 0.035766, lB: 0.011922, mB: 0.031792, P: 0.107298, Q: 0.035766, R: 0.03974, S: 0.067558, T: 0.051662, U: 0.083454, V: 0.083454, W: 0.083454, X: 0.01987, Y: 0.03974, Z: 0.023844, a: 0.055636, b: 0.047688, e: 0.043714, f: 0.035766, g: 0.023844, h: 0.063584, i: 0.05961, j: 0.051662, k: 0.055636, l: 0.151012, m: 0.087428, n: 0.143064, o: 0.421244, p: 0.41727, q: 6.00869, c: 15.7013, H: 0.643788, uB: 0.01987, vB: 0.011922, AC: 0 }, B: "webkit", C: ["", "", "", "", "", "I", "r", "J", "D", "E", "F", "A", "B", "C", "K", "L", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "rB", "WB", "sB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "uB", "vB", "AC"], E: "Chrome", F: { "0": 1364428800, "1": 1369094400, "2": 1374105600, "3": 1376956800, "4": 1384214400, "5": 1389657600, "6": 1392940800, "7": 1397001600, "8": 1400544e3, "9": 1405468800, I: 1264377600, r: 1274745600, J: 1283385600, D: 1287619200, E: 1291248e3, F: 1296777600, A: 1299542400, B: 1303862400, C: 1307404800, K: 1312243200, L: 1316131200, G: 1316131200, M: 1319500800, N: 1323734400, O: 1328659200, s: 1332892800, t: 133704e4, u: 1340668800, v: 1343692800, w: 1348531200, x: 1352246400, y: 1357862400, z: 1361404800, AB: 1409011200, BB: 141264e4, CB: 1416268800, DB: 1421798400, EB: 1425513600, FB: 1429401600, GB: 143208e4, HB: 1437523200, IB: 1441152e3, JB: 1444780800, KB: 1449014400, LB: 1453248e3, MB: 1456963200, NB: 1460592e3, OB: 1464134400, PB: 1469059200, QB: 1472601600, RB: 1476230400, SB: 1480550400, TB: 1485302400, UB: 1489017600, VB: 149256e4, rB: 1496707200, WB: 1500940800, sB: 1504569600, XB: 1508198400, YB: 1512518400, ZB: 1516752e3, aB: 1520294400, bB: 1523923200, cB: 1527552e3, dB: 1532390400, eB: 1536019200, fB: 1539648e3, gB: 1543968e3, d: 154872e4, hB: 1552348800, iB: 1555977600, jB: 1559606400, kB: 1564444800, lB: 1568073600, mB: 1571702400, P: 1575936e3, Q: 1580860800, R: 1586304e3, S: 1589846400, T: 1594684800, U: 1598313600, V: 1601942400, W: 1605571200, X: 1611014400, Y: 1614556800, Z: 1618272e3, a: 1621987200, b: 1626739200, e: 1630368e3, f: 1632268800, g: 1634601600, h: 1637020800, i: 1641340800, j: 1643673600, k: 1646092800, l: 1648512e3, m: 1650931200, n: 1653350400, o: 1655769600, p: 1659398400, q: 1661817600, c: 1664236800, H: 1666656e3, uB: null, vB: null, AC: null } }, E: { A: { I: 0, r: 8322e-6, J: 4656e-6, D: 4465e-6, E: 3974e-6, F: 3929e-6, A: 4425e-6, B: 4318e-6, C: 3801e-6, K: 0.023844, L: 0.11922, G: 0.027818, BC: 0, wB: 8692e-6, CC: 0.011922, DC: 456e-5, EC: 4283e-6, FC: 0.015896, xB: 7948e-6, nB: 0.01987, oB: 0.035766, yB: 0.313946, GC: 0.305998, HC: 0.051662, zB: 0.051662, "0B": 0.131142, "1B": 0.266258, "2B": 1.63331, pB: 0.49675, "3B": 0.071532, IC: 0, JC: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "BC", "wB", "I", "r", "CC", "J", "DC", "D", "EC", "E", "F", "FC", "A", "xB", "B", "nB", "C", "oB", "K", "yB", "L", "GC", "G", "HC", "zB", "0B", "1B", "2B", "pB", "3B", "IC", "JC", ""], E: "Safari", F: { BC: 1205798400, wB: 1226534400, I: 1244419200, r: 1275868800, CC: 131112e4, J: 1343174400, DC: 13824e5, D: 13824e5, EC: 1410998400, E: 1413417600, F: 1443657600, FC: 1458518400, A: 1474329600, xB: 1490572800, B: 1505779200, nB: 1522281600, C: 1537142400, oB: 1553472e3, K: 1568851200, yB: 1585008e3, L: 1600214400, GC: 1619395200, G: 1632096e3, HC: 1635292800, zB: 1639353600, "0B": 1647216e3, "1B": 1652745600, "2B": 1658275200, pB: 1662940800, "3B": 1666569600, IC: null, JC: null } }, F: { A: { "0": 4393e-6, "1": 7948e-6, "2": 4879e-6, "3": 4879e-6, "4": 3974e-6, "5": 5152e-6, "6": 5014e-6, "7": 9758e-6, "8": 4879e-6, "9": 3974e-6, F: 82e-4, B: 0.016581, C: 4317e-6, G: 685e-5, M: 685e-5, N: 685e-5, O: 5014e-6, s: 6015e-6, t: 4879e-6, u: 6597e-6, v: 6597e-6, w: 0.013434, x: 6702e-6, y: 6015e-6, z: 5595e-6, AB: 4283e-6, BB: 4367e-6, CB: 4534e-6, DB: 7948e-6, EB: 4227e-6, FB: 4418e-6, GB: 4161e-6, HB: 4227e-6, IB: 4725e-6, JB: 0.011922, KB: 8942e-6, LB: 4707e-6, MB: 4827e-6, NB: 4707e-6, OB: 4707e-6, PB: 4326e-6, QB: 8922e-6, RB: 0.014349, SB: 4425e-6, TB: 472e-5, UB: 4425e-6, VB: 4425e-6, WB: 472e-5, XB: 4532e-6, YB: 4566e-6, ZB: 0.02283, aB: 867e-5, bB: 4656e-6, cB: 4642e-6, dB: 3929e-6, eB: 944e-5, fB: 4293e-6, gB: 3929e-6, d: 4298e-6, hB: 0.096692, iB: 4201e-6, jB: 4141e-6, kB: 4257e-6, lB: 3939e-6, mB: 8236e-6, P: 3855e-6, Q: 3939e-6, R: 8514e-6, tB: 3939e-6, S: 3939e-6, T: 3702e-6, U: 0.011922, V: 3855e-6, W: 3855e-6, X: 3929e-6, Y: 7948e-6, Z: 0.405348, a: 0.862358, b: 0, KC: 685e-5, LC: 0, MC: 8392e-6, NC: 4706e-6, nB: 6229e-6, "4B": 4879e-6, OC: 8786e-6, oB: 472e-5 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "F", "KC", "LC", "MC", "NC", "B", "nB", "4B", "OC", "C", "oB", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "WB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "tB", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "", "", ""], E: "Opera", F: { "0": 1422316800, "1": 1425945600, "2": 1430179200, "3": 1433808e3, "4": 1438646400, "5": 1442448e3, "6": 1445904e3, "7": 1449100800, "8": 1454371200, "9": 1457308800, F: 1150761600, KC: 1223424e3, LC: 1251763200, MC: 1267488e3, NC: 1277942400, B: 1292457600, nB: 1302566400, "4B": 1309219200, OC: 1323129600, C: 1323129600, oB: 1352073600, G: 1372723200, M: 1377561600, N: 1381104e3, O: 1386288e3, s: 1390867200, t: 1393891200, u: 1399334400, v: 1401753600, w: 1405987200, x: 1409616e3, y: 1413331200, z: 1417132800, AB: 146232e4, BB: 1465344e3, CB: 1470096e3, DB: 1474329600, EB: 1477267200, FB: 1481587200, GB: 1486425600, HB: 1490054400, IB: 1494374400, JB: 1498003200, KB: 1502236800, LB: 1506470400, MB: 1510099200, NB: 1515024e3, OB: 1517961600, PB: 1521676800, QB: 1525910400, RB: 1530144e3, SB: 1534982400, TB: 1537833600, UB: 1543363200, VB: 1548201600, WB: 1554768e3, XB: 1561593600, YB: 1566259200, ZB: 1570406400, aB: 1573689600, bB: 1578441600, cB: 1583971200, dB: 1587513600, eB: 1592956800, fB: 1595894400, gB: 1600128e3, d: 1603238400, hB: 161352e4, iB: 1612224e3, jB: 1616544e3, kB: 1619568e3, lB: 1623715200, mB: 1627948800, P: 1631577600, Q: 1633392e3, R: 1635984e3, tB: 1638403200, S: 1642550400, T: 1644969600, U: 1647993600, V: 1650412800, W: 1652745600, X: 1654646400, Y: 1657152e3, Z: 1660780800, a: 1663113600, b: 1668816e3 }, D: { F: "o", B: "o", C: "o", KC: "o", LC: "o", MC: "o", NC: "o", nB: "o", "4B": "o", OC: "o", oB: "o" } }, G: { A: { E: 0, wB: 0, PC: 0, "5B": 319488e-8, QC: 479232e-8, RC: 319488e-8, SC: 0.014377, TC: 479232e-8, UC: 0.0159744, VC: 0.0607028, WC: 319488e-8, XC: 0.0718849, YC: 0.0255591, ZC: 0.0223642, aC: 0.0223642, bC: 0.408945, cC: 0.0287539, dC: 958465e-8, eC: 0.0383386, fC: 0.119808, gC: 0.354632, hC: 0.773162, iC: 0.201278, zB: 0.28115, "0B": 0.351437, "1B": 0.800318, "2B": 6.71564, pB: 4.55111, "3B": 0.241214 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "wB", "PC", "5B", "QC", "RC", "SC", "E", "TC", "UC", "VC", "WC", "XC", "YC", "ZC", "aC", "bC", "cC", "dC", "eC", "fC", "gC", "hC", "iC", "zB", "0B", "1B", "2B", "pB", "3B", "", "", ""], E: "Safari on iOS", F: { wB: 1270252800, PC: 1283904e3, "5B": 1299628800, QC: 1331078400, RC: 1359331200, SC: 1394409600, E: 1410912e3, TC: 1413763200, UC: 1442361600, VC: 1458518400, WC: 1473724800, XC: 1490572800, YC: 1505779200, ZC: 1522281600, aC: 1537142400, bC: 1553472e3, cC: 1568851200, dC: 1572220800, eC: 1580169600, fC: 1585008e3, gC: 1600214400, hC: 1619395200, iC: 1632096e3, zB: 1639353600, "0B": 1647216e3, "1B": 1652659200, "2B": 1658275200, pB: 1662940800, "3B": 1666569600 } }, H: { A: { jC: 1.02708 }, B: "o", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "jC", "", "", ""], E: "Opera Mini", F: { jC: 1426464e3 } }, I: { A: { qB: 0, I: 0.0223354, H: 0, kC: 0, lC: 0, mC: 0, nC: 0.0297805, "5B": 0.0893414, oC: 0, pC: 0.364811 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "kC", "lC", "mC", "qB", "I", "nC", "5B", "oC", "pC", "H", "", "", ""], E: "Android Browser", F: { kC: 1256515200, lC: 1274313600, mC: 1291593600, qB: 1298332800, I: 1318896e3, nC: 1341792e3, "5B": 1374624e3, oC: 1386547200, pC: 1401667200, H: 1666828800 } }, J: { A: { D: 0, A: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "D", "A", "", "", ""], E: "Blackberry Browser", F: { D: 1325376e3, A: 1359504e3 } }, K: { A: { A: 0, B: 0, C: 0, d: 0.0111391, nB: 0, "4B": 0, oB: 0 }, B: "o", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "A", "B", "nB", "4B", "C", "oB", "d", "", "", ""], E: "Opera Mobile", F: { A: 1287100800, B: 1300752e3, nB: 1314835200, "4B": 1318291200, C: 1330300800, oB: 1349740800, d: 1666828800 }, D: { d: "webkit" } }, L: { A: { H: 40.2785 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "H", "", "", ""], E: "Chrome for Android", F: { H: 1666828800 } }, M: { A: { c: 0.283269 }, B: "moz", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "c", "", "", ""], E: "Firefox for Android", F: { c: 1666051200 } }, N: { A: { A: 0.0115934, B: 0.022664 }, B: "ms", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "A", "B", "", "", ""], E: "IE Mobile", F: { A: 1340150400, B: 1353456e3 } }, O: { A: { qC: 0.638862 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "qC", "", "", ""], E: "UC Browser for Android", F: { qC: 1634688e3 }, D: { qC: "webkit" } }, P: { A: { I: 0.146868, rC: 0.0103543, sC: 0.010304, tC: 0.0629436, uC: 0.0103584, vC: 0.0104443, xB: 0.0105043, wC: 0.0314718, xC: 0.0104906, yC: 0.052453, zC: 0.052453, "0C": 0.0314718, pB: 0.0944154, "1C": 0.157359, "2C": 2.15057, "3C": 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "I", "rC", "sC", "tC", "uC", "vC", "xB", "wC", "xC", "yC", "zC", "0C", "pB", "1C", "2C", "3C", "", "", ""], E: "Samsung Internet", F: { I: 1461024e3, rC: 1481846400, sC: 1509408e3, tC: 1528329600, uC: 1546128e3, vC: 1554163200, xB: 1567900800, wC: 1582588800, xC: 1593475200, yC: 1605657600, zC: 1618531200, "0C": 1629072e3, pB: 1640736e3, "1C": 1651708800, "2C": 1659657600, "3C": 1667260800 } }, Q: { A: { yB: 0.126567 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "yB", "", "", ""], E: "QQ Browser", F: { yB: 1663718400 } }, R: { A: { "4C": 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "4C", "", "", ""], E: "Baidu Browser", F: { "4C": 1663027200 } }, S: { A: { "5C": 0.042189 }, B: "moz", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "5C", "", "", ""], E: "KaiOS Browser", F: { "5C": 1527811200 } } };
|
30614
|
+
module2.exports = { A: { A: { J: 0.0131217, D: 621152e-8, E: 0.0440661, F: 0.0881323, A: 734435e-8, B: 0.440661, "6B": 9298e-6 }, B: "ms", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "6B", "J", "D", "E", "F", "A", "B", "", "", ""], E: "IE", F: { "6B": 962323200, J: 998870400, D: 1161129600, E: 1237420800, F: 1300060800, A: 1346716800, B: 1381968e3 } }, B: { A: { C: 7948e-6, K: 4267e-6, L: 4268e-6, G: 3974e-6, M: 3702e-6, N: 3974e-6, O: 0.01987, P: 0, Q: 4298e-6, R: 944e-5, S: 4043e-6, T: 3974e-6, U: 3974e-6, V: 3974e-6, W: 3974e-6, X: 4318e-6, Y: 3974e-6, Z: 4118e-6, a: 3939e-6, b: 7948e-6, e: 4118e-6, f: 3939e-6, g: 3801e-6, h: 3929e-6, i: 3855e-6, j: 3929e-6, k: 3974e-6, l: 3974e-6, m: 0.011922, n: 0.011922, o: 0.035766, p: 0.067558, q: 0.802748, c: 3.07588, H: 0.246388 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "C", "K", "L", "G", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "", "", ""], E: "Edge", F: { C: 1438128e3, K: 1447286400, L: 1470096e3, G: 1491868800, M: 1508198400, N: 1525046400, O: 1542067200, P: 1579046400, Q: 1581033600, R: 1586736e3, S: 1590019200, T: 1594857600, U: 1598486400, V: 1602201600, W: 1605830400, X: 161136e4, Y: 1614816e3, Z: 1618358400, a: 1622073600, b: 1626912e3, e: 1630627200, f: 1632441600, g: 1634774400, h: 1637539200, i: 1641427200, j: 1643932800, k: 1646265600, l: 1649635200, m: 1651190400, n: 1653955200, o: 1655942400, p: 1659657600, q: 1661990400, c: 1664755200, H: 1666915200 }, D: { C: "ms", K: "ms", L: "ms", G: "ms", M: "ms", N: "ms", O: "ms" } }, C: { A: { "0": 4393e-6, "1": 4418e-6, "2": 8834e-6, "3": 8322e-6, "4": 8928e-6, "5": 4471e-6, "6": 9284e-6, "7": 4707e-6, "8": 9076e-6, "9": 7948e-6, "7B": 4118e-6, qB: 4271e-6, I: 0.015896, r: 4879e-6, J: 0.020136, D: 5725e-6, E: 4525e-6, F: 533e-5, A: 4283e-6, B: 7948e-6, C: 4471e-6, K: 4486e-6, L: 453e-5, G: 8322e-6, M: 4417e-6, N: 4425e-6, O: 4161e-6, s: 4443e-6, t: 4283e-6, u: 8322e-6, v: 0.013698, w: 4161e-6, x: 8786e-6, y: 4118e-6, z: 4317e-6, AB: 4783e-6, BB: 3929e-6, CB: 4783e-6, DB: 487e-5, EB: 5029e-6, FB: 47e-4, GB: 0.015896, HB: 7948e-6, IB: 3867e-6, JB: 4525e-6, KB: 4293e-6, LB: 3702e-6, MB: 4538e-6, NB: 8282e-6, OB: 0.011601, PB: 0.051662, QB: 0.011601, RB: 3929e-6, SB: 3974e-6, TB: 3974e-6, UB: 0.011601, VB: 3939e-6, rB: 3855e-6, WB: 3929e-6, sB: 4356e-6, XB: 4425e-6, YB: 8322e-6, ZB: 415e-5, aB: 4267e-6, bB: 3801e-6, cB: 4267e-6, dB: 7948e-6, eB: 415e-5, fB: 4293e-6, gB: 4425e-6, d: 3974e-6, hB: 415e-5, iB: 415e-5, jB: 4318e-6, kB: 4356e-6, lB: 3974e-6, mB: 0.035766, P: 3974e-6, Q: 7948e-6, R: 7948e-6, tB: 3974e-6, S: 3974e-6, T: 3929e-6, U: 4268e-6, V: 3801e-6, W: 7948e-6, X: 7948e-6, Y: 3974e-6, Z: 3974e-6, a: 0.03974, b: 3801e-6, e: 3855e-6, f: 0.015896, g: 3974e-6, h: 3974e-6, i: 3974e-6, j: 3974e-6, k: 0.011922, l: 7948e-6, m: 0.011922, n: 0.063584, o: 0.043714, p: 0.071532, q: 1.50615, c: 0.679554, H: 7948e-6, uB: 0, vB: 0, "8B": 8786e-6, "9B": 487e-5 }, B: "moz", C: ["7B", "qB", "8B", "9B", "I", "r", "J", "D", "E", "F", "A", "B", "C", "K", "L", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "rB", "WB", "sB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "tB", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "uB", "vB", ""], E: "Firefox", F: { "0": 1391472e3, "1": 1395100800, "2": 1398729600, "3": 1402358400, "4": 1405987200, "5": 1409616e3, "6": 1413244800, "7": 1417392e3, "8": 1421107200, "9": 1424736e3, "7B": 1161648e3, qB: 1213660800, "8B": 124632e4, "9B": 1264032e3, I: 1300752e3, r: 1308614400, J: 1313452800, D: 1317081600, E: 1317081600, F: 1320710400, A: 1324339200, B: 1327968e3, C: 1331596800, K: 1335225600, L: 1338854400, G: 1342483200, M: 1346112e3, N: 1349740800, O: 1353628800, s: 1357603200, t: 1361232e3, u: 1364860800, v: 1368489600, w: 1372118400, x: 1375747200, y: 1379376e3, z: 1386633600, AB: 1428278400, BB: 1431475200, CB: 1435881600, DB: 1439251200, EB: 144288e4, FB: 1446508800, GB: 1450137600, HB: 1453852800, IB: 1457395200, JB: 1461628800, KB: 1465257600, LB: 1470096e3, MB: 1474329600, NB: 1479168e3, OB: 1485216e3, PB: 1488844800, QB: 149256e4, RB: 1497312e3, SB: 1502150400, TB: 1506556800, UB: 1510617600, VB: 1516665600, rB: 1520985600, WB: 1525824e3, sB: 1529971200, XB: 1536105600, YB: 1540252800, ZB: 1544486400, aB: 154872e4, bB: 1552953600, cB: 1558396800, dB: 1562630400, eB: 1567468800, fB: 1571788800, gB: 1575331200, d: 1578355200, hB: 1581379200, iB: 1583798400, jB: 1586304e3, kB: 1588636800, lB: 1591056e3, mB: 1593475200, P: 1595894400, Q: 1598313600, R: 1600732800, tB: 1603152e3, S: 1605571200, T: 1607990400, U: 1611619200, V: 1614038400, W: 1616457600, X: 1618790400, Y: 1622505600, Z: 1626134400, a: 1628553600, b: 1630972800, e: 1633392e3, f: 1635811200, g: 1638835200, h: 1641859200, i: 1644364800, j: 1646697600, k: 1649116800, l: 1651536e3, m: 1653955200, n: 1656374400, o: 1658793600, p: 1661212800, q: 1663632e3, c: 1666051200, H: 1668470400, uB: null, vB: null } }, D: { A: { "0": 4326e-6, "1": 47e-4, "2": 4538e-6, "3": 8322e-6, "4": 8596e-6, "5": 4566e-6, "6": 4118e-6, "7": 7948e-6, "8": 3702e-6, "9": 4335e-6, I: 4706e-6, r: 4879e-6, J: 4879e-6, D: 5591e-6, E: 5591e-6, F: 5591e-6, A: 4534e-6, B: 4464e-6, C: 0.010424, K: 83e-4, L: 4706e-6, G: 0.015087, M: 4393e-6, N: 4393e-6, O: 8652e-6, s: 8322e-6, t: 4393e-6, u: 4317e-6, v: 3974e-6, w: 8786e-6, x: 3939e-6, y: 4461e-6, z: 4141e-6, AB: 4464e-6, BB: 0.015896, CB: 3867e-6, DB: 0.015896, EB: 3974e-6, FB: 3974e-6, GB: 7948e-6, HB: 7948e-6, IB: 3974e-6, JB: 3867e-6, KB: 7948e-6, LB: 0.01987, MB: 0.047688, NB: 3867e-6, OB: 3929e-6, PB: 3974e-6, QB: 7948e-6, RB: 3867e-6, SB: 3974e-6, TB: 0.035766, UB: 3974e-6, VB: 3702e-6, rB: 3702e-6, WB: 0.011922, sB: 0.011922, XB: 3974e-6, YB: 7948e-6, ZB: 3929e-6, aB: 0.011922, bB: 0.027818, cB: 7948e-6, dB: 7948e-6, eB: 0.047688, fB: 0.023844, gB: 0.011922, d: 0.03974, hB: 0.011922, iB: 0.031792, jB: 0.043714, kB: 0.035766, lB: 0.011922, mB: 0.031792, P: 0.107298, Q: 0.035766, R: 0.03974, S: 0.067558, T: 0.051662, U: 0.083454, V: 0.083454, W: 0.083454, X: 0.01987, Y: 0.03974, Z: 0.023844, a: 0.055636, b: 0.047688, e: 0.043714, f: 0.035766, g: 0.023844, h: 0.063584, i: 0.05961, j: 0.051662, k: 0.055636, l: 0.151012, m: 0.087428, n: 0.143064, o: 0.421244, p: 0.41727, q: 6.00869, c: 15.7013, H: 0.643788, uB: 0.01987, vB: 0.011922, AC: 0, BC: 0 }, B: "webkit", C: ["", "", "", "", "I", "r", "J", "D", "E", "F", "A", "B", "C", "K", "L", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "rB", "WB", "sB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "c", "H", "uB", "vB", "AC", "BC"], E: "Chrome", F: { "0": 1364428800, "1": 1369094400, "2": 1374105600, "3": 1376956800, "4": 1384214400, "5": 1389657600, "6": 1392940800, "7": 1397001600, "8": 1400544e3, "9": 1405468800, I: 1264377600, r: 1274745600, J: 1283385600, D: 1287619200, E: 1291248e3, F: 1296777600, A: 1299542400, B: 1303862400, C: 1307404800, K: 1312243200, L: 1316131200, G: 1316131200, M: 1319500800, N: 1323734400, O: 1328659200, s: 1332892800, t: 133704e4, u: 1340668800, v: 1343692800, w: 1348531200, x: 1352246400, y: 1357862400, z: 1361404800, AB: 1409011200, BB: 141264e4, CB: 1416268800, DB: 1421798400, EB: 1425513600, FB: 1429401600, GB: 143208e4, HB: 1437523200, IB: 1441152e3, JB: 1444780800, KB: 1449014400, LB: 1453248e3, MB: 1456963200, NB: 1460592e3, OB: 1464134400, PB: 1469059200, QB: 1472601600, RB: 1476230400, SB: 1480550400, TB: 1485302400, UB: 1489017600, VB: 149256e4, rB: 1496707200, WB: 1500940800, sB: 1504569600, XB: 1508198400, YB: 1512518400, ZB: 1516752e3, aB: 1520294400, bB: 1523923200, cB: 1527552e3, dB: 1532390400, eB: 1536019200, fB: 1539648e3, gB: 1543968e3, d: 154872e4, hB: 1552348800, iB: 1555977600, jB: 1559606400, kB: 1564444800, lB: 1568073600, mB: 1571702400, P: 1575936e3, Q: 1580860800, R: 1586304e3, S: 1589846400, T: 1594684800, U: 1598313600, V: 1601942400, W: 1605571200, X: 1611014400, Y: 1614556800, Z: 1618272e3, a: 1621987200, b: 1626739200, e: 1630368e3, f: 1632268800, g: 1634601600, h: 1637020800, i: 1641340800, j: 1643673600, k: 1646092800, l: 1648512e3, m: 1650931200, n: 1653350400, o: 1655769600, p: 1659398400, q: 1661817600, c: 1664236800, H: 1666656e3, uB: 166968e4, vB: null, AC: null, BC: null } }, E: { A: { I: 0, r: 8322e-6, J: 4656e-6, D: 4465e-6, E: 3974e-6, F: 3929e-6, A: 4425e-6, B: 4318e-6, C: 3801e-6, K: 0.023844, L: 0.11922, G: 0.027818, CC: 0, wB: 8692e-6, DC: 0.011922, EC: 456e-5, FC: 4283e-6, GC: 0.015896, xB: 7948e-6, nB: 0.01987, oB: 0.035766, yB: 0.313946, HC: 0.305998, IC: 0.051662, zB: 0.051662, "0B": 0.131142, "1B": 0.266258, "2B": 1.63331, pB: 0.49675, "3B": 0.071532, JC: 0, KC: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "CC", "wB", "I", "r", "DC", "J", "EC", "D", "FC", "E", "F", "GC", "A", "xB", "B", "nB", "C", "oB", "K", "yB", "L", "HC", "G", "IC", "zB", "0B", "1B", "2B", "pB", "3B", "JC", "KC", ""], E: "Safari", F: { CC: 1205798400, wB: 1226534400, I: 1244419200, r: 1275868800, DC: 131112e4, J: 1343174400, EC: 13824e5, D: 13824e5, FC: 1410998400, E: 1413417600, F: 1443657600, GC: 1458518400, A: 1474329600, xB: 1490572800, B: 1505779200, nB: 1522281600, C: 1537142400, oB: 1553472e3, K: 1568851200, yB: 1585008e3, L: 1600214400, HC: 1619395200, G: 1632096e3, IC: 1635292800, zB: 1639353600, "0B": 1647216e3, "1B": 1652745600, "2B": 1658275200, pB: 1662940800, "3B": 1666569600, JC: null, KC: null } }, F: { A: { "0": 4393e-6, "1": 7948e-6, "2": 4879e-6, "3": 4879e-6, "4": 3974e-6, "5": 5152e-6, "6": 5014e-6, "7": 9758e-6, "8": 4879e-6, "9": 3974e-6, F: 82e-4, B: 0.016581, C: 4317e-6, G: 685e-5, M: 685e-5, N: 685e-5, O: 5014e-6, s: 6015e-6, t: 4879e-6, u: 6597e-6, v: 6597e-6, w: 0.013434, x: 6702e-6, y: 6015e-6, z: 5595e-6, AB: 4283e-6, BB: 4367e-6, CB: 4534e-6, DB: 7948e-6, EB: 4227e-6, FB: 4418e-6, GB: 4161e-6, HB: 4227e-6, IB: 4725e-6, JB: 0.011922, KB: 8942e-6, LB: 4707e-6, MB: 4827e-6, NB: 4707e-6, OB: 4707e-6, PB: 4326e-6, QB: 8922e-6, RB: 0.014349, SB: 4425e-6, TB: 472e-5, UB: 4425e-6, VB: 4425e-6, WB: 472e-5, XB: 4532e-6, YB: 4566e-6, ZB: 0.02283, aB: 867e-5, bB: 4656e-6, cB: 4642e-6, dB: 3929e-6, eB: 944e-5, fB: 4293e-6, gB: 3929e-6, d: 4298e-6, hB: 0.096692, iB: 4201e-6, jB: 4141e-6, kB: 4257e-6, lB: 3939e-6, mB: 8236e-6, P: 3855e-6, Q: 3939e-6, R: 8514e-6, tB: 3939e-6, S: 3939e-6, T: 3702e-6, U: 0.011922, V: 3855e-6, W: 3855e-6, X: 3929e-6, Y: 7948e-6, Z: 0.405348, a: 0.862358, b: 0, LC: 685e-5, MC: 0, NC: 8392e-6, OC: 4706e-6, nB: 6229e-6, "4B": 4879e-6, PC: 8786e-6, oB: 472e-5 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "F", "LC", "MC", "NC", "OC", "B", "nB", "4B", "PC", "C", "oB", "G", "M", "N", "O", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "QB", "RB", "SB", "TB", "UB", "VB", "WB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "d", "hB", "iB", "jB", "kB", "lB", "mB", "P", "Q", "R", "tB", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "", "", ""], E: "Opera", F: { "0": 1422316800, "1": 1425945600, "2": 1430179200, "3": 1433808e3, "4": 1438646400, "5": 1442448e3, "6": 1445904e3, "7": 1449100800, "8": 1454371200, "9": 1457308800, F: 1150761600, LC: 1223424e3, MC: 1251763200, NC: 1267488e3, OC: 1277942400, B: 1292457600, nB: 1302566400, "4B": 1309219200, PC: 1323129600, C: 1323129600, oB: 1352073600, G: 1372723200, M: 1377561600, N: 1381104e3, O: 1386288e3, s: 1390867200, t: 1393891200, u: 1399334400, v: 1401753600, w: 1405987200, x: 1409616e3, y: 1413331200, z: 1417132800, AB: 146232e4, BB: 1465344e3, CB: 1470096e3, DB: 1474329600, EB: 1477267200, FB: 1481587200, GB: 1486425600, HB: 1490054400, IB: 1494374400, JB: 1498003200, KB: 1502236800, LB: 1506470400, MB: 1510099200, NB: 1515024e3, OB: 1517961600, PB: 1521676800, QB: 1525910400, RB: 1530144e3, SB: 1534982400, TB: 1537833600, UB: 1543363200, VB: 1548201600, WB: 1554768e3, XB: 1561593600, YB: 1566259200, ZB: 1570406400, aB: 1573689600, bB: 1578441600, cB: 1583971200, dB: 1587513600, eB: 1592956800, fB: 1595894400, gB: 1600128e3, d: 1603238400, hB: 161352e4, iB: 1612224e3, jB: 1616544e3, kB: 1619568e3, lB: 1623715200, mB: 1627948800, P: 1631577600, Q: 1633392e3, R: 1635984e3, tB: 1638403200, S: 1642550400, T: 1644969600, U: 1647993600, V: 1650412800, W: 1652745600, X: 1654646400, Y: 1657152e3, Z: 1660780800, a: 1663113600, b: 1668816e3 }, D: { F: "o", B: "o", C: "o", LC: "o", MC: "o", NC: "o", OC: "o", nB: "o", "4B": "o", PC: "o", oB: "o" } }, G: { A: { E: 0, wB: 0, QC: 0, "5B": 319488e-8, RC: 479232e-8, SC: 319488e-8, TC: 0.014377, UC: 479232e-8, VC: 0.0159744, WC: 0.0607028, XC: 319488e-8, YC: 0.0718849, ZC: 0.0255591, aC: 0.0223642, bC: 0.0223642, cC: 0.408945, dC: 0.0287539, eC: 958465e-8, fC: 0.0383386, gC: 0.119808, hC: 0.354632, iC: 0.773162, jC: 0.201278, zB: 0.28115, "0B": 0.351437, "1B": 0.800318, "2B": 6.71564, pB: 4.55111, "3B": 0.241214 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "wB", "QC", "5B", "RC", "SC", "TC", "E", "UC", "VC", "WC", "XC", "YC", "ZC", "aC", "bC", "cC", "dC", "eC", "fC", "gC", "hC", "iC", "jC", "zB", "0B", "1B", "2B", "pB", "3B", "", "", ""], E: "Safari on iOS", F: { wB: 1270252800, QC: 1283904e3, "5B": 1299628800, RC: 1331078400, SC: 1359331200, TC: 1394409600, E: 1410912e3, UC: 1413763200, VC: 1442361600, WC: 1458518400, XC: 1473724800, YC: 1490572800, ZC: 1505779200, aC: 1522281600, bC: 1537142400, cC: 1553472e3, dC: 1568851200, eC: 1572220800, fC: 1580169600, gC: 1585008e3, hC: 1600214400, iC: 1619395200, jC: 1632096e3, zB: 1639353600, "0B": 1647216e3, "1B": 1652659200, "2B": 1658275200, pB: 1662940800, "3B": 1666569600 } }, H: { A: { kC: 1.02708 }, B: "o", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "kC", "", "", ""], E: "Opera Mini", F: { kC: 1426464e3 } }, I: { A: { qB: 0, I: 0.0223354, H: 0, lC: 0, mC: 0, nC: 0, oC: 0.0297805, "5B": 0.0893414, pC: 0, qC: 0.364811 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "lC", "mC", "nC", "qB", "I", "oC", "5B", "pC", "qC", "H", "", "", ""], E: "Android Browser", F: { lC: 1256515200, mC: 1274313600, nC: 1291593600, qB: 1298332800, I: 1318896e3, oC: 1341792e3, "5B": 1374624e3, pC: 1386547200, qC: 1401667200, H: 1666828800 } }, J: { A: { D: 0, A: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "D", "A", "", "", ""], E: "Blackberry Browser", F: { D: 1325376e3, A: 1359504e3 } }, K: { A: { A: 0, B: 0, C: 0, d: 0.0111391, nB: 0, "4B": 0, oB: 0 }, B: "o", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "A", "B", "nB", "4B", "C", "oB", "d", "", "", ""], E: "Opera Mobile", F: { A: 1287100800, B: 1300752e3, nB: 1314835200, "4B": 1318291200, C: 1330300800, oB: 1349740800, d: 1666828800 }, D: { d: "webkit" } }, L: { A: { H: 40.2785 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "H", "", "", ""], E: "Chrome for Android", F: { H: 1666828800 } }, M: { A: { c: 0.283269 }, B: "moz", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "c", "", "", ""], E: "Firefox for Android", F: { c: 1666051200 } }, N: { A: { A: 0.0115934, B: 0.022664 }, B: "ms", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "A", "B", "", "", ""], E: "IE Mobile", F: { A: 1340150400, B: 1353456e3 } }, O: { A: { rC: 0.638862 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "rC", "", "", ""], E: "UC Browser for Android", F: { rC: 1634688e3 }, D: { rC: "webkit" } }, P: { A: { I: 0.146868, sC: 0.0103543, tC: 0.010304, uC: 0.0629436, vC: 0.0103584, wC: 0.0104443, xB: 0.0105043, xC: 0.0314718, yC: 0.0104906, zC: 0.052453, "0C": 0.052453, "1C": 0.0314718, pB: 0.0944154, "2C": 0.157359, "3C": 2.15057, "4C": 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "I", "sC", "tC", "uC", "vC", "wC", "xB", "xC", "yC", "zC", "0C", "1C", "pB", "2C", "3C", "4C", "", "", ""], E: "Samsung Internet", F: { I: 1461024e3, sC: 1481846400, tC: 1509408e3, uC: 1528329600, vC: 1546128e3, wC: 1554163200, xB: 1567900800, xC: 1582588800, yC: 1593475200, zC: 1605657600, "0C": 1618531200, "1C": 1629072e3, pB: 1640736e3, "2C": 1651708800, "3C": 1659657600, "4C": 1667260800 } }, Q: { A: { yB: 0.126567 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "yB", "", "", ""], E: "QQ Browser", F: { yB: 1663718400 } }, R: { A: { "5C": 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "5C", "", "", ""], E: "Baidu Browser", F: { "5C": 1663027200 } }, S: { A: { "6C": 0.042189 }, B: "moz", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "6C", "", "", ""], E: "KaiOS Browser", F: { "6C": 1527811200 } } };
|
30615
30615
|
});
|
30616
30616
|
var require_agents2 = __commonJSMin((exports, module2) => {
|
30617
30617
|
"use strict";
|
@@ -35020,7 +35020,7 @@ var require_compatRequire = __commonJSMin((exports) => {
|
|
35020
35020
|
var require_constants = __commonJSMin((exports) => {
|
35021
35021
|
"use strict";
|
35022
35022
|
Object.defineProperty(exports, "__esModule", { value: true });
|
35023
|
-
exports.PLUGIN_SCHEMAS = exports.INTERNAL_SERVER_PLUGINS = exports.INTERNAL_CLI_PLUGINS = exports.LOADER_ROUTES_DIR = exports.ROUTE_MANIFEST = exports.ROUTE_MINIFEST_FILE = exports.DEFAULT_SERVER_CONFIG = exports.OUTPUT_CONFIG_FILE = exports.CONFIG_FILE_EXTENSIONS = exports.CONFIG_CACHE_DIR = exports.SHARED_DIR = exports.SERVER_DIR = exports.API_DIR = exports.LOADABLE_STATS_FILE = exports.SERVER_RENDER_FUNCTION_NAME = exports.ENTRY_NAME_PATTERN = exports.SERVER_BUNDLE_DIRECTORY = exports.LAUNCH_EDITOR_ENDPOINT = exports.MAIN_ENTRY_NAME = exports.ROUTE_SPEC_FILE = exports.HMR_SOCK_PATH = void 0;
|
35023
|
+
exports.PLUGIN_SCHEMAS = exports.INTERNAL_SERVER_PLUGINS = exports.INTERNAL_CLI_PLUGINS = exports.INTERNAL_DOC_TOOLS_PLUGINS = exports.INTERNAL_MONOREPO_TOOLS_PLUGINS = exports.INTERNAL_MODULE_TOOLS_PLUGINS = exports.INTERNAL_APP_TOOLS_PLUGINS = exports.LOADER_ROUTES_DIR = exports.ROUTE_MANIFEST = exports.ROUTE_MINIFEST_FILE = exports.DEFAULT_SERVER_CONFIG = exports.OUTPUT_CONFIG_FILE = exports.CONFIG_FILE_EXTENSIONS = exports.CONFIG_CACHE_DIR = exports.SHARED_DIR = exports.SERVER_DIR = exports.API_DIR = exports.LOADABLE_STATS_FILE = exports.SERVER_RENDER_FUNCTION_NAME = exports.ENTRY_NAME_PATTERN = exports.SERVER_BUNDLE_DIRECTORY = exports.LAUNCH_EDITOR_ENDPOINT = exports.MAIN_ENTRY_NAME = exports.ROUTE_SPEC_FILE = exports.HMR_SOCK_PATH = void 0;
|
35024
35024
|
exports.HMR_SOCK_PATH = "/webpack-hmr";
|
35025
35025
|
exports.ROUTE_SPEC_FILE = "route.json";
|
35026
35026
|
exports.MAIN_ENTRY_NAME = "main";
|
@@ -35039,6 +35039,43 @@ var require_constants = __commonJSMin((exports) => {
|
|
35039
35039
|
exports.ROUTE_MINIFEST_FILE = "routes-manifest.json";
|
35040
35040
|
exports.ROUTE_MANIFEST = `_MODERNJS_ROUTE_MANIFEST`;
|
35041
35041
|
exports.LOADER_ROUTES_DIR = `loader-routes`;
|
35042
|
+
exports.INTERNAL_APP_TOOLS_PLUGINS = {
|
35043
|
+
"@modern-js/app-tools": "@modern-js/app-tools/cli",
|
35044
|
+
"@modern-js/runtime": "@modern-js/runtime/cli",
|
35045
|
+
"@modern-js/plugin-proxy": "@modern-js/plugin-proxy/cli",
|
35046
|
+
"@modern-js/plugin-ssg": "@modern-js/plugin-ssg/cli",
|
35047
|
+
"@modern-js/plugin-bff": "@modern-js/plugin-bff/cli",
|
35048
|
+
"@modern-js/plugin-testing": "@modern-js/plugin-testing/cli",
|
35049
|
+
"@modern-js/plugin-storybook": "@modern-js/plugin-storybook/cli",
|
35050
|
+
"@modern-js/plugin-express": "@modern-js/plugin-express/cli",
|
35051
|
+
"@modern-js/plugin-egg": "@modern-js/plugin-egg/cli",
|
35052
|
+
"@modern-js/plugin-koa": "@modern-js/plugin-koa/cli",
|
35053
|
+
"@modern-js/plugin-nest": "@modern-js/plugin-nest/cli",
|
35054
|
+
"@modern-js/plugin-server": "@modern-js/plugin-server/cli",
|
35055
|
+
"@modern-js/plugin-garfish": "@modern-js/plugin-garfish/cli",
|
35056
|
+
"@modern-js/plugin-tailwindcss": "@modern-js/plugin-tailwindcss/cli",
|
35057
|
+
"@modern-js/plugin-polyfill": "@modern-js/plugin-polyfill/cli",
|
35058
|
+
"@modern-js/plugin-router-legacy": "@modern-js/plugin-router-legacy/cli"
|
35059
|
+
};
|
35060
|
+
exports.INTERNAL_MODULE_TOOLS_PLUGINS = {
|
35061
|
+
"@modern-js/module-tools": "@modern-js/module-tools/cli",
|
35062
|
+
"@modern-js/module-tools-v2": "@modern-js/module-tools-v2",
|
35063
|
+
"@modern-js/doc-tools": "@modern-js/doc-tools",
|
35064
|
+
"@modern-js/runtime": "@modern-js/runtime/cli",
|
35065
|
+
"@modern-js/plugin-testing": "@modern-js/plugin-testing/cli",
|
35066
|
+
"@modern-js/plugin-storybook": "@modern-js/plugin-storybook/cli",
|
35067
|
+
"@modern-js/plugin-tailwindcss": "@modern-js/plugin-tailwindcss/cli",
|
35068
|
+
"@modern-js/plugin-nocode": "@modern-js/plugin-nocode/cli"
|
35069
|
+
};
|
35070
|
+
exports.INTERNAL_MONOREPO_TOOLS_PLUGINS = {
|
35071
|
+
"@modern-js/monorepo-tools": "@modern-js/monorepo-tools/cli",
|
35072
|
+
"@modern-js/plugin-testing": "@modern-js/plugin-testing/cli"
|
35073
|
+
};
|
35074
|
+
exports.INTERNAL_DOC_TOOLS_PLUGINS = {
|
35075
|
+
"@modern-js/doc-tools": "@modern-js/doc-tools",
|
35076
|
+
"@modern-js/runtime": "@modern-js/runtime/cli",
|
35077
|
+
"@modern-js/plugin-testing": "@modern-js/plugin-testing/cli"
|
35078
|
+
};
|
35042
35079
|
exports.INTERNAL_CLI_PLUGINS = {
|
35043
35080
|
"@modern-js/app-tools": "@modern-js/app-tools/cli",
|
35044
35081
|
"@modern-js/monorepo-tools": "@modern-js/monorepo-tools/cli",
|
@@ -68679,6 +68716,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
68679
68716
|
this._redirectable.emit(event, arg1, arg2, arg3);
|
68680
68717
|
};
|
68681
68718
|
});
|
68719
|
+
var InvalidUrlError = createErrorType("ERR_INVALID_URL", "Invalid URL", TypeError);
|
68682
68720
|
var RedirectionError = createErrorType("ERR_FR_REDIRECTION_FAILURE", "Redirected request failed");
|
68683
68721
|
var TooManyRedirectsError = createErrorType("ERR_FR_TOO_MANY_REDIRECTS", "Maximum number of redirects exceeded");
|
68684
68722
|
var MaxBodyLengthExceededError = createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED", "Request body larger than maxBodyLength limit");
|
@@ -68711,10 +68749,10 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
68711
68749
|
if (this._ending) {
|
68712
68750
|
throw new WriteAfterEndError();
|
68713
68751
|
}
|
68714
|
-
if (!(
|
68752
|
+
if (!isString2(data) && !isBuffer(data)) {
|
68715
68753
|
throw new TypeError("data should be a string, Buffer or Uint8Array");
|
68716
68754
|
}
|
68717
|
-
if (
|
68755
|
+
if (isFunction(encoding)) {
|
68718
68756
|
callback = encoding;
|
68719
68757
|
encoding = null;
|
68720
68758
|
}
|
@@ -68734,10 +68772,10 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
68734
68772
|
}
|
68735
68773
|
};
|
68736
68774
|
RedirectableRequest.prototype.end = function(data, encoding, callback) {
|
68737
|
-
if (
|
68775
|
+
if (isFunction(data)) {
|
68738
68776
|
callback = data;
|
68739
68777
|
data = encoding = null;
|
68740
|
-
} else if (
|
68778
|
+
} else if (isFunction(encoding)) {
|
68741
68779
|
callback = encoding;
|
68742
68780
|
encoding = null;
|
68743
68781
|
}
|
@@ -68861,7 +68899,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
68861
68899
|
for (var event of events) {
|
68862
68900
|
request.on(event, eventHandlers[event]);
|
68863
68901
|
}
|
68864
|
-
this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : this.
|
68902
|
+
this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : this._options.path;
|
68865
68903
|
if (this._isRedirect) {
|
68866
68904
|
var i = 0;
|
68867
68905
|
var self2 = this;
|
@@ -68926,7 +68964,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
68926
68964
|
try {
|
68927
68965
|
redirectUrl = url.resolve(currentUrl, location);
|
68928
68966
|
} catch (cause) {
|
68929
|
-
this.emit("error", new RedirectionError(cause));
|
68967
|
+
this.emit("error", new RedirectionError({ cause }));
|
68930
68968
|
return;
|
68931
68969
|
}
|
68932
68970
|
debug("redirecting to", redirectUrl);
|
@@ -68936,7 +68974,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
68936
68974
|
if (redirectUrlParts.protocol !== currentUrlParts.protocol && redirectUrlParts.protocol !== "https:" || redirectUrlParts.host !== currentHost && !isSubdomain(redirectUrlParts.host, currentHost)) {
|
68937
68975
|
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
68938
68976
|
}
|
68939
|
-
if (
|
68977
|
+
if (isFunction(beforeRedirect)) {
|
68940
68978
|
var responseDetails = {
|
68941
68979
|
headers: response.headers,
|
68942
68980
|
statusCode
|
@@ -68957,7 +68995,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
68957
68995
|
try {
|
68958
68996
|
this._performRequest();
|
68959
68997
|
} catch (cause) {
|
68960
|
-
this.emit("error", new RedirectionError(cause));
|
68998
|
+
this.emit("error", new RedirectionError({ cause }));
|
68961
68999
|
}
|
68962
69000
|
};
|
68963
69001
|
function wrap(protocols) {
|
@@ -68971,13 +69009,17 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
68971
69009
|
var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
|
68972
69010
|
var wrappedProtocol = exports2[scheme] = Object.create(nativeProtocol);
|
68973
69011
|
function request(input, options3, callback) {
|
68974
|
-
if (
|
68975
|
-
var
|
69012
|
+
if (isString2(input)) {
|
69013
|
+
var parsed;
|
68976
69014
|
try {
|
68977
|
-
|
69015
|
+
parsed = urlToOptions(new URL(input));
|
68978
69016
|
} catch (err) {
|
68979
|
-
|
69017
|
+
parsed = url.parse(input);
|
69018
|
+
}
|
69019
|
+
if (!isString2(parsed.protocol)) {
|
69020
|
+
throw new InvalidUrlError({ input });
|
68980
69021
|
}
|
69022
|
+
input = parsed;
|
68981
69023
|
} else if (URL && input instanceof URL) {
|
68982
69024
|
input = urlToOptions(input);
|
68983
69025
|
} else {
|
@@ -68985,7 +69027,7 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
68985
69027
|
options3 = input;
|
68986
69028
|
input = { protocol };
|
68987
69029
|
}
|
68988
|
-
if (
|
69030
|
+
if (isFunction(options3)) {
|
68989
69031
|
callback = options3;
|
68990
69032
|
options3 = null;
|
68991
69033
|
}
|
@@ -68994,6 +69036,9 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
68994
69036
|
maxBodyLength: exports2.maxBodyLength
|
68995
69037
|
}, input, options3);
|
68996
69038
|
options3.nativeProtocols = nativeProtocols;
|
69039
|
+
if (!isString2(options3.host) && !isString2(options3.hostname)) {
|
69040
|
+
options3.hostname = "::1";
|
69041
|
+
}
|
68997
69042
|
assert.equal(options3.protocol, protocol, "protocol mismatch");
|
68998
69043
|
debug("options", options3);
|
68999
69044
|
return new RedirectableRequest(options3, callback);
|
@@ -69037,20 +69082,16 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
69037
69082
|
}
|
69038
69083
|
return lastValue === null || typeof lastValue === "undefined" ? void 0 : String(lastValue).trim();
|
69039
69084
|
}
|
69040
|
-
function createErrorType(code,
|
69041
|
-
function CustomError(
|
69085
|
+
function createErrorType(code, message, baseClass) {
|
69086
|
+
function CustomError(properties) {
|
69042
69087
|
Error.captureStackTrace(this, this.constructor);
|
69043
|
-
|
69044
|
-
|
69045
|
-
|
69046
|
-
this.message = defaultMessage + ": " + cause.message;
|
69047
|
-
this.cause = cause;
|
69048
|
-
}
|
69088
|
+
Object.assign(this, properties || {});
|
69089
|
+
this.code = code;
|
69090
|
+
this.message = this.cause ? message + ": " + this.cause.message : message;
|
69049
69091
|
}
|
69050
|
-
CustomError.prototype = new Error();
|
69092
|
+
CustomError.prototype = new (baseClass || Error)();
|
69051
69093
|
CustomError.prototype.constructor = CustomError;
|
69052
69094
|
CustomError.prototype.name = "Error [" + code + "]";
|
69053
|
-
CustomError.prototype.code = code;
|
69054
69095
|
return CustomError;
|
69055
69096
|
}
|
69056
69097
|
function abortRequest(request) {
|
@@ -69061,9 +69102,19 @@ var require_follow_redirects = __commonJSMin((exports, module2) => {
|
|
69061
69102
|
request.abort();
|
69062
69103
|
}
|
69063
69104
|
function isSubdomain(subdomain, domain) {
|
69064
|
-
|
69105
|
+
assert(isString2(subdomain) && isString2(domain));
|
69106
|
+
var dot = subdomain.length - domain.length - 1;
|
69065
69107
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
69066
69108
|
}
|
69109
|
+
function isString2(value) {
|
69110
|
+
return typeof value === "string" || value instanceof String;
|
69111
|
+
}
|
69112
|
+
function isFunction(value) {
|
69113
|
+
return typeof value === "function";
|
69114
|
+
}
|
69115
|
+
function isBuffer(value) {
|
69116
|
+
return typeof value === "object" && "length" in value;
|
69117
|
+
}
|
69067
69118
|
module2.exports = wrap({ http, https });
|
69068
69119
|
module2.exports.wrap = wrap;
|
69069
69120
|
});
|
@@ -70893,8 +70944,9 @@ var require_read_entry = __commonJSMin((exports, module2) => {
|
|
70893
70944
|
}
|
70894
70945
|
this.path = normPath(header.path);
|
70895
70946
|
this.mode = header.mode;
|
70896
|
-
if (this.mode)
|
70947
|
+
if (this.mode) {
|
70897
70948
|
this.mode = this.mode & 4095;
|
70949
|
+
}
|
70898
70950
|
this.uid = header.uid;
|
70899
70951
|
this.gid = header.gid;
|
70900
70952
|
this.uname = header.uname;
|
@@ -70906,29 +70958,35 @@ var require_read_entry = __commonJSMin((exports, module2) => {
|
|
70906
70958
|
this.linkpath = normPath(header.linkpath);
|
70907
70959
|
this.uname = header.uname;
|
70908
70960
|
this.gname = header.gname;
|
70909
|
-
if (ex)
|
70961
|
+
if (ex) {
|
70910
70962
|
this[SLURP](ex);
|
70911
|
-
|
70963
|
+
}
|
70964
|
+
if (gex) {
|
70912
70965
|
this[SLURP](gex, true);
|
70966
|
+
}
|
70913
70967
|
}
|
70914
70968
|
write(data) {
|
70915
70969
|
const writeLen = data.length;
|
70916
|
-
if (writeLen > this.blockRemain)
|
70970
|
+
if (writeLen > this.blockRemain) {
|
70917
70971
|
throw new Error("writing more to entry than is appropriate");
|
70972
|
+
}
|
70918
70973
|
const r = this.remain;
|
70919
70974
|
const br = this.blockRemain;
|
70920
70975
|
this.remain = Math.max(0, r - writeLen);
|
70921
70976
|
this.blockRemain = Math.max(0, br - writeLen);
|
70922
|
-
if (this.ignore)
|
70977
|
+
if (this.ignore) {
|
70923
70978
|
return true;
|
70924
|
-
|
70979
|
+
}
|
70980
|
+
if (r >= writeLen) {
|
70925
70981
|
return super.write(data);
|
70982
|
+
}
|
70926
70983
|
return super.write(data.slice(0, r));
|
70927
70984
|
}
|
70928
70985
|
[SLURP](ex, global2) {
|
70929
70986
|
for (const k in ex) {
|
70930
|
-
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path"))
|
70987
|
+
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path")) {
|
70931
70988
|
this[k] = k === "path" || k === "linkpath" ? normPath(ex[k]) : ex[k];
|
70989
|
+
}
|
70932
70990
|
}
|
70933
70991
|
}
|
70934
70992
|
};
|
@@ -70963,12 +71021,13 @@ var require_types = __commonJSMin((exports) => {
|
|
70963
71021
|
var require_large_numbers = __commonJSMin((exports, module2) => {
|
70964
71022
|
"use strict";
|
70965
71023
|
var encode = (num, buf) => {
|
70966
|
-
if (!Number.isSafeInteger(num))
|
71024
|
+
if (!Number.isSafeInteger(num)) {
|
70967
71025
|
throw Error("cannot encode number outside of javascript safe integer range");
|
70968
|
-
else if (num < 0)
|
71026
|
+
} else if (num < 0) {
|
70969
71027
|
encodeNegative(num, buf);
|
70970
|
-
else
|
71028
|
+
} else {
|
70971
71029
|
encodePositive(num, buf);
|
71030
|
+
}
|
70972
71031
|
return buf;
|
70973
71032
|
};
|
70974
71033
|
var encodePositive = (num, buf) => {
|
@@ -70985,11 +71044,11 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
70985
71044
|
for (var i = buf.length; i > 1; i--) {
|
70986
71045
|
var byte = num & 255;
|
70987
71046
|
num = Math.floor(num / 256);
|
70988
|
-
if (flipped)
|
71047
|
+
if (flipped) {
|
70989
71048
|
buf[i - 1] = onesComp(byte);
|
70990
|
-
else if (byte === 0)
|
71049
|
+
} else if (byte === 0) {
|
70991
71050
|
buf[i - 1] = 0;
|
70992
|
-
else {
|
71051
|
+
} else {
|
70993
71052
|
flipped = true;
|
70994
71053
|
buf[i - 1] = twosComp(byte);
|
70995
71054
|
}
|
@@ -70998,10 +71057,12 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
70998
71057
|
var parse = (buf) => {
|
70999
71058
|
const pre = buf[0];
|
71000
71059
|
const value = pre === 128 ? pos(buf.slice(1, buf.length)) : pre === 255 ? twos(buf) : null;
|
71001
|
-
if (value === null)
|
71060
|
+
if (value === null) {
|
71002
71061
|
throw Error("invalid base256 encoding");
|
71003
|
-
|
71062
|
+
}
|
71063
|
+
if (!Number.isSafeInteger(value)) {
|
71004
71064
|
throw Error("parsed number outside of javascript safe integer range");
|
71065
|
+
}
|
71005
71066
|
return value;
|
71006
71067
|
};
|
71007
71068
|
var twos = (buf) => {
|
@@ -71011,16 +71072,17 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
71011
71072
|
for (var i = len - 1; i > -1; i--) {
|
71012
71073
|
var byte = buf[i];
|
71013
71074
|
var f;
|
71014
|
-
if (flipped)
|
71075
|
+
if (flipped) {
|
71015
71076
|
f = onesComp(byte);
|
71016
|
-
else if (byte === 0)
|
71077
|
+
} else if (byte === 0) {
|
71017
71078
|
f = byte;
|
71018
|
-
else {
|
71079
|
+
} else {
|
71019
71080
|
flipped = true;
|
71020
71081
|
f = twosComp(byte);
|
71021
71082
|
}
|
71022
|
-
if (f !== 0)
|
71083
|
+
if (f !== 0) {
|
71023
71084
|
sum -= f * Math.pow(256, len - i - 1);
|
71085
|
+
}
|
71024
71086
|
}
|
71025
71087
|
return sum;
|
71026
71088
|
};
|
@@ -71029,8 +71091,9 @@ var require_large_numbers = __commonJSMin((exports, module2) => {
|
|
71029
71091
|
var sum = 0;
|
71030
71092
|
for (var i = len - 1; i > -1; i--) {
|
71031
71093
|
var byte = buf[i];
|
71032
|
-
if (byte !== 0)
|
71094
|
+
if (byte !== 0) {
|
71033
71095
|
sum += byte * Math.pow(256, len - i - 1);
|
71096
|
+
}
|
71034
71097
|
}
|
71035
71098
|
return sum;
|
71036
71099
|
};
|
@@ -71069,16 +71132,19 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
71069
71132
|
this.devmin = 0;
|
71070
71133
|
this.atime = null;
|
71071
71134
|
this.ctime = null;
|
71072
|
-
if (Buffer.isBuffer(data))
|
71135
|
+
if (Buffer.isBuffer(data)) {
|
71073
71136
|
this.decode(data, off || 0, ex, gex);
|
71074
|
-
else if (data)
|
71137
|
+
} else if (data) {
|
71075
71138
|
this.set(data);
|
71139
|
+
}
|
71076
71140
|
}
|
71077
71141
|
decode(buf, off, ex, gex) {
|
71078
|
-
if (!off)
|
71142
|
+
if (!off) {
|
71079
71143
|
off = 0;
|
71080
|
-
|
71144
|
+
}
|
71145
|
+
if (!buf || !(buf.length >= off + 512)) {
|
71081
71146
|
throw new Error("need 512 bytes for header");
|
71147
|
+
}
|
71082
71148
|
this.path = decString(buf, off, 100);
|
71083
71149
|
this.mode = decNumber(buf, off + 100, 8);
|
71084
71150
|
this.uid = decNumber(buf, off + 108, 8);
|
@@ -71089,12 +71155,15 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
71089
71155
|
this[SLURP](ex);
|
71090
71156
|
this[SLURP](gex, true);
|
71091
71157
|
this[TYPE] = decString(buf, off + 156, 1);
|
71092
|
-
if (this[TYPE] === "")
|
71158
|
+
if (this[TYPE] === "") {
|
71093
71159
|
this[TYPE] = "0";
|
71094
|
-
|
71160
|
+
}
|
71161
|
+
if (this[TYPE] === "0" && this.path.slice(-1) === "/") {
|
71095
71162
|
this[TYPE] = "5";
|
71096
|
-
|
71163
|
+
}
|
71164
|
+
if (this[TYPE] === "5") {
|
71097
71165
|
this.size = 0;
|
71166
|
+
}
|
71098
71167
|
this.linkpath = decString(buf, off + 157, 100);
|
71099
71168
|
if (buf.slice(off + 257, off + 265).toString() === "ustar\x0000") {
|
71100
71169
|
this.uname = decString(buf, off + 265, 32);
|
@@ -71106,25 +71175,30 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
71106
71175
|
this.path = prefix + "/" + this.path;
|
71107
71176
|
} else {
|
71108
71177
|
const prefix = decString(buf, off + 345, 130);
|
71109
|
-
if (prefix)
|
71178
|
+
if (prefix) {
|
71110
71179
|
this.path = prefix + "/" + this.path;
|
71180
|
+
}
|
71111
71181
|
this.atime = decDate(buf, off + 476, 12);
|
71112
71182
|
this.ctime = decDate(buf, off + 488, 12);
|
71113
71183
|
}
|
71114
71184
|
}
|
71115
71185
|
let sum = 8 * 32;
|
71116
|
-
for (let i = off; i < off + 148; i++)
|
71186
|
+
for (let i = off; i < off + 148; i++) {
|
71117
71187
|
sum += buf[i];
|
71118
|
-
|
71188
|
+
}
|
71189
|
+
for (let i = off + 156; i < off + 512; i++) {
|
71119
71190
|
sum += buf[i];
|
71191
|
+
}
|
71120
71192
|
this.cksumValid = sum === this.cksum;
|
71121
|
-
if (this.cksum === null && sum === 8 * 32)
|
71193
|
+
if (this.cksum === null && sum === 8 * 32) {
|
71122
71194
|
this.nullBlock = true;
|
71195
|
+
}
|
71123
71196
|
}
|
71124
71197
|
[SLURP](ex, global2) {
|
71125
71198
|
for (const k in ex) {
|
71126
|
-
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path"))
|
71199
|
+
if (ex[k] !== null && ex[k] !== void 0 && !(global2 && k === "path")) {
|
71127
71200
|
this[k] = ex[k];
|
71201
|
+
}
|
71128
71202
|
}
|
71129
71203
|
}
|
71130
71204
|
encode(buf, off) {
|
@@ -71132,10 +71206,12 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
71132
71206
|
buf = this.block = Buffer.alloc(512);
|
71133
71207
|
off = 0;
|
71134
71208
|
}
|
71135
|
-
if (!off)
|
71209
|
+
if (!off) {
|
71136
71210
|
off = 0;
|
71137
|
-
|
71211
|
+
}
|
71212
|
+
if (!(buf.length >= off + 512)) {
|
71138
71213
|
throw new Error("need 512 bytes for header");
|
71214
|
+
}
|
71139
71215
|
const prefixSize = this.ctime || this.atime ? 130 : 155;
|
71140
71216
|
const split = splitPrefix(this.path || "", prefixSize);
|
71141
71217
|
const path = split[0];
|
@@ -71155,18 +71231,20 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
71155
71231
|
this.needPax = encNumber(buf, off + 329, 8, this.devmaj) || this.needPax;
|
71156
71232
|
this.needPax = encNumber(buf, off + 337, 8, this.devmin) || this.needPax;
|
71157
71233
|
this.needPax = encString(buf, off + 345, prefixSize, prefix) || this.needPax;
|
71158
|
-
if (buf[off + 475] !== 0)
|
71234
|
+
if (buf[off + 475] !== 0) {
|
71159
71235
|
this.needPax = encString(buf, off + 345, 155, prefix) || this.needPax;
|
71160
|
-
else {
|
71236
|
+
} else {
|
71161
71237
|
this.needPax = encString(buf, off + 345, 130, prefix) || this.needPax;
|
71162
71238
|
this.needPax = encDate(buf, off + 476, 12, this.atime) || this.needPax;
|
71163
71239
|
this.needPax = encDate(buf, off + 488, 12, this.ctime) || this.needPax;
|
71164
71240
|
}
|
71165
71241
|
let sum = 8 * 32;
|
71166
|
-
for (let i = off; i < off + 148; i++)
|
71242
|
+
for (let i = off; i < off + 148; i++) {
|
71167
71243
|
sum += buf[i];
|
71168
|
-
|
71244
|
+
}
|
71245
|
+
for (let i = off + 156; i < off + 512; i++) {
|
71169
71246
|
sum += buf[i];
|
71247
|
+
}
|
71170
71248
|
this.cksum = sum;
|
71171
71249
|
encNumber(buf, off + 148, 8, this.cksum);
|
71172
71250
|
this.cksumValid = true;
|
@@ -71174,8 +71252,9 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
71174
71252
|
}
|
71175
71253
|
set(data) {
|
71176
71254
|
for (const i in data) {
|
71177
|
-
if (data[i] !== null && data[i] !== void 0)
|
71255
|
+
if (data[i] !== null && data[i] !== void 0) {
|
71178
71256
|
this[i] = data[i];
|
71257
|
+
}
|
71179
71258
|
}
|
71180
71259
|
}
|
71181
71260
|
get type() {
|
@@ -71185,10 +71264,11 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
71185
71264
|
return this[TYPE];
|
71186
71265
|
}
|
71187
71266
|
set type(type) {
|
71188
|
-
if (types.code.has(type))
|
71267
|
+
if (types.code.has(type)) {
|
71189
71268
|
this[TYPE] = types.code.get(type);
|
71190
|
-
else
|
71269
|
+
} else {
|
71191
71270
|
this[TYPE] = type;
|
71271
|
+
}
|
71192
71272
|
}
|
71193
71273
|
};
|
71194
71274
|
var splitPrefix = (p, prefixSize) => {
|
@@ -71197,23 +71277,24 @@ var require_header = __commonJSMin((exports, module2) => {
|
|
71197
71277
|
let prefix = "";
|
71198
71278
|
let ret;
|
71199
71279
|
const root = pathModule.parse(p).root || ".";
|
71200
|
-
if (Buffer.byteLength(pp) < pathSize)
|
71280
|
+
if (Buffer.byteLength(pp) < pathSize) {
|
71201
71281
|
ret = [pp, prefix, false];
|
71202
|
-
else {
|
71282
|
+
} else {
|
71203
71283
|
prefix = pathModule.dirname(pp);
|
71204
71284
|
pp = pathModule.basename(pp);
|
71205
71285
|
do {
|
71206
|
-
if (Buffer.byteLength(pp) <= pathSize && Buffer.byteLength(prefix) <= prefixSize)
|
71286
|
+
if (Buffer.byteLength(pp) <= pathSize && Buffer.byteLength(prefix) <= prefixSize) {
|
71207
71287
|
ret = [pp, prefix, false];
|
71208
|
-
else if (Buffer.byteLength(pp) > pathSize && Buffer.byteLength(prefix) <= prefixSize)
|
71209
|
-
ret = [pp.
|
71210
|
-
else {
|
71288
|
+
} else if (Buffer.byteLength(pp) > pathSize && Buffer.byteLength(prefix) <= prefixSize) {
|
71289
|
+
ret = [pp.slice(0, pathSize - 1), prefix, true];
|
71290
|
+
} else {
|
71211
71291
|
pp = pathModule.join(pathModule.basename(prefix), pp);
|
71212
71292
|
prefix = pathModule.dirname(prefix);
|
71213
71293
|
}
|
71214
71294
|
} while (prefix !== root && !ret);
|
71215
|
-
if (!ret)
|
71216
|
-
ret = [p.
|
71295
|
+
if (!ret) {
|
71296
|
+
ret = [p.slice(0, pathSize - 1), "", true];
|
71297
|
+
}
|
71217
71298
|
}
|
71218
71299
|
return ret;
|
71219
71300
|
};
|
@@ -71261,13 +71342,15 @@ var require_pax = __commonJSMin((exports, module2) => {
|
|
71261
71342
|
}
|
71262
71343
|
encode() {
|
71263
71344
|
const body = this.encodeBody();
|
71264
|
-
if (body === "")
|
71345
|
+
if (body === "") {
|
71265
71346
|
return null;
|
71347
|
+
}
|
71266
71348
|
const bodyLen = Buffer.byteLength(body);
|
71267
71349
|
const bufLen = 512 * Math.ceil(1 + bodyLen / 512);
|
71268
71350
|
const buf = Buffer.allocUnsafe(bufLen);
|
71269
|
-
for (let i = 0; i < 512; i++)
|
71351
|
+
for (let i = 0; i < 512; i++) {
|
71270
71352
|
buf[i] = 0;
|
71353
|
+
}
|
71271
71354
|
new Header({
|
71272
71355
|
path: ("PaxHeader/" + path.basename(this.path)).slice(0, 99),
|
71273
71356
|
mode: this.mode || 420,
|
@@ -71285,22 +71368,25 @@ var require_pax = __commonJSMin((exports, module2) => {
|
|
71285
71368
|
ctime: this.ctime || null
|
71286
71369
|
}).encode(buf);
|
71287
71370
|
buf.write(body, 512, bodyLen, "utf8");
|
71288
|
-
for (let i = bodyLen + 512; i < buf.length; i++)
|
71371
|
+
for (let i = bodyLen + 512; i < buf.length; i++) {
|
71289
71372
|
buf[i] = 0;
|
71373
|
+
}
|
71290
71374
|
return buf;
|
71291
71375
|
}
|
71292
71376
|
encodeBody() {
|
71293
71377
|
return this.encodeField("path") + this.encodeField("ctime") + this.encodeField("atime") + this.encodeField("dev") + this.encodeField("ino") + this.encodeField("nlink") + this.encodeField("charset") + this.encodeField("comment") + this.encodeField("gid") + this.encodeField("gname") + this.encodeField("linkpath") + this.encodeField("mtime") + this.encodeField("size") + this.encodeField("uid") + this.encodeField("uname");
|
71294
71378
|
}
|
71295
71379
|
encodeField(field) {
|
71296
|
-
if (this[field] === null || this[field] === void 0)
|
71380
|
+
if (this[field] === null || this[field] === void 0) {
|
71297
71381
|
return "";
|
71382
|
+
}
|
71298
71383
|
const v = this[field] instanceof Date ? this[field].getTime() / 1e3 : this[field];
|
71299
71384
|
const s = " " + (field === "dev" || field === "ino" || field === "nlink" ? "SCHILY." : "") + field + "=" + v + "\n";
|
71300
71385
|
const byteLen = Buffer.byteLength(s);
|
71301
71386
|
let digits = Math.floor(Math.log(byteLen) / Math.log(10)) + 1;
|
71302
|
-
if (byteLen + digits >= Math.pow(10, digits))
|
71387
|
+
if (byteLen + digits >= Math.pow(10, digits)) {
|
71303
71388
|
digits += 1;
|
71389
|
+
}
|
71304
71390
|
const len = digits + byteLen;
|
71305
71391
|
return len + s;
|
71306
71392
|
}
|
@@ -71310,13 +71396,15 @@ var require_pax = __commonJSMin((exports, module2) => {
|
|
71310
71396
|
var parseKV = (string) => string.replace(/\n$/, "").split("\n").reduce(parseKVLine, /* @__PURE__ */ Object.create(null));
|
71311
71397
|
var parseKVLine = (set, line) => {
|
71312
71398
|
const n = parseInt(line, 10);
|
71313
|
-
if (n !== Buffer.byteLength(line) + 1)
|
71399
|
+
if (n !== Buffer.byteLength(line) + 1) {
|
71314
71400
|
return set;
|
71315
|
-
|
71401
|
+
}
|
71402
|
+
line = line.slice((n + " ").length);
|
71316
71403
|
const kv = line.split("=");
|
71317
71404
|
const k = kv.shift().replace(/^SCHILY\.(dev|ino|nlink)/, "$1");
|
71318
|
-
if (!k)
|
71405
|
+
if (!k) {
|
71319
71406
|
return set;
|
71407
|
+
}
|
71320
71408
|
const v = kv.join("=");
|
71321
71409
|
set[k] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(k) ? new Date(v * 1e3) : /^[0-9]+$/.test(v) ? +v : v;
|
71322
71410
|
return set;
|
@@ -71338,10 +71426,12 @@ var require_warn_mixin = __commonJSMin((exports, module2) => {
|
|
71338
71426
|
"use strict";
|
71339
71427
|
module2.exports = (Base) => class extends Base {
|
71340
71428
|
warn(code, message, data = {}) {
|
71341
|
-
if (this.file)
|
71429
|
+
if (this.file) {
|
71342
71430
|
data.file = this.file;
|
71343
|
-
|
71431
|
+
}
|
71432
|
+
if (this.cwd) {
|
71344
71433
|
data.cwd = this.cwd;
|
71434
|
+
}
|
71345
71435
|
data.code = message instanceof Error && message.code || code;
|
71346
71436
|
data.tarCode = code;
|
71347
71437
|
if (!this.strict && data.recoverable !== false) {
|
@@ -71350,10 +71440,11 @@ var require_warn_mixin = __commonJSMin((exports, module2) => {
|
|
71350
71440
|
message = message.message;
|
71351
71441
|
}
|
71352
71442
|
this.emit("warn", data.tarCode, message, data);
|
71353
|
-
} else if (message instanceof Error)
|
71443
|
+
} else if (message instanceof Error) {
|
71354
71444
|
this.emit("error", Object.assign(message, data));
|
71355
|
-
else
|
71445
|
+
} else {
|
71356
71446
|
this.emit("error", Object.assign(new Error(`${code}: ${message}`), data));
|
71447
|
+
}
|
71357
71448
|
}
|
71358
71449
|
};
|
71359
71450
|
});
|
@@ -71381,7 +71472,7 @@ var require_strip_absolute_path = __commonJSMin((exports, module2) => {
|
|
71381
71472
|
let parsed = parse(path);
|
71382
71473
|
while (isAbsolute(path) || parsed.root) {
|
71383
71474
|
const root = path.charAt(0) === "/" && path.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
71384
|
-
path = path.
|
71475
|
+
path = path.slice(root.length);
|
71385
71476
|
r += root;
|
71386
71477
|
parsed = parse(path);
|
71387
71478
|
}
|
@@ -71392,15 +71483,19 @@ var require_mode_fix = __commonJSMin((exports, module2) => {
|
|
71392
71483
|
"use strict";
|
71393
71484
|
module2.exports = (mode, isDir, portable) => {
|
71394
71485
|
mode &= 4095;
|
71395
|
-
if (portable)
|
71486
|
+
if (portable) {
|
71396
71487
|
mode = (mode | 384) & ~18;
|
71488
|
+
}
|
71397
71489
|
if (isDir) {
|
71398
|
-
if (mode & 256)
|
71490
|
+
if (mode & 256) {
|
71399
71491
|
mode |= 64;
|
71400
|
-
|
71492
|
+
}
|
71493
|
+
if (mode & 32) {
|
71401
71494
|
mode |= 8;
|
71402
|
-
|
71495
|
+
}
|
71496
|
+
if (mode & 4) {
|
71403
71497
|
mode |= 1;
|
71498
|
+
}
|
71404
71499
|
}
|
71405
71500
|
return mode;
|
71406
71501
|
};
|
@@ -71415,8 +71510,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71415
71510
|
var normPath = require_normalize_windows_path();
|
71416
71511
|
var stripSlash = require_strip_trailing_slashes();
|
71417
71512
|
var prefixPath = (path2, prefix) => {
|
71418
|
-
if (!prefix)
|
71513
|
+
if (!prefix) {
|
71419
71514
|
return normPath(path2);
|
71515
|
+
}
|
71420
71516
|
path2 = normPath(path2).replace(/^\.(\/|$)/, "");
|
71421
71517
|
return stripSlash(prefix) + "/" + path2;
|
71422
71518
|
};
|
@@ -71448,8 +71544,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71448
71544
|
constructor(p, opt) {
|
71449
71545
|
opt = opt || {};
|
71450
71546
|
super(opt);
|
71451
|
-
if (typeof p !== "string")
|
71547
|
+
if (typeof p !== "string") {
|
71452
71548
|
throw new TypeError("path is required");
|
71549
|
+
}
|
71453
71550
|
this.path = normPath(p);
|
71454
71551
|
this.portable = !!opt.portable;
|
71455
71552
|
this.myuid = process.getuid && process.getuid() || 0;
|
@@ -71472,8 +71569,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71472
71569
|
this.length = null;
|
71473
71570
|
this.pos = null;
|
71474
71571
|
this.remain = null;
|
71475
|
-
if (typeof opt.onwarn === "function")
|
71572
|
+
if (typeof opt.onwarn === "function") {
|
71476
71573
|
this.on("warn", opt.onwarn);
|
71574
|
+
}
|
71477
71575
|
let pathWarn = false;
|
71478
71576
|
if (!this.preservePaths) {
|
71479
71577
|
const [root, stripped] = stripAbsolutePath(this.path);
|
@@ -71488,36 +71586,41 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71488
71586
|
p = p.replace(/\\/g, "/");
|
71489
71587
|
}
|
71490
71588
|
this.absolute = normPath(opt.absolute || path.resolve(this.cwd, p));
|
71491
|
-
if (this.path === "")
|
71589
|
+
if (this.path === "") {
|
71492
71590
|
this.path = "./";
|
71591
|
+
}
|
71493
71592
|
if (pathWarn) {
|
71494
71593
|
this.warn("TAR_ENTRY_INFO", `stripping ${pathWarn} from absolute path`, {
|
71495
71594
|
entry: this,
|
71496
71595
|
path: pathWarn + this.path
|
71497
71596
|
});
|
71498
71597
|
}
|
71499
|
-
if (this.statCache.has(this.absolute))
|
71598
|
+
if (this.statCache.has(this.absolute)) {
|
71500
71599
|
this[ONLSTAT](this.statCache.get(this.absolute));
|
71501
|
-
else
|
71600
|
+
} else {
|
71502
71601
|
this[LSTAT]();
|
71602
|
+
}
|
71503
71603
|
}
|
71504
71604
|
emit(ev, ...data) {
|
71505
|
-
if (ev === "error")
|
71605
|
+
if (ev === "error") {
|
71506
71606
|
this[HAD_ERROR] = true;
|
71607
|
+
}
|
71507
71608
|
return super.emit(ev, ...data);
|
71508
71609
|
}
|
71509
71610
|
[LSTAT]() {
|
71510
71611
|
fs.lstat(this.absolute, (er, stat) => {
|
71511
|
-
if (er)
|
71612
|
+
if (er) {
|
71512
71613
|
return this.emit("error", er);
|
71614
|
+
}
|
71513
71615
|
this[ONLSTAT](stat);
|
71514
71616
|
});
|
71515
71617
|
}
|
71516
71618
|
[ONLSTAT](stat) {
|
71517
71619
|
this.statCache.set(this.absolute, stat);
|
71518
71620
|
this.stat = stat;
|
71519
|
-
if (!stat.isFile())
|
71621
|
+
if (!stat.isFile()) {
|
71520
71622
|
stat.size = 0;
|
71623
|
+
}
|
71521
71624
|
this.type = getType(stat);
|
71522
71625
|
this.emit("stat", stat);
|
71523
71626
|
this[PROCESS]();
|
@@ -71541,8 +71644,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71541
71644
|
return prefixPath(path2, this.prefix);
|
71542
71645
|
}
|
71543
71646
|
[HEADER]() {
|
71544
|
-
if (this.type === "Directory" && this.portable)
|
71647
|
+
if (this.type === "Directory" && this.portable) {
|
71545
71648
|
this.noMtime = true;
|
71649
|
+
}
|
71546
71650
|
this.header = new Header({
|
71547
71651
|
path: this[PREFIX](this.path),
|
71548
71652
|
linkpath: this.type === "Link" ? this[PREFIX](this.linkpath) : this.linkpath,
|
@@ -71575,16 +71679,18 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71575
71679
|
super.write(this.header.block);
|
71576
71680
|
}
|
71577
71681
|
[DIRECTORY]() {
|
71578
|
-
if (this.path.
|
71682
|
+
if (this.path.slice(-1) !== "/") {
|
71579
71683
|
this.path += "/";
|
71684
|
+
}
|
71580
71685
|
this.stat.size = 0;
|
71581
71686
|
this[HEADER]();
|
71582
71687
|
this.end();
|
71583
71688
|
}
|
71584
71689
|
[SYMLINK]() {
|
71585
71690
|
fs.readlink(this.absolute, (er, linkpath) => {
|
71586
|
-
if (er)
|
71691
|
+
if (er) {
|
71587
71692
|
return this.emit("error", er);
|
71693
|
+
}
|
71588
71694
|
this[ONREADLINK](linkpath);
|
71589
71695
|
});
|
71590
71696
|
}
|
@@ -71605,27 +71711,31 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71605
71711
|
const linkKey = this.stat.dev + ":" + this.stat.ino;
|
71606
71712
|
if (this.linkCache.has(linkKey)) {
|
71607
71713
|
const linkpath = this.linkCache.get(linkKey);
|
71608
|
-
if (linkpath.indexOf(this.cwd) === 0)
|
71714
|
+
if (linkpath.indexOf(this.cwd) === 0) {
|
71609
71715
|
return this[HARDLINK](linkpath);
|
71716
|
+
}
|
71610
71717
|
}
|
71611
71718
|
this.linkCache.set(linkKey, this.absolute);
|
71612
71719
|
}
|
71613
71720
|
this[HEADER]();
|
71614
|
-
if (this.stat.size === 0)
|
71721
|
+
if (this.stat.size === 0) {
|
71615
71722
|
return this.end();
|
71723
|
+
}
|
71616
71724
|
this[OPENFILE]();
|
71617
71725
|
}
|
71618
71726
|
[OPENFILE]() {
|
71619
71727
|
fs.open(this.absolute, "r", (er, fd) => {
|
71620
|
-
if (er)
|
71728
|
+
if (er) {
|
71621
71729
|
return this.emit("error", er);
|
71730
|
+
}
|
71622
71731
|
this[ONOPENFILE](fd);
|
71623
71732
|
});
|
71624
71733
|
}
|
71625
71734
|
[ONOPENFILE](fd) {
|
71626
71735
|
this.fd = fd;
|
71627
|
-
if (this[HAD_ERROR])
|
71736
|
+
if (this[HAD_ERROR]) {
|
71628
71737
|
return this[CLOSE]();
|
71738
|
+
}
|
71629
71739
|
this.blockLen = 512 * Math.ceil(this.stat.size / 512);
|
71630
71740
|
this.blockRemain = this.blockLen;
|
71631
71741
|
const bufLen = Math.min(this.blockLen, this.maxReadSize);
|
@@ -71672,10 +71782,11 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71672
71782
|
}
|
71673
71783
|
const writeBuf = this.offset === 0 && bytesRead === this.buf.length ? this.buf : this.buf.slice(this.offset, this.offset + bytesRead);
|
71674
71784
|
const flushed = this.write(writeBuf);
|
71675
|
-
if (!flushed)
|
71785
|
+
if (!flushed) {
|
71676
71786
|
this[AWAITDRAIN](() => this[ONDRAIN]());
|
71677
|
-
else
|
71787
|
+
} else {
|
71678
71788
|
this[ONDRAIN]();
|
71789
|
+
}
|
71679
71790
|
}
|
71680
71791
|
[AWAITDRAIN](cb) {
|
71681
71792
|
this.once("drain", cb);
|
@@ -71694,8 +71805,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71694
71805
|
}
|
71695
71806
|
[ONDRAIN]() {
|
71696
71807
|
if (!this.remain) {
|
71697
|
-
if (this.blockRemain)
|
71808
|
+
if (this.blockRemain) {
|
71698
71809
|
super.write(Buffer.alloc(this.blockRemain));
|
71810
|
+
}
|
71699
71811
|
return this[CLOSE]((er) => er ? this.emit("error", er) : this.end());
|
71700
71812
|
}
|
71701
71813
|
if (this.offset >= this.length) {
|
@@ -71752,8 +71864,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71752
71864
|
this.noMtime = !!opt.noMtime;
|
71753
71865
|
this.readEntry = readEntry;
|
71754
71866
|
this.type = readEntry.type;
|
71755
|
-
if (this.type === "Directory" && this.portable)
|
71867
|
+
if (this.type === "Directory" && this.portable) {
|
71756
71868
|
this.noMtime = true;
|
71869
|
+
}
|
71757
71870
|
this.prefix = opt.prefix || null;
|
71758
71871
|
this.path = normPath(readEntry.path);
|
71759
71872
|
this.mode = this[MODE](readEntry.mode);
|
@@ -71766,8 +71879,9 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71766
71879
|
this.atime = this.portable ? null : readEntry.atime;
|
71767
71880
|
this.ctime = this.portable ? null : readEntry.ctime;
|
71768
71881
|
this.linkpath = normPath(readEntry.linkpath);
|
71769
|
-
if (typeof opt.onwarn === "function")
|
71882
|
+
if (typeof opt.onwarn === "function") {
|
71770
71883
|
this.on("warn", opt.onwarn);
|
71884
|
+
}
|
71771
71885
|
let pathWarn = false;
|
71772
71886
|
if (!this.preservePaths) {
|
71773
71887
|
const [root, stripped] = stripAbsolutePath(this.path);
|
@@ -71824,14 +71938,16 @@ var require_write_entry = __commonJSMin((exports, module2) => {
|
|
71824
71938
|
}
|
71825
71939
|
write(data) {
|
71826
71940
|
const writeLen = data.length;
|
71827
|
-
if (writeLen > this.blockRemain)
|
71941
|
+
if (writeLen > this.blockRemain) {
|
71828
71942
|
throw new Error("writing more to entry than is appropriate");
|
71943
|
+
}
|
71829
71944
|
this.blockRemain -= writeLen;
|
71830
71945
|
return super.write(data);
|
71831
71946
|
}
|
71832
71947
|
end() {
|
71833
|
-
if (this.blockRemain)
|
71948
|
+
if (this.blockRemain) {
|
71834
71949
|
super.write(Buffer.alloc(this.blockRemain));
|
71950
|
+
}
|
71835
71951
|
return super.end();
|
71836
71952
|
}
|
71837
71953
|
});
|
@@ -72277,22 +72393,26 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
72277
72393
|
this.statCache = opt.statCache || /* @__PURE__ */ new Map();
|
72278
72394
|
this.readdirCache = opt.readdirCache || /* @__PURE__ */ new Map();
|
72279
72395
|
this[WRITEENTRYCLASS] = WriteEntry;
|
72280
|
-
if (typeof opt.onwarn === "function")
|
72396
|
+
if (typeof opt.onwarn === "function") {
|
72281
72397
|
this.on("warn", opt.onwarn);
|
72398
|
+
}
|
72282
72399
|
this.portable = !!opt.portable;
|
72283
72400
|
this.zip = null;
|
72284
72401
|
if (opt.gzip) {
|
72285
|
-
if (typeof opt.gzip !== "object")
|
72402
|
+
if (typeof opt.gzip !== "object") {
|
72286
72403
|
opt.gzip = {};
|
72287
|
-
|
72404
|
+
}
|
72405
|
+
if (this.portable) {
|
72288
72406
|
opt.gzip.portable = true;
|
72407
|
+
}
|
72289
72408
|
this.zip = new zlib.Gzip(opt.gzip);
|
72290
72409
|
this.zip.on("data", (chunk) => super.write(chunk));
|
72291
72410
|
this.zip.on("end", (_) => super.end());
|
72292
72411
|
this.zip.on("drain", (_) => this[ONDRAIN]());
|
72293
72412
|
this.on("resume", (_) => this.zip.resume());
|
72294
|
-
} else
|
72413
|
+
} else {
|
72295
72414
|
this.on("drain", this[ONDRAIN]);
|
72415
|
+
}
|
72296
72416
|
this.noDirRecurse = !!opt.noDirRecurse;
|
72297
72417
|
this.follow = !!opt.follow;
|
72298
72418
|
this.noMtime = !!opt.noMtime;
|
@@ -72312,26 +72432,29 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
72312
72432
|
return this;
|
72313
72433
|
}
|
72314
72434
|
end(path2) {
|
72315
|
-
if (path2)
|
72435
|
+
if (path2) {
|
72316
72436
|
this.write(path2);
|
72437
|
+
}
|
72317
72438
|
this[ENDED] = true;
|
72318
72439
|
this[PROCESS]();
|
72319
72440
|
return this;
|
72320
72441
|
}
|
72321
72442
|
write(path2) {
|
72322
|
-
if (this[ENDED])
|
72443
|
+
if (this[ENDED]) {
|
72323
72444
|
throw new Error("write after end");
|
72324
|
-
|
72445
|
+
}
|
72446
|
+
if (path2 instanceof ReadEntry) {
|
72325
72447
|
this[ADDTARENTRY](path2);
|
72326
|
-
else
|
72448
|
+
} else {
|
72327
72449
|
this[ADDFSENTRY](path2);
|
72450
|
+
}
|
72328
72451
|
return this.flowing;
|
72329
72452
|
}
|
72330
72453
|
[ADDTARENTRY](p) {
|
72331
72454
|
const absolute = normPath(path.resolve(this.cwd, p.path));
|
72332
|
-
if (!this.filter(p.path, p))
|
72455
|
+
if (!this.filter(p.path, p)) {
|
72333
72456
|
p.resume();
|
72334
|
-
else {
|
72457
|
+
} else {
|
72335
72458
|
const job = new PackJob(p.path, absolute, false);
|
72336
72459
|
job.entry = new WriteEntryTar(p, this[ENTRYOPT](job));
|
72337
72460
|
job.entry.on("end", (_) => this[JOBDONE](job));
|
@@ -72352,17 +72475,19 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
72352
72475
|
fs[stat](job.absolute, (er, stat2) => {
|
72353
72476
|
job.pending = false;
|
72354
72477
|
this[JOBS] -= 1;
|
72355
|
-
if (er)
|
72478
|
+
if (er) {
|
72356
72479
|
this.emit("error", er);
|
72357
|
-
else
|
72480
|
+
} else {
|
72358
72481
|
this[ONSTAT](job, stat2);
|
72482
|
+
}
|
72359
72483
|
});
|
72360
72484
|
}
|
72361
72485
|
[ONSTAT](job, stat) {
|
72362
72486
|
this.statCache.set(job.absolute, stat);
|
72363
72487
|
job.stat = stat;
|
72364
|
-
if (!this.filter(job.path, stat))
|
72488
|
+
if (!this.filter(job.path, stat)) {
|
72365
72489
|
job.ignore = true;
|
72490
|
+
}
|
72366
72491
|
this[PROCESS]();
|
72367
72492
|
}
|
72368
72493
|
[READDIR](job) {
|
@@ -72371,8 +72496,9 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
72371
72496
|
fs.readdir(job.absolute, (er, entries) => {
|
72372
72497
|
job.pending = false;
|
72373
72498
|
this[JOBS] -= 1;
|
72374
|
-
if (er)
|
72499
|
+
if (er) {
|
72375
72500
|
return this.emit("error", er);
|
72501
|
+
}
|
72376
72502
|
this[ONREADDIR](job, entries);
|
72377
72503
|
});
|
72378
72504
|
}
|
@@ -72382,8 +72508,9 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
72382
72508
|
this[PROCESS]();
|
72383
72509
|
}
|
72384
72510
|
[PROCESS]() {
|
72385
|
-
if (this[PROCESSING])
|
72511
|
+
if (this[PROCESSING]) {
|
72386
72512
|
return;
|
72513
|
+
}
|
72387
72514
|
this[PROCESSING] = true;
|
72388
72515
|
for (let w = this[QUEUE].head; w !== null && this[JOBS] < this.jobs; w = w.next) {
|
72389
72516
|
this[PROCESSJOB](w.value);
|
@@ -72395,9 +72522,9 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
72395
72522
|
}
|
72396
72523
|
this[PROCESSING] = false;
|
72397
72524
|
if (this[ENDED] && !this[QUEUE].length && this[JOBS] === 0) {
|
72398
|
-
if (this.zip)
|
72525
|
+
if (this.zip) {
|
72399
72526
|
this.zip.end(EOF);
|
72400
|
-
else {
|
72527
|
+
} else {
|
72401
72528
|
super.write(EOF);
|
72402
72529
|
super.end();
|
72403
72530
|
}
|
@@ -72412,38 +72539,46 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
72412
72539
|
this[PROCESS]();
|
72413
72540
|
}
|
72414
72541
|
[PROCESSJOB](job) {
|
72415
|
-
if (job.pending)
|
72542
|
+
if (job.pending) {
|
72416
72543
|
return;
|
72544
|
+
}
|
72417
72545
|
if (job.entry) {
|
72418
|
-
if (job === this[CURRENT] && !job.piped)
|
72546
|
+
if (job === this[CURRENT] && !job.piped) {
|
72419
72547
|
this[PIPE](job);
|
72548
|
+
}
|
72420
72549
|
return;
|
72421
72550
|
}
|
72422
72551
|
if (!job.stat) {
|
72423
|
-
if (this.statCache.has(job.absolute))
|
72552
|
+
if (this.statCache.has(job.absolute)) {
|
72424
72553
|
this[ONSTAT](job, this.statCache.get(job.absolute));
|
72425
|
-
else
|
72554
|
+
} else {
|
72426
72555
|
this[STAT](job);
|
72556
|
+
}
|
72427
72557
|
}
|
72428
|
-
if (!job.stat)
|
72558
|
+
if (!job.stat) {
|
72429
72559
|
return;
|
72430
|
-
|
72560
|
+
}
|
72561
|
+
if (job.ignore) {
|
72431
72562
|
return;
|
72563
|
+
}
|
72432
72564
|
if (!this.noDirRecurse && job.stat.isDirectory() && !job.readdir) {
|
72433
|
-
if (this.readdirCache.has(job.absolute))
|
72565
|
+
if (this.readdirCache.has(job.absolute)) {
|
72434
72566
|
this[ONREADDIR](job, this.readdirCache.get(job.absolute));
|
72435
|
-
else
|
72567
|
+
} else {
|
72436
72568
|
this[READDIR](job);
|
72437
|
-
|
72569
|
+
}
|
72570
|
+
if (!job.readdir) {
|
72438
72571
|
return;
|
72572
|
+
}
|
72439
72573
|
}
|
72440
72574
|
job.entry = this[ENTRY](job);
|
72441
72575
|
if (!job.entry) {
|
72442
72576
|
job.ignore = true;
|
72443
72577
|
return;
|
72444
72578
|
}
|
72445
|
-
if (job === this[CURRENT] && !job.piped)
|
72579
|
+
if (job === this[CURRENT] && !job.piped) {
|
72446
72580
|
this[PIPE](job);
|
72581
|
+
}
|
72447
72582
|
}
|
72448
72583
|
[ENTRYOPT](job) {
|
72449
72584
|
return {
|
@@ -72471,8 +72606,9 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
72471
72606
|
}
|
72472
72607
|
}
|
72473
72608
|
[ONDRAIN]() {
|
72474
|
-
if (this[CURRENT] && this[CURRENT].entry)
|
72609
|
+
if (this[CURRENT] && this[CURRENT].entry) {
|
72475
72610
|
this[CURRENT].entry.resume();
|
72611
|
+
}
|
72476
72612
|
}
|
72477
72613
|
[PIPE](job) {
|
72478
72614
|
job.piped = true;
|
@@ -72487,19 +72623,22 @@ var require_pack = __commonJSMin((exports, module2) => {
|
|
72487
72623
|
const zip = this.zip;
|
72488
72624
|
if (zip) {
|
72489
72625
|
source.on("data", (chunk) => {
|
72490
|
-
if (!zip.write(chunk))
|
72626
|
+
if (!zip.write(chunk)) {
|
72491
72627
|
source.pause();
|
72628
|
+
}
|
72492
72629
|
});
|
72493
72630
|
} else {
|
72494
72631
|
source.on("data", (chunk) => {
|
72495
|
-
if (!super.write(chunk))
|
72632
|
+
if (!super.write(chunk)) {
|
72496
72633
|
source.pause();
|
72634
|
+
}
|
72497
72635
|
});
|
72498
72636
|
}
|
72499
72637
|
}
|
72500
72638
|
pause() {
|
72501
|
-
if (this.zip)
|
72639
|
+
if (this.zip) {
|
72502
72640
|
this.zip.pause();
|
72641
|
+
}
|
72503
72642
|
return super.pause();
|
72504
72643
|
}
|
72505
72644
|
});
|
@@ -72911,6 +73050,7 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
72911
73050
|
var Entry = require_read_entry();
|
72912
73051
|
var Pax = require_pax();
|
72913
73052
|
var zlib = require_minizlib();
|
73053
|
+
var { nextTick } = __require("process");
|
72914
73054
|
var gzipHeader = Buffer.from([31, 139]);
|
72915
73055
|
var STATE = Symbol("state");
|
72916
73056
|
var WRITEENTRY = Symbol("writeEntry");
|
@@ -72941,6 +73081,7 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
72941
73081
|
var SAW_VALID_ENTRY = Symbol("sawValidEntry");
|
72942
73082
|
var SAW_NULL_BLOCK = Symbol("sawNullBlock");
|
72943
73083
|
var SAW_EOF = Symbol("sawEOF");
|
73084
|
+
var CLOSESTREAM = Symbol("closeStream");
|
72944
73085
|
var noop = (_) => true;
|
72945
73086
|
module2.exports = warner(class Parser extends EE {
|
72946
73087
|
constructor(opt) {
|
@@ -72953,14 +73094,13 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
72953
73094
|
this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format");
|
72954
73095
|
}
|
72955
73096
|
});
|
72956
|
-
if (opt.ondone)
|
73097
|
+
if (opt.ondone) {
|
72957
73098
|
this.on(DONE, opt.ondone);
|
72958
|
-
else {
|
73099
|
+
} else {
|
72959
73100
|
this.on(DONE, (_) => {
|
72960
73101
|
this.emit("prefinish");
|
72961
73102
|
this.emit("finish");
|
72962
73103
|
this.emit("end");
|
72963
|
-
this.emit("close");
|
72964
73104
|
});
|
72965
73105
|
}
|
72966
73106
|
this.strict = !!opt.strict;
|
@@ -72981,14 +73121,18 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
72981
73121
|
this[ABORTED] = false;
|
72982
73122
|
this[SAW_NULL_BLOCK] = false;
|
72983
73123
|
this[SAW_EOF] = false;
|
72984
|
-
|
73124
|
+
this.on("end", () => this[CLOSESTREAM]());
|
73125
|
+
if (typeof opt.onwarn === "function") {
|
72985
73126
|
this.on("warn", opt.onwarn);
|
72986
|
-
|
73127
|
+
}
|
73128
|
+
if (typeof opt.onentry === "function") {
|
72987
73129
|
this.on("entry", opt.onentry);
|
73130
|
+
}
|
72988
73131
|
}
|
72989
73132
|
[CONSUMEHEADER](chunk, position) {
|
72990
|
-
if (this[SAW_VALID_ENTRY] === null)
|
73133
|
+
if (this[SAW_VALID_ENTRY] === null) {
|
72991
73134
|
this[SAW_VALID_ENTRY] = false;
|
73135
|
+
}
|
72992
73136
|
let header;
|
72993
73137
|
try {
|
72994
73138
|
header = new Header(chunk, position, this[EX], this[GEX]);
|
@@ -72998,8 +73142,9 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
72998
73142
|
if (header.nullBlock) {
|
72999
73143
|
if (this[SAW_NULL_BLOCK]) {
|
73000
73144
|
this[SAW_EOF] = true;
|
73001
|
-
if (this[STATE] === "begin")
|
73145
|
+
if (this[STATE] === "begin") {
|
73002
73146
|
this[STATE] = "header";
|
73147
|
+
}
|
73003
73148
|
this[EMIT]("eof");
|
73004
73149
|
} else {
|
73005
73150
|
this[SAW_NULL_BLOCK] = true;
|
@@ -73007,27 +73152,29 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73007
73152
|
}
|
73008
73153
|
} else {
|
73009
73154
|
this[SAW_NULL_BLOCK] = false;
|
73010
|
-
if (!header.cksumValid)
|
73155
|
+
if (!header.cksumValid) {
|
73011
73156
|
this.warn("TAR_ENTRY_INVALID", "checksum failure", { header });
|
73012
|
-
else if (!header.path)
|
73157
|
+
} else if (!header.path) {
|
73013
73158
|
this.warn("TAR_ENTRY_INVALID", "path is required", { header });
|
73014
|
-
else {
|
73159
|
+
} else {
|
73015
73160
|
const type = header.type;
|
73016
|
-
if (/^(Symbolic)?Link$/.test(type) && !header.linkpath)
|
73161
|
+
if (/^(Symbolic)?Link$/.test(type) && !header.linkpath) {
|
73017
73162
|
this.warn("TAR_ENTRY_INVALID", "linkpath required", { header });
|
73018
|
-
else if (!/^(Symbolic)?Link$/.test(type) && header.linkpath)
|
73163
|
+
} else if (!/^(Symbolic)?Link$/.test(type) && header.linkpath) {
|
73019
73164
|
this.warn("TAR_ENTRY_INVALID", "linkpath forbidden", { header });
|
73020
|
-
else {
|
73165
|
+
} else {
|
73021
73166
|
const entry = this[WRITEENTRY] = new Entry(header, this[EX], this[GEX]);
|
73022
73167
|
if (!this[SAW_VALID_ENTRY]) {
|
73023
73168
|
if (entry.remain) {
|
73024
73169
|
const onend = () => {
|
73025
|
-
if (!entry.invalid)
|
73170
|
+
if (!entry.invalid) {
|
73026
73171
|
this[SAW_VALID_ENTRY] = true;
|
73172
|
+
}
|
73027
73173
|
};
|
73028
73174
|
entry.on("end", onend);
|
73029
|
-
} else
|
73175
|
+
} else {
|
73030
73176
|
this[SAW_VALID_ENTRY] = true;
|
73177
|
+
}
|
73031
73178
|
}
|
73032
73179
|
if (entry.meta) {
|
73033
73180
|
if (entry.size > this.maxMetaEntrySize) {
|
@@ -73048,31 +73195,35 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73048
73195
|
this[STATE] = entry.remain ? "ignore" : "header";
|
73049
73196
|
entry.resume();
|
73050
73197
|
} else {
|
73051
|
-
if (entry.remain)
|
73198
|
+
if (entry.remain) {
|
73052
73199
|
this[STATE] = "body";
|
73053
|
-
else {
|
73200
|
+
} else {
|
73054
73201
|
this[STATE] = "header";
|
73055
73202
|
entry.end();
|
73056
73203
|
}
|
73057
73204
|
if (!this[READENTRY]) {
|
73058
73205
|
this[QUEUE].push(entry);
|
73059
73206
|
this[NEXTENTRY]();
|
73060
|
-
} else
|
73207
|
+
} else {
|
73061
73208
|
this[QUEUE].push(entry);
|
73209
|
+
}
|
73062
73210
|
}
|
73063
73211
|
}
|
73064
73212
|
}
|
73065
73213
|
}
|
73066
73214
|
}
|
73067
73215
|
}
|
73216
|
+
[CLOSESTREAM]() {
|
73217
|
+
nextTick(() => this.emit("close"));
|
73218
|
+
}
|
73068
73219
|
[PROCESSENTRY](entry) {
|
73069
73220
|
let go = true;
|
73070
73221
|
if (!entry) {
|
73071
73222
|
this[READENTRY] = null;
|
73072
73223
|
go = false;
|
73073
|
-
} else if (Array.isArray(entry))
|
73224
|
+
} else if (Array.isArray(entry)) {
|
73074
73225
|
this.emit.apply(this, entry);
|
73075
|
-
else {
|
73226
|
+
} else {
|
73076
73227
|
this[READENTRY] = entry;
|
73077
73228
|
this.emit("entry", entry);
|
73078
73229
|
if (!entry.emittedEnd) {
|
@@ -73089,10 +73240,12 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73089
73240
|
const re = this[READENTRY];
|
73090
73241
|
const drainNow = !re || re.flowing || re.size === re.remain;
|
73091
73242
|
if (drainNow) {
|
73092
|
-
if (!this[WRITING])
|
73243
|
+
if (!this[WRITING]) {
|
73093
73244
|
this.emit("drain");
|
73094
|
-
|
73245
|
+
}
|
73246
|
+
} else {
|
73095
73247
|
re.once("drain", (_) => this.emit("drain"));
|
73248
|
+
}
|
73096
73249
|
}
|
73097
73250
|
}
|
73098
73251
|
[CONSUMEBODY](chunk, position) {
|
@@ -73110,15 +73263,17 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73110
73263
|
[CONSUMEMETA](chunk, position) {
|
73111
73264
|
const entry = this[WRITEENTRY];
|
73112
73265
|
const ret = this[CONSUMEBODY](chunk, position);
|
73113
|
-
if (!this[WRITEENTRY])
|
73266
|
+
if (!this[WRITEENTRY]) {
|
73114
73267
|
this[EMITMETA](entry);
|
73268
|
+
}
|
73115
73269
|
return ret;
|
73116
73270
|
}
|
73117
73271
|
[EMIT](ev, data, extra) {
|
73118
|
-
if (!this[QUEUE].length && !this[READENTRY])
|
73272
|
+
if (!this[QUEUE].length && !this[READENTRY]) {
|
73119
73273
|
this.emit(ev, data, extra);
|
73120
|
-
else
|
73274
|
+
} else {
|
73121
73275
|
this[QUEUE].push([ev, data, extra]);
|
73276
|
+
}
|
73122
73277
|
}
|
73123
73278
|
[EMITMETA](entry) {
|
73124
73279
|
this[EMIT]("meta", this[META]);
|
@@ -73149,8 +73304,9 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73149
73304
|
this.warn("TAR_ABORT", error, { recoverable: false });
|
73150
73305
|
}
|
73151
73306
|
write(chunk) {
|
73152
|
-
if (this[ABORTED])
|
73307
|
+
if (this[ABORTED]) {
|
73153
73308
|
return;
|
73309
|
+
}
|
73154
73310
|
if (this[UNZIP] === null && chunk) {
|
73155
73311
|
if (this[BUFFER]) {
|
73156
73312
|
chunk = Buffer.concat([this[BUFFER], chunk]);
|
@@ -73161,8 +73317,9 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73161
73317
|
return true;
|
73162
73318
|
}
|
73163
73319
|
for (let i = 0; this[UNZIP] === null && i < gzipHeader.length; i++) {
|
73164
|
-
if (chunk[i] !== gzipHeader[i])
|
73320
|
+
if (chunk[i] !== gzipHeader[i]) {
|
73165
73321
|
this[UNZIP] = false;
|
73322
|
+
}
|
73166
73323
|
}
|
73167
73324
|
if (this[UNZIP] === null) {
|
73168
73325
|
const ended = this[ENDED];
|
@@ -73181,19 +73338,22 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73181
73338
|
}
|
73182
73339
|
}
|
73183
73340
|
this[WRITING] = true;
|
73184
|
-
if (this[UNZIP])
|
73341
|
+
if (this[UNZIP]) {
|
73185
73342
|
this[UNZIP].write(chunk);
|
73186
|
-
else
|
73343
|
+
} else {
|
73187
73344
|
this[CONSUMECHUNK](chunk);
|
73345
|
+
}
|
73188
73346
|
this[WRITING] = false;
|
73189
73347
|
const ret = this[QUEUE].length ? false : this[READENTRY] ? this[READENTRY].flowing : true;
|
73190
|
-
if (!ret && !this[QUEUE].length)
|
73348
|
+
if (!ret && !this[QUEUE].length) {
|
73191
73349
|
this[READENTRY].once("drain", (_) => this.emit("drain"));
|
73350
|
+
}
|
73192
73351
|
return ret;
|
73193
73352
|
}
|
73194
73353
|
[BUFFERCONCAT](c) {
|
73195
|
-
if (c && !this[ABORTED])
|
73354
|
+
if (c && !this[ABORTED]) {
|
73196
73355
|
this[BUFFER] = this[BUFFER] ? Buffer.concat([this[BUFFER], c]) : c;
|
73356
|
+
}
|
73197
73357
|
}
|
73198
73358
|
[MAYBEEND]() {
|
73199
73359
|
if (this[ENDED] && !this[EMITTEDEND] && !this[ABORTED] && !this[CONSUMING]) {
|
@@ -73202,27 +73362,29 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73202
73362
|
if (entry && entry.blockRemain) {
|
73203
73363
|
const have = this[BUFFER] ? this[BUFFER].length : 0;
|
73204
73364
|
this.warn("TAR_BAD_ARCHIVE", `Truncated input (needed ${entry.blockRemain} more bytes, only ${have} available)`, { entry });
|
73205
|
-
if (this[BUFFER])
|
73365
|
+
if (this[BUFFER]) {
|
73206
73366
|
entry.write(this[BUFFER]);
|
73367
|
+
}
|
73207
73368
|
entry.end();
|
73208
73369
|
}
|
73209
73370
|
this[EMIT](DONE);
|
73210
73371
|
}
|
73211
73372
|
}
|
73212
73373
|
[CONSUMECHUNK](chunk) {
|
73213
|
-
if (this[CONSUMING])
|
73374
|
+
if (this[CONSUMING]) {
|
73214
73375
|
this[BUFFERCONCAT](chunk);
|
73215
|
-
else if (!chunk && !this[BUFFER])
|
73376
|
+
} else if (!chunk && !this[BUFFER]) {
|
73216
73377
|
this[MAYBEEND]();
|
73217
|
-
else {
|
73378
|
+
} else {
|
73218
73379
|
this[CONSUMING] = true;
|
73219
73380
|
if (this[BUFFER]) {
|
73220
73381
|
this[BUFFERCONCAT](chunk);
|
73221
73382
|
const c = this[BUFFER];
|
73222
73383
|
this[BUFFER] = null;
|
73223
73384
|
this[CONSUMECHUNKSUB](c);
|
73224
|
-
} else
|
73385
|
+
} else {
|
73225
73386
|
this[CONSUMECHUNKSUB](chunk);
|
73387
|
+
}
|
73226
73388
|
while (this[BUFFER] && this[BUFFER].length >= 512 && !this[ABORTED] && !this[SAW_EOF]) {
|
73227
73389
|
const c = this[BUFFER];
|
73228
73390
|
this[BUFFER] = null;
|
@@ -73230,8 +73392,9 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73230
73392
|
}
|
73231
73393
|
this[CONSUMING] = false;
|
73232
73394
|
}
|
73233
|
-
if (!this[BUFFER] || this[ENDED])
|
73395
|
+
if (!this[BUFFER] || this[ENDED]) {
|
73234
73396
|
this[MAYBEEND]();
|
73397
|
+
}
|
73235
73398
|
}
|
73236
73399
|
[CONSUMECHUNKSUB](chunk) {
|
73237
73400
|
let position = 0;
|
@@ -73255,17 +73418,18 @@ var require_parse = __commonJSMin((exports, module2) => {
|
|
73255
73418
|
}
|
73256
73419
|
}
|
73257
73420
|
if (position < length) {
|
73258
|
-
if (this[BUFFER])
|
73421
|
+
if (this[BUFFER]) {
|
73259
73422
|
this[BUFFER] = Buffer.concat([chunk.slice(position), this[BUFFER]]);
|
73260
|
-
else
|
73423
|
+
} else {
|
73261
73424
|
this[BUFFER] = chunk.slice(position);
|
73425
|
+
}
|
73262
73426
|
}
|
73263
73427
|
}
|
73264
73428
|
end(chunk) {
|
73265
73429
|
if (!this[ABORTED]) {
|
73266
|
-
if (this[UNZIP])
|
73430
|
+
if (this[UNZIP]) {
|
73267
73431
|
this[UNZIP].end(chunk);
|
73268
|
-
else {
|
73432
|
+
} else {
|
73269
73433
|
this[ENDED] = true;
|
73270
73434
|
this.write(chunk);
|
73271
73435
|
}
|
@@ -73282,25 +73446,32 @@ var require_list = __commonJSMin((exports, module2) => {
|
|
73282
73446
|
var path = __require("path");
|
73283
73447
|
var stripSlash = require_strip_trailing_slashes();
|
73284
73448
|
module2.exports = (opt_, files, cb) => {
|
73285
|
-
if (typeof opt_ === "function")
|
73449
|
+
if (typeof opt_ === "function") {
|
73286
73450
|
cb = opt_, files = null, opt_ = {};
|
73287
|
-
else if (Array.isArray(opt_))
|
73451
|
+
} else if (Array.isArray(opt_)) {
|
73288
73452
|
files = opt_, opt_ = {};
|
73289
|
-
|
73453
|
+
}
|
73454
|
+
if (typeof files === "function") {
|
73290
73455
|
cb = files, files = null;
|
73291
|
-
|
73456
|
+
}
|
73457
|
+
if (!files) {
|
73292
73458
|
files = [];
|
73293
|
-
else
|
73459
|
+
} else {
|
73294
73460
|
files = Array.from(files);
|
73461
|
+
}
|
73295
73462
|
const opt = hlo(opt_);
|
73296
|
-
if (opt.sync && typeof cb === "function")
|
73463
|
+
if (opt.sync && typeof cb === "function") {
|
73297
73464
|
throw new TypeError("callback not supported for sync tar functions");
|
73298
|
-
|
73465
|
+
}
|
73466
|
+
if (!opt.file && typeof cb === "function") {
|
73299
73467
|
throw new TypeError("callback only supported with file option");
|
73300
|
-
|
73468
|
+
}
|
73469
|
+
if (files.length) {
|
73301
73470
|
filesFilter(opt, files);
|
73302
|
-
|
73471
|
+
}
|
73472
|
+
if (!opt.noResume) {
|
73303
73473
|
onentryFunction(opt);
|
73474
|
+
}
|
73304
73475
|
return opt.file && opt.sync ? listFileSync(opt) : opt.file ? listFile(opt, cb) : list(opt);
|
73305
73476
|
};
|
73306
73477
|
var onentryFunction = (opt) => {
|
@@ -73329,9 +73500,9 @@ var require_list = __commonJSMin((exports, module2) => {
|
|
73329
73500
|
try {
|
73330
73501
|
const stat = fs.statSync(file);
|
73331
73502
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
73332
|
-
if (stat.size < readSize)
|
73503
|
+
if (stat.size < readSize) {
|
73333
73504
|
p.end(fs.readFileSync(file));
|
73334
|
-
else {
|
73505
|
+
} else {
|
73335
73506
|
let pos = 0;
|
73336
73507
|
const buf = Buffer.allocUnsafe(readSize);
|
73337
73508
|
fd = fs.openSync(file, "r");
|
@@ -73360,9 +73531,9 @@ var require_list = __commonJSMin((exports, module2) => {
|
|
73360
73531
|
parse.on("error", reject);
|
73361
73532
|
parse.on("end", resolve);
|
73362
73533
|
fs.stat(file, (er, stat) => {
|
73363
|
-
if (er)
|
73534
|
+
if (er) {
|
73364
73535
|
reject(er);
|
73365
|
-
else {
|
73536
|
+
} else {
|
73366
73537
|
const stream = new fsm.ReadStream(file, {
|
73367
73538
|
readSize,
|
73368
73539
|
size: stat.size
|
@@ -73384,18 +73555,23 @@ var require_create = __commonJSMin((exports, module2) => {
|
|
73384
73555
|
var t = require_list();
|
73385
73556
|
var path = __require("path");
|
73386
73557
|
module2.exports = (opt_, files, cb) => {
|
73387
|
-
if (typeof files === "function")
|
73558
|
+
if (typeof files === "function") {
|
73388
73559
|
cb = files;
|
73389
|
-
|
73560
|
+
}
|
73561
|
+
if (Array.isArray(opt_)) {
|
73390
73562
|
files = opt_, opt_ = {};
|
73391
|
-
|
73563
|
+
}
|
73564
|
+
if (!files || !Array.isArray(files) || !files.length) {
|
73392
73565
|
throw new TypeError("no files or directories specified");
|
73566
|
+
}
|
73393
73567
|
files = Array.from(files);
|
73394
73568
|
const opt = hlo(opt_);
|
73395
|
-
if (opt.sync && typeof cb === "function")
|
73569
|
+
if (opt.sync && typeof cb === "function") {
|
73396
73570
|
throw new TypeError("callback not supported for sync tar functions");
|
73397
|
-
|
73571
|
+
}
|
73572
|
+
if (!opt.file && typeof cb === "function") {
|
73398
73573
|
throw new TypeError("callback only supported with file option");
|
73574
|
+
}
|
73399
73575
|
return opt.file && opt.sync ? createFileSync(opt, files) : opt.file ? createFile(opt, files, cb) : opt.sync ? createSync(opt, files) : create(opt, files);
|
73400
73576
|
};
|
73401
73577
|
var createFileSync = (opt, files) => {
|
@@ -73424,13 +73600,14 @@ var require_create = __commonJSMin((exports, module2) => {
|
|
73424
73600
|
files.forEach((file) => {
|
73425
73601
|
if (file.charAt(0) === "@") {
|
73426
73602
|
t({
|
73427
|
-
file: path.resolve(p.cwd, file.
|
73603
|
+
file: path.resolve(p.cwd, file.slice(1)),
|
73428
73604
|
sync: true,
|
73429
73605
|
noResume: true,
|
73430
73606
|
onentry: (entry) => p.add(entry)
|
73431
73607
|
});
|
73432
|
-
} else
|
73608
|
+
} else {
|
73433
73609
|
p.add(file);
|
73610
|
+
}
|
73434
73611
|
});
|
73435
73612
|
p.end();
|
73436
73613
|
};
|
@@ -73439,12 +73616,13 @@ var require_create = __commonJSMin((exports, module2) => {
|
|
73439
73616
|
const file = files.shift();
|
73440
73617
|
if (file.charAt(0) === "@") {
|
73441
73618
|
return t({
|
73442
|
-
file: path.resolve(p.cwd, file.
|
73619
|
+
file: path.resolve(p.cwd, file.slice(1)),
|
73443
73620
|
noResume: true,
|
73444
73621
|
onentry: (entry) => p.add(entry)
|
73445
73622
|
}).then((_) => addFilesAsync(p, files));
|
73446
|
-
} else
|
73623
|
+
} else {
|
73447
73624
|
p.add(file);
|
73625
|
+
}
|
73448
73626
|
}
|
73449
73627
|
p.end();
|
73450
73628
|
};
|
@@ -73470,12 +73648,15 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
73470
73648
|
var Header = require_header();
|
73471
73649
|
module2.exports = (opt_, files, cb) => {
|
73472
73650
|
const opt = hlo(opt_);
|
73473
|
-
if (!opt.file)
|
73651
|
+
if (!opt.file) {
|
73474
73652
|
throw new TypeError("file is required");
|
73475
|
-
|
73653
|
+
}
|
73654
|
+
if (opt.gzip) {
|
73476
73655
|
throw new TypeError("cannot append to compressed archives");
|
73477
|
-
|
73656
|
+
}
|
73657
|
+
if (!files || !Array.isArray(files) || !files.length) {
|
73478
73658
|
throw new TypeError("no files or directories specified");
|
73659
|
+
}
|
73479
73660
|
files = Array.from(files);
|
73480
73661
|
return opt.sync ? replaceSync(opt, files) : replace(opt, files, cb);
|
73481
73662
|
};
|
@@ -73488,10 +73669,11 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
73488
73669
|
try {
|
73489
73670
|
fd = fs.openSync(opt.file, "r+");
|
73490
73671
|
} catch (er) {
|
73491
|
-
if (er.code === "ENOENT")
|
73672
|
+
if (er.code === "ENOENT") {
|
73492
73673
|
fd = fs.openSync(opt.file, "w+");
|
73493
|
-
else
|
73674
|
+
} else {
|
73494
73675
|
throw er;
|
73676
|
+
}
|
73495
73677
|
}
|
73496
73678
|
const st = fs.fstatSync(fd);
|
73497
73679
|
const headBuf = Buffer.alloc(512);
|
@@ -73499,20 +73681,25 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
73499
73681
|
for (position = 0; position < st.size; position += 512) {
|
73500
73682
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
73501
73683
|
bytes = fs.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos);
|
73502
|
-
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139)
|
73684
|
+
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) {
|
73503
73685
|
throw new Error("cannot append to compressed archives");
|
73504
|
-
|
73686
|
+
}
|
73687
|
+
if (!bytes) {
|
73505
73688
|
break POSITION;
|
73689
|
+
}
|
73506
73690
|
}
|
73507
73691
|
const h = new Header(headBuf);
|
73508
|
-
if (!h.cksumValid)
|
73692
|
+
if (!h.cksumValid) {
|
73509
73693
|
break;
|
73694
|
+
}
|
73510
73695
|
const entryBlockSize = 512 * Math.ceil(h.size / 512);
|
73511
|
-
if (position + entryBlockSize + 512 > st.size)
|
73696
|
+
if (position + entryBlockSize + 512 > st.size) {
|
73512
73697
|
break;
|
73698
|
+
}
|
73513
73699
|
position += entryBlockSize;
|
73514
|
-
if (opt.mtimeCache)
|
73700
|
+
if (opt.mtimeCache) {
|
73515
73701
|
opt.mtimeCache.set(h.path, h.mtime);
|
73702
|
+
}
|
73516
73703
|
}
|
73517
73704
|
threw = false;
|
73518
73705
|
streamSync(opt, p, position, fd, files);
|
@@ -73538,38 +73725,47 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
73538
73725
|
const p = new Pack(opt);
|
73539
73726
|
const getPos = (fd, size, cb_) => {
|
73540
73727
|
const cb2 = (er, pos) => {
|
73541
|
-
if (er)
|
73728
|
+
if (er) {
|
73542
73729
|
fs.close(fd, (_) => cb_(er));
|
73543
|
-
else
|
73730
|
+
} else {
|
73544
73731
|
cb_(null, pos);
|
73732
|
+
}
|
73545
73733
|
};
|
73546
73734
|
let position = 0;
|
73547
|
-
if (size === 0)
|
73735
|
+
if (size === 0) {
|
73548
73736
|
return cb2(null, 0);
|
73737
|
+
}
|
73549
73738
|
let bufPos = 0;
|
73550
73739
|
const headBuf = Buffer.alloc(512);
|
73551
73740
|
const onread = (er, bytes) => {
|
73552
|
-
if (er)
|
73741
|
+
if (er) {
|
73553
73742
|
return cb2(er);
|
73743
|
+
}
|
73554
73744
|
bufPos += bytes;
|
73555
73745
|
if (bufPos < 512 && bytes) {
|
73556
73746
|
return fs.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread);
|
73557
73747
|
}
|
73558
|
-
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139)
|
73748
|
+
if (position === 0 && headBuf[0] === 31 && headBuf[1] === 139) {
|
73559
73749
|
return cb2(new Error("cannot append to compressed archives"));
|
73560
|
-
|
73750
|
+
}
|
73751
|
+
if (bufPos < 512) {
|
73561
73752
|
return cb2(null, position);
|
73753
|
+
}
|
73562
73754
|
const h = new Header(headBuf);
|
73563
|
-
if (!h.cksumValid)
|
73755
|
+
if (!h.cksumValid) {
|
73564
73756
|
return cb2(null, position);
|
73757
|
+
}
|
73565
73758
|
const entryBlockSize = 512 * Math.ceil(h.size / 512);
|
73566
|
-
if (position + entryBlockSize + 512 > size)
|
73759
|
+
if (position + entryBlockSize + 512 > size) {
|
73567
73760
|
return cb2(null, position);
|
73761
|
+
}
|
73568
73762
|
position += entryBlockSize + 512;
|
73569
|
-
if (position >= size)
|
73763
|
+
if (position >= size) {
|
73570
73764
|
return cb2(null, position);
|
73571
|
-
|
73765
|
+
}
|
73766
|
+
if (opt.mtimeCache) {
|
73572
73767
|
opt.mtimeCache.set(h.path, h.mtime);
|
73768
|
+
}
|
73573
73769
|
bufPos = 0;
|
73574
73770
|
fs.read(fd, headBuf, 0, 512, position, onread);
|
73575
73771
|
};
|
@@ -73583,14 +73779,17 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
73583
73779
|
flag = "w+";
|
73584
73780
|
return fs.open(opt.file, flag, onopen);
|
73585
73781
|
}
|
73586
|
-
if (er)
|
73782
|
+
if (er) {
|
73587
73783
|
return reject(er);
|
73784
|
+
}
|
73588
73785
|
fs.fstat(fd, (er2, st) => {
|
73589
|
-
if (er2)
|
73786
|
+
if (er2) {
|
73590
73787
|
return fs.close(fd, () => reject(er2));
|
73788
|
+
}
|
73591
73789
|
getPos(fd, st.size, (er3, position) => {
|
73592
|
-
if (er3)
|
73790
|
+
if (er3) {
|
73593
73791
|
return reject(er3);
|
73792
|
+
}
|
73594
73793
|
const stream = new fsm.WriteStream(opt.file, {
|
73595
73794
|
fd,
|
73596
73795
|
start: position
|
@@ -73610,13 +73809,14 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
73610
73809
|
files.forEach((file) => {
|
73611
73810
|
if (file.charAt(0) === "@") {
|
73612
73811
|
t({
|
73613
|
-
file: path.resolve(p.cwd, file.
|
73812
|
+
file: path.resolve(p.cwd, file.slice(1)),
|
73614
73813
|
sync: true,
|
73615
73814
|
noResume: true,
|
73616
73815
|
onentry: (entry) => p.add(entry)
|
73617
73816
|
});
|
73618
|
-
} else
|
73817
|
+
} else {
|
73619
73818
|
p.add(file);
|
73819
|
+
}
|
73620
73820
|
});
|
73621
73821
|
p.end();
|
73622
73822
|
};
|
@@ -73625,12 +73825,13 @@ var require_replace = __commonJSMin((exports, module2) => {
|
|
73625
73825
|
const file = files.shift();
|
73626
73826
|
if (file.charAt(0) === "@") {
|
73627
73827
|
return t({
|
73628
|
-
file: path.resolve(p.cwd, file.
|
73828
|
+
file: path.resolve(p.cwd, file.slice(1)),
|
73629
73829
|
noResume: true,
|
73630
73830
|
onentry: (entry) => p.add(entry)
|
73631
73831
|
}).then((_) => addFilesAsync(p, files));
|
73632
|
-
} else
|
73832
|
+
} else {
|
73633
73833
|
p.add(file);
|
73834
|
+
}
|
73634
73835
|
}
|
73635
73836
|
p.end();
|
73636
73837
|
};
|
@@ -73641,20 +73842,24 @@ var require_update = __commonJSMin((exports, module2) => {
|
|
73641
73842
|
var r = require_replace();
|
73642
73843
|
module2.exports = (opt_, files, cb) => {
|
73643
73844
|
const opt = hlo(opt_);
|
73644
|
-
if (!opt.file)
|
73845
|
+
if (!opt.file) {
|
73645
73846
|
throw new TypeError("file is required");
|
73646
|
-
|
73847
|
+
}
|
73848
|
+
if (opt.gzip) {
|
73647
73849
|
throw new TypeError("cannot append to compressed archives");
|
73648
|
-
|
73850
|
+
}
|
73851
|
+
if (!files || !Array.isArray(files) || !files.length) {
|
73649
73852
|
throw new TypeError("no files or directories specified");
|
73853
|
+
}
|
73650
73854
|
files = Array.from(files);
|
73651
73855
|
mtimeFilter(opt);
|
73652
73856
|
return r(opt, files, cb);
|
73653
73857
|
};
|
73654
73858
|
var mtimeFilter = (opt) => {
|
73655
73859
|
const filter = opt.filter;
|
73656
|
-
if (!opt.mtimeCache)
|
73860
|
+
if (!opt.mtimeCache) {
|
73657
73861
|
opt.mtimeCache = /* @__PURE__ */ new Map();
|
73862
|
+
}
|
73658
73863
|
opt.filter = filter ? (path, stat) => filter(path, stat) && !(opt.mtimeCache.get(path) > stat.mtime) : (path, stat) => !(opt.mtimeCache.get(path) > stat.mtime);
|
73659
73864
|
};
|
73660
73865
|
});
|
@@ -74006,8 +74211,9 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
74006
74211
|
var cSet = (cache, key, val) => cache.set(normPath(key), val);
|
74007
74212
|
var checkCwd = (dir, cb) => {
|
74008
74213
|
fs.stat(dir, (er, st) => {
|
74009
|
-
if (er || !st.isDirectory())
|
74214
|
+
if (er || !st.isDirectory()) {
|
74010
74215
|
er = new CwdError(dir, er && er.code || "ENOTDIR");
|
74216
|
+
}
|
74011
74217
|
cb(er);
|
74012
74218
|
});
|
74013
74219
|
};
|
@@ -74024,35 +74230,41 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
74024
74230
|
const cache = opt.cache;
|
74025
74231
|
const cwd = normPath(opt.cwd);
|
74026
74232
|
const done = (er, created) => {
|
74027
|
-
if (er)
|
74233
|
+
if (er) {
|
74028
74234
|
cb(er);
|
74029
|
-
else {
|
74235
|
+
} else {
|
74030
74236
|
cSet(cache, dir, true);
|
74031
|
-
if (created && doChown)
|
74237
|
+
if (created && doChown) {
|
74032
74238
|
chownr(created, uid, gid, (er2) => done(er2));
|
74033
|
-
else if (needChmod)
|
74239
|
+
} else if (needChmod) {
|
74034
74240
|
fs.chmod(dir, mode, cb);
|
74035
|
-
else
|
74241
|
+
} else {
|
74036
74242
|
cb();
|
74243
|
+
}
|
74037
74244
|
}
|
74038
74245
|
};
|
74039
|
-
if (cache && cGet(cache, dir) === true)
|
74246
|
+
if (cache && cGet(cache, dir) === true) {
|
74040
74247
|
return done();
|
74041
|
-
|
74248
|
+
}
|
74249
|
+
if (dir === cwd) {
|
74042
74250
|
return checkCwd(dir, done);
|
74043
|
-
|
74251
|
+
}
|
74252
|
+
if (preserve) {
|
74044
74253
|
return mkdirp(dir, { mode }).then((made) => done(null, made), done);
|
74254
|
+
}
|
74045
74255
|
const sub = normPath(path.relative(cwd, dir));
|
74046
74256
|
const parts = sub.split("/");
|
74047
74257
|
mkdir_(cwd, parts, mode, cache, unlink, cwd, null, done);
|
74048
74258
|
};
|
74049
74259
|
var mkdir_ = (base, parts, mode, cache, unlink, cwd, created, cb) => {
|
74050
|
-
if (!parts.length)
|
74260
|
+
if (!parts.length) {
|
74051
74261
|
return cb(null, created);
|
74262
|
+
}
|
74052
74263
|
const p = parts.shift();
|
74053
74264
|
const part = normPath(path.resolve(base + "/" + p));
|
74054
|
-
if (cGet(cache, part))
|
74265
|
+
if (cGet(cache, part)) {
|
74055
74266
|
return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
74267
|
+
}
|
74056
74268
|
fs.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
74057
74269
|
};
|
74058
74270
|
var onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
|
@@ -74061,18 +74273,20 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
74061
74273
|
if (statEr) {
|
74062
74274
|
statEr.path = statEr.path && normPath(statEr.path);
|
74063
74275
|
cb(statEr);
|
74064
|
-
} else if (st.isDirectory())
|
74276
|
+
} else if (st.isDirectory()) {
|
74065
74277
|
mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
74066
|
-
else if (unlink) {
|
74278
|
+
} else if (unlink) {
|
74067
74279
|
fs.unlink(part, (er2) => {
|
74068
|
-
if (er2)
|
74280
|
+
if (er2) {
|
74069
74281
|
return cb(er2);
|
74282
|
+
}
|
74070
74283
|
fs.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
74071
74284
|
});
|
74072
|
-
} else if (st.isSymbolicLink())
|
74285
|
+
} else if (st.isSymbolicLink()) {
|
74073
74286
|
return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
74074
|
-
else
|
74287
|
+
} else {
|
74075
74288
|
cb(er);
|
74289
|
+
}
|
74076
74290
|
});
|
74077
74291
|
} else {
|
74078
74292
|
created = created || part;
|
@@ -74087,8 +74301,9 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
74087
74301
|
} catch (er) {
|
74088
74302
|
code = er.code;
|
74089
74303
|
} finally {
|
74090
|
-
if (!ok)
|
74304
|
+
if (!ok) {
|
74091
74305
|
throw new CwdError(dir, code);
|
74306
|
+
}
|
74092
74307
|
}
|
74093
74308
|
};
|
74094
74309
|
module2.exports.sync = (dir, opt) => {
|
@@ -74105,26 +74320,31 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
74105
74320
|
const cwd = normPath(opt.cwd);
|
74106
74321
|
const done = (created2) => {
|
74107
74322
|
cSet(cache, dir, true);
|
74108
|
-
if (created2 && doChown)
|
74323
|
+
if (created2 && doChown) {
|
74109
74324
|
chownr.sync(created2, uid, gid);
|
74110
|
-
|
74325
|
+
}
|
74326
|
+
if (needChmod) {
|
74111
74327
|
fs.chmodSync(dir, mode);
|
74328
|
+
}
|
74112
74329
|
};
|
74113
|
-
if (cache && cGet(cache, dir) === true)
|
74330
|
+
if (cache && cGet(cache, dir) === true) {
|
74114
74331
|
return done();
|
74332
|
+
}
|
74115
74333
|
if (dir === cwd) {
|
74116
74334
|
checkCwdSync(cwd);
|
74117
74335
|
return done();
|
74118
74336
|
}
|
74119
|
-
if (preserve)
|
74337
|
+
if (preserve) {
|
74120
74338
|
return done(mkdirp.sync(dir, mode));
|
74339
|
+
}
|
74121
74340
|
const sub = normPath(path.relative(cwd, dir));
|
74122
74341
|
const parts = sub.split("/");
|
74123
74342
|
let created = null;
|
74124
74343
|
for (let p = parts.shift(), part = cwd; p && (part += "/" + p); p = parts.shift()) {
|
74125
74344
|
part = normPath(path.resolve(part));
|
74126
|
-
if (cGet(cache, part))
|
74345
|
+
if (cGet(cache, part)) {
|
74127
74346
|
continue;
|
74347
|
+
}
|
74128
74348
|
try {
|
74129
74349
|
fs.mkdirSync(part, mode);
|
74130
74350
|
created = created || part;
|
@@ -74140,8 +74360,9 @@ var require_mkdir = __commonJSMin((exports, module2) => {
|
|
74140
74360
|
created = created || part;
|
74141
74361
|
cSet(cache, part, true);
|
74142
74362
|
continue;
|
74143
|
-
} else if (st.isSymbolicLink())
|
74363
|
+
} else if (st.isSymbolicLink()) {
|
74144
74364
|
return new SymlinkError(part, part + "/" + parts.join("/"));
|
74365
|
+
}
|
74145
74366
|
}
|
74146
74367
|
}
|
74147
74368
|
return done(created);
|
@@ -74151,8 +74372,9 @@ var require_normalize_unicode = __commonJSMin((exports, module2) => {
|
|
74151
74372
|
var normalizeCache = /* @__PURE__ */ Object.create(null);
|
74152
74373
|
var { hasOwnProperty } = Object.prototype;
|
74153
74374
|
module2.exports = (s) => {
|
74154
|
-
if (!hasOwnProperty.call(normalizeCache, s))
|
74375
|
+
if (!hasOwnProperty.call(normalizeCache, s)) {
|
74155
74376
|
normalizeCache[s] = s.normalize("NFKD");
|
74377
|
+
}
|
74156
74378
|
return normalizeCache[s];
|
74157
74379
|
};
|
74158
74380
|
});
|
@@ -74168,8 +74390,9 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
74168
74390
|
const reservations = /* @__PURE__ */ new Map();
|
74169
74391
|
const getDirs = (path) => {
|
74170
74392
|
const dirs = path.split("/").slice(0, -1).reduce((set, path2) => {
|
74171
|
-
if (set.length)
|
74393
|
+
if (set.length) {
|
74172
74394
|
path2 = join(set[set.length - 1], path2);
|
74395
|
+
}
|
74173
74396
|
set.push(path2 || "/");
|
74174
74397
|
return set;
|
74175
74398
|
}, []);
|
@@ -74178,8 +74401,9 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
74178
74401
|
const running = /* @__PURE__ */ new Set();
|
74179
74402
|
const getQueues = (fn) => {
|
74180
74403
|
const res = reservations.get(fn);
|
74181
|
-
if (!res)
|
74404
|
+
if (!res) {
|
74182
74405
|
throw new Error("function does not have any path reservations");
|
74406
|
+
}
|
74183
74407
|
return {
|
74184
74408
|
paths: res.paths.map((path) => queues.get(path)),
|
74185
74409
|
dirs: [...res.dirs].map((path) => queues.get(path))
|
@@ -74190,40 +74414,44 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
74190
74414
|
return paths.every((q) => q[0] === fn) && dirs.every((q) => q[0] instanceof Set && q[0].has(fn));
|
74191
74415
|
};
|
74192
74416
|
const run = (fn) => {
|
74193
|
-
if (running.has(fn) || !check(fn))
|
74417
|
+
if (running.has(fn) || !check(fn)) {
|
74194
74418
|
return false;
|
74419
|
+
}
|
74195
74420
|
running.add(fn);
|
74196
74421
|
fn(() => clear(fn));
|
74197
74422
|
return true;
|
74198
74423
|
};
|
74199
74424
|
const clear = (fn) => {
|
74200
|
-
if (!running.has(fn))
|
74425
|
+
if (!running.has(fn)) {
|
74201
74426
|
return false;
|
74427
|
+
}
|
74202
74428
|
const { paths, dirs } = reservations.get(fn);
|
74203
74429
|
const next = /* @__PURE__ */ new Set();
|
74204
74430
|
paths.forEach((path) => {
|
74205
74431
|
const q = queues.get(path);
|
74206
74432
|
assert.equal(q[0], fn);
|
74207
|
-
if (q.length === 1)
|
74433
|
+
if (q.length === 1) {
|
74208
74434
|
queues.delete(path);
|
74209
|
-
else {
|
74435
|
+
} else {
|
74210
74436
|
q.shift();
|
74211
|
-
if (typeof q[0] === "function")
|
74437
|
+
if (typeof q[0] === "function") {
|
74212
74438
|
next.add(q[0]);
|
74213
|
-
else
|
74439
|
+
} else {
|
74214
74440
|
q[0].forEach((fn2) => next.add(fn2));
|
74441
|
+
}
|
74215
74442
|
}
|
74216
74443
|
});
|
74217
74444
|
dirs.forEach((dir) => {
|
74218
74445
|
const q = queues.get(dir);
|
74219
74446
|
assert(q[0] instanceof Set);
|
74220
|
-
if (q[0].size === 1 && q.length === 1)
|
74447
|
+
if (q[0].size === 1 && q.length === 1) {
|
74221
74448
|
queues.delete(dir);
|
74222
|
-
else if (q[0].size === 1) {
|
74449
|
+
} else if (q[0].size === 1) {
|
74223
74450
|
q.shift();
|
74224
74451
|
next.add(q[0]);
|
74225
|
-
} else
|
74452
|
+
} else {
|
74226
74453
|
q[0].delete(fn);
|
74454
|
+
}
|
74227
74455
|
});
|
74228
74456
|
running.delete(fn);
|
74229
74457
|
next.forEach((fn2) => run(fn2));
|
@@ -74237,19 +74465,21 @@ var require_path_reservations = __commonJSMin((exports, module2) => {
|
|
74237
74465
|
reservations.set(fn, { dirs, paths });
|
74238
74466
|
paths.forEach((path) => {
|
74239
74467
|
const q = queues.get(path);
|
74240
|
-
if (!q)
|
74468
|
+
if (!q) {
|
74241
74469
|
queues.set(path, [fn]);
|
74242
|
-
else
|
74470
|
+
} else {
|
74243
74471
|
q.push(fn);
|
74472
|
+
}
|
74244
74473
|
});
|
74245
74474
|
dirs.forEach((dir) => {
|
74246
74475
|
const q = queues.get(dir);
|
74247
|
-
if (!q)
|
74476
|
+
if (!q) {
|
74248
74477
|
queues.set(dir, [/* @__PURE__ */ new Set([fn])]);
|
74249
|
-
else if (q[q.length - 1] instanceof Set)
|
74478
|
+
} else if (q[q.length - 1] instanceof Set) {
|
74250
74479
|
q[q.length - 1].add(fn);
|
74251
|
-
else
|
74480
|
+
} else {
|
74252
74481
|
q.push(/* @__PURE__ */ new Set([fn]));
|
74482
|
+
}
|
74253
74483
|
});
|
74254
74484
|
return run(fn);
|
74255
74485
|
};
|
@@ -74310,18 +74540,21 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74310
74540
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
74311
74541
|
var isWindows = platform === "win32";
|
74312
74542
|
var unlinkFile = (path2, cb) => {
|
74313
|
-
if (!isWindows)
|
74543
|
+
if (!isWindows) {
|
74314
74544
|
return fs.unlink(path2, cb);
|
74545
|
+
}
|
74315
74546
|
const name4 = path2 + ".DELETE." + crypto.randomBytes(16).toString("hex");
|
74316
74547
|
fs.rename(path2, name4, (er) => {
|
74317
|
-
if (er)
|
74548
|
+
if (er) {
|
74318
74549
|
return cb(er);
|
74550
|
+
}
|
74319
74551
|
fs.unlink(name4, cb);
|
74320
74552
|
});
|
74321
74553
|
};
|
74322
74554
|
var unlinkFileSync = (path2) => {
|
74323
|
-
if (!isWindows)
|
74555
|
+
if (!isWindows) {
|
74324
74556
|
return fs.unlinkSync(path2);
|
74557
|
+
}
|
74325
74558
|
const name4 = path2 + ".DELETE." + crypto.randomBytes(16).toString("hex");
|
74326
74559
|
fs.renameSync(path2, name4);
|
74327
74560
|
fs.unlinkSync(name4);
|
@@ -74332,18 +74565,21 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74332
74565
|
abs = cacheKeyNormalize(abs);
|
74333
74566
|
for (const path2 of cache.keys()) {
|
74334
74567
|
const pnorm = cacheKeyNormalize(path2);
|
74335
|
-
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0)
|
74568
|
+
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) {
|
74336
74569
|
cache.delete(path2);
|
74570
|
+
}
|
74337
74571
|
}
|
74338
74572
|
};
|
74339
74573
|
var dropCache = (cache) => {
|
74340
|
-
for (const key of cache.keys())
|
74574
|
+
for (const key of cache.keys()) {
|
74341
74575
|
cache.delete(key);
|
74576
|
+
}
|
74342
74577
|
};
|
74343
74578
|
var Unpack = class extends Parser {
|
74344
74579
|
constructor(opt) {
|
74345
|
-
if (!opt)
|
74580
|
+
if (!opt) {
|
74346
74581
|
opt = {};
|
74582
|
+
}
|
74347
74583
|
opt.ondone = (_) => {
|
74348
74584
|
this[ENDED] = true;
|
74349
74585
|
this[MAYBECLOSE]();
|
@@ -74358,8 +74594,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74358
74594
|
this[ENDED] = false;
|
74359
74595
|
this.dirCache = opt.dirCache || /* @__PURE__ */ new Map();
|
74360
74596
|
if (typeof opt.uid === "number" || typeof opt.gid === "number") {
|
74361
|
-
if (typeof opt.uid !== "number" || typeof opt.gid !== "number")
|
74597
|
+
if (typeof opt.uid !== "number" || typeof opt.gid !== "number") {
|
74362
74598
|
throw new TypeError("cannot set owner without number uid and gid");
|
74599
|
+
}
|
74363
74600
|
if (opt.preserveOwner) {
|
74364
74601
|
throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
|
74365
74602
|
}
|
@@ -74371,10 +74608,11 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74371
74608
|
this.gid = null;
|
74372
74609
|
this.setOwner = false;
|
74373
74610
|
}
|
74374
|
-
if (opt.preserveOwner === void 0 && typeof opt.uid !== "number")
|
74611
|
+
if (opt.preserveOwner === void 0 && typeof opt.uid !== "number") {
|
74375
74612
|
this.preserveOwner = process.getuid && process.getuid() === 0;
|
74376
|
-
else
|
74613
|
+
} else {
|
74377
74614
|
this.preserveOwner = !!opt.preserveOwner;
|
74615
|
+
}
|
74378
74616
|
this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : null;
|
74379
74617
|
this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : null;
|
74380
74618
|
this.forceChown = opt.forceChown === true;
|
@@ -74393,8 +74631,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74393
74631
|
this.on("entry", (entry) => this[ONENTRY](entry));
|
74394
74632
|
}
|
74395
74633
|
warn(code, msg, data = {}) {
|
74396
|
-
if (code === "TAR_BAD_ARCHIVE" || code === "TAR_ABORT")
|
74634
|
+
if (code === "TAR_BAD_ARCHIVE" || code === "TAR_ABORT") {
|
74397
74635
|
data.recoverable = false;
|
74636
|
+
}
|
74398
74637
|
return super.warn(code, msg, data);
|
74399
74638
|
}
|
74400
74639
|
[MAYBECLOSE]() {
|
@@ -74402,21 +74641,22 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74402
74641
|
this.emit("prefinish");
|
74403
74642
|
this.emit("finish");
|
74404
74643
|
this.emit("end");
|
74405
|
-
this.emit("close");
|
74406
74644
|
}
|
74407
74645
|
}
|
74408
74646
|
[CHECKPATH](entry) {
|
74409
74647
|
if (this.strip) {
|
74410
74648
|
const parts = normPath(entry.path).split("/");
|
74411
|
-
if (parts.length < this.strip)
|
74649
|
+
if (parts.length < this.strip) {
|
74412
74650
|
return false;
|
74651
|
+
}
|
74413
74652
|
entry.path = parts.slice(this.strip).join("/");
|
74414
74653
|
if (entry.type === "Link") {
|
74415
74654
|
const linkparts = normPath(entry.linkpath).split("/");
|
74416
|
-
if (linkparts.length >= this.strip)
|
74655
|
+
if (linkparts.length >= this.strip) {
|
74417
74656
|
entry.linkpath = linkparts.slice(this.strip).join("/");
|
74418
|
-
else
|
74657
|
+
} else {
|
74419
74658
|
return false;
|
74659
|
+
}
|
74420
74660
|
}
|
74421
74661
|
}
|
74422
74662
|
if (!this.preservePaths) {
|
@@ -74438,10 +74678,11 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74438
74678
|
});
|
74439
74679
|
}
|
74440
74680
|
}
|
74441
|
-
if (path.isAbsolute(entry.path))
|
74681
|
+
if (path.isAbsolute(entry.path)) {
|
74442
74682
|
entry.absolute = normPath(path.resolve(entry.path));
|
74443
|
-
else
|
74683
|
+
} else {
|
74444
74684
|
entry.absolute = normPath(path.resolve(this.cwd, entry.path));
|
74685
|
+
}
|
74445
74686
|
if (!this.preservePaths && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
|
74446
74687
|
this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
|
74447
74688
|
entry,
|
@@ -74451,25 +74692,28 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74451
74692
|
});
|
74452
74693
|
return false;
|
74453
74694
|
}
|
74454
|
-
if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir")
|
74695
|
+
if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir") {
|
74455
74696
|
return false;
|
74697
|
+
}
|
74456
74698
|
if (this.win32) {
|
74457
74699
|
const { root: aRoot } = path.win32.parse(entry.absolute);
|
74458
|
-
entry.absolute = aRoot + wc.encode(entry.absolute.
|
74700
|
+
entry.absolute = aRoot + wc.encode(entry.absolute.slice(aRoot.length));
|
74459
74701
|
const { root: pRoot } = path.win32.parse(entry.path);
|
74460
|
-
entry.path = pRoot + wc.encode(entry.path.
|
74702
|
+
entry.path = pRoot + wc.encode(entry.path.slice(pRoot.length));
|
74461
74703
|
}
|
74462
74704
|
return true;
|
74463
74705
|
}
|
74464
74706
|
[ONENTRY](entry) {
|
74465
|
-
if (!this[CHECKPATH](entry))
|
74707
|
+
if (!this[CHECKPATH](entry)) {
|
74466
74708
|
return entry.resume();
|
74709
|
+
}
|
74467
74710
|
assert.equal(typeof entry.absolute, "string");
|
74468
74711
|
switch (entry.type) {
|
74469
74712
|
case "Directory":
|
74470
74713
|
case "GNUDumpDir":
|
74471
|
-
if (entry.mode)
|
74714
|
+
if (entry.mode) {
|
74472
74715
|
entry.mode = entry.mode | 448;
|
74716
|
+
}
|
74473
74717
|
case "File":
|
74474
74718
|
case "OldFile":
|
74475
74719
|
case "ContiguousFile":
|
@@ -74484,9 +74728,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74484
74728
|
}
|
74485
74729
|
}
|
74486
74730
|
[ONERROR](er, entry) {
|
74487
|
-
if (er.name === "CwdError")
|
74731
|
+
if (er.name === "CwdError") {
|
74488
74732
|
this.emit("error", er);
|
74489
|
-
else {
|
74733
|
+
} else {
|
74490
74734
|
this.warn("TAR_ENTRY_ERROR", er, { entry });
|
74491
74735
|
this[UNPEND]();
|
74492
74736
|
entry.resume();
|
@@ -74524,9 +74768,10 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74524
74768
|
autoClose: false
|
74525
74769
|
});
|
74526
74770
|
stream.on("error", (er) => {
|
74527
|
-
if (stream.fd)
|
74771
|
+
if (stream.fd) {
|
74528
74772
|
fs.close(stream.fd, () => {
|
74529
74773
|
});
|
74774
|
+
}
|
74530
74775
|
stream.write = () => true;
|
74531
74776
|
this[ONERROR](er, entry);
|
74532
74777
|
fullyDone();
|
@@ -74534,19 +74779,21 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74534
74779
|
let actions = 1;
|
74535
74780
|
const done = (er) => {
|
74536
74781
|
if (er) {
|
74537
|
-
if (stream.fd)
|
74782
|
+
if (stream.fd) {
|
74538
74783
|
fs.close(stream.fd, () => {
|
74539
74784
|
});
|
74785
|
+
}
|
74540
74786
|
this[ONERROR](er, entry);
|
74541
74787
|
fullyDone();
|
74542
74788
|
return;
|
74543
74789
|
}
|
74544
74790
|
if (--actions === 0) {
|
74545
74791
|
fs.close(stream.fd, (er2) => {
|
74546
|
-
if (er2)
|
74792
|
+
if (er2) {
|
74547
74793
|
this[ONERROR](er2, entry);
|
74548
|
-
else
|
74794
|
+
} else {
|
74549
74795
|
this[UNPEND]();
|
74796
|
+
}
|
74550
74797
|
fullyDone();
|
74551
74798
|
});
|
74552
74799
|
}
|
@@ -74634,15 +74881,17 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74634
74881
|
[CHECKFS](entry) {
|
74635
74882
|
this[PEND]();
|
74636
74883
|
const paths = [entry.path];
|
74637
|
-
if (entry.linkpath)
|
74884
|
+
if (entry.linkpath) {
|
74638
74885
|
paths.push(entry.linkpath);
|
74886
|
+
}
|
74639
74887
|
this.reservations.reserve(paths, (done) => this[CHECKFS2](entry, done));
|
74640
74888
|
}
|
74641
74889
|
[PRUNECACHE](entry) {
|
74642
|
-
if (entry.type === "SymbolicLink")
|
74890
|
+
if (entry.type === "SymbolicLink") {
|
74643
74891
|
dropCache(this.dirCache);
|
74644
|
-
else if (entry.type !== "Directory")
|
74892
|
+
} else if (entry.type !== "Directory") {
|
74645
74893
|
pruneCache(this.dirCache, entry.absolute);
|
74894
|
+
}
|
74646
74895
|
}
|
74647
74896
|
[CHECKFS2](entry, fullyDone) {
|
74648
74897
|
this[PRUNECACHE](entry);
|
@@ -74684,29 +74933,33 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74684
74933
|
done();
|
74685
74934
|
return;
|
74686
74935
|
}
|
74687
|
-
if (lstatEr || this[ISREUSABLE](entry, st))
|
74936
|
+
if (lstatEr || this[ISREUSABLE](entry, st)) {
|
74688
74937
|
return this[MAKEFS](null, entry, done);
|
74938
|
+
}
|
74689
74939
|
if (st.isDirectory()) {
|
74690
74940
|
if (entry.type === "Directory") {
|
74691
74941
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
74692
74942
|
const afterChmod = (er) => this[MAKEFS](er, entry, done);
|
74693
|
-
if (!needChmod)
|
74943
|
+
if (!needChmod) {
|
74694
74944
|
return afterChmod();
|
74945
|
+
}
|
74695
74946
|
return fs.chmod(entry.absolute, entry.mode, afterChmod);
|
74696
74947
|
}
|
74697
74948
|
if (entry.absolute !== this.cwd) {
|
74698
74949
|
return fs.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
74699
74950
|
}
|
74700
74951
|
}
|
74701
|
-
if (entry.absolute === this.cwd)
|
74952
|
+
if (entry.absolute === this.cwd) {
|
74702
74953
|
return this[MAKEFS](null, entry, done);
|
74954
|
+
}
|
74703
74955
|
unlinkFile(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
74704
74956
|
});
|
74705
74957
|
};
|
74706
|
-
if (this[CHECKED_CWD])
|
74958
|
+
if (this[CHECKED_CWD]) {
|
74707
74959
|
start();
|
74708
|
-
else
|
74960
|
+
} else {
|
74709
74961
|
checkCwd();
|
74962
|
+
}
|
74710
74963
|
}
|
74711
74964
|
[MAKEFS](er, entry, done) {
|
74712
74965
|
if (er) {
|
@@ -74730,9 +74983,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74730
74983
|
}
|
74731
74984
|
[LINK](entry, linkpath, link, done) {
|
74732
74985
|
fs[link](linkpath, entry.absolute, (er) => {
|
74733
|
-
if (er)
|
74986
|
+
if (er) {
|
74734
74987
|
this[ONERROR](er, entry);
|
74735
|
-
else {
|
74988
|
+
} else {
|
74736
74989
|
this[UNPEND]();
|
74737
74990
|
entry.resume();
|
74738
74991
|
}
|
@@ -74756,23 +75009,27 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74756
75009
|
this[PRUNECACHE](entry);
|
74757
75010
|
if (!this[CHECKED_CWD]) {
|
74758
75011
|
const er2 = this[MKDIR](this.cwd, this.dmode);
|
74759
|
-
if (er2)
|
75012
|
+
if (er2) {
|
74760
75013
|
return this[ONERROR](er2, entry);
|
75014
|
+
}
|
74761
75015
|
this[CHECKED_CWD] = true;
|
74762
75016
|
}
|
74763
75017
|
if (entry.absolute !== this.cwd) {
|
74764
75018
|
const parent = normPath(path.dirname(entry.absolute));
|
74765
75019
|
if (parent !== this.cwd) {
|
74766
75020
|
const mkParent = this[MKDIR](parent, this.dmode);
|
74767
|
-
if (mkParent)
|
75021
|
+
if (mkParent) {
|
74768
75022
|
return this[ONERROR](mkParent, entry);
|
75023
|
+
}
|
74769
75024
|
}
|
74770
75025
|
}
|
74771
75026
|
const [lstatEr, st] = callSync(() => fs.lstatSync(entry.absolute));
|
74772
|
-
if (st && (this.keep || this.newer && st.mtime > entry.mtime))
|
75027
|
+
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
74773
75028
|
return this[SKIP](entry);
|
74774
|
-
|
75029
|
+
}
|
75030
|
+
if (lstatEr || this[ISREUSABLE](entry, st)) {
|
74775
75031
|
return this[MAKEFS](null, entry);
|
75032
|
+
}
|
74776
75033
|
if (st.isDirectory()) {
|
74777
75034
|
if (entry.type === "Directory") {
|
74778
75035
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
@@ -74796,8 +75053,9 @@ var require_unpack = __commonJSMin((exports, module2) => {
|
|
74796
75053
|
} catch (e) {
|
74797
75054
|
closeError = e;
|
74798
75055
|
}
|
74799
|
-
if (er || closeError)
|
75056
|
+
if (er || closeError) {
|
74800
75057
|
this[ONERROR](er || closeError, entry);
|
75058
|
+
}
|
74801
75059
|
done();
|
74802
75060
|
};
|
74803
75061
|
let fd;
|
@@ -74912,23 +75170,29 @@ var require_extract = __commonJSMin((exports, module2) => {
|
|
74912
75170
|
var path = __require("path");
|
74913
75171
|
var stripSlash = require_strip_trailing_slashes();
|
74914
75172
|
module2.exports = (opt_, files, cb) => {
|
74915
|
-
if (typeof opt_ === "function")
|
75173
|
+
if (typeof opt_ === "function") {
|
74916
75174
|
cb = opt_, files = null, opt_ = {};
|
74917
|
-
else if (Array.isArray(opt_))
|
75175
|
+
} else if (Array.isArray(opt_)) {
|
74918
75176
|
files = opt_, opt_ = {};
|
74919
|
-
|
75177
|
+
}
|
75178
|
+
if (typeof files === "function") {
|
74920
75179
|
cb = files, files = null;
|
74921
|
-
|
75180
|
+
}
|
75181
|
+
if (!files) {
|
74922
75182
|
files = [];
|
74923
|
-
else
|
75183
|
+
} else {
|
74924
75184
|
files = Array.from(files);
|
75185
|
+
}
|
74925
75186
|
const opt = hlo(opt_);
|
74926
|
-
if (opt.sync && typeof cb === "function")
|
75187
|
+
if (opt.sync && typeof cb === "function") {
|
74927
75188
|
throw new TypeError("callback not supported for sync tar functions");
|
74928
|
-
|
75189
|
+
}
|
75190
|
+
if (!opt.file && typeof cb === "function") {
|
74929
75191
|
throw new TypeError("callback only supported with file option");
|
74930
|
-
|
75192
|
+
}
|
75193
|
+
if (files.length) {
|
74931
75194
|
filesFilter(opt, files);
|
75195
|
+
}
|
74932
75196
|
return opt.file && opt.sync ? extractFileSync(opt) : opt.file ? extractFile(opt, cb) : opt.sync ? extractSync(opt) : extract(opt);
|
74933
75197
|
};
|
74934
75198
|
var filesFilter = (opt, files) => {
|
@@ -74961,9 +75225,9 @@ var require_extract = __commonJSMin((exports, module2) => {
|
|
74961
75225
|
u.on("error", reject);
|
74962
75226
|
u.on("close", resolve);
|
74963
75227
|
fs.stat(file, (er, stat) => {
|
74964
|
-
if (er)
|
75228
|
+
if (er) {
|
74965
75229
|
reject(er);
|
74966
|
-
else {
|
75230
|
+
} else {
|
74967
75231
|
const stream = new fsm.ReadStream(file, {
|
74968
75232
|
readSize,
|
74969
75233
|
size: stat.size
|
@@ -75520,6 +75784,30 @@ function _classCallCheck(instance, Constructor) {
|
|
75520
75784
|
throw new TypeError("Cannot call a class as a function");
|
75521
75785
|
}
|
75522
75786
|
}
|
75787
|
+
function _typeof(obj) {
|
75788
|
+
"@babel/helpers - typeof";
|
75789
|
+
return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(obj2) {
|
75790
|
+
return typeof obj2;
|
75791
|
+
} : function(obj2) {
|
75792
|
+
return obj2 && typeof Symbol == "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
75793
|
+
}, _typeof(obj);
|
75794
|
+
}
|
75795
|
+
function _toPrimitive(input, hint) {
|
75796
|
+
if (_typeof(input) !== "object" || input === null)
|
75797
|
+
return input;
|
75798
|
+
var prim = input[Symbol.toPrimitive];
|
75799
|
+
if (prim !== void 0) {
|
75800
|
+
var res = prim.call(input, hint || "default");
|
75801
|
+
if (_typeof(res) !== "object")
|
75802
|
+
return res;
|
75803
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
75804
|
+
}
|
75805
|
+
return (hint === "string" ? String : Number)(input);
|
75806
|
+
}
|
75807
|
+
function _toPropertyKey(arg) {
|
75808
|
+
var key = _toPrimitive(arg, "string");
|
75809
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
75810
|
+
}
|
75523
75811
|
function _defineProperties(target, props) {
|
75524
75812
|
for (var i = 0; i < props.length; i++) {
|
75525
75813
|
var descriptor = props[i];
|
@@ -75527,7 +75815,7 @@ function _defineProperties(target, props) {
|
|
75527
75815
|
descriptor.configurable = true;
|
75528
75816
|
if ("value" in descriptor)
|
75529
75817
|
descriptor.writable = true;
|
75530
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
75818
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
75531
75819
|
}
|
75532
75820
|
}
|
75533
75821
|
function _createClass(Constructor, protoProps, staticProps) {
|
@@ -75541,6 +75829,7 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
75541
75829
|
return Constructor;
|
75542
75830
|
}
|
75543
75831
|
function _defineProperty(obj, key, value) {
|
75832
|
+
key = _toPropertyKey(key);
|
75544
75833
|
if (key in obj) {
|
75545
75834
|
Object.defineProperty(obj, key, {
|
75546
75835
|
value,
|