brsh 2.3.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/POSIX-CHECKLIST.md +158 -0
- package/dist/shell.es.js +341 -244
- package/dist/shell.es.js.map +1 -1
- package/dist/shell.min.js +6 -5
- package/dist/shell.min.js.map +1 -1
- package/dist/terminal.es.js +345 -248
- package/dist/terminal.es.js.map +1 -1
- package/dist/terminal.min.js +8 -7
- package/dist/terminal.min.js.map +1 -1
- package/index.js +62 -3
- package/lib/Command.js +6 -0
- package/lib/ScriptCommand.js +71 -43
- package/lib/local/dot.js +9 -0
- package/lib/local/index.js +2 -1
- package/package.json +1 -1
- package/test/scripts.test.js +91 -0
- package/test/shell.test.js +50 -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;
|
|
@@ -4098,6 +4147,13 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4098
4147
|
}
|
|
4099
4148
|
};
|
|
4100
4149
|
})), Le = /* @__PURE__ */ t(((e, t) => {
|
|
4150
|
+
var n = Ae();
|
|
4151
|
+
t.exports = class extends n {
|
|
4152
|
+
static get name() {
|
|
4153
|
+
return ".";
|
|
4154
|
+
}
|
|
4155
|
+
};
|
|
4156
|
+
})), Re = /* @__PURE__ */ t(((e, t) => {
|
|
4101
4157
|
t.exports = [
|
|
4102
4158
|
be(),
|
|
4103
4159
|
xe(),
|
|
@@ -4115,56 +4171,57 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4115
4171
|
Ne(),
|
|
4116
4172
|
Pe(),
|
|
4117
4173
|
Fe(),
|
|
4118
|
-
Ie()
|
|
4174
|
+
Ie(),
|
|
4175
|
+
Le()
|
|
4119
4176
|
];
|
|
4120
|
-
})), Re = /* @__PURE__ */ t(((e, t) => {
|
|
4121
|
-
t.exports = Object;
|
|
4122
4177
|
})), ze = /* @__PURE__ */ t(((e, t) => {
|
|
4123
|
-
t.exports =
|
|
4178
|
+
t.exports = Object;
|
|
4124
4179
|
})), Be = /* @__PURE__ */ t(((e, t) => {
|
|
4125
|
-
t.exports =
|
|
4180
|
+
t.exports = Error;
|
|
4126
4181
|
})), Ve = /* @__PURE__ */ t(((e, t) => {
|
|
4127
|
-
t.exports =
|
|
4182
|
+
t.exports = EvalError;
|
|
4128
4183
|
})), He = /* @__PURE__ */ t(((e, t) => {
|
|
4129
|
-
t.exports =
|
|
4184
|
+
t.exports = RangeError;
|
|
4130
4185
|
})), Ue = /* @__PURE__ */ t(((e, t) => {
|
|
4186
|
+
t.exports = ReferenceError;
|
|
4187
|
+
})), We = /* @__PURE__ */ t(((e, t) => {
|
|
4131
4188
|
t.exports = SyntaxError;
|
|
4132
4189
|
})), X = /* @__PURE__ */ t(((e, t) => {
|
|
4133
4190
|
t.exports = TypeError;
|
|
4134
|
-
})), We = /* @__PURE__ */ t(((e, t) => {
|
|
4135
|
-
t.exports = URIError;
|
|
4136
4191
|
})), Ge = /* @__PURE__ */ t(((e, t) => {
|
|
4137
|
-
t.exports =
|
|
4192
|
+
t.exports = URIError;
|
|
4138
4193
|
})), Ke = /* @__PURE__ */ t(((e, t) => {
|
|
4139
|
-
t.exports = Math.
|
|
4194
|
+
t.exports = Math.abs;
|
|
4140
4195
|
})), qe = /* @__PURE__ */ t(((e, t) => {
|
|
4141
|
-
t.exports = Math.
|
|
4196
|
+
t.exports = Math.floor;
|
|
4142
4197
|
})), Je = /* @__PURE__ */ t(((e, t) => {
|
|
4143
|
-
t.exports = Math.
|
|
4198
|
+
t.exports = Math.max;
|
|
4144
4199
|
})), Ye = /* @__PURE__ */ t(((e, t) => {
|
|
4145
|
-
t.exports = Math.
|
|
4200
|
+
t.exports = Math.min;
|
|
4146
4201
|
})), Xe = /* @__PURE__ */ t(((e, t) => {
|
|
4147
|
-
t.exports = Math.
|
|
4202
|
+
t.exports = Math.pow;
|
|
4148
4203
|
})), Ze = /* @__PURE__ */ t(((e, t) => {
|
|
4204
|
+
t.exports = Math.round;
|
|
4205
|
+
})), Qe = /* @__PURE__ */ t(((e, t) => {
|
|
4149
4206
|
t.exports = Number.isNaN || function(e) {
|
|
4150
4207
|
return e !== e;
|
|
4151
4208
|
};
|
|
4152
|
-
})),
|
|
4153
|
-
var n =
|
|
4209
|
+
})), $e = /* @__PURE__ */ t(((e, t) => {
|
|
4210
|
+
var n = Qe();
|
|
4154
4211
|
t.exports = function(e) {
|
|
4155
4212
|
return n(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
4156
4213
|
};
|
|
4157
|
-
})), $e = /* @__PURE__ */ t(((e, t) => {
|
|
4158
|
-
t.exports = Object.getOwnPropertyDescriptor;
|
|
4159
4214
|
})), et = /* @__PURE__ */ t(((e, t) => {
|
|
4160
|
-
|
|
4215
|
+
t.exports = Object.getOwnPropertyDescriptor;
|
|
4216
|
+
})), tt = /* @__PURE__ */ t(((e, t) => {
|
|
4217
|
+
var n = et();
|
|
4161
4218
|
if (n) try {
|
|
4162
4219
|
n([], "length");
|
|
4163
4220
|
} catch {
|
|
4164
4221
|
n = null;
|
|
4165
4222
|
}
|
|
4166
4223
|
t.exports = n;
|
|
4167
|
-
})),
|
|
4224
|
+
})), nt = /* @__PURE__ */ t(((e, t) => {
|
|
4168
4225
|
var n = Object.defineProperty || !1;
|
|
4169
4226
|
if (n) try {
|
|
4170
4227
|
n({}, "a", { value: 1 });
|
|
@@ -4172,7 +4229,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4172
4229
|
n = !1;
|
|
4173
4230
|
}
|
|
4174
4231
|
t.exports = n;
|
|
4175
|
-
})),
|
|
4232
|
+
})), rt = /* @__PURE__ */ t(((e, t) => {
|
|
4176
4233
|
t.exports = function() {
|
|
4177
4234
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function") return !1;
|
|
4178
4235
|
if (typeof Symbol.iterator == "symbol") return !0;
|
|
@@ -4189,16 +4246,16 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4189
4246
|
}
|
|
4190
4247
|
return !0;
|
|
4191
4248
|
};
|
|
4192
|
-
})),
|
|
4193
|
-
var n = typeof Symbol < "u" && Symbol, r =
|
|
4249
|
+
})), it = /* @__PURE__ */ t(((e, t) => {
|
|
4250
|
+
var n = typeof Symbol < "u" && Symbol, r = rt();
|
|
4194
4251
|
t.exports = function() {
|
|
4195
4252
|
return typeof n != "function" || typeof Symbol != "function" || typeof n("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : r();
|
|
4196
4253
|
};
|
|
4197
|
-
})), it = /* @__PURE__ */ t(((e, t) => {
|
|
4198
|
-
t.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
|
|
4199
4254
|
})), at = /* @__PURE__ */ t(((e, t) => {
|
|
4200
|
-
t.exports =
|
|
4255
|
+
t.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
|
|
4201
4256
|
})), ot = /* @__PURE__ */ t(((e, t) => {
|
|
4257
|
+
t.exports = ze().getPrototypeOf || null;
|
|
4258
|
+
})), st = /* @__PURE__ */ t(((e, t) => {
|
|
4202
4259
|
var n = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, i = Math.max, a = "[object Function]", o = function(e, t) {
|
|
4203
4260
|
for (var n = [], r = 0; r < e.length; r += 1) n[r] = e[r];
|
|
4204
4261
|
for (var i = 0; i < t.length; i += 1) n[i + e.length] = t[i];
|
|
@@ -4226,26 +4283,26 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4226
4283
|
}
|
|
4227
4284
|
return u;
|
|
4228
4285
|
};
|
|
4229
|
-
})), st = /* @__PURE__ */ t(((e, t) => {
|
|
4230
|
-
var n = ot();
|
|
4231
|
-
t.exports = Function.prototype.bind || n;
|
|
4232
4286
|
})), ct = /* @__PURE__ */ t(((e, t) => {
|
|
4233
|
-
|
|
4287
|
+
var n = st();
|
|
4288
|
+
t.exports = Function.prototype.bind || n;
|
|
4234
4289
|
})), lt = /* @__PURE__ */ t(((e, t) => {
|
|
4235
|
-
t.exports = Function.prototype.
|
|
4290
|
+
t.exports = Function.prototype.call;
|
|
4236
4291
|
})), ut = /* @__PURE__ */ t(((e, t) => {
|
|
4237
|
-
t.exports =
|
|
4292
|
+
t.exports = Function.prototype.apply;
|
|
4238
4293
|
})), dt = /* @__PURE__ */ t(((e, t) => {
|
|
4239
|
-
|
|
4240
|
-
t.exports = ut() || n.call(i, r);
|
|
4294
|
+
t.exports = typeof Reflect < "u" && Reflect && Reflect.apply;
|
|
4241
4295
|
})), ft = /* @__PURE__ */ t(((e, t) => {
|
|
4242
|
-
var n =
|
|
4296
|
+
var n = ct(), r = ut(), i = lt();
|
|
4297
|
+
t.exports = dt() || n.call(i, r);
|
|
4298
|
+
})), pt = /* @__PURE__ */ t(((e, t) => {
|
|
4299
|
+
var n = ct(), r = X(), i = lt(), a = ft();
|
|
4243
4300
|
t.exports = function(e) {
|
|
4244
4301
|
if (e.length < 1 || typeof e[0] != "function") throw new r("a function is required");
|
|
4245
4302
|
return a(n, i, e);
|
|
4246
4303
|
};
|
|
4247
|
-
})),
|
|
4248
|
-
var n =
|
|
4304
|
+
})), mt = /* @__PURE__ */ t(((e, t) => {
|
|
4305
|
+
var n = pt(), r = tt(), i;
|
|
4249
4306
|
try {
|
|
4250
4307
|
i = [].__proto__ === Array.prototype;
|
|
4251
4308
|
} catch (e) {
|
|
@@ -4255,8 +4312,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4255
4312
|
t.exports = a && typeof a.get == "function" ? n([a.get]) : typeof s == "function" ? function(e) {
|
|
4256
4313
|
return s(e == null ? e : o(e));
|
|
4257
4314
|
} : !1;
|
|
4258
|
-
})),
|
|
4259
|
-
var n =
|
|
4315
|
+
})), ht = /* @__PURE__ */ t(((e, t) => {
|
|
4316
|
+
var n = at(), r = ot(), i = mt();
|
|
4260
4317
|
t.exports = n ? function(e) {
|
|
4261
4318
|
return n(e);
|
|
4262
4319
|
} : r ? function(e) {
|
|
@@ -4265,15 +4322,15 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4265
4322
|
} : i ? function(e) {
|
|
4266
4323
|
return i(e);
|
|
4267
4324
|
} : null;
|
|
4268
|
-
})),
|
|
4325
|
+
})), gt = /* @__PURE__ */ t(((e, t) => {
|
|
4269
4326
|
var n = Function.prototype.call, r = Object.prototype.hasOwnProperty;
|
|
4270
|
-
t.exports =
|
|
4327
|
+
t.exports = ct().call(n, r);
|
|
4271
4328
|
})), Z = /* @__PURE__ */ t(((e, t) => {
|
|
4272
|
-
var n, r =
|
|
4329
|
+
var n, r = ze(), i = Be(), a = Ve(), o = He(), s = Ue(), c = We(), l = X(), u = Ge(), d = Ke(), f = qe(), p = Je(), m = Ye(), h = Xe(), g = Ze(), _ = $e(), v = Function, y = function(e) {
|
|
4273
4330
|
try {
|
|
4274
4331
|
return v("\"use strict\"; return (" + e + ").constructor;")();
|
|
4275
4332
|
} catch {}
|
|
4276
|
-
}, b =
|
|
4333
|
+
}, b = tt(), x = nt(), S = function() {
|
|
4277
4334
|
throw new l();
|
|
4278
4335
|
}, C = b ? function() {
|
|
4279
4336
|
try {
|
|
@@ -4285,7 +4342,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4285
4342
|
return S;
|
|
4286
4343
|
}
|
|
4287
4344
|
}
|
|
4288
|
-
}() : S, w =
|
|
4345
|
+
}() : S, w = it()(), T = ht(), E = ot(), D = at(), O = ut(), k = lt(), A = {}, j = typeof Uint8Array > "u" || !T ? n : T(Uint8Array), M = {
|
|
4289
4346
|
__proto__: null,
|
|
4290
4347
|
"%AggregateError%": typeof AggregateError > "u" ? n : AggregateError,
|
|
4291
4348
|
"%Array%": Array,
|
|
@@ -4475,7 +4532,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4475
4532
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
4476
4533
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
4477
4534
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
4478
|
-
}, F =
|
|
4535
|
+
}, F = ct(), I = gt(), 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) {
|
|
4479
4536
|
var t = R(e, 0, 1), n = R(e, -1);
|
|
4480
4537
|
if (t === "%" && n !== "%") throw new c("invalid intrinsic syntax, expected closing `%`");
|
|
4481
4538
|
if (n === "%" && t !== "%") throw new c("invalid intrinsic syntax, expected opening `%`");
|
|
@@ -4520,8 +4577,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4520
4577
|
}
|
|
4521
4578
|
return o;
|
|
4522
4579
|
};
|
|
4523
|
-
})),
|
|
4524
|
-
var n =
|
|
4580
|
+
})), _t = /* @__PURE__ */ t(((e, t) => {
|
|
4581
|
+
var n = nt(), r = We(), i = X(), a = tt();
|
|
4525
4582
|
t.exports = function(e, t, o) {
|
|
4526
4583
|
if (!e || typeof e != "object" && typeof e != "function") throw new i("`obj` must be an object or a function`");
|
|
4527
4584
|
if (typeof t != "string" && typeof t != "symbol") throw new i("`property` must be a string or a symbol`");
|
|
@@ -4539,8 +4596,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4539
4596
|
else if (u || !s && !c && !l) e[t] = o;
|
|
4540
4597
|
else throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
4541
4598
|
};
|
|
4542
|
-
})),
|
|
4543
|
-
var n =
|
|
4599
|
+
})), vt = /* @__PURE__ */ t(((e, t) => {
|
|
4600
|
+
var n = nt(), r = function() {
|
|
4544
4601
|
return !!n;
|
|
4545
4602
|
};
|
|
4546
4603
|
r.hasArrayLengthDefineBug = function() {
|
|
@@ -4551,8 +4608,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4551
4608
|
return !0;
|
|
4552
4609
|
}
|
|
4553
4610
|
}, t.exports = r;
|
|
4554
|
-
})),
|
|
4555
|
-
var n = Z(), r =
|
|
4611
|
+
})), yt = /* @__PURE__ */ t(((e, t) => {
|
|
4612
|
+
var n = Z(), r = _t(), i = vt()(), a = tt(), o = X(), s = n("%Math.floor%");
|
|
4556
4613
|
t.exports = function(e, t) {
|
|
4557
4614
|
if (typeof e != "function") throw new o("`fn` is not a function");
|
|
4558
4615
|
if (typeof t != "number" || t < 0 || t > 4294967295 || s(t) !== t) throw new o("`length` must be a positive 32-bit integer");
|
|
@@ -4563,27 +4620,27 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4563
4620
|
}
|
|
4564
4621
|
return (c || l || !n) && (i ? r(e, "length", t, !0, !0) : r(e, "length", t)), e;
|
|
4565
4622
|
};
|
|
4566
|
-
})),
|
|
4567
|
-
var n =
|
|
4623
|
+
})), bt = /* @__PURE__ */ t(((e, t) => {
|
|
4624
|
+
var n = ct(), r = ut(), i = ft();
|
|
4568
4625
|
t.exports = function() {
|
|
4569
4626
|
return i(n, r, arguments);
|
|
4570
4627
|
};
|
|
4571
|
-
})),
|
|
4572
|
-
var n =
|
|
4628
|
+
})), xt = /* @__PURE__ */ t(((e, t) => {
|
|
4629
|
+
var n = yt(), r = nt(), i = pt(), a = bt();
|
|
4573
4630
|
t.exports = function(e) {
|
|
4574
4631
|
var t = i(arguments), r = 1 + e.length - (arguments.length - 1);
|
|
4575
4632
|
return n(t, r > 0 ? r : 0, !0);
|
|
4576
4633
|
}, r ? r(t.exports, "apply", { value: a }) : t.exports.apply = a;
|
|
4577
|
-
})),
|
|
4634
|
+
})), St = /* @__PURE__ */ t(((e, t) => {
|
|
4578
4635
|
var n = Object.prototype.toString;
|
|
4579
4636
|
t.exports = function(e) {
|
|
4580
4637
|
var t = n.call(e), r = t === "[object Arguments]";
|
|
4581
4638
|
return r ||= t !== "[object Array]" && typeof e == "object" && !!e && typeof e.length == "number" && e.length >= 0 && n.call(e.callee) === "[object Function]", r;
|
|
4582
4639
|
};
|
|
4583
|
-
})),
|
|
4640
|
+
})), Ct = /* @__PURE__ */ t(((e, t) => {
|
|
4584
4641
|
var n;
|
|
4585
4642
|
if (!Object.keys) {
|
|
4586
|
-
var r = Object.prototype.hasOwnProperty, i = Object.prototype.toString, a =
|
|
4643
|
+
var r = Object.prototype.hasOwnProperty, i = Object.prototype.toString, a = St(), o = Object.prototype.propertyIsEnumerable, s = !o.call({ toString: null }, "toString"), c = o.call(function() {}, "prototype"), l = [
|
|
4587
4644
|
"toString",
|
|
4588
4645
|
"toLocaleString",
|
|
4589
4646
|
"valueOf",
|
|
@@ -4650,10 +4707,10 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4650
4707
|
};
|
|
4651
4708
|
}
|
|
4652
4709
|
t.exports = n;
|
|
4653
|
-
})),
|
|
4654
|
-
var n = Array.prototype.slice, r =
|
|
4710
|
+
})), wt = /* @__PURE__ */ t(((e, t) => {
|
|
4711
|
+
var n = Array.prototype.slice, r = St(), i = Object.keys, a = i ? function(e) {
|
|
4655
4712
|
return i(e);
|
|
4656
|
-
} :
|
|
4713
|
+
} : Ct(), o = Object.keys;
|
|
4657
4714
|
a.shim = function() {
|
|
4658
4715
|
return Object.keys ? function() {
|
|
4659
4716
|
var e = Object.keys(arguments);
|
|
@@ -4662,10 +4719,10 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4662
4719
|
return r(e) ? o(n.call(e)) : o(e);
|
|
4663
4720
|
}) : Object.keys = a, Object.keys || a;
|
|
4664
4721
|
}, t.exports = a;
|
|
4665
|
-
})),
|
|
4666
|
-
var n =
|
|
4722
|
+
})), Tt = /* @__PURE__ */ t(((e, t) => {
|
|
4723
|
+
var n = wt(), r = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", i = Object.prototype.toString, a = Array.prototype.concat, o = _t(), s = function(e) {
|
|
4667
4724
|
return typeof e == "function" && i.call(e) === "[object Function]";
|
|
4668
|
-
}, c =
|
|
4725
|
+
}, c = vt()(), l = function(e, t, n, r) {
|
|
4669
4726
|
if (t in e) {
|
|
4670
4727
|
if (r === !0) {
|
|
4671
4728
|
if (e[t] === n) return;
|
|
@@ -4679,28 +4736,28 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4679
4736
|
};
|
|
4680
4737
|
u.supportsDescriptors = !!c, t.exports = u;
|
|
4681
4738
|
})), Q = /* @__PURE__ */ t(((e, t) => {
|
|
4682
|
-
var n = Z(), r =
|
|
4739
|
+
var n = Z(), r = pt(), i = r([n("%String.prototype.indexOf%")]);
|
|
4683
4740
|
t.exports = function(e, t) {
|
|
4684
4741
|
var a = n(e, !!t);
|
|
4685
4742
|
return typeof a == "function" && i(e, ".prototype.") > -1 ? r([a]) : a;
|
|
4686
4743
|
};
|
|
4687
|
-
})),
|
|
4744
|
+
})), Et = /* @__PURE__ */ t(((e, t) => {
|
|
4688
4745
|
var n = Z()("%Array%"), r = !n.isArray && Q()("Object.prototype.toString");
|
|
4689
4746
|
t.exports = n.isArray || function(e) {
|
|
4690
4747
|
return r(e) === "[object Array]";
|
|
4691
4748
|
};
|
|
4692
|
-
})), Et = /* @__PURE__ */ t(((e, t) => {
|
|
4693
|
-
t.exports = Tt();
|
|
4694
4749
|
})), Dt = /* @__PURE__ */ t(((e, t) => {
|
|
4695
|
-
|
|
4750
|
+
t.exports = Et();
|
|
4751
|
+
})), Ot = /* @__PURE__ */ t(((e, t) => {
|
|
4752
|
+
var n = Z(), r = Q(), i = X(), a = Dt(), o = n("%Reflect.apply%", !0) || r("Function.prototype.apply");
|
|
4696
4753
|
t.exports = function(e, t) {
|
|
4697
4754
|
var n = arguments.length > 2 ? arguments[2] : [];
|
|
4698
4755
|
if (!a(n)) throw new i("Assertion failed: optional `argumentsList`, if provided, must be a List");
|
|
4699
4756
|
return o(e, t, n);
|
|
4700
4757
|
};
|
|
4701
|
-
})), Ot = /* @__PURE__ */ t(((e, t) => {
|
|
4702
|
-
t.exports = {};
|
|
4703
4758
|
})), kt = /* @__PURE__ */ t(((e, t) => {
|
|
4759
|
+
t.exports = {};
|
|
4760
|
+
})), At = /* @__PURE__ */ t(((e, t) => {
|
|
4704
4761
|
i();
|
|
4705
4762
|
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) {
|
|
4706
4763
|
return e.__proto__;
|
|
@@ -4717,7 +4774,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
4717
4774
|
}
|
|
4718
4775
|
return b.call(t, n, "$&_");
|
|
4719
4776
|
}
|
|
4720
|
-
var I =
|
|
4777
|
+
var I = kt(), L = I.custom, ee = ae(L) ? L : null, te = {
|
|
4721
4778
|
__proto__: null,
|
|
4722
4779
|
double: "\"",
|
|
4723
4780
|
single: "'"
|
|
@@ -5002,7 +5059,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5002
5059
|
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));
|
|
5003
5060
|
return r;
|
|
5004
5061
|
}
|
|
5005
|
-
})),
|
|
5062
|
+
})), jt = /* @__PURE__ */ t(((e, t) => {
|
|
5006
5063
|
t.exports = function(e) {
|
|
5007
5064
|
return typeof e == "string" || typeof e == "symbol";
|
|
5008
5065
|
};
|
|
@@ -5010,20 +5067,20 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5010
5067
|
t.exports = function(e) {
|
|
5011
5068
|
return !!e && (typeof e == "function" || typeof e == "object");
|
|
5012
5069
|
};
|
|
5013
|
-
})),
|
|
5014
|
-
var n = X(), r =
|
|
5070
|
+
})), Mt = /* @__PURE__ */ t(((e, t) => {
|
|
5071
|
+
var n = X(), r = At(), i = jt(), a = $();
|
|
5015
5072
|
t.exports = function(e, t) {
|
|
5016
5073
|
if (!a(e)) throw new n("Assertion failed: Type(O) is not Object");
|
|
5017
5074
|
if (!i(t)) throw new n("Assertion failed: P is not a Property Key, got " + r(t));
|
|
5018
5075
|
return e[t];
|
|
5019
5076
|
};
|
|
5020
|
-
})),
|
|
5021
|
-
var n = X(), r =
|
|
5077
|
+
})), Nt = /* @__PURE__ */ t(((e, t) => {
|
|
5078
|
+
var n = X(), r = At(), i = jt();
|
|
5022
5079
|
t.exports = function(e, t) {
|
|
5023
5080
|
if (!i(t)) throw new n("Assertion failed: P is not a Property Key, got " + r(t));
|
|
5024
5081
|
return e[t];
|
|
5025
5082
|
};
|
|
5026
|
-
})),
|
|
5083
|
+
})), Pt = /* @__PURE__ */ t(((e, t) => {
|
|
5027
5084
|
var n = Function.prototype.toString, r = typeof Reflect == "object" && Reflect !== null && Reflect.apply, i, a;
|
|
5028
5085
|
if (typeof r == "function" && typeof Object.defineProperty == "function") try {
|
|
5029
5086
|
i = Object.defineProperty({}, "length", { get: function() {
|
|
@@ -5078,10 +5135,10 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5078
5135
|
var t = l.call(e);
|
|
5079
5136
|
return t !== d && t !== f && !/^\[object HTML/.test(t) ? !1 : c(e);
|
|
5080
5137
|
};
|
|
5081
|
-
})), Pt = /* @__PURE__ */ t(((e, t) => {
|
|
5082
|
-
t.exports = Nt();
|
|
5083
5138
|
})), Ft = /* @__PURE__ */ t(((e, t) => {
|
|
5084
|
-
|
|
5139
|
+
t.exports = Pt();
|
|
5140
|
+
})), It = /* @__PURE__ */ t(((e, t) => {
|
|
5141
|
+
var n = X(), r = Nt(), i = Ft(), a = jt(), o = At();
|
|
5085
5142
|
t.exports = function(e, t) {
|
|
5086
5143
|
if (!a(t)) throw new n("Assertion failed: P is not a Property Key");
|
|
5087
5144
|
var s = r(e, t);
|
|
@@ -5090,13 +5147,13 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5090
5147
|
return s;
|
|
5091
5148
|
}
|
|
5092
5149
|
};
|
|
5093
|
-
})),
|
|
5094
|
-
var n =
|
|
5150
|
+
})), Lt = /* @__PURE__ */ t(((e, t) => {
|
|
5151
|
+
var n = rt();
|
|
5095
5152
|
t.exports = function() {
|
|
5096
5153
|
return n() && !!Symbol.toStringTag;
|
|
5097
5154
|
};
|
|
5098
|
-
})),
|
|
5099
|
-
var n = Q(), r =
|
|
5155
|
+
})), Rt = /* @__PURE__ */ t(((e, t) => {
|
|
5156
|
+
var n = Q(), r = Lt()(), i = gt(), a = tt(), o;
|
|
5100
5157
|
if (r) {
|
|
5101
5158
|
var s = n("RegExp.prototype.exec"), c = {}, l = function() {
|
|
5102
5159
|
throw c;
|
|
@@ -5121,12 +5178,12 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5121
5178
|
};
|
|
5122
5179
|
}
|
|
5123
5180
|
t.exports = o;
|
|
5124
|
-
})),
|
|
5181
|
+
})), zt = /* @__PURE__ */ t(((e, t) => {
|
|
5125
5182
|
t.exports = function(e) {
|
|
5126
5183
|
return !!e;
|
|
5127
5184
|
};
|
|
5128
|
-
})),
|
|
5129
|
-
var n = Z()("%Symbol.match%", !0), r =
|
|
5185
|
+
})), Bt = /* @__PURE__ */ t(((e, t) => {
|
|
5186
|
+
var n = Z()("%Symbol.match%", !0), r = Rt(), i = $(), a = zt();
|
|
5130
5187
|
t.exports = function(e) {
|
|
5131
5188
|
if (!i(e)) return !1;
|
|
5132
5189
|
if (n) {
|
|
@@ -5135,19 +5192,19 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5135
5192
|
}
|
|
5136
5193
|
return r(e);
|
|
5137
5194
|
};
|
|
5138
|
-
})),
|
|
5195
|
+
})), Vt = /* @__PURE__ */ t(((e, t) => {
|
|
5139
5196
|
var n = Z()("%String%"), r = X();
|
|
5140
5197
|
t.exports = function(e) {
|
|
5141
5198
|
if (typeof e == "symbol") throw new r("Cannot convert a Symbol value to a string");
|
|
5142
5199
|
return n(e);
|
|
5143
5200
|
};
|
|
5144
|
-
})),
|
|
5201
|
+
})), Ht = /* @__PURE__ */ t(((e, t) => {
|
|
5145
5202
|
var n = X();
|
|
5146
5203
|
t.exports = function(e) {
|
|
5147
5204
|
if (e == null) throw new n(arguments.length > 0 && arguments[1] || "Cannot call method on " + e);
|
|
5148
5205
|
return e;
|
|
5149
5206
|
};
|
|
5150
|
-
})),
|
|
5207
|
+
})), Ut = /* @__PURE__ */ t(((e, t) => {
|
|
5151
5208
|
var n = function() {
|
|
5152
5209
|
return typeof function() {}.name == "string";
|
|
5153
5210
|
}, r = Object.getOwnPropertyDescriptor;
|
|
@@ -5165,21 +5222,21 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5165
5222
|
n.boundFunctionsHaveNames = function() {
|
|
5166
5223
|
return n() && typeof i == "function" && function() {}.bind().name !== "";
|
|
5167
5224
|
}, t.exports = n;
|
|
5168
|
-
})),
|
|
5169
|
-
var n =
|
|
5225
|
+
})), Wt = /* @__PURE__ */ t(((e, t) => {
|
|
5226
|
+
var n = _t(), r = vt()(), i = Ut().functionsHaveConfigurableNames(), a = X();
|
|
5170
5227
|
t.exports = function(e, t) {
|
|
5171
5228
|
if (typeof e != "function") throw new a("`fn` is not a function");
|
|
5172
5229
|
return (!(arguments.length > 2 && arguments[2]) || i) && (r ? n(e, "name", t, !0, !0) : n(e, "name", t)), e;
|
|
5173
5230
|
};
|
|
5174
|
-
})),
|
|
5175
|
-
var n =
|
|
5231
|
+
})), Gt = /* @__PURE__ */ t(((e, t) => {
|
|
5232
|
+
var n = Wt(), r = X(), i = Object;
|
|
5176
5233
|
t.exports = n(function() {
|
|
5177
5234
|
if (this == null || this !== i(this)) throw new r("RegExp.prototype.flags getter called on non-object");
|
|
5178
5235
|
var e = "";
|
|
5179
5236
|
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;
|
|
5180
5237
|
}, "get flags", !0);
|
|
5181
|
-
})),
|
|
5182
|
-
var n =
|
|
5238
|
+
})), Kt = /* @__PURE__ */ t(((e, t) => {
|
|
5239
|
+
var n = Gt(), r = Tt().supportsDescriptors, i = Object.getOwnPropertyDescriptor;
|
|
5183
5240
|
t.exports = function() {
|
|
5184
5241
|
if (r && /a/gim.flags === "gim") {
|
|
5185
5242
|
var e = i(RegExp.prototype, "flags");
|
|
@@ -5194,8 +5251,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5194
5251
|
}
|
|
5195
5252
|
return n;
|
|
5196
5253
|
};
|
|
5197
|
-
})),
|
|
5198
|
-
var n =
|
|
5254
|
+
})), qt = /* @__PURE__ */ t(((e, t) => {
|
|
5255
|
+
var n = Tt().supportsDescriptors, r = Kt(), i = tt(), a = Object.defineProperty, o = Be(), s = ht(), c = /a/;
|
|
5199
5256
|
t.exports = function() {
|
|
5200
5257
|
if (!n || !s) throw new o("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
|
|
5201
5258
|
var e = r(), t = s(c), l = i(t, "flags");
|
|
@@ -5205,29 +5262,29 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5205
5262
|
get: e
|
|
5206
5263
|
}), e;
|
|
5207
5264
|
};
|
|
5208
|
-
})),
|
|
5209
|
-
var n =
|
|
5265
|
+
})), Jt = /* @__PURE__ */ t(((e, t) => {
|
|
5266
|
+
var n = Tt(), r = xt(), i = Gt(), a = Kt(), o = qt(), s = r(a());
|
|
5210
5267
|
n(s, {
|
|
5211
5268
|
getPolyfill: a,
|
|
5212
5269
|
implementation: i,
|
|
5213
5270
|
shim: o
|
|
5214
5271
|
}), t.exports = s;
|
|
5215
|
-
})),
|
|
5272
|
+
})), Yt = /* @__PURE__ */ t(((e, t) => {
|
|
5216
5273
|
t.exports = function(e) {
|
|
5217
5274
|
return typeof e == "number" && e >= 55296 && e <= 56319;
|
|
5218
5275
|
};
|
|
5219
|
-
})),
|
|
5276
|
+
})), Xt = /* @__PURE__ */ t(((e, t) => {
|
|
5220
5277
|
t.exports = function(e) {
|
|
5221
5278
|
return typeof e == "number" && e >= 56320 && e <= 57343;
|
|
5222
5279
|
};
|
|
5223
|
-
})),
|
|
5224
|
-
var n = Z(), r = X(), i = n("%String.fromCharCode%"), a =
|
|
5280
|
+
})), Zt = /* @__PURE__ */ t(((e, t) => {
|
|
5281
|
+
var n = Z(), r = X(), i = n("%String.fromCharCode%"), a = Yt(), o = Xt();
|
|
5225
5282
|
t.exports = function(e, t) {
|
|
5226
5283
|
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");
|
|
5227
5284
|
return i(e) + i(t);
|
|
5228
5285
|
};
|
|
5229
|
-
})),
|
|
5230
|
-
var n = X(), r = Q(), i =
|
|
5286
|
+
})), Qt = /* @__PURE__ */ t(((e, t) => {
|
|
5287
|
+
var n = X(), r = Q(), i = Yt(), a = Xt(), o = Zt(), s = r("String.prototype.charAt"), c = r("String.prototype.charCodeAt");
|
|
5231
5288
|
t.exports = function(e, t) {
|
|
5232
5289
|
if (typeof e != "string") throw new n("Assertion failed: `string` must be a String");
|
|
5233
5290
|
var r = e.length;
|
|
@@ -5254,22 +5311,22 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5254
5311
|
"[[IsUnpairedSurrogate]]": !0
|
|
5255
5312
|
};
|
|
5256
5313
|
};
|
|
5257
|
-
})),
|
|
5258
|
-
var n =
|
|
5314
|
+
})), $t = /* @__PURE__ */ t(((e, t) => {
|
|
5315
|
+
var n = Qe();
|
|
5259
5316
|
t.exports = function(e) {
|
|
5260
5317
|
return (typeof e == "number" || typeof e == "bigint") && !n(e) && e !== Infinity && e !== -Infinity;
|
|
5261
5318
|
};
|
|
5262
|
-
})),
|
|
5263
|
-
var n =
|
|
5319
|
+
})), en = /* @__PURE__ */ t(((e, t) => {
|
|
5320
|
+
var n = Ke(), r = qe(), i = Qe(), a = $t();
|
|
5264
5321
|
t.exports = function(e) {
|
|
5265
5322
|
if (typeof e != "number" || i(e) || !a(e)) return !1;
|
|
5266
5323
|
var t = n(e);
|
|
5267
5324
|
return r(t) === t;
|
|
5268
5325
|
};
|
|
5269
|
-
})), en = /* @__PURE__ */ t(((e, t) => {
|
|
5270
|
-
t.exports = 2 ** 53 - 1 || 9007199254740991;
|
|
5271
5326
|
})), tn = /* @__PURE__ */ t(((e, t) => {
|
|
5272
|
-
|
|
5327
|
+
t.exports = 2 ** 53 - 1 || 9007199254740991;
|
|
5328
|
+
})), nn = /* @__PURE__ */ t(((e, t) => {
|
|
5329
|
+
var n = Qt(), r = X(), i = en(), a = tn();
|
|
5273
5330
|
t.exports = function(e, t, o) {
|
|
5274
5331
|
if (typeof e != "string") throw new r("Assertion failed: `S` must be a String");
|
|
5275
5332
|
if (!i(t) || t < 0 || t > a) throw new r("Assertion failed: `length` must be an integer >= 0 and <= 2**53");
|
|
@@ -5278,7 +5335,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5278
5335
|
var s = e.length;
|
|
5279
5336
|
return t + 1 >= s ? t + 1 : t + n(e, t)["[[CodeUnitCount]]"];
|
|
5280
5337
|
};
|
|
5281
|
-
})),
|
|
5338
|
+
})), rn = /* @__PURE__ */ t(((e, t) => {
|
|
5282
5339
|
var n = X();
|
|
5283
5340
|
t.exports = function(e, t) {
|
|
5284
5341
|
if (typeof t != "boolean") throw new n("Assertion failed: Type(done) is not Boolean");
|
|
@@ -5287,8 +5344,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5287
5344
|
done: t
|
|
5288
5345
|
};
|
|
5289
5346
|
};
|
|
5290
|
-
})),
|
|
5291
|
-
var n = X(), r =
|
|
5347
|
+
})), an = /* @__PURE__ */ t(((e, t) => {
|
|
5348
|
+
var n = X(), r = gt(), i = {
|
|
5292
5349
|
__proto__: null,
|
|
5293
5350
|
"[[Configurable]]": !0,
|
|
5294
5351
|
"[[Enumerable]]": !0,
|
|
@@ -5304,8 +5361,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5304
5361
|
if (a && o) throw new n("Property Descriptors may not be both accessor and data descriptors");
|
|
5305
5362
|
return !0;
|
|
5306
5363
|
};
|
|
5307
|
-
})),
|
|
5308
|
-
var n =
|
|
5364
|
+
})), on = /* @__PURE__ */ t(((e, t) => {
|
|
5365
|
+
var n = vt(), r = nt(), i = n.hasArrayLengthDefineBug(), a = i && Et(), o = Q()("Object.prototype.propertyIsEnumerable");
|
|
5309
5366
|
t.exports = function(e, t, n, s, c, l) {
|
|
5310
5367
|
if (!r) {
|
|
5311
5368
|
if (!e(l) || !l["[[Configurable]]"] || !l["[[Writable]]"] || c in s && o(s, c) !== !!l["[[Enumerable]]"]) return !1;
|
|
@@ -5314,32 +5371,32 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5314
5371
|
}
|
|
5315
5372
|
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);
|
|
5316
5373
|
};
|
|
5317
|
-
})),
|
|
5374
|
+
})), sn = /* @__PURE__ */ t(((e, t) => {
|
|
5318
5375
|
t.exports = function(e) {
|
|
5319
5376
|
if (e === void 0) return e;
|
|
5320
5377
|
var t = {};
|
|
5321
5378
|
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;
|
|
5322
5379
|
};
|
|
5323
|
-
})),
|
|
5324
|
-
var n = X(), r =
|
|
5380
|
+
})), cn = /* @__PURE__ */ t(((e, t) => {
|
|
5381
|
+
var n = X(), r = an(), i = sn();
|
|
5325
5382
|
t.exports = function(e) {
|
|
5326
5383
|
if (e !== void 0 && !r(e)) throw new n("Assertion failed: `Desc` must be a Property Descriptor");
|
|
5327
5384
|
return i(e);
|
|
5328
5385
|
};
|
|
5329
|
-
})),
|
|
5330
|
-
var n = X(), r =
|
|
5386
|
+
})), ln = /* @__PURE__ */ t(((e, t) => {
|
|
5387
|
+
var n = X(), r = gt(), i = an();
|
|
5331
5388
|
t.exports = function(e) {
|
|
5332
5389
|
if (e === void 0) return !1;
|
|
5333
5390
|
if (!i(e)) throw new n("Assertion failed: `Desc` must be a Property Descriptor");
|
|
5334
5391
|
return !(!r(e, "[[Value]]") && !r(e, "[[Writable]]"));
|
|
5335
5392
|
};
|
|
5336
|
-
})),
|
|
5337
|
-
var n =
|
|
5393
|
+
})), un = /* @__PURE__ */ t(((e, t) => {
|
|
5394
|
+
var n = Qe();
|
|
5338
5395
|
t.exports = function(e, t) {
|
|
5339
5396
|
return e === t ? e === 0 ? 1 / e == 1 / t : !0 : n(e) && n(t);
|
|
5340
5397
|
};
|
|
5341
|
-
})),
|
|
5342
|
-
var n =
|
|
5398
|
+
})), dn = /* @__PURE__ */ t(((e, t) => {
|
|
5399
|
+
var n = gt(), r = X(), i = $(), a = Ft(), o = zt();
|
|
5343
5400
|
t.exports = function(e) {
|
|
5344
5401
|
if (!i(e)) throw new r("ToPropertyDescriptor requires an object");
|
|
5345
5402
|
var t = {};
|
|
@@ -5356,8 +5413,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5356
5413
|
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");
|
|
5357
5414
|
return t;
|
|
5358
5415
|
};
|
|
5359
|
-
})),
|
|
5360
|
-
var n = X(), r = $(), i =
|
|
5416
|
+
})), fn = /* @__PURE__ */ t(((e, t) => {
|
|
5417
|
+
var n = X(), r = $(), i = an(), a = on(), o = cn(), s = ln(), c = jt(), l = un(), u = dn();
|
|
5361
5418
|
t.exports = function(e, t, d) {
|
|
5362
5419
|
if (!r(e)) throw new n("Assertion failed: Type(O) is not Object");
|
|
5363
5420
|
if (!c(t)) throw new n("Assertion failed: P is not a Property Key");
|
|
@@ -5365,19 +5422,19 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5365
5422
|
if (!i(f)) throw new n("Assertion failed: Desc is not a valid Property Descriptor");
|
|
5366
5423
|
return a(s, l, o, e, t, f);
|
|
5367
5424
|
};
|
|
5368
|
-
})),
|
|
5425
|
+
})), pn = /* @__PURE__ */ t(((e, t) => {
|
|
5369
5426
|
t.exports = function(e) {
|
|
5370
5427
|
return e === null || typeof e != "function" && typeof e != "object";
|
|
5371
5428
|
};
|
|
5372
|
-
})),
|
|
5373
|
-
var n = Z(), r = n("%Object.preventExtensions%", !0), i = n("%Object.isExtensible%", !0), a =
|
|
5429
|
+
})), mn = /* @__PURE__ */ t(((e, t) => {
|
|
5430
|
+
var n = Z(), r = n("%Object.preventExtensions%", !0), i = n("%Object.isExtensible%", !0), a = pn();
|
|
5374
5431
|
t.exports = r ? function(e) {
|
|
5375
5432
|
return !a(e) && i(e);
|
|
5376
5433
|
} : function(e) {
|
|
5377
5434
|
return !a(e);
|
|
5378
5435
|
};
|
|
5379
|
-
})),
|
|
5380
|
-
var n = X(), r = $(), i =
|
|
5436
|
+
})), hn = /* @__PURE__ */ t(((e, t) => {
|
|
5437
|
+
var n = X(), r = $(), i = fn(), a = mn(), o = jt();
|
|
5381
5438
|
t.exports = function(e, t, s, c) {
|
|
5382
5439
|
if (!r(e)) throw new n("Assertion failed: `homeObject` is not an Object");
|
|
5383
5440
|
if (!o(t)) throw new n("Assertion failed: `key` is not a Property Key or a Private Name");
|
|
@@ -5391,12 +5448,12 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5391
5448
|
"[[Configurable]]": !0
|
|
5392
5449
|
});
|
|
5393
5450
|
};
|
|
5394
|
-
})),
|
|
5451
|
+
})), gn = /* @__PURE__ */ t(((e, t) => {
|
|
5395
5452
|
t.exports = function(e, t) {
|
|
5396
5453
|
for (var n = 0; n < e.length; n += 1) t(e[n], n, e);
|
|
5397
5454
|
};
|
|
5398
|
-
})),
|
|
5399
|
-
var n =
|
|
5455
|
+
})), _n = /* @__PURE__ */ t(((e, t) => {
|
|
5456
|
+
var n = At(), r = X(), i = function(e, t, n) {
|
|
5400
5457
|
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;
|
|
5401
5458
|
}, a = function(e, t) {
|
|
5402
5459
|
if (e) {
|
|
@@ -5436,8 +5493,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5436
5493
|
};
|
|
5437
5494
|
return t;
|
|
5438
5495
|
};
|
|
5439
|
-
})),
|
|
5440
|
-
var n = Z(), r = Q(), i =
|
|
5496
|
+
})), vn = /* @__PURE__ */ t(((e, t) => {
|
|
5497
|
+
var n = Z(), r = Q(), i = At(), 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);
|
|
5441
5498
|
t.exports = !!o && function() {
|
|
5442
5499
|
var e, t = {
|
|
5443
5500
|
assert: function(e) {
|
|
@@ -5462,8 +5519,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5462
5519
|
};
|
|
5463
5520
|
return t;
|
|
5464
5521
|
};
|
|
5465
|
-
})),
|
|
5466
|
-
var n = Z(), r = Q(), i =
|
|
5522
|
+
})), yn = /* @__PURE__ */ t(((e, t) => {
|
|
5523
|
+
var n = Z(), r = Q(), i = At(), a = vn(), 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);
|
|
5467
5524
|
t.exports = s ? function() {
|
|
5468
5525
|
var e, t, n = {
|
|
5469
5526
|
assert: function(e) {
|
|
@@ -5487,8 +5544,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5487
5544
|
};
|
|
5488
5545
|
return n;
|
|
5489
5546
|
} : a;
|
|
5490
|
-
})),
|
|
5491
|
-
var n = X(), r =
|
|
5547
|
+
})), bn = /* @__PURE__ */ t(((e, t) => {
|
|
5548
|
+
var n = X(), r = At(), i = _n(), a = vn(), o = yn() || a || i;
|
|
5492
5549
|
t.exports = function() {
|
|
5493
5550
|
var e, t = {
|
|
5494
5551
|
assert: function(e) {
|
|
@@ -5509,8 +5566,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5509
5566
|
};
|
|
5510
5567
|
return t;
|
|
5511
5568
|
};
|
|
5512
|
-
})),
|
|
5513
|
-
var n =
|
|
5569
|
+
})), xn = /* @__PURE__ */ t(((e, t) => {
|
|
5570
|
+
var n = gt(), r = bn()(), i = X(), a = {
|
|
5514
5571
|
assert: function(e, t) {
|
|
5515
5572
|
if (!e || typeof e != "object" && typeof e != "function") throw new i("`O` is not an object");
|
|
5516
5573
|
if (typeof t != "string") throw new i("`slot` must be a string");
|
|
@@ -5536,7 +5593,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5536
5593
|
}
|
|
5537
5594
|
};
|
|
5538
5595
|
Object.freeze && Object.freeze(a), t.exports = a;
|
|
5539
|
-
})),
|
|
5596
|
+
})), Sn = /* @__PURE__ */ t(((e, t) => {
|
|
5540
5597
|
var n = {
|
|
5541
5598
|
__proto__: null,
|
|
5542
5599
|
foo: {}
|
|
@@ -5544,8 +5601,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5544
5601
|
t.exports = function() {
|
|
5545
5602
|
return r;
|
|
5546
5603
|
};
|
|
5547
|
-
})),
|
|
5548
|
-
var n = Z()("%Object.create%", !0), r = X(), i =
|
|
5604
|
+
})), Cn = /* @__PURE__ */ t(((e, t) => {
|
|
5605
|
+
var n = Z()("%Object.create%", !0), r = X(), i = We(), a = $(), o = Dt(), s = gn(), c = xn(), l = Sn()();
|
|
5549
5606
|
t.exports = function(e) {
|
|
5550
5607
|
if (e !== null && !a(e)) throw new r("Assertion failed: `proto` must be null or an object");
|
|
5551
5608
|
var t = arguments.length < 2 ? [] : arguments[1];
|
|
@@ -5562,8 +5619,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5562
5619
|
c.set(u, e, void 0);
|
|
5563
5620
|
}), u;
|
|
5564
5621
|
};
|
|
5565
|
-
})),
|
|
5566
|
-
var n = X(), r = $(), i = Q()("RegExp.prototype.exec"), a =
|
|
5622
|
+
})), wn = /* @__PURE__ */ t(((e, t) => {
|
|
5623
|
+
var n = X(), r = $(), i = Q()("RegExp.prototype.exec"), a = Ot(), o = Mt(), s = Ft();
|
|
5567
5624
|
t.exports = function(e, t) {
|
|
5568
5625
|
if (!r(e)) throw new n("Assertion failed: `R` must be an Object");
|
|
5569
5626
|
if (typeof t != "string") throw new n("Assertion failed: `S` must be a String");
|
|
@@ -5575,8 +5632,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5575
5632
|
}
|
|
5576
5633
|
return i(e, t);
|
|
5577
5634
|
};
|
|
5578
|
-
})),
|
|
5579
|
-
var n = X(), r = $(), i =
|
|
5635
|
+
})), Tn = /* @__PURE__ */ t(((e, t) => {
|
|
5636
|
+
var n = X(), r = $(), i = jt(), a = un(), o = function() {
|
|
5580
5637
|
try {
|
|
5581
5638
|
return delete 0, !0;
|
|
5582
5639
|
} catch {
|
|
@@ -5597,31 +5654,31 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5597
5654
|
return !1;
|
|
5598
5655
|
}
|
|
5599
5656
|
};
|
|
5600
|
-
})),
|
|
5657
|
+
})), En = /* @__PURE__ */ t(((e, t) => {
|
|
5601
5658
|
t.exports = function(e) {
|
|
5602
5659
|
return e === null || typeof e != "function" && typeof e != "object";
|
|
5603
5660
|
};
|
|
5604
|
-
})),
|
|
5661
|
+
})), Dn = /* @__PURE__ */ t(((e, t) => {
|
|
5605
5662
|
var n = Q(), r = n("Date.prototype.getDay"), i = function(e) {
|
|
5606
5663
|
try {
|
|
5607
5664
|
return r(e), !0;
|
|
5608
5665
|
} catch {
|
|
5609
5666
|
return !1;
|
|
5610
5667
|
}
|
|
5611
|
-
}, a = n("Object.prototype.toString"), o = "[object Date]", s =
|
|
5668
|
+
}, a = n("Object.prototype.toString"), o = "[object Date]", s = Lt()();
|
|
5612
5669
|
t.exports = function(e) {
|
|
5613
5670
|
return typeof e != "object" || !e ? !1 : s ? i(e) : a(e) === o;
|
|
5614
5671
|
};
|
|
5615
|
-
})),
|
|
5616
|
-
var n = Q(), r =
|
|
5672
|
+
})), On = /* @__PURE__ */ t(((e, t) => {
|
|
5673
|
+
var n = Q(), r = Rt(), i = n("RegExp.prototype.exec"), a = X();
|
|
5617
5674
|
t.exports = function(e) {
|
|
5618
5675
|
if (!r(e)) throw new a("`regex` must be a RegExp");
|
|
5619
5676
|
return function(t) {
|
|
5620
5677
|
return i(e, t) !== null;
|
|
5621
5678
|
};
|
|
5622
5679
|
};
|
|
5623
|
-
})),
|
|
5624
|
-
var n = Q(), r = n("Object.prototype.toString"), i =
|
|
5680
|
+
})), kn = /* @__PURE__ */ t(((e, t) => {
|
|
5681
|
+
var n = Q(), r = n("Object.prototype.toString"), i = it()(), a = On();
|
|
5625
5682
|
if (i) {
|
|
5626
5683
|
var o = n("Symbol.prototype.toString"), s = a(/^Symbol\(.*\)$/), c = function(e) {
|
|
5627
5684
|
return typeof e.valueOf() == "symbol" ? s(o(e)) : !1;
|
|
@@ -5638,8 +5695,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5638
5695
|
} else t.exports = function(e) {
|
|
5639
5696
|
return !1;
|
|
5640
5697
|
};
|
|
5641
|
-
})),
|
|
5642
|
-
var n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol", r =
|
|
5698
|
+
})), An = /* @__PURE__ */ t(((e, t) => {
|
|
5699
|
+
var n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol", r = En(), i = Pt(), a = Dn(), o = kn(), s = function(e, t) {
|
|
5643
5700
|
if (e == null) throw TypeError("Cannot call method on " + e);
|
|
5644
5701
|
if (typeof t != "string" || t !== "number" && t !== "string") throw TypeError("hint must be \"string\" or \"number\"");
|
|
5645
5702
|
var n = t === "string" ? ["toString", "valueOf"] : ["valueOf", "toString"], a, o, s;
|
|
@@ -5664,29 +5721,29 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5664
5721
|
}
|
|
5665
5722
|
return t === "default" && (a(e) || o(e)) && (t = "string"), s(e, t === "default" ? "number" : t);
|
|
5666
5723
|
};
|
|
5667
|
-
})),
|
|
5668
|
-
var n =
|
|
5724
|
+
})), jn = /* @__PURE__ */ t(((e, t) => {
|
|
5725
|
+
var n = An();
|
|
5669
5726
|
t.exports = function(e) {
|
|
5670
5727
|
return arguments.length > 1 ? n(e, arguments[1]) : n(e);
|
|
5671
5728
|
};
|
|
5672
|
-
})),
|
|
5673
|
-
var n =
|
|
5729
|
+
})), Mn = /* @__PURE__ */ t(((e, t) => {
|
|
5730
|
+
var n = Ht(), r = Vt(), 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]+$/;
|
|
5674
5731
|
t.exports = function() {
|
|
5675
5732
|
return i(i(r(n(this)), o, ""), s, "");
|
|
5676
5733
|
};
|
|
5677
|
-
})),
|
|
5678
|
-
var n =
|
|
5734
|
+
})), Nn = /* @__PURE__ */ t(((e, t) => {
|
|
5735
|
+
var n = Mn(), r = "", i = "";
|
|
5679
5736
|
t.exports = function() {
|
|
5680
5737
|
return String.prototype.trim && r.trim() === r && i.trim() === i && ("_" + i).trim() === "_" + i && (i + "_").trim() === i + "_" ? String.prototype.trim : n;
|
|
5681
5738
|
};
|
|
5682
|
-
})),
|
|
5683
|
-
var n =
|
|
5739
|
+
})), Pn = /* @__PURE__ */ t(((e, t) => {
|
|
5740
|
+
var n = vt()(), r = _t(), i = Nn();
|
|
5684
5741
|
t.exports = function() {
|
|
5685
5742
|
var e = i();
|
|
5686
5743
|
return String.prototype.trim !== e && (n ? r(String.prototype, "trim", e, !0) : r(String.prototype, "trim", e)), e;
|
|
5687
5744
|
};
|
|
5688
|
-
})),
|
|
5689
|
-
var n =
|
|
5745
|
+
})), Fn = /* @__PURE__ */ t(((e, t) => {
|
|
5746
|
+
var n = xt(), r = Tt(), i = Ht(), a = Mn(), o = Nn(), s = Pn(), c = n(o()), l = function(e) {
|
|
5690
5747
|
return i(e), c(e);
|
|
5691
5748
|
};
|
|
5692
5749
|
r(l, {
|
|
@@ -5694,12 +5751,12 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5694
5751
|
implementation: a,
|
|
5695
5752
|
shim: s
|
|
5696
5753
|
}), t.exports = l;
|
|
5697
|
-
})),
|
|
5698
|
-
var n = Z(), r = n("%RegExp%"), i = X(), a = n("%parseInt%"), o = Q(), s =
|
|
5754
|
+
})), In = /* @__PURE__ */ t(((e, t) => {
|
|
5755
|
+
var n = Z(), r = n("%RegExp%"), i = X(), a = n("%parseInt%"), o = Q(), s = On(), 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("[" + [
|
|
5699
5756
|
"
",
|
|
5700
5757
|
"",
|
|
5701
5758
|
""
|
|
5702
|
-
].join("") + "]", "g")), p =
|
|
5759
|
+
].join("") + "]", "g")), p = Fn();
|
|
5703
5760
|
t.exports = function e(t) {
|
|
5704
5761
|
if (typeof t != "string") throw new i("Assertion failed: `argument` is not a String");
|
|
5705
5762
|
if (l(t)) return +a(c(t, 2), 2);
|
|
@@ -5708,40 +5765,40 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5708
5765
|
var n = p(t);
|
|
5709
5766
|
return n === t ? +t : e(n);
|
|
5710
5767
|
};
|
|
5711
|
-
})),
|
|
5712
|
-
var n = Z(), r = X(), i = n("%Number%"), a =
|
|
5768
|
+
})), Ln = /* @__PURE__ */ t(((e, t) => {
|
|
5769
|
+
var n = Z(), r = X(), i = n("%Number%"), a = pn(), o = jn(), s = In();
|
|
5713
5770
|
t.exports = function(e) {
|
|
5714
5771
|
var t = a(e) ? e : o(e, i);
|
|
5715
5772
|
if (typeof t == "symbol") throw new r("Cannot convert a Symbol value to a number");
|
|
5716
5773
|
if (typeof t == "bigint") throw new r("Conversion from 'BigInt' to 'number' is not allowed.");
|
|
5717
5774
|
return typeof t == "string" ? s(t) : +t;
|
|
5718
5775
|
};
|
|
5719
|
-
})),
|
|
5720
|
-
var n =
|
|
5776
|
+
})), Rn = /* @__PURE__ */ t(((e, t) => {
|
|
5777
|
+
var n = qe();
|
|
5721
5778
|
t.exports = function(e) {
|
|
5722
5779
|
return typeof e == "bigint" ? e : n(e);
|
|
5723
5780
|
};
|
|
5724
|
-
})),
|
|
5725
|
-
var n =
|
|
5781
|
+
})), zn = /* @__PURE__ */ t(((e, t) => {
|
|
5782
|
+
var n = Rn(), r = X();
|
|
5726
5783
|
t.exports = function(e) {
|
|
5727
5784
|
if (typeof e != "number" && typeof e != "bigint") throw new r("argument must be a Number or a BigInt");
|
|
5728
5785
|
var t = e < 0 ? -n(-e) : n(e);
|
|
5729
5786
|
return t === 0 ? 0 : t;
|
|
5730
5787
|
};
|
|
5731
|
-
})),
|
|
5732
|
-
var n =
|
|
5788
|
+
})), Bn = /* @__PURE__ */ t(((e, t) => {
|
|
5789
|
+
var n = Ln(), r = zn(), i = Qe(), a = $t();
|
|
5733
5790
|
t.exports = function(e) {
|
|
5734
5791
|
var t = n(e);
|
|
5735
5792
|
return i(t) || t === 0 ? 0 : a(t) ? r(t) : t;
|
|
5736
5793
|
};
|
|
5737
|
-
})),
|
|
5738
|
-
var n =
|
|
5794
|
+
})), Vn = /* @__PURE__ */ t(((e, t) => {
|
|
5795
|
+
var n = tn(), r = Bn();
|
|
5739
5796
|
t.exports = function(e) {
|
|
5740
5797
|
var t = r(e);
|
|
5741
5798
|
return t <= 0 ? 0 : t > n ? n : t;
|
|
5742
5799
|
};
|
|
5743
|
-
})),
|
|
5744
|
-
var n = Z()("%Object.defineProperty%", !0), r =
|
|
5800
|
+
})), Hn = /* @__PURE__ */ t(((e, t) => {
|
|
5801
|
+
var n = Z()("%Object.defineProperty%", !0), r = Lt()(), i = gt(), a = X(), o = r ? Symbol.toStringTag : null;
|
|
5745
5802
|
t.exports = function(e, t) {
|
|
5746
5803
|
var r = arguments.length > 2 && !!arguments[2] && arguments[2].force, s = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;
|
|
5747
5804
|
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");
|
|
@@ -5752,8 +5809,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5752
5809
|
writable: !1
|
|
5753
5810
|
}) : e[o] = t);
|
|
5754
5811
|
};
|
|
5755
|
-
})),
|
|
5756
|
-
var n = Z(), r =
|
|
5812
|
+
})), Un = /* @__PURE__ */ t(((e, t) => {
|
|
5813
|
+
var n = Z(), r = it()(), i = X(), a = $(), o = n("%IteratorPrototype%", !0), s = nn(), c = rn(), l = hn(), u = Mt(), d = Cn(), f = wn(), p = Tn(), m = Vn(), h = Vt(), g = xn(), _ = Hn(), v = function(e, t, n, r) {
|
|
5757
5814
|
if (typeof t != "string") throw new i("`S` must be a string");
|
|
5758
5815
|
if (typeof n != "boolean") throw new i("`global` must be a boolean");
|
|
5759
5816
|
if (typeof r != "boolean") throw new i("`fullUnicode` must be a boolean");
|
|
@@ -5771,10 +5828,10 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5771
5828
|
}, !1)), t.exports = function(e, t, n, r) {
|
|
5772
5829
|
return new v(e, t, n, r);
|
|
5773
5830
|
};
|
|
5774
|
-
})), Un = /* @__PURE__ */ t(((e, t) => {
|
|
5775
|
-
t.exports = Z();
|
|
5776
5831
|
})), Wn = /* @__PURE__ */ t(((e, t) => {
|
|
5777
|
-
|
|
5832
|
+
t.exports = Z();
|
|
5833
|
+
})), Gn = /* @__PURE__ */ t(((e, t) => {
|
|
5834
|
+
var n = Wn()("%Reflect.construct%", !0), r = fn();
|
|
5778
5835
|
try {
|
|
5779
5836
|
r({}, "", { "[[Get]]": function() {} });
|
|
5780
5837
|
} catch {
|
|
@@ -5797,8 +5854,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5797
5854
|
} else t.exports = function(e) {
|
|
5798
5855
|
return typeof e == "function" && !!e.prototype;
|
|
5799
5856
|
};
|
|
5800
|
-
})),
|
|
5801
|
-
var n = Z()("%Symbol.species%", !0), r = X(), i = $(), a =
|
|
5857
|
+
})), Kn = /* @__PURE__ */ t(((e, t) => {
|
|
5858
|
+
var n = Z()("%Symbol.species%", !0), r = X(), i = $(), a = Gn();
|
|
5802
5859
|
t.exports = function(e, t) {
|
|
5803
5860
|
if (!i(e)) throw new r("Assertion failed: Type(O) is not Object");
|
|
5804
5861
|
var o = e.constructor;
|
|
@@ -5809,7 +5866,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5809
5866
|
if (a(s)) return s;
|
|
5810
5867
|
throw new r("no constructor found");
|
|
5811
5868
|
};
|
|
5812
|
-
})),
|
|
5869
|
+
})), qn = /* @__PURE__ */ t(((e, t) => {
|
|
5813
5870
|
var n = $();
|
|
5814
5871
|
t.exports = function(e) {
|
|
5815
5872
|
if (e === null) return "Null";
|
|
@@ -5819,13 +5876,13 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5819
5876
|
if (typeof e == "boolean") return "Boolean";
|
|
5820
5877
|
if (typeof e == "string") return "String";
|
|
5821
5878
|
};
|
|
5822
|
-
})),
|
|
5823
|
-
var n =
|
|
5879
|
+
})), Jn = /* @__PURE__ */ t(((e, t) => {
|
|
5880
|
+
var n = qn();
|
|
5824
5881
|
t.exports = function(e) {
|
|
5825
5882
|
return typeof e == "symbol" ? "Symbol" : typeof e == "bigint" ? "BigInt" : n(e);
|
|
5826
5883
|
};
|
|
5827
|
-
})),
|
|
5828
|
-
var n =
|
|
5884
|
+
})), Yn = /* @__PURE__ */ t(((e, t) => {
|
|
5885
|
+
var n = Un(), r = Mt(), i = Tn(), a = Kn(), o = Vn(), s = Vt(), c = Jn(), l = Jt(), u = Wt(), d = Q(), f = Z(), p = X(), m = d("String.prototype.indexOf"), h = f("%RegExp%"), g = "flags" in h.prototype, _ = function(e, t) {
|
|
5829
5886
|
var n, i = "flags" in t ? r(t, "flags") : s(l(t));
|
|
5830
5887
|
return n = g && typeof i == "string" ? new e(t, i) : e === h ? new e(t.source, i) : new e(t, i), {
|
|
5831
5888
|
flags: i,
|
|
@@ -5838,13 +5895,13 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5838
5895
|
var l = s(e), u = _(a(t, h), t), d = u.flags, f = u.matcher;
|
|
5839
5896
|
return i(f, "lastIndex", o(r(t, "lastIndex")), !0), n(f, l, m(d, "g") > -1, m(d, "u") > -1);
|
|
5840
5897
|
}, "[Symbol.matchAll]", !0);
|
|
5841
|
-
})),
|
|
5842
|
-
var n =
|
|
5898
|
+
})), Xn = /* @__PURE__ */ t(((e, t) => {
|
|
5899
|
+
var n = it()(), r = Yn();
|
|
5843
5900
|
t.exports = function() {
|
|
5844
5901
|
return !n || typeof Symbol.matchAll != "symbol" || typeof RegExp.prototype[Symbol.matchAll] != "function" ? r : RegExp.prototype[Symbol.matchAll];
|
|
5845
5902
|
};
|
|
5846
|
-
})),
|
|
5847
|
-
var n =
|
|
5903
|
+
})), Zn = /* @__PURE__ */ t(((e, t) => {
|
|
5904
|
+
var n = Ot(), r = Mt(), i = It(), a = Bt(), o = Vt(), s = Ht(), c = Q(), l = it()(), u = Jt(), d = Z(), f = X(), p = d("%RegExp%"), m = c("String.prototype.indexOf"), h = Xn(), g = function(e) {
|
|
5848
5905
|
var t = h();
|
|
5849
5906
|
if (l && typeof Symbol.matchAll == "symbol") {
|
|
5850
5907
|
var n = i(e, Symbol.matchAll);
|
|
@@ -5865,8 +5922,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5865
5922
|
var l = o(t), d = new p(e, "g");
|
|
5866
5923
|
return n(g(d), d, [l]);
|
|
5867
5924
|
};
|
|
5868
|
-
})),
|
|
5869
|
-
var n =
|
|
5925
|
+
})), Qn = /* @__PURE__ */ t(((e, t) => {
|
|
5926
|
+
var n = Zn();
|
|
5870
5927
|
t.exports = function() {
|
|
5871
5928
|
if (String.prototype.matchAll) try {
|
|
5872
5929
|
"".matchAll(RegExp.prototype);
|
|
@@ -5875,8 +5932,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5875
5932
|
}
|
|
5876
5933
|
return n;
|
|
5877
5934
|
};
|
|
5878
|
-
})),
|
|
5879
|
-
var n =
|
|
5935
|
+
})), $n = /* @__PURE__ */ t(((e, t) => {
|
|
5936
|
+
var n = Tt(), r = it()(), i = tt(), a = Qn(), o = Xn(), s = Object.defineProperty;
|
|
5880
5937
|
t.exports = function() {
|
|
5881
5938
|
var e = a();
|
|
5882
5939
|
if (n(String.prototype, { matchAll: e }, { matchAll: function() {
|
|
@@ -5903,20 +5960,20 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5903
5960
|
}
|
|
5904
5961
|
return e;
|
|
5905
5962
|
};
|
|
5906
|
-
})),
|
|
5907
|
-
var n =
|
|
5963
|
+
})), er = /* @__PURE__ */ t(((e, t) => {
|
|
5964
|
+
var n = xt(), r = Tt(), i = Zn(), a = Qn(), o = $n(), s = n(i);
|
|
5908
5965
|
r(s, {
|
|
5909
5966
|
getPolyfill: a,
|
|
5910
5967
|
implementation: i,
|
|
5911
5968
|
shim: o
|
|
5912
5969
|
}), t.exports = s;
|
|
5913
|
-
})),
|
|
5970
|
+
})), tr = /* @__PURE__ */ t(((e, t) => {
|
|
5914
5971
|
i();
|
|
5915
|
-
var o = A(), s = F(), c = I(), l = q(), u = P(), d = ye(), f =
|
|
5972
|
+
var o = A(), s = F(), c = I(), l = q(), u = P(), d = ye(), f = Re(), p = j(), m = a(), h = /\${?([\w\d]+)}?/g, g = p.EventEmitter || p.default || p;
|
|
5916
5973
|
String.prototype.regexIndexOf = function(e, t) {
|
|
5917
5974
|
let n = this.substring(t || 0).search(e);
|
|
5918
5975
|
return n >= 0 ? n + (t || 0) : n;
|
|
5919
|
-
},
|
|
5976
|
+
}, er().shim();
|
|
5920
5977
|
var _ = class e extends g {
|
|
5921
5978
|
constructor(t) {
|
|
5922
5979
|
super();
|
|
@@ -5958,18 +6015,18 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
5958
6015
|
this.onCommand(`source ${e}`);
|
|
5959
6016
|
}
|
|
5960
6017
|
onCommand(t, n = !0) {
|
|
5961
|
-
let r = this._splitInput(t), i = !0,
|
|
5962
|
-
if (!
|
|
5963
|
-
n === "&&" ?
|
|
6018
|
+
let r = this._splitInput(t), i = this._groupPipes(r), a = !0, o = i.reduce((e, { commands: t, op: n }) => e.then(() => {
|
|
6019
|
+
if (!a) {
|
|
6020
|
+
n === "&&" ? a = this._lastCode === 0 : n === "||" ? a = this._lastCode !== 0 : n === ";" && (a = !0);
|
|
5964
6021
|
return;
|
|
5965
6022
|
}
|
|
5966
|
-
return this.
|
|
5967
|
-
n === "&&" ?
|
|
6023
|
+
return this._runPipeChain(t).then(() => {
|
|
6024
|
+
n === "&&" ? a = this._lastCode === 0 : n === "||" ? a = this._lastCode !== 0 : n === ";" && (a = !0);
|
|
5968
6025
|
});
|
|
5969
6026
|
}), Promise.resolve());
|
|
5970
|
-
return n ?
|
|
6027
|
+
return n ? o.then(() => {
|
|
5971
6028
|
this.destroyed || this.emit("status", e.STATUS_READY);
|
|
5972
|
-
}).catch(() => this.emit("status", e.STATUS_READY)) :
|
|
6029
|
+
}).catch(() => this.emit("status", e.STATUS_READY)) : o;
|
|
5973
6030
|
}
|
|
5974
6031
|
tabCompletion(e) {
|
|
5975
6032
|
return this.context.fs.autoComplete(e, this.path);
|
|
@@ -6079,6 +6136,13 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
6079
6136
|
}), n = "", r += 2;
|
|
6080
6137
|
continue;
|
|
6081
6138
|
}
|
|
6139
|
+
if (o === "|") {
|
|
6140
|
+
t.push({
|
|
6141
|
+
command: n.trim(),
|
|
6142
|
+
op: "|"
|
|
6143
|
+
}), n = "", r++;
|
|
6144
|
+
continue;
|
|
6145
|
+
}
|
|
6082
6146
|
if (o === ";") {
|
|
6083
6147
|
t.push({
|
|
6084
6148
|
command: n.trim(),
|
|
@@ -6155,7 +6219,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
6155
6219
|
}
|
|
6156
6220
|
_evalArithmetic(e) {
|
|
6157
6221
|
let t = e.replace(/\${?([\w\d]+)}?/g, (e, t) => String(parseInt(this.context.getVar(t)) || 0));
|
|
6158
|
-
if (!/^[\d\s+\-*/%()]+$/.test(t.trim())) return 0;
|
|
6222
|
+
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;
|
|
6159
6223
|
try {
|
|
6160
6224
|
return Function("return (" + t + ")")();
|
|
6161
6225
|
} catch {
|
|
@@ -6172,6 +6236,39 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
6172
6236
|
let n = [];
|
|
6173
6237
|
return t.on("stdOut", (e) => n.push(e)), await t.onCommand(e, !1), n.join("\n").trimEnd();
|
|
6174
6238
|
}
|
|
6239
|
+
_groupPipes(e) {
|
|
6240
|
+
let t = [], n = [];
|
|
6241
|
+
for (let { command: r, op: i } of e) n.push(r), i !== "|" && (t.push({
|
|
6242
|
+
commands: n,
|
|
6243
|
+
op: i
|
|
6244
|
+
}), n = []);
|
|
6245
|
+
return n.length && t.push({
|
|
6246
|
+
commands: n,
|
|
6247
|
+
op: null
|
|
6248
|
+
}), t;
|
|
6249
|
+
}
|
|
6250
|
+
async _runPipeChain(e) {
|
|
6251
|
+
if (e.length === 1) return this._runCommand(e[0]);
|
|
6252
|
+
let t;
|
|
6253
|
+
for (let n = 0; n < e.length; n++) if (n === e.length - 1) {
|
|
6254
|
+
t !== void 0 && (this._stdin = t);
|
|
6255
|
+
try {
|
|
6256
|
+
await this._runCommand(e[n]);
|
|
6257
|
+
} finally {
|
|
6258
|
+
delete this._stdin;
|
|
6259
|
+
}
|
|
6260
|
+
} else t = await this._captureForPipe(e[n], t);
|
|
6261
|
+
}
|
|
6262
|
+
async _captureForPipe(e, t) {
|
|
6263
|
+
let n = new r.shell({
|
|
6264
|
+
cwd: this.context.fs.cwd,
|
|
6265
|
+
filesystem: this.context.fs.getRaw(),
|
|
6266
|
+
permissions: this.context.fs.getRawPermissions()
|
|
6267
|
+
});
|
|
6268
|
+
n.context.source(this.context), t !== void 0 && (n.stdin = t);
|
|
6269
|
+
let i = [];
|
|
6270
|
+
return n.on("stdOut", (e) => i.push(e)), n.on("stdErr", (e) => this.emit("stdErr", e)), await n.onCommand(e, !1), this.lastCode = n.lastCode, i.join("\n");
|
|
6271
|
+
}
|
|
6175
6272
|
static _splitCommand(e) {
|
|
6176
6273
|
let t = /\s/g, n = !1, r = !1, i = 0, a = [], o = !1, s = [];
|
|
6177
6274
|
for (let c = 0; c < e.length; c++) {
|
|
@@ -6217,7 +6314,7 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
6217
6314
|
}
|
|
6218
6315
|
};
|
|
6219
6316
|
_.STATUS_READY = "READY", _.STATUS_WORKING = "WORKING", _.STATUS_DESTROYED = "DESTROYED", _.Command = u, _.FS = m, r.shell = _, t.exports = _;
|
|
6220
|
-
})),
|
|
6317
|
+
})), nr = /* @__PURE__ */ t(((e) => {
|
|
6221
6318
|
(function(t, n) {
|
|
6222
6319
|
if (typeof define == "function" && define.amd) define(["exports"], n);
|
|
6223
6320
|
else if (typeof e == "object" && typeof e.nodeName != "string") n(e);
|
|
@@ -6558,8 +6655,8 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
6558
6655
|
}
|
|
6559
6656
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = r;
|
|
6560
6657
|
});
|
|
6561
|
-
})),
|
|
6562
|
-
var n =
|
|
6658
|
+
})), rr = /* @__PURE__ */ t((() => {})), ir = /* @__PURE__ */ t(((e, t) => {
|
|
6659
|
+
var n = tr(), r = nr(), i = r?.default ?? r, a = "/.brsh_history";
|
|
6563
6660
|
t.exports = class {
|
|
6564
6661
|
constructor(e) {
|
|
6565
6662
|
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;
|
|
@@ -6786,9 +6883,9 @@ var V, re, H, U, W, ie, G, ae, oe, se, K = e((() => {
|
|
|
6786
6883
|
}
|
|
6787
6884
|
}
|
|
6788
6885
|
}
|
|
6789
|
-
},
|
|
6886
|
+
}, rr();
|
|
6790
6887
|
}));
|
|
6791
6888
|
//#endregion
|
|
6792
|
-
export default
|
|
6889
|
+
export default ir();
|
|
6793
6890
|
|
|
6794
6891
|
//# sourceMappingURL=terminal.es.js.map
|