feat(es/minifier): Inline more lazily initialized vars (#6089)

This commit is contained in:
Austaras 2022-10-10 08:53:50 +08:00 committed by GitHub
parent 4f92225db7
commit 657e5b3111
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
46 changed files with 369 additions and 366 deletions

View File

@ -8,7 +8,7 @@ Promise.all(assignAll).then(function() {
switch(a.label){
case 0:
for(c in e = function(u) {
var t, e;
var t;
return n(this, function(n) {
switch(n.label){
case 0:

View File

@ -1,21 +1,20 @@
import r from "@swc/helpers/src/_async_to_generator.mjs";
import t from "@swc/helpers/src/_sliced_to_array.mjs";
import t from "@swc/helpers/src/_async_to_generator.mjs";
import r from "@swc/helpers/src/_sliced_to_array.mjs";
import e from "@swc/helpers/src/_ts_generator.mjs";
import { jsx as n, jsxs as s, Fragment as a } from "react/jsx-runtime";
import * as c from "react";
export default function i() {
var i = t(c.useState({
var i = r(c.useState({
hits: []
}), 2), o = i[0], u = i[1], l = t(c.useState("react"), 2), h = l[0], f = l[1];
}), 2), o = i[0], u = i[1], l = r(c.useState("react"), 2), h = l[0], f = l[1];
return c.useEffect(function() {
"" !== h && function() {
t.apply(this, arguments);
r.apply(this, arguments);
}();
function t() {
return (t = r(function() {
var r, t;
return e(this, function(r) {
switch(r.label){
function r() {
return (r = t(function() {
return e(this, function(t) {
switch(t.label){
case 0:
return [
4,
@ -24,10 +23,10 @@ export default function i() {
case 1:
return [
4,
r.sent().json()
t.sent().json()
];
case 2:
return u(r.sent()), [
return u(t.sent()), [
2
];
}
@ -40,18 +39,18 @@ export default function i() {
children: [
n("input", {
value: h,
onChange: function(r) {
return f(r.target.value);
onChange: function(t) {
return f(t.target.value);
}
}),
n("ul", {
children: o.hits.map(function(r) {
children: o.hits.map(function(t) {
return n("li", {
children: n("a", {
href: r.url,
children: r.title
href: t.url,
children: t.title
})
}, r.objectID);
}, t.objectID);
})
})
]

View File

@ -10,16 +10,16 @@ s = s || "";
var _ = null, u = __webpack_hash__, d = s + (s.endsWith("/") ? "" : "/") + "_next/static/webpack/";
function p() {
return (p = e(function() {
var e, a, r, n, c;
return t(this, function(e) {
switch(e.label){
var e, a;
return t(this, function(t) {
switch(t.label){
case 0:
if (!(_ !== __webpack_hash__) || "idle" !== module.hot.status()) return [
2
];
e.label = 1;
t.label = 1;
case 1:
return e.trys.push([
return t.trys.push([
1,
4,
,
@ -31,17 +31,17 @@ function p() {
case 2:
return [
4,
e.sent().json()
t.sent().json()
];
case 3:
return a = e.sent(), r = "/" === i ? "index" : i, (Array.isArray(a.c) ? a.c : Object.keys(a.c)).some(function(e) {
return -1 !== e.indexOf("pages".concat(r.startsWith("/") ? r : "/".concat(r))) || -1 !== e.indexOf("pages".concat(r.startsWith("/") ? r : "/".concat(r)).replace(/\//g, "\\"));
return e = t.sent(), a = "/" === i ? "index" : i, (Array.isArray(e.c) ? e.c : Object.keys(e.c)).some(function(e) {
return -1 !== e.indexOf("pages".concat(a.startsWith("/") ? a : "/".concat(a))) || -1 !== e.indexOf("pages".concat(a.startsWith("/") ? a : "/".concat(a)).replace(/\//g, "\\"));
}) ? document.location.reload(!0) : u = _, [
3,
5
];
case 4:
return console.error("Error occurred checking for update", e.sent()), document.location.reload(!0), [
return console.error("Error occurred checking for update", t.sent()), document.location.reload(!0), [
3,
5
];

View File

@ -44,12 +44,22 @@ impl Storage for ProgramData {
Entry::Occupied(mut e) => {
e.get_mut().inline_prevented |= var_info.inline_prevented;
e.get_mut().ref_count += var_info.ref_count;
e.get_mut().cond_init |= if !inited && e.get().var_initialized {
true
} else {
var_info.cond_init
};
if var_info.var_initialized {
if e.get().var_initialized || e.get().ref_count > 0 {
e.get_mut().assign_count += 1;
e.get_mut().reassigned_with_assignment = true;
} else {
// If it is referred outside child scope, it will
// be marked as var_initialized false
e.get_mut().var_initialized = true;
}
}
e.get_mut().ref_count += var_info.ref_count;
e.get_mut().reassigned_with_assignment |= var_info.reassigned_with_assignment;
e.get_mut().reassigned_with_var_decl |= var_info.reassigned_with_var_decl;
@ -94,13 +104,6 @@ impl Storage for ProgramData {
e.get_mut().is_fn_local &= var_info.is_fn_local;
e.get_mut().used_in_non_child_fn |= var_info.used_in_non_child_fn;
if var_info.var_initialized {
if e.get().var_initialized || e.get().ref_count > 0 {
e.get_mut().assign_count += 1;
e.get_mut().reassigned_with_assignment = true;
}
}
match kind {
ScopeKind::Fn => {
e.get_mut().is_fn_local = false;

View File

@ -1969,9 +1969,9 @@
var t0, i0;
function tween() {
var fullname1, i, i1 = value.apply(this, arguments);
return i1 !== i0 && (t0 = (i0 = i1) && (fullname1 = fullname, i = i1, function(t) {
this.setAttributeNS(fullname1.space, fullname1.local, i.call(this, t));
})), t0;
return i1 !== i0 && (t0 = (i0 = i1) && function(t) {
this.setAttributeNS(fullname.space, fullname.local, i1.call(this, t));
}), t0;
}
return tween._value = value, tween;
}
@ -1979,9 +1979,9 @@
var t0, i0;
function tween() {
var name1, i, i1 = value.apply(this, arguments);
return i1 !== i0 && (t0 = (i0 = i1) && (name1 = name, i = i1, function(t) {
this.setAttribute(name1, i.call(this, t));
})), t0;
return i1 !== i0 && (t0 = (i0 = i1) && function(t) {
this.setAttribute(name, i1.call(this, t));
}), t0;
}
return tween._value = value, tween;
}
@ -2124,9 +2124,9 @@
var t, i0;
function tween() {
var name1, i, priority1, i1 = value.apply(this, arguments);
return i1 !== i0 && (t = (i0 = i1) && (name1 = name, i = i1, priority1 = priority, function(t) {
this.style.setProperty(name1, i.call(this, t), priority1);
})), t;
return i1 !== i0 && (t = (i0 = i1) && function(t) {
this.style.setProperty(name, i1.call(this, t), priority);
}), t;
}
return tween._value = value, tween;
}(name, value, null == priority ? "" : priority));
@ -2149,9 +2149,9 @@
var t0, i0;
function tween() {
var i, i1 = value.apply(this, arguments);
return i1 !== i0 && (t0 = (i0 = i1) && (i = i1, function(t) {
this.textContent = i.call(this, t);
})), t0;
return i1 !== i0 && (t0 = (i0 = i1) && function(t) {
this.textContent = i1.call(this, t);
}), t0;
}
return tween._value = value, tween;
}(value));
@ -5698,12 +5698,12 @@
}
return projection.stream = function(stream) {
var rotate1;
return cache && cacheStream === stream ? cache : cache = transformRadians((rotate1 = rotate, transformer({
return cache && cacheStream === stream ? cache : cache = transformRadians(transformer({
point: function(x, y) {
var r = rotate1(x, y);
var r = rotate(x, y);
return this.stream.point(r[0], r[1]);
}
}))(preclip(projectResample(postclip(cacheStream = stream)))));
})(preclip(projectResample(postclip(cacheStream = stream)))));
}, projection.preclip = function(_) {
return arguments.length ? (preclip = _, theta = void 0, reset()) : preclip;
}, projection.postclip = function(_) {
@ -6203,7 +6203,7 @@
for(var node, nodes = parent.children, i = -1, n = nodes.length, k = parent.value && (x1 - x0) / parent.value; ++i < n;)(node = nodes[i]).y0 = y0, node.y1 = y1, node.x0 = x0, node.x1 = x0 += node.value * k;
}
equalEarthRaw.invert = function(x, y) {
for(var delta, fy, fpy, l = y, l2 = l * l, l6 = l2 * l2 * l2, i = 0; i < 12 && (fy = l * (1.340264 + -0.081106 * l2 + l6 * (0.000893 + 0.003796 * l2)) - y, l -= delta = fy / (1.340264 + -0.24331799999999998 * l2 + l6 * (0.0062510000000000005 + 0.034164 * l2)), l6 = (l2 = l * l) * l2 * l2, !(1e-12 > abs$2(delta))); ++i);
for(var delta, fy, l = y, l2 = l * l, l6 = l2 * l2 * l2, i = 0; i < 12 && (fy = l * (1.340264 + -0.081106 * l2 + l6 * (0.000893 + 0.003796 * l2)) - y, l -= delta = fy / (1.340264 + -0.24331799999999998 * l2 + l6 * (0.0062510000000000005 + 0.034164 * l2)), l6 = (l2 = l * l) * l2 * l2, !(1e-12 > abs$2(delta))); ++i);
return [
M * x * (1.340264 + -0.24331799999999998 * l2 + l6 * (0.0062510000000000005 + 0.034164 * l2)) / cos$1(l),
asin(sin$1(l) / M)
@ -9046,7 +9046,7 @@
var previousNode, x = 0;
root.eachAfter(function(node) {
var children, children1 = node.children;
children1 ? (node.x = (children = children1).reduce(meanXReduce, 0) / children.length, node.y = 1 + children1.reduce(maxYReduce, 0)) : (node.x = previousNode ? x += separation(node, previousNode) : 0, node.y = 0, previousNode = node);
children1 ? (node.x = children1.reduce(meanXReduce, 0) / children1.length, node.y = 1 + children1.reduce(maxYReduce, 0)) : (node.x = previousNode ? x += separation(node, previousNode) : 0, node.y = 0, previousNode = node);
});
var left = function(node) {
for(var children; children = node.children;)node = children[0];
@ -10671,7 +10671,7 @@
for(var vim, v1, ancestor1, shift, vip = v, vop = v, vim1 = w, vom = vip.parent.children[0], sip = vip.m, sop = vop.m, sim = vim1.m, som = vom.m; vim1 = nextRight(vim1), vip = nextLeft(vip), vim1 && vip;)vom = nextLeft(vom), (vop = nextRight(vop)).a = v, (shift = vim1.z + sim - vip.z - sip + separation(vim1._, vip._)) > 0 && (function(wm, wp, shift) {
var change = shift / (wp.i - wm.i);
wp.c -= change, wp.s += shift, wm.c += change, wp.z += shift, wp.m += shift;
}((vim = vim1, v1 = v, ancestor1 = ancestor, vim.a.parent === v1.parent ? vim.a : ancestor1), v, shift), sip += shift, sop += shift), sim += vim1.m, sip += vip.m, som += vom.m, sop += vop.m;
}((vim = vim1, ancestor1 = ancestor, vim.a.parent === v.parent ? vim.a : ancestor1), v, shift), sip += shift, sop += shift), sim += vim1.m, sip += vip.m, som += vom.m, sop += vop.m;
vim1 && !nextRight(vop) && (vop.t = vim1, vop.m += sim - sop), vip && !nextLeft(vom) && (vom.t = vip, vom.m += sip - som, ancestor = v);
}
return ancestor;

View File

@ -873,23 +873,23 @@
}, Handler.prototype.dispatchToElement = function(targetInfo, eventName, event) {
var eveType, targetInfo1, event1, el = (targetInfo = targetInfo || {}).target;
if (!el || !el.silent) {
for(var eventKey = 'on' + eventName, eventPacket = (eveType = eventName, targetInfo1 = targetInfo, {
type: eveType,
event: event1 = event,
target: targetInfo1.target,
for(var eventKey = 'on' + eventName, eventPacket = {
type: eventName,
event: event,
target: (targetInfo1 = targetInfo).target,
topTarget: targetInfo1.topTarget,
cancelBubble: !1,
offsetX: event1.zrX,
offsetY: event1.zrY,
gestureEvent: event1.gestureEvent,
pinchX: event1.pinchX,
pinchY: event1.pinchY,
pinchScale: event1.pinchScale,
wheelDelta: event1.zrDelta,
zrByTouch: event1.zrByTouch,
which: event1.which,
offsetX: event.zrX,
offsetY: event.zrY,
gestureEvent: event.gestureEvent,
pinchX: event.pinchX,
pinchY: event.pinchY,
pinchScale: event.pinchScale,
wheelDelta: event.zrDelta,
zrByTouch: event.zrByTouch,
which: event.which,
stop: stopEvent
}); el && (el[eventKey] && (eventPacket.cancelBubble = !!el[eventKey].call(el, eventPacket)), el.trigger(eventName, eventPacket), el = el.__hostTarget ? el.__hostTarget : el.parent, !eventPacket.cancelBubble););
}; el && (el[eventKey] && (eventPacket.cancelBubble = !!el[eventKey].call(el, eventPacket)), el.trigger(eventName, eventPacket), el = el.__hostTarget ? el.__hostTarget : el.parent, !eventPacket.cancelBubble););
!eventPacket.cancelBubble && (this.trigger(eventName, eventPacket), this.painter && this.painter.eachOtherLayer && this.painter.eachOtherLayer(function(layer) {
'function' == typeof layer[eventKey] && layer[eventKey].call(layer, eventPacket), layer.trigger && layer.trigger(eventName, eventPacket);
}));
@ -2307,7 +2307,7 @@
}
}), arraySlice = Array.prototype.slice;
function interpolate1DArray(out, p0, p1, percent) {
for(var p01, p11, len = p0.length, i = 0; i < len; i++)out[i] = (p01 = p0[i], ((p11 = p1[i]) - p01) * percent + p01);
for(var p01, len = p0.length, i = 0; i < len; i++)out[i] = (p01 = p0[i], (p1[i] - p01) * percent + p01);
}
function add1DArray(out, p0, p1, sign) {
for(var len = p0.length, i = 0; i < len; i++)out[i] = p0[i] + p1[i] * sign;
@ -2459,13 +2459,13 @@
} else if (arrDim > 0) 1 === arrDim ? interpolate1DArray(targetArr, frame[valueKey], nextFrame[valueKey], w) : function(out, p0, p1, percent) {
for(var len = p0.length, len2 = len && p0[0].length, i = 0; i < len; i++){
out[i] || (out[i] = []);
for(var p01, p11, j = 0; j < len2; j++)out[i][j] = (p01 = p0[i][j], ((p11 = p1[i][j]) - p01) * percent + p01);
for(var p01, j = 0; j < len2; j++)out[i][j] = (p01 = p0[i][j], (p1[i][j] - p01) * percent + p01);
}
}(targetArr, frame[valueKey], nextFrame[valueKey], w);
else if (isValueColor) interpolate1DArray(targetArr, frame[valueKey], nextFrame[valueKey], w), isAdditive || (target[propName] = rgba2String(targetArr));
else {
var p01, p11, p02, p12, value = void 0;
this.interpolable ? (p01 = frame[valueKey], value = ((p11 = nextFrame[valueKey]) - p01) * w + p01) : (p02 = frame[valueKey], p12 = nextFrame[valueKey], value = w > 0.5 ? p12 : p02), isAdditive ? this._additiveValue = value : target[propName] = value;
var p01, p02, p11, value = void 0;
this.interpolable ? (p01 = frame[valueKey], value = (nextFrame[valueKey] - p01) * w + p01) : (p02 = frame[valueKey], p11 = nextFrame[valueKey], value = w > 0.5 ? p11 : p02), isAdditive ? this._additiveValue = value : target[propName] = value;
}
isAdditive && this._addToTarget(target);
}
@ -5067,7 +5067,7 @@
}
return this._pathLen = pathTotalLen, pathTotalLen;
}, PathProxy.prototype.rebuildPath = function(ctx, percent) {
var x0, y0, xi, yi, x, y, pathSegLen, pathTotalLen, displayedLength, d = this.data, ux = this._ux, uy = this._uy, len = this._len, drawPart = percent < 1, accumLength = 0, segCount = 0;
var x0, y0, xi, yi, x, y, pathSegLen, displayedLength, d = this.data, ux = this._ux, uy = this._uy, len = this._len, drawPart = percent < 1, accumLength = 0, segCount = 0;
if (!drawPart || (this._pathSegLen || this._calculateLength(), pathSegLen = this._pathSegLen, displayedLength = percent * this._pathLen)) lo: for(var i = 0; i < len;){
var cmd = d[i++], isFirst = 1 === i;
switch(isFirst && (xi = d[i], yi = d[i + 1], x0 = xi, y0 = yi), cmd){
@ -5199,7 +5199,7 @@
break;
case CMD$1.C:
if (isStroke) {
if (x01 = xi, y01 = yi, x11 = data[i++], y11 = data[i++], x2 = data[i++], y2 = data[i++], x3 = data[i], y3 = data[i + 1], lineWidth1 = lineWidth, x4 = x, y4 = y, 0 !== lineWidth1 && (!(y4 > y01 + lineWidth1) || !(y4 > y11 + lineWidth1) || !(y4 > y2 + lineWidth1) || !(y4 > y3 + lineWidth1)) && (!(y4 < y01 - lineWidth1) || !(y4 < y11 - lineWidth1) || !(y4 < y2 - lineWidth1) || !(y4 < y3 - lineWidth1)) && (!(x4 > x01 + lineWidth1) || !(x4 > x11 + lineWidth1) || !(x4 > x2 + lineWidth1) || !(x4 > x3 + lineWidth1)) && (!(x4 < x01 - lineWidth1) || !(x4 < x11 - lineWidth1) || !(x4 < x2 - lineWidth1) || !(x4 < x3 - lineWidth1)) && cubicProjectPoint(x01, y01, x11, y11, x2, y2, x3, y3, x4, y4, null) <= lineWidth1 / 2) return !0;
if (x01 = xi, y01 = yi, x11 = data[i++], y11 = data[i++], x2 = data[i++], y2 = data[i++], x3 = data[i], y3 = data[i + 1], 0 !== lineWidth && (!(y > y01 + lineWidth) || !(y > y11 + lineWidth) || !(y > y2 + lineWidth) || !(y > y3 + lineWidth)) && (!(y < y01 - lineWidth) || !(y < y11 - lineWidth) || !(y < y2 - lineWidth) || !(y < y3 - lineWidth)) && (!(x > x01 + lineWidth) || !(x > x11 + lineWidth) || !(x > x2 + lineWidth) || !(x > x3 + lineWidth)) && (!(x < x01 - lineWidth) || !(x < x11 - lineWidth) || !(x < x2 - lineWidth) || !(x < x3 - lineWidth)) && cubicProjectPoint(x01, y01, x11, y11, x2, y2, x3, y3, x, y, null) <= lineWidth / 2) return !0;
} else w += function(x0, y0, x1, y1, x2, y2, x3, y3, x, y) {
if (y > y0 && y > y1 && y > y2 && y > y3 || y < y0 && y < y1 && y < y2 && y < y3) return 0;
var nRoots = cubicRootAt(y0, y1, y2, y3, y, roots);
@ -5442,12 +5442,12 @@
}, Path.prototype.contain = function(x, y) {
var localPos = this.transformCoordToLocal(x, y), rect = this.getBoundingRect(), style = this.style;
if (x = localPos[0], y = localPos[1], rect.contain(x, y)) {
var pathProxy, x1, pathProxy1 = this.path;
var pathProxy, pathProxy1 = this.path;
if (this.hasStroke()) {
var pathProxy2, lineWidth, x2, lineWidth1 = style.lineWidth, lineScale = style.strokeNoScale ? this.getLineScale() : 1;
if (lineScale > 1e-10 && (this.hasFill() || (lineWidth1 = Math.max(lineWidth1, this.strokeContainThreshold)), pathProxy2 = pathProxy1, lineWidth = lineWidth1 / lineScale, containPath(pathProxy2, lineWidth, !0, x2 = x, y))) return !0;
var pathProxy2, lineWidth, lineWidth1 = style.lineWidth, lineScale = style.strokeNoScale ? this.getLineScale() : 1;
if (lineScale > 1e-10 && (this.hasFill() || (lineWidth1 = Math.max(lineWidth1, this.strokeContainThreshold)), lineWidth = lineWidth1 / lineScale, containPath(pathProxy1, lineWidth, !0, x, y))) return !0;
}
if (this.hasFill()) return pathProxy = pathProxy1, containPath(pathProxy, 0, !1, x1 = x, y);
if (this.hasFill()) return containPath(pathProxy1, 0, !1, x, y);
}
return !1;
}, Path.prototype.dirtyShape = function() {
@ -5622,7 +5622,7 @@
var ctx1, shape1, r1, r2, r3, r4, total, x, y, width, height, r, x1, y1, width1, height1, optimizedShape = subPixelOptimizeRect(subPixelOptimizeOutputShape, shape, this.style);
x1 = optimizedShape.x, y1 = optimizedShape.y, width1 = optimizedShape.width, height1 = optimizedShape.height, optimizedShape.r = shape.r, shape = optimizedShape;
} else x1 = shape.x, y1 = shape.y, width1 = shape.width, height1 = shape.height;
shape.r ? (ctx1 = ctx, x = (shape1 = shape).x, y = shape1.y, width = shape1.width, height = shape1.height, r = shape1.r, width < 0 && (x += width, width = -width), height < 0 && (y += height, height = -height), 'number' == typeof r ? r1 = r2 = r3 = r4 = r : r instanceof Array ? 1 === r.length ? r1 = r2 = r3 = r4 = r[0] : 2 === r.length ? (r1 = r3 = r[0], r2 = r4 = r[1]) : 3 === r.length ? (r1 = r[0], r2 = r4 = r[1], r3 = r[2]) : (r1 = r[0], r2 = r[1], r3 = r[2], r4 = r[3]) : r1 = r2 = r3 = r4 = 0, r1 + r2 > width && (total = r1 + r2, r1 *= width / total, r2 *= width / total), r3 + r4 > width && (total = r3 + r4, r3 *= width / total, r4 *= width / total), r2 + r3 > height && (total = r2 + r3, r2 *= height / total, r3 *= height / total), r1 + r4 > height && (total = r1 + r4, r1 *= height / total, r4 *= height / total), ctx1.moveTo(x + r1, y), ctx1.lineTo(x + width - r2, y), 0 !== r2 && ctx1.arc(x + width - r2, y + r2, r2, -Math.PI / 2, 0), ctx1.lineTo(x + width, y + height - r3), 0 !== r3 && ctx1.arc(x + width - r3, y + height - r3, r3, 0, Math.PI / 2), ctx1.lineTo(x + r4, y + height), 0 !== r4 && ctx1.arc(x + r4, y + height - r4, r4, Math.PI / 2, Math.PI), ctx1.lineTo(x, y + r1), 0 !== r1 && ctx1.arc(x + r1, y + r1, r1, Math.PI, 1.5 * Math.PI)) : ctx.rect(x1, y1, width1, height1);
shape.r ? (x = (shape1 = shape).x, y = shape1.y, width = shape1.width, height = shape1.height, r = shape1.r, width < 0 && (x += width, width = -width), height < 0 && (y += height, height = -height), 'number' == typeof r ? r1 = r2 = r3 = r4 = r : r instanceof Array ? 1 === r.length ? r1 = r2 = r3 = r4 = r[0] : 2 === r.length ? (r1 = r3 = r[0], r2 = r4 = r[1]) : 3 === r.length ? (r1 = r[0], r2 = r4 = r[1], r3 = r[2]) : (r1 = r[0], r2 = r[1], r3 = r[2], r4 = r[3]) : r1 = r2 = r3 = r4 = 0, r1 + r2 > width && (total = r1 + r2, r1 *= width / total, r2 *= width / total), r3 + r4 > width && (total = r3 + r4, r3 *= width / total, r4 *= width / total), r2 + r3 > height && (total = r2 + r3, r2 *= height / total, r3 *= height / total), r1 + r4 > height && (total = r1 + r4, r1 *= height / total, r4 *= height / total), ctx.moveTo(x + r1, y), ctx.lineTo(x + width - r2, y), 0 !== r2 && ctx.arc(x + width - r2, y + r2, r2, -Math.PI / 2, 0), ctx.lineTo(x + width, y + height - r3), 0 !== r3 && ctx.arc(x + width - r3, y + height - r3, r3, 0, Math.PI / 2), ctx.lineTo(x + r4, y + height), 0 !== r4 && ctx.arc(x + r4, y + height - r4, r4, Math.PI / 2, Math.PI), ctx.lineTo(x, y + r1), 0 !== r1 && ctx.arc(x + r1, y + r1, r1, Math.PI, 1.5 * Math.PI)) : ctx.rect(x1, y1, width1, height1);
}, Rect.prototype.isZeroArea = function() {
return !this.shape.width || !this.shape.height;
}, Rect;
@ -5966,7 +5966,7 @@
}
return state;
}(this, stateName, targetStates, state1);
if ('blur' === stateName) return el = this, stateName1 = stateName, state = state1, hasBlur = indexOf(el.currentStates, stateName1) >= 0, currentOpacity = el.style.opacity, fromState = hasBlur ? null : function(el, props, toStateName, defaultValue) {
if ('blur' === stateName) return state = state1, hasBlur = indexOf(this.currentStates, stateName) >= 0, currentOpacity = this.style.opacity, fromState = hasBlur ? null : function(el, props, toStateName, defaultValue) {
for(var style = el.style, fromState = {}, i = 0; i < props.length; i++){
var propName = props[i], val = style[propName];
fromState[propName] = null == val ? defaultValue && defaultValue[propName] : val;
@ -5976,9 +5976,9 @@
animator.__fromStateTransition && 0 > animator.__fromStateTransition.indexOf(toStateName) && 'style' === animator.targetName && animator.saveFinalToTarget(fromState, props);
}
return fromState;
}(el, [
}(this, [
'opacity'
], stateName1, {
], stateName, {
opacity: 1
}), null == (blurStyle = (state = state || {}).style || {}).opacity && (state = extend({}, state), blurStyle = extend({
opacity: hasBlur ? currentOpacity : 0.1 * fromState.opacity
@ -11662,7 +11662,7 @@
}
style.strokeFirst ? (styleHasStroke(style) && ctx.strokeText(text, style.x, style.y), styleHasFill(style) && ctx.fillText(text, style.x, style.y)) : (styleHasFill(style) && ctx.fillText(text, style.x, style.y), styleHasStroke(style) && ctx.strokeText(text, style.x, style.y)), hasLineDash && ctx.setLineDash([]);
}
}(ctx, el, style1)) : el instanceof ZRImage ? (2 !== scope.lastDrawType && (forceSetStyle = !0, scope.lastDrawType = 2), ctx1 = ctx, el1 = el, prevEl = prevEl1, forceSetAll = forceSetStyle, bindCommonProps(ctx1, getStyle(el1, (scope1 = scope).inHover), prevEl && getStyle(prevEl, scope1.inHover), forceSetAll, scope1), function(ctx, el, style) {
}(ctx, el, style1)) : el instanceof ZRImage ? (2 !== scope.lastDrawType && (forceSetStyle = !0, scope.lastDrawType = 2), forceSetAll = forceSetStyle, bindCommonProps(ctx, getStyle(el, scope.inHover), prevEl1 && getStyle(prevEl1, scope.inHover), forceSetAll, scope), function(ctx, el, style) {
var image = el.__image = createOrUpdateImage(style.image, el.__image, el, el.onload);
if (image && isImageReady(image)) {
var x = style.x || 0, y = style.y || 0, width = el.getWidth(), height = el.getHeight(), aspect = image.width / image.height;
@ -13571,14 +13571,14 @@
}, bindMouseEvent = function(zr, ecIns) {
zr.on('mouseover', function(e) {
var dispatcher, e1, api, ecData, _a, dispatchers, focusSelf, dispatcher1 = findEventDispatcher(e.target, isHighDownDispatcher);
dispatcher1 && (dispatcher = dispatcher1, e1 = e, api = ecIns._api, isHighDownDispatcher(dispatcher) || error('param should be highDownDispatcher'), dispatchers = (_a = findComponentHighDownDispatchers((ecData = getECData(dispatcher)).componentMainType, ecData.componentIndex, ecData.componentHighDownName, api)).dispatchers, focusSelf = _a.focusSelf, dispatchers ? (focusSelf && blurComponent(ecData.componentMainType, ecData.componentIndex, api), each(dispatchers, function(dispatcher) {
return enterEmphasisWhenMouseOver(dispatcher, e1);
})) : (blurSeries(ecData.seriesIndex, ecData.focus, ecData.blurScope, api), 'self' === ecData.focus && blurComponent(ecData.componentMainType, ecData.componentIndex, api), enterEmphasisWhenMouseOver(dispatcher, e1)), markStatusToUpdate(ecIns));
dispatcher1 && (api = ecIns._api, isHighDownDispatcher(dispatcher1) || error('param should be highDownDispatcher'), dispatchers = (_a = findComponentHighDownDispatchers((ecData = getECData(dispatcher1)).componentMainType, ecData.componentIndex, ecData.componentHighDownName, api)).dispatchers, focusSelf = _a.focusSelf, dispatchers ? (focusSelf && blurComponent(ecData.componentMainType, ecData.componentIndex, api), each(dispatchers, function(dispatcher) {
return enterEmphasisWhenMouseOver(dispatcher, e);
})) : (blurSeries(ecData.seriesIndex, ecData.focus, ecData.blurScope, api), 'self' === ecData.focus && blurComponent(ecData.componentMainType, ecData.componentIndex, api), enterEmphasisWhenMouseOver(dispatcher1, e)), markStatusToUpdate(ecIns));
}).on('mouseout', function(e) {
var dispatcher, e1, api, ecData, dispatchers, dispatcher1 = findEventDispatcher(e.target, isHighDownDispatcher);
dispatcher1 && (dispatcher = dispatcher1, e1 = e, api = ecIns._api, isHighDownDispatcher(dispatcher) || error('param should be highDownDispatcher'), allLeaveBlur(api), (dispatchers = findComponentHighDownDispatchers((ecData = getECData(dispatcher)).componentMainType, ecData.componentIndex, ecData.componentHighDownName, api).dispatchers) ? each(dispatchers, function(dispatcher) {
return leaveEmphasisWhenMouseOut(dispatcher, e1);
}) : leaveEmphasisWhenMouseOut(dispatcher, e1), markStatusToUpdate(ecIns));
dispatcher1 && (api = ecIns._api, isHighDownDispatcher(dispatcher1) || error('param should be highDownDispatcher'), allLeaveBlur(api), (dispatchers = findComponentHighDownDispatchers((ecData = getECData(dispatcher1)).componentMainType, ecData.componentIndex, ecData.componentHighDownName, api).dispatchers) ? each(dispatchers, function(dispatcher) {
return leaveEmphasisWhenMouseOut(dispatcher, e);
}) : leaveEmphasisWhenMouseOut(dispatcher1, e), markStatusToUpdate(ecIns));
}).on('click', function(e) {
var dispatcher = findEventDispatcher(e.target, function(target) {
return null != getECData(target).dataIndex;
@ -15146,10 +15146,10 @@
var extent, splitNumber1, minInterval1, maxInterval1, result, span, interval, precision, extent1 = this._extent, span1 = extent1[1] - extent1[0];
if (isFinite(span1)) {
span1 < 0 && (span1 = -span1, extent1.reverse());
var niceTickExtent, extent2, result1 = (extent = extent1, splitNumber1 = splitNumber, minInterval1 = minInterval, maxInterval1 = maxInterval, result = {}, span = extent[1] - extent[0], interval = result.interval = nice(span / splitNumber1, !0), null != minInterval1 && interval < minInterval1 && (interval = result.interval = minInterval1), null != maxInterval1 && interval > maxInterval1 && (interval = result.interval = maxInterval1), precision = result.intervalPrecision = getIntervalPrecision(interval), niceTickExtent = result.niceTickExtent = [
round(Math.ceil(extent[0] / interval) * interval, precision),
round(Math.floor(extent[1] / interval) * interval, precision)
], extent2 = extent, isFinite(niceTickExtent[0]) || (niceTickExtent[0] = extent2[0]), isFinite(niceTickExtent[1]) || (niceTickExtent[1] = extent2[1]), clamp(niceTickExtent, 0, extent2), clamp(niceTickExtent, 1, extent2), niceTickExtent[0] > niceTickExtent[1] && (niceTickExtent[0] = niceTickExtent[1]), result);
var niceTickExtent, extent2, result1 = (splitNumber1 = splitNumber, result = {}, span = extent1[1] - extent1[0], interval = result.interval = nice(span / splitNumber1, !0), null != minInterval && interval < minInterval && (interval = result.interval = minInterval), null != maxInterval && interval > maxInterval && (interval = result.interval = maxInterval), precision = result.intervalPrecision = getIntervalPrecision(interval), niceTickExtent = result.niceTickExtent = [
round(Math.ceil(extent1[0] / interval) * interval, precision),
round(Math.floor(extent1[1] / interval) * interval, precision)
], extent2 = extent1, isFinite(niceTickExtent[0]) || (niceTickExtent[0] = extent2[0]), isFinite(niceTickExtent[1]) || (niceTickExtent[1] = extent2[1]), clamp(niceTickExtent, 0, extent2), clamp(niceTickExtent, 1, extent2), niceTickExtent[0] > niceTickExtent[1] && (niceTickExtent[0] = niceTickExtent[1]), result);
this._intervalPrecision = result1.intervalPrecision, this._interval = result1.interval, this._niceExtent = result1.niceTickExtent;
}
}, IntervalScale.prototype.niceExtent = function(opt) {
@ -15846,18 +15846,18 @@
}
function makeLabelFormatter(axis) {
var tpl, tpl1, cb, labelFormatter = axis.getLabelModel().get('formatter'), categoryTickStart = 'category' === axis.type ? axis.scale.getExtent()[0] : null;
return 'time' === axis.scale.type ? (tpl = labelFormatter, function(tick, idx) {
return axis.scale.getFormattedLabel(tick, idx, tpl);
}) : 'string' == typeof labelFormatter ? (tpl1 = labelFormatter, function(tick) {
return 'time' === axis.scale.type ? function(tick, idx) {
return axis.scale.getFormattedLabel(tick, idx, labelFormatter);
} : 'string' == typeof labelFormatter ? function(tick) {
var label = axis.scale.getLabel(tick);
return tpl1.replace('{value}', null != label ? label : '');
}) : 'function' != typeof labelFormatter ? function(tick) {
return labelFormatter.replace('{value}', null != label ? label : '');
} : 'function' != typeof labelFormatter ? function(tick) {
return axis.scale.getLabel(tick);
} : (cb = labelFormatter, function(tick, idx) {
return null != categoryTickStart && (idx = tick.value - categoryTickStart), cb(getAxisRawValue(axis, tick), idx, null != tick.level ? {
} : function(tick, idx) {
return null != categoryTickStart && (idx = tick.value - categoryTickStart), labelFormatter(getAxisRawValue(axis, tick), idx, null != tick.level ? {
level: tick.level
} : null);
});
};
}
function getAxisRawValue(axis, tick) {
return 'category' === axis.type ? axis.scale.getLabel(tick) : tick.value;
@ -18114,10 +18114,10 @@
return null != interpolatedValue ? getDefaultInterpolatedLabel(data_2, interpolatedValue) : getDefaultLabel(data_2, dataIndex);
},
enableTextSetter: !0
}, (endLabelModel1 = endLabelModel, isHorizontal = (baseAxis = coordSys.getBaseAxis()).isHorizontal(), isBaseInversed = baseAxis.inverse, {
}, (isHorizontal = (baseAxis = coordSys.getBaseAxis()).isHorizontal(), isBaseInversed = baseAxis.inverse, {
normal: {
align: endLabelModel1.get('align') || (isHorizontal ? isBaseInversed ? 'right' : 'left' : 'center'),
verticalAlign: endLabelModel1.get('verticalAlign') || (isHorizontal ? 'middle' : isBaseInversed ? 'top' : 'bottom')
align: endLabelModel.get('align') || (isHorizontal ? isBaseInversed ? 'right' : 'left' : 'center'),
verticalAlign: endLabelModel.get('verticalAlign') || (isHorizontal ? 'middle' : isBaseInversed ? 'top' : 'bottom')
}
})), polyline.textConfig.position = null);
} else this._endLabel && (this._polyline.removeTextContent(), this._endLabel = null);
@ -21432,7 +21432,7 @@
function resetStateTriggerForRegion(viewBuildCtx, el, regionName, regionModel, mapOrGeoModel) {
el.highDownSilentOnTouch = !!mapOrGeoModel.get('selectedMode');
var el1, componentModel, componentHighDownName, ecData, emphasisModel = regionModel.getModel('emphasis'), focus = emphasisModel.get('focus');
return enableHoverEmphasis(el, focus, emphasisModel.get('blurScope')), viewBuildCtx.isGeo && (el1 = el, componentModel = mapOrGeoModel, componentHighDownName = regionName, (ecData = getECData(el1)).componentMainType = componentModel.mainType, ecData.componentIndex = componentModel.componentIndex, ecData.componentHighDownName = componentHighDownName), focus;
return enableHoverEmphasis(el, focus, emphasisModel.get('blurScope')), viewBuildCtx.isGeo && ((ecData = getECData(el)).componentMainType = mapOrGeoModel.mainType, ecData.componentIndex = mapOrGeoModel.componentIndex, ecData.componentHighDownName = regionName), focus;
}
var MapView = function(_super) {
function MapView() {
@ -26614,7 +26614,7 @@
return assert(this._mounted), this._brushType && this._doDisableBrush(), brushOption.brushType && this._doEnableBrush(brushOption), this;
}, BrushController.prototype._doEnableBrush = function(brushOption) {
var zr, resourceKey, userKey, zr1 = this._zr;
!this._enableGlobalPan && (zr = zr1, resourceKey = MUTEX_RESOURCE_KEY, userKey = this._uid, getStore(zr)[resourceKey] = userKey), each(this._handlers, function(handler, eventName) {
!this._enableGlobalPan && (userKey = this._uid, getStore(zr1)[MUTEX_RESOURCE_KEY] = userKey), each(this._handlers, function(handler, eventName) {
zr1.on(eventName, handler);
}), this._brushType = brushOption.brushType, this._brushOption = merge(clone(DEFAULT_BRUSH_OPT), brushOption, !0);
}, BrushController.prototype._doDisableBrush = function() {
@ -30981,7 +30981,7 @@
setStyle: function(key, val) {
assertNotReserved(key);
var value, style = tmpDuringScope.el.style;
return style && ((value = val) != value && warn('style.' + key + ' must not be assigned with NaN.'), style[key] = val, tmpDuringScope.isStyleDirty = !0), this;
return style && (val != val && warn('style.' + key + ' must not be assigned with NaN.'), style[key] = val, tmpDuringScope.isStyleDirty = !0), this;
},
getStyle: function(key) {
assertNotReserved(key);
@ -31204,7 +31204,7 @@
var optZ2 = elOption.z2;
null != optZ2 && (elDisplayable.z2 = optZ2 || 0);
for(var i = 0; i < STATES.length; i++)(function(elDisplayable, elOption, state) {
var stateObj, isNormal = state === NORMAL, elStateOpt = isNormal ? elOption : retrieveStateOption(elOption, state), optZ2 = elStateOpt ? elStateOpt.z2 : null;
var isNormal = state === NORMAL, elStateOpt = isNormal ? elOption : retrieveStateOption(elOption, state), optZ2 = elStateOpt ? elStateOpt.z2 : null;
null != optZ2 && ((isNormal ? elDisplayable : elDisplayable.ensureState(state)).z2 = optZ2 || 0);
})(elDisplayable, elOption, STATES[i]);
}
@ -34516,10 +34516,10 @@
var itemSize = +toolboxModel.get('itemSize'), featureOpts = toolboxModel.get('feature') || {}, features1 = this._features || (this._features = {}), featureNames = [];
each(featureOpts, function(opt, name) {
featureNames.push(name);
}), new DataDiffer(this._featureNames || [], featureNames).add(processFeature).update(processFeature).remove(curry(processFeature, null)).execute(), this._featureNames = featureNames, group = group1, componentModel = toolboxModel, api1 = api, boxLayoutParams = componentModel.getBoxLayoutParams(), padding = componentModel.get('padding'), rect = getLayoutRect(boxLayoutParams, viewportSize = {
width: api1.getWidth(),
height: api1.getHeight()
}, padding), boxLayout(componentModel.get('orient'), group, componentModel.get('itemGap'), rect.width, rect.height), positionElement(group, boxLayoutParams, viewportSize, padding), group1.add(makeBackground(group1.getBoundingRect(), toolboxModel)), group1.eachChild(function(icon) {
}), new DataDiffer(this._featureNames || [], featureNames).add(processFeature).update(processFeature).remove(curry(processFeature, null)).execute(), this._featureNames = featureNames, boxLayoutParams = toolboxModel.getBoxLayoutParams(), padding = toolboxModel.get('padding'), rect = getLayoutRect(boxLayoutParams, viewportSize = {
width: api.getWidth(),
height: api.getHeight()
}, padding), boxLayout(toolboxModel.get('orient'), group1, toolboxModel.get('itemGap'), rect.width, rect.height), positionElement(group1, boxLayoutParams, viewportSize, padding), group1.add(makeBackground(group1.getBoundingRect(), toolboxModel)), group1.eachChild(function(icon) {
var titleText = icon.__title, emphasisState = icon.ensureState('emphasis'), emphasisTextConfig = emphasisState.textConfig || (emphasisState.textConfig = {}), textContent = icon.getTextContent(), emphasisTextState = textContent && textContent.states.emphasis;
if (emphasisTextState && !isFunction(emphasisTextState) && titleText) {
var emphasisTextStyle = emphasisTextState.style || (emphasisTextState.style = {}), rect = getBoundingRect(titleText, ZRText.makeFont(emphasisTextStyle)), offsetX = icon.x + group1.x, offsetY = icon.y + group1.y + itemSize, needPutOnTop = !1;
@ -34899,13 +34899,13 @@
container.removeChild(root), self1._dom = null;
}
addEventListener(closeButton, 'click', close), addEventListener(refreshButton, 'click', function() {
var newOption, str, blockMetaList1, blocks, newOption1;
var newOption, blockMetaList1, blocks, newOption1;
if (null == contentToOption && null != optionToContent || null != contentToOption && null == optionToContent) {
console.warn('It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored.'), close();
return;
}
try {
'function' == typeof contentToOption ? newOption = contentToOption(viewMain, api.getOption()) : (str = textarea.value, blockMetaList1 = blockMetaList, blocks = str.split(RegExp('\n*' + BLOCK_SPLITER + '\n*', 'g')), newOption1 = {
'function' == typeof contentToOption ? newOption = contentToOption(viewMain, api.getOption()) : (blocks = textarea.value.split(RegExp('\n*' + BLOCK_SPLITER + '\n*', 'g')), newOption1 = {
series: []
}, each(blocks, function(block, idx) {
if (function(block) {
@ -34926,7 +34926,7 @@
series: series,
categories: categories
};
}(block), blockMeta = blockMetaList1[idx], axisKey = blockMeta.axisDim + 'Axis';
}(block), blockMeta = blockMetaList[idx], axisKey = blockMeta.axisDim + 'Axis';
blockMeta && (newOption1[axisKey] = newOption1[axisKey] || [], newOption1[axisKey][blockMeta.axisIndex] = {
data: result.categories
}, newOption1.series = newOption1.series.concat(result.series));
@ -35348,10 +35348,10 @@
lineY: 'y'
}[brushType], coordSys, coordRange);
}
}), ecModel = ecModel1, newSnapshot = snapshot, storedSnapshots = getStoreSnapshots(ecModel), each(newSnapshot, function(batchItem, dataZoomId) {
}), storedSnapshots = getStoreSnapshots(ecModel1), each(snapshot, function(batchItem, dataZoomId) {
for(var i = storedSnapshots.length - 1; i >= 0 && !storedSnapshots[i][dataZoomId]; i--);
if (i < 0) {
var dataZoomModel = ecModel.queryComponents({
var dataZoomModel = ecModel1.queryComponents({
mainType: 'dataZoom',
subType: 'select',
id: dataZoomId
@ -35365,7 +35365,7 @@
};
}
}
}), storedSnapshots.push(newSnapshot), this._dispatchZoomAction(snapshot);
}), storedSnapshots.push(snapshot), this._dispatchZoomAction(snapshot);
}
function setBatch(dimName, coordSys, minMax) {
var dimName1, axisModel, found, axis = coordSys.getAxis(dimName), axisModel1 = axis.model, dataZoomModel = (dimName1 = dimName, axisModel = axisModel1, ecModel1.eachComponent({
@ -35574,7 +35574,7 @@
var zrPainter = zr && zr.painter;
if (appendToBody) {
var out1, elFrom, elTarget, inX, zrViewportRoot = zrPainter && zrPainter.getViewportRoot();
zrViewportRoot && (out1 = out, elFrom = zrViewportRoot, elTarget = document.body, transformCoordWithViewport(_calcOut, elFrom, inX = zrX, zrY, !0) && transformCoordWithViewport(out1, elTarget, _calcOut[0], _calcOut[1]));
zrViewportRoot && (elTarget = document.body, transformCoordWithViewport(_calcOut, zrViewportRoot, zrX, zrY, !0) && transformCoordWithViewport(out, elTarget, _calcOut[0], _calcOut[1]));
} else {
out[0] = zrX, out[1] = zrY;
var viewportRootOffset = zrPainter && zrPainter.getViewportRootOffset();
@ -35612,18 +35612,18 @@
}, TooltipHTMLContent.prototype.show = function(tooltipModel, nearPointColor) {
clearTimeout(this._hideTimeout), clearTimeout(this._longHideTimeout);
var tooltipModel1, enableTransition, onlyFade, cssText, transitionDuration, backgroundColor, shadowBlur, shadowColor, shadowOffsetX, shadowOffsetY, textStyleModel, padding, duration, onlyFade1, transitionCurve, transitionOption, transitionText, textStyleModel1, cssText1, fontSize, color, shadowColor1, shadowBlur1, shadowOffsetX1, shadowOffsetY1, el = this.el, style = el.style, styleCoord = this._styleCoord;
el.innerHTML ? style.cssText = gCssText + (tooltipModel1 = tooltipModel, enableTransition = !this._firstShow, onlyFade = this._longHide, cssText = [], transitionDuration = tooltipModel1.get('transitionDuration'), backgroundColor = tooltipModel1.get('backgroundColor'), shadowBlur = tooltipModel1.get('shadowBlur'), shadowColor = tooltipModel1.get('shadowColor'), shadowOffsetX = tooltipModel1.get('shadowOffsetX'), shadowOffsetY = tooltipModel1.get('shadowOffsetY'), textStyleModel = tooltipModel1.getModel('textStyle'), padding = getPaddingFromTooltipModel(tooltipModel1, 'html'), cssText.push('box-shadow:' + (shadowOffsetX + "px " + shadowOffsetY + "px " + shadowBlur) + "px " + shadowColor), enableTransition && transitionDuration && cssText.push((duration = transitionDuration, onlyFade1 = onlyFade, transitionText = "opacity" + (transitionOption = " " + duration / 2 + "s " + (transitionCurve = 'cubic-bezier(0.23,1,0.32,1)')) + ",visibility" + transitionOption, onlyFade1 || (transitionOption = " " + duration + "s " + transitionCurve, transitionText += env1.transformSupported ? "," + TRANSFORM_VENDOR + transitionOption : ",left" + transitionOption + ",top" + transitionOption), CSS_TRANSITION_VENDOR + ':' + transitionText)), backgroundColor && (env1.canvasSupported ? cssText.push('background-color:' + backgroundColor) : (cssText.push('background-color:#' + toHex(backgroundColor)), cssText.push('filter:alpha(opacity=70)'))), each([
el.innerHTML ? style.cssText = gCssText + (enableTransition = !this._firstShow, onlyFade = this._longHide, cssText = [], transitionDuration = tooltipModel.get('transitionDuration'), backgroundColor = tooltipModel.get('backgroundColor'), shadowBlur = tooltipModel.get('shadowBlur'), shadowColor = tooltipModel.get('shadowColor'), shadowOffsetX = tooltipModel.get('shadowOffsetX'), shadowOffsetY = tooltipModel.get('shadowOffsetY'), textStyleModel = tooltipModel.getModel('textStyle'), padding = getPaddingFromTooltipModel(tooltipModel, 'html'), cssText.push('box-shadow:' + (shadowOffsetX + "px " + shadowOffsetY + "px " + shadowBlur) + "px " + shadowColor), enableTransition && transitionDuration && cssText.push((transitionText = "opacity" + (transitionOption = " " + transitionDuration / 2 + "s " + (transitionCurve = 'cubic-bezier(0.23,1,0.32,1)')) + ",visibility" + transitionOption, onlyFade || (transitionOption = " " + transitionDuration + "s " + transitionCurve, transitionText += env1.transformSupported ? "," + TRANSFORM_VENDOR + transitionOption : ",left" + transitionOption + ",top" + transitionOption), CSS_TRANSITION_VENDOR + ':' + transitionText)), backgroundColor && (env1.canvasSupported ? cssText.push('background-color:' + backgroundColor) : (cssText.push('background-color:#' + toHex(backgroundColor)), cssText.push('filter:alpha(opacity=70)'))), each([
'width',
'color',
'radius'
], function(name) {
var borderName = 'border-' + name, camelCase = toCamelCase(borderName), val = tooltipModel1.get(camelCase);
var borderName = 'border-' + name, camelCase = toCamelCase(borderName), val = tooltipModel.get(camelCase);
null != val && cssText.push(borderName + ':' + val + ('color' === name ? '' : 'px'));
}), cssText.push((cssText1 = [], fontSize = (textStyleModel1 = textStyleModel).get('fontSize'), (color = textStyleModel1.getTextColor()) && cssText1.push('color:' + color), cssText1.push('font:' + textStyleModel1.getFont()), fontSize && cssText1.push('line-height:' + Math.round(3 * fontSize / 2) + 'px'), shadowColor1 = textStyleModel1.get('textShadowColor'), shadowBlur1 = textStyleModel1.get('textShadowBlur') || 0, shadowOffsetX1 = textStyleModel1.get('textShadowOffsetX') || 0, shadowOffsetY1 = textStyleModel1.get('textShadowOffsetY') || 0, shadowColor1 && shadowBlur1 && cssText1.push('text-shadow:' + shadowOffsetX1 + 'px ' + shadowOffsetY1 + 'px ' + shadowBlur1 + 'px ' + shadowColor1), each([
}), cssText.push((cssText1 = [], fontSize = textStyleModel.get('fontSize'), (color = textStyleModel.getTextColor()) && cssText1.push('color:' + color), cssText1.push('font:' + textStyleModel.getFont()), fontSize && cssText1.push('line-height:' + Math.round(3 * fontSize / 2) + 'px'), shadowColor1 = textStyleModel.get('textShadowColor'), shadowBlur1 = textStyleModel.get('textShadowBlur') || 0, shadowOffsetX1 = textStyleModel.get('textShadowOffsetX') || 0, shadowOffsetY1 = textStyleModel.get('textShadowOffsetY') || 0, shadowColor1 && shadowBlur1 && cssText1.push('text-shadow:' + shadowOffsetX1 + 'px ' + shadowOffsetY1 + 'px ' + shadowBlur1 + 'px ' + shadowColor1), each([
'decoration',
'align'
], function(name) {
var val = textStyleModel1.get(name);
var val = textStyleModel.get(name);
val && cssText1.push('text-' + name + ':' + val);
}), cssText1.join(';'))), null != padding && cssText.push('padding:' + normalizeCssArray(padding).join('px ') + 'px'), cssText.join(';') + ';') + assembleTransform(styleCoord[0], styleCoord[1], !0) + "border-color:" + convertToColorString(nearPointColor) + ";" + (tooltipModel.get('extraCssText') || '') + ";pointer-event:" + (this._enterable ? 'auto' : 'none') : style.display = 'none', this._show = !0, this._firstShow = !1, this._longHide = !1;
}, TooltipHTMLContent.prototype.setContent = function(content, markers, tooltipModel, borderColor, arrowPosition) {
@ -40983,7 +40983,7 @@
for(var errMsg = '', valueGetterParam = getters.prepareGetValue(exprOption), subCondList = [], exprKeys = keys(exprOption), parserName = exprOption.parser, valueParser = parserName ? getRawValueParser(parserName) : null, i = 0; i < exprKeys.length; i++){
var op, rval, keyRaw = exprKeys[i];
if (!('parser' === keyRaw || getters.valueGetterAttrMap.get(keyRaw))) {
var op1 = hasOwn(RELATIONAL_EXPRESSION_OP_ALIAS_MAP, keyRaw) ? RELATIONAL_EXPRESSION_OP_ALIAS_MAP[keyRaw] : keyRaw, condValueRaw = exprOption[keyRaw], condValueParsed = valueParser ? valueParser(condValueRaw) : condValueRaw, evaluator = (op = op1, rval = condValueParsed, ('eq' === op || 'ne' === op ? new FilterEqualityComparator('eq' === op, rval) : hasOwn(ORDER_COMPARISON_OP_MAP, op) ? new FilterOrderComparator(op, rval) : null) || 'reg' === op1 && new RegExpEvaluator(condValueParsed));
var op1 = hasOwn(RELATIONAL_EXPRESSION_OP_ALIAS_MAP, keyRaw) ? RELATIONAL_EXPRESSION_OP_ALIAS_MAP[keyRaw] : keyRaw, condValueRaw = exprOption[keyRaw], condValueParsed = valueParser ? valueParser(condValueRaw) : condValueRaw, evaluator = ('eq' === op1 || 'ne' === op1 ? new FilterEqualityComparator('eq' === op1, condValueParsed) : hasOwn(ORDER_COMPARISON_OP_MAP, op1) ? new FilterOrderComparator(op1, condValueParsed) : null) || 'reg' === op1 && new RegExpEvaluator(condValueParsed);
evaluator || throwError(makePrintable('Illegal relational operation: "' + keyRaw + '" in condition:', exprOption)), subCondList.push(evaluator);
}
}

View File

@ -133,7 +133,7 @@
return first.length = i, first;
},
grep: function(elems, callback, invert) {
for(var callbackInverse, matches = [], i = 0, length = elems.length, callbackExpect = !invert; i < length; i++)!callback(elems[i], i) !== callbackExpect && matches.push(elems[i]);
for(var matches = [], i = 0, length = elems.length, callbackExpect = !invert; i < length; i++)!callback(elems[i], i) !== callbackExpect && matches.push(elems[i]);
return matches;
},
map: function(elems, callback, arg) {
@ -711,11 +711,11 @@
}
return elementMatcher(matchers);
}(match[i]))[expando] ? setMatchers1.push(cached) : elementMatchers1.push(cached);
(cached = compilerCache(selector, (elementMatchers = elementMatchers1, bySet = (setMatchers = setMatchers1).length > 0, byElement = elementMatchers.length > 0, superMatcher = function(seed, context, xml, results, outermost) {
(cached = compilerCache(selector, (bySet = setMatchers1.length > 0, byElement = elementMatchers1.length > 0, superMatcher = function(seed, context, xml, results, outermost) {
var elem, j, matcher, matchedCount = 0, i = "0", unmatched = seed && [], setMatched = [], contextBackup = outermostContext, elems = seed || byElement && Expr.find.TAG("*", outermost), dirrunsUnique = dirruns += null == contextBackup ? 1 : Math.random() || 0.1, len = elems.length;
for(outermost && (outermostContext = context == document || context || outermost); i !== len && null != (elem = elems[i]); i++){
if (byElement && elem) {
for(j = 0, context || elem.ownerDocument == document || (setDocument(elem), xml = !documentIsHTML); matcher = elementMatchers[j++];)if (matcher(elem, context || document, xml)) {
for(j = 0, context || elem.ownerDocument == document || (setDocument(elem), xml = !documentIsHTML); matcher = elementMatchers1[j++];)if (matcher(elem, context || document, xml)) {
results.push(elem);
break;
}
@ -724,12 +724,12 @@
bySet && ((elem = !matcher && elem) && matchedCount--, seed && unmatched.push(elem));
}
if (matchedCount += i, bySet && i !== matchedCount) {
for(j = 0; matcher = setMatchers[j++];)matcher(unmatched, setMatched, context, xml);
for(j = 0; matcher = setMatchers1[j++];)matcher(unmatched, setMatched, context, xml);
if (seed) {
if (matchedCount > 0) for(; i--;)unmatched[i] || setMatched[i] || (setMatched[i] = pop.call(results));
setMatched = condense(setMatched);
}
push.apply(results, setMatched), outermost && !seed && setMatched.length > 0 && matchedCount + setMatchers.length > 1 && Sizzle.uniqueSort(results);
push.apply(results, setMatched), outermost && !seed && setMatched.length > 0 && matchedCount + setMatchers1.length > 1 && Sizzle.uniqueSort(results);
}
return outermost && (dirruns = dirrunsUnique, outermostContext = contextBackup), unmatched;
}, bySet ? markFunction(superMatcher) : superMatcher))).selector = selector;
@ -1363,7 +1363,7 @@
]);
var rhtml = /<|&#?\w+;/;
function buildFragment(elems, context, scripts, selection, ignored) {
for(var elem, tmp, tag, wrap, attached, j, fragment = context.createDocumentFragment(), nodes = [], i = 0, l = elems.length; i < l; i++)if ((elem = elems[i]) || 0 === elem) {
for(var elem, tmp, wrap, attached, j, fragment = context.createDocumentFragment(), nodes = [], i = 0, l = elems.length; i < l; i++)if ((elem = elems[i]) || 0 === elem) {
if ("object" === toType(elem)) jQuery.merge(nodes, elem.nodeType ? [
elem
] : elem);
@ -1652,7 +1652,7 @@
return "true/" === (elem.type || "").slice(0, 5) ? elem.type = elem.type.slice(5) : elem.removeAttribute("type"), elem;
}
function cloneCopyEvent(src, dest) {
var i, l, type, pdataOld, udataOld, udataCur, events;
var i, l, type, udataOld, udataCur, events;
if (1 === dest.nodeType) {
if (dataPriv.hasData(src) && (events = dataPriv.get(src).events)) for(type in dataPriv.remove(dest, "handle events"), events)for(i = 0, l = events[type].length; i < l; i++)jQuery.event.add(dest, type, events[type][i]);
dataUser.hasData(src) && (udataOld = dataUser.access(src), udataCur = jQuery.extend({}, udataOld), dataUser.set(dest, udataCur));

View File

@ -633,7 +633,7 @@
if (isBuffer(value)) return cloneBuffer(value, isDeep);
if (tag == objectTag || tag == argsTag || isFunc && !object) {
if (result = isFlat || isFunc ? {} : initCloneObject(value), !isDeep) {
return isFlat ? (source = value, object1 = (object3 = result, source2 = value, object3 && copyObject(source2, keysIn(source2), object3)), copyObject(source, getSymbolsIn(source), object1)) : (source1 = value, object2 = baseAssign(result, value), copyObject(source1, getSymbols(source1), object2));
return isFlat ? (source = value, object1 = (object3 = result) && copyObject(value, keysIn(value), object3), copyObject(source, getSymbolsIn(source), object1)) : (source1 = value, object2 = baseAssign(result, value), copyObject(source1, getSymbols(source1), object2));
}
} else {
if (!cloneableTags[tag]) return object ? value : {};
@ -1518,7 +1518,7 @@
function createToPairs(keysFunc) {
return function(object) {
var set, index, result, object1, tag = getTag(object);
return tag == mapTag ? mapToArray(object) : tag == setTag ? (index = -1, result = Array((set = object).size), set.forEach(function(value) {
return tag == mapTag ? mapToArray(object) : tag == setTag ? (index = -1, result = Array(object.size), object.forEach(function(value) {
result[++index] = [
value,
value

View File

@ -535,7 +535,7 @@
return key ? key.toLowerCase().replace('_', '-') : key;
}
function loadLocale(name) {
var aliasedRequire, oldLocale = null;
var oldLocale = null;
if (void 0 === locales[name] && 'undefined' != typeof module && module && module.exports) try {
oldLocale = globalLocale._abbr, require('./locale/' + name), getSetGlobalLocale(oldLocale);
} catch (e) {
@ -745,8 +745,8 @@
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;
config._a = parsedArray, config._tzm = function(obsOffset, militaryOffset, numOffset) {
], secondStr && result.push(parseInt(secondStr, 10)), weekdayStr = match[1], parsedInput = result, 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 = result, config._tzm = function(obsOffset, militaryOffset, numOffset) {
if (obsOffset) return obsOffsets[obsOffset];
if (militaryOffset) return 0;
var hm = parseInt(numOffset, 10), m = hm % 100;
@ -760,7 +760,7 @@
function configFromArray(config) {
var config1, w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek, config2, nowValue, i, date, currentDate, expectedWeekday, yearToUse, input = [];
if (!config._d) {
for(config2 = config, nowValue = new Date(hooks.now()), currentDate = config2._useUTC ? [
for(nowValue = new Date(hooks.now()), currentDate = config._useUTC ? [
nowValue.getUTCFullYear(),
nowValue.getUTCMonth(),
nowValue.getUTCDate()
@ -784,9 +784,9 @@
}
config._a = [], getParsingFlags(config).empty = !0;
var locale, hour, meridiem, isPm, token, config1, token1, input, config2, i, parsedInput, tokens1, token2, skipped, era, string = '' + config._i, stringLength = string.length, totalParsedInputLength = 0;
for(i = 0, tokens1 = expandFormat(config._f, config._locale).match(formattingTokens) || []; i < tokens1.length; i++)if (token2 = tokens1[i], (parsedInput = (string.match((token = token2, config1 = config, hasOwnProp(regexes, token) ? regexes[token](config1._strict, config1._locale) : RegExp(regexEscape(token.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function(matched, p1, p2, p3, p4) {
for(i = 0, tokens1 = expandFormat(config._f, config._locale).match(formattingTokens) || []; i < tokens1.length; i++)if (token2 = tokens1[i], (parsedInput = (string.match(hasOwnProp(regexes, token2) ? regexes[token2](config._strict, config._locale) : RegExp(regexEscape(token2.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function(matched, p1, p2, p3, p4) {
return p1 || p2 || p3 || p4;
}))))) || [])[0]) && ((skipped = string.substr(0, string.indexOf(parsedInput))).length > 0 && getParsingFlags(config).unusedInput.push(skipped), string = string.slice(string.indexOf(parsedInput) + parsedInput.length), totalParsedInputLength += parsedInput.length), formatTokenFunctions[token2]) parsedInput ? getParsingFlags(config).empty = !1 : getParsingFlags(config).unusedTokens.push(token2), token1 = token2, input = parsedInput, config2 = config, null != input && hasOwnProp(tokens, token1) && tokens[token1](input, config2._a, config2, token1);
})))) || [])[0]) && ((skipped = string.substr(0, string.indexOf(parsedInput))).length > 0 && getParsingFlags(config).unusedInput.push(skipped), string = string.slice(string.indexOf(parsedInput) + parsedInput.length), totalParsedInputLength += parsedInput.length), formatTokenFunctions[token2]) parsedInput ? getParsingFlags(config).empty = !1 : getParsingFlags(config).unusedTokens.push(token2), null != parsedInput && hasOwnProp(tokens, token2) && tokens[token2](parsedInput, config._a, config, token2);
else config._strict && !parsedInput && getParsingFlags(config).unusedTokens.push(token2);
getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength, string.length > 0 && getParsingFlags(config).unusedInput.push(string), config._a[3] <= 12 && !0 === getParsingFlags(config).bigHour && config._a[3] > 0 && (getParsingFlags(config).bigHour = void 0), getParsingFlags(config).parsedDateParts = config._a.slice(0), getParsingFlags(config).meridiem = config._meridiem, config._a[3] = (locale = config._locale, hour = config._a[3], null == (meridiem = config._meridiem) ? hour : null != locale.meridiemHour ? locale.meridiemHour(hour, meridiem) : (null != locale.isPM && ((isPm = locale.isPM(meridiem)) && hour < 12 && (hour += 12), isPm || 12 !== hour || (hour = 0)), hour)), null !== (era = getParsingFlags(config).era) && (config._a[0] = config._locale.erasConvertYear(era, config._a[0])), configFromArray(config), checkOverflow(config);
}

View File

@ -218,14 +218,14 @@
}
if (key || ref) {
var props1, displayName, warnAboutAccessingKey, props2, displayName1, warnAboutAccessingRef, displayName2 = 'function' == typeof type ? type.displayName || type.name || 'Unknown' : type;
key && (props1 = props, displayName = displayName2, (warnAboutAccessingKey = function() {
specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName));
}).isReactWarning = !0, Object.defineProperty(props1, 'key', {
key && ((warnAboutAccessingKey = function() {
specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName2));
}).isReactWarning = !0, Object.defineProperty(props, 'key', {
get: warnAboutAccessingKey,
configurable: !0
})), ref && (props2 = props, displayName1 = displayName2, (warnAboutAccessingRef = function() {
specialPropRefWarningShown || (specialPropRefWarningShown = !0, error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName1));
}).isReactWarning = !0, Object.defineProperty(props2, 'ref', {
})), ref && ((warnAboutAccessingRef = function() {
specialPropRefWarningShown || (specialPropRefWarningShown = !0, error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName2));
}).isReactWarning = !0, Object.defineProperty(props, 'ref', {
get: warnAboutAccessingRef,
configurable: !0
}));

View File

@ -1602,7 +1602,7 @@
}(is_import)), is("punc", ",") && next();
next();
} else is("operator", "*") && (next(), is_import && is("name", "as") && (next(), name = as_symbol(is_import ? AST_SymbolImport : AST_SymbolExportForeign)), names = [
(is_import1 = is_import, name1 = name, foreign_type = is_import1 ? AST_SymbolImportForeign : AST_SymbolExportForeign, start = S.token, end = prev(), name1 = name1 || new (is_import1 ? AST_SymbolImport : AST_SymbolExport)({
(name1 = name, foreign_type = is_import ? AST_SymbolImportForeign : AST_SymbolExportForeign, start = S.token, end = prev(), name1 = name1 || new (is_import ? AST_SymbolImport : AST_SymbolExport)({
name: "*",
start: start,
end: end
@ -7315,7 +7315,7 @@
this.definition().fixed = !1;
}), def_reduce_vars(AST_SymbolRef, function(tw, descend, compressor) {
var tw1, compressor1, def, value, fixed_value, d = this.definition();
(d.references.push(this), 1 == d.references.length && !d.fixed && d.orig[0] instanceof AST_SymbolDefun && tw.loop_ids.set(d.id, tw.in_loop), void 0 !== d.fixed && safe_to_read(tw, d)) ? d.fixed && ((fixed_value = this.fixed_value()) instanceof AST_Lambda && is_recursive_ref(tw, d) ? d.recursive_refs++ : fixed_value && !compressor.exposed(d) && (tw1 = tw, compressor1 = compressor, def = d, compressor1.option("unused") && !def.scope.pinned() && def.references.length - def.recursive_refs == 1 && tw1.loop_ids.get(def.id) === tw1.in_loop) ? d.single_use = fixed_value instanceof AST_Lambda && !fixed_value.pinned() || fixed_value instanceof AST_Class || d.scope === this.scope && fixed_value.is_constant_expression() : d.single_use = !1, is_modified(compressor, tw, this, fixed_value, 0, !!(value = fixed_value) && (value.is_constant() || value instanceof AST_Lambda || value instanceof AST_This)) && (d.single_use ? d.single_use = "m" : d.fixed = !1)) : d.fixed = !1, mark_escaped(tw, d, this.scope, this, fixed_value, 0, 1);
(d.references.push(this), 1 == d.references.length && !d.fixed && d.orig[0] instanceof AST_SymbolDefun && tw.loop_ids.set(d.id, tw.in_loop), void 0 !== d.fixed && safe_to_read(tw, d)) ? d.fixed && ((fixed_value = this.fixed_value()) instanceof AST_Lambda && is_recursive_ref(tw, d) ? d.recursive_refs++ : fixed_value && !compressor.exposed(d) && compressor.option("unused") && !d.scope.pinned() && d.references.length - d.recursive_refs == 1 && tw.loop_ids.get(d.id) === tw.in_loop ? d.single_use = fixed_value instanceof AST_Lambda && !fixed_value.pinned() || fixed_value instanceof AST_Class || d.scope === this.scope && fixed_value.is_constant_expression() : d.single_use = !1, is_modified(compressor, tw, this, fixed_value, 0, !!(value = fixed_value) && (value.is_constant() || value instanceof AST_Lambda || value instanceof AST_This)) && (d.single_use ? d.single_use = "m" : d.fixed = !1)) : d.fixed = !1, mark_escaped(tw, d, this.scope, this, fixed_value, 0, 1);
}), def_reduce_vars(AST_Toplevel, function(tw, descend, compressor) {
this.globals.forEach(function(def) {
reset_def(compressor, def);

View File

@ -3389,12 +3389,12 @@
}
attribute.isInterleavedBufferAttribute && (attribute = attribute.data);
var data = buffers.get(attribute);
void 0 === data ? buffers.set(attribute, (attribute1 = attribute, bufferType1 = bufferType, array = attribute1.array, usage = attribute1.usage, buffer = gl.createBuffer(), gl.bindBuffer(bufferType1, buffer), gl.bufferData(bufferType1, array, usage), attribute1.onUploadCallback(), type = 5126, array instanceof Float32Array ? type = 5126 : array instanceof Float64Array ? console.warn('THREE.WebGLAttributes: Unsupported data buffer format: Float64Array.') : array instanceof Uint16Array ? attribute1.isFloat16BufferAttribute ? isWebGL2 ? type = 5131 : console.warn('THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.') : type = 5123 : array instanceof Int16Array ? type = 5122 : array instanceof Uint32Array ? type = 5125 : array instanceof Int32Array ? type = 5124 : array instanceof Int8Array ? type = 5120 : array instanceof Uint8Array && (type = 5121), {
void 0 === data ? buffers.set(attribute, (array = (attribute1 = attribute).array, usage = attribute1.usage, buffer = gl.createBuffer(), gl.bindBuffer(bufferType, buffer), gl.bufferData(bufferType, array, usage), attribute1.onUploadCallback(), type = 5126, array instanceof Float32Array ? type = 5126 : array instanceof Float64Array ? console.warn('THREE.WebGLAttributes: Unsupported data buffer format: Float64Array.') : array instanceof Uint16Array ? attribute1.isFloat16BufferAttribute ? isWebGL2 ? type = 5131 : console.warn('THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.') : type = 5123 : array instanceof Int16Array ? type = 5122 : array instanceof Uint32Array ? type = 5125 : array instanceof Int32Array ? type = 5124 : array instanceof Int8Array ? type = 5120 : array instanceof Uint8Array && (type = 5121), {
buffer: buffer,
type: type,
bytesPerElement: array.BYTES_PER_ELEMENT,
version: attribute1.version
})) : data.version < attribute.version && (buffer1 = data.buffer, attribute2 = attribute, bufferType2 = bufferType, array1 = attribute2.array, updateRange = attribute2.updateRange, gl.bindBuffer(bufferType2, buffer1), -1 === updateRange.count ? gl.bufferSubData(bufferType2, 0, array1) : (isWebGL2 ? gl.bufferSubData(bufferType2, updateRange.offset * array1.BYTES_PER_ELEMENT, array1, updateRange.offset, updateRange.count) : gl.bufferSubData(bufferType2, updateRange.offset * array1.BYTES_PER_ELEMENT, array1.subarray(updateRange.offset, updateRange.offset + updateRange.count)), updateRange.count = -1), data.version = attribute.version);
})) : data.version < attribute.version && (buffer1 = data.buffer, array1 = (attribute2 = attribute).array, updateRange = attribute2.updateRange, gl.bindBuffer(bufferType, buffer1), -1 === updateRange.count ? gl.bufferSubData(bufferType, 0, array1) : (isWebGL2 ? gl.bufferSubData(bufferType, updateRange.offset * array1.BYTES_PER_ELEMENT, array1, updateRange.offset, updateRange.count) : gl.bufferSubData(bufferType, updateRange.offset * array1.BYTES_PER_ELEMENT, array1.subarray(updateRange.offset, updateRange.offset + updateRange.count)), updateRange.count = -1), data.version = attribute.version);
}
};
}
@ -6683,7 +6683,7 @@
for(var i = 0; i < cameras.length; i++)updateCamera(cameras[i], parent);
camera.matrixWorld.copy(cameraVR.matrixWorld);
for(var children = camera.children, _i3 = 0, l = children.length; _i3 < l; _i3++)children[_i3].updateMatrixWorld(!0);
return 2 === cameras.length ? (camera1 = cameraVR, cameraL1 = cameraL, cameraR1 = cameraR, cameraLPos.setFromMatrixPosition(cameraL1.matrixWorld), cameraRPos.setFromMatrixPosition(cameraR1.matrixWorld), ipd = cameraLPos.distanceTo(cameraRPos), projL = cameraL1.projectionMatrix.elements, projR = cameraR1.projectionMatrix.elements, near = projL[14] / (projL[10] - 1), far = projL[14] / (projL[10] + 1), topFov = (projL[9] + 1) / projL[5], bottomFov = (projL[9] - 1) / projL[5], xOffset = -((zOffset = ipd / (-(leftFov = (projL[8] - 1) / projL[0]) + (rightFov = (projR[8] + 1) / projR[0]))) * leftFov), cameraL1.matrixWorld.decompose(camera1.position, camera1.quaternion, camera1.scale), camera1.translateX(xOffset), camera1.translateZ(zOffset), camera1.matrixWorld.compose(camera1.position, camera1.quaternion, camera1.scale), camera1.matrixWorldInverse.copy(camera1.matrixWorld).invert(), near2 = near + zOffset, far2 = far + zOffset, camera1.projectionMatrix.makePerspective(near * leftFov - xOffset, near * rightFov + (ipd - xOffset), topFov * far / far2 * near2, bottomFov * far / far2 * near2, near2, far2)) : cameraVR.projectionMatrix.copy(cameraL.projectionMatrix), cameraVR;
return 2 === cameras.length ? (cameraLPos.setFromMatrixPosition(cameraL.matrixWorld), cameraRPos.setFromMatrixPosition(cameraR.matrixWorld), ipd = cameraLPos.distanceTo(cameraRPos), projL = cameraL.projectionMatrix.elements, projR = cameraR.projectionMatrix.elements, near = projL[14] / (projL[10] - 1), far = projL[14] / (projL[10] + 1), topFov = (projL[9] + 1) / projL[5], bottomFov = (projL[9] - 1) / projL[5], xOffset = -((zOffset = ipd / (-(leftFov = (projL[8] - 1) / projL[0]) + (rightFov = (projR[8] + 1) / projR[0]))) * leftFov), cameraL.matrixWorld.decompose(cameraVR.position, cameraVR.quaternion, cameraVR.scale), cameraVR.translateX(xOffset), cameraVR.translateZ(zOffset), cameraVR.matrixWorld.compose(cameraVR.position, cameraVR.quaternion, cameraVR.scale), cameraVR.matrixWorldInverse.copy(cameraVR.matrixWorld).invert(), near2 = near + zOffset, far2 = far + zOffset, cameraVR.projectionMatrix.makePerspective(near * leftFov - xOffset, near * rightFov + (ipd - xOffset), topFov * far / far2 * near2, bottomFov * far / far2 * near2, near2, far2)) : cameraVR.projectionMatrix.copy(cameraL.projectionMatrix), cameraVR;
};
var onAnimationFrameCallback = null, animation = new WebGLAnimation();
animation.setAnimationLoop(function(time, frame) {

View File

@ -6305,7 +6305,7 @@
triangles: function() {
var triangles = [], edges = this.edges;
return this.cells.forEach(function(cell, i) {
if (m = (halfedges = cell.halfedges).length) for(var a, b, c, halfedges, m, s0, site = cell.site, j = -1, e1 = edges[halfedges[m - 1]], s1 = e1.left === site ? e1.right : e1.left; ++j < m;)s0 = s1, s1 = (e1 = edges[halfedges[j]]).left === site ? e1.right : e1.left, s0 && s1 && i < s0.index && i < s1.index && 0 > (a = site, b = s0, c = s1, (a[0] - c[0]) * (b[1] - a[1]) - (a[0] - b[0]) * (c[1] - a[1])) && triangles.push([
if (m = (halfedges = cell.halfedges).length) for(var a, b, c, halfedges, m, s0, site = cell.site, j = -1, e1 = edges[halfedges[m - 1]], s1 = e1.left === site ? e1.right : e1.left; ++j < m;)s0 = s1, s1 = (e1 = edges[halfedges[j]]).left === site ? e1.right : e1.left, s0 && s1 && i < s0.index && i < s1.index && 0 > (c = s1, (site[0] - c[0]) * (s0[1] - site[1]) - (site[0] - s0[0]) * (c[1] - site[1])) && triangles.push([
site.data,
s0.data,
s1.data
@ -8522,7 +8522,7 @@
},
oneOf: function(expectedValues) {
return Array.isArray(expectedValues) ? createChainableTypeChecker(function(props, propName, componentName, location, propFullName) {
for(var x, y, propValue = props[propName], i = 0; i < expectedValues.length; i++)if ((x = propValue) === (y = expectedValues[i]) ? 0 !== x || 1 / x == 1 / y : x != x && y != y) return null;
for(var x, y, propValue = props[propName], i = 0; i < expectedValues.length; i++)if (propValue === (y = expectedValues[i]) ? 0 !== propValue || 1 / propValue == 1 / y : propValue != propValue && y != y) return null;
var valuesString = JSON.stringify(expectedValues, function(key, value) {
return 'symbol' === getPreciseType(value) ? String(value) : value;
});
@ -13463,13 +13463,13 @@
var child1, props1, calculatedProps1, domain, scale, stringMap, categories, axisChild = victory_core__WEBPACK_IMPORTED_MODULE_3__.Axis.findAxisComponents([
child
]);
if (axisChild.length > 0) return axisChild[0], props1 = props, domain = (calculatedProps1 = calculatedProps).domain, scale = calculatedProps1.scale, stringMap = calculatedProps1.stringMap, categories = calculatedProps1.categories, {
if (axisChild.length > 0) return axisChild[0], domain = calculatedProps.domain, scale = calculatedProps.scale, stringMap = calculatedProps.stringMap, categories = calculatedProps.categories, {
stringMap: stringMap,
horizontal: calculatedProps1.horizontal,
horizontal: calculatedProps.horizontal,
categories: categories,
startAngle: props1.startAngle,
endAngle: props1.endAngle,
innerRadius: props1.innerRadius,
startAngle: props.startAngle,
endAngle: props.endAngle,
innerRadius: props.innerRadius,
domain: domain,
scale: scale
};
@ -17045,7 +17045,7 @@
}
function getTickArray(props) {
var props1, axis, stringMap, categories, ticksFromCategories, ticksFromStringMap, arr, newTickArray, domain, tickValues = props.tickValues, tickFormat = props.tickFormat, axis1 = getAxis(props), stringMap1 = props.stringMap && props.stringMap[axis1], ticks = tickValues;
stringMap1 && (axis = getAxis(props1 = props), stringMap = props1.stringMap && props1.stringMap[axis], ticksFromCategories = (categories = Array.isArray(props1.categories) ? props1.categories : props1.categories && props1.categories[axis]) && _collection__WEBPACK_IMPORTED_MODULE_13__.default.containsOnlyStrings(categories) ? categories.map(function(tick) {
stringMap1 && (axis = getAxis(props), stringMap = props.stringMap && props.stringMap[axis], ticksFromCategories = (categories = Array.isArray(props.categories) ? props.categories : props.categories && props.categories[axis]) && _collection__WEBPACK_IMPORTED_MODULE_13__.default.containsOnlyStrings(categories) ? categories.map(function(tick) {
return stringMap[tick];
}) : void 0, ticksFromStringMap = stringMap && lodash_values__WEBPACK_IMPORTED_MODULE_2___default()(stringMap), ticks = ticksFromCategories && 0 !== ticksFromCategories.length ? ticksFromCategories : ticksFromStringMap), tickValues && _collection__WEBPACK_IMPORTED_MODULE_13__.default.containsStrings(tickValues) && (ticks = stringMap1 ? tickValues.map(function(tick) {
return stringMap1[tick];
@ -22639,9 +22639,9 @@
nodesShouldEnter: !0
});
});
} else if (!state && animate && animate.onExit) return animate1 = animate, data1 = data, after = animate1.onEnter && animate1.onEnter.after ? animate1.onEnter.after : lodash_identity__WEBPACK_IMPORTED_MODULE_1___default.a, {
data: data1.map(function(datum, idx) {
return lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, datum, after(datum, idx, data1));
} else if (!state && animate && animate.onExit) return after = animate.onEnter && animate.onEnter.after ? animate.onEnter.after : lodash_identity__WEBPACK_IMPORTED_MODULE_1___default.a, {
data: data.map(function(datum, idx) {
return lodash_assign__WEBPACK_IMPORTED_MODULE_3___default()({}, datum, after(datum, idx, data));
})
};
} else {
@ -30703,12 +30703,12 @@
},
getDomain: function(props) {
var obj, key, value, originalDomain = props.originalDomain, domain = props.domain, children = props.children, zoomDimension = props.zoomDimension, childComponents = react__WEBPACK_IMPORTED_MODULE_4__.Children.toArray(children), childrenDomain = {};
return childComponents.length && (childrenDomain = zoomDimension ? (obj = {}, key = zoomDimension, value = victory_core__WEBPACK_IMPORTED_MODULE_5__.Wrapper.getDomainFromChildren(props, zoomDimension, childComponents), key in obj ? Object.defineProperty(obj, key, {
return childComponents.length && (childrenDomain = zoomDimension ? (obj = {}, value = victory_core__WEBPACK_IMPORTED_MODULE_5__.Wrapper.getDomainFromChildren(props, zoomDimension, childComponents), zoomDimension in obj ? Object.defineProperty(obj, zoomDimension, {
value: value,
enumerable: !0,
configurable: !0,
writable: !0
}) : obj[key] = value, obj) : {
}) : obj[zoomDimension] = value, obj) : {
x: victory_core__WEBPACK_IMPORTED_MODULE_5__.Wrapper.getDomainFromChildren(props, "x", childComponents),
y: victory_core__WEBPACK_IMPORTED_MODULE_5__.Wrapper.getDomainFromChildren(props, "y", childComponents)
}), lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, childrenDomain, originalDomain, domain);

View File

@ -1738,7 +1738,7 @@
}
}
function updateAttrs(oldVnode, vnode) {
var key, cur, old, opts = vnode.componentOptions;
var key, cur, opts = vnode.componentOptions;
if (!(isDef(opts) && !1 === opts.Ctor.options.inheritAttrs || isUndef(oldVnode.data.attrs) && isUndef(vnode.data.attrs))) {
var elm = vnode.elm, oldAttrs = oldVnode.data.attrs || {}, attrs = vnode.data.attrs || {};
for(key in isDef(attrs.__ob__) && (attrs = vnode.data.attrs = extend({}, attrs)), attrs)cur = attrs[key], oldAttrs[key] !== cur && setAttr(elm, key, cur);
@ -2382,7 +2382,7 @@
isDef(i = data.hook) && isDef(i = i.update) && i(oldVnode, vnode);
}
isUndef(vnode.text) ? isDef(oldCh) && isDef(ch) ? oldCh !== ch && function(parentElm, oldCh, newCh, insertedVnodeQueue, removeOnly) {
var oldKeyToIdx, idxInOld, vnodeToMove, refElm, oldStartIdx = 0, newStartIdx = 0, oldEndIdx = oldCh.length - 1, oldStartVnode = oldCh[0], oldEndVnode = oldCh[oldEndIdx], newEndIdx = newCh.length - 1, newStartVnode = newCh[0], newEndVnode = newCh[newEndIdx], canMove = !removeOnly;
var oldKeyToIdx, idxInOld, vnodeToMove, oldStartIdx = 0, newStartIdx = 0, oldEndIdx = oldCh.length - 1, oldStartVnode = oldCh[0], oldEndVnode = oldCh[oldEndIdx], newEndIdx = newCh.length - 1, newStartVnode = newCh[0], newEndVnode = newCh[newEndIdx], canMove = !removeOnly;
for(checkDuplicateKeys(newCh); oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx;)isUndef(oldStartVnode) ? oldStartVnode = oldCh[++oldStartIdx] : isUndef(oldEndVnode) ? oldEndVnode = oldCh[--oldEndIdx] : sameVnode(oldStartVnode, newStartVnode) ? (patchVnode(oldStartVnode, newStartVnode, insertedVnodeQueue, newCh, newStartIdx), oldStartVnode = oldCh[++oldStartIdx], newStartVnode = newCh[++newStartIdx]) : sameVnode(oldEndVnode, newEndVnode) ? (patchVnode(oldEndVnode, newEndVnode, insertedVnodeQueue, newCh, newEndIdx), oldEndVnode = oldCh[--oldEndIdx], newEndVnode = newCh[--newEndIdx]) : sameVnode(oldStartVnode, newEndVnode) ? (patchVnode(oldStartVnode, newEndVnode, insertedVnodeQueue, newCh, newEndIdx), canMove && nodeOps.insertBefore(parentElm, oldStartVnode.elm, nodeOps.nextSibling(oldEndVnode.elm)), oldStartVnode = oldCh[++oldStartIdx], newEndVnode = newCh[--newEndIdx]) : sameVnode(oldEndVnode, newStartVnode) ? (patchVnode(oldEndVnode, newStartVnode, insertedVnodeQueue, newCh, newStartIdx), canMove && nodeOps.insertBefore(parentElm, oldEndVnode.elm, oldStartVnode.elm), oldEndVnode = oldCh[--oldEndIdx], newStartVnode = newCh[++newStartIdx]) : (isUndef(oldKeyToIdx) && (oldKeyToIdx = function(children, beginIdx, endIdx) {
var i, key, map = {};
for(i = beginIdx; i <= endIdx; ++i)isDef(key = children[i].key) && (map[key] = i);
@ -2829,13 +2829,13 @@
else if (onRE.test(name)) name = name.replace(onRE, ''), (isDynamic = dynamicArgRE.test(name)) && (name = name.slice(1, -1)), addHandler(el, name, value, modifiers, !1, warn$2, list[i], isDynamic);
else {
var el1, name1, rawName1, value1, arg, isDynamicArg, modifiers1, range, argMatch = (name = name.replace(dirRE, '')).match(argRE), arg1 = argMatch && argMatch[1];
isDynamic = !1, arg1 && (name = name.slice(0, -(arg1.length + 1)), dynamicArgRE.test(arg1) && (arg1 = arg1.slice(1, -1), isDynamic = !0)), el1 = el, name1 = name, value1 = value, arg = arg1, isDynamicArg = isDynamic, modifiers1 = modifiers, range = list[i], (el1.directives || (el1.directives = [])).push(rangeSetItem({
isDynamic = !1, arg1 && (name = name.slice(0, -(arg1.length + 1)), dynamicArgRE.test(arg1) && (arg1 = arg1.slice(1, -1), isDynamic = !0)), el1 = el, name1 = name, value1 = value, arg = arg1, isDynamicArg = isDynamic, range = list[i], (el1.directives || (el1.directives = [])).push(rangeSetItem({
name: name1,
rawName: rawName,
value: value1,
arg: arg,
isDynamicArg: isDynamicArg,
modifiers: modifiers1
modifiers: modifiers
}, range)), el1.plain = !1, 'model' === name && function(el, value) {
for(var _el = el; _el;)_el.for && _el.alias === value && warn$2("<" + el.tag + " v-model=\"" + value + '">: You are binding v-model directly to a v-for iteration alias. This will not be able to modify the v-for source array because writing to the alias is like modifying a function local variable. Consider using an array of objects and use v-model on an object property instead.', el.rawAttrsMap['v-model']), _el = _el.parent;
}(el, value);
@ -2935,9 +2935,8 @@
modules: modules$1,
directives: {
model: function(el, dir, _warn) {
warn$1 = _warn;
var el1, value, modifiers, code, el2, value1, modifiers1, number, valueBinding, trueValueBinding, falseValueBinding, el3, value2, modifiers2, number1, valueBinding1, value3 = dir.value, modifiers3 = dir.modifiers, tag = el.tag, type = el.attrsMap.type;
if ('input' === tag && 'file' === type && warn$1("<" + el.tag + " v-model=\"" + value3 + '" type="file">:\nFile inputs are read only. Use a v-on:change listener instead.', el.rawAttrsMap['v-model']), el.component) return genComponentModel(el, value3, modifiers3), !1;
if ('input' === tag && 'file' === type && _warn("<" + el.tag + " v-model=\"" + value3 + '" type="file">:\nFile inputs are read only. Use a v-on:change listener instead.', el.rawAttrsMap['v-model']), el.component) return genComponentModel(el, value3, modifiers3), !1;
if ('select' === tag) {
el1 = el, value = value3, addHandler(el1, 'change', code = (code = 'var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return ' + ((modifiers = modifiers3) && modifiers.number ? '_n(val)' : 'val') + "});") + " " + genAssignmentCode(value, '$event.target.multiple ? $$selectedVal : $$selectedVal[0]'), null, !0);
} else if ('input' === tag && 'checkbox' === type) {
@ -2948,7 +2947,7 @@
var type = el.attrsMap.type, value$1 = el.attrsMap['v-bind:value'] || el.attrsMap[':value'], typeBinding = el.attrsMap['v-bind:type'] || el.attrsMap[':type'];
if (value$1 && !typeBinding) {
var binding = el.attrsMap['v-bind:value'] ? 'v-bind:value' : ':value';
warn$1(binding + "=\"" + value$1 + '" conflicts with v-model on the same element because the latter already expands to a value binding internally', el.rawAttrsMap[binding]);
_warn(binding + "=\"" + value$1 + '" conflicts with v-model on the same element because the latter already expands to a value binding internally', el.rawAttrsMap[binding]);
}
var ref = modifiers || {}, lazy = ref.lazy, number = ref.number, trim = ref.trim, valueExpression = '$event.target.value';
trim && (valueExpression = "$event.target.value.trim()"), number && (valueExpression = "_n(" + valueExpression + ")");
@ -2957,7 +2956,7 @@
}(el, value3, modifiers3);
else {
if (!config.isReservedTag(tag)) return genComponentModel(el, value3, modifiers3), !1;
warn$1("<" + el.tag + " v-model=\"" + value3 + "\">: v-model is not supported on this element type. If you are working with contenteditable, it's recommended to wrap a library dedicated for that purpose inside a custom component.", el.rawAttrsMap['v-model']);
_warn("<" + el.tag + " v-model=\"" + value3 + "\">: v-model is not supported on this element type. If you are working with contenteditable, it's recommended to wrap a library dedicated for that purpose inside a custom component.", el.rawAttrsMap['v-model']);
}
return !0;
},

View File

@ -199,10 +199,10 @@
return parsed;
}, fixedElements = new WeakMap(), compat = function(element) {
if ("rule" === element.type && element.parent && element.length) {
for(var value, points, value1 = element.value, parent = element.parent, isImplicitRule = element.column === parent.column && element.line === parent.line; "rule" !== parent.type;)if (!(parent = parent.parent)) return;
if ((1 !== element.props.length || 58 === value1.charCodeAt(0) || fixedElements.get(parent)) && !isImplicitRule) {
for(var value = element.value, parent = element.parent, isImplicitRule = element.column === parent.column && element.line === parent.line; "rule" !== parent.type;)if (!(parent = parent.parent)) return;
if ((1 !== element.props.length || 58 === value.charCodeAt(0) || fixedElements.get(parent)) && !isImplicitRule) {
fixedElements.set(element, !0);
for(var points1 = [], rules = (value = value1, points = points1, dealloc(toRules(alloc(value), points))), parentRules = parent.props, i = 0, k = 0; i < rules.length; i++)for(var j = 0; j < parentRules.length; j++, k++)element.props[k] = points1[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
for(var points = [], rules = dealloc(toRules(alloc(value), points)), parentRules = parent.props, i = 0, k = 0; i < rules.length; i++)for(var j = 0; j < parentRules.length; j++, k++)element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
}
}
}, removeLabel = function(element) {

View File

@ -55,11 +55,10 @@
}
}
function M(t) {
var e;
if ("string" == typeof t) return t;
try {
return e = t, JSON.stringify(e);
} catch (e1) {
return JSON.stringify(t);
} catch (e) {
return t;
}
}
@ -1008,21 +1007,20 @@
return !At(t.limit) && "L" === t.limitType;
}
function Te(t) {
var t1;
const e = t;
if (null === e.V) {
e.V = [];
const t2 = function(t) {
const t1 = function(t) {
for (const e of t.filters)if (e.v()) return e.field;
return null;
}(e), n = (t1 = e).explicitOrderBy.length > 0 ? t1.explicitOrderBy[0].field : null;
if (null !== t2 && null === n) t2.isKeyField() || e.V.push(new ae(t2)), e.V.push(new ae(ft.keyField(), "asc"));
}(e), n = e.explicitOrderBy.length > 0 ? e.explicitOrderBy[0].field : null;
if (null !== t1 && null === n) t1.isKeyField() || e.V.push(new ae(t1)), e.V.push(new ae(ft.keyField(), "asc"));
else {
let t3 = !1;
for (const n1 of e.explicitOrderBy)e.V.push(n1), n1.field.isKeyField() && (t3 = !0);
if (!t3) {
const t4 = e.explicitOrderBy.length > 0 ? e.explicitOrderBy[e.explicitOrderBy.length - 1].dir : "asc";
e.V.push(new ae(ft.keyField(), t4));
let t2 = !1;
for (const n1 of e.explicitOrderBy)e.V.push(n1), n1.field.isKeyField() && (t2 = !0);
if (!t2) {
const t3 = e.explicitOrderBy.length > 0 ? e.explicitOrderBy[e.explicitOrderBy.length - 1].dir : "asc";
e.V.push(new ae(ft.keyField(), t3));
}
}
}
@ -1183,12 +1181,12 @@
}), e;
}
function rn(t, e, n) {
var t1, e1, n1;
var n1;
const s = new Map();
t.length === n.length || L();
for(let i = 0; i < n.length; i++){
const r = t[i], o = r.transform, c = e.data.field(r.field);
s.set(r.field, (t1 = o, e1 = c, n1 = n[i], t1 instanceof Fe ? Me(t1, e1) : t1 instanceof Le ? Be(t1, e1) : n1));
s.set(r.field, (n1 = n[i], o instanceof Fe ? Me(o, c) : o instanceof Le ? Be(o, c) : n1));
}
return s;
}
@ -2380,14 +2378,14 @@
}).next(()=>i));
}
Dn(t, e, n) {
let s, i;
return this.He.getDocumentsMatchingQuery(t, e, n).next((n)=>(s = n, this.In.getAllMutationBatchesAffectingQuery(t, e))).next((e)=>(i = e, this.Cn(t, i, s).next((t)=>{
for (const t1 of (s = t, i))for (const e of t1.mutations){
const n = e.key;
let i1 = s.get(n);
null == i1 && (i1 = Kt.newInvalidDocument(n), s = s.insert(n, i1)), Ye(e, i1, t1.localWriteTime), i1.isFoundDocument() || (s = s.remove(n));
let s;
return this.He.getDocumentsMatchingQuery(t, e, n).next((n)=>(s = n, this.In.getAllMutationBatchesAffectingQuery(t, e))).next((e)=>this.Cn(t, e, s).next((t)=>{
for (const t1 of (s = t, e))for (const e1 of t1.mutations){
const n = e1.key;
let i = s.get(n);
null == i && (i = Kt.newInvalidDocument(n), s = s.insert(n, i)), Ye(e1, i, t1.localWriteTime), i.isFoundDocument() || (s = s.remove(n));
}
}))).next(()=>(s.forEach((t, n)=>{
})).next(()=>(s.forEach((t, n)=>{
Pe(e, n) || (s = s.remove(t));
}), s));
}
@ -4224,16 +4222,15 @@
}(t.localStore, r));
}
async function Tc(t, e) {
var t1;
const n = t;
if (!n.currentUser.isEqual(e)) {
$("SyncEngine", "User change. New user:", e.toKey());
const t2 = await hr(n.localStore, e);
n.currentUser = e, (t1 = n).Ko.forEach((t)=>{
const t1 = await hr(n.localStore, e);
n.currentUser = e, n.Ko.forEach((t)=>{
t.forEach((t)=>{
t.reject(new j(K.CANCELLED, "'waitForPendingWrites' promise is rejected due to a user change."));
});
}), t1.Ko.clear(), n.sharedClientState.handleUserChange(e, t2.removedBatchIds, t2.addedBatchIds), await pc(n, t2.Wn);
}), n.Ko.clear(), n.sharedClientState.handleUserChange(e, t1.removedBatchIds, t1.addedBatchIds), await pc(n, t1.Wn);
}
}
function Ec(t, e) {

View File

@ -737,7 +737,7 @@
} else config._isValid = !1;
}
function configFromRFC2822(config) {
var year, weekdayStr, parsedInput, config1, 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*$/, ""));
var year, weekdayStr, config1, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr, result, 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 = [
(year = parseInt(yearStr, 10)) <= 49 ? 2000 + year : year <= 999 ? 1900 + year : year,
@ -745,8 +745,8 @@
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;
config._a = parsedArray, config._tzm = function(obsOffset, militaryOffset, numOffset) {
], secondStr && result.push(parseInt(secondStr, 10)), weekdayStr = match[1], config1 = config, weekdayStr && defaultLocaleWeekdaysShort.indexOf(weekdayStr) !== new Date(result[0], result[1], result[2]).getDay() && (getParsingFlags(config1).weekdayMismatch = !0, config1._isValid = !1, 1)) return;
config._a = result, config._tzm = function(obsOffset, militaryOffset, numOffset) {
if (obsOffset) return obsOffsets[obsOffset];
if (militaryOffset) return 0;
var hm = parseInt(numOffset, 10), m = hm % 100;
@ -758,9 +758,9 @@
return null != a ? a : null != b ? b : c;
}
function configFromArray(config) {
var config1, w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek, config2, nowValue, i, date, currentDate, expectedWeekday, yearToUse, input = [];
var config1, w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek, nowValue, i, date, currentDate, expectedWeekday, yearToUse, input = [];
if (!config._d) {
for(config2 = config, nowValue = new Date(hooks.now()), currentDate = config2._useUTC ? [
for(nowValue = new Date(hooks.now()), currentDate = config._useUTC ? [
nowValue.getUTCFullYear(),
nowValue.getUTCMonth(),
nowValue.getUTCDate()

View File

@ -7120,9 +7120,9 @@
}, _that.getData = function() {
return _data;
}, _that.grab = function() {
var canvas, targetSize, ctxData, doHalfSample = _streamConfig.halfSample, frame = inputStream.getFrame(), drawable = frame, drawAngle = 0;
var canvas, ctxData, doHalfSample = _streamConfig.halfSample, frame = inputStream.getFrame(), drawable = frame, drawAngle = 0;
if (drawable) {
if (canvas = _canvas, targetSize = _canvasSize, canvas.width !== targetSize.x && (console.log("WARNING: canvas-size needs to be adjusted"), canvas.width = targetSize.x), canvas.height !== targetSize.y && (console.log("WARNING: canvas-size needs to be adjusted"), canvas.height = targetSize.y), "ImageStream" === _streamConfig.type && (drawable = frame.img, frame.tags && frame.tags.orientation)) switch(frame.tags.orientation){
if ((canvas = _canvas).width !== _canvasSize.x && (console.log("WARNING: canvas-size needs to be adjusted"), canvas.width = _canvasSize.x), canvas.height !== _canvasSize.y && (console.log("WARNING: canvas-size needs to be adjusted"), canvas.height = _canvasSize.y), "ImageStream" === _streamConfig.type && (drawable = frame.img, frame.tags && frame.tags.orientation)) switch(frame.tags.orientation){
case 6:
drawAngle = 90 * TO_RADIANS;
break;

View File

@ -2537,14 +2537,14 @@
return cached || document;
}, EditorView.prototype.posAtCoords = function(coords) {
return function(view, coords) {
var assign, assign$1, node, offset, doc = view.dom.ownerDocument;
var node, offset, doc = view.dom.ownerDocument;
if (doc.caretPositionFromPoint) try {
var pos$1 = doc.caretPositionFromPoint(coords.left, coords.top);
pos$1 && (node = (assign = pos$1).offsetNode, offset = assign.offset);
pos$1 && (node = pos$1.offsetNode, offset = pos$1.offset);
} catch (_) {}
if (!node && doc.caretRangeFromPoint) {
var range = doc.caretRangeFromPoint(coords.left, coords.top);
range && (node = (assign$1 = range).startContainer, offset = assign$1.startOffset);
range && (node = range.startContainer, offset = range.startOffset);
}
var pos, elt = (view.root.elementFromPoint ? view.root : doc).elementFromPoint(coords.left, coords.top + 1);
if (!elt || !view.dom.contains(1 != elt.nodeType ? elt.parentNode : elt)) {

View File

@ -26,12 +26,12 @@
this.options.xmlns && (this.options.xmlnskey = this.options.attrkey + "ns"), this.options.normalizeTags && (this.options.tagNameProcessors || (this.options.tagNameProcessors = []), this.options.tagNameProcessors.unshift(processors.normalize)), this.reset();
}
return extend(Parser, superClass), Parser.prototype.processAsync = function() {
var chunk, err;
var chunk;
try {
if (this.remaining.length <= this.options.chunkSize) return chunk = this.remaining, this.remaining = "", this.saxParser = this.saxParser.write(chunk), this.saxParser.close();
return chunk = this.remaining.substr(0, this.options.chunkSize), this.remaining = this.remaining.substr(this.options.chunkSize, this.remaining.length), this.saxParser = this.saxParser.write(chunk), setImmediate(this.processAsync);
} catch (error1) {
if (err = error1, !this.saxParser.errThrown) return this.saxParser.errThrown = !0, this.emit(err);
if (!this.saxParser.errThrown) return this.saxParser.errThrown = !0, this.emit(error1);
}
}, Parser.prototype.assignOrPush = function(obj, key, newValue) {
return key in obj ? (obj[key] instanceof Array || (obj[key] = [
@ -63,11 +63,10 @@
for(i = 0, results = [], len = stack.length; i < len; i++)node = stack[i], results.push(node["#name"]);
return results;
})().concat(nodeName).join("/"), function() {
var err;
try {
obj = _this3.options.validator(xpath, s && s[nodeName], obj);
} catch (error1) {
return err = error1, _this3.emit("error", err);
return _this3.emit("error", error1);
}
}()), _this3.options.explicitChildren && !_this3.options.mergeAttrs && "object" == typeof obj) {
if (_this3.options.preserveChildrenOrder) {
@ -88,7 +87,6 @@
if (s = ontext(text)) return s.cdata = !0;
};
}, Parser.prototype.parseString = function(str, cb) {
var err;
null != cb && "function" == typeof cb && (this.on("end", function(result) {
return this.reset(), cb(null, result);
}), this.on("error", function(err) {
@ -99,8 +97,8 @@
if (str = bom.stripBOM(str), this.options.async) return this.remaining = str, setImmediate(this.processAsync), this.saxParser;
return this.saxParser.write(str).close();
} catch (error1) {
if (err = error1, !(this.saxParser.errThrown || this.saxParser.ended)) return this.emit("error", err), this.saxParser.errThrown = !0;
if (this.saxParser.ended) throw err;
if (!(this.saxParser.errThrown || this.saxParser.ended)) return this.emit("error", error1), this.saxParser.errThrown = !0;
if (this.saxParser.ended) throw error1;
}
}, Parser.prototype.parseStringPromise = function(str) {
var _this;

View File

@ -4106,7 +4106,7 @@
this.time = time, this.pos = pos, this.button = button;
};
function onMouseDown(e) {
var cm, button, pos, repeat, event, name, cm1, pos1, repeat1, event1, behavior, contained, sel, cm2, event2, pos2, behavior1, display, moved, dragEnd, mouseMove, dragStart, now, display1 = this.display;
var cm, name, cm1, behavior, contained, sel, cm2, display, moved, dragEnd, mouseMove, dragStart, now, display1 = this.display;
if (!(signalDOMEvent(this, e) || display1.activeTouch && display1.input.supportsTouch())) {
if (display1.input.ensurePolled(), display1.shift = e.shiftKey, eventInWidget(display1, e)) {
webkit || (display1.scroller.draggable = !1, setTimeout(function() {
@ -4115,8 +4115,8 @@
return;
}
if (!clickInGutter(this, e)) {
var pos3 = posFromMouse(this, e), button1 = e_button(e), repeat2 = pos3 ? (now = +new Date(), lastDoubleClick && lastDoubleClick.compare(now, pos3, button1) ? (lastClick = lastDoubleClick = null, "triple") : lastClick && lastClick.compare(now, pos3, button1) ? (lastDoubleClick = new PastClick(now, pos3, button1), lastClick = null, "double") : (lastClick = new PastClick(now, pos3, button1), lastDoubleClick = null, "single")) : "single";
window.focus(), 1 == button1 && this.state.selectingText && this.state.selectingText(e), !(pos3 && (cm = this, button = button1, pos = pos3, repeat = repeat2, event = e, name = "Click", "double" == repeat ? name = "Double" + name : "triple" == repeat && (name = "Triple" + name), dispatchKey(cm, addModifierNames(name = (1 == button ? "Left" : 2 == button ? "Middle" : "Right") + name, event), event, function(bound) {
var pos = posFromMouse(this, e), button = e_button(e), repeat = pos ? (now = +new Date(), lastDoubleClick && lastDoubleClick.compare(now, pos, button) ? (lastClick = lastDoubleClick = null, "triple") : lastClick && lastClick.compare(now, pos, button) ? (lastDoubleClick = new PastClick(now, pos, button), lastClick = null, "double") : (lastClick = new PastClick(now, pos, button), lastDoubleClick = null, "single")) : "single";
window.focus(), 1 == button && this.state.selectingText && this.state.selectingText(e), !(pos && (cm = this, name = "Click", "double" == repeat ? name = "Double" + name : "triple" == repeat && (name = "Triple" + name), dispatchKey(cm, addModifierNames(name = (1 == button ? "Left" : 2 == button ? "Middle" : "Right") + name, e), e, function(bound) {
if ("string" == typeof bound && (bound = commands[bound]), !bound) return !1;
var done = !1;
try {
@ -4125,24 +4125,24 @@
cm.state.suppressEdits = !1;
}
return done;
}))) && (1 == button1 ? pos3 ? (cm1 = this, pos1 = pos3, repeat1 = repeat2, event1 = e, ie ? setTimeout(bind(ensureFocus, cm1), 0) : cm1.curOp.focus = activeElt(), behavior = function(cm, repeat, event) {
}))) && (1 == button ? pos ? (cm1 = this, ie ? setTimeout(bind(ensureFocus, cm1), 0) : cm1.curOp.focus = activeElt(), behavior = function(cm, repeat, event) {
var option = cm.getOption("configureMouse"), value = option ? option(cm, repeat, event) : {};
if (null == value.unit) {
var rect = chromeOS ? event.shiftKey && event.metaKey : event.altKey;
value.unit = rect ? "rectangle" : "single" == repeat ? "char" : "double" == repeat ? "word" : "line";
}
return (null == value.extend || cm.doc.extend) && (value.extend = cm.doc.extend || event.shiftKey), null == value.addNew && (value.addNew = mac ? event.metaKey : event.ctrlKey), null == value.moveOnDrag && (value.moveOnDrag = !(mac ? event.altKey : event.ctrlKey)), value;
}(cm1, repeat1, event1), sel = cm1.doc.sel, cm1.options.dragDrop && dragAndDrop && !cm1.isReadOnly() && "single" == repeat1 && (contained = sel.contains(pos1)) > -1 && (0 > cmp((contained = sel.ranges[contained]).from(), pos1) || pos1.xRel > 0) && (cmp(contained.to(), pos1) > 0 || pos1.xRel < 0) ? (cm2 = cm1, event2 = event1, pos2 = pos1, behavior1 = behavior, display = cm2.display, moved = !1, dragEnd = operation(cm2, function(e) {
webkit && (display.scroller.draggable = !1), cm2.state.draggingText = !1, cm2.state.delayingBlurEvent && (cm2.hasFocus() ? cm2.state.delayingBlurEvent = !1 : delayBlurEvent(cm2)), off(display.wrapper.ownerDocument, "mouseup", dragEnd), off(display.wrapper.ownerDocument, "mousemove", mouseMove), off(display.scroller, "dragstart", dragStart), off(display.scroller, "drop", dragEnd), moved || (e_preventDefault(e), behavior1.addNew || extendSelection(cm2.doc, pos2, null, null, behavior1.extend), webkit && !safari || ie && 9 == ie_version ? setTimeout(function() {
}(cm1, repeat, e), sel = cm1.doc.sel, cm1.options.dragDrop && dragAndDrop && !cm1.isReadOnly() && "single" == repeat && (contained = sel.contains(pos)) > -1 && (0 > cmp((contained = sel.ranges[contained]).from(), pos) || pos.xRel > 0) && (cmp(contained.to(), pos) > 0 || pos.xRel < 0) ? (display = (cm2 = cm1).display, moved = !1, dragEnd = operation(cm2, function(e) {
webkit && (display.scroller.draggable = !1), cm2.state.draggingText = !1, cm2.state.delayingBlurEvent && (cm2.hasFocus() ? cm2.state.delayingBlurEvent = !1 : delayBlurEvent(cm2)), off(display.wrapper.ownerDocument, "mouseup", dragEnd), off(display.wrapper.ownerDocument, "mousemove", mouseMove), off(display.scroller, "dragstart", dragStart), off(display.scroller, "drop", dragEnd), moved || (e_preventDefault(e), behavior.addNew || extendSelection(cm2.doc, pos, null, null, behavior.extend), webkit && !safari || ie && 9 == ie_version ? setTimeout(function() {
display.wrapper.ownerDocument.body.focus({
preventScroll: !0
}), display.input.focus();
}, 20) : display.input.focus());
}), mouseMove = function(e2) {
moved = moved || Math.abs(event2.clientX - e2.clientX) + Math.abs(event2.clientY - e2.clientY) >= 10;
moved = moved || Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) >= 10;
}, dragStart = function() {
return moved = !0;
}, webkit && (display.scroller.draggable = !0), cm2.state.draggingText = dragEnd, dragEnd.copy = !behavior1.moveOnDrag, on(display.wrapper.ownerDocument, "mouseup", dragEnd), on(display.wrapper.ownerDocument, "mousemove", mouseMove), on(display.scroller, "dragstart", dragStart), on(display.scroller, "drop", dragEnd), cm2.state.delayingBlurEvent = !0, setTimeout(function() {
}, webkit && (display.scroller.draggable = !0), cm2.state.draggingText = dragEnd, dragEnd.copy = !behavior.moveOnDrag, on(display.wrapper.ownerDocument, "mouseup", dragEnd), on(display.wrapper.ownerDocument, "mousemove", mouseMove), on(display.scroller, "dragstart", dragStart), on(display.scroller, "drop", dragEnd), cm2.state.delayingBlurEvent = !0, setTimeout(function() {
return display.input.focus();
}, 20), display.scroller.dragDrop && display.scroller.dragDrop()) : function(cm, event, start, behavior) {
ie && delayBlurEvent(cm);
@ -4223,9 +4223,9 @@
}(e) : done(e);
}), up = operation(cm, done);
cm.state.selectingText = up, on(display.wrapper.ownerDocument, "mousemove", move), on(display.wrapper.ownerDocument, "mouseup", up);
}(cm1, event1, pos1, behavior)) : e_target(e) == display1.scroller && e_preventDefault(e) : 2 == button1 ? (pos3 && extendSelection(this.doc, pos3), setTimeout(function() {
}(cm1, e, pos, behavior)) : e_target(e) == display1.scroller && e_preventDefault(e) : 2 == button ? (pos && extendSelection(this.doc, pos), setTimeout(function() {
return display1.input.focus();
}, 20)) : 3 == button1 && (captureRightClick ? this.display.input.onContextMenu(e) : delayBlurEvent(this)));
}, 20)) : 3 == button && (captureRightClick ? this.display.input.onContextMenu(e) : delayBlurEvent(this)));
}
}
}

View File

@ -72,27 +72,26 @@
return null != this._events[name] ? this._events[name].length : 0;
}
async trigger(name, ...args) {
var e;
try {
if ("debug" !== name && this.trigger("debug", `Event triggered: ${name}`, args), null == this._events[name]) return;
return this._events[name] = this._events[name].filter(function(listener) {
return "none" !== listener.status;
}), (await Promise.all(this._events[name].map(async (listener)=>{
var e, returned;
var returned;
if ("none" !== listener.status) {
"once" === listener.status && (listener.status = "none");
try {
if (returned = "function" == typeof listener.cb ? listener.cb(...args) : void 0, "function" == typeof (null != returned ? returned.then : void 0)) return await returned;
return returned;
} catch (error) {
return e = error, this.trigger("error", e), null;
return this.trigger("error", error), null;
}
}
}))).find(function(x) {
return null != x;
});
} catch (error) {
return e = error, this.trigger("error", e), null;
return this.trigger("error", error), null;
}
}
}, Queues = class {
@ -175,7 +174,7 @@
});
}
async doExecute(chained, clearGlobalState, run, free) {
var error, eventInfo, passed;
var eventInfo, passed;
0 === this.retryCount ? (this._assertStatus("RUNNING"), this._states.next(this.options.id)) : this._assertStatus("EXECUTING"), eventInfo = {
args: this.args,
options: this.options,
@ -184,7 +183,7 @@
try {
if (passed = await (null != chained ? chained.schedule(this.options, this.task, ...this.args) : this.task(...this.args)), clearGlobalState()) return this.doDone(eventInfo), await free(this.options, eventInfo), this._assertStatus("DONE"), this._resolve(passed);
} catch (error1) {
return error = error1, this._onFailure(error, eventInfo, clearGlobalState, run, free);
return this._onFailure(error1, eventInfo, clearGlobalState, run, free);
}
}
doExpire(clearGlobalState, run, free) {
@ -334,15 +333,15 @@
return 0 === this._queue.length;
}
async _tryToRun() {
var args, cb, error, reject, resolve, returned, task;
var args, cb, reject, resolve, returned, task;
if (this._running < 1 && this._queue.length > 0) return this._running++, { task , args , resolve , reject } = this._queue.shift(), cb = await async function() {
try {
return returned = await task(...args), function() {
return resolve(returned);
};
} catch (error1) {
return error = error1, function() {
return reject(error);
return function() {
return reject(error1);
};
}
}(), this._running--, this._tryToRun(), cb();
@ -419,13 +418,13 @@
_startAutoCleanup() {
var base;
return clearInterval(this.interval), "function" == typeof (base = this.interval = setInterval(async ()=>{
var e, k, ref, results, time, v;
var k, ref, results, time, v;
for(k in time = Date.now(), ref = this.instances, results = [], ref){
v = ref[k];
try {
await v._store.__groupCheck__(time) ? results.push(this.deleteKey(k)) : results.push(void 0);
} catch (error) {
e = error, results.push(v.Events.trigger("error", e));
results.push(v.Events.trigger("error", error));
}
}
return results;
@ -548,11 +547,11 @@
return null != this._scheduled[index] && (clearTimeout(this._scheduled[index].expiration), delete this._scheduled[index], !0);
}
async _free(index, job, options, eventInfo) {
var e, running;
var running;
try {
if ({ running } = await this._store.__free__(index, options.weight), this.Events.trigger("debug", `Freed ${options.id}`, eventInfo), 0 === running && this.empty()) return this.Events.trigger("idle");
} catch (error1) {
return e = error1, this.Events.trigger("error", e);
return this.Events.trigger("error", error1);
}
}
_run(index, job, wait) {
@ -619,17 +618,17 @@
}, this.stop = ()=>this.Promise.reject(new Bottleneck.prototype.BottleneckError("stop() has already been called")), done;
}
async _addToQueue(job) {
var args, blocked, error, options, reachedHWM, shifted, strategy;
var args, blocked, options, reachedHWM, shifted, strategy;
({ args , options } = job);
try {
({ reachedHWM , blocked , strategy } = await this._store.__submit__(this.queued(), options.weight));
} catch (error1) {
return error = error1, this.Events.trigger("debug", `Could not queue ${options.id}`, {
return this.Events.trigger("debug", `Could not queue ${options.id}`, {
args,
options,
error
error: error1
}), job.doDrop({
error
error: error1
}), !1;
}
return blocked ? (job.doDrop(), !0) : reachedHWM && (null != (shifted = strategy === Bottleneck.prototype.strategy.LEAK ? this._queues.shiftLastFrom(options.priority) : strategy === Bottleneck.prototype.strategy.OVERFLOW_PRIORITY ? this._queues.shiftLastFrom(options.priority + 1) : strategy === Bottleneck.prototype.strategy.OVERFLOW ? job : void 0) && shifted.doDrop(), null == shifted || strategy === Bottleneck.prototype.strategy.OVERFLOW) ? (null == shifted && job.doDrop(), reachedHWM) : (job.doQueue(reachedHWM, blocked), this._queues.push(job), await this._drainAll(), reachedHWM);

View File

@ -11768,9 +11768,9 @@ margin: 0 10px;\
}
sel.fromOrientedRange(sel.ranges[0]);
}, this.selectMore = function(dir, skip, stopAtFirst) {
var session, needle, dir1, session1 = this.session, range = session1.multiSelect.toOrientedRange();
if (!range.isEmpty() || ((range = session1.getWordRange(range.start.row, range.start.column)).cursor = -1 == dir ? range.start : range.end, this.multiSelect.addRange(range), !stopAtFirst)) {
var needle1 = session1.getTextRange(range), newRange = (session = session1, needle = needle1, dir1 = dir, search.$options.wrap = !0, search.$options.needle = needle, search.$options.backwards = -1 == dir1, search.find(session));
var session = this.session, range = session.multiSelect.toOrientedRange();
if (!range.isEmpty() || ((range = session.getWordRange(range.start.row, range.start.column)).cursor = -1 == dir ? range.start : range.end, this.multiSelect.addRange(range), !stopAtFirst)) {
var needle = session.getTextRange(range), newRange = (search.$options.wrap = !0, search.$options.needle = needle, search.$options.backwards = -1 == dir, search.find(session));
newRange && (newRange.cursor = -1 == dir ? newRange.start : newRange.end, this.session.unfold(newRange), this.multiSelect.addRange(newRange), this.renderer.scrollCursorIntoView(null, 0.5)), skip && this.multiSelect.substractPoint(range.cursor);
}
}, this.alignCursors = function() {

View File

@ -4194,7 +4194,7 @@
case 0:
return e.next = 2, c();
case 2:
return t = (0, e.sent).pipe(v()()), e.abrupt("return", new Promise(function(e, r) {
return t = e.sent.pipe(v()()), e.abrupt("return", new Promise(function(e, r) {
t.on("finish", function() {
try {
var n = t.toBlob("application/pdf");
@ -9389,7 +9389,7 @@
},
4756: function(e, t, r) {
var n, i;
void 0 !== (i = "function" == typeof (n = function() {
void 0 !== (n = "function" == typeof (i = function() {
var e = "debug", t = "hyphenChar", n = "minWordLength", i = "object" == typeof r.g ? r.g : "object" == typeof window ? window : "object" == typeof this ? this : {};
function o(e) {
var t = {};
@ -9519,14 +9519,14 @@
}(i, y, f[D], s, b, v, m, c);
};
};
}) ? n.apply(t, []) : n) && (e.exports = i);
}) ? i.apply(t, []) : i) && (e.exports = n);
},
3202: function(e, t, r) {
e.exports = r(4756);
},
1487: function(e, t) {
var r, n;
void 0 !== (n = "function" == typeof (r = function() {
void 0 !== (r = "function" == typeof (n = function() {
return {
patterns: [
" ",
@ -14488,7 +14488,7 @@
""
]
};
}) ? r.apply(t, []) : r) && (e.exports = n);
}) ? n.apply(t, []) : n) && (e.exports = r);
},
5717: function(e) {
"function" == typeof Object.create ? e.exports = function(e, t) {
@ -16071,14 +16071,14 @@
if (null === e || "object" !== i(e)) return (null === t || "object" !== i(t)) && e == t;
if (null === t || "object" !== i(t)) return !1;
}
var a, u, s = h(e);
if (s !== h(t)) return !1;
var a = h(e);
if (a !== h(t)) return !1;
if (Array.isArray(e)) {
if (e.length !== t.length) return !1;
var f = F(e, I), d = F(t, I);
return f.length === d.length && M(e, t, r, n, 1, f);
var u = F(e, I), s = F(t, I);
return u.length === s.length && M(e, t, r, n, 1, u);
}
if ("[object Object]" === s && (!m(e) && m(t) || !w(e) && w(t))) return !1;
if ("[object Object]" === a && (!m(e) && m(t) || !w(e) && w(t))) return !1;
if (b(e)) {
if (!b(t) || Date.prototype.getTime.call(e) !== Date.prototype.getTime.call(t)) return !1;
} else if (D(e)) {
@ -16092,9 +16092,9 @@
for(var r = 0; r < e.byteLength; r++)if (e[r] !== t[r]) return !1;
return !0;
}(e, t)) return !1;
} else if (a = e, u = t, a.byteLength !== u.byteLength || 0 !== R(new Uint8Array(a.buffer, a.byteOffset, a.byteLength), new Uint8Array(u.buffer, u.byteOffset, u.byteLength))) return !1;
var p = F(e, I), y = F(t, I);
return p.length === y.length && M(e, t, r, n, 0, p);
} else if (e.byteLength !== t.byteLength || 0 !== R(new Uint8Array(e.buffer, e.byteOffset, e.byteLength), new Uint8Array(t.buffer, t.byteOffset, t.byteLength))) return !1;
var f = F(e, I), d = F(t, I);
return f.length === d.length && M(e, t, r, n, 0, f);
} else if (w(e)) return !!w(t) && e.size === t.size && M(e, t, r, n, 2);
else if (m(e)) return !!m(t) && e.size === t.size && M(e, t, r, n, 3);
else if (g(e)) {
@ -18576,10 +18576,10 @@
var r = "undefined" != typeof Uint8Array && "undefined" != typeof Uint16Array && "undefined" != typeof Int32Array;
t.assign = function(e) {
for(var t = Array.prototype.slice.call(arguments, 1); t.length;){
var r, n, i = t.shift();
if (i) {
if ("object" != typeof i) throw TypeError(i + "must be non-object");
for(var o in i)r = i, n = o, Object.prototype.hasOwnProperty.call(r, n) && (e[o] = i[o]);
var r, n = t.shift();
if (n) {
if ("object" != typeof n) throw TypeError(n + "must be non-object");
for(var i in n)r = i, Object.prototype.hasOwnProperty.call(n, r) && (e[i] = n[i]);
}
}
return e;
@ -20939,14 +20939,14 @@
r("ERR_INVALID_OPT_VALUE", function(e, t) {
return 'The value "' + t + '" is invalid for option "' + e + '"';
}, TypeError), r("ERR_INVALID_ARG_TYPE", function(e, t, r) {
var i, o, a, u, l, s, c;
let f, d;
if ("string" == typeof t && (i = "not ", t.substr(!o || o < 0 ? 0 : +o, i.length) === i) ? (f = "must not be", t = t.replace(/^not /, "")) : f = "must be", a = " argument", (void 0 === u || u > e.length) && (u = e.length), e.substring(u - a.length, u) === a) d = `The ${e} ${f} ${n(t, "type")}`;
var i, o, a, u, l;
let s, c;
if ("string" == typeof t && (i = "not ", t.substr(!o || o < 0 ? 0 : +o, i.length) === i) ? (s = "must not be", t = t.replace(/^not /, "")) : s = "must be", a = " argument", (void 0 === u || u > e.length) && (u = e.length), e.substring(u - a.length, u) === a) c = `The ${e} ${s} ${n(t, "type")}`;
else {
const p = (l = e, "number" != typeof c && (c = 0), c + (s = ".").length > l.length || -1 === l.indexOf(s, c)) ? "argument" : "property";
d = `The "${e}" ${p} ${f} ${n(t, "type")}`;
const f = ("number" != typeof l && (l = 0), l + 1 > e.length || -1 === e.indexOf(".", l)) ? "argument" : "property";
c = `The "${e}" ${f} ${s} ${n(t, "type")}`;
}
return d + `. Received type ${typeof r}`;
return c + `. Received type ${typeof r}`;
}, TypeError), r("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), r("ERR_METHOD_NOT_IMPLEMENTED", function(e) {
return "The " + e + " method is not implemented";
}), r("ERR_STREAM_PREMATURE_CLOSE", "Premature close"), r("ERR_STREAM_DESTROYED", function(e) {

View File

@ -16954,8 +16954,8 @@
previousListClone.appendChild(liElement.cloneNode(!0));
}
removedList = this.listParent.querySelectorAll('li');
for(var _i = 0, removedList_1 = removedList; _i < removedList_1.length; _i++){
var item = removedList_1[_i];
for(var _i = 0; _i < removedList.length; _i++){
var item = removedList[_i];
(0, ej2_base.og)(item);
}
this.removeActionButtons();
@ -18101,7 +18101,7 @@
}, PasteCleanup.prototype.removeEventListener = function() {
this.parent.isDestroyed || (this.parent.off(constant.dI, this.pasteClean), this.parent.off(constant._8, this.setCssClass), this.parent.off(constant.ob, this.destroy));
}, PasteCleanup.prototype.pasteClean = function(e) {
var imageproperties, _this = this, args = {
var _this = this, args = {
requestType: 'Paste',
editorMode: this.parent.editorMode,
event: e
@ -18118,7 +18118,7 @@
args: e.args,
text: value,
callBack: function(b) {
'object' == typeof (imageproperties = b) ? _this.parent.formatter.editorManager.execCommand('Images', 'Image', e.args, _this.imageFormatting.bind(_this, args), 'pasteCleanup', imageproperties, 'pasteCleanupModule') : value = imageproperties;
'object' == typeof b ? _this.parent.formatter.editorManager.execCommand('Images', 'Image', e.args, _this.imageFormatting.bind(_this, args), 'pasteCleanup', b, 'pasteCleanupModule') : value = b;
}
}), !htmlRegex.test(value)) {
var divElement = this.parent.createElement('div');

View File

@ -28,7 +28,7 @@
return target;
}
exports.default = function(dynamicOptions, options) {
var LoadableInitializer, loadableOptions, loadableFn = _loadable.default, loadableOptions1 = {
var loadableOptions, loadableFn = _loadable.default, loadableOptions1 = {
loading: function(_ref) {
return _ref.error, _ref.isLoading, _ref.pastDelay, null;
}
@ -36,7 +36,7 @@
if (dynamicOptions instanceof Promise ? loadableOptions1.loader = function() {
return dynamicOptions;
} : "function" == typeof dynamicOptions ? loadableOptions1.loader = dynamicOptions : "object" == typeof dynamicOptions && (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), dynamicOptions)), (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), options)).loadableGenerated && delete (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), loadableOptions1.loadableGenerated)).loadableGenerated, "boolean" == typeof loadableOptions1.ssr) {
if (!loadableOptions1.ssr) return delete loadableOptions1.ssr, LoadableInitializer = loadableFn, delete (loadableOptions = loadableOptions1).webpack, delete loadableOptions.modules, LoadableInitializer(loadableOptions);
if (!loadableOptions1.ssr) return delete loadableOptions1.ssr, delete (loadableOptions = loadableOptions1).webpack, delete loadableOptions.modules, loadableFn(loadableOptions);
delete loadableOptions1.ssr;
}
return loadableFn(loadableOptions1);

View File

@ -28,7 +28,7 @@
return target;
}
exports.default = function(dynamicOptions, options) {
var LoadableInitializer, loadableOptions, loadableFn = _loadable.default, loadableOptions1 = {
var loadableOptions, loadableFn = _loadable.default, loadableOptions1 = {
loading: function(_ref) {
return _ref.error, _ref.isLoading, _ref.pastDelay, null;
}
@ -36,7 +36,7 @@
if (dynamicOptions instanceof Promise ? loadableOptions1.loader = function() {
return dynamicOptions;
} : "function" == typeof dynamicOptions ? loadableOptions1.loader = dynamicOptions : "object" == typeof dynamicOptions && (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), dynamicOptions)), (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), options)).loadableGenerated && delete (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), loadableOptions1.loadableGenerated)).loadableGenerated, "boolean" == typeof loadableOptions1.ssr) {
if (!loadableOptions1.ssr) return delete loadableOptions1.ssr, LoadableInitializer = loadableFn, delete (loadableOptions = loadableOptions1).webpack, delete loadableOptions.modules, LoadableInitializer(loadableOptions);
if (!loadableOptions1.ssr) return delete loadableOptions1.ssr, delete (loadableOptions = loadableOptions1).webpack, delete loadableOptions.modules, loadableFn(loadableOptions);
delete loadableOptions1.ssr;
}
return loadableFn(loadableOptions1);

View File

@ -60,7 +60,7 @@
return target;
}
exports.default = function(dynamicOptions, options) {
var LoadableInitializer, loadableOptions, loadableFn = _loadable.default, loadableOptions1 = {
var loadableOptions, loadableFn = _loadable.default, loadableOptions1 = {
loading: function(_ref) {
return _ref.error, _ref.isLoading, _ref.pastDelay, null;
}
@ -68,7 +68,7 @@
if (dynamicOptions instanceof Promise ? loadableOptions1.loader = function() {
return dynamicOptions;
} : "function" == typeof dynamicOptions ? loadableOptions1.loader = dynamicOptions : "object" == typeof dynamicOptions && (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), dynamicOptions)), (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), options)).loadableGenerated && delete (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), loadableOptions1.loadableGenerated)).loadableGenerated, "boolean" == typeof loadableOptions1.ssr) {
if (!loadableOptions1.ssr) return delete loadableOptions1.ssr, LoadableInitializer = loadableFn, delete (loadableOptions = loadableOptions1).webpack, delete loadableOptions.modules, LoadableInitializer(loadableOptions);
if (!loadableOptions1.ssr) return delete loadableOptions1.ssr, delete (loadableOptions = loadableOptions1).webpack, delete loadableOptions.modules, loadableFn(loadableOptions);
delete loadableOptions1.ssr;
}
return loadableFn(loadableOptions1);

View File

@ -28,7 +28,7 @@
return target;
}
exports.default = function(dynamicOptions, options) {
var LoadableInitializer, loadableOptions, loadableFn = _loadable.default, loadableOptions1 = {
var loadableOptions, loadableFn = _loadable.default, loadableOptions1 = {
loading: function(_ref) {
return _ref.error, _ref.isLoading, _ref.pastDelay, null;
}
@ -36,7 +36,7 @@
if (dynamicOptions instanceof Promise ? loadableOptions1.loader = function() {
return dynamicOptions;
} : "function" == typeof dynamicOptions ? loadableOptions1.loader = dynamicOptions : "object" == typeof dynamicOptions && (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), dynamicOptions)), (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), options)).loadableGenerated && delete (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), loadableOptions1.loadableGenerated)).loadableGenerated, "boolean" == typeof loadableOptions1.ssr) {
if (!loadableOptions1.ssr) return delete loadableOptions1.ssr, LoadableInitializer = loadableFn, delete (loadableOptions = loadableOptions1).webpack, delete loadableOptions.modules, LoadableInitializer(loadableOptions);
if (!loadableOptions1.ssr) return delete loadableOptions1.ssr, delete (loadableOptions = loadableOptions1).webpack, delete loadableOptions.modules, loadableFn(loadableOptions);
delete loadableOptions1.ssr;
}
return loadableFn(loadableOptions1);

View File

@ -28,7 +28,7 @@
return target;
}
exports.default = function(dynamicOptions, options) {
var LoadableInitializer, loadableOptions, loadableFn = _loadable.default, loadableOptions1 = {
var loadableOptions, loadableFn = _loadable.default, loadableOptions1 = {
loading: function(_ref) {
return _ref.error, _ref.isLoading, _ref.pastDelay, null;
}
@ -36,7 +36,7 @@
if (dynamicOptions instanceof Promise ? loadableOptions1.loader = function() {
return dynamicOptions;
} : "function" == typeof dynamicOptions ? loadableOptions1.loader = dynamicOptions : "object" == typeof dynamicOptions && (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), dynamicOptions)), (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), options)).loadableGenerated && delete (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), loadableOptions1.loadableGenerated)).loadableGenerated, "boolean" == typeof loadableOptions1.ssr) {
if (!loadableOptions1.ssr) return delete loadableOptions1.ssr, LoadableInitializer = loadableFn, delete (loadableOptions = loadableOptions1).webpack, delete loadableOptions.modules, LoadableInitializer(loadableOptions);
if (!loadableOptions1.ssr) return delete loadableOptions1.ssr, delete (loadableOptions = loadableOptions1).webpack, delete loadableOptions.modules, loadableFn(loadableOptions);
delete loadableOptions1.ssr;
}
return loadableFn(loadableOptions1);

View File

@ -139,7 +139,7 @@
return target;
}
exports.default = function(dynamicOptions, options) {
var LoadableInitializer, loadableOptions, loadableFn = _loadable.default, loadableOptions1 = {
var loadableOptions, loadableFn = _loadable.default, loadableOptions1 = {
loading: function(_ref) {
return _ref.error, _ref.isLoading, _ref.pastDelay, null;
}
@ -147,7 +147,7 @@
if (dynamicOptions instanceof Promise ? loadableOptions1.loader = function() {
return dynamicOptions;
} : "function" == typeof dynamicOptions ? loadableOptions1.loader = dynamicOptions : "object" == typeof dynamicOptions && (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), dynamicOptions)), (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), options)).loadableGenerated && delete (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), loadableOptions1.loadableGenerated)).loadableGenerated, "boolean" == typeof loadableOptions1.ssr) {
if (!loadableOptions1.ssr) return delete loadableOptions1.ssr, LoadableInitializer = loadableFn, delete (loadableOptions = loadableOptions1).webpack, delete loadableOptions.modules, LoadableInitializer(loadableOptions);
if (!loadableOptions1.ssr) return delete loadableOptions1.ssr, delete (loadableOptions = loadableOptions1).webpack, delete loadableOptions.modules, loadableFn(loadableOptions);
delete loadableOptions1.ssr;
}
return loadableFn(loadableOptions1);

View File

@ -28,7 +28,7 @@
return target;
}
exports.default = function(dynamicOptions, options) {
var LoadableInitializer, loadableOptions, loadableFn = _loadable.default, loadableOptions1 = {
var loadableOptions, loadableFn = _loadable.default, loadableOptions1 = {
loading: function(_ref) {
return _ref.error, _ref.isLoading, _ref.pastDelay, null;
}
@ -36,7 +36,7 @@
if (dynamicOptions instanceof Promise ? loadableOptions1.loader = function() {
return dynamicOptions;
} : "function" == typeof dynamicOptions ? loadableOptions1.loader = dynamicOptions : "object" == typeof dynamicOptions && (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), dynamicOptions)), (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), options)).loadableGenerated && delete (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), loadableOptions1.loadableGenerated)).loadableGenerated, "boolean" == typeof loadableOptions1.ssr) {
if (!loadableOptions1.ssr) return delete loadableOptions1.ssr, LoadableInitializer = loadableFn, delete (loadableOptions = loadableOptions1).webpack, delete loadableOptions.modules, LoadableInitializer(loadableOptions);
if (!loadableOptions1.ssr) return delete loadableOptions1.ssr, delete (loadableOptions = loadableOptions1).webpack, delete loadableOptions.modules, loadableFn(loadableOptions);
delete loadableOptions1.ssr;
}
return loadableFn(loadableOptions1);

View File

@ -28,7 +28,7 @@
return target;
}
exports.default = function(dynamicOptions, options) {
var LoadableInitializer, loadableOptions, loadableFn = _loadable.default, loadableOptions1 = {
var loadableOptions, loadableFn = _loadable.default, loadableOptions1 = {
loading: function(_ref) {
return _ref.error, _ref.isLoading, _ref.pastDelay, null;
}
@ -36,7 +36,7 @@
if (dynamicOptions instanceof Promise ? loadableOptions1.loader = function() {
return dynamicOptions;
} : "function" == typeof dynamicOptions ? loadableOptions1.loader = dynamicOptions : "object" == typeof dynamicOptions && (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), dynamicOptions)), (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), options)).loadableGenerated && delete (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), loadableOptions1.loadableGenerated)).loadableGenerated, "boolean" == typeof loadableOptions1.ssr) {
if (!loadableOptions1.ssr) return delete loadableOptions1.ssr, LoadableInitializer = loadableFn, delete (loadableOptions = loadableOptions1).webpack, delete loadableOptions.modules, LoadableInitializer(loadableOptions);
if (!loadableOptions1.ssr) return delete loadableOptions1.ssr, delete (loadableOptions = loadableOptions1).webpack, delete loadableOptions.modules, loadableFn(loadableOptions);
delete loadableOptions1.ssr;
}
return loadableFn(loadableOptions1);

View File

@ -28,7 +28,7 @@
return target;
}
exports.default = function(dynamicOptions, options) {
var LoadableInitializer, loadableOptions, loadableFn = _loadable.default, loadableOptions1 = {
var loadableOptions, loadableFn = _loadable.default, loadableOptions1 = {
loading: function(_ref) {
return _ref.error, _ref.isLoading, _ref.pastDelay, null;
}
@ -36,7 +36,7 @@
if (dynamicOptions instanceof Promise ? loadableOptions1.loader = function() {
return dynamicOptions;
} : "function" == typeof dynamicOptions ? loadableOptions1.loader = dynamicOptions : "object" == typeof dynamicOptions && (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), dynamicOptions)), (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), options)).loadableGenerated && delete (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), loadableOptions1.loadableGenerated)).loadableGenerated, "boolean" == typeof loadableOptions1.ssr) {
if (!loadableOptions1.ssr) return delete loadableOptions1.ssr, LoadableInitializer = loadableFn, delete (loadableOptions = loadableOptions1).webpack, delete loadableOptions.modules, LoadableInitializer(loadableOptions);
if (!loadableOptions1.ssr) return delete loadableOptions1.ssr, delete (loadableOptions = loadableOptions1).webpack, delete loadableOptions.modules, loadableFn(loadableOptions);
delete loadableOptions1.ssr;
}
return loadableFn(loadableOptions1);

View File

@ -28,7 +28,7 @@
return target;
}
exports.default = function(dynamicOptions, options) {
var LoadableInitializer, loadableOptions, loadableFn = _loadable.default, loadableOptions1 = {
var loadableOptions, loadableFn = _loadable.default, loadableOptions1 = {
loading: function(_ref) {
return _ref.error, _ref.isLoading, _ref.pastDelay, null;
}
@ -36,7 +36,7 @@
if (dynamicOptions instanceof Promise ? loadableOptions1.loader = function() {
return dynamicOptions;
} : "function" == typeof dynamicOptions ? loadableOptions1.loader = dynamicOptions : "object" == typeof dynamicOptions && (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), dynamicOptions)), (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), options)).loadableGenerated && delete (loadableOptions1 = _objectSpread(_objectSpread({}, loadableOptions1), loadableOptions1.loadableGenerated)).loadableGenerated, "boolean" == typeof loadableOptions1.ssr) {
if (!loadableOptions1.ssr) return delete loadableOptions1.ssr, LoadableInitializer = loadableFn, delete (loadableOptions = loadableOptions1).webpack, delete loadableOptions.modules, LoadableInitializer(loadableOptions);
if (!loadableOptions1.ssr) return delete loadableOptions1.ssr, delete (loadableOptions = loadableOptions1).webpack, delete loadableOptions.modules, loadableFn(loadableOptions);
delete loadableOptions1.ssr;
}
return loadableFn(loadableOptions1);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -580,7 +580,7 @@
on: function onFn(element, type, fn, unsupported) {
if (isDefined(unsupported)) throw jqLiteMinErr("onargs", "jqLite#on() does not support the `selector` or `eventData` parameters");
var element1, events, eventHandler, events1 = jqLiteExpandoStore(element, "events"), handle = jqLiteExpandoStore(element, "handle");
events1 || jqLiteExpandoStore(element, "events", events1 = {}), !handle && jqLiteExpandoStore(element, "handle", (element1 = element, events = events1, (eventHandler = function(event, type) {
events1 || jqLiteExpandoStore(element, "events", events1 = {}), !handle && jqLiteExpandoStore(element, "handle", (events = events1, (eventHandler = function(event, type) {
if (event.preventDefault || (event.preventDefault = function() {
event.returnValue = !1;
}), event.stopPropagation || (event.stopPropagation = function() {
@ -594,9 +594,9 @@
event.isDefaultPrevented = function() {
return event.defaultPrevented || !1 === event.returnValue;
}, forEach(events[type || event.type], function(fn) {
fn.call(element1, event);
fn.call(element, event);
}), msie <= 8 ? (event.preventDefault = null, event.stopPropagation = null, event.isDefaultPrevented = null) : (delete event.preventDefault, delete event.stopPropagation, delete event.isDefaultPrevented);
}).elem = element1, handle = eventHandler)), forEach(type.split(" "), function(type) {
}).elem = element, handle = eventHandler)), forEach(type.split(" "), function(type) {
var eventFns = events1[type];
if (!eventFns) {
if ("mouseenter" == type || "mouseleave" == type) {
@ -717,7 +717,7 @@
};
var FN_ARGS = /^function\s*[^\(]*\(\s*([^\)]*)\)/m, FN_ARG_SPLIT = /,/, FN_ARG = /^\s*(_?)(\S+?)\1\s*$/, STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm, $injectorMinErr = minErr("$injector");
function annotate(fn) {
var $inject, fnText, argDecl, last;
var $inject, last;
return "function" == typeof fn ? ($inject = fn.$inject) || ($inject = [], fn.length && forEach(fn.toString().replace(STRIP_COMMENTS, "").match(FN_ARGS)[1].split(FN_ARG_SPLIT), function(arg) {
arg.replace(FN_ARG, function(all, underscore, name) {
$inject.push(name);
@ -1895,7 +1895,7 @@
"$rootElement",
function($rootScope, $browser, $sniffer, $rootElement) {
var url, $location, LocationMode, appBase, baseHref = $browser.baseHref(), initialUrl = $browser.url();
html5Mode ? (appBase = (url = initialUrl).substring(0, url.indexOf("/", url.indexOf("//") + 2)) + (baseHref || "/"), LocationMode = $sniffer.history ? LocationHtml5Url : LocationHashbangInHtml5Url) : (appBase = stripHash(initialUrl), LocationMode = LocationHashbangUrl), ($location = new LocationMode(appBase, "#" + hashPrefix)).$$parse($location.$$rewrite(initialUrl)), $rootElement.on("click", function(event) {
html5Mode ? (appBase = initialUrl.substring(0, initialUrl.indexOf("/", initialUrl.indexOf("//") + 2)) + (baseHref || "/"), LocationMode = $sniffer.history ? LocationHtml5Url : LocationHashbangInHtml5Url) : (appBase = stripHash(initialUrl), LocationMode = LocationHashbangUrl), ($location = new LocationMode(appBase, "#" + hashPrefix)).$$parse($location.$$rewrite(initialUrl)), $rootElement.on("click", function(event) {
if (!event.ctrlKey && !event.metaKey && 2 != event.which) {
for(var elm = jqLite(event.target); "a" !== lowercase(elm[0].nodeName);)if (elm[0] === $rootElement[0] || !(elm = elm.parent())[0]) return;
var absHref = elm.prop("href"), rewrittenUrl = $location.$$rewrite(absHref);
@ -2563,7 +2563,7 @@
if (pending) {
var callbacks = pending;
pending.length && nextTick(function() {
for(var callback, i = 0, ii = callbacks.length; i < ii; i++)(0, callbacks[i])[2](progress);
for(var i = 0, ii = callbacks.length; i < ii; i++)callbacks[i][2](progress);
});
}
},
@ -3443,11 +3443,11 @@
form.$setValidity(validationToken, !0, control);
}), arrayRemove(controls, control);
}, form.$setValidity = function(validationToken, isValid, control) {
var array, queue = errors[validationToken];
var queue = errors[validationToken];
if (isValid) queue && (arrayRemove(queue, control), queue.length || (--invalidCount || (toggleValidCss(isValid), form.$valid = !0, form.$invalid = !1), errors[validationToken] = !1, toggleValidCss(!0, validationToken), parentForm.$setValidity(validationToken, !0, form)));
else {
if (invalidCount || toggleValidCss(isValid), queue) {
if (-1 != indexOf(array = queue, control)) return;
if (-1 != indexOf(queue, control)) return;
} else errors[validationToken] = queue = [], invalidCount++, toggleValidCss(!1, validationToken), parentForm.$setValidity(validationToken, !1, form);
queue.push(control), form.$valid = !1, form.$invalid = !0;
}

View File

@ -154,7 +154,7 @@
return window1.JSON && window1.JSON.parse ? window1.JSON.parse(data) : null === data ? data : "string" == typeof data && (data = jQuery.trim(data)) && rvalidchars.test(data.replace(rvalidescape, "@").replace(rvalidtokens, "]").replace(rvalidbraces, "")) ? Function("return " + data)() : void jQuery.error("Invalid JSON: " + data);
},
parseXML: function(data) {
var xml, tmp;
var xml;
if (!data || "string" != typeof data) return null;
try {
window1.DOMParser ? xml = new DOMParser().parseFromString(data, "text/xml") : ((xml = new ActiveXObject("Microsoft.XMLDOM")).async = "false", xml.loadXML(data));
@ -210,7 +210,7 @@
return first.length = i, first;
},
grep: function(elems, callback, inv) {
var retVal, ret = [], i = 0, length = elems.length;
var ret = [], i = 0, length = elems.length;
for(inv = !!inv; i < length; i++)!!callback(elems[i], i) !== inv && ret.push(elems[i]);
return ret;
},
@ -1663,11 +1663,11 @@
}
return elementMatcher(matchers);
}(group[i]))[expando] ? setMatchers1.push(cached) : elementMatchers1.push(cached);
cached = compilerCache(selector, (elementMatchers = elementMatchers1, matcherCachedRuns = 0, bySet = (setMatchers = setMatchers1).length > 0, byElement = elementMatchers.length > 0, superMatcher = function(seed, context, xml, results, expandContext) {
cached = compilerCache(selector, (matcherCachedRuns = 0, bySet = setMatchers1.length > 0, byElement = elementMatchers1.length > 0, superMatcher = function(seed, context, xml, results, expandContext) {
var elem, j, matcher, setMatched = [], matchedCount = 0, i = "0", unmatched = seed && [], outermost = null != expandContext, contextBackup = outermostContext, elems = seed || byElement && Expr.find.TAG("*", expandContext && context.parentNode || context), dirrunsUnique = dirruns += null == contextBackup ? 1 : Math.random() || 0.1;
for(outermost && (outermostContext = context !== document && context, cachedruns = matcherCachedRuns); null != (elem = elems[i]); i++){
if (byElement && elem) {
for(j = 0; matcher = elementMatchers[j++];)if (matcher(elem, context, xml)) {
for(j = 0; matcher = elementMatchers1[j++];)if (matcher(elem, context, xml)) {
results.push(elem);
break;
}
@ -1676,12 +1676,12 @@
bySet && ((elem = !matcher && elem) && matchedCount--, seed && unmatched.push(elem));
}
if (matchedCount += i, bySet && i !== matchedCount) {
for(j = 0; matcher = setMatchers[j++];)matcher(unmatched, setMatched, context, xml);
for(j = 0; matcher = setMatchers1[j++];)matcher(unmatched, setMatched, context, xml);
if (seed) {
if (matchedCount > 0) for(; i--;)unmatched[i] || setMatched[i] || (setMatched[i] = pop.call(results));
setMatched = condense(setMatched);
}
push.apply(results, setMatched), outermost && !seed && setMatched.length > 0 && matchedCount + setMatchers.length > 1 && Sizzle.uniqueSort(results);
push.apply(results, setMatched), outermost && !seed && setMatched.length > 0 && matchedCount + setMatchers1.length > 1 && Sizzle.uniqueSort(results);
}
return outermost && (dirruns = dirrunsUnique, outermostContext = contextBackup), unmatched;
}, bySet ? markFunction(superMatcher) : superMatcher));

View File

@ -241,7 +241,7 @@
},
haveParents: function(elements, attr) {
if (!$1.mobile.ignoreContentEnabled) return elements;
var e, $element, excluded, i, c, count = elements.length, $newSet = $1();
var e, $element, excluded, i, count = elements.length, $newSet = $1();
for(i = 0; i < count; i++){
for($element = elements.eq(i), excluded = !1, e = elements[i]; e;){
if ("false" === (e.getAttribute ? e.getAttribute("data-" + $1.mobile.ns + attr) : "")) {
@ -1189,7 +1189,7 @@
}, handler = function() {
(diff = (curr = new Date().getTime()) - lastCall) >= 250 ? (lastCall = curr, jQuery(this).trigger("throttledresize")) : (heldCall && clearTimeout(heldCall), heldCall = setTimeout(handler, 250 - diff));
}, lastCall = 0, function($, window) {
var get_orientation, last_orientation, initial_orientation_is_landscape, initial_orientation_is_default, ww, wh, landscape_threshold, win = $(window), event_name = "orientationchange", portrait_map = {
var get_orientation, last_orientation, initial_orientation_is_landscape, initial_orientation_is_default, ww, wh, win = $(window), event_name = "orientationchange", portrait_map = {
0: !0,
180: !0
};
@ -1827,8 +1827,8 @@
week: !1
}, $21.mobile.page.prototype.options.degradeInputs = $21.mobile.degradeInputs, $21.mobile.degradeInputsWithin = function(target) {
(target = $21(target)).find("input").not($21.mobile.page.prototype.keepNativeSelector()).each(function() {
var html, hasType, findstr, repstr, element = $21(this), type = this.getAttribute("type"), optType = $21.mobile.degradeInputs[type] || "text";
$21.mobile.degradeInputs[type] && (findstr = (hasType = (html = $21("<div>").html(element.clone()).html()).indexOf(" type=") > -1) ? /\s+type=["']?\w+['"]?/ : /\/?>/, repstr = ' type="' + optType + '" data-' + $21.mobile.ns + 'type="' + type + '"' + (hasType ? "" : ">"), element.replaceWith(html.replace(findstr, repstr)));
var html, hasType, repstr, element = $21(this), type = this.getAttribute("type"), optType = $21.mobile.degradeInputs[type] || "text";
$21.mobile.degradeInputs[type] && (hasType = (html = $21("<div>").html(element.clone()).html()).indexOf(" type=") > -1, repstr = ' type="' + optType + '" data-' + $21.mobile.ns + 'type="' + type + '"' + (hasType ? "" : ">"), element.replaceWith(html.replace(hasType ? /\s+type=["']?\w+['"]?/ : /\/?>/, repstr)));
});
}, function($, window, undefined) {
$.widget("mobile.page", $.mobile.page, {
@ -2141,7 +2141,7 @@
_beforeListviewRefresh: $.noop,
_afterListviewRefresh: $.noop,
refresh: function(create) {
var buttonClass, pos, numli, item, itemClass, itemTheme, itemIcon, icon, a, isDivider, startCount, newStartCount, value, last, splittheme, splitThemeClass, spliticon, altButtonClass, dividerTheme, li, o = this.options, $list = this.element, ol = !!$.nodeName($list[0], "ol"), start = $list.attr("start"), itemClassDict = {}, countBubbles = $list.find(".ui-li-count"), countTheme = getAttr($list[0], "counttheme") || this.options.countTheme, countThemeClass = countTheme ? "ui-body-" + countTheme : "ui-body-inherit";
var buttonClass, pos, numli, item, itemClass, itemTheme, itemIcon, icon, a, isDivider, startCount, newStartCount, value, last, splittheme, splitThemeClass, altButtonClass, dividerTheme, li, o = this.options, $list = this.element, ol = !!$.nodeName($list[0], "ol"), start = $list.attr("start"), itemClassDict = {}, countBubbles = $list.find(".ui-li-count"), countTheme = getAttr($list[0], "counttheme") || this.options.countTheme, countThemeClass = countTheme ? "ui-body-" + countTheme : "ui-body-inherit";
for(o.theme && $list.addClass("ui-group-theme-" + o.theme), ol && (start || 0 === start) && (startCount = parseInt(start, 10) - 1, $list.css("counter-reset", "listnumbering " + startCount)), this._beforeListviewRefresh(), li = this._getChildrenByTagName($list[0], "li", "LI"), pos = 0, numli = li.length; pos < numli; pos++)item = li.eq(pos), itemClass = "", (create || 0 > item[0].className.search(/\bui-li-static\b|\bui-li-divider\b/)) && (a = this._getChildrenByTagName(item[0], "a", "A"), isDivider = "list-divider" === getAttr(item[0], "role"), value = item.attr("value"), itemTheme = getAttr(item[0], "theme"), a.length && 0 > a[0].className.search(/\bui-btn\b/) && !isDivider ? (icon = !1 !== (itemIcon = getAttr(item[0], "icon")) && (itemIcon || o.icon), a.removeClass("ui-link"), buttonClass = "ui-btn", itemTheme && (buttonClass += " ui-btn-" + itemTheme), a.length > 1 ? (itemClass = "ui-li-has-alt", splitThemeClass = (splittheme = getAttr((last = a.last())[0], "theme") || o.splitTheme || getAttr(item[0], "theme", !0)) ? " ui-btn-" + splittheme : "", altButtonClass = "ui-btn ui-btn-icon-notext ui-icon-" + (getAttr(last[0], "icon") || getAttr(item[0], "icon") || o.splitIcon) + splitThemeClass, last.attr("title", $.trim(last.getEncodedText())).addClass(altButtonClass).empty()) : icon && (buttonClass += " ui-btn-icon-right ui-icon-" + icon), a.first().addClass(buttonClass)) : isDivider ? (itemClass = "ui-li-divider ui-bar-" + (getAttr(item[0], "theme") || o.dividerTheme || o.theme || "inherit"), item.attr("role", "heading")) : a.length <= 0 && (itemClass = "ui-li-static ui-body-" + (itemTheme || "inherit")), ol && value && (newStartCount = parseInt(value, 10) - 1, item.css("counter-reset", "listnumbering " + newStartCount))), itemClassDict[itemClass] || (itemClassDict[itemClass] = []), itemClassDict[itemClass].push(item[0]);
for(itemClass in itemClassDict)$(itemClassDict[itemClass]).addClass(itemClass);
countBubbles.each(function() {
@ -2555,14 +2555,14 @@
this.refresh(undefined, !1, !0);
},
refresh: function(val, isfromControl, preventInputUpdate) {
var bg, left, width, data, tol, pxStep, percent, control, isInput, optionElements, min, max, step, newval, valModStep, alignValue, percentPerStep, handlePercent, aPercent, bPercent, valueChanged, self = this, parentTheme = $.mobile.getAttribute(this.element[0], "theme"), theme = this.options.theme || parentTheme, trackTheme = this.options.trackTheme || parentTheme, cornerClass = this.options.corners ? " ui-corner-all" : "", miniClass = this.options.mini ? " ui-mini" : "";
var bg, left, width, data, pxStep, percent, control, isInput, optionElements, min, max, step, newval, valModStep, alignValue, percentPerStep, handlePercent, aPercent, bPercent, valueChanged, self = this, parentTheme = $.mobile.getAttribute(this.element[0], "theme"), theme = this.options.theme || parentTheme, trackTheme = this.options.trackTheme || parentTheme, cornerClass = this.options.corners ? " ui-corner-all" : "", miniClass = this.options.mini ? " ui-mini" : "";
if (self.slider[0].className = [
this.isToggleSwitch ? "ui-slider ui-slider-switch ui-slider-track ui-shadow-inset" : "ui-slider-track ui-shadow-inset",
trackTheme ? " ui-bar-" + trackTheme : " ui-bar-inherit",
cornerClass,
miniClass
].join(""), (this.options.disabled || this.element.prop("disabled")) && this.disable(), this.value = this._value(), this.options.highlight && !this.isToggleSwitch && 0 === this.slider.find(".ui-slider-bg").length && (this.valuebg = ((bg = document1.createElement("div")).className = "ui-slider-bg " + $.mobile.activeBtnClass, $(bg).prependTo(self.slider))), this.handle.addClass("ui-btn" + (theme ? " ui-btn-" + theme : "") + " ui-shadow"), control = this.element, optionElements = (isInput = !this.isToggleSwitch) ? [] : control.find("option"), min = isInput ? parseFloat(control.attr("min")) : 0, max = isInput ? parseFloat(control.attr("max")) : optionElements.length - 1, step = isInput && parseFloat(control.attr("step")) > 0 ? parseFloat(control.attr("step")) : 1, "object" == typeof val) {
if (data = val, tol = 8, left = this.slider.offset().left, pxStep = (width = this.slider.width()) / ((max - min) / step), !this.dragging || data.pageX < left - tol || data.pageX > left + width + tol) return;
if (data = val, left = this.slider.offset().left, pxStep = (width = this.slider.width()) / ((max - min) / step), !this.dragging || data.pageX < left - 8 || data.pageX > left + width + 8) return;
percent = pxStep > 1 ? (data.pageX - left) / width * 100 : Math.round((data.pageX - left) / width * 100);
} else null == val && (val = isInput ? parseFloat(control.val() || 0) : control[0].selectedIndex), percent = (parseFloat(val) - min) / (max - min) * 100;
if (!isNaN(percent) && (valModStep = ((newval = percent / 100 * (max - min) + min) - min) % step, alignValue = newval - valModStep, 2 * Math.abs(valModStep) >= step && (alignValue += valModStep > 0 ? step : -step), percentPerStep = 100 / ((max - min) / step), newval = parseFloat(alignValue.toFixed(5)), void 0 === pxStep && (pxStep = width / ((max - min) / step)), pxStep > 1 && isInput && (percent = (newval - min) * percentPerStep * (1 / step)), percent < 0 && (percent = 0), percent > 100 && (percent = 100), newval < min && (newval = min), newval > max && (newval = max), this.handle.css("left", percent + "%"), this.handle[0].setAttribute("aria-valuenow", isInput ? newval : optionElements.eq(newval).attr("value")), this.handle[0].setAttribute("aria-valuetext", isInput ? newval : optionElements.eq(newval).getEncodedText()), this.handle[0].setAttribute("title", isInput ? newval : optionElements.eq(newval).getEncodedText()), this.valuebg && this.valuebg.css("width", percent + "%"), this._labels && (handlePercent = this.handle.width() / this.slider.width() * 100, aPercent = percent && handlePercent + (100 - handlePercent) * percent / 100, bPercent = 100 === percent ? 0 : Math.min(handlePercent + 100 - aPercent, 100), this._labels.each(function() {
@ -2913,7 +2913,7 @@
this._prepareHeightUpdate(this.options.keyupTimeoutBuffer);
},
_updateHeight: function() {
var paddingBottom, paddingHeight, scrollHeight, clientHeight, height, scrollTop = this.window.scrollTop();
var scrollHeight, clientHeight, height, scrollTop = this.window.scrollTop();
this.keyupTimeout = 0, "onpage" in this.element[0] || this.element.css({
height: 0,
"min-height": 0,
@ -4136,7 +4136,7 @@
this[this._open ? "close" : "open"]();
},
_destroy: function() {
var otherPanels, o = this.options, multiplePanels = $("body > :mobile-panel").length + $.mobile.activePage.find(":mobile-panel").length > 1;
var o = this.options, multiplePanels = $("body > :mobile-panel").length + $.mobile.activePage.find(":mobile-panel").length > 1;
"overlay" !== o.display && (0 === $("body > :mobile-panel").add($.mobile.activePage.find(":mobile-panel")).not(".ui-panel-display-overlay").not(this.element).length && this._wrapper.children().unwrap(), this._open && (this._fixedToolbars().removeClass(o.classes.pageContentPrefix + "-open"), $.support.cssTransform3d && o.animate && this._fixedToolbars().removeClass(o.classes.animate), this._page().parent().removeClass(o.classes.pageContainer), o.theme && this._page().parent().removeClass(o.classes.pageContainer + "-themed " + o.classes.pageContainer + "-" + o.theme))), multiplePanels || this.document.off("panelopen panelclose"), this._open && this._page().jqmRemoveData("panel"), this._panelInner.children().unwrap(), this.element.removeClass([
this._getPanelClasses(),
o.classes.panelOpen,
@ -4310,7 +4310,7 @@
return 0 === items.length && (items = elem.children()), items;
},
_filterItems: function(val) {
var idx, callback, length, dst, show = [], hide = [], opts = this.options, filterItems = this._getFilterableItems();
var idx, callback, length, show = [], hide = [], opts = this.options, filterItems = this._getFilterableItems();
if (null != val) for(idx = 0, callback = opts.filterCallback || defaultFilterCallback, length = filterItems.length; idx < length; idx++)(callback.call(filterItems[idx], idx, val) ? hide : show).push(filterItems[idx]);
0 === hide.length ? filterItems[opts.filterReveal ? "addClass" : "removeClass"]("ui-screen-hidden") : ($(hide).addClass("ui-screen-hidden"), $(show).removeClass("ui-screen-hidden")), this._refreshChildWidget(), this._trigger("filter", null, {
items: filterItems
@ -4702,7 +4702,7 @@
});
}(jQuery), function($, window) {
$.mobile.iosorientationfixEnabled = !0;
var zoom, evt, x, y, z, aig, ua = navigator.userAgent;
var zoom, x, y, z, aig, ua = navigator.userAgent;
if (!(/iPhone|iPad|iPod/.test(navigator.platform) && /OS [1-5]_[0-9_]* like Mac OS X/i.test(ua) && ua.indexOf("AppleWebKit") > -1)) {
$.mobile.iosorientationfixEnabled = !1;
return;

View File

@ -218,14 +218,14 @@
}
if (key || ref) {
var props1, displayName, warnAboutAccessingKey, props2, displayName1, warnAboutAccessingRef, displayName2 = "function" == typeof type ? type.displayName || type.name || "Unknown" : type;
key && (props1 = props, displayName = displayName2, (warnAboutAccessingKey = function() {
specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName));
}).isReactWarning = !0, Object.defineProperty(props1, "key", {
key && ((warnAboutAccessingKey = function() {
specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName2));
}).isReactWarning = !0, Object.defineProperty(props, "key", {
get: warnAboutAccessingKey,
configurable: !0
})), ref && (props2 = props, displayName1 = displayName2, (warnAboutAccessingRef = function() {
specialPropRefWarningShown || (specialPropRefWarningShown = !0, error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName1));
}).isReactWarning = !0, Object.defineProperty(props2, "ref", {
})), ref && ((warnAboutAccessingRef = function() {
specialPropRefWarningShown || (specialPropRefWarningShown = !0, error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName2));
}).isReactWarning = !0, Object.defineProperty(props, "ref", {
get: warnAboutAccessingRef,
configurable: !0
}));

View File

@ -3158,12 +3158,12 @@
}
return listenerWrapper.bind(null, domEventName, eventSystemFlags, targetContainer);
}(targetContainer, domEventName, eventSystemFlags), isPassiveListener = void 0;
passiveBrowserEventsSupported && ("touchstart" === domEventName || "touchmove" === domEventName || "wheel" === domEventName) && (isPassiveListener = !0), isCapturePhaseListener ? void 0 !== isPassiveListener ? (target = targetContainer, eventType = domEventName, listener = listener4, passive = isPassiveListener, target.addEventListener(eventType, listener, {
passiveBrowserEventsSupported && ("touchstart" === domEventName || "touchmove" === domEventName || "wheel" === domEventName) && (isPassiveListener = !0), isCapturePhaseListener ? void 0 !== isPassiveListener ? (passive = isPassiveListener, targetContainer.addEventListener(domEventName, listener4, {
capture: !0,
passive: passive
})) : (target1 = targetContainer, eventType1 = domEventName, listener1 = listener4, target1.addEventListener(eventType1, listener1, !0)) : void 0 !== isPassiveListener ? (target2 = targetContainer, eventType2 = domEventName, listener2 = listener4, passive1 = isPassiveListener, target2.addEventListener(eventType2, listener2, {
})) : targetContainer.addEventListener(domEventName, listener4, !0) : void 0 !== isPassiveListener ? (passive1 = isPassiveListener, targetContainer.addEventListener(domEventName, listener4, {
passive: passive1
})) : (target3 = targetContainer, eventType3 = domEventName, listener3 = listener4, target3.addEventListener(eventType3, listener3, !1));
})) : targetContainer.addEventListener(domEventName, listener4, !1);
}
function isMatchingRootContainer(grandContainer, targetContainer) {
return grandContainer === targetContainer || 8 === grandContainer.nodeType && grandContainer.parentNode === targetContainer;
@ -3352,7 +3352,7 @@
}
})(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags), function(dispatchQueue, domEventName, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, targetContainer) {
var node, state, elem, nodeName, elem1, nodeName1, getTargetInstFunc, handleEventFunc, targetNode = targetInst ? getNodeFromInstance(targetInst) : window;
if ("select" === (nodeName = targetNode.nodeName && targetNode.nodeName.toLowerCase()) || "input" === nodeName && "file" === targetNode.type ? getTargetInstFunc = getTargetInstForChangeEvent : isTextInputElement(targetNode) ? isInputEventSupported ? getTargetInstFunc = getTargetInstForInputOrChangeEvent : (getTargetInstFunc = getTargetInstForInputEventPolyfill, handleEventFunc = handleEventsForInputEventPolyfill) : (nodeName1 = (elem1 = targetNode).nodeName) && "input" === nodeName1.toLowerCase() && ("checkbox" === elem1.type || "radio" === elem1.type) && (getTargetInstFunc = getTargetInstForClickEvent), getTargetInstFunc) {
if ("select" === (nodeName = targetNode.nodeName && targetNode.nodeName.toLowerCase()) || "input" === nodeName && "file" === targetNode.type ? getTargetInstFunc = getTargetInstForChangeEvent : isTextInputElement(targetNode) ? isInputEventSupported ? getTargetInstFunc = getTargetInstForInputOrChangeEvent : (getTargetInstFunc = getTargetInstForInputEventPolyfill, handleEventFunc = handleEventsForInputEventPolyfill) : (nodeName1 = targetNode.nodeName) && "input" === nodeName1.toLowerCase() && ("checkbox" === targetNode.type || "radio" === targetNode.type) && (getTargetInstFunc = getTargetInstForClickEvent), getTargetInstFunc) {
var inst = getTargetInstFunc(domEventName, targetInst);
if (inst) {
createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, nativeEventTarget);
@ -4244,11 +4244,11 @@
}
function scheduleWorkOnParentPath(parent, renderLanes) {
for(var node = parent; null !== node;){
var a, a1, a2, alternate = node.alternate;
var alternate = node.alternate;
if (isSubsetOfLanes(node.childLanes, renderLanes)) {
if (null === alternate || isSubsetOfLanes(alternate.childLanes, renderLanes)) break;
alternate.childLanes = (a = alternate.childLanes) | renderLanes;
} else node.childLanes = (a1 = node.childLanes) | renderLanes, null !== alternate && (alternate.childLanes = (a2 = alternate.childLanes) | renderLanes);
alternate.childLanes = alternate.childLanes | renderLanes;
} else node.childLanes = node.childLanes | renderLanes, null !== alternate && (alternate.childLanes = alternate.childLanes | renderLanes);
node = node.return;
}
}
@ -4600,7 +4600,7 @@
}
1 & workInProgress.mode && ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance2), ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance2), processUpdateQueue(workInProgress, newProps, instance2, renderLanes), instance2.state = workInProgress.memoizedState;
var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
"function" == typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps), instance2.state = workInProgress.memoizedState), "function" != typeof ctor.getDerivedStateFromProps && "function" != typeof instance2.getSnapshotBeforeUpdate && ("function" == typeof instance2.UNSAFE_componentWillMount || "function" == typeof instance2.componentWillMount) && (workInProgress2 = workInProgress, oldState = (instance1 = instance2).state, "function" == typeof instance1.componentWillMount && instance1.componentWillMount(), "function" == typeof instance1.UNSAFE_componentWillMount && instance1.UNSAFE_componentWillMount(), oldState !== instance1.state && (error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", getComponentName(workInProgress2.type) || "Component"), classComponentUpdater.enqueueReplaceState(instance1, instance1.state, null)), processUpdateQueue(workInProgress, newProps, instance2, renderLanes), instance2.state = workInProgress.memoizedState), "function" == typeof instance2.componentDidMount && (workInProgress.flags |= 4);
"function" == typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps), instance2.state = workInProgress.memoizedState), "function" != typeof ctor.getDerivedStateFromProps && "function" != typeof instance2.getSnapshotBeforeUpdate && ("function" == typeof instance2.UNSAFE_componentWillMount || "function" == typeof instance2.componentWillMount) && (oldState = instance2.state, "function" == typeof instance2.componentWillMount && instance2.componentWillMount(), "function" == typeof instance2.UNSAFE_componentWillMount && instance2.UNSAFE_componentWillMount(), oldState !== instance2.state && (error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", getComponentName(workInProgress.type) || "Component"), classComponentUpdater.enqueueReplaceState(instance2, instance2.state, null)), processUpdateQueue(workInProgress, newProps, instance2, renderLanes), instance2.state = workInProgress.memoizedState), "function" == typeof instance2.componentDidMount && (workInProgress.flags |= 4);
}
var warnForMissingKey = function(child, returnFiber) {};
didWarnAboutMaps = !1, didWarnAboutGenerators = !1, didWarnAboutStringRefs = {}, ownerHasKeyUseWarning = {}, ownerHasFunctionTypeWarning = {}, warnForMissingKey = function(child, returnFiber) {
@ -6200,7 +6200,7 @@
return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes);
}
function updateOffscreenComponent(current, workInProgress, renderLanes) {
var nextBaseLanes, a, a1, _subtreeRenderLanes, nextProps = workInProgress.pendingProps, nextChildren = nextProps.children, prevState = null !== current ? current.memoizedState : null;
var nextBaseLanes, _subtreeRenderLanes, nextProps = workInProgress.pendingProps, nextChildren = nextProps.children, prevState = null !== current ? current.memoizedState : null;
if ("hidden" === nextProps.mode || "unstable-defer-without-hiding" === nextProps.mode) {
if ((4 & workInProgress.mode) == 0) workInProgress.memoizedState = {
baseLanes: 0
@ -6209,13 +6209,13 @@
baseLanes: 0
}, pushRenderLanes(workInProgress, null !== prevState ? prevState.baseLanes : renderLanes);
else {
nextBaseLanes = null !== prevState ? (a = prevState.baseLanes) | renderLanes : renderLanes, markSpawnedWork(1073741824), workInProgress.lanes = workInProgress.childLanes = 1073741824;
nextBaseLanes = null !== prevState ? prevState.baseLanes | renderLanes : renderLanes, markSpawnedWork(1073741824), workInProgress.lanes = workInProgress.childLanes = 1073741824;
var _nextState = {
baseLanes: nextBaseLanes
};
return workInProgress.memoizedState = _nextState, pushRenderLanes(workInProgress, nextBaseLanes), null;
}
} else null !== prevState ? (_subtreeRenderLanes = (a1 = prevState.baseLanes) | renderLanes, workInProgress.memoizedState = null) : _subtreeRenderLanes = renderLanes, pushRenderLanes(workInProgress, _subtreeRenderLanes);
} else null !== prevState ? (_subtreeRenderLanes = prevState.baseLanes | renderLanes, workInProgress.memoizedState = null) : _subtreeRenderLanes = renderLanes, pushRenderLanes(workInProgress, _subtreeRenderLanes);
return reconcileChildren(current, workInProgress, nextChildren, renderLanes), workInProgress.child;
}
function markRef(current, workInProgress) {
@ -6298,7 +6298,7 @@
}
isRendering = !1;
}
return (workInProgress.flags |= 1, null !== current && didCaptureError) ? (current1 = current, workInProgress1 = workInProgress, nextChildren = nextChildren1, renderLanes1 = renderLanes, workInProgress1.child = reconcileChildFibers(workInProgress1, current1.child, null, renderLanes1), workInProgress1.child = reconcileChildFibers(workInProgress1, null, nextChildren, renderLanes1)) : reconcileChildren(current, workInProgress, nextChildren1, renderLanes), workInProgress.memoizedState = instance.state, hasContext && invalidateContextProvider(workInProgress, Component, !0), workInProgress.child;
return (workInProgress.flags |= 1, null !== current && didCaptureError) ? (workInProgress1 = workInProgress, nextChildren = nextChildren1, workInProgress1.child = reconcileChildFibers(workInProgress1, current.child, null, renderLanes), workInProgress1.child = reconcileChildFibers(workInProgress1, null, nextChildren, renderLanes)) : reconcileChildren(current, workInProgress, nextChildren1, renderLanes), workInProgress.memoizedState = instance.state, hasContext && invalidateContextProvider(workInProgress, Component, !0), workInProgress.child;
}
function pushHostRootContext(workInProgress) {
var root = workInProgress.stateNode;
@ -6398,13 +6398,13 @@
(primaryChildFragment = workInProgress.child).childLanes = 0, primaryChildFragment.pendingProps = primaryChildProps, 8 & workInProgress.mode && (primaryChildFragment.actualDuration = 0, primaryChildFragment.actualStartTime = -1, primaryChildFragment.selfBaseDuration = currentPrimaryChildFragment.selfBaseDuration, primaryChildFragment.treeBaseDuration = currentPrimaryChildFragment.treeBaseDuration);
var progressedLastEffect = primaryChildFragment.lastEffect;
null !== progressedLastEffect ? (workInProgress.firstEffect = primaryChildFragment.firstEffect, workInProgress.lastEffect = progressedLastEffect, progressedLastEffect.nextEffect = null) : workInProgress.firstEffect = workInProgress.lastEffect = null;
} else primaryChildFragment = createWorkInProgress(current1 = currentPrimaryChildFragment, primaryChildProps);
} else primaryChildFragment = createWorkInProgress(currentPrimaryChildFragment, primaryChildProps);
return null !== currentFallbackChildFragment ? fallbackChildFragment = createWorkInProgress(currentFallbackChildFragment, fallbackChildren) : (fallbackChildFragment = createFiberFromFragment(fallbackChildren, mode, renderLanes, null), fallbackChildFragment.flags |= 2), fallbackChildFragment.return = workInProgress, primaryChildFragment.return = workInProgress, primaryChildFragment.sibling = fallbackChildFragment, workInProgress.child = primaryChildFragment, fallbackChildFragment;
}
function scheduleWorkOnFiber(fiber, renderLanes) {
fiber.lanes = fiber.lanes | renderLanes;
var a, alternate = fiber.alternate;
null !== alternate && (alternate.lanes = (a = alternate.lanes) | renderLanes), scheduleWorkOnParentPath(fiber.return, renderLanes);
var alternate = fiber.alternate;
null !== alternate && (alternate.lanes = alternate.lanes | renderLanes), scheduleWorkOnParentPath(fiber.return, renderLanes);
}
function validateSuspenseListNestedChild(childSlot, index) {
var isArray = Array.isArray(childSlot), isIterable = !isArray && "function" == typeof getIteratorFn(childSlot);
@ -6720,12 +6720,12 @@
for(var dependency = list.firstContext; null !== dependency;){
if (dependency.context === context && (dependency.observedBits & changedBits) != 0) {
if (1 === fiber.tag) {
var a, update = createUpdate(-1, pickArbitraryLane(renderLanes));
var update = createUpdate(-1, pickArbitraryLane(renderLanes));
update.tag = 2, enqueueUpdate(fiber, update);
}
fiber.lanes = fiber.lanes | renderLanes;
var alternate = fiber.alternate;
null !== alternate && (alternate.lanes = (a = alternate.lanes) | renderLanes), scheduleWorkOnParentPath(fiber.return, renderLanes), list.lanes = list.lanes | renderLanes;
null !== alternate && (alternate.lanes = alternate.lanes | renderLanes), scheduleWorkOnParentPath(fiber.return, renderLanes), list.lanes = list.lanes | renderLanes;
break;
}
dependency = dependency.next;
@ -7075,7 +7075,7 @@
return shouldUpdate;
})(workInProgress) && markUpdate(workInProgress);
else {
workInProgress.stateNode = (text = newProps, rootContainerInstance4 = _rootContainerInstance, hostContext3 = _currentHostContext, internalInstanceHandle1 = workInProgress, validateDOMNesting(null, text, hostContext3.ancestorInfo), hostInst2 = internalInstanceHandle1, (node4 = (text1 = text, textNode = getOwnerDocumentFromRootContainer(rootContainerInstance4).createTextNode(text1)))[internalInstanceKey] = hostInst2, textNode);
workInProgress.stateNode = (validateDOMNesting(null, newProps, _currentHostContext.ancestorInfo), hostInst2 = workInProgress, (node4 = textNode = getOwnerDocumentFromRootContainer(_rootContainerInstance).createTextNode(newProps))[internalInstanceKey] = hostInst2, textNode);
}
}
return null;
@ -7381,7 +7381,7 @@
var firstEffect = lastEffect.next, effect = firstEffect;
do {
var current1, _effect2 = effect, destroy = _effect2.destroy, tag = _effect2.tag;
void 0 !== destroy && ((4 & tag) != 0 ? enqueuePendingPassiveHookEffectUnmount(current, effect) : (current1 = current, invokeGuardedCallback(null, destroy, null), hasError && captureCommitPhaseError(current1, clearCaughtError()))), effect = effect.next;
void 0 !== destroy && ((4 & tag) != 0 ? enqueuePendingPassiveHookEffectUnmount(current, effect) : (invokeGuardedCallback(null, destroy, null), hasError && captureCommitPhaseError(current, clearCaughtError()))), effect = effect.next;
}while (effect !== firstEffect)
}
}
@ -7389,7 +7389,7 @@
case 1:
safelyDetachRef(current);
var current2, instance = current.stateNode;
"function" == typeof instance.componentWillUnmount && (invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current2 = current, instance), hasError && captureCommitPhaseError(current2, clearCaughtError()));
"function" == typeof instance.componentWillUnmount && (invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current, instance), hasError && captureCommitPhaseError(current, clearCaughtError()));
return;
case 5:
safelyDetachRef(current);
@ -7447,7 +7447,7 @@
var tag = node.tag, isHost = 5 === tag || 6 === tag;
if (isHost) {
var container, child, beforeChild, container1, child1, parentNode, reactRootContainer, stateNode = isHost ? node.stateNode : node.stateNode.instance;
before ? (container = parent, child = stateNode, beforeChild = before, 8 === container.nodeType ? container.parentNode.insertBefore(child, beforeChild) : container.insertBefore(child, beforeChild)) : (container1 = parent, child1 = stateNode, 8 === container1.nodeType ? (parentNode = container1.parentNode).insertBefore(child1, container1) : (parentNode = container1).appendChild(child1), (null === (reactRootContainer = container1._reactRootContainer) || void 0 === reactRootContainer) && null === parentNode.onclick && trapClickOnNonInteractiveElement(parentNode));
before ? 8 === parent.nodeType ? parent.parentNode.insertBefore(stateNode, before) : parent.insertBefore(stateNode, before) : (8 === parent.nodeType ? (parentNode = parent.parentNode).insertBefore(stateNode, parent) : (parentNode = parent).appendChild(stateNode), (null === (reactRootContainer = parent._reactRootContainer) || void 0 === reactRootContainer) && null === parentNode.onclick && trapClickOnNonInteractiveElement(parentNode));
} else if (4 === tag) ;
else {
var child2 = node.child;
@ -7558,7 +7558,7 @@
if (null != instance) {
var node, props, domElement, updatePayload, type, oldProps, newProps, newProps1 = finishedWork.memoizedProps, oldProps1 = null !== current ? current.memoizedProps : newProps1, type1 = finishedWork.type, updatePayload1 = finishedWork.updateQueue;
if (finishedWork.updateQueue = null, null !== updatePayload1) {
domElement = instance, updatePayload = updatePayload1, type = type1, oldProps = oldProps1, node = domElement, props = newProps = newProps1, node[internalPropsKey] = props, function(domElement, updatePayload, tag, lastRawProps, nextRawProps) {
node = instance, props = newProps1, node[internalPropsKey] = props, function(domElement, updatePayload, tag, lastRawProps, nextRawProps) {
"input" === tag && "radio" === nextRawProps.type && null != nextRawProps.name && updateChecked(domElement, nextRawProps);
var element, props, node, wasMultiple, value, wasCustomComponentTag = isCustomComponent(tag, lastRawProps);
switch(function(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
@ -7576,7 +7576,7 @@
case "select":
wasMultiple = (node = domElement)._wrapperState.wasMultiple, node._wrapperState.wasMultiple = !!nextRawProps.multiple, null != (value = nextRawProps.value) ? updateOptions(node, !!nextRawProps.multiple, value, !1) : !!nextRawProps.multiple !== wasMultiple && (null != nextRawProps.defaultValue ? updateOptions(node, !!nextRawProps.multiple, nextRawProps.defaultValue, !0) : updateOptions(node, !!nextRawProps.multiple, nextRawProps.multiple ? [] : "", !1));
}
}(domElement, updatePayload, type, oldProps, newProps);
}(instance, updatePayload1, type1, oldProps1, newProps1);
}
}
return;
@ -7667,7 +7667,7 @@
didWarnAboutUpdateInRender || (error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."), didWarnAboutUpdateInRender = !0);
}
}(fiber);
var a, root = markUpdateLaneFromFiberToRoot(fiber, lane);
var root = markUpdateLaneFromFiberToRoot(fiber, lane);
if (null === root) return function(fiber) {
var tag = fiber.tag;
if ((3 === tag || 1 === tag || 0 === tag || 11 === tag || 14 === tag || 15 === tag || 22 === tag) && (8192 & fiber.flags) == 0) {
@ -7689,7 +7689,7 @@
}
}
}(fiber), null;
markRootUpdated(root, lane, eventTime), root === workInProgressRoot && (workInProgressRootUpdatedLanes = (a = workInProgressRootUpdatedLanes) | lane, 4 === workInProgressRootExitStatus && markRootSuspended$1(root, workInProgressRootRenderLanes));
markRootUpdated(root, lane, eventTime), root === workInProgressRoot && (workInProgressRootUpdatedLanes = workInProgressRootUpdatedLanes | lane, 4 === workInProgressRootExitStatus && markRootSuspended$1(root, workInProgressRootRenderLanes));
var priorityLevel = getCurrentPriorityLevel();
1 === lane ? (8 & executionContext) != 0 && (48 & executionContext) == 0 ? (schedulePendingInteractions(root, lane), performSyncWorkOnRoot(root)) : (ensureRootIsScheduled(root, eventTime), schedulePendingInteractions(root, lane), 0 === executionContext && (resetRenderTimer(), flushSyncCallbackQueue())) : ((4 & executionContext) != 0 && (98 === priorityLevel || 99 === priorityLevel) && (null === rootsWithPendingDiscreteUpdates ? rootsWithPendingDiscreteUpdates = new Set([
root
@ -7697,9 +7697,9 @@
}
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
sourceFiber.lanes = sourceFiber.lanes | lane;
var a, a1, a2, alternate = sourceFiber.alternate;
null !== alternate && (alternate.lanes = (a = alternate.lanes) | lane), null === alternate && (1026 & sourceFiber.flags) != 0 && warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);
for(var node = sourceFiber, parent = sourceFiber.return; null !== parent;)(parent.childLanes = (a1 = parent.childLanes) | lane, null !== (alternate = parent.alternate)) ? alternate.childLanes = (a2 = alternate.childLanes) | lane : (1026 & parent.flags) != 0 && warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber), node = parent, parent = parent.return;
var alternate = sourceFiber.alternate;
null !== alternate && (alternate.lanes = alternate.lanes | lane), null === alternate && (1026 & sourceFiber.flags) != 0 && warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);
for(var node = sourceFiber, parent = sourceFiber.return; null !== parent;)(parent.childLanes = parent.childLanes | lane, null !== (alternate = parent.alternate)) ? alternate.childLanes = alternate.childLanes | lane : (1026 & parent.flags) != 0 && warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber), node = parent, parent = parent.return;
return 3 === node.tag ? node.stateNode : null;
}
function ensureRootIsScheduled(root, currentTime) {
@ -8028,13 +8028,13 @@
if (24 !== completedWork.tag && 23 !== completedWork.tag || null === completedWork.memoizedState || (1073741824 & subtreeRenderLanes) != 0 || (4 & completedWork.mode) == 0) {
var newChildLanes = 0;
if ((8 & completedWork.mode) != 0) {
for(var a, a1, actualDuration = completedWork.actualDuration, treeBaseDuration = completedWork.selfBaseDuration, shouldBubbleActualDurations = null === completedWork.alternate || completedWork.child !== completedWork.alternate.child, child = completedWork.child; null !== child;)newChildLanes = (a1 = newChildLanes) | ((a = child.lanes) | child.childLanes), shouldBubbleActualDurations && (actualDuration += child.actualDuration), treeBaseDuration += child.treeBaseDuration, child = child.sibling;
for(var actualDuration = completedWork.actualDuration, treeBaseDuration = completedWork.selfBaseDuration, shouldBubbleActualDurations = null === completedWork.alternate || completedWork.child !== completedWork.alternate.child, child = completedWork.child; null !== child;)newChildLanes = newChildLanes | (child.lanes | child.childLanes), shouldBubbleActualDurations && (actualDuration += child.actualDuration), treeBaseDuration += child.treeBaseDuration, child = child.sibling;
if (13 === completedWork.tag && null !== completedWork.memoizedState) {
var primaryChildFragment = completedWork.child;
null !== primaryChildFragment && (treeBaseDuration -= primaryChildFragment.treeBaseDuration);
}
completedWork.actualDuration = actualDuration, completedWork.treeBaseDuration = treeBaseDuration;
} else for(var a2, a3, _child = completedWork.child; null !== _child;)newChildLanes = (a3 = newChildLanes) | ((a2 = _child.lanes) | _child.childLanes), _child = _child.sibling;
} else for(var _child = completedWork.child; null !== _child;)newChildLanes = newChildLanes | (_child.lanes | _child.childLanes), _child = _child.sibling;
completedWork.childLanes = newChildLanes;
}
})(completedWork), null !== returnFiber && (2048 & returnFiber.flags) == 0 && (null === returnFiber.firstEffect && (returnFiber.firstEffect = completedWork.firstEffect), null !== completedWork.lastEffect && (null !== returnFiber.lastEffect && (returnFiber.lastEffect.nextEffect = completedWork.firstEffect), returnFiber.lastEffect = completedWork.lastEffect), completedWork.flags > 1 && (null !== returnFiber.lastEffect ? returnFiber.lastEffect.nextEffect = completedWork : returnFiber.firstEffect = completedWork, returnFiber.lastEffect = completedWork));
@ -8523,10 +8523,10 @@
}
}
function pingSuspendedRoot(root, wakeable, pingedLanes) {
var a, pingCache = root.pingCache;
var pingCache = root.pingCache;
null !== pingCache && pingCache.delete(wakeable);
var eventTime = requestEventTime();
markRootPinged(root, pingedLanes), workInProgressRoot === root && isSubsetOfLanes(workInProgressRootRenderLanes, pingedLanes) && (4 === workInProgressRootExitStatus || 3 === workInProgressRootExitStatus && includesOnlyRetries(workInProgressRootRenderLanes) && now() - globalMostRecentFallbackTime < 500 ? prepareFreshStack(root, 0) : workInProgressRootPingedLanes = (a = workInProgressRootPingedLanes) | pingedLanes), ensureRootIsScheduled(root, eventTime), schedulePendingInteractions(root, pingedLanes);
markRootPinged(root, pingedLanes), workInProgressRoot === root && isSubsetOfLanes(workInProgressRootRenderLanes, pingedLanes) && (4 === workInProgressRootExitStatus || 3 === workInProgressRootExitStatus && includesOnlyRetries(workInProgressRootRenderLanes) && now() - globalMostRecentFallbackTime < 500 ? prepareFreshStack(root, 0) : workInProgressRootPingedLanes = workInProgressRootPingedLanes | pingedLanes), ensureRootIsScheduled(root, eventTime), schedulePendingInteractions(root, pingedLanes);
}
function resolveRetryWakeable(boundaryFiber, wakeable) {
var retryCache, boundaryFiber1, retryLane, eventTime, root, lane, mode;
@ -8946,7 +8946,7 @@
}
}(container, element);
var fiber, current$1 = container.current, eventTime = requestEventTime();
"undefined" != typeof jest && (fiber = current$1, !1 === didWarnAboutUnmockedScheduler && void 0 === unstable_flushAllWithoutAsserting && (2 & fiber.mode || 4 & fiber.mode) && (didWarnAboutUnmockedScheduler = !0, error("In Concurrent or Sync modes, the \"scheduler\" module needs to be mocked to guarantee consistent behaviour across tests and browsers. For example, with jest: \njest.mock('scheduler', () => require('scheduler/unstable_mock'));\n\nFor more info, visit https://reactjs.org/link/mock-scheduler")), warnIfNotScopedWithMatchingAct(current$1));
"undefined" != typeof jest && (!1 === didWarnAboutUnmockedScheduler && void 0 === unstable_flushAllWithoutAsserting && (2 & current$1.mode || 4 & current$1.mode) && (didWarnAboutUnmockedScheduler = !0, error("In Concurrent or Sync modes, the \"scheduler\" module needs to be mocked to guarantee consistent behaviour across tests and browsers. For example, with jest: \njest.mock('scheduler', () => require('scheduler/unstable_mock'));\n\nFor more info, visit https://reactjs.org/link/mock-scheduler")), warnIfNotScopedWithMatchingAct(current$1));
var lane = requestUpdateLane(current$1), context = function(parentComponent) {
if (!parentComponent) return emptyContextObject;
var fiber = get(parentComponent), parentContext = function(fiber) {
@ -8981,7 +8981,7 @@
}
function markRetryLaneImpl(fiber, retryLane) {
var a, b, suspenseState = fiber.memoizedState;
null !== suspenseState && null !== suspenseState.dehydrated && (suspenseState.retryLane = (a = suspenseState.retryLane, b = retryLane, 0 !== a && a < b ? a : b));
null !== suspenseState && null !== suspenseState.dehydrated && (suspenseState.retryLane = 0 !== (a = suspenseState.retryLane) && a < retryLane ? a : retryLane);
}
function markRetryLaneIfNotHydrated(fiber, retryLane) {
markRetryLaneImpl(fiber, retryLane);

View File

@ -137,7 +137,7 @@ var YUI = function() {
return this;
},
_attach: function(r, moot) {
var i, name, mod, details, req, use, after, j, loader, def, go, mods = YUI.Env.mods, aliases = YUI.Env.aliases, Y = this, cache = YUI.Env._renderedMods, loader = Y.Env._loader, done = Y.Env._attached, len = r.length, c = [];
var i, name, mod, details, req, use, after, j, loader, def, mods = YUI.Env.mods, aliases = YUI.Env.aliases, Y = this, cache = YUI.Env._renderedMods, loader = Y.Env._loader, done = Y.Env._attached, len = r.length, c = [];
for(i = 0; i < len; i++)if (mod = mods[name = r[i]], c.push(name), loader && loader.conditions[name]) for(j in loader.conditions[name])loader.conditions[name].hasOwnProperty(j) && (def = loader.conditions[name][j]) && (def.ua && Y.UA[def.ua] || def.test && def.test(Y)) && c.push(def.name);
for(i = 0, len = (r = c).length; i < len; i++)if (!done[r[i]]) {
if (mod = mods[name = r[i]], aliases && aliases[name] && !mod) {
@ -1439,7 +1439,7 @@ var YUI = function() {
name: name,
fullpath: o
});
var subs, i, l, t, sup, s, smod, plugins, plug, j, langs, packName, supName, flatSup, flatLang, lang, ret, overrides, skinname, when, g, p, trigger, conditions = this.conditions;
var subs, i, l, t, sup, s, smod, plugins, plug, j, langs, packName, supName, flatSup, flatLang, lang, overrides, skinname, when, g, p, trigger, conditions = this.conditions;
if (this.moduleInfo[name] && this.moduleInfo[name].temp && (o = Y.merge(this.moduleInfo[name], o)), o.name = name, !o || !o.name) return null;
if (!o.type && (o.type = "js", (p = o.path || o.fullpath) && this.REGEX_CSS.test(p) && (o.type = "css")), o.path || o.fullpath || (o.path = _path(name, name, o.type)), o.supersedes = o.supersedes || o.use, o.ext = "ext" in o ? o.ext : !this._internal, subs = o.submodules, this.moduleInfo[name] = o, o.requires = o.requires || [], this.requires) for(i = 0; i < this.requires.length; i++)o.requires.push(this.requires[i]);
if (o.group && this.groups && this.groups[o.group] && (g = this.groups[o.group]).requires) for(i = 0; i < g.requires.length; i++)o.requires.push(g.requires[i]);
@ -1492,7 +1492,7 @@ var YUI = function() {
getRequires: function(mod) {
if (!mod) return NO_REQUIREMENTS;
if (mod._parsed) return mod.expanded || NO_REQUIREMENTS;
var i, m, j, add, packName, lang, cond, d, go, def, r, old_mod, o, skinmod, skindef, skinpar, skinname, hash, reparse, testresults = this.testresults, name = mod.name, adddef = ON_PAGE[name] && ON_PAGE[name].details, intl = mod.lang || mod.intl, info = this.moduleInfo, ftests = Y.Features && Y.Features.tests.load;
var i, m, j, add, packName, lang, cond, d, def, r, old_mod, o, skinmod, skindef, skinpar, skinname, hash, reparse, testresults = this.testresults, name = mod.name, adddef = ON_PAGE[name] && ON_PAGE[name].details, intl = mod.lang || mod.intl, info = this.moduleInfo, ftests = Y.Features && Y.Features.tests.load;
if (mod.temp && adddef && (old_mod = mod, (mod = this.addModule(adddef, name)).group = old_mod.group, mod.pkg = old_mod.pkg, delete mod.expanded), reparse = !((!this.lang || mod.langCache === this.lang) && mod.skinCache === this.skin.defaultSkin), mod.expanded && !reparse) return mod.expanded;
for(d = [], hash = {}, r = this.filterRequires(mod.requires), mod.lang && (d.unshift("intl"), r.unshift("intl"), intl = !0), o = this.filterRequires(mod.optional), mod._parsed = !0, mod.langCache = this.lang, mod.skinCache = this.skin.defaultSkin, i = 0; i < r.length; i++)if (!hash[r[i]] && (d.push(r[i]), hash[r[i]] = !0, m = this.getModule(r[i]))) for(j = 0, add = this.getRequires(m), intl = intl || m.expanded_map && (INTL in m.expanded_map); j < add.length; j++)d.push(add[j]);
if (r = this.filterRequires(mod.supersedes)) {
@ -1530,7 +1530,7 @@ var YUI = function() {
(o || type || this.dirty) && (o && this._config(o), this._init || this._setup(), this._explode(), this.allowRollup ? this._rollup() : this._explodeRollups(), this._reduce(), this._sort());
},
_addLangPack: function(lang, m, packName) {
var packPath, conf, name = m.name;
var conf, name = m.name;
return !this.moduleInfo[packName] && (conf = {
path: _path(m.pkg || name, packName, "js", !0),
intl: !0,

View File

@ -0,0 +1,5 @@
export function MultiPoint(point) {
for (var point1, i = 0; i < 10; i++) {
return (point1 = point), 0 === distance(point1);
}
}

View File

@ -0,0 +1,3 @@
export function MultiPoint(point) {
for(var point1, i = 0; i < 10; i++)return 0 === distance(point);
}