fix(es/minifier): Consider side effects while lifting sequences (#4116)

This commit is contained in:
Donny/강동윤 2022-03-22 15:25:19 +09:00 committed by GitHub
parent 57f8a0cad3
commit 4a9817f003
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 127 additions and 90 deletions

View File

@ -2,7 +2,7 @@ var _B;
import * as swcHelpers from "@swc/helpers";
class A {
}
(_B = class {
A.B = ((_B = class {
static func2() {
return new Promise((resolve)=>{
resolve(null);
@ -14,4 +14,4 @@ class A {
yield _B.func2();
})();
}
}, A.B = _B, A.B.C.func();
}, _B), A.B.C.func();

View File

@ -4,7 +4,7 @@ var _B, A = function() {
"use strict";
swcHelpers.classCallCheck(this, A);
};
(_B = function() {
A.B = ((_B = function() {
"use strict";
function B() {
swcHelpers.classCallCheck(this, B);
@ -32,4 +32,4 @@ var _B, A = function() {
}, _callee);
}))();
}, C;
}(), A.B = _B, A.B.C.func();
}(), _B), A.B.C.func();

View File

@ -15,6 +15,6 @@ C.x = void 0, C.y1 = C.x, C.y2 = C.x(), C.y3 = null == C ? void 0 : C.x(), C.y4
x: 0
}, C.z12 = { x: swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = 0 } = {
x: 0
}, _tmp = {
}, C.z13 = (_tmp = {
x: 0
}, swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = swcHelpers.extends({}, _tmp), C.z13 = _tmp, C.z14 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) + 1, C, !0), C.z15 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) - 1, C, !0), C.z16 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), _ref = "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), _ref, C) + 1, C, !0), swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", (_super_a = +swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C)) + 1, C, !0), C.z17 = _super_a, C.z18 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C)``;
}, swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = swcHelpers.extends({}, _tmp), _tmp), C.z14 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) + 1, C, !0), C.z15 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) - 1, C, !0), C.z16 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), _ref = "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), _ref, C) + 1, C, !0), C.z17 = (swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", (_super_a = +swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C)) + 1, C, !0), _super_a), C.z18 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C)``;

View File

@ -17,16 +17,16 @@ var _ref, _super_a, ref, ref1, ref2, ref3, ref4, ref5, ref6, _tmp, C = function(
}
return C;
}(B);
C.x = void 0, C.y1 = C.x, C.y2 = C.x(), C.y3 = null == C ? void 0 : C.x(), C.y4 = C.x(), C.y5 = null == C ? void 0 : C.x(), C.z1 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C), C.z2 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C), C.z3 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "f", C).call(C), C.z4 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "f", C).call(C), C.z5 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", 0, C, !0), C.z6 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) + 1, C, !0), C.z7 = void swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", 0, C, !0), ref = [
C.x = void 0, C.y1 = C.x, C.y2 = C.x(), C.y3 = null == C ? void 0 : C.x(), C.y4 = C.x(), C.y5 = null == C ? void 0 : C.x(), C.z1 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C), C.z2 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C), C.z3 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "f", C).call(C), C.z4 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "f", C).call(C), C.z5 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", 0, C, !0), C.z6 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) + 1, C, !0), C.z7 = void swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", 0, C, !0), C.z8 = (ref = [
0
], swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = ref[0], C.z8 = ref, ref2 = (ref1 = [
], swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = ref[0], ref), C.z9 = (ref2 = (ref1 = [
0
])[0], swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = void 0 === ref2 ? 0 : ref2, C.z9 = ref1, ref3 = [
])[0], swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = void 0 === ref2 ? 0 : ref2, ref1), C.z10 = (ref3 = [
0
], swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = ref3.slice(0), C.z10 = ref3, ref4 = {
], swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = ref3.slice(0), ref3), C.z11 = (ref4 = {
x: 0
}, swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = ref4.x, C.z11 = ref4, ref6 = (ref5 = {
}, swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = ref4.x, ref4), C.z12 = (ref6 = (ref5 = {
x: 0
}).x, swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = void 0 === ref6 ? 0 : ref6, C.z12 = ref5, _tmp = {
}).x, swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = void 0 === ref6 ? 0 : ref6, ref5), C.z13 = (_tmp = {
x: 0
}, swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = swcHelpers.extends({}, _tmp), C.z13 = _tmp, C.z14 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) + 1, C, !0), C.z15 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) - 1, C, !0), C.z16 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), _ref = "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), _ref, C) + 1, C, !0), swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", (_super_a = +swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C)) + 1, C, !0), C.z17 = _super_a, C.z18 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C)(_templateObject());
}, swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = swcHelpers.extends({}, _tmp), _tmp), C.z14 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) + 1, C, !0), C.z15 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) - 1, C, !0), C.z16 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), _ref = "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), _ref, C) + 1, C, !0), C.z17 = (swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", (_super_a = +swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C)) + 1, C, !0), _super_a), C.z18 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C)(_templateObject());

View File

@ -15,6 +15,6 @@ C.x = void 0, C.y1 = C.x, C.y2 = C.x(), C.y3 = null == C ? void 0 : C.x(), C.y4
x: 0
}, C.z12 = { x: swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = 0 } = {
x: 0
}, _tmp = {
}, C.z13 = (_tmp = {
x: 0
}, swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = swcHelpers.extends({}, _tmp), C.z13 = _tmp, C.z14 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) + 1, C, !0), C.z15 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) - 1, C, !0), C.z16 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), _ref = "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), _ref, C) + 1, C, !0), swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", (_super_a = +swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C)) + 1, C, !0), C.z17 = _super_a, C.z18 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C)``;
}, swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = swcHelpers.extends({}, _tmp), _tmp), C.z14 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) + 1, C, !0), C.z15 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) - 1, C, !0), C.z16 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), _ref = "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), _ref, C) + 1, C, !0), C.z17 = (swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", (_super_a = +swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C)) + 1, C, !0), _super_a), C.z18 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C)``;

View File

