mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
feat(es/minifier): Relax requirement for IIFE invokation (#5721)
This commit is contained in:
parent
a3a66c1191
commit
5b2d024788
@ -1,16 +1,15 @@
|
||||
"use strict";
|
||||
function e(e, t) {
|
||||
"use strict";
|
||||
!function(e, n) {
|
||||
n(t);
|
||||
}(void 0, function(e) {
|
||||
var r;
|
||||
(r = function(e) {
|
||||
"use strict";
|
||||
e.vr = function(e, t, n) {
|
||||
e.vr = function(e, t, r) {
|
||||
return function() {
|
||||
return '123';
|
||||
};
|
||||
};
|
||||
});
|
||||
})(t);
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: !0
|
||||
|
@ -32,11 +32,7 @@
|
||||
u: 23
|
||||
};
|
||||
ref.u;
|
||||
}(), function(f) {
|
||||
f(12);
|
||||
}(function(i) {
|
||||
return i;
|
||||
}), ({
|
||||
}(), ({
|
||||
a: function(n) {
|
||||
return n;
|
||||
}
|
||||
|
@ -32,11 +32,7 @@
|
||||
u: 23
|
||||
};
|
||||
ref.u;
|
||||
}(), function(f) {
|
||||
f(12);
|
||||
}(function(i) {
|
||||
return i;
|
||||
}), ({
|
||||
}(), ({
|
||||
a: function(n) {
|
||||
return n;
|
||||
}
|
||||
|
@ -1,4 +1,2 @@
|
||||
//// [functionConstraintSatisfaction2.ts]
|
||||
!function(x) {
|
||||
return x;
|
||||
}(function() {}, 1), Function();
|
||||
Function();
|
||||
|
@ -1,6 +1 @@
|
||||
//// [functionConstraintSatisfaction3.ts]
|
||||
!function(x) {
|
||||
return x;
|
||||
}(function(x) {
|
||||
return x;
|
||||
});
|
||||
|
@ -8,28 +8,4 @@ foo(function(x) {
|
||||
return "";
|
||||
}), foo(function(x) {
|
||||
return "";
|
||||
}), function(x, cb) {
|
||||
cb(1);
|
||||
}(1, function(a) {
|
||||
return "";
|
||||
}), function(x, cb) {
|
||||
cb(1);
|
||||
}(1, function(a) {
|
||||
return "";
|
||||
}), function(x, cb) {
|
||||
cb("");
|
||||
}("", function(a) {
|
||||
return 1;
|
||||
}), function(x, cb, y) {
|
||||
cb(1);
|
||||
}(1, function(a) {
|
||||
return "";
|
||||
}, ""), function(x, cb, y) {
|
||||
cb(1);
|
||||
}(1, function(a) {
|
||||
return "";
|
||||
}, 1), function(x, cb, y) {
|
||||
cb(1);
|
||||
}(1, function(a) {
|
||||
return "";
|
||||
}, "");
|
||||
});
|
||||
|
@ -18,16 +18,6 @@ function error(message) {
|
||||
}, _proto.never2 = function() {
|
||||
for(;;);
|
||||
}, C;
|
||||
}(), function(cb) {
|
||||
cb();
|
||||
}(function() {
|
||||
return "hello";
|
||||
}), function(cb) {
|
||||
cb();
|
||||
}(function() {
|
||||
return error("Something failed");
|
||||
}), function(cb) {
|
||||
cb();
|
||||
}(function() {
|
||||
}(), error("Something failed"), function() {
|
||||
throw Error();
|
||||
}), error("Error callback");
|
||||
}(), error("Error callback");
|
||||
|
@ -1,58 +1,14 @@
|
||||
//// [parenthesizedContexualTyping1.ts]
|
||||
!function(g, x) {
|
||||
return g(10);
|
||||
}(function(x) {
|
||||
return x;
|
||||
}, 10), function(g, x) {
|
||||
g(10);
|
||||
}(function(x) {
|
||||
return x;
|
||||
}, 10), function(g, x) {
|
||||
g(10);
|
||||
}(function(x) {
|
||||
return x;
|
||||
}, 10), function(g, x) {
|
||||
g(10);
|
||||
}(function(x) {
|
||||
return x;
|
||||
}, 10), function(g, x) {
|
||||
g(x);
|
||||
}(function(x) {
|
||||
return x;
|
||||
}, function(x) {
|
||||
return x;
|
||||
}, 10), function(g, x) {
|
||||
g(x);
|
||||
}(function(x) {
|
||||
return x;
|
||||
}, function(x) {
|
||||
return x;
|
||||
}, 10), function(g, x) {
|
||||
g(x);
|
||||
}(function(x) {
|
||||
return x;
|
||||
}, function(x) {
|
||||
return x;
|
||||
}, 10), function(g, x) {
|
||||
g(x);
|
||||
}(function(x) {
|
||||
return x;
|
||||
}, function(x) {
|
||||
return x;
|
||||
}, 10), (0.5 > Math.random() ? function(x) {
|
||||
(0.5 > Math.random() ? function(x) {
|
||||
return x;
|
||||
} : function(x) {})(10), (0.5 > Math.random() ? function(x) {
|
||||
return x;
|
||||
} : function(x) {})(10), function(g, x) {
|
||||
g(x);
|
||||
}(0.5 > Math.random() ? function(x) {
|
||||
} : function(x) {})(10), (0.5 > Math.random() ? function(x) {
|
||||
return x;
|
||||
} : function(x) {}, function(x) {
|
||||
} : function(x) {})(function(x) {
|
||||
return x;
|
||||
}, 10), function(g, x) {
|
||||
g(x);
|
||||
}(0.5 > Math.random() ? function(x) {
|
||||
}), (0.5 > Math.random() ? function(x) {
|
||||
return x;
|
||||
} : function(x) {}, function(x) {
|
||||
} : function(x) {})(function(x) {
|
||||
return x;
|
||||
}, 10);
|
||||
});
|
||||
|
@ -1,16 +1,5 @@
|
||||
//// [stringLiteralTypesAsTypeParameterConstraint01.ts]
|
||||
(function(f) {
|
||||
return f;
|
||||
})(function(x) {
|
||||
var h = function(x) {
|
||||
return x;
|
||||
})("foo"), (function(f) {
|
||||
return f;
|
||||
})(function(x) {
|
||||
return x;
|
||||
})("foo");
|
||||
var h = function(f) {
|
||||
return f;
|
||||
}(function(x) {
|
||||
return x;
|
||||
});
|
||||
};
|
||||
h("foo"), h("bar");
|
||||
|
@ -1,6 +1,4 @@
|
||||
//// [stringLiteralTypesAsTypeParameterConstraint02.ts]
|
||||
(function(f) {
|
||||
return f;
|
||||
})(function(y) {
|
||||
!function(y) {
|
||||
return "foo" === y ? y : "foo";
|
||||
})("foo");
|
||||
}("foo");
|
||||
|
@ -1,10 +1 @@
|
||||
//// [bluebird.js]
|
||||
!function(f) {
|
||||
return f;
|
||||
}(function() {
|
||||
(function() {
|
||||
this._trampolineEnabled = !0;
|
||||
}).prototype.disableTrampolineIfNecessary = function(b) {
|
||||
b && (this._trampolineEnabled = !1);
|
||||
};
|
||||
});
|
||||
|
File diff suppressed because one or more lines are too long
@ -501,13 +501,6 @@ where
|
||||
log_abort!("iife: [x] Found spread argument");
|
||||
return;
|
||||
}
|
||||
match &*arg.expr {
|
||||
Expr::Fn(..) | Expr::Arrow(..) => {
|
||||
log_abort!("iife: [x] Found callable argument");
|
||||
return;
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
let body = f.function.body.as_mut().unwrap();
|
||||
|
@ -1,68 +1,28 @@
|
||||
!function(fn) {
|
||||
return fn();
|
||||
}(function(module, exports) {
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: !0
|
||||
});
|
||||
}), function(fn) {
|
||||
fn();
|
||||
}(function(module) {
|
||||
module.exports = {
|
||||
findConfig: function(from) {
|
||||
return function(dir) {
|
||||
throw Error("");
|
||||
};
|
||||
}
|
||||
};
|
||||
}), function(fn) {
|
||||
fn();
|
||||
}(function(module, exports) {
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: !0
|
||||
});
|
||||
}), function(fn) {
|
||||
fn();
|
||||
}(function(module, exports) {
|
||||
Object.defineProperty(void 0, "__esModule", {
|
||||
value: !0
|
||||
}), (void 0).exports = {
|
||||
findConfig: function(from) {
|
||||
return function(dir) {
|
||||
throw Error("");
|
||||
};
|
||||
}
|
||||
}, Object.defineProperty(void 0, "__esModule", {
|
||||
value: !0
|
||||
}), function() {
|
||||
function _interopRequireDefault(obj) {
|
||||
return obj && obj.__esModule ? obj : {
|
||||
default: obj
|
||||
};
|
||||
}
|
||||
_interopRequireDefault(), _interopRequireDefault();
|
||||
}), function(fn) {
|
||||
fn();
|
||||
}(function(module, exports) {
|
||||
exports.default = null, module.exports = exports.default;
|
||||
}), function(fn) {
|
||||
fn();
|
||||
}(function(module, exports) {
|
||||
exports.default = void 0;
|
||||
}), function(fn) {
|
||||
fn();
|
||||
}(function(module, exports) {
|
||||
exports.default = void 0, module.exports = exports.default;
|
||||
}), function(fn) {
|
||||
fn();
|
||||
}(function(module, exports) {
|
||||
exports.default = void 0, module.exports = exports.default;
|
||||
}), function(fn) {
|
||||
fn();
|
||||
}(function(module, exports) {
|
||||
}(), function(exports) {
|
||||
exports.default = null, (void 0).exports = exports.default;
|
||||
}(), (void 0).default = void 0, function(exports) {
|
||||
exports.default = void 0, (void 0).exports = exports.default;
|
||||
}(), function(exports) {
|
||||
exports.default = void 0, (void 0).exports = exports.default;
|
||||
}(), function(exports) {
|
||||
exports.default = void 0, exports.default = String;
|
||||
}), function(fn) {
|
||||
fn();
|
||||
}(function(module, exports) {
|
||||
}(), function(exports) {
|
||||
exports.default = void 0, exports.default = String;
|
||||
}), function(fn) {
|
||||
fn();
|
||||
}(function(module, exports) {
|
||||
exports.__esModule = !0;
|
||||
}), function(fn) {
|
||||
fn();
|
||||
}(function(module, exports) {
|
||||
exports.__esModule = !0;
|
||||
}), function(fn) {
|
||||
fn();
|
||||
}(function(module, exports) {
|
||||
exports.__esModule = !0;
|
||||
});
|
||||
}(), (void 0).__esModule = !0, (void 0).__esModule = !0, (void 0).__esModule = !0;
|
||||
|
@ -11150,19 +11150,17 @@
|
||||
function mb(a, b) {
|
||||
return null == a || "http://www.w3.org/1999/xhtml" === a ? lb(b) : "http://www.w3.org/2000/svg" === a && "foreignObject" === b ? "http://www.w3.org/1999/xhtml" : a;
|
||||
}
|
||||
var Ma, nb, ob = function(a) {
|
||||
return "undefined" != typeof MSApp && MSApp.execUnsafeLocalFunction ? function(b, c, d, e) {
|
||||
MSApp.execUnsafeLocalFunction(function() {
|
||||
return a(b, c, d, e);
|
||||
});
|
||||
} : a;
|
||||
}(function(a, b) {
|
||||
var a, Ma, nb, ob = (a = function(a, b) {
|
||||
if (a.namespaceURI !== kb.svg || "innerHTML" in a) a.innerHTML = b;
|
||||
else {
|
||||
for((nb = nb || document.createElement("div")).innerHTML = "<svg>" + b.valueOf().toString() + "</svg>", b = nb.firstChild; a.firstChild;)a.removeChild(a.firstChild);
|
||||
for(; b.firstChild;)a.appendChild(b.firstChild);
|
||||
}
|
||||
});
|
||||
}, "undefined" != typeof MSApp && MSApp.execUnsafeLocalFunction ? function(b, c, d, e) {
|
||||
MSApp.execUnsafeLocalFunction(function() {
|
||||
return a(b, c, d, e);
|
||||
});
|
||||
} : a);
|
||||
function pb(a, b) {
|
||||
if (b) {
|
||||
var c = a.firstChild;
|
||||
@ -11349,7 +11347,7 @@
|
||||
Pb = !0;
|
||||
}
|
||||
}), window.addEventListener("test", Qb, Qb), window.removeEventListener("test", Qb, Qb);
|
||||
} catch (a) {
|
||||
} catch (a1) {
|
||||
Pb = !1;
|
||||
}
|
||||
function Rb(a, b, c, d, e, f, g, h, k) {
|
||||
@ -13628,15 +13626,13 @@
|
||||
},
|
||||
useOpaqueIdentifier: function() {
|
||||
if (lh) {
|
||||
var a = !1, b = function(a) {
|
||||
return {
|
||||
$$typeof: Ga,
|
||||
toString: a,
|
||||
valueOf: a
|
||||
};
|
||||
}(function() {
|
||||
throw a || (a = !0, c("r:" + (tf++).toString(36))), Error(y(355));
|
||||
}), c = Qh(b)[1];
|
||||
var a, a1 = !1, b = {
|
||||
$$typeof: Ga,
|
||||
toString: a = function() {
|
||||
throw a1 || (a1 = !0, c("r:" + (tf++).toString(36))), Error(y(355));
|
||||
},
|
||||
valueOf: a
|
||||
}, c = Qh(b)[1];
|
||||
return 0 == (2 & R.mode) && (R.flags |= 516, Rh(5, function() {
|
||||
c("r:" + (tf++).toString(36));
|
||||
}, void 0, null)), b;
|
||||
@ -15678,7 +15674,7 @@
|
||||
var yk = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
if (!yk.isDisabled && yk.supportsFiber) try {
|
||||
Lf = yk.inject(xk), Mf = yk;
|
||||
} catch (a1) {}
|
||||
} catch (a2) {}
|
||||
}
|
||||
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
|
||||
Events: [
|
||||
|
@ -199,7 +199,7 @@
|
||||
function declaration(value, root, parent, length) {
|
||||
return node(value, root, parent, DECLARATION, Utility_substr(value, 0, length), Utility_substr(value, length + 1, -1), length);
|
||||
}
|
||||
var identifierWithPointTracking = function(begin, points, index) {
|
||||
var fn, cache, identifierWithPointTracking = function(begin, points, index) {
|
||||
for(var previous = 0, character = 0; previous = character, character = peek(), 38 === previous && 12 === character && (points[index] = 1), !token(character);)next();
|
||||
return slice(begin, position);
|
||||
}, toRules = function(parsed, points) {
|
||||
@ -356,25 +356,26 @@
|
||||
copy(replace(element.value, "@", "@" + WEBKIT), element, ""),
|
||||
], callback);
|
||||
case Enum_RULESET:
|
||||
if (element.length) return function(array, callback) {
|
||||
return array.map(callback).join("");
|
||||
}(element.props, function(value) {
|
||||
var value1;
|
||||
switch(value1 = value, (value1 = /(::plac\w+|:read-\w+)/.exec(value1)) ? value1[0] : value1){
|
||||
case ":read-only":
|
||||
case ":read-write":
|
||||
return serialize([
|
||||
copy(replace(value, /:(read-\w+)/, ":" + MOZ + "$1"), element, ""),
|
||||
], callback);
|
||||
case "::placeholder":
|
||||
return serialize([
|
||||
copy(replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1"), element, ""),
|
||||
copy(replace(value, /:(plac\w+)/, ":" + MOZ + "$1"), element, ""),
|
||||
copy(replace(value, /:(plac\w+)/, MS + "input-$1"), element, ""),
|
||||
], callback);
|
||||
}
|
||||
return "";
|
||||
});
|
||||
if (element.length) {
|
||||
var array, callback1;
|
||||
return array = element.props, callback1 = function(value) {
|
||||
var value1;
|
||||
switch(value1 = value, (value1 = /(::plac\w+|:read-\w+)/.exec(value1)) ? value1[0] : value1){
|
||||
case ":read-only":
|
||||
case ":read-write":
|
||||
return serialize([
|
||||
copy(replace(value, /:(read-\w+)/, ":" + MOZ + "$1"), element, ""),
|
||||
], callback);
|
||||
case "::placeholder":
|
||||
return serialize([
|
||||
copy(replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1"), element, ""),
|
||||
copy(replace(value, /:(plac\w+)/, ":" + MOZ + "$1"), element, ""),
|
||||
copy(replace(value, /:(plac\w+)/, MS + "input-$1"), element, ""),
|
||||
], callback);
|
||||
}
|
||||
return "";
|
||||
}, array.map(callback1).join("");
|
||||
}
|
||||
}
|
||||
}
|
||||
], hash_browser_esm = function(str) {
|
||||
@ -438,13 +439,10 @@
|
||||
return 45 === property.charCodeAt(1);
|
||||
}, isProcessableValue = function(value) {
|
||||
return null != value && "boolean" != typeof value;
|
||||
}, processStyleName = function(fn) {
|
||||
var cache = Object.create(null);
|
||||
return function(arg) {
|
||||
return void 0 === cache[arg] && (cache[arg] = fn(arg)), cache[arg];
|
||||
};
|
||||
}(function(styleName) {
|
||||
}, processStyleName = (fn = function(styleName) {
|
||||
return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase();
|
||||
}, cache = Object.create(null), function(arg) {
|
||||
return void 0 === cache[arg] && (cache[arg] = fn(arg)), cache[arg];
|
||||
}), processStyleValue = function(key, value) {
|
||||
switch(key){
|
||||
case "animation":
|
||||
@ -540,14 +538,12 @@
|
||||
for(var attrib = node.getAttribute("data-emotion").split(" "), i = 1; i < attrib.length; i++)inserted[attrib[i]] = !0;
|
||||
nodesToHydrate.push(node);
|
||||
});
|
||||
var container, _insert, currentSheet, collection, length, finalizingPlugins = [
|
||||
var callback, container, _insert, currentSheet, collection, length, finalizingPlugins = [
|
||||
stringify,
|
||||
function(callback) {
|
||||
return function(element) {
|
||||
!element.root && (element = element.return) && callback(element);
|
||||
};
|
||||
}(function(rule) {
|
||||
(callback = function(rule) {
|
||||
currentSheet.insert(rule);
|
||||
}, function(element) {
|
||||
!element.root && (element = element.return) && callback(element);
|
||||
}),
|
||||
], serializer = (collection = [
|
||||
compat,
|
||||
@ -668,19 +664,14 @@
|
||||
EmotionCacheContext.Provider;
|
||||
var emotion_element_99289b21_browser_esm_ThemeContext = (0, react.createContext)({});
|
||||
__webpack_require__(8679);
|
||||
var emotion_utils_browser_esm_insertStyles = function(cache, serialized, isStringTag) {
|
||||
var func, emotion_utils_browser_esm_insertStyles = function(cache, serialized, isStringTag) {
|
||||
var className = cache.key + "-" + serialized.name;
|
||||
if (!1 === isStringTag && void 0 === cache.registered[className] && (cache.registered[className] = serialized.styles), void 0 === cache.inserted[serialized.name]) {
|
||||
var current = serialized;
|
||||
do cache.insert(serialized === current ? "." + className : "", current, cache.sheet, !0), current = current.next;
|
||||
while (void 0 !== current)
|
||||
}
|
||||
}, Global = function(func) {
|
||||
return (0, react.forwardRef)(function(props, ref) {
|
||||
var cache = (0, react.useContext)(EmotionCacheContext);
|
||||
return func(props, cache, ref);
|
||||
});
|
||||
}(function(props, cache) {
|
||||
}, Global = (func = function(props, cache) {
|
||||
var serialized = emotion_serialize_browser_esm_serializeStyles([
|
||||
props.styles
|
||||
], void 0, (0, react.useContext)(emotion_element_99289b21_browser_esm_ThemeContext)), sheetRef = (0, react.useRef)();
|
||||
@ -716,7 +707,10 @@
|
||||
cache,
|
||||
serialized.name
|
||||
]), null;
|
||||
});
|
||||
}, (0, react.forwardRef)(function(props, ref) {
|
||||
var cache = (0, react.useContext)(EmotionCacheContext);
|
||||
return func(props, cache, ref);
|
||||
}));
|
||||
},
|
||||
8679: function(module, __unused_webpack_exports, __webpack_require__) {
|
||||
"use strict";
|
||||
@ -895,29 +889,27 @@
|
||||
}(arr, 2) || function() {
|
||||
throw TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
}(), visible = ref[0], setVisible = ref[1], setRef = _react.useCallback(function(el) {
|
||||
unobserve.current && (unobserve.current(), unobserve.current = void 0), !isDisabled && !visible && el && el.tagName && (unobserve.current = function(element, callback, options) {
|
||||
var ref = function(options) {
|
||||
var id = options.rootMargin || "", instance = observers.get(id);
|
||||
if (instance) return instance;
|
||||
var elements = new Map(), observer = new IntersectionObserver(function(entries) {
|
||||
entries.forEach(function(entry) {
|
||||
var callback = elements.get(entry.target), isVisible = entry.isIntersecting || entry.intersectionRatio > 0;
|
||||
callback && isVisible && callback(isVisible);
|
||||
});
|
||||
}, options);
|
||||
return observers.set(id, instance = {
|
||||
id: id,
|
||||
observer: observer,
|
||||
elements: elements
|
||||
}), instance;
|
||||
}(options), id = ref.id, observer = ref.observer, elements = ref.elements;
|
||||
return elements.set(element, callback), observer.observe(element), function() {
|
||||
elements.delete(element), observer.unobserve(element), 0 === elements.size && (observer.disconnect(), observers.delete(id));
|
||||
};
|
||||
}(el, function(isVisible) {
|
||||
var element, callback, ref, id, observer, elements;
|
||||
unobserve.current && (unobserve.current(), unobserve.current = void 0), !isDisabled && !visible && el && el.tagName && (unobserve.current = (element = el, callback = function(isVisible) {
|
||||
return isVisible && setVisible(isVisible);
|
||||
}, {
|
||||
}, id = (ref = function(options) {
|
||||
var id = options.rootMargin || "", instance = observers.get(id);
|
||||
if (instance) return instance;
|
||||
var elements = new Map(), observer = new IntersectionObserver(function(entries) {
|
||||
entries.forEach(function(entry) {
|
||||
var callback = elements.get(entry.target), isVisible = entry.isIntersecting || entry.intersectionRatio > 0;
|
||||
callback && isVisible && callback(isVisible);
|
||||
});
|
||||
}, options);
|
||||
return observers.set(id, instance = {
|
||||
id: id,
|
||||
observer: observer,
|
||||
elements: elements
|
||||
}), instance;
|
||||
}({
|
||||
rootMargin: rootMargin
|
||||
})).id, observer = ref.observer, (elements = ref.elements).set(element, callback), observer.observe(element), function() {
|
||||
elements.delete(element), observer.unobserve(element), 0 === elements.size && (observer.disconnect(), observers.delete(id));
|
||||
}));
|
||||
}, [
|
||||
isDisabled,
|
||||
|
@ -1535,11 +1535,8 @@
|
||||
this.g.setRequestHeader(h, f);
|
||||
}, this), this.J && (this.g.responseType = this.J), "withCredentials" in this.g && this.g.withCredentials !== this.L && (this.g.withCredentials = this.L);
|
||||
try {
|
||||
var a1;
|
||||
Ad(this), 0 < this.B && ((this.K = (a1 = this.g, y && function(a) {
|
||||
var b = Ga;
|
||||
return Object.prototype.hasOwnProperty.call(b, 9) ? b[9] : b[9] = a(9);
|
||||
}(function() {
|
||||
var a1, a2, b1;
|
||||
Ad(this), 0 < this.B && ((this.K = (a1 = this.g, y && (a2 = function() {
|
||||
let a = 0;
|
||||
const b = ta(String(Na)).split("."), c = ta("9").split("."), d = Math.max(b.length, c.length);
|
||||
for(let h = 0; 0 == a && h < d; h++){
|
||||
@ -1560,7 +1557,7 @@
|
||||
}while (0 == a)
|
||||
}
|
||||
return 0 <= a;
|
||||
}) && "number" == typeof a1.timeout && void 0 !== a1.ontimeout)) ? (this.g.timeout = this.B, this.g.ontimeout = q(this.pa, this)) : this.A = Gb(this.pa, this.B, this)), this.v = !0, this.g.send(a), this.v = !1;
|
||||
}, b1 = Ga, Object.prototype.hasOwnProperty.call(b1, 9) ? b1[9] : b1[9] = a2(9)) && "number" == typeof a1.timeout && void 0 !== a1.ontimeout)) ? (this.g.timeout = this.B, this.g.ontimeout = q(this.pa, this)) : this.A = Gb(this.pa, this.B, this)), this.v = !0, this.g.send(a), this.v = !1;
|
||||
} catch (f1) {
|
||||
zd(this, f1);
|
||||
}
|
||||
@ -2105,29 +2102,27 @@
|
||||
}(arr, 2) || function() {
|
||||
throw TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
}(), visible = ref[0], setVisible = ref[1], setRef = _react.useCallback(function(el) {
|
||||
unobserve.current && (unobserve.current(), unobserve.current = void 0), !isDisabled && !visible && el && el.tagName && (unobserve.current = function(element, callback, options) {
|
||||
var ref = function(options) {
|
||||
var id = options.rootMargin || "", instance = observers.get(id);
|
||||
if (instance) return instance;
|
||||
var elements = new Map(), observer = new IntersectionObserver(function(entries) {
|
||||
entries.forEach(function(entry) {
|
||||
var callback = elements.get(entry.target), isVisible = entry.isIntersecting || entry.intersectionRatio > 0;
|
||||
callback && isVisible && callback(isVisible);
|
||||
});
|
||||
}, options);
|
||||
return observers.set(id, instance = {
|
||||
id: id,
|
||||
observer: observer,
|
||||
elements: elements
|
||||
}), instance;
|
||||
}(options), id = ref.id, observer = ref.observer, elements = ref.elements;
|
||||
return elements.set(element, callback), observer.observe(element), function() {
|
||||
elements.delete(element), observer.unobserve(element), 0 === elements.size && (observer.disconnect(), observers.delete(id));
|
||||
};
|
||||
}(el, function(isVisible) {
|
||||
var element, callback, ref, id, observer, elements;
|
||||
unobserve.current && (unobserve.current(), unobserve.current = void 0), !isDisabled && !visible && el && el.tagName && (unobserve.current = (element = el, callback = function(isVisible) {
|
||||
return isVisible && setVisible(isVisible);
|
||||
}, {
|
||||
}, id = (ref = function(options) {
|
||||
var id = options.rootMargin || "", instance = observers.get(id);
|
||||
if (instance) return instance;
|
||||
var elements = new Map(), observer = new IntersectionObserver(function(entries) {
|
||||
entries.forEach(function(entry) {
|
||||
var callback = elements.get(entry.target), isVisible = entry.isIntersecting || entry.intersectionRatio > 0;
|
||||
callback && isVisible && callback(isVisible);
|
||||
});
|
||||
}, options);
|
||||
return observers.set(id, instance = {
|
||||
id: id,
|
||||
observer: observer,
|
||||
elements: elements
|
||||
}), instance;
|
||||
}({
|
||||
rootMargin: rootMargin
|
||||
})).id, observer = ref.observer, (elements = ref.elements).set(element, callback), observer.observe(element), function() {
|
||||
elements.delete(element), observer.unobserve(element), 0 === elements.size && (observer.disconnect(), observers.delete(id));
|
||||
}));
|
||||
}, [
|
||||
isDisabled,
|
||||
|
@ -2642,53 +2642,6 @@
|
||||
return e < 0 || e >= this.In.length ? null : this.In[e];
|
||||
}
|
||||
}
|
||||
class Vr {
|
||||
constructor(t, e){
|
||||
this.Ht = t, this.ps = e, this.docs = new wn(Pt.comparator), this.size = 0;
|
||||
}
|
||||
addEntry(t, e, n) {
|
||||
const s = e.key, i = this.docs.get(s), r = i ? i.size : 0, o = this.ps(e);
|
||||
return this.docs = this.docs.insert(s, {
|
||||
document: e.clone(),
|
||||
size: o,
|
||||
readTime: n
|
||||
}), this.size += o - r, this.Ht.addToCollectionParentIndex(t, s.path.popLast());
|
||||
}
|
||||
removeEntry(t) {
|
||||
const e = this.docs.get(t);
|
||||
e && (this.docs = this.docs.remove(t), this.size -= e.size);
|
||||
}
|
||||
getEntry(t, e) {
|
||||
const n = this.docs.get(e);
|
||||
return js.resolve(n ? n.document.clone() : Kt.newInvalidDocument(e));
|
||||
}
|
||||
getEntries(t, e) {
|
||||
let n = pn;
|
||||
return e.forEach((t)=>{
|
||||
const e = this.docs.get(t);
|
||||
n = n.insert(t, e ? e.document.clone() : Kt.newInvalidDocument(t));
|
||||
}), js.resolve(n);
|
||||
}
|
||||
getDocumentsMatchingQuery(t, e, n) {
|
||||
let s = pn;
|
||||
const i = new Pt(e.path.child("")), r = this.docs.getIteratorFrom(i);
|
||||
for(; r.hasNext();){
|
||||
const { key: t1 , value: { document: i1 , readTime: o } , } = r.getNext();
|
||||
if (!e.path.isPrefixOf(t1.path)) break;
|
||||
0 >= o.compareTo(n) || Pe(e, i1) && (s = s.insert(i1.key, i1.clone()));
|
||||
}
|
||||
return js.resolve(s);
|
||||
}
|
||||
Ts(t, e) {
|
||||
return js.forEach(this.docs, (t)=>e(t));
|
||||
}
|
||||
newChangeBuffer(t) {
|
||||
return new Sr(this);
|
||||
}
|
||||
getSize(t) {
|
||||
return js.resolve(this.size);
|
||||
}
|
||||
}
|
||||
class Sr extends Qi {
|
||||
constructor(t){
|
||||
super(), this.Se = t;
|
||||
@ -2708,6 +2661,7 @@
|
||||
}
|
||||
class Cr {
|
||||
constructor(t, e){
|
||||
var t1, e1;
|
||||
this.bs = {}, this.Le = new X(0), this.Be = !1, this.Be = !0, this.referenceDelegate = t(this), this.ze = new class {
|
||||
constructor(t){
|
||||
this.persistence = t, this.Es = new ji((t)=>Wt(t), zt), this.lastRemoteSnapshotVersion = rt.min(), this.highestTargetId = 0, this.Is = 0, this.As = new br(), this.targetCount = 0, this.Rs = Ni.se();
|
||||
@ -2800,9 +2754,53 @@
|
||||
getCollectionParents(t, e) {
|
||||
return js.resolve(this.Gt.getEntries(e));
|
||||
}
|
||||
}(), this.He = function(t, e) {
|
||||
return new Vr(t, e);
|
||||
}(this.Ht, (t)=>this.referenceDelegate.Ps(t)), this.N = new class {
|
||||
}(), this.He = (t1 = this.Ht, e1 = (t)=>this.referenceDelegate.Ps(t), new class {
|
||||
constructor(t, e){
|
||||
this.Ht = t, this.ps = e, this.docs = new wn(Pt.comparator), this.size = 0;
|
||||
}
|
||||
addEntry(t, e, n) {
|
||||
const s = e.key, i = this.docs.get(s), r = i ? i.size : 0, o = this.ps(e);
|
||||
return this.docs = this.docs.insert(s, {
|
||||
document: e.clone(),
|
||||
size: o,
|
||||
readTime: n
|
||||
}), this.size += o - r, this.Ht.addToCollectionParentIndex(t, s.path.popLast());
|
||||
}
|
||||
removeEntry(t) {
|
||||
const e = this.docs.get(t);
|
||||
e && (this.docs = this.docs.remove(t), this.size -= e.size);
|
||||
}
|
||||
getEntry(t, e) {
|
||||
const n = this.docs.get(e);
|
||||
return js.resolve(n ? n.document.clone() : Kt.newInvalidDocument(e));
|
||||
}
|
||||
getEntries(t, e) {
|
||||
let n = pn;
|
||||
return e.forEach((t)=>{
|
||||
const e = this.docs.get(t);
|
||||
n = n.insert(t, e ? e.document.clone() : Kt.newInvalidDocument(t));
|
||||
}), js.resolve(n);
|
||||
}
|
||||
getDocumentsMatchingQuery(t, e, n) {
|
||||
let s = pn;
|
||||
const i = new Pt(e.path.child("")), r = this.docs.getIteratorFrom(i);
|
||||
for(; r.hasNext();){
|
||||
const { key: t1 , value: { document: i1 , readTime: o } , } = r.getNext();
|
||||
if (!e.path.isPrefixOf(t1.path)) break;
|
||||
0 >= o.compareTo(n) || Pe(e, i1) && (s = s.insert(i1.key, i1.clone()));
|
||||
}
|
||||
return js.resolve(s);
|
||||
}
|
||||
Ts(t, e) {
|
||||
return js.forEach(this.docs, (t)=>e(t));
|
||||
}
|
||||
newChangeBuffer(t) {
|
||||
return new Sr(this);
|
||||
}
|
||||
getSize(t) {
|
||||
return js.resolve(this.size);
|
||||
}
|
||||
}(t1, e1)), this.N = new class {
|
||||
constructor(t){
|
||||
this.Wt = t;
|
||||
}
|
||||
|
@ -477,29 +477,27 @@
|
||||
}(arr, 2) || function() {
|
||||
throw TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
}(), visible = ref[0], setVisible = ref[1], setRef = _react.useCallback(function(el) {
|
||||
unobserve.current && (unobserve.current(), unobserve.current = void 0), !isDisabled && !visible && el && el.tagName && (unobserve.current = function(element, callback, options) {
|
||||
var ref = function(options) {
|
||||
var id = options.rootMargin || "", instance = observers.get(id);
|
||||
if (instance) return instance;
|
||||
var elements = new Map(), observer = new IntersectionObserver(function(entries) {
|
||||
entries.forEach(function(entry) {
|
||||
var callback = elements.get(entry.target), isVisible = entry.isIntersecting || entry.intersectionRatio > 0;
|
||||
callback && isVisible && callback(isVisible);
|
||||
});
|
||||
}, options);
|
||||
return observers.set(id, instance = {
|
||||
id: id,
|
||||
observer: observer,
|
||||
elements: elements
|
||||
}), instance;
|
||||
}(options), id = ref.id, observer = ref.observer, elements = ref.elements;
|
||||
return elements.set(element, callback), observer.observe(element), function() {
|
||||
elements.delete(element), observer.unobserve(element), 0 === elements.size && (observer.disconnect(), observers.delete(id));
|
||||
};
|
||||
}(el, function(isVisible) {
|
||||
var element, callback, ref, id, observer, elements;
|
||||
unobserve.current && (unobserve.current(), unobserve.current = void 0), !isDisabled && !visible && el && el.tagName && (unobserve.current = (element = el, callback = function(isVisible) {
|
||||
return isVisible && setVisible(isVisible);
|
||||
}, {
|
||||
}, id = (ref = function(options) {
|
||||
var id = options.rootMargin || "", instance = observers.get(id);
|
||||
if (instance) return instance;
|
||||
var elements = new Map(), observer = new IntersectionObserver(function(entries) {
|
||||
entries.forEach(function(entry) {
|
||||
var callback = elements.get(entry.target), isVisible = entry.isIntersecting || entry.intersectionRatio > 0;
|
||||
callback && isVisible && callback(isVisible);
|
||||
});
|
||||
}, options);
|
||||
return observers.set(id, instance = {
|
||||
id: id,
|
||||
observer: observer,
|
||||
elements: elements
|
||||
}), instance;
|
||||
}({
|
||||
rootMargin: rootMargin
|
||||
})).id, observer = ref.observer, (elements = ref.elements).set(element, callback), observer.observe(element), function() {
|
||||
elements.delete(element), observer.unobserve(element), 0 === elements.size && (observer.disconnect(), observers.delete(id));
|
||||
}));
|
||||
}, [
|
||||
isDisabled,
|
||||
|
@ -4369,15 +4369,13 @@
|
||||
}, _proto.buildCSSClass = function() {
|
||||
return _ModalDialog.prototype.buildCSSClass.call(this) + " vjs-text-track-settings";
|
||||
}, _proto.getValues = function() {
|
||||
var _this3 = this;
|
||||
return function(object, fn, initial) {
|
||||
return void 0 === initial && (initial = 0), keys(object).reduce(function(accum, key) {
|
||||
return fn(accum, object[key], key);
|
||||
}, initial);
|
||||
}(selectConfigs, function(accum, config, key) {
|
||||
var object, fn, initial, _this3 = this;
|
||||
return object = selectConfigs, fn = function(accum, config, key) {
|
||||
var el, parser, value = (el = _this3.$(config.selector), parser = config.parser, parseOptionValue(el.options[el.options.selectedIndex].value, parser));
|
||||
return void 0 !== value && (accum[key] = value), accum;
|
||||
}, {});
|
||||
}, initial = {}, keys(object).reduce(function(accum, key) {
|
||||
return fn(accum, object[key], key);
|
||||
}, initial);
|
||||
}, _proto.setValues = function(values) {
|
||||
var _this4 = this;
|
||||
each(selectConfigs, function(config, key) {
|
||||
|
@ -471,8 +471,11 @@
|
||||
var rootRef = param.rootRef, rootMargin = param.rootMargin, isDisabled = param.disabled || !hasIntersectionObserver, unobserve = _react.useRef(), ref = _slicedToArray(_react.useState(!1), 2), visible = ref[0], setVisible = ref[1], ref1 = _slicedToArray(_react.useState(null), 2), element = ref1[0], setElement = ref1[1];
|
||||
return _react.useEffect(function() {
|
||||
if (hasIntersectionObserver) {
|
||||
if (unobserve.current && (unobserve.current(), unobserve.current = void 0), !isDisabled && !visible) return element && element.tagName && (unobserve.current = function(element, callback, options) {
|
||||
var ref = function(options) {
|
||||
if (unobserve.current && (unobserve.current(), unobserve.current = void 0), !isDisabled && !visible) {
|
||||
var element1, callback, ref, id, observer, elements;
|
||||
return element && element.tagName && (unobserve.current = (element1 = element, callback = function(isVisible) {
|
||||
return isVisible && setVisible(isVisible);
|
||||
}, id = (ref = function(options) {
|
||||
var instance, id = {
|
||||
root: options.root || null,
|
||||
margin: options.rootMargin || ""
|
||||
@ -491,24 +494,21 @@
|
||||
}, options),
|
||||
elements: elements
|
||||
}, idList.push(id), observers.set(id, instance), instance;
|
||||
}(options), id = ref.id, observer = ref.observer, elements = ref.elements;
|
||||
return elements.set(element, callback), observer.observe(element), function() {
|
||||
if (elements.delete(element), observer.unobserve(element), 0 === elements.size) {
|
||||
}({
|
||||
root: null == rootRef ? void 0 : rootRef.current,
|
||||
rootMargin: rootMargin
|
||||
})).id, observer = ref.observer, (elements = ref.elements).set(element1, callback), observer.observe(element1), function() {
|
||||
if (elements.delete(element1), observer.unobserve(element1), 0 === elements.size) {
|
||||
observer.disconnect(), observers.delete(id);
|
||||
var index = idList.findIndex(function(obj) {
|
||||
return obj.root === id.root && obj.margin === id.margin;
|
||||
});
|
||||
index > -1 && idList.splice(index, 1);
|
||||
}
|
||||
})), function() {
|
||||
null == unobserve.current || unobserve.current(), unobserve.current = void 0;
|
||||
};
|
||||
}(element, function(isVisible) {
|
||||
return isVisible && setVisible(isVisible);
|
||||
}, {
|
||||
root: null == rootRef ? void 0 : rootRef.current,
|
||||
rootMargin: rootMargin
|
||||
})), function() {
|
||||
null == unobserve.current || unobserve.current(), unobserve.current = void 0;
|
||||
};
|
||||
}
|
||||
} else if (!visible) {
|
||||
var idleCallback = _requestIdleCallback.requestIdleCallback(function() {
|
||||
return setVisible(!0);
|
||||
|
@ -8654,9 +8654,8 @@
|
||||
(t = o.fetch).default = o.fetch, t.fetch = o.fetch, t.Headers = o.Headers, t.Request = o.Request, t.Response = o.Response, e.exports = t;
|
||||
},
|
||||
8249: function(e, t, r) {
|
||||
!function(r, n) {
|
||||
e.exports = t = n();
|
||||
}(this, function() {
|
||||
var n;
|
||||
n = function() {
|
||||
var e = e || function(e, t) {
|
||||
if ("undefined" != typeof window && window.crypto && (i = window.crypto), "undefined" != typeof self && self.crypto && (i = self.crypto), "undefined" != typeof globalThis && globalThis.crypto && (i = globalThis.crypto), !i && "undefined" != typeof window && window.msCrypto && (i = window.msCrypto), !i && void 0 !== r.g && r.g.crypto && (i = r.g.crypto), !i) try {
|
||||
i = r(2480);
|
||||
@ -8810,13 +8809,12 @@
|
||||
return u;
|
||||
}(Math);
|
||||
return e;
|
||||
});
|
||||
}, e.exports = t = n();
|
||||
},
|
||||
8214: function(e, t, r) {
|
||||
!function(n, i) {
|
||||
e.exports = t = i(r(8249));
|
||||
}(this, function(e) {
|
||||
return !function(t) {
|
||||
var n;
|
||||
n = function(e) {
|
||||
return function(t) {
|
||||
var r = e, n = r.lib, i = n.WordArray, o = n.Hasher, a = r.algo, u = [];
|
||||
!function() {
|
||||
for(var e = 0; e < 64; e++)u[e] = 0x100000000 * t.abs(t.sin(e + 1)) | 0;
|
||||
@ -8872,7 +8870,7 @@
|
||||
}
|
||||
r.MD5 = o._createHelper(l), r.HmacMD5 = o._createHmacHelper(l);
|
||||
}(Math), e.MD5;
|
||||
});
|
||||
}, e.exports = n(r(8249));
|
||||
},
|
||||
251: function(e, t, r) {
|
||||
var n = r(2215), i = r(2584), o = r(609), a = r(8420), u = r(2847), l = r(8923), s = Date.prototype.getTime;
|
||||
@ -9432,9 +9430,7 @@
|
||||
},
|
||||
4756: function(e, t, r) {
|
||||
var n, i, o;
|
||||
!function(r, a) {
|
||||
i = [], void 0 !== (o = "function" == typeof (n = a) ? n.apply(t, i) : n) && (e.exports = o);
|
||||
}(this, function() {
|
||||
i = [], void 0 !== (o = "function" == typeof (n = 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 = {};
|
||||
@ -9567,16 +9563,14 @@
|
||||
}(i, y, d[b], c, _, v, m, f);
|
||||
};
|
||||
};
|
||||
});
|
||||
}) ? n.apply(t, i) : n) && (e.exports = o);
|
||||
},
|
||||
3202: function(e, t, r) {
|
||||
e.exports = r(4756);
|
||||
},
|
||||
1487: function(e, t) {
|
||||
var r, n, i;
|
||||
!function(o, a) {
|
||||
n = [], void 0 !== (i = "function" == typeof (r = a) ? r.apply(t, n) : r) && (e.exports = i);
|
||||
}(this, function() {
|
||||
n = [], void 0 !== (i = "function" == typeof (r = function() {
|
||||
return {
|
||||
patterns: [
|
||||
" ",
|
||||
@ -14538,7 +14532,7 @@
|
||||
"",
|
||||
]
|
||||
};
|
||||
});
|
||||
}) ? r.apply(t, n) : r) && (e.exports = i);
|
||||
},
|
||||
5717: function(e) {
|
||||
"function" == typeof Object.create ? e.exports = function(e, t) {
|
||||
@ -15338,41 +15332,39 @@
|
||||
value: !0
|
||||
}), t.useIntersection = function(e) {
|
||||
var t = e.rootRef, r = e.rootMargin, n = e.disabled || !u, c = o.useRef(), f = i(o.useState(!1), 2), d = f[0], p = f[1], h = i(o.useState(t ? t.current : null), 2), $ = h[0], y = h[1], g = o.useCallback(function(e) {
|
||||
c.current && (c.current(), c.current = void 0), !n && !d && e && e.tagName && (c.current = function(e, t, r) {
|
||||
var n = function(e) {
|
||||
var t, r = {
|
||||
root: e.root || null,
|
||||
margin: e.rootMargin || ""
|
||||
}, n = s.find(function(e) {
|
||||
return e.root === r.root && e.margin === r.margin;
|
||||
});
|
||||
if (n ? t = l.get(n) : (t = l.get(r), s.push(r)), t) return t;
|
||||
var i = new Map(), o = new IntersectionObserver(function(e) {
|
||||
e.forEach(function(e) {
|
||||
var t = i.get(e.target), r = e.isIntersecting || e.intersectionRatio > 0;
|
||||
t && r && t(r);
|
||||
});
|
||||
}, e);
|
||||
return l.set(r, t = {
|
||||
id: r,
|
||||
observer: o,
|
||||
elements: i
|
||||
}), t;
|
||||
}(r), i = n.id, o = n.observer, a = n.elements;
|
||||
return a.set(e, t), o.observe(e), function() {
|
||||
if (a.delete(e), o.unobserve(e), 0 === a.size) {
|
||||
o.disconnect(), l.delete(i);
|
||||
var t = s.findIndex(function(e) {
|
||||
return e.root === i.root && e.margin === i.margin;
|
||||
});
|
||||
t > -1 && s.splice(t, 1);
|
||||
}
|
||||
};
|
||||
}(e, function(e) {
|
||||
var t, i, o, a, u, f;
|
||||
c.current && (c.current(), c.current = void 0), !n && !d && e && e.tagName && (c.current = (t = e, i = function(e) {
|
||||
return e && p(e);
|
||||
}, {
|
||||
}, a = (o = function(e) {
|
||||
var t, r = {
|
||||
root: e.root || null,
|
||||
margin: e.rootMargin || ""
|
||||
}, n = s.find(function(e) {
|
||||
return e.root === r.root && e.margin === r.margin;
|
||||
});
|
||||
if (n ? t = l.get(n) : (t = l.get(r), s.push(r)), t) return t;
|
||||
var i = new Map(), o = new IntersectionObserver(function(e) {
|
||||
e.forEach(function(e) {
|
||||
var t = i.get(e.target), r = e.isIntersecting || e.intersectionRatio > 0;
|
||||
t && r && t(r);
|
||||
});
|
||||
}, e);
|
||||
return l.set(r, t = {
|
||||
id: r,
|
||||
observer: o,
|
||||
elements: i
|
||||
}), t;
|
||||
}({
|
||||
root: $,
|
||||
rootMargin: r
|
||||
})).id, u = o.observer, (f = o.elements).set(t, i), u.observe(t), function() {
|
||||
if (f.delete(t), u.unobserve(t), 0 === f.size) {
|
||||
u.disconnect(), l.delete(a);
|
||||
var e = s.findIndex(function(e) {
|
||||
return e.root === a.root && e.margin === a.margin;
|
||||
});
|
||||
e > -1 && s.splice(e, 1);
|
||||
}
|
||||
}));
|
||||
}, [
|
||||
n,
|
||||
@ -22012,27 +22004,26 @@
|
||||
return f.apply(this, arguments);
|
||||
}
|
||||
function f() {
|
||||
return (f = function(e) {
|
||||
return function() {
|
||||
var t = this, r = arguments;
|
||||
return new Promise(function(i, o) {
|
||||
var a = e.apply(t, r);
|
||||
function u(e) {
|
||||
n(a, i, o, u, l, "next", e);
|
||||
}
|
||||
function l(e) {
|
||||
n(a, i, o, u, l, "throw", e);
|
||||
}
|
||||
u(void 0);
|
||||
});
|
||||
};
|
||||
}(function*() {
|
||||
var e;
|
||||
return (f = (e = function*() {
|
||||
try {
|
||||
var e = yield u.next(), t = e.value;
|
||||
e.done ? l.push(null) : l.push((yield t)) ? c() : s = !1;
|
||||
} catch (r) {
|
||||
l.destroy(r);
|
||||
}
|
||||
}, function() {
|
||||
var t = this, r = arguments;
|
||||
return new Promise(function(i, o) {
|
||||
var a = e.apply(t, r);
|
||||
function u(e) {
|
||||
n(a, i, o, u, l, "next", e);
|
||||
}
|
||||
function l(e) {
|
||||
n(a, i, o, u, l, "throw", e);
|
||||
}
|
||||
u(void 0);
|
||||
});
|
||||
})).apply(this, arguments);
|
||||
}
|
||||
return l._read = function() {
|
||||
@ -22057,33 +22048,27 @@
|
||||
var f, d = (f = i).length && "function" == typeof f[f.length - 1] ? f.pop() : u;
|
||||
if (Array.isArray(i[0]) && (i = i[0]), i.length < 2) throw new o("streams");
|
||||
var p = i.map(function(t, o) {
|
||||
var u = o < i.length - 1;
|
||||
return function(e, t, i, o) {
|
||||
o = (u = o, l = !1, function() {
|
||||
l || (l = !0, u.apply(void 0, arguments));
|
||||
});
|
||||
var u, l, s = !1;
|
||||
e.on("close", function() {
|
||||
s = !0;
|
||||
}), void 0 === n && (n = r(494)), n(e, {
|
||||
readable: t,
|
||||
writable: i
|
||||
}, function(e) {
|
||||
if (e) return o(e);
|
||||
s = !0, o();
|
||||
});
|
||||
var c = !1;
|
||||
return function(t) {
|
||||
if (!s && !c) {
|
||||
var r;
|
||||
if (c = !0, (r = e).setHeader && "function" == typeof r.abort) return e.abort();
|
||||
if ("function" == typeof e.destroy) return e.destroy();
|
||||
o(t || new a("pipe"));
|
||||
}
|
||||
};
|
||||
}(t, u, o > 0, function(t) {
|
||||
e || (e = t), t && p.forEach(l), u || (p.forEach(l), d(e));
|
||||
});
|
||||
var u, s, c, f, h, $, y, g, v = o < i.length - 1;
|
||||
return u = t, s = v, c = o > 0, f = (h = f = function(t) {
|
||||
e || (e = t), t && p.forEach(l), v || (p.forEach(l), d(e));
|
||||
}, $ = !1, function() {
|
||||
$ || ($ = !0, h.apply(void 0, arguments));
|
||||
}), y = !1, u.on("close", function() {
|
||||
y = !0;
|
||||
}), void 0 === n && (n = r(494)), n(u, {
|
||||
readable: s,
|
||||
writable: c
|
||||
}, function(e) {
|
||||
if (e) return f(e);
|
||||
y = !0, f();
|
||||
}), g = !1, function(e) {
|
||||
if (!y && !g) {
|
||||
var t;
|
||||
if (g = !0, (t = u).setHeader && "function" == typeof t.abort) return u.abort();
|
||||
if ("function" == typeof u.destroy) return u.destroy();
|
||||
f(e || new a("pipe"));
|
||||
}
|
||||
};
|
||||
});
|
||||
return i.reduce(s);
|
||||
};
|
||||
|
@ -489,19 +489,17 @@
|
||||
function kb(a, b) {
|
||||
return null == a || "http://www.w3.org/1999/xhtml" === a ? jb(b) : "http://www.w3.org/2000/svg" === a && "foreignObject" === b ? "http://www.w3.org/1999/xhtml" : a;
|
||||
}
|
||||
var lb, mb = function(a) {
|
||||
return "undefined" != typeof MSApp && MSApp.execUnsafeLocalFunction ? function(b, c, d, e) {
|
||||
MSApp.execUnsafeLocalFunction(function() {
|
||||
return a(b, c, d, e);
|
||||
});
|
||||
} : a;
|
||||
}(function(a, b) {
|
||||
var a, lb, mb = (a = function(a, b) {
|
||||
if ("http://www.w3.org/2000/svg" !== a.namespaceURI || "innerHTML" in a) a.innerHTML = b;
|
||||
else {
|
||||
for((lb = lb || document.createElement("div")).innerHTML = "<svg>" + b.valueOf().toString() + "</svg>", b = lb.firstChild; a.firstChild;)a.removeChild(a.firstChild);
|
||||
for(; b.firstChild;)a.appendChild(b.firstChild);
|
||||
}
|
||||
});
|
||||
}, "undefined" != typeof MSApp && MSApp.execUnsafeLocalFunction ? function(b, c, d, e) {
|
||||
MSApp.execUnsafeLocalFunction(function() {
|
||||
return a(b, c, d, e);
|
||||
});
|
||||
} : a);
|
||||
function nb(a, b) {
|
||||
if (b) {
|
||||
var c = a.firstChild;
|
||||
@ -693,7 +691,7 @@
|
||||
Kb = !0;
|
||||
}
|
||||
}), window.addEventListener("test", Lb, Lb), window.removeEventListener("test", Lb, Lb);
|
||||
} catch (a) {
|
||||
} catch (a1) {
|
||||
Kb = !1;
|
||||
}
|
||||
function Mb(a, b, c, d, e, f, g, h, k) {
|
||||
@ -4757,7 +4755,7 @@
|
||||
if (null === c) return null;
|
||||
if (a.finishedWork = null, a.finishedLanes = 0, c === a.current) throw Error(p(177));
|
||||
a.callbackNode = null, a.callbackPriority = 0;
|
||||
var f = c.lanes | c.childLanes;
|
||||
var a1, b1, f = c.lanes | c.childLanes;
|
||||
if (function(a, b) {
|
||||
var c = a.pendingLanes & ~b;
|
||||
a.pendingLanes = b, a.suspendedLanes = 0, a.pingedLanes = 0, a.expiredLanes &= b, a.mutableReadLanes &= b, a.entangledLanes &= b, b = a.entanglements;
|
||||
@ -4766,15 +4764,13 @@
|
||||
var e = 31 - nc(c), f = 1 << e;
|
||||
b[e] = 0, d[e] = -1, a[e] = -1, c &= ~f;
|
||||
}
|
||||
}(a, f), a === P && (X = P = null, Y = 0), 0 == (2064 & c.subtreeFlags) && 0 == (2064 & c.flags) || tk || (tk = !0, function(a, b) {
|
||||
$b(a, b);
|
||||
}(gc, function() {
|
||||
}(a, f), a === P && (X = P = null, Y = 0), 0 == (2064 & c.subtreeFlags) && 0 == (2064 & c.flags) || tk || (tk = !0, a1 = gc, b1 = function() {
|
||||
return Gk(), null;
|
||||
})), f = 0 != (15990 & c.flags), 0 != (15990 & c.subtreeFlags) || f) {
|
||||
}, $b(a1, b1)), f = 0 != (15990 & c.flags), 0 != (15990 & c.subtreeFlags) || f) {
|
||||
f = mk.transition, mk.transition = null;
|
||||
var g = C;
|
||||
C = 1;
|
||||
var a1, b1, c1, h = W;
|
||||
var a2, b2, c1, h = W;
|
||||
W |= 4, lk.current = null, function(a, b) {
|
||||
if (Bf = cd, Me(a = Le())) {
|
||||
if ("selectionStart" in a) var c = {
|
||||
@ -4880,7 +4876,7 @@
|
||||
});
|
||||
for("function" == typeof c.focus && c.focus(), c = 0; c < b.length; c++)(a = b[c]).element.scrollLeft = a.left, a.element.scrollTop = a.top;
|
||||
}
|
||||
}(Cf), cd = !!Bf, Cf = Bf = null, a.current = c, a1 = c, b1 = a, c1 = e, T = a1, function gk(a, b, c) {
|
||||
}(Cf), cd = !!Bf, Cf = Bf = null, a.current = c, a2 = c, b2 = a, c1 = e, T = a2, function gk(a, b, c) {
|
||||
for(var d = 0 != (1 & a.mode); null !== T;){
|
||||
var e = T, f = e.child;
|
||||
if (22 === e.tag && d) {
|
||||
@ -4896,7 +4892,7 @@
|
||||
ik(a, b, c);
|
||||
} else 0 != (8772 & e.subtreeFlags) && null !== f ? (f.return = e, T = f) : ik(a, b, c);
|
||||
}
|
||||
}(a1, b1, c1), cc(), W = h, C = g, mk.transition = f;
|
||||
}(a2, b2, c1), cc(), W = h, C = g, mk.transition = f;
|
||||
} else a.current = c;
|
||||
if (tk && (tk = !1, uk = a, vk = e), 0 === (f = a.pendingLanes) && (Oi = null), function(a) {
|
||||
if (kc && "function" == typeof kc.onCommitFiberRoot) try {
|
||||
@ -5567,7 +5563,7 @@
|
||||
var ul = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
if (!ul.isDisabled && ul.supportsFiber) try {
|
||||
jc = ul.inject(tl), kc = ul;
|
||||
} catch (a1) {}
|
||||
} catch (a2) {}
|
||||
}
|
||||
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
|
||||
usingClientEntryPoint: !1,
|
||||
|
@ -3504,9 +3504,7 @@
|
||||
}, module.exports = deepmerge;
|
||||
},
|
||||
5202: function() {
|
||||
!function(global, factory) {
|
||||
factory();
|
||||
}(this, function() {
|
||||
!function() {
|
||||
"use strict";
|
||||
function applyFocusVisiblePolyfill(scope) {
|
||||
var hadKeyboardEvent = !0, hadFocusVisibleRecently = !1, hadFocusVisibleRecentlyTimeout = null, inputTypesAllowlist = {
|
||||
@ -3566,7 +3564,7 @@
|
||||
window.dispatchEvent(event);
|
||||
}
|
||||
"undefined" != typeof document && applyFocusVisiblePolyfill(document);
|
||||
});
|
||||
}();
|
||||
},
|
||||
8679: function(module, __unused_webpack_exports, __webpack_require__) {
|
||||
"use strict";
|
||||
@ -3987,7 +3985,7 @@
|
||||
return zIndex;
|
||||
}
|
||||
});
|
||||
var jsx_runtime = __webpack_require__(5893), react_is = __webpack_require__(9864), react = __webpack_require__(7294), shallowequal = __webpack_require__(6774), shallowequal_default = __webpack_require__.n(shallowequal), stylis_browser_esm = function(W) {
|
||||
var fn, cache, jsx_runtime = __webpack_require__(5893), react_is = __webpack_require__(9864), react = __webpack_require__(7294), shallowequal = __webpack_require__(6774), shallowequal_default = __webpack_require__.n(shallowequal), stylis_browser_esm = function(W) {
|
||||
function X(d, c, e) {
|
||||
var h = c.trim().split(ia);
|
||||
c = h;
|
||||
@ -4416,13 +4414,10 @@
|
||||
strokeMiterlimit: 1,
|
||||
strokeOpacity: 1,
|
||||
strokeWidth: 1
|
||||
}, reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, emotion_is_prop_valid_browser_esm = function(fn) {
|
||||
var cache = Object.create(null);
|
||||
return function(arg) {
|
||||
return void 0 === cache[arg] && (cache[arg] = fn(arg)), cache[arg];
|
||||
};
|
||||
}(function(prop) {
|
||||
}, reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, emotion_is_prop_valid_browser_esm = (fn = function(prop) {
|
||||
return reactPropsRegex.test(prop) || 111 === prop.charCodeAt(0) && 110 === prop.charCodeAt(1) && 91 > prop.charCodeAt(2);
|
||||
}, cache = Object.create(null), function(arg) {
|
||||
return void 0 === cache[arg] && (cache[arg] = fn(arg)), cache[arg];
|
||||
}), hoist_non_react_statics_cjs = __webpack_require__(8679), hoist_non_react_statics_cjs_default = __webpack_require__.n(hoist_non_react_statics_cjs), process = __webpack_require__(3454);
|
||||
function v() {
|
||||
return (v = Object.assign || function(e) {
|
||||
|
@ -11751,9 +11751,8 @@
|
||||
};
|
||||
},
|
||||
3346: function(module, __unused_webpack_exports, __webpack_require__) {
|
||||
!function(global, factory) {
|
||||
module.exports = factory();
|
||||
}(this, function() {
|
||||
var factory;
|
||||
factory = function() {
|
||||
'use strict';
|
||||
var toStringFunction = Function.prototype.toString, create = Object.create, defineProperty = Object.defineProperty, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols, getPrototypeOf$1 = Object.getPrototypeOf, _a = Object.prototype, hasOwnProperty = _a.hasOwnProperty, propertyIsEnumerable = _a.propertyIsEnumerable, SYMBOL_PROPERTIES = 'function' == typeof getOwnPropertySymbols, WEAK_MAP = 'function' == typeof WeakMap, createCache = function() {
|
||||
if (WEAK_MAP) return function() {
|
||||
@ -11844,7 +11843,7 @@
|
||||
realm: options ? options.realm : void 0
|
||||
});
|
||||
}, copy;
|
||||
});
|
||||
}, module.exports = factory();
|
||||
},
|
||||
4029: function(module, __unused_webpack_exports, __webpack_require__) {
|
||||
"use strict";
|
||||
|
@ -0,0 +1,308 @@
|
||||
TestSnapshot {
|
||||
vars: [
|
||||
(
|
||||
(
|
||||
Atom('$parcel$export' type=dynamic),
|
||||
#1,
|
||||
),
|
||||
VarUsageInfo {
|
||||
inline_prevented: false,
|
||||
ref_count: 3,
|
||||
cond_init: false,
|
||||
declared: true,
|
||||
declared_count: 1,
|
||||
declared_as_fn_param: false,
|
||||
declared_as_fn_expr: false,
|
||||
assign_count: 0,
|
||||
mutation_by_call_count: 0,
|
||||
usage_count: 3,
|
||||
reassigned_with_assignment: false,
|
||||
reassigned_with_var_decl: false,
|
||||
mutated: false,
|
||||
has_property_access: false,
|
||||
has_property_mutation: false,
|
||||
accessed_props: {},
|
||||
exported: false,
|
||||
used_above_decl: false,
|
||||
is_fn_local: true,
|
||||
used_by_nested_fn: false,
|
||||
executed_multiple_time: false,
|
||||
used_in_cond: false,
|
||||
var_kind: None,
|
||||
var_initialized: true,
|
||||
declared_as_catch_param: false,
|
||||
no_side_effect_for_member_access: true,
|
||||
used_as_callee: true,
|
||||
used_as_arg: false,
|
||||
pure_fn: false,
|
||||
infects: [],
|
||||
},
|
||||
),
|
||||
(
|
||||
(
|
||||
Atom('A' type=inline),
|
||||
#1,
|
||||
),
|
||||
VarUsageInfo {
|
||||
inline_prevented: false,
|
||||
ref_count: 1,
|
||||
cond_init: false,
|
||||
declared: true,
|
||||
declared_count: 1,
|
||||
declared_as_fn_param: false,
|
||||
declared_as_fn_expr: false,
|
||||
assign_count: 0,
|
||||
mutation_by_call_count: 1,
|
||||
usage_count: 1,
|
||||
reassigned_with_assignment: false,
|
||||
reassigned_with_var_decl: false,
|
||||
mutated: true,
|
||||
has_property_access: false,
|
||||
has_property_mutation: false,
|
||||
accessed_props: {},
|
||||
exported: false,
|
||||
used_above_decl: true,
|
||||
is_fn_local: false,
|
||||
used_by_nested_fn: true,
|
||||
executed_multiple_time: false,
|
||||
used_in_cond: false,
|
||||
var_kind: None,
|
||||
var_initialized: false,
|
||||
declared_as_catch_param: false,
|
||||
no_side_effect_for_member_access: false,
|
||||
used_as_callee: false,
|
||||
used_as_arg: false,
|
||||
pure_fn: false,
|
||||
infects: [],
|
||||
},
|
||||
),
|
||||
(
|
||||
(
|
||||
Atom('B' type=inline),
|
||||
#1,
|
||||
),
|
||||
VarUsageInfo {
|
||||
inline_prevented: false,
|
||||
ref_count: 1,
|
||||
cond_init: false,
|
||||
declared: true,
|
||||
declared_count: 1,
|
||||
declared_as_fn_param: false,
|
||||
declared_as_fn_expr: false,
|
||||
assign_count: 0,
|
||||
mutation_by_call_count: 1,
|
||||
usage_count: 1,
|
||||
reassigned_with_assignment: false,
|
||||
reassigned_with_var_decl: false,
|
||||
mutated: true,
|
||||
has_property_access: false,
|
||||
has_property_mutation: false,
|
||||
accessed_props: {},
|
||||
exported: false,
|
||||
used_above_decl: true,
|
||||
is_fn_local: false,
|
||||
used_by_nested_fn: true,
|
||||
executed_multiple_time: false,
|
||||
used_in_cond: false,
|
||||
var_kind: None,
|
||||
var_initialized: false,
|
||||
declared_as_catch_param: false,
|
||||
no_side_effect_for_member_access: false,
|
||||
used_as_callee: false,
|
||||
used_as_arg: false,
|
||||
pure_fn: false,
|
||||
infects: [],
|
||||
},
|
||||
),
|
||||
(
|
||||
(
|
||||
Atom('C' type=inline),
|
||||
#1,
|
||||
),
|
||||
VarUsageInfo {
|
||||
inline_prevented: false,
|
||||
ref_count: 1,
|
||||
cond_init: false,
|
||||
declared: true,
|
||||
declared_count: 1,
|
||||
declared_as_fn_param: false,
|
||||
declared_as_fn_expr: false,
|
||||
assign_count: 0,
|
||||
mutation_by_call_count: 1,
|
||||
usage_count: 1,
|
||||
reassigned_with_assignment: false,
|
||||
reassigned_with_var_decl: false,
|
||||
mutated: true,
|
||||
has_property_access: false,
|
||||
has_property_mutation: false,
|
||||
accessed_props: {},
|
||||
exported: false,
|
||||
used_above_decl: true,
|
||||
is_fn_local: false,
|
||||
used_by_nested_fn: true,
|
||||
executed_multiple_time: false,
|
||||
used_in_cond: false,
|
||||
var_kind: None,
|
||||
var_initialized: false,
|
||||
declared_as_catch_param: false,
|
||||
no_side_effect_for_member_access: false,
|
||||
used_as_callee: false,
|
||||
used_as_arg: false,
|
||||
pure_fn: false,
|
||||
infects: [],
|
||||
},
|
||||
),
|
||||
(
|
||||
(
|
||||
Atom('a' type=inline),
|
||||
#2,
|
||||
),
|
||||
VarUsageInfo {
|
||||
inline_prevented: false,
|
||||
ref_count: 1,
|
||||
cond_init: false,
|
||||
declared: true,
|
||||
declared_count: 1,
|
||||
declared_as_fn_param: true,
|
||||
declared_as_fn_expr: false,
|
||||
assign_count: 0,
|
||||
mutation_by_call_count: 0,
|
||||
usage_count: 1,
|
||||
reassigned_with_assignment: false,
|
||||
reassigned_with_var_decl: false,
|
||||
mutated: true,
|
||||
has_property_access: true,
|
||||
has_property_mutation: true,
|
||||
accessed_props: {},
|
||||
exported: false,
|
||||
used_above_decl: false,
|
||||
is_fn_local: true,
|
||||
used_by_nested_fn: true,
|
||||
executed_multiple_time: false,
|
||||
used_in_cond: false,
|
||||
var_kind: None,
|
||||
var_initialized: false,
|
||||
declared_as_catch_param: false,
|
||||
no_side_effect_for_member_access: false,
|
||||
used_as_callee: false,
|
||||
used_as_arg: false,
|
||||
pure_fn: false,
|
||||
infects: [],
|
||||
},
|
||||
),
|
||||
(
|
||||
(
|
||||
Atom('b' type=inline),
|
||||
#2,
|
||||
),
|
||||
VarUsageInfo {
|
||||
inline_prevented: false,
|
||||
ref_count: 1,
|
||||
cond_init: false,
|
||||
declared: true,
|
||||
declared_count: 1,
|
||||
declared_as_fn_param: true,
|
||||
declared_as_fn_expr: false,
|
||||
assign_count: 0,
|
||||
mutation_by_call_count: 0,
|
||||
usage_count: 1,
|
||||
reassigned_with_assignment: false,
|
||||
reassigned_with_var_decl: false,
|
||||
mutated: true,
|
||||
has_property_access: false,
|
||||
has_property_mutation: false,
|
||||
accessed_props: {},
|
||||
exported: false,
|
||||
used_above_decl: false,
|
||||
is_fn_local: true,
|
||||
used_by_nested_fn: true,
|
||||
executed_multiple_time: false,
|
||||
used_in_cond: false,
|
||||
var_kind: None,
|
||||
var_initialized: false,
|
||||
declared_as_catch_param: false,
|
||||
no_side_effect_for_member_access: false,
|
||||
used_as_callee: false,
|
||||
used_as_arg: false,
|
||||
pure_fn: false,
|
||||
infects: [],
|
||||
},
|
||||
),
|
||||
(
|
||||
(
|
||||
Atom('c' type=inline),
|
||||
#2,
|
||||
),
|
||||
VarUsageInfo {
|
||||
inline_prevented: false,
|
||||
ref_count: 1,
|
||||
cond_init: false,
|
||||
declared: true,
|
||||
declared_count: 1,
|
||||
declared_as_fn_param: true,
|
||||
declared_as_fn_expr: false,
|
||||
assign_count: 0,
|
||||
mutation_by_call_count: 0,
|
||||
usage_count: 1,
|
||||
reassigned_with_assignment: false,
|
||||
reassigned_with_var_decl: false,
|
||||
mutated: false,
|
||||
has_property_access: false,
|
||||
has_property_mutation: false,
|
||||
accessed_props: {},
|
||||
exported: false,
|
||||
used_above_decl: false,
|
||||
is_fn_local: true,
|
||||
used_by_nested_fn: true,
|
||||
executed_multiple_time: false,
|
||||
used_in_cond: false,
|
||||
var_kind: None,
|
||||
var_initialized: false,
|
||||
declared_as_catch_param: false,
|
||||
no_side_effect_for_member_access: false,
|
||||
used_as_callee: false,
|
||||
used_as_arg: false,
|
||||
pure_fn: false,
|
||||
infects: [],
|
||||
},
|
||||
),
|
||||
(
|
||||
(
|
||||
Atom('module' type=static),
|
||||
#3,
|
||||
),
|
||||
VarUsageInfo {
|
||||
inline_prevented: false,
|
||||
ref_count: 3,
|
||||
cond_init: false,
|
||||
declared: false,
|
||||
declared_count: 0,
|
||||
declared_as_fn_param: false,
|
||||
declared_as_fn_expr: false,
|
||||
assign_count: 0,
|
||||
mutation_by_call_count: 0,
|
||||
usage_count: 3,
|
||||
reassigned_with_assignment: false,
|
||||
reassigned_with_var_decl: false,
|
||||
mutated: false,
|
||||
has_property_access: true,
|
||||
has_property_mutation: false,
|
||||
accessed_props: {},
|
||||
exported: false,
|
||||
used_above_decl: true,
|
||||
is_fn_local: true,
|
||||
used_by_nested_fn: false,
|
||||
executed_multiple_time: false,
|
||||
used_in_cond: false,
|
||||
var_kind: None,
|
||||
var_initialized: false,
|
||||
declared_as_catch_param: false,
|
||||
no_side_effect_for_member_access: false,
|
||||
used_as_callee: false,
|
||||
used_as_arg: false,
|
||||
pure_fn: false,
|
||||
infects: [],
|
||||
},
|
||||
),
|
||||
],
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
function $parcel$export(a, b, c) {
|
||||
a[b] = c;
|
||||
}
|
||||
$parcel$export(module.exports, "A", function () {
|
||||
return A;
|
||||
});
|
||||
$parcel$export(module.exports, "B", function () {
|
||||
return B;
|
||||
});
|
||||
$parcel$export(module.exports, "C", function () {
|
||||
return C;
|
||||
});
|
||||
const A = "A",
|
||||
B = "B",
|
||||
C = "C";
|
@ -0,0 +1,9 @@
|
||||
var a, c, a1, c1, a2, c2;
|
||||
a = module.exports, c = function() {
|
||||
return A;
|
||||
}, a.A = c, a1 = module.exports, c1 = function() {
|
||||
return B;
|
||||
}, a1.B = c1, a2 = module.exports, c2 = function() {
|
||||
return C;
|
||||
}, a2.C = c2;
|
||||
const A = "A", B = "B", C = "C";
|
@ -0,0 +1,13 @@
|
||||
function n(n, t, r) {
|
||||
n[t] = r;
|
||||
}
|
||||
n(module.exports, "A", function() {
|
||||
return t;
|
||||
});
|
||||
n(module.exports, "B", function() {
|
||||
return r;
|
||||
});
|
||||
n(module.exports, "C", function() {
|
||||
return o;
|
||||
});
|
||||
const t = "A", r = "B", o = "C";
|
File diff suppressed because one or more lines are too long
@ -1662,22 +1662,19 @@
|
||||
return $browser1 = $browser, XHR1 = XHR, $browserDefer = $browser.defer, callbacks = $window.angular.callbacks, rawDocument = $document[0], function(method, url, post, callback, headers, timeout, withCredentials, responseType) {
|
||||
var status;
|
||||
if ($browser1.$$incOutstandingRequestCount(), url = url || $browser1.url(), "jsonp" == lowercase(method)) {
|
||||
var callbackId = "_" + (callbacks.counter++).toString(36);
|
||||
var url1, done, script, doneWrapper, callbackId = "_" + (callbacks.counter++).toString(36);
|
||||
callbacks[callbackId] = function(data) {
|
||||
callbacks[callbackId].data = data;
|
||||
};
|
||||
var jsonpDone = function(url, done) {
|
||||
var script = rawDocument.createElement("script"), doneWrapper = function() {
|
||||
script.onreadystatechange = script.onload = script.onerror = null, rawDocument.body.removeChild(script), done && done();
|
||||
};
|
||||
return script.type = "text/javascript", script.src = url, msie && msie <= 8 ? script.onreadystatechange = function() {
|
||||
/loaded|complete/.test(script.readyState) && doneWrapper();
|
||||
} : script.onload = script.onerror = function() {
|
||||
doneWrapper();
|
||||
}, rawDocument.body.appendChild(script), doneWrapper;
|
||||
}(url.replace("JSON_CALLBACK", "angular.callbacks." + callbackId), function() {
|
||||
var jsonpDone = (url1 = url.replace("JSON_CALLBACK", "angular.callbacks." + callbackId), done = function() {
|
||||
callbacks[callbackId].data ? completeRequest(callback, 200, callbacks[callbackId].data) : completeRequest(callback, status || -2), delete callbacks[callbackId];
|
||||
});
|
||||
}, script = rawDocument.createElement("script"), doneWrapper = function() {
|
||||
script.onreadystatechange = script.onload = script.onerror = null, rawDocument.body.removeChild(script), done && done();
|
||||
}, script.type = "text/javascript", script.src = url1, msie && msie <= 8 ? script.onreadystatechange = function() {
|
||||
/loaded|complete/.test(script.readyState) && doneWrapper();
|
||||
} : script.onload = script.onerror = function() {
|
||||
doneWrapper();
|
||||
}, rawDocument.body.appendChild(script), doneWrapper);
|
||||
} else {
|
||||
var xhr = new XHR1();
|
||||
xhr.open(method, url, !0), forEach(headers, function(value, key) {
|
||||
@ -3357,21 +3354,18 @@
|
||||
function orderByFilter($parse) {
|
||||
return function(array, sortPredicate, reverseOrder) {
|
||||
if (!isArray(array) || !sortPredicate) return array;
|
||||
sortPredicate = function(obj, iterator, context) {
|
||||
var results = [];
|
||||
return forEach(obj, function(value, index, list) {
|
||||
results.push(iterator.call(void 0, value, index, list));
|
||||
}), results;
|
||||
}(sortPredicate = isArray(sortPredicate) ? sortPredicate : [
|
||||
sortPredicate = (obj = sortPredicate = isArray(sortPredicate) ? sortPredicate : [
|
||||
sortPredicate
|
||||
], function(predicate) {
|
||||
], iterator = function(predicate) {
|
||||
var descending = !1, get = predicate || identity;
|
||||
return isString(predicate) && (("+" == predicate.charAt(0) || "-" == predicate.charAt(0)) && (descending = "-" == predicate.charAt(0), predicate = predicate.substring(1)), get = $parse(predicate)), reverseComparator(function(a, b) {
|
||||
var v1, v2, t1, t2;
|
||||
return v1 = get(a), v2 = get(b), t1 = typeof v1, t1 != (t2 = typeof v2) ? t1 < t2 ? -1 : 1 : ("string" == t1 && (v1 = v1.toLowerCase(), v2 = v2.toLowerCase()), v1 === v2) ? 0 : v1 < v2 ? -1 : 1;
|
||||
}, descending);
|
||||
});
|
||||
for(var arrayCopy = [], i = 0; i < array.length; i++)arrayCopy.push(array[i]);
|
||||
}, results = [], forEach(obj, function(value, index, list) {
|
||||
results.push(iterator.call(void 0, value, index, list));
|
||||
}), results);
|
||||
for(var obj, iterator, results, arrayCopy = [], i = 0; i < array.length; i++)arrayCopy.push(array[i]);
|
||||
return arrayCopy.sort(reverseComparator(function(o1, o2) {
|
||||
for(var i = 0; i < sortPredicate.length; i++){
|
||||
var comp = sortPredicate[i](o1, o2);
|
||||
|
@ -816,13 +816,7 @@
|
||||
function getChildNamespace(parentNamespace, type) {
|
||||
return null == parentNamespace || parentNamespace === HTML_NAMESPACE ? getIntrinsicNamespace(type) : parentNamespace === SVG_NAMESPACE && "foreignObject" === type ? HTML_NAMESPACE : parentNamespace;
|
||||
}
|
||||
var setInnerHTML = function(func) {
|
||||
return "undefined" != typeof MSApp && MSApp.execUnsafeLocalFunction ? function(arg0, arg1, arg2, arg3) {
|
||||
MSApp.execUnsafeLocalFunction(function() {
|
||||
return func(arg0, arg1, arg2, arg3);
|
||||
});
|
||||
} : func;
|
||||
}(function(node, html) {
|
||||
var func, setInnerHTML = (func = function(node, html) {
|
||||
if (node.namespaceURI === Namespaces.svg && !("innerHTML" in node)) {
|
||||
(reusableSVGContainer = reusableSVGContainer || document.createElement("div")).innerHTML = "<svg>" + html.valueOf().toString() + "</svg>";
|
||||
for(var svgNode = reusableSVGContainer.firstChild; node.firstChild;)node.removeChild(node.firstChild);
|
||||
@ -830,7 +824,11 @@
|
||||
return;
|
||||
}
|
||||
node.innerHTML = html;
|
||||
}), setTextContent = function(node, text) {
|
||||
}, "undefined" != typeof MSApp && MSApp.execUnsafeLocalFunction ? function(arg0, arg1, arg2, arg3) {
|
||||
MSApp.execUnsafeLocalFunction(function() {
|
||||
return func(arg0, arg1, arg2, arg3);
|
||||
});
|
||||
} : func), setTextContent = function(node, text) {
|
||||
if (text) {
|
||||
var firstChild = node.firstChild;
|
||||
if (firstChild && firstChild === node.lastChild && 3 === firstChild.nodeType) {
|
||||
@ -9242,33 +9240,25 @@
|
||||
}
|
||||
var isRootRenderedBySomeReact = !!container._reactRootContainer, rootEl = getReactRootElementInContainer(container);
|
||||
rootEl && getInstanceFromNode(rootEl) && !isRootRenderedBySomeReact && error("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."), 1 === container.nodeType && container.tagName && "BODY" === container.tagName.toUpperCase() && error("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.");
|
||||
}, function(fn) {
|
||||
attemptUserBlockingHydration = fn;
|
||||
}(function(fiber) {
|
||||
}, attemptUserBlockingHydration = function(fiber) {
|
||||
if (13 === fiber.tag) {
|
||||
var eventTime = requestEventTime();
|
||||
scheduleUpdateOnFiber(fiber, 4, eventTime), markRetryLaneIfNotHydrated(fiber, 4);
|
||||
}
|
||||
}), function(fn) {
|
||||
attemptContinuousHydration = fn;
|
||||
}(function(fiber) {
|
||||
}, attemptContinuousHydration = function(fiber) {
|
||||
if (13 === fiber.tag) {
|
||||
var eventTime = requestEventTime();
|
||||
scheduleUpdateOnFiber(fiber, 67108864, eventTime), markRetryLaneIfNotHydrated(fiber, 67108864);
|
||||
}
|
||||
}), function(fn) {
|
||||
attemptHydrationAtCurrentPriority = fn;
|
||||
}(function(fiber) {
|
||||
}, attemptHydrationAtCurrentPriority = function(fiber) {
|
||||
if (13 === fiber.tag) {
|
||||
var eventTime = requestEventTime(), lane = requestUpdateLane(fiber);
|
||||
scheduleUpdateOnFiber(fiber, lane, eventTime), markRetryLaneIfNotHydrated(fiber, lane);
|
||||
}
|
||||
}), function(fn) {
|
||||
attemptHydrationAtPriority = fn;
|
||||
}(function(priority, fn) {
|
||||
}, attemptHydrationAtPriority = function(priority, fn) {
|
||||
return fn();
|
||||
});
|
||||
var didWarnAboutUnstableCreatePortal = !1;
|
||||
};
|
||||
var _batchedUpdatesImpl, _discreteUpdatesImpl, _flushDiscreteUpdatesImpl, _batchedEventUpdatesImpl, didWarnAboutUnstableCreatePortal = !1;
|
||||
function createPortal$1(children, container) {
|
||||
var key = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : null;
|
||||
if (!isValidContainer(container)) throw Error("Target container is not a DOM element.");
|
||||
@ -9283,9 +9273,7 @@
|
||||
};
|
||||
}(children, container, null, key);
|
||||
}
|
||||
if (("function" != typeof Map || null == Map.prototype || "function" != typeof Map.prototype.forEach || "function" != typeof Set || null == Set.prototype || "function" != typeof Set.prototype.clear || "function" != typeof Set.prototype.forEach) && error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"), function(impl) {
|
||||
restoreImpl = impl;
|
||||
}(function(domElement, tag, props) {
|
||||
if (("function" != typeof Map || null == Map.prototype || "function" != typeof Map.prototype.forEach || "function" != typeof Set || null == Set.prototype || "function" != typeof Set.prototype.clear || "function" != typeof Set.prototype.forEach) && error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"), restoreImpl = function(domElement, tag, props) {
|
||||
var element, props1, node, element1, element2, props2, value;
|
||||
switch(tag){
|
||||
case "input":
|
||||
@ -9311,9 +9299,7 @@
|
||||
element2 = domElement, null != (value = (props2 = props).value) && updateOptions(element2, !!props2.multiple, value, !1);
|
||||
return;
|
||||
}
|
||||
}), function(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushDiscreteUpdatesImpl, _batchedEventUpdatesImpl) {
|
||||
batchedUpdatesImpl = _batchedUpdatesImpl, discreteUpdatesImpl = _discreteUpdatesImpl, flushDiscreteUpdatesImpl = _flushDiscreteUpdatesImpl, batchedEventUpdatesImpl = _batchedEventUpdatesImpl;
|
||||
}(batchedUpdates$1, function(fn, a, b, c, d) {
|
||||
}, _batchedUpdatesImpl = batchedUpdates$1, _discreteUpdatesImpl = function(fn, a, b, c, d) {
|
||||
var prevExecutionContext = executionContext;
|
||||
executionContext |= 4;
|
||||
try {
|
||||
@ -9321,7 +9307,7 @@
|
||||
} finally{
|
||||
0 === (executionContext = prevExecutionContext) && (resetRenderTimer(), flushSyncCallbackQueue());
|
||||
}
|
||||
}, function() {
|
||||
}, _flushDiscreteUpdatesImpl = function() {
|
||||
if ((49 & executionContext) != 0) {
|
||||
(16 & executionContext) != 0 && error("unstable_flushDiscreteUpdates: Cannot flush updates when React is already rendering.");
|
||||
return;
|
||||
@ -9336,7 +9322,7 @@
|
||||
}
|
||||
flushSyncCallbackQueue();
|
||||
})(), flushPassiveEffects();
|
||||
}, function(fn, a) {
|
||||
}, _batchedEventUpdatesImpl = function(fn, a) {
|
||||
var prevExecutionContext = executionContext;
|
||||
executionContext |= 2;
|
||||
try {
|
||||
@ -9344,7 +9330,7 @@
|
||||
} finally{
|
||||
0 === (executionContext = prevExecutionContext) && (resetRenderTimer(), flushSyncCallbackQueue());
|
||||
}
|
||||
}), findFiberByHostInstance = (devToolsConfig = {
|
||||
}, batchedUpdatesImpl = _batchedUpdatesImpl, discreteUpdatesImpl = _discreteUpdatesImpl, flushDiscreteUpdatesImpl = _flushDiscreteUpdatesImpl, batchedEventUpdatesImpl = _batchedEventUpdatesImpl, findFiberByHostInstance = (devToolsConfig = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 1,
|
||||
version: ReactVersion,
|
||||
|
Loading…
Reference in New Issue
Block a user