x-runtime-lib 0.6.44 → 0.6.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +454 -453
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -501,14 +501,14 @@ function wt(r, o, c, d, v, b) {
|
|
|
501
501
|
var t = b.get(r);
|
|
502
502
|
if (t)
|
|
503
503
|
return t;
|
|
504
|
-
b.set(r, y), Cl(r) ? r.forEach(function(
|
|
505
|
-
y.add(wt(
|
|
506
|
-
}) : Ol(r) && r.forEach(function(
|
|
507
|
-
y.set(s, wt(
|
|
504
|
+
b.set(r, y), Cl(r) ? r.forEach(function(l) {
|
|
505
|
+
y.add(wt(l, o, c, l, r, b));
|
|
506
|
+
}) : Ol(r) && r.forEach(function(l, s) {
|
|
507
|
+
y.set(s, wt(l, o, c, s, r, b));
|
|
508
508
|
});
|
|
509
509
|
var e = Gu, i = S ? void 0 : e(r);
|
|
510
|
-
return ns(i || r, function(
|
|
511
|
-
i && (s =
|
|
510
|
+
return ns(i || r, function(l, s) {
|
|
511
|
+
i && (s = l, l = r[s]), cs(y, s, wt(l, o, c, s, r, b));
|
|
512
512
|
}), y;
|
|
513
513
|
}
|
|
514
514
|
var ec = 1, tc = 4;
|
|
@@ -798,12 +798,12 @@ function ic(r, o, c, d, v) {
|
|
|
798
798
|
console.error(`spawnNode [ref] element not found in global, ${b}`);
|
|
799
799
|
return;
|
|
800
800
|
}
|
|
801
|
-
const
|
|
802
|
-
if (!
|
|
801
|
+
const l = i.props[y];
|
|
802
|
+
if (!l) {
|
|
803
803
|
console.error(`spawnNode [ref] props not found, ${b}`);
|
|
804
804
|
return;
|
|
805
805
|
}
|
|
806
|
-
oi(R,
|
|
806
|
+
oi(R, l), R.basic.id = n, R.basic.key = t, R.ref = {
|
|
807
807
|
id: e
|
|
808
808
|
};
|
|
809
809
|
} else {
|
|
@@ -822,7 +822,7 @@ function ic(r, o, c, d, v) {
|
|
|
822
822
|
console.error(`spawnNode [key] props not found, ${b}`);
|
|
823
823
|
return;
|
|
824
824
|
}
|
|
825
|
-
oi(R, i), R.basic.id = n, R.basic.key = t, e.slots.some((
|
|
825
|
+
oi(R, i), R.basic.id = n, R.basic.key = t, e.slots.some((l) => l.key === "default") && (R.children = []);
|
|
826
826
|
}
|
|
827
827
|
return R;
|
|
828
828
|
}
|
|
@@ -1036,9 +1036,9 @@ const df = /* @__PURE__ */ q({
|
|
|
1036
1036
|
outer: { type: Boolean }
|
|
1037
1037
|
},
|
|
1038
1038
|
setup(r) {
|
|
1039
|
-
const o = r, c = re(), d = Le(), v = pe(), b = De(), y = Me(), { width: S, minWidth: R, maxWidth: n, height: t, minHeight: e, maxHeight: i, applySize:
|
|
1039
|
+
const o = r, c = re(), d = Le(), v = pe(), b = De(), y = Me(), { width: S, minWidth: R, maxWidth: n, height: t, minHeight: e, maxHeight: i, applySize: l } = Je(c, d, o), { applyTitle: s } = Qi(o), { applyXAxis: u } = eo(o), { applyYAxis: a } = to(o), { applyLegend: p } = qi(o), { applySeries: m } = Zi(o), E = x(() => {
|
|
1040
1040
|
const k = {}, ne = y.value.type;
|
|
1041
|
-
return b === "page" ? ne === "common" ?
|
|
1041
|
+
return b === "page" ? ne === "common" ? l(k) : console.assert(!1) : b === "comp" && ne === "common" ? l(k) : console.assert(!1), k;
|
|
1042
1042
|
}), T = Ri("chart");
|
|
1043
1043
|
let g;
|
|
1044
1044
|
const O = () => {
|
|
@@ -1049,7 +1049,7 @@ const df = /* @__PURE__ */ q({
|
|
|
1049
1049
|
g == null || g.resize();
|
|
1050
1050
|
}, P = () => {
|
|
1051
1051
|
const k = {};
|
|
1052
|
-
s(k),
|
|
1052
|
+
s(k), u(k), a(k), p(k), m(k), g == null || g.setOption(k, !0);
|
|
1053
1053
|
};
|
|
1054
1054
|
return Ti(async () => {
|
|
1055
1055
|
window.addEventListener("resize", N, !1), await Pi(() => !!T.value), O(), P();
|
|
@@ -1089,9 +1089,9 @@ const df = /* @__PURE__ */ q({
|
|
|
1089
1089
|
outer: { type: Boolean }
|
|
1090
1090
|
},
|
|
1091
1091
|
setup(r) {
|
|
1092
|
-
const o = r, c = re(), d = Le(), v = pe(), b = De(), y = Me(), { width: S, minWidth: R, maxWidth: n, height: t, minHeight: e, maxHeight: i, applySize:
|
|
1092
|
+
const o = r, c = re(), d = Le(), v = pe(), b = De(), y = Me(), { width: S, minWidth: R, maxWidth: n, height: t, minHeight: e, maxHeight: i, applySize: l } = Je(c, d, o), { applyTitle: s } = Qi(o), { applyXAxis: u } = eo(o), { applyYAxis: a } = to(o), { applyLegend: p } = qi(o), { applySeries: m } = Zi(o), E = x(() => {
|
|
1093
1093
|
const k = {}, ne = y.value.type;
|
|
1094
|
-
return b === "page" ? ne === "common" ?
|
|
1094
|
+
return b === "page" ? ne === "common" ? l(k) : console.assert(!1) : b === "comp" && ne === "common" ? l(k) : console.assert(!1), k;
|
|
1095
1095
|
}), T = Ri("chart");
|
|
1096
1096
|
let g;
|
|
1097
1097
|
const O = () => {
|
|
@@ -1102,7 +1102,7 @@ const df = /* @__PURE__ */ q({
|
|
|
1102
1102
|
g == null || g.resize();
|
|
1103
1103
|
}, P = () => {
|
|
1104
1104
|
const k = {};
|
|
1105
|
-
s(k),
|
|
1105
|
+
s(k), u(k), a(k), p(k), m(k), g == null || g.setOption(k, !0);
|
|
1106
1106
|
};
|
|
1107
1107
|
return Ti(async () => {
|
|
1108
1108
|
window.addEventListener("resize", N, !1), await Pi(() => !!T.value), O(), P();
|
|
@@ -1190,17 +1190,17 @@ function Ef() {
|
|
|
1190
1190
|
this.newNode = function() {
|
|
1191
1191
|
return new i({ options: {} });
|
|
1192
1192
|
};
|
|
1193
|
-
var
|
|
1193
|
+
var l = this.newNode();
|
|
1194
1194
|
for (var s in t)
|
|
1195
|
-
|
|
1196
|
-
this.ast =
|
|
1197
|
-
var
|
|
1195
|
+
l[s] = s === "body" ? t[s].slice() : t[s];
|
|
1196
|
+
this.ast = l, this.tasks = [], this.initFunc_ = e, this.paused_ = !1, this.polyfills_ = [], this.functionCounter_ = 0, this.stepFunctions_ = /* @__PURE__ */ Object.create(null);
|
|
1197
|
+
var u = /^step([A-Z]\w*)$/, a;
|
|
1198
1198
|
for (var p in this)
|
|
1199
|
-
typeof this[p] == "function" && (a = p.match(
|
|
1199
|
+
typeof this[p] == "function" && (a = p.match(u)) && (this.stepFunctions_[a[1]] = this[p].bind(this));
|
|
1200
1200
|
this.globalScope = this.createScope(this.ast, null), this.globalObject = this.globalScope.object, this.ast = this.parse_(this.polyfills_.join(`
|
|
1201
1201
|
`), "polyfills"), this.polyfills_ = void 0, n.stripLocations_(this.ast, void 0, void 0);
|
|
1202
1202
|
var m = new n.State(this.ast, this.globalScope);
|
|
1203
|
-
m.done = !1, this.stateStack = [m], this.run(), this.value = void 0, this.ast =
|
|
1203
|
+
m.done = !1, this.stateStack = [m], this.run(), this.value = void 0, this.ast = l, m = new n.State(this.ast, this.globalScope), m.done = !1, this.stateStack.length = 0, this.stateStack[0] = m;
|
|
1204
1204
|
};
|
|
1205
1205
|
n.Completion = {
|
|
1206
1206
|
NORMAL: 0,
|
|
@@ -1281,9 +1281,9 @@ function Ef() {
|
|
|
1281
1281
|
return String(e) === String(t) && e !== 4294967295 ? e : NaN;
|
|
1282
1282
|
}, n.stripLocations_ = function(t, e, i) {
|
|
1283
1283
|
e ? t.start = e : delete t.start, i ? t.end = i : delete t.end;
|
|
1284
|
-
for (var
|
|
1285
|
-
if (t[
|
|
1286
|
-
var s = t[
|
|
1284
|
+
for (var l in t)
|
|
1285
|
+
if (t[l] !== t.loc && t.hasOwnProperty(l)) {
|
|
1286
|
+
var s = t[l];
|
|
1287
1287
|
s && typeof s == "object" && n.stripLocations_(
|
|
1288
1288
|
/** @type {!Object} */
|
|
1289
1289
|
s,
|
|
@@ -1293,8 +1293,8 @@ function Ef() {
|
|
|
1293
1293
|
}
|
|
1294
1294
|
}, n.prototype.REGEXP_MODE = 2, n.prototype.REGEXP_THREAD_TIMEOUT = 1e3, n.prototype.POLYFILL_TIMEOUT = 1e3, n.prototype.getterStep_ = !1, n.prototype.setterStep_ = !1, n.prototype.appendCodeNumber_ = 0, n.prototype.taskCodeNumber_ = 0, n.prototype.parse_ = function(t, e) {
|
|
1295
1295
|
var i = {};
|
|
1296
|
-
for (var
|
|
1297
|
-
i[
|
|
1296
|
+
for (var l in n.PARSE_OPTIONS)
|
|
1297
|
+
i[l] = n.PARSE_OPTIONS[l];
|
|
1298
1298
|
return i.sourceFile = e, n.nativeGlobal.acorn.parse(t, i);
|
|
1299
1299
|
}, n.prototype.appendCode = function(t) {
|
|
1300
1300
|
var e = this.stateStack[0];
|
|
@@ -1315,22 +1315,22 @@ function Ef() {
|
|
|
1315
1315
|
if (i = this.nextTask_(), !i)
|
|
1316
1316
|
return !0;
|
|
1317
1317
|
}
|
|
1318
|
-
var
|
|
1318
|
+
var l = i.node, s = n.currentInterpreter_;
|
|
1319
1319
|
n.currentInterpreter_ = this;
|
|
1320
1320
|
try {
|
|
1321
|
-
var
|
|
1321
|
+
var u = this.stepFunctions_[l.type](t, i, l);
|
|
1322
1322
|
} catch (a) {
|
|
1323
1323
|
if (a !== n.STEP_ERROR)
|
|
1324
1324
|
throw this.value !== a && (this.value = void 0), a;
|
|
1325
1325
|
} finally {
|
|
1326
1326
|
n.currentInterpreter_ = s;
|
|
1327
1327
|
}
|
|
1328
|
-
if (
|
|
1328
|
+
if (u && t.push(u), this.getterStep_)
|
|
1329
1329
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
1330
1330
|
if (this.setterStep_)
|
|
1331
1331
|
throw this.value = void 0, Error("Setter not supported in this context");
|
|
1332
|
-
!e && !
|
|
1333
|
-
} while (!
|
|
1332
|
+
!e && !l.end && (e = Date.now() + this.POLYFILL_TIMEOUT);
|
|
1333
|
+
} while (!l.end && e > Date.now());
|
|
1334
1334
|
return !0;
|
|
1335
1335
|
}, n.prototype.run = function() {
|
|
1336
1336
|
for (; !this.paused_ && this.step(); )
|
|
@@ -1376,16 +1376,16 @@ function Ef() {
|
|
|
1376
1376
|
this.OBJECT,
|
|
1377
1377
|
n.NONENUMERABLE_DESCRIPTOR
|
|
1378
1378
|
), this.initArray(t), this.initString(t), this.initBoolean(t), this.initNumber(t), this.initDate(t), this.initRegExp(t), this.initError(t), this.initMath(t), this.initJSON(t);
|
|
1379
|
-
var e = this, i,
|
|
1379
|
+
var e = this, i, l = this.createNativeFunction(
|
|
1380
1380
|
function(a) {
|
|
1381
1381
|
throw EvalError("Can't happen");
|
|
1382
1382
|
},
|
|
1383
1383
|
!1
|
|
1384
1384
|
);
|
|
1385
|
-
|
|
1385
|
+
l.eval = !0, this.setProperty(
|
|
1386
1386
|
t,
|
|
1387
1387
|
"eval",
|
|
1388
|
-
|
|
1388
|
+
l,
|
|
1389
1389
|
n.NONENUMERABLE_DESCRIPTOR
|
|
1390
1390
|
), this.setProperty(
|
|
1391
1391
|
t,
|
|
@@ -1415,7 +1415,7 @@ function Ef() {
|
|
|
1415
1415
|
[decodeURIComponent, "decodeURIComponent"],
|
|
1416
1416
|
[encodeURI, "encodeURI"],
|
|
1417
1417
|
[encodeURIComponent, "encodeURIComponent"]
|
|
1418
|
-
],
|
|
1418
|
+
], u = 0; u < s.length; u++)
|
|
1419
1419
|
i = /* @__PURE__ */ function(a) {
|
|
1420
1420
|
return function(p) {
|
|
1421
1421
|
try {
|
|
@@ -1424,9 +1424,9 @@ function Ef() {
|
|
|
1424
1424
|
e.throwException(e.URI_ERROR, m.message);
|
|
1425
1425
|
}
|
|
1426
1426
|
};
|
|
1427
|
-
}(s[
|
|
1427
|
+
}(s[u][0]), this.setProperty(
|
|
1428
1428
|
t,
|
|
1429
|
-
s[
|
|
1429
|
+
s[u][1],
|
|
1430
1430
|
this.createNativeFunction(i, !1),
|
|
1431
1431
|
n.NONENUMERABLE_DESCRIPTOR
|
|
1432
1432
|
);
|
|
@@ -1460,8 +1460,8 @@ function Ef() {
|
|
|
1460
1460
|
n.NONENUMERABLE_DESCRIPTOR
|
|
1461
1461
|
), this.OBJECT = this.OBJECT, this.OBJECT_PROTO = this.OBJECT_PROTO, this.FUNCTION = this.FUNCTION, this.FUNCTION_PROTO = this.FUNCTION_PROTO, this.ARRAY = this.ARRAY, this.ARRAY_PROTO = this.ARRAY_PROTO, this.REGEXP = this.REGEXP, this.REGEXP_PROTO = this.REGEXP_PROTO, this.DATE = this.DATE, this.DATE_PROTO = this.DATE_PROTO, this.initFunc_ && this.initFunc_(this, t);
|
|
1462
1462
|
}, n.prototype.functionCodeNumber_ = 0, n.prototype.initFunction = function(t) {
|
|
1463
|
-
var e = this, i,
|
|
1464
|
-
i = function(
|
|
1463
|
+
var e = this, i, l = /^[A-Za-z_$][\w$]*$/;
|
|
1464
|
+
i = function(u) {
|
|
1465
1465
|
if (arguments.length)
|
|
1466
1466
|
var a = String(arguments[arguments.length - 1]);
|
|
1467
1467
|
else
|
|
@@ -1470,7 +1470,7 @@ function Ef() {
|
|
|
1470
1470
|
if (p) {
|
|
1471
1471
|
for (var m = p.split(/\s*,\s*/), E = 0; E < m.length; E++) {
|
|
1472
1472
|
var T = m[E];
|
|
1473
|
-
|
|
1473
|
+
l.test(T) || e.throwException(
|
|
1474
1474
|
e.SYNTAX_ERROR,
|
|
1475
1475
|
"Invalid function argument: " + T
|
|
1476
1476
|
);
|
|
@@ -1519,9 +1519,9 @@ function Ef() {
|
|
|
1519
1519
|
"length",
|
|
1520
1520
|
0,
|
|
1521
1521
|
n.READONLY_NONENUMERABLE_DESCRIPTOR
|
|
1522
|
-
), this.FUNCTION_PROTO.class = "Function", i = function(
|
|
1522
|
+
), this.FUNCTION_PROTO.class = "Function", i = function(u, a, p) {
|
|
1523
1523
|
var m = e.stateStack[e.stateStack.length - 1];
|
|
1524
|
-
m.func_ =
|
|
1524
|
+
m.func_ = u, m.funcThis_ = a, m.arguments_ = [], p != null && (p instanceof n.Object ? m.arguments_ = Array.from(p.properties) : e.throwException(
|
|
1525
1525
|
e.TYPE_ERROR,
|
|
1526
1526
|
"CreateListFromArrayLike called on non-object"
|
|
1527
1527
|
)), m.doneExec_ = !1;
|
|
@@ -1540,9 +1540,9 @@ function Ef() {
|
|
|
1540
1540
|
"};",
|
|
1541
1541
|
"})();"
|
|
1542
1542
|
/* POLYFILL END */
|
|
1543
|
-
), i = function(
|
|
1543
|
+
), i = function(u) {
|
|
1544
1544
|
var a = e.stateStack[e.stateStack.length - 1];
|
|
1545
|
-
a.func_ = this, a.funcThis_ =
|
|
1545
|
+
a.func_ = this, a.funcThis_ = u, a.arguments_ = [];
|
|
1546
1546
|
for (var p = 1; p < arguments.length; p++)
|
|
1547
1547
|
a.arguments_.push(arguments[p]);
|
|
1548
1548
|
a.doneExec_ = !1;
|
|
@@ -1591,16 +1591,16 @@ function Ef() {
|
|
|
1591
1591
|
);
|
|
1592
1592
|
}, n.prototype.initObject = function(t) {
|
|
1593
1593
|
var e = this, i;
|
|
1594
|
-
i = function(
|
|
1595
|
-
if (
|
|
1594
|
+
i = function(u) {
|
|
1595
|
+
if (u == null)
|
|
1596
1596
|
return e.calledWithNew() ? this : e.createObjectProto(e.OBJECT_PROTO);
|
|
1597
|
-
if (!(
|
|
1597
|
+
if (!(u instanceof n.Object)) {
|
|
1598
1598
|
var a = e.createObjectProto(
|
|
1599
|
-
e.getPrototype(
|
|
1599
|
+
e.getPrototype(u)
|
|
1600
1600
|
);
|
|
1601
|
-
return a.data =
|
|
1601
|
+
return a.data = u, a;
|
|
1602
1602
|
}
|
|
1603
|
-
return
|
|
1603
|
+
return u;
|
|
1604
1604
|
}, this.OBJECT = this.createNativeFunction(i, !0), this.setProperty(
|
|
1605
1605
|
this.OBJECT,
|
|
1606
1606
|
"prototype",
|
|
@@ -1617,33 +1617,33 @@ function Ef() {
|
|
|
1617
1617
|
this.OBJECT,
|
|
1618
1618
|
n.NONENUMERABLE_DESCRIPTOR
|
|
1619
1619
|
);
|
|
1620
|
-
var
|
|
1620
|
+
var l = function(s) {
|
|
1621
1621
|
s == null && e.throwException(
|
|
1622
1622
|
e.TYPE_ERROR,
|
|
1623
1623
|
"Cannot convert '" + s + "' to object"
|
|
1624
1624
|
);
|
|
1625
1625
|
};
|
|
1626
|
-
i = function(
|
|
1627
|
-
u
|
|
1628
|
-
var a =
|
|
1626
|
+
i = function(u) {
|
|
1627
|
+
l(u);
|
|
1628
|
+
var a = u instanceof n.Object ? u.properties : u;
|
|
1629
1629
|
return e.nativeToPseudo(Object.getOwnPropertyNames(a));
|
|
1630
1630
|
}, this.setProperty(
|
|
1631
1631
|
this.OBJECT,
|
|
1632
1632
|
"getOwnPropertyNames",
|
|
1633
1633
|
this.createNativeFunction(i, !1),
|
|
1634
1634
|
n.NONENUMERABLE_DESCRIPTOR
|
|
1635
|
-
), i = function(
|
|
1636
|
-
return u
|
|
1635
|
+
), i = function(u) {
|
|
1636
|
+
return l(u), u instanceof n.Object && (u = u.properties), e.nativeToPseudo(Object.keys(u));
|
|
1637
1637
|
}, this.setProperty(
|
|
1638
1638
|
this.OBJECT,
|
|
1639
1639
|
"keys",
|
|
1640
1640
|
this.createNativeFunction(i, !1),
|
|
1641
1641
|
n.NONENUMERABLE_DESCRIPTOR
|
|
1642
|
-
), i = function(
|
|
1643
|
-
return
|
|
1642
|
+
), i = function(u) {
|
|
1643
|
+
return u === null ? e.createObjectProto(null) : (u instanceof n.Object || e.throwException(
|
|
1644
1644
|
e.TYPE_ERROR,
|
|
1645
|
-
"Object prototype may only be an Object or null, not " +
|
|
1646
|
-
), e.createObjectProto(
|
|
1645
|
+
"Object prototype may only be an Object or null, not " + u
|
|
1646
|
+
), e.createObjectProto(u));
|
|
1647
1647
|
}, this.setProperty(
|
|
1648
1648
|
this.OBJECT,
|
|
1649
1649
|
"create",
|
|
@@ -1661,22 +1661,22 @@ function Ef() {
|
|
|
1661
1661
|
"})();",
|
|
1662
1662
|
""
|
|
1663
1663
|
/* POLYFILL END */
|
|
1664
|
-
), i = function(
|
|
1665
|
-
return a = String(a),
|
|
1664
|
+
), i = function(u, a, p) {
|
|
1665
|
+
return a = String(a), u instanceof n.Object || e.throwException(
|
|
1666
1666
|
e.TYPE_ERROR,
|
|
1667
|
-
"Object.defineProperty called on non-object: " +
|
|
1667
|
+
"Object.defineProperty called on non-object: " + u
|
|
1668
1668
|
), p instanceof n.Object || e.throwException(
|
|
1669
1669
|
e.TYPE_ERROR,
|
|
1670
1670
|
"Property description must be an object"
|
|
1671
|
-
),
|
|
1671
|
+
), u.preventExtensions && !(a in u.properties) && e.throwException(
|
|
1672
1672
|
e.TYPE_ERROR,
|
|
1673
1673
|
"Can't define property '" + a + "', object is not extensible"
|
|
1674
1674
|
), e.setProperty(
|
|
1675
|
-
|
|
1675
|
+
u,
|
|
1676
1676
|
a,
|
|
1677
1677
|
n.VALUE_IN_DESCRIPTOR,
|
|
1678
1678
|
p.properties
|
|
1679
|
-
),
|
|
1679
|
+
), u;
|
|
1680
1680
|
}, this.setProperty(
|
|
1681
1681
|
this.OBJECT,
|
|
1682
1682
|
"defineProperty",
|
|
@@ -1710,12 +1710,12 @@ function Ef() {
|
|
|
1710
1710
|
"});",
|
|
1711
1711
|
""
|
|
1712
1712
|
/* POLYFILL END */
|
|
1713
|
-
), i = function(
|
|
1714
|
-
if (
|
|
1713
|
+
), i = function(u, a) {
|
|
1714
|
+
if (u instanceof n.Object || e.throwException(
|
|
1715
1715
|
e.TYPE_ERROR,
|
|
1716
|
-
"Object.getOwnPropertyDescriptor called on non-object: " +
|
|
1717
|
-
), a = String(a), a in
|
|
1718
|
-
var p = Object.getOwnPropertyDescriptor(
|
|
1716
|
+
"Object.getOwnPropertyDescriptor called on non-object: " + u
|
|
1717
|
+
), a = String(a), a in u.properties) {
|
|
1718
|
+
var p = Object.getOwnPropertyDescriptor(u.properties, a), m = u.getter[a], E = u.setter[a], T = e.createObjectProto(e.OBJECT_PROTO);
|
|
1719
1719
|
return m || E ? (e.setProperty(T, "get", m), e.setProperty(T, "set", E)) : (e.setProperty(
|
|
1720
1720
|
T,
|
|
1721
1721
|
"value",
|
|
@@ -1740,22 +1740,22 @@ function Ef() {
|
|
|
1740
1740
|
"getOwnPropertyDescriptor",
|
|
1741
1741
|
this.createNativeFunction(i, !1),
|
|
1742
1742
|
n.NONENUMERABLE_DESCRIPTOR
|
|
1743
|
-
), i = function(
|
|
1744
|
-
return u
|
|
1743
|
+
), i = function(u) {
|
|
1744
|
+
return l(u), e.getPrototype(u);
|
|
1745
1745
|
}, this.setProperty(
|
|
1746
1746
|
this.OBJECT,
|
|
1747
1747
|
"getPrototypeOf",
|
|
1748
1748
|
this.createNativeFunction(i, !1),
|
|
1749
1749
|
n.NONENUMERABLE_DESCRIPTOR
|
|
1750
|
-
), i = function(
|
|
1751
|
-
return !!
|
|
1750
|
+
), i = function(u) {
|
|
1751
|
+
return !!u && !u.preventExtensions;
|
|
1752
1752
|
}, this.setProperty(
|
|
1753
1753
|
this.OBJECT,
|
|
1754
1754
|
"isExtensible",
|
|
1755
1755
|
this.createNativeFunction(i, !1),
|
|
1756
1756
|
n.NONENUMERABLE_DESCRIPTOR
|
|
1757
|
-
), i = function(
|
|
1758
|
-
return
|
|
1757
|
+
), i = function(u) {
|
|
1758
|
+
return u instanceof n.Object && (u.preventExtensions = !0), u;
|
|
1759
1759
|
}, this.setProperty(
|
|
1760
1760
|
this.OBJECT,
|
|
1761
1761
|
"preventExtensions",
|
|
@@ -1773,15 +1773,15 @@ function Ef() {
|
|
|
1773
1773
|
this.OBJECT,
|
|
1774
1774
|
"valueOf",
|
|
1775
1775
|
n.Object.prototype.valueOf
|
|
1776
|
-
), i = function(
|
|
1777
|
-
return
|
|
1778
|
-
}, this.setNativeFunctionPrototype(this.OBJECT, "hasOwnProperty", i), i = function(
|
|
1779
|
-
return
|
|
1780
|
-
}, this.setNativeFunctionPrototype(this.OBJECT, "propertyIsEnumerable", i), i = function(
|
|
1776
|
+
), i = function(u) {
|
|
1777
|
+
return l(this), this instanceof n.Object ? String(u) in this.properties : this.hasOwnProperty(u);
|
|
1778
|
+
}, this.setNativeFunctionPrototype(this.OBJECT, "hasOwnProperty", i), i = function(u) {
|
|
1779
|
+
return l(this), this instanceof n.Object ? Object.prototype.propertyIsEnumerable.call(this.properties, u) : this.propertyIsEnumerable(u);
|
|
1780
|
+
}, this.setNativeFunctionPrototype(this.OBJECT, "propertyIsEnumerable", i), i = function(u) {
|
|
1781
1781
|
for (; ; ) {
|
|
1782
|
-
if (
|
|
1782
|
+
if (u = e.getPrototype(u), !u)
|
|
1783
1783
|
return !1;
|
|
1784
|
-
if (
|
|
1784
|
+
if (u === this)
|
|
1785
1785
|
return !0;
|
|
1786
1786
|
}
|
|
1787
1787
|
}, this.setNativeFunctionPrototype(this.OBJECT, "isPrototypeOf", i);
|
|
@@ -1789,21 +1789,21 @@ function Ef() {
|
|
|
1789
1789
|
var e = this, i;
|
|
1790
1790
|
i = function(s) {
|
|
1791
1791
|
if (e.calledWithNew())
|
|
1792
|
-
var
|
|
1792
|
+
var u = this;
|
|
1793
1793
|
else
|
|
1794
|
-
var
|
|
1794
|
+
var u = e.createArray();
|
|
1795
1795
|
var a = arguments[0];
|
|
1796
1796
|
if (arguments.length === 1 && typeof a == "number")
|
|
1797
1797
|
isNaN(n.legalArrayLength(a)) && e.throwException(
|
|
1798
1798
|
e.RANGE_ERROR,
|
|
1799
1799
|
"Invalid array length: " + a
|
|
1800
|
-
),
|
|
1800
|
+
), u.properties.length = a;
|
|
1801
1801
|
else {
|
|
1802
1802
|
for (var p = 0; p < arguments.length; p++)
|
|
1803
|
-
|
|
1804
|
-
|
|
1803
|
+
u.properties[p] = arguments[p];
|
|
1804
|
+
u.properties.length = p;
|
|
1805
1805
|
}
|
|
1806
|
-
return
|
|
1806
|
+
return u;
|
|
1807
1807
|
}, this.ARRAY = this.createNativeFunction(i, !0), this.ARRAY_PROTO = this.ARRAY.properties.prototype, this.setProperty(
|
|
1808
1808
|
t,
|
|
1809
1809
|
"Array",
|
|
@@ -2275,7 +2275,7 @@ function Ef() {
|
|
|
2275
2275
|
this.createNativeFunction(String.fromCharCode, !1),
|
|
2276
2276
|
n.NONENUMERABLE_DESCRIPTOR
|
|
2277
2277
|
);
|
|
2278
|
-
for (var
|
|
2278
|
+
for (var l = [
|
|
2279
2279
|
"charAt",
|
|
2280
2280
|
"charCodeAt",
|
|
2281
2281
|
"concat",
|
|
@@ -2289,11 +2289,11 @@ function Ef() {
|
|
|
2289
2289
|
"toLowerCase",
|
|
2290
2290
|
"toUpperCase",
|
|
2291
2291
|
"trim"
|
|
2292
|
-
], s = 0; s <
|
|
2292
|
+
], s = 0; s < l.length; s++)
|
|
2293
2293
|
this.setNativeFunctionPrototype(
|
|
2294
2294
|
this.STRING,
|
|
2295
|
-
|
|
2296
|
-
String.prototype[
|
|
2295
|
+
l[s],
|
|
2296
|
+
String.prototype[l[s]]
|
|
2297
2297
|
);
|
|
2298
2298
|
i = function(a, p, m) {
|
|
2299
2299
|
p = e.pseudoToNative(p), m = e.pseudoToNative(m);
|
|
@@ -2454,17 +2454,17 @@ function Ef() {
|
|
|
2454
2454
|
this.NUMBER,
|
|
2455
2455
|
n.NONENUMERABLE_DESCRIPTOR
|
|
2456
2456
|
);
|
|
2457
|
-
for (var
|
|
2457
|
+
for (var l = [
|
|
2458
2458
|
"MAX_VALUE",
|
|
2459
2459
|
"MIN_VALUE",
|
|
2460
2460
|
"NaN",
|
|
2461
2461
|
"NEGATIVE_INFINITY",
|
|
2462
2462
|
"POSITIVE_INFINITY"
|
|
2463
|
-
], s = 0; s <
|
|
2463
|
+
], s = 0; s < l.length; s++)
|
|
2464
2464
|
this.setProperty(
|
|
2465
2465
|
this.NUMBER,
|
|
2466
|
-
|
|
2467
|
-
Number[
|
|
2466
|
+
l[s],
|
|
2467
|
+
Number[l[s]],
|
|
2468
2468
|
n.NONCONFIGURABLE_READONLY_NONENUMERABLE_DESCRIPTOR
|
|
2469
2469
|
);
|
|
2470
2470
|
i = function(a) {
|
|
@@ -2538,7 +2538,7 @@ function Ef() {
|
|
|
2538
2538
|
this.createNativeFunction(Date.UTC, !1),
|
|
2539
2539
|
n.NONENUMERABLE_DESCRIPTOR
|
|
2540
2540
|
);
|
|
2541
|
-
for (var
|
|
2541
|
+
for (var l = [
|
|
2542
2542
|
"getDate",
|
|
2543
2543
|
"getDay",
|
|
2544
2544
|
"getFullYear",
|
|
@@ -2582,19 +2582,19 @@ function Ef() {
|
|
|
2582
2582
|
"toLocaleTimeString",
|
|
2583
2583
|
"toTimeString",
|
|
2584
2584
|
"toUTCString"
|
|
2585
|
-
], s = 0; s <
|
|
2586
|
-
i = /* @__PURE__ */ function(
|
|
2585
|
+
], s = 0; s < l.length; s++)
|
|
2586
|
+
i = /* @__PURE__ */ function(u) {
|
|
2587
2587
|
return function(a) {
|
|
2588
2588
|
var p = this.data;
|
|
2589
2589
|
p instanceof Date || e.throwException(
|
|
2590
2590
|
e.TYPE_ERROR,
|
|
2591
|
-
|
|
2591
|
+
u + " not called on a Date"
|
|
2592
2592
|
);
|
|
2593
2593
|
for (var m = [], E = 0; E < arguments.length; E++)
|
|
2594
2594
|
m[E] = e.pseudoToNative(arguments[E]);
|
|
2595
|
-
return p[
|
|
2595
|
+
return p[u].apply(p, m);
|
|
2596
2596
|
};
|
|
2597
|
-
}(
|
|
2597
|
+
}(l[s]), this.setNativeFunctionPrototype(this.DATE, l[s], i);
|
|
2598
2598
|
i = function() {
|
|
2599
2599
|
try {
|
|
2600
2600
|
return this.data.toISOString();
|
|
@@ -2607,20 +2607,20 @@ function Ef() {
|
|
|
2607
2607
|
}, this.setNativeFunctionPrototype(this.DATE, "toISOString", i);
|
|
2608
2608
|
}, n.prototype.initRegExp = function(t) {
|
|
2609
2609
|
var e = this, i;
|
|
2610
|
-
i = function(s,
|
|
2610
|
+
i = function(s, u) {
|
|
2611
2611
|
if (e.calledWithNew())
|
|
2612
2612
|
var a = this;
|
|
2613
2613
|
else {
|
|
2614
|
-
if (
|
|
2614
|
+
if (u === void 0 && e.isa(s, e.REGEXP))
|
|
2615
2615
|
return s;
|
|
2616
2616
|
var a = e.createObjectProto(e.REGEXP_PROTO);
|
|
2617
2617
|
}
|
|
2618
|
-
s = s === void 0 ? "" : String(s),
|
|
2618
|
+
s = s === void 0 ? "" : String(s), u = u ? String(u) : "", /^[gmi]*$/.test(u) || e.throwException(
|
|
2619
2619
|
e.SYNTAX_ERROR,
|
|
2620
|
-
"Invalid regexp flag: " +
|
|
2620
|
+
"Invalid regexp flag: " + u
|
|
2621
2621
|
);
|
|
2622
2622
|
try {
|
|
2623
|
-
var p = new n.nativeGlobal.RegExp(s,
|
|
2623
|
+
var p = new n.nativeGlobal.RegExp(s, u);
|
|
2624
2624
|
} catch (m) {
|
|
2625
2625
|
e.throwException(e.SYNTAX_ERROR, m.message);
|
|
2626
2626
|
}
|
|
@@ -2659,25 +2659,25 @@ function Ef() {
|
|
|
2659
2659
|
"}",
|
|
2660
2660
|
"});"
|
|
2661
2661
|
/* POLYFILL END */
|
|
2662
|
-
), i = function(s,
|
|
2662
|
+
), i = function(s, u) {
|
|
2663
2663
|
var a = this.data;
|
|
2664
|
-
if (s = String(s), a.lastIndex = Number(e.getProperty(this, "lastIndex")), e.maybeThrowRegExp(a,
|
|
2664
|
+
if (s = String(s), a.lastIndex = Number(e.getProperty(this, "lastIndex")), e.maybeThrowRegExp(a, u), e.REGEXP_MODE === 2) {
|
|
2665
2665
|
if (n.vm) {
|
|
2666
2666
|
var p = {
|
|
2667
2667
|
string: s,
|
|
2668
2668
|
regexp: a
|
|
2669
|
-
}, m = "regexp.exec(string)", O = e.vmCall(m, p, a,
|
|
2670
|
-
O !== n.REGEXP_TIMEOUT && (e.setProperty(this, "lastIndex", a.lastIndex),
|
|
2669
|
+
}, m = "regexp.exec(string)", O = e.vmCall(m, p, a, u);
|
|
2670
|
+
O !== n.REGEXP_TIMEOUT && (e.setProperty(this, "lastIndex", a.lastIndex), u(e.matchToPseudo_(O)));
|
|
2671
2671
|
} else {
|
|
2672
|
-
var E = e.createWorker(), T = e.regExpTimeout(a, E,
|
|
2672
|
+
var E = e.createWorker(), T = e.regExpTimeout(a, E, u), g = this;
|
|
2673
2673
|
E.onmessage = function(N) {
|
|
2674
|
-
clearTimeout(T), e.setProperty(g, "lastIndex", N.data[1]),
|
|
2674
|
+
clearTimeout(T), e.setProperty(g, "lastIndex", N.data[1]), u(e.matchToPseudo_(N.data[0]));
|
|
2675
2675
|
}, E.postMessage(["exec", a, a.lastIndex, s]);
|
|
2676
2676
|
}
|
|
2677
2677
|
return;
|
|
2678
2678
|
}
|
|
2679
2679
|
var O = a.exec(s);
|
|
2680
|
-
e.setProperty(this, "lastIndex", a.lastIndex),
|
|
2680
|
+
e.setProperty(this, "lastIndex", a.lastIndex), u(e.matchToPseudo_(O));
|
|
2681
2681
|
}, this.setAsyncFunctionPrototype(this.REGEXP, "exec", i);
|
|
2682
2682
|
}, n.prototype.matchToPseudo_ = function(t) {
|
|
2683
2683
|
if (t) {
|
|
@@ -2685,8 +2685,8 @@ function Ef() {
|
|
|
2685
2685
|
/** @type {!Array<?>} */
|
|
2686
2686
|
Object.getOwnPropertyNames(t)
|
|
2687
2687
|
), i = 0; i < e.length; i++) {
|
|
2688
|
-
var
|
|
2689
|
-
isNaN(Number(
|
|
2688
|
+
var l = e[i];
|
|
2689
|
+
isNaN(Number(l)) && l !== "length" && l !== "input" && l !== "index" && delete t[l];
|
|
2690
2690
|
}
|
|
2691
2691
|
return this.nativeToPseudo(t);
|
|
2692
2692
|
}
|
|
@@ -2695,10 +2695,10 @@ function Ef() {
|
|
|
2695
2695
|
var e = this;
|
|
2696
2696
|
this.ERROR = this.createNativeFunction(function(s) {
|
|
2697
2697
|
if (e.calledWithNew())
|
|
2698
|
-
var
|
|
2698
|
+
var u = this;
|
|
2699
2699
|
else
|
|
2700
|
-
var
|
|
2701
|
-
return e.populateError(
|
|
2700
|
+
var u = e.createObject(e.ERROR);
|
|
2701
|
+
return e.populateError(u, s), u;
|
|
2702
2702
|
}, !0), this.setProperty(
|
|
2703
2703
|
t,
|
|
2704
2704
|
"Error",
|
|
@@ -2715,14 +2715,14 @@ function Ef() {
|
|
|
2715
2715
|
"Error",
|
|
2716
2716
|
n.NONENUMERABLE_DESCRIPTOR
|
|
2717
2717
|
);
|
|
2718
|
-
var i = function(
|
|
2718
|
+
var i = function(l) {
|
|
2719
2719
|
var s = e.createNativeFunction(
|
|
2720
|
-
function(
|
|
2720
|
+
function(u) {
|
|
2721
2721
|
if (e.calledWithNew())
|
|
2722
2722
|
var a = this;
|
|
2723
2723
|
else
|
|
2724
2724
|
var a = e.createObject(s);
|
|
2725
|
-
return e.populateError(a,
|
|
2725
|
+
return e.populateError(a, u), a;
|
|
2726
2726
|
},
|
|
2727
2727
|
!0
|
|
2728
2728
|
);
|
|
@@ -2734,11 +2734,11 @@ function Ef() {
|
|
|
2734
2734
|
), e.setProperty(
|
|
2735
2735
|
s.properties.prototype,
|
|
2736
2736
|
"name",
|
|
2737
|
-
|
|
2737
|
+
l,
|
|
2738
2738
|
n.NONENUMERABLE_DESCRIPTOR
|
|
2739
2739
|
), e.setProperty(
|
|
2740
2740
|
t,
|
|
2741
|
-
|
|
2741
|
+
l,
|
|
2742
2742
|
s,
|
|
2743
2743
|
n.NONENUMERABLE_DESCRIPTOR
|
|
2744
2744
|
), s;
|
|
@@ -2761,11 +2761,11 @@ function Ef() {
|
|
|
2761
2761
|
"PI",
|
|
2762
2762
|
"SQRT1_2",
|
|
2763
2763
|
"SQRT2"
|
|
2764
|
-
],
|
|
2764
|
+
], l = 0; l < i.length; l++)
|
|
2765
2765
|
this.setProperty(
|
|
2766
2766
|
e,
|
|
2767
|
-
i[
|
|
2768
|
-
Math[i[
|
|
2767
|
+
i[l],
|
|
2768
|
+
Math[i[l]],
|
|
2769
2769
|
n.READONLY_NONENUMERABLE_DESCRIPTOR
|
|
2770
2770
|
);
|
|
2771
2771
|
for (var s = [
|
|
@@ -2787,35 +2787,35 @@ function Ef() {
|
|
|
2787
2787
|
"sin",
|
|
2788
2788
|
"sqrt",
|
|
2789
2789
|
"tan"
|
|
2790
|
-
],
|
|
2790
|
+
], l = 0; l < s.length; l++)
|
|
2791
2791
|
this.setProperty(
|
|
2792
2792
|
e,
|
|
2793
|
-
s[
|
|
2794
|
-
this.createNativeFunction(Math[s[
|
|
2793
|
+
s[l],
|
|
2794
|
+
this.createNativeFunction(Math[s[l]], !1),
|
|
2795
2795
|
n.NONENUMERABLE_DESCRIPTOR
|
|
2796
2796
|
);
|
|
2797
2797
|
}, n.prototype.initJSON = function(t) {
|
|
2798
|
-
var e, i = this,
|
|
2798
|
+
var e, i = this, l = i.createObjectProto(this.OBJECT_PROTO);
|
|
2799
2799
|
this.setProperty(
|
|
2800
2800
|
t,
|
|
2801
2801
|
"JSON",
|
|
2802
|
-
|
|
2802
|
+
l,
|
|
2803
2803
|
n.NONENUMERABLE_DESCRIPTOR
|
|
2804
|
-
), e = function(
|
|
2804
|
+
), e = function(u) {
|
|
2805
2805
|
try {
|
|
2806
|
-
var a = JSON.parse(String(
|
|
2806
|
+
var a = JSON.parse(String(u));
|
|
2807
2807
|
} catch (p) {
|
|
2808
2808
|
i.throwException(i.SYNTAX_ERROR, p.message);
|
|
2809
2809
|
}
|
|
2810
2810
|
return i.nativeToPseudo(a);
|
|
2811
|
-
}, this.setProperty(
|
|
2811
|
+
}, this.setProperty(l, "parse", this.createNativeFunction(e, !1)), e = function(u, a, p) {
|
|
2812
2812
|
a && a.class === "Function" ? i.throwException(
|
|
2813
2813
|
i.TYPE_ERROR,
|
|
2814
2814
|
"Function replacer on JSON.stringify not supported"
|
|
2815
2815
|
) : a && a.class === "Array" ? (a = i.pseudoToNative(a), a = a.filter(function(T) {
|
|
2816
2816
|
return typeof T == "string" || typeof T == "number";
|
|
2817
2817
|
})) : a = null, typeof p != "string" && typeof p != "number" && (p = void 0);
|
|
2818
|
-
var m = i.pseudoToNative(
|
|
2818
|
+
var m = i.pseudoToNative(u);
|
|
2819
2819
|
try {
|
|
2820
2820
|
var E = JSON.stringify(m, a, p);
|
|
2821
2821
|
} catch (T) {
|
|
@@ -2823,7 +2823,7 @@ function Ef() {
|
|
|
2823
2823
|
}
|
|
2824
2824
|
return E;
|
|
2825
2825
|
}, this.setProperty(
|
|
2826
|
-
|
|
2826
|
+
l,
|
|
2827
2827
|
"stringify",
|
|
2828
2828
|
this.createNativeFunction(e, !1)
|
|
2829
2829
|
);
|
|
@@ -2873,17 +2873,17 @@ function Ef() {
|
|
|
2873
2873
|
String(e),
|
|
2874
2874
|
n.NONENUMERABLE_DESCRIPTOR
|
|
2875
2875
|
);
|
|
2876
|
-
for (var i = [],
|
|
2877
|
-
var s = this.stateStack[
|
|
2878
|
-
if (
|
|
2876
|
+
for (var i = [], l = this.stateStack.length - 1; l >= 0; l--) {
|
|
2877
|
+
var s = this.stateStack[l], u = s.node;
|
|
2878
|
+
if (u.type === "CallExpression") {
|
|
2879
2879
|
var a = s.func_;
|
|
2880
2880
|
a && i.length && (i[i.length - 1].datumName = this.getProperty(a, "name"));
|
|
2881
2881
|
}
|
|
2882
|
-
|
|
2882
|
+
u.loc && (!i.length || u.type === "CallExpression") && i.push({ datumLoc: u.loc });
|
|
2883
2883
|
}
|
|
2884
2884
|
for (var p = String(this.getProperty(t, "name")), m = String(this.getProperty(t, "message")), E = p + ": " + m + `
|
|
2885
|
-
`,
|
|
2886
|
-
var T = i[
|
|
2885
|
+
`, l = 0; l < i.length; l++) {
|
|
2886
|
+
var T = i[l].datumLoc, g = i[l].datumName, O = T.source + ":" + T.start.line + ":" + T.start.column;
|
|
2887
2887
|
g ? E += " at " + g + " (" + O + `)
|
|
2888
2888
|
` : E += " at " + O + `
|
|
2889
2889
|
`;
|
|
@@ -2901,12 +2901,12 @@ function Ef() {
|
|
|
2901
2901
|
`)],
|
|
2902
2902
|
{ type: "application/javascript" }
|
|
2903
2903
|
), this.createWorker.blob_ = t), new Worker(URL.createObjectURL(t));
|
|
2904
|
-
}, n.prototype.vmCall = function(t, e, i,
|
|
2904
|
+
}, n.prototype.vmCall = function(t, e, i, l) {
|
|
2905
2905
|
var s = { timeout: this.REGEXP_THREAD_TIMEOUT };
|
|
2906
2906
|
try {
|
|
2907
2907
|
return n.vm.runInNewContext(t, e, s);
|
|
2908
2908
|
} catch {
|
|
2909
|
-
|
|
2909
|
+
l(null), this.throwException(this.ERROR, "RegExp Timeout: " + i);
|
|
2910
2910
|
}
|
|
2911
2911
|
return n.REGEXP_TIMEOUT;
|
|
2912
2912
|
}, n.prototype.maybeThrowRegExp = function(t, e) {
|
|
@@ -2931,12 +2931,12 @@ function Ef() {
|
|
|
2931
2931
|
}
|
|
2932
2932
|
i || (e(null), this.throwException(this.ERROR, "Regular expressions not supported: " + t));
|
|
2933
2933
|
}, n.prototype.regExpTimeout = function(t, e, i) {
|
|
2934
|
-
var
|
|
2934
|
+
var l = this;
|
|
2935
2935
|
return setTimeout(function() {
|
|
2936
2936
|
e.terminate(), i(null);
|
|
2937
2937
|
try {
|
|
2938
|
-
|
|
2939
|
-
|
|
2938
|
+
l.throwException(
|
|
2939
|
+
l.ERROR,
|
|
2940
2940
|
"RegExp Timeout: " + t
|
|
2941
2941
|
);
|
|
2942
2942
|
} catch {
|
|
@@ -2960,14 +2960,14 @@ function Ef() {
|
|
|
2960
2960
|
}, n.prototype.createFunctionBase_ = function(t, e) {
|
|
2961
2961
|
var i = this.createObjectProto(this.FUNCTION_PROTO);
|
|
2962
2962
|
if (e) {
|
|
2963
|
-
var
|
|
2963
|
+
var l = this.createObjectProto(this.OBJECT_PROTO);
|
|
2964
2964
|
this.setProperty(
|
|
2965
2965
|
i,
|
|
2966
2966
|
"prototype",
|
|
2967
|
-
|
|
2967
|
+
l,
|
|
2968
2968
|
n.NONENUMERABLE_DESCRIPTOR
|
|
2969
2969
|
), this.setProperty(
|
|
2970
|
-
|
|
2970
|
+
l,
|
|
2971
2971
|
"constructor",
|
|
2972
2972
|
i,
|
|
2973
2973
|
n.NONENUMERABLE_DESCRIPTOR
|
|
@@ -2981,15 +2981,15 @@ function Ef() {
|
|
|
2981
2981
|
n.READONLY_NONENUMERABLE_DESCRIPTOR
|
|
2982
2982
|
), i.class = "Function", i;
|
|
2983
2983
|
}, n.prototype.createFunction = function(t, e, i) {
|
|
2984
|
-
var
|
|
2985
|
-
|
|
2984
|
+
var l = this.createFunctionBase_(t.params.length, !0);
|
|
2985
|
+
l.parentScope = e, l.node = t;
|
|
2986
2986
|
var s = t.id ? String(t.id.name) : i || "";
|
|
2987
2987
|
return this.setProperty(
|
|
2988
|
-
|
|
2988
|
+
l,
|
|
2989
2989
|
"name",
|
|
2990
2990
|
s,
|
|
2991
2991
|
n.READONLY_NONENUMERABLE_DESCRIPTOR
|
|
2992
|
-
),
|
|
2992
|
+
), l;
|
|
2993
2993
|
}, n.prototype.createNativeFunction = function(t, e) {
|
|
2994
2994
|
var i = this.createFunctionBase_(t.length, e);
|
|
2995
2995
|
return i.nativeFunc = t, t.id = this.functionCounter_++, this.setProperty(
|
|
@@ -3014,16 +3014,16 @@ function Ef() {
|
|
|
3014
3014
|
var i = e || {
|
|
3015
3015
|
pseudo: [],
|
|
3016
3016
|
native: []
|
|
3017
|
-
},
|
|
3018
|
-
if (
|
|
3019
|
-
return i.pseudo[
|
|
3017
|
+
}, l = i.native.indexOf(t);
|
|
3018
|
+
if (l !== -1)
|
|
3019
|
+
return i.pseudo[l];
|
|
3020
3020
|
if (i.native.push(t), t instanceof RegExp) {
|
|
3021
3021
|
var s = this.createObjectProto(this.REGEXP_PROTO);
|
|
3022
3022
|
return this.populateRegExp(s, t), i.pseudo.push(s), s;
|
|
3023
3023
|
}
|
|
3024
3024
|
if (t instanceof Date) {
|
|
3025
|
-
var
|
|
3026
|
-
return
|
|
3025
|
+
var u = this.createObjectProto(this.DATE_PROTO);
|
|
3026
|
+
return u.data = new Date(t.valueOf()), i.pseudo.push(u), u;
|
|
3027
3027
|
}
|
|
3028
3028
|
var a;
|
|
3029
3029
|
if (t instanceof Number ? a = this.createObject(this.NUMBER) : t instanceof String ? a = this.createObject(this.STRING) : t instanceof Boolean && (a = this.createObject(this.BOOLEAN)), a)
|
|
@@ -3054,16 +3054,16 @@ function Ef() {
|
|
|
3054
3054
|
var i = e || {
|
|
3055
3055
|
pseudo: [],
|
|
3056
3056
|
native: []
|
|
3057
|
-
},
|
|
3058
|
-
if (
|
|
3059
|
-
return i.native[
|
|
3057
|
+
}, l = i.pseudo.indexOf(t);
|
|
3058
|
+
if (l !== -1)
|
|
3059
|
+
return i.native[l];
|
|
3060
3060
|
if (i.pseudo.push(t), this.isa(t, this.REGEXP)) {
|
|
3061
3061
|
var s = new RegExp(t.data.source, t.data.flags);
|
|
3062
3062
|
return s.lastIndex = t.data.lastIndex, i.native.push(s), s;
|
|
3063
3063
|
}
|
|
3064
3064
|
if (this.isa(t, this.DATE)) {
|
|
3065
|
-
var
|
|
3066
|
-
return i.native.push(
|
|
3065
|
+
var u = new Date(t.data.valueOf());
|
|
3066
|
+
return i.native.push(u), u;
|
|
3067
3067
|
}
|
|
3068
3068
|
if (this.isa(t, this.NUMBER) || this.isa(t, this.STRING) || this.isa(t, this.BOOLEAN)) {
|
|
3069
3069
|
var a = Object(t.data);
|
|
@@ -3112,8 +3112,8 @@ function Ef() {
|
|
|
3112
3112
|
}
|
|
3113
3113
|
do
|
|
3114
3114
|
if (t.properties && e in t.properties) {
|
|
3115
|
-
var
|
|
3116
|
-
return
|
|
3115
|
+
var l = t.getter[e];
|
|
3116
|
+
return l ? (this.getterStep_ = !0, l) : t.properties[e];
|
|
3117
3117
|
}
|
|
3118
3118
|
while (t = this.getPrototype(t));
|
|
3119
3119
|
}, n.prototype.hasProperty = function(t, e) {
|
|
@@ -3131,7 +3131,7 @@ function Ef() {
|
|
|
3131
3131
|
return !0;
|
|
3132
3132
|
while (t = this.getPrototype(t));
|
|
3133
3133
|
return !1;
|
|
3134
|
-
}, n.prototype.setProperty = function(t, e, i,
|
|
3134
|
+
}, n.prototype.setProperty = function(t, e, i, l) {
|
|
3135
3135
|
if (this.setterStep_)
|
|
3136
3136
|
throw Error("Setter not supported in that context");
|
|
3137
3137
|
if (e = String(e), t == null && this.throwException(
|
|
@@ -3139,15 +3139,15 @@ function Ef() {
|
|
|
3139
3139
|
"Cannot set property '" + e + "' of " + t
|
|
3140
3140
|
), typeof t == "object" && !(t instanceof n.Object))
|
|
3141
3141
|
throw TypeError("Expecting native value or pseudo object");
|
|
3142
|
-
|
|
3142
|
+
l && ("get" in l || "set" in l) && ("value" in l || "writable" in l) && this.throwException(this.TYPE_ERROR, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
3143
3143
|
var s = !this.stateStack || this.getScope().strict;
|
|
3144
3144
|
if (!(t instanceof n.Object)) {
|
|
3145
3145
|
s && this.throwException(this.TYPE_ERROR, "Can't create property '" + e + "' on '" + t + "'");
|
|
3146
3146
|
return;
|
|
3147
3147
|
}
|
|
3148
3148
|
if (this.isa(t, this.STRING)) {
|
|
3149
|
-
var
|
|
3150
|
-
if (e === "length" || !isNaN(
|
|
3149
|
+
var u = n.legalArrayIndex(e);
|
|
3150
|
+
if (e === "length" || !isNaN(u) && u < String(t).length) {
|
|
3151
3151
|
s && this.throwException(this.TYPE_ERROR, "Cannot assign to read only property '" + e + "' of String '" + t.data + "'");
|
|
3152
3152
|
return;
|
|
3153
3153
|
}
|
|
@@ -3155,10 +3155,10 @@ function Ef() {
|
|
|
3155
3155
|
if (t.class === "Array") {
|
|
3156
3156
|
var a = t.properties.length, p;
|
|
3157
3157
|
if (e === "length") {
|
|
3158
|
-
if (
|
|
3159
|
-
if (!("value" in
|
|
3158
|
+
if (l) {
|
|
3159
|
+
if (!("value" in l))
|
|
3160
3160
|
return;
|
|
3161
|
-
i =
|
|
3161
|
+
i = l.value;
|
|
3162
3162
|
}
|
|
3163
3163
|
if (i = n.legalArrayLength(i), isNaN(i) && this.throwException(this.RANGE_ERROR, "Invalid array length"), i < a)
|
|
3164
3164
|
for (p in t.properties)
|
|
@@ -3169,15 +3169,15 @@ function Ef() {
|
|
|
3169
3169
|
s && this.throwException(this.TYPE_ERROR, "Can't add property '" + e + "', object is not extensible");
|
|
3170
3170
|
return;
|
|
3171
3171
|
}
|
|
3172
|
-
if (
|
|
3172
|
+
if (l) {
|
|
3173
3173
|
var m = {};
|
|
3174
|
-
"get" in
|
|
3174
|
+
"get" in l && l.get && (t.getter[e] = l.get, m.get = this.setProperty.placeholderGet_), "set" in l && l.set && (t.setter[e] = l.set, m.set = this.setProperty.placeholderSet_), "configurable" in l && (m.configurable = l.configurable), "enumerable" in l && (m.enumerable = l.enumerable), "writable" in l && (m.writable = l.writable, delete t.getter[e], delete t.setter[e]), "value" in l ? (m.value = l.value, delete t.getter[e], delete t.setter[e]) : i !== n.VALUE_IN_DESCRIPTOR && (m.value = i, delete t.getter[e], delete t.setter[e]);
|
|
3175
3175
|
try {
|
|
3176
3176
|
Object.defineProperty(t.properties, e, m);
|
|
3177
3177
|
} catch {
|
|
3178
3178
|
this.throwException(this.TYPE_ERROR, "Cannot redefine property: " + e);
|
|
3179
3179
|
}
|
|
3180
|
-
"get" in
|
|
3180
|
+
"get" in l && !l.get && delete t.getter[e], "set" in l && !l.set && delete t.setter[e];
|
|
3181
3181
|
} else {
|
|
3182
3182
|
if (i === n.VALUE_IN_DESCRIPTOR)
|
|
3183
3183
|
throw ReferenceError("Value not specified");
|
|
@@ -3225,11 +3225,11 @@ function Ef() {
|
|
|
3225
3225
|
if (e && e.strict)
|
|
3226
3226
|
i = !0;
|
|
3227
3227
|
else {
|
|
3228
|
-
var
|
|
3229
|
-
|
|
3228
|
+
var l = t.body && t.body[0];
|
|
3229
|
+
l && l.expression && l.expression.type === "Literal" && l.expression.value === "use strict" && (i = !0);
|
|
3230
3230
|
}
|
|
3231
|
-
var s = this.createObjectProto(null),
|
|
3232
|
-
return e || this.initGlobal(
|
|
3231
|
+
var s = this.createObjectProto(null), u = new n.Scope(e, i, s);
|
|
3232
|
+
return e || this.initGlobal(u.object), this.populateScope_(t, u), u;
|
|
3233
3233
|
}, n.prototype.createSpecialScope = function(t, e) {
|
|
3234
3234
|
if (!t)
|
|
3235
3235
|
throw Error("parentScope required");
|
|
@@ -3246,12 +3246,12 @@ function Ef() {
|
|
|
3246
3246
|
var i = this.stateStack[this.stateStack.length - 1].node;
|
|
3247
3247
|
i.type === "UnaryExpression" && i.operator === "typeof" || this.throwException(this.REFERENCE_ERROR, t + " is not defined");
|
|
3248
3248
|
}, n.prototype.setValueToScope = function(t, e) {
|
|
3249
|
-
for (var i = this.getScope(),
|
|
3249
|
+
for (var i = this.getScope(), l = i.strict; i && i !== this.globalScope; ) {
|
|
3250
3250
|
if (t in i.object.properties) {
|
|
3251
3251
|
try {
|
|
3252
3252
|
i.object.properties[t] = e;
|
|
3253
3253
|
} catch {
|
|
3254
|
-
|
|
3254
|
+
l && this.throwException(
|
|
3255
3255
|
this.TYPE_ERROR,
|
|
3256
3256
|
"Cannot assign to read only variable '" + t + "'"
|
|
3257
3257
|
);
|
|
@@ -3260,7 +3260,7 @@ function Ef() {
|
|
|
3260
3260
|
}
|
|
3261
3261
|
i = i.parentScope;
|
|
3262
3262
|
}
|
|
3263
|
-
if (i === this.globalScope && (!
|
|
3263
|
+
if (i === this.globalScope && (!l || this.hasProperty(i.object, t)))
|
|
3264
3264
|
return this.setProperty(i.object, t, e);
|
|
3265
3265
|
this.throwException(this.REFERENCE_ERROR, t + " is not defined");
|
|
3266
3266
|
}, n.prototype.populateScope_ = function(t, e) {
|
|
@@ -3270,8 +3270,8 @@ function Ef() {
|
|
|
3270
3270
|
else {
|
|
3271
3271
|
switch (i = /* @__PURE__ */ Object.create(null), t.type) {
|
|
3272
3272
|
case "VariableDeclaration":
|
|
3273
|
-
for (var
|
|
3274
|
-
i[t.declarations[
|
|
3273
|
+
for (var l = 0; l < t.declarations.length; l++)
|
|
3274
|
+
i[t.declarations[l].id.name] = !0;
|
|
3275
3275
|
break;
|
|
3276
3276
|
case "FunctionDeclaration":
|
|
3277
3277
|
i[t.id.name] = t;
|
|
@@ -3290,38 +3290,38 @@ function Ef() {
|
|
|
3290
3290
|
case "WithStatement":
|
|
3291
3291
|
case "WhileStatement":
|
|
3292
3292
|
var s = t.constructor;
|
|
3293
|
-
for (var
|
|
3294
|
-
if (t[
|
|
3295
|
-
var a = t[
|
|
3293
|
+
for (var u in t)
|
|
3294
|
+
if (t[u] !== t.loc) {
|
|
3295
|
+
var a = t[u];
|
|
3296
3296
|
if (a && typeof a == "object") {
|
|
3297
3297
|
var p;
|
|
3298
3298
|
if (Array.isArray(a)) {
|
|
3299
|
-
for (var
|
|
3300
|
-
if (a[
|
|
3301
|
-
p = this.populateScope_(a[
|
|
3302
|
-
for (var
|
|
3303
|
-
i[
|
|
3299
|
+
for (var l = 0; l < a.length; l++)
|
|
3300
|
+
if (a[l] && a[l].constructor === s) {
|
|
3301
|
+
p = this.populateScope_(a[l], e);
|
|
3302
|
+
for (var u in p)
|
|
3303
|
+
i[u] = p[u];
|
|
3304
3304
|
}
|
|
3305
3305
|
} else if (a.constructor === s) {
|
|
3306
3306
|
p = this.populateScope_(a, e);
|
|
3307
|
-
for (var
|
|
3308
|
-
i[
|
|
3307
|
+
for (var u in p)
|
|
3308
|
+
i[u] = p[u];
|
|
3309
3309
|
}
|
|
3310
3310
|
}
|
|
3311
3311
|
}
|
|
3312
3312
|
}
|
|
3313
3313
|
t.variableCache_ = i;
|
|
3314
3314
|
}
|
|
3315
|
-
for (var
|
|
3316
|
-
i[
|
|
3315
|
+
for (var u in i)
|
|
3316
|
+
i[u] === !0 ? this.setProperty(
|
|
3317
3317
|
e.object,
|
|
3318
|
-
|
|
3318
|
+
u,
|
|
3319
3319
|
void 0,
|
|
3320
3320
|
n.VARIABLE_DESCRIPTOR
|
|
3321
3321
|
) : this.setProperty(
|
|
3322
3322
|
e.object,
|
|
3323
|
-
|
|
3324
|
-
this.createFunction(i[
|
|
3323
|
+
u,
|
|
3324
|
+
this.createFunction(i[u], e),
|
|
3325
3325
|
n.VARIABLE_DESCRIPTOR
|
|
3326
3326
|
);
|
|
3327
3327
|
return i;
|
|
@@ -3344,8 +3344,8 @@ function Ef() {
|
|
|
3344
3344
|
}, n.prototype.unwind = function(t, e, i) {
|
|
3345
3345
|
if (t === n.Completion.NORMAL)
|
|
3346
3346
|
throw TypeError("Should not unwind for NORMAL completions");
|
|
3347
|
-
e: for (var
|
|
3348
|
-
var s =
|
|
3347
|
+
e: for (var l = this.stateStack; l.length > 0; l.pop()) {
|
|
3348
|
+
var s = l[l.length - 1];
|
|
3349
3349
|
switch (s.node.type) {
|
|
3350
3350
|
case "TryStatement":
|
|
3351
3351
|
s.cv = { type: t, value: e, label: i };
|
|
@@ -3366,13 +3366,13 @@ function Ef() {
|
|
|
3366
3366
|
}
|
|
3367
3367
|
if (t === n.Completion.BREAK) {
|
|
3368
3368
|
if (i ? s.labels && s.labels.indexOf(i) !== -1 : s.isLoop || s.isSwitch) {
|
|
3369
|
-
|
|
3369
|
+
l.pop();
|
|
3370
3370
|
return;
|
|
3371
3371
|
}
|
|
3372
3372
|
} else if (t === n.Completion.CONTINUE && (i ? s.labels && s.labels.indexOf(i) !== -1 : s.isLoop))
|
|
3373
3373
|
return;
|
|
3374
3374
|
}
|
|
3375
|
-
var
|
|
3375
|
+
var u;
|
|
3376
3376
|
if (this.isa(e, this.ERROR)) {
|
|
3377
3377
|
var a = {
|
|
3378
3378
|
EvalError,
|
|
@@ -3382,10 +3382,10 @@ function Ef() {
|
|
|
3382
3382
|
TypeError,
|
|
3383
3383
|
URIError
|
|
3384
3384
|
}, p = String(this.getProperty(e, "name")), m = this.getProperty(e, "message").valueOf(), E = a[p] || Error;
|
|
3385
|
-
|
|
3385
|
+
u = E(m), u.stack = String(this.getProperty(e, "stack"));
|
|
3386
3386
|
} else
|
|
3387
|
-
|
|
3388
|
-
throw this.value =
|
|
3387
|
+
u = String(e);
|
|
3388
|
+
throw this.value = u, u;
|
|
3389
3389
|
}, n.prototype.nodeSummary = function(t) {
|
|
3390
3390
|
switch (t.type) {
|
|
3391
3391
|
case "ArrayExpression":
|
|
@@ -3413,12 +3413,12 @@ function Ef() {
|
|
|
3413
3413
|
case "UnaryExpression":
|
|
3414
3414
|
return t.operator + " " + this.nodeSummary(t.argument);
|
|
3415
3415
|
case "UpdateExpression":
|
|
3416
|
-
var
|
|
3417
|
-
return t.prefix ? t.operator +
|
|
3416
|
+
var l = this.nodeSummary(t.argument);
|
|
3417
|
+
return t.prefix ? t.operator + l : l + t.operator;
|
|
3418
3418
|
}
|
|
3419
3419
|
return "???";
|
|
3420
3420
|
}, n.prototype.createTask_ = function(t, e) {
|
|
3421
|
-
var i = this.stateStack[this.stateStack.length - 1],
|
|
3421
|
+
var i = this.stateStack[this.stateStack.length - 1], l = Array.from(e), s = l.shift(), u = Math.max(Number(l.shift() || 0), 0), a = this.newNode(), p, m, E;
|
|
3422
3422
|
if (s instanceof n.Object && s.class === "Function")
|
|
3423
3423
|
m = s, a.type = "CallExpression", p = i.scope;
|
|
3424
3424
|
else {
|
|
@@ -3429,19 +3429,19 @@ function Ef() {
|
|
|
3429
3429
|
}
|
|
3430
3430
|
a.type = "EvalProgram_", a.body = E.body;
|
|
3431
3431
|
var T = i.node.arguments[0], g = T ? T.start : void 0, O = T ? T.end : void 0;
|
|
3432
|
-
n.stripLocations_(a, g, O), p = this.globalScope,
|
|
3432
|
+
n.stripLocations_(a, g, O), p = this.globalScope, l.length = 0;
|
|
3433
3433
|
}
|
|
3434
3434
|
var N = new n.Task(
|
|
3435
3435
|
m,
|
|
3436
|
-
|
|
3436
|
+
l,
|
|
3437
3437
|
p,
|
|
3438
3438
|
a,
|
|
3439
|
-
t ?
|
|
3439
|
+
t ? u : -1
|
|
3440
3440
|
);
|
|
3441
|
-
return this.scheduleTask_(N,
|
|
3441
|
+
return this.scheduleTask_(N, u), N.pid;
|
|
3442
3442
|
}, n.prototype.scheduleTask_ = function(t, e) {
|
|
3443
|
-
t.time = Date.now() + e, this.tasks.push(t), this.tasks.sort(function(i,
|
|
3444
|
-
return i.time -
|
|
3443
|
+
t.time = Date.now() + e, this.tasks.push(t), this.tasks.sort(function(i, l) {
|
|
3444
|
+
return i.time - l.time;
|
|
3445
3445
|
});
|
|
3446
3446
|
}, n.prototype.deleteTask_ = function(t) {
|
|
3447
3447
|
for (var e = 0; e < this.tasks.length; e++)
|
|
@@ -3460,10 +3460,10 @@ function Ef() {
|
|
|
3460
3460
|
if (!this.getterStep_)
|
|
3461
3461
|
throw Error("Unexpected call to createGetter");
|
|
3462
3462
|
this.getterStep_ = !1;
|
|
3463
|
-
var i = Array.isArray(e) ? e[0] : e,
|
|
3464
|
-
|
|
3463
|
+
var i = Array.isArray(e) ? e[0] : e, l = this.newNode();
|
|
3464
|
+
l.type = "CallExpression";
|
|
3465
3465
|
var s = new n.State(
|
|
3466
|
-
|
|
3466
|
+
l,
|
|
3467
3467
|
this.stateStack[this.stateStack.length - 1].scope
|
|
3468
3468
|
);
|
|
3469
3469
|
return s.doneCallee_ = 2, s.funcThis_ = i, s.func_ = t, s.doneArgs_ = !0, s.arguments_ = [], s;
|
|
@@ -3471,13 +3471,13 @@ function Ef() {
|
|
|
3471
3471
|
if (!this.setterStep_)
|
|
3472
3472
|
throw Error("Unexpected call to createSetter");
|
|
3473
3473
|
this.setterStep_ = !1;
|
|
3474
|
-
var
|
|
3474
|
+
var l = Array.isArray(e) ? e[0] : this.globalObject, s = this.newNode();
|
|
3475
3475
|
s.type = "CallExpression";
|
|
3476
|
-
var
|
|
3476
|
+
var u = new n.State(
|
|
3477
3477
|
s,
|
|
3478
3478
|
this.stateStack[this.stateStack.length - 1].scope
|
|
3479
3479
|
);
|
|
3480
|
-
return
|
|
3480
|
+
return u.doneCallee_ = 2, u.funcThis_ = l, u.func_ = t, u.doneArgs_ = !0, u.arguments_ = [i], u;
|
|
3481
3481
|
}, n.prototype.boxThis_ = function(t) {
|
|
3482
3482
|
if (t == null)
|
|
3483
3483
|
return this.globalObject;
|
|
@@ -3509,13 +3509,13 @@ function Ef() {
|
|
|
3509
3509
|
var t = n.toStringCycles_;
|
|
3510
3510
|
t.push(this);
|
|
3511
3511
|
try {
|
|
3512
|
-
var e = [], i = this.properties.length,
|
|
3513
|
-
i > 1024 && (i = 1e3,
|
|
3512
|
+
var e = [], i = this.properties.length, l = !1;
|
|
3513
|
+
i > 1024 && (i = 1e3, l = !0);
|
|
3514
3514
|
for (var s = 0; s < i; s++) {
|
|
3515
|
-
var
|
|
3516
|
-
e[s] =
|
|
3515
|
+
var u = this.properties[s];
|
|
3516
|
+
e[s] = u instanceof n.Object && t.indexOf(u) !== -1 ? "..." : u;
|
|
3517
3517
|
}
|
|
3518
|
-
|
|
3518
|
+
l && e.push("...");
|
|
3519
3519
|
} finally {
|
|
3520
3520
|
t.pop();
|
|
3521
3521
|
}
|
|
@@ -3553,32 +3553,32 @@ function Ef() {
|
|
|
3553
3553
|
/** @type {(boolean|number|string)} */
|
|
3554
3554
|
this.data
|
|
3555
3555
|
) : this;
|
|
3556
|
-
}, n.Task = function(t, e, i,
|
|
3557
|
-
this.functionRef = t, this.argsArray = e, this.scope = i, this.node =
|
|
3556
|
+
}, n.Task = function(t, e, i, l, s) {
|
|
3557
|
+
this.functionRef = t, this.argsArray = e, this.scope = i, this.node = l, this.interval = s, this.pid = ++n.Task.pid, this.time = 0;
|
|
3558
3558
|
}, n.Task.pid = 0, n.prototype.stepArrayExpression = function(t, e, i) {
|
|
3559
|
-
var
|
|
3560
|
-
for (e.array_ ? (this.setProperty(e.array_, s, e.value), s++) : (e.array_ = this.createArray(), e.array_.properties.length =
|
|
3561
|
-
if (
|
|
3562
|
-
return e.n_ = s, new n.State(
|
|
3559
|
+
var l = i.elements, s = e.n_ || 0;
|
|
3560
|
+
for (e.array_ ? (this.setProperty(e.array_, s, e.value), s++) : (e.array_ = this.createArray(), e.array_.properties.length = l.length); s < l.length; ) {
|
|
3561
|
+
if (l[s])
|
|
3562
|
+
return e.n_ = s, new n.State(l[s], e.scope);
|
|
3563
3563
|
s++;
|
|
3564
3564
|
}
|
|
3565
3565
|
t.pop(), t[t.length - 1].value = e.array_;
|
|
3566
3566
|
}, n.prototype.stepAssignmentExpression = function(t, e, i) {
|
|
3567
3567
|
if (!e.doneLeft_) {
|
|
3568
3568
|
e.doneLeft_ = !0;
|
|
3569
|
-
var
|
|
3570
|
-
return
|
|
3569
|
+
var l = new n.State(i.left, e.scope);
|
|
3570
|
+
return l.components = !0, l;
|
|
3571
3571
|
}
|
|
3572
3572
|
if (!e.doneRight_) {
|
|
3573
3573
|
if (e.leftReference_ || (e.leftReference_ = e.value), e.doneGetter_ && (e.leftValue_ = e.value), !e.doneGetter_ && i.operator !== "=") {
|
|
3574
3574
|
var s = this.getValue(e.leftReference_);
|
|
3575
3575
|
if (e.leftValue_ = s, this.getterStep_) {
|
|
3576
3576
|
e.doneGetter_ = !0;
|
|
3577
|
-
var
|
|
3577
|
+
var u = (
|
|
3578
3578
|
/** @type {!Interpreter.Object} */
|
|
3579
3579
|
s
|
|
3580
3580
|
);
|
|
3581
|
-
return this.createGetter_(
|
|
3581
|
+
return this.createGetter_(u, e.leftReference_);
|
|
3582
3582
|
}
|
|
3583
3583
|
}
|
|
3584
3584
|
return e.doneRight_ = !0, i.operator === "=" && i.left.type === "Identifier" && (e.destinationName = i.left.name), new n.State(i.right, e.scope);
|
|
@@ -3638,94 +3638,94 @@ function Ef() {
|
|
|
3638
3638
|
if (!e.doneRight_)
|
|
3639
3639
|
return e.doneRight_ = !0, e.leftValue_ = e.value, new n.State(i.right, e.scope);
|
|
3640
3640
|
t.pop();
|
|
3641
|
-
var
|
|
3641
|
+
var l = e.leftValue_, s = e.value, u;
|
|
3642
3642
|
switch (i.operator) {
|
|
3643
3643
|
case "==":
|
|
3644
|
-
|
|
3644
|
+
u = l == s;
|
|
3645
3645
|
break;
|
|
3646
3646
|
case "!=":
|
|
3647
|
-
|
|
3647
|
+
u = l != s;
|
|
3648
3648
|
break;
|
|
3649
3649
|
case "===":
|
|
3650
|
-
|
|
3650
|
+
u = l === s;
|
|
3651
3651
|
break;
|
|
3652
3652
|
case "!==":
|
|
3653
|
-
|
|
3653
|
+
u = l !== s;
|
|
3654
3654
|
break;
|
|
3655
3655
|
case ">":
|
|
3656
|
-
|
|
3656
|
+
u = l > s;
|
|
3657
3657
|
break;
|
|
3658
3658
|
case ">=":
|
|
3659
|
-
|
|
3659
|
+
u = l >= s;
|
|
3660
3660
|
break;
|
|
3661
3661
|
case "<":
|
|
3662
|
-
|
|
3662
|
+
u = l < s;
|
|
3663
3663
|
break;
|
|
3664
3664
|
case "<=":
|
|
3665
|
-
|
|
3665
|
+
u = l <= s;
|
|
3666
3666
|
break;
|
|
3667
3667
|
case "+":
|
|
3668
|
-
|
|
3668
|
+
u = l + s;
|
|
3669
3669
|
break;
|
|
3670
3670
|
case "-":
|
|
3671
|
-
|
|
3671
|
+
u = l - s;
|
|
3672
3672
|
break;
|
|
3673
3673
|
case "*":
|
|
3674
|
-
|
|
3674
|
+
u = l * s;
|
|
3675
3675
|
break;
|
|
3676
3676
|
case "/":
|
|
3677
|
-
|
|
3677
|
+
u = l / s;
|
|
3678
3678
|
break;
|
|
3679
3679
|
case "%":
|
|
3680
|
-
|
|
3680
|
+
u = l % s;
|
|
3681
3681
|
break;
|
|
3682
3682
|
case "&":
|
|
3683
|
-
|
|
3683
|
+
u = l & s;
|
|
3684
3684
|
break;
|
|
3685
3685
|
case "|":
|
|
3686
|
-
|
|
3686
|
+
u = l | s;
|
|
3687
3687
|
break;
|
|
3688
3688
|
case "^":
|
|
3689
|
-
|
|
3689
|
+
u = l ^ s;
|
|
3690
3690
|
break;
|
|
3691
3691
|
case "<<":
|
|
3692
|
-
|
|
3692
|
+
u = l << s;
|
|
3693
3693
|
break;
|
|
3694
3694
|
case ">>":
|
|
3695
|
-
|
|
3695
|
+
u = l >> s;
|
|
3696
3696
|
break;
|
|
3697
3697
|
case ">>>":
|
|
3698
|
-
|
|
3698
|
+
u = l >>> s;
|
|
3699
3699
|
break;
|
|
3700
3700
|
case "in":
|
|
3701
3701
|
s instanceof n.Object || this.throwException(
|
|
3702
3702
|
this.TYPE_ERROR,
|
|
3703
3703
|
"'in' expects an object, not '" + s + "'"
|
|
3704
|
-
),
|
|
3704
|
+
), u = this.hasProperty(s, l);
|
|
3705
3705
|
break;
|
|
3706
3706
|
case "instanceof":
|
|
3707
3707
|
this.isa(s, this.FUNCTION) || this.throwException(
|
|
3708
3708
|
this.TYPE_ERROR,
|
|
3709
3709
|
"'instanceof' expects an object, not '" + s + "'"
|
|
3710
|
-
),
|
|
3710
|
+
), u = l instanceof n.Object ? this.isa(l, s) : !1;
|
|
3711
3711
|
break;
|
|
3712
3712
|
default:
|
|
3713
3713
|
throw SyntaxError("Unknown binary operator: " + i.operator);
|
|
3714
3714
|
}
|
|
3715
|
-
t[t.length - 1].value =
|
|
3715
|
+
t[t.length - 1].value = u;
|
|
3716
3716
|
}, n.prototype.stepBlockStatement = function(t, e, i) {
|
|
3717
|
-
var
|
|
3717
|
+
var l = e.n_ || 0, s = i.body[l];
|
|
3718
3718
|
if (s)
|
|
3719
|
-
return e.n_ =
|
|
3719
|
+
return e.n_ = l + 1, new n.State(s, e.scope);
|
|
3720
3720
|
t.pop();
|
|
3721
3721
|
}, n.prototype.stepBreakStatement = function(t, e, i) {
|
|
3722
|
-
var
|
|
3723
|
-
this.unwind(n.Completion.BREAK, void 0,
|
|
3722
|
+
var l = i.label && i.label.name;
|
|
3723
|
+
this.unwind(n.Completion.BREAK, void 0, l);
|
|
3724
3724
|
}, n.prototype.evalCodeNumber_ = 0, n.prototype.stepCallExpression = function(t, e, i) {
|
|
3725
3725
|
if (!e.doneCallee_) {
|
|
3726
3726
|
e.doneCallee_ = 1;
|
|
3727
|
-
var
|
|
3728
|
-
return
|
|
3727
|
+
var l = new n.State(i.callee, e.scope);
|
|
3728
|
+
return l.components = !0, l;
|
|
3729
3729
|
}
|
|
3730
3730
|
if (e.doneCallee_ === 1) {
|
|
3731
3731
|
e.doneCallee_ = 2;
|
|
@@ -3752,8 +3752,8 @@ function Ef() {
|
|
|
3752
3752
|
), s === this.ARRAY)
|
|
3753
3753
|
e.funcThis_ = this.createArray();
|
|
3754
3754
|
else {
|
|
3755
|
-
var
|
|
3756
|
-
(typeof
|
|
3755
|
+
var u = s.properties.prototype;
|
|
3756
|
+
(typeof u != "object" || u === null) && (u = this.OBJECT_PROTO), e.funcThis_ = this.createObjectProto(u);
|
|
3757
3757
|
}
|
|
3758
3758
|
e.isConstructor = !0;
|
|
3759
3759
|
}
|
|
@@ -3816,10 +3816,10 @@ function Ef() {
|
|
|
3816
3816
|
);
|
|
3817
3817
|
}
|
|
3818
3818
|
}, n.prototype.stepConditionalExpression = function(t, e, i) {
|
|
3819
|
-
var
|
|
3820
|
-
if (
|
|
3819
|
+
var l = e.mode_ || 0;
|
|
3820
|
+
if (l === 0)
|
|
3821
3821
|
return e.mode_ = 1, new n.State(i.test, e.scope);
|
|
3822
|
-
if (
|
|
3822
|
+
if (l === 1) {
|
|
3823
3823
|
e.mode_ = 2;
|
|
3824
3824
|
var s = !!e.value;
|
|
3825
3825
|
if (s && i.consequent)
|
|
@@ -3830,8 +3830,8 @@ function Ef() {
|
|
|
3830
3830
|
}
|
|
3831
3831
|
t.pop(), i.type === "ConditionalExpression" && (t[t.length - 1].value = e.value);
|
|
3832
3832
|
}, n.prototype.stepContinueStatement = function(t, e, i) {
|
|
3833
|
-
var
|
|
3834
|
-
this.unwind(n.Completion.CONTINUE, void 0,
|
|
3833
|
+
var l = i.label && i.label.name;
|
|
3834
|
+
this.unwind(n.Completion.CONTINUE, void 0, l);
|
|
3835
3835
|
}, n.prototype.stepDebuggerStatement = function(t, e, i) {
|
|
3836
3836
|
t.pop();
|
|
3837
3837
|
}, n.prototype.stepDoWhileStatement = function(t, e, i) {
|
|
@@ -3844,9 +3844,9 @@ function Ef() {
|
|
|
3844
3844
|
}, n.prototype.stepEmptyStatement = function(t, e, i) {
|
|
3845
3845
|
t.pop();
|
|
3846
3846
|
}, n.prototype.stepEvalProgram_ = function(t, e, i) {
|
|
3847
|
-
var
|
|
3847
|
+
var l = e.n_ || 0, s = i.body[l];
|
|
3848
3848
|
if (s)
|
|
3849
|
-
return e.n_ =
|
|
3849
|
+
return e.n_ = l + 1, new n.State(s, e.scope);
|
|
3850
3850
|
t.pop(), t[t.length - 1].value = this.value;
|
|
3851
3851
|
}, n.prototype.stepExpressionStatement = function(t, e, i) {
|
|
3852
3852
|
if (!e.done_)
|
|
@@ -3864,30 +3864,30 @@ function Ef() {
|
|
|
3864
3864
|
e: for (; ; ) {
|
|
3865
3865
|
if (e.object_ instanceof n.Object)
|
|
3866
3866
|
for (e.props_ || (e.props_ = Object.getOwnPropertyNames(e.object_.properties)); ; ) {
|
|
3867
|
-
var
|
|
3868
|
-
if (
|
|
3867
|
+
var l = e.props_.shift();
|
|
3868
|
+
if (l === void 0)
|
|
3869
3869
|
break;
|
|
3870
3870
|
if (Object.prototype.hasOwnProperty.call(
|
|
3871
3871
|
e.object_.properties,
|
|
3872
|
-
|
|
3873
|
-
) && !e.visited_[
|
|
3872
|
+
l
|
|
3873
|
+
) && !e.visited_[l] && (e.visited_[l] = !0, !!Object.prototype.propertyIsEnumerable.call(
|
|
3874
3874
|
e.object_.properties,
|
|
3875
|
-
|
|
3875
|
+
l
|
|
3876
3876
|
))) {
|
|
3877
|
-
e.name_ =
|
|
3877
|
+
e.name_ = l;
|
|
3878
3878
|
break e;
|
|
3879
3879
|
}
|
|
3880
3880
|
}
|
|
3881
3881
|
else if (e.object_ !== null && e.object_ !== void 0)
|
|
3882
3882
|
for (e.props_ || (e.props_ = Object.getOwnPropertyNames(e.object_)); ; ) {
|
|
3883
|
-
var
|
|
3884
|
-
if (
|
|
3883
|
+
var l = e.props_.shift();
|
|
3884
|
+
if (l === void 0)
|
|
3885
3885
|
break;
|
|
3886
|
-
if (e.visited_[
|
|
3886
|
+
if (e.visited_[l] = !0, !!Object.prototype.propertyIsEnumerable.call(
|
|
3887
3887
|
e.object_,
|
|
3888
|
-
|
|
3888
|
+
l
|
|
3889
3889
|
)) {
|
|
3890
|
-
e.name_ =
|
|
3890
|
+
e.name_ = l;
|
|
3891
3891
|
break e;
|
|
3892
3892
|
}
|
|
3893
3893
|
}
|
|
@@ -3903,8 +3903,8 @@ function Ef() {
|
|
|
3903
3903
|
e.variable_ = [n.SCOPE_REFERENCE, s.declarations[0].id.name];
|
|
3904
3904
|
else {
|
|
3905
3905
|
e.variable_ = null;
|
|
3906
|
-
var
|
|
3907
|
-
return
|
|
3906
|
+
var u = new n.State(s, e.scope);
|
|
3907
|
+
return u.components = !0, u;
|
|
3908
3908
|
}
|
|
3909
3909
|
}
|
|
3910
3910
|
if (e.variable_ || (e.variable_ = e.value), !e.doneSetter_) {
|
|
@@ -3940,9 +3940,9 @@ function Ef() {
|
|
|
3940
3940
|
t.pop();
|
|
3941
3941
|
}, n.prototype.stepFunctionExpression = function(t, e, i) {
|
|
3942
3942
|
t.pop(), e = t[t.length - 1];
|
|
3943
|
-
var
|
|
3944
|
-
i.id && (
|
|
3945
|
-
|
|
3943
|
+
var l = e.scope;
|
|
3944
|
+
i.id && (l = this.createSpecialScope(l)), e.value = this.createFunction(i, l, e.destinationName), i.id && this.setProperty(
|
|
3945
|
+
l.object,
|
|
3946
3946
|
i.id.name,
|
|
3947
3947
|
e.value,
|
|
3948
3948
|
n.READONLY_DESCRIPTOR
|
|
@@ -3952,29 +3952,29 @@ function Ef() {
|
|
|
3952
3952
|
t[t.length - 1].value = [n.SCOPE_REFERENCE, i.name];
|
|
3953
3953
|
return;
|
|
3954
3954
|
}
|
|
3955
|
-
var
|
|
3955
|
+
var l = this.getValueFromScope(i.name);
|
|
3956
3956
|
if (this.getterStep_) {
|
|
3957
3957
|
var s = (
|
|
3958
3958
|
/** @type {!Interpreter.Object} */
|
|
3959
|
-
|
|
3959
|
+
l
|
|
3960
3960
|
);
|
|
3961
3961
|
return this.createGetter_(s, this.globalObject);
|
|
3962
3962
|
}
|
|
3963
|
-
t[t.length - 1].value =
|
|
3963
|
+
t[t.length - 1].value = l;
|
|
3964
3964
|
}, n.prototype.stepIfStatement = n.prototype.stepConditionalExpression, n.prototype.stepLabeledStatement = function(t, e, i) {
|
|
3965
3965
|
t.pop();
|
|
3966
|
-
var
|
|
3967
|
-
|
|
3966
|
+
var l = e.labels || [];
|
|
3967
|
+
l.push(i.label.name);
|
|
3968
3968
|
var s = new n.State(i.body, e.scope);
|
|
3969
|
-
return s.labels =
|
|
3969
|
+
return s.labels = l, s;
|
|
3970
3970
|
}, n.prototype.stepLiteral = function(t, e, i) {
|
|
3971
3971
|
t.pop();
|
|
3972
|
-
var
|
|
3973
|
-
if (
|
|
3972
|
+
var l = i.value;
|
|
3973
|
+
if (l instanceof RegExp) {
|
|
3974
3974
|
var s = this.createObjectProto(this.REGEXP_PROTO);
|
|
3975
|
-
this.populateRegExp(s,
|
|
3975
|
+
this.populateRegExp(s, l), l = s;
|
|
3976
3976
|
}
|
|
3977
|
-
t[t.length - 1].value =
|
|
3977
|
+
t[t.length - 1].value = l;
|
|
3978
3978
|
}, n.prototype.stepLogicalExpression = function(t, e, i) {
|
|
3979
3979
|
if (i.operator !== "&&" && i.operator !== "||")
|
|
3980
3980
|
throw SyntaxError("Unknown logical operator: " + i.operator);
|
|
@@ -3989,43 +3989,43 @@ function Ef() {
|
|
|
3989
3989
|
}, n.prototype.stepMemberExpression = function(t, e, i) {
|
|
3990
3990
|
if (!e.doneObject_)
|
|
3991
3991
|
return e.doneObject_ = !0, new n.State(i.object, e.scope);
|
|
3992
|
-
var
|
|
3992
|
+
var l;
|
|
3993
3993
|
if (!i.computed)
|
|
3994
|
-
e.object_ = e.value,
|
|
3994
|
+
e.object_ = e.value, l = i.property.name;
|
|
3995
3995
|
else if (e.doneProperty_)
|
|
3996
|
-
|
|
3996
|
+
l = e.value;
|
|
3997
3997
|
else
|
|
3998
3998
|
return e.object_ = e.value, e.doneProperty_ = !0, new n.State(i.property, e.scope);
|
|
3999
3999
|
if (t.pop(), e.components)
|
|
4000
|
-
t[t.length - 1].value = [e.object_,
|
|
4000
|
+
t[t.length - 1].value = [e.object_, l];
|
|
4001
4001
|
else {
|
|
4002
|
-
var s = this.getProperty(e.object_,
|
|
4002
|
+
var s = this.getProperty(e.object_, l);
|
|
4003
4003
|
if (this.getterStep_) {
|
|
4004
|
-
var
|
|
4004
|
+
var u = (
|
|
4005
4005
|
/** @type {!Interpreter.Object} */
|
|
4006
4006
|
s
|
|
4007
4007
|
);
|
|
4008
|
-
return this.createGetter_(
|
|
4008
|
+
return this.createGetter_(u, e.object_);
|
|
4009
4009
|
}
|
|
4010
4010
|
t[t.length - 1].value = s;
|
|
4011
4011
|
}
|
|
4012
4012
|
}, n.prototype.stepNewExpression = n.prototype.stepCallExpression, n.prototype.stepObjectExpression = function(t, e, i) {
|
|
4013
|
-
var
|
|
4013
|
+
var l = e.n_ || 0, s = i.properties[l];
|
|
4014
4014
|
if (!e.object_)
|
|
4015
4015
|
e.object_ = this.createObjectProto(this.OBJECT_PROTO), e.properties_ = /* @__PURE__ */ Object.create(null);
|
|
4016
4016
|
else {
|
|
4017
|
-
var
|
|
4018
|
-
e.properties_[
|
|
4017
|
+
var u = e.destinationName;
|
|
4018
|
+
e.properties_[u] || (e.properties_[u] = {}), e.properties_[u][s.kind] = e.value, e.n_ = ++l, s = i.properties[l];
|
|
4019
4019
|
}
|
|
4020
4020
|
if (s) {
|
|
4021
4021
|
var a = s.key;
|
|
4022
4022
|
if (a.type === "Identifier")
|
|
4023
|
-
var
|
|
4023
|
+
var u = a.name;
|
|
4024
4024
|
else if (a.type === "Literal")
|
|
4025
|
-
var
|
|
4025
|
+
var u = a.value;
|
|
4026
4026
|
else
|
|
4027
4027
|
throw SyntaxError("Unknown object structure: " + a.type);
|
|
4028
|
-
return e.destinationName =
|
|
4028
|
+
return e.destinationName = u, new n.State(s.value, e.scope);
|
|
4029
4029
|
}
|
|
4030
4030
|
for (var a in e.properties_) {
|
|
4031
4031
|
var p = e.properties_[a];
|
|
@@ -4047,26 +4047,26 @@ function Ef() {
|
|
|
4047
4047
|
}
|
|
4048
4048
|
t.pop(), t[t.length - 1].value = e.object_;
|
|
4049
4049
|
}, n.prototype.stepProgram = function(t, e, i) {
|
|
4050
|
-
var
|
|
4051
|
-
if (
|
|
4052
|
-
return e.done = !1, new n.State(
|
|
4050
|
+
var l = i.body.shift();
|
|
4051
|
+
if (l)
|
|
4052
|
+
return e.done = !1, new n.State(l, e.scope);
|
|
4053
4053
|
e.done = !0;
|
|
4054
4054
|
}, n.prototype.stepReturnStatement = function(t, e, i) {
|
|
4055
4055
|
if (i.argument && !e.done_)
|
|
4056
4056
|
return e.done_ = !0, new n.State(i.argument, e.scope);
|
|
4057
4057
|
this.unwind(n.Completion.RETURN, e.value, void 0);
|
|
4058
4058
|
}, n.prototype.stepSequenceExpression = function(t, e, i) {
|
|
4059
|
-
var
|
|
4059
|
+
var l = e.n_ || 0, s = i.expressions[l];
|
|
4060
4060
|
if (s)
|
|
4061
|
-
return e.n_ =
|
|
4061
|
+
return e.n_ = l + 1, new n.State(s, e.scope);
|
|
4062
4062
|
t.pop(), t[t.length - 1].value = e.value;
|
|
4063
4063
|
}, n.prototype.stepSwitchStatement = function(t, e, i) {
|
|
4064
4064
|
if (!e.test_)
|
|
4065
4065
|
return e.test_ = 1, new n.State(i.discriminant, e.scope);
|
|
4066
4066
|
for (e.test_ === 1 && (e.test_ = 2, e.switchValue_ = e.value, e.defaultCase_ = -1); ; ) {
|
|
4067
|
-
var
|
|
4067
|
+
var l = e.index_ || 0, s = i.cases[l];
|
|
4068
4068
|
if (!e.matched_ && s && !s.test) {
|
|
4069
|
-
e.defaultCase_ =
|
|
4069
|
+
e.defaultCase_ = l, e.index_ = l + 1;
|
|
4070
4070
|
continue;
|
|
4071
4071
|
}
|
|
4072
4072
|
if (!s && !e.matched_ && e.defaultCase_ !== -1) {
|
|
@@ -4078,11 +4078,11 @@ function Ef() {
|
|
|
4078
4078
|
return e.tested_ = !0, new n.State(s.test, e.scope);
|
|
4079
4079
|
if (e.matched_ || e.value === e.switchValue_) {
|
|
4080
4080
|
e.matched_ = !0;
|
|
4081
|
-
var
|
|
4082
|
-
if (s.consequent[
|
|
4083
|
-
return e.isSwitch = !0, e.n_ =
|
|
4081
|
+
var u = e.n_ || 0;
|
|
4082
|
+
if (s.consequent[u])
|
|
4083
|
+
return e.isSwitch = !0, e.n_ = u + 1, new n.State(s.consequent[u], e.scope);
|
|
4084
4084
|
}
|
|
4085
|
-
e.tested_ = !1, e.n_ = 0, e.index_ =
|
|
4085
|
+
e.tested_ = !1, e.n_ = 0, e.index_ = l + 1;
|
|
4086
4086
|
} else {
|
|
4087
4087
|
t.pop();
|
|
4088
4088
|
return;
|
|
@@ -4100,8 +4100,8 @@ function Ef() {
|
|
|
4100
4100
|
return e.doneBlock_ = !0, new n.State(i.block, e.scope);
|
|
4101
4101
|
if (e.cv && e.cv.type === n.Completion.THROW && !e.doneHandler_ && i.handler) {
|
|
4102
4102
|
e.doneHandler_ = !0;
|
|
4103
|
-
var
|
|
4104
|
-
return this.setProperty(
|
|
4103
|
+
var l = this.createSpecialScope(e.scope);
|
|
4104
|
+
return this.setProperty(l.object, i.handler.param.name, e.cv.value), e.cv = void 0, new n.State(i.handler.body, l);
|
|
4105
4105
|
}
|
|
4106
4106
|
if (!e.doneFinalizer_ && i.finalizer)
|
|
4107
4107
|
return e.doneFinalizer_ = !0, new n.State(i.finalizer, e.scope);
|
|
@@ -4109,8 +4109,8 @@ function Ef() {
|
|
|
4109
4109
|
}, n.prototype.stepUnaryExpression = function(t, e, i) {
|
|
4110
4110
|
if (!e.done_) {
|
|
4111
4111
|
e.done_ = !0;
|
|
4112
|
-
var
|
|
4113
|
-
return
|
|
4112
|
+
var l = new n.State(i.argument, e.scope);
|
|
4113
|
+
return l.components = i.operator === "delete", l;
|
|
4114
4114
|
}
|
|
4115
4115
|
t.pop();
|
|
4116
4116
|
var s = e.value;
|
|
@@ -4128,7 +4128,7 @@ function Ef() {
|
|
|
4128
4128
|
s = ~s;
|
|
4129
4129
|
break;
|
|
4130
4130
|
case "delete":
|
|
4131
|
-
var
|
|
4131
|
+
var u = !0;
|
|
4132
4132
|
if (Array.isArray(s)) {
|
|
4133
4133
|
var a = s[0];
|
|
4134
4134
|
a === n.SCOPE_REFERENCE && (a = e.scope);
|
|
@@ -4136,10 +4136,10 @@ function Ef() {
|
|
|
4136
4136
|
try {
|
|
4137
4137
|
delete a.properties[p];
|
|
4138
4138
|
} catch {
|
|
4139
|
-
e.scope.strict ? this.throwException(this.TYPE_ERROR, "Cannot delete property '" + p + "' of '" + a + "'") :
|
|
4139
|
+
e.scope.strict ? this.throwException(this.TYPE_ERROR, "Cannot delete property '" + p + "' of '" + a + "'") : u = !1;
|
|
4140
4140
|
}
|
|
4141
4141
|
}
|
|
4142
|
-
s =
|
|
4142
|
+
s = u;
|
|
4143
4143
|
break;
|
|
4144
4144
|
case "typeof":
|
|
4145
4145
|
s = s && s.class === "Function" ? "function" : typeof s;
|
|
@@ -4154,16 +4154,16 @@ function Ef() {
|
|
|
4154
4154
|
}, n.prototype.stepUpdateExpression = function(t, e, i) {
|
|
4155
4155
|
if (!e.doneLeft_) {
|
|
4156
4156
|
e.doneLeft_ = !0;
|
|
4157
|
-
var
|
|
4158
|
-
return
|
|
4157
|
+
var l = new n.State(i.argument, e.scope);
|
|
4158
|
+
return l.components = !0, l;
|
|
4159
4159
|
}
|
|
4160
4160
|
if (e.leftSide_ || (e.leftSide_ = e.value), e.doneGetter_ && (e.leftValue_ = e.value), !e.doneGetter_) {
|
|
4161
|
-
var
|
|
4162
|
-
if (e.leftValue_ =
|
|
4161
|
+
var u = this.getValue(e.leftSide_);
|
|
4162
|
+
if (e.leftValue_ = u, this.getterStep_) {
|
|
4163
4163
|
e.doneGetter_ = !0;
|
|
4164
4164
|
var s = (
|
|
4165
4165
|
/** @type {!Interpreter.Object} */
|
|
4166
|
-
|
|
4166
|
+
u
|
|
4167
4167
|
);
|
|
4168
4168
|
return this.createGetter_(s, e.leftSide_);
|
|
4169
4169
|
}
|
|
@@ -4172,31 +4172,31 @@ function Ef() {
|
|
|
4172
4172
|
t.pop(), t[t.length - 1].value = e.setterValue_;
|
|
4173
4173
|
return;
|
|
4174
4174
|
}
|
|
4175
|
-
var
|
|
4175
|
+
var u = Number(e.leftValue_), a;
|
|
4176
4176
|
if (i.operator === "++")
|
|
4177
|
-
a =
|
|
4177
|
+
a = u + 1;
|
|
4178
4178
|
else if (i.operator === "--")
|
|
4179
|
-
a =
|
|
4179
|
+
a = u - 1;
|
|
4180
4180
|
else
|
|
4181
4181
|
throw SyntaxError("Unknown update expression: " + i.operator);
|
|
4182
|
-
var p = i.prefix ? a :
|
|
4182
|
+
var p = i.prefix ? a : u, m = this.setValue(e.leftSide_, a);
|
|
4183
4183
|
if (m)
|
|
4184
4184
|
return e.doneSetter_ = !0, e.setterValue_ = p, this.createSetter_(m, e.leftSide_, a);
|
|
4185
4185
|
t.pop(), t[t.length - 1].value = p;
|
|
4186
4186
|
}, n.prototype.stepVariableDeclaration = function(t, e, i) {
|
|
4187
|
-
var
|
|
4188
|
-
for (e.init_ &&
|
|
4189
|
-
if (
|
|
4190
|
-
return e.n_ = s, e.init_ = !0, e.destinationName =
|
|
4191
|
-
|
|
4187
|
+
var l = i.declarations, s = e.n_ || 0, u = l[s];
|
|
4188
|
+
for (e.init_ && u && (this.setValueToScope(u.id.name, e.value), e.init_ = !1, u = l[++s]); u; ) {
|
|
4189
|
+
if (u.init)
|
|
4190
|
+
return e.n_ = s, e.init_ = !0, e.destinationName = u.id.name, new n.State(u.init, e.scope);
|
|
4191
|
+
u = l[++s];
|
|
4192
4192
|
}
|
|
4193
4193
|
t.pop();
|
|
4194
4194
|
}, n.prototype.stepWithStatement = function(t, e, i) {
|
|
4195
4195
|
if (!e.doneObject_)
|
|
4196
4196
|
return e.doneObject_ = !0, new n.State(i.object, e.scope);
|
|
4197
4197
|
t.pop();
|
|
4198
|
-
var
|
|
4199
|
-
return new n.State(i.body,
|
|
4198
|
+
var l = this.createSpecialScope(e.scope, e.value);
|
|
4199
|
+
return new n.State(i.body, l);
|
|
4200
4200
|
}, n.prototype.stepWhileStatement = n.prototype.stepDoWhileStatement, n.nativeGlobal.Interpreter = n, n.prototype.step = n.prototype.step, n.prototype.run = n.prototype.run, n.prototype.getStatus = n.prototype.getStatus, n.prototype.appendCode = n.prototype.appendCode, n.prototype.createObject = n.prototype.createObject, n.prototype.createObjectProto = n.prototype.createObjectProto, n.prototype.createNativeFunction = n.prototype.createNativeFunction, n.prototype.createAsyncFunction = n.prototype.createAsyncFunction, n.prototype.getProperty = n.prototype.getProperty, n.prototype.setProperty = n.prototype.setProperty, n.prototype.nativeToPseudo = n.prototype.nativeToPseudo, n.prototype.pseudoToNative = n.prototype.pseudoToNative, n.prototype.getGlobalScope = n.prototype.getGlobalScope, n.prototype.setGlobalScope = n.prototype.setGlobalScope, n.prototype.getStateStack = n.prototype.getStateStack, n.prototype.setStateStack = n.prototype.setStateStack, n.Status = n.Status, n.VALUE_IN_DESCRIPTOR = n.VALUE_IN_DESCRIPTOR, y.exports = {
|
|
4201
4201
|
Interpreter: n
|
|
4202
4202
|
};
|
|
@@ -4217,7 +4217,7 @@ function Ef() {
|
|
|
4217
4217
|
R.parse = function(f, h) {
|
|
4218
4218
|
return t = String(f), e = t.length, s(h), Uo(), ta(n.program);
|
|
4219
4219
|
};
|
|
4220
|
-
var
|
|
4220
|
+
var l = {
|
|
4221
4221
|
// JS-Interpreter change:
|
|
4222
4222
|
// `ecmaVersion` option has been removed along with all cases where
|
|
4223
4223
|
// it is checked. In this version of Acorn it was limited to 3 or 5,
|
|
@@ -4277,11 +4277,11 @@ function Ef() {
|
|
|
4277
4277
|
};
|
|
4278
4278
|
function s(f) {
|
|
4279
4279
|
n = f || {};
|
|
4280
|
-
for (var h in
|
|
4281
|
-
Object.prototype.hasOwnProperty.call(n, h) || (n[h] =
|
|
4280
|
+
for (var h in l)
|
|
4281
|
+
Object.prototype.hasOwnProperty.call(n, h) || (n[h] = l[h]);
|
|
4282
4282
|
i = n.sourceFile;
|
|
4283
4283
|
}
|
|
4284
|
-
var
|
|
4284
|
+
var u = function(f, h) {
|
|
4285
4285
|
for (var _ = 1, w = 0; ; ) {
|
|
4286
4286
|
_t.lastIndex = w;
|
|
4287
4287
|
var L = _t.exec(f);
|
|
@@ -4293,7 +4293,7 @@ function Ef() {
|
|
|
4293
4293
|
return { line: _, column: h - w };
|
|
4294
4294
|
}, a = 0, p = 0, m = 0, E, T, g, O, N, P, k, ne = 0, ue = 0, $e, Te, G, ie;
|
|
4295
4295
|
function M(f, h) {
|
|
4296
|
-
var _ =
|
|
4296
|
+
var _ = u(t, f);
|
|
4297
4297
|
h += " (" + _.line + ":" + _.column + ")";
|
|
4298
4298
|
var w = new SyntaxError(h);
|
|
4299
4299
|
throw w.pos = f, w.loc = _, w.raisedAt = a, w;
|
|
@@ -5156,8 +5156,8 @@ class Tf {
|
|
|
5156
5156
|
}
|
|
5157
5157
|
function wf(r, o, c) {
|
|
5158
5158
|
const d = new Tf(r);
|
|
5159
|
-
function v(e, i,
|
|
5160
|
-
const s = o.pseudoToNative(e),
|
|
5159
|
+
function v(e, i, l) {
|
|
5160
|
+
const s = o.pseudoToNative(e), u = o.pseudoToNative(i), a = o.pseudoToNative(l), p = d.addNode(s, u, a);
|
|
5161
5161
|
return o.nativeToPseudo(p);
|
|
5162
5162
|
}
|
|
5163
5163
|
function b(e) {
|
|
@@ -5165,10 +5165,10 @@ function wf(r, o, c) {
|
|
|
5165
5165
|
d.deleteNode(i);
|
|
5166
5166
|
}
|
|
5167
5167
|
function y(e, i) {
|
|
5168
|
-
const
|
|
5168
|
+
const l = o.pseudoToNative(e), s = o.pseudoToNative(i), u = `id=${l} keys=${s}`;
|
|
5169
5169
|
let a;
|
|
5170
|
-
if (
|
|
5171
|
-
console.error(`getNodePropV1 node not found, ${
|
|
5170
|
+
if (l === "globality" ? a = r.data.view : a = d.getNode(l), !a) {
|
|
5171
|
+
console.error(`getNodePropV1 node not found, ${u}`);
|
|
5172
5172
|
return;
|
|
5173
5173
|
}
|
|
5174
5174
|
const p = s.split("."), m = p.length;
|
|
@@ -5177,20 +5177,20 @@ function wf(r, o, c) {
|
|
|
5177
5177
|
if (E === m - 1)
|
|
5178
5178
|
return o.nativeToPseudo(a[T]);
|
|
5179
5179
|
if (!a) {
|
|
5180
|
-
console.error(`getNodePropV1 unpkg failed, ${
|
|
5180
|
+
console.error(`getNodePropV1 unpkg failed, ${u}`);
|
|
5181
5181
|
return;
|
|
5182
5182
|
}
|
|
5183
5183
|
a = a[T];
|
|
5184
5184
|
}
|
|
5185
5185
|
}
|
|
5186
|
-
function S(e, i,
|
|
5187
|
-
const s = o.pseudoToNative(e),
|
|
5186
|
+
function S(e, i, l) {
|
|
5187
|
+
const s = o.pseudoToNative(e), u = o.pseudoToNative(i), a = o.pseudoToNative(l), p = `id=${s} keys=${u} value=${a}`;
|
|
5188
5188
|
let m;
|
|
5189
5189
|
if (s === "globality" ? m = r.data.view : m = d.getNode(s), !m) {
|
|
5190
5190
|
console.error(`setNodePropV1 node not found, ${p}`);
|
|
5191
5191
|
return;
|
|
5192
5192
|
}
|
|
5193
|
-
const E =
|
|
5193
|
+
const E = u.split("."), T = E.length;
|
|
5194
5194
|
for (let g = 0; g < T; g++) {
|
|
5195
5195
|
const O = E[g];
|
|
5196
5196
|
if (g === T - 1)
|
|
@@ -5204,20 +5204,20 @@ function wf(r, o, c) {
|
|
|
5204
5204
|
}
|
|
5205
5205
|
}
|
|
5206
5206
|
}
|
|
5207
|
-
function R(e, i,
|
|
5207
|
+
function R(e, i, l, s) {
|
|
5208
5208
|
var E;
|
|
5209
|
-
const
|
|
5210
|
-
(E = r.eventBus) == null || E.emit(`callMethod@${
|
|
5209
|
+
const u = o.pseudoToNative(e), a = o.pseudoToNative(i), p = o.pseudoToNative(l), m = { outputs: [] };
|
|
5210
|
+
(E = r.eventBus) == null || E.emit(`callMethod@${u}`, { name: a, inputs: p, result: m }), s(o.nativeToPseudo(m.outputs)), o.run();
|
|
5211
5211
|
}
|
|
5212
|
-
function n(e, i,
|
|
5213
|
-
const s = o.pseudoToNative(e),
|
|
5214
|
-
ga({ title: s, text:
|
|
5215
|
-
|
|
5212
|
+
function n(e, i, l) {
|
|
5213
|
+
const s = o.pseudoToNative(e), u = o.pseudoToNative(i);
|
|
5214
|
+
ga({ title: s, text: u }).then((a) => {
|
|
5215
|
+
l(o.nativeToPseudo(a)), o.run();
|
|
5216
5216
|
});
|
|
5217
5217
|
}
|
|
5218
|
-
function t(e, i,
|
|
5219
|
-
const
|
|
5220
|
-
_a({ title:
|
|
5218
|
+
function t(e, i, l, s) {
|
|
5219
|
+
const u = o.pseudoToNative(e), a = o.pseudoToNative(i), p = o.pseudoToNative(l);
|
|
5220
|
+
_a({ title: u, label: a, value: p }).then((m) => {
|
|
5221
5221
|
s(o.nativeToPseudo(m)), o.run();
|
|
5222
5222
|
});
|
|
5223
5223
|
}
|
|
@@ -5477,11 +5477,11 @@ const Lf = /* @__PURE__ */ q({
|
|
|
5477
5477
|
}), ct(() => {
|
|
5478
5478
|
i();
|
|
5479
5479
|
});
|
|
5480
|
-
const { applySize:
|
|
5480
|
+
const { applySize: l } = Je(v, b, c), s = x(() => {
|
|
5481
5481
|
const T = {}, g = S.value.type;
|
|
5482
|
-
return y === "page" ? g === "common" ?
|
|
5482
|
+
return y === "page" ? g === "common" ? l(T) : console.assert(!1) : y === "comp" && g === "common" ? l(T) : console.assert(!1), T;
|
|
5483
5483
|
});
|
|
5484
|
-
function
|
|
5484
|
+
function u(T) {
|
|
5485
5485
|
const g = Hr[S.value.version].refKey, O = Pe[g];
|
|
5486
5486
|
return O ? J(O.comp, {
|
|
5487
5487
|
refContext: {
|
|
@@ -5503,7 +5503,7 @@ const Lf = /* @__PURE__ */ q({
|
|
|
5503
5503
|
})), J(g.comp, { node: T }, { default: () => O });
|
|
5504
5504
|
}
|
|
5505
5505
|
function p(T) {
|
|
5506
|
-
return T.ref ?
|
|
5506
|
+
return T.ref ? u(T) : a(T);
|
|
5507
5507
|
}
|
|
5508
5508
|
function m() {
|
|
5509
5509
|
let T = c.refContext.parent;
|
|
@@ -5576,7 +5576,7 @@ const Lf = /* @__PURE__ */ q({
|
|
|
5576
5576
|
},
|
|
5577
5577
|
{ deep: !0, immediate: !0 }
|
|
5578
5578
|
);
|
|
5579
|
-
function
|
|
5579
|
+
function l(m) {
|
|
5580
5580
|
const E = Hr[y.value.version].refKey, T = Pe[E];
|
|
5581
5581
|
return T ? J(T.comp, {
|
|
5582
5582
|
refContext: {
|
|
@@ -5593,11 +5593,11 @@ const Lf = /* @__PURE__ */ q({
|
|
|
5593
5593
|
return console.assert(!1, `element not found key=${m.basic.key}`), J("div", `element not found key=${m.basic.key}`);
|
|
5594
5594
|
const T = [];
|
|
5595
5595
|
return E.slots.some((O) => O.key === "default") && ((g = m.children) == null || g.forEach((O) => {
|
|
5596
|
-
T.push(
|
|
5596
|
+
T.push(u(O));
|
|
5597
5597
|
})), J(E.comp, { node: m }, { default: () => T });
|
|
5598
5598
|
}
|
|
5599
|
-
function
|
|
5600
|
-
return m.ref ?
|
|
5599
|
+
function u(m) {
|
|
5600
|
+
return m.ref ? l(m) : s(m);
|
|
5601
5601
|
}
|
|
5602
5602
|
function a() {
|
|
5603
5603
|
let m = c.refContext.parent;
|
|
@@ -5617,7 +5617,7 @@ const Lf = /* @__PURE__ */ q({
|
|
|
5617
5617
|
if (m === "common") {
|
|
5618
5618
|
const E = [];
|
|
5619
5619
|
return n.value.view.nodes.forEach((T) => {
|
|
5620
|
-
E.push(
|
|
5620
|
+
E.push(u(T));
|
|
5621
5621
|
}), E;
|
|
5622
5622
|
} else
|
|
5623
5623
|
return console.assert(!1, `invalid subtype=${m}`), J("div", `invalid subtype=${m}`);
|
|
@@ -5649,16 +5649,16 @@ const Lf = /* @__PURE__ */ q({
|
|
|
5649
5649
|
}), t = x(() => d.value ? "dark" : "light"), e = x(() => {
|
|
5650
5650
|
var s;
|
|
5651
5651
|
return (s = o.node.settings) == null ? void 0 : s.color;
|
|
5652
|
-
}), { color: i } = jt(d, e),
|
|
5652
|
+
}), { color: i } = jt(d, e), l = (s) => {
|
|
5653
5653
|
if (c !== "runtime")
|
|
5654
5654
|
return;
|
|
5655
|
-
const
|
|
5656
|
-
if (!
|
|
5655
|
+
const u = v.interpreter;
|
|
5656
|
+
if (!u)
|
|
5657
5657
|
return;
|
|
5658
|
-
const a =
|
|
5659
|
-
|
|
5658
|
+
const a = u.nativeToPseudo(s.clientX), p = u.nativeToPseudo(s.clientY), m = u.nativeToPseudo(o.node.basic.id);
|
|
5659
|
+
u.appendCode(`__pointerPosX__ = ${a};`), u.appendCode(`__pointerPosY__ = ${p};`), u.appendCode(`__triggerEvent__('${m}', 'click');`), u.run();
|
|
5660
5660
|
};
|
|
5661
|
-
return (s,
|
|
5661
|
+
return (s, u) => {
|
|
5662
5662
|
const a = te("v-btn");
|
|
5663
5663
|
return V(), Z(a, {
|
|
5664
5664
|
text: b.value,
|
|
@@ -5668,7 +5668,7 @@ const Lf = /* @__PURE__ */ q({
|
|
|
5668
5668
|
color: be(i),
|
|
5669
5669
|
block: n.value,
|
|
5670
5670
|
theme: t.value,
|
|
5671
|
-
onClick:
|
|
5671
|
+
onClick: l
|
|
5672
5672
|
}, null, 8, ["text", "disabled", "variant", "density", "color", "block", "theme"]);
|
|
5673
5673
|
};
|
|
5674
5674
|
}
|
|
@@ -5719,9 +5719,9 @@ const Ff = /* @__PURE__ */ Ke(jf, [["render", Bf]]), Uf = { key: 0 }, Gf = /* @_
|
|
|
5719
5719
|
return c !== "runtime" ? !0 : (e = o.node.settings) == null ? void 0 : e.readonly;
|
|
5720
5720
|
}), t = x(() => d.value ? "dark" : "light");
|
|
5721
5721
|
return (e, i) => {
|
|
5722
|
-
const
|
|
5722
|
+
const l = te("v-combobox");
|
|
5723
5723
|
return be(c) === "editor" ? (V(), se("div", Uf, [
|
|
5724
|
-
oe(
|
|
5724
|
+
oe(l, {
|
|
5725
5725
|
"model-value": v.value,
|
|
5726
5726
|
label: b.value,
|
|
5727
5727
|
placeholder: y.value,
|
|
@@ -5730,7 +5730,7 @@ const Ff = /* @__PURE__ */ Ke(jf, [["render", Bf]]), Uf = { key: 0 }, Gf = /* @_
|
|
|
5730
5730
|
readonly: n.value,
|
|
5731
5731
|
theme: t.value
|
|
5732
5732
|
}, null, 8, ["model-value", "label", "placeholder", "hide-details", "single-line", "readonly", "theme"])
|
|
5733
|
-
])) : (V(), Z(
|
|
5733
|
+
])) : (V(), Z(l, {
|
|
5734
5734
|
key: 1,
|
|
5735
5735
|
"model-value": v.value,
|
|
5736
5736
|
label: b.value,
|
|
@@ -5752,12 +5752,12 @@ const Ff = /* @__PURE__ */ Ke(jf, [["render", Bf]]), Uf = { key: 0 }, Gf = /* @_
|
|
|
5752
5752
|
const o = r, c = re(), d = Le(), v = pe(), b = De(), y = Me(), { applySize: S } = Je(c, d, o), { applyMargin: R } = no(o), { applyPadding: n } = io(o), { applyBorder: t } = ro(v, o), e = x(() => {
|
|
5753
5753
|
var s;
|
|
5754
5754
|
return (s = o.node.settings) == null ? void 0 : s.backgroundColor;
|
|
5755
|
-
}), { color: i } = jt(v, e),
|
|
5756
|
-
const s = {},
|
|
5757
|
-
return b === "page" ?
|
|
5755
|
+
}), { color: i } = jt(v, e), l = x(() => {
|
|
5756
|
+
const s = {}, u = y.value.type;
|
|
5757
|
+
return b === "page" ? u === "common" ? (S(s), R(s), n(s), t(s), i.value && (s.backgroundColor = i.value)) : console.assert(!1) : b === "comp" && u === "common" ? (S(s), R(s), n(s), t(s), i.value && (s.backgroundColor = i.value)) : console.assert(!1), s;
|
|
5758
5758
|
});
|
|
5759
|
-
return (s,
|
|
5760
|
-
style: ft(
|
|
5759
|
+
return (s, u) => (V(), se("div", {
|
|
5760
|
+
style: ft(l.value)
|
|
5761
5761
|
}, [
|
|
5762
5762
|
Ye(s.$slots, "default")
|
|
5763
5763
|
], 4));
|
|
@@ -5770,43 +5770,44 @@ const Ff = /* @__PURE__ */ Ke(jf, [["render", Bf]]), Uf = { key: 0 }, Gf = /* @_
|
|
|
5770
5770
|
},
|
|
5771
5771
|
setup(r) {
|
|
5772
5772
|
const o = r, c = pe(), d = x(() => {
|
|
5773
|
-
var
|
|
5774
|
-
return (
|
|
5773
|
+
var u;
|
|
5774
|
+
return (u = o.node.size) == null ? void 0 : u.width;
|
|
5775
5775
|
}), v = x(() => {
|
|
5776
|
-
var
|
|
5777
|
-
return (
|
|
5776
|
+
var u;
|
|
5777
|
+
return (u = o.node.size) == null ? void 0 : u.height;
|
|
5778
5778
|
}), b = x(() => {
|
|
5779
|
-
var
|
|
5780
|
-
return (
|
|
5779
|
+
var u;
|
|
5780
|
+
return (u = o.node.settings) == null ? void 0 : u.headers;
|
|
5781
5781
|
}), y = x(() => {
|
|
5782
|
-
var
|
|
5783
|
-
|
|
5782
|
+
var a;
|
|
5783
|
+
const u = (a = o.node.settings) == null ? void 0 : a.data;
|
|
5784
|
+
return typeof u == "string" ? JSON.parse(u) : u;
|
|
5784
5785
|
}), S = x(() => {
|
|
5785
|
-
var
|
|
5786
|
-
return (
|
|
5786
|
+
var u;
|
|
5787
|
+
return (u = o.node.settings) == null ? void 0 : u.density;
|
|
5787
5788
|
}), R = x(() => {
|
|
5788
|
-
var
|
|
5789
|
-
return (
|
|
5789
|
+
var u;
|
|
5790
|
+
return (u = o.node.settings) == null ? void 0 : u.hover;
|
|
5790
5791
|
}), n = x(() => {
|
|
5791
|
-
var
|
|
5792
|
-
return (
|
|
5792
|
+
var u;
|
|
5793
|
+
return (u = o.node.settings) == null ? void 0 : u.fixedHeader;
|
|
5793
5794
|
}), t = x(() => {
|
|
5794
|
-
var
|
|
5795
|
-
return (
|
|
5795
|
+
var u;
|
|
5796
|
+
return (u = o.node.settings) == null ? void 0 : u.fixedFooter;
|
|
5796
5797
|
}), e = x(() => {
|
|
5797
|
-
var
|
|
5798
|
-
return (
|
|
5798
|
+
var u;
|
|
5799
|
+
return (u = o.node.settings) == null ? void 0 : u.loading;
|
|
5799
5800
|
}), i = x(() => {
|
|
5800
|
-
var
|
|
5801
|
-
return (
|
|
5802
|
-
}),
|
|
5801
|
+
var u;
|
|
5802
|
+
return (u = o.node.settings) == null ? void 0 : u.multiSort;
|
|
5803
|
+
}), l = x(() => c.value ? "dark" : "light"), s = x(() => {
|
|
5803
5804
|
var p;
|
|
5804
|
-
const
|
|
5805
|
+
const u = [];
|
|
5805
5806
|
return (((p = o.node.slots) == null ? void 0 : p.items) ?? []).forEach((m) => {
|
|
5806
|
-
m.column && m.comp &&
|
|
5807
|
-
}),
|
|
5807
|
+
m.column && m.comp && u.push(m);
|
|
5808
|
+
}), u;
|
|
5808
5809
|
});
|
|
5809
|
-
return (
|
|
5810
|
+
return (u, a) => {
|
|
5810
5811
|
const p = te("v-data-table");
|
|
5811
5812
|
return V(), Z(p, {
|
|
5812
5813
|
width: d.value,
|
|
@@ -5819,7 +5820,7 @@ const Ff = /* @__PURE__ */ Ke(jf, [["render", Bf]]), Uf = { key: 0 }, Gf = /* @_
|
|
|
5819
5820
|
"fixed-footer": t.value,
|
|
5820
5821
|
loading: e.value,
|
|
5821
5822
|
"multi-sort": i.value,
|
|
5822
|
-
theme:
|
|
5823
|
+
theme: l.value
|
|
5823
5824
|
}, dr({ _: 2 }, [
|
|
5824
5825
|
pa(s.value, (m) => ({
|
|
5825
5826
|
name: `item.${m.column}`,
|
|
@@ -5877,27 +5878,27 @@ const Ff = /* @__PURE__ */ Ke(jf, [["render", Bf]]), Uf = { key: 0 }, Gf = /* @_
|
|
|
5877
5878
|
},
|
|
5878
5879
|
setup(r) {
|
|
5879
5880
|
const o = r, c = re(), d = Le(), v = pe(), b = De(), y = Me(), { applySize: S } = Je(c, d, o), { applyMargin: R } = no(o), { applyPadding: n } = io(o), { applyBorder: t } = ro(v, o), e = x(() => {
|
|
5880
|
-
var
|
|
5881
|
-
return (
|
|
5882
|
-
}), { color: i } = jt(v, e),
|
|
5881
|
+
var u;
|
|
5882
|
+
return (u = o.node.settings) == null ? void 0 : u.backgroundColor;
|
|
5883
|
+
}), { color: i } = jt(v, e), l = (u) => {
|
|
5883
5884
|
var g, O, N, P;
|
|
5884
|
-
i.value && (
|
|
5885
|
+
i.value && (u.backgroundColor = i.value), u.display = "flex";
|
|
5885
5886
|
const a = so(d.value.width), p = at(a, (g = o.node.settings) == null ? void 0 : g.direction);
|
|
5886
|
-
p === "row" ?
|
|
5887
|
+
p === "row" ? u.flexDirection = "row" : p === "rowReverse" ? u.flexDirection = "row-reverse" : p === "column" ? u.flexDirection = "column" : p === "columnReverse" && (u.flexDirection = "column-reverse");
|
|
5887
5888
|
const m = at(a, (O = o.node.settings) == null ? void 0 : O.wrap);
|
|
5888
|
-
m === "no" ?
|
|
5889
|
+
m === "no" ? u.flexWrap = "nowrap" : m === "yes" ? u.flexWrap = "wrap" : m === "reverse" && (u.flexWrap = "wrap-reverse");
|
|
5889
5890
|
const E = at(a, (N = o.node.settings) == null ? void 0 : N.mainAlign);
|
|
5890
|
-
E === "start" ?
|
|
5891
|
+
E === "start" ? u.justifyContent = "flex-start" : E === "end" ? u.justifyContent = "flex-end" : E === "center" ? u.justifyContent = "center" : E === "spaceBetween" ? u.justifyContent = "space-between" : E === "spaceAround" ? u.justifyContent = "space-around" : E === "spaceEvenly" && (u.justifyContent = "space-evenly");
|
|
5891
5892
|
const T = at(a, (P = o.node.settings) == null ? void 0 : P.crossAlign);
|
|
5892
|
-
T === "start" ?
|
|
5893
|
+
T === "start" ? u.alignItems = "flex-start" : T === "end" ? u.alignItems = "flex-end" : T === "center" ? u.alignItems = "center" : T === "baseline" ? u.alignItems = "baseline" : T === "stretch" && (u.alignItems = "stretch");
|
|
5893
5894
|
}, s = x(() => {
|
|
5894
|
-
const
|
|
5895
|
-
return b === "page" ? a === "common" ? (S(
|
|
5895
|
+
const u = {}, a = y.value.type;
|
|
5896
|
+
return b === "page" ? a === "common" ? (S(u), R(u), n(u), t(u), l(u)) : console.assert(!1) : b === "comp" && a === "common" ? (S(u), R(u), n(u), t(u), l(u)) : console.assert(!1), u;
|
|
5896
5897
|
});
|
|
5897
|
-
return (
|
|
5898
|
+
return (u, a) => (V(), se("div", {
|
|
5898
5899
|
style: ft(s.value)
|
|
5899
5900
|
}, [
|
|
5900
|
-
Ye(
|
|
5901
|
+
Ye(u.$slots, "default")
|
|
5901
5902
|
], 4));
|
|
5902
5903
|
}
|
|
5903
5904
|
}), Jf = /* @__PURE__ */ q({
|
|
@@ -5946,7 +5947,7 @@ const Ff = /* @__PURE__ */ Ke(jf, [["render", Bf]]), Uf = { key: 0 }, Gf = /* @_
|
|
|
5946
5947
|
const i = te("v-menu");
|
|
5947
5948
|
return V(), Z(i, {
|
|
5948
5949
|
modelValue: be(R),
|
|
5949
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
5950
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => ki(R) ? R.value = l : null),
|
|
5950
5951
|
"location-strategy": "connected",
|
|
5951
5952
|
target: y.value,
|
|
5952
5953
|
attach: "menuContainer",
|
|
@@ -5992,9 +5993,9 @@ const Ff = /* @__PURE__ */ Ke(jf, [["render", Bf]]), Uf = { key: 0 }, Gf = /* @_
|
|
|
5992
5993
|
return c !== "runtime" ? !0 : (e = o.node.settings) == null ? void 0 : e.readonly;
|
|
5993
5994
|
}), t = x(() => d.value ? "dark" : "light");
|
|
5994
5995
|
return (e, i) => {
|
|
5995
|
-
const
|
|
5996
|
+
const l = te("v-number-input");
|
|
5996
5997
|
return be(c) === "editor" ? (V(), se("div", Zf, [
|
|
5997
|
-
oe(
|
|
5998
|
+
oe(l, {
|
|
5998
5999
|
"model-value": v.value,
|
|
5999
6000
|
label: b.value,
|
|
6000
6001
|
placeholder: y.value,
|
|
@@ -6003,7 +6004,7 @@ const Ff = /* @__PURE__ */ Ke(jf, [["render", Bf]]), Uf = { key: 0 }, Gf = /* @_
|
|
|
6003
6004
|
readonly: n.value,
|
|
6004
6005
|
theme: t.value
|
|
6005
6006
|
}, null, 8, ["model-value", "label", "placeholder", "hide-details", "single-line", "readonly", "theme"])
|
|
6006
|
-
])) : (V(), Z(
|
|
6007
|
+
])) : (V(), Z(l, {
|
|
6007
6008
|
key: 1,
|
|
6008
6009
|
"model-value": v.value,
|
|
6009
6010
|
label: b.value,
|
|
@@ -6047,9 +6048,9 @@ const rp = /* @__PURE__ */ Ke(ep, [["render", tp]]), np = { key: 0 }, ip = /* @_
|
|
|
6047
6048
|
return c !== "runtime" ? !0 : (e = o.node.settings) == null ? void 0 : e.readonly;
|
|
6048
6049
|
}), t = x(() => d.value ? "dark" : "light");
|
|
6049
6050
|
return (e, i) => {
|
|
6050
|
-
const
|
|
6051
|
+
const l = te("v-select");
|
|
6051
6052
|
return be(c) === "editor" ? (V(), se("div", np, [
|
|
6052
|
-
oe(
|
|
6053
|
+
oe(l, {
|
|
6053
6054
|
"model-value": v.value,
|
|
6054
6055
|
label: b.value,
|
|
6055
6056
|
placeholder: y.value,
|
|
@@ -6058,7 +6059,7 @@ const rp = /* @__PURE__ */ Ke(ep, [["render", tp]]), np = { key: 0 }, ip = /* @_
|
|
|
6058
6059
|
readonly: n.value,
|
|
6059
6060
|
theme: t.value
|
|
6060
6061
|
}, null, 8, ["model-value", "label", "placeholder", "hide-details", "single-line", "readonly", "theme"])
|
|
6061
|
-
])) : (V(), Z(
|
|
6062
|
+
])) : (V(), Z(l, {
|
|
6062
6063
|
key: 1,
|
|
6063
6064
|
"model-value": v.value,
|
|
6064
6065
|
label: b.value,
|
|
@@ -6096,8 +6097,8 @@ const rp = /* @__PURE__ */ Ke(ep, [["render", tp]]), np = { key: 0 }, ip = /* @_
|
|
|
6096
6097
|
var t;
|
|
6097
6098
|
return (t = o.node.settings) == null ? void 0 : t.italic;
|
|
6098
6099
|
}), n = x(() => {
|
|
6099
|
-
var
|
|
6100
|
-
const t = [], e = so(c.value.width), i = at(e, (
|
|
6100
|
+
var l;
|
|
6101
|
+
const t = [], e = so(c.value.width), i = at(e, (l = o.node.settings) == null ? void 0 : l.style);
|
|
6101
6102
|
return i && t.push(`text-${i}`), v.value === "high" ? t.push("text-high-emphasis") : v.value === "medium" ? t.push("text-medium-emphasis") : v.value === "disabled" && t.push("text-disabled"), b.value && t.push(`font-${b.value}`), y.value && t.push(`font-decoration-${y.value}`), S.value && t.push(`font-weight-${S.value}`), R.value && t.push("font-italic"), t.join(" ");
|
|
6102
6103
|
});
|
|
6103
6104
|
return (t, e) => (V(), se("span", {
|
|
@@ -6140,11 +6141,11 @@ const up = /* @__PURE__ */ Ke(ap, [["render", sp]]), lp = { key: 0 }, cp = /* @_
|
|
|
6140
6141
|
}), i = x(() => {
|
|
6141
6142
|
var s;
|
|
6142
6143
|
return (s = o.node.slots) == null ? void 0 : s.prepend;
|
|
6143
|
-
}),
|
|
6144
|
+
}), l = x(() => {
|
|
6144
6145
|
var s;
|
|
6145
6146
|
return (s = o.node.slots) == null ? void 0 : s.prependInner;
|
|
6146
6147
|
});
|
|
6147
|
-
return (s,
|
|
6148
|
+
return (s, u) => {
|
|
6148
6149
|
const a = te("v-text-field");
|
|
6149
6150
|
return be(c) === "editor" ? (V(), se("div", lp, [
|
|
6150
6151
|
oe(a, {
|
|
@@ -6185,11 +6186,11 @@ const up = /* @__PURE__ */ Ke(ap, [["render", sp]]), lp = { key: 0 }, cp = /* @_
|
|
|
6185
6186
|
]),
|
|
6186
6187
|
key: "2"
|
|
6187
6188
|
} : void 0,
|
|
6188
|
-
|
|
6189
|
+
l.value ? {
|
|
6189
6190
|
name: "prepend-inner",
|
|
6190
6191
|
fn: ee(() => [
|
|
6191
6192
|
oe(ye, {
|
|
6192
|
-
"ref-context": { refid:
|
|
6193
|
+
"ref-context": { refid: l.value },
|
|
6193
6194
|
state: {}
|
|
6194
6195
|
}, null, 8, ["ref-context"])
|
|
6195
6196
|
]),
|
|
@@ -6235,11 +6236,11 @@ const up = /* @__PURE__ */ Ke(ap, [["render", sp]]), lp = { key: 0 }, cp = /* @_
|
|
|
6235
6236
|
]),
|
|
6236
6237
|
key: "2"
|
|
6237
6238
|
} : void 0,
|
|
6238
|
-
|
|
6239
|
+
l.value ? {
|
|
6239
6240
|
name: "prepend-inner",
|
|
6240
6241
|
fn: ee(() => [
|
|
6241
6242
|
oe(ye, {
|
|
6242
|
-
"ref-context": { refid:
|
|
6243
|
+
"ref-context": { refid: l.value },
|
|
6243
6244
|
state: {}
|
|
6244
6245
|
}, null, 8, ["ref-context"])
|
|
6245
6246
|
]),
|