@ -17,16 +17,16 @@ var _ref, _super_a, ref, ref1, ref2, ref3, ref4, ref5, ref6, _tmp, C = function(
}
return C;
}(B);
C.x = void 0, C.y1 = C.x, C.y2 = C.x(), C.y3 = null == C ? void 0 : C.x(), C.y4 = C.x(), C.y5 = null == C ? void 0 : C.x(), C.z1 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C), C.z2 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C), C.z3 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "f", C).call(C), C.z4 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "f", C).call(C), C.z5 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", 0, C, !0), C.z6 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) + 1, C, !0), C.z7 = void swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", 0, C, !0), ref = [
C.x = void 0, C.y1 = C.x, C.y2 = C.x(), C.y3 = null == C ? void 0 : C.x(), C.y4 = C.x(), C.y5 = null == C ? void 0 : C.x(), C.z1 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C), C.z2 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C), C.z3 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "f", C).call(C), C.z4 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "f", C).call(C), C.z5 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", 0, C, !0), C.z6 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) + 1, C, !0), C.z7 = void swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", 0, C, !0), C.z8 = (ref = [
0
], swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = ref[0], C.z8 = ref, ref2 = (ref1 = [
], swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = ref[0], ref), C.z9 = (ref2 = (ref1 = [
0
])[0], swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = void 0 === ref2 ? 0 : ref2, C.z9 = ref1, ref3 = [
])[0], swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = void 0 === ref2 ? 0 : ref2, ref1), C.z10 = (ref3 = [
0
], swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = ref3.slice(0), C.z10 = ref3, ref4 = {
], swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = ref3.slice(0), ref3), C.z11 = (ref4 = {
x: 0
}, swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = ref4.x, C.z11 = ref4, ref6 = (ref5 = {
}, swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = ref4.x, ref4), C.z12 = (ref6 = (ref5 = {
x: 0
}).x, swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = void 0 === ref6 ? 0 : ref6, C.z12 = ref5, _tmp = {
}).x, swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = void 0 === ref6 ? 0 : ref6, ref5), C.z13 = (_tmp = {
x: 0
}, swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = swcHelpers.extends({}, _tmp), C.z13 = _tmp, C.z14 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) + 1, C, !0), C.z15 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) - 1, C, !0), C.z16 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), _ref = "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), _ref, C) + 1, C, !0), swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", (_super_a = +swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C)) + 1, C, !0), C.z17 = _super_a, C.z18 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C)(_templateObject());
}, swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) = swcHelpers.extends({}, _tmp), _tmp), C.z14 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) + 1, C, !0), C.z15 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C) - 1, C, !0), C.z16 = swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), _ref = "a", swcHelpers.get(swcHelpers.getPrototypeOf(C), _ref, C) + 1, C, !0), C.z17 = (swcHelpers.set(swcHelpers.getPrototypeOf(C.prototype), "a", (_super_a = +swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C)) + 1, C, !0), _super_a), C.z18 = swcHelpers.get(swcHelpers.getPrototypeOf(C), "a", C)(_templateObject());

View File

