mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 13:51:19 +03:00
feat(es/minifier): Consider cost of functions for inlining (#4470)
This commit is contained in:
parent
5a60e05102
commit
7a584d755a
@ -1,9 +1,10 @@
|
|||||||
var A;
|
var A;
|
||||||
!function(A1) {
|
!function(A1) {
|
||||||
|
function fn(s) {
|
||||||
|
return !0;
|
||||||
|
}
|
||||||
function fng(s) {
|
function fng(s) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
A1.fn = function(s) {
|
A1.fn = fn, A1.fng = fng;
|
||||||
return !0;
|
|
||||||
}, A1.fng = fng;
|
|
||||||
}(A || (A = {})), A.fn, A.fng, A.fn2, A.fng2;
|
}(A || (A = {})), A.fn, A.fng, A.fn2, A.fng2;
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
function foo() {
|
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
class A {
|
class A {
|
||||||
static foo() {
|
static foo() {
|
||||||
return !1;
|
return !1;
|
||||||
@ -11,4 +8,4 @@ class A {
|
|||||||
M1.n = n;
|
M1.n = n;
|
||||||
}(M || (M = {}));
|
}(M || (M = {}));
|
||||||
var M, objA = new A();
|
var M, objA = new A();
|
||||||
objA.a, M.n, foo(), A.foo(), foo(), objA.a, M.n;
|
objA.a, M.n, A.foo(), objA.a, M.n;
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
import * as swcHelpers from "@swc/helpers";
|
import * as swcHelpers from "@swc/helpers";
|
||||||
function foo() {
|
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
var M, A = function() {
|
var M, A = function() {
|
||||||
"use strict";
|
"use strict";
|
||||||
function A() {
|
function A() {
|
||||||
@ -16,4 +13,4 @@ var M, A = function() {
|
|||||||
M1.n = n;
|
M1.n = n;
|
||||||
}(M || (M = {}));
|
}(M || (M = {}));
|
||||||
var objA = new A();
|
var objA = new A();
|
||||||
objA.a, M.n, foo(), A.foo(), foo(), objA.a, M.n;
|
objA.a, M.n, A.foo(), objA.a, M.n;
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
var A, B, C, D, E, F;
|
var A, B, C, D, E, F;
|
||||||
(A || (A = {})).x = 12, B || (B = {}), C || (C = {}), (D || (D = {})).yes = function() {
|
(A || (A = {})).x = 12, B || (B = {}), C || (C = {}), function(D1) {
|
||||||
|
function yes() {
|
||||||
return !0;
|
return !0;
|
||||||
}, function(E1) {
|
}
|
||||||
|
D1.yes = yes;
|
||||||
|
}(D || (D = {})), function(E1) {
|
||||||
var Color;
|
var Color;
|
||||||
(Color = E1.Color || (E1.Color = {}))[Color.Red = 0] = "Red", E1.fn = function() {}, E1.C = class {
|
(Color = E1.Color || (E1.Color = {}))[Color.Red = 0] = "Red", E1.fn = function() {}, E1.C = class {
|
||||||
}, (E1.M || (E1.M = {})).x = 42;
|
}, (E1.M || (E1.M = {})).x = 42;
|
||||||
|
@ -1,21 +1,27 @@
|
|||||||
function foo(x) {
|
function foo(x) {
|
||||||
return x(null);
|
return x(null);
|
||||||
}
|
}
|
||||||
function foo2(x, cb) {
|
|
||||||
return cb(x);
|
|
||||||
}
|
|
||||||
function foo3(x, cb, y) {
|
|
||||||
return cb(x);
|
|
||||||
}
|
|
||||||
foo((x)=>''
|
foo((x)=>''
|
||||||
), foo((x)=>''
|
), foo((x)=>''
|
||||||
), foo((x)=>''
|
), foo((x)=>''
|
||||||
), foo2(1, function(a) {
|
), function(x, cb) {
|
||||||
|
cb(1);
|
||||||
|
}(1, function(a) {
|
||||||
return '';
|
return '';
|
||||||
}), foo2(1, (a)=>''
|
}), function(x, cb) {
|
||||||
), foo2('', (a)=>1
|
cb(1);
|
||||||
), foo3(1, (a)=>''
|
}(1, (a)=>''
|
||||||
, ''), foo3(1, function(a) {
|
), function(x, cb) {
|
||||||
|
cb('');
|
||||||
|
}('', (a)=>1
|
||||||
|
), function(x, cb, y) {
|
||||||
|
cb(1);
|
||||||
|
}(1, (a)=>''
|
||||||
|
, ''), function(x, cb, y) {
|
||||||
|
cb(1);
|
||||||
|
}(1, function(a) {
|
||||||
return '';
|
return '';
|
||||||
}, 1), foo3(1, (a)=>''
|
}, 1), function(x, cb, y) {
|
||||||
|
cb(1);
|
||||||
|
}(1, (a)=>''
|
||||||
, '');
|
, '');
|
||||||
|
@ -1,28 +1,34 @@
|
|||||||
function foo(x) {
|
function foo(x) {
|
||||||
return x(null);
|
return x(null);
|
||||||
}
|
}
|
||||||
function foo2(x, cb) {
|
|
||||||
return cb(x);
|
|
||||||
}
|
|
||||||
function foo3(x, cb, y) {
|
|
||||||
return cb(x);
|
|
||||||
}
|
|
||||||
foo(function(x) {
|
foo(function(x) {
|
||||||
return "";
|
return "";
|
||||||
}), foo(function(x) {
|
}), foo(function(x) {
|
||||||
return "";
|
return "";
|
||||||
}), foo(function(x) {
|
}), foo(function(x) {
|
||||||
return "";
|
return "";
|
||||||
}), foo2(1, function(a) {
|
}), function(x, cb) {
|
||||||
|
cb(1);
|
||||||
|
}(1, function(a) {
|
||||||
return "";
|
return "";
|
||||||
}), foo2(1, function(a) {
|
}), function(x, cb) {
|
||||||
|
cb(1);
|
||||||
|
}(1, function(a) {
|
||||||
return "";
|
return "";
|
||||||
}), foo2("", function(a) {
|
}), function(x, cb) {
|
||||||
|
cb("");
|
||||||
|
}("", function(a) {
|
||||||
return 1;
|
return 1;
|
||||||
}), foo3(1, function(a) {
|
}), function(x, cb, y) {
|
||||||
|
cb(1);
|
||||||
|
}(1, function(a) {
|
||||||
return "";
|
return "";
|
||||||
}, ""), foo3(1, function(a) {
|
}, ""), function(x, cb, y) {
|
||||||
|
cb(1);
|
||||||
|
}(1, function(a) {
|
||||||
return "";
|
return "";
|
||||||
}, 1), foo3(1, function(a) {
|
}, 1), function(x, cb, y) {
|
||||||
|
cb(1);
|
||||||
|
}(1, function(a) {
|
||||||
return "";
|
return "";
|
||||||
}, "");
|
}, "");
|
||||||
|
@ -3,16 +3,19 @@ class Base {
|
|||||||
class Derived extends Base {
|
class Derived extends Base {
|
||||||
}
|
}
|
||||||
function f(x) {}
|
function f(x) {}
|
||||||
function f3(x, y) {
|
|
||||||
return y(null);
|
|
||||||
}
|
|
||||||
f({
|
f({
|
||||||
foo: new Base(),
|
foo: new Base(),
|
||||||
bar: new Derived()
|
bar: new Derived()
|
||||||
}), f({
|
}), f({
|
||||||
foo: new Derived(),
|
foo: new Derived(),
|
||||||
bar: new Derived()
|
bar: new Derived()
|
||||||
}), f3(new Base(), (x)=>x
|
}), function(x, y) {
|
||||||
), f3(new Derived(), (x)=>x
|
y(null);
|
||||||
), f3(null, null), f3(null, (x)=>x
|
}(new Base(), (x)=>x
|
||||||
|
), function(x, y) {
|
||||||
|
y(null);
|
||||||
|
}(new Derived(), (x)=>x
|
||||||
|
), (null)(null), function(x, y) {
|
||||||
|
y(null);
|
||||||
|
}(null, (x)=>x
|
||||||
);
|
);
|
||||||
|
@ -12,19 +12,22 @@ var Base = function() {
|
|||||||
return Derived;
|
return Derived;
|
||||||
}(Base);
|
}(Base);
|
||||||
function f(x) {}
|
function f(x) {}
|
||||||
function f3(x, y) {
|
|
||||||
return y(null);
|
|
||||||
}
|
|
||||||
f({
|
f({
|
||||||
foo: new Base(),
|
foo: new Base(),
|
||||||
bar: new Derived()
|
bar: new Derived()
|
||||||
}), f({
|
}), f({
|
||||||
foo: new Derived(),
|
foo: new Derived(),
|
||||||
bar: new Derived()
|
bar: new Derived()
|
||||||
}), f3(new Base(), function(x) {
|
}), function(x, y) {
|
||||||
|
y(null);
|
||||||
|
}(new Base(), function(x) {
|
||||||
return x;
|
return x;
|
||||||
}), f3(new Derived(), function(x) {
|
}), function(x, y) {
|
||||||
|
y(null);
|
||||||
|
}(new Derived(), function(x) {
|
||||||
return x;
|
return x;
|
||||||
}), f3(null, null), f3(null, function(x) {
|
}), (null)(null), function(x, y) {
|
||||||
|
y(null);
|
||||||
|
}(null, function(x) {
|
||||||
return x;
|
return x;
|
||||||
});
|
});
|
||||||
|
@ -5,16 +5,19 @@ class Derived extends Base {
|
|||||||
class Derived2 extends Base {
|
class Derived2 extends Base {
|
||||||
}
|
}
|
||||||
function f2(a) {}
|
function f2(a) {}
|
||||||
function f3(y, x) {
|
|
||||||
return y(null);
|
|
||||||
}
|
|
||||||
new Derived(), new Derived2(), f2({
|
new Derived(), new Derived2(), f2({
|
||||||
x: new Derived(),
|
x: new Derived(),
|
||||||
y: new Derived2()
|
y: new Derived2()
|
||||||
}), f2({
|
}), f2({
|
||||||
x: new Derived(),
|
x: new Derived(),
|
||||||
y: new Derived2()
|
y: new Derived2()
|
||||||
}), f3((x)=>x
|
}), function(y, x) {
|
||||||
, new Base()), f3((x)=>x
|
y(null);
|
||||||
, new Derived()), f3((x)=>x
|
}((x)=>x
|
||||||
|
, new Base()), function(y, x) {
|
||||||
|
y(null);
|
||||||
|
}((x)=>x
|
||||||
|
, new Derived()), function(y, x) {
|
||||||
|
y(null);
|
||||||
|
}((x)=>x
|
||||||
, null);
|
, null);
|
||||||
|
@ -20,19 +20,22 @@ var Base = function() {
|
|||||||
return Derived2;
|
return Derived2;
|
||||||
}(Base);
|
}(Base);
|
||||||
function f2(a) {}
|
function f2(a) {}
|
||||||
function f3(y, x) {
|
|
||||||
return y(null);
|
|
||||||
}
|
|
||||||
new Derived(), new Derived2(), f2({
|
new Derived(), new Derived2(), f2({
|
||||||
x: new Derived(),
|
x: new Derived(),
|
||||||
y: new Derived2()
|
y: new Derived2()
|
||||||
}), f2({
|
}), f2({
|
||||||
x: new Derived(),
|
x: new Derived(),
|
||||||
y: new Derived2()
|
y: new Derived2()
|
||||||
}), f3(function(x) {
|
}), function(y, x) {
|
||||||
|
y(null);
|
||||||
|
}(function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, new Base()), f3(function(x) {
|
}, new Base()), function(y, x) {
|
||||||
|
y(null);
|
||||||
|
}(function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, new Derived()), f3(function(x) {
|
}, new Derived()), function(y, x) {
|
||||||
|
y(null);
|
||||||
|
}(function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, null);
|
}, null);
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
var _obj, _ref, ref, ref1, count = 0, obj = {};
|
var _obj, _ref, ref, ref1, count = 0, obj = {};
|
||||||
null !== (ref = (_obj = obj)[++count]) && void 0 !== ref || (_obj[++count] = ++count), null !== (ref1 = (_ref = ({
|
function incr() {
|
||||||
|
return ++count;
|
||||||
|
}
|
||||||
|
null !== (ref = (_obj = obj)[incr()]) && void 0 !== ref || (_obj[incr()] = incr()), null !== (ref1 = (_ref = ({
|
||||||
obj
|
obj
|
||||||
}).obj)[++count]) && void 0 !== ref1 || (_ref[++count] = ++count);
|
}).obj)[incr()]) && void 0 !== ref1 || (_ref[incr()] = incr());
|
||||||
|
@ -1,2 +1,5 @@
|
|||||||
var _obj, _ref, ref, ref1, count = 0, obj = {};
|
var _obj, _ref, ref, ref1, count = 0, obj = {};
|
||||||
null !== (ref = (_obj = obj)[++count]) && void 0 !== ref || (_obj[++count] = ++count), null !== (ref1 = (_ref = obj)[++count]) && void 0 !== ref1 || (_ref[++count] = ++count);
|
function incr() {
|
||||||
|
return ++count;
|
||||||
|
}
|
||||||
|
null !== (ref = (_obj = obj)[incr()]) && void 0 !== ref || (_obj[incr()] = incr()), null !== (ref1 = (_ref = obj)[incr()]) && void 0 !== ref1 || (_ref[incr()] = incr());
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
function foo() {
|
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
class A {
|
class A {
|
||||||
static foo() {
|
static foo() {
|
||||||
return !1;
|
return !1;
|
||||||
@ -11,4 +8,4 @@ class A {
|
|||||||
M1.n = n;
|
M1.n = n;
|
||||||
}(M || (M = {}));
|
}(M || (M = {}));
|
||||||
var M, objA = new A();
|
var M, objA = new A();
|
||||||
objA.a, M.n, foo(), A.foo(), foo(), objA.a, M.n;
|
objA.a, M.n, A.foo(), objA.a, M.n;
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
import * as swcHelpers from "@swc/helpers";
|
import * as swcHelpers from "@swc/helpers";
|
||||||
function foo() {
|
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
var M, A = function() {
|
var M, A = function() {
|
||||||
"use strict";
|
"use strict";
|
||||||
function A() {
|
function A() {
|
||||||
@ -16,4 +13,4 @@ var M, A = function() {
|
|||||||
M1.n = n;
|
M1.n = n;
|
||||||
}(M || (M = {}));
|
}(M || (M = {}));
|
||||||
var objA = new A();
|
var objA = new A();
|
||||||
objA.a, M.n, foo(), A.foo(), foo(), objA.a, M.n;
|
objA.a, M.n, A.foo(), objA.a, M.n;
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
function foo() {
|
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
class A {
|
class A {
|
||||||
static foo() {
|
static foo() {
|
||||||
return !1;
|
return !1;
|
||||||
@ -11,4 +8,4 @@ class A {
|
|||||||
M1.n = n;
|
M1.n = n;
|
||||||
}(M || (M = {}));
|
}(M || (M = {}));
|
||||||
var M, objA = new A();
|
var M, objA = new A();
|
||||||
objA.a, M.n, foo(), A.foo(), foo(), objA.a, M.n;
|
objA.a, M.n, A.foo(), objA.a, M.n;
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
import * as swcHelpers from "@swc/helpers";
|
import * as swcHelpers from "@swc/helpers";
|
||||||
function foo() {
|
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
var M, A = function() {
|
var M, A = function() {
|
||||||
"use strict";
|
"use strict";
|
||||||
function A() {
|
function A() {
|
||||||
@ -16,4 +13,4 @@ var M, A = function() {
|
|||||||
M1.n = n;
|
M1.n = n;
|
||||||
}(M || (M = {}));
|
}(M || (M = {}));
|
||||||
var objA = new A();
|
var objA = new A();
|
||||||
objA.a, M.n, foo(), A.foo(), foo(), objA.a, M.n;
|
objA.a, M.n, A.foo(), objA.a, M.n;
|
||||||
|
@ -1,12 +1,17 @@
|
|||||||
function error(message) {
|
function error(message) {
|
||||||
throw new Error(message);
|
throw new Error(message);
|
||||||
}
|
}
|
||||||
function test(cb) {
|
(function(cb) {
|
||||||
return cb();
|
cb();
|
||||||
}
|
})(()=>"hello"
|
||||||
test(()=>"hello"
|
), function(cb) {
|
||||||
), test(()=>error("Something failed")
|
cb();
|
||||||
), test(()=>{
|
}(()=>error("Something failed")
|
||||||
|
), function(cb) {
|
||||||
|
cb();
|
||||||
|
}(()=>{
|
||||||
throw new Error();
|
throw new Error();
|
||||||
}), test(()=>error("Error callback")
|
}), function(cb) {
|
||||||
|
cb();
|
||||||
|
}(()=>error("Error callback")
|
||||||
);
|
);
|
||||||
|
@ -18,15 +18,20 @@ var C = function() {
|
|||||||
for(;;);
|
for(;;);
|
||||||
}, C;
|
}, C;
|
||||||
}();
|
}();
|
||||||
function test(cb) {
|
(function(cb) {
|
||||||
return cb();
|
cb();
|
||||||
}
|
})(function() {
|
||||||
test(function() {
|
|
||||||
return "hello";
|
return "hello";
|
||||||
}), test(function() {
|
}), function(cb) {
|
||||||
|
cb();
|
||||||
|
}(function() {
|
||||||
return error("Something failed");
|
return error("Something failed");
|
||||||
}), test(function() {
|
}), function(cb) {
|
||||||
|
cb();
|
||||||
|
}(function() {
|
||||||
throw new Error();
|
throw new Error();
|
||||||
}), test(function() {
|
}), function(cb) {
|
||||||
|
cb();
|
||||||
|
}(function() {
|
||||||
return error("Error callback");
|
return error("Error callback");
|
||||||
});
|
});
|
||||||
|
@ -1,26 +1,43 @@
|
|||||||
function fun(g, x) {
|
(function(g, x) {
|
||||||
return g(x);
|
g(10);
|
||||||
}
|
})((x)=>x
|
||||||
fun((x)=>x
|
, 10), function(g, x) {
|
||||||
, 10), fun((x)=>x
|
g(10);
|
||||||
, 10), fun((x)=>x
|
}((x)=>x
|
||||||
, 10), fun((x)=>x
|
, 10), function(g, x) {
|
||||||
, 10), fun((x)=>x
|
g(10);
|
||||||
|
}((x)=>x
|
||||||
|
, 10), function(g, x) {
|
||||||
|
g(10);
|
||||||
|
}((x)=>x
|
||||||
|
, 10), function(g, x) {
|
||||||
|
g(x);
|
||||||
|
}((x)=>x
|
||||||
, (x)=>x
|
, (x)=>x
|
||||||
, 10), fun((x)=>x
|
, 10), function(g, x) {
|
||||||
|
g(x);
|
||||||
|
}((x)=>x
|
||||||
, (x)=>x
|
, (x)=>x
|
||||||
, 10), fun((x)=>x
|
, 10), function(g, x) {
|
||||||
|
g(x);
|
||||||
|
}((x)=>x
|
||||||
, (x)=>x
|
, (x)=>x
|
||||||
, 10), fun((x)=>x
|
, 10), function(g, x) {
|
||||||
|
g(x);
|
||||||
|
}((x)=>x
|
||||||
, (x)=>x
|
, (x)=>x
|
||||||
, 10), fun(0.5 > Math.random() ? (x)=>x
|
, 10), (0.5 > Math.random() ? (x)=>x
|
||||||
: (x)=>void 0
|
: (x)=>void 0
|
||||||
, 10), fun(0.5 > Math.random() ? (x)=>x
|
)(10), (0.5 > Math.random() ? (x)=>x
|
||||||
: (x)=>void 0
|
: (x)=>void 0
|
||||||
, 10), fun(0.5 > Math.random() ? (x)=>x
|
)(10), function(g, x) {
|
||||||
|
g(x);
|
||||||
|
}(0.5 > Math.random() ? (x)=>x
|
||||||
: (x)=>void 0
|
: (x)=>void 0
|
||||||
, (x)=>x
|
, (x)=>x
|
||||||
, 10), fun(0.5 > Math.random() ? (x)=>x
|
, 10), function(g, x) {
|
||||||
|
g(x);
|
||||||
|
}(0.5 > Math.random() ? (x)=>x
|
||||||
: (x)=>void 0
|
: (x)=>void 0
|
||||||
, (x)=>x
|
, (x)=>x
|
||||||
, 10);
|
, 10);
|
||||||
|
@ -1,39 +1,56 @@
|
|||||||
function fun(g, x) {
|
(function(g, x) {
|
||||||
return g(x);
|
g(10);
|
||||||
}
|
})(function(x) {
|
||||||
fun(function(x) {
|
|
||||||
return x;
|
return x;
|
||||||
}, 10), fun(function(x) {
|
}, 10), function(g, x) {
|
||||||
|
g(10);
|
||||||
|
}(function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, 10), fun(function(x) {
|
}, 10), function(g, x) {
|
||||||
|
g(10);
|
||||||
|
}(function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, 10), fun(function(x) {
|
}, 10), function(g, x) {
|
||||||
|
g(10);
|
||||||
|
}(function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, 10), fun(function(x) {
|
}, 10), function(g, x) {
|
||||||
|
g(x);
|
||||||
|
}(function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, function(x) {
|
}, function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, 10), fun(function(x) {
|
}, 10), function(g, x) {
|
||||||
|
g(x);
|
||||||
|
}(function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, function(x) {
|
}, function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, 10), fun(function(x) {
|
}, 10), function(g, x) {
|
||||||
|
g(x);
|
||||||
|
}(function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, function(x) {
|
}, function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, 10), fun(function(x) {
|
}, 10), function(g, x) {
|
||||||
|
g(x);
|
||||||
|
}(function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, function(x) {
|
}, function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, 10), fun(0.5 > Math.random() ? function(x) {
|
}, 10), (0.5 > Math.random() ? function(x) {
|
||||||
return x;
|
return x;
|
||||||
} : function(x) {}, 10), fun(0.5 > Math.random() ? function(x) {
|
} : function(x) {})(10), (0.5 > Math.random() ? function(x) {
|
||||||
return x;
|
return x;
|
||||||
} : function(x) {}, 10), fun(0.5 > Math.random() ? function(x) {
|
} : function(x) {})(10), function(g, x) {
|
||||||
|
g(x);
|
||||||
|
}(0.5 > Math.random() ? function(x) {
|
||||||
return x;
|
return x;
|
||||||
} : function(x) {}, function(x) {
|
} : function(x) {}, function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, 10), fun(0.5 > Math.random() ? function(x) {
|
}, 10), function(g, x) {
|
||||||
|
g(x);
|
||||||
|
}(0.5 > Math.random() ? function(x) {
|
||||||
return x;
|
return x;
|
||||||
} : function(x) {}, function(x) {
|
} : function(x) {}, function(x) {
|
||||||
return x;
|
return x;
|
||||||
|
@ -84,32 +84,45 @@ function _templateObject7() {
|
|||||||
return data;
|
return data;
|
||||||
}, data;
|
}, data;
|
||||||
}
|
}
|
||||||
function tempFun(tempStrs, g, x) {
|
(function(tempStrs, g, x) {
|
||||||
return g(x);
|
g(10);
|
||||||
}
|
})(_templateObject(), function(x) {
|
||||||
tempFun(_templateObject(), function(x) {
|
|
||||||
return x;
|
return x;
|
||||||
}, 10), tempFun(_templateObject1(), function(x) {
|
}, 10), function(tempStrs, g, x) {
|
||||||
|
g(10);
|
||||||
|
}(_templateObject1(), function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, 10), tempFun(_templateObject2(), function(x) {
|
}, 10), function(tempStrs, g, x) {
|
||||||
|
g(10);
|
||||||
|
}(_templateObject2(), function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, 10), tempFun(_templateObject3(), function(x) {
|
}, 10), function(tempStrs, g, x) {
|
||||||
|
g(x);
|
||||||
|
}(_templateObject3(), function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, function(x) {
|
}, function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, 10), tempFun(_templateObject4(), function(x) {
|
}, 10), function(tempStrs, g, x) {
|
||||||
|
g(x);
|
||||||
|
}(_templateObject4(), function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, function(x) {
|
}, function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, 10), tempFun(_templateObject5(), function(x) {
|
}, 10), function(tempStrs, g, x) {
|
||||||
|
g(x);
|
||||||
|
}(_templateObject5(), function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, function(x) {
|
}, function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, 10), tempFun(_templateObject6(), function(x) {
|
}, 10), function(tempStrs, g, x) {
|
||||||
|
g(x);
|
||||||
|
}(_templateObject6(), function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, function(x) {
|
}, function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, 10), tempFun(_templateObject7(), function(x) {
|
}, 10), function(tempStrs, g, x) {
|
||||||
|
g(x);
|
||||||
|
}(_templateObject7(), function(x) {
|
||||||
return x;
|
return x;
|
||||||
}, function(x) {
|
}, function(x) {
|
||||||
return x;
|
return x;
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
function foo() {
|
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
class A {
|
class A {
|
||||||
static foo() {
|
static foo() {
|
||||||
return !1;
|
return !1;
|
||||||
@ -11,4 +8,4 @@ class A {
|
|||||||
M1.n = n;
|
M1.n = n;
|
||||||
}(M || (M = {}));
|
}(M || (M = {}));
|
||||||
var M, objA = new A();
|
var M, objA = new A();
|
||||||
objA.a, M.n, foo(), A.foo(), foo(), objA.a, M.n;
|
objA.a, M.n, A.foo(), objA.a, M.n;
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
import * as swcHelpers from "@swc/helpers";
|
import * as swcHelpers from "@swc/helpers";
|
||||||
function foo() {
|
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
var M, A = function() {
|
var M, A = function() {
|
||||||
"use strict";
|
"use strict";
|
||||||
function A() {
|
function A() {
|
||||||
@ -16,4 +13,4 @@ var M, A = function() {
|
|||||||
M1.n = n;
|
M1.n = n;
|
||||||
}(M || (M = {}));
|
}(M || (M = {}));
|
||||||
var objA = new A();
|
var objA = new A();
|
||||||
objA.a, M.n, foo(), A.foo(), foo(), objA.a, M.n;
|
objA.a, M.n, A.foo(), objA.a, M.n;
|
||||||
|
@ -18,6 +18,6 @@ function invalidGuard(c) {
|
|||||||
}
|
}
|
||||||
b.isFollower = b.isLeader, b.isLeader = b.isFollower, a.isFollower = a.isLeader, a.isLeader = a.isFollower;
|
b.isFollower = b.isLeader, b.isLeader = b.isFollower, a.isFollower = a.isLeader, a.isLeader = a.isFollower;
|
||||||
let c;
|
let c;
|
||||||
invalidGuard(c), ({
|
({
|
||||||
invalidGuard
|
invalidGuard
|
||||||
}).invalidGuard(c), (0, a.isFollower)() ? a.follow() : a.lead();
|
}).invalidGuard(c), (0, a.isFollower)() ? a.follow() : a.lead();
|
||||||
|
@ -30,6 +30,6 @@ var c, RoyalGuard = function() {
|
|||||||
function invalidGuard(c) {
|
function invalidGuard(c) {
|
||||||
return !1;
|
return !1;
|
||||||
}
|
}
|
||||||
b.isFollower = b.isLeader, b.isLeader = b.isFollower, a.isFollower = a.isLeader, a.isLeader = a.isFollower, invalidGuard(c), ({
|
b.isFollower = b.isLeader, b.isLeader = b.isFollower, a.isFollower = a.isLeader, a.isLeader = a.isFollower, ({
|
||||||
invalidGuard: invalidGuard
|
invalidGuard: invalidGuard
|
||||||
}).invalidGuard(c), (0, a.isFollower)() ? a.follow() : a.lead();
|
}).invalidGuard(c), (0, a.isFollower)() ? a.follow() : a.lead();
|
||||||
|
@ -1,11 +1,2 @@
|
|||||||
var c1Orc2, c2Ord1;
|
var c1Orc2, c2Ord1;
|
||||||
function isC1(x) {
|
c1Orc2.p1, c1Orc2.p2, c1Orc2.p1, c1Orc2.p3, c2Ord1.p2, c2Ord1.p3, c2Ord1.p1;
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
function isC2(x) {
|
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
function isD1(x) {
|
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
isC1(c1Orc2) && c1Orc2.p1, isC2(c1Orc2) && c1Orc2.p2, isD1(c1Orc2) && c1Orc2.p1, isD1(c1Orc2) && c1Orc2.p3, isC2(c2Ord1) && c2Ord1.p2, isD1(c2Ord1) && c2Ord1.p3, isD1(c2Ord1) && c2Ord1.p1, isC1(c2Ord1);
|
|
||||||
|
@ -1,11 +1,2 @@
|
|||||||
var c1Orc2, c2Ord1;
|
var c1Orc2, c2Ord1;
|
||||||
function isC1(x) {
|
c1Orc2.p1, c1Orc2.p2, c1Orc2.p1, c1Orc2.p3, c2Ord1.p2, c2Ord1.p3, c2Ord1.p1;
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
function isC2(x) {
|
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
function isD1(x) {
|
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
isC1(c1Orc2) && c1Orc2.p1, isC2(c1Orc2) && c1Orc2.p2, isD1(c1Orc2) && c1Orc2.p1, isD1(c1Orc2) && c1Orc2.p3, isC2(c2Ord1) && c2Ord1.p2, isD1(c2Ord1) && c2Ord1.p3, isD1(c2Ord1) && c2Ord1.p1, isC1(c2Ord1);
|
|
||||||
|
@ -1,11 +1,2 @@
|
|||||||
var c1Orc2, c2Ord1;
|
var c1Orc2, c2Ord1;
|
||||||
function isC1(x) {
|
c1Orc2.p1, c1Orc2.p2, c1Orc2.p1, c1Orc2.p3, c2Ord1.p2, c2Ord1.p3, c2Ord1.p1;
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
function isC2(x) {
|
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
function isD1(x) {
|
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
isC1(c1Orc2) && c1Orc2.p1, isC2(c1Orc2) && c1Orc2.p2, isD1(c1Orc2) && c1Orc2.p1, isD1(c1Orc2) && c1Orc2.p3, isC2(c2Ord1) && c2Ord1.p2, isD1(c2Ord1) && c2Ord1.p3, isD1(c2Ord1) && c2Ord1.p1, isC1(c2Ord1);
|
|
||||||
|
@ -14,13 +14,4 @@ var c1Orc2, c2Ord1, C1 = function() {
|
|||||||
}
|
}
|
||||||
return D1;
|
return D1;
|
||||||
}(C1);
|
}(C1);
|
||||||
function isC1(x) {
|
c1Orc2.p1, c1Orc2.p2, c1Orc2.p1, c1Orc2.p3, c2Ord1.p2, c2Ord1.p3, c2Ord1.p1;
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
function isC2(x) {
|
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
function isD1(x) {
|
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
isC1(c1Orc2) && c1Orc2.p1, isC2(c1Orc2) && c1Orc2.p2, isD1(c1Orc2) && c1Orc2.p1, isD1(c1Orc2) && c1Orc2.p3, isC2(c2Ord1) && c2Ord1.p2, isD1(c2Ord1) && c2Ord1.p3, isD1(c2Ord1) && c2Ord1.p1, isC1(c2Ord1);
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
function foo() {
|
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
class A {
|
class A {
|
||||||
static foo() {
|
static foo() {
|
||||||
return !1;
|
return !1;
|
||||||
@ -11,7 +8,7 @@ class A {
|
|||||||
M1.n = n;
|
M1.n = n;
|
||||||
}(M || (M = {}));
|
}(M || (M = {}));
|
||||||
var M, objA = new A();
|
var M, objA = new A();
|
||||||
objA.a, M.n, foo(), A.foo(), foo(), objA.a, M.n;
|
objA.a, M.n, A.foo(), objA.a, M.n;
|
||||||
z: objA.a;
|
z: objA.a;
|
||||||
z: A.foo;
|
z: A.foo;
|
||||||
z: M.n;
|
z: M.n;
|
||||||
|
@ -19,7 +19,7 @@ var objA = new A();
|
|||||||
void 0 === BOOLEAN || swcHelpers.typeOf(BOOLEAN), swcHelpers.typeOf(!0), swcHelpers.typeOf({
|
void 0 === BOOLEAN || swcHelpers.typeOf(BOOLEAN), swcHelpers.typeOf(!0), swcHelpers.typeOf({
|
||||||
x: !0,
|
x: !0,
|
||||||
y: !1
|
y: !1
|
||||||
}), swcHelpers.typeOf(objA.a), swcHelpers.typeOf(M.n), swcHelpers.typeOf(foo()), swcHelpers.typeOf(A.foo()), swcHelpers.typeOf(void 0 === BOOLEAN ? "undefined" : swcHelpers.typeOf(BOOLEAN)), swcHelpers.typeOf(!0), void 0 === BOOLEAN || swcHelpers.typeOf(BOOLEAN), swcHelpers.typeOf(foo()), swcHelpers.typeOf(!0), swcHelpers.typeOf(objA.a), swcHelpers.typeOf(M.n);
|
}), swcHelpers.typeOf(objA.a), swcHelpers.typeOf(M.n), swcHelpers.typeOf(!0), swcHelpers.typeOf(A.foo()), swcHelpers.typeOf(void 0 === BOOLEAN ? "undefined" : swcHelpers.typeOf(BOOLEAN)), swcHelpers.typeOf(!0), void 0 === BOOLEAN || swcHelpers.typeOf(BOOLEAN), swcHelpers.typeOf(!0), swcHelpers.typeOf(!0), swcHelpers.typeOf(objA.a), swcHelpers.typeOf(M.n);
|
||||||
z: void 0 === BOOLEAN || swcHelpers.typeOf(BOOLEAN);
|
z: void 0 === BOOLEAN || swcHelpers.typeOf(BOOLEAN);
|
||||||
r: swcHelpers.typeOf(foo);
|
r: swcHelpers.typeOf(foo);
|
||||||
z: swcHelpers.typeOf(!0);
|
z: swcHelpers.typeOf(!0);
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
function foo() {
|
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
class A {
|
class A {
|
||||||
static foo() {
|
static foo() {
|
||||||
return !1;
|
return !1;
|
||||||
@ -11,4 +8,4 @@ class A {
|
|||||||
M1.n = n;
|
M1.n = n;
|
||||||
}(M || (M = {}));
|
}(M || (M = {}));
|
||||||
var M, objA = new A();
|
var M, objA = new A();
|
||||||
objA.a, M.n, foo(), A.foo(), foo(), objA.a, M.n;
|
objA.a, M.n, A.foo(), objA.a, M.n;
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
import * as swcHelpers from "@swc/helpers";
|
import * as swcHelpers from "@swc/helpers";
|
||||||
function foo() {
|
|
||||||
return !0;
|
|
||||||
}
|
|
||||||
var M, A = function() {
|
var M, A = function() {
|
||||||
"use strict";
|
"use strict";
|
||||||
function A() {
|
function A() {
|
||||||
@ -16,4 +13,4 @@ var M, A = function() {
|
|||||||
M1.n = n;
|
M1.n = n;
|
||||||
}(M || (M = {}));
|
}(M || (M = {}));
|
||||||
var objA = new A();
|
var objA = new A();
|
||||||
objA.a, M.n, foo(), A.foo(), foo(), objA.a, M.n;
|
objA.a, M.n, A.foo(), objA.a, M.n;
|
||||||
|
@ -293,47 +293,87 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Check if the body of a function is simple enough to inline.
|
/// Check if the body of a function is simple enough to inline.
|
||||||
fn is_fn_body_simple_enough_to_inline(&self, body: &BlockStmt) -> bool {
|
fn is_fn_body_simple_enough_to_inline(&self, body: &BlockStmt, param_count: usize) -> bool {
|
||||||
fn is_expr_simple_enough(e: &Expr) -> bool {
|
fn expr_cost(e: &Expr) -> Option<usize> {
|
||||||
match e {
|
match e {
|
||||||
Expr::Lit(..) => true,
|
// TODO?
|
||||||
Expr::Ident(..) => true,
|
Expr::Lit(..) => Some(1),
|
||||||
|
Expr::Ident(..) => Some(1),
|
||||||
|
|
||||||
// It's long
|
|
||||||
Expr::Bin(BinExpr {
|
Expr::Bin(BinExpr {
|
||||||
op: op!("instanceof"),
|
op: op @ op!("instanceof") | op @ op!("in"),
|
||||||
|
left,
|
||||||
|
right,
|
||||||
..
|
..
|
||||||
}) => false,
|
}) => Some(2 + op.as_str().len() + expr_cost(left)? + expr_cost(right)?),
|
||||||
|
|
||||||
Expr::Bin(e) => is_expr_simple_enough(&e.left) && is_expr_simple_enough(&e.right),
|
Expr::Unary(UnaryExpr {
|
||||||
|
op: op @ op!("typeof") | op @ op!("void") | op @ op!("delete"),
|
||||||
|
arg,
|
||||||
|
..
|
||||||
|
}) => Some(2 + op.as_str().len() + expr_cost(arg)?),
|
||||||
|
|
||||||
Expr::Update(e) => is_expr_simple_enough(&e.arg),
|
Expr::Unary(UnaryExpr { arg, .. }) => Some(1 + expr_cost(arg)?),
|
||||||
|
|
||||||
Expr::Assign(e) => e.left.as_ident().is_some() && is_expr_simple_enough(&e.right),
|
Expr::Call(CallExpr {
|
||||||
Expr::Seq(e) => e.exprs.iter().map(|v| &**v).all(is_expr_simple_enough),
|
callee: Callee::Expr(callee),
|
||||||
|
args,
|
||||||
|
..
|
||||||
|
}) => {
|
||||||
|
let mut c = expr_cost(callee)? + 2;
|
||||||
|
|
||||||
_ => false,
|
for arg in args {
|
||||||
|
if arg.spread.is_some() {
|
||||||
|
c += 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
c += expr_cost(&arg.expr)? + 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
Some(c)
|
||||||
|
}
|
||||||
|
|
||||||
|
Expr::Bin(e) => {
|
||||||
|
Some(expr_cost(&e.left)? + expr_cost(&e.right)? + e.op.as_str().len())
|
||||||
|
}
|
||||||
|
|
||||||
|
Expr::Update(e) => Some(expr_cost(&e.arg)? + 2),
|
||||||
|
|
||||||
|
Expr::Assign(e) => {
|
||||||
|
e.left.as_ident()?;
|
||||||
|
Some(2 + expr_cost(&e.right)?)
|
||||||
|
}
|
||||||
|
|
||||||
|
Expr::Seq(e) => e
|
||||||
|
.exprs
|
||||||
|
.iter()
|
||||||
|
.map(|v| expr_cost(v))
|
||||||
|
.fold(Some(0), |a, b| Some(a? + b?)),
|
||||||
|
|
||||||
|
_ => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let cost_limit = 3 + param_count * 2;
|
||||||
|
|
||||||
if body.stmts.len() == 1 {
|
if body.stmts.len() == 1 {
|
||||||
match &body.stmts[0] {
|
match &body.stmts[0] {
|
||||||
Stmt::Expr(ExprStmt { expr, .. }) => {
|
Stmt::Expr(ExprStmt { expr, .. }) => {
|
||||||
if is_expr_simple_enough(expr) {
|
if let Some(cost) = expr_cost(expr) {
|
||||||
|
if cost < cost_limit {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Stmt::Return(ReturnStmt { arg, .. }) => {
|
Stmt::Return(ReturnStmt { arg, .. }) => {
|
||||||
if let Some(e) = arg.as_deref() {
|
if let Some(e) = arg.as_deref() {
|
||||||
if is_expr_simple_enough(e) {
|
if let Some(cost) = expr_cost(e) {
|
||||||
|
if cost < cost_limit {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Stmt::Try(TryStmt { block, .. }) => {
|
|
||||||
return self.is_fn_body_simple_enough_to_inline(block)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_ => {}
|
_ => {}
|
||||||
@ -442,7 +482,10 @@ where
|
|||||||
match &f.function.body {
|
match &f.function.body {
|
||||||
Some(body) => {
|
Some(body) => {
|
||||||
if !UsageFinder::find(&i, body)
|
if !UsageFinder::find(&i, body)
|
||||||
&& self.is_fn_body_simple_enough_to_inline(body)
|
&& self.is_fn_body_simple_enough_to_inline(
|
||||||
|
body,
|
||||||
|
f.function.params.len(),
|
||||||
|
)
|
||||||
{
|
{
|
||||||
trace_op!(
|
trace_op!(
|
||||||
"inline: Decided to inline function '{}{:?}' as it's very \
|
"inline: Decided to inline function '{}{:?}' as it's very \
|
||||||
|
@ -75,6 +75,8 @@ functions/issue_2620_1/input.js
|
|||||||
functions/issue_2620_2/input.js
|
functions/issue_2620_2/input.js
|
||||||
functions/issue_2620_3/input.js
|
functions/issue_2620_3/input.js
|
||||||
functions/issue_2620_4/input.js
|
functions/issue_2620_4/input.js
|
||||||
|
functions/issue_2630_1/input.js
|
||||||
|
functions/issue_2630_4/input.js
|
||||||
functions/issue_3016_3/input.js
|
functions/issue_3016_3/input.js
|
||||||
functions/issue_3018/input.js
|
functions/issue_3018/input.js
|
||||||
functions/issue_3076/input.js
|
functions/issue_3076/input.js
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
function createCommonjsModule(fn) {
|
!function(fn) {
|
||||||
return fn();
|
return fn();
|
||||||
}
|
}(function(module, exports) {
|
||||||
createCommonjsModule(function(module, exports) {
|
|
||||||
Object.defineProperty(exports, '__esModule', {
|
Object.defineProperty(exports, '__esModule', {
|
||||||
value: !0
|
value: !0
|
||||||
});
|
});
|
||||||
}), createCommonjsModule(function(module) {
|
}), function(fn) {
|
||||||
|
fn();
|
||||||
|
}(function(module) {
|
||||||
module.exports = {
|
module.exports = {
|
||||||
findConfig: function(from) {
|
findConfig: function(from) {
|
||||||
return function(dir) {
|
return function(dir) {
|
||||||
@ -13,33 +14,55 @@ createCommonjsModule(function(module, exports) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}), createCommonjsModule(function(module, exports) {
|
}), function(fn) {
|
||||||
|
fn();
|
||||||
|
}(function(module, exports) {
|
||||||
Object.defineProperty(exports, '__esModule', {
|
Object.defineProperty(exports, '__esModule', {
|
||||||
value: !0
|
value: !0
|
||||||
});
|
});
|
||||||
}), createCommonjsModule(function(module, exports) {
|
}), function(fn) {
|
||||||
|
fn();
|
||||||
|
}(function(module, exports) {
|
||||||
function _interopRequireDefault(obj) {
|
function _interopRequireDefault(obj) {
|
||||||
return obj && obj.__esModule ? obj : {
|
return obj && obj.__esModule ? obj : {
|
||||||
default: obj
|
default: obj
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
_interopRequireDefault(), _interopRequireDefault();
|
_interopRequireDefault(), _interopRequireDefault();
|
||||||
}), createCommonjsModule(function(module, exports) {
|
}), function(fn) {
|
||||||
|
fn();
|
||||||
|
}(function(module, exports) {
|
||||||
exports.default = null, module.exports = exports.default;
|
exports.default = null, module.exports = exports.default;
|
||||||
}), createCommonjsModule(function(module, exports) {
|
}), function(fn) {
|
||||||
|
fn();
|
||||||
|
}(function(module, exports) {
|
||||||
exports.default = void 0;
|
exports.default = void 0;
|
||||||
}), createCommonjsModule(function(module, exports) {
|
}), function(fn) {
|
||||||
|
fn();
|
||||||
|
}(function(module, exports) {
|
||||||
exports.default = void 0, module.exports = exports.default;
|
exports.default = void 0, module.exports = exports.default;
|
||||||
}), createCommonjsModule(function(module, exports) {
|
}), function(fn) {
|
||||||
|
fn();
|
||||||
|
}(function(module, exports) {
|
||||||
exports.default = void 0, module.exports = exports.default;
|
exports.default = void 0, module.exports = exports.default;
|
||||||
}), createCommonjsModule(function(module, exports) {
|
}), function(fn) {
|
||||||
|
fn();
|
||||||
|
}(function(module, exports) {
|
||||||
exports.default = void 0, exports.default = String;
|
exports.default = void 0, exports.default = String;
|
||||||
}), createCommonjsModule(function(module, exports) {
|
}), function(fn) {
|
||||||
|
fn();
|
||||||
|
}(function(module, exports) {
|
||||||
exports.default = void 0, exports.default = String;
|
exports.default = void 0, exports.default = String;
|
||||||
}), createCommonjsModule(function(module, exports) {
|
}), function(fn) {
|
||||||
|
fn();
|
||||||
|
}(function(module, exports) {
|
||||||
exports.__esModule = !0;
|
exports.__esModule = !0;
|
||||||
}), createCommonjsModule(function(module, exports) {
|
}), function(fn) {
|
||||||
|
fn();
|
||||||
|
}(function(module, exports) {
|
||||||
exports.__esModule = !0;
|
exports.__esModule = !0;
|
||||||
}), createCommonjsModule(function(module, exports) {
|
}), function(fn) {
|
||||||
|
fn();
|
||||||
|
}(function(module, exports) {
|
||||||
exports.__esModule = !0;
|
exports.__esModule = !0;
|
||||||
});
|
});
|
||||||
|
@ -908,7 +908,7 @@
|
|||||||
if (!BROWSER) return warn('`loadableReady()` must be called in browser only'), done(), Promise.resolve();
|
if (!BROWSER) return warn('`loadableReady()` must be called in browser only'), done(), Promise.resolve();
|
||||||
var requiredChunks = null;
|
var requiredChunks = null;
|
||||||
if (BROWSER) {
|
if (BROWSER) {
|
||||||
var id = "" + (void 0 === _ref$namespace ? '' : _ref$namespace) + '__LOADABLE_REQUIRED_CHUNKS__', dataElement = document.getElementById(id);
|
var id = getRequiredChunkKey(void 0 === _ref$namespace ? '' : _ref$namespace), dataElement = document.getElementById(id);
|
||||||
if (dataElement) {
|
if (dataElement) {
|
||||||
requiredChunks = JSON.parse(dataElement.textContent);
|
requiredChunks = JSON.parse(dataElement.textContent);
|
||||||
var extElement = document.getElementById(id + "_ext");
|
var extElement = document.getElementById(id + "_ext");
|
||||||
@ -11689,25 +11689,23 @@
|
|||||||
return 0 != (a = -1073741825 & a.pendingLanes) ? a : 1073741824 & a ? 1073741824 : 0;
|
return 0 != (a = -1073741825 & a.pendingLanes) ? a : 1073741824 & a ? 1073741824 : 0;
|
||||||
}
|
}
|
||||||
function Xc(a, b) {
|
function Xc(a, b) {
|
||||||
|
var a10, a11, a12, a13, a14;
|
||||||
switch(a){
|
switch(a){
|
||||||
case 15:
|
case 15:
|
||||||
return 1;
|
return 1;
|
||||||
case 14:
|
case 14:
|
||||||
return 2;
|
return 2;
|
||||||
case 12:
|
case 12:
|
||||||
return 0 === (a = Yc(24 & ~b)) ? Xc(10, b) : a;
|
return 0 == (a = (a10 = 24 & ~b) & -a10) ? Xc(10, b) : a;
|
||||||
case 10:
|
case 10:
|
||||||
return 0 === (a = Yc(192 & ~b)) ? Xc(8, b) : a;
|
return 0 == (a = (a11 = 192 & ~b) & -a11) ? Xc(8, b) : a;
|
||||||
case 8:
|
case 8:
|
||||||
return 0 === (a = Yc(3584 & ~b)) && 0 === (a = Yc(4186112 & ~b)) && (a = 512), a;
|
return 0 == (a = (a12 = 3584 & ~b) & -a12) && 0 == (a = (a13 = 4186112 & ~b) & -a13) && (a = 512), a;
|
||||||
case 2:
|
case 2:
|
||||||
return 0 === (b = Yc(805306368 & ~b)) && (b = 268435456), b;
|
return 0 == (b = (a14 = 805306368 & ~b) & -a14) && (b = 268435456), b;
|
||||||
}
|
}
|
||||||
throw Error(y(358, a));
|
throw Error(y(358, a));
|
||||||
}
|
}
|
||||||
function Yc(a) {
|
|
||||||
return a & -a;
|
|
||||||
}
|
|
||||||
function Zc(a) {
|
function Zc(a) {
|
||||||
for(var b = [], c = 0; 31 > c; c++)b.push(a);
|
for(var b = [], c = 0; 31 > c; c++)b.push(a);
|
||||||
return b;
|
return b;
|
||||||
@ -11733,17 +11731,17 @@
|
|||||||
function id(a, b, c, d) {
|
function id(a, b, c, d) {
|
||||||
ed(dd, hd.bind(null, a, b, c, d));
|
ed(dd, hd.bind(null, a, b, c, d));
|
||||||
}
|
}
|
||||||
function hd(a10, b7, c4, d4) {
|
function hd(a15, b7, c4, d4) {
|
||||||
if (fd) {
|
if (fd) {
|
||||||
var e2;
|
var e2;
|
||||||
if ((e2 = 0 == (4 & b7)) && 0 < jc.length && -1 < qc.indexOf(a10)) a10 = rc(null, a10, b7, c4, d4), jc.push(a10);
|
if ((e2 = 0 == (4 & b7)) && 0 < jc.length && -1 < qc.indexOf(a15)) a15 = rc(null, a15, b7, c4, d4), jc.push(a15);
|
||||||
else {
|
else {
|
||||||
var f1 = yc(a10, b7, c4, d4);
|
var f1 = yc(a15, b7, c4, d4);
|
||||||
if (null === f1) e2 && sc(a10, d4);
|
if (null === f1) e2 && sc(a15, d4);
|
||||||
else {
|
else {
|
||||||
if (e2) {
|
if (e2) {
|
||||||
if (-1 < qc.indexOf(a10)) {
|
if (-1 < qc.indexOf(a15)) {
|
||||||
a10 = rc(f1, a10, b7, c4, d4), jc.push(a10);
|
a15 = rc(f1, a15, b7, c4, d4), jc.push(a15);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (function(a, b, c, d, e) {
|
if (function(a, b, c, d, e) {
|
||||||
@ -11761,10 +11759,10 @@
|
|||||||
return f = e.pointerId, oc.set(f, tc(oc.get(f) || null, a, b, c, d, e)), !0;
|
return f = e.pointerId, oc.set(f, tc(oc.get(f) || null, a, b, c, d, e)), !0;
|
||||||
}
|
}
|
||||||
return !1;
|
return !1;
|
||||||
}(f1, a10, b7, c4, d4)) return;
|
}(f1, a15, b7, c4, d4)) return;
|
||||||
sc(a10, d4);
|
sc(a15, d4);
|
||||||
}
|
}
|
||||||
jd(a10, b7, d4, null, c4);
|
jd(a15, b7, d4, null, c4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -11806,9 +11804,9 @@
|
|||||||
function qd() {
|
function qd() {
|
||||||
return !1;
|
return !1;
|
||||||
}
|
}
|
||||||
function rd(a11) {
|
function rd(a16) {
|
||||||
function b8(b, d, e, f, g) {
|
function b8(b, d, e, f, g) {
|
||||||
for(var c in this._reactName = b, this._targetInst = e, this.type = d, this.nativeEvent = f, this.target = g, this.currentTarget = null, a11)a11.hasOwnProperty(c) && (b = a11[c], this[c] = b ? b(f) : f[c]);
|
for(var c in this._reactName = b, this._targetInst = e, this.type = d, this.nativeEvent = f, this.target = g, this.currentTarget = null, a16)a16.hasOwnProperty(c) && (b = a16[c], this[c] = b ? b(f) : f[c]);
|
||||||
return this.isDefaultPrevented = (null != f.defaultPrevented ? f.defaultPrevented : !1 === f.returnValue) ? pd : qd, this.isPropagationStopped = qd, this;
|
return this.isDefaultPrevented = (null != f.defaultPrevented ? f.defaultPrevented : !1 === f.returnValue) ? pd : qd, this.isPropagationStopped = qd, this;
|
||||||
}
|
}
|
||||||
return m(b8.prototype, {
|
return m(b8.prototype, {
|
||||||
@ -12099,10 +12097,9 @@
|
|||||||
function Fe(a, b) {
|
function Fe(a, b) {
|
||||||
if ("input" === a || "change" === a) return te(b);
|
if ("input" === a || "change" === a) return te(b);
|
||||||
}
|
}
|
||||||
function Ge(a, b) {
|
var He = "function" == typeof Object.is ? Object.is : function(a, b) {
|
||||||
return a === b && (0 !== a || 1 / a == 1 / b) || a != a && b != b;
|
return a === b && (0 !== a || 1 / a == 1 / b) || a != a && b != b;
|
||||||
}
|
}, Ie = Object.prototype.hasOwnProperty;
|
||||||
var He = "function" == typeof Object.is ? Object.is : Ge, Ie = Object.prototype.hasOwnProperty;
|
|
||||||
function Je(a, b) {
|
function Je(a, b) {
|
||||||
if (He(a, b)) return !0;
|
if (He(a, b)) return !0;
|
||||||
if ("object" != typeof a || null === a || "object" != typeof b || null === b) return !1;
|
if ("object" != typeof a || null === a || "object" != typeof b || null === b) return !1;
|
||||||
@ -12316,7 +12313,7 @@
|
|||||||
passive: e
|
passive: e
|
||||||
}) : a.addEventListener(b, c, !1);
|
}) : a.addEventListener(b, c, !1);
|
||||||
}
|
}
|
||||||
function jd(a12, b9, c5, d5, e4) {
|
function jd(a17, b9, c5, d5, e4) {
|
||||||
var f = d5;
|
var f = d5;
|
||||||
if (0 == (1 & b9) && 0 == (2 & b9) && null !== d5) a: for(;;){
|
if (0 == (1 & b9) && 0 == (2 & b9) && null !== d5) a: for(;;){
|
||||||
if (null === d5) return;
|
if (null === d5) return;
|
||||||
@ -12351,10 +12348,10 @@
|
|||||||
}(function() {
|
}(function() {
|
||||||
var d = f, e = xb(c5), g = [];
|
var d = f, e = xb(c5), g = [];
|
||||||
a: {
|
a: {
|
||||||
var h = Mc.get(a12);
|
var h = Mc.get(a17);
|
||||||
if (void 0 !== h) {
|
if (void 0 !== h) {
|
||||||
var k = td, x = a12;
|
var k = td, x = a17;
|
||||||
switch(a12){
|
switch(a17){
|
||||||
case "keypress":
|
case "keypress":
|
||||||
if (0 === od(c5)) break a;
|
if (0 === od(c5)) break a;
|
||||||
case "keydown":
|
case "keydown":
|
||||||
@ -12428,7 +12425,7 @@
|
|||||||
case "pointerup":
|
case "pointerup":
|
||||||
k = Td;
|
k = Td;
|
||||||
}
|
}
|
||||||
var w = 0 != (4 & b9), z = !w && "scroll" === a12, u = w ? null !== h ? h + "Capture" : null : h;
|
var w = 0 != (4 & b9), z = !w && "scroll" === a17, u = w ? null !== h ? h + "Capture" : null : h;
|
||||||
w = [];
|
w = [];
|
||||||
for(var q, t = d; null !== t;){
|
for(var q, t = d; null !== t;){
|
||||||
var v = (q = t).stateNode;
|
var v = (q = t).stateNode;
|
||||||
@ -12442,8 +12439,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (0 == (7 & b9)) {
|
if (0 == (7 & b9)) {
|
||||||
a: if (h = "mouseover" === a12 || "pointerover" === a12, k = "mouseout" === a12 || "pointerout" === a12, !(h && 0 == (16 & b9) && (x = c5.relatedTarget || c5.fromElement) && (wc(x) || x[ff])) && (k || h) && (h = e.window === e ? e : (h = e.ownerDocument) ? h.defaultView || h.parentWindow : window, k ? (x = c5.relatedTarget || c5.toElement, k = d, null !== (x = x ? wc(x) : null) && (z = Zb(x), x !== z || 5 !== x.tag && 6 !== x.tag) && (x = null)) : (k = null, x = d), k !== x)) {
|
a: if (h = "mouseover" === a17 || "pointerover" === a17, k = "mouseout" === a17 || "pointerout" === a17, !(h && 0 == (16 & b9) && (x = c5.relatedTarget || c5.fromElement) && (wc(x) || x[ff])) && (k || h) && (h = e.window === e ? e : (h = e.ownerDocument) ? h.defaultView || h.parentWindow : window, k ? (x = c5.relatedTarget || c5.toElement, k = d, null !== (x = x ? wc(x) : null) && (z = Zb(x), x !== z || 5 !== x.tag && 6 !== x.tag) && (x = null)) : (k = null, x = d), k !== x)) {
|
||||||
if (w = Bd, v = "onMouseLeave", u = "onMouseEnter", t = "mouse", ("pointerout" === a12 || "pointerover" === a12) && (w = Td, v = "onPointerLeave", u = "onPointerEnter", t = "pointer"), z = null == k ? h : ue(k), q = null == x ? h : ue(x), (h = new w(v, t + "leave", k, c5, e)).target = z, h.relatedTarget = q, v = null, wc(e) === d && ((w = new w(u, t + "enter", x, c5, e)).target = q, w.relatedTarget = z, v = w), z = v, k && x) b: {
|
if (w = Bd, v = "onMouseLeave", u = "onMouseEnter", t = "mouse", ("pointerout" === a17 || "pointerover" === a17) && (w = Td, v = "onPointerLeave", u = "onPointerEnter", t = "pointer"), z = null == k ? h : ue(k), q = null == x ? h : ue(x), (h = new w(v, t + "leave", k, c5, e)).target = z, h.relatedTarget = q, v = null, wc(e) === d && ((w = new w(u, t + "enter", x, c5, e)).target = q, w.relatedTarget = z, v = w), z = v, k && x) b: {
|
||||||
for(w = k, u = x, t = 0, q = w; q; q = gf(q))t++;
|
for(w = k, u = x, t = 0, q = w; q; q = gf(q))t++;
|
||||||
for(q = 0, v = u; v; v = gf(v))q++;
|
for(q = 0, v = u; v; v = gf(v))q++;
|
||||||
for(; 0 < t - q;)w = gf(w), t--;
|
for(; 0 < t - q;)w = gf(w), t--;
|
||||||
@ -12466,13 +12463,13 @@
|
|||||||
var K = Ce;
|
var K = Ce;
|
||||||
}
|
}
|
||||||
} else (k = h.nodeName) && "input" === k.toLowerCase() && ("checkbox" === h.type || "radio" === h.type) && (J = Ee);
|
} else (k = h.nodeName) && "input" === k.toLowerCase() && ("checkbox" === h.type || "radio" === h.type) && (J = Ee);
|
||||||
if (J && (J = J(a12, d))) {
|
if (J && (J = J(a17, d))) {
|
||||||
ne(g, J, c5, e);
|
ne(g, J, c5, e);
|
||||||
break a;
|
break a;
|
||||||
}
|
}
|
||||||
K && K(a12, h, d), "focusout" === a12 && (K = h._wrapperState) && K.controlled && "number" === h.type && bb(h, "number", h.value);
|
K && K(a17, h, d), "focusout" === a17 && (K = h._wrapperState) && K.controlled && "number" === h.type && bb(h, "number", h.value);
|
||||||
}
|
}
|
||||||
switch(K = d ? ue(d) : window, a12){
|
switch(K = d ? ue(d) : window, a17){
|
||||||
case "focusin":
|
case "focusin":
|
||||||
(me(K) || "true" === K.contentEditable) && (Qe = K, Re = d, Se = null);
|
(me(K) || "true" === K.contentEditable) && (Qe = K, Re = d, Se = null);
|
||||||
break;
|
break;
|
||||||
@ -12494,7 +12491,7 @@
|
|||||||
Ue(g, c5, e);
|
Ue(g, c5, e);
|
||||||
}
|
}
|
||||||
if (ae) b: {
|
if (ae) b: {
|
||||||
switch(a12){
|
switch(a17){
|
||||||
case "compositionstart":
|
case "compositionstart":
|
||||||
var L = "onCompositionStart";
|
var L = "onCompositionStart";
|
||||||
break b;
|
break b;
|
||||||
@ -12507,8 +12504,8 @@
|
|||||||
}
|
}
|
||||||
L = void 0;
|
L = void 0;
|
||||||
}
|
}
|
||||||
else ie ? ge(a12, c5) && (L = "onCompositionEnd") : "keydown" === a12 && 229 === c5.keyCode && (L = "onCompositionStart");
|
else ie ? ge(a17, c5) && (L = "onCompositionEnd") : "keydown" === a17 && 229 === c5.keyCode && (L = "onCompositionStart");
|
||||||
L && (de && "ko" !== c5.locale && (ie || "onCompositionStart" !== L ? "onCompositionEnd" === L && ie && (Q = nd()) : (ld = "value" in (kd = e) ? kd.value : kd.textContent, ie = !0)), 0 < (K = oe(d, L)).length && (L = new Ld(L, a12, null, c5, e), g.push({
|
L && (de && "ko" !== c5.locale && (ie || "onCompositionStart" !== L ? "onCompositionEnd" === L && ie && (Q = nd()) : (ld = "value" in (kd = e) ? kd.value : kd.textContent, ie = !0)), 0 < (K = oe(d, L)).length && (L = new Ld(L, a17, null, c5, e), g.push({
|
||||||
event: L,
|
event: L,
|
||||||
listeners: K
|
listeners: K
|
||||||
}), Q ? L.data = Q : null !== (Q = he(c5)) && (L.data = Q))), (Q = ce ? function(a, b) {
|
}), Q ? L.data = Q : null !== (Q = he(c5)) && (L.data = Q))), (Q = ce ? function(a, b) {
|
||||||
@ -12523,7 +12520,7 @@
|
|||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}(a12, c5) : function(a, b) {
|
}(a17, c5) : function(a, b) {
|
||||||
if (ie) return "compositionend" === a || !ae && ge(a, b) ? (a = nd(), md = ld = kd = null, ie = !1, a) : null;
|
if (ie) return "compositionend" === a || !ae && ge(a, b) ? (a = nd(), md = ld = kd = null, ie = !1, a) : null;
|
||||||
switch(a){
|
switch(a){
|
||||||
case "paste":
|
case "paste":
|
||||||
@ -12538,7 +12535,7 @@
|
|||||||
case "compositionend":
|
case "compositionend":
|
||||||
return de && "ko" !== b.locale ? null : b.data;
|
return de && "ko" !== b.locale ? null : b.data;
|
||||||
}
|
}
|
||||||
}(a12, c5)) && 0 < (d = oe(d, "onBeforeInput")).length && (e = new Ld("onBeforeInput", "beforeinput", null, c5, e), g.push({
|
}(a17, c5)) && 0 < (d = oe(d, "onBeforeInput")).length && (e = new Ld("onBeforeInput", "beforeinput", null, c5, e), g.push({
|
||||||
event: e,
|
event: e,
|
||||||
listeners: d
|
listeners: d
|
||||||
}), e.data = Q);
|
}), e.data = Q);
|
||||||
@ -12770,6 +12767,9 @@
|
|||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
var mg = Bf(null), ng = null, og = null, pg = null;
|
var mg = Bf(null), ng = null, og = null, pg = null;
|
||||||
|
function qg() {
|
||||||
|
pg = og = ng = null;
|
||||||
|
}
|
||||||
function rg(a) {
|
function rg(a) {
|
||||||
var b = mg.current;
|
var b = mg.current;
|
||||||
H(mg), a.type._context._currentValue = b;
|
H(mg), a.type._context._currentValue = b;
|
||||||
@ -12986,37 +12986,37 @@
|
|||||||
"object" == typeof f && null !== f ? e.context = vg(f) : (f = Ff(b) ? Df : M.current, e.context = Ef(a, f)), Cg(a, c, e, d), e.state = a.memoizedState, "function" == typeof (f = b.getDerivedStateFromProps) && (Gg(a, b, f, c), e.state = a.memoizedState), "function" == typeof b.getDerivedStateFromProps || "function" == typeof e.getSnapshotBeforeUpdate || "function" != typeof e.UNSAFE_componentWillMount && "function" != typeof e.componentWillMount || (b = e.state, "function" == typeof e.componentWillMount && e.componentWillMount(), "function" == typeof e.UNSAFE_componentWillMount && e.UNSAFE_componentWillMount(), b !== e.state && Kg.enqueueReplaceState(e, e.state, null), Cg(a, c, e, d), e.state = a.memoizedState), "function" == typeof e.componentDidMount && (a.flags |= 4);
|
"object" == typeof f && null !== f ? e.context = vg(f) : (f = Ff(b) ? Df : M.current, e.context = Ef(a, f)), Cg(a, c, e, d), e.state = a.memoizedState, "function" == typeof (f = b.getDerivedStateFromProps) && (Gg(a, b, f, c), e.state = a.memoizedState), "function" == typeof b.getDerivedStateFromProps || "function" == typeof e.getSnapshotBeforeUpdate || "function" != typeof e.UNSAFE_componentWillMount && "function" != typeof e.componentWillMount || (b = e.state, "function" == typeof e.componentWillMount && e.componentWillMount(), "function" == typeof e.UNSAFE_componentWillMount && e.UNSAFE_componentWillMount(), b !== e.state && Kg.enqueueReplaceState(e, e.state, null), Cg(a, c, e, d), e.state = a.memoizedState), "function" == typeof e.componentDidMount && (a.flags |= 4);
|
||||||
}
|
}
|
||||||
var Pg = Array.isArray;
|
var Pg = Array.isArray;
|
||||||
function Qg(a13, b10, c) {
|
function Qg(a18, b10, c) {
|
||||||
if (null !== (a13 = c.ref) && "function" != typeof a13 && "object" != typeof a13) {
|
if (null !== (a18 = c.ref) && "function" != typeof a18 && "object" != typeof a18) {
|
||||||
if (c._owner) {
|
if (c._owner) {
|
||||||
if (c = c._owner) {
|
if (c = c._owner) {
|
||||||
if (1 !== c.tag) throw Error(y(309));
|
if (1 !== c.tag) throw Error(y(309));
|
||||||
var d = c.stateNode;
|
var d = c.stateNode;
|
||||||
}
|
}
|
||||||
if (!d) throw Error(y(147, a13));
|
if (!d) throw Error(y(147, a18));
|
||||||
var e = "" + a13;
|
var e = "" + a18;
|
||||||
return null !== b10 && null !== b10.ref && "function" == typeof b10.ref && b10.ref._stringRef === e ? b10.ref : ((b10 = function(a) {
|
return null !== b10 && null !== b10.ref && "function" == typeof b10.ref && b10.ref._stringRef === e ? b10.ref : ((b10 = function(a) {
|
||||||
var b = d.refs;
|
var b = d.refs;
|
||||||
b === Fg && (b = d.refs = {}), null === a ? delete b[e] : b[e] = a;
|
b === Fg && (b = d.refs = {}), null === a ? delete b[e] : b[e] = a;
|
||||||
})._stringRef = e, b10);
|
})._stringRef = e, b10);
|
||||||
}
|
}
|
||||||
if ("string" != typeof a13) throw Error(y(284));
|
if ("string" != typeof a18) throw Error(y(284));
|
||||||
if (!c._owner) throw Error(y(290, a13));
|
if (!c._owner) throw Error(y(290, a18));
|
||||||
}
|
}
|
||||||
return a13;
|
return a18;
|
||||||
}
|
}
|
||||||
function Rg(a, b) {
|
function Rg(a, b) {
|
||||||
if ("textarea" !== a.type) throw Error(y(31, "[object Object]" === Object.prototype.toString.call(b) ? "object with keys {" + Object.keys(b).join(", ") + "}" : b));
|
if ("textarea" !== a.type) throw Error(y(31, "[object Object]" === Object.prototype.toString.call(b) ? "object with keys {" + Object.keys(b).join(", ") + "}" : b));
|
||||||
}
|
}
|
||||||
function Sg(a14) {
|
function Sg(a19) {
|
||||||
function b11(b, c) {
|
function b11(b, c) {
|
||||||
if (a14) {
|
if (a19) {
|
||||||
var d = b.lastEffect;
|
var d = b.lastEffect;
|
||||||
null !== d ? (d.nextEffect = c, b.lastEffect = c) : b.firstEffect = b.lastEffect = c, c.nextEffect = null, c.flags = 8;
|
null !== d ? (d.nextEffect = c, b.lastEffect = c) : b.firstEffect = b.lastEffect = c, c.nextEffect = null, c.flags = 8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function c6(c, d) {
|
function c6(c, d) {
|
||||||
if (!a14) return null;
|
if (!a19) return null;
|
||||||
for(; null !== d;)b11(c, d), d = d.sibling;
|
for(; null !== d;)b11(c, d), d = d.sibling;
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -13028,10 +13028,10 @@
|
|||||||
return (a = Tg(a, b)).index = 0, a.sibling = null, a;
|
return (a = Tg(a, b)).index = 0, a.sibling = null, a;
|
||||||
}
|
}
|
||||||
function f4(b, c, d) {
|
function f4(b, c, d) {
|
||||||
return (b.index = d, a14) ? null !== (d = b.alternate) ? (d = d.index) < c ? (b.flags = 2, c) : d : (b.flags = 2, c) : c;
|
return (b.index = d, a19) ? null !== (d = b.alternate) ? (d = d.index) < c ? (b.flags = 2, c) : d : (b.flags = 2, c) : c;
|
||||||
}
|
}
|
||||||
function g1(b) {
|
function g1(b) {
|
||||||
return a14 && null === b.alternate && (b.flags = 2), b;
|
return a19 && null === b.alternate && (b.flags = 2), b;
|
||||||
}
|
}
|
||||||
function h1(a, b, c, d) {
|
function h1(a, b, c, d) {
|
||||||
return null === b || 6 !== b.tag ? ((b = Ug(c, a.mode, d)).return = a, b) : ((b = e5(b, c)).return = a, b);
|
return null === b || 6 !== b.tag ? ((b = Ug(c, a.mode, d)).return = a, b) : ((b = e5(b, c)).return = a, b);
|
||||||
@ -13088,7 +13088,7 @@
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return function(a15, d, f, h2) {
|
return function(a20, d, f, h2) {
|
||||||
var k2 = "object" == typeof f && null !== f && f.type === ua && null === f.key;
|
var k2 = "object" == typeof f && null !== f && f.type === ua && null === f.key;
|
||||||
k2 && (f = f.props.children);
|
k2 && (f = f.props.children);
|
||||||
var l2 = "object" == typeof f && null !== f;
|
var l2 = "object" == typeof f && null !== f;
|
||||||
@ -13099,39 +13099,39 @@
|
|||||||
if (k2.key === l2) {
|
if (k2.key === l2) {
|
||||||
if (7 === k2.tag) {
|
if (7 === k2.tag) {
|
||||||
if (f.type === ua) {
|
if (f.type === ua) {
|
||||||
c6(a15, k2.sibling), (d = e5(k2, f.props.children)).return = a15, a15 = d;
|
c6(a20, k2.sibling), (d = e5(k2, f.props.children)).return = a20, a20 = d;
|
||||||
break a;
|
break a;
|
||||||
}
|
}
|
||||||
} else if (k2.elementType === f.type) {
|
} else if (k2.elementType === f.type) {
|
||||||
c6(a15, k2.sibling), (d = e5(k2, f.props)).ref = Qg(a15, k2, f), d.return = a15, a15 = d;
|
c6(a20, k2.sibling), (d = e5(k2, f.props)).ref = Qg(a20, k2, f), d.return = a20, a20 = d;
|
||||||
break a;
|
break a;
|
||||||
}
|
}
|
||||||
c6(a15, k2);
|
c6(a20, k2);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
b11(a15, k2), k2 = k2.sibling;
|
b11(a20, k2), k2 = k2.sibling;
|
||||||
}
|
}
|
||||||
f.type === ua ? ((d = Xg(f.props.children, a15.mode, h2, f.key)).return = a15, a15 = d) : ((h2 = Vg(f.type, f.key, f.props, null, a15.mode, h2)).ref = Qg(a15, d, f), h2.return = a15, a15 = h2);
|
f.type === ua ? ((d = Xg(f.props.children, a20.mode, h2, f.key)).return = a20, a20 = d) : ((h2 = Vg(f.type, f.key, f.props, null, a20.mode, h2)).ref = Qg(a20, d, f), h2.return = a20, a20 = h2);
|
||||||
}
|
}
|
||||||
return g1(a15);
|
return g1(a20);
|
||||||
case ta:
|
case ta:
|
||||||
a: {
|
a: {
|
||||||
for(k2 = f.key; null !== d;){
|
for(k2 = f.key; null !== d;){
|
||||||
if (d.key === k2) {
|
if (d.key === k2) {
|
||||||
if (4 === d.tag && d.stateNode.containerInfo === f.containerInfo && d.stateNode.implementation === f.implementation) {
|
if (4 === d.tag && d.stateNode.containerInfo === f.containerInfo && d.stateNode.implementation === f.implementation) {
|
||||||
c6(a15, d.sibling), (d = e5(d, f.children || [])).return = a15, a15 = d;
|
c6(a20, d.sibling), (d = e5(d, f.children || [])).return = a20, a20 = d;
|
||||||
break a;
|
break a;
|
||||||
}
|
}
|
||||||
c6(a15, d);
|
c6(a20, d);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
b11(a15, d), d = d.sibling;
|
b11(a20, d), d = d.sibling;
|
||||||
}
|
}
|
||||||
(d = Wg(f, a15.mode, h2)).return = a15, a15 = d;
|
(d = Wg(f, a20.mode, h2)).return = a20, a20 = d;
|
||||||
}
|
}
|
||||||
return g1(a15);
|
return g1(a20);
|
||||||
}
|
}
|
||||||
if ("string" == typeof f || "number" == typeof f) return f = "" + f, null !== d && 6 === d.tag ? (c6(a15, d.sibling), (d = e5(d, f)).return = a15, a15 = d) : (c6(a15, d), (d = Ug(f, a15.mode, h2)).return = a15, a15 = d), g1(a15);
|
if ("string" == typeof f || "number" == typeof f) return f = "" + f, null !== d && 6 === d.tag ? (c6(a20, d.sibling), (d = e5(d, f)).return = a20, a20 = d) : (c6(a20, d), (d = Ug(f, a20.mode, h2)).return = a20, a20 = d), g1(a20);
|
||||||
if (Pg(f)) return function(e, g, h, k) {
|
if (Pg(f)) return function(e, g, h, k) {
|
||||||
for(var l = null, t = null, u = g, z = g = 0, q = null; null !== u && z < h.length; z++){
|
for(var l = null, t = null, u = g, z = g = 0, q = null; null !== u && z < h.length; z++){
|
||||||
u.index > z ? (q = u, u = null) : q = u.sibling;
|
u.index > z ? (q = u, u = null) : q = u.sibling;
|
||||||
@ -13140,18 +13140,18 @@
|
|||||||
null === u && (u = q);
|
null === u && (u = q);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
a14 && u && null === n.alternate && b11(e, u), g = f4(n, g, z), null === t ? l = n : t.sibling = n, t = n, u = q;
|
a19 && u && null === n.alternate && b11(e, u), g = f4(n, g, z), null === t ? l = n : t.sibling = n, t = n, u = q;
|
||||||
}
|
}
|
||||||
if (z === h.length) return c6(e, u), l;
|
if (z === h.length) return c6(e, u), l;
|
||||||
if (null === u) {
|
if (null === u) {
|
||||||
for(; z < h.length; z++)null !== (u = A(e, h[z], k)) && (g = f4(u, g, z), null === t ? l = u : t.sibling = u, t = u);
|
for(; z < h.length; z++)null !== (u = A(e, h[z], k)) && (g = f4(u, g, z), null === t ? l = u : t.sibling = u, t = u);
|
||||||
return l;
|
return l;
|
||||||
}
|
}
|
||||||
for(u = d6(e, u); z < h.length; z++)null !== (q = C(u, e, z, h[z], k)) && (a14 && null !== q.alternate && u.delete(null === q.key ? z : q.key), g = f4(q, g, z), null === t ? l = q : t.sibling = q, t = q);
|
for(u = d6(e, u); z < h.length; z++)null !== (q = C(u, e, z, h[z], k)) && (a19 && null !== q.alternate && u.delete(null === q.key ? z : q.key), g = f4(q, g, z), null === t ? l = q : t.sibling = q, t = q);
|
||||||
return a14 && u.forEach(function(a) {
|
return a19 && u.forEach(function(a) {
|
||||||
return b11(e, a);
|
return b11(e, a);
|
||||||
}), l;
|
}), l;
|
||||||
}(a15, d, f, h2);
|
}(a20, d, f, h2);
|
||||||
if (La(f)) return function(e, g, h, k) {
|
if (La(f)) return function(e, g, h, k) {
|
||||||
var l = La(h);
|
var l = La(h);
|
||||||
if ("function" != typeof l) throw Error(y(150));
|
if ("function" != typeof l) throw Error(y(150));
|
||||||
@ -13163,27 +13163,27 @@
|
|||||||
null === u && (u = q);
|
null === u && (u = q);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
a14 && u && null === w.alternate && b11(e, u), g = f4(w, g, z), null === t ? l = w : t.sibling = w, t = w, u = q;
|
a19 && u && null === w.alternate && b11(e, u), g = f4(w, g, z), null === t ? l = w : t.sibling = w, t = w, u = q;
|
||||||
}
|
}
|
||||||
if (n.done) return c6(e, u), l;
|
if (n.done) return c6(e, u), l;
|
||||||
if (null === u) {
|
if (null === u) {
|
||||||
for(; !n.done; z++, n = h.next())null !== (n = A(e, n.value, k)) && (g = f4(n, g, z), null === t ? l = n : t.sibling = n, t = n);
|
for(; !n.done; z++, n = h.next())null !== (n = A(e, n.value, k)) && (g = f4(n, g, z), null === t ? l = n : t.sibling = n, t = n);
|
||||||
return l;
|
return l;
|
||||||
}
|
}
|
||||||
for(u = d6(e, u); !n.done; z++, n = h.next())null !== (n = C(u, e, z, n.value, k)) && (a14 && null !== n.alternate && u.delete(null === n.key ? z : n.key), g = f4(n, g, z), null === t ? l = n : t.sibling = n, t = n);
|
for(u = d6(e, u); !n.done; z++, n = h.next())null !== (n = C(u, e, z, n.value, k)) && (a19 && null !== n.alternate && u.delete(null === n.key ? z : n.key), g = f4(n, g, z), null === t ? l = n : t.sibling = n, t = n);
|
||||||
return a14 && u.forEach(function(a) {
|
return a19 && u.forEach(function(a) {
|
||||||
return b11(e, a);
|
return b11(e, a);
|
||||||
}), l;
|
}), l;
|
||||||
}(a15, d, f, h2);
|
}(a20, d, f, h2);
|
||||||
if (l2 && Rg(a15, f), void 0 === f && !k2) switch(a15.tag){
|
if (l2 && Rg(a20, f), void 0 === f && !k2) switch(a20.tag){
|
||||||
case 1:
|
case 1:
|
||||||
case 22:
|
case 22:
|
||||||
case 0:
|
case 0:
|
||||||
case 11:
|
case 11:
|
||||||
case 15:
|
case 15:
|
||||||
throw Error(y(152, Ra(a15.type) || "Component"));
|
throw Error(y(152, Ra(a20.type) || "Component"));
|
||||||
}
|
}
|
||||||
return c6(a15, d);
|
return c6(a20, d);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
var Yg = Sg(!0), Zg = Sg(!1), $g = {}, ah = Bf($g), bh = Bf($g), ch = Bf($g);
|
var Yg = Sg(!0), Zg = Sg(!1), $g = {}, ah = Bf($g), bh = Bf($g), ch = Bf($g);
|
||||||
@ -13423,17 +13423,17 @@
|
|||||||
if (null !== e ? a = e === d : (a = (xh & (a = a.mutableReadLanes)) === a) && (b._workInProgressVersionPrimary = d, th.push(b)), a) return c(b._source);
|
if (null !== e ? a = e === d : (a = (xh & (a = a.mutableReadLanes)) === a) && (b._workInProgressVersionPrimary = d, th.push(b)), a) return c(b._source);
|
||||||
throw th.push(b), Error(y(350));
|
throw th.push(b), Error(y(350));
|
||||||
}
|
}
|
||||||
function Nh(a16, b, c7, d7) {
|
function Nh(a21, b, c7, d7) {
|
||||||
var e = U;
|
var e = U;
|
||||||
if (null === e) throw Error(y(349));
|
if (null === e) throw Error(y(349));
|
||||||
var f = b._getVersion, g = f(b._source), h3 = vh.current, k3 = h3.useState(function() {
|
var f = b._getVersion, g = f(b._source), h3 = vh.current, k3 = h3.useState(function() {
|
||||||
return Mh(e, b, c7);
|
return Mh(e, b, c7);
|
||||||
}), l = k3[1], n = k3[0];
|
}), l = k3[1], n = k3[0];
|
||||||
k3 = T;
|
k3 = T;
|
||||||
var A = a16.memoizedState, p = A.refs, C = p.getSnapshot, x = A.source;
|
var A = a21.memoizedState, p = A.refs, C = p.getSnapshot, x = A.source;
|
||||||
A = A.subscribe;
|
A = A.subscribe;
|
||||||
var w = R;
|
var w = R;
|
||||||
return a16.memoizedState = {
|
return a21.memoizedState = {
|
||||||
refs: p,
|
refs: p,
|
||||||
source: b,
|
source: b,
|
||||||
subscribe: d7
|
subscribe: d7
|
||||||
@ -13467,12 +13467,12 @@
|
|||||||
}, [
|
}, [
|
||||||
b,
|
b,
|
||||||
d7
|
d7
|
||||||
]), He(C, c7) && He(x, b) && He(A, d7) || ((a16 = {
|
]), He(C, c7) && He(x, b) && He(A, d7) || ((a21 = {
|
||||||
pending: null,
|
pending: null,
|
||||||
dispatch: null,
|
dispatch: null,
|
||||||
lastRenderedReducer: Jh,
|
lastRenderedReducer: Jh,
|
||||||
lastRenderedState: n
|
lastRenderedState: n
|
||||||
}).dispatch = l = Oh.bind(null, R, a16), k3.queue = a16, k3.baseQueue = null, n = Mh(e, b, c7), k3.memoizedState = k3.baseState = n), n;
|
}).dispatch = l = Oh.bind(null, R, a21), k3.queue = a21, k3.baseQueue = null, n = Mh(e, b, c7), k3.memoizedState = k3.baseState = n), n;
|
||||||
}
|
}
|
||||||
function Ph(a, b, c) {
|
function Ph(a, b, c) {
|
||||||
return Nh(Ih(), a, b, c);
|
return Nh(Ih(), a, b, c);
|
||||||
@ -13688,14 +13688,14 @@
|
|||||||
},
|
},
|
||||||
useOpaqueIdentifier: function() {
|
useOpaqueIdentifier: function() {
|
||||||
if (lh) {
|
if (lh) {
|
||||||
var a17 = !1, b = function(a) {
|
var a22 = !1, b = function(a) {
|
||||||
return {
|
return {
|
||||||
$$typeof: Ga,
|
$$typeof: Ga,
|
||||||
toString: a,
|
toString: a,
|
||||||
valueOf: a
|
valueOf: a
|
||||||
};
|
};
|
||||||
}(function() {
|
}(function() {
|
||||||
throw a17 || (a17 = !0, c("r:" + (tf++).toString(36))), Error(y(355));
|
throw a22 || (a22 = !0, c("r:" + (tf++).toString(36))), Error(y(355));
|
||||||
}), c = Qh(b)[1];
|
}), c = Qh(b)[1];
|
||||||
return 0 == (2 & R.mode) && (R.flags |= 516, Rh(5, function() {
|
return 0 == (2 & R.mode) && (R.flags |= 516, Rh(5, function() {
|
||||||
c("r:" + (tf++).toString(36));
|
c("r:" + (tf++).toString(36));
|
||||||
@ -14690,15 +14690,15 @@
|
|||||||
function Hg() {
|
function Hg() {
|
||||||
return 0 != (48 & X) ? O() : -1 !== Fj ? Fj : Fj = O();
|
return 0 != (48 & X) ? O() : -1 !== Fj ? Fj : Fj = O();
|
||||||
}
|
}
|
||||||
function Ig(a19) {
|
function Ig(a24) {
|
||||||
if (0 == (2 & (a19 = a19.mode))) return 1;
|
if (0 == (2 & (a24 = a24.mode))) return 1;
|
||||||
if (0 == (4 & a19)) return 99 === eg() ? 1 : 2;
|
if (0 == (4 & a24)) return 99 === eg() ? 1 : 2;
|
||||||
if (0 === Gj && (Gj = tj), 0 !== kg.transition) {
|
if (0 === Gj && (Gj = tj), 0 !== kg.transition) {
|
||||||
0 !== Hj && (Hj = null !== vj ? vj.pendingLanes : 0), a19 = Gj;
|
0 !== Hj && (Hj = null !== vj ? vj.pendingLanes : 0), a24 = Gj;
|
||||||
var b = 4186112 & ~Hj;
|
var b = 4186112 & ~Hj;
|
||||||
return 0 == (b &= -b) && 0 == (b = (a19 = 4186112 & ~a19) & -a19) && (b = 8192), b;
|
return 0 == (b &= -b) && 0 == (b = (a24 = 4186112 & ~a24) & -a24) && (b = 8192), b;
|
||||||
}
|
}
|
||||||
return a19 = eg(), a19 = 0 != (4 & X) && 98 === a19 ? Xc(12, Gj) : Xc(a19 = function(a) {
|
return a24 = eg(), a24 = 0 != (4 & X) && 98 === a24 ? Xc(12, Gj) : Xc(a24 = function(a) {
|
||||||
switch(a){
|
switch(a){
|
||||||
case 99:
|
case 99:
|
||||||
return 15;
|
return 15;
|
||||||
@ -14712,7 +14712,7 @@
|
|||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}(a19), Gj);
|
}(a24), Gj);
|
||||||
}
|
}
|
||||||
function Jg(a, b, c) {
|
function Jg(a, b, c) {
|
||||||
if (50 < Dj) throw Dj = 0, Ej = null, Error(y(185));
|
if (50 < Dj) throw Dj = 0, Ej = null, Error(y(185));
|
||||||
@ -14729,8 +14729,8 @@
|
|||||||
for(null !== c && (c.lanes |= b), c = a, a = a.return; null !== a;)a.childLanes |= b, null !== (c = a.alternate) && (c.childLanes |= b), c = a, a = a.return;
|
for(null !== c && (c.lanes |= b), c = a, a = a.return; null !== a;)a.childLanes |= b, null !== (c = a.alternate) && (c.childLanes |= b), c = a, a = a.return;
|
||||||
return 3 === c.tag ? c.stateNode : null;
|
return 3 === c.tag ? c.stateNode : null;
|
||||||
}
|
}
|
||||||
function Mj(a20, b) {
|
function Mj(a25, b) {
|
||||||
for(var c = a20.callbackNode, d = a20.suspendedLanes, e = a20.pingedLanes, f = a20.expirationTimes, g = a20.pendingLanes; 0 < g;){
|
for(var c = a25.callbackNode, d = a25.suspendedLanes, e = a25.pingedLanes, f = a25.expirationTimes, g = a25.pendingLanes; 0 < g;){
|
||||||
var h = 31 - Vc(g), k = 1 << h, l = f[h];
|
var h = 31 - Vc(g), k = 1 << h, l = f[h];
|
||||||
if (-1 === l) {
|
if (-1 === l) {
|
||||||
if (0 == (k & d) || 0 != (k & e)) {
|
if (0 == (k & d) || 0 != (k & e)) {
|
||||||
@ -14738,18 +14738,18 @@
|
|||||||
var n = F;
|
var n = F;
|
||||||
f[h] = 10 <= n ? l + 250 : 6 <= n ? l + 5E3 : -1;
|
f[h] = 10 <= n ? l + 250 : 6 <= n ? l + 5E3 : -1;
|
||||||
}
|
}
|
||||||
} else l <= b && (a20.expiredLanes |= k);
|
} else l <= b && (a25.expiredLanes |= k);
|
||||||
g &= ~k;
|
g &= ~k;
|
||||||
}
|
}
|
||||||
if (d = Uc(a20, a20 === U ? W : 0), b = F, 0 === d) null !== c && (c !== Zf && Pf(c), a20.callbackNode = null, a20.callbackPriority = 0);
|
if (d = Uc(a25, a25 === U ? W : 0), b = F, 0 === d) null !== c && (c !== Zf && Pf(c), a25.callbackNode = null, a25.callbackPriority = 0);
|
||||||
else {
|
else {
|
||||||
if (null !== c) {
|
if (null !== c) {
|
||||||
if (a20.callbackPriority === b) return;
|
if (a25.callbackPriority === b) return;
|
||||||
c !== Zf && Pf(c);
|
c !== Zf && Pf(c);
|
||||||
}
|
}
|
||||||
15 === b ? (c = Lj.bind(null, a20), null === ag ? (ag = [
|
15 === b ? (c = Lj.bind(null, a25), null === ag ? (ag = [
|
||||||
c
|
c
|
||||||
], bg = Of(Uf, jg)) : ag.push(c), c = Zf) : c = 14 === b ? hg(99, Lj.bind(null, a20)) : hg(c = function(a) {
|
], bg = Of(Uf, jg)) : ag.push(c), c = Zf) : c = 14 === b ? hg(99, Lj.bind(null, a25)) : hg(c = function(a) {
|
||||||
switch(a){
|
switch(a){
|
||||||
case 15:
|
case 15:
|
||||||
case 14:
|
case 14:
|
||||||
@ -14775,7 +14775,7 @@
|
|||||||
default:
|
default:
|
||||||
throw Error(y(358, a));
|
throw Error(y(358, a));
|
||||||
}
|
}
|
||||||
}(b), Nj.bind(null, a20)), a20.callbackPriority = b, a20.callbackNode = c;
|
}(b), Nj.bind(null, a25)), a25.callbackPriority = b, a25.callbackNode = c;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function Nj(a) {
|
function Nj(a) {
|
||||||
@ -14793,7 +14793,7 @@
|
|||||||
} catch (h) {
|
} catch (h) {
|
||||||
Sj(a, h);
|
Sj(a, h);
|
||||||
}
|
}
|
||||||
if (pg = og = ng = null, oj.current = f, X = e, null !== Y ? d = 0 : (U = null, W = 0, d = V), 0 != (tj & Hi)) Qj(a, 0);
|
if (qg(), oj.current = f, X = e, null !== Y ? d = 0 : (U = null, W = 0, d = V), 0 != (tj & Hi)) Qj(a, 0);
|
||||||
else if (0 !== d) {
|
else if (0 !== d) {
|
||||||
if (2 === d && (X |= 64, a.hydrate && (a.hydrate = !1, qf(a.containerInfo)), 0 !== (c = Wc(a)) && (d = Tj(a, c))), 1 === d) throw b = sj, Qj(a, 0), Ii(a, c), Mj(a, O()), b;
|
if (2 === d && (X |= 64, a.hydrate && (a.hydrate = !1, qf(a.containerInfo)), 0 !== (c = Wc(a)) && (d = Tj(a, c))), 1 === d) throw b = sj, Qj(a, 0), Ii(a, c), Mj(a, O()), b;
|
||||||
switch(a.finishedWork = a.current.alternate, a.finishedLanes = c, d){
|
switch(a.finishedWork = a.current.alternate, a.finishedLanes = c, d){
|
||||||
@ -14910,7 +14910,7 @@
|
|||||||
for(;;){
|
for(;;){
|
||||||
var c = Y;
|
var c = Y;
|
||||||
try {
|
try {
|
||||||
if (pg = og = ng = null, vh.current = Gh, yh) {
|
if (qg(), vh.current = Gh, yh) {
|
||||||
for(var d = R.memoizedState; null !== d;){
|
for(var d = R.memoizedState; null !== d;){
|
||||||
var e = d.queue;
|
var e = d.queue;
|
||||||
null !== e && (e.pending = null), d = d.next;
|
null !== e && (e.pending = null), d = d.next;
|
||||||
@ -15013,7 +15013,7 @@
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
Sj(a, e);
|
Sj(a, e);
|
||||||
}
|
}
|
||||||
if (pg = og = ng = null, X = c, oj.current = d, null !== Y) throw Error(y(261));
|
if (qg(), X = c, oj.current = d, null !== Y) throw Error(y(261));
|
||||||
return U = null, W = 0, V;
|
return U = null, W = 0, V;
|
||||||
}
|
}
|
||||||
function ak() {
|
function ak() {
|
||||||
@ -15280,8 +15280,8 @@
|
|||||||
null !== d && d.delete(b), b = Hg(), a.pingedLanes |= a.suspendedLanes & c, U === a && (W & c) === c && (4 === V || 3 === V && (62914560 & W) === W && 500 > O() - jj ? Qj(a, 0) : uj |= c), Mj(a, b);
|
null !== d && d.delete(b), b = Hg(), a.pingedLanes |= a.suspendedLanes & c, U === a && (W & c) === c && (4 === V || 3 === V && (62914560 & W) === W && 500 > O() - jj ? Qj(a, 0) : uj |= c), Mj(a, b);
|
||||||
}
|
}
|
||||||
function lj(a, b) {
|
function lj(a, b) {
|
||||||
var c = a.stateNode;
|
var a26, c = a.stateNode;
|
||||||
null !== c && c.delete(b), 0 == (b = 0) && (0 == (2 & (b = a.mode)) ? b = 1 : 0 == (4 & b) ? b = 99 === eg() ? 1 : 2 : (0 === Gj && (Gj = tj), 0 === (b = Yc(62914560 & ~Gj)) && (b = 4194304))), c = Hg(), null !== (a = Kj(a, b)) && ($c(a, b, c), Mj(a, c));
|
null !== c && c.delete(b), 0 == (b = 0) && (0 == (2 & (b = a.mode)) ? b = 1 : 0 == (4 & b) ? b = 99 === eg() ? 1 : 2 : (0 === Gj && (Gj = tj), 0 == (b = (a26 = 62914560 & ~Gj) & -a26) && (b = 4194304))), c = Hg(), null !== (a = Kj(a, b)) && ($c(a, b, c), Mj(a, c));
|
||||||
}
|
}
|
||||||
function ik(a, b, c, d) {
|
function ik(a, b, c, d) {
|
||||||
this.tag = a, this.key = c, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.ref = null, this.pendingProps = b, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = d, this.flags = 0, this.lastEffect = this.firstEffect = this.nextEffect = null, this.childLanes = this.lanes = 0, this.alternate = null;
|
this.tag = a, this.key = c, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.ref = null, this.pendingProps = b, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = d, this.flags = 0, this.lastEffect = this.firstEffect = this.nextEffect = null, this.childLanes = this.lanes = 0, this.alternate = null;
|
||||||
@ -15430,7 +15430,7 @@
|
|||||||
function rk(a) {
|
function rk(a) {
|
||||||
return !(!a || 1 !== a.nodeType && 9 !== a.nodeType && 11 !== a.nodeType && (8 !== a.nodeType || " react-mount-point-unstable " !== a.nodeValue));
|
return !(!a || 1 !== a.nodeType && 9 !== a.nodeType && 11 !== a.nodeType && (8 !== a.nodeType || " react-mount-point-unstable " !== a.nodeValue));
|
||||||
}
|
}
|
||||||
function tk(a21, b16, c10, d, e) {
|
function tk(a27, b16, c10, d, e) {
|
||||||
var f = c10._reactRootContainer;
|
var f = c10._reactRootContainer;
|
||||||
if (f) {
|
if (f) {
|
||||||
var g = f._internalRoot;
|
var g = f._internalRoot;
|
||||||
@ -15441,7 +15441,7 @@
|
|||||||
h.call(a);
|
h.call(a);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
lk(b16, g, a21, e);
|
lk(b16, g, a27, e);
|
||||||
} else {
|
} else {
|
||||||
if (g = (f = c10._reactRootContainer = function(a, b) {
|
if (g = (f = c10._reactRootContainer = function(a, b) {
|
||||||
if (b || (b = !(!(b = a ? 9 === a.nodeType ? a.documentElement : a.firstChild : null) || 1 !== b.nodeType || !b.hasAttribute("data-reactroot"))), !b) for(var c; c = a.lastChild;)a.removeChild(c);
|
if (b || (b = !(!(b = a ? 9 === a.nodeType ? a.documentElement : a.firstChild : null) || 1 !== b.nodeType || !b.hasAttribute("data-reactroot"))), !b) for(var c; c = a.lastChild;)a.removeChild(c);
|
||||||
@ -15456,12 +15456,12 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
Xj(function() {
|
Xj(function() {
|
||||||
lk(b16, g, a21, e);
|
lk(b16, g, a27, e);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return mk(g);
|
return mk(g);
|
||||||
}
|
}
|
||||||
function uk(a22, b17) {
|
function uk(a28, b17) {
|
||||||
var c = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
var c = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
||||||
if (!rk(b17)) throw Error(y(200));
|
if (!rk(b17)) throw Error(y(200));
|
||||||
return function(a, b, c) {
|
return function(a, b, c) {
|
||||||
@ -15473,13 +15473,13 @@
|
|||||||
containerInfo: b,
|
containerInfo: b,
|
||||||
implementation: null
|
implementation: null
|
||||||
};
|
};
|
||||||
}(a22, b17, null, c);
|
}(a28, b17, null, c);
|
||||||
}
|
}
|
||||||
ck = function(a23, b, c) {
|
ck = function(a29, b, c) {
|
||||||
var d = b.lanes;
|
var d = b.lanes;
|
||||||
if (null !== a23) {
|
if (null !== a29) {
|
||||||
if (a23.memoizedProps !== b.pendingProps || N.current) ug = !0;
|
if (a29.memoizedProps !== b.pendingProps || N.current) ug = !0;
|
||||||
else if (0 != (c & d)) ug = 0 != (16384 & a23.flags);
|
else if (0 != (c & d)) ug = 0 != (16384 & a29.flags);
|
||||||
else {
|
else {
|
||||||
switch(ug = !1, b.tag){
|
switch(ug = !1, b.tag){
|
||||||
case 3:
|
case 3:
|
||||||
@ -15501,94 +15501,94 @@
|
|||||||
break;
|
break;
|
||||||
case 13:
|
case 13:
|
||||||
if (null !== b.memoizedState) {
|
if (null !== b.memoizedState) {
|
||||||
if (0 != (c & b.child.childLanes)) return ti(a23, b, c);
|
if (0 != (c & b.child.childLanes)) return ti(a29, b, c);
|
||||||
return I(P, 1 & P.current), null !== (b = hi(a23, b, c)) ? b.sibling : null;
|
return I(P, 1 & P.current), null !== (b = hi(a29, b, c)) ? b.sibling : null;
|
||||||
}
|
}
|
||||||
I(P, 1 & P.current);
|
I(P, 1 & P.current);
|
||||||
break;
|
break;
|
||||||
case 19:
|
case 19:
|
||||||
if (d = 0 != (c & b.childLanes), 0 != (64 & a23.flags)) {
|
if (d = 0 != (c & b.childLanes), 0 != (64 & a29.flags)) {
|
||||||
if (d) return Ai(a23, b, c);
|
if (d) return Ai(a29, b, c);
|
||||||
b.flags |= 64;
|
b.flags |= 64;
|
||||||
}
|
}
|
||||||
if (null !== (e = b.memoizedState) && (e.rendering = null, e.tail = null, e.lastEffect = null), I(P, P.current), !d) return null;
|
if (null !== (e = b.memoizedState) && (e.rendering = null, e.tail = null, e.lastEffect = null), I(P, P.current), !d) return null;
|
||||||
break;
|
break;
|
||||||
case 23:
|
case 23:
|
||||||
case 24:
|
case 24:
|
||||||
return b.lanes = 0, mi(a23, b, c);
|
return b.lanes = 0, mi(a29, b, c);
|
||||||
}
|
}
|
||||||
return hi(a23, b, c);
|
return hi(a29, b, c);
|
||||||
}
|
}
|
||||||
} else ug = !1;
|
} else ug = !1;
|
||||||
switch(b.lanes = 0, b.tag){
|
switch(b.lanes = 0, b.tag){
|
||||||
case 2:
|
case 2:
|
||||||
if (d = b.type, null !== a23 && (a23.alternate = null, b.alternate = null, b.flags |= 2), a23 = b.pendingProps, e = Ef(b, M.current), tg(b, c), e = Ch(null, b, d, a23, e, c), b.flags |= 1, "object" == typeof e && null !== e && "function" == typeof e.render && void 0 === e.$$typeof) {
|
if (d = b.type, null !== a29 && (a29.alternate = null, b.alternate = null, b.flags |= 2), a29 = b.pendingProps, e = Ef(b, M.current), tg(b, c), e = Ch(null, b, d, a29, e, c), b.flags |= 1, "object" == typeof e && null !== e && "function" == typeof e.render && void 0 === e.$$typeof) {
|
||||||
if (b.tag = 1, b.memoizedState = null, b.updateQueue = null, Ff(d)) {
|
if (b.tag = 1, b.memoizedState = null, b.updateQueue = null, Ff(d)) {
|
||||||
var f = !0;
|
var f = !0;
|
||||||
Jf(b);
|
Jf(b);
|
||||||
} else f = !1;
|
} else f = !1;
|
||||||
b.memoizedState = null !== e.state && void 0 !== e.state ? e.state : null, xg(b);
|
b.memoizedState = null !== e.state && void 0 !== e.state ? e.state : null, xg(b);
|
||||||
var g = d.getDerivedStateFromProps;
|
var g = d.getDerivedStateFromProps;
|
||||||
"function" == typeof g && Gg(b, d, g, a23), e.updater = Kg, b.stateNode = e, e._reactInternals = b, Og(b, d, a23, c), b = qi(null, b, d, !0, f, c);
|
"function" == typeof g && Gg(b, d, g, a29), e.updater = Kg, b.stateNode = e, e._reactInternals = b, Og(b, d, a29, c), b = qi(null, b, d, !0, f, c);
|
||||||
} else b.tag = 0, fi(null, b, e, c), b = b.child;
|
} else b.tag = 0, fi(null, b, e, c), b = b.child;
|
||||||
return b;
|
return b;
|
||||||
case 16:
|
case 16:
|
||||||
e = b.elementType;
|
e = b.elementType;
|
||||||
a: {
|
a: {
|
||||||
switch(null !== a23 && (a23.alternate = null, b.alternate = null, b.flags |= 2), a23 = b.pendingProps, e = (f = e._init)(e._payload), b.type = e, f = b.tag = function(a) {
|
switch(null !== a29 && (a29.alternate = null, b.alternate = null, b.flags |= 2), a29 = b.pendingProps, e = (f = e._init)(e._payload), b.type = e, f = b.tag = function(a) {
|
||||||
if ("function" == typeof a) return ji(a) ? 1 : 0;
|
if ("function" == typeof a) return ji(a) ? 1 : 0;
|
||||||
if (null != a) {
|
if (null != a) {
|
||||||
if ((a = a.$$typeof) === Aa) return 11;
|
if ((a = a.$$typeof) === Aa) return 11;
|
||||||
if (a === Da) return 14;
|
if (a === Da) return 14;
|
||||||
}
|
}
|
||||||
return 2;
|
return 2;
|
||||||
}(e), a23 = lg(e, a23), f){
|
}(e), a29 = lg(e, a29), f){
|
||||||
case 0:
|
case 0:
|
||||||
b = li(null, b, e, a23, c);
|
b = li(null, b, e, a29, c);
|
||||||
break a;
|
break a;
|
||||||
case 1:
|
case 1:
|
||||||
b = pi(null, b, e, a23, c);
|
b = pi(null, b, e, a29, c);
|
||||||
break a;
|
break a;
|
||||||
case 11:
|
case 11:
|
||||||
b = gi(null, b, e, a23, c);
|
b = gi(null, b, e, a29, c);
|
||||||
break a;
|
break a;
|
||||||
case 14:
|
case 14:
|
||||||
b = ii(null, b, e, lg(e.type, a23), d, c);
|
b = ii(null, b, e, lg(e.type, a29), d, c);
|
||||||
break a;
|
break a;
|
||||||
}
|
}
|
||||||
throw Error(y(306, e, ""));
|
throw Error(y(306, e, ""));
|
||||||
}
|
}
|
||||||
return b;
|
return b;
|
||||||
case 0:
|
case 0:
|
||||||
return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : lg(d, e), li(a23, b, d, e, c);
|
return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : lg(d, e), li(a29, b, d, e, c);
|
||||||
case 1:
|
case 1:
|
||||||
return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : lg(d, e), pi(a23, b, d, e, c);
|
return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : lg(d, e), pi(a29, b, d, e, c);
|
||||||
case 3:
|
case 3:
|
||||||
if (ri(b), d = b.updateQueue, null === a23 || null === d) throw Error(y(282));
|
if (ri(b), d = b.updateQueue, null === a29 || null === d) throw Error(y(282));
|
||||||
if (d = b.pendingProps, e = b.memoizedState, e = null !== e ? e.element : null, yg(a23, b), Cg(b, d, null, c), d = b.memoizedState.element, d === e) sh(), b = hi(a23, b, c);
|
if (d = b.pendingProps, e = b.memoizedState, e = null !== e ? e.element : null, yg(a29, b), Cg(b, d, null, c), d = b.memoizedState.element, d === e) sh(), b = hi(a29, b, c);
|
||||||
else {
|
else {
|
||||||
if ((f = (e = b.stateNode).hydrate) && (kh = rf(b.stateNode.containerInfo.firstChild), jh = b, f = lh = !0), f) {
|
if ((f = (e = b.stateNode).hydrate) && (kh = rf(b.stateNode.containerInfo.firstChild), jh = b, f = lh = !0), f) {
|
||||||
if (null != (a23 = e.mutableSourceEagerHydrationData)) for(e = 0; e < a23.length; e += 2)(f = a23[e])._workInProgressVersionPrimary = a23[e + 1], th.push(f);
|
if (null != (a29 = e.mutableSourceEagerHydrationData)) for(e = 0; e < a29.length; e += 2)(f = a29[e])._workInProgressVersionPrimary = a29[e + 1], th.push(f);
|
||||||
for(c = Zg(b, null, d, c), b.child = c; c;)c.flags = -3 & c.flags | 1024, c = c.sibling;
|
for(c = Zg(b, null, d, c), b.child = c; c;)c.flags = -3 & c.flags | 1024, c = c.sibling;
|
||||||
} else fi(a23, b, d, c), sh();
|
} else fi(a29, b, d, c), sh();
|
||||||
b = b.child;
|
b = b.child;
|
||||||
}
|
}
|
||||||
return b;
|
return b;
|
||||||
case 5:
|
case 5:
|
||||||
return gh(b), null === a23 && ph(b), d = b.type, e = b.pendingProps, f = null !== a23 ? a23.memoizedProps : null, g = e.children, nf(d, e) ? g = null : null !== f && nf(d, f) && (b.flags |= 16), oi(a23, b), fi(a23, b, g, c), b.child;
|
return gh(b), null === a29 && ph(b), d = b.type, e = b.pendingProps, f = null !== a29 ? a29.memoizedProps : null, g = e.children, nf(d, e) ? g = null : null !== f && nf(d, f) && (b.flags |= 16), oi(a29, b), fi(a29, b, g, c), b.child;
|
||||||
case 6:
|
case 6:
|
||||||
return null === a23 && ph(b), null;
|
return null === a29 && ph(b), null;
|
||||||
case 13:
|
case 13:
|
||||||
return ti(a23, b, c);
|
return ti(a29, b, c);
|
||||||
case 4:
|
case 4:
|
||||||
return eh(b, b.stateNode.containerInfo), d = b.pendingProps, null === a23 ? b.child = Yg(b, null, d, c) : fi(a23, b, d, c), b.child;
|
return eh(b, b.stateNode.containerInfo), d = b.pendingProps, null === a29 ? b.child = Yg(b, null, d, c) : fi(a29, b, d, c), b.child;
|
||||||
case 11:
|
case 11:
|
||||||
return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : lg(d, e), gi(a23, b, d, e, c);
|
return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : lg(d, e), gi(a29, b, d, e, c);
|
||||||
case 7:
|
case 7:
|
||||||
return fi(a23, b, b.pendingProps, c), b.child;
|
return fi(a29, b, b.pendingProps, c), b.child;
|
||||||
case 8:
|
case 8:
|
||||||
case 12:
|
case 12:
|
||||||
return fi(a23, b, b.pendingProps.children, c), b.child;
|
return fi(a29, b, b.pendingProps.children, c), b.child;
|
||||||
case 10:
|
case 10:
|
||||||
a: {
|
a: {
|
||||||
d = b.type._context, e = b.pendingProps, g = b.memoizedProps, f = e.value;
|
d = b.type._context, e = b.pendingProps, g = b.memoizedProps, f = e.value;
|
||||||
@ -15596,7 +15596,7 @@
|
|||||||
if (I(mg, h._currentValue), h._currentValue = f, null !== g) {
|
if (I(mg, h._currentValue), h._currentValue = f, null !== g) {
|
||||||
if (0 == (f = He(h = g.value, f) ? 0 : ("function" == typeof d._calculateChangedBits ? d._calculateChangedBits(h, f) : 1073741823) | 0)) {
|
if (0 == (f = He(h = g.value, f) ? 0 : ("function" == typeof d._calculateChangedBits ? d._calculateChangedBits(h, f) : 1073741823) | 0)) {
|
||||||
if (g.children === e.children && !N.current) {
|
if (g.children === e.children && !N.current) {
|
||||||
b = hi(a23, b, c);
|
b = hi(a29, b, c);
|
||||||
break a;
|
break a;
|
||||||
}
|
}
|
||||||
} else for(null !== (h = b.child) && (h.return = b); null !== h;){
|
} else for(null !== (h = b.child) && (h.return = b); null !== h;){
|
||||||
@ -15626,22 +15626,22 @@
|
|||||||
h = g;
|
h = g;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fi(a23, b, e.children, c), b = b.child;
|
fi(a29, b, e.children, c), b = b.child;
|
||||||
}
|
}
|
||||||
return b;
|
return b;
|
||||||
case 9:
|
case 9:
|
||||||
return e = b.type, f = b.pendingProps, d = f.children, tg(b, c), e = vg(e, f.unstable_observedBits), d = d(e), b.flags |= 1, fi(a23, b, d, c), b.child;
|
return e = b.type, f = b.pendingProps, d = f.children, tg(b, c), e = vg(e, f.unstable_observedBits), d = d(e), b.flags |= 1, fi(a29, b, d, c), b.child;
|
||||||
case 14:
|
case 14:
|
||||||
return f = lg(e = b.type, b.pendingProps), f = lg(e.type, f), ii(a23, b, e, f, d, c);
|
return f = lg(e = b.type, b.pendingProps), f = lg(e.type, f), ii(a29, b, e, f, d, c);
|
||||||
case 15:
|
case 15:
|
||||||
return ki(a23, b, b.type, b.pendingProps, d, c);
|
return ki(a29, b, b.type, b.pendingProps, d, c);
|
||||||
case 17:
|
case 17:
|
||||||
return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : lg(d, e), null !== a23 && (a23.alternate = null, b.alternate = null, b.flags |= 2), b.tag = 1, Ff(d) ? (a23 = !0, Jf(b)) : a23 = !1, tg(b, c), Mg(b, d, e), Og(b, d, e, c), qi(null, b, d, !0, a23, c);
|
return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : lg(d, e), null !== a29 && (a29.alternate = null, b.alternate = null, b.flags |= 2), b.tag = 1, Ff(d) ? (a29 = !0, Jf(b)) : a29 = !1, tg(b, c), Mg(b, d, e), Og(b, d, e, c), qi(null, b, d, !0, a29, c);
|
||||||
case 19:
|
case 19:
|
||||||
return Ai(a23, b, c);
|
return Ai(a29, b, c);
|
||||||
case 23:
|
case 23:
|
||||||
case 24:
|
case 24:
|
||||||
return mi(a23, b, c);
|
return mi(a29, b, c);
|
||||||
}
|
}
|
||||||
throw Error(y(156, b.tag));
|
throw Error(y(156, b.tag));
|
||||||
}, qk.prototype.render = function(a) {
|
}, qk.prototype.render = function(a) {
|
||||||
@ -15694,8 +15694,8 @@
|
|||||||
}, Ib = function() {
|
}, Ib = function() {
|
||||||
0 == (49 & X) && (function() {
|
0 == (49 & X) && (function() {
|
||||||
if (null !== Cj) {
|
if (null !== Cj) {
|
||||||
var a24 = Cj;
|
var a30 = Cj;
|
||||||
Cj = null, a24.forEach(function(a) {
|
Cj = null, a30.forEach(function(a) {
|
||||||
a.expiredLanes |= 24 & a.pendingLanes, Mj(a, O());
|
a.expiredLanes |= 24 & a.pendingLanes, Mj(a, O());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -16610,54 +16610,54 @@
|
|||||||
return "object" == typeof a && null !== a && a.$$typeof === n;
|
return "object" == typeof a && null !== a && a.$$typeof === n;
|
||||||
}
|
}
|
||||||
var M = /\/+/g;
|
var M = /\/+/g;
|
||||||
function N(a27, b) {
|
function N(a33, b) {
|
||||||
var a26, b18;
|
var a32, b18;
|
||||||
return "object" == typeof a27 && null !== a27 && null != a27.key ? (a26 = "" + a27.key, b18 = {
|
return "object" == typeof a33 && null !== a33 && null != a33.key ? (a32 = "" + a33.key, b18 = {
|
||||||
"=": "=0",
|
"=": "=0",
|
||||||
":": "=2"
|
":": "=2"
|
||||||
}, "$" + a26.replace(/[=:]/g, function(a) {
|
}, "$" + a32.replace(/[=:]/g, function(a) {
|
||||||
return b18[a];
|
return b18[a];
|
||||||
})) : b.toString(36);
|
})) : b.toString(36);
|
||||||
}
|
}
|
||||||
function O(a30, b, c, e, d) {
|
function O(a36, b, c, e, d) {
|
||||||
var a28, b19, a29, k = typeof a30;
|
var a34, b19, a35, k = typeof a36;
|
||||||
("undefined" === k || "boolean" === k) && (a30 = null);
|
("undefined" === k || "boolean" === k) && (a36 = null);
|
||||||
var h = !1;
|
var h = !1;
|
||||||
if (null === a30) h = !0;
|
if (null === a36) h = !0;
|
||||||
else switch(k){
|
else switch(k){
|
||||||
case "string":
|
case "string":
|
||||||
case "number":
|
case "number":
|
||||||
h = !0;
|
h = !0;
|
||||||
break;
|
break;
|
||||||
case "object":
|
case "object":
|
||||||
switch(a30.$$typeof){
|
switch(a36.$$typeof){
|
||||||
case n:
|
case n:
|
||||||
case p:
|
case p:
|
||||||
h = !0;
|
h = !0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (h) return d = d(h = a30), a30 = "" === e ? "." + N(h, 0) : e, Array.isArray(d) ? (c = "", null != a30 && (c = a30.replace(M, "$&/") + "/"), O(d, b, c, "", function(a) {
|
if (h) return d = d(h = a36), a36 = "" === e ? "." + N(h, 0) : e, Array.isArray(d) ? (c = "", null != a36 && (c = a36.replace(M, "$&/") + "/"), O(d, b, c, "", function(a) {
|
||||||
return a;
|
return a;
|
||||||
})) : null != d && (L(d) && (d = (a28 = d, b19 = c + (!d.key || h && h.key === d.key ? "" : ("" + d.key).replace(M, "$&/") + "/") + a30, {
|
})) : null != d && (L(d) && (d = (a34 = d, b19 = c + (!d.key || h && h.key === d.key ? "" : ("" + d.key).replace(M, "$&/") + "/") + a36, {
|
||||||
$$typeof: n,
|
$$typeof: n,
|
||||||
type: a28.type,
|
type: a34.type,
|
||||||
key: b19,
|
key: b19,
|
||||||
ref: a28.ref,
|
ref: a34.ref,
|
||||||
props: a28.props,
|
props: a34.props,
|
||||||
_owner: a28._owner
|
_owner: a34._owner
|
||||||
})), b.push(d)), 1;
|
})), b.push(d)), 1;
|
||||||
if (h = 0, e = "" === e ? "." : e + ":", Array.isArray(a30)) for(var g = 0; g < a30.length; g++){
|
if (h = 0, e = "" === e ? "." : e + ":", Array.isArray(a36)) for(var g = 0; g < a36.length; g++){
|
||||||
var f = e + N(k = a30[g], g);
|
var f = e + N(k = a36[g], g);
|
||||||
h += O(k, b, c, f, d);
|
h += O(k, b, c, f, d);
|
||||||
}
|
}
|
||||||
else if ("function" == typeof (f = null === (a29 = a30) || "object" != typeof a29 ? null : "function" == typeof (a29 = x && a29[x] || a29["@@iterator"]) ? a29 : null)) for(a30 = f.call(a30), g = 0; !(k = a30.next()).done;)f = e + N(k = k.value, g++), h += O(k, b, c, f, d);
|
else if ("function" == typeof (f = null === (a35 = a36) || "object" != typeof a35 ? null : "function" == typeof (a35 = x && a35[x] || a35["@@iterator"]) ? a35 : null)) for(a36 = f.call(a36), g = 0; !(k = a36.next()).done;)f = e + N(k = k.value, g++), h += O(k, b, c, f, d);
|
||||||
else if ("object" === k) throw Error(z(31, "[object Object]" == (b = "" + a30) ? "object with keys {" + Object.keys(a30).join(", ") + "}" : b));
|
else if ("object" === k) throw Error(z(31, "[object Object]" == (b = "" + a36) ? "object with keys {" + Object.keys(a36).join(", ") + "}" : b));
|
||||||
return h;
|
return h;
|
||||||
}
|
}
|
||||||
function P(a31, b, c) {
|
function P(a37, b, c) {
|
||||||
if (null == a31) return a31;
|
if (null == a37) return a37;
|
||||||
var e = [], d = 0;
|
var e = [], d = 0;
|
||||||
return O(a31, e, "", "", function(a) {
|
return O(a37, e, "", "", function(a) {
|
||||||
return b.call(c, a, d++);
|
return b.call(c, a, d++);
|
||||||
}), e;
|
}), e;
|
||||||
}
|
}
|
||||||
@ -16694,8 +16694,8 @@
|
|||||||
b++;
|
b++;
|
||||||
}), b;
|
}), b;
|
||||||
},
|
},
|
||||||
toArray: function(a32) {
|
toArray: function(a38) {
|
||||||
return P(a32, function(a) {
|
return P(a38, function(a) {
|
||||||
return a;
|
return a;
|
||||||
}) || [];
|
}) || [];
|
||||||
},
|
},
|
||||||
|
@ -20,9 +20,12 @@
|
|||||||
default:
|
default:
|
||||||
return source;
|
return source;
|
||||||
}
|
}
|
||||||
for(const prop in source)source.hasOwnProperty(prop) && '__proto__' !== prop && (target[prop] = deepExtend(target[prop], source[prop]));
|
for(const prop in source)source.hasOwnProperty(prop) && isValidKey(prop) && (target[prop] = deepExtend(target[prop], source[prop]));
|
||||||
return target;
|
return target;
|
||||||
}
|
}
|
||||||
|
function isValidKey(key) {
|
||||||
|
return '__proto__' !== key;
|
||||||
|
}
|
||||||
function getUA() {
|
function getUA() {
|
||||||
return 'undefined' != typeof navigator && 'string' == typeof navigator.userAgent ? navigator.userAgent : '';
|
return 'undefined' != typeof navigator && 'string' == typeof navigator.userAgent ? navigator.userAgent : '';
|
||||||
}
|
}
|
||||||
|
@ -66,9 +66,6 @@
|
|||||||
const e = `FIRESTORE (${C}) INTERNAL ASSERTION FAILED: ` + t;
|
const e = `FIRESTORE (${C}) INTERNAL ASSERTION FAILED: ` + t;
|
||||||
throw O(e), new Error(e);
|
throw O(e), new Error(e);
|
||||||
}
|
}
|
||||||
function B(t, e) {
|
|
||||||
t || L();
|
|
||||||
}
|
|
||||||
const K = {
|
const K = {
|
||||||
OK: "ok",
|
OK: "ok",
|
||||||
CANCELLED: "cancelled",
|
CANCELLED: "cancelled",
|
||||||
@ -150,7 +147,7 @@
|
|||||||
}
|
}
|
||||||
getToken() {
|
getToken() {
|
||||||
const t = this.i, e3 = this.forceRefresh;
|
const t = this.i, e3 = this.forceRefresh;
|
||||||
return this.forceRefresh = !1, this.auth ? this.auth.getToken(e3).then((e)=>this.i !== t ? ($("FirebaseCredentialsProvider", "getToken aborted due to token change."), this.getToken()) : e ? (B("string" == typeof e.accessToken), new W(e.accessToken, this.currentUser)) : null
|
return this.forceRefresh = !1, this.auth ? this.auth.getToken(e3).then((e)=>this.i !== t ? ($("FirebaseCredentialsProvider", "getToken aborted due to token change."), this.getToken()) : e ? ("string" == typeof e.accessToken || L(), new W(e.accessToken, this.currentUser)) : null
|
||||||
) : Promise.resolve(null);
|
) : Promise.resolve(null);
|
||||||
}
|
}
|
||||||
invalidateToken() {
|
invalidateToken() {
|
||||||
@ -161,7 +158,7 @@
|
|||||||
}
|
}
|
||||||
u() {
|
u() {
|
||||||
const t = this.auth && this.auth.getUid();
|
const t = this.auth && this.auth.getUid();
|
||||||
return B(null === t || "string" == typeof t), new D(t);
|
return null === t || "string" == typeof t || L(), new D(t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
class J {
|
class J {
|
||||||
@ -483,10 +480,10 @@
|
|||||||
_t.EMPTY_BYTE_STRING = new _t("");
|
_t.EMPTY_BYTE_STRING = new _t("");
|
||||||
const mt = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
|
const mt = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
|
||||||
function gt(t) {
|
function gt(t) {
|
||||||
if (B(!!t), "string" == typeof t) {
|
if (t || L(), "string" == typeof t) {
|
||||||
let e = 0;
|
let e = 0;
|
||||||
const n = mt.exec(t);
|
const n = mt.exec(t);
|
||||||
if (B(!!n), n[1]) {
|
if (n || L(), n[1]) {
|
||||||
let t = n[1];
|
let t = n[1];
|
||||||
e = Number(t = (t + "000000000").substr(0, 9));
|
e = Number(t = (t + "000000000").substr(0, 9));
|
||||||
}
|
}
|
||||||
@ -1342,7 +1339,7 @@
|
|||||||
}
|
}
|
||||||
function rn(t, e, n) {
|
function rn(t, e, n) {
|
||||||
const s = new Map;
|
const s = new Map;
|
||||||
B(t.length === n.length);
|
t.length === n.length || L();
|
||||||
for(let i = 0; i < n.length; i++){
|
for(let i = 0; i < n.length; i++){
|
||||||
const r = t[i], o = r.transform, c = e.data.field(r.field);
|
const r = t[i], o = r.transform, c = e.data.field(r.field);
|
||||||
s.set(r.field, ke(o, c, n[i]));
|
s.set(r.field, ke(o, c, n[i]));
|
||||||
@ -1893,7 +1890,7 @@
|
|||||||
if (0 === n) {
|
if (0 === n) {
|
||||||
const n = new Pt(t.path);
|
const n = new Pt(t.path);
|
||||||
this.ct(e, n, Kt.newNoDocument(n, rt.min()));
|
this.ct(e, n, Kt.newNoDocument(n, rt.min()));
|
||||||
} else B(1 === n);
|
} else 1 === n || L();
|
||||||
} else this.wt(e) !== n && (this.lt(e), this.it = this.it.add(e));
|
} else this.wt(e) !== n && (this.lt(e), this.it = this.it.add(e));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2001,7 +1998,7 @@
|
|||||||
return t.D ? e.toBase64() : e.toUint8Array();
|
return t.D ? e.toBase64() : e.toUint8Array();
|
||||||
}
|
}
|
||||||
function jn(t51) {
|
function jn(t51) {
|
||||||
return B(!!t51), rt.fromTimestamp(function(t) {
|
return t51 || L(), rt.fromTimestamp(function(t) {
|
||||||
const e = gt(t);
|
const e = gt(t);
|
||||||
return new it(e.seconds, e.nanos);
|
return new it(e.seconds, e.nanos);
|
||||||
}(t51));
|
}(t51));
|
||||||
@ -2017,7 +2014,7 @@
|
|||||||
}
|
}
|
||||||
function Wn(t) {
|
function Wn(t) {
|
||||||
const e = ht.fromString(t);
|
const e = ht.fromString(t);
|
||||||
return B(Ts(e)), e;
|
return Ts(e) || L(), e;
|
||||||
}
|
}
|
||||||
function Gn(t, e) {
|
function Gn(t, e) {
|
||||||
return Qn(t.databaseId, e.path);
|
return Qn(t.databaseId, e.path);
|
||||||
@ -2040,7 +2037,7 @@
|
|||||||
]).canonicalString();
|
]).canonicalString();
|
||||||
}
|
}
|
||||||
function Xn(t) {
|
function Xn(t) {
|
||||||
return B(t.length > 4 && "documents" === t.get(4)), t.popFirst(5);
|
return t.length > 4 && "documents" === t.get(4) || L(), t.popFirst(5);
|
||||||
}
|
}
|
||||||
function Zn(t, e, n) {
|
function Zn(t, e, n) {
|
||||||
return {
|
return {
|
||||||
@ -2101,7 +2098,7 @@
|
|||||||
var t55;
|
var t55;
|
||||||
const n13 = e33.currentDocument ? void 0 !== (t55 = e33.currentDocument).updateTime ? Ge.updateTime(jn(t55.updateTime)) : void 0 !== t55.exists ? Ge.exists(t55.exists) : Ge.none() : Ge.none(), s4 = e33.updateTransforms ? e33.updateTransforms.map((e34)=>(function(t, e) {
|
const n13 = e33.currentDocument ? void 0 !== (t55 = e33.currentDocument).updateTime ? Ge.updateTime(jn(t55.updateTime)) : void 0 !== t55.exists ? Ge.exists(t55.exists) : Ge.none() : Ge.none(), s4 = e33.updateTransforms ? e33.updateTransforms.map((e34)=>(function(t, e) {
|
||||||
let n = null;
|
let n = null;
|
||||||
if ("setToServerValue" in e) B("REQUEST_TIME" === e.setToServerValue), n = new Oe;
|
if ("setToServerValue" in e) "REQUEST_TIME" === e.setToServerValue || L(), n = new Oe;
|
||||||
else if ("appendMissingElements" in e) {
|
else if ("appendMissingElements" in e) {
|
||||||
const t = e.appendMissingElements.values || [];
|
const t = e.appendMissingElements.values || [];
|
||||||
n = new Fe(t);
|
n = new Fe(t);
|
||||||
@ -2256,7 +2253,7 @@
|
|||||||
}
|
}
|
||||||
function Rs(t) {
|
function Rs(t) {
|
||||||
const e = t.length;
|
const e = t.length;
|
||||||
if (B(e >= 2), 2 === e) return B("" === t.charAt(0) && "" === t.charAt(1)), ht.emptyPath();
|
if (e >= 2 || L(), 2 === e) return "" === t.charAt(0) && "" === t.charAt(1) || L(), ht.emptyPath();
|
||||||
const n = e - 2, s = [];
|
const n = e - 2, s = [];
|
||||||
let i = "";
|
let i = "";
|
||||||
for(let r = 0; r < e;){
|
for(let r = 0; r < e;){
|
||||||
@ -2767,7 +2764,7 @@
|
|||||||
this.batch = t, this.commitVersion = e, this.mutationResults = n, this.docVersions = s;
|
this.batch = t, this.commitVersion = e, this.mutationResults = n, this.docVersions = s;
|
||||||
}
|
}
|
||||||
static from(t, e, n) {
|
static from(t, e, n) {
|
||||||
B(t.mutations.length === n.length);
|
t.mutations.length === n.length || L();
|
||||||
let s = An;
|
let s = An;
|
||||||
const i = t.mutations;
|
const i = t.mutations;
|
||||||
for(let t79 = 0; t79 < i.length; t79++)s = s.insert(i[t79].key, n[t79].version);
|
for(let t79 = 0; t79 < i.length; t79++)s = s.insert(i[t79].key, n[t79].version);
|
||||||
@ -2816,7 +2813,7 @@
|
|||||||
this.userId = t, this.N = e, this.Ht = n, this.referenceDelegate = s, this.Jt = {};
|
this.userId = t, this.N = e, this.Ht = n, this.referenceDelegate = s, this.Jt = {};
|
||||||
}
|
}
|
||||||
static Yt(t, e, n, s) {
|
static Yt(t, e, n, s) {
|
||||||
B("" !== t.uid);
|
"" !== t.uid || L();
|
||||||
const i = t.isAuthenticated() ? t.uid : "";
|
const i = t.isAuthenticated() ? t.uid : "";
|
||||||
return new vi(i, e, n, s);
|
return new vi(i, e, n, s);
|
||||||
}
|
}
|
||||||
@ -2840,7 +2837,7 @@
|
|||||||
addMutationBatch(t81, e45, n18, s7) {
|
addMutationBatch(t81, e45, n18, s7) {
|
||||||
const i3 = Di(t81), r = Si(t81);
|
const i3 = Di(t81), r = Si(t81);
|
||||||
return r.add({}).next((o)=>{
|
return r.add({}).next((o)=>{
|
||||||
B("number" == typeof o);
|
"number" == typeof o || L();
|
||||||
const c = new ni(o, e45, n18, s7), a = function(t, e46, n) {
|
const c = new ni(o, e45, n18, s7), a = function(t, e46, n) {
|
||||||
const s = n.baseMutations.map((e)=>ss(t.Wt, e)
|
const s = n.baseMutations.map((e)=>ss(t.Wt, e)
|
||||||
), i = n.mutations.map((e)=>ss(t.Wt, e)
|
), i = n.mutations.map((e)=>ss(t.Wt, e)
|
||||||
@ -2862,7 +2859,7 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
lookupMutationBatch(t83, e) {
|
lookupMutationBatch(t83, e) {
|
||||||
return Si(t83).get(e).next((t)=>t ? (B(t.userId === this.userId), fi(this.N, t)) : null
|
return Si(t83).get(e).next((t)=>t ? (t.userId === this.userId || L(), fi(this.N, t)) : null
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Xt(t84, e) {
|
Xt(t84, e) {
|
||||||
@ -2884,7 +2881,7 @@
|
|||||||
index: Vs.userMutationsIndex,
|
index: Vs.userMutationsIndex,
|
||||||
range: s8
|
range: s8
|
||||||
}, (t, e, s)=>{
|
}, (t, e, s)=>{
|
||||||
e.userId === this.userId && (B(e.batchId >= n), i = fi(this.N, e)), s.done();
|
e.userId === this.userId && (e.batchId >= n || L(), i = fi(this.N, e)), s.done();
|
||||||
}).next(()=>i
|
}).next(()=>i
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -2923,7 +2920,7 @@
|
|||||||
const [o, c, a] = n, u = Rs(c);
|
const [o, c, a] = n, u = Rs(c);
|
||||||
if (o === this.userId && e.path.isEqual(u)) return Si(t87).get(a).next((t)=>{
|
if (o === this.userId && e.path.isEqual(u)) return Si(t87).get(a).next((t)=>{
|
||||||
if (!t) throw L();
|
if (!t) throw L();
|
||||||
B(t.userId === this.userId), i.push(fi(this.N, t));
|
t.userId === this.userId || L(), i.push(fi(this.N, t));
|
||||||
});
|
});
|
||||||
r.done();
|
r.done();
|
||||||
}).next(()=>i
|
}).next(()=>i
|
||||||
@ -2959,7 +2956,7 @@
|
|||||||
return e50.forEach((e)=>{
|
return e50.forEach((e)=>{
|
||||||
s.push(Si(t90).get(e).next((t)=>{
|
s.push(Si(t90).get(e).next((t)=>{
|
||||||
if (null === t) throw L();
|
if (null === t) throw L();
|
||||||
B(t.userId === this.userId), n.push(fi(this.N, t));
|
t.userId === this.userId || L(), n.push(fi(this.N, t));
|
||||||
}));
|
}));
|
||||||
}), js.waitFor(s).next(()=>n
|
}), js.waitFor(s).next(()=>n
|
||||||
);
|
);
|
||||||
@ -2973,7 +2970,7 @@
|
|||||||
}, (t, e, n)=>(c++, n.delete())
|
}, (t, e, n)=>(c++, n.delete())
|
||||||
);
|
);
|
||||||
r.push(a.next(()=>{
|
r.push(a.next(()=>{
|
||||||
B(1 === c);
|
1 === c || L();
|
||||||
}));
|
}));
|
||||||
const u = [];
|
const u = [];
|
||||||
for (const t91 of n20.mutations){
|
for (const t91 of n20.mutations){
|
||||||
@ -3003,7 +3000,7 @@
|
|||||||
s.push(e);
|
s.push(e);
|
||||||
} else n.done();
|
} else n.done();
|
||||||
}).next(()=>{
|
}).next(()=>{
|
||||||
B(0 === s.length);
|
0 === s.length || L();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -3460,7 +3457,7 @@
|
|||||||
}), e;
|
}), e;
|
||||||
}
|
}
|
||||||
removeMutationBatch(t, e) {
|
removeMutationBatch(t, e) {
|
||||||
B(0 === this.ys(e.batchId, "removed")), this.In.shift();
|
0 === this.ys(e.batchId, "removed") || L(), this.In.shift();
|
||||||
let n = this.ds;
|
let n = this.ds;
|
||||||
return js.forEach(e.mutations, (s)=>{
|
return js.forEach(e.mutations, (s)=>{
|
||||||
const i = new Pr(s.key, e.batchId);
|
const i = new Pr(s.key, e.batchId);
|
||||||
@ -3690,7 +3687,7 @@
|
|||||||
const n25 = t141.structuredQuery, s12 = n25.from ? n25.from.length : 0;
|
const n25 = t141.structuredQuery, s12 = n25.from ? n25.from.length : 0;
|
||||||
let i8 = null;
|
let i8 = null;
|
||||||
if (s12 > 0) {
|
if (s12 > 0) {
|
||||||
B(1 === s12);
|
1 === s12 || L();
|
||||||
const t = n25.from[0];
|
const t = n25.from[0];
|
||||||
t.allDescendants ? i8 = t.collectionId : e77 = e77.child(t.collectionId);
|
t.allDescendants ? i8 = t.collectionId : e77 = e77.child(t.collectionId);
|
||||||
}
|
}
|
||||||
@ -4141,7 +4138,7 @@
|
|||||||
var e90;
|
var e90;
|
||||||
if (!u) {
|
if (!u) {
|
||||||
const n = t.data[0];
|
const n = t.data[0];
|
||||||
B(!!n);
|
n || L();
|
||||||
const s = n, i = s.error || (null === (e90 = s[0]) || void 0 === e90 ? void 0 : e90.error);
|
const s = n, i = s.error || (null === (e90 = s[0]) || void 0 === e90 ? void 0 : e90.error);
|
||||||
if (i) {
|
if (i) {
|
||||||
$("Connection", "WebChannel received error:", i);
|
$("Connection", "WebChannel received error:", i);
|
||||||
@ -4286,7 +4283,7 @@
|
|||||||
if ("targetChange" in e95) {
|
if ("targetChange" in e95) {
|
||||||
var t162, t163, e93;
|
var t162, t163, e93;
|
||||||
e95.targetChange;
|
e95.targetChange;
|
||||||
const s = "NO_CHANGE" === (t162 = e95.targetChange.targetChangeType || "NO_CHANGE") ? 0 : "ADD" === t162 ? 1 : "REMOVE" === t162 ? 2 : "CURRENT" === t162 ? 3 : "RESET" === t162 ? 4 : L(), i = e95.targetChange.targetIds || [], r = (t163 = t165, e93 = e95.targetChange.resumeToken, t163.D ? (B(void 0 === e93 || "string" == typeof e93), _t.fromBase64String(e93 || "")) : (B(void 0 === e93 || e93 instanceof Uint8Array), _t.fromUint8Array(e93 || new Uint8Array))), o = e95.targetChange.cause, c = o && function(t) {
|
const s = "NO_CHANGE" === (t162 = e95.targetChange.targetChangeType || "NO_CHANGE") ? 0 : "ADD" === t162 ? 1 : "REMOVE" === t162 ? 2 : "CURRENT" === t162 ? 3 : "RESET" === t162 ? 4 : L(), i = e95.targetChange.targetIds || [], r = (t163 = t165, e93 = e95.targetChange.resumeToken, t163.D ? (void 0 === e93 || "string" == typeof e93 || L(), _t.fromBase64String(e93 || "")) : (void 0 === e93 || e93 instanceof Uint8Array || L(), _t.fromUint8Array(e93 || new Uint8Array))), o = e95.targetChange.cause, c = o && function(t) {
|
||||||
const e = void 0 === t.code ? K.UNKNOWN : dn(t.code);
|
const e = void 0 === t.code ? K.UNKNOWN : dn(t.code);
|
||||||
return new j(e, t.message || "");
|
return new j(e, t.message || "");
|
||||||
}(o);
|
}(o);
|
||||||
@ -4463,17 +4460,17 @@
|
|||||||
return this.sr.ji("Write", t);
|
return this.sr.ji("Write", t);
|
||||||
}
|
}
|
||||||
onMessage(t176) {
|
onMessage(t176) {
|
||||||
if (B(!!t176.streamToken), this.lastStreamToken = t176.streamToken, this.vr) {
|
|
||||||
var t174, e102;
|
var t174, e102;
|
||||||
|
if (t176.streamToken || L(), this.lastStreamToken = t176.streamToken, this.vr) {
|
||||||
this.ar.reset();
|
this.ar.reset();
|
||||||
const e101 = (t174 = t176.writeResults, e102 = t176.commitTime, t174 && t174.length > 0 ? (B(void 0 !== e102), t174.map((t)=>{
|
const e101 = (t174 = t176.writeResults, e102 = t176.commitTime, t174 && t174.length > 0 ? (void 0 !== e102 || L(), t174.map((t)=>{
|
||||||
var t175, e;
|
var t175, e;
|
||||||
let n;
|
let n;
|
||||||
return t175 = t, e = e102, (n = t175.updateTime ? jn(t175.updateTime) : jn(e)).isEqual(rt.min()) && (n = jn(e)), new We(n, t175.transformResults || []);
|
return t175 = t, e = e102, (n = t175.updateTime ? jn(t175.updateTime) : jn(e)).isEqual(rt.min()) && (n = jn(e)), new We(n, t175.transformResults || []);
|
||||||
})) : []), n31 = jn(t176.commitTime);
|
})) : []), n31 = jn(t176.commitTime);
|
||||||
return this.listener.Dr(n31, e101);
|
return this.listener.Dr(n31, e101);
|
||||||
}
|
}
|
||||||
return B(!t176.writeResults || 0 === t176.writeResults.length), this.vr = !0, this.listener.Cr();
|
return t176.writeResults && 0 !== t176.writeResults.length && L(), this.vr = !0, this.listener.Cr();
|
||||||
}
|
}
|
||||||
Nr() {
|
Nr() {
|
||||||
const t = {};
|
const t = {};
|
||||||
@ -4513,8 +4510,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
class io {
|
class io {
|
||||||
constructor(t180, e104, n, s, i){
|
constructor(t180, e103, n, s, i){
|
||||||
this.localStore = t180, this.datastore = e104, this.asyncQueue = n, this.remoteSyncer = {}, this.jr = [], this.Qr = new Map, this.Wr = new Set, this.Gr = [], this.zr = i, this.zr.Ti((t181)=>{
|
this.localStore = t180, this.datastore = e103, this.asyncQueue = n, this.remoteSyncer = {}, this.jr = [], this.Qr = new Map, this.Wr = new Set, this.Gr = [], this.zr = i, this.zr.Ti((t181)=>{
|
||||||
n.enqueueAndForget(async ()=>{
|
n.enqueueAndForget(async ()=>{
|
||||||
wo(this) && ($("RemoteStore", "Restarting streams for network reachability change."), await async function(t) {
|
wo(this) && ($("RemoteStore", "Restarting streams for network reachability change."), await async function(t) {
|
||||||
const e = t;
|
const e = t;
|
||||||
@ -4592,23 +4589,23 @@
|
|||||||
async function go(t, e) {
|
async function go(t, e) {
|
||||||
_o(t), fo(t) ? (t.Hr.qr(e), lo(t)) : t.Hr.set("Unknown");
|
_o(t), fo(t) ? (t.Hr.qr(e), lo(t)) : t.Hr.set("Unknown");
|
||||||
}
|
}
|
||||||
async function yo(t182, e105, n33) {
|
async function yo(t182, e104, n33) {
|
||||||
if (t182.Hr.set("Online"), e105 instanceof xn && 2 === e105.state && e105.cause) try {
|
if (t182.Hr.set("Online"), e104 instanceof xn && 2 === e104.state && e104.cause) try {
|
||||||
await async function(t, e) {
|
await async function(t, e) {
|
||||||
const n = e.cause;
|
const n = e.cause;
|
||||||
for (const s of e.targetIds)t.Qr.has(s) && (await t.remoteSyncer.rejectListen(s, n), t.Qr.delete(s), t.Jr.removeTarget(s));
|
for (const s of e.targetIds)t.Qr.has(s) && (await t.remoteSyncer.rejectListen(s, n), t.Qr.delete(s), t.Jr.removeTarget(s));
|
||||||
}(t182, e105);
|
}(t182, e104);
|
||||||
} catch (n34) {
|
} catch (n34) {
|
||||||
$("RemoteStore", "Failed to remove targets %s: %s ", e105.targetIds.join(","), n34), await po(t182, n34);
|
$("RemoteStore", "Failed to remove targets %s: %s ", e104.targetIds.join(","), n34), await po(t182, n34);
|
||||||
}
|
}
|
||||||
else if (e105 instanceof Cn ? t182.Jr.rt(e105) : e105 instanceof Nn ? t182.Jr.ft(e105) : t182.Jr.at(e105), !n33.isEqual(rt.min())) try {
|
else if (e104 instanceof Cn ? t182.Jr.rt(e104) : e104 instanceof Nn ? t182.Jr.ft(e104) : t182.Jr.at(e104), !n33.isEqual(rt.min())) try {
|
||||||
const e106 = await fr(t182.localStore);
|
const e105 = await fr(t182.localStore);
|
||||||
n33.compareTo(e106) >= 0 && await function(t, e108) {
|
n33.compareTo(e105) >= 0 && await function(t, e107) {
|
||||||
const n35 = t.Jr._t(e108);
|
const n35 = t.Jr._t(e107);
|
||||||
return n35.targetChanges.forEach((n, s)=>{
|
return n35.targetChanges.forEach((n, s)=>{
|
||||||
if (n.resumeToken.approximateByteSize() > 0) {
|
if (n.resumeToken.approximateByteSize() > 0) {
|
||||||
const i = t.Qr.get(s);
|
const i = t.Qr.get(s);
|
||||||
i && t.Qr.set(s, i.withResumeToken(n.resumeToken, e108));
|
i && t.Qr.set(s, i.withResumeToken(n.resumeToken, e107));
|
||||||
}
|
}
|
||||||
}), n35.targetMismatches.forEach((e)=>{
|
}), n35.targetMismatches.forEach((e)=>{
|
||||||
const n = t.Qr.get(e);
|
const n = t.Qr.get(e);
|
||||||
@ -4674,8 +4671,8 @@
|
|||||||
await To(t, ()=>t.remoteSyncer.applySuccessfulWrite(i)
|
await To(t, ()=>t.remoteSyncer.applySuccessfulWrite(i)
|
||||||
), await Eo(t);
|
), await Eo(t);
|
||||||
}
|
}
|
||||||
async function So(t184, e109) {
|
async function So(t184, e108) {
|
||||||
e109 && No(t184).Vr && await async function(t185, e) {
|
e108 && No(t184).Vr && await async function(t185, e) {
|
||||||
var n;
|
var n;
|
||||||
if (function(t) {
|
if (function(t) {
|
||||||
switch(t){
|
switch(t){
|
||||||
@ -4705,7 +4702,7 @@
|
|||||||
No(t185).dr(), await To(t185, ()=>t185.remoteSyncer.rejectFailedWrite(n.batchId, e)
|
No(t185).dr(), await To(t185, ()=>t185.remoteSyncer.rejectFailedWrite(n.batchId, e)
|
||||||
), await Eo(t185);
|
), await Eo(t185);
|
||||||
}
|
}
|
||||||
}(t184, e109), Ro(t184) && bo(t184);
|
}(t184, e108), Ro(t184) && bo(t184);
|
||||||
}
|
}
|
||||||
async function Do(t, e) {
|
async function Do(t, e) {
|
||||||
const n = t;
|
const n = t;
|
||||||
@ -4991,9 +4988,9 @@
|
|||||||
get Ro() {
|
get Ro() {
|
||||||
return this.po;
|
return this.po;
|
||||||
}
|
}
|
||||||
bo(t195, e110) {
|
bo(t195, e109) {
|
||||||
const n = e110 ? e110.Po : new Oo, s = e110 ? e110.Ao : this.Ao;
|
const n = e109 ? e109.Po : new Oo, s = e109 ? e109.Ao : this.Ao;
|
||||||
let i = e110 ? e110.mutatedKeys : this.mutatedKeys, r = s, o = !1;
|
let i = e109 ? e109.mutatedKeys : this.mutatedKeys, r = s, o = !1;
|
||||||
const c = _e(this.query) && s.size === this.query.limit ? s.last() : null, a = me(this.query) && s.size === this.query.limit ? s.first() : null;
|
const c = _e(this.query) && s.size === this.query.limit ? s.last() : null, a = me(this.query) && s.size === this.query.limit ? s.first() : null;
|
||||||
if (t195.inorderTraversal((t, e)=>{
|
if (t195.inorderTraversal((t, e)=>{
|
||||||
const u = s.get(t), h = Pe(this.query, e) ? e : null, l = !!u && this.mutatedKeys.has(u.key), f = !!h && (h.hasLocalMutations || this.mutatedKeys.has(h.key) && h.hasCommittedMutations);
|
const u = s.get(t), h = Pe(this.query, e) ? e : null, l = !!u && this.mutatedKeys.has(u.key), f = !!h && (h.hasLocalMutations || this.mutatedKeys.has(h.key) && h.hasCommittedMutations);
|
||||||
@ -5028,11 +5025,11 @@
|
|||||||
vo(t, e) {
|
vo(t, e) {
|
||||||
return t.hasLocalMutations && e.hasCommittedMutations && !e.hasLocalMutations;
|
return t.hasLocalMutations && e.hasCommittedMutations && !e.hasLocalMutations;
|
||||||
}
|
}
|
||||||
applyChanges(t196, e111, n36) {
|
applyChanges(t196, e110, n36) {
|
||||||
const s = this.Ao;
|
const s = this.Ao;
|
||||||
this.Ao = t196.Ao, this.mutatedKeys = t196.mutatedKeys;
|
this.Ao = t196.Ao, this.mutatedKeys = t196.mutatedKeys;
|
||||||
const i = t196.Po.eo();
|
const i = t196.Po.eo();
|
||||||
i.sort((t197, e112)=>(function(t198, e) {
|
i.sort((t197, e111)=>(function(t198, e) {
|
||||||
const n = (t)=>{
|
const n = (t)=>{
|
||||||
switch(t){
|
switch(t){
|
||||||
case 0:
|
case 0:
|
||||||
@ -5047,9 +5044,9 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
return n(t198) - n(e);
|
return n(t198) - n(e);
|
||||||
})(t197.type, e112.type) || this.Io(t197.doc, e112.doc)
|
})(t197.type, e111.type) || this.Io(t197.doc, e111.doc)
|
||||||
), this.Vo(n36);
|
), this.Vo(n36);
|
||||||
const r = e111 ? this.So() : [], o = 0 === this.Eo.size && this.current ? 1 : 0, c = o !== this.To;
|
const r = e110 ? this.So() : [], o = 0 === this.Eo.size && this.current ? 1 : 0, c = o !== this.To;
|
||||||
return (this.To = o, 0 !== i.length || c) ? {
|
return (this.To = o, 0 !== i.length || c) ? {
|
||||||
snapshot: new Fo(this.query, t196.Ao, s, i, t196.mutatedKeys, 0 === o, c, !1),
|
snapshot: new Fo(this.query, t196.Ao, s, i, t196.mutatedKeys, 0 === o, c, !1),
|
||||||
Do: r
|
Do: r
|
||||||
@ -5116,10 +5113,10 @@
|
|||||||
return !0 === this.Qo;
|
return !0 === this.Qo;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
async function nc(t203, e113) {
|
async function nc(t203, e112) {
|
||||||
const n37 = Cc(t203);
|
const n37 = Cc(t203);
|
||||||
let s15, i10;
|
let s15, i10;
|
||||||
const r = n37.Oo.get(e113);
|
const r = n37.Oo.get(e112);
|
||||||
if (r) s15 = r.targetId, n37.sharedClientState.addLocalQueryTarget(s15), i10 = r.view.xo();
|
if (r) s15 = r.targetId, n37.sharedClientState.addLocalQueryTarget(s15), i10 = r.view.xo();
|
||||||
else {
|
else {
|
||||||
const t202 = await function(t204, e) {
|
const t202 = await function(t204, e) {
|
||||||
@ -5134,25 +5131,25 @@
|
|||||||
const s = n.Un.get(t.targetId);
|
const s = n.Un.get(t.targetId);
|
||||||
return (null === s || t.snapshotVersion.compareTo(s.snapshotVersion) > 0) && (n.Un = n.Un.insert(t.targetId, t), n.qn.set(e, t.targetId)), t;
|
return (null === s || t.snapshotVersion.compareTo(s.snapshotVersion) > 0) && (n.Un = n.Un.insert(t.targetId, t), n.qn.set(e, t.targetId)), t;
|
||||||
});
|
});
|
||||||
}(n37.localStore, Ee(e113)), r = n37.sharedClientState.addLocalQueryTarget(t202.targetId);
|
}(n37.localStore, Ee(e112)), r = n37.sharedClientState.addLocalQueryTarget(t202.targetId);
|
||||||
i10 = await sc(n37, e113, s15 = t202.targetId, "current" === r), n37.isPrimaryClient && co(n37.remoteStore, t202);
|
i10 = await sc(n37, e112, s15 = t202.targetId, "current" === r), n37.isPrimaryClient && co(n37.remoteStore, t202);
|
||||||
}
|
}
|
||||||
return i10;
|
return i10;
|
||||||
}
|
}
|
||||||
async function sc(t205, e114, n38, s16) {
|
async function sc(t205, e113, n38, s16) {
|
||||||
t205.Wo = (e115, n39, s17)=>(async function(t206, e, n, s) {
|
t205.Wo = (e114, n39, s17)=>(async function(t206, e, n, s) {
|
||||||
let i = e.view.bo(n);
|
let i = e.view.bo(n);
|
||||||
i.Ln && (i = await yr(t206.localStore, e.query, !1).then(({ documents: t })=>e.view.bo(t, i)
|
i.Ln && (i = await yr(t206.localStore, e.query, !1).then(({ documents: t })=>e.view.bo(t, i)
|
||||||
));
|
));
|
||||||
const r = s && s.targetChanges.get(e.targetId), o = e.view.applyChanges(i, t206.isPrimaryClient, r);
|
const r = s && s.targetChanges.get(e.targetId), o = e.view.applyChanges(i, t206.isPrimaryClient, r);
|
||||||
return mc(t206, e.targetId, o.Do), o.snapshot;
|
return mc(t206, e.targetId, o.Do), o.snapshot;
|
||||||
})(t205, e115, n39, s17)
|
})(t205, e114, n39, s17)
|
||||||
;
|
;
|
||||||
const i12 = await yr(t205.localStore, e114, !0), r6 = new Xo(e114, i12.Gn), o3 = r6.bo(i12.documents), c = Dn.createSynthesizedTargetChangeForCurrentChange(n38, s16 && "Offline" !== t205.onlineState), a = r6.applyChanges(o3, t205.isPrimaryClient, c);
|
const i12 = await yr(t205.localStore, e113, !0), r6 = new Xo(e113, i12.Gn), o3 = r6.bo(i12.documents), c = Dn.createSynthesizedTargetChangeForCurrentChange(n38, s16 && "Offline" !== t205.onlineState), a = r6.applyChanges(o3, t205.isPrimaryClient, c);
|
||||||
mc(t205, n38, a.Do);
|
mc(t205, n38, a.Do);
|
||||||
const u = new Zo(e114, n38, r6);
|
const u = new Zo(e113, n38, r6);
|
||||||
return t205.Oo.set(e114, u), t205.Fo.has(n38) ? t205.Fo.get(n38).push(e114) : t205.Fo.set(n38, [
|
return t205.Oo.set(e113, u), t205.Fo.has(n38) ? t205.Fo.get(n38).push(e113) : t205.Fo.set(n38, [
|
||||||
e114
|
e113
|
||||||
]), a.snapshot;
|
]), a.snapshot;
|
||||||
}
|
}
|
||||||
async function ic(t207, e) {
|
async function ic(t207, e) {
|
||||||
@ -5163,40 +5160,40 @@
|
|||||||
n.sharedClientState.clearQueryState(s.targetId), ao(n.remoteStore, s.targetId), wc(n, s.targetId);
|
n.sharedClientState.clearQueryState(s.targetId), ao(n.remoteStore, s.targetId), wc(n, s.targetId);
|
||||||
}).catch(Fi)) : (wc(n, s.targetId), await gr(n.localStore, s.targetId, !0));
|
}).catch(Fi)) : (wc(n, s.targetId), await gr(n.localStore, s.targetId, !0));
|
||||||
}
|
}
|
||||||
async function oc(t210, e116) {
|
async function oc(t210, e115) {
|
||||||
const n40 = t210;
|
const n40 = t210;
|
||||||
try {
|
try {
|
||||||
const t208 = await function(t211, e119) {
|
const t208 = await function(t211, e118) {
|
||||||
const n43 = t211, s19 = e119.snapshotVersion;
|
const n43 = t211, s19 = e118.snapshotVersion;
|
||||||
let i = n43.Un;
|
let i = n43.Un;
|
||||||
return n43.persistence.runTransaction("Apply remote event", "readwrite-primary", (t213)=>{
|
return n43.persistence.runTransaction("Apply remote event", "readwrite-primary", (t213)=>{
|
||||||
var t209, e117, n41, s18, i13;
|
var t209, e116, n41, s18, i13;
|
||||||
const r8 = n43.jn.newChangeBuffer({
|
const r8 = n43.jn.newChangeBuffer({
|
||||||
trackRemovals: !0
|
trackRemovals: !0
|
||||||
});
|
});
|
||||||
i = n43.Un;
|
i = n43.Un;
|
||||||
const o4 = [];
|
const o4 = [];
|
||||||
e119.targetChanges.forEach((e, r)=>{
|
e118.targetChanges.forEach((e, r)=>{
|
||||||
const c = i.get(r);
|
const c = i.get(r);
|
||||||
if (!c) return;
|
if (!c) return;
|
||||||
o4.push(n43.ze.removeMatchingKeys(t213, e.removedDocuments, r).next(()=>n43.ze.addMatchingKeys(t213, e.addedDocuments, r)
|
o4.push(n43.ze.removeMatchingKeys(t213, e.removedDocuments, r).next(()=>n43.ze.addMatchingKeys(t213, e.addedDocuments, r)
|
||||||
));
|
));
|
||||||
const a = e.resumeToken;
|
const a = e.resumeToken;
|
||||||
if (a.approximateByteSize() > 0) {
|
if (a.approximateByteSize() > 0) {
|
||||||
var t212, e118, n42;
|
var t212, e117, n42;
|
||||||
const u = c.withResumeToken(a, s19).withSequenceNumber(t213.currentSequenceNumber);
|
const u = c.withResumeToken(a, s19).withSequenceNumber(t213.currentSequenceNumber);
|
||||||
i = i.insert(r, u), t212 = c, e118 = u, n42 = e, ((B(e118.resumeToken.approximateByteSize() > 0), 0 === t212.resumeToken.approximateByteSize()) ? 0 : e118.snapshotVersion.toMicroseconds() - t212.snapshotVersion.toMicroseconds() >= 3e8 ? 0 : !(n42.addedDocuments.size + n42.modifiedDocuments.size + n42.removedDocuments.size > 0)) || o4.push(n43.ze.updateTargetData(t213, u));
|
i = i.insert(r, u), t212 = c, e117 = u, n42 = e, ((e117.resumeToken.approximateByteSize() > 0 || L(), 0 === t212.resumeToken.approximateByteSize()) ? 0 : e117.snapshotVersion.toMicroseconds() - t212.snapshotVersion.toMicroseconds() >= 3e8 ? 0 : !(n42.addedDocuments.size + n42.modifiedDocuments.size + n42.removedDocuments.size > 0)) || o4.push(n43.ze.updateTargetData(t213, u));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
let c2 = pn, r7;
|
let c2 = pn, r7;
|
||||||
if (e119.documentUpdates.forEach((s, i)=>{
|
if (e118.documentUpdates.forEach((s, i)=>{
|
||||||
e119.resolvedLimboDocuments.has(s) && o4.push(n43.persistence.referenceDelegate.updateLimboDocument(t213, s));
|
e118.resolvedLimboDocuments.has(s) && o4.push(n43.persistence.referenceDelegate.updateLimboDocument(t213, s));
|
||||||
}), o4.push((t209 = t213, e117 = r8, n41 = e119.documentUpdates, s18 = s19, i13 = void 0, r7 = Pn(), n41.forEach((t)=>r7 = r7.add(t)
|
}), o4.push((t209 = t213, e116 = r8, n41 = e118.documentUpdates, s18 = s19, i13 = void 0, r7 = Pn(), n41.forEach((t)=>r7 = r7.add(t)
|
||||||
), e117.getEntries(t209, r7).next((t)=>{
|
), e116.getEntries(t209, r7).next((t)=>{
|
||||||
let r = pn;
|
let r = pn;
|
||||||
return n41.forEach((n, o)=>{
|
return n41.forEach((n, o)=>{
|
||||||
const c = t.get(n), a = (null == i13 ? void 0 : i13.get(n)) || s18;
|
const c = t.get(n), a = (null == i13 ? void 0 : i13.get(n)) || s18;
|
||||||
o.isNoDocument() && o.version.isEqual(rt.min()) ? (e117.removeEntry(n, a), r = r.insert(n, o)) : !c.isValidDocument() || o.version.compareTo(c.version) > 0 || 0 === o.version.compareTo(c.version) && c.hasPendingWrites ? (e117.addEntry(o, a), r = r.insert(n, o)) : $("LocalStore", "Ignoring outdated watch update for ", n, ". Current version:", c.version, " Watch version:", o.version);
|
o.isNoDocument() && o.version.isEqual(rt.min()) ? (e116.removeEntry(n, a), r = r.insert(n, o)) : !c.isValidDocument() || o.version.compareTo(c.version) > 0 || 0 === o.version.compareTo(c.version) && c.hasPendingWrites ? (e116.addEntry(o, a), r = r.insert(n, o)) : $("LocalStore", "Ignoring outdated watch update for ", n, ". Current version:", c.version, " Watch version:", o.version);
|
||||||
}), r;
|
}), r;
|
||||||
})).next((t)=>{
|
})).next((t)=>{
|
||||||
c2 = t;
|
c2 = t;
|
||||||
@ -5211,21 +5208,21 @@
|
|||||||
);
|
);
|
||||||
}).then((t)=>(n43.Un = i, t)
|
}).then((t)=>(n43.Un = i, t)
|
||||||
);
|
);
|
||||||
}(n40.localStore, e116);
|
}(n40.localStore, e115);
|
||||||
e116.targetChanges.forEach((t, e)=>{
|
e115.targetChanges.forEach((t, e)=>{
|
||||||
const s = n40.Bo.get(e);
|
const s = n40.Bo.get(e);
|
||||||
s && (B(t.addedDocuments.size + t.modifiedDocuments.size + t.removedDocuments.size <= 1), t.addedDocuments.size > 0 ? s.ko = !0 : t.modifiedDocuments.size > 0 ? B(s.ko) : t.removedDocuments.size > 0 && (B(s.ko), s.ko = !1));
|
s && (t.addedDocuments.size + t.modifiedDocuments.size + t.removedDocuments.size <= 1 || L(), t.addedDocuments.size > 0 ? s.ko = !0 : t.modifiedDocuments.size > 0 ? s.ko || L() : t.removedDocuments.size > 0 && (s.ko || L(), s.ko = !1));
|
||||||
}), await pc(n40, t208, e116);
|
}), await pc(n40, t208, e115);
|
||||||
} catch (t) {
|
} catch (t) {
|
||||||
await Fi(t);
|
await Fi(t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function cc(t, e120, n44) {
|
function cc(t, e119, n44) {
|
||||||
const s20 = t;
|
const s20 = t;
|
||||||
if (s20.isPrimaryClient && 0 === n44 || !s20.isPrimaryClient && 1 === n44) {
|
if (s20.isPrimaryClient && 0 === n44 || !s20.isPrimaryClient && 1 === n44) {
|
||||||
const t214 = [];
|
const t214 = [];
|
||||||
s20.Oo.forEach((n, s)=>{
|
s20.Oo.forEach((n, s)=>{
|
||||||
const i = s.view.io(e120);
|
const i = s.view.io(e119);
|
||||||
i.snapshot && t214.push(i.snapshot);
|
i.snapshot && t214.push(i.snapshot);
|
||||||
}), function(t, e) {
|
}), function(t, e) {
|
||||||
const n45 = t;
|
const n45 = t;
|
||||||
@ -5234,7 +5231,7 @@
|
|||||||
n45.queries.forEach((t, n)=>{
|
n45.queries.forEach((t, n)=>{
|
||||||
for (const t215 of n.listeners)t215.io(e) && (s = !0);
|
for (const t215 of n.listeners)t215.io(e) && (s = !0);
|
||||||
}), s && jo(n45);
|
}), s && jo(n45);
|
||||||
}(s20.eventManager, e120), t214.length && s20.$o.Rr(t214), s20.onlineState = e120, s20.isPrimaryClient && s20.sharedClientState.setOnlineState(e120);
|
}(s20.eventManager, e119), t214.length && s20.$o.Rr(t214), s20.onlineState = e119, s20.isPrimaryClient && s20.sharedClientState.setOnlineState(e119);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
async function ac(t, e, n) {
|
async function ac(t, e, n) {
|
||||||
@ -5249,9 +5246,9 @@
|
|||||||
} else await gr(s.localStore, e, !1).then(()=>wc(s, e, n)
|
} else await gr(s.localStore, e, !1).then(()=>wc(s, e, n)
|
||||||
).catch(Fi);
|
).catch(Fi);
|
||||||
}
|
}
|
||||||
function wc(t, e121, n = null) {
|
function wc(t, e120, n = null) {
|
||||||
for (const s of (t.sharedClientState.removeLocalQueryTarget(e121), t.Fo.get(e121)))t.Oo.delete(s), n && t.$o.Go(s, n);
|
for (const s of (t.sharedClientState.removeLocalQueryTarget(e120), t.Fo.get(e120)))t.Oo.delete(s), n && t.$o.Go(s, n);
|
||||||
t.Fo.delete(e121), t.isPrimaryClient && t.Uo.cs(e121).forEach((e)=>{
|
t.Fo.delete(e120), t.isPrimaryClient && t.Uo.cs(e120).forEach((e)=>{
|
||||||
t.Uo.containsKey(e) || _c(t, e);
|
t.Uo.containsKey(e) || _c(t, e);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -5275,20 +5272,20 @@
|
|||||||
t.Bo.set(s, new tc(n)), t.Lo = t.Lo.insert(n, s), co(t.remoteStore, new ii(Ee(we(n.path)), s, 2, X.T));
|
t.Bo.set(s, new tc(n)), t.Lo = t.Lo.insert(n, s), co(t.remoteStore, new ii(Ee(we(n.path)), s, 2, X.T));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
async function pc(t216, e122, n46) {
|
async function pc(t216, e121, n46) {
|
||||||
const s21 = t216, i14 = [], r = [], o = [];
|
const s21 = t216, i14 = [], r = [], o = [];
|
||||||
s21.Oo.isEmpty() || (s21.Oo.forEach((t217, c)=>{
|
s21.Oo.isEmpty() || (s21.Oo.forEach((t217, c)=>{
|
||||||
o.push(s21.Wo(c, e122, n46).then((t)=>{
|
o.push(s21.Wo(c, e121, n46).then((t)=>{
|
||||||
if (t) {
|
if (t) {
|
||||||
s21.isPrimaryClient && s21.sharedClientState.updateQueryState(c.targetId, t.fromCache ? "not-current" : "current"), i14.push(t);
|
s21.isPrimaryClient && s21.sharedClientState.updateQueryState(c.targetId, t.fromCache ? "not-current" : "current"), i14.push(t);
|
||||||
const e = or.kn(c.targetId, t);
|
const e = or.kn(c.targetId, t);
|
||||||
r.push(e);
|
r.push(e);
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}), await Promise.all(o), s21.$o.Rr(i14), await async function(t219, e123) {
|
}), await Promise.all(o), s21.$o.Rr(i14), await async function(t219, e122) {
|
||||||
const n = t219;
|
const n = t219;
|
||||||
try {
|
try {
|
||||||
await n.persistence.runTransaction("notifyLocalViewChanges", "readwrite", (t)=>js.forEach(e123, (e)=>js.forEach(e.Nn, (s)=>n.persistence.referenceDelegate.addReference(t, e.targetId, s)
|
await n.persistence.runTransaction("notifyLocalViewChanges", "readwrite", (t)=>js.forEach(e122, (e)=>js.forEach(e.Nn, (s)=>n.persistence.referenceDelegate.addReference(t, e.targetId, s)
|
||||||
).next(()=>js.forEach(e.xn, (s)=>n.persistence.referenceDelegate.removeReference(t, e.targetId, s)
|
).next(()=>js.forEach(e.xn, (s)=>n.persistence.referenceDelegate.removeReference(t, e.targetId, s)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -5298,7 +5295,7 @@
|
|||||||
if (!Hs(t)) throw t;
|
if (!Hs(t)) throw t;
|
||||||
$("LocalStore", "Failed to update sequence numbers: " + t);
|
$("LocalStore", "Failed to update sequence numbers: " + t);
|
||||||
}
|
}
|
||||||
for (const t218 of e123){
|
for (const t218 of e122){
|
||||||
const e = t218.targetId;
|
const e = t218.targetId;
|
||||||
if (!t218.fromCache) {
|
if (!t218.fromCache) {
|
||||||
const t = n.Un.get(e), s = t.snapshotVersion, i = t.withLastLimboFreeSnapshotVersion(s);
|
const t = n.Un.get(e), s = t.snapshotVersion, i = t.withLastLimboFreeSnapshotVersion(s);
|
||||||
@ -5308,14 +5305,14 @@
|
|||||||
}(s21.localStore, r));
|
}(s21.localStore, r));
|
||||||
}
|
}
|
||||||
async function Tc(t222, e) {
|
async function Tc(t222, e) {
|
||||||
var t220, e124;
|
var t220, e123;
|
||||||
const n = t222;
|
const n = t222;
|
||||||
if (!n.currentUser.isEqual(e)) {
|
if (!n.currentUser.isEqual(e)) {
|
||||||
$("SyncEngine", "User change. New user:", e.toKey());
|
$("SyncEngine", "User change. New user:", e.toKey());
|
||||||
const t221 = await hr(n.localStore, e);
|
const t221 = await hr(n.localStore, e);
|
||||||
n.currentUser = e, e124 = "'waitForPendingWrites' promise is rejected due to a user change.", (t220 = n).Ko.forEach((t223)=>{
|
n.currentUser = e, e123 = "'waitForPendingWrites' promise is rejected due to a user change.", (t220 = n).Ko.forEach((t223)=>{
|
||||||
t223.forEach((t)=>{
|
t223.forEach((t)=>{
|
||||||
t.reject(new j(K.CANCELLED, e124));
|
t.reject(new j(K.CANCELLED, e123));
|
||||||
});
|
});
|
||||||
}), t220.Ko.clear(), n.sharedClientState.handleUserChange(e, t221.removedBatchIds, t221.addedBatchIds), await pc(n, t221.Wn);
|
}), t220.Ko.clear(), n.sharedClientState.handleUserChange(e, t221.removedBatchIds, t221.addedBatchIds), await pc(n, t221.Wn);
|
||||||
}
|
}
|
||||||
@ -5327,8 +5324,8 @@
|
|||||||
let t = Pn();
|
let t = Pn();
|
||||||
const s = n.Fo.get(e);
|
const s = n.Fo.get(e);
|
||||||
if (!s) return t;
|
if (!s) return t;
|
||||||
for (const e125 of s){
|
for (const e124 of s){
|
||||||
const s = n.Oo.get(e125);
|
const s = n.Oo.get(e124);
|
||||||
t = t.unionWith(s.view.Ro);
|
t = t.unionWith(s.view.Ro);
|
||||||
}
|
}
|
||||||
return t;
|
return t;
|
||||||
@ -5372,19 +5369,19 @@
|
|||||||
}
|
}
|
||||||
createDatastore(t) {
|
createDatastore(t) {
|
||||||
var s, t226, e, n;
|
var s, t226, e, n;
|
||||||
const e126 = Yr(t.databaseInfo.databaseId), n47 = (s = t.databaseInfo, new zr(s));
|
const e125 = Yr(t.databaseInfo.databaseId), n47 = (s = t.databaseInfo, new zr(s));
|
||||||
return t226 = t.credentials, e = n47, n = e126, new no(t226, e, n);
|
return t226 = t.credentials, e = n47, n = e125, new no(t226, e, n);
|
||||||
}
|
}
|
||||||
createRemoteStore(t227) {
|
createRemoteStore(t227) {
|
||||||
var e, n, s, i, r;
|
var e, n, s, i, r;
|
||||||
return e = this.localStore, n = this.datastore, s = t227.asyncQueue, i = (t)=>cc(this.syncEngine, t, 0)
|
return e = this.localStore, n = this.datastore, s = t227.asyncQueue, i = (t)=>cc(this.syncEngine, t, 0)
|
||||||
, r = Qr.bt() ? new Qr : new jr, new io(e, n, s, i, r);
|
, r = Qr.bt() ? new Qr : new jr, new io(e, n, s, i, r);
|
||||||
}
|
}
|
||||||
createSyncEngine(t228, e127) {
|
createSyncEngine(t228, e126) {
|
||||||
return function(t, e, n, s, i, r, o) {
|
return function(t, e, n, s, i, r, o) {
|
||||||
const c = new ec(t, e, n, s, i, r);
|
const c = new ec(t, e, n, s, i, r);
|
||||||
return o && (c.Qo = !0), c;
|
return o && (c.Qo = !0), c;
|
||||||
}(this.localStore, this.remoteStore, this.eventManager, this.sharedClientState, t228.initialUser, t228.maxConcurrentLimboResolutions, e127);
|
}(this.localStore, this.remoteStore, this.eventManager, this.sharedClientState, t228.initialUser, t228.maxConcurrentLimboResolutions, e126);
|
||||||
}
|
}
|
||||||
terminate() {
|
terminate() {
|
||||||
return async function(t) {
|
return async function(t) {
|
||||||
@ -5413,8 +5410,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
class Kc {
|
class Kc {
|
||||||
constructor(t229, e128, n48){
|
constructor(t229, e127, n48){
|
||||||
this.credentials = t229, this.asyncQueue = e128, this.databaseInfo = n48, this.user = D.UNAUTHENTICATED, this.clientId = (class {
|
this.credentials = t229, this.asyncQueue = e127, this.databaseInfo = n48, this.user = D.UNAUTHENTICATED, this.clientId = (class {
|
||||||
static I() {
|
static I() {
|
||||||
const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", e = Math.floor(256 / t.length) * t.length;
|
const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", e = Math.floor(256 / t.length) * t.length;
|
||||||
let n = "";
|
let n = "";
|
||||||
@ -5425,7 +5422,7 @@
|
|||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
}).I(), this.credentialListener = ()=>Promise.resolve()
|
}).I(), this.credentialListener = ()=>Promise.resolve()
|
||||||
, this.credentials.start(e128, async (t)=>{
|
, this.credentials.start(e127, async (t)=>{
|
||||||
$("FirestoreClient", "Received user=", t.uid), await this.credentialListener(t), this.user = t;
|
$("FirestoreClient", "Received user=", t.uid), await this.credentialListener(t), this.user = t;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -5468,18 +5465,18 @@
|
|||||||
}), e.persistence.setDatabaseDeletedListener(()=>t230.terminate()
|
}), e.persistence.setDatabaseDeletedListener(()=>t230.terminate()
|
||||||
), t230.offlineComponents = e;
|
), t230.offlineComponents = e;
|
||||||
}
|
}
|
||||||
async function Qc(t231, e129) {
|
async function Qc(t231, e128) {
|
||||||
t231.asyncQueue.verifyOperationInProgress();
|
t231.asyncQueue.verifyOperationInProgress();
|
||||||
const n49 = await Wc(t231);
|
const n49 = await Wc(t231);
|
||||||
$("FirestoreClient", "Initializing OnlineComponentProvider");
|
$("FirestoreClient", "Initializing OnlineComponentProvider");
|
||||||
const s22 = await t231.getConfiguration();
|
const s22 = await t231.getConfiguration();
|
||||||
await e129.initialize(n49, s22), t231.setCredentialChangeListener((t232)=>(async function(t, e) {
|
await e128.initialize(n49, s22), t231.setCredentialChangeListener((t232)=>(async function(t, e) {
|
||||||
const n = t;
|
const n = t;
|
||||||
n.asyncQueue.verifyOperationInProgress(), $("RemoteStore", "RemoteStore received new credentials");
|
n.asyncQueue.verifyOperationInProgress(), $("RemoteStore", "RemoteStore received new credentials");
|
||||||
const s = wo(n);
|
const s = wo(n);
|
||||||
n.Wr.add(3), await oo(n), s && n.Hr.set("Unknown"), await n.remoteSyncer.handleCredentialChange(e), n.Wr.delete(3), await ro(n);
|
n.Wr.add(3), await oo(n), s && n.Hr.set("Unknown"), await n.remoteSyncer.handleCredentialChange(e), n.Wr.delete(3), await ro(n);
|
||||||
})(e129.remoteStore, t232)
|
})(e128.remoteStore, t232)
|
||||||
), t231.onlineComponents = e129;
|
), t231.onlineComponents = e128;
|
||||||
}
|
}
|
||||||
async function Wc(t) {
|
async function Wc(t) {
|
||||||
return t.offlineComponents || ($("FirestoreClient", "Using default OfflineComponentProvider"), await jc(t, new kc)), t.offlineComponents;
|
return t.offlineComponents || ($("FirestoreClient", "Using default OfflineComponentProvider"), await jc(t, new kc)), t.offlineComponents;
|
||||||
@ -5538,11 +5535,11 @@
|
|||||||
}
|
}
|
||||||
class pa {
|
class pa {
|
||||||
constructor(t234){
|
constructor(t234){
|
||||||
var e130;
|
var e129;
|
||||||
if (void 0 === t234.host) {
|
if (void 0 === t234.host) {
|
||||||
if (void 0 !== t234.ssl) throw new j(K.INVALID_ARGUMENT, "Can't provide ssl option if host option is not set");
|
if (void 0 !== t234.ssl) throw new j(K.INVALID_ARGUMENT, "Can't provide ssl option if host option is not set");
|
||||||
this.host = "firestore.googleapis.com", this.ssl = !0;
|
this.host = "firestore.googleapis.com", this.ssl = !0;
|
||||||
} else this.host = t234.host, this.ssl = null === (e130 = t234.ssl) || void 0 === e130 || e130;
|
} else this.host = t234.host, this.ssl = null === (e129 = t234.ssl) || void 0 === e129 || e129;
|
||||||
if (this.credentials = t234.credentials, this.ignoreUndefinedProperties = !!t234.ignoreUndefinedProperties, void 0 === t234.cacheSizeBytes) this.cacheSizeBytes = 41943040;
|
if (this.credentials = t234.credentials, this.ignoreUndefinedProperties = !!t234.ignoreUndefinedProperties, void 0 === t234.cacheSizeBytes) this.cacheSizeBytes = 41943040;
|
||||||
else {
|
else {
|
||||||
if (-1 !== t234.cacheSizeBytes && t234.cacheSizeBytes < 1048576) throw new j(K.INVALID_ARGUMENT, "cacheSizeBytes must be at least 1048576");
|
if (-1 !== t234.cacheSizeBytes && t234.cacheSizeBytes < 1048576) throw new j(K.INVALID_ARGUMENT, "cacheSizeBytes must be at least 1048576");
|
||||||
@ -5582,7 +5579,7 @@
|
|||||||
switch(t.type){
|
switch(t.type){
|
||||||
case "gapi":
|
case "gapi":
|
||||||
const e = t.client;
|
const e = t.client;
|
||||||
return B(!("object" != typeof e || null === e || !e.auth || !e.auth.getAuthHeaderValueForFirstParty)), new Y(e, t.sessionIndex || "0", t.iamToken || null);
|
return "object" == typeof e && null !== e && e.auth && e.auth.getAuthHeaderValueForFirstParty || L(), new Y(e, t.sessionIndex || "0", t.iamToken || null);
|
||||||
case "provider":
|
case "provider":
|
||||||
return t.client;
|
return t.client;
|
||||||
default:
|
default:
|
||||||
@ -5659,22 +5656,22 @@
|
|||||||
return new Ra(this.firestore, t, this._path);
|
return new Ra(this.firestore, t, this._path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function ba(t237, e131, ...n50) {
|
function ba(t237, e130, ...n50) {
|
||||||
if (t237 = (0, _firebase_util__WEBPACK_IMPORTED_MODULE_3__.m9)(t237), function(t, e, n) {
|
if (t237 = (0, _firebase_util__WEBPACK_IMPORTED_MODULE_3__.m9)(t237), function(t, e, n) {
|
||||||
if (!n) throw new j(K.INVALID_ARGUMENT, `Function ${t}() cannot be called with an empty ${e}.`);
|
if (!n) throw new j(K.INVALID_ARGUMENT, `Function ${t}() cannot be called with an empty ${e}.`);
|
||||||
}("collection", "path", e131), t237 instanceof Ta) {
|
}("collection", "path", e130), t237 instanceof Ta) {
|
||||||
const s = ht.fromString(e131, ...n50);
|
const s = ht.fromString(e130, ...n50);
|
||||||
return _a(s), new Ra(t237, null, s);
|
return _a(s), new Ra(t237, null, s);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
if (!(t237 instanceof Ia || t237 instanceof Ra)) throw new j(K.INVALID_ARGUMENT, "Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");
|
if (!(t237 instanceof Ia || t237 instanceof Ra)) throw new j(K.INVALID_ARGUMENT, "Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");
|
||||||
const s = t237._path.child(ht.fromString(e131, ...n50));
|
const s = t237._path.child(ht.fromString(e130, ...n50));
|
||||||
return _a(s), new Ra(t237.firestore, null, s);
|
return _a(s), new Ra(t237.firestore, null, s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
class ka extends Ta {
|
class ka extends Ta {
|
||||||
constructor(t238, e132){
|
constructor(t238, e131){
|
||||||
super(t238, e132), this.type = "firestore", this._queue = new class {
|
super(t238, e131), this.type = "firestore", this._queue = new class {
|
||||||
constructor(){
|
constructor(){
|
||||||
this._c = Promise.resolve(), this.mc = [], this.gc = !1, this.yc = [], this.Tc = null, this.Ec = !1, this.Ic = !1, this.Ac = [], this.ar = new Xr(this, "async_queue_retry"), this.Rc = ()=>{
|
this._c = Promise.resolve(), this.mc = [], this.gc = !1, this.yc = [], this.Tc = null, this.Ec = !1, this.Ic = !1, this.Ac = [], this.ar = new Xr(this, "async_queue_retry"), this.Rc = ()=>{
|
||||||
const t = Jr();
|
const t = Jr();
|
||||||
@ -5723,16 +5720,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Pc(t241) {
|
Pc(t241) {
|
||||||
const e134 = this._c.then(()=>(this.Ec = !0, t241().catch((t)=>{
|
const e133 = this._c.then(()=>(this.Ec = !0, t241().catch((t)=>{
|
||||||
var t240;
|
var t240;
|
||||||
this.Tc = t, this.Ec = !1;
|
this.Tc = t, this.Ec = !1;
|
||||||
let e;
|
let e;
|
||||||
const e133 = (e = (t240 = t).message || "", t240.stack && (e = t240.stack.includes(t240.message) ? t240.stack : t240.message + "\n" + t240.stack), e);
|
const e132 = (e = (t240 = t).message || "", t240.stack && (e = t240.stack.includes(t240.message) ? t240.stack : t240.message + "\n" + t240.stack), e);
|
||||||
throw O("INTERNAL UNHANDLED ERROR: ", e133), t;
|
throw O("INTERNAL UNHANDLED ERROR: ", e132), t;
|
||||||
}).then((t)=>(this.Ec = !1, t)
|
}).then((t)=>(this.Ec = !1, t)
|
||||||
))
|
))
|
||||||
);
|
);
|
||||||
return this._c = e134, e134;
|
return this._c = e133, e133;
|
||||||
}
|
}
|
||||||
enqueueAfterDelay(t242, e, n) {
|
enqueueAfterDelay(t242, e, n) {
|
||||||
this.bc(), this.Ac.indexOf(t242) > -1 && (e = 0);
|
this.bc(), this.Ac.indexOf(t242) > -1 && (e = 0);
|
||||||
@ -5755,8 +5752,8 @@
|
|||||||
}
|
}
|
||||||
Cc(t243) {
|
Cc(t243) {
|
||||||
return this.Sc().then(()=>{
|
return this.Sc().then(()=>{
|
||||||
for (const e135 of (this.yc.sort((t, e)=>t.targetTimeMs - e.targetTimeMs
|
for (const e134 of (this.yc.sort((t, e)=>t.targetTimeMs - e.targetTimeMs
|
||||||
), this.yc))if (e135.skipDelay(), "all" !== t243 && e135.timerId === t243) break;
|
), this.yc))if (e134.skipDelay(), "all" !== t243 && e134.timerId === t243) break;
|
||||||
return this.Sc();
|
return this.Sc();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -5774,8 +5771,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
function Ma(t) {
|
function Ma(t) {
|
||||||
var e, t244, e136, n, s;
|
var e, t244, e135, n, s;
|
||||||
const n51 = t._freezeSettings(), s23 = (t244 = t._databaseId, e136 = (null === (e = t._app) || void 0 === e ? void 0 : e.options.appId) || "", n = t._persistenceKey, s = n51, new ua(t244, e136, n, s.host, s.ssl, s.experimentalForceLongPolling, s.experimentalAutoDetectLongPolling, s.useFetchStreams));
|
const n51 = t._freezeSettings(), s23 = (t244 = t._databaseId, e135 = (null === (e = t._app) || void 0 === e ? void 0 : e.options.appId) || "", n = t._persistenceKey, s = n51, new ua(t244, e135, n, s.host, s.ssl, s.experimentalForceLongPolling, s.experimentalAutoDetectLongPolling, s.useFetchStreams));
|
||||||
t._firestoreClient = new Kc(t._credentials, t._queue, s23);
|
t._firestoreClient = new Kc(t._credentials, t._queue, s23);
|
||||||
}
|
}
|
||||||
class Ja {
|
class Ja {
|
||||||
@ -5926,17 +5923,17 @@
|
|||||||
return t instanceof lu;
|
return t instanceof lu;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function yu(t246, e137) {
|
function yu(t246, e136) {
|
||||||
if (Tu(t246 = getModularInstance(t246))) return Eu("Unsupported field value:", e137, t246), pu(t246, e137);
|
if (Tu(t246 = getModularInstance(t246))) return Eu("Unsupported field value:", e136, t246), pu(t246, e136);
|
||||||
if (t246 instanceof Za) return function(t, e) {
|
if (t246 instanceof Za) return function(t, e) {
|
||||||
if (!iu(e.kc)) throw e.Uc(`${t._methodName}() can only be used with update() and set()`);
|
if (!iu(e.kc)) throw e.Uc(`${t._methodName}() can only be used with update() and set()`);
|
||||||
if (!e.path) throw e.Uc(`${t._methodName}() is not currently supported inside arrays`);
|
if (!e.path) throw e.Uc(`${t._methodName}() is not currently supported inside arrays`);
|
||||||
const n = t._toFieldTransform(e);
|
const n = t._toFieldTransform(e);
|
||||||
n && e.fieldTransforms.push(n);
|
n && e.fieldTransforms.push(n);
|
||||||
}(t246, e137), null;
|
}(t246, e136), null;
|
||||||
if (void 0 === t246 && e137.ignoreUndefinedProperties) return null;
|
if (void 0 === t246 && e136.ignoreUndefinedProperties) return null;
|
||||||
if (e137.path && e137.fieldMask.push(e137.path), t246 instanceof Array) {
|
if (e136.path && e136.fieldMask.push(e136.path), t246 instanceof Array) {
|
||||||
if (e137.settings.Fc && 4 !== e137.kc) throw e137.Uc("Nested arrays are not supported");
|
if (e136.settings.Fc && 4 !== e136.kc) throw e136.Uc("Nested arrays are not supported");
|
||||||
return function(t, e) {
|
return function(t, e) {
|
||||||
const n = [];
|
const n = [];
|
||||||
let s = 0;
|
let s = 0;
|
||||||
@ -5951,15 +5948,15 @@
|
|||||||
values: n
|
values: n
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}(t246, e137);
|
}(t246, e136);
|
||||||
}
|
}
|
||||||
return function(t, e) {
|
return function(t, e) {
|
||||||
if (null === (t = getModularInstance(t))) return {
|
if (null === (t = getModularInstance(t))) return {
|
||||||
nullValue: "NULL_VALUE"
|
nullValue: "NULL_VALUE"
|
||||||
};
|
};
|
||||||
if ("number" == typeof t) {
|
if ("number" == typeof t) {
|
||||||
var t247, e138;
|
var t247, e137;
|
||||||
return t247 = e.N, bt(e138 = t) ? De(e138) : Se(t247, e138);
|
return t247 = e.N, bt(e137 = t) ? De(e137) : Se(t247, e137);
|
||||||
}
|
}
|
||||||
if ("boolean" == typeof t) return {
|
if ("boolean" == typeof t) return {
|
||||||
booleanValue: t
|
booleanValue: t
|
||||||
@ -5996,7 +5993,7 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
throw e.Uc(`Unsupported field value: ${ma(t)}`);
|
throw e.Uc(`Unsupported field value: ${ma(t)}`);
|
||||||
}(t246, e137);
|
}(t246, e136);
|
||||||
}
|
}
|
||||||
function pu(t248, e) {
|
function pu(t248, e) {
|
||||||
const n = {};
|
const n = {};
|
||||||
@ -6061,15 +6058,15 @@
|
|||||||
return super.data();
|
return super.data();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function Su(t250, e139) {
|
function Su(t250, e138) {
|
||||||
return "string" == typeof e139 ? function(t, e, n) {
|
return "string" == typeof e138 ? function(t, e, n) {
|
||||||
if (e.search(Au) >= 0) throw bu(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`, t, !1, void 0, n);
|
if (e.search(Au) >= 0) throw bu(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`, t, !1, void 0, n);
|
||||||
try {
|
try {
|
||||||
return new Ja(...e.split("."))._internalPath;
|
return new Ja(...e.split("."))._internalPath;
|
||||||
} catch (s) {
|
} catch (s) {
|
||||||
throw bu(`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`, t, !1, void 0, n);
|
throw bu(`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`, t, !1, void 0, n);
|
||||||
}
|
}
|
||||||
}(t250, e139) : e139 instanceof Ja ? e139._internalPath : e139._delegate._internalPath;
|
}(t250, e138) : e138 instanceof Ja ? e138._internalPath : e138._delegate._internalPath;
|
||||||
}
|
}
|
||||||
class Du {
|
class Du {
|
||||||
constructor(t, e){
|
constructor(t, e){
|
||||||
@ -6128,9 +6125,9 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
docChanges(t251 = {}) {
|
docChanges(t251 = {}) {
|
||||||
const e140 = !!t251.includeMetadataChanges;
|
const e139 = !!t251.includeMetadataChanges;
|
||||||
if (e140 && this._snapshot.excludesMetadataChanges) throw new j(K.INVALID_ARGUMENT, "To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");
|
if (e139 && this._snapshot.excludesMetadataChanges) throw new j(K.INVALID_ARGUMENT, "To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");
|
||||||
return this._cachedChanges && this._cachedChangesIncludeMetadataChanges === e140 || (this._cachedChanges = function(t252, e141) {
|
return this._cachedChanges && this._cachedChangesIncludeMetadataChanges === e139 || (this._cachedChanges = function(t252, e140) {
|
||||||
if (t252._snapshot.oldDocs.isEmpty()) {
|
if (t252._snapshot.oldDocs.isEmpty()) {
|
||||||
let e = 0;
|
let e = 0;
|
||||||
return t252._snapshot.docChanges.map((n)=>({
|
return t252._snapshot.docChanges.map((n)=>({
|
||||||
@ -6143,7 +6140,7 @@
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
let n = t252._snapshot.oldDocs;
|
let n = t252._snapshot.oldDocs;
|
||||||
return t252._snapshot.docChanges.filter((t)=>e141 || 3 !== t.type
|
return t252._snapshot.docChanges.filter((t)=>e140 || 3 !== t.type
|
||||||
).map((e)=>{
|
).map((e)=>{
|
||||||
const s = new Nu(t252._firestore, t252._userDataWriter, e.doc.key, e.doc, new Du(t252._snapshot.mutatedKeys.has(e.doc.key), t252._snapshot.fromCache), t252.query.converter);
|
const s = new Nu(t252._firestore, t252._userDataWriter, e.doc.key, e.doc, new Du(t252._snapshot.mutatedKeys.has(e.doc.key), t252._snapshot.fromCache), t252.query.converter);
|
||||||
let i = -1, r = -1;
|
let i = -1, r = -1;
|
||||||
@ -6155,7 +6152,7 @@
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}(this, e140), this._cachedChangesIncludeMetadataChanges = e140), this._cachedChanges;
|
}(this, e139), this._cachedChangesIncludeMetadataChanges = e139), this._cachedChanges;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function ku(t) {
|
function ku(t) {
|
||||||
@ -6230,7 +6227,7 @@
|
|||||||
}
|
}
|
||||||
convertDocumentKey(t, e) {
|
convertDocumentKey(t, e) {
|
||||||
const n = ht.fromString(t);
|
const n = ht.fromString(t);
|
||||||
B(Ts(n));
|
Ts(n) || L();
|
||||||
const s = new ha(n.get(1), n.get(3)), i = new Pt(n.popFirst(5));
|
const s = new ha(n.get(1), n.get(3)), i = new Pt(n.popFirst(5));
|
||||||
return s.isEqual(e) || O(`Document ${i} contains a document reference within a different database (${s.projectId}/${s.database}) which is not supported. It will be treated as a reference in the current database (${e.projectId}/${e.database}) instead.`), i;
|
return s.isEqual(e) || O(`Document ${i} contains a document reference within a different database (${s.projectId}/${s.database}) which is not supported. It will be treated as a reference in the current database (${e.projectId}/${e.database}) instead.`), i;
|
||||||
}
|
}
|
||||||
@ -6250,10 +6247,10 @@
|
|||||||
function lh(t256) {
|
function lh(t256) {
|
||||||
var t255;
|
var t255;
|
||||||
t256 = ga(t256, Aa);
|
t256 = ga(t256, Aa);
|
||||||
const e142 = ga(t256.firestore, ka), n52 = ((t255 = e142)._firestoreClient || Ma(t255), t255._firestoreClient.verifyNotTerminated(), t255._firestoreClient), s24 = new ah(e142);
|
const e141 = ga(t256.firestore, ka), n52 = ((t255 = e141)._firestoreClient || Ma(t255), t255._firestoreClient.verifyNotTerminated(), t255._firestoreClient), s24 = new ah(e141);
|
||||||
return function(t) {
|
return function(t) {
|
||||||
if (me(t) && 0 === t.explicitOrderBy.length) throw new j(K.UNIMPLEMENTED, "limitToLast() queries require specifying at least one orderBy() clause");
|
if (me(t) && 0 === t.explicitOrderBy.length) throw new j(K.UNIMPLEMENTED, "limitToLast() queries require specifying at least one orderBy() clause");
|
||||||
}(t256._query), (function(t257, e143, n53 = {}) {
|
}(t256._query), (function(t257, e142, n53 = {}) {
|
||||||
const s25 = new Q;
|
const s25 = new Q;
|
||||||
return t257.asyncQueue.enqueueAndForget(async ()=>(function(t258, e, n54, s, i) {
|
return t257.asyncQueue.enqueueAndForget(async ()=>(function(t258, e, n54, s, i) {
|
||||||
const r = new Lc({
|
const r = new Lc({
|
||||||
@ -6267,9 +6264,9 @@
|
|||||||
fo: !0
|
fo: !0
|
||||||
});
|
});
|
||||||
return Bo(t258, o);
|
return Bo(t258, o);
|
||||||
})(await Xc(t257), t257.asyncQueue, e143, n53, s25)
|
})(await Xc(t257), t257.asyncQueue, e142, n53, s25)
|
||||||
), s25.promise;
|
), s25.promise;
|
||||||
})(n52, t256._query).then((n)=>new xu(e142, s24, t256, n)
|
})(n52, t256._query).then((n)=>new xu(e141, s24, t256, n)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
!function(t259, e = !0) {
|
!function(t259, e = !0) {
|
||||||
|
@ -187,6 +187,9 @@
|
|||||||
function addUnitPriority(unit, priority) {
|
function addUnitPriority(unit, priority) {
|
||||||
priorities[unit] = priority;
|
priorities[unit] = priority;
|
||||||
}
|
}
|
||||||
|
function isLeapYear(year) {
|
||||||
|
return year % 4 == 0 && year % 100 != 0 || year % 400 == 0;
|
||||||
|
}
|
||||||
function absFloor(number) {
|
function absFloor(number) {
|
||||||
return number < 0 ? Math.ceil(number) || 0 : Math.floor(number);
|
return number < 0 ? Math.ceil(number) || 0 : Math.floor(number);
|
||||||
}
|
}
|
||||||
@ -203,10 +206,7 @@
|
|||||||
return mom.isValid() ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;
|
return mom.isValid() ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;
|
||||||
}
|
}
|
||||||
function set$1(mom, unit, value) {
|
function set$1(mom, unit, value) {
|
||||||
if (mom.isValid() && !isNaN(value)) {
|
mom.isValid() && !isNaN(value) && ('FullYear' === unit && isLeapYear(mom.year()) && 1 === mom.month() && 29 === mom.date() ? (value = toInt(value), mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value, mom.month(), daysInMonth(value, mom.month()))) : mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value));
|
||||||
var year;
|
|
||||||
'FullYear' === unit && ((year = mom.year()) % 4 == 0 && year % 100 != 0 || year % 400 == 0) && 1 === mom.month() && 29 === mom.date() ? (value = toInt(value), mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value, mom.month(), daysInMonth(value, mom.month()))) : mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
var hookCallback, some, keys, regexes, match1 = /\d/, match2 = /\d\d/, match3 = /\d{3}/, match4 = /\d{4}/, match6 = /[+-]?\d{6}/, match1to2 = /\d\d?/, match3to4 = /\d\d\d\d?/, match5to6 = /\d\d\d\d\d\d?/, match1to3 = /\d{1,3}/, match1to4 = /\d{1,4}/, match1to6 = /[+-]?\d{1,6}/, matchUnsigned = /\d+/, matchSigned = /[+-]?\d+/, matchOffset = /Z|[+-]\d\d:?\d\d/gi, matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;
|
var hookCallback, some, keys, regexes, match1 = /\d/, match2 = /\d\d/, match3 = /\d{3}/, match4 = /\d{4}/, match6 = /[+-]?\d{6}/, match1to2 = /\d\d?/, match3to4 = /\d\d\d\d?/, match5to6 = /\d\d\d\d\d\d?/, match1to3 = /\d{1,3}/, match1to4 = /\d{1,4}/, match1to6 = /[+-]?\d{1,6}/, matchUnsigned = /\d+/, matchSigned = /[+-]?\d+/, matchOffset = /Z|[+-]\d\d:?\d\d/gi, matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;
|
||||||
function addRegexToken(token, regex, strictRegex) {
|
function addRegexToken(token, regex, strictRegex) {
|
||||||
@ -245,8 +245,8 @@
|
|||||||
}
|
}
|
||||||
function daysInMonth(year, month) {
|
function daysInMonth(year, month) {
|
||||||
if (isNaN(year) || isNaN(month)) return NaN;
|
if (isNaN(year) || isNaN(month)) return NaN;
|
||||||
var x, year1, modMonth = (month % (x = 12) + x) % x;
|
var x, modMonth = (month % (x = 12) + x) % x;
|
||||||
return year += (month - modMonth) / 12, 1 === modMonth ? (year1 = year) % 4 == 0 && year1 % 100 != 0 || year1 % 400 == 0 ? 29 : 28 : 31 - modMonth % 7 % 2;
|
return year += (month - modMonth) / 12, 1 === modMonth ? isLeapYear(year) ? 29 : 28 : 31 - modMonth % 7 % 2;
|
||||||
}
|
}
|
||||||
indexOf = Array.prototype.indexOf ? Array.prototype.indexOf : function(o) {
|
indexOf = Array.prototype.indexOf ? Array.prototype.indexOf : function(o) {
|
||||||
var i;
|
var i;
|
||||||
@ -312,8 +312,7 @@
|
|||||||
this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i'), this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
|
this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i'), this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
|
||||||
}
|
}
|
||||||
function daysInYear(year) {
|
function daysInYear(year) {
|
||||||
var year2;
|
return isLeapYear(year) ? 366 : 365;
|
||||||
return (year2 = year) % 4 == 0 && year2 % 100 != 0 || year2 % 400 == 0 ? 366 : 365;
|
|
||||||
}
|
}
|
||||||
addFormatToken('Y', 0, 0, function() {
|
addFormatToken('Y', 0, 0, function() {
|
||||||
var y = this.year();
|
var y = this.year();
|
||||||
@ -1012,6 +1011,9 @@
|
|||||||
function localeData() {
|
function localeData() {
|
||||||
return this._locale;
|
return this._locale;
|
||||||
}
|
}
|
||||||
|
function mod$1(dividend, divisor) {
|
||||||
|
return (dividend % divisor + divisor) % divisor;
|
||||||
|
}
|
||||||
function localStartOfDate(y, m, d) {
|
function localStartOfDate(y, m, d) {
|
||||||
return y < 100 && y >= 0 ? new Date(y + 400, m, d) - 12622780800000 : new Date(y, m, d).valueOf();
|
return y < 100 && y >= 0 ? new Date(y + 400, m, d) - 12622780800000 : new Date(y, m, d).valueOf();
|
||||||
}
|
}
|
||||||
@ -1274,7 +1276,7 @@
|
|||||||
}
|
}
|
||||||
return asFloat ? output : absFloor(output);
|
return asFloat ? output : absFloor(output);
|
||||||
}, proto.endOf = function(units) {
|
}, proto.endOf = function(units) {
|
||||||
var time, startOfDate, divisor, divisor1, divisor2;
|
var time, startOfDate;
|
||||||
if (void 0 === (units = normalizeUnits(units)) || 'millisecond' === units || !this.isValid()) return this;
|
if (void 0 === (units = normalizeUnits(units)) || 'millisecond' === units || !this.isValid()) return this;
|
||||||
switch(startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate, units){
|
switch(startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate, units){
|
||||||
case 'year':
|
case 'year':
|
||||||
@ -1297,13 +1299,13 @@
|
|||||||
time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
|
time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
|
||||||
break;
|
break;
|
||||||
case 'hour':
|
case 'hour':
|
||||||
time = this._d.valueOf(), time += 3600000 - ((time + (this._isUTC ? 0 : 60000 * this.utcOffset())) % (divisor = 3600000) + divisor) % divisor - 1;
|
time = this._d.valueOf(), time += 3600000 - mod$1(time + (this._isUTC ? 0 : 60000 * this.utcOffset()), 3600000) - 1;
|
||||||
break;
|
break;
|
||||||
case 'minute':
|
case 'minute':
|
||||||
time = this._d.valueOf(), time += 60000 - (time % (divisor1 = 60000) + divisor1) % divisor1 - 1;
|
time = this._d.valueOf(), time += 60000 - mod$1(time, 60000) - 1;
|
||||||
break;
|
break;
|
||||||
case 'second':
|
case 'second':
|
||||||
time = this._d.valueOf(), time += 1000 - (time % (divisor2 = 1000) + divisor2) % divisor2 - 1;
|
time = this._d.valueOf(), time += 1000 - mod$1(time, 1000) - 1;
|
||||||
}
|
}
|
||||||
return this._d.setTime(time), hooks.updateOffset(this, !0), this;
|
return this._d.setTime(time), hooks.updateOffset(this, !0), this;
|
||||||
}, proto.format = function(inputString) {
|
}, proto.format = function(inputString) {
|
||||||
@ -1364,7 +1366,7 @@
|
|||||||
} else if (isFunction(this[units1 = normalizeUnits(units1)])) return this[units1](value);
|
} else if (isFunction(this[units1 = normalizeUnits(units1)])) return this[units1](value);
|
||||||
return this;
|
return this;
|
||||||
}, proto.startOf = function(units) {
|
}, proto.startOf = function(units) {
|
||||||
var time, startOfDate, divisor, divisor3, divisor4;
|
var time, startOfDate;
|
||||||
if (void 0 === (units = normalizeUnits(units)) || 'millisecond' === units || !this.isValid()) return this;
|
if (void 0 === (units = normalizeUnits(units)) || 'millisecond' === units || !this.isValid()) return this;
|
||||||
switch(startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate, units){
|
switch(startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate, units){
|
||||||
case 'year':
|
case 'year':
|
||||||
@ -1387,13 +1389,13 @@
|
|||||||
time = startOfDate(this.year(), this.month(), this.date());
|
time = startOfDate(this.year(), this.month(), this.date());
|
||||||
break;
|
break;
|
||||||
case 'hour':
|
case 'hour':
|
||||||
time = this._d.valueOf(), time -= ((time + (this._isUTC ? 0 : 60000 * this.utcOffset())) % (divisor = 3600000) + divisor) % divisor;
|
time = this._d.valueOf(), time -= mod$1(time + (this._isUTC ? 0 : 60000 * this.utcOffset()), 3600000);
|
||||||
break;
|
break;
|
||||||
case 'minute':
|
case 'minute':
|
||||||
time = this._d.valueOf(), time -= (time % (divisor3 = 60000) + divisor3) % divisor3;
|
time = this._d.valueOf(), time -= mod$1(time, 60000);
|
||||||
break;
|
break;
|
||||||
case 'second':
|
case 'second':
|
||||||
time = this._d.valueOf(), time -= (time % (divisor4 = 1000) + divisor4) % divisor4;
|
time = this._d.valueOf(), time -= mod$1(time, 1000);
|
||||||
}
|
}
|
||||||
return this._d.setTime(time), hooks.updateOffset(this, !0), this;
|
return this._d.setTime(time), hooks.updateOffset(this, !0), this;
|
||||||
}, proto.subtract = subtract, proto.toArray = function() {
|
}, proto.subtract = subtract, proto.toArray = function() {
|
||||||
@ -1470,8 +1472,7 @@
|
|||||||
for(i = 0, l = eras.length; i < l; ++i)if (dir = eras[i].since <= eras[i].until ? 1 : -1, val = this.clone().startOf('day').valueOf(), eras[i].since <= val && val <= eras[i].until || eras[i].until <= val && val <= eras[i].since) return (this.year() - hooks(eras[i].since).year()) * dir + eras[i].offset;
|
for(i = 0, l = eras.length; i < l; ++i)if (dir = eras[i].since <= eras[i].until ? 1 : -1, val = this.clone().startOf('day').valueOf(), eras[i].since <= val && val <= eras[i].until || eras[i].until <= val && val <= eras[i].since) return (this.year() - hooks(eras[i].since).year()) * dir + eras[i].offset;
|
||||||
return this.year();
|
return this.year();
|
||||||
}, proto.year = getSetYear, proto.isLeapYear = function() {
|
}, proto.year = getSetYear, proto.isLeapYear = function() {
|
||||||
var year;
|
return isLeapYear(this.year());
|
||||||
return (year = this.year()) % 4 == 0 && year % 100 != 0 || year % 400 == 0;
|
|
||||||
}, proto.weekYear = function(input) {
|
}, proto.weekYear = function(input) {
|
||||||
return getSetWeekYearHelper.call(this, input, this.week(), this.weekday(), this.localeData()._week.dow, this.localeData()._week.doy);
|
return getSetWeekYearHelper.call(this, input, this.week(), this.weekday(), this.localeData()._week.dow, this.localeData()._week.doy);
|
||||||
}, proto.isoWeekYear = function(input) {
|
}, proto.isoWeekYear = function(input) {
|
||||||
@ -1719,6 +1720,12 @@
|
|||||||
function absCeil(number) {
|
function absCeil(number) {
|
||||||
return number < 0 ? Math.floor(number) : Math.ceil(number);
|
return number < 0 ? Math.floor(number) : Math.ceil(number);
|
||||||
}
|
}
|
||||||
|
function daysToMonths(days) {
|
||||||
|
return 4800 * days / 146097;
|
||||||
|
}
|
||||||
|
function monthsToDays(months) {
|
||||||
|
return 146097 * months / 4800;
|
||||||
|
}
|
||||||
function makeAs(alias) {
|
function makeAs(alias) {
|
||||||
return function() {
|
return function() {
|
||||||
return this.as(alias);
|
return this.as(alias);
|
||||||
@ -1764,7 +1771,7 @@
|
|||||||
}, proto$2.as = function(units) {
|
}, proto$2.as = function(units) {
|
||||||
if (!this.isValid()) return NaN;
|
if (!this.isValid()) return NaN;
|
||||||
var days, months, milliseconds = this._milliseconds;
|
var days, months, milliseconds = this._milliseconds;
|
||||||
if ('month' === (units = normalizeUnits(units)) || 'quarter' === units || 'year' === units) switch(days = this._days + milliseconds / 864e5, months = this._months + 4800 * days / 146097, units){
|
if ('month' === (units = normalizeUnits(units)) || 'quarter' === units || 'year' === units) switch(days = this._days + milliseconds / 864e5, months = this._months + daysToMonths(days), units){
|
||||||
case 'month':
|
case 'month':
|
||||||
return months;
|
return months;
|
||||||
case 'quarter':
|
case 'quarter':
|
||||||
@ -1772,7 +1779,7 @@
|
|||||||
case 'year':
|
case 'year':
|
||||||
return months / 12;
|
return months / 12;
|
||||||
}
|
}
|
||||||
else switch(days = this._days + Math.round(146097 * this._months / 4800), units){
|
else switch(days = this._days + Math.round(monthsToDays(this._months)), units){
|
||||||
case 'week':
|
case 'week':
|
||||||
return days / 7 + milliseconds / 6048e5;
|
return days / 7 + milliseconds / 6048e5;
|
||||||
case 'day':
|
case 'day':
|
||||||
@ -1792,7 +1799,7 @@
|
|||||||
return this.isValid() ? this._milliseconds + 864e5 * this._days + this._months % 12 * 2592e6 + 31536e6 * toInt(this._months / 12) : NaN;
|
return this.isValid() ? this._milliseconds + 864e5 * this._days + this._months % 12 * 2592e6 + 31536e6 * toInt(this._months / 12) : NaN;
|
||||||
}, proto$2._bubble = function() {
|
}, proto$2._bubble = function() {
|
||||||
var seconds, minutes, hours, years, monthsFromDays, milliseconds = this._milliseconds, days = this._days, months = this._months, data = this._data;
|
var seconds, minutes, hours, years, monthsFromDays, milliseconds = this._milliseconds, days = this._days, months = this._months, data = this._data;
|
||||||
return milliseconds >= 0 && days >= 0 && months >= 0 || milliseconds <= 0 && days <= 0 && months <= 0 || (milliseconds += 864e5 * absCeil(146097 * months / 4800 + days), days = 0, months = 0), data.milliseconds = milliseconds % 1000, seconds = absFloor(milliseconds / 1000), data.seconds = seconds % 60, minutes = absFloor(seconds / 60), data.minutes = minutes % 60, hours = absFloor(minutes / 60), data.hours = hours % 24, days += absFloor(hours / 24), months += monthsFromDays = absFloor(4800 * days / 146097), days -= absCeil(146097 * monthsFromDays / 4800), years = absFloor(months / 12), months %= 12, data.days = days, data.months = months, data.years = years, this;
|
return milliseconds >= 0 && days >= 0 && months >= 0 || milliseconds <= 0 && days <= 0 && months <= 0 || (milliseconds += 864e5 * absCeil(monthsToDays(months) + days), days = 0, months = 0), data.milliseconds = milliseconds % 1000, seconds = absFloor(milliseconds / 1000), data.seconds = seconds % 60, minutes = absFloor(seconds / 60), data.minutes = minutes % 60, hours = absFloor(minutes / 60), data.hours = hours % 24, days += absFloor(hours / 24), months += monthsFromDays = absFloor(daysToMonths(days)), days -= absCeil(monthsToDays(monthsFromDays)), years = absFloor(months / 12), months %= 12, data.days = days, data.months = months, data.years = years, this;
|
||||||
}, proto$2.clone = function() {
|
}, proto$2.clone = function() {
|
||||||
return createDuration(this);
|
return createDuration(this);
|
||||||
}, proto$2.get = function(units) {
|
}, proto$2.get = function(units) {
|
||||||
|
@ -1017,10 +1017,9 @@
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
function(module, exports) {
|
function(module, exports) {
|
||||||
function eq(value, other) {
|
module.exports = function(value, other) {
|
||||||
return value === other || value != value && other != other;
|
return value === other || value != value && other != other;
|
||||||
}
|
};
|
||||||
module.exports = eq;
|
|
||||||
},
|
},
|
||||||
function(module, exports, __webpack_require__) {
|
function(module, exports, __webpack_require__) {
|
||||||
var Symbol = __webpack_require__(17).Symbol;
|
var Symbol = __webpack_require__(17).Symbol;
|
||||||
@ -2046,9 +2045,10 @@
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
function(module, exports) {
|
function(module, exports) {
|
||||||
module.exports = function() {
|
function stubFalse() {
|
||||||
return !1;
|
return !1;
|
||||||
};
|
}
|
||||||
|
module.exports = stubFalse;
|
||||||
},
|
},
|
||||||
function(module, exports, __webpack_require__) {
|
function(module, exports, __webpack_require__) {
|
||||||
var baseGetTag = __webpack_require__(22), getPrototype = __webpack_require__(50), isObjectLike = __webpack_require__(18), funcProto = Function.prototype, objectProto = Object.prototype, funcToString = funcProto.toString, hasOwnProperty = objectProto.hasOwnProperty, objectCtorString = funcToString.call(Object);
|
var baseGetTag = __webpack_require__(22), getPrototype = __webpack_require__(50), isObjectLike = __webpack_require__(18), funcProto = Function.prototype, objectProto = Object.prototype, funcToString = funcProto.toString, hasOwnProperty = objectProto.hasOwnProperty, objectCtorString = funcToString.call(Object);
|
||||||
|
@ -400,13 +400,16 @@
|
|||||||
}, setTextContent = function(el, content) {
|
}, setTextContent = function(el, content) {
|
||||||
el.styleSheet ? el.styleSheet.cssText = content : el.textContent = content;
|
el.styleSheet ? el.styleSheet.cssText = content : el.textContent = content;
|
||||||
}, _guid = 3;
|
}, _guid = 3;
|
||||||
|
function newGUID() {
|
||||||
|
return _guid++;
|
||||||
|
}
|
||||||
global_window__WEBPACK_IMPORTED_MODULE_0___default().WeakMap || (FakeWeakMap1 = function() {
|
global_window__WEBPACK_IMPORTED_MODULE_0___default().WeakMap || (FakeWeakMap1 = function() {
|
||||||
function FakeWeakMap() {
|
function FakeWeakMap() {
|
||||||
this.vdata = 'vdata' + Math.floor(global_window__WEBPACK_IMPORTED_MODULE_0___default().performance && global_window__WEBPACK_IMPORTED_MODULE_0___default().performance.now() || Date.now()), this.data = {};
|
this.vdata = 'vdata' + Math.floor(global_window__WEBPACK_IMPORTED_MODULE_0___default().performance && global_window__WEBPACK_IMPORTED_MODULE_0___default().performance.now() || Date.now()), this.data = {};
|
||||||
}
|
}
|
||||||
var _proto = FakeWeakMap.prototype;
|
var _proto = FakeWeakMap.prototype;
|
||||||
return _proto.set = function(key, value) {
|
return _proto.set = function(key, value) {
|
||||||
var access = key[this.vdata] || _guid++;
|
var access = key[this.vdata] || newGUID();
|
||||||
return key[this.vdata] || (key[this.vdata] = access), this.data[access] = value, this;
|
return key[this.vdata] || (key[this.vdata] = access), this.data[access] = value, this;
|
||||||
}, _proto.get = function(key) {
|
}, _proto.get = function(key) {
|
||||||
var access = key[this.vdata];
|
var access = key[this.vdata];
|
||||||
@ -477,7 +480,7 @@
|
|||||||
if (Array.isArray(type)) return _handleMultipleEvents(on, elem, type, fn);
|
if (Array.isArray(type)) return _handleMultipleEvents(on, elem, type, fn);
|
||||||
DomData.has(elem) || DomData.set(elem, {});
|
DomData.has(elem) || DomData.set(elem, {});
|
||||||
var data = DomData.get(elem);
|
var data = DomData.get(elem);
|
||||||
if (data.handlers || (data.handlers = {}), data.handlers[type] || (data.handlers[type] = []), fn.guid || (fn.guid = _guid++), data.handlers[type].push(fn), data.dispatcher || (data.disabled = !1, data.dispatcher = function(event, hash) {
|
if (data.handlers || (data.handlers = {}), data.handlers[type] || (data.handlers[type] = []), fn.guid || (fn.guid = newGUID()), data.handlers[type].push(fn), data.dispatcher || (data.disabled = !1, data.dispatcher = function(event, hash) {
|
||||||
if (!data.disabled) {
|
if (!data.disabled) {
|
||||||
event = fixEvent(event);
|
event = fixEvent(event);
|
||||||
var handlers = data.handlers[event.type];
|
var handlers = data.handlers[event.type];
|
||||||
@ -538,13 +541,13 @@
|
|||||||
var func1 = function func() {
|
var func1 = function func() {
|
||||||
off(elem, type, func), fn.apply(this, arguments);
|
off(elem, type, func), fn.apply(this, arguments);
|
||||||
};
|
};
|
||||||
func1.guid = fn.guid = fn.guid || _guid++, on(elem, type, func1);
|
func1.guid = fn.guid = fn.guid || newGUID(), on(elem, type, func1);
|
||||||
}
|
}
|
||||||
function any(elem, type, fn) {
|
function any(elem, type, fn) {
|
||||||
var func2 = function func() {
|
var func2 = function func() {
|
||||||
off(elem, type, func), fn.apply(this, arguments);
|
off(elem, type, func), fn.apply(this, arguments);
|
||||||
};
|
};
|
||||||
func2.guid = fn.guid = fn.guid || _guid++, on(elem, type, func2);
|
func2.guid = fn.guid = fn.guid || newGUID(), on(elem, type, func2);
|
||||||
}
|
}
|
||||||
var Events = Object.freeze({
|
var Events = Object.freeze({
|
||||||
__proto__: null,
|
__proto__: null,
|
||||||
@ -555,7 +558,7 @@
|
|||||||
one: one,
|
one: one,
|
||||||
any: any
|
any: any
|
||||||
}), bind = function(context, fn, uid) {
|
}), bind = function(context, fn, uid) {
|
||||||
fn.guid || (fn.guid = _guid++);
|
fn.guid || (fn.guid = newGUID());
|
||||||
var bound = fn.bind(context);
|
var bound = fn.bind(context);
|
||||||
return bound.guid = uid ? uid + '_' + fn.guid : fn.guid, bound;
|
return bound.guid = uid ? uid + '_' + fn.guid : fn.guid, bound;
|
||||||
}, throttle = function(fn, wait) {
|
}, throttle = function(fn, wait) {
|
||||||
@ -788,7 +791,7 @@
|
|||||||
function Component(player, options, ready) {
|
function Component(player, options, ready) {
|
||||||
if (!player && this.play ? this.player_ = player = this : this.player_ = player, this.isDisposed_ = !1, this.parentComponent_ = null, this.options_ = mergeOptions$3({}, this.options_), options = this.options_ = mergeOptions$3(this.options_, options), this.id_ = options.id || options.el && options.el.id, !this.id_) {
|
if (!player && this.play ? this.player_ = player = this : this.player_ = player, this.isDisposed_ = !1, this.parentComponent_ = null, this.options_ = mergeOptions$3({}, this.options_), options = this.options_ = mergeOptions$3(this.options_, options), this.id_ = options.id || options.el && options.el.id, !this.id_) {
|
||||||
var id = player && player.id && player.id() || 'no_player';
|
var id = player && player.id && player.id() || 'no_player';
|
||||||
this.id_ = id + "_component_" + _guid++;
|
this.id_ = id + "_component_" + newGUID();
|
||||||
}
|
}
|
||||||
this.name_ = options.name || null, options.el ? this.el_ = options.el : !1 !== options.createEl && (this.el_ = this.createEl()), !1 !== options.evented && (evented(this, {
|
this.name_ = options.name || null, options.el ? this.el_ = options.el : !1 !== options.createEl && (this.el_ = this.createEl()), !1 !== options.evented && (evented(this, {
|
||||||
eventBusKey: this.el_ ? 'el_' : null
|
eventBusKey: this.el_ ? 'el_' : null
|
||||||
@ -1498,7 +1501,7 @@
|
|||||||
function Track(options) {
|
function Track(options) {
|
||||||
void 0 === options && (options = {}), _this = _EventTarget.call(this) || this;
|
void 0 === options && (options = {}), _this = _EventTarget.call(this) || this;
|
||||||
var _this, trackProps = {
|
var _this, trackProps = {
|
||||||
id: options.id || 'vjs_track_' + _guid++,
|
id: options.id || 'vjs_track_' + newGUID(),
|
||||||
kind: options.kind || '',
|
kind: options.kind || '',
|
||||||
language: options.language || ''
|
language: options.language || ''
|
||||||
}, label = options.label || '', _loop = function(key) {
|
}, label = options.label || '', _loop = function(key) {
|
||||||
@ -2480,9 +2483,6 @@
|
|||||||
function setFormatTime(customImplementation) {
|
function setFormatTime(customImplementation) {
|
||||||
implementation = customImplementation;
|
implementation = customImplementation;
|
||||||
}
|
}
|
||||||
function resetFormatTime() {
|
|
||||||
implementation = defaultImplementation;
|
|
||||||
}
|
|
||||||
function formatTime(seconds, guide) {
|
function formatTime(seconds, guide) {
|
||||||
return void 0 === guide && (guide = seconds), implementation(seconds, guide);
|
return void 0 === guide && (guide = seconds), implementation(seconds, guide);
|
||||||
}
|
}
|
||||||
@ -5194,7 +5194,7 @@
|
|||||||
huge: 1 / 0
|
huge: 1 / 0
|
||||||
}, Player1 = function(_Component) {
|
}, Player1 = function(_Component) {
|
||||||
function Player(tag, options, ready) {
|
function Player(tag, options, ready) {
|
||||||
if (tag.id = tag.id || options.id || "vjs_video_" + _guid++, (options = assign(Player.getTagSettings(tag), options)).initChildren = !1, options.createEl = !1, options.evented = !1, options.reportTouchActivity = !1, !options.language) {
|
if (tag.id = tag.id || options.id || "vjs_video_" + newGUID(), (options = assign(Player.getTagSettings(tag), options)).initChildren = !1, options.createEl = !1, options.evented = !1, options.reportTouchActivity = !1, !options.language) {
|
||||||
if ('function' == typeof tag.closest) {
|
if ('function' == typeof tag.closest) {
|
||||||
var _this, closest = tag.closest('[lang]');
|
var _this, closest = tag.closest('[lang]');
|
||||||
closest && closest.getAttribute && (options.language = closest.getAttribute('lang'));
|
closest && closest.getAttribute && (options.language = closest.getAttribute('lang'));
|
||||||
@ -6384,7 +6384,9 @@
|
|||||||
}, videojs.getPlugins = Plugin1.getPlugins, videojs.getPlugin = Plugin1.getPlugin, videojs.getPluginVersion = Plugin1.getPluginVersion, videojs.addLanguage = function(code, data) {
|
}, videojs.getPlugins = Plugin1.getPlugins, videojs.getPlugin = Plugin1.getPlugin, videojs.getPluginVersion = Plugin1.getPluginVersion, videojs.addLanguage = function(code, data) {
|
||||||
var _mergeOptions;
|
var _mergeOptions;
|
||||||
return code = ('' + code).toLowerCase(), videojs.options.languages = mergeOptions$3(videojs.options.languages, ((_mergeOptions = {})[code] = data, _mergeOptions)), videojs.options.languages[code];
|
return code = ('' + code).toLowerCase(), videojs.options.languages = mergeOptions$3(videojs.options.languages, ((_mergeOptions = {})[code] = data, _mergeOptions)), videojs.options.languages[code];
|
||||||
}, videojs.log = log$1, videojs.createLogger = createLogger, videojs.createTimeRange = videojs.createTimeRanges = createTimeRanges, videojs.formatTime = formatTime, videojs.setFormatTime = setFormatTime, videojs.resetFormatTime = resetFormatTime, videojs.parseUrl = parseUrl, videojs.isCrossOrigin = isCrossOrigin, videojs.EventTarget = EventTarget$2, videojs.on = on, videojs.one = one, videojs.off = off, videojs.trigger = trigger, videojs.xhr = _videojs_xhr__WEBPACK_IMPORTED_MODULE_4___default(), videojs.TextTrack = TextTrack1, videojs.AudioTrack = AudioTrack1, videojs.VideoTrack = VideoTrack1, [
|
}, videojs.log = log$1, videojs.createLogger = createLogger, videojs.createTimeRange = videojs.createTimeRanges = createTimeRanges, videojs.formatTime = formatTime, videojs.setFormatTime = setFormatTime, videojs.resetFormatTime = function() {
|
||||||
|
implementation = defaultImplementation;
|
||||||
|
}, videojs.parseUrl = parseUrl, videojs.isCrossOrigin = isCrossOrigin, videojs.EventTarget = EventTarget$2, videojs.on = on, videojs.one = one, videojs.off = off, videojs.trigger = trigger, videojs.xhr = _videojs_xhr__WEBPACK_IMPORTED_MODULE_4___default(), videojs.TextTrack = TextTrack1, videojs.AudioTrack = AudioTrack1, videojs.VideoTrack = VideoTrack1, [
|
||||||
'isEl',
|
'isEl',
|
||||||
'isTextNode',
|
'isTextNode',
|
||||||
'createEl',
|
'createEl',
|
||||||
|
@ -3867,8 +3867,11 @@
|
|||||||
this.name = "ParsingError", this.code = errorData.code, this.message = message || errorData.message;
|
this.name = "ParsingError", this.code = errorData.code, this.message = message || errorData.message;
|
||||||
}
|
}
|
||||||
function parseTimeStamp(input) {
|
function parseTimeStamp(input) {
|
||||||
var h, m, s, f, h1, m1, f1, m2, s1, f2, m3 = input.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);
|
function computeSeconds(h, m, s, f) {
|
||||||
return m3 ? m3[3] ? (h = m3[1], m = m3[2], s = m3[3].replace(":", ""), f = m3[4], (0 | h) * 3600 + (0 | m) * 60 + (0 | s) + (0 | f) / 1000) : m3[1] > 59 ? (h1 = m3[1], m1 = m3[2], f1 = m3[4], (0 | h1) * 3600 + (0 | m1) * 60 + 0 + (0 | f1) / 1000) : (m2 = m3[1], s1 = m3[2], f2 = m3[4], 0 + (0 | m2) * 60 + (0 | s1) + (0 | f2) / 1000) : null;
|
return (0 | h) * 3600 + (0 | m) * 60 + (0 | s) + (0 | f) / 1000;
|
||||||
|
}
|
||||||
|
var m1 = input.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);
|
||||||
|
return m1 ? m1[3] ? computeSeconds(m1[1], m1[2], m1[3].replace(":", ""), m1[4]) : m1[1] > 59 ? computeSeconds(m1[1], m1[2], 0, m1[4]) : computeSeconds(0, m1[1], m1[2], m1[4]) : null;
|
||||||
}
|
}
|
||||||
function Settings() {
|
function Settings() {
|
||||||
this.values = _objCreate(null);
|
this.values = _objCreate(null);
|
||||||
@ -4058,12 +4061,12 @@
|
|||||||
node = window.document.createProcessingInstruction("timestamp", ts), current1.appendChild(node);
|
node = window.document.createProcessingInstruction("timestamp", ts), current1.appendChild(node);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
var m4 = t.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);
|
var m2 = t.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);
|
||||||
if (!m4) continue;
|
if (!m2) continue;
|
||||||
if (!(node = createElement(m4[1], m4[3]))) continue;
|
if (!(node = createElement(m2[1], m2[3]))) continue;
|
||||||
if (!shouldAdd(current1, node)) continue;
|
if (!shouldAdd(current1, node)) continue;
|
||||||
if (m4[2]) {
|
if (m2[2]) {
|
||||||
var classes = m4[2].split('.');
|
var classes = m2[2].split('.');
|
||||||
classes.forEach(function(cl) {
|
classes.forEach(function(cl) {
|
||||||
var bgColor = /^bg_/.test(cl), colorName = bgColor ? cl.slice(3) : cl;
|
var bgColor = /^bg_/.test(cl), colorName = bgColor ? cl.slice(3) : cl;
|
||||||
if (DEFAULT_COLOR_CLASS.hasOwnProperty(colorName)) {
|
if (DEFAULT_COLOR_CLASS.hasOwnProperty(colorName)) {
|
||||||
@ -4072,7 +4075,7 @@
|
|||||||
}
|
}
|
||||||
}), node.className = classes.join(' ');
|
}), node.className = classes.join(' ');
|
||||||
}
|
}
|
||||||
tagStack.push(m4[1]), current1.appendChild(node), current1 = node;
|
tagStack.push(m2[1]), current1.appendChild(node), current1 = node;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
current1.appendChild(window.document.createTextNode(unescape(t)));
|
current1.appendChild(window.document.createTextNode(unescape(t)));
|
||||||
|
@ -1959,7 +1959,7 @@
|
|||||||
default:
|
default:
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
}), y = o[e]; e < i; y = o[++e])null !== y && isObject(y) ? a += " " + inspect(y) : a += " " + y;
|
}), y = o[e]; e < i; y = o[++e])isNull(y) || !isObject(y) ? a += " " + y : a += " " + inspect(y);
|
||||||
return a;
|
return a;
|
||||||
}, t17.deprecate = function(r, e) {
|
}, t17.deprecate = function(r, e) {
|
||||||
if (void 0 !== process && !0 === process.noDeprecation) return r;
|
if (void 0 !== process && !0 === process.noDeprecation) return r;
|
||||||
@ -2031,7 +2031,7 @@
|
|||||||
var e = "'" + JSON.stringify(t).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
var e = "'" + JSON.stringify(t).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
||||||
return r.stylize(e, "string");
|
return r.stylize(e, "string");
|
||||||
}
|
}
|
||||||
return isNumber(t) ? r.stylize("" + t, "number") : isBoolean(t) ? r.stylize("" + t, "boolean") : null === t ? r.stylize("null", "null") : void 0;
|
return isNumber(t) ? r.stylize("" + t, "number") : isBoolean(t) ? r.stylize("" + t, "boolean") : isNull(t) ? r.stylize("null", "null") : void 0;
|
||||||
}
|
}
|
||||||
function formatError(r) {
|
function formatError(r) {
|
||||||
return "[" + Error.prototype.toString.call(r) + "]";
|
return "[" + Error.prototype.toString.call(r) + "]";
|
||||||
@ -2046,7 +2046,7 @@
|
|||||||
var a, y, p;
|
var a, y, p;
|
||||||
if ((p = Object.getOwnPropertyDescriptor(t, n) || {
|
if ((p = Object.getOwnPropertyDescriptor(t, n) || {
|
||||||
value: t[n]
|
value: t[n]
|
||||||
}).get ? y = p.set ? r37.stylize("[Getter/Setter]", "special") : r37.stylize("[Getter]", "special") : p.set && (y = r37.stylize("[Setter]", "special")), hasOwnProperty(o, n) || (a = "[" + n + "]"), !y && (0 > r37.seen.indexOf(p.value) ? (y = null === e ? formatValue(r37, p.value, null) : formatValue(r37, p.value, e - 1)).indexOf("\n") > -1 && (y = i ? y.split("\n").map(function(r) {
|
}).get ? y = p.set ? r37.stylize("[Getter/Setter]", "special") : r37.stylize("[Getter]", "special") : p.set && (y = r37.stylize("[Setter]", "special")), hasOwnProperty(o, n) || (a = "[" + n + "]"), !y && (0 > r37.seen.indexOf(p.value) ? (y = isNull(e) ? formatValue(r37, p.value, null) : formatValue(r37, p.value, e - 1)).indexOf("\n") > -1 && (y = i ? y.split("\n").map(function(r) {
|
||||||
return " " + r;
|
return " " + r;
|
||||||
}).join("\n").substr(2) : "\n" + y.split("\n").map(function(r) {
|
}).join("\n").substr(2) : "\n" + y.split("\n").map(function(r) {
|
||||||
return " " + r;
|
return " " + r;
|
||||||
|
@ -1469,10 +1469,9 @@
|
|||||||
function Ee(a, b) {
|
function Ee(a, b) {
|
||||||
if ("input" === a || "change" === a) return se(b);
|
if ("input" === a || "change" === a) return se(b);
|
||||||
}
|
}
|
||||||
function Fe(a, b) {
|
var Ge = "function" == typeof Object.is ? Object.is : function(a, b) {
|
||||||
return a === b && (0 !== a || 1 / a == 1 / b) || a != a && b != b;
|
return a === b && (0 !== a || 1 / a == 1 / b) || a != a && b != b;
|
||||||
}
|
};
|
||||||
var Ge = "function" == typeof Object.is ? Object.is : Fe;
|
|
||||||
function He(a, b) {
|
function He(a, b) {
|
||||||
if (Ge(a, b)) return !0;
|
if (Ge(a, b)) return !0;
|
||||||
if ("object" != typeof a || null === a || "object" != typeof b || null === b) return !1;
|
if ("object" != typeof a || null === a || "object" != typeof b || null === b) return !1;
|
||||||
@ -2086,6 +2085,9 @@
|
|||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
var lg = Tf(null), mg = null, ng = null, og = null;
|
var lg = Tf(null), mg = null, ng = null, og = null;
|
||||||
|
function pg() {
|
||||||
|
og = ng = mg = null;
|
||||||
|
}
|
||||||
function qg(a) {
|
function qg(a) {
|
||||||
var b = lg.current;
|
var b = lg.current;
|
||||||
E(lg), a._currentValue = b;
|
E(lg), a._currentValue = b;
|
||||||
@ -4481,7 +4483,7 @@
|
|||||||
} catch (h) {
|
} catch (h) {
|
||||||
Lk(a, h);
|
Lk(a, h);
|
||||||
}
|
}
|
||||||
og = ng = mg = null, kk.current = f, W = e, null !== X ? b = 0 : (P = null, Y = 0, b = R);
|
pg(), kk.current = f, W = e, null !== X ? b = 0 : (P = null, Y = 0, b = R);
|
||||||
}
|
}
|
||||||
if (0 !== b) {
|
if (0 !== b) {
|
||||||
if (2 === b && 0 !== (e = wc(a)) && (d = e, b = Mk(a, e)), 1 === b) throw c = nk, Jk(a, 0), Bk(a, d), Ck(a, B()), c;
|
if (2 === b && 0 !== (e = wc(a)) && (d = e, b = Mk(a, e)), 1 === b) throw c = nk, Jk(a, 0), Bk(a, d), Ck(a, B()), c;
|
||||||
@ -4652,7 +4654,7 @@
|
|||||||
for(;;){
|
for(;;){
|
||||||
var c = X;
|
var c = X;
|
||||||
try {
|
try {
|
||||||
if (og = ng = mg = null, Mh.current = Yh, Ph) {
|
if (pg(), Mh.current = Yh, Ph) {
|
||||||
for(var d = L.memoizedState; null !== d;){
|
for(var d = L.memoizedState; null !== d;){
|
||||||
var e = d.queue;
|
var e = d.queue;
|
||||||
null !== e && (e.pending = null), d = d.next;
|
null !== e && (e.pending = null), d = d.next;
|
||||||
@ -4741,7 +4743,7 @@
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
Lk(a, e);
|
Lk(a, e);
|
||||||
}
|
}
|
||||||
if (og = ng = mg = null, W = c, kk.current = d, null !== X) throw Error(p(261));
|
if (pg(), W = c, kk.current = d, null !== X) throw Error(p(261));
|
||||||
return P = null, Y = 0, R;
|
return P = null, Y = 0, R;
|
||||||
}
|
}
|
||||||
function Sk() {
|
function Sk() {
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
|||||||
import*as a from"react";export default function b(){const[c,d]=a.useState({hits:[]}),[b,e]=a.useState("react");return a.useEffect(()=>{async function a(){const a=await fetch("https://hn.algolia.com/api/v1/search?query="+b),c=await a.json();d(c)}""!==b&&a()},[b]),<>
|
import*as a from"react";export default function b(){const[c,d]=a.useState({hits:[]}),[b,e]=a.useState("react");return a.useEffect(()=>{""!==b&&a();async function a(){const a=await fetch("https://hn.algolia.com/api/v1/search?query="+b),c=await a.json();d(c)}},[b]),<>
|
||||||
|
|
||||||
<input value={b}onChange={a=>e(a.target.value)}/>
|
<input value={b}onChange={a=>e(a.target.value)}/>
|
||||||
|
|
||||||
|
@ -539,8 +539,6 @@ functions/issue_1841_1/input.js
|
|||||||
functions/issue_1841_2/input.js
|
functions/issue_1841_2/input.js
|
||||||
functions/issue_2097/input.js
|
functions/issue_2097/input.js
|
||||||
functions/issue_2101/input.js
|
functions/issue_2101/input.js
|
||||||
functions/issue_2630_1/input.js
|
|
||||||
functions/issue_2630_4/input.js
|
|
||||||
functions/issue_2647_1/input.js
|
functions/issue_2647_1/input.js
|
||||||
functions/issue_2647_2/input.js
|
functions/issue_2647_2/input.js
|
||||||
functions/issue_2647_3/input.js
|
functions/issue_2647_3/input.js
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
{
|
{
|
||||||
"defaults": true
|
"defaults": true,
|
||||||
|
"passes": 3
|
||||||
}
|
}
|
||||||
|
@ -909,7 +909,7 @@
|
|||||||
};
|
};
|
||||||
var pollTimeout, pollFns = [];
|
var pollTimeout, pollFns = [];
|
||||||
self.addPollFn = function(fn) {
|
self.addPollFn = function(fn) {
|
||||||
var setTimeout;
|
var interval, setTimeout;
|
||||||
return isUndefined(pollTimeout) && (setTimeout = setTimeout1, forEach(pollFns, function(pollFn) {
|
return isUndefined(pollTimeout) && (setTimeout = setTimeout1, forEach(pollFns, function(pollFn) {
|
||||||
pollFn();
|
pollFn();
|
||||||
}), pollTimeout = setTimeout(check, 100)), pollFns.push(fn), fn;
|
}), pollTimeout = setTimeout(check, 100)), pollFns.push(fn), fn;
|
||||||
@ -1476,6 +1476,9 @@
|
|||||||
data = fn(data, headers);
|
data = fn(data, headers);
|
||||||
}), data);
|
}), data);
|
||||||
}
|
}
|
||||||
|
function isSuccess(status) {
|
||||||
|
return 200 <= status && status < 300;
|
||||||
|
}
|
||||||
function $HttpProvider() {
|
function $HttpProvider() {
|
||||||
var JSON_START = /^\s*(\[|\{[^\{])/, JSON_END = /[\}\]]\s*$/, PROTECTION_PREFIX = /^\)\]\}',?\n/, CONTENT_TYPE_APPLICATION_JSON = {
|
var JSON_START = /^\s*(\[|\{[^\{])/, JSON_END = /[\}\]]\s*$/, PROTECTION_PREFIX = /^\)\]\}',?\n/, CONTENT_TYPE_APPLICATION_JSON = {
|
||||||
'Content-Type': 'application/json;charset=utf-8'
|
'Content-Type': 'application/json;charset=utf-8'
|
||||||
@ -1559,10 +1562,10 @@
|
|||||||
}), promise;
|
}), promise;
|
||||||
}, promise;
|
}, promise;
|
||||||
function transformResponse(response) {
|
function transformResponse(response) {
|
||||||
var status, resp = extend({}, response, {
|
var resp = extend({}, response, {
|
||||||
data: transformData(response.data, response.headers, config1.transformResponse)
|
data: transformData(response.data, response.headers, config1.transformResponse)
|
||||||
});
|
});
|
||||||
return 200 <= (status = response.status) && status < 300 ? resp : $q.reject(resp);
|
return isSuccess(response.status) ? resp : $q.reject(resp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return forEach(interceptorFactories, function(interceptorFactory) {
|
return forEach(interceptorFactories, function(interceptorFactory) {
|
||||||
@ -1604,19 +1607,14 @@
|
|||||||
isArray(cachedResp) ? resolvePromise(cachedResp[1], cachedResp[0], copy(cachedResp[2])) : resolvePromise(cachedResp, 200, {});
|
isArray(cachedResp) ? resolvePromise(cachedResp[1], cachedResp[0], copy(cachedResp[2])) : resolvePromise(cachedResp, 200, {});
|
||||||
} else cache.put(url, promise);
|
} else cache.put(url, promise);
|
||||||
return isUndefined(cachedResp) && $httpBackend(config.method, url, reqData, function(status, response, headersString) {
|
return isUndefined(cachedResp) && $httpBackend(config.method, url, reqData, function(status, response, headersString) {
|
||||||
if (cache) {
|
cache && (isSuccess(status) ? cache.put(url, [
|
||||||
var status1;
|
|
||||||
200 <= (status1 = status) && status1 < 300 ? cache.put(url, [
|
|
||||||
status,
|
status,
|
||||||
response,
|
response,
|
||||||
parseHeaders(headersString)
|
parseHeaders(headersString)
|
||||||
]) : cache.remove(url);
|
]) : cache.remove(url)), resolvePromise(response, status, headersString), $rootScope.$$phase || $rootScope.$apply();
|
||||||
}
|
|
||||||
resolvePromise(response, status, headersString), $rootScope.$$phase || $rootScope.$apply();
|
|
||||||
}, reqHeaders, config.timeout, config.withCredentials, config.responseType), promise;
|
}, reqHeaders, config.timeout, config.withCredentials, config.responseType), promise;
|
||||||
function resolvePromise(response, status, headers) {
|
function resolvePromise(response, status, headers) {
|
||||||
var status2;
|
(isSuccess(status = Math.max(status, 0)) ? deferred.resolve : deferred.reject)({
|
||||||
(200 <= (status2 = status = Math.max(status, 0)) && status2 < 300 ? deferred.resolve : deferred.reject)({
|
|
||||||
data: response,
|
data: response,
|
||||||
status: status,
|
status: status,
|
||||||
headers: headersGetter(headers),
|
headers: headersGetter(headers),
|
||||||
@ -1668,14 +1666,14 @@
|
|||||||
}
|
}
|
||||||
function createHttpBackend($browser, XHR, $browserDefer, callbacks, rawDocument) {
|
function createHttpBackend($browser, XHR, $browserDefer, callbacks, rawDocument) {
|
||||||
return function(method, url, post, callback1, headers, timeout, withCredentials, responseType) {
|
return function(method, url, post, callback1, headers, timeout, withCredentials, responseType) {
|
||||||
var status3;
|
var status1;
|
||||||
if ($browser.$$incOutstandingRequestCount(), url = url || $browser.url(), 'jsonp' == lowercase(method)) {
|
if ($browser.$$incOutstandingRequestCount(), url = url || $browser.url(), 'jsonp' == lowercase(method)) {
|
||||||
var callbackId = '_' + (callbacks.counter++).toString(36);
|
var callbackId = '_' + (callbacks.counter++).toString(36);
|
||||||
callbacks[callbackId] = function(data) {
|
callbacks[callbackId] = function(data) {
|
||||||
callbacks[callbackId].data = data;
|
callbacks[callbackId].data = data;
|
||||||
};
|
};
|
||||||
var jsonpDone = jsonpReq(url.replace('JSON_CALLBACK', 'angular.callbacks.' + callbackId), function() {
|
var jsonpDone = jsonpReq(url.replace('JSON_CALLBACK', 'angular.callbacks.' + callbackId), function() {
|
||||||
callbacks[callbackId].data ? completeRequest(callback1, 200, callbacks[callbackId].data) : completeRequest(callback1, status3 || -2), delete callbacks[callbackId];
|
callbacks[callbackId].data ? completeRequest(callback1, 200, callbacks[callbackId].data) : completeRequest(callback1, status1 || -2), delete callbacks[callbackId];
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
var xhr = new XHR();
|
var xhr = new XHR();
|
||||||
@ -1684,14 +1682,14 @@
|
|||||||
}), xhr.onreadystatechange = function() {
|
}), xhr.onreadystatechange = function() {
|
||||||
if (4 == xhr.readyState) {
|
if (4 == xhr.readyState) {
|
||||||
var responseHeaders = null, response = null;
|
var responseHeaders = null, response = null;
|
||||||
-1 !== status3 && (responseHeaders = xhr.getAllResponseHeaders(), response = xhr.responseType ? xhr.response : xhr.responseText), completeRequest(callback1, status3 || xhr.status, response, responseHeaders);
|
-1 !== status1 && (responseHeaders = xhr.getAllResponseHeaders(), response = xhr.responseType ? xhr.response : xhr.responseText), completeRequest(callback1, status1 || xhr.status, response, responseHeaders);
|
||||||
}
|
}
|
||||||
}, withCredentials && (xhr.withCredentials = !0), responseType && (xhr.responseType = responseType), xhr.send(post || null);
|
}, withCredentials && (xhr.withCredentials = !0), responseType && (xhr.responseType = responseType), xhr.send(post || null);
|
||||||
}
|
}
|
||||||
if (timeout > 0) var timeoutId = $browserDefer(timeoutRequest, timeout);
|
if (timeout > 0) var timeoutId = $browserDefer(timeoutRequest, timeout);
|
||||||
else timeout && timeout.then && timeout.then(timeoutRequest);
|
else timeout && timeout.then && timeout.then(timeoutRequest);
|
||||||
function timeoutRequest() {
|
function timeoutRequest() {
|
||||||
status3 = -1, jsonpDone && jsonpDone(), xhr && xhr.abort();
|
status1 = -1, jsonpDone && jsonpDone(), xhr && xhr.abort();
|
||||||
}
|
}
|
||||||
function completeRequest(callback, status, response, headersString) {
|
function completeRequest(callback, status, response, headersString) {
|
||||||
var protocol = urlResolve(url).protocol;
|
var protocol = urlResolve(url).protocol;
|
||||||
@ -2951,6 +2949,7 @@
|
|||||||
adjustedMatchers.push(function(matcher) {
|
adjustedMatchers.push(function(matcher) {
|
||||||
if ('self' === matcher) return matcher;
|
if ('self' === matcher) return matcher;
|
||||||
if (isString(matcher)) {
|
if (isString(matcher)) {
|
||||||
|
var s;
|
||||||
if (matcher.indexOf('***') > -1) throw $sceMinErr('iwcard', 'Illegal sequence *** in string matcher. String: {0}', matcher);
|
if (matcher.indexOf('***') > -1) throw $sceMinErr('iwcard', 'Illegal sequence *** in string matcher. String: {0}', matcher);
|
||||||
return matcher = matcher.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g, '\\$1').replace(/\x08/g, '\\x08').replace('\\*\\*', '.*').replace('\\*', '[^:/.?&;]*'), new RegExp('^' + matcher + '$');
|
return matcher = matcher.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g, '\\$1').replace(/\x08/g, '\\x08').replace('\\*\\*', '.*').replace('\\*', '[^:/.?&;]*'), new RegExp('^' + matcher + '$');
|
||||||
}
|
}
|
||||||
@ -3463,11 +3462,11 @@
|
|||||||
form.$setValidity(validationToken, !0, control);
|
form.$setValidity(validationToken, !0, control);
|
||||||
}), arrayRemove(controls, control);
|
}), arrayRemove(controls, control);
|
||||||
}, form.$setValidity = function(validationToken, isValid, control) {
|
}, form.$setValidity = function(validationToken, isValid, control) {
|
||||||
var queue = errors[validationToken];
|
var array, obj, 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)));
|
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 {
|
else {
|
||||||
if (invalidCount || toggleValidCss(isValid), queue) {
|
if (invalidCount || toggleValidCss(isValid), queue) {
|
||||||
if (-1 != indexOf(queue, control)) return;
|
if (-1 != indexOf(array = queue, control)) return;
|
||||||
} else errors[validationToken] = queue = [], invalidCount++, toggleValidCss(!1, validationToken), parentForm.$setValidity(validationToken, !1, form);
|
} else errors[validationToken] = queue = [], invalidCount++, toggleValidCss(!1, validationToken), parentForm.$setValidity(validationToken, !1, form);
|
||||||
queue.push(control), form.$valid = !1, form.$invalid = !0;
|
queue.push(control), form.$valid = !1, form.$invalid = !0;
|
||||||
}
|
}
|
||||||
|
@ -865,7 +865,8 @@
|
|||||||
var handle, ontype, cur, bubbleType, special, tmp, i, eventPath = [
|
var handle, ontype, cur, bubbleType, special, tmp, i, eventPath = [
|
||||||
elem || document1
|
elem || document1
|
||||||
], type = core_hasOwn.call(event, "type") ? event.type : event, namespaces = core_hasOwn.call(event, "namespace") ? event.namespace.split(".") : [];
|
], type = core_hasOwn.call(event, "type") ? event.type : event, namespaces = core_hasOwn.call(event, "namespace") ? event.namespace.split(".") : [];
|
||||||
if (cur = tmp = elem = elem || document1, 3 !== elem.nodeType && 8 !== elem.nodeType && !rfocusMorph.test(type + jQuery.event.triggered) && (type.indexOf(".") >= 0 && (type = (namespaces = type.split(".")).shift(), namespaces.sort()), ontype = 0 > type.indexOf(":") && "on" + type, (event = event[jQuery.expando] ? event : new jQuery.Event(type, "object" == typeof event && event)).isTrigger = !0, event.namespace = namespaces.join("."), event.namespace_re = event.namespace ? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, event.result = undefined, event.target || (event.target = elem), data = null == data ? [
|
if (cur = tmp = elem = elem || document1, 3 !== elem.nodeType && 8 !== elem.nodeType) {
|
||||||
|
if (!rfocusMorph.test(type + jQuery.event.triggered) && (type.indexOf(".") >= 0 && (type = (namespaces = type.split(".")).shift(), namespaces.sort()), ontype = 0 > type.indexOf(":") && "on" + type, (event = event[jQuery.expando] ? event : new jQuery.Event(type, "object" == typeof event && event)).isTrigger = !0, event.namespace = namespaces.join("."), event.namespace_re = event.namespace ? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, event.result = undefined, event.target || (event.target = elem), data = null == data ? [
|
||||||
event
|
event
|
||||||
] : jQuery.makeArray(data, [
|
] : jQuery.makeArray(data, [
|
||||||
event
|
event
|
||||||
@ -884,6 +885,7 @@
|
|||||||
}
|
}
|
||||||
return event.result;
|
return event.result;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
dispatch: function(event) {
|
dispatch: function(event) {
|
||||||
event = jQuery.event.fix(event);
|
event = jQuery.event.fix(event);
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -463,15 +463,9 @@
|
|||||||
var name = fn ? fn.displayName || fn.name : '', syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
|
var name = fn ? fn.displayName || fn.name : '', syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
|
||||||
return 'function' == typeof fn && componentFrameCache.set(fn, syntheticFrame), syntheticFrame;
|
return 'function' == typeof fn && componentFrameCache.set(fn, syntheticFrame), syntheticFrame;
|
||||||
}
|
}
|
||||||
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
||||||
return describeNativeComponentFrame(fn, !1);
|
|
||||||
}
|
|
||||||
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
||||||
if (null == type) return '';
|
if (null == type) return '';
|
||||||
if ('function' == typeof type) {
|
if ('function' == typeof type) return describeNativeComponentFrame(type, !!((prototype = type.prototype) && prototype.isReactComponent));
|
||||||
var prototype;
|
|
||||||
return describeNativeComponentFrame(type, !!((prototype = type.prototype) && prototype.isReactComponent));
|
|
||||||
}
|
|
||||||
if ('string' == typeof type) return describeBuiltInComponentFrame(type);
|
if ('string' == typeof type) return describeBuiltInComponentFrame(type);
|
||||||
switch(type){
|
switch(type){
|
||||||
case exports.Suspense:
|
case exports.Suspense:
|
||||||
@ -481,13 +475,13 @@
|
|||||||
}
|
}
|
||||||
if ('object' == typeof type) switch(type.$$typeof){
|
if ('object' == typeof type) switch(type.$$typeof){
|
||||||
case REACT_FORWARD_REF_TYPE:
|
case REACT_FORWARD_REF_TYPE:
|
||||||
return describeFunctionComponentFrame(type.render);
|
return describeNativeComponentFrame(type.render, !1);
|
||||||
case REACT_MEMO_TYPE:
|
case REACT_MEMO_TYPE:
|
||||||
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
||||||
case REACT_BLOCK_TYPE:
|
case REACT_BLOCK_TYPE:
|
||||||
return describeFunctionComponentFrame(type._render);
|
return describeNativeComponentFrame(type._render, !1);
|
||||||
case REACT_LAZY_TYPE:
|
case REACT_LAZY_TYPE:
|
||||||
var lazyComponent = type, payload = lazyComponent._payload, init = lazyComponent._init;
|
var Component, prototype, fn, fn1, lazyComponent = type, payload = lazyComponent._payload, init = lazyComponent._init;
|
||||||
try {
|
try {
|
||||||
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
||||||
} catch (x) {}
|
} catch (x) {}
|
||||||
@ -504,7 +498,7 @@
|
|||||||
}
|
}
|
||||||
function setCurrentlyValidatingElement$1(element) {
|
function setCurrentlyValidatingElement$1(element) {
|
||||||
if (element) {
|
if (element) {
|
||||||
var owner = element._owner;
|
var stack, owner = element._owner;
|
||||||
currentExtraStackFrame = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
currentExtraStackFrame = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
||||||
} else currentExtraStackFrame = null;
|
} else currentExtraStackFrame = null;
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1143,11 +1143,10 @@ var YUI = function() {
|
|||||||
name: "json-parse-shim",
|
name: "json-parse-shim",
|
||||||
test: function(Y) {
|
test: function(Y) {
|
||||||
var _JSON = Y.config.global.JSON, Native = '[object JSON]' === Object.prototype.toString.call(_JSON) && _JSON, nativeSupport = !1 !== Y.config.useNativeJSONParse && !!Native;
|
var _JSON = Y.config.global.JSON, Native = '[object JSON]' === Object.prototype.toString.call(_JSON) && _JSON, nativeSupport = !1 !== Y.config.useNativeJSONParse && !!Native;
|
||||||
function workingNative(k, v) {
|
|
||||||
return "ok" === k || v;
|
|
||||||
}
|
|
||||||
if (nativeSupport) try {
|
if (nativeSupport) try {
|
||||||
nativeSupport = Native.parse('{"ok":false}', workingNative).ok;
|
nativeSupport = Native.parse('{"ok":false}', function(k, v) {
|
||||||
|
return "ok" === k || v;
|
||||||
|
}).ok;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
nativeSupport = !1;
|
nativeSupport = !1;
|
||||||
}
|
}
|
||||||
@ -3565,11 +3564,10 @@ var YUI = function() {
|
|||||||
name: "json-parse-shim",
|
name: "json-parse-shim",
|
||||||
test: function(Y) {
|
test: function(Y) {
|
||||||
var _JSON = Y.config.global.JSON, Native = '[object JSON]' === Object.prototype.toString.call(_JSON) && _JSON, nativeSupport = !1 !== Y.config.useNativeJSONParse && !!Native;
|
var _JSON = Y.config.global.JSON, Native = '[object JSON]' === Object.prototype.toString.call(_JSON) && _JSON, nativeSupport = !1 !== Y.config.useNativeJSONParse && !!Native;
|
||||||
function workingNative(k, v) {
|
|
||||||
return "ok" === k || v;
|
|
||||||
}
|
|
||||||
if (nativeSupport) try {
|
if (nativeSupport) try {
|
||||||
nativeSupport = Native.parse('{"ok":false}', workingNative).ok;
|
nativeSupport = Native.parse('{"ok":false}', function(k, v) {
|
||||||
|
return "ok" === k || v;
|
||||||
|
}).ok;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
nativeSupport = !1;
|
nativeSupport = !1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user