brsh 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/POSIX-CHECKLIST.md +5 -5
- package/bin/brsh-shell.js +75 -5
- package/bin/exportFileSystem.js +56 -4
- package/dist/brsh.css +1 -1
- package/dist/shell.es.js +408 -328
- package/dist/shell.es.js.map +1 -1
- package/dist/shell.min.js +9 -9
- package/dist/shell.min.js.map +1 -1
- package/dist/terminal.es.js +458 -338
- package/dist/terminal.es.js.map +1 -1
- package/dist/terminal.min.js +11 -11
- package/dist/terminal.min.js.map +1 -1
- package/index.js +21 -1
- package/lib/Command.js +6 -0
- package/lib/InteractiveCommand.js +50 -0
- package/lib/ScriptCommand.js +71 -43
- package/lib/Terminal.js +101 -6
- package/package.json +1 -1
- package/styles/terminal.css +34 -2
- package/test/exportFileSystem.test.js +95 -1
- package/test/scripts.test.js +91 -0
package/dist/terminal.es.js
CHANGED
|
@@ -916,7 +916,10 @@ var g, _, v, y, b, x, S, C, w, T, E = e((() => {
|
|
|
916
916
|
return Promise.reject("Command not implemented...");
|
|
917
917
|
}
|
|
918
918
|
runCommand() {
|
|
919
|
-
return this.run().then((e) => (e && e.split(/\r?\n/).forEach((e) => this.stdOut = e), this.result)).catch((e) =>
|
|
919
|
+
return this.run().then((e) => (e && e.split(/\r?\n/).forEach((e) => this.stdOut = e), this.result)).catch((e) => {
|
|
920
|
+
if (e && e.__type) throw e;
|
|
921
|
+
return e && (this.stdErr = e.message || e), this.exitCode = 127, this.result;
|
|
922
|
+
});
|
|
920
923
|
}
|
|
921
924
|
onInput(e) {}
|
|
922
925
|
set exitCode(e) {
|
|
@@ -977,6 +980,7 @@ var g, _, v, y, b, x, S, C, w, T, E = e((() => {
|
|
|
977
980
|
return this._executeNodes(n).catch((e) => {
|
|
978
981
|
if (e && e.__type === "return") this.sandbox.lastCode = e.code;
|
|
979
982
|
else if (e && e.__type === "errexit") this.sandbox.lastCode = e.code;
|
|
983
|
+
else if (e && (e.__type === "break" || e.__type === "continue")) this.stdErr = `${e.__type}: only meaningful in a for or while loop`, this.sandbox.lastCode = 1;
|
|
980
984
|
else return Promise.reject(e);
|
|
981
985
|
}).then(() => {
|
|
982
986
|
this.exitCode = this.sandbox.lastCode, this.source && this.context.source(this.sandbox.context);
|
|
@@ -1099,8 +1103,8 @@ var g, _, v, y, b, x, S, C, w, T, E = e((() => {
|
|
|
1099
1103
|
consumed: a - t
|
|
1100
1104
|
};
|
|
1101
1105
|
}
|
|
1102
|
-
_executeNodes(e) {
|
|
1103
|
-
|
|
1106
|
+
async _executeNodes(e) {
|
|
1107
|
+
for (let t of e) await this._executeNode(t);
|
|
1104
1108
|
}
|
|
1105
1109
|
_executeNode(e) {
|
|
1106
1110
|
if (e.type === "function") {
|
|
@@ -1136,6 +1140,20 @@ var g, _, v, y, b, x, S, C, w, T, E = e((() => {
|
|
|
1136
1140
|
code: n
|
|
1137
1141
|
});
|
|
1138
1142
|
}
|
|
1143
|
+
if (/^break(\s+\d+)?\s*$/.test(e.line.trim())) {
|
|
1144
|
+
let t = e.line.trim().match(/^break\s+(\d+)/), n = t ? parseInt(t[1], 10) : 1;
|
|
1145
|
+
return Promise.reject({
|
|
1146
|
+
__type: "break",
|
|
1147
|
+
count: n
|
|
1148
|
+
});
|
|
1149
|
+
}
|
|
1150
|
+
if (/^continue(\s+\d+)?\s*$/.test(e.line.trim())) {
|
|
1151
|
+
let t = e.line.trim().match(/^continue\s+(\d+)/), n = t ? parseInt(t[1], 10) : 1;
|
|
1152
|
+
return Promise.reject({
|
|
1153
|
+
__type: "continue",
|
|
1154
|
+
count: n
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
1139
1157
|
return (this.sandbox.context.getVar("-") || "").includes("x") && (this.stdErr = `+ ${e.line.trim()}`, this.flush()), this.sandbox.onCommand(e.line, !1).then(() => {
|
|
1140
1158
|
if ((this.sandbox.context.getVar("-") || "").includes("e") && this.sandbox.lastCode !== 0) return Promise.reject({
|
|
1141
1159
|
__type: "errexit",
|
|
@@ -1145,22 +1163,55 @@ var g, _, v, y, b, x, S, C, w, T, E = e((() => {
|
|
|
1145
1163
|
}
|
|
1146
1164
|
return e.type === "if" ? this._executeIf(e) : e.type === "while" ? this._executeWhile(e) : e.type === "for" ? this._executeFor(e) : e.type === "case" ? this._executeCase(e) : Promise.resolve();
|
|
1147
1165
|
}
|
|
1148
|
-
_executeIf(e) {
|
|
1149
|
-
let t
|
|
1150
|
-
|
|
1151
|
-
let r = e.clauses[n];
|
|
1152
|
-
return this.sandbox.onCommand(r.condition, !1).then(() => this.sandbox.lastCode === 0 ? this._executeNodes(this._parseLines(r.bodyLines)) : t(n + 1));
|
|
1153
|
-
};
|
|
1154
|
-
return t(0);
|
|
1166
|
+
async _executeIf(e) {
|
|
1167
|
+
for (let t of e.clauses) if (await this.sandbox.onCommand(t.condition, !1), this.sandbox.lastCode === 0) return this._executeNodes(this._parseLines(t.bodyLines));
|
|
1168
|
+
if (e.elseLines.length > 0) return this._executeNodes(this._parseLines(e.elseLines));
|
|
1155
1169
|
}
|
|
1156
|
-
_executeWhile(e) {
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
})
|
|
1160
|
-
|
|
1170
|
+
async _executeWhile(e) {
|
|
1171
|
+
for (; await this.sandbox.onCommand(e.condition, !1), this.sandbox.lastCode === 0;) try {
|
|
1172
|
+
await this._executeNodes(this._parseLines(e.bodyLines));
|
|
1173
|
+
} catch (e) {
|
|
1174
|
+
if (e && e.__type === "break") {
|
|
1175
|
+
if (e.count <= 1) break;
|
|
1176
|
+
throw {
|
|
1177
|
+
__type: "break",
|
|
1178
|
+
count: e.count - 1
|
|
1179
|
+
};
|
|
1180
|
+
}
|
|
1181
|
+
if (e && e.__type === "continue") {
|
|
1182
|
+
if (e.count <= 1) continue;
|
|
1183
|
+
throw {
|
|
1184
|
+
__type: "continue",
|
|
1185
|
+
count: e.count - 1
|
|
1186
|
+
};
|
|
1187
|
+
}
|
|
1188
|
+
throw e;
|
|
1189
|
+
}
|
|
1161
1190
|
}
|
|
1162
|
-
_executeFor(e) {
|
|
1163
|
-
|
|
1191
|
+
async _executeFor(e) {
|
|
1192
|
+
let t = e.list.replace(/\${?([\w\d]+)}?/g, (e, t) => this.sandbox.context.getVar(t) || "").split(/\s+/).filter(Boolean);
|
|
1193
|
+
for (let n of t) {
|
|
1194
|
+
this.sandbox.context.setVar(e.variable, n);
|
|
1195
|
+
try {
|
|
1196
|
+
await this._executeNodes(this._parseLines(e.bodyLines));
|
|
1197
|
+
} catch (e) {
|
|
1198
|
+
if (e && e.__type === "break") {
|
|
1199
|
+
if (e.count <= 1) break;
|
|
1200
|
+
throw {
|
|
1201
|
+
__type: "break",
|
|
1202
|
+
count: e.count - 1
|
|
1203
|
+
};
|
|
1204
|
+
}
|
|
1205
|
+
if (e && e.__type === "continue") {
|
|
1206
|
+
if (e.count <= 1) continue;
|
|
1207
|
+
throw {
|
|
1208
|
+
__type: "continue",
|
|
1209
|
+
count: e.count - 1
|
|
1210
|
+
};
|
|
1211
|
+
}
|
|
1212
|
+
throw e;
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1164
1215
|
}
|
|
1165
1216
|
_parseFunction(e, t) {
|
|
1166
1217
|
let n = e[t].trim(), r = n.match(/^function\s+([\w\d_]+)/) || n.match(/^([\w\d_]+)\s*\(/), i = r ? r[1] : "", a = t + 1;
|
|
@@ -1237,11 +1288,9 @@ var g, _, v, y, b, x, S, C, w, T, E = e((() => {
|
|
|
1237
1288
|
_executeFunctionBody(e) {
|
|
1238
1289
|
return this._executeNodes(this._parseLines(e));
|
|
1239
1290
|
}
|
|
1240
|
-
_executeCase(e) {
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
for (let t of e.clauses) if (this._matchPattern(t.pattern, n)) return this._executeNodes(this._parseLines(t.bodyLines));
|
|
1244
|
-
});
|
|
1291
|
+
async _executeCase(e) {
|
|
1292
|
+
let t = await this.sandbox._replaceVariables(e.word), n = t.startsWith("\"") && t.endsWith("\"") || t.startsWith("'") && t.endsWith("'") ? t.slice(1, -1) : t;
|
|
1293
|
+
for (let t of e.clauses) if (this._matchPattern(t.pattern, n)) return this._executeNodes(this._parseLines(t.bodyLines));
|
|
1245
1294
|
}
|
|
1246
1295
|
_matchPattern(e, t) {
|
|
1247
1296
|
let n = "", r = 0;
|
|
@@ -1278,7 +1327,7 @@ function te(e, t, n) {
|
|
|
1278
1327
|
return (t + n) * 3 / 4 - n;
|
|
1279
1328
|
}
|
|
1280
1329
|
function R(e) {
|
|
1281
|
-
var t, n = L(e), r = n[0], i = n[1], a = new
|
|
1330
|
+
var t, n = L(e), r = n[0], i = n[1], a = new ie(te(e, r, i)), o = 0, s = i > 0 ? r - 4 : r, c;
|
|
1282
1331
|
for (c = 0; c < s; c += 4) t = U[e.charCodeAt(c)] << 18 | U[e.charCodeAt(c + 1)] << 12 | U[e.charCodeAt(c + 2)] << 6 | U[e.charCodeAt(c + 3)], a[o++] = t >> 16 & 255, a[o++] = t >> 8 & 255, a[o++] = t & 255;
|
|
1283
1332
|
return i === 2 && (t = U[e.charCodeAt(c)] << 2 | U[e.charCodeAt(c + 1)] >> 4, a[o++] = t & 255), i === 1 && (t = U[e.charCodeAt(c)] << 10 | U[e.charCodeAt(c + 1)] << 4 | U[e.charCodeAt(c + 2)] >> 2, a[o++] = t >> 8 & 255, a[o++] = t & 255), a;
|
|
1284
1333
|
}
|
|
@@ -1293,9 +1342,9 @@ function B(e) {
|
|
|
1293
1342
|
for (var t, n = e.length, r = n % 3, i = [], a = 16383, o = 0, s = n - r; o < s; o += a) i.push(ne(e, o, o + a > s ? s : o + a));
|
|
1294
1343
|
return r === 1 ? (t = e[n - 1], i.push(H[t >> 2] + H[t << 4 & 63] + "==")) : r === 2 && (t = (e[n - 2] << 8) + e[n - 1], i.push(H[t >> 10] + H[t >> 4 & 63] + H[t << 2 & 63] + "=")), i.join("");
|
|
1295
1344
|
}
|
|
1296
|
-
var V, re, H, U,
|
|
1297
|
-
for (V = {}, re = {}, re.byteLength = ee, re.toByteArray = R, re.fromByteArray = B, H = [], U = [],
|
|
1298
|
-
U[45] = 62, U[95] = 63,
|
|
1345
|
+
var V, re, H, U, ie, ae, W, oe, se, G, K = e((() => {
|
|
1346
|
+
for (V = {}, re = {}, re.byteLength = ee, re.toByteArray = R, re.fromByteArray = B, H = [], U = [], ie = typeof Uint8Array < "u" ? Uint8Array : Array, ae = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", W = 0, oe = ae.length; W < oe; ++W) H[W] = ae[W], U[ae.charCodeAt(W)] = W;
|
|
1347
|
+
U[45] = 62, U[95] = 63, se = {}, se.read = function(e, t, n, r, i) {
|
|
1299
1348
|
var a, o, s = i * 8 - r - 1, c = (1 << s) - 1, l = c >> 1, u = -7, d = n ? i - 1 : 0, f = n ? -1 : 1, p = e[t + d];
|
|
1300
1349
|
for (d += f, a = p & (1 << -u) - 1, p >>= -u, u += s; u > 0; a = a * 256 + e[t + d], d += f, u -= 8);
|
|
1301
1350
|
for (o = a & (1 << -u) - 1, a >>= -u, u += r; u > 0; o = o * 256 + e[t + d], d += f, u -= 8);
|
|
@@ -1303,13 +1352,13 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
1303
1352
|
else if (a === c) return o ? NaN : (p ? -1 : 1) * Infinity;
|
|
1304
1353
|
else o += 2 ** r, a -= l;
|
|
1305
1354
|
return (p ? -1 : 1) * o * 2 ** (a - r);
|
|
1306
|
-
},
|
|
1355
|
+
}, se.write = function(e, t, n, r, i, a) {
|
|
1307
1356
|
var o, s, c, l = a * 8 - i - 1, u = (1 << l) - 1, d = u >> 1, f = i === 23 ? 2 ** -24 - 2 ** -77 : 0, p = r ? 0 : a - 1, m = r ? 1 : -1, h = +(t < 0 || t === 0 && 1 / t < 0);
|
|
1308
1357
|
for (t = Math.abs(t), isNaN(t) || t === Infinity ? (s = +!!isNaN(t), o = u) : (o = Math.floor(Math.log(t) / Math.LN2), t * (c = 2 ** -o) < 1 && (o--, c *= 2), o + d >= 1 ? t += f / c : t += f * 2 ** (1 - d), t * c >= 2 && (o++, c /= 2), o + d >= u ? (s = 0, o = u) : o + d >= 1 ? (s = (t * c - 1) * 2 ** i, o += d) : (s = t * 2 ** (d - 1) * 2 ** i, o = 0)); i >= 8; e[n + p] = s & 255, p += m, s /= 256, i -= 8);
|
|
1309
1358
|
for (o = o << i | s, l += i; l > 0; e[n + p] = o & 255, p += m, o /= 256, l -= 8);
|
|
1310
1359
|
e[n + p - m] |= h * 128;
|
|
1311
1360
|
}, (function(e) {
|
|
1312
|
-
let t = re, n =
|
|
1361
|
+
let t = re, n = se, r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
1313
1362
|
e.Buffer = u, e.SlowBuffer = x, e.INSPECT_MAX_BYTES = 50;
|
|
1314
1363
|
let i = 2147483647;
|
|
1315
1364
|
e.kMaxLength = i;
|
|
@@ -1829,14 +1878,14 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
1829
1878
|
return e = +e, t >>>= 0, n || z(this, e, t, 4, 4294967295, 0), this[t] = e >>> 24, this[t + 1] = e >>> 16, this[t + 2] = e >>> 8, this[t + 3] = e & 255, t + 4;
|
|
1830
1879
|
};
|
|
1831
1880
|
function ne(e, t, n, r, i) {
|
|
1832
|
-
|
|
1881
|
+
G(t, r, i, e, n, 7);
|
|
1833
1882
|
let a = Number(t & BigInt(4294967295));
|
|
1834
1883
|
e[n++] = a, a >>= 8, e[n++] = a, a >>= 8, e[n++] = a, a >>= 8, e[n++] = a;
|
|
1835
1884
|
let o = Number(t >> BigInt(32) & BigInt(4294967295));
|
|
1836
1885
|
return e[n++] = o, o >>= 8, e[n++] = o, o >>= 8, e[n++] = o, o >>= 8, e[n++] = o, n;
|
|
1837
1886
|
}
|
|
1838
1887
|
function B(e, t, n, r, i) {
|
|
1839
|
-
|
|
1888
|
+
G(t, r, i, e, n, 7);
|
|
1840
1889
|
let a = Number(t & BigInt(4294967295));
|
|
1841
1890
|
e[n + 7] = a, a >>= 8, e[n + 6] = a, a >>= 8, e[n + 5] = a, a >>= 8, e[n + 4] = a;
|
|
1842
1891
|
let o = Number(t >> BigInt(32) & BigInt(4294967295));
|
|
@@ -1925,9 +1974,9 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
1925
1974
|
}
|
|
1926
1975
|
return this;
|
|
1927
1976
|
};
|
|
1928
|
-
let
|
|
1929
|
-
function
|
|
1930
|
-
|
|
1977
|
+
let ie = {};
|
|
1978
|
+
function ae(e, t, n) {
|
|
1979
|
+
ie[e] = class extends n {
|
|
1931
1980
|
constructor() {
|
|
1932
1981
|
super(), Object.defineProperty(this, "message", {
|
|
1933
1982
|
value: t.apply(this, arguments),
|
|
@@ -1951,34 +2000,34 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
1951
2000
|
}
|
|
1952
2001
|
};
|
|
1953
2002
|
}
|
|
1954
|
-
|
|
2003
|
+
ae("ERR_BUFFER_OUT_OF_BOUNDS", function(e) {
|
|
1955
2004
|
return e ? `${e} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
|
|
1956
|
-
}, RangeError),
|
|
2005
|
+
}, RangeError), ae("ERR_INVALID_ARG_TYPE", function(e, t) {
|
|
1957
2006
|
return `The "${e}" argument must be of type number. Received type ${typeof t}`;
|
|
1958
|
-
}, TypeError),
|
|
2007
|
+
}, TypeError), ae("ERR_OUT_OF_RANGE", function(e, t, n) {
|
|
1959
2008
|
let r = `The value of "${e}" is out of range.`, i = n;
|
|
1960
|
-
return Number.isInteger(n) && Math.abs(n) > 2 ** 32 ? i =
|
|
2009
|
+
return Number.isInteger(n) && Math.abs(n) > 2 ** 32 ? i = W(String(n)) : typeof n == "bigint" && (i = String(n), (n > BigInt(2) ** BigInt(32) || n < -(BigInt(2) ** BigInt(32))) && (i = W(i)), i += "n"), r += ` It must be ${t}. Received ${i}`, r;
|
|
1961
2010
|
}, RangeError);
|
|
1962
|
-
function
|
|
2011
|
+
function W(e) {
|
|
1963
2012
|
let t = "", n = e.length, r = +(e[0] === "-");
|
|
1964
2013
|
for (; n >= r + 4; n -= 3) t = `_${e.slice(n - 3, n)}${t}`;
|
|
1965
2014
|
return `${e.slice(0, n)}${t}`;
|
|
1966
2015
|
}
|
|
1967
|
-
function
|
|
2016
|
+
function oe(e, t, n) {
|
|
1968
2017
|
K(t, "offset"), (e[t] === void 0 || e[t + n] === void 0) && q(t, e.length - (n + 1));
|
|
1969
2018
|
}
|
|
1970
|
-
function
|
|
2019
|
+
function G(e, t, n, r, i, a) {
|
|
1971
2020
|
if (e > n || e < t) {
|
|
1972
2021
|
let r = typeof t == "bigint" ? "n" : "", i;
|
|
1973
|
-
throw i = a > 3 ? t === 0 || t === BigInt(0) ? `>= 0${r} and < 2${r} ** ${(a + 1) * 8}${r}` : `>= -(2${r} ** ${(a + 1) * 8 - 1}${r}) and < 2 ** ${(a + 1) * 8 - 1}${r}` : `>= ${t}${r} and <= ${n}${r}`, new
|
|
2022
|
+
throw i = a > 3 ? t === 0 || t === BigInt(0) ? `>= 0${r} and < 2${r} ** ${(a + 1) * 8}${r}` : `>= -(2${r} ** ${(a + 1) * 8 - 1}${r}) and < 2 ** ${(a + 1) * 8 - 1}${r}` : `>= ${t}${r} and <= ${n}${r}`, new ie.ERR_OUT_OF_RANGE("value", i, e);
|
|
1974
2023
|
}
|
|
1975
|
-
|
|
2024
|
+
oe(r, i, a);
|
|
1976
2025
|
}
|
|
1977
2026
|
function K(e, t) {
|
|
1978
|
-
if (typeof e != "number") throw new
|
|
2027
|
+
if (typeof e != "number") throw new ie.ERR_INVALID_ARG_TYPE(t, "number", e);
|
|
1979
2028
|
}
|
|
1980
2029
|
function q(e, t, n) {
|
|
1981
|
-
throw Math.floor(e) === e ? t < 0 ? new
|
|
2030
|
+
throw Math.floor(e) === e ? t < 0 ? new ie.ERR_BUFFER_OUT_OF_BOUNDS() : new ie.ERR_OUT_OF_RANGE(n || "offset", `>= ${+!!n} and <= ${t}`, e) : (K(e, n), new ie.ERR_OUT_OF_RANGE(n || "offset", "an integer", e));
|
|
1982
2031
|
}
|
|
1983
2032
|
let ce = /[^+/0-9A-Za-z-_]/g;
|
|
1984
2033
|
function le(e) {
|
|
@@ -2062,7 +2111,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
2062
2111
|
function _e() {
|
|
2063
2112
|
throw Error("BigInt not supported");
|
|
2064
2113
|
}
|
|
2065
|
-
})(V),
|
|
2114
|
+
})(V), G = V.Buffer, V.Blob, V.BlobOptions, V.Buffer, V.File, V.FileOptions, V.INSPECT_MAX_BYTES, V.SlowBuffer, V.TranscodeEncoding, V.atob, V.btoa, V.constants, V.isAscii, V.isUtf8, V.kMaxLength, V.kStringMaxLength, V.resolveObjectURL, V.transcode;
|
|
2066
2115
|
})), q = /* @__PURE__ */ t(((e, t) => {
|
|
2067
2116
|
K();
|
|
2068
2117
|
var n = I();
|
|
@@ -2108,7 +2157,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
2108
2157
|
}
|
|
2109
2158
|
_contentToBytes(e) {
|
|
2110
2159
|
if (e instanceof Uint8Array) return e;
|
|
2111
|
-
if (
|
|
2160
|
+
if (G !== void 0 && G.isBuffer(e)) return new Uint8Array(e.buffer, e.byteOffset, e.byteLength);
|
|
2112
2161
|
if (e instanceof ArrayBuffer) return new Uint8Array(e);
|
|
2113
2162
|
let t = new Uint8Array(e.length);
|
|
2114
2163
|
for (let n = 0; n < e.length; n++) t[n] = e.charCodeAt(n) & 255;
|
|
@@ -2263,6 +2312,22 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
2263
2312
|
}
|
|
2264
2313
|
};
|
|
2265
2314
|
})), ce = /* @__PURE__ */ t(((e, t) => {
|
|
2315
|
+
var n = F();
|
|
2316
|
+
t.exports = class extends n {
|
|
2317
|
+
get captureInput() {
|
|
2318
|
+
return !0;
|
|
2319
|
+
}
|
|
2320
|
+
get interactive() {
|
|
2321
|
+
return !0;
|
|
2322
|
+
}
|
|
2323
|
+
get terminalSize() {
|
|
2324
|
+
return {
|
|
2325
|
+
cols: parseInt(this.context.getVar("COLUMNS"), 10) || 80,
|
|
2326
|
+
rows: parseInt(this.context.getVar("LINES"), 10) || 24
|
|
2327
|
+
};
|
|
2328
|
+
}
|
|
2329
|
+
};
|
|
2330
|
+
})), le = /* @__PURE__ */ t(((e, t) => {
|
|
2266
2331
|
var n = P(), r = class extends n {
|
|
2267
2332
|
static get name() {
|
|
2268
2333
|
return "test";
|
|
@@ -2347,7 +2412,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
2347
2412
|
}
|
|
2348
2413
|
}
|
|
2349
2414
|
};
|
|
2350
|
-
})),
|
|
2415
|
+
})), ue = /* @__PURE__ */ t(((e, t) => {
|
|
2351
2416
|
var n = P();
|
|
2352
2417
|
t.exports = class extends n {
|
|
2353
2418
|
static get name() {
|
|
@@ -2388,7 +2453,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
2388
2453
|
return o.forEach((e) => this.stdOut = e), Promise.resolve();
|
|
2389
2454
|
}
|
|
2390
2455
|
};
|
|
2391
|
-
})),
|
|
2456
|
+
})), de = /* @__PURE__ */ t(((e, t) => {
|
|
2392
2457
|
function n(e) {
|
|
2393
2458
|
return typeof e == "object" && !!e;
|
|
2394
2459
|
}
|
|
@@ -2399,7 +2464,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
2399
2464
|
return Array.isArray(e) ? e : e === void 0 ? [] : r(e) || e instanceof Set ? Array.from(e) : [e];
|
|
2400
2465
|
}
|
|
2401
2466
|
t.exports = i;
|
|
2402
|
-
})),
|
|
2467
|
+
})), fe = /* @__PURE__ */ t(((e, t) => {
|
|
2403
2468
|
function n(e, t, ...n) {
|
|
2404
2469
|
let r = [];
|
|
2405
2470
|
if (!Array.isArray(e)) throw Error("Input must be an array");
|
|
@@ -2419,7 +2484,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
2419
2484
|
return e;
|
|
2420
2485
|
}
|
|
2421
2486
|
t.exports = n;
|
|
2422
|
-
})),
|
|
2487
|
+
})), pe = /* @__PURE__ */ t(((e) => {
|
|
2423
2488
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
2424
2489
|
function t(e) {
|
|
2425
2490
|
return !isNaN(parseFloat(e));
|
|
@@ -2498,7 +2563,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
2498
2563
|
isFunction: h,
|
|
2499
2564
|
isAsyncFunction: g
|
|
2500
2565
|
}, e.isArrayLike = i, e.isAsyncFunction = g, e.isClass = u, e.isDefined = o, e.isDefinedValue = l, e.isFiniteNumber = n, e.isFunction = h, e.isIterable = p, e.isNull = c, e.isNumber = t, e.isObject = a, e.isPlainObject = r, e.isPrimitive = d, e.isPromise = f, e.isString = m, e.isUndefined = s;
|
|
2501
|
-
})),
|
|
2566
|
+
})), me = /* @__PURE__ */ t(((e, t) => {
|
|
2502
2567
|
i();
|
|
2503
2568
|
var n = Infinity, a = "[object Symbol]", o = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, s = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, c = "\\ud800-\\udfff", l = "\\u0300-\\u036f\\ufe20-\\ufe23", u = "\\u20d0-\\u20f0", d = "\\u2700-\\u27bf", f = "a-z\\xdf-\\xf6\\xf8-\\xff", p = "\\xac\\xb1\\xd7\\xf7", m = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", h = "\\u2000-\\u206f", g = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", _ = "A-Z\\xc0-\\xd6\\xd8-\\xde", v = "\\ufe0e\\ufe0f", y = p + m + h + g, b = "['’]", x = "[" + c + "]", S = "[" + y + "]", C = "[" + l + u + "]", w = "\\d+", T = "[" + d + "]", E = "[" + f + "]", D = "[^" + c + y + w + d + f + _ + "]", O = "\\ud83c[\\udffb-\\udfff]", k = "(?:" + C + "|" + O + ")", A = "[^" + c + "]", j = "(?:\\ud83c[\\udde6-\\uddff]){2}", M = "[\\ud800-\\udbff][\\udc00-\\udfff]", N = "[" + _ + "]", P = "\\u200d", F = "(?:" + E + "|" + D + ")", I = "(?:" + N + "|" + D + ")", L = "(?:" + b + "(?:d|ll|m|re|s|t|ve))?", ee = "(?:" + b + "(?:D|LL|M|RE|S|T|VE))?", te = k + "?", R = "[" + v + "]?", z = "(?:" + P + "(?:" + [
|
|
2504
2569
|
A,
|
|
@@ -2514,7 +2579,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
2514
2579
|
j,
|
|
2515
2580
|
M,
|
|
2516
2581
|
x
|
|
2517
|
-
].join("|") + ")", re = RegExp(b, "g"), H = RegExp(C, "g"), U = RegExp(O + "(?=" + O + ")|" + V + ne, "g"),
|
|
2582
|
+
].join("|") + ")", re = RegExp(b, "g"), H = RegExp(C, "g"), U = RegExp(O + "(?=" + O + ")|" + V + ne, "g"), ie = RegExp([
|
|
2518
2583
|
N + "?" + E + "+" + L + "(?=" + [
|
|
2519
2584
|
S,
|
|
2520
2585
|
N,
|
|
@@ -2529,7 +2594,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
2529
2594
|
N + "+" + ee,
|
|
2530
2595
|
w,
|
|
2531
2596
|
B
|
|
2532
|
-
].join("|"), "g"),
|
|
2597
|
+
].join("|"), "g"), ae = RegExp("[" + P + c + l + u + v + "]"), W = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, oe = {
|
|
2533
2598
|
À: "A",
|
|
2534
2599
|
Á: "A",
|
|
2535
2600
|
Â: "A",
|
|
@@ -2720,7 +2785,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
2720
2785
|
œ: "oe",
|
|
2721
2786
|
ʼn: "'n",
|
|
2722
2787
|
ſ: "ss"
|
|
2723
|
-
},
|
|
2788
|
+
}, se = typeof r == "object" && r && r.Object === Object && r, G = typeof self == "object" && self && self.Object === Object && self, K = se || G || Function("return this")();
|
|
2724
2789
|
function q(e, t, n, r) {
|
|
2725
2790
|
var i = -1, a = e ? e.length : 0;
|
|
2726
2791
|
for (r && a && (n = e[++i]); ++i < a;) n = t(n, e[i], i, e);
|
|
@@ -2737,12 +2802,12 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
2737
2802
|
return e?.[t];
|
|
2738
2803
|
};
|
|
2739
2804
|
}
|
|
2740
|
-
var de = ue(
|
|
2805
|
+
var de = ue(oe);
|
|
2741
2806
|
function fe(e) {
|
|
2742
|
-
return
|
|
2807
|
+
return ae.test(e);
|
|
2743
2808
|
}
|
|
2744
2809
|
function pe(e) {
|
|
2745
|
-
return
|
|
2810
|
+
return W.test(e);
|
|
2746
2811
|
}
|
|
2747
2812
|
function me(e) {
|
|
2748
2813
|
return fe(e) ? J(e) : ce(e);
|
|
@@ -2751,7 +2816,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
2751
2816
|
return e.match(U) || [];
|
|
2752
2817
|
}
|
|
2753
2818
|
function he(e) {
|
|
2754
|
-
return e.match(
|
|
2819
|
+
return e.match(ie) || [];
|
|
2755
2820
|
}
|
|
2756
2821
|
var ge = Object.prototype.toString, Y = K.Symbol, _e = Y ? Y.prototype : void 0, ve = _e ? _e.toString : void 0;
|
|
2757
2822
|
function ye(e, t, n) {
|
|
@@ -2805,9 +2870,9 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
2805
2870
|
return e = Ee(e), t = n ? void 0 : t, t === void 0 ? pe(e) ? he(e) : le(e) : e.match(t) || [];
|
|
2806
2871
|
}
|
|
2807
2872
|
t.exports = De;
|
|
2808
|
-
})),
|
|
2873
|
+
})), J = /* @__PURE__ */ t(((e, t) => {
|
|
2809
2874
|
E();
|
|
2810
|
-
var n =
|
|
2875
|
+
var n = de(), r = fe(), i = pe(), a = me(), o = {
|
|
2811
2876
|
short: /^-([^\d-])$/,
|
|
2812
2877
|
long: /^--(\S+)/,
|
|
2813
2878
|
combinedShort: /^-[^\d-]{2,}$/,
|
|
@@ -3072,8 +3137,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
3072
3137
|
});
|
|
3073
3138
|
}
|
|
3074
3139
|
t.exports = O;
|
|
3075
|
-
})),
|
|
3076
|
-
var n = P(), r =
|
|
3140
|
+
})), he = /* @__PURE__ */ t(((e, t) => {
|
|
3141
|
+
var n = P(), r = J();
|
|
3077
3142
|
t.exports = class extends n {
|
|
3078
3143
|
static get name() {
|
|
3079
3144
|
return "ls";
|
|
@@ -3173,7 +3238,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
3173
3238
|
], { argv: e });
|
|
3174
3239
|
}
|
|
3175
3240
|
};
|
|
3176
|
-
})),
|
|
3241
|
+
})), ge = /* @__PURE__ */ t(((e, t) => {
|
|
3177
3242
|
var n = P();
|
|
3178
3243
|
t.exports = class extends n {
|
|
3179
3244
|
static get name() {
|
|
@@ -3189,7 +3254,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
3189
3254
|
return n && (r = r.replace(/\\c.*$/s, () => (t = !0, "")).replace(/\\0([0-7]{1,3})/g, (e, t) => String.fromCharCode(parseInt(t, 8))).replace(/\\x([0-9a-fA-F]{1,2})/g, (e, t) => String.fromCharCode(parseInt(t, 16))).replace(/\\n/g, "\n").replace(/\\t/g, " ").replace(/\\r/g, "\r").replace(/\\a/g, "\x07").replace(/\\b/g, "\b").replace(/\\e/g, "\x1B").replace(/\\f/g, "\f").replace(/\\v/g, "\v").replace(/\\\\/g, "\\")), t ? (r.split(/\r?\n/).forEach((e) => this.stdOut = e), Promise.resolve()) : Promise.resolve(r);
|
|
3190
3255
|
}
|
|
3191
3256
|
};
|
|
3192
|
-
})),
|
|
3257
|
+
})), Y = /* @__PURE__ */ t(((e, t) => {
|
|
3193
3258
|
var n = P();
|
|
3194
3259
|
t.exports = class extends n {
|
|
3195
3260
|
static get name() {
|
|
@@ -3208,7 +3273,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
3208
3273
|
return n.split(/\r?\n/).forEach((e) => this.stdOut = e), Promise.resolve();
|
|
3209
3274
|
}
|
|
3210
3275
|
};
|
|
3211
|
-
})),
|
|
3276
|
+
})), _e = /* @__PURE__ */ t(((e, t) => {
|
|
3212
3277
|
var n = P();
|
|
3213
3278
|
t.exports = class extends n {
|
|
3214
3279
|
static get name() {
|
|
@@ -3406,7 +3471,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
3406
3471
|
return S && !(o && E) ? this.exitCode = 2 : E || (this.exitCode = 1), Promise.resolve();
|
|
3407
3472
|
}
|
|
3408
3473
|
};
|
|
3409
|
-
})),
|
|
3474
|
+
})), ve = /* @__PURE__ */ t(((e, t) => {
|
|
3410
3475
|
var n = P();
|
|
3411
3476
|
t.exports = class extends n {
|
|
3412
3477
|
static get name() {
|
|
@@ -3416,7 +3481,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
3416
3481
|
return Promise.resolve();
|
|
3417
3482
|
}
|
|
3418
3483
|
};
|
|
3419
|
-
})),
|
|
3484
|
+
})), ye = /* @__PURE__ */ t(((e, t) => {
|
|
3420
3485
|
var n = P();
|
|
3421
3486
|
t.exports = class extends n {
|
|
3422
3487
|
static get name() {
|
|
@@ -3426,20 +3491,20 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
3426
3491
|
return this.exitCode = 1, Promise.resolve();
|
|
3427
3492
|
}
|
|
3428
3493
|
};
|
|
3429
|
-
})),
|
|
3430
|
-
var { Test: n, TestBracket: r } =
|
|
3494
|
+
})), be = /* @__PURE__ */ t(((e, t) => {
|
|
3495
|
+
var { Test: n, TestBracket: r } = le();
|
|
3431
3496
|
t.exports = [
|
|
3432
|
-
|
|
3433
|
-
J(),
|
|
3497
|
+
ue(),
|
|
3434
3498
|
he(),
|
|
3435
3499
|
ge(),
|
|
3436
3500
|
Y(),
|
|
3437
3501
|
_e(),
|
|
3438
3502
|
ve(),
|
|
3503
|
+
ye(),
|
|
3439
3504
|
n,
|
|
3440
3505
|
r
|
|
3441
3506
|
];
|
|
3442
|
-
})),
|
|
3507
|
+
})), xe = /* @__PURE__ */ t(((e, t) => {
|
|
3443
3508
|
var n = F();
|
|
3444
3509
|
t.exports = class extends n {
|
|
3445
3510
|
static get name() {
|
|
@@ -3451,7 +3516,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
3451
3516
|
return e.length === 2 ? (this.context.setAlias(e[0], e[1]), Promise.resolve()) : Promise.reject("alias requires a key and value delimited by '=' ie: key=value");
|
|
3452
3517
|
}
|
|
3453
3518
|
};
|
|
3454
|
-
})),
|
|
3519
|
+
})), Se = /* @__PURE__ */ t(((e, t) => {
|
|
3455
3520
|
var n = F();
|
|
3456
3521
|
t.exports = class extends n {
|
|
3457
3522
|
static get name() {
|
|
@@ -3463,7 +3528,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
3463
3528
|
return e.length !== 2 && Promise.reject("export requires a key and value delimited by '=' ie: key=value"), this.context.setVar(e[0], e[1]), Promise.resolve();
|
|
3464
3529
|
}
|
|
3465
3530
|
};
|
|
3466
|
-
})),
|
|
3531
|
+
})), Ce = /* @__PURE__ */ t(((e, t) => {
|
|
3467
3532
|
var n = F();
|
|
3468
3533
|
t.exports = class extends n {
|
|
3469
3534
|
static get name() {
|
|
@@ -3475,7 +3540,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
3475
3540
|
return e ? e.isDirectory ? (this.context.setCwd(this.arguments[0]), Promise.resolve()) : Promise.reject(`${this.arguments[0]}: Not a directory`) : Promise.reject("file or directory not found");
|
|
3476
3541
|
}
|
|
3477
3542
|
};
|
|
3478
|
-
})),
|
|
3543
|
+
})), we = /* @__PURE__ */ t(((e, t) => {
|
|
3479
3544
|
var n = F();
|
|
3480
3545
|
t.exports = class extends n {
|
|
3481
3546
|
static get name() {
|
|
@@ -3531,7 +3596,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
3531
3596
|
return null;
|
|
3532
3597
|
}
|
|
3533
3598
|
};
|
|
3534
|
-
})),
|
|
3599
|
+
})), Te = /* @__PURE__ */ t(((e, t) => {
|
|
3535
3600
|
var n = F(), r = D();
|
|
3536
3601
|
t.exports = class extends n {
|
|
3537
3602
|
static get name() {
|
|
@@ -3627,7 +3692,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
3627
3692
|
return null;
|
|
3628
3693
|
}
|
|
3629
3694
|
};
|
|
3630
|
-
})),
|
|
3695
|
+
})), Ee = /* @__PURE__ */ t(((e, t) => {
|
|
3631
3696
|
var n = F();
|
|
3632
3697
|
t.exports = class extends n {
|
|
3633
3698
|
static get name() {
|
|
@@ -3654,7 +3719,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
3654
3719
|
return Promise.resolve();
|
|
3655
3720
|
}
|
|
3656
3721
|
};
|
|
3657
|
-
})),
|
|
3722
|
+
})), De = /* @__PURE__ */ t(((e, t) => {
|
|
3658
3723
|
var n = F(), r = D();
|
|
3659
3724
|
t.exports = class extends n {
|
|
3660
3725
|
static get name() {
|
|
@@ -3727,7 +3792,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
3727
3792
|
return t;
|
|
3728
3793
|
}
|
|
3729
3794
|
};
|
|
3730
|
-
})),
|
|
3795
|
+
})), Oe = /* @__PURE__ */ t(((e, t) => {
|
|
3731
3796
|
var n = F();
|
|
3732
3797
|
t.exports = class extends n {
|
|
3733
3798
|
static get name() {
|
|
@@ -3738,7 +3803,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
3738
3803
|
return this.stdOut = e.endsWith("/") && e !== "/" ? e.slice(0, -1) : e, Promise.resolve();
|
|
3739
3804
|
}
|
|
3740
3805
|
};
|
|
3741
|
-
})),
|
|
3806
|
+
})), ke = /* @__PURE__ */ t(((e, t) => {
|
|
3742
3807
|
var n = F(), r = D();
|
|
3743
3808
|
t.exports = class extends n {
|
|
3744
3809
|
static get name() {
|
|
@@ -3783,7 +3848,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
3783
3848
|
this.fs.deleteFileByPath(e);
|
|
3784
3849
|
}
|
|
3785
3850
|
};
|
|
3786
|
-
})),
|
|
3851
|
+
})), Ae = /* @__PURE__ */ t(((e, t) => {
|
|
3787
3852
|
var n = F();
|
|
3788
3853
|
t.exports = class extends n {
|
|
3789
3854
|
static get name() {
|
|
@@ -3795,7 +3860,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
3795
3860
|
return !e || e.constructor === Object || e.constructor === String ? Promise.reject() : Promise.resolve(`${this.context.getVar("PATH")}/${this.arguments[0]}`);
|
|
3796
3861
|
}
|
|
3797
3862
|
};
|
|
3798
|
-
})),
|
|
3863
|
+
})), je = /* @__PURE__ */ t(((e, t) => {
|
|
3799
3864
|
var n = I(), r = F();
|
|
3800
3865
|
t.exports = class extends r {
|
|
3801
3866
|
static get name() {
|
|
@@ -3824,7 +3889,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
3824
3889
|
return Promise.reject(`${e}: permission denied`);
|
|
3825
3890
|
}
|
|
3826
3891
|
};
|
|
3827
|
-
})),
|
|
3892
|
+
})), Me = /* @__PURE__ */ t(((e, t) => {
|
|
3828
3893
|
var n = F();
|
|
3829
3894
|
t.exports = class extends n {
|
|
3830
3895
|
static get name() {
|
|
@@ -3834,7 +3899,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
3834
3899
|
return this.arguments.length > 0 ? Promise.reject("clear does not require arguments") : (this.context.clear(), Promise.resolve());
|
|
3835
3900
|
}
|
|
3836
3901
|
};
|
|
3837
|
-
})),
|
|
3902
|
+
})), Ne = /* @__PURE__ */ t(((e, t) => {
|
|
3838
3903
|
var n = F();
|
|
3839
3904
|
t.exports = class extends n {
|
|
3840
3905
|
static get name() {
|
|
@@ -3845,8 +3910,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
3845
3910
|
return this.exitCode = e, this.context.destroy(e), Promise.resolve();
|
|
3846
3911
|
}
|
|
3847
3912
|
};
|
|
3848
|
-
})),
|
|
3849
|
-
var n = F(), r =
|
|
3913
|
+
})), Pe = /* @__PURE__ */ t(((e, t) => {
|
|
3914
|
+
var n = F(), r = J();
|
|
3850
3915
|
t.exports = class extends n {
|
|
3851
3916
|
static get name() {
|
|
3852
3917
|
return "read";
|
|
@@ -3919,7 +3984,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
3919
3984
|
], { argv: this.arguments });
|
|
3920
3985
|
}
|
|
3921
3986
|
};
|
|
3922
|
-
})),
|
|
3987
|
+
})), Fe = /* @__PURE__ */ t(((e, t) => {
|
|
3923
3988
|
var n = F(), r = P();
|
|
3924
3989
|
t.exports = class extends n {
|
|
3925
3990
|
static get name() {
|
|
@@ -3955,7 +4020,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
3955
4020
|
}), this.context.setCommand(a), Promise.resolve();
|
|
3956
4021
|
}
|
|
3957
4022
|
};
|
|
3958
|
-
})),
|
|
4023
|
+
})), Ie = /* @__PURE__ */ t(((e, t) => {
|
|
3959
4024
|
var n = F();
|
|
3960
4025
|
t.exports = class extends n {
|
|
3961
4026
|
static get name() {
|
|
@@ -4040,7 +4105,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4040
4105
|
});
|
|
4041
4106
|
}
|
|
4042
4107
|
};
|
|
4043
|
-
})),
|
|
4108
|
+
})), Le = /* @__PURE__ */ t(((e, t) => {
|
|
4044
4109
|
var n = F(), r = {
|
|
4045
4110
|
errexit: "e",
|
|
4046
4111
|
xtrace: "x",
|
|
@@ -4097,16 +4162,15 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4097
4162
|
t ? n.includes(e) || this.context.setVar("-", n + e) : this.context.setVar("-", n.split("").filter((t) => t !== e).join(""));
|
|
4098
4163
|
}
|
|
4099
4164
|
};
|
|
4100
|
-
})),
|
|
4101
|
-
var n =
|
|
4165
|
+
})), Re = /* @__PURE__ */ t(((e, t) => {
|
|
4166
|
+
var n = je();
|
|
4102
4167
|
t.exports = class extends n {
|
|
4103
4168
|
static get name() {
|
|
4104
4169
|
return ".";
|
|
4105
4170
|
}
|
|
4106
4171
|
};
|
|
4107
|
-
})),
|
|
4172
|
+
})), ze = /* @__PURE__ */ t(((e, t) => {
|
|
4108
4173
|
t.exports = [
|
|
4109
|
-
be(),
|
|
4110
4174
|
xe(),
|
|
4111
4175
|
Se(),
|
|
4112
4176
|
Ce(),
|
|
@@ -4123,56 +4187,57 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4123
4187
|
Pe(),
|
|
4124
4188
|
Fe(),
|
|
4125
4189
|
Ie(),
|
|
4126
|
-
Le()
|
|
4190
|
+
Le(),
|
|
4191
|
+
Re()
|
|
4127
4192
|
];
|
|
4128
|
-
})), ze = /* @__PURE__ */ t(((e, t) => {
|
|
4129
|
-
t.exports = Object;
|
|
4130
4193
|
})), Be = /* @__PURE__ */ t(((e, t) => {
|
|
4131
|
-
t.exports =
|
|
4194
|
+
t.exports = Object;
|
|
4132
4195
|
})), Ve = /* @__PURE__ */ t(((e, t) => {
|
|
4133
|
-
t.exports =
|
|
4196
|
+
t.exports = Error;
|
|
4134
4197
|
})), He = /* @__PURE__ */ t(((e, t) => {
|
|
4135
|
-
t.exports =
|
|
4198
|
+
t.exports = EvalError;
|
|
4136
4199
|
})), Ue = /* @__PURE__ */ t(((e, t) => {
|
|
4137
|
-
t.exports =
|
|
4200
|
+
t.exports = RangeError;
|
|
4138
4201
|
})), We = /* @__PURE__ */ t(((e, t) => {
|
|
4202
|
+
t.exports = ReferenceError;
|
|
4203
|
+
})), Ge = /* @__PURE__ */ t(((e, t) => {
|
|
4139
4204
|
t.exports = SyntaxError;
|
|
4140
4205
|
})), X = /* @__PURE__ */ t(((e, t) => {
|
|
4141
4206
|
t.exports = TypeError;
|
|
4142
|
-
})), Ge = /* @__PURE__ */ t(((e, t) => {
|
|
4143
|
-
t.exports = URIError;
|
|
4144
4207
|
})), Ke = /* @__PURE__ */ t(((e, t) => {
|
|
4145
|
-
t.exports =
|
|
4208
|
+
t.exports = URIError;
|
|
4146
4209
|
})), qe = /* @__PURE__ */ t(((e, t) => {
|
|
4147
|
-
t.exports = Math.
|
|
4210
|
+
t.exports = Math.abs;
|
|
4148
4211
|
})), Je = /* @__PURE__ */ t(((e, t) => {
|
|
4149
|
-
t.exports = Math.
|
|
4212
|
+
t.exports = Math.floor;
|
|
4150
4213
|
})), Ye = /* @__PURE__ */ t(((e, t) => {
|
|
4151
|
-
t.exports = Math.
|
|
4214
|
+
t.exports = Math.max;
|
|
4152
4215
|
})), Xe = /* @__PURE__ */ t(((e, t) => {
|
|
4153
|
-
t.exports = Math.
|
|
4216
|
+
t.exports = Math.min;
|
|
4154
4217
|
})), Ze = /* @__PURE__ */ t(((e, t) => {
|
|
4155
|
-
t.exports = Math.
|
|
4218
|
+
t.exports = Math.pow;
|
|
4156
4219
|
})), Qe = /* @__PURE__ */ t(((e, t) => {
|
|
4220
|
+
t.exports = Math.round;
|
|
4221
|
+
})), $e = /* @__PURE__ */ t(((e, t) => {
|
|
4157
4222
|
t.exports = Number.isNaN || function(e) {
|
|
4158
4223
|
return e !== e;
|
|
4159
4224
|
};
|
|
4160
|
-
})),
|
|
4161
|
-
var n =
|
|
4225
|
+
})), et = /* @__PURE__ */ t(((e, t) => {
|
|
4226
|
+
var n = $e();
|
|
4162
4227
|
t.exports = function(e) {
|
|
4163
4228
|
return n(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
4164
4229
|
};
|
|
4165
|
-
})), et = /* @__PURE__ */ t(((e, t) => {
|
|
4166
|
-
t.exports = Object.getOwnPropertyDescriptor;
|
|
4167
4230
|
})), tt = /* @__PURE__ */ t(((e, t) => {
|
|
4168
|
-
|
|
4231
|
+
t.exports = Object.getOwnPropertyDescriptor;
|
|
4232
|
+
})), nt = /* @__PURE__ */ t(((e, t) => {
|
|
4233
|
+
var n = tt();
|
|
4169
4234
|
if (n) try {
|
|
4170
4235
|
n([], "length");
|
|
4171
4236
|
} catch {
|
|
4172
4237
|
n = null;
|
|
4173
4238
|
}
|
|
4174
4239
|
t.exports = n;
|
|
4175
|
-
})),
|
|
4240
|
+
})), rt = /* @__PURE__ */ t(((e, t) => {
|
|
4176
4241
|
var n = Object.defineProperty || !1;
|
|
4177
4242
|
if (n) try {
|
|
4178
4243
|
n({}, "a", { value: 1 });
|
|
@@ -4180,7 +4245,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4180
4245
|
n = !1;
|
|
4181
4246
|
}
|
|
4182
4247
|
t.exports = n;
|
|
4183
|
-
})),
|
|
4248
|
+
})), it = /* @__PURE__ */ t(((e, t) => {
|
|
4184
4249
|
t.exports = function() {
|
|
4185
4250
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function") return !1;
|
|
4186
4251
|
if (typeof Symbol.iterator == "symbol") return !0;
|
|
@@ -4197,16 +4262,16 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4197
4262
|
}
|
|
4198
4263
|
return !0;
|
|
4199
4264
|
};
|
|
4200
|
-
})),
|
|
4201
|
-
var n = typeof Symbol < "u" && Symbol, r =
|
|
4265
|
+
})), at = /* @__PURE__ */ t(((e, t) => {
|
|
4266
|
+
var n = typeof Symbol < "u" && Symbol, r = it();
|
|
4202
4267
|
t.exports = function() {
|
|
4203
4268
|
return typeof n != "function" || typeof Symbol != "function" || typeof n("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : r();
|
|
4204
4269
|
};
|
|
4205
|
-
})), at = /* @__PURE__ */ t(((e, t) => {
|
|
4206
|
-
t.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
|
|
4207
4270
|
})), ot = /* @__PURE__ */ t(((e, t) => {
|
|
4208
|
-
t.exports =
|
|
4271
|
+
t.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
|
|
4209
4272
|
})), st = /* @__PURE__ */ t(((e, t) => {
|
|
4273
|
+
t.exports = Be().getPrototypeOf || null;
|
|
4274
|
+
})), ct = /* @__PURE__ */ t(((e, t) => {
|
|
4210
4275
|
var n = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, i = Math.max, a = "[object Function]", o = function(e, t) {
|
|
4211
4276
|
for (var n = [], r = 0; r < e.length; r += 1) n[r] = e[r];
|
|
4212
4277
|
for (var i = 0; i < t.length; i += 1) n[i + e.length] = t[i];
|
|
@@ -4234,26 +4299,26 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4234
4299
|
}
|
|
4235
4300
|
return u;
|
|
4236
4301
|
};
|
|
4237
|
-
})), ct = /* @__PURE__ */ t(((e, t) => {
|
|
4238
|
-
var n = st();
|
|
4239
|
-
t.exports = Function.prototype.bind || n;
|
|
4240
4302
|
})), lt = /* @__PURE__ */ t(((e, t) => {
|
|
4241
|
-
|
|
4303
|
+
var n = ct();
|
|
4304
|
+
t.exports = Function.prototype.bind || n;
|
|
4242
4305
|
})), ut = /* @__PURE__ */ t(((e, t) => {
|
|
4243
|
-
t.exports = Function.prototype.
|
|
4306
|
+
t.exports = Function.prototype.call;
|
|
4244
4307
|
})), dt = /* @__PURE__ */ t(((e, t) => {
|
|
4245
|
-
t.exports =
|
|
4308
|
+
t.exports = Function.prototype.apply;
|
|
4246
4309
|
})), ft = /* @__PURE__ */ t(((e, t) => {
|
|
4247
|
-
|
|
4248
|
-
t.exports = dt() || n.call(i, r);
|
|
4310
|
+
t.exports = typeof Reflect < "u" && Reflect && Reflect.apply;
|
|
4249
4311
|
})), pt = /* @__PURE__ */ t(((e, t) => {
|
|
4250
|
-
var n =
|
|
4312
|
+
var n = lt(), r = dt(), i = ut();
|
|
4313
|
+
t.exports = ft() || n.call(i, r);
|
|
4314
|
+
})), mt = /* @__PURE__ */ t(((e, t) => {
|
|
4315
|
+
var n = lt(), r = X(), i = ut(), a = pt();
|
|
4251
4316
|
t.exports = function(e) {
|
|
4252
4317
|
if (e.length < 1 || typeof e[0] != "function") throw new r("a function is required");
|
|
4253
4318
|
return a(n, i, e);
|
|
4254
4319
|
};
|
|
4255
|
-
})),
|
|
4256
|
-
var n =
|
|
4320
|
+
})), ht = /* @__PURE__ */ t(((e, t) => {
|
|
4321
|
+
var n = mt(), r = nt(), i;
|
|
4257
4322
|
try {
|
|
4258
4323
|
i = [].__proto__ === Array.prototype;
|
|
4259
4324
|
} catch (e) {
|
|
@@ -4263,8 +4328,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4263
4328
|
t.exports = a && typeof a.get == "function" ? n([a.get]) : typeof s == "function" ? function(e) {
|
|
4264
4329
|
return s(e == null ? e : o(e));
|
|
4265
4330
|
} : !1;
|
|
4266
|
-
})),
|
|
4267
|
-
var n =
|
|
4331
|
+
})), gt = /* @__PURE__ */ t(((e, t) => {
|
|
4332
|
+
var n = ot(), r = st(), i = ht();
|
|
4268
4333
|
t.exports = n ? function(e) {
|
|
4269
4334
|
return n(e);
|
|
4270
4335
|
} : r ? function(e) {
|
|
@@ -4273,15 +4338,15 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4273
4338
|
} : i ? function(e) {
|
|
4274
4339
|
return i(e);
|
|
4275
4340
|
} : null;
|
|
4276
|
-
})),
|
|
4341
|
+
})), _t = /* @__PURE__ */ t(((e, t) => {
|
|
4277
4342
|
var n = Function.prototype.call, r = Object.prototype.hasOwnProperty;
|
|
4278
|
-
t.exports =
|
|
4343
|
+
t.exports = lt().call(n, r);
|
|
4279
4344
|
})), Z = /* @__PURE__ */ t(((e, t) => {
|
|
4280
|
-
var n, r =
|
|
4345
|
+
var n, r = Be(), i = Ve(), a = He(), o = Ue(), s = We(), c = Ge(), l = X(), u = Ke(), d = qe(), f = Je(), p = Ye(), m = Xe(), h = Ze(), g = Qe(), _ = et(), v = Function, y = function(e) {
|
|
4281
4346
|
try {
|
|
4282
4347
|
return v("\"use strict\"; return (" + e + ").constructor;")();
|
|
4283
4348
|
} catch {}
|
|
4284
|
-
}, b =
|
|
4349
|
+
}, b = nt(), x = rt(), S = function() {
|
|
4285
4350
|
throw new l();
|
|
4286
4351
|
}, C = b ? function() {
|
|
4287
4352
|
try {
|
|
@@ -4293,7 +4358,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4293
4358
|
return S;
|
|
4294
4359
|
}
|
|
4295
4360
|
}
|
|
4296
|
-
}() : S, w =
|
|
4361
|
+
}() : S, w = at()(), T = gt(), E = st(), D = ot(), O = dt(), k = ut(), A = {}, j = typeof Uint8Array > "u" || !T ? n : T(Uint8Array), M = {
|
|
4297
4362
|
__proto__: null,
|
|
4298
4363
|
"%AggregateError%": typeof AggregateError > "u" ? n : AggregateError,
|
|
4299
4364
|
"%Array%": Array,
|
|
@@ -4483,7 +4548,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4483
4548
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
4484
4549
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
4485
4550
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
4486
|
-
}, F =
|
|
4551
|
+
}, F = lt(), I = _t(), L = F.call(k, Array.prototype.concat), ee = F.call(O, Array.prototype.splice), te = F.call(k, String.prototype.replace), R = F.call(k, String.prototype.slice), z = F.call(k, RegExp.prototype.exec), ne = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, B = /\\(\\)?/g, V = function(e) {
|
|
4487
4552
|
var t = R(e, 0, 1), n = R(e, -1);
|
|
4488
4553
|
if (t === "%" && n !== "%") throw new c("invalid intrinsic syntax, expected closing `%`");
|
|
4489
4554
|
if (n === "%" && t !== "%") throw new c("invalid intrinsic syntax, expected opening `%`");
|
|
@@ -4528,8 +4593,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4528
4593
|
}
|
|
4529
4594
|
return o;
|
|
4530
4595
|
};
|
|
4531
|
-
})),
|
|
4532
|
-
var n =
|
|
4596
|
+
})), vt = /* @__PURE__ */ t(((e, t) => {
|
|
4597
|
+
var n = rt(), r = Ge(), i = X(), a = nt();
|
|
4533
4598
|
t.exports = function(e, t, o) {
|
|
4534
4599
|
if (!e || typeof e != "object" && typeof e != "function") throw new i("`obj` must be an object or a function`");
|
|
4535
4600
|
if (typeof t != "string" && typeof t != "symbol") throw new i("`property` must be a string or a symbol`");
|
|
@@ -4547,8 +4612,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4547
4612
|
else if (u || !s && !c && !l) e[t] = o;
|
|
4548
4613
|
else throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
4549
4614
|
};
|
|
4550
|
-
})),
|
|
4551
|
-
var n =
|
|
4615
|
+
})), yt = /* @__PURE__ */ t(((e, t) => {
|
|
4616
|
+
var n = rt(), r = function() {
|
|
4552
4617
|
return !!n;
|
|
4553
4618
|
};
|
|
4554
4619
|
r.hasArrayLengthDefineBug = function() {
|
|
@@ -4559,8 +4624,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4559
4624
|
return !0;
|
|
4560
4625
|
}
|
|
4561
4626
|
}, t.exports = r;
|
|
4562
|
-
})),
|
|
4563
|
-
var n = Z(), r =
|
|
4627
|
+
})), bt = /* @__PURE__ */ t(((e, t) => {
|
|
4628
|
+
var n = Z(), r = vt(), i = yt()(), a = nt(), o = X(), s = n("%Math.floor%");
|
|
4564
4629
|
t.exports = function(e, t) {
|
|
4565
4630
|
if (typeof e != "function") throw new o("`fn` is not a function");
|
|
4566
4631
|
if (typeof t != "number" || t < 0 || t > 4294967295 || s(t) !== t) throw new o("`length` must be a positive 32-bit integer");
|
|
@@ -4571,27 +4636,27 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4571
4636
|
}
|
|
4572
4637
|
return (c || l || !n) && (i ? r(e, "length", t, !0, !0) : r(e, "length", t)), e;
|
|
4573
4638
|
};
|
|
4574
|
-
})),
|
|
4575
|
-
var n =
|
|
4639
|
+
})), xt = /* @__PURE__ */ t(((e, t) => {
|
|
4640
|
+
var n = lt(), r = dt(), i = pt();
|
|
4576
4641
|
t.exports = function() {
|
|
4577
4642
|
return i(n, r, arguments);
|
|
4578
4643
|
};
|
|
4579
|
-
})),
|
|
4580
|
-
var n =
|
|
4644
|
+
})), St = /* @__PURE__ */ t(((e, t) => {
|
|
4645
|
+
var n = bt(), r = rt(), i = mt(), a = xt();
|
|
4581
4646
|
t.exports = function(e) {
|
|
4582
4647
|
var t = i(arguments), r = 1 + e.length - (arguments.length - 1);
|
|
4583
4648
|
return n(t, r > 0 ? r : 0, !0);
|
|
4584
4649
|
}, r ? r(t.exports, "apply", { value: a }) : t.exports.apply = a;
|
|
4585
|
-
})),
|
|
4650
|
+
})), Ct = /* @__PURE__ */ t(((e, t) => {
|
|
4586
4651
|
var n = Object.prototype.toString;
|
|
4587
4652
|
t.exports = function(e) {
|
|
4588
4653
|
var t = n.call(e), r = t === "[object Arguments]";
|
|
4589
4654
|
return r ||= t !== "[object Array]" && typeof e == "object" && !!e && typeof e.length == "number" && e.length >= 0 && n.call(e.callee) === "[object Function]", r;
|
|
4590
4655
|
};
|
|
4591
|
-
})),
|
|
4656
|
+
})), wt = /* @__PURE__ */ t(((e, t) => {
|
|
4592
4657
|
var n;
|
|
4593
4658
|
if (!Object.keys) {
|
|
4594
|
-
var r = Object.prototype.hasOwnProperty, i = Object.prototype.toString, a =
|
|
4659
|
+
var r = Object.prototype.hasOwnProperty, i = Object.prototype.toString, a = Ct(), o = Object.prototype.propertyIsEnumerable, s = !o.call({ toString: null }, "toString"), c = o.call(function() {}, "prototype"), l = [
|
|
4595
4660
|
"toString",
|
|
4596
4661
|
"toLocaleString",
|
|
4597
4662
|
"valueOf",
|
|
@@ -4658,10 +4723,10 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4658
4723
|
};
|
|
4659
4724
|
}
|
|
4660
4725
|
t.exports = n;
|
|
4661
|
-
})),
|
|
4662
|
-
var n = Array.prototype.slice, r =
|
|
4726
|
+
})), Tt = /* @__PURE__ */ t(((e, t) => {
|
|
4727
|
+
var n = Array.prototype.slice, r = Ct(), i = Object.keys, a = i ? function(e) {
|
|
4663
4728
|
return i(e);
|
|
4664
|
-
} :
|
|
4729
|
+
} : wt(), o = Object.keys;
|
|
4665
4730
|
a.shim = function() {
|
|
4666
4731
|
return Object.keys ? function() {
|
|
4667
4732
|
var e = Object.keys(arguments);
|
|
@@ -4670,10 +4735,10 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4670
4735
|
return r(e) ? o(n.call(e)) : o(e);
|
|
4671
4736
|
}) : Object.keys = a, Object.keys || a;
|
|
4672
4737
|
}, t.exports = a;
|
|
4673
|
-
})),
|
|
4674
|
-
var n =
|
|
4738
|
+
})), Et = /* @__PURE__ */ t(((e, t) => {
|
|
4739
|
+
var n = Tt(), r = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", i = Object.prototype.toString, a = Array.prototype.concat, o = vt(), s = function(e) {
|
|
4675
4740
|
return typeof e == "function" && i.call(e) === "[object Function]";
|
|
4676
|
-
}, c =
|
|
4741
|
+
}, c = yt()(), l = function(e, t, n, r) {
|
|
4677
4742
|
if (t in e) {
|
|
4678
4743
|
if (r === !0) {
|
|
4679
4744
|
if (e[t] === n) return;
|
|
@@ -4687,28 +4752,28 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4687
4752
|
};
|
|
4688
4753
|
u.supportsDescriptors = !!c, t.exports = u;
|
|
4689
4754
|
})), Q = /* @__PURE__ */ t(((e, t) => {
|
|
4690
|
-
var n = Z(), r =
|
|
4755
|
+
var n = Z(), r = mt(), i = r([n("%String.prototype.indexOf%")]);
|
|
4691
4756
|
t.exports = function(e, t) {
|
|
4692
4757
|
var a = n(e, !!t);
|
|
4693
4758
|
return typeof a == "function" && i(e, ".prototype.") > -1 ? r([a]) : a;
|
|
4694
4759
|
};
|
|
4695
|
-
})),
|
|
4760
|
+
})), Dt = /* @__PURE__ */ t(((e, t) => {
|
|
4696
4761
|
var n = Z()("%Array%"), r = !n.isArray && Q()("Object.prototype.toString");
|
|
4697
4762
|
t.exports = n.isArray || function(e) {
|
|
4698
4763
|
return r(e) === "[object Array]";
|
|
4699
4764
|
};
|
|
4700
|
-
})), Dt = /* @__PURE__ */ t(((e, t) => {
|
|
4701
|
-
t.exports = Et();
|
|
4702
4765
|
})), Ot = /* @__PURE__ */ t(((e, t) => {
|
|
4703
|
-
|
|
4766
|
+
t.exports = Dt();
|
|
4767
|
+
})), kt = /* @__PURE__ */ t(((e, t) => {
|
|
4768
|
+
var n = Z(), r = Q(), i = X(), a = Ot(), o = n("%Reflect.apply%", !0) || r("Function.prototype.apply");
|
|
4704
4769
|
t.exports = function(e, t) {
|
|
4705
4770
|
var n = arguments.length > 2 ? arguments[2] : [];
|
|
4706
4771
|
if (!a(n)) throw new i("Assertion failed: optional `argumentsList`, if provided, must be a List");
|
|
4707
4772
|
return o(e, t, n);
|
|
4708
4773
|
};
|
|
4709
|
-
})), kt = /* @__PURE__ */ t(((e, t) => {
|
|
4710
|
-
t.exports = {};
|
|
4711
4774
|
})), At = /* @__PURE__ */ t(((e, t) => {
|
|
4775
|
+
t.exports = {};
|
|
4776
|
+
})), jt = /* @__PURE__ */ t(((e, t) => {
|
|
4712
4777
|
i();
|
|
4713
4778
|
var n = typeof Map == "function" && Map.prototype, a = Object.getOwnPropertyDescriptor && n ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, o = n && a && typeof a.get == "function" ? a.get : null, s = n && Map.prototype.forEach, c = typeof Set == "function" && Set.prototype, l = Object.getOwnPropertyDescriptor && c ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, u = c && l && typeof l.get == "function" ? l.get : null, d = c && Set.prototype.forEach, f = typeof WeakMap == "function" && WeakMap.prototype ? WeakMap.prototype.has : null, p = typeof WeakSet == "function" && WeakSet.prototype ? WeakSet.prototype.has : null, m = typeof WeakRef == "function" && WeakRef.prototype ? WeakRef.prototype.deref : null, h = Boolean.prototype.valueOf, g = Object.prototype.toString, _ = Function.prototype.toString, v = String.prototype.match, y = String.prototype.slice, b = String.prototype.replace, x = String.prototype.toUpperCase, S = String.prototype.toLowerCase, C = RegExp.prototype.test, w = Array.prototype.concat, T = Array.prototype.join, E = Array.prototype.slice, D = Math.floor, O = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, k = Object.getOwnPropertySymbols, A = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, j = typeof Symbol == "function" && typeof Symbol.iterator == "object", M = typeof Symbol == "function" && Symbol.toStringTag ? Symbol.toStringTag : null, N = Object.prototype.propertyIsEnumerable, P = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
|
|
4714
4779
|
return e.__proto__;
|
|
@@ -4725,7 +4790,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4725
4790
|
}
|
|
4726
4791
|
return b.call(t, n, "$&_");
|
|
4727
4792
|
}
|
|
4728
|
-
var I =
|
|
4793
|
+
var I = At(), L = I.custom, ee = oe(L) ? L : null, te = {
|
|
4729
4794
|
__proto__: null,
|
|
4730
4795
|
double: "\"",
|
|
4731
4796
|
single: "'"
|
|
@@ -4772,7 +4837,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4772
4837
|
var x = ce(t), C = Se(t, v);
|
|
4773
4838
|
return "[Function" + (x ? ": " + x : " (anonymous)") + "]" + (C.length > 0 ? " { " + T.call(C, ", ") + " }" : "");
|
|
4774
4839
|
}
|
|
4775
|
-
if (
|
|
4840
|
+
if (oe(t)) {
|
|
4776
4841
|
var D = j ? b.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : A.call(t);
|
|
4777
4842
|
return typeof t == "object" && !j ? Y(D) : D;
|
|
4778
4843
|
}
|
|
@@ -4786,8 +4851,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4786
4851
|
return _ && !ye(B) ? "[" + xe(B, _) + "]" : "[ " + T.call(B, ", ") + " ]";
|
|
4787
4852
|
}
|
|
4788
4853
|
if (U(t)) {
|
|
4789
|
-
var
|
|
4790
|
-
return !("cause" in Error.prototype) && "cause" in t && !N.call(t, "cause") ? "{ [" + String(t) + "] " + T.call(w.call("[cause]: " + v(t.cause),
|
|
4854
|
+
var G = Se(t, v);
|
|
4855
|
+
return !("cause" in Error.prototype) && "cause" in t && !N.call(t, "cause") ? "{ [" + String(t) + "] " + T.call(w.call("[cause]: " + v(t.cause), G), ", ") + " }" : G.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + T.call(G, ", ") + " }";
|
|
4791
4856
|
}
|
|
4792
4857
|
if (typeof t == "object" && l) {
|
|
4793
4858
|
if (ee && typeof t[ee] == "function" && I) return I(t, { depth: g - i });
|
|
@@ -4808,10 +4873,10 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4808
4873
|
if (de(t)) return _e("WeakMap");
|
|
4809
4874
|
if (me(t)) return _e("WeakSet");
|
|
4810
4875
|
if (fe(t)) return _e("WeakRef");
|
|
4811
|
-
if (
|
|
4812
|
-
if (
|
|
4813
|
-
if (
|
|
4814
|
-
if (
|
|
4876
|
+
if (ae(t)) return Y(v(Number(t)));
|
|
4877
|
+
if (se(t)) return Y(v(O.call(t)));
|
|
4878
|
+
if (W(t)) return Y(h.call(t));
|
|
4879
|
+
if (ie(t)) return Y(v(String(t)));
|
|
4815
4880
|
if (typeof window < "u" && t === window) return "{ [object Window] }";
|
|
4816
4881
|
if (typeof globalThis < "u" && t === globalThis || r !== void 0 && t === r) return "{ [object globalThis] }";
|
|
4817
4882
|
if (!re(t) && !H(t)) {
|
|
@@ -4842,16 +4907,16 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4842
4907
|
function U(e) {
|
|
4843
4908
|
return q(e) === "[object Error]" && B(e);
|
|
4844
4909
|
}
|
|
4845
|
-
function
|
|
4910
|
+
function ie(e) {
|
|
4846
4911
|
return q(e) === "[object String]" && B(e);
|
|
4847
4912
|
}
|
|
4848
|
-
function
|
|
4913
|
+
function ae(e) {
|
|
4849
4914
|
return q(e) === "[object Number]" && B(e);
|
|
4850
4915
|
}
|
|
4851
|
-
function
|
|
4916
|
+
function W(e) {
|
|
4852
4917
|
return q(e) === "[object Boolean]" && B(e);
|
|
4853
4918
|
}
|
|
4854
|
-
function
|
|
4919
|
+
function oe(e) {
|
|
4855
4920
|
if (j) return e && typeof e == "object" && e instanceof Symbol;
|
|
4856
4921
|
if (typeof e == "symbol") return !0;
|
|
4857
4922
|
if (!e || typeof e != "object" || !A) return !1;
|
|
@@ -4860,18 +4925,18 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4860
4925
|
} catch {}
|
|
4861
4926
|
return !1;
|
|
4862
4927
|
}
|
|
4863
|
-
function
|
|
4928
|
+
function se(e) {
|
|
4864
4929
|
if (!e || typeof e != "object" || !O) return !1;
|
|
4865
4930
|
try {
|
|
4866
4931
|
return O.call(e), !0;
|
|
4867
4932
|
} catch {}
|
|
4868
4933
|
return !1;
|
|
4869
4934
|
}
|
|
4870
|
-
var
|
|
4935
|
+
var G = Object.prototype.hasOwnProperty || function(e) {
|
|
4871
4936
|
return e in this;
|
|
4872
4937
|
};
|
|
4873
4938
|
function K(e, t) {
|
|
4874
|
-
return
|
|
4939
|
+
return G.call(e, t);
|
|
4875
4940
|
}
|
|
4876
4941
|
function q(e) {
|
|
4877
4942
|
return g.call(e);
|
|
@@ -5010,7 +5075,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5010
5075
|
if (typeof k == "function") for (var l = 0; l < a.length; l++) N.call(e, a[l]) && r.push("[" + t(a[l]) + "]: " + t(e[a[l]], e));
|
|
5011
5076
|
return r;
|
|
5012
5077
|
}
|
|
5013
|
-
})),
|
|
5078
|
+
})), Mt = /* @__PURE__ */ t(((e, t) => {
|
|
5014
5079
|
t.exports = function(e) {
|
|
5015
5080
|
return typeof e == "string" || typeof e == "symbol";
|
|
5016
5081
|
};
|
|
@@ -5018,20 +5083,20 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5018
5083
|
t.exports = function(e) {
|
|
5019
5084
|
return !!e && (typeof e == "function" || typeof e == "object");
|
|
5020
5085
|
};
|
|
5021
|
-
})),
|
|
5022
|
-
var n = X(), r =
|
|
5086
|
+
})), Nt = /* @__PURE__ */ t(((e, t) => {
|
|
5087
|
+
var n = X(), r = jt(), i = Mt(), a = $();
|
|
5023
5088
|
t.exports = function(e, t) {
|
|
5024
5089
|
if (!a(e)) throw new n("Assertion failed: Type(O) is not Object");
|
|
5025
5090
|
if (!i(t)) throw new n("Assertion failed: P is not a Property Key, got " + r(t));
|
|
5026
5091
|
return e[t];
|
|
5027
5092
|
};
|
|
5028
|
-
})),
|
|
5029
|
-
var n = X(), r =
|
|
5093
|
+
})), Pt = /* @__PURE__ */ t(((e, t) => {
|
|
5094
|
+
var n = X(), r = jt(), i = Mt();
|
|
5030
5095
|
t.exports = function(e, t) {
|
|
5031
5096
|
if (!i(t)) throw new n("Assertion failed: P is not a Property Key, got " + r(t));
|
|
5032
5097
|
return e[t];
|
|
5033
5098
|
};
|
|
5034
|
-
})),
|
|
5099
|
+
})), Ft = /* @__PURE__ */ t(((e, t) => {
|
|
5035
5100
|
var n = Function.prototype.toString, r = typeof Reflect == "object" && Reflect !== null && Reflect.apply, i, a;
|
|
5036
5101
|
if (typeof r == "function" && typeof Object.defineProperty == "function") try {
|
|
5037
5102
|
i = Object.defineProperty({}, "length", { get: function() {
|
|
@@ -5086,10 +5151,10 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5086
5151
|
var t = l.call(e);
|
|
5087
5152
|
return t !== d && t !== f && !/^\[object HTML/.test(t) ? !1 : c(e);
|
|
5088
5153
|
};
|
|
5089
|
-
})), Ft = /* @__PURE__ */ t(((e, t) => {
|
|
5090
|
-
t.exports = Pt();
|
|
5091
5154
|
})), It = /* @__PURE__ */ t(((e, t) => {
|
|
5092
|
-
|
|
5155
|
+
t.exports = Ft();
|
|
5156
|
+
})), Lt = /* @__PURE__ */ t(((e, t) => {
|
|
5157
|
+
var n = X(), r = Pt(), i = It(), a = Mt(), o = jt();
|
|
5093
5158
|
t.exports = function(e, t) {
|
|
5094
5159
|
if (!a(t)) throw new n("Assertion failed: P is not a Property Key");
|
|
5095
5160
|
var s = r(e, t);
|
|
@@ -5098,13 +5163,13 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5098
5163
|
return s;
|
|
5099
5164
|
}
|
|
5100
5165
|
};
|
|
5101
|
-
})),
|
|
5102
|
-
var n =
|
|
5166
|
+
})), Rt = /* @__PURE__ */ t(((e, t) => {
|
|
5167
|
+
var n = it();
|
|
5103
5168
|
t.exports = function() {
|
|
5104
5169
|
return n() && !!Symbol.toStringTag;
|
|
5105
5170
|
};
|
|
5106
|
-
})),
|
|
5107
|
-
var n = Q(), r =
|
|
5171
|
+
})), zt = /* @__PURE__ */ t(((e, t) => {
|
|
5172
|
+
var n = Q(), r = Rt()(), i = _t(), a = nt(), o;
|
|
5108
5173
|
if (r) {
|
|
5109
5174
|
var s = n("RegExp.prototype.exec"), c = {}, l = function() {
|
|
5110
5175
|
throw c;
|
|
@@ -5129,12 +5194,12 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5129
5194
|
};
|
|
5130
5195
|
}
|
|
5131
5196
|
t.exports = o;
|
|
5132
|
-
})),
|
|
5197
|
+
})), Bt = /* @__PURE__ */ t(((e, t) => {
|
|
5133
5198
|
t.exports = function(e) {
|
|
5134
5199
|
return !!e;
|
|
5135
5200
|
};
|
|
5136
|
-
})),
|
|
5137
|
-
var n = Z()("%Symbol.match%", !0), r =
|
|
5201
|
+
})), Vt = /* @__PURE__ */ t(((e, t) => {
|
|
5202
|
+
var n = Z()("%Symbol.match%", !0), r = zt(), i = $(), a = Bt();
|
|
5138
5203
|
t.exports = function(e) {
|
|
5139
5204
|
if (!i(e)) return !1;
|
|
5140
5205
|
if (n) {
|
|
@@ -5143,19 +5208,19 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5143
5208
|
}
|
|
5144
5209
|
return r(e);
|
|
5145
5210
|
};
|
|
5146
|
-
})),
|
|
5211
|
+
})), Ht = /* @__PURE__ */ t(((e, t) => {
|
|
5147
5212
|
var n = Z()("%String%"), r = X();
|
|
5148
5213
|
t.exports = function(e) {
|
|
5149
5214
|
if (typeof e == "symbol") throw new r("Cannot convert a Symbol value to a string");
|
|
5150
5215
|
return n(e);
|
|
5151
5216
|
};
|
|
5152
|
-
})),
|
|
5217
|
+
})), Ut = /* @__PURE__ */ t(((e, t) => {
|
|
5153
5218
|
var n = X();
|
|
5154
5219
|
t.exports = function(e) {
|
|
5155
5220
|
if (e == null) throw new n(arguments.length > 0 && arguments[1] || "Cannot call method on " + e);
|
|
5156
5221
|
return e;
|
|
5157
5222
|
};
|
|
5158
|
-
})),
|
|
5223
|
+
})), Wt = /* @__PURE__ */ t(((e, t) => {
|
|
5159
5224
|
var n = function() {
|
|
5160
5225
|
return typeof function() {}.name == "string";
|
|
5161
5226
|
}, r = Object.getOwnPropertyDescriptor;
|
|
@@ -5173,21 +5238,21 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5173
5238
|
n.boundFunctionsHaveNames = function() {
|
|
5174
5239
|
return n() && typeof i == "function" && function() {}.bind().name !== "";
|
|
5175
5240
|
}, t.exports = n;
|
|
5176
|
-
})),
|
|
5177
|
-
var n =
|
|
5241
|
+
})), Gt = /* @__PURE__ */ t(((e, t) => {
|
|
5242
|
+
var n = vt(), r = yt()(), i = Wt().functionsHaveConfigurableNames(), a = X();
|
|
5178
5243
|
t.exports = function(e, t) {
|
|
5179
5244
|
if (typeof e != "function") throw new a("`fn` is not a function");
|
|
5180
5245
|
return (!(arguments.length > 2 && arguments[2]) || i) && (r ? n(e, "name", t, !0, !0) : n(e, "name", t)), e;
|
|
5181
5246
|
};
|
|
5182
|
-
})),
|
|
5183
|
-
var n =
|
|
5247
|
+
})), Kt = /* @__PURE__ */ t(((e, t) => {
|
|
5248
|
+
var n = Gt(), r = X(), i = Object;
|
|
5184
5249
|
t.exports = n(function() {
|
|
5185
5250
|
if (this == null || this !== i(this)) throw new r("RegExp.prototype.flags getter called on non-object");
|
|
5186
5251
|
var e = "";
|
|
5187
5252
|
return this.hasIndices && (e += "d"), this.global && (e += "g"), this.ignoreCase && (e += "i"), this.multiline && (e += "m"), this.dotAll && (e += "s"), this.unicode && (e += "u"), this.unicodeSets && (e += "v"), this.sticky && (e += "y"), e;
|
|
5188
5253
|
}, "get flags", !0);
|
|
5189
|
-
})),
|
|
5190
|
-
var n =
|
|
5254
|
+
})), qt = /* @__PURE__ */ t(((e, t) => {
|
|
5255
|
+
var n = Kt(), r = Et().supportsDescriptors, i = Object.getOwnPropertyDescriptor;
|
|
5191
5256
|
t.exports = function() {
|
|
5192
5257
|
if (r && /a/gim.flags === "gim") {
|
|
5193
5258
|
var e = i(RegExp.prototype, "flags");
|
|
@@ -5202,8 +5267,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5202
5267
|
}
|
|
5203
5268
|
return n;
|
|
5204
5269
|
};
|
|
5205
|
-
})),
|
|
5206
|
-
var n =
|
|
5270
|
+
})), Jt = /* @__PURE__ */ t(((e, t) => {
|
|
5271
|
+
var n = Et().supportsDescriptors, r = qt(), i = nt(), a = Object.defineProperty, o = Ve(), s = gt(), c = /a/;
|
|
5207
5272
|
t.exports = function() {
|
|
5208
5273
|
if (!n || !s) throw new o("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
|
|
5209
5274
|
var e = r(), t = s(c), l = i(t, "flags");
|
|
@@ -5213,29 +5278,29 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5213
5278
|
get: e
|
|
5214
5279
|
}), e;
|
|
5215
5280
|
};
|
|
5216
|
-
})),
|
|
5217
|
-
var n =
|
|
5281
|
+
})), Yt = /* @__PURE__ */ t(((e, t) => {
|
|
5282
|
+
var n = Et(), r = St(), i = Kt(), a = qt(), o = Jt(), s = r(a());
|
|
5218
5283
|
n(s, {
|
|
5219
5284
|
getPolyfill: a,
|
|
5220
5285
|
implementation: i,
|
|
5221
5286
|
shim: o
|
|
5222
5287
|
}), t.exports = s;
|
|
5223
|
-
})),
|
|
5288
|
+
})), Xt = /* @__PURE__ */ t(((e, t) => {
|
|
5224
5289
|
t.exports = function(e) {
|
|
5225
5290
|
return typeof e == "number" && e >= 55296 && e <= 56319;
|
|
5226
5291
|
};
|
|
5227
|
-
})),
|
|
5292
|
+
})), Zt = /* @__PURE__ */ t(((e, t) => {
|
|
5228
5293
|
t.exports = function(e) {
|
|
5229
5294
|
return typeof e == "number" && e >= 56320 && e <= 57343;
|
|
5230
5295
|
};
|
|
5231
|
-
})),
|
|
5232
|
-
var n = Z(), r = X(), i = n("%String.fromCharCode%"), a =
|
|
5296
|
+
})), Qt = /* @__PURE__ */ t(((e, t) => {
|
|
5297
|
+
var n = Z(), r = X(), i = n("%String.fromCharCode%"), a = Xt(), o = Zt();
|
|
5233
5298
|
t.exports = function(e, t) {
|
|
5234
5299
|
if (!a(e) || !o(t)) throw new r("Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code");
|
|
5235
5300
|
return i(e) + i(t);
|
|
5236
5301
|
};
|
|
5237
|
-
})),
|
|
5238
|
-
var n = X(), r = Q(), i =
|
|
5302
|
+
})), $t = /* @__PURE__ */ t(((e, t) => {
|
|
5303
|
+
var n = X(), r = Q(), i = Xt(), a = Zt(), o = Qt(), s = r("String.prototype.charAt"), c = r("String.prototype.charCodeAt");
|
|
5239
5304
|
t.exports = function(e, t) {
|
|
5240
5305
|
if (typeof e != "string") throw new n("Assertion failed: `string` must be a String");
|
|
5241
5306
|
var r = e.length;
|
|
@@ -5262,22 +5327,22 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5262
5327
|
"[[IsUnpairedSurrogate]]": !0
|
|
5263
5328
|
};
|
|
5264
5329
|
};
|
|
5265
|
-
})),
|
|
5266
|
-
var n =
|
|
5330
|
+
})), en = /* @__PURE__ */ t(((e, t) => {
|
|
5331
|
+
var n = $e();
|
|
5267
5332
|
t.exports = function(e) {
|
|
5268
5333
|
return (typeof e == "number" || typeof e == "bigint") && !n(e) && e !== Infinity && e !== -Infinity;
|
|
5269
5334
|
};
|
|
5270
|
-
})),
|
|
5271
|
-
var n =
|
|
5335
|
+
})), tn = /* @__PURE__ */ t(((e, t) => {
|
|
5336
|
+
var n = qe(), r = Je(), i = $e(), a = en();
|
|
5272
5337
|
t.exports = function(e) {
|
|
5273
5338
|
if (typeof e != "number" || i(e) || !a(e)) return !1;
|
|
5274
5339
|
var t = n(e);
|
|
5275
5340
|
return r(t) === t;
|
|
5276
5341
|
};
|
|
5277
|
-
})), tn = /* @__PURE__ */ t(((e, t) => {
|
|
5278
|
-
t.exports = 2 ** 53 - 1 || 9007199254740991;
|
|
5279
5342
|
})), nn = /* @__PURE__ */ t(((e, t) => {
|
|
5280
|
-
|
|
5343
|
+
t.exports = 2 ** 53 - 1 || 9007199254740991;
|
|
5344
|
+
})), rn = /* @__PURE__ */ t(((e, t) => {
|
|
5345
|
+
var n = $t(), r = X(), i = tn(), a = nn();
|
|
5281
5346
|
t.exports = function(e, t, o) {
|
|
5282
5347
|
if (typeof e != "string") throw new r("Assertion failed: `S` must be a String");
|
|
5283
5348
|
if (!i(t) || t < 0 || t > a) throw new r("Assertion failed: `length` must be an integer >= 0 and <= 2**53");
|
|
@@ -5286,7 +5351,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5286
5351
|
var s = e.length;
|
|
5287
5352
|
return t + 1 >= s ? t + 1 : t + n(e, t)["[[CodeUnitCount]]"];
|
|
5288
5353
|
};
|
|
5289
|
-
})),
|
|
5354
|
+
})), an = /* @__PURE__ */ t(((e, t) => {
|
|
5290
5355
|
var n = X();
|
|
5291
5356
|
t.exports = function(e, t) {
|
|
5292
5357
|
if (typeof t != "boolean") throw new n("Assertion failed: Type(done) is not Boolean");
|
|
@@ -5295,8 +5360,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5295
5360
|
done: t
|
|
5296
5361
|
};
|
|
5297
5362
|
};
|
|
5298
|
-
})),
|
|
5299
|
-
var n = X(), r =
|
|
5363
|
+
})), on = /* @__PURE__ */ t(((e, t) => {
|
|
5364
|
+
var n = X(), r = _t(), i = {
|
|
5300
5365
|
__proto__: null,
|
|
5301
5366
|
"[[Configurable]]": !0,
|
|
5302
5367
|
"[[Enumerable]]": !0,
|
|
@@ -5312,8 +5377,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5312
5377
|
if (a && o) throw new n("Property Descriptors may not be both accessor and data descriptors");
|
|
5313
5378
|
return !0;
|
|
5314
5379
|
};
|
|
5315
|
-
})),
|
|
5316
|
-
var n =
|
|
5380
|
+
})), sn = /* @__PURE__ */ t(((e, t) => {
|
|
5381
|
+
var n = yt(), r = rt(), i = n.hasArrayLengthDefineBug(), a = i && Dt(), o = Q()("Object.prototype.propertyIsEnumerable");
|
|
5317
5382
|
t.exports = function(e, t, n, s, c, l) {
|
|
5318
5383
|
if (!r) {
|
|
5319
5384
|
if (!e(l) || !l["[[Configurable]]"] || !l["[[Writable]]"] || c in s && o(s, c) !== !!l["[[Enumerable]]"]) return !1;
|
|
@@ -5322,32 +5387,32 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5322
5387
|
}
|
|
5323
5388
|
return i && c === "length" && "[[Value]]" in l && a(s) && s.length !== l["[[Value]]"] ? (s.length = l["[[Value]]"], s.length === l["[[Value]]"]) : (r(s, c, n(l)), !0);
|
|
5324
5389
|
};
|
|
5325
|
-
})),
|
|
5390
|
+
})), cn = /* @__PURE__ */ t(((e, t) => {
|
|
5326
5391
|
t.exports = function(e) {
|
|
5327
5392
|
if (e === void 0) return e;
|
|
5328
5393
|
var t = {};
|
|
5329
5394
|
return "[[Value]]" in e && (t.value = e["[[Value]]"]), "[[Writable]]" in e && (t.writable = !!e["[[Writable]]"]), "[[Get]]" in e && (t.get = e["[[Get]]"]), "[[Set]]" in e && (t.set = e["[[Set]]"]), "[[Enumerable]]" in e && (t.enumerable = !!e["[[Enumerable]]"]), "[[Configurable]]" in e && (t.configurable = !!e["[[Configurable]]"]), t;
|
|
5330
5395
|
};
|
|
5331
|
-
})),
|
|
5332
|
-
var n = X(), r =
|
|
5396
|
+
})), ln = /* @__PURE__ */ t(((e, t) => {
|
|
5397
|
+
var n = X(), r = on(), i = cn();
|
|
5333
5398
|
t.exports = function(e) {
|
|
5334
5399
|
if (e !== void 0 && !r(e)) throw new n("Assertion failed: `Desc` must be a Property Descriptor");
|
|
5335
5400
|
return i(e);
|
|
5336
5401
|
};
|
|
5337
|
-
})),
|
|
5338
|
-
var n = X(), r =
|
|
5402
|
+
})), un = /* @__PURE__ */ t(((e, t) => {
|
|
5403
|
+
var n = X(), r = _t(), i = on();
|
|
5339
5404
|
t.exports = function(e) {
|
|
5340
5405
|
if (e === void 0) return !1;
|
|
5341
5406
|
if (!i(e)) throw new n("Assertion failed: `Desc` must be a Property Descriptor");
|
|
5342
5407
|
return !(!r(e, "[[Value]]") && !r(e, "[[Writable]]"));
|
|
5343
5408
|
};
|
|
5344
|
-
})),
|
|
5345
|
-
var n =
|
|
5409
|
+
})), dn = /* @__PURE__ */ t(((e, t) => {
|
|
5410
|
+
var n = $e();
|
|
5346
5411
|
t.exports = function(e, t) {
|
|
5347
5412
|
return e === t ? e === 0 ? 1 / e == 1 / t : !0 : n(e) && n(t);
|
|
5348
5413
|
};
|
|
5349
|
-
})),
|
|
5350
|
-
var n =
|
|
5414
|
+
})), fn = /* @__PURE__ */ t(((e, t) => {
|
|
5415
|
+
var n = _t(), r = X(), i = $(), a = It(), o = Bt();
|
|
5351
5416
|
t.exports = function(e) {
|
|
5352
5417
|
if (!i(e)) throw new r("ToPropertyDescriptor requires an object");
|
|
5353
5418
|
var t = {};
|
|
@@ -5364,8 +5429,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5364
5429
|
if ((n(t, "[[Get]]") || n(t, "[[Set]]")) && (n(t, "[[Value]]") || n(t, "[[Writable]]"))) throw new r("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
5365
5430
|
return t;
|
|
5366
5431
|
};
|
|
5367
|
-
})),
|
|
5368
|
-
var n = X(), r = $(), i =
|
|
5432
|
+
})), pn = /* @__PURE__ */ t(((e, t) => {
|
|
5433
|
+
var n = X(), r = $(), i = on(), a = sn(), o = ln(), s = un(), c = Mt(), l = dn(), u = fn();
|
|
5369
5434
|
t.exports = function(e, t, d) {
|
|
5370
5435
|
if (!r(e)) throw new n("Assertion failed: Type(O) is not Object");
|
|
5371
5436
|
if (!c(t)) throw new n("Assertion failed: P is not a Property Key");
|
|
@@ -5373,19 +5438,19 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5373
5438
|
if (!i(f)) throw new n("Assertion failed: Desc is not a valid Property Descriptor");
|
|
5374
5439
|
return a(s, l, o, e, t, f);
|
|
5375
5440
|
};
|
|
5376
|
-
})),
|
|
5441
|
+
})), mn = /* @__PURE__ */ t(((e, t) => {
|
|
5377
5442
|
t.exports = function(e) {
|
|
5378
5443
|
return e === null || typeof e != "function" && typeof e != "object";
|
|
5379
5444
|
};
|
|
5380
|
-
})),
|
|
5381
|
-
var n = Z(), r = n("%Object.preventExtensions%", !0), i = n("%Object.isExtensible%", !0), a =
|
|
5445
|
+
})), hn = /* @__PURE__ */ t(((e, t) => {
|
|
5446
|
+
var n = Z(), r = n("%Object.preventExtensions%", !0), i = n("%Object.isExtensible%", !0), a = mn();
|
|
5382
5447
|
t.exports = r ? function(e) {
|
|
5383
5448
|
return !a(e) && i(e);
|
|
5384
5449
|
} : function(e) {
|
|
5385
5450
|
return !a(e);
|
|
5386
5451
|
};
|
|
5387
|
-
})),
|
|
5388
|
-
var n = X(), r = $(), i =
|
|
5452
|
+
})), gn = /* @__PURE__ */ t(((e, t) => {
|
|
5453
|
+
var n = X(), r = $(), i = pn(), a = hn(), o = Mt();
|
|
5389
5454
|
t.exports = function(e, t, s, c) {
|
|
5390
5455
|
if (!r(e)) throw new n("Assertion failed: `homeObject` is not an Object");
|
|
5391
5456
|
if (!o(t)) throw new n("Assertion failed: `key` is not a Property Key or a Private Name");
|
|
@@ -5399,12 +5464,12 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5399
5464
|
"[[Configurable]]": !0
|
|
5400
5465
|
});
|
|
5401
5466
|
};
|
|
5402
|
-
})),
|
|
5467
|
+
})), _n = /* @__PURE__ */ t(((e, t) => {
|
|
5403
5468
|
t.exports = function(e, t) {
|
|
5404
5469
|
for (var n = 0; n < e.length; n += 1) t(e[n], n, e);
|
|
5405
5470
|
};
|
|
5406
|
-
})),
|
|
5407
|
-
var n =
|
|
5471
|
+
})), vn = /* @__PURE__ */ t(((e, t) => {
|
|
5472
|
+
var n = jt(), r = X(), i = function(e, t, n) {
|
|
5408
5473
|
for (var r = e, i; (i = r.next) != null; r = i) if (i.key === t) return r.next = i.next, n || (i.next = e.next, e.next = i), i;
|
|
5409
5474
|
}, a = function(e, t) {
|
|
5410
5475
|
if (e) {
|
|
@@ -5444,8 +5509,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5444
5509
|
};
|
|
5445
5510
|
return t;
|
|
5446
5511
|
};
|
|
5447
|
-
})),
|
|
5448
|
-
var n = Z(), r = Q(), i =
|
|
5512
|
+
})), yn = /* @__PURE__ */ t(((e, t) => {
|
|
5513
|
+
var n = Z(), r = Q(), i = jt(), a = X(), o = n("%Map%", !0), s = r("Map.prototype.get", !0), c = r("Map.prototype.set", !0), l = r("Map.prototype.has", !0), u = r("Map.prototype.delete", !0), d = r("Map.prototype.size", !0);
|
|
5449
5514
|
t.exports = !!o && function() {
|
|
5450
5515
|
var e, t = {
|
|
5451
5516
|
assert: function(e) {
|
|
@@ -5470,8 +5535,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5470
5535
|
};
|
|
5471
5536
|
return t;
|
|
5472
5537
|
};
|
|
5473
|
-
})),
|
|
5474
|
-
var n = Z(), r = Q(), i =
|
|
5538
|
+
})), bn = /* @__PURE__ */ t(((e, t) => {
|
|
5539
|
+
var n = Z(), r = Q(), i = jt(), a = yn(), o = X(), s = n("%WeakMap%", !0), c = r("WeakMap.prototype.get", !0), l = r("WeakMap.prototype.set", !0), u = r("WeakMap.prototype.has", !0), d = r("WeakMap.prototype.delete", !0);
|
|
5475
5540
|
t.exports = s ? function() {
|
|
5476
5541
|
var e, t, n = {
|
|
5477
5542
|
assert: function(e) {
|
|
@@ -5495,8 +5560,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5495
5560
|
};
|
|
5496
5561
|
return n;
|
|
5497
5562
|
} : a;
|
|
5498
|
-
})),
|
|
5499
|
-
var n = X(), r =
|
|
5563
|
+
})), xn = /* @__PURE__ */ t(((e, t) => {
|
|
5564
|
+
var n = X(), r = jt(), i = vn(), a = yn(), o = bn() || a || i;
|
|
5500
5565
|
t.exports = function() {
|
|
5501
5566
|
var e, t = {
|
|
5502
5567
|
assert: function(e) {
|
|
@@ -5517,8 +5582,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5517
5582
|
};
|
|
5518
5583
|
return t;
|
|
5519
5584
|
};
|
|
5520
|
-
})),
|
|
5521
|
-
var n =
|
|
5585
|
+
})), Sn = /* @__PURE__ */ t(((e, t) => {
|
|
5586
|
+
var n = _t(), r = xn()(), i = X(), a = {
|
|
5522
5587
|
assert: function(e, t) {
|
|
5523
5588
|
if (!e || typeof e != "object" && typeof e != "function") throw new i("`O` is not an object");
|
|
5524
5589
|
if (typeof t != "string") throw new i("`slot` must be a string");
|
|
@@ -5544,7 +5609,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5544
5609
|
}
|
|
5545
5610
|
};
|
|
5546
5611
|
Object.freeze && Object.freeze(a), t.exports = a;
|
|
5547
|
-
})),
|
|
5612
|
+
})), Cn = /* @__PURE__ */ t(((e, t) => {
|
|
5548
5613
|
var n = {
|
|
5549
5614
|
__proto__: null,
|
|
5550
5615
|
foo: {}
|
|
@@ -5552,8 +5617,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5552
5617
|
t.exports = function() {
|
|
5553
5618
|
return r;
|
|
5554
5619
|
};
|
|
5555
|
-
})),
|
|
5556
|
-
var n = Z()("%Object.create%", !0), r = X(), i =
|
|
5620
|
+
})), wn = /* @__PURE__ */ t(((e, t) => {
|
|
5621
|
+
var n = Z()("%Object.create%", !0), r = X(), i = Ge(), a = $(), o = Ot(), s = _n(), c = Sn(), l = Cn()();
|
|
5557
5622
|
t.exports = function(e) {
|
|
5558
5623
|
if (e !== null && !a(e)) throw new r("Assertion failed: `proto` must be null or an object");
|
|
5559
5624
|
var t = arguments.length < 2 ? [] : arguments[1];
|
|
@@ -5570,8 +5635,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5570
5635
|
c.set(u, e, void 0);
|
|
5571
5636
|
}), u;
|
|
5572
5637
|
};
|
|
5573
|
-
})),
|
|
5574
|
-
var n = X(), r = $(), i = Q()("RegExp.prototype.exec"), a =
|
|
5638
|
+
})), Tn = /* @__PURE__ */ t(((e, t) => {
|
|
5639
|
+
var n = X(), r = $(), i = Q()("RegExp.prototype.exec"), a = kt(), o = Nt(), s = It();
|
|
5575
5640
|
t.exports = function(e, t) {
|
|
5576
5641
|
if (!r(e)) throw new n("Assertion failed: `R` must be an Object");
|
|
5577
5642
|
if (typeof t != "string") throw new n("Assertion failed: `S` must be a String");
|
|
@@ -5583,8 +5648,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5583
5648
|
}
|
|
5584
5649
|
return i(e, t);
|
|
5585
5650
|
};
|
|
5586
|
-
})),
|
|
5587
|
-
var n = X(), r = $(), i =
|
|
5651
|
+
})), En = /* @__PURE__ */ t(((e, t) => {
|
|
5652
|
+
var n = X(), r = $(), i = Mt(), a = dn(), o = function() {
|
|
5588
5653
|
try {
|
|
5589
5654
|
return delete 0, !0;
|
|
5590
5655
|
} catch {
|
|
@@ -5605,31 +5670,31 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5605
5670
|
return !1;
|
|
5606
5671
|
}
|
|
5607
5672
|
};
|
|
5608
|
-
})),
|
|
5673
|
+
})), Dn = /* @__PURE__ */ t(((e, t) => {
|
|
5609
5674
|
t.exports = function(e) {
|
|
5610
5675
|
return e === null || typeof e != "function" && typeof e != "object";
|
|
5611
5676
|
};
|
|
5612
|
-
})),
|
|
5677
|
+
})), On = /* @__PURE__ */ t(((e, t) => {
|
|
5613
5678
|
var n = Q(), r = n("Date.prototype.getDay"), i = function(e) {
|
|
5614
5679
|
try {
|
|
5615
5680
|
return r(e), !0;
|
|
5616
5681
|
} catch {
|
|
5617
5682
|
return !1;
|
|
5618
5683
|
}
|
|
5619
|
-
}, a = n("Object.prototype.toString"), o = "[object Date]", s =
|
|
5684
|
+
}, a = n("Object.prototype.toString"), o = "[object Date]", s = Rt()();
|
|
5620
5685
|
t.exports = function(e) {
|
|
5621
5686
|
return typeof e != "object" || !e ? !1 : s ? i(e) : a(e) === o;
|
|
5622
5687
|
};
|
|
5623
|
-
})),
|
|
5624
|
-
var n = Q(), r =
|
|
5688
|
+
})), kn = /* @__PURE__ */ t(((e, t) => {
|
|
5689
|
+
var n = Q(), r = zt(), i = n("RegExp.prototype.exec"), a = X();
|
|
5625
5690
|
t.exports = function(e) {
|
|
5626
5691
|
if (!r(e)) throw new a("`regex` must be a RegExp");
|
|
5627
5692
|
return function(t) {
|
|
5628
5693
|
return i(e, t) !== null;
|
|
5629
5694
|
};
|
|
5630
5695
|
};
|
|
5631
|
-
})),
|
|
5632
|
-
var n = Q(), r = n("Object.prototype.toString"), i =
|
|
5696
|
+
})), An = /* @__PURE__ */ t(((e, t) => {
|
|
5697
|
+
var n = Q(), r = n("Object.prototype.toString"), i = at()(), a = kn();
|
|
5633
5698
|
if (i) {
|
|
5634
5699
|
var o = n("Symbol.prototype.toString"), s = a(/^Symbol\(.*\)$/), c = function(e) {
|
|
5635
5700
|
return typeof e.valueOf() == "symbol" ? s(o(e)) : !1;
|
|
@@ -5646,8 +5711,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5646
5711
|
} else t.exports = function(e) {
|
|
5647
5712
|
return !1;
|
|
5648
5713
|
};
|
|
5649
|
-
})),
|
|
5650
|
-
var n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol", r =
|
|
5714
|
+
})), jn = /* @__PURE__ */ t(((e, t) => {
|
|
5715
|
+
var n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol", r = Dn(), i = Ft(), a = On(), o = An(), s = function(e, t) {
|
|
5651
5716
|
if (e == null) throw TypeError("Cannot call method on " + e);
|
|
5652
5717
|
if (typeof t != "string" || t !== "number" && t !== "string") throw TypeError("hint must be \"string\" or \"number\"");
|
|
5653
5718
|
var n = t === "string" ? ["toString", "valueOf"] : ["valueOf", "toString"], a, o, s;
|
|
@@ -5672,29 +5737,29 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5672
5737
|
}
|
|
5673
5738
|
return t === "default" && (a(e) || o(e)) && (t = "string"), s(e, t === "default" ? "number" : t);
|
|
5674
5739
|
};
|
|
5675
|
-
})),
|
|
5676
|
-
var n =
|
|
5740
|
+
})), Mn = /* @__PURE__ */ t(((e, t) => {
|
|
5741
|
+
var n = jn();
|
|
5677
5742
|
t.exports = function(e) {
|
|
5678
5743
|
return arguments.length > 1 ? n(e, arguments[1]) : n(e);
|
|
5679
5744
|
};
|
|
5680
|
-
})),
|
|
5681
|
-
var n =
|
|
5745
|
+
})), Nn = /* @__PURE__ */ t(((e, t) => {
|
|
5746
|
+
var n = Ut(), r = Ht(), i = Q()("String.prototype.replace"), a = /^\s$/.test(""), o = a ? /^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/ : /^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/, s = a ? /[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/ : /[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;
|
|
5682
5747
|
t.exports = function() {
|
|
5683
5748
|
return i(i(r(n(this)), o, ""), s, "");
|
|
5684
5749
|
};
|
|
5685
|
-
})),
|
|
5686
|
-
var n =
|
|
5750
|
+
})), Pn = /* @__PURE__ */ t(((e, t) => {
|
|
5751
|
+
var n = Nn(), r = "", i = "";
|
|
5687
5752
|
t.exports = function() {
|
|
5688
5753
|
return String.prototype.trim && r.trim() === r && i.trim() === i && ("_" + i).trim() === "_" + i && (i + "_").trim() === i + "_" ? String.prototype.trim : n;
|
|
5689
5754
|
};
|
|
5690
|
-
})),
|
|
5691
|
-
var n =
|
|
5755
|
+
})), Fn = /* @__PURE__ */ t(((e, t) => {
|
|
5756
|
+
var n = yt()(), r = vt(), i = Pn();
|
|
5692
5757
|
t.exports = function() {
|
|
5693
5758
|
var e = i();
|
|
5694
5759
|
return String.prototype.trim !== e && (n ? r(String.prototype, "trim", e, !0) : r(String.prototype, "trim", e)), e;
|
|
5695
5760
|
};
|
|
5696
|
-
})),
|
|
5697
|
-
var n =
|
|
5761
|
+
})), In = /* @__PURE__ */ t(((e, t) => {
|
|
5762
|
+
var n = St(), r = Et(), i = Ut(), a = Nn(), o = Pn(), s = Fn(), c = n(o()), l = function(e) {
|
|
5698
5763
|
return i(e), c(e);
|
|
5699
5764
|
};
|
|
5700
5765
|
r(l, {
|
|
@@ -5702,12 +5767,12 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5702
5767
|
implementation: a,
|
|
5703
5768
|
shim: s
|
|
5704
5769
|
}), t.exports = l;
|
|
5705
|
-
})),
|
|
5706
|
-
var n = Z(), r = n("%RegExp%"), i = X(), a = n("%parseInt%"), o = Q(), s =
|
|
5770
|
+
})), Ln = /* @__PURE__ */ t(((e, t) => {
|
|
5771
|
+
var n = Z(), r = n("%RegExp%"), i = X(), a = n("%parseInt%"), o = Q(), s = kn(), c = o("String.prototype.slice"), l = s(/^0b[01]+$/i), u = s(/^0o[0-7]+$/i), d = s(/^[-+]0x[0-9a-f]+$/i), f = s(new r("[" + [
|
|
5707
5772
|
"
",
|
|
5708
5773
|
"",
|
|
5709
5774
|
""
|
|
5710
|
-
].join("") + "]", "g")), p =
|
|
5775
|
+
].join("") + "]", "g")), p = In();
|
|
5711
5776
|
t.exports = function e(t) {
|
|
5712
5777
|
if (typeof t != "string") throw new i("Assertion failed: `argument` is not a String");
|
|
5713
5778
|
if (l(t)) return +a(c(t, 2), 2);
|
|
@@ -5716,40 +5781,40 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5716
5781
|
var n = p(t);
|
|
5717
5782
|
return n === t ? +t : e(n);
|
|
5718
5783
|
};
|
|
5719
|
-
})),
|
|
5720
|
-
var n = Z(), r = X(), i = n("%Number%"), a =
|
|
5784
|
+
})), Rn = /* @__PURE__ */ t(((e, t) => {
|
|
5785
|
+
var n = Z(), r = X(), i = n("%Number%"), a = mn(), o = Mn(), s = Ln();
|
|
5721
5786
|
t.exports = function(e) {
|
|
5722
5787
|
var t = a(e) ? e : o(e, i);
|
|
5723
5788
|
if (typeof t == "symbol") throw new r("Cannot convert a Symbol value to a number");
|
|
5724
5789
|
if (typeof t == "bigint") throw new r("Conversion from 'BigInt' to 'number' is not allowed.");
|
|
5725
5790
|
return typeof t == "string" ? s(t) : +t;
|
|
5726
5791
|
};
|
|
5727
|
-
})),
|
|
5728
|
-
var n =
|
|
5792
|
+
})), zn = /* @__PURE__ */ t(((e, t) => {
|
|
5793
|
+
var n = Je();
|
|
5729
5794
|
t.exports = function(e) {
|
|
5730
5795
|
return typeof e == "bigint" ? e : n(e);
|
|
5731
5796
|
};
|
|
5732
|
-
})),
|
|
5733
|
-
var n =
|
|
5797
|
+
})), Bn = /* @__PURE__ */ t(((e, t) => {
|
|
5798
|
+
var n = zn(), r = X();
|
|
5734
5799
|
t.exports = function(e) {
|
|
5735
5800
|
if (typeof e != "number" && typeof e != "bigint") throw new r("argument must be a Number or a BigInt");
|
|
5736
5801
|
var t = e < 0 ? -n(-e) : n(e);
|
|
5737
5802
|
return t === 0 ? 0 : t;
|
|
5738
5803
|
};
|
|
5739
|
-
})),
|
|
5740
|
-
var n =
|
|
5804
|
+
})), Vn = /* @__PURE__ */ t(((e, t) => {
|
|
5805
|
+
var n = Rn(), r = Bn(), i = $e(), a = en();
|
|
5741
5806
|
t.exports = function(e) {
|
|
5742
5807
|
var t = n(e);
|
|
5743
5808
|
return i(t) || t === 0 ? 0 : a(t) ? r(t) : t;
|
|
5744
5809
|
};
|
|
5745
|
-
})),
|
|
5746
|
-
var n =
|
|
5810
|
+
})), Hn = /* @__PURE__ */ t(((e, t) => {
|
|
5811
|
+
var n = nn(), r = Vn();
|
|
5747
5812
|
t.exports = function(e) {
|
|
5748
5813
|
var t = r(e);
|
|
5749
5814
|
return t <= 0 ? 0 : t > n ? n : t;
|
|
5750
5815
|
};
|
|
5751
|
-
})),
|
|
5752
|
-
var n = Z()("%Object.defineProperty%", !0), r =
|
|
5816
|
+
})), Un = /* @__PURE__ */ t(((e, t) => {
|
|
5817
|
+
var n = Z()("%Object.defineProperty%", !0), r = Rt()(), i = _t(), a = X(), o = r ? Symbol.toStringTag : null;
|
|
5753
5818
|
t.exports = function(e, t) {
|
|
5754
5819
|
var r = arguments.length > 2 && !!arguments[2] && arguments[2].force, s = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;
|
|
5755
5820
|
if (r !== void 0 && typeof r != "boolean" || s !== void 0 && typeof s != "boolean") throw new a("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");
|
|
@@ -5760,8 +5825,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5760
5825
|
writable: !1
|
|
5761
5826
|
}) : e[o] = t);
|
|
5762
5827
|
};
|
|
5763
|
-
})),
|
|
5764
|
-
var n = Z(), r =
|
|
5828
|
+
})), Wn = /* @__PURE__ */ t(((e, t) => {
|
|
5829
|
+
var n = Z(), r = at()(), i = X(), a = $(), o = n("%IteratorPrototype%", !0), s = rn(), c = an(), l = gn(), u = Nt(), d = wn(), f = Tn(), p = En(), m = Hn(), h = Ht(), g = Sn(), _ = Un(), v = function(e, t, n, r) {
|
|
5765
5830
|
if (typeof t != "string") throw new i("`S` must be a string");
|
|
5766
5831
|
if (typeof n != "boolean") throw new i("`global` must be a boolean");
|
|
5767
5832
|
if (typeof r != "boolean") throw new i("`fullUnicode` must be a boolean");
|
|
@@ -5779,10 +5844,10 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5779
5844
|
}, !1)), t.exports = function(e, t, n, r) {
|
|
5780
5845
|
return new v(e, t, n, r);
|
|
5781
5846
|
};
|
|
5782
|
-
})), Wn = /* @__PURE__ */ t(((e, t) => {
|
|
5783
|
-
t.exports = Z();
|
|
5784
5847
|
})), Gn = /* @__PURE__ */ t(((e, t) => {
|
|
5785
|
-
|
|
5848
|
+
t.exports = Z();
|
|
5849
|
+
})), Kn = /* @__PURE__ */ t(((e, t) => {
|
|
5850
|
+
var n = Gn()("%Reflect.construct%", !0), r = pn();
|
|
5786
5851
|
try {
|
|
5787
5852
|
r({}, "", { "[[Get]]": function() {} });
|
|
5788
5853
|
} catch {
|
|
@@ -5805,8 +5870,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5805
5870
|
} else t.exports = function(e) {
|
|
5806
5871
|
return typeof e == "function" && !!e.prototype;
|
|
5807
5872
|
};
|
|
5808
|
-
})),
|
|
5809
|
-
var n = Z()("%Symbol.species%", !0), r = X(), i = $(), a =
|
|
5873
|
+
})), qn = /* @__PURE__ */ t(((e, t) => {
|
|
5874
|
+
var n = Z()("%Symbol.species%", !0), r = X(), i = $(), a = Kn();
|
|
5810
5875
|
t.exports = function(e, t) {
|
|
5811
5876
|
if (!i(e)) throw new r("Assertion failed: Type(O) is not Object");
|
|
5812
5877
|
var o = e.constructor;
|
|
@@ -5817,7 +5882,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5817
5882
|
if (a(s)) return s;
|
|
5818
5883
|
throw new r("no constructor found");
|
|
5819
5884
|
};
|
|
5820
|
-
})),
|
|
5885
|
+
})), Jn = /* @__PURE__ */ t(((e, t) => {
|
|
5821
5886
|
var n = $();
|
|
5822
5887
|
t.exports = function(e) {
|
|
5823
5888
|
if (e === null) return "Null";
|
|
@@ -5827,13 +5892,13 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5827
5892
|
if (typeof e == "boolean") return "Boolean";
|
|
5828
5893
|
if (typeof e == "string") return "String";
|
|
5829
5894
|
};
|
|
5830
|
-
})),
|
|
5831
|
-
var n =
|
|
5895
|
+
})), Yn = /* @__PURE__ */ t(((e, t) => {
|
|
5896
|
+
var n = Jn();
|
|
5832
5897
|
t.exports = function(e) {
|
|
5833
5898
|
return typeof e == "symbol" ? "Symbol" : typeof e == "bigint" ? "BigInt" : n(e);
|
|
5834
5899
|
};
|
|
5835
|
-
})),
|
|
5836
|
-
var n =
|
|
5900
|
+
})), Xn = /* @__PURE__ */ t(((e, t) => {
|
|
5901
|
+
var n = Wn(), r = Nt(), i = En(), a = qn(), o = Hn(), s = Ht(), c = Yn(), l = Yt(), u = Gt(), d = Q(), f = Z(), p = X(), m = d("String.prototype.indexOf"), h = f("%RegExp%"), g = "flags" in h.prototype, _ = function(e, t) {
|
|
5837
5902
|
var n, i = "flags" in t ? r(t, "flags") : s(l(t));
|
|
5838
5903
|
return n = g && typeof i == "string" ? new e(t, i) : e === h ? new e(t.source, i) : new e(t, i), {
|
|
5839
5904
|
flags: i,
|
|
@@ -5846,13 +5911,13 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5846
5911
|
var l = s(e), u = _(a(t, h), t), d = u.flags, f = u.matcher;
|
|
5847
5912
|
return i(f, "lastIndex", o(r(t, "lastIndex")), !0), n(f, l, m(d, "g") > -1, m(d, "u") > -1);
|
|
5848
5913
|
}, "[Symbol.matchAll]", !0);
|
|
5849
|
-
})),
|
|
5850
|
-
var n =
|
|
5914
|
+
})), Zn = /* @__PURE__ */ t(((e, t) => {
|
|
5915
|
+
var n = at()(), r = Xn();
|
|
5851
5916
|
t.exports = function() {
|
|
5852
5917
|
return !n || typeof Symbol.matchAll != "symbol" || typeof RegExp.prototype[Symbol.matchAll] != "function" ? r : RegExp.prototype[Symbol.matchAll];
|
|
5853
5918
|
};
|
|
5854
|
-
})),
|
|
5855
|
-
var n =
|
|
5919
|
+
})), Qn = /* @__PURE__ */ t(((e, t) => {
|
|
5920
|
+
var n = kt(), r = Nt(), i = Lt(), a = Vt(), o = Ht(), s = Ut(), c = Q(), l = at()(), u = Yt(), d = Z(), f = X(), p = d("%RegExp%"), m = c("String.prototype.indexOf"), h = Zn(), g = function(e) {
|
|
5856
5921
|
var t = h();
|
|
5857
5922
|
if (l && typeof Symbol.matchAll == "symbol") {
|
|
5858
5923
|
var n = i(e, Symbol.matchAll);
|
|
@@ -5873,8 +5938,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5873
5938
|
var l = o(t), d = new p(e, "g");
|
|
5874
5939
|
return n(g(d), d, [l]);
|
|
5875
5940
|
};
|
|
5876
|
-
})),
|
|
5877
|
-
var n =
|
|
5941
|
+
})), $n = /* @__PURE__ */ t(((e, t) => {
|
|
5942
|
+
var n = Qn();
|
|
5878
5943
|
t.exports = function() {
|
|
5879
5944
|
if (String.prototype.matchAll) try {
|
|
5880
5945
|
"".matchAll(RegExp.prototype);
|
|
@@ -5883,8 +5948,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5883
5948
|
}
|
|
5884
5949
|
return n;
|
|
5885
5950
|
};
|
|
5886
|
-
})),
|
|
5887
|
-
var n =
|
|
5951
|
+
})), er = /* @__PURE__ */ t(((e, t) => {
|
|
5952
|
+
var n = Et(), r = at()(), i = nt(), a = $n(), o = Zn(), s = Object.defineProperty;
|
|
5888
5953
|
t.exports = function() {
|
|
5889
5954
|
var e = a();
|
|
5890
5955
|
if (n(String.prototype, { matchAll: e }, { matchAll: function() {
|
|
@@ -5911,21 +5976,21 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5911
5976
|
}
|
|
5912
5977
|
return e;
|
|
5913
5978
|
};
|
|
5914
|
-
})),
|
|
5915
|
-
var n =
|
|
5979
|
+
})), tr = /* @__PURE__ */ t(((e, t) => {
|
|
5980
|
+
var n = St(), r = Et(), i = Qn(), a = $n(), o = er(), s = n(i);
|
|
5916
5981
|
r(s, {
|
|
5917
5982
|
getPolyfill: a,
|
|
5918
5983
|
implementation: i,
|
|
5919
5984
|
shim: o
|
|
5920
5985
|
}), t.exports = s;
|
|
5921
|
-
})),
|
|
5986
|
+
})), nr = /* @__PURE__ */ t(((e, t) => {
|
|
5922
5987
|
i();
|
|
5923
|
-
var o = A(), s = F(), c = I(), l = q(), u = P(), d =
|
|
5988
|
+
var o = A(), s = F(), c = I(), l = q(), u = P(), d = ce(), f = be(), p = ze(), m = j(), h = a(), g = /\${?([\w\d]+)}?/g, _ = m.EventEmitter || m.default || m;
|
|
5924
5989
|
String.prototype.regexIndexOf = function(e, t) {
|
|
5925
5990
|
let n = this.substring(t || 0).search(e);
|
|
5926
5991
|
return n >= 0 ? n + (t || 0) : n;
|
|
5927
|
-
},
|
|
5928
|
-
var
|
|
5992
|
+
}, tr().shim();
|
|
5993
|
+
var v = class e extends _ {
|
|
5929
5994
|
constructor(t) {
|
|
5930
5995
|
super();
|
|
5931
5996
|
let { path: n = "/bin", profile: r, hostname: i = "browser", filesystem: a = {}, permissions: s = {}, cwd: c = "/", onFsChange: l, useRealFilesystem: u = !1 } = t;
|
|
@@ -5952,13 +6017,28 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5952
6017
|
onInput(e) {
|
|
5953
6018
|
if (this.runningCommand && this.runningCommand.onInput && this.runningCommand.captureInput) return this.runningCommand.onInput(e), !0;
|
|
5954
6019
|
}
|
|
6020
|
+
setTerminalSize(e, t) {
|
|
6021
|
+
this._terminalSize = {
|
|
6022
|
+
cols: e,
|
|
6023
|
+
rows: t
|
|
6024
|
+
}, this.context.setVar("COLUMNS", String(e)), this.context.setVar("LINES", String(t)), this.emit("resize", {
|
|
6025
|
+
cols: e,
|
|
6026
|
+
rows: t
|
|
6027
|
+
});
|
|
6028
|
+
}
|
|
6029
|
+
get terminalSize() {
|
|
6030
|
+
return this._terminalSize || {
|
|
6031
|
+
cols: 80,
|
|
6032
|
+
rows: 24
|
|
6033
|
+
};
|
|
6034
|
+
}
|
|
5955
6035
|
_loadDefaultCommands() {
|
|
5956
|
-
|
|
6036
|
+
p.forEach((e) => {
|
|
5957
6037
|
this.context.setCommand(e);
|
|
5958
6038
|
});
|
|
5959
6039
|
}
|
|
5960
6040
|
_loadBuiltinCommands(e = !1) {
|
|
5961
|
-
|
|
6041
|
+
f.forEach((e) => {
|
|
5962
6042
|
this.context.setCommand(e);
|
|
5963
6043
|
}), e || this.context.fs.setMode(this.context.getVar("PATH"), 365);
|
|
5964
6044
|
}
|
|
@@ -6023,7 +6103,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
6023
6103
|
}
|
|
6024
6104
|
return f.requiresFilesystem && (f.fs = this.context.fs.sandbox()), this._stdin !== void 0 && (f.stdin = this._stdin), this.runningCommand = f, this.runningCommand.on && this.runningCommand.on("flush", (e) => {
|
|
6025
6105
|
this._emitOutput(e);
|
|
6026
|
-
}), f.runCommand().then((e) => {
|
|
6106
|
+
}), f.interactive && this.emit("interactive"), f.runCommand().then((e) => {
|
|
6027
6107
|
let t = e.getStdOutput();
|
|
6028
6108
|
if (i) {
|
|
6029
6109
|
let e = this.context.fs.absolutePath(i), n = t.filter((e) => e.type === "out").map((e) => e.string), r = a ? (() => {
|
|
@@ -6161,7 +6241,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
6161
6241
|
let n = await this._runAndCapture(e[1]);
|
|
6162
6242
|
t = t.replace(e[0], n);
|
|
6163
6243
|
}
|
|
6164
|
-
let i = t.matchAll(
|
|
6244
|
+
let i = t.matchAll(g), a = i.next();
|
|
6165
6245
|
for (; !a.done;) {
|
|
6166
6246
|
let n = this.context.getVar(a.value[1]);
|
|
6167
6247
|
t = t.replace(new RegExp(e._escapeRegExp(a.value[0]), "g"), String(n)), a = i.next();
|
|
@@ -6170,7 +6250,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
6170
6250
|
}
|
|
6171
6251
|
_evalArithmetic(e) {
|
|
6172
6252
|
let t = e.replace(/\${?([\w\d]+)}?/g, (e, t) => String(parseInt(this.context.getVar(t)) || 0));
|
|
6173
|
-
if (!/^[\d\s+\-*/%()]+$/.test(t.trim())) return 0;
|
|
6253
|
+
if (t = t.replace(/\b([A-Za-z_]\w*)\b/g, (e, t) => String(parseInt(this.context.getVar(t)) || 0)), !/^[\d\s+\-*/%()]+$/.test(t.trim())) return 0;
|
|
6174
6254
|
try {
|
|
6175
6255
|
return Function("return (" + t + ")")();
|
|
6176
6256
|
} catch {
|
|
@@ -6264,8 +6344,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
6264
6344
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
6265
6345
|
}
|
|
6266
6346
|
};
|
|
6267
|
-
|
|
6268
|
-
})),
|
|
6347
|
+
v.STATUS_READY = "READY", v.STATUS_WORKING = "WORKING", v.STATUS_DESTROYED = "DESTROYED", v.Command = u, v.InteractiveCommand = d, v.FS = h, r.shell = v, t.exports = v;
|
|
6348
|
+
})), rr = /* @__PURE__ */ t(((e) => {
|
|
6269
6349
|
(function(t, n) {
|
|
6270
6350
|
if (typeof define == "function" && define.amd) define(["exports"], n);
|
|
6271
6351
|
else if (typeof e == "object" && typeof e.nodeName != "string") n(e);
|
|
@@ -6606,8 +6686,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
6606
6686
|
}
|
|
6607
6687
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = r;
|
|
6608
6688
|
});
|
|
6609
|
-
})),
|
|
6610
|
-
var n =
|
|
6689
|
+
})), ir = /* @__PURE__ */ t((() => {})), ar = /* @__PURE__ */ t(((e, t) => {
|
|
6690
|
+
var n = nr(), r = rr(), i = r?.default ?? r, a = "/.brsh_history";
|
|
6611
6691
|
t.exports = class {
|
|
6612
6692
|
constructor(e) {
|
|
6613
6693
|
let { el: t, font: r = "Roboto Mono", cursor: a = "none", outputAnimation: o = "none", animateSpeed: s = 1, onExit: c = null, mobileInput: l = "click", lineWrap: u = !1 } = e;
|
|
@@ -6673,7 +6753,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
6673
6753
|
}
|
|
6674
6754
|
_setupDom(e, t = "Roboto Mono") {
|
|
6675
6755
|
let n = document.createElement("link");
|
|
6676
|
-
n.href = `https://fonts.googleapis.com/css?family=${encodeURIComponent(t)}:ital,wght@0,400;0,700;1,400;1,700&display=swap`, n.rel = "stylesheet", document.head.appendChild(n), this._cmdList = document.createElement("ul"), this._cmdList.style.fontFamily = `'${t}', monospace`, this._cmdList.style.listStyle = "none", this._cmdList.style.padding = "0", this._lineWrap && this._cmdList.classList.add("terminal--wrap"), e.appendChild(this._cmdList);
|
|
6756
|
+
n.href = `https://fonts.googleapis.com/css?family=${encodeURIComponent(t)}:ital,wght@0,400;0,700;1,400;1,700&display=swap`, n.rel = "stylesheet", document.head.appendChild(n), this._cmdList = document.createElement("ul"), this._cmdList.style.fontFamily = `'${t}', monospace`, this._cmdList.style.listStyle = "none", this._cmdList.style.padding = "0", this._lineWrap && this._cmdList.classList.add("terminal--wrap"), e.appendChild(this._cmdList), this._screen = document.createElement("pre"), this._screen.className = "terminal__screen", this._screen.style.fontFamily = `'${t}', monospace`, e.appendChild(this._screen), this._charMeasure = document.createElement("span"), this._charMeasure.className = "terminal__char-measure", this._charMeasure.textContent = "X", this._charMeasure.setAttribute("aria-hidden", "true"), e.appendChild(this._charMeasure), setTimeout(() => this._measureAndSetSize(), 0), typeof ResizeObserver < "u" && new ResizeObserver(() => this._measureAndSetSize()).observe(e);
|
|
6677
6757
|
}
|
|
6678
6758
|
_newPrompt(e) {
|
|
6679
6759
|
this._clearCursor(), this._currentLine = document.createElement("li"), this._cmdList.appendChild(this._currentLine), e && e(), this._autoScroll();
|
|
@@ -6730,7 +6810,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
6730
6810
|
}
|
|
6731
6811
|
_statusCheck(e) {
|
|
6732
6812
|
if (e === n.STATUS_READY) {
|
|
6733
|
-
if (this._working = !1, this._historyLoaded ||= (this._loadHistory(), !0), this._animating) return requestAnimationFrame(this._statusCheck.bind(this, e));
|
|
6813
|
+
if (this._interactive && this._exitInteractiveMode(), this._working = !1, this._historyLoaded ||= (this._loadHistory(), !0), this._animating) return requestAnimationFrame(this._statusCheck.bind(this, e));
|
|
6734
6814
|
this._newPrompt(this._setCurrentLine.bind(this, this._buffer));
|
|
6735
6815
|
} else this._clearCursor(), this._working = !0;
|
|
6736
6816
|
}
|
|
@@ -6761,17 +6841,25 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
6761
6841
|
}
|
|
6762
6842
|
_attachShellListeners() {
|
|
6763
6843
|
this.cli.on("status", this._statusCheck.bind(this)), this.cli.on("stdOut", (e) => {
|
|
6764
|
-
this._print(e, "out");
|
|
6844
|
+
this._interactive ? this._renderInteractiveScreen(e) : this._print(e, "out");
|
|
6765
6845
|
}), this.cli.on("stdErr", (e) => {
|
|
6766
|
-
this._print(e, "err");
|
|
6846
|
+
this._interactive || this._print(e, "err");
|
|
6767
6847
|
}), this.cli.on("clear", () => {
|
|
6768
6848
|
this._clearOutput();
|
|
6849
|
+
}), this.cli.on("interactive", () => {
|
|
6850
|
+
this._enterInteractiveMode();
|
|
6769
6851
|
}), this.cli.on("exit", (e) => {
|
|
6770
6852
|
delete this.cli, typeof this._exitFn == "function" && this._exitFn(e);
|
|
6771
6853
|
}), this._listenForKeyEvents(this._setCurrentLine.bind(this), window);
|
|
6772
6854
|
}
|
|
6773
6855
|
_listenForKeyEvents(e, t) {
|
|
6774
6856
|
window.addEventListener("keydown", (t) => {
|
|
6857
|
+
if (this._interactive) {
|
|
6858
|
+
t.preventDefault();
|
|
6859
|
+
let e = this._buildInteractiveKey(t);
|
|
6860
|
+
e && this.cli.onInput(e);
|
|
6861
|
+
return;
|
|
6862
|
+
}
|
|
6775
6863
|
if (t.keyCode === 9 && t.preventDefault(), [
|
|
6776
6864
|
"ArrowUp",
|
|
6777
6865
|
"ArrowDown",
|
|
@@ -6790,8 +6878,10 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
6790
6878
|
"u",
|
|
6791
6879
|
"k"
|
|
6792
6880
|
].includes(t.key.toLowerCase()) && (t.preventDefault(), this._navKeyEvent(e, t));
|
|
6793
|
-
}), t.addEventListener("keyup", (t) =>
|
|
6794
|
-
t.
|
|
6881
|
+
}), t.addEventListener("keyup", (t) => {
|
|
6882
|
+
this._interactive || this._keyEvent(e, t.key);
|
|
6883
|
+
}), window.addEventListener("paste", (t) => {
|
|
6884
|
+
if (t.preventDefault(), this._interactive) return;
|
|
6795
6885
|
let n = (t.clipboardData || window.clipboardData).getData("text");
|
|
6796
6886
|
if (!n) return;
|
|
6797
6887
|
let r = n.split(/\r?\n/);
|
|
@@ -6801,6 +6891,15 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
6801
6891
|
}), e(this._buffer);
|
|
6802
6892
|
});
|
|
6803
6893
|
}
|
|
6894
|
+
_buildInteractiveKey(e) {
|
|
6895
|
+
let t = e.key;
|
|
6896
|
+
return [
|
|
6897
|
+
"Control",
|
|
6898
|
+
"Alt",
|
|
6899
|
+
"Shift",
|
|
6900
|
+
"Meta"
|
|
6901
|
+
].includes(t) ? null : e.ctrlKey && t.length === 1 ? "^" + t.toUpperCase() : t;
|
|
6902
|
+
}
|
|
6804
6903
|
_wordLeft() {
|
|
6805
6904
|
let e = this._cursorPos;
|
|
6806
6905
|
for (; e > 0 && this._buffer[e - 1] === " ";) e--;
|
|
@@ -6834,9 +6933,30 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
6834
6933
|
}
|
|
6835
6934
|
}
|
|
6836
6935
|
}
|
|
6837
|
-
|
|
6936
|
+
_enterInteractiveMode() {
|
|
6937
|
+
this._interactive = !0, this._cmdList.style.display = "none", this._screen.style.display = "block", this._clearCursor();
|
|
6938
|
+
}
|
|
6939
|
+
_exitInteractiveMode() {
|
|
6940
|
+
this._interactive = !1, this._screen.style.display = "none", this._screen.innerHTML = "", this._cmdList.style.display = "";
|
|
6941
|
+
}
|
|
6942
|
+
_renderInteractiveScreen(e) {
|
|
6943
|
+
let t = e.replace(/\x1b\[\d*J/g, "").replace(/\x1b\[\d+;\d+H/g, "").replace(/\x1b\[H/g, "");
|
|
6944
|
+
try {
|
|
6945
|
+
this._screen.innerHTML = this._ansi.ansi_to_html(t);
|
|
6946
|
+
} catch {
|
|
6947
|
+
this._screen.textContent = t;
|
|
6948
|
+
}
|
|
6949
|
+
}
|
|
6950
|
+
_measureAndSetSize() {
|
|
6951
|
+
if (!this._charMeasure || !this.cli) return;
|
|
6952
|
+
let e = this._charMeasure.getBoundingClientRect(), t = this._el.getBoundingClientRect();
|
|
6953
|
+
if (!e.width || !e.height || !t.width) return;
|
|
6954
|
+
let n = Math.max(1, Math.floor(t.width / e.width)), r = Math.max(1, Math.floor(t.height / e.height));
|
|
6955
|
+
(n !== this._lastCols || r !== this._lastRows) && (this._lastCols = n, this._lastRows = r, this.cli.setTerminalSize(n, r));
|
|
6956
|
+
}
|
|
6957
|
+
}, ir();
|
|
6838
6958
|
}));
|
|
6839
6959
|
//#endregion
|
|
6840
|
-
export default
|
|
6960
|
+
export default ar();
|
|
6841
6961
|
|
|
6842
6962
|
//# sourceMappingURL=terminal.es.js.map
|