@ -433,7 +433,11 @@ where
let can_work = e.exprs.iter().any(|e| {
if let Expr::Assign(assign @ AssignExpr { op: op!("="), .. }) = &**e {
if let Expr::Seq(right) = &*assign.right {
if right.exprs.len() >= 2 {
if right.exprs.len() >= 2
&& right.exprs[..right.exprs.len() - 1]
.iter()
.all(|e| !e.may_have_side_effects())
{
return true;
}
}
@ -454,7 +458,11 @@ where
for expr in e.exprs.take() {
if let Expr::Assign(assign @ AssignExpr { op: op!("="), .. }) = *expr {
match *assign.right {
Expr::Seq(mut right) => {
Expr::Seq(mut right)
if right.exprs[..right.exprs.len() - 1]
.iter()
.all(|e| !e.may_have_side_effects()) =>
{
new_exprs.extend(right.exprs.drain(..right.exprs.len() - 1));
new_exprs.push(Box::new(Expr::Assign(AssignExpr {
right: right.exprs.pop().unwrap(),

View File

@ -11118,9 +11118,9 @@
var a6, b4;
return a7 = m({
children: void 0
}, b), a6 = b.children, b4 = "", aa.Children.forEach(a6, function(a) {
}, b), (b = (a6 = b.children, b4 = "", aa.Children.forEach(a6, function(a) {
null != a && (b4 += a);
}), (b = b4) && (a7.children = b), a7;
}), b4)) && (a7.children = b), a7;
}
function fb(a, b, c, d) {
if (a = a.options, b) {
@ -16153,7 +16153,7 @@
var key, _Provider$childContex, _Consumer$contextType, contextProp = "__create-react-context-" + (commonjsGlobal[key = "__global_unique_id__"] = (commonjsGlobal[key] || 0) + 1) + "__", Provider1 = function(_Component) {
function Provider() {
var _this, value, handlers;
return _this = _Component.apply(this, arguments) || this, value = _this.props.value, handlers = [], _this.emitter = {
return _this = _Component.apply(this, arguments) || this, _this.emitter = (value = _this.props.value, handlers = [], {
on: function(handler) {
handlers.push(handler);
},
@ -16170,7 +16170,7 @@
return handler(value, changedBits);
});
}
}, _this;
}), _this;
}
(0, inheritsLoose.Z)(Provider, _Component);
var _proto = Provider.prototype;
@ -16216,7 +16216,7 @@
return (children = this.props.children, Array.isArray(children) ? children[0] : children)(this.state.value);
}, Consumer;
}(_react_17_0_2_react.Component);
return (_Consumer$contextType = {})[contextProp] = _prop_types_15_7_2_prop_types_default().object, Consumer1.contextTypes = _Consumer$contextType, {
return Consumer1.contextTypes = ((_Consumer$contextType = {})[contextProp] = _prop_types_15_7_2_prop_types_default().object, _Consumer$contextType), {
Provider: Provider1,
Consumer: Consumer1
};
@ -16426,9 +16426,9 @@
var _proto = StaticRouter.prototype;
return _proto.navigateTo = function(location, action) {
var basename, location1, _this$props = this.props, _this$props$basename = _this$props.basename, _this$props$context = _this$props.context, context = void 0 === _this$props$context ? {} : _this$props$context;
context.action = action, basename = void 0 === _this$props$basename ? "" : _this$props$basename, location1 = (0, esm_history.createLocation)(location), context.location = basename ? (0, esm_extends.Z)({}, location1, {
context.action = action, context.location = (basename = void 0 === _this$props$basename ? "" : _this$props$basename, location1 = (0, esm_history.createLocation)(location), basename ? (0, esm_extends.Z)({}, location1, {
pathname: addLeadingSlash(basename) + location1.pathname
}) : location1, context.url = createURL(context.location);
}) : location1), context.url = createURL(context.location);
}, _proto.render = function() {
var _this$props2 = this.props, _this$props2$basename = _this$props2.basename, basename1 = void 0 === _this$props2$basename ? "" : _this$props2$basename, _this$props2$context = _this$props2.context, _this$props2$location = _this$props2.location, rest = (0, objectWithoutPropertiesLoose.Z)(_this$props2, [
"basename",

View File

@ -1178,9 +1178,9 @@
return l.JSON.parse(a, void 0);
}, t(pd, Yb), pd.prototype.g = function() {
return new qd(this.l, this.j);
}, a2 = {}, pd.prototype.i = function() {
}, pd.prototype.i = (a2 = {}, function() {
return a2;
}, t(qd, C);
}), t(qd, C);
var rd = 0;
function ud(a) {
a.j.read().then(a.Sa.bind(a)).catch(a.ha.bind(a));
@ -1355,9 +1355,9 @@
d = !0;
}
let b6;
d || (b6 = "", xa(c8, function(c, d) {
d || (c8 = (b6 = "", xa(c8, function(c, d) {
b6 += d, b6 += ":", b6 += c, b6 += "\r\n";
}), c8 = b6, "string" == typeof a ? null != c8 && encodeURIComponent(String(c8)) : R(a, b, c8));
}), b6), "string" == typeof a ? null != c8 && encodeURIComponent(String(c8)) : R(a, b, c8));
}
function Hd(a, b, c) {
return c && c.internalChannelParams ? c.internalChannelParams[a] || b : b;

View File

@ -753,13 +753,13 @@
function configFromRFC2822(config) {
var weekdayStr, parsedInput, config1, year, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr, result, parsedArray, match = rfc2822.exec(config._i.replace(/\([^)]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, ""));
if (match) {
if (yearStr = match[4], monthStr = match[3], dayStr = match[2], hourStr = match[5], minuteStr = match[6], secondStr = match[7], result = [
if (parsedArray = (yearStr = match[4], monthStr = match[3], dayStr = match[2], hourStr = match[5], minuteStr = match[6], secondStr = match[7], result = [
(year = parseInt(yearStr, 10)) <= 49 ? 2000 + year : year <= 999 ? 1900 + year : year,
defaultLocaleMonthsShort.indexOf(monthStr),
parseInt(dayStr, 10),
parseInt(hourStr, 10),
parseInt(minuteStr, 10),
], secondStr && result.push(parseInt(secondStr, 10)), parsedArray = result, weekdayStr = match[1], parsedInput = parsedArray, config1 = config, weekdayStr && defaultLocaleWeekdaysShort.indexOf(weekdayStr) !== new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay() && (getParsingFlags(config1).weekdayMismatch = !0, config1._isValid = !1, 1)) return;
], secondStr && result.push(parseInt(secondStr, 10)), result), weekdayStr = match[1], parsedInput = parsedArray, config1 = config, weekdayStr && defaultLocaleWeekdaysShort.indexOf(weekdayStr) !== new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay() && (getParsingFlags(config1).weekdayMismatch = !0, config1._isValid = !1, 1)) return;
config._a = parsedArray, config._tzm = function(obsOffset, militaryOffset, numOffset) {
if (obsOffset) return obsOffsets[obsOffset];
if (militaryOffset) return 0;
@ -774,7 +774,7 @@
function configFromArray(config) {
var config2, nowValue, i, date, currentDate, expectedWeekday, yearToUse, input = [];
if (!config._d) {
for(config2 = config, nowValue = new Date(hooks.now()), currentDate = config2._useUTC ? [
for(currentDate = (config2 = config, nowValue = new Date(hooks.now()), config2._useUTC ? [
nowValue.getUTCFullYear(),
nowValue.getUTCMonth(),
nowValue.getUTCDate(),
@ -782,7 +782,7 @@
nowValue.getFullYear(),
nowValue.getMonth(),
nowValue.getDate()
], config._w && null == config._a[2] && null == config._a[1] && dayOfYearFromWeekInfo(config), null != config._dayOfYear && (yearToUse = defaults(config._a[0], currentDate[0]), (config._dayOfYear > daysInYear(yearToUse) || 0 === config._dayOfYear) && (getParsingFlags(config)._overflowDayOfYear = !0), date = createUTCDate(yearToUse, 0, config._dayOfYear), config._a[1] = date.getUTCMonth(), config._a[2] = date.getUTCDate()), i = 0; i < 3 && null == config._a[i]; ++i)config._a[i] = input[i] = currentDate[i];
]), config._w && null == config._a[2] && null == config._a[1] && dayOfYearFromWeekInfo(config), null != config._dayOfYear && (yearToUse = defaults(config._a[0], currentDate[0]), (config._dayOfYear > daysInYear(yearToUse) || 0 === config._dayOfYear) && (getParsingFlags(config)._overflowDayOfYear = !0), date = createUTCDate(yearToUse, 0, config._dayOfYear), config._a[1] = date.getUTCMonth(), config._a[2] = date.getUTCDate()), i = 0; i < 3 && null == config._a[i]; ++i)config._a[i] = input[i] = currentDate[i];
for(; i < 7; i++)config._a[i] = input[i] = null == config._a[i] ? 2 === i ? 1 : 0 : config._a[i];
24 === config._a[3] && 0 === config._a[4] && 0 === config._a[5] && 0 === config._a[6] && (config._nextDay = !0, config._a[3] = 0), config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input), expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay(), null != config._tzm && config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm), config._nextDay && (config._a[3] = 24), config._w && void 0 !== config._w.d && config._w.d !== expectedWeekday && (getParsingFlags(config).weekdayMismatch = !0);
}
@ -1496,7 +1496,7 @@
}, proto.date = getSetDayOfMonth, proto.day = proto.days = function(input) {
if (!this.isValid()) return null != input ? this : NaN;
var input4, locale, day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
return null == input ? day : (input4 = input, locale = this.localeData(), input = "string" != typeof input4 ? input4 : isNaN(input4) ? "number" == typeof (input4 = locale.weekdaysParse(input4)) ? input4 : null : parseInt(input4, 10), this.add(input - day, "d"));
return null == input ? day : (input = (input4 = input, locale = this.localeData(), "string" != typeof input4 ? input4 : isNaN(input4) ? "number" == typeof (input4 = locale.weekdaysParse(input4)) ? input4 : null : parseInt(input4, 10)), this.add(input - day, "d"));
}, proto.weekday = function(input) {
if (!this.isValid()) return null != input ? this : NaN;
var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
@ -1814,7 +1814,7 @@
}, proto$2.months = months1, proto$2.years = years1, proto$2.humanize = function(argWithSuffix, argThresholds) {
if (!this.isValid()) return this.localeData().invalidDate();
var locale, output, posNegDuration, withoutSuffix, thresholds1, locale3, duration, seconds, minutes, hours, days, months, weeks, years, a, withSuffix = !1, th = thresholds;
return "object" == typeof argWithSuffix && (argThresholds = argWithSuffix, argWithSuffix = !1), "boolean" == typeof argWithSuffix && (withSuffix = argWithSuffix), "object" == typeof argThresholds && (th = Object.assign({}, thresholds, argThresholds), null != argThresholds.s && null == argThresholds.ss && (th.ss = argThresholds.s - 1)), locale = this.localeData(), posNegDuration = this, withoutSuffix = !withSuffix, thresholds1 = th, locale3 = locale, seconds = round((duration = createDuration(posNegDuration).abs()).as("s")), minutes = round(duration.as("m")), hours = round(duration.as("h")), days = round(duration.as("d")), months = round(duration.as("M")), weeks = round(duration.as("w")), years = round(duration.as("y")), a = seconds <= thresholds1.ss && [
return "object" == typeof argWithSuffix && (argThresholds = argWithSuffix, argWithSuffix = !1), "boolean" == typeof argWithSuffix && (withSuffix = argWithSuffix), "object" == typeof argThresholds && (th = Object.assign({}, thresholds, argThresholds), null != argThresholds.s && null == argThresholds.ss && (th.ss = argThresholds.s - 1)), locale = this.localeData(), output = (posNegDuration = this, withoutSuffix = !withSuffix, thresholds1 = th, locale3 = locale, seconds = round((duration = createDuration(posNegDuration).abs()).as("s")), minutes = round(duration.as("m")), hours = round(duration.as("h")), days = round(duration.as("d")), months = round(duration.as("M")), weeks = round(duration.as("w")), years = round(duration.as("y")), a = seconds <= thresholds1.ss && [
"s",
seconds
] || seconds < thresholds1.s && [
@ -1850,7 +1850,7 @@
] || [
"yy",
years
])[2] = withoutSuffix, a[3] = +posNegDuration > 0, a[4] = locale3, output = substituteTimeAgo.apply(null, a), withSuffix && (output = locale.pastFuture(+this, output)), locale.postformat(output);
])[2] = withoutSuffix, a[3] = +posNegDuration > 0, a[4] = locale3, substituteTimeAgo.apply(null, a)), withSuffix && (output = locale.pastFuture(+this, output)), locale.postformat(output);
}, proto$2.toISOString = toISOString$1, proto$2.toString = toISOString$1, proto$2.toJSON = toISOString$1, proto$2.locale = locale1, proto$2.localeData = localeData, proto$2.toIsoString = deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)", toISOString$1), proto$2.lang = lang, addFormatToken("X", 0, 0, "unix"), addFormatToken("x", 0, 0, "valueOf"), addRegexToken("x", matchSigned), addRegexToken("X", /[+-]?\d+(\.\d{1,3})?/), addParseToken("X", function(input, array, config) {
config._d = new Date(1000 * parseFloat(input));
}), addParseToken("x", function(input, array, config) {

View File

@ -45,10 +45,10 @@ var ItemsList = function(Component1) {
var _this, self1, call, obj;
return !function(instance, Constructor) {
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
}(this, ItemsList1), self1 = this, call = _getPrototypeOf(ItemsList1).apply(this, arguments), (_this = call && ("object" == ((obj = call) && "undefined" != typeof Symbol && obj.constructor === Symbol ? "symbol" : typeof obj) || "function" == typeof call) ? call : function(self) {
}(this, ItemsList1), _this = (self1 = this, call = _getPrototypeOf(ItemsList1).apply(this, arguments), call && ("object" == ((obj = call) && "undefined" != typeof Symbol && obj.constructor === Symbol ? "symbol" : typeof obj) || "function" == typeof call) ? call : function(self) {
if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return self;
}(self1)).storeHighlightedItemReference = function(highlightedItem) {
}(self1)), _this.storeHighlightedItemReference = function(highlightedItem) {
_this.props.onHighlightedItemChange(null === highlightedItem ? null : highlightedItem.item);
}, _this;
}

View File

@ -1,9 +1,9 @@
function ItemsList() {
_classCallCheck(this, ItemsList);
for(var _ref, _temp, _this, _ret, _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
return _temp = _this = _possibleConstructorReturn(this, (_ref = ItemsList.__proto__ || Object.getPrototypeOf(ItemsList)).call.apply(_ref, [
return _ret = (_temp = _this = _possibleConstructorReturn(this, (_ref = ItemsList.__proto__ || Object.getPrototypeOf(ItemsList)).call.apply(_ref, [
this
].concat(args))), _this.storeHighlightedItemReference = function(highlightedItem) {
_this.props.onHighlightedItemChange(null === highlightedItem ? null : highlightedItem.item);
}, _ret = _temp, _possibleConstructorReturn(_this, _ret);
}, _temp), _possibleConstructorReturn(_this, _ret);
}

View File

@ -1713,7 +1713,7 @@
var view1, event1, event2, result, code, mods;
view2.someProp("handleKeyDown", function(f) {
return f(view2, event);
}) || (view1 = view2, code = (event1 = event).keyCode, result = "", (event2 = event1).ctrlKey && (result += "c"), event2.metaKey && (result += "m"), event2.altKey && (result += "a"), event2.shiftKey && (result += "s"), mods = result, 8 == code || result1.mac && 72 == code && "c" == mods ? stopNativeHorizontalDelete(view1, -1) || skipIgnoredNodesLeft(view1) : 46 == code || result1.mac && 68 == code && "c" == mods ? stopNativeHorizontalDelete(view1, 1) || skipIgnoredNodesRight(view1) : 13 == code || 27 == code || (37 == code ? selectHorizontally(view1, -1, mods) || skipIgnoredNodesLeft(view1) : 39 == code ? selectHorizontally(view1, 1, mods) || skipIgnoredNodesRight(view1) : 38 == code ? selectVertically(view1, -1, mods) || skipIgnoredNodesLeft(view1) : 40 == code ? function(view) {
}) || (view1 = view2, code = (event1 = event).keyCode, mods = (result = "", (event2 = event1).ctrlKey && (result += "c"), event2.metaKey && (result += "m"), event2.altKey && (result += "a"), event2.shiftKey && (result += "s"), result), 8 == code || result1.mac && 72 == code && "c" == mods ? stopNativeHorizontalDelete(view1, -1) || skipIgnoredNodesLeft(view1) : 46 == code || result1.mac && 68 == code && "c" == mods ? stopNativeHorizontalDelete(view1, 1) || skipIgnoredNodesRight(view1) : 13 == code || 27 == code || (37 == code ? selectHorizontally(view1, -1, mods) || skipIgnoredNodesLeft(view1) : 39 == code ? selectHorizontally(view1, 1, mods) || skipIgnoredNodesRight(view1) : 38 == code ? selectVertically(view1, -1, mods) || skipIgnoredNodesLeft(view1) : 40 == code ? function(view) {
if (result1.safari && !(view.state.selection.$head.parentOffset > 0)) {
var ref = view.root.getSelection(), focusNode = ref.focusNode, focusOffset = ref.focusOffset;
if (focusNode && 1 == focusNode.nodeType && 0 == focusOffset && focusNode.firstChild && "false" == focusNode.firstChild.contentEditable) {
@ -2642,7 +2642,7 @@
if (!(elt1 = elementFromPoint(view10.dom, coords3, box))) return null;
}
if (result1.safari) for(var p = elt1; node1 && p; p = parentNode(p))p.draggable && (node1 = offset1 = null);
if (dom = elt1, coords1 = coords3, elt1 = (parent = dom.parentNode) && /^li$/i.test(parent.nodeName) && coords1.left < dom.getBoundingClientRect().left ? parent : dom, node1) {
if (elt1 = (dom = elt1, coords1 = coords3, (parent = dom.parentNode) && /^li$/i.test(parent.nodeName) && coords1.left < dom.getBoundingClientRect().left ? parent : dom), node1) {
if (result1.gecko && 1 == node1.nodeType && (offset1 = Math.min(offset1, node1.childNodes.length)) < node1.childNodes.length) {
var dom, coords1, parent, box$1, next = node1.childNodes[offset1];
"IMG" == next.nodeName && (box$1 = next.getBoundingClientRect()).right <= coords3.left && box$1.bottom > coords3.top && offset1++;

View File

@ -45,18 +45,18 @@
trim: !1,
normalize: !1,
xmlns: this.options.xmlns
}), this.saxParser.errThrown = !1, _this = this, this.saxParser.onerror = function(error) {
}), this.saxParser.errThrown = !1, this.saxParser.onerror = (_this = this, function(error) {
if (_this.saxParser.resume(), !_this.saxParser.errThrown) return _this.saxParser.errThrown = !0, _this.emit("error", error);
}, _this1 = this, this.saxParser.onend = function() {
}), this.saxParser.onend = (_this1 = this, function() {
if (!_this1.saxParser.ended) return _this1.saxParser.ended = !0, _this1.emit("end", _this1.resultObject);
}, this.saxParser.ended = !1, this.EXPLICIT_CHARKEY = this.options.explicitCharkey, this.resultObject = null, stack = [], attrkey = this.options.attrkey, charkey = this.options.charkey, _this2 = this, this.saxParser.onopentag = function(node) {
}), this.saxParser.ended = !1, this.EXPLICIT_CHARKEY = this.options.explicitCharkey, this.resultObject = null, stack = [], attrkey = this.options.attrkey, charkey = this.options.charkey, this.saxParser.onopentag = (_this2 = this, function(node) {
var key, newValue, obj, processedKey, ref;
if ((obj = {})[charkey] = "", !_this2.options.ignoreAttrs) for(key in ref = node.attributes)hasProp.call(ref, key) && (attrkey in obj || _this2.options.mergeAttrs || (obj[attrkey] = {}), newValue = _this2.options.attrValueProcessors ? processItem(_this2.options.attrValueProcessors, node.attributes[key], key) : node.attributes[key], processedKey = _this2.options.attrNameProcessors ? processItem(_this2.options.attrNameProcessors, key) : key, _this2.options.mergeAttrs ? _this2.assignOrPush(obj, processedKey, newValue) : obj[attrkey][processedKey] = newValue);
return obj["#name"] = _this2.options.tagNameProcessors ? processItem(_this2.options.tagNameProcessors, node.name) : node.name, _this2.options.xmlns && (obj[_this2.options.xmlnskey] = {
uri: node.uri,
local: node.local
}), stack.push(obj);
}, _this3 = this, this.saxParser.onclosetag = function() {
}), this.saxParser.onclosetag = (_this3 = this, function() {
var cdata, emptyStr, key, node, nodeName, obj, objClone, old, s, xpath;
if (nodeName = (obj = stack.pop())["#name"], _this3.options.explicitChildren && _this3.options.preserveChildrenOrder || delete obj["#name"], !0 === obj.cdata && (cdata = obj.cdata, delete obj.cdata), s = stack[stack.length - 1], obj[charkey].match(/^\s*$/) && !cdata ? (emptyStr = obj[charkey], delete obj[charkey]) : (_this3.options.trim && (obj[charkey] = obj[charkey].trim()), _this3.options.normalize && (obj[charkey] = obj[charkey].replace(/\s{2,}/g, " ").trim()), obj[charkey] = _this3.options.valueProcessors ? processItem(_this3.options.valueProcessors, obj[charkey], nodeName) : obj[charkey], 1 === Object.keys(obj).length && charkey in obj && !_this3.EXPLICIT_CHARKEY && (obj = obj[charkey])), isEmpty(obj) && (obj = "" !== _this3.options.emptyTag ? _this3.options.emptyTag : emptyStr), null != _this3.options.validator && (xpath = "/" + (function() {
var i, len, results;
@ -76,12 +76,12 @@
}
} else node = {}, _this3.options.attrkey in obj && (node[_this3.options.attrkey] = obj[_this3.options.attrkey], delete obj[_this3.options.attrkey]), !_this3.options.charsAsChildren && _this3.options.charkey in obj && (node[_this3.options.charkey] = obj[_this3.options.charkey], delete obj[_this3.options.charkey]), Object.getOwnPropertyNames(obj).length > 0 && (node[_this3.options.childkey] = obj), obj = node;
return stack.length > 0 ? _this3.assignOrPush(s, nodeName, obj) : (_this3.options.explicitRoot && (old = obj, (obj = {})[nodeName] = old), _this3.resultObject = obj, _this3.saxParser.ended = !0, _this3.emit("end", _this3.resultObject));
}, _this4 = this, ontext = function(text) {
}), ontext = (_this4 = this, function(text) {
var charChild, s;
if (s = stack[stack.length - 1]) return s[charkey] += text, _this4.options.explicitChildren && _this4.options.preserveChildrenOrder && _this4.options.charsAsChildren && (_this4.options.includeWhiteChars || "" !== text.replace(/\\n/g, "").trim()) && (s[_this4.options.childkey] = s[_this4.options.childkey] || [], (charChild = {
"#name": "__text__"
})[charkey] = text, _this4.options.normalize && (charChild[charkey] = charChild[charkey].replace(/\s{2,}/g, " ").trim()), s[_this4.options.childkey].push(charChild)), s;
}, this.saxParser.ontext = ontext, this.saxParser.oncdata = function(text) {
}), this.saxParser.ontext = ontext, this.saxParser.oncdata = function(text) {
var s;
if (s = ontext(text)) return s.cdata = !0;
};

View File

@ -63,7 +63,7 @@
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
logByType("log", level1, args);
};
return name1 = name, log = log1, logByType = function(type, level, args) {
return logByType = (name1 = name, log = log1, function(type, level, args) {
var lvl = log.levels[level], lvlRegExp = new RegExp("^(" + lvl + ")$");
if ("log" !== type && args.unshift(type.toUpperCase() + ":"), args.unshift(name1 + ":"), history) {
history.push([].concat(args));
@ -74,7 +74,7 @@
var fn = global_window__WEBPACK_IMPORTED_MODULE_0___default().console[type];
fn || "debug" !== type || (fn = global_window__WEBPACK_IMPORTED_MODULE_0___default().console.info || global_window__WEBPACK_IMPORTED_MODULE_0___default().console.log), fn && lvl && lvlRegExp.test(type) && fn[Array.isArray(args) ? "apply" : "call"](global_window__WEBPACK_IMPORTED_MODULE_0___default().console, args);
}
}, log1.createLogger = function(subname) {
}), log1.createLogger = function(subname) {
return createLogger$1(name + ": " + subname);
}, log1.levels = {
all: "debug|log|warn|error",
@ -13695,7 +13695,7 @@
"SUBTITLES"
].forEach(function(type) {
var type2, settings, type3, settings1, type4, settings2, type5, settings3;
type2 = type, settings = settings4, mediaTypes[type].activeGroup = function(track) {
mediaTypes[type].activeGroup = (type2 = type, settings = settings4, function(track) {
var masterPlaylistLoader = settings.masterPlaylistLoader, groups = settings.mediaTypes[type2].groups, media = masterPlaylistLoader.media();
if (!media) return null;
var variants = null;
@ -13712,7 +13712,7 @@
return void 0 === track ? variants : null !== track && variants ? variants.filter(function(props) {
return props.id === track.id;
})[0] || null : null;
}, mediaTypes[type].activeTrack = activeTrack1[type](type, settings4), type3 = type, settings1 = settings4, mediaTypes[type].onGroupChanged = function() {
}), mediaTypes[type].activeTrack = activeTrack1[type](type, settings4), mediaTypes[type].onGroupChanged = (type3 = type, settings1 = settings4, function() {
var _settings$segmentLoad = settings1.segmentLoaders, segmentLoader = _settings$segmentLoad[type3], mainSegmentLoader = _settings$segmentLoad.main, mediaType = settings1.mediaTypes[type3], activeTrack = mediaType.activeTrack(), activeGroup = mediaType.getActiveGroup(), previousActiveLoader = mediaType.activePlaylistLoader, lastGroup = mediaType.lastGroup_;
if ((!activeGroup || !lastGroup || activeGroup.id !== lastGroup.id) && (mediaType.lastGroup_ = activeGroup, mediaType.lastTrack_ = activeTrack, stopLoaders(segmentLoader, mediaType), activeGroup && !activeGroup.isMasterPlaylist)) {
if (!activeGroup.playlistLoader) {
@ -13721,10 +13721,10 @@
}
segmentLoader.resyncLoader(), startLoaders(activeGroup.playlistLoader, mediaType);
}
}, type4 = type, settings2 = settings4, mediaTypes[type].onGroupChanging = function() {
}), mediaTypes[type].onGroupChanging = (type4 = type, settings2 = settings4, function() {
var segmentLoader = settings2.segmentLoaders[type4];
settings2.mediaTypes[type4].lastGroup_ = null, segmentLoader.abort(), segmentLoader.pause();
}, type5 = type, settings3 = settings4, mediaTypes[type].onTrackChanged = function() {
}), mediaTypes[type].onTrackChanged = (type5 = type, settings3 = settings4, function() {
var masterPlaylistLoader = settings3.masterPlaylistLoader, _settings$segmentLoad2 = settings3.segmentLoaders, segmentLoader = _settings$segmentLoad2[type5], mainSegmentLoader = _settings$segmentLoad2.main, mediaType = settings3.mediaTypes[type5], activeTrack = mediaType.activeTrack(), activeGroup = mediaType.getActiveGroup(), previousActiveLoader = mediaType.activePlaylistLoader, lastTrack = mediaType.lastTrack_;
if ((!lastTrack || !activeTrack || lastTrack.id !== activeTrack.id) && (mediaType.lastGroup_ = activeGroup, mediaType.lastTrack_ = activeTrack, stopLoaders(segmentLoader, mediaType), activeGroup)) {
if (activeGroup.isMasterPlaylist) {
@ -13747,7 +13747,7 @@
}
segmentLoader.track && segmentLoader.track(activeTrack), segmentLoader.resetEverything(), startLoaders(activeGroup.playlistLoader, mediaType);
}
}, mediaTypes[type].getActiveGroup = getActiveGroup(type, settings4);
}), mediaTypes[type].getActiveGroup = getActiveGroup(type, settings4);
});
var audioGroup = mediaTypes.AUDIO.activeGroup();
if (audioGroup) {
@ -14441,10 +14441,10 @@
var resolution = playlist1.attributes.RESOLUTION;
this.width = resolution && resolution.width, this.height = resolution && resolution.height, this.bandwidth = playlist1.attributes.BANDWIDTH;
}
this.codecs = codecsForPlaylist(mpc.master(), playlist1), this.playlist = playlist1, this.id = id, loader = vhsHandler.playlists, playlistID = playlist1.id, changePlaylistFn = qualityChangeFunction, this.enabled = function(enable) {
this.codecs = codecsForPlaylist(mpc.master(), playlist1), this.playlist = playlist1, this.id = id, this.enabled = (loader = vhsHandler.playlists, playlistID = playlist1.id, changePlaylistFn = qualityChangeFunction, function(enable) {
var playlist = loader.master.playlists[playlistID], incompatible = isIncompatible(playlist), currentlyEnabled = isEnabled(playlist);
return void 0 === enable ? currentlyEnabled : (enable ? delete playlist.disabled : playlist.disabled = !0, enable === currentlyEnabled || incompatible || (changePlaylistFn(), enable ? loader.trigger("renditionenabled") : loader.trigger("renditiondisabled")), enable);
};
});
}, renditionSelectionMixin = function(vhsHandler) {
vhsHandler.representations = function() {
var master = vhsHandler.masterPlaylistController_.master(), playlists = isAudioOnly(master) ? vhsHandler.masterPlaylistController_.getAudioTrackPlaylists_() : master.playlists;

View File

@ -464,11 +464,11 @@
var dataHeader = getvint(bytes, offset + innerid.length);
return getInfinityDataSize(id, bytes, offset + dataHeader.length + dataHeader.value + innerid.length);
}, findEbml1 = function findEbml(bytes, paths) {
paths1 = paths, paths = Array.isArray(paths1) ? paths1.map(function(p) {
paths = (paths1 = paths, Array.isArray(paths1) ? paths1.map(function(p) {
return ebml_helpers_normalizePath(p);
}) : [
ebml_helpers_normalizePath(paths1)
], bytes = (0, byte_helpers.Ki)(bytes);
]), bytes = (0, byte_helpers.Ki)(bytes);
var paths1, results = [];
if (!paths.length) return results;
for(var i = 0; i < bytes.length;){
@ -1083,9 +1083,9 @@
pt.constructor != Class && ("function" != typeof Class && console.error("unknown Class:" + Class), pt.constructor = Class);
}
var NodeType = {}, ELEMENT_NODE = NodeType.ELEMENT_NODE = 1, ATTRIBUTE_NODE = NodeType.ATTRIBUTE_NODE = 2, TEXT_NODE = NodeType.TEXT_NODE = 3, CDATA_SECTION_NODE = NodeType.CDATA_SECTION_NODE = 4, ENTITY_REFERENCE_NODE = NodeType.ENTITY_REFERENCE_NODE = 5, ENTITY_NODE = NodeType.ENTITY_NODE = 6, PROCESSING_INSTRUCTION_NODE = NodeType.PROCESSING_INSTRUCTION_NODE = 7, COMMENT_NODE = NodeType.COMMENT_NODE = 8, DOCUMENT_NODE = NodeType.DOCUMENT_NODE = 9, DOCUMENT_TYPE_NODE = NodeType.DOCUMENT_TYPE_NODE = 10, DOCUMENT_FRAGMENT_NODE = NodeType.DOCUMENT_FRAGMENT_NODE = 11, NOTATION_NODE = NodeType.NOTATION_NODE = 12, ExceptionCode = {}, ExceptionMessage = {};
ExceptionMessage[1] = "Index size error", ExceptionCode.INDEX_SIZE_ERR = 1, ExceptionMessage[2] = "DOMString size error", ExceptionCode.DOMSTRING_SIZE_ERR = 2;
ExceptionCode.INDEX_SIZE_ERR = (ExceptionMessage[1] = "Index size error", 1), ExceptionCode.DOMSTRING_SIZE_ERR = (ExceptionMessage[2] = "DOMString size error", 2);
var HIERARCHY_REQUEST_ERR = ExceptionCode.HIERARCHY_REQUEST_ERR = (ExceptionMessage[3] = "Hierarchy request error", 3);
ExceptionMessage[4] = "Wrong document", ExceptionCode.WRONG_DOCUMENT_ERR = 4, ExceptionMessage[5] = "Invalid character", ExceptionCode.INVALID_CHARACTER_ERR = 5, ExceptionMessage[6] = "No data allowed", ExceptionCode.NO_DATA_ALLOWED_ERR = 6, ExceptionMessage[7] = "No modification allowed", ExceptionCode.NO_MODIFICATION_ALLOWED_ERR = 7;
ExceptionCode.WRONG_DOCUMENT_ERR = (ExceptionMessage[4] = "Wrong document", 4), ExceptionCode.INVALID_CHARACTER_ERR = (ExceptionMessage[5] = "Invalid character", 5), ExceptionCode.NO_DATA_ALLOWED_ERR = (ExceptionMessage[6] = "No data allowed", 6), ExceptionCode.NO_MODIFICATION_ALLOWED_ERR = (ExceptionMessage[7] = "No modification allowed", 7);
var NOT_FOUND_ERR = ExceptionCode.NOT_FOUND_ERR = (ExceptionMessage[8] = "Not found", 8);
ExceptionCode.NOT_SUPPORTED_ERR = (ExceptionMessage[9] = "Not supported", 9);
var INUSE_ATTRIBUTE_ERR = ExceptionCode.INUSE_ATTRIBUTE_ERR = (ExceptionMessage[10] = "Attribute in use", 10);
@ -1344,7 +1344,7 @@
function __set__(object, key, value) {
object[key] = value;
}
ExceptionMessage[11] = "Invalid state", ExceptionCode.INVALID_STATE_ERR = 11, ExceptionMessage[12] = "Syntax error", ExceptionCode.SYNTAX_ERR = 12, ExceptionMessage[13] = "Invalid modification", ExceptionCode.INVALID_MODIFICATION_ERR = 13, ExceptionMessage[14] = "Invalid namespace", ExceptionCode.NAMESPACE_ERR = 14, ExceptionMessage[15] = "Invalid access", ExceptionCode.INVALID_ACCESS_ERR = 15, DOMException.prototype = Error.prototype, copy(ExceptionCode, DOMException), NodeList.prototype = {
ExceptionCode.INVALID_STATE_ERR = (ExceptionMessage[11] = "Invalid state", 11), ExceptionCode.SYNTAX_ERR = (ExceptionMessage[12] = "Syntax error", 12), ExceptionCode.INVALID_MODIFICATION_ERR = (ExceptionMessage[13] = "Invalid modification", 13), ExceptionCode.NAMESPACE_ERR = (ExceptionMessage[14] = "Invalid namespace", 14), ExceptionCode.INVALID_ACCESS_ERR = (ExceptionMessage[15] = "Invalid access", 15), DOMException.prototype = Error.prototype, copy(ExceptionCode, DOMException), NodeList.prototype = {
length: 0,
item: function(index) {
return this[index] || null;
@ -3144,9 +3144,9 @@
return o[k];
})).map(function(playlist) {
var l, key;
return l = playlist.segments, key = "discontinuity", playlist.discontinuityStarts = l.reduce(function(a, e, i) {
return playlist.discontinuityStarts = (l = playlist.segments, key = "discontinuity", l.reduce(function(a, e, i) {
return e[key] && a.push(i), a;
}, []), playlist;
}, [])), playlist;
});
}, addSidxSegmentsToPlaylist$1 = function(playlist, sidxMapping) {
var sidxKey = generateSidxKey(playlist.sidx), sidxMatch = sidxKey && sidxMapping[sidxKey] && sidxMapping[sidxKey].sidx;

View File

@ -38,7 +38,7 @@
}) : obj[key] = value, obj;
}
__webpack_require__(6774);
var fn, _ref, initBranch = (fn = _Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {
var fn, _ref, initBranch = (_ref = (fn = _Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0___default().mark(function _callee() {
return _Users_kdy1_projects_lab_swc_minify_issue_node_modules_next_dist_compiled_regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0___default().wrap(function(_ctx) {
for(;;)switch(_ctx.prev = _ctx.next){
case 0:
@ -67,7 +67,7 @@
return _ctx.stop();
}
}, _callee);
}), _ref = function() {
}), function() {
var self = this, args = arguments;
return new Promise(function(resolve, reject) {
var gen = fn.apply(self, args);
@ -79,7 +79,7 @@
}
_next(void 0);
});
}, function() {
}), function() {
return _ref.apply(this, arguments);
});
__webpack_exports__.default = function(param) {

View File

@ -9584,3 +9584,32 @@ fn plotly_1() {
run_exec_test(src, config, false);
}
#[test]
fn internal_1() {
let src = r###"
function H (x) {
return function (y, z) {
return x._ + y + z
}
}
function P () {
var a = 0
a = {
_: 1
}
a.calc = H(a)
return a
}
console.log(P().calc(1, 1))
"###;
let config = r###"{
"defaults": true,
"toplevel": true
}"###;
run_exec_test(src, config, false);
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1864,7 +1864,7 @@
parseAbsoluteUrl(appBase, this, appBase), this.$$parse = function(url) {
var path, url1, base, firstPathSegmentMatch, windowsFilePathExp, withoutBaseUrl = beginsWith(appBase, url) || beginsWith(appBaseNoFile, url), withoutHashUrl = "#" == withoutBaseUrl.charAt(0) ? beginsWith(hashPrefix, withoutBaseUrl) : this.$$html5 ? withoutBaseUrl : "";
if (!isString(withoutHashUrl)) throw $locationMinErr("ihshprfx", 'Invalid url "{0}", missing hash prefix "{1}".', url, hashPrefix);
parseAppUrl(withoutHashUrl, this, appBase), path = this.$$path, url1 = withoutHashUrl, base = appBase, windowsFilePathExp = /^\/?.*?:(\/.*)/, 0 === url1.indexOf(base) && (url1 = url1.replace(base, "")), this.$$path = windowsFilePathExp.exec(url1) ? path : (firstPathSegmentMatch = windowsFilePathExp.exec(path)) ? firstPathSegmentMatch[1] : path, this.$$compose();
parseAppUrl(withoutHashUrl, this, appBase), this.$$path = (path = this.$$path, url1 = withoutHashUrl, base = appBase, windowsFilePathExp = /^\/?.*?:(\/.*)/, (0 === url1.indexOf(base) && (url1 = url1.replace(base, "")), windowsFilePathExp.exec(url1)) ? path : (firstPathSegmentMatch = windowsFilePathExp.exec(path)) ? firstPathSegmentMatch[1] : path), this.$$compose();
}, this.$$compose = function() {
var search = toKeyValue(this.$$search), hash = this.$$hash ? "#" + encodeUriSegment(this.$$hash) : "";
this.$$url = encodePath(this.$$path) + (search ? "?" + search : "") + hash, this.$$absUrl = appBase + (this.$$url ? hashPrefix + this.$$url : "");

View File

@ -1242,10 +1242,10 @@
reset: function() {
base1.element.attr("href", $13.mobile.path.documentBase.hrefNoSearch);
}
}, $13.mobile.base = base1, $14 = jQuery, $14.mobile.widgets = {}, originalWidget = $14.widget, keepNativeFactoryDefault = $14.mobile.keepNative, orig1 = $14.widget, $14.widget = function() {
}, $13.mobile.base = base1, $14 = jQuery, $14.mobile.widgets = {}, originalWidget = $14.widget, keepNativeFactoryDefault = $14.mobile.keepNative, $14.widget = (orig1 = $14.widget, function() {
var constructor = orig1.apply(this, arguments), name = constructor.prototype.widgetName;
return constructor.initSelector = undefined5 !== constructor.prototype.initSelector ? constructor.prototype.initSelector : ":jqmData(role='" + name + "')", $14.mobile.widgets[name] = constructor, constructor;
}, $14.extend($14.widget, originalWidget), $14.mobile.document.on("create", function(event) {
}), $14.extend($14.widget, originalWidget), $14.mobile.document.on("create", function(event) {
$14(event.target).enhanceWithin();
}), $14.widget("mobile.page", {
options: {
@ -4387,9 +4387,9 @@
_setWidget: function(widget) {
if (!this._widget && widget) {
var self, orig;
this._widget = widget, self = this, orig = this._widget._setOptions, this._widget._setOptions = function(options) {
this._widget = widget, this._widget._setOptions = (self = this, orig = this._widget._setOptions, function(options) {
orig.call(this, options), self._syncTextInputOptions(options);
};
});
}
return this._widget && (this._syncTextInputOptions(this._widget.options), "listview" === this._widget.widgetName && (this._widget.options.hideDividers = !0, this._widget.element.listview("refresh"))), !!this._widget;
},

View File

@ -764,19 +764,19 @@ var $try = Function.attempt;
},
Plugins: {}
};
Browser[Browser.name] = !0, Browser[Browser.name + parseInt(Browser.version, 10)] = !0, Browser.Platform[Browser.Platform.name] = !0, XMLHTTP = function() {
Browser[Browser.name] = !0, Browser[Browser.name + parseInt(Browser.version, 10)] = !0, Browser.Platform[Browser.Platform.name] = !0, Browser.Request = (XMLHTTP = function() {
return new XMLHttpRequest();
}, MSXML2 = function() {
return new ActiveXObject("MSXML2.XMLHTTP");
}, MSXML = function() {
return new ActiveXObject("Microsoft.XMLHTTP");
}, Browser.Request = Function.attempt(function() {
}, Function.attempt(function() {
return XMLHTTP(), XMLHTTP;
}, function() {
return MSXML2(), MSXML2;
}, function() {
return MSXML(), MSXML;
}), Browser.Features.xhr = !!Browser.Request;
})), Browser.Features.xhr = !!Browser.Request;
var version1 = (Function.attempt(function() {
return navigator.plugins["Shockwave Flash"].description;
}, function() {
@ -1687,9 +1687,9 @@ var Element = function(tag, props) {
}
return document.newElement(tag, props);
};
Browser.Element && (Element.prototype = Browser.Element.prototype, fireEvent = Element.prototype.fireEvent, Element.prototype._fireEvent = function(type, event) {
Browser.Element && (Element.prototype = Browser.Element.prototype, Element.prototype._fireEvent = (fireEvent = Element.prototype.fireEvent, function(type, event) {
return fireEvent.call(this, type, event);
}), new Type("Element", Element).mirror(function(name) {
})), new Type("Element", Element).mirror(function(name) {
if (!Array.prototype[name]) {
var obj = {};
obj[name] = function() {

View File

@ -7015,7 +7015,7 @@
return null;
}
var currentHostContext = getHostContext();
if (popHydrationState(workInProgress)) fiber = workInProgress, hostContext1 = currentHostContext, instance = fiber.stateNode, type9 = fiber.type, props7 = fiber.memoizedProps, hostContext2 = hostContext1, internalInstanceHandle1 = fiber, precacheFiberNode(internalInstanceHandle1, instance), updateFiberProps(instance, props7), updatePayload1 = function(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
if (popHydrationState(workInProgress)) fiber = workInProgress, hostContext1 = currentHostContext, updatePayload1 = (instance = fiber.stateNode, type9 = fiber.type, props7 = fiber.memoizedProps, hostContext2 = hostContext1, internalInstanceHandle1 = fiber, precacheFiberNode(internalInstanceHandle1, instance), updateFiberProps(instance, props7), function(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
switch(suppressHydrationWarning = !0 === rawProps[SUPPRESS_HYDRATION_WARNING], isCustomComponentTag = isCustomComponent(tag, rawProps), validatePropertiesInDevelopment(tag, rawProps), tag){
case "dialog":
listenToNonDelegatedEvent("cancel", domElement), listenToNonDelegatedEvent("close", domElement);
@ -7127,7 +7127,7 @@
break;
}
return updatePayload;
}(instance, type9, props7, hostContext2.namespace), fiber.updateQueue = updatePayload1, null !== updatePayload1 && markUpdate(workInProgress);
}(instance, type9, props7, hostContext2.namespace)), fiber.updateQueue = updatePayload1, null !== updatePayload1 && markUpdate(workInProgress);
else {
var type8, props9, rootContainerInstance1, hostContext, internalInstanceHandle, hostContextDev, domElement1, fiber, hostContext1, instance, type9, props7, hostContext2, internalInstanceHandle1, updatePayload1, type10, props8, instance7 = (type8 = type11, props9 = newProps, rootContainerInstance1 = rootContainerInstance, hostContext = currentHostContext, internalInstanceHandle = workInProgress, validateDOMNesting(type8, null, (hostContextDev = hostContext).ancestorInfo), ("string" == typeof props9.children || "number" == typeof props9.children) && validateDOMNesting(null, "" + props9.children, updatedAncestorInfo(hostContextDev.ancestorInfo, type8)), precacheFiberNode(internalInstanceHandle, domElement1 = function(type, props, rootContainerElement, parentNamespace) {
var isCustomComponentTag, domElement, ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement), namespaceURI = parentNamespace;
@ -8426,7 +8426,7 @@
var prevExecutionContext = executionContext;
executionContext |= 32;
var focusedElem, input1, prevInteractions = pushInteractions(root6);
ReactCurrentOwner$2.current = null, root6.containerInfo, eventsEnabled = _enabled, selectionInformation = {
ReactCurrentOwner$2.current = null, focusedInstanceHandle = (root6.containerInfo, eventsEnabled = _enabled, selectionInformation = {
focusedElem: focusedElem = getActiveElementDeep(),
selectionRange: hasSelectionCapabilities(focusedElem) ? ("selectionStart" in (input1 = focusedElem) ? {
start: input1.selectionStart,
@ -8463,7 +8463,7 @@
start: 0,
end: 0
} : null
}, setEnabled(!1), focusedInstanceHandle = null, shouldFireAfterActiveInstanceBlur = !1, nextEffect = firstEffect;
}, setEnabled(!1), null), shouldFireAfterActiveInstanceBlur = !1, nextEffect = firstEffect;
do if (invokeGuardedCallback(null, commitBeforeMutationEffects, null), hasCaughtError()) {
if (!(null !== nextEffect)) throw Error("Should be working on an effect.");
captureCommitPhaseError(nextEffect, clearCaughtError()), nextEffect = nextEffect.nextEffect;
@ -9334,7 +9334,7 @@
function createRootImpl(container, tag, options) {
var hydrate = null != options && !0 === options.hydrate;
null != options && options.hydrationOptions;
var containerInfo, tag2, hydrate1, containerInfo1, tag3, hydrate2, root, tag4, mode, uninitializedFiber, hostRoot, mutableSources = null != options && null != options.hydrationOptions && options.hydrationOptions.mutableSources || null, root7 = (containerInfo = container, tag2 = tag, hydrate1 = hydrate, containerInfo1 = containerInfo, tag3 = tag2, hydrate2 = hydrate1, root = new FiberRootNode(containerInfo1, tag3, hydrate2), mode = 2 === (tag4 = tag3) ? 7 : 1 === tag4 ? 3 : 0, isDevToolsPresent && (mode |= 8), uninitializedFiber = createFiber(3, null, null, mode), root.current = uninitializedFiber, uninitializedFiber.stateNode = root, initializeUpdateQueue(uninitializedFiber), root);
var containerInfo, tag2, hydrate1, containerInfo1, tag3, hydrate2, root, tag4, mode, uninitializedFiber, hostRoot, mutableSources = null != options && null != options.hydrationOptions && options.hydrationOptions.mutableSources || null, root7 = (containerInfo = container, tag2 = tag, hydrate1 = hydrate, containerInfo1 = containerInfo, tag3 = tag2, hydrate2 = hydrate1, root = new FiberRootNode(containerInfo1, tag3, hydrate2), uninitializedFiber = (mode = 2 === (tag4 = tag3) ? 7 : 1 === tag4 ? 3 : 0, isDevToolsPresent && (mode |= 8), createFiber(3, null, null, mode)), root.current = uninitializedFiber, uninitializedFiber.stateNode = root, initializeUpdateQueue(uninitializedFiber), root);
hostRoot = root7.current, container[internalContainerInstanceKey] = hostRoot, container.nodeType;
var rootContainerElement = 8 === container.nodeType ? container.parentNode : container;
if (listenToAllSupportedEvents(rootContainerElement), mutableSources) for(var i = 0; i < mutableSources.length; i++)registerMutableSourceForHydration(root7, mutableSources[i]);