@ukpc-lib/react 0.3.36 → 0.3.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +2 -2
- package/dist/{index.module-ac67a1cf.cjs → index.module-880ac584.cjs} +81 -81
- package/dist/{index.module-7ec738c2.js → index.module-f5d39f55.js} +2277 -2277
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +1 -1
- package/web-components-bundle/global-menu/index.cjs +1 -1
- package/web-components-bundle/global-menu/index.js +1 -1
- package/web-components-bundle/global-topbar/index.cjs +1 -1
- package/web-components-bundle/global-topbar/index.js +2 -2
- package/web-components-bundle/has-permission/index.cjs +1 -1
- package/web-components-bundle/has-permission/index.js +2 -2
- package/web-components-bundle/{index-10034ebf.js → index-b2dc9480.js} +5949 -5952
- package/web-components-bundle/{index-659d93f3.js → index-cd31e4a8.js} +829 -829
- package/web-components-bundle/{index-558337af.cjs → index-e1e6639e.cjs} +79 -79
- package/web-components-bundle/{index-bad82c40.cjs → index-e820d563.cjs} +18 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as Al, r as x, j as R, a as
|
|
1
|
+
import { d as Al, r as x, j as R, a as Be, e as Ol, R as Qf, _ as ed, s as td } from "./react-to-web-component-469d91d4.js";
|
|
2
2
|
function _l(e, t) {
|
|
3
3
|
return function() {
|
|
4
4
|
return e.apply(t, arguments);
|
|
@@ -7,25 +7,25 @@ function _l(e, t) {
|
|
|
7
7
|
const { toString: nd } = Object.prototype, { getPrototypeOf: ro } = Object, Er = ((e) => (t) => {
|
|
8
8
|
const n = nd.call(t);
|
|
9
9
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
10
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
10
|
+
})(/* @__PURE__ */ Object.create(null)), De = (e) => (e = e.toLowerCase(), (t) => Er(t) === e), Cr = (e) => (t) => typeof t === e, { isArray: Nt } = Array, un = Cr("undefined");
|
|
11
11
|
function rd(e) {
|
|
12
|
-
return e !== null && !un(e) && e.constructor !== null && !un(e.constructor) &&
|
|
12
|
+
return e !== null && !un(e) && e.constructor !== null && !un(e.constructor) && ke(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
13
13
|
}
|
|
14
|
-
const Ml =
|
|
14
|
+
const Ml = De("ArrayBuffer");
|
|
15
15
|
function id(e) {
|
|
16
16
|
let t;
|
|
17
17
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ml(e.buffer), t;
|
|
18
18
|
}
|
|
19
|
-
const od = Cr("string"),
|
|
19
|
+
const od = Cr("string"), ke = Cr("function"), Vl = Cr("number"), kr = (e) => e !== null && typeof e == "object", sd = (e) => e === !0 || e === !1, jn = (e) => {
|
|
20
20
|
if (Er(e) !== "object")
|
|
21
21
|
return !1;
|
|
22
22
|
const t = ro(e);
|
|
23
23
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
24
|
-
}, ad =
|
|
24
|
+
}, ad = De("Date"), ld = De("File"), ud = De("Blob"), cd = De("FileList"), fd = (e) => kr(e) && ke(e.pipe), dd = (e) => {
|
|
25
25
|
let t;
|
|
26
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
27
|
-
t === "object" &&
|
|
28
|
-
}, hd =
|
|
26
|
+
return e && (typeof FormData == "function" && e instanceof FormData || ke(e.append) && ((t = Er(e)) === "formdata" || // detect form-data instance
|
|
27
|
+
t === "object" && ke(e.toString) && e.toString() === "[object FormData]"));
|
|
28
|
+
}, hd = De("URLSearchParams"), pd = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
29
29
|
function xn(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
30
30
|
if (e === null || typeof e > "u")
|
|
31
31
|
return;
|
|
@@ -60,7 +60,7 @@ function Ci() {
|
|
|
60
60
|
return t;
|
|
61
61
|
}
|
|
62
62
|
const md = (e, t, n, { allOwnKeys: r } = {}) => (xn(t, (i, o) => {
|
|
63
|
-
n &&
|
|
63
|
+
n && ke(i) ? e[o] = _l(i, n) : e[o] = i;
|
|
64
64
|
}, { allOwnKeys: r }), e), gd = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), yd = (e, t, n, r) => {
|
|
65
65
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
66
66
|
value: t.prototype
|
|
@@ -105,12 +105,12 @@ const md = (e, t, n, { allOwnKeys: r } = {}) => (xn(t, (i, o) => {
|
|
|
105
105
|
for (; (n = e.exec(t)) !== null; )
|
|
106
106
|
r.push(n);
|
|
107
107
|
return r;
|
|
108
|
-
}, Cd =
|
|
108
|
+
}, Cd = De("HTMLFormElement"), kd = (e) => e.toLowerCase().replace(
|
|
109
109
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
110
110
|
function(n, r, i) {
|
|
111
111
|
return r.toUpperCase() + i;
|
|
112
112
|
}
|
|
113
|
-
), ts = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Td =
|
|
113
|
+
), ts = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Td = De("RegExp"), jl = (e, t) => {
|
|
114
114
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
115
115
|
xn(n, (i, o) => {
|
|
116
116
|
let s;
|
|
@@ -118,10 +118,10 @@ const md = (e, t, n, { allOwnKeys: r } = {}) => (xn(t, (i, o) => {
|
|
|
118
118
|
}), Object.defineProperties(e, r);
|
|
119
119
|
}, Pd = (e) => {
|
|
120
120
|
jl(e, (t, n) => {
|
|
121
|
-
if (
|
|
121
|
+
if (ke(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
122
122
|
return !1;
|
|
123
123
|
const r = e[n];
|
|
124
|
-
if (
|
|
124
|
+
if (ke(r)) {
|
|
125
125
|
if (t.enumerable = !1, "writable" in t) {
|
|
126
126
|
t.writable = !1;
|
|
127
127
|
return;
|
|
@@ -151,7 +151,7 @@ const md = (e, t, n, { allOwnKeys: r } = {}) => (xn(t, (i, o) => {
|
|
|
151
151
|
return n;
|
|
152
152
|
};
|
|
153
153
|
function Md(e) {
|
|
154
|
-
return !!(e &&
|
|
154
|
+
return !!(e && ke(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
155
155
|
}
|
|
156
156
|
const Vd = (e) => {
|
|
157
157
|
const t = new Array(10), n = (r, i) => {
|
|
@@ -170,7 +170,7 @@ const Vd = (e) => {
|
|
|
170
170
|
return r;
|
|
171
171
|
};
|
|
172
172
|
return n(e, 0);
|
|
173
|
-
}, Fd =
|
|
173
|
+
}, Fd = De("AsyncFunction"), Ld = (e) => e && (kr(e) || ke(e)) && ke(e.then) && ke(e.catch), w = {
|
|
174
174
|
isArray: Nt,
|
|
175
175
|
isArrayBuffer: Ml,
|
|
176
176
|
isBuffer: rd,
|
|
@@ -186,7 +186,7 @@ const Vd = (e) => {
|
|
|
186
186
|
isFile: ld,
|
|
187
187
|
isBlob: ud,
|
|
188
188
|
isRegExp: Td,
|
|
189
|
-
isFunction:
|
|
189
|
+
isFunction: ke,
|
|
190
190
|
isStream: fd,
|
|
191
191
|
isURLSearchParams: hd,
|
|
192
192
|
isTypedArray: wd,
|
|
@@ -199,7 +199,7 @@ const Vd = (e) => {
|
|
|
199
199
|
inherits: yd,
|
|
200
200
|
toFlatObject: vd,
|
|
201
201
|
kindOf: Er,
|
|
202
|
-
kindOfTest:
|
|
202
|
+
kindOfTest: De,
|
|
203
203
|
endsWith: xd,
|
|
204
204
|
toArray: bd,
|
|
205
205
|
forEachEntry: Sd,
|
|
@@ -469,14 +469,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
|
469
469
|
hasBrowserEnv: Hl,
|
|
470
470
|
hasStandardBrowserEnv: Hd,
|
|
471
471
|
hasStandardBrowserWebWorkerEnv: qd
|
|
472
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
472
|
+
}, Symbol.toStringTag, { value: "Module" })), Fe = {
|
|
473
473
|
...Gd,
|
|
474
474
|
...Wd
|
|
475
475
|
};
|
|
476
476
|
function Xd(e, t) {
|
|
477
|
-
return Tr(e, new
|
|
477
|
+
return Tr(e, new Fe.classes.URLSearchParams(), Object.assign({
|
|
478
478
|
visitor: function(n, r, i, o) {
|
|
479
|
-
return
|
|
479
|
+
return Fe.isNode && w.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
480
480
|
}
|
|
481
481
|
}, t));
|
|
482
482
|
}
|
|
@@ -567,8 +567,8 @@ const oo = {
|
|
|
567
567
|
maxContentLength: -1,
|
|
568
568
|
maxBodyLength: -1,
|
|
569
569
|
env: {
|
|
570
|
-
FormData:
|
|
571
|
-
Blob:
|
|
570
|
+
FormData: Fe.classes.FormData,
|
|
571
|
+
Blob: Fe.classes.Blob
|
|
572
572
|
},
|
|
573
573
|
validateStatus: function(t) {
|
|
574
574
|
return t >= 200 && t < 300;
|
|
@@ -767,9 +767,9 @@ w.reduceDescriptors(Pr.prototype, ({ value: e }, t) => {
|
|
|
767
767
|
};
|
|
768
768
|
});
|
|
769
769
|
w.freezeMethods(Pr);
|
|
770
|
-
const
|
|
770
|
+
const ze = Pr;
|
|
771
771
|
function Kr(e, t) {
|
|
772
|
-
const n = this || so, r = t || n, i =
|
|
772
|
+
const n = this || so, r = t || n, i = ze.from(r.headers);
|
|
773
773
|
let o = r.data;
|
|
774
774
|
return w.forEach(e, function(a) {
|
|
775
775
|
o = a.call(n, o, i.normalize(), t ? t.status : void 0);
|
|
@@ -794,7 +794,7 @@ function ih(e, t, n) {
|
|
|
794
794
|
n
|
|
795
795
|
));
|
|
796
796
|
}
|
|
797
|
-
const oh =
|
|
797
|
+
const oh = Fe.hasStandardBrowserEnv ? (
|
|
798
798
|
// Standard browser envs support document.cookie
|
|
799
799
|
{
|
|
800
800
|
write(e, t, n, r, i, o) {
|
|
@@ -830,7 +830,7 @@ function ah(e, t) {
|
|
|
830
830
|
function Xl(e, t) {
|
|
831
831
|
return e && !sh(t) ? ah(e, t) : t;
|
|
832
832
|
}
|
|
833
|
-
const lh =
|
|
833
|
+
const lh = Fe.hasStandardBrowserEnv ? (
|
|
834
834
|
// Standard browser envs have full support of the APIs needed to test
|
|
835
835
|
// whether the request URL is of the same origin as current location.
|
|
836
836
|
function() {
|
|
@@ -903,14 +903,14 @@ function as(e, t) {
|
|
|
903
903
|
const fh = typeof XMLHttpRequest < "u", dh = fh && function(e) {
|
|
904
904
|
return new Promise(function(n, r) {
|
|
905
905
|
let i = e.data;
|
|
906
|
-
const o =
|
|
906
|
+
const o = ze.from(e.headers).normalize();
|
|
907
907
|
let { responseType: s, withXSRFToken: a } = e, l;
|
|
908
908
|
function u() {
|
|
909
909
|
e.cancelToken && e.cancelToken.unsubscribe(l), e.signal && e.signal.removeEventListener("abort", l);
|
|
910
910
|
}
|
|
911
911
|
let f;
|
|
912
912
|
if (w.isFormData(i)) {
|
|
913
|
-
if (
|
|
913
|
+
if (Fe.hasStandardBrowserEnv || Fe.hasStandardBrowserWebWorkerEnv)
|
|
914
914
|
o.setContentType(!1);
|
|
915
915
|
else if ((f = o.getContentType()) !== !1) {
|
|
916
916
|
const [m, ...g] = f ? f.split(";").map((y) => y.trim()).filter(Boolean) : [];
|
|
@@ -927,7 +927,7 @@ const fh = typeof XMLHttpRequest < "u", dh = fh && function(e) {
|
|
|
927
927
|
function h() {
|
|
928
928
|
if (!c)
|
|
929
929
|
return;
|
|
930
|
-
const m =
|
|
930
|
+
const m = ze.from(
|
|
931
931
|
"getAllResponseHeaders" in c && c.getAllResponseHeaders()
|
|
932
932
|
), y = {
|
|
933
933
|
data: !s || s === "text" || s === "json" ? c.responseText : c.response,
|
|
@@ -958,7 +958,7 @@ const fh = typeof XMLHttpRequest < "u", dh = fh && function(e) {
|
|
|
958
958
|
e,
|
|
959
959
|
c
|
|
960
960
|
)), c = null;
|
|
961
|
-
},
|
|
961
|
+
}, Fe.hasStandardBrowserEnv && (a && w.isFunction(a) && (a = a(e)), a || a !== !1 && lh(d))) {
|
|
962
962
|
const m = e.xsrfHeaderName && e.xsrfCookieName && oh.read(e.xsrfCookieName);
|
|
963
963
|
m && o.set(e.xsrfHeaderName, m);
|
|
964
964
|
}
|
|
@@ -968,7 +968,7 @@ const fh = typeof XMLHttpRequest < "u", dh = fh && function(e) {
|
|
|
968
968
|
c && (r(!m || m.type ? new bn(null, e, c) : m), c.abort(), c = null);
|
|
969
969
|
}, e.cancelToken && e.cancelToken.subscribe(l), e.signal && (e.signal.aborted ? l() : e.signal.addEventListener("abort", l)));
|
|
970
970
|
const p = uh(d);
|
|
971
|
-
if (p &&
|
|
971
|
+
if (p && Fe.protocols.indexOf(p) === -1) {
|
|
972
972
|
r(new L("Unsupported protocol " + p + ":", L.ERR_BAD_REQUEST, e));
|
|
973
973
|
return;
|
|
974
974
|
}
|
|
@@ -1023,7 +1023,7 @@ function Yr(e) {
|
|
|
1023
1023
|
throw new bn(null, e);
|
|
1024
1024
|
}
|
|
1025
1025
|
function us(e) {
|
|
1026
|
-
return Yr(e), e.headers =
|
|
1026
|
+
return Yr(e), e.headers = ze.from(e.headers), e.data = Kr.call(
|
|
1027
1027
|
e,
|
|
1028
1028
|
e.transformRequest
|
|
1029
1029
|
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Kl.getAdapter(e.adapter || so.adapter)(e).then(function(r) {
|
|
@@ -1031,16 +1031,16 @@ function us(e) {
|
|
|
1031
1031
|
e,
|
|
1032
1032
|
e.transformResponse,
|
|
1033
1033
|
r
|
|
1034
|
-
), r.headers =
|
|
1034
|
+
), r.headers = ze.from(r.headers), r;
|
|
1035
1035
|
}, function(r) {
|
|
1036
1036
|
return Gl(r) || (Yr(e), r && r.response && (r.response.data = Kr.call(
|
|
1037
1037
|
e,
|
|
1038
1038
|
e.transformResponse,
|
|
1039
1039
|
r.response
|
|
1040
|
-
), r.response.headers =
|
|
1040
|
+
), r.response.headers = ze.from(r.response.headers))), Promise.reject(r);
|
|
1041
1041
|
});
|
|
1042
1042
|
}
|
|
1043
|
-
const cs = (e) => e instanceof
|
|
1043
|
+
const cs = (e) => e instanceof ze ? e.toJSON() : e;
|
|
1044
1044
|
function Dt(e, t) {
|
|
1045
1045
|
t = t || {};
|
|
1046
1046
|
const n = {};
|
|
@@ -1152,7 +1152,7 @@ function ph(e, t, n) {
|
|
|
1152
1152
|
const Pi = {
|
|
1153
1153
|
assertOptions: ph,
|
|
1154
1154
|
validators: ao
|
|
1155
|
-
},
|
|
1155
|
+
}, Xe = Pi.validators;
|
|
1156
1156
|
class Qn {
|
|
1157
1157
|
constructor(t) {
|
|
1158
1158
|
this.defaults = t, this.interceptors = {
|
|
@@ -1172,14 +1172,14 @@ class Qn {
|
|
|
1172
1172
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Dt(this.defaults, n);
|
|
1173
1173
|
const { transitional: r, paramsSerializer: i, headers: o } = n;
|
|
1174
1174
|
r !== void 0 && Pi.assertOptions(r, {
|
|
1175
|
-
silentJSONParsing:
|
|
1176
|
-
forcedJSONParsing:
|
|
1177
|
-
clarifyTimeoutError:
|
|
1175
|
+
silentJSONParsing: Xe.transitional(Xe.boolean),
|
|
1176
|
+
forcedJSONParsing: Xe.transitional(Xe.boolean),
|
|
1177
|
+
clarifyTimeoutError: Xe.transitional(Xe.boolean)
|
|
1178
1178
|
}, !1), i != null && (w.isFunction(i) ? n.paramsSerializer = {
|
|
1179
1179
|
serialize: i
|
|
1180
1180
|
} : Pi.assertOptions(i, {
|
|
1181
|
-
encode:
|
|
1182
|
-
serialize:
|
|
1181
|
+
encode: Xe.function,
|
|
1182
|
+
serialize: Xe.function
|
|
1183
1183
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1184
1184
|
let s = o && w.merge(
|
|
1185
1185
|
o.common,
|
|
@@ -1190,7 +1190,7 @@ class Qn {
|
|
|
1190
1190
|
(p) => {
|
|
1191
1191
|
delete o[p];
|
|
1192
1192
|
}
|
|
1193
|
-
), n.headers =
|
|
1193
|
+
), n.headers = ze.concat(s, o);
|
|
1194
1194
|
const a = [];
|
|
1195
1195
|
let l = !0;
|
|
1196
1196
|
this.interceptors.request.forEach(function(m) {
|
|
@@ -1410,27 +1410,27 @@ function Jl(e) {
|
|
|
1410
1410
|
return Jl(Dt(e, i));
|
|
1411
1411
|
}, n;
|
|
1412
1412
|
}
|
|
1413
|
-
const
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1413
|
+
const Q = Jl(so);
|
|
1414
|
+
Q.Axios = Nn;
|
|
1415
|
+
Q.CanceledError = bn;
|
|
1416
|
+
Q.CancelToken = mh;
|
|
1417
|
+
Q.isCancel = Gl;
|
|
1418
|
+
Q.VERSION = Yl;
|
|
1419
|
+
Q.toFormData = Tr;
|
|
1420
|
+
Q.AxiosError = L;
|
|
1421
|
+
Q.Cancel = Q.CanceledError;
|
|
1422
|
+
Q.all = function(t) {
|
|
1423
1423
|
return Promise.all(t);
|
|
1424
1424
|
};
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
const xh =
|
|
1425
|
+
Q.spread = gh;
|
|
1426
|
+
Q.isAxiosError = yh;
|
|
1427
|
+
Q.mergeConfig = Dt;
|
|
1428
|
+
Q.AxiosHeaders = ze;
|
|
1429
|
+
Q.formToJSON = (e) => ql(w.isHTMLForm(e) ? new FormData(e) : e);
|
|
1430
|
+
Q.getAdapter = Kl.getAdapter;
|
|
1431
|
+
Q.HttpStatusCode = vh;
|
|
1432
|
+
Q.default = Q;
|
|
1433
|
+
const xh = Q;
|
|
1434
1434
|
var bh = typeof global == "object" && global && global.Object === Object && global;
|
|
1435
1435
|
const wh = bh;
|
|
1436
1436
|
var Sh = typeof self == "object" && self && self.Object === Object && self, Eh = wh || Sh || Function("return this")();
|
|
@@ -1503,29 +1503,29 @@ function Bn(e, t, n) {
|
|
|
1503
1503
|
if (typeof e != "function")
|
|
1504
1504
|
throw new TypeError(qh);
|
|
1505
1505
|
t = ps(t) || 0, tr(n) && (f = !!n.leading, c = "maxWait" in n, o = c ? Gh(ps(n.maxWait) || 0, t) : o, d = "trailing" in n ? !!n.trailing : d);
|
|
1506
|
-
function h(
|
|
1507
|
-
var
|
|
1508
|
-
return r = i = void 0, u =
|
|
1506
|
+
function h(k) {
|
|
1507
|
+
var P = r, T = i;
|
|
1508
|
+
return r = i = void 0, u = k, s = e.apply(T, P), s;
|
|
1509
1509
|
}
|
|
1510
|
-
function p(
|
|
1511
|
-
return u =
|
|
1510
|
+
function p(k) {
|
|
1511
|
+
return u = k, a = setTimeout(y, t), f ? h(k) : s;
|
|
1512
1512
|
}
|
|
1513
|
-
function m(
|
|
1514
|
-
var
|
|
1515
|
-
return c ? Xh(M, o -
|
|
1513
|
+
function m(k) {
|
|
1514
|
+
var P = k - l, T = k - u, M = t - P;
|
|
1515
|
+
return c ? Xh(M, o - T) : M;
|
|
1516
1516
|
}
|
|
1517
|
-
function g(
|
|
1518
|
-
var
|
|
1519
|
-
return l === void 0 ||
|
|
1517
|
+
function g(k) {
|
|
1518
|
+
var P = k - l, T = k - u;
|
|
1519
|
+
return l === void 0 || P >= t || P < 0 || c && T >= o;
|
|
1520
1520
|
}
|
|
1521
1521
|
function y() {
|
|
1522
|
-
var
|
|
1523
|
-
if (g(
|
|
1524
|
-
return b(
|
|
1525
|
-
a = setTimeout(y, m(
|
|
1522
|
+
var k = Jr();
|
|
1523
|
+
if (g(k))
|
|
1524
|
+
return b(k);
|
|
1525
|
+
a = setTimeout(y, m(k));
|
|
1526
1526
|
}
|
|
1527
|
-
function b(
|
|
1528
|
-
return a = void 0, d && r ? h(
|
|
1527
|
+
function b(k) {
|
|
1528
|
+
return a = void 0, d && r ? h(k) : (r = i = void 0, s);
|
|
1529
1529
|
}
|
|
1530
1530
|
function v() {
|
|
1531
1531
|
a !== void 0 && clearTimeout(a), u = 0, r = l = i = a = void 0;
|
|
@@ -1534,8 +1534,8 @@ function Bn(e, t, n) {
|
|
|
1534
1534
|
return a === void 0 ? s : b(Jr());
|
|
1535
1535
|
}
|
|
1536
1536
|
function E() {
|
|
1537
|
-
var
|
|
1538
|
-
if (r = arguments, i = this, l =
|
|
1537
|
+
var k = Jr(), P = g(k);
|
|
1538
|
+
if (r = arguments, i = this, l = k, P) {
|
|
1539
1539
|
if (a === void 0)
|
|
1540
1540
|
return p(l);
|
|
1541
1541
|
if (c)
|
|
@@ -1633,7 +1633,7 @@ var Qh = /* @__PURE__ */ Object.freeze({
|
|
|
1633
1633
|
addClasses: iu,
|
|
1634
1634
|
removeClasses: ou,
|
|
1635
1635
|
classNamesToQuery: su
|
|
1636
|
-
}),
|
|
1636
|
+
}), Ke = tu, Zr = nu, ep = ru, Ye = iu, Je = ou, le = su, Tn = (
|
|
1637
1637
|
/** @class */
|
|
1638
1638
|
function() {
|
|
1639
1639
|
function e(t, n) {
|
|
@@ -1644,18 +1644,18 @@ var Qh = /* @__PURE__ */ Object.freeze({
|
|
|
1644
1644
|
}, this.onStopScrolling = function() {
|
|
1645
1645
|
}, this.onMouseEntered = function() {
|
|
1646
1646
|
}, this.onScroll = function() {
|
|
1647
|
-
var i =
|
|
1648
|
-
r.scrollXTicking || (i.requestAnimationFrame(r.scrollX), r.scrollXTicking = !0), r.scrollYTicking || (i.requestAnimationFrame(r.scrollY), r.scrollYTicking = !0), r.isScrolling || (r.isScrolling = !0,
|
|
1647
|
+
var i = Ke(r.el);
|
|
1648
|
+
r.scrollXTicking || (i.requestAnimationFrame(r.scrollX), r.scrollXTicking = !0), r.scrollYTicking || (i.requestAnimationFrame(r.scrollY), r.scrollYTicking = !0), r.isScrolling || (r.isScrolling = !0, Ye(r.el, r.classNames.scrolling)), r.showScrollbar("x"), r.showScrollbar("y"), r.onStopScrolling();
|
|
1649
1649
|
}, this.scrollX = function() {
|
|
1650
1650
|
r.axis.x.isOverflowing && r.positionScrollbar("x"), r.scrollXTicking = !1;
|
|
1651
1651
|
}, this.scrollY = function() {
|
|
1652
1652
|
r.axis.y.isOverflowing && r.positionScrollbar("y"), r.scrollYTicking = !1;
|
|
1653
1653
|
}, this._onStopScrolling = function() {
|
|
1654
|
-
|
|
1654
|
+
Je(r.el, r.classNames.scrolling), r.options.autoHide && (r.hideScrollbar("x"), r.hideScrollbar("y")), r.isScrolling = !1;
|
|
1655
1655
|
}, this.onMouseEnter = function() {
|
|
1656
|
-
r.isMouseEntering || (
|
|
1656
|
+
r.isMouseEntering || (Ye(r.el, r.classNames.mouseEntered), r.showScrollbar("x"), r.showScrollbar("y"), r.isMouseEntering = !0), r.onMouseEntered();
|
|
1657
1657
|
}, this._onMouseEntered = function() {
|
|
1658
|
-
|
|
1658
|
+
Je(r.el, r.classNames.mouseEntered), r.options.autoHide && (r.hideScrollbar("x"), r.hideScrollbar("y")), r.isMouseEntering = !1;
|
|
1659
1659
|
}, this._onMouseMove = function(i) {
|
|
1660
1660
|
r.mouseX = i.clientX, r.mouseY = i.clientY, (r.axis.x.isOverflowing || r.axis.x.forceVisible) && r.onMouseMoveForAxis("x"), (r.axis.y.isOverflowing || r.axis.y.forceVisible) && r.onMouseMoveForAxis("y");
|
|
1661
1661
|
}, this.onMouseLeave = function() {
|
|
@@ -1672,14 +1672,14 @@ var Qh = /* @__PURE__ */ Object.freeze({
|
|
|
1672
1672
|
if (!(!r.draggedAxis || !r.contentWrapperEl)) {
|
|
1673
1673
|
var g, y = r.axis[r.draggedAxis].track, b = (s = (o = y.rect) === null || o === void 0 ? void 0 : o[r.axis[r.draggedAxis].sizeAttr]) !== null && s !== void 0 ? s : 0, v = r.axis[r.draggedAxis].scrollbar, S = (l = (a = r.contentWrapperEl) === null || a === void 0 ? void 0 : a[r.axis[r.draggedAxis].scrollSizeAttr]) !== null && l !== void 0 ? l : 0, E = parseInt((f = (u = r.elStyles) === null || u === void 0 ? void 0 : u[r.axis[r.draggedAxis].sizeAttr]) !== null && f !== void 0 ? f : "0px", 10);
|
|
1674
1674
|
i.preventDefault(), i.stopPropagation(), r.draggedAxis === "y" ? g = i.pageY : g = i.pageX;
|
|
1675
|
-
var
|
|
1676
|
-
|
|
1677
|
-
var
|
|
1678
|
-
r.draggedAxis === "x" && r.isRtl && (
|
|
1675
|
+
var k = g - ((d = (c = y.rect) === null || c === void 0 ? void 0 : c[r.axis[r.draggedAxis].offsetAttr]) !== null && d !== void 0 ? d : 0) - r.axis[r.draggedAxis].dragOffset;
|
|
1676
|
+
k = r.draggedAxis === "x" && r.isRtl ? ((p = (h = y.rect) === null || h === void 0 ? void 0 : h[r.axis[r.draggedAxis].sizeAttr]) !== null && p !== void 0 ? p : 0) - v.size - k : k;
|
|
1677
|
+
var P = k / (b - v.size), T = P * (S - E);
|
|
1678
|
+
r.draggedAxis === "x" && r.isRtl && (T = !((m = e.getRtlHelpers()) === null || m === void 0) && m.isScrollingToNegative ? -T : T), r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr] = T;
|
|
1679
1679
|
}
|
|
1680
1680
|
}, this.onEndDrag = function(i) {
|
|
1681
|
-
var o = Zr(r.el), s =
|
|
1682
|
-
i.preventDefault(), i.stopPropagation(),
|
|
1681
|
+
var o = Zr(r.el), s = Ke(r.el);
|
|
1682
|
+
i.preventDefault(), i.stopPropagation(), Je(r.el, r.classNames.dragging), o.removeEventListener("mousemove", r.drag, !0), o.removeEventListener("mouseup", r.onEndDrag, !0), r.removePreventClickId = s.setTimeout(function() {
|
|
1683
1683
|
o.removeEventListener("click", r.preventClick, !0), o.removeEventListener("dblclick", r.preventClick, !0), r.removePreventClickId = null;
|
|
1684
1684
|
});
|
|
1685
1685
|
}, this.preventClick = function(i) {
|
|
@@ -1740,7 +1740,7 @@ var Qh = /* @__PURE__ */ Object.freeze({
|
|
|
1740
1740
|
return gs();
|
|
1741
1741
|
}
|
|
1742
1742
|
}, e.getOffset = function(t) {
|
|
1743
|
-
var n = t.getBoundingClientRect(), r = Zr(t), i =
|
|
1743
|
+
var n = t.getBoundingClientRect(), r = Zr(t), i = Ke(t);
|
|
1744
1744
|
return {
|
|
1745
1745
|
top: n.top + (i.pageYOffset || r.documentElement.scrollTop),
|
|
1746
1746
|
left: n.left + (i.pageXOffset || r.documentElement.scrollLeft)
|
|
@@ -1749,9 +1749,9 @@ var Qh = /* @__PURE__ */ Object.freeze({
|
|
|
1749
1749
|
eu && (this.initDOM(), this.rtlHelpers = e.getRtlHelpers(), this.scrollbarWidth = this.getScrollbarWidth(), this.recalculate(), this.initListeners());
|
|
1750
1750
|
}, e.prototype.initDOM = function() {
|
|
1751
1751
|
var t, n;
|
|
1752
|
-
this.wrapperEl = this.el.querySelector(
|
|
1752
|
+
this.wrapperEl = this.el.querySelector(le(this.classNames.wrapper)), this.contentWrapperEl = this.options.scrollableNode || this.el.querySelector(le(this.classNames.contentWrapper)), this.contentEl = this.options.contentNode || this.el.querySelector(le(this.classNames.contentEl)), this.offsetEl = this.el.querySelector(le(this.classNames.offset)), this.maskEl = this.el.querySelector(le(this.classNames.mask)), this.placeholderEl = this.findChild(this.wrapperEl, le(this.classNames.placeholder)), this.heightAutoObserverWrapperEl = this.el.querySelector(le(this.classNames.heightAutoObserverWrapperEl)), this.heightAutoObserverEl = this.el.querySelector(le(this.classNames.heightAutoObserverEl)), this.axis.x.track.el = this.findChild(this.el, "".concat(le(this.classNames.track)).concat(le(this.classNames.horizontal))), this.axis.y.track.el = this.findChild(this.el, "".concat(le(this.classNames.track)).concat(le(this.classNames.vertical))), this.axis.x.scrollbar.el = ((t = this.axis.x.track.el) === null || t === void 0 ? void 0 : t.querySelector(le(this.classNames.scrollbar))) || null, this.axis.y.scrollbar.el = ((n = this.axis.y.track.el) === null || n === void 0 ? void 0 : n.querySelector(le(this.classNames.scrollbar))) || null, this.options.autoHide || (Ye(this.axis.x.scrollbar.el, this.classNames.visible), Ye(this.axis.y.scrollbar.el, this.classNames.visible));
|
|
1753
1753
|
}, e.prototype.initListeners = function() {
|
|
1754
|
-
var t = this, n, r =
|
|
1754
|
+
var t = this, n, r = Ke(this.el);
|
|
1755
1755
|
if (this.el.addEventListener("mouseenter", this.onMouseEnter), this.el.addEventListener("pointerdown", this.onPointerEvent, !0), this.el.addEventListener("mousemove", this.onMouseMove), this.el.addEventListener("mouseleave", this.onMouseLeave), (n = this.contentWrapperEl) === null || n === void 0 || n.addEventListener("scroll", this.onScroll), r.addEventListener("resize", this.onWindowResize), !!this.contentEl) {
|
|
1756
1756
|
if (window.ResizeObserver) {
|
|
1757
1757
|
var i = !1, o = r.ResizeObserver || ResizeObserver;
|
|
@@ -1775,7 +1775,7 @@ var Qh = /* @__PURE__ */ Object.freeze({
|
|
|
1775
1775
|
}
|
|
1776
1776
|
}, e.prototype.recalculate = function() {
|
|
1777
1777
|
if (!(!this.heightAutoObserverEl || !this.contentEl || !this.contentWrapperEl || !this.wrapperEl || !this.placeholderEl)) {
|
|
1778
|
-
var t =
|
|
1778
|
+
var t = Ke(this.el);
|
|
1779
1779
|
this.elStyles = t.getComputedStyle(this.el), this.isRtl = this.elStyles.direction === "rtl";
|
|
1780
1780
|
var n = this.contentEl.offsetWidth, r = this.heightAutoObserverEl.offsetHeight <= 1, i = this.heightAutoObserverEl.offsetWidth <= 1 || n > 0, o = this.contentWrapperEl.offsetWidth, s = this.elStyles.overflowX, a = this.elStyles.overflowY;
|
|
1781
1781
|
this.contentEl.style.padding = "".concat(this.elStyles.paddingTop, " ").concat(this.elStyles.paddingRight, " ").concat(this.elStyles.paddingBottom, " ").concat(this.elStyles.paddingLeft), this.wrapperEl.style.margin = "-".concat(this.elStyles.paddingTop, " -").concat(this.elStyles.paddingRight, " -").concat(this.elStyles.paddingBottom, " -").concat(this.elStyles.paddingLeft);
|
|
@@ -1807,29 +1807,29 @@ var Qh = /* @__PURE__ */ Object.freeze({
|
|
|
1807
1807
|
var n = this.axis[t].track.el, r = this.axis[t].scrollbar.el;
|
|
1808
1808
|
!n || !r || !this.contentWrapperEl || (this.axis[t].isOverflowing || this.axis[t].forceVisible ? (n.style.visibility = "visible", this.contentWrapperEl.style[this.axis[t].overflowAttr] = "scroll", this.el.classList.add("".concat(this.classNames.scrollable, "-").concat(t))) : (n.style.visibility = "hidden", this.contentWrapperEl.style[this.axis[t].overflowAttr] = "hidden", this.el.classList.remove("".concat(this.classNames.scrollable, "-").concat(t))), this.axis[t].isOverflowing ? r.style.display = "block" : r.style.display = "none");
|
|
1809
1809
|
}, e.prototype.showScrollbar = function(t) {
|
|
1810
|
-
t === void 0 && (t = "y"), this.axis[t].isOverflowing && !this.axis[t].scrollbar.isVisible && (
|
|
1810
|
+
t === void 0 && (t = "y"), this.axis[t].isOverflowing && !this.axis[t].scrollbar.isVisible && (Ye(this.axis[t].scrollbar.el, this.classNames.visible), this.axis[t].scrollbar.isVisible = !0);
|
|
1811
1811
|
}, e.prototype.hideScrollbar = function(t) {
|
|
1812
|
-
t === void 0 && (t = "y"), this.axis[t].isOverflowing && this.axis[t].scrollbar.isVisible && (
|
|
1812
|
+
t === void 0 && (t = "y"), this.axis[t].isOverflowing && this.axis[t].scrollbar.isVisible && (Je(this.axis[t].scrollbar.el, this.classNames.visible), this.axis[t].scrollbar.isVisible = !1);
|
|
1813
1813
|
}, e.prototype.hideNativeScrollbar = function() {
|
|
1814
1814
|
this.offsetEl && (this.offsetEl.style[this.isRtl ? "left" : "right"] = this.axis.y.isOverflowing || this.axis.y.forceVisible ? "-".concat(this.scrollbarWidth, "px") : "0px", this.offsetEl.style.bottom = this.axis.x.isOverflowing || this.axis.x.forceVisible ? "-".concat(this.scrollbarWidth, "px") : "0px");
|
|
1815
1815
|
}, e.prototype.onMouseMoveForAxis = function(t) {
|
|
1816
1816
|
t === void 0 && (t = "y");
|
|
1817
1817
|
var n = this.axis[t];
|
|
1818
|
-
!n.track.el || !n.scrollbar.el || (n.track.rect = n.track.el.getBoundingClientRect(), n.scrollbar.rect = n.scrollbar.el.getBoundingClientRect(), this.isWithinBounds(n.track.rect) ? (this.showScrollbar(t),
|
|
1818
|
+
!n.track.el || !n.scrollbar.el || (n.track.rect = n.track.el.getBoundingClientRect(), n.scrollbar.rect = n.scrollbar.el.getBoundingClientRect(), this.isWithinBounds(n.track.rect) ? (this.showScrollbar(t), Ye(n.track.el, this.classNames.hover), this.isWithinBounds(n.scrollbar.rect) ? Ye(n.scrollbar.el, this.classNames.hover) : Je(n.scrollbar.el, this.classNames.hover)) : (Je(n.track.el, this.classNames.hover), this.options.autoHide && this.hideScrollbar(t)));
|
|
1819
1819
|
}, e.prototype.onMouseLeaveForAxis = function(t) {
|
|
1820
|
-
t === void 0 && (t = "y"),
|
|
1820
|
+
t === void 0 && (t = "y"), Je(this.axis[t].track.el, this.classNames.hover), Je(this.axis[t].scrollbar.el, this.classNames.hover), this.options.autoHide && this.hideScrollbar(t);
|
|
1821
1821
|
}, e.prototype.onDragStart = function(t, n) {
|
|
1822
1822
|
var r;
|
|
1823
1823
|
n === void 0 && (n = "y");
|
|
1824
|
-
var i = Zr(this.el), o =
|
|
1825
|
-
this.axis[n].dragOffset = a - (((r = s.rect) === null || r === void 0 ? void 0 : r[this.axis[n].offsetAttr]) || 0), this.draggedAxis = n,
|
|
1824
|
+
var i = Zr(this.el), o = Ke(this.el), s = this.axis[n].scrollbar, a = n === "y" ? t.pageY : t.pageX;
|
|
1825
|
+
this.axis[n].dragOffset = a - (((r = s.rect) === null || r === void 0 ? void 0 : r[this.axis[n].offsetAttr]) || 0), this.draggedAxis = n, Ye(this.el, this.classNames.dragging), i.addEventListener("mousemove", this.drag, !0), i.addEventListener("mouseup", this.onEndDrag, !0), this.removePreventClickId === null ? (i.addEventListener("click", this.preventClick, !0), i.addEventListener("dblclick", this.preventClick, !0)) : (o.clearTimeout(this.removePreventClickId), this.removePreventClickId = null);
|
|
1826
1826
|
}, e.prototype.onTrackClick = function(t, n) {
|
|
1827
1827
|
var r = this, i, o, s, a;
|
|
1828
1828
|
n === void 0 && (n = "y");
|
|
1829
1829
|
var l = this.axis[n];
|
|
1830
1830
|
if (!(!this.options.clickOnTrack || !l.scrollbar.el || !this.contentWrapperEl)) {
|
|
1831
1831
|
t.preventDefault();
|
|
1832
|
-
var u =
|
|
1832
|
+
var u = Ke(this.el);
|
|
1833
1833
|
this.axis[n].scrollbar.rect = l.scrollbar.el.getBoundingClientRect();
|
|
1834
1834
|
var f = this.axis[n].scrollbar, c = (o = (i = f.rect) === null || i === void 0 ? void 0 : i[this.axis[n].offsetAttr]) !== null && o !== void 0 ? o : 0, d = parseInt((a = (s = this.elStyles) === null || s === void 0 ? void 0 : s[this.axis[n].sizeAttr]) !== null && a !== void 0 ? a : "0px", 10), h = this.contentWrapperEl[this.axis[n].scrollOffsetAttr], p = n === "y" ? this.mouseY - c : this.mouseX - c, m = p < 0 ? -1 : 1, g = m === -1 ? h - d : h + d, y = 40, b = function() {
|
|
1835
1835
|
r.contentWrapperEl && (m === -1 ? h > g && (h -= y, r.contentWrapperEl[r.axis[n].scrollOffsetAttr] = h, u.requestAnimationFrame(b)) : h < g && (h += y, r.contentWrapperEl[r.axis[n].scrollOffsetAttr] = h, u.requestAnimationFrame(b)));
|
|
@@ -1841,7 +1841,7 @@ var Qh = /* @__PURE__ */ Object.freeze({
|
|
|
1841
1841
|
}, e.prototype.getScrollElement = function() {
|
|
1842
1842
|
return this.contentWrapperEl;
|
|
1843
1843
|
}, e.prototype.removeListeners = function() {
|
|
1844
|
-
var t =
|
|
1844
|
+
var t = Ke(this.el);
|
|
1845
1845
|
this.el.removeEventListener("mouseenter", this.onMouseEnter), this.el.removeEventListener("pointerdown", this.onPointerEvent, !0), this.el.removeEventListener("mousemove", this.onMouseMove), this.el.removeEventListener("mouseleave", this.onMouseLeave), this.contentWrapperEl && this.contentWrapperEl.removeEventListener("scroll", this.onScroll), t.removeEventListener("resize", this.onWindowResize), this.mutationObserver && this.mutationObserver.disconnect(), this.resizeObserver && this.resizeObserver.disconnect(), this.onMouseMove.cancel(), this.onWindowResize.cancel(), this.onStopScrolling.cancel(), this.onMouseEntered.cancel();
|
|
1846
1846
|
}, e.prototype.unMount = function() {
|
|
1847
1847
|
this.removeListeners();
|
|
@@ -1883,15 +1883,15 @@ var Qh = /* @__PURE__ */ Object.freeze({
|
|
|
1883
1883
|
autoHide: !0
|
|
1884
1884
|
}, e.getOptions = ep, e.helpers = Qh, e;
|
|
1885
1885
|
}()
|
|
1886
|
-
),
|
|
1887
|
-
return
|
|
1886
|
+
), ye = function() {
|
|
1887
|
+
return ye = Object.assign || function(t) {
|
|
1888
1888
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
1889
1889
|
n = arguments[r];
|
|
1890
1890
|
for (var o in n)
|
|
1891
1891
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
1892
1892
|
}
|
|
1893
1893
|
return t;
|
|
1894
|
-
},
|
|
1894
|
+
}, ye.apply(this, arguments);
|
|
1895
1895
|
};
|
|
1896
1896
|
function tp(e, t) {
|
|
1897
1897
|
var n = {};
|
|
@@ -1907,10 +1907,10 @@ var au = x.forwardRef(function(e, t) {
|
|
|
1907
1907
|
Object.keys(o).forEach(function(h) {
|
|
1908
1908
|
Object.prototype.hasOwnProperty.call(Tn.defaultOptions, h) ? u[h] = o[h] : f[h] = o[h];
|
|
1909
1909
|
});
|
|
1910
|
-
var c =
|
|
1910
|
+
var c = ye(ye({}, Tn.defaultOptions.classNames), u.classNames), d = ye(ye({}, i), { className: "".concat(c.contentWrapper).concat(i.className ? " ".concat(i.className) : ""), tabIndex: 0, role: "region", "aria-label": u.ariaLabel || Tn.defaultOptions.ariaLabel });
|
|
1911
1911
|
return x.useEffect(function() {
|
|
1912
1912
|
var h;
|
|
1913
|
-
return a.current = d.ref ? d.ref.current : a.current, s.current && (h = new Tn(s.current,
|
|
1913
|
+
return a.current = d.ref ? d.ref.current : a.current, s.current && (h = new Tn(s.current, ye(ye(ye({}, u), a.current && {
|
|
1914
1914
|
scrollableNode: a.current
|
|
1915
1915
|
}), l.current && {
|
|
1916
1916
|
contentNode: l.current
|
|
@@ -1919,7 +1919,7 @@ var au = x.forwardRef(function(e, t) {
|
|
|
1919
1919
|
};
|
|
1920
1920
|
}, []), x.createElement(
|
|
1921
1921
|
"div",
|
|
1922
|
-
|
|
1922
|
+
ye({ "data-simplebar": "init", ref: s }, f),
|
|
1923
1923
|
x.createElement(
|
|
1924
1924
|
"div",
|
|
1925
1925
|
{ className: c.wrapper },
|
|
@@ -1933,7 +1933,7 @@ var au = x.forwardRef(function(e, t) {
|
|
|
1933
1933
|
{ className: c.mask },
|
|
1934
1934
|
x.createElement("div", { className: c.offset }, typeof n == "function" ? n({
|
|
1935
1935
|
scrollableNodeRef: a,
|
|
1936
|
-
scrollableNodeProps:
|
|
1936
|
+
scrollableNodeProps: ye(ye({}, d), { ref: a }),
|
|
1937
1937
|
contentNodeRef: l,
|
|
1938
1938
|
contentNodeProps: {
|
|
1939
1939
|
className: c.contentEl,
|
|
@@ -1941,7 +1941,7 @@ var au = x.forwardRef(function(e, t) {
|
|
|
1941
1941
|
}
|
|
1942
1942
|
}) : x.createElement(
|
|
1943
1943
|
"div",
|
|
1944
|
-
|
|
1944
|
+
ye({}, d),
|
|
1945
1945
|
x.createElement("div", { className: c.contentEl }, n)
|
|
1946
1946
|
))
|
|
1947
1947
|
),
|
|
@@ -2023,41 +2023,41 @@ function _(e) {
|
|
|
2023
2023
|
t += "&args[]=" + encodeURIComponent(arguments[n]);
|
|
2024
2024
|
return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
2025
2025
|
}
|
|
2026
|
-
var
|
|
2026
|
+
var ue = Object.prototype.hasOwnProperty, sp = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, ys = {}, vs = {};
|
|
2027
2027
|
function uu(e) {
|
|
2028
|
-
return
|
|
2028
|
+
return ue.call(vs, e) ? !0 : ue.call(ys, e) ? !1 : sp.test(e) ? vs[e] = !0 : (ys[e] = !0, !1);
|
|
2029
2029
|
}
|
|
2030
|
-
function
|
|
2030
|
+
function se(e, t, n, r, i, o, s) {
|
|
2031
2031
|
this.acceptsBooleans = t === 2 || t === 3 || t === 4, this.attributeName = r, this.attributeNamespace = i, this.mustUseProperty = n, this.propertyName = e, this.type = t, this.sanitizeURL = o, this.removeEmptyString = s;
|
|
2032
2032
|
}
|
|
2033
2033
|
var te = {};
|
|
2034
2034
|
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e) {
|
|
2035
|
-
te[e] = new
|
|
2035
|
+
te[e] = new se(e, 0, !1, e, null, !1, !1);
|
|
2036
2036
|
});
|
|
2037
2037
|
[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(e) {
|
|
2038
2038
|
var t = e[0];
|
|
2039
|
-
te[t] = new
|
|
2039
|
+
te[t] = new se(t, 1, !1, e[1], null, !1, !1);
|
|
2040
2040
|
});
|
|
2041
2041
|
["contentEditable", "draggable", "spellCheck", "value"].forEach(function(e) {
|
|
2042
|
-
te[e] = new
|
|
2042
|
+
te[e] = new se(e, 2, !1, e.toLowerCase(), null, !1, !1);
|
|
2043
2043
|
});
|
|
2044
2044
|
["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(e) {
|
|
2045
|
-
te[e] = new
|
|
2045
|
+
te[e] = new se(e, 2, !1, e, null, !1, !1);
|
|
2046
2046
|
});
|
|
2047
2047
|
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e) {
|
|
2048
|
-
te[e] = new
|
|
2048
|
+
te[e] = new se(e, 3, !1, e.toLowerCase(), null, !1, !1);
|
|
2049
2049
|
});
|
|
2050
2050
|
["checked", "multiple", "muted", "selected"].forEach(function(e) {
|
|
2051
|
-
te[e] = new
|
|
2051
|
+
te[e] = new se(e, 3, !0, e, null, !1, !1);
|
|
2052
2052
|
});
|
|
2053
2053
|
["capture", "download"].forEach(function(e) {
|
|
2054
|
-
te[e] = new
|
|
2054
|
+
te[e] = new se(e, 4, !1, e, null, !1, !1);
|
|
2055
2055
|
});
|
|
2056
2056
|
["cols", "rows", "size", "span"].forEach(function(e) {
|
|
2057
|
-
te[e] = new
|
|
2057
|
+
te[e] = new se(e, 6, !1, e, null, !1, !1);
|
|
2058
2058
|
});
|
|
2059
2059
|
["rowSpan", "start"].forEach(function(e) {
|
|
2060
|
-
te[e] = new
|
|
2060
|
+
te[e] = new se(e, 5, !1, e.toLowerCase(), null, !1, !1);
|
|
2061
2061
|
});
|
|
2062
2062
|
var uo = /[\-:]([a-z])/g;
|
|
2063
2063
|
function co(e) {
|
|
@@ -2068,22 +2068,22 @@ function co(e) {
|
|
|
2068
2068
|
uo,
|
|
2069
2069
|
co
|
|
2070
2070
|
);
|
|
2071
|
-
te[t] = new
|
|
2071
|
+
te[t] = new se(t, 1, !1, e, null, !1, !1);
|
|
2072
2072
|
});
|
|
2073
2073
|
"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e) {
|
|
2074
2074
|
var t = e.replace(uo, co);
|
|
2075
|
-
te[t] = new
|
|
2075
|
+
te[t] = new se(t, 1, !1, e, "http://www.w3.org/1999/xlink", !1, !1);
|
|
2076
2076
|
});
|
|
2077
2077
|
["xml:base", "xml:lang", "xml:space"].forEach(function(e) {
|
|
2078
2078
|
var t = e.replace(uo, co);
|
|
2079
|
-
te[t] = new
|
|
2079
|
+
te[t] = new se(t, 1, !1, e, "http://www.w3.org/XML/1998/namespace", !1, !1);
|
|
2080
2080
|
});
|
|
2081
2081
|
["tabIndex", "crossOrigin"].forEach(function(e) {
|
|
2082
|
-
te[e] = new
|
|
2082
|
+
te[e] = new se(e, 1, !1, e.toLowerCase(), null, !1, !1);
|
|
2083
2083
|
});
|
|
2084
|
-
te.xlinkHref = new
|
|
2084
|
+
te.xlinkHref = new se("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1);
|
|
2085
2085
|
["src", "href", "action", "formAction"].forEach(function(e) {
|
|
2086
|
-
te[e] = new
|
|
2086
|
+
te[e] = new se(e, 1, !1, e.toLowerCase(), null, !0, !0);
|
|
2087
2087
|
});
|
|
2088
2088
|
var $n = {
|
|
2089
2089
|
animationIterationCount: !0,
|
|
@@ -2136,7 +2136,7 @@ Object.keys($n).forEach(function(e) {
|
|
|
2136
2136
|
});
|
|
2137
2137
|
});
|
|
2138
2138
|
var lp = /["'&<>]/;
|
|
2139
|
-
function
|
|
2139
|
+
function oe(e) {
|
|
2140
2140
|
if (typeof e == "boolean" || typeof e == "number")
|
|
2141
2141
|
return "" + e;
|
|
2142
2142
|
e = "" + e;
|
|
@@ -2170,31 +2170,31 @@ function se(e) {
|
|
|
2170
2170
|
return e;
|
|
2171
2171
|
}
|
|
2172
2172
|
var up = /([A-Z])/g, cp = /^ms-/, Ai = Array.isArray;
|
|
2173
|
-
function
|
|
2173
|
+
function Ne(e, t) {
|
|
2174
2174
|
return { insertionMode: e, selectedValue: t };
|
|
2175
2175
|
}
|
|
2176
2176
|
function fp(e, t, n) {
|
|
2177
2177
|
switch (t) {
|
|
2178
2178
|
case "select":
|
|
2179
|
-
return
|
|
2179
|
+
return Ne(1, n.value != null ? n.value : n.defaultValue);
|
|
2180
2180
|
case "svg":
|
|
2181
|
-
return
|
|
2181
|
+
return Ne(2, null);
|
|
2182
2182
|
case "math":
|
|
2183
|
-
return
|
|
2183
|
+
return Ne(3, null);
|
|
2184
2184
|
case "foreignObject":
|
|
2185
|
-
return
|
|
2185
|
+
return Ne(1, null);
|
|
2186
2186
|
case "table":
|
|
2187
|
-
return
|
|
2187
|
+
return Ne(4, null);
|
|
2188
2188
|
case "thead":
|
|
2189
2189
|
case "tbody":
|
|
2190
2190
|
case "tfoot":
|
|
2191
|
-
return
|
|
2191
|
+
return Ne(5, null);
|
|
2192
2192
|
case "colgroup":
|
|
2193
|
-
return
|
|
2193
|
+
return Ne(7, null);
|
|
2194
2194
|
case "tr":
|
|
2195
|
-
return
|
|
2195
|
+
return Ne(6, null);
|
|
2196
2196
|
}
|
|
2197
|
-
return 4 <= e.insertionMode || e.insertionMode === 0 ?
|
|
2197
|
+
return 4 <= e.insertionMode || e.insertionMode === 0 ? Ne(1, null) : e;
|
|
2198
2198
|
}
|
|
2199
2199
|
var xs = /* @__PURE__ */ new Map();
|
|
2200
2200
|
function cu(e, t, n) {
|
|
@@ -2202,23 +2202,23 @@ function cu(e, t, n) {
|
|
|
2202
2202
|
throw Error(_(62));
|
|
2203
2203
|
t = !0;
|
|
2204
2204
|
for (var r in n)
|
|
2205
|
-
if (
|
|
2205
|
+
if (ue.call(n, r)) {
|
|
2206
2206
|
var i = n[r];
|
|
2207
2207
|
if (i != null && typeof i != "boolean" && i !== "") {
|
|
2208
2208
|
if (r.indexOf("--") === 0) {
|
|
2209
|
-
var o =
|
|
2210
|
-
i =
|
|
2209
|
+
var o = oe(r);
|
|
2210
|
+
i = oe(("" + i).trim());
|
|
2211
2211
|
} else {
|
|
2212
2212
|
o = r;
|
|
2213
2213
|
var s = xs.get(o);
|
|
2214
|
-
s !== void 0 || (s =
|
|
2214
|
+
s !== void 0 || (s = oe(o.replace(up, "-$1").toLowerCase().replace(cp, "-ms-")), xs.set(o, s)), o = s, i = typeof i == "number" ? i === 0 || ue.call($n, r) ? "" + i : i + "px" : oe(("" + i).trim());
|
|
2215
2215
|
}
|
|
2216
2216
|
t ? (t = !1, e.push(' style="', o, ":", i)) : e.push(";", o, ":", i);
|
|
2217
2217
|
}
|
|
2218
2218
|
}
|
|
2219
2219
|
t || e.push('"');
|
|
2220
2220
|
}
|
|
2221
|
-
function
|
|
2221
|
+
function me(e, t, n, r) {
|
|
2222
2222
|
switch (n) {
|
|
2223
2223
|
case "style":
|
|
2224
2224
|
cu(e, t, r);
|
|
@@ -2245,16 +2245,16 @@ function he(e, t, n, r) {
|
|
|
2245
2245
|
r && e.push(" ", n, '=""');
|
|
2246
2246
|
break;
|
|
2247
2247
|
case 4:
|
|
2248
|
-
r === !0 ? e.push(" ", n, '=""') : r !== !1 && e.push(" ", n, '="',
|
|
2248
|
+
r === !0 ? e.push(" ", n, '=""') : r !== !1 && e.push(" ", n, '="', oe(r), '"');
|
|
2249
2249
|
break;
|
|
2250
2250
|
case 5:
|
|
2251
|
-
isNaN(r) || e.push(" ", n, '="',
|
|
2251
|
+
isNaN(r) || e.push(" ", n, '="', oe(r), '"');
|
|
2252
2252
|
break;
|
|
2253
2253
|
case 6:
|
|
2254
|
-
!isNaN(r) && 1 <= r && e.push(" ", n, '="',
|
|
2254
|
+
!isNaN(r) && 1 <= r && e.push(" ", n, '="', oe(r), '"');
|
|
2255
2255
|
break;
|
|
2256
2256
|
default:
|
|
2257
|
-
t.sanitizeURL && (r = "" + r), e.push(" ", n, '="',
|
|
2257
|
+
t.sanitizeURL && (r = "" + r), e.push(" ", n, '="', oe(r), '"');
|
|
2258
2258
|
}
|
|
2259
2259
|
} else if (uu(n)) {
|
|
2260
2260
|
switch (typeof r) {
|
|
@@ -2265,7 +2265,7 @@ function he(e, t, n, r) {
|
|
|
2265
2265
|
if (t = n.toLowerCase().slice(0, 5), t !== "data-" && t !== "aria-")
|
|
2266
2266
|
return;
|
|
2267
2267
|
}
|
|
2268
|
-
e.push(" ", n, '="',
|
|
2268
|
+
e.push(" ", n, '="', oe(r), '"');
|
|
2269
2269
|
}
|
|
2270
2270
|
}
|
|
2271
2271
|
}
|
|
@@ -2285,10 +2285,10 @@ function dp(e) {
|
|
|
2285
2285
|
}), t;
|
|
2286
2286
|
}
|
|
2287
2287
|
function Qr(e, t, n, r) {
|
|
2288
|
-
e.push(
|
|
2288
|
+
e.push(Oe(n));
|
|
2289
2289
|
var i = n = null, o;
|
|
2290
2290
|
for (o in t)
|
|
2291
|
-
if (
|
|
2291
|
+
if (ue.call(t, o)) {
|
|
2292
2292
|
var s = t[o];
|
|
2293
2293
|
if (s != null)
|
|
2294
2294
|
switch (o) {
|
|
@@ -2299,13 +2299,13 @@ function Qr(e, t, n, r) {
|
|
|
2299
2299
|
i = s;
|
|
2300
2300
|
break;
|
|
2301
2301
|
default:
|
|
2302
|
-
|
|
2302
|
+
me(e, r, o, s);
|
|
2303
2303
|
}
|
|
2304
2304
|
}
|
|
2305
|
-
return e.push(">"), zn(e, i, n), typeof n == "string" ? (e.push(
|
|
2305
|
+
return e.push(">"), zn(e, i, n), typeof n == "string" ? (e.push(oe(n)), null) : n;
|
|
2306
2306
|
}
|
|
2307
2307
|
var hp = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, bs = /* @__PURE__ */ new Map();
|
|
2308
|
-
function
|
|
2308
|
+
function Oe(e) {
|
|
2309
2309
|
var t = bs.get(e);
|
|
2310
2310
|
if (t === void 0) {
|
|
2311
2311
|
if (!hp.test(e))
|
|
@@ -2317,10 +2317,10 @@ function Ae(e) {
|
|
|
2317
2317
|
function pp(e, t, n, r, i) {
|
|
2318
2318
|
switch (t) {
|
|
2319
2319
|
case "select":
|
|
2320
|
-
e.push(
|
|
2320
|
+
e.push(Oe("select"));
|
|
2321
2321
|
var o = null, s = null;
|
|
2322
2322
|
for (f in n)
|
|
2323
|
-
if (
|
|
2323
|
+
if (ue.call(n, f)) {
|
|
2324
2324
|
var a = n[f];
|
|
2325
2325
|
if (a != null)
|
|
2326
2326
|
switch (f) {
|
|
@@ -2334,15 +2334,15 @@ function pp(e, t, n, r, i) {
|
|
|
2334
2334
|
case "value":
|
|
2335
2335
|
break;
|
|
2336
2336
|
default:
|
|
2337
|
-
|
|
2337
|
+
me(e, r, f, a);
|
|
2338
2338
|
}
|
|
2339
2339
|
}
|
|
2340
2340
|
return e.push(">"), zn(e, s, o), o;
|
|
2341
2341
|
case "option":
|
|
2342
|
-
s = i.selectedValue, e.push(
|
|
2342
|
+
s = i.selectedValue, e.push(Oe("option"));
|
|
2343
2343
|
var l = a = null, u = null, f = null;
|
|
2344
2344
|
for (o in n)
|
|
2345
|
-
if (
|
|
2345
|
+
if (ue.call(n, o)) {
|
|
2346
2346
|
var c = n[o];
|
|
2347
2347
|
if (c != null)
|
|
2348
2348
|
switch (o) {
|
|
@@ -2358,7 +2358,7 @@ function pp(e, t, n, r, i) {
|
|
|
2358
2358
|
case "value":
|
|
2359
2359
|
l = c;
|
|
2360
2360
|
default:
|
|
2361
|
-
|
|
2361
|
+
me(e, r, o, c);
|
|
2362
2362
|
}
|
|
2363
2363
|
}
|
|
2364
2364
|
if (s != null)
|
|
@@ -2374,9 +2374,9 @@ function pp(e, t, n, r, i) {
|
|
|
2374
2374
|
u && e.push(' selected=""');
|
|
2375
2375
|
return e.push(">"), zn(e, f, a), a;
|
|
2376
2376
|
case "textarea":
|
|
2377
|
-
e.push(
|
|
2377
|
+
e.push(Oe("textarea")), f = s = o = null;
|
|
2378
2378
|
for (a in n)
|
|
2379
|
-
if (
|
|
2379
|
+
if (ue.call(n, a) && (l = n[a], l != null))
|
|
2380
2380
|
switch (a) {
|
|
2381
2381
|
case "children":
|
|
2382
2382
|
f = l;
|
|
@@ -2390,7 +2390,7 @@ function pp(e, t, n, r, i) {
|
|
|
2390
2390
|
case "dangerouslySetInnerHTML":
|
|
2391
2391
|
throw Error(_(91));
|
|
2392
2392
|
default:
|
|
2393
|
-
|
|
2393
|
+
me(
|
|
2394
2394
|
e,
|
|
2395
2395
|
r,
|
|
2396
2396
|
a,
|
|
@@ -2406,11 +2406,11 @@ function pp(e, t, n, r, i) {
|
|
|
2406
2406
|
}
|
|
2407
2407
|
return typeof o == "string" && o[0] === `
|
|
2408
2408
|
` && e.push(`
|
|
2409
|
-
`), o !== null && e.push(
|
|
2409
|
+
`), o !== null && e.push(oe("" + o)), null;
|
|
2410
2410
|
case "input":
|
|
2411
|
-
e.push(
|
|
2411
|
+
e.push(Oe("input")), l = f = a = o = null;
|
|
2412
2412
|
for (s in n)
|
|
2413
|
-
if (
|
|
2413
|
+
if (ue.call(n, s) && (u = n[s], u != null))
|
|
2414
2414
|
switch (s) {
|
|
2415
2415
|
case "children":
|
|
2416
2416
|
case "dangerouslySetInnerHTML":
|
|
@@ -2428,25 +2428,25 @@ function pp(e, t, n, r, i) {
|
|
|
2428
2428
|
o = u;
|
|
2429
2429
|
break;
|
|
2430
2430
|
default:
|
|
2431
|
-
|
|
2431
|
+
me(e, r, s, u);
|
|
2432
2432
|
}
|
|
2433
|
-
return f !== null ?
|
|
2433
|
+
return f !== null ? me(e, r, "checked", f) : l !== null && me(e, r, "checked", l), o !== null ? me(e, r, "value", o) : a !== null && me(e, r, "value", a), e.push("/>"), null;
|
|
2434
2434
|
case "menuitem":
|
|
2435
|
-
e.push(
|
|
2435
|
+
e.push(Oe("menuitem"));
|
|
2436
2436
|
for (var d in n)
|
|
2437
|
-
if (
|
|
2437
|
+
if (ue.call(n, d) && (o = n[d], o != null))
|
|
2438
2438
|
switch (d) {
|
|
2439
2439
|
case "children":
|
|
2440
2440
|
case "dangerouslySetInnerHTML":
|
|
2441
2441
|
throw Error(_(400));
|
|
2442
2442
|
default:
|
|
2443
|
-
|
|
2443
|
+
me(e, r, d, o);
|
|
2444
2444
|
}
|
|
2445
2445
|
return e.push(">"), null;
|
|
2446
2446
|
case "title":
|
|
2447
|
-
e.push(
|
|
2447
|
+
e.push(Oe("title")), o = null;
|
|
2448
2448
|
for (c in n)
|
|
2449
|
-
if (
|
|
2449
|
+
if (ue.call(n, c) && (s = n[c], s != null))
|
|
2450
2450
|
switch (c) {
|
|
2451
2451
|
case "children":
|
|
2452
2452
|
o = s;
|
|
@@ -2454,14 +2454,14 @@ function pp(e, t, n, r, i) {
|
|
|
2454
2454
|
case "dangerouslySetInnerHTML":
|
|
2455
2455
|
throw Error(_(434));
|
|
2456
2456
|
default:
|
|
2457
|
-
|
|
2457
|
+
me(e, r, c, s);
|
|
2458
2458
|
}
|
|
2459
2459
|
return e.push(">"), o;
|
|
2460
2460
|
case "listing":
|
|
2461
2461
|
case "pre":
|
|
2462
|
-
e.push(
|
|
2462
|
+
e.push(Oe(t)), s = o = null;
|
|
2463
2463
|
for (l in n)
|
|
2464
|
-
if (
|
|
2464
|
+
if (ue.call(n, l) && (a = n[l], a != null))
|
|
2465
2465
|
switch (l) {
|
|
2466
2466
|
case "children":
|
|
2467
2467
|
o = a;
|
|
@@ -2470,7 +2470,7 @@ function pp(e, t, n, r, i) {
|
|
|
2470
2470
|
s = a;
|
|
2471
2471
|
break;
|
|
2472
2472
|
default:
|
|
2473
|
-
|
|
2473
|
+
me(e, r, l, a);
|
|
2474
2474
|
}
|
|
2475
2475
|
if (e.push(">"), s != null) {
|
|
2476
2476
|
if (o != null)
|
|
@@ -2498,15 +2498,15 @@ function pp(e, t, n, r, i) {
|
|
|
2498
2498
|
case "source":
|
|
2499
2499
|
case "track":
|
|
2500
2500
|
case "wbr":
|
|
2501
|
-
e.push(
|
|
2501
|
+
e.push(Oe(t));
|
|
2502
2502
|
for (var h in n)
|
|
2503
|
-
if (
|
|
2503
|
+
if (ue.call(n, h) && (o = n[h], o != null))
|
|
2504
2504
|
switch (h) {
|
|
2505
2505
|
case "children":
|
|
2506
2506
|
case "dangerouslySetInnerHTML":
|
|
2507
2507
|
throw Error(_(399, t));
|
|
2508
2508
|
default:
|
|
2509
|
-
|
|
2509
|
+
me(e, r, h, o);
|
|
2510
2510
|
}
|
|
2511
2511
|
return e.push("/>"), null;
|
|
2512
2512
|
case "annotation-xml":
|
|
@@ -2528,9 +2528,9 @@ function pp(e, t, n, r, i) {
|
|
|
2528
2528
|
default:
|
|
2529
2529
|
if (t.indexOf("-") === -1 && typeof n.is != "string")
|
|
2530
2530
|
return Qr(e, n, t, r);
|
|
2531
|
-
e.push(
|
|
2531
|
+
e.push(Oe(t)), s = o = null;
|
|
2532
2532
|
for (u in n)
|
|
2533
|
-
if (
|
|
2533
|
+
if (ue.call(n, u) && (a = n[u], a != null))
|
|
2534
2534
|
switch (u) {
|
|
2535
2535
|
case "children":
|
|
2536
2536
|
o = a;
|
|
@@ -2545,7 +2545,7 @@ function pp(e, t, n, r, i) {
|
|
|
2545
2545
|
case "suppressHydrationWarning":
|
|
2546
2546
|
break;
|
|
2547
2547
|
default:
|
|
2548
|
-
uu(u) && typeof a != "function" && typeof a != "symbol" && e.push(" ", u, '="',
|
|
2548
|
+
uu(u) && typeof a != "function" && typeof a != "symbol" && e.push(" ", u, '="', oe(a), '"');
|
|
2549
2549
|
}
|
|
2550
2550
|
return e.push(">"), zn(e, s, o), o;
|
|
2551
2551
|
}
|
|
@@ -2616,7 +2616,7 @@ function vp(e, t) {
|
|
|
2616
2616
|
return t = t === void 0 ? "" : t, { bootstrapChunks: [], startInlineScript: "<script>", placeholderPrefix: t + "P:", segmentPrefix: t + "S:", boundaryPrefix: t + "B:", idPrefix: t, nextSuspenseID: 0, sentCompleteSegmentFunction: !1, sentCompleteBoundaryFunction: !1, sentClientRenderFunction: !1, generateStaticMarkup: e };
|
|
2617
2617
|
}
|
|
2618
2618
|
function Ss(e, t, n, r) {
|
|
2619
|
-
return n.generateStaticMarkup ? (e.push(
|
|
2619
|
+
return n.generateStaticMarkup ? (e.push(oe(t)), !1) : (t === "" ? e = r : (r && e.push("<!-- -->"), e.push(oe(t)), e = !0), e);
|
|
2620
2620
|
}
|
|
2621
2621
|
var Qt = Object.assign, xp = Symbol.for("react.element"), fu = Symbol.for("react.portal"), du = Symbol.for("react.fragment"), hu = Symbol.for("react.strict_mode"), pu = Symbol.for("react.profiler"), mu = Symbol.for("react.provider"), gu = Symbol.for("react.context"), yu = Symbol.for("react.forward_ref"), vu = Symbol.for("react.suspense"), xu = Symbol.for("react.suspense_list"), bu = Symbol.for("react.memo"), fo = Symbol.for("react.lazy"), bp = Symbol.for("react.scope"), wp = Symbol.for("react.debug_trace_mode"), Sp = Symbol.for("react.legacy_hidden"), Ep = Symbol.for("react.default_value"), Es = Symbol.iterator;
|
|
2622
2622
|
function Oi(e) {
|
|
@@ -2669,7 +2669,7 @@ function Cs(e, t) {
|
|
|
2669
2669
|
n[r] = t[r];
|
|
2670
2670
|
return n;
|
|
2671
2671
|
}
|
|
2672
|
-
var
|
|
2672
|
+
var vt = null;
|
|
2673
2673
|
function Rr(e, t) {
|
|
2674
2674
|
if (e !== t) {
|
|
2675
2675
|
e.context._currentValue2 = e.parentValue, e = e.parent;
|
|
@@ -2704,8 +2704,8 @@ function ku(e, t) {
|
|
|
2704
2704
|
e.depth === n.depth ? Rr(e, n) : ku(e, n), t.context._currentValue2 = t.value;
|
|
2705
2705
|
}
|
|
2706
2706
|
function nr(e) {
|
|
2707
|
-
var t =
|
|
2708
|
-
t !== e && (t === null ? Eu(e) : e === null ? Su(t) : t.depth === e.depth ? Rr(t, e) : t.depth > e.depth ? Cu(t, e) : ku(t, e),
|
|
2707
|
+
var t = vt;
|
|
2708
|
+
t !== e && (t === null ? Eu(e) : e === null ? Su(t) : t.depth === e.depth ? Rr(t, e) : t.depth > e.depth ? Cu(t, e) : ku(t, e), vt = e);
|
|
2709
2709
|
}
|
|
2710
2710
|
var ks = { isMounted: function() {
|
|
2711
2711
|
return !1;
|
|
@@ -2755,11 +2755,11 @@ function Pp(e) {
|
|
|
2755
2755
|
function Rp(e, t) {
|
|
2756
2756
|
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
2757
2757
|
}
|
|
2758
|
-
var Ap = typeof Object.is == "function" ? Object.is : Rp,
|
|
2759
|
-
function
|
|
2760
|
-
if (
|
|
2758
|
+
var Ap = typeof Object.is == "function" ? Object.is : Rp, He = null, ho = null, Wn = null, D = null, Xt = !1, rr = !1, cn = 0, rt = null, Ar = 0;
|
|
2759
|
+
function mt() {
|
|
2760
|
+
if (He === null)
|
|
2761
2761
|
throw Error(_(321));
|
|
2762
|
-
return
|
|
2762
|
+
return He;
|
|
2763
2763
|
}
|
|
2764
2764
|
function Ps() {
|
|
2765
2765
|
if (0 < Ar)
|
|
@@ -2770,16 +2770,16 @@ function po() {
|
|
|
2770
2770
|
return D === null ? Wn === null ? (Xt = !1, Wn = D = Ps()) : (Xt = !0, D = Wn) : D.next === null ? (Xt = !1, D = D.next = Ps()) : (Xt = !0, D = D.next), D;
|
|
2771
2771
|
}
|
|
2772
2772
|
function mo() {
|
|
2773
|
-
ho =
|
|
2773
|
+
ho = He = null, rr = !1, Wn = null, Ar = 0, D = rt = null;
|
|
2774
2774
|
}
|
|
2775
2775
|
function Tu(e, t) {
|
|
2776
2776
|
return typeof t == "function" ? t(e) : t;
|
|
2777
2777
|
}
|
|
2778
2778
|
function Rs(e, t, n) {
|
|
2779
|
-
if (
|
|
2779
|
+
if (He = mt(), D = po(), Xt) {
|
|
2780
2780
|
var r = D.queue;
|
|
2781
|
-
if (t = r.dispatch,
|
|
2782
|
-
|
|
2781
|
+
if (t = r.dispatch, rt !== null && (n = rt.get(r), n !== void 0)) {
|
|
2782
|
+
rt.delete(r), r = D.memoizedState;
|
|
2783
2783
|
do
|
|
2784
2784
|
r = e(r, n.action), n = n.next;
|
|
2785
2785
|
while (n !== null);
|
|
@@ -2787,10 +2787,10 @@ function Rs(e, t, n) {
|
|
|
2787
2787
|
}
|
|
2788
2788
|
return [D.memoizedState, t];
|
|
2789
2789
|
}
|
|
2790
|
-
return e = e === Tu ? typeof t == "function" ? t() : t : n !== void 0 ? n(t) : t, D.memoizedState = e, e = D.queue = { last: null, dispatch: null }, e = e.dispatch = Op.bind(null,
|
|
2790
|
+
return e = e === Tu ? typeof t == "function" ? t() : t : n !== void 0 ? n(t) : t, D.memoizedState = e, e = D.queue = { last: null, dispatch: null }, e = e.dispatch = Op.bind(null, He, e), [D.memoizedState, e];
|
|
2791
2791
|
}
|
|
2792
2792
|
function As(e, t) {
|
|
2793
|
-
if (
|
|
2793
|
+
if (He = mt(), D = po(), t = t === void 0 ? null : t, D !== null) {
|
|
2794
2794
|
var n = D.memoizedState;
|
|
2795
2795
|
if (n !== null && t !== null) {
|
|
2796
2796
|
var r = n[1];
|
|
@@ -2814,9 +2814,9 @@ function As(e, t) {
|
|
|
2814
2814
|
function Op(e, t, n) {
|
|
2815
2815
|
if (25 <= Ar)
|
|
2816
2816
|
throw Error(_(301));
|
|
2817
|
-
if (e ===
|
|
2818
|
-
if (rr = !0, e = { action: n, next: null },
|
|
2819
|
-
|
|
2817
|
+
if (e === He)
|
|
2818
|
+
if (rr = !0, e = { action: n, next: null }, rt === null && (rt = /* @__PURE__ */ new Map()), n = rt.get(t), n === void 0)
|
|
2819
|
+
rt.set(t, e);
|
|
2820
2820
|
else {
|
|
2821
2821
|
for (t = n; t.next !== null; )
|
|
2822
2822
|
t = t.next;
|
|
@@ -2831,9 +2831,9 @@ function Pn() {
|
|
|
2831
2831
|
var Os = { readContext: function(e) {
|
|
2832
2832
|
return e._currentValue2;
|
|
2833
2833
|
}, useContext: function(e) {
|
|
2834
|
-
return
|
|
2834
|
+
return mt(), e._currentValue2;
|
|
2835
2835
|
}, useMemo: As, useReducer: Rs, useRef: function(e) {
|
|
2836
|
-
|
|
2836
|
+
He = mt(), D = po();
|
|
2837
2837
|
var t = D.memoizedState;
|
|
2838
2838
|
return t === null ? (e = { current: e }, D.memoizedState = e) : t;
|
|
2839
2839
|
}, useState: function(e) {
|
|
@@ -2844,9 +2844,9 @@ var Os = { readContext: function(e) {
|
|
|
2844
2844
|
return e;
|
|
2845
2845
|
}, t);
|
|
2846
2846
|
}, useImperativeHandle: Pn, useEffect: Pn, useDebugValue: Pn, useDeferredValue: function(e) {
|
|
2847
|
-
return
|
|
2847
|
+
return mt(), e;
|
|
2848
2848
|
}, useTransition: function() {
|
|
2849
|
-
return
|
|
2849
|
+
return mt(), [
|
|
2850
2850
|
!1,
|
|
2851
2851
|
_p
|
|
2852
2852
|
];
|
|
@@ -2858,7 +2858,7 @@ var Os = { readContext: function(e) {
|
|
|
2858
2858
|
throw Error(_(404));
|
|
2859
2859
|
return t = cn++, e = ":" + n.idPrefix + "R" + e, 0 < t && (e += "H" + t.toString(32)), e + ":";
|
|
2860
2860
|
}, useMutableSource: function(e, t) {
|
|
2861
|
-
return
|
|
2861
|
+
return mt(), t(e._source);
|
|
2862
2862
|
}, useSyncExternalStore: function(e, t, n) {
|
|
2863
2863
|
if (n === void 0)
|
|
2864
2864
|
throw Error(_(407));
|
|
@@ -2894,7 +2894,7 @@ function or(e, t) {
|
|
|
2894
2894
|
n(t), n = e.onFatalError, n(t), e.destination !== null ? (e.status = 2, e.destination.destroy(t)) : (e.status = 1, e.fatalError = t);
|
|
2895
2895
|
}
|
|
2896
2896
|
function _s(e, t, n, r, i) {
|
|
2897
|
-
for (
|
|
2897
|
+
for (He = {}, ho = t, cn = 0, e = n(r, i); rr; )
|
|
2898
2898
|
rr = !1, cn = 0, Ar += 1, D = null, e = n(r, i);
|
|
2899
2899
|
return mo(), e;
|
|
2900
2900
|
}
|
|
@@ -2911,9 +2911,9 @@ function Ms(e, t, n, r) {
|
|
|
2911
2911
|
throw Error(_(108, Oi(r) || "Unknown", a));
|
|
2912
2912
|
r = Qt({}, s, n);
|
|
2913
2913
|
}
|
|
2914
|
-
t.legacyContext = r,
|
|
2914
|
+
t.legacyContext = r, ve(e, t, i), t.legacyContext = s;
|
|
2915
2915
|
} else
|
|
2916
|
-
|
|
2916
|
+
ve(e, t, i);
|
|
2917
2917
|
}
|
|
2918
2918
|
function Vs(e, t) {
|
|
2919
2919
|
if (e && e.defaultProps) {
|
|
@@ -2938,12 +2938,12 @@ function Mi(e, t, n, r, i) {
|
|
|
2938
2938
|
else if (s) {
|
|
2939
2939
|
r = t.treeContext, t.treeContext = _i(r, 1, 0);
|
|
2940
2940
|
try {
|
|
2941
|
-
|
|
2941
|
+
ve(e, t, i);
|
|
2942
2942
|
} finally {
|
|
2943
2943
|
t.treeContext = r;
|
|
2944
2944
|
}
|
|
2945
2945
|
} else
|
|
2946
|
-
|
|
2946
|
+
ve(e, t, i);
|
|
2947
2947
|
}
|
|
2948
2948
|
else if (typeof n == "string") {
|
|
2949
2949
|
switch (i = t.blockedSegment, o = pp(i.chunks, n, r, e.responseState, i.formatContext), i.lastPushedText = !1, s = i.formatContext, i.formatContext = fp(s, n, r), Vi(e, t, o), i.formatContext = s, n) {
|
|
@@ -2974,10 +2974,10 @@ function Mi(e, t, n, r, i) {
|
|
|
2974
2974
|
case hu:
|
|
2975
2975
|
case pu:
|
|
2976
2976
|
case du:
|
|
2977
|
-
|
|
2977
|
+
ve(e, t, r.children);
|
|
2978
2978
|
return;
|
|
2979
2979
|
case xu:
|
|
2980
|
-
|
|
2980
|
+
ve(e, t, r.children);
|
|
2981
2981
|
return;
|
|
2982
2982
|
case bp:
|
|
2983
2983
|
throw Error(_(343));
|
|
@@ -3010,23 +3010,23 @@ function Mi(e, t, n, r, i) {
|
|
|
3010
3010
|
if (r = _s(e, t, n.render, r, i), cn !== 0) {
|
|
3011
3011
|
n = t.treeContext, t.treeContext = _i(n, 1, 0);
|
|
3012
3012
|
try {
|
|
3013
|
-
|
|
3013
|
+
ve(e, t, r);
|
|
3014
3014
|
} finally {
|
|
3015
3015
|
t.treeContext = n;
|
|
3016
3016
|
}
|
|
3017
3017
|
} else
|
|
3018
|
-
|
|
3018
|
+
ve(e, t, r);
|
|
3019
3019
|
return;
|
|
3020
3020
|
case bu:
|
|
3021
3021
|
n = n.type, r = Vs(n, r), Mi(e, t, n, r, i);
|
|
3022
3022
|
return;
|
|
3023
3023
|
case mu:
|
|
3024
|
-
if (i = r.children, n = n._context, r = r.value, o = n._currentValue2, n._currentValue2 = r, s =
|
|
3024
|
+
if (i = r.children, n = n._context, r = r.value, o = n._currentValue2, n._currentValue2 = r, s = vt, vt = r = { parent: s, depth: s === null ? 0 : s.depth + 1, context: n, parentValue: o, value: r }, t.context = r, ve(e, t, i), e = vt, e === null)
|
|
3025
3025
|
throw Error(_(403));
|
|
3026
|
-
r = e.parentValue, e.context._currentValue2 = r === Ep ? e.context._defaultValue : r, e =
|
|
3026
|
+
r = e.parentValue, e.context._currentValue2 = r === Ep ? e.context._defaultValue : r, e = vt = e.parent, t.context = e;
|
|
3027
3027
|
return;
|
|
3028
3028
|
case gu:
|
|
3029
|
-
r = r.children, r = r(n._currentValue2),
|
|
3029
|
+
r = r.children, r = r(n._currentValue2), ve(e, t, r);
|
|
3030
3030
|
return;
|
|
3031
3031
|
case fo:
|
|
3032
3032
|
i = n._init, n = i(n._payload), r = Vs(n, r), Mi(
|
|
@@ -3041,7 +3041,7 @@ function Mi(e, t, n, r, i) {
|
|
|
3041
3041
|
throw Error(_(130, n == null ? n : typeof n, ""));
|
|
3042
3042
|
}
|
|
3043
3043
|
}
|
|
3044
|
-
function
|
|
3044
|
+
function ve(e, t, n) {
|
|
3045
3045
|
if (t.node = n, typeof n == "object" && n !== null) {
|
|
3046
3046
|
switch (n.$$typeof) {
|
|
3047
3047
|
case xp:
|
|
@@ -3051,7 +3051,7 @@ function ge(e, t, n) {
|
|
|
3051
3051
|
throw Error(_(257));
|
|
3052
3052
|
case fo:
|
|
3053
3053
|
var r = n._init;
|
|
3054
|
-
n = r(n._payload),
|
|
3054
|
+
n = r(n._payload), ve(e, t, n);
|
|
3055
3055
|
return;
|
|
3056
3056
|
}
|
|
3057
3057
|
if (Ai(n)) {
|
|
@@ -3086,7 +3086,7 @@ function Fs(e, t, n) {
|
|
|
3086
3086
|
function Vi(e, t, n) {
|
|
3087
3087
|
var r = t.blockedSegment.formatContext, i = t.legacyContext, o = t.context;
|
|
3088
3088
|
try {
|
|
3089
|
-
return
|
|
3089
|
+
return ve(e, t, n);
|
|
3090
3090
|
} catch (l) {
|
|
3091
3091
|
if (mo(), typeof l == "object" && l !== null && typeof l.then == "function") {
|
|
3092
3092
|
n = l;
|
|
@@ -3127,7 +3127,7 @@ function Ru(e, t, n) {
|
|
|
3127
3127
|
}
|
|
3128
3128
|
function Au(e) {
|
|
3129
3129
|
if (e.status !== 2) {
|
|
3130
|
-
var t =
|
|
3130
|
+
var t = vt, n = ti.current;
|
|
3131
3131
|
ti.current = Os;
|
|
3132
3132
|
var r = Hn;
|
|
3133
3133
|
Hn = e.responseState;
|
|
@@ -3138,7 +3138,7 @@ function Au(e) {
|
|
|
3138
3138
|
if (l.status === 0) {
|
|
3139
3139
|
nr(s.context);
|
|
3140
3140
|
try {
|
|
3141
|
-
|
|
3141
|
+
ve(a, s, s.node), a.responseState.generateStaticMarkup || l.lastPushedText && l.textEmbedded && l.chunks.push("<!-- -->"), s.abortSet.delete(s), l.status = 1, Ru(a, s.blockedBoundary, l);
|
|
3142
3142
|
} catch (p) {
|
|
3143
3143
|
if (mo(), typeof p == "object" && p !== null && typeof p.then == "function") {
|
|
3144
3144
|
var u = s.ping;
|
|
@@ -3191,7 +3191,7 @@ function Or(e, t, n) {
|
|
|
3191
3191
|
if (r === null)
|
|
3192
3192
|
return Rn(e, t, n);
|
|
3193
3193
|
if (r.parentFlushed = !0, r.forceClientRender)
|
|
3194
|
-
return e.responseState.generateStaticMarkup || (r = r.errorDigest, t.push("<!--$!-->"), t.push("<template"), r && (t.push(' data-dgst="'), r =
|
|
3194
|
+
return e.responseState.generateStaticMarkup || (r = r.errorDigest, t.push("<!--$!-->"), t.push("<template"), r && (t.push(' data-dgst="'), r = oe(r), t.push(r), t.push('"')), t.push("></template>")), Rn(e, t, n), e = e.responseState.generateStaticMarkup ? !0 : t.push("<!--/$-->"), e;
|
|
3195
3195
|
if (0 < r.pendingTasks) {
|
|
3196
3196
|
r.rootSegmentID = e.nextSegmentId++, 0 < r.completedSegments.length && e.partialBoundaries.push(r);
|
|
3197
3197
|
var i = e.responseState, o = i.nextSuspenseID++;
|
|
@@ -3365,67 +3365,67 @@ function V(e) {
|
|
|
3365
3365
|
t += "&args[]=" + encodeURIComponent(arguments[n]);
|
|
3366
3366
|
return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
3367
3367
|
}
|
|
3368
|
-
var
|
|
3368
|
+
var xe = null, be = 0;
|
|
3369
3369
|
function A(e, t) {
|
|
3370
3370
|
if (t.length !== 0)
|
|
3371
3371
|
if (512 < t.length)
|
|
3372
|
-
0 <
|
|
3372
|
+
0 < be && (e.enqueue(new Uint8Array(xe.buffer, 0, be)), xe = new Uint8Array(512), be = 0), e.enqueue(t);
|
|
3373
3373
|
else {
|
|
3374
|
-
var n =
|
|
3375
|
-
n < t.length && (n === 0 ? e.enqueue(
|
|
3374
|
+
var n = xe.length - be;
|
|
3375
|
+
n < t.length && (n === 0 ? e.enqueue(xe) : (xe.set(t.subarray(0, n), be), e.enqueue(xe), t = t.subarray(n)), xe = new Uint8Array(512), be = 0), xe.set(t, be), be += t.length;
|
|
3376
3376
|
}
|
|
3377
3377
|
}
|
|
3378
3378
|
function B(e, t) {
|
|
3379
3379
|
return A(e, t), !0;
|
|
3380
3380
|
}
|
|
3381
3381
|
function js(e) {
|
|
3382
|
-
|
|
3382
|
+
xe && 0 < be && (e.enqueue(new Uint8Array(xe.buffer, 0, be)), xe = null, be = 0);
|
|
3383
3383
|
}
|
|
3384
3384
|
var Vu = new TextEncoder();
|
|
3385
3385
|
function F(e) {
|
|
3386
3386
|
return Vu.encode(e);
|
|
3387
3387
|
}
|
|
3388
|
-
function
|
|
3388
|
+
function C(e) {
|
|
3389
3389
|
return Vu.encode(e);
|
|
3390
3390
|
}
|
|
3391
3391
|
function Fu(e, t) {
|
|
3392
3392
|
typeof e.error == "function" ? e.error(t) : e.close();
|
|
3393
3393
|
}
|
|
3394
|
-
var
|
|
3394
|
+
var ce = Object.prototype.hasOwnProperty, jp = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, Is = {}, Ns = {};
|
|
3395
3395
|
function Lu(e) {
|
|
3396
|
-
return
|
|
3396
|
+
return ce.call(Ns, e) ? !0 : ce.call(Is, e) ? !1 : jp.test(e) ? Ns[e] = !0 : (Is[e] = !0, !1);
|
|
3397
3397
|
}
|
|
3398
|
-
function
|
|
3398
|
+
function ae(e, t, n, r, i, o, s) {
|
|
3399
3399
|
this.acceptsBooleans = t === 2 || t === 3 || t === 4, this.attributeName = r, this.attributeNamespace = i, this.mustUseProperty = n, this.propertyName = e, this.type = t, this.sanitizeURL = o, this.removeEmptyString = s;
|
|
3400
3400
|
}
|
|
3401
3401
|
var ne = {};
|
|
3402
3402
|
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e) {
|
|
3403
|
-
ne[e] = new
|
|
3403
|
+
ne[e] = new ae(e, 0, !1, e, null, !1, !1);
|
|
3404
3404
|
});
|
|
3405
3405
|
[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(e) {
|
|
3406
3406
|
var t = e[0];
|
|
3407
|
-
ne[t] = new
|
|
3407
|
+
ne[t] = new ae(t, 1, !1, e[1], null, !1, !1);
|
|
3408
3408
|
});
|
|
3409
3409
|
["contentEditable", "draggable", "spellCheck", "value"].forEach(function(e) {
|
|
3410
|
-
ne[e] = new
|
|
3410
|
+
ne[e] = new ae(e, 2, !1, e.toLowerCase(), null, !1, !1);
|
|
3411
3411
|
});
|
|
3412
3412
|
["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(e) {
|
|
3413
|
-
ne[e] = new
|
|
3413
|
+
ne[e] = new ae(e, 2, !1, e, null, !1, !1);
|
|
3414
3414
|
});
|
|
3415
3415
|
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e) {
|
|
3416
|
-
ne[e] = new
|
|
3416
|
+
ne[e] = new ae(e, 3, !1, e.toLowerCase(), null, !1, !1);
|
|
3417
3417
|
});
|
|
3418
3418
|
["checked", "multiple", "muted", "selected"].forEach(function(e) {
|
|
3419
|
-
ne[e] = new
|
|
3419
|
+
ne[e] = new ae(e, 3, !0, e, null, !1, !1);
|
|
3420
3420
|
});
|
|
3421
3421
|
["capture", "download"].forEach(function(e) {
|
|
3422
|
-
ne[e] = new
|
|
3422
|
+
ne[e] = new ae(e, 4, !1, e, null, !1, !1);
|
|
3423
3423
|
});
|
|
3424
3424
|
["cols", "rows", "size", "span"].forEach(function(e) {
|
|
3425
|
-
ne[e] = new
|
|
3425
|
+
ne[e] = new ae(e, 6, !1, e, null, !1, !1);
|
|
3426
3426
|
});
|
|
3427
3427
|
["rowSpan", "start"].forEach(function(e) {
|
|
3428
|
-
ne[e] = new
|
|
3428
|
+
ne[e] = new ae(e, 5, !1, e.toLowerCase(), null, !1, !1);
|
|
3429
3429
|
});
|
|
3430
3430
|
var xo = /[\-:]([a-z])/g;
|
|
3431
3431
|
function bo(e) {
|
|
@@ -3436,22 +3436,22 @@ function bo(e) {
|
|
|
3436
3436
|
xo,
|
|
3437
3437
|
bo
|
|
3438
3438
|
);
|
|
3439
|
-
ne[t] = new
|
|
3439
|
+
ne[t] = new ae(t, 1, !1, e, null, !1, !1);
|
|
3440
3440
|
});
|
|
3441
3441
|
"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e) {
|
|
3442
3442
|
var t = e.replace(xo, bo);
|
|
3443
|
-
ne[t] = new
|
|
3443
|
+
ne[t] = new ae(t, 1, !1, e, "http://www.w3.org/1999/xlink", !1, !1);
|
|
3444
3444
|
});
|
|
3445
3445
|
["xml:base", "xml:lang", "xml:space"].forEach(function(e) {
|
|
3446
3446
|
var t = e.replace(xo, bo);
|
|
3447
|
-
ne[t] = new
|
|
3447
|
+
ne[t] = new ae(t, 1, !1, e, "http://www.w3.org/XML/1998/namespace", !1, !1);
|
|
3448
3448
|
});
|
|
3449
3449
|
["tabIndex", "crossOrigin"].forEach(function(e) {
|
|
3450
|
-
ne[e] = new
|
|
3450
|
+
ne[e] = new ae(e, 1, !1, e.toLowerCase(), null, !1, !1);
|
|
3451
3451
|
});
|
|
3452
|
-
ne.xlinkHref = new
|
|
3452
|
+
ne.xlinkHref = new ae("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1);
|
|
3453
3453
|
["src", "href", "action", "formAction"].forEach(function(e) {
|
|
3454
|
-
ne[e] = new
|
|
3454
|
+
ne[e] = new ae(e, 1, !1, e.toLowerCase(), null, !0, !0);
|
|
3455
3455
|
});
|
|
3456
3456
|
var qn = {
|
|
3457
3457
|
animationIterationCount: !0,
|
|
@@ -3537,12 +3537,12 @@ function ee(e) {
|
|
|
3537
3537
|
}
|
|
3538
3538
|
return e;
|
|
3539
3539
|
}
|
|
3540
|
-
var Bp = /([A-Z])/g, $p = /^ms-/, Fi = Array.isArray, zp =
|
|
3540
|
+
var Bp = /([A-Z])/g, $p = /^ms-/, Fi = Array.isArray, zp = C("<script>"), Up = C("<\/script>"), Wp = C('<script src="'), Hp = C('<script type="module" src="'), Bs = C('" async=""><\/script>'), qp = /(<\/|<)(s)(cript)/gi;
|
|
3541
3541
|
function Gp(e, t, n, r) {
|
|
3542
3542
|
return "" + t + (n === "s" ? "\\u0073" : "\\u0053") + r;
|
|
3543
3543
|
}
|
|
3544
3544
|
function Xp(e, t, n, r, i) {
|
|
3545
|
-
e = e === void 0 ? "" : e, t = t === void 0 ? zp :
|
|
3545
|
+
e = e === void 0 ? "" : e, t = t === void 0 ? zp : C('<script nonce="' + ee(t) + '">');
|
|
3546
3546
|
var o = [];
|
|
3547
3547
|
if (n !== void 0 && o.push(t, F(("" + n).replace(qp, Gp)), Up), r !== void 0)
|
|
3548
3548
|
for (n = 0; n < r.length; n++)
|
|
@@ -3550,48 +3550,48 @@ function Xp(e, t, n, r, i) {
|
|
|
3550
3550
|
if (i !== void 0)
|
|
3551
3551
|
for (r = 0; r < i.length; r++)
|
|
3552
3552
|
o.push(Hp, F(ee(i[r])), Bs);
|
|
3553
|
-
return { bootstrapChunks: o, startInlineScript: t, placeholderPrefix:
|
|
3553
|
+
return { bootstrapChunks: o, startInlineScript: t, placeholderPrefix: C(e + "P:"), segmentPrefix: C(e + "S:"), boundaryPrefix: e + "B:", idPrefix: e, nextSuspenseID: 0, sentCompleteSegmentFunction: !1, sentCompleteBoundaryFunction: !1, sentClientRenderFunction: !1 };
|
|
3554
3554
|
}
|
|
3555
|
-
function
|
|
3555
|
+
function _e(e, t) {
|
|
3556
3556
|
return { insertionMode: e, selectedValue: t };
|
|
3557
3557
|
}
|
|
3558
3558
|
function Kp(e) {
|
|
3559
|
-
return
|
|
3559
|
+
return _e(e === "http://www.w3.org/2000/svg" ? 2 : e === "http://www.w3.org/1998/Math/MathML" ? 3 : 0, null);
|
|
3560
3560
|
}
|
|
3561
3561
|
function Yp(e, t, n) {
|
|
3562
3562
|
switch (t) {
|
|
3563
3563
|
case "select":
|
|
3564
|
-
return
|
|
3564
|
+
return _e(1, n.value != null ? n.value : n.defaultValue);
|
|
3565
3565
|
case "svg":
|
|
3566
|
-
return
|
|
3566
|
+
return _e(2, null);
|
|
3567
3567
|
case "math":
|
|
3568
|
-
return
|
|
3568
|
+
return _e(3, null);
|
|
3569
3569
|
case "foreignObject":
|
|
3570
|
-
return
|
|
3570
|
+
return _e(1, null);
|
|
3571
3571
|
case "table":
|
|
3572
|
-
return
|
|
3572
|
+
return _e(4, null);
|
|
3573
3573
|
case "thead":
|
|
3574
3574
|
case "tbody":
|
|
3575
3575
|
case "tfoot":
|
|
3576
|
-
return
|
|
3576
|
+
return _e(5, null);
|
|
3577
3577
|
case "colgroup":
|
|
3578
|
-
return
|
|
3578
|
+
return _e(7, null);
|
|
3579
3579
|
case "tr":
|
|
3580
|
-
return
|
|
3580
|
+
return _e(6, null);
|
|
3581
3581
|
}
|
|
3582
|
-
return 4 <= e.insertionMode || e.insertionMode === 0 ?
|
|
3582
|
+
return 4 <= e.insertionMode || e.insertionMode === 0 ? _e(1, null) : e;
|
|
3583
3583
|
}
|
|
3584
|
-
var wo =
|
|
3584
|
+
var wo = C("<!-- -->");
|
|
3585
3585
|
function $s(e, t, n, r) {
|
|
3586
3586
|
return t === "" ? r : (r && e.push(wo), e.push(F(ee(t))), !0);
|
|
3587
3587
|
}
|
|
3588
|
-
var zs = /* @__PURE__ */ new Map(), Jp =
|
|
3588
|
+
var zs = /* @__PURE__ */ new Map(), Jp = C(' style="'), Us = C(":"), Zp = C(";");
|
|
3589
3589
|
function Du(e, t, n) {
|
|
3590
3590
|
if (typeof n != "object")
|
|
3591
3591
|
throw Error(V(62));
|
|
3592
3592
|
t = !0;
|
|
3593
3593
|
for (var r in n)
|
|
3594
|
-
if (
|
|
3594
|
+
if (ce.call(n, r)) {
|
|
3595
3595
|
var i = n[r];
|
|
3596
3596
|
if (i != null && typeof i != "boolean" && i !== "") {
|
|
3597
3597
|
if (r.indexOf("--") === 0) {
|
|
@@ -3600,15 +3600,15 @@ function Du(e, t, n) {
|
|
|
3600
3600
|
} else {
|
|
3601
3601
|
o = r;
|
|
3602
3602
|
var s = zs.get(o);
|
|
3603
|
-
s !== void 0 || (s =
|
|
3603
|
+
s !== void 0 || (s = C(ee(o.replace(Bp, "-$1").toLowerCase().replace($p, "-ms-"))), zs.set(o, s)), o = s, i = typeof i == "number" ? i === 0 || ce.call(qn, r) ? F("" + i) : F(i + "px") : F(ee(("" + i).trim()));
|
|
3604
3604
|
}
|
|
3605
3605
|
t ? (t = !1, e.push(Jp, o, Us, i)) : e.push(Zp, o, Us, i);
|
|
3606
3606
|
}
|
|
3607
3607
|
}
|
|
3608
|
-
t || e.push(
|
|
3608
|
+
t || e.push(gt);
|
|
3609
3609
|
}
|
|
3610
|
-
var
|
|
3611
|
-
function
|
|
3610
|
+
var Ze = C(" "), At = C('="'), gt = C('"'), Ws = C('=""');
|
|
3611
|
+
function ge(e, t, n, r) {
|
|
3612
3612
|
switch (n) {
|
|
3613
3613
|
case "style":
|
|
3614
3614
|
Du(e, t, r);
|
|
@@ -3632,19 +3632,19 @@ function pe(e, t, n, r) {
|
|
|
3632
3632
|
}
|
|
3633
3633
|
switch (n = F(t.attributeName), t.type) {
|
|
3634
3634
|
case 3:
|
|
3635
|
-
r && e.push(
|
|
3635
|
+
r && e.push(Ze, n, Ws);
|
|
3636
3636
|
break;
|
|
3637
3637
|
case 4:
|
|
3638
|
-
r === !0 ? e.push(
|
|
3638
|
+
r === !0 ? e.push(Ze, n, Ws) : r !== !1 && e.push(Ze, n, At, F(ee(r)), gt);
|
|
3639
3639
|
break;
|
|
3640
3640
|
case 5:
|
|
3641
|
-
isNaN(r) || e.push(
|
|
3641
|
+
isNaN(r) || e.push(Ze, n, At, F(ee(r)), gt);
|
|
3642
3642
|
break;
|
|
3643
3643
|
case 6:
|
|
3644
|
-
!isNaN(r) && 1 <= r && e.push(
|
|
3644
|
+
!isNaN(r) && 1 <= r && e.push(Ze, n, At, F(ee(r)), gt);
|
|
3645
3645
|
break;
|
|
3646
3646
|
default:
|
|
3647
|
-
t.sanitizeURL && (r = "" + r), e.push(
|
|
3647
|
+
t.sanitizeURL && (r = "" + r), e.push(Ze, n, At, F(ee(r)), gt);
|
|
3648
3648
|
}
|
|
3649
3649
|
} else if (Lu(n)) {
|
|
3650
3650
|
switch (typeof r) {
|
|
@@ -3655,11 +3655,11 @@ function pe(e, t, n, r) {
|
|
|
3655
3655
|
if (t = n.toLowerCase().slice(0, 5), t !== "data-" && t !== "aria-")
|
|
3656
3656
|
return;
|
|
3657
3657
|
}
|
|
3658
|
-
e.push(
|
|
3658
|
+
e.push(Ze, F(n), At, F(ee(r)), gt);
|
|
3659
3659
|
}
|
|
3660
3660
|
}
|
|
3661
3661
|
}
|
|
3662
|
-
var
|
|
3662
|
+
var Qe = C(">"), Hs = C("/>");
|
|
3663
3663
|
function Gn(e, t, n) {
|
|
3664
3664
|
if (t != null) {
|
|
3665
3665
|
if (n != null)
|
|
@@ -3675,12 +3675,12 @@ function Qp(e) {
|
|
|
3675
3675
|
n != null && (t += n);
|
|
3676
3676
|
}), t;
|
|
3677
3677
|
}
|
|
3678
|
-
var ni =
|
|
3678
|
+
var ni = C(' selected=""');
|
|
3679
3679
|
function ri(e, t, n, r) {
|
|
3680
|
-
e.push(
|
|
3680
|
+
e.push(Me(n));
|
|
3681
3681
|
var i = n = null, o;
|
|
3682
3682
|
for (o in t)
|
|
3683
|
-
if (
|
|
3683
|
+
if (ce.call(t, o)) {
|
|
3684
3684
|
var s = t[o];
|
|
3685
3685
|
if (s != null)
|
|
3686
3686
|
switch (o) {
|
|
@@ -3691,30 +3691,30 @@ function ri(e, t, n, r) {
|
|
|
3691
3691
|
i = s;
|
|
3692
3692
|
break;
|
|
3693
3693
|
default:
|
|
3694
|
-
|
|
3694
|
+
ge(e, r, o, s);
|
|
3695
3695
|
}
|
|
3696
3696
|
}
|
|
3697
|
-
return e.push(
|
|
3697
|
+
return e.push(Qe), Gn(e, i, n), typeof n == "string" ? (e.push(F(ee(n))), null) : n;
|
|
3698
3698
|
}
|
|
3699
|
-
var ii =
|
|
3699
|
+
var ii = C(`
|
|
3700
3700
|
`), em = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, qs = /* @__PURE__ */ new Map();
|
|
3701
|
-
function
|
|
3701
|
+
function Me(e) {
|
|
3702
3702
|
var t = qs.get(e);
|
|
3703
3703
|
if (t === void 0) {
|
|
3704
3704
|
if (!em.test(e))
|
|
3705
3705
|
throw Error(V(65, e));
|
|
3706
|
-
t =
|
|
3706
|
+
t = C("<" + e), qs.set(e, t);
|
|
3707
3707
|
}
|
|
3708
3708
|
return t;
|
|
3709
3709
|
}
|
|
3710
|
-
var tm =
|
|
3710
|
+
var tm = C("<!DOCTYPE html>");
|
|
3711
3711
|
function nm(e, t, n, r, i) {
|
|
3712
3712
|
switch (t) {
|
|
3713
3713
|
case "select":
|
|
3714
|
-
e.push(
|
|
3714
|
+
e.push(Me("select"));
|
|
3715
3715
|
var o = null, s = null;
|
|
3716
3716
|
for (f in n)
|
|
3717
|
-
if (
|
|
3717
|
+
if (ce.call(n, f)) {
|
|
3718
3718
|
var a = n[f];
|
|
3719
3719
|
if (a != null)
|
|
3720
3720
|
switch (f) {
|
|
@@ -3728,15 +3728,15 @@ function nm(e, t, n, r, i) {
|
|
|
3728
3728
|
case "value":
|
|
3729
3729
|
break;
|
|
3730
3730
|
default:
|
|
3731
|
-
|
|
3731
|
+
ge(e, r, f, a);
|
|
3732
3732
|
}
|
|
3733
3733
|
}
|
|
3734
|
-
return e.push(
|
|
3734
|
+
return e.push(Qe), Gn(e, s, o), o;
|
|
3735
3735
|
case "option":
|
|
3736
|
-
s = i.selectedValue, e.push(
|
|
3736
|
+
s = i.selectedValue, e.push(Me("option"));
|
|
3737
3737
|
var l = a = null, u = null, f = null;
|
|
3738
3738
|
for (o in n)
|
|
3739
|
-
if (
|
|
3739
|
+
if (ce.call(n, o)) {
|
|
3740
3740
|
var c = n[o];
|
|
3741
3741
|
if (c != null)
|
|
3742
3742
|
switch (o) {
|
|
@@ -3752,7 +3752,7 @@ function nm(e, t, n, r, i) {
|
|
|
3752
3752
|
case "value":
|
|
3753
3753
|
l = c;
|
|
3754
3754
|
default:
|
|
3755
|
-
|
|
3755
|
+
ge(e, r, o, c);
|
|
3756
3756
|
}
|
|
3757
3757
|
}
|
|
3758
3758
|
if (s != null)
|
|
@@ -3766,11 +3766,11 @@ function nm(e, t, n, r, i) {
|
|
|
3766
3766
|
"" + s === n && e.push(ni);
|
|
3767
3767
|
else
|
|
3768
3768
|
u && e.push(ni);
|
|
3769
|
-
return e.push(
|
|
3769
|
+
return e.push(Qe), Gn(e, f, a), a;
|
|
3770
3770
|
case "textarea":
|
|
3771
|
-
e.push(
|
|
3771
|
+
e.push(Me("textarea")), f = s = o = null;
|
|
3772
3772
|
for (a in n)
|
|
3773
|
-
if (
|
|
3773
|
+
if (ce.call(n, a) && (l = n[a], l != null))
|
|
3774
3774
|
switch (a) {
|
|
3775
3775
|
case "children":
|
|
3776
3776
|
f = l;
|
|
@@ -3784,9 +3784,9 @@ function nm(e, t, n, r, i) {
|
|
|
3784
3784
|
case "dangerouslySetInnerHTML":
|
|
3785
3785
|
throw Error(V(91));
|
|
3786
3786
|
default:
|
|
3787
|
-
|
|
3787
|
+
ge(e, r, a, l);
|
|
3788
3788
|
}
|
|
3789
|
-
if (o === null && s !== null && (o = s), e.push(
|
|
3789
|
+
if (o === null && s !== null && (o = s), e.push(Qe), f != null) {
|
|
3790
3790
|
if (o != null)
|
|
3791
3791
|
throw Error(V(92));
|
|
3792
3792
|
if (Fi(f) && 1 < f.length)
|
|
@@ -3796,9 +3796,9 @@ function nm(e, t, n, r, i) {
|
|
|
3796
3796
|
return typeof o == "string" && o[0] === `
|
|
3797
3797
|
` && e.push(ii), o !== null && e.push(F(ee("" + o))), null;
|
|
3798
3798
|
case "input":
|
|
3799
|
-
e.push(
|
|
3799
|
+
e.push(Me("input")), l = f = a = o = null;
|
|
3800
3800
|
for (s in n)
|
|
3801
|
-
if (
|
|
3801
|
+
if (ce.call(n, s) && (u = n[s], u != null))
|
|
3802
3802
|
switch (s) {
|
|
3803
3803
|
case "children":
|
|
3804
3804
|
case "dangerouslySetInnerHTML":
|
|
@@ -3816,30 +3816,30 @@ function nm(e, t, n, r, i) {
|
|
|
3816
3816
|
o = u;
|
|
3817
3817
|
break;
|
|
3818
3818
|
default:
|
|
3819
|
-
|
|
3819
|
+
ge(e, r, s, u);
|
|
3820
3820
|
}
|
|
3821
|
-
return f !== null ?
|
|
3821
|
+
return f !== null ? ge(
|
|
3822
3822
|
e,
|
|
3823
3823
|
r,
|
|
3824
3824
|
"checked",
|
|
3825
3825
|
f
|
|
3826
|
-
) : l !== null &&
|
|
3826
|
+
) : l !== null && ge(e, r, "checked", l), o !== null ? ge(e, r, "value", o) : a !== null && ge(e, r, "value", a), e.push(Hs), null;
|
|
3827
3827
|
case "menuitem":
|
|
3828
|
-
e.push(
|
|
3828
|
+
e.push(Me("menuitem"));
|
|
3829
3829
|
for (var d in n)
|
|
3830
|
-
if (
|
|
3830
|
+
if (ce.call(n, d) && (o = n[d], o != null))
|
|
3831
3831
|
switch (d) {
|
|
3832
3832
|
case "children":
|
|
3833
3833
|
case "dangerouslySetInnerHTML":
|
|
3834
3834
|
throw Error(V(400));
|
|
3835
3835
|
default:
|
|
3836
|
-
|
|
3836
|
+
ge(e, r, d, o);
|
|
3837
3837
|
}
|
|
3838
|
-
return e.push(
|
|
3838
|
+
return e.push(Qe), null;
|
|
3839
3839
|
case "title":
|
|
3840
|
-
e.push(
|
|
3840
|
+
e.push(Me("title")), o = null;
|
|
3841
3841
|
for (c in n)
|
|
3842
|
-
if (
|
|
3842
|
+
if (ce.call(n, c) && (s = n[c], s != null))
|
|
3843
3843
|
switch (c) {
|
|
3844
3844
|
case "children":
|
|
3845
3845
|
o = s;
|
|
@@ -3847,14 +3847,14 @@ function nm(e, t, n, r, i) {
|
|
|
3847
3847
|
case "dangerouslySetInnerHTML":
|
|
3848
3848
|
throw Error(V(434));
|
|
3849
3849
|
default:
|
|
3850
|
-
|
|
3850
|
+
ge(e, r, c, s);
|
|
3851
3851
|
}
|
|
3852
|
-
return e.push(
|
|
3852
|
+
return e.push(Qe), o;
|
|
3853
3853
|
case "listing":
|
|
3854
3854
|
case "pre":
|
|
3855
|
-
e.push(
|
|
3855
|
+
e.push(Me(t)), s = o = null;
|
|
3856
3856
|
for (l in n)
|
|
3857
|
-
if (
|
|
3857
|
+
if (ce.call(n, l) && (a = n[l], a != null))
|
|
3858
3858
|
switch (l) {
|
|
3859
3859
|
case "children":
|
|
3860
3860
|
o = a;
|
|
@@ -3863,9 +3863,9 @@ function nm(e, t, n, r, i) {
|
|
|
3863
3863
|
s = a;
|
|
3864
3864
|
break;
|
|
3865
3865
|
default:
|
|
3866
|
-
|
|
3866
|
+
ge(e, r, l, a);
|
|
3867
3867
|
}
|
|
3868
|
-
if (e.push(
|
|
3868
|
+
if (e.push(Qe), s != null) {
|
|
3869
3869
|
if (o != null)
|
|
3870
3870
|
throw Error(V(60));
|
|
3871
3871
|
if (typeof s != "object" || !("__html" in s))
|
|
@@ -3889,15 +3889,15 @@ function nm(e, t, n, r, i) {
|
|
|
3889
3889
|
case "source":
|
|
3890
3890
|
case "track":
|
|
3891
3891
|
case "wbr":
|
|
3892
|
-
e.push(
|
|
3892
|
+
e.push(Me(t));
|
|
3893
3893
|
for (var h in n)
|
|
3894
|
-
if (
|
|
3894
|
+
if (ce.call(n, h) && (o = n[h], o != null))
|
|
3895
3895
|
switch (h) {
|
|
3896
3896
|
case "children":
|
|
3897
3897
|
case "dangerouslySetInnerHTML":
|
|
3898
3898
|
throw Error(V(399, t));
|
|
3899
3899
|
default:
|
|
3900
|
-
|
|
3900
|
+
ge(e, r, h, o);
|
|
3901
3901
|
}
|
|
3902
3902
|
return e.push(Hs), null;
|
|
3903
3903
|
case "annotation-xml":
|
|
@@ -3914,9 +3914,9 @@ function nm(e, t, n, r, i) {
|
|
|
3914
3914
|
default:
|
|
3915
3915
|
if (t.indexOf("-") === -1 && typeof n.is != "string")
|
|
3916
3916
|
return ri(e, n, t, r);
|
|
3917
|
-
e.push(
|
|
3917
|
+
e.push(Me(t)), s = o = null;
|
|
3918
3918
|
for (u in n)
|
|
3919
|
-
if (
|
|
3919
|
+
if (ce.call(n, u) && (a = n[u], a != null))
|
|
3920
3920
|
switch (u) {
|
|
3921
3921
|
case "children":
|
|
3922
3922
|
o = a;
|
|
@@ -3931,21 +3931,21 @@ function nm(e, t, n, r, i) {
|
|
|
3931
3931
|
case "suppressHydrationWarning":
|
|
3932
3932
|
break;
|
|
3933
3933
|
default:
|
|
3934
|
-
Lu(u) && typeof a != "function" && typeof a != "symbol" && e.push(
|
|
3934
|
+
Lu(u) && typeof a != "function" && typeof a != "symbol" && e.push(Ze, F(u), At, F(ee(a)), gt);
|
|
3935
3935
|
}
|
|
3936
|
-
return e.push(
|
|
3936
|
+
return e.push(Qe), Gn(e, s, o), o;
|
|
3937
3937
|
}
|
|
3938
3938
|
}
|
|
3939
|
-
var rm =
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
var mm =
|
|
3939
|
+
var rm = C("</"), im = C(">"), om = C('<template id="'), sm = C('"></template>'), am = C("<!--$-->"), lm = C('<!--$?--><template id="'), um = C('"></template>'), cm = C("<!--$!-->"), fm = C("<!--/$-->"), dm = C("<template"), hm = C('"'), pm = C(' data-dgst="');
|
|
3940
|
+
C(' data-msg="');
|
|
3941
|
+
C(' data-stck="');
|
|
3942
|
+
var mm = C("></template>");
|
|
3943
3943
|
function Gs(e, t, n) {
|
|
3944
3944
|
if (A(e, lm), n === null)
|
|
3945
3945
|
throw Error(V(395));
|
|
3946
3946
|
return A(e, n), B(e, um);
|
|
3947
3947
|
}
|
|
3948
|
-
var gm =
|
|
3948
|
+
var gm = C('<div hidden id="'), ym = C('">'), vm = C("</div>"), xm = C('<svg aria-hidden="true" style="display:none" id="'), bm = C('">'), wm = C("</svg>"), Sm = C('<math aria-hidden="true" style="display:none" id="'), Em = C('">'), Cm = C("</math>"), km = C('<table hidden id="'), Tm = C('">'), Pm = C("</table>"), Rm = C('<table hidden><tbody id="'), Am = C('">'), Om = C("</tbody></table>"), _m = C('<table hidden><tr id="'), Mm = C('">'), Vm = C("</tr></table>"), Fm = C('<table hidden><colgroup id="'), Lm = C('">'), Dm = C("</colgroup></table>");
|
|
3949
3949
|
function jm(e, t, n, r) {
|
|
3950
3950
|
switch (n.insertionMode) {
|
|
3951
3951
|
case 0:
|
|
@@ -3991,7 +3991,7 @@ function Im(e, t) {
|
|
|
3991
3991
|
throw Error(V(397));
|
|
3992
3992
|
}
|
|
3993
3993
|
}
|
|
3994
|
-
var Nm =
|
|
3994
|
+
var Nm = C('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'), Bm = C('$RS("'), $m = C('","'), zm = C('")<\/script>'), Um = C('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'), Wm = C('$RC("'), Hm = C('","'), qm = C('")<\/script>'), Gm = C('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'), Xm = C('$RX("'), Km = C('"'), Ym = C(")<\/script>"), oi = C(","), Jm = /[<\u2028\u2029]/g;
|
|
3995
3995
|
function si(e) {
|
|
3996
3996
|
return JSON.stringify(e).replace(Jm, function(t) {
|
|
3997
3997
|
switch (t) {
|
|
@@ -4057,7 +4057,7 @@ function Ks(e, t) {
|
|
|
4057
4057
|
n[r] = t[r];
|
|
4058
4058
|
return n;
|
|
4059
4059
|
}
|
|
4060
|
-
var
|
|
4060
|
+
var xt = null;
|
|
4061
4061
|
function _r(e, t) {
|
|
4062
4062
|
if (e !== t) {
|
|
4063
4063
|
e.context._currentValue = e.parentValue, e = e.parent;
|
|
@@ -4092,8 +4092,8 @@ function Ju(e, t) {
|
|
|
4092
4092
|
e.depth === n.depth ? _r(e, n) : Ju(e, n), t.context._currentValue = t.value;
|
|
4093
4093
|
}
|
|
4094
4094
|
function ar(e) {
|
|
4095
|
-
var t =
|
|
4096
|
-
t !== e && (t === null ? Ku(e) : e === null ? Xu(t) : t.depth === e.depth ? _r(t, e) : t.depth > e.depth ? Yu(t, e) : Ju(t, e),
|
|
4095
|
+
var t = xt;
|
|
4096
|
+
t !== e && (t === null ? Ku(e) : e === null ? Xu(t) : t.depth === e.depth ? _r(t, e) : t.depth > e.depth ? Yu(t, e) : Ju(t, e), xt = e);
|
|
4097
4097
|
}
|
|
4098
4098
|
var Ys = { isMounted: function() {
|
|
4099
4099
|
return !1;
|
|
@@ -4143,11 +4143,11 @@ function sg(e) {
|
|
|
4143
4143
|
function ag(e, t) {
|
|
4144
4144
|
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
4145
4145
|
}
|
|
4146
|
-
var lg = typeof Object.is == "function" ? Object.is : ag,
|
|
4147
|
-
function
|
|
4148
|
-
if (
|
|
4146
|
+
var lg = typeof Object.is == "function" ? Object.is : ag, qe = null, Eo = null, Kn = null, j = null, Yt = !1, lr = !1, dn = 0, it = null, Mr = 0;
|
|
4147
|
+
function yt() {
|
|
4148
|
+
if (qe === null)
|
|
4149
4149
|
throw Error(V(321));
|
|
4150
|
-
return
|
|
4150
|
+
return qe;
|
|
4151
4151
|
}
|
|
4152
4152
|
function Zs() {
|
|
4153
4153
|
if (0 < Mr)
|
|
@@ -4158,16 +4158,16 @@ function Co() {
|
|
|
4158
4158
|
return j === null ? Kn === null ? (Yt = !1, Kn = j = Zs()) : (Yt = !0, j = Kn) : j.next === null ? (Yt = !1, j = j.next = Zs()) : (Yt = !0, j = j.next), j;
|
|
4159
4159
|
}
|
|
4160
4160
|
function ko() {
|
|
4161
|
-
Eo =
|
|
4161
|
+
Eo = qe = null, lr = !1, Kn = null, Mr = 0, j = it = null;
|
|
4162
4162
|
}
|
|
4163
4163
|
function Zu(e, t) {
|
|
4164
4164
|
return typeof t == "function" ? t(e) : t;
|
|
4165
4165
|
}
|
|
4166
4166
|
function Qs(e, t, n) {
|
|
4167
|
-
if (
|
|
4167
|
+
if (qe = yt(), j = Co(), Yt) {
|
|
4168
4168
|
var r = j.queue;
|
|
4169
|
-
if (t = r.dispatch,
|
|
4170
|
-
|
|
4169
|
+
if (t = r.dispatch, it !== null && (n = it.get(r), n !== void 0)) {
|
|
4170
|
+
it.delete(r), r = j.memoizedState;
|
|
4171
4171
|
do
|
|
4172
4172
|
r = e(r, n.action), n = n.next;
|
|
4173
4173
|
while (n !== null);
|
|
@@ -4175,10 +4175,10 @@ function Qs(e, t, n) {
|
|
|
4175
4175
|
}
|
|
4176
4176
|
return [j.memoizedState, t];
|
|
4177
4177
|
}
|
|
4178
|
-
return e = e === Zu ? typeof t == "function" ? t() : t : n !== void 0 ? n(t) : t, j.memoizedState = e, e = j.queue = { last: null, dispatch: null }, e = e.dispatch = ug.bind(null,
|
|
4178
|
+
return e = e === Zu ? typeof t == "function" ? t() : t : n !== void 0 ? n(t) : t, j.memoizedState = e, e = j.queue = { last: null, dispatch: null }, e = e.dispatch = ug.bind(null, qe, e), [j.memoizedState, e];
|
|
4179
4179
|
}
|
|
4180
4180
|
function ea(e, t) {
|
|
4181
|
-
if (
|
|
4181
|
+
if (qe = yt(), j = Co(), t = t === void 0 ? null : t, j !== null) {
|
|
4182
4182
|
var n = j.memoizedState;
|
|
4183
4183
|
if (n !== null && t !== null) {
|
|
4184
4184
|
var r = n[1];
|
|
@@ -4202,9 +4202,9 @@ function ea(e, t) {
|
|
|
4202
4202
|
function ug(e, t, n) {
|
|
4203
4203
|
if (25 <= Mr)
|
|
4204
4204
|
throw Error(V(301));
|
|
4205
|
-
if (e ===
|
|
4206
|
-
if (lr = !0, e = { action: n, next: null },
|
|
4207
|
-
|
|
4205
|
+
if (e === qe)
|
|
4206
|
+
if (lr = !0, e = { action: n, next: null }, it === null && (it = /* @__PURE__ */ new Map()), n = it.get(t), n === void 0)
|
|
4207
|
+
it.set(t, e);
|
|
4208
4208
|
else {
|
|
4209
4209
|
for (t = n; t.next !== null; )
|
|
4210
4210
|
t = t.next;
|
|
@@ -4219,9 +4219,9 @@ function An() {
|
|
|
4219
4219
|
var ta = { readContext: function(e) {
|
|
4220
4220
|
return e._currentValue;
|
|
4221
4221
|
}, useContext: function(e) {
|
|
4222
|
-
return
|
|
4222
|
+
return yt(), e._currentValue;
|
|
4223
4223
|
}, useMemo: ea, useReducer: Qs, useRef: function(e) {
|
|
4224
|
-
|
|
4224
|
+
qe = yt(), j = Co();
|
|
4225
4225
|
var t = j.memoizedState;
|
|
4226
4226
|
return t === null ? (e = { current: e }, j.memoizedState = e) : t;
|
|
4227
4227
|
}, useState: function(e) {
|
|
@@ -4232,9 +4232,9 @@ var ta = { readContext: function(e) {
|
|
|
4232
4232
|
return e;
|
|
4233
4233
|
}, t);
|
|
4234
4234
|
}, useImperativeHandle: An, useEffect: An, useDebugValue: An, useDeferredValue: function(e) {
|
|
4235
|
-
return
|
|
4235
|
+
return yt(), e;
|
|
4236
4236
|
}, useTransition: function() {
|
|
4237
|
-
return
|
|
4237
|
+
return yt(), [!1, cg];
|
|
4238
4238
|
}, useId: function() {
|
|
4239
4239
|
var e = Eo.treeContext, t = e.overflow;
|
|
4240
4240
|
e = e.id, e = (e & ~(1 << 32 - Xn(e) - 1)).toString(32) + t;
|
|
@@ -4243,7 +4243,7 @@ var ta = { readContext: function(e) {
|
|
|
4243
4243
|
throw Error(V(404));
|
|
4244
4244
|
return t = dn++, e = ":" + n.idPrefix + "R" + e, 0 < t && (e += "H" + t.toString(32)), e + ":";
|
|
4245
4245
|
}, useMutableSource: function(e, t) {
|
|
4246
|
-
return
|
|
4246
|
+
return yt(), t(e._source);
|
|
4247
4247
|
}, useSyncExternalStore: function(e, t, n) {
|
|
4248
4248
|
if (n === void 0)
|
|
4249
4249
|
throw Error(V(407));
|
|
@@ -4279,7 +4279,7 @@ function cr(e, t) {
|
|
|
4279
4279
|
n(t), n = e.onFatalError, n(t), e.destination !== null ? (e.status = 2, Fu(e.destination, t)) : (e.status = 1, e.fatalError = t);
|
|
4280
4280
|
}
|
|
4281
4281
|
function na(e, t, n, r, i) {
|
|
4282
|
-
for (
|
|
4282
|
+
for (qe = {}, Eo = t, dn = 0, e = n(r, i); lr; )
|
|
4283
4283
|
lr = !1, dn = 0, Mr += 1, j = null, e = n(r, i);
|
|
4284
4284
|
return ko(), e;
|
|
4285
4285
|
}
|
|
@@ -4296,9 +4296,9 @@ function ra(e, t, n, r) {
|
|
|
4296
4296
|
throw Error(V(108, Li(r) || "Unknown", a));
|
|
4297
4297
|
r = en({}, s, n);
|
|
4298
4298
|
}
|
|
4299
|
-
t.legacyContext = r,
|
|
4299
|
+
t.legacyContext = r, we(e, t, i), t.legacyContext = s;
|
|
4300
4300
|
} else
|
|
4301
|
-
|
|
4301
|
+
we(e, t, i);
|
|
4302
4302
|
}
|
|
4303
4303
|
function ia(e, t) {
|
|
4304
4304
|
if (e && e.defaultProps) {
|
|
@@ -4323,12 +4323,12 @@ function ji(e, t, n, r, i) {
|
|
|
4323
4323
|
else if (s) {
|
|
4324
4324
|
r = t.treeContext, t.treeContext = Di(r, 1, 0);
|
|
4325
4325
|
try {
|
|
4326
|
-
|
|
4326
|
+
we(e, t, i);
|
|
4327
4327
|
} finally {
|
|
4328
4328
|
t.treeContext = r;
|
|
4329
4329
|
}
|
|
4330
4330
|
} else
|
|
4331
|
-
|
|
4331
|
+
we(e, t, i);
|
|
4332
4332
|
}
|
|
4333
4333
|
else if (typeof n == "string") {
|
|
4334
4334
|
switch (i = t.blockedSegment, o = nm(i.chunks, n, r, e.responseState, i.formatContext), i.lastPushedText = !1, s = i.formatContext, i.formatContext = Yp(s, n, r), Ii(e, t, o), i.formatContext = s, n) {
|
|
@@ -4359,10 +4359,10 @@ function ji(e, t, n, r, i) {
|
|
|
4359
4359
|
case Nu:
|
|
4360
4360
|
case Bu:
|
|
4361
4361
|
case Iu:
|
|
4362
|
-
|
|
4362
|
+
we(e, t, r.children);
|
|
4363
4363
|
return;
|
|
4364
4364
|
case Hu:
|
|
4365
|
-
|
|
4365
|
+
we(e, t, r.children);
|
|
4366
4366
|
return;
|
|
4367
4367
|
case Qm:
|
|
4368
4368
|
throw Error(V(343));
|
|
@@ -4395,23 +4395,23 @@ function ji(e, t, n, r, i) {
|
|
|
4395
4395
|
if (r = na(e, t, n.render, r, i), dn !== 0) {
|
|
4396
4396
|
n = t.treeContext, t.treeContext = Di(n, 1, 0);
|
|
4397
4397
|
try {
|
|
4398
|
-
|
|
4398
|
+
we(e, t, r);
|
|
4399
4399
|
} finally {
|
|
4400
4400
|
t.treeContext = n;
|
|
4401
4401
|
}
|
|
4402
4402
|
} else
|
|
4403
|
-
|
|
4403
|
+
we(e, t, r);
|
|
4404
4404
|
return;
|
|
4405
4405
|
case qu:
|
|
4406
4406
|
n = n.type, r = ia(n, r), ji(e, t, n, r, i);
|
|
4407
4407
|
return;
|
|
4408
4408
|
case $u:
|
|
4409
|
-
if (i = r.children, n = n._context, r = r.value, o = n._currentValue, n._currentValue = r, s =
|
|
4409
|
+
if (i = r.children, n = n._context, r = r.value, o = n._currentValue, n._currentValue = r, s = xt, xt = r = { parent: s, depth: s === null ? 0 : s.depth + 1, context: n, parentValue: o, value: r }, t.context = r, we(e, t, i), e = xt, e === null)
|
|
4410
4410
|
throw Error(V(403));
|
|
4411
|
-
r = e.parentValue, e.context._currentValue = r === ng ? e.context._defaultValue : r, e =
|
|
4411
|
+
r = e.parentValue, e.context._currentValue = r === ng ? e.context._defaultValue : r, e = xt = e.parent, t.context = e;
|
|
4412
4412
|
return;
|
|
4413
4413
|
case zu:
|
|
4414
|
-
r = r.children, r = r(n._currentValue),
|
|
4414
|
+
r = r.children, r = r(n._currentValue), we(e, t, r);
|
|
4415
4415
|
return;
|
|
4416
4416
|
case So:
|
|
4417
4417
|
i = n._init, n = i(n._payload), r = ia(n, r), ji(e, t, n, r, void 0);
|
|
@@ -4424,7 +4424,7 @@ function ji(e, t, n, r, i) {
|
|
|
4424
4424
|
));
|
|
4425
4425
|
}
|
|
4426
4426
|
}
|
|
4427
|
-
function
|
|
4427
|
+
function we(e, t, n) {
|
|
4428
4428
|
if (t.node = n, typeof n == "object" && n !== null) {
|
|
4429
4429
|
switch (n.$$typeof) {
|
|
4430
4430
|
case Zm:
|
|
@@ -4434,7 +4434,7 @@ function xe(e, t, n) {
|
|
|
4434
4434
|
throw Error(V(257));
|
|
4435
4435
|
case So:
|
|
4436
4436
|
var r = n._init;
|
|
4437
|
-
n = r(n._payload),
|
|
4437
|
+
n = r(n._payload), we(e, t, n);
|
|
4438
4438
|
return;
|
|
4439
4439
|
}
|
|
4440
4440
|
if (Fi(n)) {
|
|
@@ -4469,7 +4469,7 @@ function oa(e, t, n) {
|
|
|
4469
4469
|
function Ii(e, t, n) {
|
|
4470
4470
|
var r = t.blockedSegment.formatContext, i = t.legacyContext, o = t.context;
|
|
4471
4471
|
try {
|
|
4472
|
-
return
|
|
4472
|
+
return we(e, t, n);
|
|
4473
4473
|
} catch (l) {
|
|
4474
4474
|
if (ko(), typeof l == "object" && l !== null && typeof l.then == "function") {
|
|
4475
4475
|
n = l;
|
|
@@ -4510,7 +4510,7 @@ function ec(e, t, n) {
|
|
|
4510
4510
|
}
|
|
4511
4511
|
function tc(e) {
|
|
4512
4512
|
if (e.status !== 2) {
|
|
4513
|
-
var t =
|
|
4513
|
+
var t = xt, n = ai.current;
|
|
4514
4514
|
ai.current = ta;
|
|
4515
4515
|
var r = Yn;
|
|
4516
4516
|
Yn = e.responseState;
|
|
@@ -4521,7 +4521,7 @@ function tc(e) {
|
|
|
4521
4521
|
if (l.status === 0) {
|
|
4522
4522
|
ar(s.context);
|
|
4523
4523
|
try {
|
|
4524
|
-
|
|
4524
|
+
we(a, s, s.node), l.lastPushedText && l.textEmbedded && l.chunks.push(wo), s.abortSet.delete(s), l.status = 1, ec(a, s.blockedBoundary, l);
|
|
4525
4525
|
} catch (p) {
|
|
4526
4526
|
if (ko(), typeof p == "object" && p !== null && typeof p.then == "function") {
|
|
4527
4527
|
var u = s.ping;
|
|
@@ -4578,7 +4578,7 @@ function Vr(e, t, n) {
|
|
|
4578
4578
|
else if (0 < r.pendingTasks) {
|
|
4579
4579
|
r.rootSegmentID = e.nextSegmentId++, 0 < r.completedSegments.length && e.partialBoundaries.push(r);
|
|
4580
4580
|
var i = e.responseState, o = i.nextSuspenseID++;
|
|
4581
|
-
i =
|
|
4581
|
+
i = C(i.boundaryPrefix + o.toString(16)), r = r.id = i, Gs(t, e.responseState, r), On(e, t, n);
|
|
4582
4582
|
} else if (r.byteSize > e.progressiveChunkSize)
|
|
4583
4583
|
r.rootSegmentID = e.nextSegmentId++, e.completedBoundaries.push(r), Gs(t, e.responseState, r.id), On(e, t, n);
|
|
4584
4584
|
else {
|
|
@@ -4610,7 +4610,7 @@ function nc(e, t, n, r) {
|
|
|
4610
4610
|
return sa(e, t, r), e = e.responseState, A(t, e.startInlineScript), e.sentCompleteSegmentFunction ? A(t, Bm) : (e.sentCompleteSegmentFunction = !0, A(t, Nm)), A(t, e.segmentPrefix), i = F(i.toString(16)), A(t, i), A(t, $m), A(t, e.placeholderPrefix), A(t, i), B(t, zm);
|
|
4611
4611
|
}
|
|
4612
4612
|
function Po(e, t) {
|
|
4613
|
-
|
|
4613
|
+
xe = new Uint8Array(512), be = 0;
|
|
4614
4614
|
try {
|
|
4615
4615
|
var n = e.completedRootSegment;
|
|
4616
4616
|
if (n !== null && e.pendingRootTasks === 0) {
|
|
@@ -4636,7 +4636,7 @@ function Po(e, t) {
|
|
|
4636
4636
|
var d = e.completedBoundaries;
|
|
4637
4637
|
for (o = 0; o < d.length; o++)
|
|
4638
4638
|
aa(e, t, d[o]);
|
|
4639
|
-
d.splice(0, o), js(t),
|
|
4639
|
+
d.splice(0, o), js(t), xe = new Uint8Array(512), be = 0;
|
|
4640
4640
|
var h = e.partialBoundaries;
|
|
4641
4641
|
for (o = 0; o < h.length; o++) {
|
|
4642
4642
|
var p = h[o];
|
|
@@ -4767,8 +4767,8 @@ var vg = function() {
|
|
|
4767
4767
|
return n.PropTypes = n, n;
|
|
4768
4768
|
};
|
|
4769
4769
|
ic.exports = vg();
|
|
4770
|
-
var
|
|
4771
|
-
const
|
|
4770
|
+
var J = ic.exports;
|
|
4771
|
+
const Pe = /* @__PURE__ */ Al(J);
|
|
4772
4772
|
var xg = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4773
4773
|
function ac(e, t) {
|
|
4774
4774
|
return e(t = { exports: {} }, t.exports), t.exports;
|
|
@@ -4783,8 +4783,8 @@ var bg = ac(function(e) {
|
|
|
4783
4783
|
for (v = [], E = y.length; S < E; S++)
|
|
4784
4784
|
v.push(n(g, y[S], b));
|
|
4785
4785
|
else
|
|
4786
|
-
for (var
|
|
4787
|
-
Object.prototype.hasOwnProperty.call(y,
|
|
4786
|
+
for (var k in v = {}, y)
|
|
4787
|
+
Object.prototype.hasOwnProperty.call(y, k) && (v[g(k, b)] = n(g, y[k], b));
|
|
4788
4788
|
return v;
|
|
4789
4789
|
}, r = function(g) {
|
|
4790
4790
|
return h(g) ? g : (g = g.replace(/[\-_\s]+(.)?/g, function(y, b) {
|
|
@@ -4898,7 +4898,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4898
4898
|
}, Pg = x.createContext(null);
|
|
4899
4899
|
function Ni(e) {
|
|
4900
4900
|
var t = e.children, n = uc(e, ["children"]);
|
|
4901
|
-
return typeof t != "string" && (t = pg(t)),
|
|
4901
|
+
return typeof t != "string" && (t = pg(t)), Be.createElement("template", lc({}, n, { dangerouslySetInnerHTML: { __html: t } }));
|
|
4902
4902
|
}
|
|
4903
4903
|
function Bi(e) {
|
|
4904
4904
|
var t = e.root, n = e.children;
|
|
@@ -4920,21 +4920,21 @@ function Rg(e) {
|
|
|
4920
4920
|
l.length > 0 && (v.adoptedStyleSheets = l), g(v);
|
|
4921
4921
|
} catch (S) {
|
|
4922
4922
|
(function(E) {
|
|
4923
|
-
var
|
|
4924
|
-
switch (
|
|
4923
|
+
var k = E.error, P = E.styleSheets, T = E.root;
|
|
4924
|
+
switch (k.name) {
|
|
4925
4925
|
case "NotSupportedError":
|
|
4926
|
-
|
|
4926
|
+
P.length > 0 && (T.adoptedStyleSheets = P);
|
|
4927
4927
|
break;
|
|
4928
4928
|
default:
|
|
4929
|
-
throw
|
|
4929
|
+
throw k;
|
|
4930
4930
|
}
|
|
4931
4931
|
})({ error: S, styleSheets: l, root: m });
|
|
4932
4932
|
}
|
|
4933
|
-
}, [r, d, l]),
|
|
4933
|
+
}, [r, d, l]), Be.createElement(Be.Fragment, null, Be.createElement(e.tag, lc({ key: y, ref: d }, c), (m || u) && Be.createElement(Pg.Provider, { value: m }, u ? Be.createElement(Ni, { shadowroot: s, shadowrootmode: s }, e.render({ root: m, ssr: u, children: f })) : Be.createElement(Bi, { root: m }, e.render({ root: m, ssr: u, children: f })))));
|
|
4934
4934
|
});
|
|
4935
|
-
return t.propTypes = { mode:
|
|
4935
|
+
return t.propTypes = { mode: Pe.oneOf(["open", "closed"]), delegatesFocus: Pe.bool, styleSheets: Pe.arrayOf(Pe.instanceOf(globalThis.CSSStyleSheet)), ssr: Pe.bool, children: Pe.node }, t.defaultProps = { mode: "open", delegatesFocus: !1, styleSheets: [], ssr: !1, children: null }, t;
|
|
4936
4936
|
}
|
|
4937
|
-
Ni.propTypes = { children:
|
|
4937
|
+
Ni.propTypes = { children: Pe.oneOfType([Pe.string, Pe.node]) }, Ni.defaultProps = { children: "" }, Bi.propTypes = { root: Pe.object.isRequired, children: Pe.node }, Bi.defaultProps = { children: null };
|
|
4938
4938
|
var li = /* @__PURE__ */ new Map();
|
|
4939
4939
|
function Ag() {
|
|
4940
4940
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "core", n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function(r) {
|
|
@@ -4954,25 +4954,25 @@ function Mg({ children: e, styles: t = [], ...n }) {
|
|
|
4954
4954
|
e
|
|
4955
4955
|
] });
|
|
4956
4956
|
}
|
|
4957
|
-
const Ro = (e) => typeof e == "number" && !isNaN(e), tn = (e) => typeof e == "string", cc = (e) => typeof e == "function", Vg = (e) => x.isValidElement(e) || tn(e) || cc(e) || Ro(e),
|
|
4957
|
+
const Ro = (e) => typeof e == "number" && !isNaN(e), tn = (e) => typeof e == "string", cc = (e) => typeof e == "function", Vg = (e) => x.isValidElement(e) || tn(e) || cc(e) || Ro(e), Ve = /* @__PURE__ */ new Map();
|
|
4958
4958
|
let $i = [];
|
|
4959
|
-
const ca = /* @__PURE__ */ new Set(), fc = () =>
|
|
4959
|
+
const ca = /* @__PURE__ */ new Set(), fc = () => Ve.size > 0;
|
|
4960
4960
|
function Fg(e, t) {
|
|
4961
4961
|
var n;
|
|
4962
4962
|
if (t)
|
|
4963
|
-
return !((n =
|
|
4963
|
+
return !((n = Ve.get(t)) == null || !n.isToastActive(e));
|
|
4964
4964
|
let r = !1;
|
|
4965
|
-
return
|
|
4965
|
+
return Ve.forEach((i) => {
|
|
4966
4966
|
i.isToastActive(e) && (r = !0);
|
|
4967
4967
|
}), r;
|
|
4968
4968
|
}
|
|
4969
4969
|
function Lg(e, t) {
|
|
4970
|
-
Vg(e) && (fc() || $i.push({ content: e, options: t }),
|
|
4970
|
+
Vg(e) && (fc() || $i.push({ content: e, options: t }), Ve.forEach((n) => {
|
|
4971
4971
|
n.buildToast(e, t);
|
|
4972
4972
|
}));
|
|
4973
4973
|
}
|
|
4974
4974
|
function fa(e, t) {
|
|
4975
|
-
|
|
4975
|
+
Ve.forEach((n) => {
|
|
4976
4976
|
t != null && t != null && t.containerId ? (t == null ? void 0 : t.containerId) === n.id && n.toggle(e, t == null ? void 0 : t.id) : n.toggle(e, t == null ? void 0 : t.id);
|
|
4977
4977
|
});
|
|
4978
4978
|
}
|
|
@@ -5008,12 +5008,12 @@ N.loading = (e, t) => nn(e, dr("default", { isLoading: !0, autoClose: !1, closeO
|
|
|
5008
5008
|
var n;
|
|
5009
5009
|
if (fc()) {
|
|
5010
5010
|
if (t == null || tn(n = t) || Ro(n))
|
|
5011
|
-
|
|
5011
|
+
Ve.forEach((i) => {
|
|
5012
5012
|
i.removeToast(t);
|
|
5013
5013
|
});
|
|
5014
5014
|
else if (t && ("containerId" in t || "id" in t)) {
|
|
5015
5015
|
var r;
|
|
5016
|
-
(r =
|
|
5016
|
+
(r = Ve.get(t.containerId)) != null && r.removeToast(t.id) || Ve.forEach((i) => {
|
|
5017
5017
|
i.removeToast(t.id);
|
|
5018
5018
|
});
|
|
5019
5019
|
}
|
|
@@ -5021,7 +5021,7 @@ N.loading = (e, t) => nn(e, dr("default", { isLoading: !0, autoClose: !1, closeO
|
|
|
5021
5021
|
$i = $i.filter((i) => t != null && i.options.toastId !== t);
|
|
5022
5022
|
})(e);
|
|
5023
5023
|
}, N.clearWaitingQueue = function(e) {
|
|
5024
|
-
e === void 0 && (e = {}),
|
|
5024
|
+
e === void 0 && (e = {}), Ve.forEach((t) => {
|
|
5025
5025
|
!t.props.limit || e.containerId && t.id !== e.containerId || t.clearQueue();
|
|
5026
5026
|
});
|
|
5027
5027
|
}, N.isActive = Fg, N.update = function(e, t) {
|
|
@@ -5029,7 +5029,7 @@ N.loading = (e, t) => nn(e, dr("default", { isLoading: !0, autoClose: !1, closeO
|
|
|
5029
5029
|
const n = ((r, i) => {
|
|
5030
5030
|
var o;
|
|
5031
5031
|
let { containerId: s } = i;
|
|
5032
|
-
return (o =
|
|
5032
|
+
return (o = Ve.get(s || 1)) == null ? void 0 : o.toasts.get(r);
|
|
5033
5033
|
})(e, t);
|
|
5034
5034
|
if (n) {
|
|
5035
5035
|
const { props: r, content: i } = n, o = { delay: 100, ...r, ...t, toastId: t.toastId || e, updateId: dc() };
|
|
@@ -5406,11 +5406,11 @@ const wn = [
|
|
|
5406
5406
|
"skew",
|
|
5407
5407
|
"skewX",
|
|
5408
5408
|
"skewY"
|
|
5409
|
-
],
|
|
5409
|
+
], St = new Set(wn);
|
|
5410
5410
|
function xc(e, { layout: t, layoutId: n }) {
|
|
5411
|
-
return
|
|
5411
|
+
return St.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!hr[e] || e === "opacity");
|
|
5412
5412
|
}
|
|
5413
|
-
const
|
|
5413
|
+
const fe = (e) => !!(e && e.getVelocity), ty = {
|
|
5414
5414
|
x: "translateX",
|
|
5415
5415
|
y: "translateY",
|
|
5416
5416
|
z: "translateZ",
|
|
@@ -5427,15 +5427,15 @@ function ry(e, { enableHardwareAcceleration: t = !0, allowTransformNone: n = !0
|
|
|
5427
5427
|
}
|
|
5428
5428
|
return t && !e.z && (o += "translateZ(0)"), o = o.trim(), i ? o = i(e, r ? "" : o) : n && r && (o = "none"), o;
|
|
5429
5429
|
}
|
|
5430
|
-
const bc = (e) => (t) => typeof t == "string" && t.startsWith(e), wc = bc("--"), zi = bc("var(--"), iy = /var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g, oy = (e, t) => t && typeof e == "number" ? t.transform(e) : e,
|
|
5430
|
+
const bc = (e) => (t) => typeof t == "string" && t.startsWith(e), wc = bc("--"), zi = bc("var(--"), iy = /var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g, oy = (e, t) => t && typeof e == "number" ? t.transform(e) : e, at = (e, t, n) => Math.min(Math.max(n, e), t), Et = {
|
|
5431
5431
|
test: (e) => typeof e == "number",
|
|
5432
5432
|
parse: parseFloat,
|
|
5433
5433
|
transform: (e) => e
|
|
5434
5434
|
}, on = {
|
|
5435
|
-
...
|
|
5436
|
-
transform: (e) =>
|
|
5435
|
+
...Et,
|
|
5436
|
+
transform: (e) => at(0, 1, e)
|
|
5437
5437
|
}, Mn = {
|
|
5438
|
-
...
|
|
5438
|
+
...Et,
|
|
5439
5439
|
default: 1
|
|
5440
5440
|
}, sn = (e) => Math.round(e * 1e5) / 1e5, Ir = /(-)?([\d]*\.?[\d])+/g, Sc = /(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi, sy = /^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;
|
|
5441
5441
|
function Sn(e) {
|
|
@@ -5445,12 +5445,12 @@ const En = (e) => ({
|
|
|
5445
5445
|
test: (t) => Sn(t) && t.endsWith(e) && t.split(" ").length === 1,
|
|
5446
5446
|
parse: parseFloat,
|
|
5447
5447
|
transform: (t) => `${t}${e}`
|
|
5448
|
-
}),
|
|
5449
|
-
...
|
|
5450
|
-
parse: (e) =>
|
|
5451
|
-
transform: (e) =>
|
|
5448
|
+
}), et = En("deg"), Le = En("%"), O = En("px"), ay = En("vh"), ly = En("vw"), pa = {
|
|
5449
|
+
...Le,
|
|
5450
|
+
parse: (e) => Le.parse(e) / 100,
|
|
5451
|
+
transform: (e) => Le.transform(e * 100)
|
|
5452
5452
|
}, ma = {
|
|
5453
|
-
...
|
|
5453
|
+
...Et,
|
|
5454
5454
|
transform: Math.round
|
|
5455
5455
|
}, Ec = {
|
|
5456
5456
|
// Border props
|
|
@@ -5487,17 +5487,17 @@ const En = (e) => ({
|
|
|
5487
5487
|
marginBottom: O,
|
|
5488
5488
|
marginLeft: O,
|
|
5489
5489
|
// Transform props
|
|
5490
|
-
rotate:
|
|
5491
|
-
rotateX:
|
|
5492
|
-
rotateY:
|
|
5493
|
-
rotateZ:
|
|
5490
|
+
rotate: et,
|
|
5491
|
+
rotateX: et,
|
|
5492
|
+
rotateY: et,
|
|
5493
|
+
rotateZ: et,
|
|
5494
5494
|
scale: Mn,
|
|
5495
5495
|
scaleX: Mn,
|
|
5496
5496
|
scaleY: Mn,
|
|
5497
5497
|
scaleZ: Mn,
|
|
5498
|
-
skew:
|
|
5499
|
-
skewX:
|
|
5500
|
-
skewY:
|
|
5498
|
+
skew: et,
|
|
5499
|
+
skewX: et,
|
|
5500
|
+
skewY: et,
|
|
5501
5501
|
distance: O,
|
|
5502
5502
|
translateX: O,
|
|
5503
5503
|
translateY: O,
|
|
@@ -5528,7 +5528,7 @@ function Fo(e, t, n, r) {
|
|
|
5528
5528
|
continue;
|
|
5529
5529
|
}
|
|
5530
5530
|
const h = Ec[c], p = oy(d, h);
|
|
5531
|
-
if (
|
|
5531
|
+
if (St.has(c)) {
|
|
5532
5532
|
if (l = !0, s[c] = p, !f)
|
|
5533
5533
|
continue;
|
|
5534
5534
|
d !== (h.default || 0) && (f = !1);
|
|
@@ -5548,7 +5548,7 @@ const Lo = () => ({
|
|
|
5548
5548
|
});
|
|
5549
5549
|
function Cc(e, t, n) {
|
|
5550
5550
|
for (const r in t)
|
|
5551
|
-
!
|
|
5551
|
+
!fe(t[r]) && !xc(r, n) && (e[r] = t[r]);
|
|
5552
5552
|
}
|
|
5553
5553
|
function uy({ transformTemplate: e }, t, n) {
|
|
5554
5554
|
return x.useMemo(() => {
|
|
@@ -5680,7 +5680,7 @@ function by(e = !1) {
|
|
|
5680
5680
|
...py(r, typeof n == "string", e),
|
|
5681
5681
|
...l,
|
|
5682
5682
|
ref: i
|
|
5683
|
-
}, { children: c } = r, d = x.useMemo(() =>
|
|
5683
|
+
}, { children: c } = r, d = x.useMemo(() => fe(c) ? c.get() : c, [c]);
|
|
5684
5684
|
return x.createElement(n, {
|
|
5685
5685
|
...f,
|
|
5686
5686
|
children: d
|
|
@@ -5725,13 +5725,13 @@ function Ac(e, t, n, r) {
|
|
|
5725
5725
|
function Io(e, t) {
|
|
5726
5726
|
const { style: n } = e, r = {};
|
|
5727
5727
|
for (const i in n)
|
|
5728
|
-
(
|
|
5728
|
+
(fe(n[i]) || t.style && fe(t.style[i]) || xc(i, e)) && (r[i] = n[i]);
|
|
5729
5729
|
return r;
|
|
5730
5730
|
}
|
|
5731
5731
|
function Oc(e, t) {
|
|
5732
5732
|
const n = Io(e, t);
|
|
5733
5733
|
for (const r in e)
|
|
5734
|
-
if (
|
|
5734
|
+
if (fe(e[r]) || fe(t[r])) {
|
|
5735
5735
|
const i = wn.indexOf(r) !== -1 ? "attr" + r.charAt(0).toUpperCase() + r.substring(1) : r;
|
|
5736
5736
|
n[i] = e[r];
|
|
5737
5737
|
}
|
|
@@ -5746,7 +5746,7 @@ function wy(e) {
|
|
|
5746
5746
|
}
|
|
5747
5747
|
const mr = (e) => Array.isArray(e), Sy = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), Ey = (e) => mr(e) ? e[e.length - 1] || 0 : e;
|
|
5748
5748
|
function Jn(e) {
|
|
5749
|
-
const t =
|
|
5749
|
+
const t = fe(e) ? e.get() : e;
|
|
5750
5750
|
return Sy(t) ? t.toValue() : t;
|
|
5751
5751
|
}
|
|
5752
5752
|
function Cy({ scrapeMotionValuesFromProps: e, createRenderState: t, onMount: n }, r, i, o) {
|
|
@@ -5863,7 +5863,7 @@ function Ry(e, t) {
|
|
|
5863
5863
|
return c[d] = (p, m = !1, g = !1) => (n || l(), h.schedule(p, m, g)), c;
|
|
5864
5864
|
}, {}), cancel: (c) => Vn.forEach((d) => o[d].cancel(c)), state: i, steps: o };
|
|
5865
5865
|
}
|
|
5866
|
-
const { schedule: $, cancel:
|
|
5866
|
+
const { schedule: $, cancel: Ge, state: re, steps: ui } = Ry(typeof requestAnimationFrame < "u" ? requestAnimationFrame : G, !0), Ay = {
|
|
5867
5867
|
useVisualState: _c({
|
|
5868
5868
|
scrapeMotionValuesFromProps: Oc,
|
|
5869
5869
|
createRenderState: Tc,
|
|
@@ -5899,7 +5899,7 @@ function _y(e, { forwardMotionProps: t = !1 }, n, r) {
|
|
|
5899
5899
|
Component: e
|
|
5900
5900
|
};
|
|
5901
5901
|
}
|
|
5902
|
-
function
|
|
5902
|
+
function $e(e, t, n, r = { passive: !0 }) {
|
|
5903
5903
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n);
|
|
5904
5904
|
}
|
|
5905
5905
|
const Mc = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
|
|
@@ -5912,10 +5912,10 @@ function Nr(e, t = "page") {
|
|
|
5912
5912
|
};
|
|
5913
5913
|
}
|
|
5914
5914
|
const My = (e) => (t) => Mc(t) && e(t, Nr(t));
|
|
5915
|
-
function
|
|
5916
|
-
return
|
|
5915
|
+
function Ue(e, t, n, r) {
|
|
5916
|
+
return $e(e, t, My(n), r);
|
|
5917
5917
|
}
|
|
5918
|
-
const Vy = (e, t) => (n) => t(e(n)),
|
|
5918
|
+
const Vy = (e, t) => (n) => t(e(n)), ot = (...e) => e.reduce(Vy);
|
|
5919
5919
|
function Vc(e) {
|
|
5920
5920
|
let t = null;
|
|
5921
5921
|
return () => {
|
|
@@ -5944,7 +5944,7 @@ function Lc() {
|
|
|
5944
5944
|
const e = Fc(!0);
|
|
5945
5945
|
return e ? (e(), !1) : !0;
|
|
5946
5946
|
}
|
|
5947
|
-
class
|
|
5947
|
+
class ut {
|
|
5948
5948
|
constructor(t) {
|
|
5949
5949
|
this.isMounted = !1, this.node = t;
|
|
5950
5950
|
}
|
|
@@ -5958,18 +5958,18 @@ function ba(e, t) {
|
|
|
5958
5958
|
const a = e.getProps();
|
|
5959
5959
|
e.animationState && a.whileHover && e.animationState.setActive("whileHover", t), a[r] && $.update(() => a[r](o, s));
|
|
5960
5960
|
};
|
|
5961
|
-
return
|
|
5961
|
+
return Ue(e.current, n, i, {
|
|
5962
5962
|
passive: !e.getProps()[r]
|
|
5963
5963
|
});
|
|
5964
5964
|
}
|
|
5965
|
-
class Fy extends
|
|
5965
|
+
class Fy extends ut {
|
|
5966
5966
|
mount() {
|
|
5967
|
-
this.unmount =
|
|
5967
|
+
this.unmount = ot(ba(this.node, !0), ba(this.node, !1));
|
|
5968
5968
|
}
|
|
5969
5969
|
unmount() {
|
|
5970
5970
|
}
|
|
5971
5971
|
}
|
|
5972
|
-
class Ly extends
|
|
5972
|
+
class Ly extends ut {
|
|
5973
5973
|
constructor() {
|
|
5974
5974
|
super(...arguments), this.isActive = !1;
|
|
5975
5975
|
}
|
|
@@ -5986,7 +5986,7 @@ class Ly extends lt {
|
|
|
5986
5986
|
!this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
|
|
5987
5987
|
}
|
|
5988
5988
|
mount() {
|
|
5989
|
-
this.unmount =
|
|
5989
|
+
this.unmount = ot($e(this.node.current, "focus", () => this.onFocus()), $e(this.node.current, "blur", () => this.onBlur()));
|
|
5990
5990
|
}
|
|
5991
5991
|
unmount() {
|
|
5992
5992
|
}
|
|
@@ -5998,21 +5998,21 @@ function ci(e, t) {
|
|
|
5998
5998
|
const n = new PointerEvent("pointer" + e);
|
|
5999
5999
|
t(n, Nr(n));
|
|
6000
6000
|
}
|
|
6001
|
-
class Dy extends
|
|
6001
|
+
class Dy extends ut {
|
|
6002
6002
|
constructor() {
|
|
6003
6003
|
super(...arguments), this.removeStartListeners = G, this.removeEndListeners = G, this.removeAccessibleListeners = G, this.startPointerPress = (t, n) => {
|
|
6004
6004
|
if (this.isPressing)
|
|
6005
6005
|
return;
|
|
6006
6006
|
this.removeEndListeners();
|
|
6007
|
-
const r = this.node.getProps(), o =
|
|
6007
|
+
const r = this.node.getProps(), o = Ue(window, "pointerup", (a, l) => {
|
|
6008
6008
|
if (!this.checkPressEnd())
|
|
6009
6009
|
return;
|
|
6010
6010
|
const { onTap: u, onTapCancel: f, globalTapTarget: c } = this.node.getProps();
|
|
6011
6011
|
$.update(() => {
|
|
6012
6012
|
!c && !Dc(this.node.current, a.target) ? f && f(a, l) : u && u(a, l);
|
|
6013
6013
|
});
|
|
6014
|
-
}, { passive: !(r.onTap || r.onPointerUp) }), s =
|
|
6015
|
-
this.removeEndListeners =
|
|
6014
|
+
}, { passive: !(r.onTap || r.onPointerUp) }), s = Ue(window, "pointercancel", (a, l) => this.cancelPress(a, l), { passive: !(r.onTapCancel || r.onPointerCancel) });
|
|
6015
|
+
this.removeEndListeners = ot(o, s), this.startPress(t, n);
|
|
6016
6016
|
}, this.startAccessiblePress = () => {
|
|
6017
6017
|
const t = (o) => {
|
|
6018
6018
|
if (o.key !== "Enter" || this.isPressing)
|
|
@@ -6023,13 +6023,13 @@ class Dy extends lt {
|
|
|
6023
6023
|
f && $.update(() => f(l, u));
|
|
6024
6024
|
});
|
|
6025
6025
|
};
|
|
6026
|
-
this.removeEndListeners(), this.removeEndListeners =
|
|
6026
|
+
this.removeEndListeners(), this.removeEndListeners = $e(this.node.current, "keyup", s), ci("down", (a, l) => {
|
|
6027
6027
|
this.startPress(a, l);
|
|
6028
6028
|
});
|
|
6029
|
-
}, n =
|
|
6029
|
+
}, n = $e(this.node.current, "keydown", t), r = () => {
|
|
6030
6030
|
this.isPressing && ci("cancel", (o, s) => this.cancelPress(o, s));
|
|
6031
|
-
}, i =
|
|
6032
|
-
this.removeAccessibleListeners =
|
|
6031
|
+
}, i = $e(this.node.current, "blur", r);
|
|
6032
|
+
this.removeAccessibleListeners = ot(n, i);
|
|
6033
6033
|
};
|
|
6034
6034
|
}
|
|
6035
6035
|
startPress(t, n) {
|
|
@@ -6047,8 +6047,8 @@ class Dy extends lt {
|
|
|
6047
6047
|
r && $.update(() => r(t, n));
|
|
6048
6048
|
}
|
|
6049
6049
|
mount() {
|
|
6050
|
-
const t = this.node.getProps(), n =
|
|
6051
|
-
this.removeStartListeners =
|
|
6050
|
+
const t = this.node.getProps(), n = Ue(t.globalTapTarget ? window : this.node.current, "pointerdown", this.startPointerPress, { passive: !(t.onTapStart || t.onPointerStart) }), r = $e(this.node.current, "focus", this.startAccessiblePress);
|
|
6051
|
+
this.removeStartListeners = ot(n, r);
|
|
6052
6052
|
}
|
|
6053
6053
|
unmount() {
|
|
6054
6054
|
this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners();
|
|
@@ -6076,7 +6076,7 @@ const $y = {
|
|
|
6076
6076
|
some: 0,
|
|
6077
6077
|
all: 1
|
|
6078
6078
|
};
|
|
6079
|
-
class zy extends
|
|
6079
|
+
class zy extends ut {
|
|
6080
6080
|
constructor() {
|
|
6081
6081
|
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
6082
6082
|
}
|
|
@@ -6149,7 +6149,7 @@ function Br(e, t, n) {
|
|
|
6149
6149
|
return No(r, t, n !== void 0 ? n : r.custom, Hy(e), qy(e));
|
|
6150
6150
|
}
|
|
6151
6151
|
let Gy = G, Bo = G;
|
|
6152
|
-
const
|
|
6152
|
+
const st = (e) => e * 1e3, We = (e) => e / 1e3, Xy = {
|
|
6153
6153
|
current: !1
|
|
6154
6154
|
}, Ic = (e) => Array.isArray(e) && typeof e[0] == "number";
|
|
6155
6155
|
function Nc(e) {
|
|
@@ -6231,10 +6231,10 @@ const e0 = Cn(0.42, 0, 1, 1), t0 = Cn(0, 0, 0.58, 1), Uc = Cn(0.42, 0, 0.58, 1),
|
|
|
6231
6231
|
[n]: parseFloat(s),
|
|
6232
6232
|
alpha: a !== void 0 ? parseFloat(a) : 1
|
|
6233
6233
|
};
|
|
6234
|
-
}, a0 = (e) =>
|
|
6235
|
-
...
|
|
6234
|
+
}, a0 = (e) => at(0, 255, e), di = {
|
|
6235
|
+
...Et,
|
|
6236
6236
|
transform: (e) => Math.round(a0(e))
|
|
6237
|
-
},
|
|
6237
|
+
}, bt = {
|
|
6238
6238
|
test: Uo("rgb", "red"),
|
|
6239
6239
|
parse: Xc("red", "green", "blue"),
|
|
6240
6240
|
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + di.transform(e) + ", " + di.transform(t) + ", " + di.transform(n) + ", " + sn(on.transform(r)) + ")"
|
|
@@ -6251,16 +6251,16 @@ function l0(e) {
|
|
|
6251
6251
|
const Wi = {
|
|
6252
6252
|
test: Uo("#"),
|
|
6253
6253
|
parse: l0,
|
|
6254
|
-
transform:
|
|
6254
|
+
transform: bt.transform
|
|
6255
6255
|
}, Vt = {
|
|
6256
6256
|
test: Uo("hsl", "hue"),
|
|
6257
6257
|
parse: Xc("hue", "saturation", "lightness"),
|
|
6258
|
-
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " +
|
|
6259
|
-
},
|
|
6260
|
-
test: (e) =>
|
|
6261
|
-
parse: (e) =>
|
|
6262
|
-
transform: (e) => Sn(e) ? e : e.hasOwnProperty("red") ?
|
|
6263
|
-
},
|
|
6258
|
+
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Le.transform(sn(t)) + ", " + Le.transform(sn(n)) + ", " + sn(on.transform(r)) + ")"
|
|
6259
|
+
}, ie = {
|
|
6260
|
+
test: (e) => bt.test(e) || Wi.test(e) || Vt.test(e),
|
|
6261
|
+
parse: (e) => bt.test(e) ? bt.parse(e) : Vt.test(e) ? Vt.parse(e) : Wi.parse(e),
|
|
6262
|
+
transform: (e) => Sn(e) ? e : e.hasOwnProperty("red") ? bt.transform(e) : Vt.transform(e)
|
|
6263
|
+
}, W = (e, t, n) => -n * e + n * t + e;
|
|
6264
6264
|
function hi(e, t, n) {
|
|
6265
6265
|
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
6266
6266
|
}
|
|
@@ -6283,7 +6283,7 @@ function u0({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
|
6283
6283
|
const pi = (e, t, n) => {
|
|
6284
6284
|
const r = e * e;
|
|
6285
6285
|
return Math.sqrt(Math.max(0, n * (t * t - r) + r));
|
|
6286
|
-
}, c0 = [Wi,
|
|
6286
|
+
}, c0 = [Wi, bt, Vt], f0 = (e) => c0.find((t) => t.test(e));
|
|
6287
6287
|
function Sa(e) {
|
|
6288
6288
|
const t = f0(e);
|
|
6289
6289
|
let n = t.parse(e);
|
|
@@ -6291,7 +6291,7 @@ function Sa(e) {
|
|
|
6291
6291
|
}
|
|
6292
6292
|
const Kc = (e, t) => {
|
|
6293
6293
|
const n = Sa(e), r = Sa(t), i = { ...n };
|
|
6294
|
-
return (o) => (i.red = pi(n.red, r.red, o), i.green = pi(n.green, r.green, o), i.blue = pi(n.blue, r.blue, o), i.alpha =
|
|
6294
|
+
return (o) => (i.red = pi(n.red, r.red, o), i.green = pi(n.green, r.green, o), i.blue = pi(n.blue, r.blue, o), i.alpha = W(n.alpha, r.alpha, o), bt.transform(i));
|
|
6295
6295
|
};
|
|
6296
6296
|
function d0(e) {
|
|
6297
6297
|
var t, n;
|
|
@@ -6306,12 +6306,12 @@ const Yc = {
|
|
|
6306
6306
|
regex: Sc,
|
|
6307
6307
|
countKey: "Colors",
|
|
6308
6308
|
token: "${c}",
|
|
6309
|
-
parse:
|
|
6309
|
+
parse: ie.parse
|
|
6310
6310
|
}, Zc = {
|
|
6311
6311
|
regex: Ir,
|
|
6312
6312
|
countKey: "Numbers",
|
|
6313
6313
|
token: "${n}",
|
|
6314
|
-
parse:
|
|
6314
|
+
parse: Et.parse
|
|
6315
6315
|
};
|
|
6316
6316
|
function mi(e, { regex: t, countKey: n, token: r, parse: i }) {
|
|
6317
6317
|
const o = e.tokenised.match(t);
|
|
@@ -6336,7 +6336,7 @@ function ef(e) {
|
|
|
6336
6336
|
return (s) => {
|
|
6337
6337
|
let a = i;
|
|
6338
6338
|
for (let l = 0; l < o; l++)
|
|
6339
|
-
l < r ? a = a.replace(Yc.token, s[l]) : l < r + n ? a = a.replace(Jc.token,
|
|
6339
|
+
l < r ? a = a.replace(Yc.token, s[l]) : l < r + n ? a = a.replace(Jc.token, ie.transform(s[l])) : a = a.replace(Zc.token, sn(s[l]));
|
|
6340
6340
|
return a;
|
|
6341
6341
|
};
|
|
6342
6342
|
}
|
|
@@ -6345,14 +6345,14 @@ function p0(e) {
|
|
|
6345
6345
|
const t = Qc(e);
|
|
6346
6346
|
return ef(e)(t.map(h0));
|
|
6347
6347
|
}
|
|
6348
|
-
const
|
|
6348
|
+
const lt = {
|
|
6349
6349
|
test: d0,
|
|
6350
6350
|
parse: Qc,
|
|
6351
6351
|
createTransformer: ef,
|
|
6352
6352
|
getAnimatableNone: p0
|
|
6353
6353
|
}, tf = (e, t) => (n) => `${n > 0 ? t : e}`;
|
|
6354
6354
|
function nf(e, t) {
|
|
6355
|
-
return typeof e == "number" ? (n) =>
|
|
6355
|
+
return typeof e == "number" ? (n) => W(e, t, n) : ie.test(e) ? Kc(e, t) : e.startsWith("var(") ? tf(e, t) : of(e, t);
|
|
6356
6356
|
}
|
|
6357
6357
|
const rf = (e, t) => {
|
|
6358
6358
|
const n = [...e], r = n.length, i = e.map((o, s) => nf(o, t[s]));
|
|
@@ -6371,14 +6371,14 @@ const rf = (e, t) => {
|
|
|
6371
6371
|
return n;
|
|
6372
6372
|
};
|
|
6373
6373
|
}, of = (e, t) => {
|
|
6374
|
-
const n =
|
|
6375
|
-
return r.numVars === i.numVars && r.numColors === i.numColors && r.numNumbers >= i.numNumbers ?
|
|
6374
|
+
const n = lt.createTransformer(t), r = gr(e), i = gr(t);
|
|
6375
|
+
return r.numVars === i.numVars && r.numColors === i.numColors && r.numNumbers >= i.numNumbers ? ot(rf(r.values, i.values), n) : tf(e, t);
|
|
6376
6376
|
}, gn = (e, t, n) => {
|
|
6377
6377
|
const r = t - e;
|
|
6378
6378
|
return r === 0 ? 1 : (n - e) / r;
|
|
6379
|
-
}, Ea = (e, t) => (n) =>
|
|
6379
|
+
}, Ea = (e, t) => (n) => W(e, t, n);
|
|
6380
6380
|
function g0(e) {
|
|
6381
|
-
return typeof e == "number" ? Ea : typeof e == "string" ?
|
|
6381
|
+
return typeof e == "number" ? Ea : typeof e == "string" ? ie.test(e) ? Kc : of : Array.isArray(e) ? rf : typeof e == "object" ? m0 : Ea;
|
|
6382
6382
|
}
|
|
6383
6383
|
function y0(e, t, n) {
|
|
6384
6384
|
const r = [], i = n || g0(e[0]), o = e.length - 1;
|
|
@@ -6386,7 +6386,7 @@ function y0(e, t, n) {
|
|
|
6386
6386
|
let a = i(e[s], e[s + 1]);
|
|
6387
6387
|
if (t) {
|
|
6388
6388
|
const l = Array.isArray(t) ? t[s] || G : t;
|
|
6389
|
-
a =
|
|
6389
|
+
a = ot(l, a);
|
|
6390
6390
|
}
|
|
6391
6391
|
r.push(a);
|
|
6392
6392
|
}
|
|
@@ -6405,13 +6405,13 @@ function sf(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
|
6405
6405
|
const c = gn(e[f], e[f + 1], u);
|
|
6406
6406
|
return s[f](c);
|
|
6407
6407
|
};
|
|
6408
|
-
return n ? (u) => l(
|
|
6408
|
+
return n ? (u) => l(at(e[0], e[o - 1], u)) : l;
|
|
6409
6409
|
}
|
|
6410
6410
|
function v0(e, t) {
|
|
6411
6411
|
const n = e[e.length - 1];
|
|
6412
6412
|
for (let r = 1; r <= t; r++) {
|
|
6413
6413
|
const i = gn(0, t, r);
|
|
6414
|
-
e.push(
|
|
6414
|
+
e.push(W(n, 1, i));
|
|
6415
6415
|
}
|
|
6416
6416
|
}
|
|
6417
6417
|
function x0(e) {
|
|
@@ -6452,9 +6452,9 @@ function lf(e, t, n) {
|
|
|
6452
6452
|
const gi = 1e-3, E0 = 0.01, Ca = 10, C0 = 0.05, k0 = 1;
|
|
6453
6453
|
function T0({ duration: e = 800, bounce: t = 0.25, velocity: n = 0, mass: r = 1 }) {
|
|
6454
6454
|
let i, o;
|
|
6455
|
-
Gy(e <=
|
|
6455
|
+
Gy(e <= st(Ca));
|
|
6456
6456
|
let s = 1 - t;
|
|
6457
|
-
s =
|
|
6457
|
+
s = at(C0, k0, s), e = at(E0, Ca, We(e)), s < 1 ? (i = (u) => {
|
|
6458
6458
|
const f = u * s, c = f * e, d = f - n, h = Hi(u, s), p = Math.exp(-c);
|
|
6459
6459
|
return gi - d / h * p;
|
|
6460
6460
|
}, o = (u) => {
|
|
@@ -6468,7 +6468,7 @@ function T0({ duration: e = 800, bounce: t = 0.25, velocity: n = 0, mass: r = 1
|
|
|
6468
6468
|
return f * c;
|
|
6469
6469
|
});
|
|
6470
6470
|
const a = 5 / e, l = R0(i, o, a);
|
|
6471
|
-
if (e =
|
|
6471
|
+
if (e = st(e), isNaN(l))
|
|
6472
6472
|
return {
|
|
6473
6473
|
stiffness: 100,
|
|
6474
6474
|
damping: 10,
|
|
@@ -6519,8 +6519,8 @@ function _0(e) {
|
|
|
6519
6519
|
function uf({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {
|
|
6520
6520
|
const i = e[0], o = e[e.length - 1], s = { done: !1, value: i }, { stiffness: a, damping: l, mass: u, duration: f, velocity: c, isResolvedFromDuration: d } = _0({
|
|
6521
6521
|
...r,
|
|
6522
|
-
velocity: -
|
|
6523
|
-
}), h = c || 0, p = l / (2 * Math.sqrt(a * u)), m = o - i, g =
|
|
6522
|
+
velocity: -We(r.velocity || 0)
|
|
6523
|
+
}), h = c || 0, p = l / (2 * Math.sqrt(a * u)), m = o - i, g = We(Math.sqrt(a / u)), y = Math.abs(m) < 5;
|
|
6524
6524
|
n || (n = y ? 0.01 : 2), t || (t = y ? 5e-3 : 0.5);
|
|
6525
6525
|
let b;
|
|
6526
6526
|
if (p < 1) {
|
|
@@ -6534,8 +6534,8 @@ function uf({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {
|
|
|
6534
6534
|
else {
|
|
6535
6535
|
const v = g * Math.sqrt(p * p - 1);
|
|
6536
6536
|
b = (S) => {
|
|
6537
|
-
const E = Math.exp(-p * g * S),
|
|
6538
|
-
return o - E * ((h + p * g * m) * Math.sinh(
|
|
6537
|
+
const E = Math.exp(-p * g * S), k = Math.min(v * S, 300);
|
|
6538
|
+
return o - E * ((h + p * g * m) * Math.sinh(k) + v * m * Math.cosh(k)) / v;
|
|
6539
6539
|
};
|
|
6540
6540
|
}
|
|
6541
6541
|
return {
|
|
@@ -6547,8 +6547,8 @@ function uf({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {
|
|
|
6547
6547
|
else {
|
|
6548
6548
|
let E = h;
|
|
6549
6549
|
v !== 0 && (p < 1 ? E = lf(b, v, S) : E = 0);
|
|
6550
|
-
const
|
|
6551
|
-
s.done =
|
|
6550
|
+
const k = Math.abs(E) <= n, P = Math.abs(o - S) <= t;
|
|
6551
|
+
s.done = k && P;
|
|
6552
6552
|
}
|
|
6553
6553
|
return s.value = s.done ? o : S, s;
|
|
6554
6554
|
}
|
|
@@ -6558,30 +6558,30 @@ function Ta({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
6558
6558
|
const c = e[0], d = {
|
|
6559
6559
|
done: !1,
|
|
6560
6560
|
value: c
|
|
6561
|
-
}, h = (
|
|
6561
|
+
}, h = (T) => a !== void 0 && T < a || l !== void 0 && T > l, p = (T) => a === void 0 ? l : l === void 0 || Math.abs(a - T) < Math.abs(l - T) ? a : l;
|
|
6562
6562
|
let m = n * t;
|
|
6563
6563
|
const g = c + m, y = s === void 0 ? g : s(g);
|
|
6564
6564
|
y !== g && (m = y - c);
|
|
6565
|
-
const b = (
|
|
6566
|
-
const M = b(
|
|
6565
|
+
const b = (T) => -m * Math.exp(-T / r), v = (T) => y + b(T), S = (T) => {
|
|
6566
|
+
const M = b(T), X = v(T);
|
|
6567
6567
|
d.done = Math.abs(M) <= u, d.value = d.done ? y : X;
|
|
6568
6568
|
};
|
|
6569
|
-
let E,
|
|
6570
|
-
const
|
|
6571
|
-
h(d.value) && (E =
|
|
6569
|
+
let E, k;
|
|
6570
|
+
const P = (T) => {
|
|
6571
|
+
h(d.value) && (E = T, k = uf({
|
|
6572
6572
|
keyframes: [d.value, p(d.value)],
|
|
6573
|
-
velocity: lf(v,
|
|
6573
|
+
velocity: lf(v, T, d.value),
|
|
6574
6574
|
damping: i,
|
|
6575
6575
|
stiffness: o,
|
|
6576
6576
|
restDelta: u,
|
|
6577
6577
|
restSpeed: f
|
|
6578
6578
|
}));
|
|
6579
6579
|
};
|
|
6580
|
-
return
|
|
6580
|
+
return P(0), {
|
|
6581
6581
|
calculatedDuration: null,
|
|
6582
|
-
next: (
|
|
6582
|
+
next: (T) => {
|
|
6583
6583
|
let M = !1;
|
|
6584
|
-
return !
|
|
6584
|
+
return !k && E === void 0 && (M = !0, S(T), P(T)), E !== void 0 && T > E ? k.next(T - E) : (!M && S(T), d);
|
|
6585
6585
|
}
|
|
6586
6586
|
};
|
|
6587
6587
|
}
|
|
@@ -6589,7 +6589,7 @@ const M0 = (e) => {
|
|
|
6589
6589
|
const t = ({ timestamp: n }) => e(n);
|
|
6590
6590
|
return {
|
|
6591
6591
|
start: () => $.update(t, !0),
|
|
6592
|
-
stop: () =>
|
|
6592
|
+
stop: () => Ge(t),
|
|
6593
6593
|
/**
|
|
6594
6594
|
* If we're processing this frame we can use the
|
|
6595
6595
|
* framelocked timestamp to keep things in sync.
|
|
@@ -6627,89 +6627,89 @@ function vr({ autoplay: e = !0, delay: t = 0, driver: n = M0, keyframes: r, type
|
|
|
6627
6627
|
clamp: !1
|
|
6628
6628
|
}), r = [0, 100]);
|
|
6629
6629
|
const E = v({ ...d, keyframes: r });
|
|
6630
|
-
let
|
|
6631
|
-
a === "mirror" && (
|
|
6630
|
+
let k;
|
|
6631
|
+
a === "mirror" && (k = v({
|
|
6632
6632
|
...d,
|
|
6633
6633
|
keyframes: [...r].reverse(),
|
|
6634
6634
|
velocity: -(d.velocity || 0)
|
|
6635
6635
|
}));
|
|
6636
|
-
let
|
|
6636
|
+
let P = "idle", T = null, M = null, X = null;
|
|
6637
6637
|
E.calculatedDuration === null && o && (E.calculatedDuration = Ra(E));
|
|
6638
|
-
const { calculatedDuration:
|
|
6639
|
-
let
|
|
6640
|
-
|
|
6641
|
-
let
|
|
6642
|
-
const
|
|
6638
|
+
const { calculatedDuration: H } = E;
|
|
6639
|
+
let U = 1 / 0, K = 1 / 0;
|
|
6640
|
+
H !== null && (U = H + s, K = U * (o + 1) - s);
|
|
6641
|
+
let Y = 0;
|
|
6642
|
+
const de = (I) => {
|
|
6643
6643
|
if (M === null)
|
|
6644
6644
|
return;
|
|
6645
|
-
h > 0 && (M = Math.min(M, I)), h < 0 && (M = Math.min(I - K / h, M)),
|
|
6646
|
-
const Ct =
|
|
6647
|
-
|
|
6648
|
-
let Hr =
|
|
6645
|
+
h > 0 && (M = Math.min(M, I)), h < 0 && (M = Math.min(I - K / h, M)), T !== null ? Y = T : Y = Math.round(I - M) * h;
|
|
6646
|
+
const Ct = Y - t * (h >= 0 ? 1 : -1), kt = h >= 0 ? Ct < 0 : Ct > K;
|
|
6647
|
+
Y = Math.max(Ct, 0), P === "finished" && T === null && (Y = K);
|
|
6648
|
+
let Hr = Y, ct = E;
|
|
6649
6649
|
if (o) {
|
|
6650
|
-
const Ut = Math.min(
|
|
6651
|
-
let
|
|
6652
|
-
!
|
|
6653
|
-
}
|
|
6654
|
-
const
|
|
6655
|
-
S && (
|
|
6656
|
-
let { done: Tt } =
|
|
6657
|
-
!kt &&
|
|
6658
|
-
const Pt =
|
|
6659
|
-
return c && c(
|
|
6650
|
+
const Ut = Math.min(Y, K) / U;
|
|
6651
|
+
let ft = Math.floor(Ut), Te = Ut % 1;
|
|
6652
|
+
!Te && Ut >= 1 && (Te = 1), Te === 1 && ft--, ft = Math.min(ft, o + 1), !!(ft % 2) && (a === "reverse" ? (Te = 1 - Te, s && (Te -= s / U)) : a === "mirror" && (ct = k)), Hr = at(0, 1, Te) * U;
|
|
6653
|
+
}
|
|
6654
|
+
const Ie = kt ? { done: !1, value: r[0] } : ct.next(Hr);
|
|
6655
|
+
S && (Ie.value = S(Ie.value));
|
|
6656
|
+
let { done: Tt } = Ie;
|
|
6657
|
+
!kt && H !== null && (Tt = h >= 0 ? Y >= K : Y <= 0);
|
|
6658
|
+
const Pt = T === null && (P === "finished" || P === "running" && Tt);
|
|
6659
|
+
return c && c(Ie.value), Pt && z(), Ie;
|
|
6660
6660
|
}, q = () => {
|
|
6661
6661
|
b && b.stop(), b = void 0;
|
|
6662
|
-
},
|
|
6663
|
-
|
|
6664
|
-
},
|
|
6665
|
-
|
|
6666
|
-
},
|
|
6662
|
+
}, he = () => {
|
|
6663
|
+
P = "idle", q(), m(), y(), M = X = null;
|
|
6664
|
+
}, z = () => {
|
|
6665
|
+
P = "finished", f && f(), q(), m();
|
|
6666
|
+
}, pe = () => {
|
|
6667
6667
|
if (p)
|
|
6668
6668
|
return;
|
|
6669
|
-
b || (b = n(
|
|
6669
|
+
b || (b = n(de));
|
|
6670
6670
|
const I = b.now();
|
|
6671
|
-
l && l(),
|
|
6671
|
+
l && l(), T !== null ? M = I - T : (!M || P === "finished") && (M = I), P === "finished" && y(), X = M, T = null, P = "running", b.start();
|
|
6672
6672
|
};
|
|
6673
|
-
e &&
|
|
6674
|
-
const
|
|
6673
|
+
e && pe();
|
|
6674
|
+
const je = {
|
|
6675
6675
|
then(I, Ct) {
|
|
6676
6676
|
return g.then(I, Ct);
|
|
6677
6677
|
},
|
|
6678
6678
|
get time() {
|
|
6679
|
-
return
|
|
6679
|
+
return We(Y);
|
|
6680
6680
|
},
|
|
6681
6681
|
set time(I) {
|
|
6682
|
-
I =
|
|
6682
|
+
I = st(I), Y = I, T !== null || !b || h === 0 ? T = I : M = b.now() - I / h;
|
|
6683
6683
|
},
|
|
6684
6684
|
get duration() {
|
|
6685
6685
|
const I = E.calculatedDuration === null ? Ra(E) : E.calculatedDuration;
|
|
6686
|
-
return
|
|
6686
|
+
return We(I);
|
|
6687
6687
|
},
|
|
6688
6688
|
get speed() {
|
|
6689
6689
|
return h;
|
|
6690
6690
|
},
|
|
6691
6691
|
set speed(I) {
|
|
6692
|
-
I === h || !b || (h = I,
|
|
6692
|
+
I === h || !b || (h = I, je.time = We(Y));
|
|
6693
6693
|
},
|
|
6694
6694
|
get state() {
|
|
6695
|
-
return
|
|
6695
|
+
return P;
|
|
6696
6696
|
},
|
|
6697
|
-
play:
|
|
6697
|
+
play: pe,
|
|
6698
6698
|
pause: () => {
|
|
6699
|
-
|
|
6699
|
+
P = "paused", T = Y;
|
|
6700
6700
|
},
|
|
6701
6701
|
stop: () => {
|
|
6702
|
-
p = !0,
|
|
6702
|
+
p = !0, P !== "idle" && (P = "idle", u && u(), he());
|
|
6703
6703
|
},
|
|
6704
6704
|
cancel: () => {
|
|
6705
|
-
X !== null &&
|
|
6705
|
+
X !== null && de(X), he();
|
|
6706
6706
|
},
|
|
6707
6707
|
complete: () => {
|
|
6708
|
-
|
|
6708
|
+
P = "finished";
|
|
6709
6709
|
},
|
|
6710
|
-
sample: (I) => (M = 0,
|
|
6710
|
+
sample: (I) => (M = 0, de(I))
|
|
6711
6711
|
};
|
|
6712
|
-
return
|
|
6712
|
+
return je;
|
|
6713
6713
|
}
|
|
6714
6714
|
function F0(e) {
|
|
6715
6715
|
let t;
|
|
@@ -6741,10 +6741,10 @@ function N0(e, t, { onUpdate: n, onComplete: r, ...i }) {
|
|
|
6741
6741
|
});
|
|
6742
6742
|
let S = { done: !1, value: c[0] };
|
|
6743
6743
|
const E = [];
|
|
6744
|
-
let
|
|
6745
|
-
for (; !S.done &&
|
|
6746
|
-
S = v.sample(
|
|
6747
|
-
p = void 0, c = E, d =
|
|
6744
|
+
let k = 0;
|
|
6745
|
+
for (; !S.done && k < j0; )
|
|
6746
|
+
S = v.sample(k), E.push(S.value), k += Fn;
|
|
6747
|
+
p = void 0, c = E, d = k - Fn, h = "linear";
|
|
6748
6748
|
}
|
|
6749
6749
|
const m = Ky(e.owner.current, t, c, {
|
|
6750
6750
|
...i,
|
|
@@ -6774,10 +6774,10 @@ function N0(e, t, { onUpdate: n, onComplete: r, ...i }) {
|
|
|
6774
6774
|
return m.timeline = v, m.onfinish = null, G;
|
|
6775
6775
|
},
|
|
6776
6776
|
get time() {
|
|
6777
|
-
return
|
|
6777
|
+
return We(m.currentTime || 0);
|
|
6778
6778
|
},
|
|
6779
6779
|
set time(v) {
|
|
6780
|
-
m.currentTime =
|
|
6780
|
+
m.currentTime = st(v);
|
|
6781
6781
|
},
|
|
6782
6782
|
get speed() {
|
|
6783
6783
|
return m.playbackRate;
|
|
@@ -6786,10 +6786,10 @@ function N0(e, t, { onUpdate: n, onComplete: r, ...i }) {
|
|
|
6786
6786
|
m.playbackRate = v;
|
|
6787
6787
|
},
|
|
6788
6788
|
get duration() {
|
|
6789
|
-
return
|
|
6789
|
+
return We(d);
|
|
6790
6790
|
},
|
|
6791
6791
|
play: () => {
|
|
6792
|
-
s || (m.play(),
|
|
6792
|
+
s || (m.play(), Ge(g));
|
|
6793
6793
|
},
|
|
6794
6794
|
pause: () => m.pause(),
|
|
6795
6795
|
stop: () => {
|
|
@@ -6847,8 +6847,8 @@ const $0 = {
|
|
|
6847
6847
|
type: "keyframes",
|
|
6848
6848
|
ease: [0.25, 0.1, 0.35, 1],
|
|
6849
6849
|
duration: 0.3
|
|
6850
|
-
}, H0 = (e, { keyframes: t }) => t.length > 2 ? U0 :
|
|
6851
|
-
(
|
|
6850
|
+
}, H0 = (e, { keyframes: t }) => t.length > 2 ? U0 : St.has(e) ? e.startsWith("scale") ? z0(t[1]) : $0 : W0, qi = (e, t) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
|
|
6851
|
+
(lt.test(t) || t === "0") && // And it contains numbers and/or colors
|
|
6852
6852
|
!t.startsWith("url(")), q0 = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
|
|
6853
6853
|
function G0(e) {
|
|
6854
6854
|
const [t, n] = e.slice(0, -1).split("(");
|
|
@@ -6862,7 +6862,7 @@ function G0(e) {
|
|
|
6862
6862
|
return r !== n && (o *= 100), t + "(" + o + i + ")";
|
|
6863
6863
|
}
|
|
6864
6864
|
const X0 = /([a-z-]*)\(.*?\)/g, Gi = {
|
|
6865
|
-
...
|
|
6865
|
+
...lt,
|
|
6866
6866
|
getAnimatableNone: (e) => {
|
|
6867
6867
|
const t = e.match(X0);
|
|
6868
6868
|
return t ? t.map(G0).join(" ") : e;
|
|
@@ -6870,23 +6870,23 @@ const X0 = /([a-z-]*)\(.*?\)/g, Gi = {
|
|
|
6870
6870
|
}, K0 = {
|
|
6871
6871
|
...Ec,
|
|
6872
6872
|
// Color props
|
|
6873
|
-
color:
|
|
6874
|
-
backgroundColor:
|
|
6875
|
-
outlineColor:
|
|
6876
|
-
fill:
|
|
6877
|
-
stroke:
|
|
6873
|
+
color: ie,
|
|
6874
|
+
backgroundColor: ie,
|
|
6875
|
+
outlineColor: ie,
|
|
6876
|
+
fill: ie,
|
|
6877
|
+
stroke: ie,
|
|
6878
6878
|
// Border props
|
|
6879
|
-
borderColor:
|
|
6880
|
-
borderTopColor:
|
|
6881
|
-
borderRightColor:
|
|
6882
|
-
borderBottomColor:
|
|
6883
|
-
borderLeftColor:
|
|
6879
|
+
borderColor: ie,
|
|
6880
|
+
borderTopColor: ie,
|
|
6881
|
+
borderRightColor: ie,
|
|
6882
|
+
borderBottomColor: ie,
|
|
6883
|
+
borderLeftColor: ie,
|
|
6884
6884
|
filter: Gi,
|
|
6885
6885
|
WebkitFilter: Gi
|
|
6886
6886
|
}, Wo = (e) => K0[e];
|
|
6887
6887
|
function cf(e, t) {
|
|
6888
6888
|
let n = Wo(e);
|
|
6889
|
-
return n !== Gi && (n =
|
|
6889
|
+
return n !== Gi && (n = lt), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
|
|
6890
6890
|
}
|
|
6891
6891
|
const ff = (e) => /^0[^.\s]+$/.test(e);
|
|
6892
6892
|
function Y0(e) {
|
|
@@ -6922,7 +6922,7 @@ const Q0 = {
|
|
|
6922
6922
|
}, qo = (e, t, n, r = {}) => (i) => {
|
|
6923
6923
|
const o = Ho(r, e) || {}, s = o.delay || r.delay || 0;
|
|
6924
6924
|
let { elapsed: a = 0 } = r;
|
|
6925
|
-
a = a -
|
|
6925
|
+
a = a - st(s);
|
|
6926
6926
|
const l = J0(t, e, n, o), u = l[0], f = l[l.length - 1], c = qi(e, u), d = qi(e, f);
|
|
6927
6927
|
let h = {
|
|
6928
6928
|
keyframes: l,
|
|
@@ -6940,7 +6940,7 @@ const Q0 = {
|
|
|
6940
6940
|
if (Z0(o) || (h = {
|
|
6941
6941
|
...h,
|
|
6942
6942
|
...H0(e, h)
|
|
6943
|
-
}), h.duration && (h.duration =
|
|
6943
|
+
}), h.duration && (h.duration = st(h.duration)), h.repeatDelay && (h.repeatDelay = st(h.repeatDelay)), !c || !d || Xy.current || o.type === !1 || Q0.skipAnimations)
|
|
6944
6944
|
return B0(h);
|
|
6945
6945
|
if (
|
|
6946
6946
|
/**
|
|
@@ -6961,7 +6961,7 @@ const Q0 = {
|
|
|
6961
6961
|
return vr(h);
|
|
6962
6962
|
};
|
|
6963
6963
|
function xr(e) {
|
|
6964
|
-
return !!(
|
|
6964
|
+
return !!(fe(e) && e.add);
|
|
6965
6965
|
}
|
|
6966
6966
|
const df = (e) => /^\-?\d*\.?\d+$/.test(e);
|
|
6967
6967
|
function Go(e, t) {
|
|
@@ -7193,7 +7193,7 @@ function jt(e, t) {
|
|
|
7193
7193
|
const hf = (e) => (t) => t.test(e), nv = {
|
|
7194
7194
|
test: (e) => e === "auto",
|
|
7195
7195
|
parse: (e) => e
|
|
7196
|
-
}, pf = [
|
|
7196
|
+
}, pf = [Et, O, Le, et, ly, ay, nv], qt = (e) => pf.find(hf(e)), rv = [...pf, ie, lt], iv = (e) => rv.find(hf(e));
|
|
7197
7197
|
function ov(e, t, n) {
|
|
7198
7198
|
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, jt(n));
|
|
7199
7199
|
}
|
|
@@ -7213,7 +7213,7 @@ function av(e, t, n) {
|
|
|
7213
7213
|
for (let a = 0; a < s; a++) {
|
|
7214
7214
|
const l = o[a], u = t[l];
|
|
7215
7215
|
let f = null;
|
|
7216
|
-
Array.isArray(u) && (f = u[0]), f === null && (f = (i = (r = n[l]) !== null && r !== void 0 ? r : e.readValue(l)) !== null && i !== void 0 ? i : t[l]), f != null && (typeof f == "string" && (df(f) || ff(f)) ? f = parseFloat(f) : !iv(f) &&
|
|
7216
|
+
Array.isArray(u) && (f = u[0]), f === null && (f = (i = (r = n[l]) !== null && r !== void 0 ? r : e.readValue(l)) !== null && i !== void 0 ? i : t[l]), f != null && (typeof f == "string" && (df(f) || ff(f)) ? f = parseFloat(f) : !iv(f) && lt.test(u) && (f = cf(l, u)), e.addValue(l, jt(f, { owner: e })), n[l] === void 0 && (n[l] = f), f !== null && e.setBaseTarget(l, f));
|
|
7217
7217
|
}
|
|
7218
7218
|
}
|
|
7219
7219
|
function lv(e, t) {
|
|
@@ -7269,7 +7269,7 @@ function mf(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
7269
7269
|
let m = !p.isHandoff && !fv(d, h);
|
|
7270
7270
|
if (p.type === "spring" && (d.getVelocity() || p.velocity) && (m = !1), d.animation && (m = !1), m)
|
|
7271
7271
|
continue;
|
|
7272
|
-
d.start(qo(c, d, h, e.shouldReduceMotion &&
|
|
7272
|
+
d.start(qo(c, d, h, e.shouldReduceMotion && St.has(c) ? { type: !1 } : p));
|
|
7273
7273
|
const g = d.animation;
|
|
7274
7274
|
xr(l) && (l.add(c), g.then(() => l.remove(c))), u.push(g);
|
|
7275
7275
|
}
|
|
@@ -7340,34 +7340,34 @@ function vv(e) {
|
|
|
7340
7340
|
const f = e.getProps(), c = e.getVariantContext(!0) || {}, d = [], h = /* @__PURE__ */ new Set();
|
|
7341
7341
|
let p = {}, m = 1 / 0;
|
|
7342
7342
|
for (let y = 0; y < gv; y++) {
|
|
7343
|
-
const b = mv[y], v = n[b], S = f[b] !== void 0 ? f[b] : c[b], E = pn(S),
|
|
7344
|
-
|
|
7345
|
-
let
|
|
7346
|
-
if (
|
|
7347
|
-
!v.isActive &&
|
|
7343
|
+
const b = mv[y], v = n[b], S = f[b] !== void 0 ? f[b] : c[b], E = pn(S), k = b === u ? v.isActive : null;
|
|
7344
|
+
k === !1 && (m = y);
|
|
7345
|
+
let P = S === c[b] && S !== f[b] && E;
|
|
7346
|
+
if (P && r && e.manuallyAnimateOnMount && (P = !1), v.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
|
|
7347
|
+
!v.isActive && k === null || // If we didn't and don't have any defined prop for this animation type
|
|
7348
7348
|
!S && !v.prevProp || // Or if the prop doesn't define an animation
|
|
7349
7349
|
Dr(S) || typeof S == "boolean")
|
|
7350
7350
|
continue;
|
|
7351
7351
|
let M = xv(v.prevProp, S) || // If we're making this variant active, we want to always make it active
|
|
7352
|
-
b === u && v.isActive && !
|
|
7352
|
+
b === u && v.isActive && !P && E || // If we removed a higher-priority variant (i is in reverse order)
|
|
7353
7353
|
y > m && E, X = !1;
|
|
7354
|
-
const
|
|
7355
|
-
let
|
|
7356
|
-
|
|
7357
|
-
const { prevResolvedValues: K = {} } = v,
|
|
7354
|
+
const H = Array.isArray(S) ? S : [S];
|
|
7355
|
+
let U = H.reduce(i, {});
|
|
7356
|
+
k === !1 && (U = {});
|
|
7357
|
+
const { prevResolvedValues: K = {} } = v, Y = {
|
|
7358
7358
|
...K,
|
|
7359
|
-
...
|
|
7360
|
-
},
|
|
7359
|
+
...U
|
|
7360
|
+
}, de = (q) => {
|
|
7361
7361
|
M = !0, h.has(q) && (X = !0, h.delete(q)), v.needsAnimating[q] = !0;
|
|
7362
7362
|
};
|
|
7363
|
-
for (const q in
|
|
7364
|
-
const
|
|
7363
|
+
for (const q in Y) {
|
|
7364
|
+
const he = U[q], z = K[q];
|
|
7365
7365
|
if (p.hasOwnProperty(q))
|
|
7366
7366
|
continue;
|
|
7367
|
-
let
|
|
7368
|
-
mr(
|
|
7367
|
+
let pe = !1;
|
|
7368
|
+
mr(he) && mr(z) ? pe = !jc(he, z) : pe = he !== z, pe ? he !== void 0 ? de(q) : h.add(q) : he !== void 0 && h.has(q) ? de(q) : v.protectedKeys[q] = !0;
|
|
7369
7369
|
}
|
|
7370
|
-
v.prevProp = S, v.prevResolvedValues =
|
|
7370
|
+
v.prevProp = S, v.prevResolvedValues = U, v.isActive && (p = { ...p, ...U }), r && e.blockInitialAnimation && (M = !1), M && (!P || X) && d.push(...H.map((q) => ({
|
|
7371
7371
|
animation: q,
|
|
7372
7372
|
options: { type: b, ...l }
|
|
7373
7373
|
})));
|
|
@@ -7405,7 +7405,7 @@ function vv(e) {
|
|
|
7405
7405
|
function xv(e, t) {
|
|
7406
7406
|
return typeof t == "string" ? t !== e : Array.isArray(t) ? !jc(t, e) : !1;
|
|
7407
7407
|
}
|
|
7408
|
-
function
|
|
7408
|
+
function dt(e = !1) {
|
|
7409
7409
|
return {
|
|
7410
7410
|
isActive: e,
|
|
7411
7411
|
protectedKeys: {},
|
|
@@ -7415,16 +7415,16 @@ function ft(e = !1) {
|
|
|
7415
7415
|
}
|
|
7416
7416
|
function bv() {
|
|
7417
7417
|
return {
|
|
7418
|
-
animate:
|
|
7419
|
-
whileInView:
|
|
7420
|
-
whileHover:
|
|
7421
|
-
whileTap:
|
|
7422
|
-
whileDrag:
|
|
7423
|
-
whileFocus:
|
|
7424
|
-
exit:
|
|
7418
|
+
animate: dt(!0),
|
|
7419
|
+
whileInView: dt(),
|
|
7420
|
+
whileHover: dt(),
|
|
7421
|
+
whileTap: dt(),
|
|
7422
|
+
whileDrag: dt(),
|
|
7423
|
+
whileFocus: dt(),
|
|
7424
|
+
exit: dt()
|
|
7425
7425
|
};
|
|
7426
7426
|
}
|
|
7427
|
-
class wv extends
|
|
7427
|
+
class wv extends ut {
|
|
7428
7428
|
/**
|
|
7429
7429
|
* We dynamically generate the AnimationState manager as it contains a reference
|
|
7430
7430
|
* to the underlying animation library. We only want to load that if we load this,
|
|
@@ -7451,7 +7451,7 @@ class wv extends lt {
|
|
|
7451
7451
|
}
|
|
7452
7452
|
}
|
|
7453
7453
|
let Sv = 0;
|
|
7454
|
-
class Ev extends
|
|
7454
|
+
class Ev extends ut {
|
|
7455
7455
|
constructor() {
|
|
7456
7456
|
super(...arguments), this.id = Sv++;
|
|
7457
7457
|
}
|
|
@@ -7510,13 +7510,13 @@ class gf {
|
|
|
7510
7510
|
const s = Nr(t), a = yi(s, this.transformPagePoint), { point: l } = a, { timestamp: u } = re;
|
|
7511
7511
|
this.history = [{ ...l, timestamp: u }];
|
|
7512
7512
|
const { onSessionStart: f } = n;
|
|
7513
|
-
f && f(t, vi(a, this.history)), this.removeListeners =
|
|
7513
|
+
f && f(t, vi(a, this.history)), this.removeListeners = ot(Ue(this.contextWindow, "pointermove", this.handlePointerMove), Ue(this.contextWindow, "pointerup", this.handlePointerUp), Ue(this.contextWindow, "pointercancel", this.handlePointerUp));
|
|
7514
7514
|
}
|
|
7515
7515
|
updateHandlers(t) {
|
|
7516
7516
|
this.handlers = t;
|
|
7517
7517
|
}
|
|
7518
7518
|
end() {
|
|
7519
|
-
this.removeListeners && this.removeListeners(),
|
|
7519
|
+
this.removeListeners && this.removeListeners(), Ge(this.updatePoint);
|
|
7520
7520
|
}
|
|
7521
7521
|
}
|
|
7522
7522
|
function yi(e, t) {
|
|
@@ -7544,11 +7544,11 @@ function Pv(e, t) {
|
|
|
7544
7544
|
return { x: 0, y: 0 };
|
|
7545
7545
|
let n = e.length - 1, r = null;
|
|
7546
7546
|
const i = yf(e);
|
|
7547
|
-
for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp >
|
|
7547
|
+
for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > st(t))); )
|
|
7548
7548
|
n--;
|
|
7549
7549
|
if (!r)
|
|
7550
7550
|
return { x: 0, y: 0 };
|
|
7551
|
-
const o =
|
|
7551
|
+
const o = We(i.timestamp - r.timestamp);
|
|
7552
7552
|
if (o === 0)
|
|
7553
7553
|
return { x: 0, y: 0 };
|
|
7554
7554
|
const s = {
|
|
@@ -7557,32 +7557,32 @@ function Pv(e, t) {
|
|
|
7557
7557
|
};
|
|
7558
7558
|
return s.x === 1 / 0 && (s.x = 0), s.y === 1 / 0 && (s.y = 0), s;
|
|
7559
7559
|
}
|
|
7560
|
-
function
|
|
7560
|
+
function Se(e) {
|
|
7561
7561
|
return e.max - e.min;
|
|
7562
7562
|
}
|
|
7563
7563
|
function Ki(e, t = 0, n = 0.01) {
|
|
7564
7564
|
return Math.abs(e - t) <= n;
|
|
7565
7565
|
}
|
|
7566
7566
|
function _a(e, t, n, r = 0.5) {
|
|
7567
|
-
e.origin = r, e.originPoint =
|
|
7567
|
+
e.origin = r, e.originPoint = W(t.min, t.max, e.origin), e.scale = Se(n) / Se(t), (Ki(e.scale, 1, 1e-4) || isNaN(e.scale)) && (e.scale = 1), e.translate = W(n.min, n.max, e.origin) - e.originPoint, (Ki(e.translate) || isNaN(e.translate)) && (e.translate = 0);
|
|
7568
7568
|
}
|
|
7569
7569
|
function an(e, t, n, r) {
|
|
7570
7570
|
_a(e.x, t.x, n.x, r ? r.originX : void 0), _a(e.y, t.y, n.y, r ? r.originY : void 0);
|
|
7571
7571
|
}
|
|
7572
7572
|
function Ma(e, t, n) {
|
|
7573
|
-
e.min = n.min + t.min, e.max = e.min +
|
|
7573
|
+
e.min = n.min + t.min, e.max = e.min + Se(t);
|
|
7574
7574
|
}
|
|
7575
7575
|
function Rv(e, t, n) {
|
|
7576
7576
|
Ma(e.x, t.x, n.x), Ma(e.y, t.y, n.y);
|
|
7577
7577
|
}
|
|
7578
7578
|
function Va(e, t, n) {
|
|
7579
|
-
e.min = t.min - n.min, e.max = e.min +
|
|
7579
|
+
e.min = t.min - n.min, e.max = e.min + Se(t);
|
|
7580
7580
|
}
|
|
7581
7581
|
function ln(e, t, n) {
|
|
7582
7582
|
Va(e.x, t.x, n.x), Va(e.y, t.y, n.y);
|
|
7583
7583
|
}
|
|
7584
7584
|
function Av(e, { min: t, max: n }, r) {
|
|
7585
|
-
return t !== void 0 && e < t ? e = r ?
|
|
7585
|
+
return t !== void 0 && e < t ? e = r ? W(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? W(n, e, r.max) : Math.min(e, n)), e;
|
|
7586
7586
|
}
|
|
7587
7587
|
function Fa(e, t, n) {
|
|
7588
7588
|
return {
|
|
@@ -7608,8 +7608,8 @@ function _v(e, t) {
|
|
|
7608
7608
|
}
|
|
7609
7609
|
function Mv(e, t) {
|
|
7610
7610
|
let n = 0.5;
|
|
7611
|
-
const r =
|
|
7612
|
-
return i > r ? n = gn(t.min, t.max - r, e.min) : r > i && (n = gn(e.min, e.max - i, t.min)),
|
|
7611
|
+
const r = Se(e), i = Se(t);
|
|
7612
|
+
return i > r ? n = gn(t.min, t.max - r, e.min) : r > i && (n = gn(e.min, e.max - i, t.min)), at(0, 1, n);
|
|
7613
7613
|
}
|
|
7614
7614
|
function Vv(e, t) {
|
|
7615
7615
|
const n = {};
|
|
@@ -7639,11 +7639,11 @@ const Ia = () => ({
|
|
|
7639
7639
|
}), Ft = () => ({
|
|
7640
7640
|
x: Ia(),
|
|
7641
7641
|
y: Ia()
|
|
7642
|
-
}), Na = () => ({ min: 0, max: 0 }),
|
|
7642
|
+
}), Na = () => ({ min: 0, max: 0 }), Z = () => ({
|
|
7643
7643
|
x: Na(),
|
|
7644
7644
|
y: Na()
|
|
7645
7645
|
});
|
|
7646
|
-
function
|
|
7646
|
+
function Ce(e) {
|
|
7647
7647
|
return [e("x"), e("y")];
|
|
7648
7648
|
}
|
|
7649
7649
|
function vf({ top: e, left: t, right: n, bottom: r }) {
|
|
@@ -7672,7 +7672,7 @@ function xi(e) {
|
|
|
7672
7672
|
function Ji({ scale: e, scaleX: t, scaleY: n }) {
|
|
7673
7673
|
return !xi(e) || !xi(t) || !xi(n);
|
|
7674
7674
|
}
|
|
7675
|
-
function
|
|
7675
|
+
function ht(e) {
|
|
7676
7676
|
return Ji(e) || xf(e) || e.z || e.rotate || e.rotateX || e.rotateY;
|
|
7677
7677
|
}
|
|
7678
7678
|
function xf(e) {
|
|
@@ -7706,18 +7706,18 @@ function jv(e, t, n, r = !1) {
|
|
|
7706
7706
|
l && l.style && l.style.display === "contents" || (r && o.options.layoutScroll && o.scroll && o !== o.root && Lt(e, {
|
|
7707
7707
|
x: -o.scroll.offset.x,
|
|
7708
7708
|
y: -o.scroll.offset.y
|
|
7709
|
-
}), s && (t.x *= s.x.scale, t.y *= s.y.scale, bf(e, s)), r &&
|
|
7709
|
+
}), s && (t.x *= s.x.scale, t.y *= s.y.scale, bf(e, s)), r && ht(o.latestValues) && Lt(e, o.latestValues));
|
|
7710
7710
|
}
|
|
7711
7711
|
t.x = za(t.x), t.y = za(t.y);
|
|
7712
7712
|
}
|
|
7713
7713
|
function za(e) {
|
|
7714
7714
|
return Number.isInteger(e) || e > 1.0000000000001 || e < 0.999999999999 ? e : 1;
|
|
7715
7715
|
}
|
|
7716
|
-
function
|
|
7716
|
+
function tt(e, t) {
|
|
7717
7717
|
e.min = e.min + t, e.max = e.max + t;
|
|
7718
7718
|
}
|
|
7719
7719
|
function Ua(e, t, [n, r, i]) {
|
|
7720
|
-
const o = t[i] !== void 0 ? t[i] : 0.5, s =
|
|
7720
|
+
const o = t[i] !== void 0 ? t[i] : 0.5, s = W(e.min, e.max, o);
|
|
7721
7721
|
Zi(e, t[n], t[r], s, t.scale);
|
|
7722
7722
|
}
|
|
7723
7723
|
const Iv = ["x", "scaleX", "originX"], Nv = ["y", "scaleY", "originY"];
|
|
@@ -7729,12 +7729,12 @@ function wf(e, t) {
|
|
|
7729
7729
|
}
|
|
7730
7730
|
function Bv(e, t, n) {
|
|
7731
7731
|
const r = wf(e, n), { scroll: i } = t;
|
|
7732
|
-
return i && (
|
|
7732
|
+
return i && (tt(r.x, i.offset.x), tt(r.y, i.offset.y)), r;
|
|
7733
7733
|
}
|
|
7734
7734
|
const Sf = ({ current: e }) => e ? e.ownerDocument.defaultView : null, $v = /* @__PURE__ */ new WeakMap();
|
|
7735
7735
|
class zv {
|
|
7736
7736
|
constructor(t) {
|
|
7737
|
-
this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic =
|
|
7737
|
+
this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = Z(), this.visualElement = t;
|
|
7738
7738
|
}
|
|
7739
7739
|
start(t, { snapToCursor: n = !1 } = {}) {
|
|
7740
7740
|
const { presenceContext: r } = this.visualElement;
|
|
@@ -7747,13 +7747,13 @@ class zv {
|
|
|
7747
7747
|
const { drag: d, dragPropagation: h, onDragStart: p } = this.getProps();
|
|
7748
7748
|
if (d && !h && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = Fc(d), !this.openGlobalLock))
|
|
7749
7749
|
return;
|
|
7750
|
-
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0),
|
|
7750
|
+
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), Ce((g) => {
|
|
7751
7751
|
let y = this.getAxisMotionValue(g).get() || 0;
|
|
7752
|
-
if (
|
|
7752
|
+
if (Le.test(y)) {
|
|
7753
7753
|
const { projection: b } = this.visualElement;
|
|
7754
7754
|
if (b && b.layout) {
|
|
7755
7755
|
const v = b.layout.layoutBox[g];
|
|
7756
|
-
v && (y =
|
|
7756
|
+
v && (y = Se(v) * (parseFloat(y) / 100));
|
|
7757
7757
|
}
|
|
7758
7758
|
}
|
|
7759
7759
|
this.originPoint[g] = y;
|
|
@@ -7770,7 +7770,7 @@ class zv {
|
|
|
7770
7770
|
return;
|
|
7771
7771
|
}
|
|
7772
7772
|
this.updateAxis("x", c.point, g), this.updateAxis("y", c.point, g), this.visualElement.render(), m && m(f, c);
|
|
7773
|
-
}, a = (f, c) => this.stop(f, c), l = () =>
|
|
7773
|
+
}, a = (f, c) => this.stop(f, c), l = () => Ce((f) => {
|
|
7774
7774
|
var c;
|
|
7775
7775
|
return this.getAnimationState(f) === "paused" && ((c = this.getAxisMotionValue(f).animation) === null || c === void 0 ? void 0 : c.play());
|
|
7776
7776
|
}), { dragSnapToOrigin: u } = this.getProps();
|
|
@@ -7813,7 +7813,7 @@ class zv {
|
|
|
7813
7813
|
resolveConstraints() {
|
|
7814
7814
|
var t;
|
|
7815
7815
|
const { dragConstraints: n, dragElastic: r } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (t = this.visualElement.projection) === null || t === void 0 ? void 0 : t.layout, o = this.constraints;
|
|
7816
|
-
n && Mt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = Ov(i.layoutBox, n) : this.constraints = !1, this.elastic = Fv(r), o !== this.constraints && i && this.constraints && !this.hasMutatedConstraints &&
|
|
7816
|
+
n && Mt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = Ov(i.layoutBox, n) : this.constraints = !1, this.elastic = Fv(r), o !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && Ce((s) => {
|
|
7817
7817
|
this.getAxisMotionValue(s) && (this.constraints[s] = Vv(i.layoutBox[s], this.constraints[s]));
|
|
7818
7818
|
});
|
|
7819
7819
|
}
|
|
@@ -7833,7 +7833,7 @@ class zv {
|
|
|
7833
7833
|
return s;
|
|
7834
7834
|
}
|
|
7835
7835
|
startAnimation(t) {
|
|
7836
|
-
const { drag: n, dragMomentum: r, dragElastic: i, dragTransition: o, dragSnapToOrigin: s, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, u =
|
|
7836
|
+
const { drag: n, dragMomentum: r, dragElastic: i, dragTransition: o, dragSnapToOrigin: s, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, u = Ce((f) => {
|
|
7837
7837
|
if (!Ln(f, n, this.currentDirection))
|
|
7838
7838
|
return;
|
|
7839
7839
|
let c = l && l[f] || {};
|
|
@@ -7858,10 +7858,10 @@ class zv {
|
|
|
7858
7858
|
return r.start(qo(t, r, 0, n));
|
|
7859
7859
|
}
|
|
7860
7860
|
stopAnimation() {
|
|
7861
|
-
|
|
7861
|
+
Ce((t) => this.getAxisMotionValue(t).stop());
|
|
7862
7862
|
}
|
|
7863
7863
|
pauseAnimation() {
|
|
7864
|
-
|
|
7864
|
+
Ce((t) => {
|
|
7865
7865
|
var n;
|
|
7866
7866
|
return (n = this.getAxisMotionValue(t).animation) === null || n === void 0 ? void 0 : n.pause();
|
|
7867
7867
|
});
|
|
@@ -7881,14 +7881,14 @@ class zv {
|
|
|
7881
7881
|
return i || this.visualElement.getValue(t, (r.initial ? r.initial[t] : void 0) || 0);
|
|
7882
7882
|
}
|
|
7883
7883
|
snapToCursor(t) {
|
|
7884
|
-
|
|
7884
|
+
Ce((n) => {
|
|
7885
7885
|
const { drag: r } = this.getProps();
|
|
7886
7886
|
if (!Ln(n, r, this.currentDirection))
|
|
7887
7887
|
return;
|
|
7888
7888
|
const { projection: i } = this.visualElement, o = this.getAxisMotionValue(n);
|
|
7889
7889
|
if (i && i.layout) {
|
|
7890
7890
|
const { min: s, max: a } = i.layout.layoutBox[n];
|
|
7891
|
-
o.set(t[n] -
|
|
7891
|
+
o.set(t[n] - W(s, a, 0.5));
|
|
7892
7892
|
}
|
|
7893
7893
|
});
|
|
7894
7894
|
}
|
|
@@ -7905,7 +7905,7 @@ class zv {
|
|
|
7905
7905
|
return;
|
|
7906
7906
|
this.stopAnimation();
|
|
7907
7907
|
const i = { x: 0, y: 0 };
|
|
7908
|
-
|
|
7908
|
+
Ce((s) => {
|
|
7909
7909
|
const a = this.getAxisMotionValue(s);
|
|
7910
7910
|
if (a) {
|
|
7911
7911
|
const l = a.get();
|
|
@@ -7913,18 +7913,18 @@ class zv {
|
|
|
7913
7913
|
}
|
|
7914
7914
|
});
|
|
7915
7915
|
const { transformTemplate: o } = this.visualElement.getProps();
|
|
7916
|
-
this.visualElement.current.style.transform = o ? o({}, "") : "none", r.root && r.root.updateScroll(), r.updateLayout(), this.resolveConstraints(),
|
|
7916
|
+
this.visualElement.current.style.transform = o ? o({}, "") : "none", r.root && r.root.updateScroll(), r.updateLayout(), this.resolveConstraints(), Ce((s) => {
|
|
7917
7917
|
if (!Ln(s, t, null))
|
|
7918
7918
|
return;
|
|
7919
7919
|
const a = this.getAxisMotionValue(s), { min: l, max: u } = this.constraints[s];
|
|
7920
|
-
a.set(
|
|
7920
|
+
a.set(W(l, u, i[s]));
|
|
7921
7921
|
});
|
|
7922
7922
|
}
|
|
7923
7923
|
addListeners() {
|
|
7924
7924
|
if (!this.visualElement.current)
|
|
7925
7925
|
return;
|
|
7926
7926
|
$v.set(this.visualElement, this);
|
|
7927
|
-
const t = this.visualElement.current, n =
|
|
7927
|
+
const t = this.visualElement.current, n = Ue(t, "pointerdown", (l) => {
|
|
7928
7928
|
const { drag: u, dragListener: f = !0 } = this.getProps();
|
|
7929
7929
|
u && f && this.start(l);
|
|
7930
7930
|
}), r = () => {
|
|
@@ -7932,8 +7932,8 @@ class zv {
|
|
|
7932
7932
|
Mt(l) && (this.constraints = this.resolveRefConstraints());
|
|
7933
7933
|
}, { projection: i } = this.visualElement, o = i.addEventListener("measure", r);
|
|
7934
7934
|
i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), r();
|
|
7935
|
-
const s =
|
|
7936
|
-
this.isDragging && u && (
|
|
7935
|
+
const s = $e(window, "resize", () => this.scalePositionWithinConstraints()), a = i.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: u }) => {
|
|
7936
|
+
this.isDragging && u && (Ce((f) => {
|
|
7937
7937
|
const c = this.getAxisMotionValue(f);
|
|
7938
7938
|
c && (this.originPoint[f] += l[f].translate, c.set(c.get() + l[f].translate));
|
|
7939
7939
|
}), this.visualElement.render());
|
|
@@ -7962,7 +7962,7 @@ function Uv(e, t = 10) {
|
|
|
7962
7962
|
let n = null;
|
|
7963
7963
|
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
|
|
7964
7964
|
}
|
|
7965
|
-
class Wv extends
|
|
7965
|
+
class Wv extends ut {
|
|
7966
7966
|
constructor(t) {
|
|
7967
7967
|
super(t), this.removeGroupControls = G, this.removeListeners = G, this.controls = new zv(t);
|
|
7968
7968
|
}
|
|
@@ -7977,7 +7977,7 @@ class Wv extends lt {
|
|
|
7977
7977
|
const Wa = (e) => (t, n) => {
|
|
7978
7978
|
e && $.update(() => e(t, n));
|
|
7979
7979
|
};
|
|
7980
|
-
class Hv extends
|
|
7980
|
+
class Hv extends ut {
|
|
7981
7981
|
constructor() {
|
|
7982
7982
|
super(...arguments), this.removePointerDownListener = G;
|
|
7983
7983
|
}
|
|
@@ -7999,7 +7999,7 @@ class Hv extends lt {
|
|
|
7999
7999
|
};
|
|
8000
8000
|
}
|
|
8001
8001
|
mount() {
|
|
8002
|
-
this.removePointerDownListener =
|
|
8002
|
+
this.removePointerDownListener = Ue(this.node.current, "pointerdown", (t) => this.onPointerDown(t));
|
|
8003
8003
|
}
|
|
8004
8004
|
update() {
|
|
8005
8005
|
this.session && this.session.updateHandlers(this.createPanHandlers());
|
|
@@ -8044,16 +8044,16 @@ const Gt = {
|
|
|
8044
8044
|
}
|
|
8045
8045
|
}, Gv = {
|
|
8046
8046
|
correct: (e, { treeScale: t, projectionDelta: n }) => {
|
|
8047
|
-
const r = e, i =
|
|
8047
|
+
const r = e, i = lt.parse(e);
|
|
8048
8048
|
if (i.length > 5)
|
|
8049
8049
|
return r;
|
|
8050
|
-
const o =
|
|
8050
|
+
const o = lt.createTransformer(e), s = typeof i[0] != "number" ? 1 : 0, a = n.x.scale * t.x, l = n.y.scale * t.y;
|
|
8051
8051
|
i[0 + s] /= a, i[1 + s] /= l;
|
|
8052
|
-
const u =
|
|
8052
|
+
const u = W(a, l, 0.5);
|
|
8053
8053
|
return typeof i[2 + s] == "number" && (i[2 + s] /= u), typeof i[3 + s] == "number" && (i[3 + s] /= u), o(i);
|
|
8054
8054
|
}
|
|
8055
8055
|
};
|
|
8056
|
-
class Xv extends
|
|
8056
|
+
class Xv extends Be.Component {
|
|
8057
8057
|
/**
|
|
8058
8058
|
* This only mounts projection nodes for components that
|
|
8059
8059
|
* need measuring, we might want to do it for all components
|
|
@@ -8095,7 +8095,7 @@ class Xv extends Ie.Component {
|
|
|
8095
8095
|
}
|
|
8096
8096
|
function Ef(e) {
|
|
8097
8097
|
const [t, n] = qv(), r = x.useContext(yc);
|
|
8098
|
-
return
|
|
8098
|
+
return Be.createElement(Xv, { ...e, layoutGroup: r, switchLayoutGroup: x.useContext(vc), isPresent: t, safeToRemove: n });
|
|
8099
8099
|
}
|
|
8100
8100
|
const Kv = {
|
|
8101
8101
|
borderRadius: {
|
|
@@ -8114,20 +8114,20 @@ const Kv = {
|
|
|
8114
8114
|
boxShadow: Gv
|
|
8115
8115
|
}, Cf = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Yv = Cf.length, qa = (e) => typeof e == "string" ? parseFloat(e) : e, Ga = (e) => typeof e == "number" || O.test(e);
|
|
8116
8116
|
function Jv(e, t, n, r, i, o) {
|
|
8117
|
-
i ? (e.opacity =
|
|
8117
|
+
i ? (e.opacity = W(
|
|
8118
8118
|
0,
|
|
8119
8119
|
// TODO Reinstate this if only child
|
|
8120
8120
|
n.opacity !== void 0 ? n.opacity : 1,
|
|
8121
8121
|
Zv(r)
|
|
8122
|
-
), e.opacityExit =
|
|
8122
|
+
), e.opacityExit = W(t.opacity !== void 0 ? t.opacity : 1, 0, Qv(r))) : o && (e.opacity = W(t.opacity !== void 0 ? t.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, r));
|
|
8123
8123
|
for (let s = 0; s < Yv; s++) {
|
|
8124
8124
|
const a = `border${Cf[s]}Radius`;
|
|
8125
8125
|
let l = Xa(t, a), u = Xa(n, a);
|
|
8126
8126
|
if (l === void 0 && u === void 0)
|
|
8127
8127
|
continue;
|
|
8128
|
-
l || (l = 0), u || (u = 0), l === 0 || u === 0 || Ga(l) === Ga(u) ? (e[a] = Math.max(
|
|
8128
|
+
l || (l = 0), u || (u = 0), l === 0 || u === 0 || Ga(l) === Ga(u) ? (e[a] = Math.max(W(qa(l), qa(u), r), 0), (Le.test(u) || Le.test(l)) && (e[a] += "%")) : e[a] = u;
|
|
8129
8129
|
}
|
|
8130
|
-
(t.rotate || n.rotate) && (e.rotate =
|
|
8130
|
+
(t.rotate || n.rotate) && (e.rotate = W(t.rotate || 0, n.rotate || 0, r));
|
|
8131
8131
|
}
|
|
8132
8132
|
function Xa(e, t) {
|
|
8133
8133
|
return e[t] !== void 0 ? e[t] : e.borderRadius;
|
|
@@ -8139,16 +8139,16 @@ function kf(e, t, n) {
|
|
|
8139
8139
|
function Ka(e, t) {
|
|
8140
8140
|
e.min = t.min, e.max = t.max;
|
|
8141
8141
|
}
|
|
8142
|
-
function
|
|
8142
|
+
function Ee(e, t) {
|
|
8143
8143
|
Ka(e.x, t.x), Ka(e.y, t.y);
|
|
8144
8144
|
}
|
|
8145
8145
|
function Ya(e, t, n, r, i) {
|
|
8146
8146
|
return e -= t, e = br(e, 1 / n, r), i !== void 0 && (e = br(e, 1 / i, r)), e;
|
|
8147
8147
|
}
|
|
8148
8148
|
function ex(e, t = 0, n = 1, r = 0.5, i, o = e, s = e) {
|
|
8149
|
-
if (
|
|
8149
|
+
if (Le.test(t) && (t = parseFloat(t), t = W(s.min, s.max, t / 100) - s.min), typeof t != "number")
|
|
8150
8150
|
return;
|
|
8151
|
-
let a =
|
|
8151
|
+
let a = W(o.min, o.max, r);
|
|
8152
8152
|
e === o && (a -= t), e.min = Ya(e.min, t, n, a, i), e.max = Ya(e.max, t, n, a, i);
|
|
8153
8153
|
}
|
|
8154
8154
|
function Ja(e, t, [n, r, i], o, s) {
|
|
@@ -8171,7 +8171,7 @@ function Pf(e, t) {
|
|
|
8171
8171
|
return Math.round(e.x.min) === Math.round(t.x.min) && Math.round(e.x.max) === Math.round(t.x.max) && Math.round(e.y.min) === Math.round(t.y.min) && Math.round(e.y.max) === Math.round(t.y.max);
|
|
8172
8172
|
}
|
|
8173
8173
|
function el(e) {
|
|
8174
|
-
return
|
|
8174
|
+
return Se(e.x) / Se(e.y);
|
|
8175
8175
|
}
|
|
8176
8176
|
class ix {
|
|
8177
8177
|
constructor() {
|
|
@@ -8255,9 +8255,9 @@ class sx {
|
|
|
8255
8255
|
function ax(e, t) {
|
|
8256
8256
|
const n = performance.now(), r = ({ timestamp: i }) => {
|
|
8257
8257
|
const o = i - n;
|
|
8258
|
-
o >= t && (
|
|
8258
|
+
o >= t && (Ge(r), e(o - t));
|
|
8259
8259
|
};
|
|
8260
|
-
return $.read(r, !0), () =>
|
|
8260
|
+
return $.read(r, !0), () => Ge(r);
|
|
8261
8261
|
}
|
|
8262
8262
|
function lx(e) {
|
|
8263
8263
|
window.MotionDebug && window.MotionDebug.record(e);
|
|
@@ -8266,12 +8266,12 @@ function ux(e) {
|
|
|
8266
8266
|
return e instanceof SVGElement && e.tagName !== "svg";
|
|
8267
8267
|
}
|
|
8268
8268
|
function cx(e, t, n) {
|
|
8269
|
-
const r =
|
|
8269
|
+
const r = fe(e) ? e : jt(e);
|
|
8270
8270
|
return r.start(qo("", r, t, n)), r.animation;
|
|
8271
8271
|
}
|
|
8272
8272
|
const nl = ["", "X", "Y", "Z"], fx = { visibility: "hidden" }, rl = 1e3;
|
|
8273
8273
|
let dx = 0;
|
|
8274
|
-
const
|
|
8274
|
+
const pt = {
|
|
8275
8275
|
type: "projectionFrame",
|
|
8276
8276
|
totalNodes: 0,
|
|
8277
8277
|
resolvedTargetDeltas: 0,
|
|
@@ -8283,7 +8283,7 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8283
8283
|
this.id = dx++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
|
8284
8284
|
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
8285
8285
|
}, this.updateProjection = () => {
|
|
8286
|
-
this.projectionUpdateScheduled = !1,
|
|
8286
|
+
this.projectionUpdateScheduled = !1, pt.totalNodes = pt.resolvedTargetDeltas = pt.recalculatedProjection = 0, this.nodes.forEach(mx), this.nodes.forEach(bx), this.nodes.forEach(wx), this.nodes.forEach(gx), lx(pt);
|
|
8287
8287
|
}, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = s, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
|
|
8288
8288
|
for (let l = 0; l < this.path.length; l++)
|
|
8289
8289
|
this.path[l].shouldResetTransform = !0;
|
|
@@ -8336,7 +8336,7 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8336
8336
|
unmount() {
|
|
8337
8337
|
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
|
|
8338
8338
|
const s = this.getStack();
|
|
8339
|
-
s && s.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0,
|
|
8339
|
+
s && s.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, Ge(this.updateProjection);
|
|
8340
8340
|
}
|
|
8341
8341
|
// only on the root
|
|
8342
8342
|
blockUpdate() {
|
|
@@ -8384,7 +8384,7 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8384
8384
|
}
|
|
8385
8385
|
this.isUpdating || this.nodes.forEach(vx), this.isUpdating = !1, this.nodes.forEach(xx), this.nodes.forEach(hx), this.nodes.forEach(px), this.clearAllSnapshots();
|
|
8386
8386
|
const a = performance.now();
|
|
8387
|
-
re.delta =
|
|
8387
|
+
re.delta = at(0, 1e3 / 60, a - re.timestamp), re.timestamp = a, re.isProcessing = !0, ui.update.process(re), ui.preRender.process(re), ui.render.process(re), re.isProcessing = !1;
|
|
8388
8388
|
}
|
|
8389
8389
|
didUpdate() {
|
|
8390
8390
|
this.updateScheduled || (this.updateScheduled = !0, queueMicrotask(() => this.update()));
|
|
@@ -8413,7 +8413,7 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8413
8413
|
for (let l = 0; l < this.path.length; l++)
|
|
8414
8414
|
this.path[l].updateScroll();
|
|
8415
8415
|
const s = this.layout;
|
|
8416
|
-
this.layout = this.measure(!1), this.layoutCorrected =
|
|
8416
|
+
this.layout = this.measure(!1), this.layoutCorrected = Z(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
|
|
8417
8417
|
const { visualElement: a } = this.options;
|
|
8418
8418
|
a && a.notify("LayoutMeasure", this.layout.layoutBox, s ? s.layoutBox : void 0);
|
|
8419
8419
|
}
|
|
@@ -8430,7 +8430,7 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8430
8430
|
if (!i)
|
|
8431
8431
|
return;
|
|
8432
8432
|
const s = this.isLayoutDirty || this.shouldResetTransform, a = this.projectionDelta && !Tf(this.projectionDelta), l = this.getTransformTemplate(), u = l ? l(this.latestValues, "") : void 0, f = u !== this.prevTransformTemplateValue;
|
|
8433
|
-
s && (a ||
|
|
8433
|
+
s && (a || ht(this.latestValues) || f) && (i(this.instance, u), this.shouldResetTransform = !1, this.scheduleRender());
|
|
8434
8434
|
}
|
|
8435
8435
|
measure(s = !0) {
|
|
8436
8436
|
const a = this.measurePageBox();
|
|
@@ -8446,50 +8446,50 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8446
8446
|
measurePageBox() {
|
|
8447
8447
|
const { visualElement: s } = this.options;
|
|
8448
8448
|
if (!s)
|
|
8449
|
-
return
|
|
8449
|
+
return Z();
|
|
8450
8450
|
const a = s.measureViewportBox(), { scroll: l } = this.root;
|
|
8451
|
-
return l && (
|
|
8451
|
+
return l && (tt(a.x, l.offset.x), tt(a.y, l.offset.y)), a;
|
|
8452
8452
|
}
|
|
8453
8453
|
removeElementScroll(s) {
|
|
8454
|
-
const a =
|
|
8455
|
-
|
|
8454
|
+
const a = Z();
|
|
8455
|
+
Ee(a, s);
|
|
8456
8456
|
for (let l = 0; l < this.path.length; l++) {
|
|
8457
8457
|
const u = this.path[l], { scroll: f, options: c } = u;
|
|
8458
8458
|
if (u !== this.root && f && c.layoutScroll) {
|
|
8459
8459
|
if (f.isRoot) {
|
|
8460
|
-
|
|
8460
|
+
Ee(a, s);
|
|
8461
8461
|
const { scroll: d } = this.root;
|
|
8462
|
-
d && (
|
|
8462
|
+
d && (tt(a.x, -d.offset.x), tt(a.y, -d.offset.y));
|
|
8463
8463
|
}
|
|
8464
|
-
|
|
8464
|
+
tt(a.x, f.offset.x), tt(a.y, f.offset.y);
|
|
8465
8465
|
}
|
|
8466
8466
|
}
|
|
8467
8467
|
return a;
|
|
8468
8468
|
}
|
|
8469
8469
|
applyTransform(s, a = !1) {
|
|
8470
|
-
const l =
|
|
8471
|
-
|
|
8470
|
+
const l = Z();
|
|
8471
|
+
Ee(l, s);
|
|
8472
8472
|
for (let u = 0; u < this.path.length; u++) {
|
|
8473
8473
|
const f = this.path[u];
|
|
8474
8474
|
!a && f.options.layoutScroll && f.scroll && f !== f.root && Lt(l, {
|
|
8475
8475
|
x: -f.scroll.offset.x,
|
|
8476
8476
|
y: -f.scroll.offset.y
|
|
8477
|
-
}),
|
|
8477
|
+
}), ht(f.latestValues) && Lt(l, f.latestValues);
|
|
8478
8478
|
}
|
|
8479
|
-
return
|
|
8479
|
+
return ht(this.latestValues) && Lt(l, this.latestValues), l;
|
|
8480
8480
|
}
|
|
8481
8481
|
removeTransform(s) {
|
|
8482
|
-
const a =
|
|
8483
|
-
|
|
8482
|
+
const a = Z();
|
|
8483
|
+
Ee(a, s);
|
|
8484
8484
|
for (let l = 0; l < this.path.length; l++) {
|
|
8485
8485
|
const u = this.path[l];
|
|
8486
|
-
if (!u.instance || !
|
|
8486
|
+
if (!u.instance || !ht(u.latestValues))
|
|
8487
8487
|
continue;
|
|
8488
8488
|
Ji(u.latestValues) && u.updateSnapshot();
|
|
8489
|
-
const f =
|
|
8490
|
-
|
|
8489
|
+
const f = Z(), c = u.measurePageBox();
|
|
8490
|
+
Ee(f, c), Za(a, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, f);
|
|
8491
8491
|
}
|
|
8492
|
-
return
|
|
8492
|
+
return ht(this.latestValues) && Za(a, this.latestValues), a;
|
|
8493
8493
|
}
|
|
8494
8494
|
setTargetDelta(s) {
|
|
8495
8495
|
this.targetDelta = s, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
@@ -8518,15 +8518,15 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8518
8518
|
if (!(!this.layout || !(c || d))) {
|
|
8519
8519
|
if (this.resolvedRelativeTargetAt = re.timestamp, !this.targetDelta && !this.relativeTarget) {
|
|
8520
8520
|
const h = this.getClosestProjectingParent();
|
|
8521
|
-
h && h.layout && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget =
|
|
8521
|
+
h && h.layout && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Z(), this.relativeTargetOrigin = Z(), ln(this.relativeTargetOrigin, this.layout.layoutBox, h.layout.layoutBox), Ee(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
8522
8522
|
}
|
|
8523
8523
|
if (!(!this.relativeTarget && !this.targetDelta)) {
|
|
8524
|
-
if (this.target || (this.target =
|
|
8524
|
+
if (this.target || (this.target = Z(), this.targetWithTransforms = Z()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Rv(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Ee(this.target, this.layout.layoutBox), bf(this.target, this.targetDelta)) : Ee(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
|
|
8525
8525
|
this.attemptToResolveRelativeTarget = !1;
|
|
8526
8526
|
const h = this.getClosestProjectingParent();
|
|
8527
|
-
h && !!h.resumingFrom == !!this.resumingFrom && !h.options.layoutScroll && h.target && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget =
|
|
8527
|
+
h && !!h.resumingFrom == !!this.resumingFrom && !h.options.layoutScroll && h.target && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Z(), this.relativeTargetOrigin = Z(), ln(this.relativeTargetOrigin, this.target, h.target), Ee(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
8528
8528
|
}
|
|
8529
|
-
|
|
8529
|
+
pt.resolvedTargetDeltas++;
|
|
8530
8530
|
}
|
|
8531
8531
|
}
|
|
8532
8532
|
}
|
|
@@ -8546,7 +8546,7 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8546
8546
|
const { layout: f, layoutId: c } = this.options;
|
|
8547
8547
|
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(f || c))
|
|
8548
8548
|
return;
|
|
8549
|
-
|
|
8549
|
+
Ee(this.layoutCorrected, this.layout.layoutBox);
|
|
8550
8550
|
const d = this.treeScale.x, h = this.treeScale.y;
|
|
8551
8551
|
jv(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox);
|
|
8552
8552
|
const { target: p } = a;
|
|
@@ -8556,7 +8556,7 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8556
8556
|
}
|
|
8557
8557
|
this.projectionDelta || (this.projectionDelta = Ft(), this.projectionDeltaWithTransform = Ft());
|
|
8558
8558
|
const m = this.projectionTransform;
|
|
8559
|
-
an(this.projectionDelta, this.layoutCorrected, p, this.latestValues), this.projectionTransform = tl(this.projectionDelta, this.treeScale), (this.projectionTransform !== m || this.treeScale.x !== d || this.treeScale.y !== h) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", p)),
|
|
8559
|
+
an(this.projectionDelta, this.layoutCorrected, p, this.latestValues), this.projectionTransform = tl(this.projectionDelta, this.treeScale), (this.projectionTransform !== m || this.treeScale.x !== d || this.treeScale.y !== h) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", p)), pt.recalculatedProjection++;
|
|
8560
8560
|
}
|
|
8561
8561
|
hide() {
|
|
8562
8562
|
this.isVisible = !1;
|
|
@@ -8574,16 +8574,16 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8574
8574
|
setAnimationOrigin(s, a = !1) {
|
|
8575
8575
|
const l = this.snapshot, u = l ? l.latestValues : {}, f = { ...this.latestValues }, c = Ft();
|
|
8576
8576
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
8577
|
-
const d =
|
|
8577
|
+
const d = Z(), h = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, m = h !== p, g = this.getStack(), y = !g || g.members.length <= 1, b = !!(m && !y && this.options.crossfade === !0 && !this.path.some(kx));
|
|
8578
8578
|
this.animationProgress = 0;
|
|
8579
8579
|
let v;
|
|
8580
8580
|
this.mixTargetDelta = (S) => {
|
|
8581
8581
|
const E = S / 1e3;
|
|
8582
|
-
sl(c.x, s.x, E), sl(c.y, s.y, E), this.setTargetDelta(c), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ln(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Cx(this.relativeTarget, this.relativeTargetOrigin, d, E), v && rx(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v =
|
|
8582
|
+
sl(c.x, s.x, E), sl(c.y, s.y, E), this.setTargetDelta(c), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ln(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Cx(this.relativeTarget, this.relativeTargetOrigin, d, E), v && rx(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v = Z()), Ee(v, this.relativeTarget)), m && (this.animationValues = f, Jv(f, u, this.latestValues, E, b, y)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = E;
|
|
8583
8583
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
8584
8584
|
}
|
|
8585
8585
|
startAnimation(s) {
|
|
8586
|
-
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (
|
|
8586
|
+
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (Ge(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = $.update(() => {
|
|
8587
8587
|
Zn.hasAnimatedSinceResize = !0, this.currentAnimation = cx(0, rl, {
|
|
8588
8588
|
...s,
|
|
8589
8589
|
onUpdate: (a) => {
|
|
@@ -8608,13 +8608,13 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8608
8608
|
let { targetWithTransforms: a, target: l, layout: u, latestValues: f } = s;
|
|
8609
8609
|
if (!(!a || !l || !u)) {
|
|
8610
8610
|
if (this !== s && this.layout && u && Af(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
|
|
8611
|
-
l = this.target ||
|
|
8612
|
-
const c =
|
|
8611
|
+
l = this.target || Z();
|
|
8612
|
+
const c = Se(this.layout.layoutBox.x);
|
|
8613
8613
|
l.x.min = s.target.x.min, l.x.max = l.x.min + c;
|
|
8614
|
-
const d =
|
|
8614
|
+
const d = Se(this.layout.layoutBox.y);
|
|
8615
8615
|
l.y.min = s.target.y.min, l.y.max = l.y.min + d;
|
|
8616
8616
|
}
|
|
8617
|
-
|
|
8617
|
+
Ee(a, l), Lt(a, f), an(this.projectionDeltaWithTransform, this.layoutCorrected, a, f);
|
|
8618
8618
|
}
|
|
8619
8619
|
}
|
|
8620
8620
|
registerSharedNode(s, a) {
|
|
@@ -8684,7 +8684,7 @@ function Rf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8684
8684
|
const c = this.getLead();
|
|
8685
8685
|
if (!this.projectionDelta || !this.layout || !c.target) {
|
|
8686
8686
|
const m = {};
|
|
8687
|
-
return this.options.layoutId && (m.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, m.pointerEvents = Jn(s == null ? void 0 : s.pointerEvents) || ""), this.hasProjected && !
|
|
8687
|
+
return this.options.layoutId && (m.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, m.pointerEvents = Jn(s == null ? void 0 : s.pointerEvents) || ""), this.hasProjected && !ht(this.latestValues) && (m.transform = f ? f({}, "") : "none", this.hasProjected = !1), m;
|
|
8688
8688
|
}
|
|
8689
8689
|
const d = c.animationValues || c.latestValues;
|
|
8690
8690
|
this.applyTransformsToTarget(), u.transform = tl(this.projectionDeltaWithTransform, this.treeScale, d), f && (u.transform = f(d, u.transform));
|
|
@@ -8723,11 +8723,11 @@ function px(e) {
|
|
|
8723
8723
|
const n = ((t = e.resumeFrom) === null || t === void 0 ? void 0 : t.snapshot) || e.snapshot;
|
|
8724
8724
|
if (e.isLead() && e.layout && n && e.hasListeners("didUpdate")) {
|
|
8725
8725
|
const { layoutBox: r, measuredBox: i } = e.layout, { animationType: o } = e.options, s = n.source !== e.layout.source;
|
|
8726
|
-
o === "size" ?
|
|
8727
|
-
const d = s ? n.measuredBox[c] : n.layoutBox[c], h =
|
|
8726
|
+
o === "size" ? Ce((c) => {
|
|
8727
|
+
const d = s ? n.measuredBox[c] : n.layoutBox[c], h = Se(d);
|
|
8728
8728
|
d.min = r[c].min, d.max = d.min + h;
|
|
8729
|
-
}) : Af(o, n.layoutBox, r) &&
|
|
8730
|
-
const d = s ? n.measuredBox[c] : n.layoutBox[c], h =
|
|
8729
|
+
}) : Af(o, n.layoutBox, r) && Ce((c) => {
|
|
8730
|
+
const d = s ? n.measuredBox[c] : n.layoutBox[c], h = Se(r[c]);
|
|
8731
8731
|
d.max = d.min + h, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[c].max = e.relativeTarget[c].min + h);
|
|
8732
8732
|
});
|
|
8733
8733
|
const a = Ft();
|
|
@@ -8741,9 +8741,9 @@ function px(e) {
|
|
|
8741
8741
|
if (c && !c.resumeFrom) {
|
|
8742
8742
|
const { snapshot: d, layout: h } = c;
|
|
8743
8743
|
if (d && h) {
|
|
8744
|
-
const p =
|
|
8744
|
+
const p = Z();
|
|
8745
8745
|
ln(p, n.layoutBox, d.layoutBox);
|
|
8746
|
-
const m =
|
|
8746
|
+
const m = Z();
|
|
8747
8747
|
ln(m, r, h.layoutBox), Pf(p, m) || (f = !0), c.options.layoutRoot && (e.relativeTarget = m, e.relativeTargetOrigin = p, e.relativeParent = c);
|
|
8748
8748
|
}
|
|
8749
8749
|
}
|
|
@@ -8763,7 +8763,7 @@ function px(e) {
|
|
|
8763
8763
|
e.options.transition = void 0;
|
|
8764
8764
|
}
|
|
8765
8765
|
function mx(e) {
|
|
8766
|
-
|
|
8766
|
+
pt.totalNodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty || (e.isSharedProjectionDirty = !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty)), e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty));
|
|
8767
8767
|
}
|
|
8768
8768
|
function gx(e) {
|
|
8769
8769
|
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
|
|
@@ -8797,10 +8797,10 @@ function Ex(e) {
|
|
|
8797
8797
|
e.removeLeadSnapshot();
|
|
8798
8798
|
}
|
|
8799
8799
|
function sl(e, t, n) {
|
|
8800
|
-
e.translate =
|
|
8800
|
+
e.translate = W(t.translate, 0, n), e.scale = W(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
|
|
8801
8801
|
}
|
|
8802
8802
|
function al(e, t, n, r) {
|
|
8803
|
-
e.min =
|
|
8803
|
+
e.min = W(t.min, n.min, r), e.max = W(t.max, n.max, r);
|
|
8804
8804
|
}
|
|
8805
8805
|
function Cx(e, t, n, r) {
|
|
8806
8806
|
al(e.x, t.x, n.x, r), al(e.y, t.y, n.y, r);
|
|
@@ -8822,7 +8822,7 @@ function Af(e, t, n) {
|
|
|
8822
8822
|
return e === "position" || e === "preserve-aspect" && !Ki(el(t), el(n), 0.2);
|
|
8823
8823
|
}
|
|
8824
8824
|
const Rx = Rf({
|
|
8825
|
-
attachResizeListener: (e, t) =>
|
|
8825
|
+
attachResizeListener: (e, t) => $e(e, "resize", t),
|
|
8826
8826
|
measureScroll: () => ({
|
|
8827
8827
|
x: document.documentElement.scrollLeft || document.body.scrollLeft,
|
|
8828
8828
|
y: document.documentElement.scrollTop || document.body.scrollTop
|
|
@@ -8905,7 +8905,7 @@ const Vx = /* @__PURE__ */ new Set([
|
|
|
8905
8905
|
"y",
|
|
8906
8906
|
"translateX",
|
|
8907
8907
|
"translateY"
|
|
8908
|
-
]), _f = (e) => Vx.has(e), Fx = (e) => Object.keys(e).some(_f), fl = (e) => e ===
|
|
8908
|
+
]), _f = (e) => Vx.has(e), Fx = (e) => Object.keys(e).some(_f), fl = (e) => e === Et || e === O, dl = (e, t) => parseFloat(e.split(", ")[t]), hl = (e, t) => (n, { transform: r }) => {
|
|
8909
8909
|
if (r === "none" || !r)
|
|
8910
8910
|
return 0;
|
|
8911
8911
|
const i = r.match(/^matrix3d\((.+)\)$/);
|
|
@@ -8999,9 +8999,9 @@ function Ux(e, t, n) {
|
|
|
8999
8999
|
const { willChange: r } = t;
|
|
9000
9000
|
for (const i in t) {
|
|
9001
9001
|
const o = t[i], s = n[i];
|
|
9002
|
-
if (
|
|
9002
|
+
if (fe(o))
|
|
9003
9003
|
e.addValue(i, o), xr(r) && r.add(i);
|
|
9004
|
-
else if (
|
|
9004
|
+
else if (fe(s))
|
|
9005
9005
|
e.addValue(i, jt(o, { owner: e })), xr(r) && r.remove(i);
|
|
9006
9006
|
else if (s !== o)
|
|
9007
9007
|
if (e.hasValue(i)) {
|
|
@@ -9035,7 +9035,7 @@ class qx {
|
|
|
9035
9035
|
const { willChange: u, ...f } = this.scrapeMotionValuesFromProps(n, {});
|
|
9036
9036
|
for (const c in f) {
|
|
9037
9037
|
const d = f[c];
|
|
9038
|
-
a[c] !== void 0 &&
|
|
9038
|
+
a[c] !== void 0 && fe(d) && (d.set(a[c], !1), xr(u) && u.add(c));
|
|
9039
9039
|
}
|
|
9040
9040
|
}
|
|
9041
9041
|
/**
|
|
@@ -9052,7 +9052,7 @@ class qx {
|
|
|
9052
9052
|
this.current = t, pl.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), Mf.current || zx(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : eo.current, this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
|
|
9053
9053
|
}
|
|
9054
9054
|
unmount() {
|
|
9055
|
-
pl.delete(this.current), this.projection && this.projection.unmount(),
|
|
9055
|
+
pl.delete(this.current), this.projection && this.projection.unmount(), Ge(this.notifyUpdate), Ge(this.render), this.valueSubscriptions.forEach((t) => t()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
|
|
9056
9056
|
for (const t in this.events)
|
|
9057
9057
|
this.events[t].clear();
|
|
9058
9058
|
for (const t in this.features)
|
|
@@ -9060,7 +9060,7 @@ class qx {
|
|
|
9060
9060
|
this.current = null;
|
|
9061
9061
|
}
|
|
9062
9062
|
bindToMotionValue(t, n) {
|
|
9063
|
-
const r =
|
|
9063
|
+
const r = St.has(t), i = n.on("change", (s) => {
|
|
9064
9064
|
this.latestValues[t] = s, this.props.onUpdate && $.update(this.notifyUpdate, !1, !0), r && this.projection && (this.projection.isTransformDirty = !0);
|
|
9065
9065
|
}), o = n.on("renderRequest", this.scheduleRender);
|
|
9066
9066
|
this.valueSubscriptions.set(t, () => {
|
|
@@ -9115,7 +9115,7 @@ class qx {
|
|
|
9115
9115
|
* removed with a re-render to work.
|
|
9116
9116
|
*/
|
|
9117
9117
|
measureViewportBox() {
|
|
9118
|
-
return this.current ? this.measureInstanceViewportBox(this.current, this.props) :
|
|
9118
|
+
return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Z();
|
|
9119
9119
|
}
|
|
9120
9120
|
getStaticValue(t) {
|
|
9121
9121
|
return this.latestValues[t];
|
|
@@ -9242,7 +9242,7 @@ class qx {
|
|
|
9242
9242
|
if (r && i !== void 0)
|
|
9243
9243
|
return i;
|
|
9244
9244
|
const o = this.getBaseTargetFromProps(this.props, t);
|
|
9245
|
-
return o !== void 0 && !
|
|
9245
|
+
return o !== void 0 && !fe(o) ? o : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t];
|
|
9246
9246
|
}
|
|
9247
9247
|
on(t, n) {
|
|
9248
9248
|
return this.events[t] || (this.events[t] = new Ko()), this.events[t].add(n);
|
|
@@ -9283,7 +9283,7 @@ class Xx extends Ff {
|
|
|
9283
9283
|
super(...arguments), this.type = "html";
|
|
9284
9284
|
}
|
|
9285
9285
|
readValueFromInstance(t, n) {
|
|
9286
|
-
if (
|
|
9286
|
+
if (St.has(n)) {
|
|
9287
9287
|
const r = Wo(n);
|
|
9288
9288
|
return r && r.default || 0;
|
|
9289
9289
|
} else {
|
|
@@ -9303,7 +9303,7 @@ class Xx extends Ff {
|
|
|
9303
9303
|
handleChildMotionValue() {
|
|
9304
9304
|
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
|
|
9305
9305
|
const { children: t } = this.props;
|
|
9306
|
-
|
|
9306
|
+
fe(t) && (this.childSubscription = t.on("change", (n) => {
|
|
9307
9307
|
this.current && (this.current.textContent = `${n}`);
|
|
9308
9308
|
}));
|
|
9309
9309
|
}
|
|
@@ -9319,14 +9319,14 @@ class Kx extends Ff {
|
|
|
9319
9319
|
return t[n];
|
|
9320
9320
|
}
|
|
9321
9321
|
readValueFromInstance(t, n) {
|
|
9322
|
-
if (
|
|
9322
|
+
if (St.has(n)) {
|
|
9323
9323
|
const r = Wo(n);
|
|
9324
9324
|
return r && r.default || 0;
|
|
9325
9325
|
}
|
|
9326
9326
|
return n = Rc.has(n) ? n : Oo(n), t.getAttribute(n);
|
|
9327
9327
|
}
|
|
9328
9328
|
measureInstanceViewportBox() {
|
|
9329
|
-
return
|
|
9329
|
+
return Z();
|
|
9330
9330
|
}
|
|
9331
9331
|
scrapeMotionValuesFromProps(t, n) {
|
|
9332
9332
|
return Oc(t, n);
|
|
@@ -9372,10 +9372,10 @@ function yn() {
|
|
|
9372
9372
|
return e;
|
|
9373
9373
|
}, yn.apply(this, arguments);
|
|
9374
9374
|
}
|
|
9375
|
-
var
|
|
9375
|
+
var wt;
|
|
9376
9376
|
(function(e) {
|
|
9377
9377
|
e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
|
|
9378
|
-
})(
|
|
9378
|
+
})(wt || (wt = {}));
|
|
9379
9379
|
const gl = "popstate";
|
|
9380
9380
|
function eb(e) {
|
|
9381
9381
|
e === void 0 && (e = {});
|
|
@@ -9402,7 +9402,7 @@ function eb(e) {
|
|
|
9402
9402
|
}
|
|
9403
9403
|
return nb(t, n, null, e);
|
|
9404
9404
|
}
|
|
9405
|
-
function
|
|
9405
|
+
function Re(e, t) {
|
|
9406
9406
|
if (e === !1 || e === null || typeof e > "u")
|
|
9407
9407
|
throw new Error(t);
|
|
9408
9408
|
}
|
|
@@ -9453,7 +9453,7 @@ function nb(e, t, n, r) {
|
|
|
9453
9453
|
let {
|
|
9454
9454
|
window: i = document.defaultView,
|
|
9455
9455
|
v5Compat: o = !1
|
|
9456
|
-
} = r, s = i.history, a =
|
|
9456
|
+
} = r, s = i.history, a = wt.Pop, l = null, u = f();
|
|
9457
9457
|
u == null && (u = 0, s.replaceState(yn({}, s.state, {
|
|
9458
9458
|
idx: u
|
|
9459
9459
|
}), ""));
|
|
@@ -9463,7 +9463,7 @@ function nb(e, t, n, r) {
|
|
|
9463
9463
|
}).idx;
|
|
9464
9464
|
}
|
|
9465
9465
|
function c() {
|
|
9466
|
-
a =
|
|
9466
|
+
a = wt.Pop;
|
|
9467
9467
|
let g = f(), y = g == null ? null : g - u;
|
|
9468
9468
|
u = g, l && l({
|
|
9469
9469
|
action: a,
|
|
@@ -9472,7 +9472,7 @@ function nb(e, t, n, r) {
|
|
|
9472
9472
|
});
|
|
9473
9473
|
}
|
|
9474
9474
|
function d(g, y) {
|
|
9475
|
-
a =
|
|
9475
|
+
a = wt.Push;
|
|
9476
9476
|
let b = to(m.location, g, y);
|
|
9477
9477
|
n && n(b, g), u = f() + 1;
|
|
9478
9478
|
let v = yl(b, u), S = m.createHref(b);
|
|
@@ -9490,7 +9490,7 @@ function nb(e, t, n, r) {
|
|
|
9490
9490
|
});
|
|
9491
9491
|
}
|
|
9492
9492
|
function h(g, y) {
|
|
9493
|
-
a =
|
|
9493
|
+
a = wt.Replace;
|
|
9494
9494
|
let b = to(m.location, g, y);
|
|
9495
9495
|
n && n(b, g), u = f();
|
|
9496
9496
|
let v = yl(b, u), S = m.createHref(b);
|
|
@@ -9502,7 +9502,7 @@ function nb(e, t, n, r) {
|
|
|
9502
9502
|
}
|
|
9503
9503
|
function p(g) {
|
|
9504
9504
|
let y = i.location.origin !== "null" ? i.location.origin : i.location.href, b = typeof g == "string" ? g : wr(g);
|
|
9505
|
-
return b = b.replace(/ $/, "%20"),
|
|
9505
|
+
return b = b.replace(/ $/, "%20"), Re(y, "No window.location.(origin|href) available to create URL for href: " + b), new URL(b, y);
|
|
9506
9506
|
}
|
|
9507
9507
|
let m = {
|
|
9508
9508
|
get action() {
|
|
@@ -9582,7 +9582,7 @@ function Df(e, t) {
|
|
|
9582
9582
|
function jf(e, t, n, r) {
|
|
9583
9583
|
r === void 0 && (r = !1);
|
|
9584
9584
|
let i;
|
|
9585
|
-
typeof e == "string" ? i = $r(e) : (i = yn({}, e),
|
|
9585
|
+
typeof e == "string" ? i = $r(e) : (i = yn({}, e), Re(!i.pathname || !i.pathname.includes("?"), wi("?", "pathname", "search", i)), Re(!i.pathname || !i.pathname.includes("#"), wi("#", "pathname", "hash", i)), Re(!i.search || !i.search.includes("#"), wi("#", "search", "hash", i)));
|
|
9586
9586
|
let o = e === "" || i.pathname === "", s = o ? "/" : i.pathname, a;
|
|
9587
9587
|
if (s == null)
|
|
9588
9588
|
a = n;
|
|
@@ -9632,7 +9632,7 @@ function ub(e, t) {
|
|
|
9632
9632
|
let {
|
|
9633
9633
|
relative: n
|
|
9634
9634
|
} = t === void 0 ? {} : t;
|
|
9635
|
-
Ur() ||
|
|
9635
|
+
Ur() || Re(!1);
|
|
9636
9636
|
let {
|
|
9637
9637
|
basename: r,
|
|
9638
9638
|
navigator: i
|
|
@@ -9653,7 +9653,7 @@ function Ur() {
|
|
|
9653
9653
|
return x.useContext(Yo) != null;
|
|
9654
9654
|
}
|
|
9655
9655
|
function Wr() {
|
|
9656
|
-
return Ur() ||
|
|
9656
|
+
return Ur() || Re(!1), x.useContext(Yo).location;
|
|
9657
9657
|
}
|
|
9658
9658
|
function $f(e) {
|
|
9659
9659
|
x.useContext(zt).static || x.useLayoutEffect(e);
|
|
@@ -9665,7 +9665,7 @@ function cb() {
|
|
|
9665
9665
|
return e ? mb() : fb();
|
|
9666
9666
|
}
|
|
9667
9667
|
function fb() {
|
|
9668
|
-
Ur() ||
|
|
9668
|
+
Ur() || Re(!1);
|
|
9669
9669
|
let e = x.useContext(Bf), {
|
|
9670
9670
|
basename: t,
|
|
9671
9671
|
future: n,
|
|
@@ -9707,15 +9707,15 @@ var Uf = /* @__PURE__ */ function(e) {
|
|
|
9707
9707
|
}(Wf || {});
|
|
9708
9708
|
function db(e) {
|
|
9709
9709
|
let t = x.useContext(Bf);
|
|
9710
|
-
return t ||
|
|
9710
|
+
return t || Re(!1), t;
|
|
9711
9711
|
}
|
|
9712
9712
|
function hb(e) {
|
|
9713
9713
|
let t = x.useContext(zr);
|
|
9714
|
-
return t ||
|
|
9714
|
+
return t || Re(!1), t;
|
|
9715
9715
|
}
|
|
9716
9716
|
function pb(e) {
|
|
9717
9717
|
let t = hb(), n = t.matches[t.matches.length - 1];
|
|
9718
|
-
return n.route.id ||
|
|
9718
|
+
return n.route.id || Re(!1), n.route.id;
|
|
9719
9719
|
}
|
|
9720
9720
|
function mb() {
|
|
9721
9721
|
let {
|
|
@@ -9734,12 +9734,12 @@ function gb(e) {
|
|
|
9734
9734
|
basename: t = "/",
|
|
9735
9735
|
children: n = null,
|
|
9736
9736
|
location: r,
|
|
9737
|
-
navigationType: i =
|
|
9737
|
+
navigationType: i = wt.Pop,
|
|
9738
9738
|
navigator: o,
|
|
9739
9739
|
static: s = !1,
|
|
9740
9740
|
future: a
|
|
9741
9741
|
} = e;
|
|
9742
|
-
Ur() &&
|
|
9742
|
+
Ur() && Re(!1);
|
|
9743
9743
|
let l = t.replace(/^\/*/, "/"), u = x.useMemo(() => ({
|
|
9744
9744
|
basename: l,
|
|
9745
9745
|
navigator: o,
|
|
@@ -10026,17 +10026,17 @@ var Ot = /* @__PURE__ */ new Map(), qf = function(t) {
|
|
|
10026
10026
|
throw a;
|
|
10027
10027
|
}
|
|
10028
10028
|
}, i.open("GET", t), i.withCredentials = n, i.overrideMimeType && i.overrideMimeType("text/xml"), i.send();
|
|
10029
|
-
},
|
|
10030
|
-
|
|
10029
|
+
}, nt = {}, Cl = function(t, n) {
|
|
10030
|
+
nt[t] = nt[t] || [], nt[t].push(n);
|
|
10031
10031
|
}, Lb = function(t) {
|
|
10032
10032
|
for (var n = function(s, a) {
|
|
10033
10033
|
setTimeout(function() {
|
|
10034
|
-
if (Array.isArray(
|
|
10035
|
-
var l = Ot.get(t), u =
|
|
10036
|
-
l instanceof SVGSVGElement && u(null, qf(l)), l instanceof Error && u(l), s ===
|
|
10034
|
+
if (Array.isArray(nt[t])) {
|
|
10035
|
+
var l = Ot.get(t), u = nt[t][s];
|
|
10036
|
+
l instanceof SVGSVGElement && u(null, qf(l)), l instanceof Error && u(l), s === nt[t].length - 1 && delete nt[t];
|
|
10037
10037
|
}
|
|
10038
10038
|
}, 0);
|
|
10039
|
-
}, r = 0, i =
|
|
10039
|
+
}, r = 0, i = nt[t].length; r < i; r++)
|
|
10040
10040
|
n(r);
|
|
10041
10041
|
}, Db = function(t, n, r) {
|
|
10042
10042
|
if (Ot.has(t)) {
|
|
@@ -10061,21 +10061,21 @@ var Ot = /* @__PURE__ */ new Map(), qf = function(t) {
|
|
|
10061
10061
|
});
|
|
10062
10062
|
}, Ib = 0, Nb = function() {
|
|
10063
10063
|
return ++Ib;
|
|
10064
|
-
},
|
|
10064
|
+
}, Ae = [], kl = {}, Bb = "http://www.w3.org/2000/svg", Ei = "http://www.w3.org/1999/xlink", Tl = function(t, n, r, i, o, s, a) {
|
|
10065
10065
|
var l = t.getAttribute("data-src") || t.getAttribute("src");
|
|
10066
10066
|
if (!l) {
|
|
10067
10067
|
a(new Error("Invalid data-src or src attribute"));
|
|
10068
10068
|
return;
|
|
10069
10069
|
}
|
|
10070
|
-
if (
|
|
10071
|
-
|
|
10070
|
+
if (Ae.indexOf(t) !== -1) {
|
|
10071
|
+
Ae.splice(Ae.indexOf(t), 1), t = null;
|
|
10072
10072
|
return;
|
|
10073
10073
|
}
|
|
10074
|
-
|
|
10074
|
+
Ae.push(t), t.setAttribute("src", "");
|
|
10075
10075
|
var u = i ? Db : jb;
|
|
10076
10076
|
u(l, o, function(f, c) {
|
|
10077
10077
|
if (!c) {
|
|
10078
|
-
|
|
10078
|
+
Ae.splice(Ae.indexOf(t), 1), t = null, a(f);
|
|
10079
10079
|
return;
|
|
10080
10080
|
}
|
|
10081
10081
|
var d = t.getAttribute("id");
|
|
@@ -10090,11 +10090,11 @@ var Ot = /* @__PURE__ */ new Map(), qf = function(t) {
|
|
|
10090
10090
|
c.setAttribute("class", g);
|
|
10091
10091
|
var y = t.getAttribute("style");
|
|
10092
10092
|
y && c.setAttribute("style", y), c.setAttribute("data-src", l);
|
|
10093
|
-
var b = [].filter.call(t.attributes, function(
|
|
10094
|
-
return /^data-\w[\w-]*$/.test(
|
|
10093
|
+
var b = [].filter.call(t.attributes, function(z) {
|
|
10094
|
+
return /^data-\w[\w-]*$/.test(z.name);
|
|
10095
10095
|
});
|
|
10096
|
-
if (Array.prototype.forEach.call(b, function(
|
|
10097
|
-
|
|
10096
|
+
if (Array.prototype.forEach.call(b, function(z) {
|
|
10097
|
+
z.name && z.value && c.setAttribute(z.name, z.value);
|
|
10098
10098
|
}), r) {
|
|
10099
10099
|
var v = {
|
|
10100
10100
|
clipPath: ["clip-path"],
|
|
@@ -10107,46 +10107,46 @@ var Ot = /* @__PURE__ */ new Map(), qf = function(t) {
|
|
|
10107
10107
|
path: [],
|
|
10108
10108
|
pattern: ["fill", "stroke"],
|
|
10109
10109
|
radialGradient: ["fill", "stroke"]
|
|
10110
|
-
}, S, E,
|
|
10111
|
-
Object.keys(v).forEach(function(
|
|
10112
|
-
S =
|
|
10113
|
-
for (var
|
|
10114
|
-
|
|
10115
|
-
var
|
|
10116
|
-
Array.prototype.forEach.call(
|
|
10117
|
-
|
|
10118
|
-
for (var kn = 0, Zf =
|
|
10119
|
-
var es =
|
|
10120
|
-
es && !es.match(new RegExp('url\\("?#' +
|
|
10110
|
+
}, S, E, k, P, T;
|
|
10111
|
+
Object.keys(v).forEach(function(z) {
|
|
10112
|
+
S = z, k = v[z], E = c.querySelectorAll(S + "[id]");
|
|
10113
|
+
for (var pe = function(kt, Hr) {
|
|
10114
|
+
P = E[kt].id, T = P + "-" + Nb();
|
|
10115
|
+
var ct;
|
|
10116
|
+
Array.prototype.forEach.call(k, function(qr) {
|
|
10117
|
+
ct = c.querySelectorAll("[" + qr + '*="' + P + '"]');
|
|
10118
|
+
for (var kn = 0, Zf = ct.length; kn < Zf; kn++) {
|
|
10119
|
+
var es = ct[kn].getAttribute(qr);
|
|
10120
|
+
es && !es.match(new RegExp('url\\("?#' + P + '"?\\)')) || ct[kn].setAttribute(qr, "url(#" + T + ")");
|
|
10121
10121
|
}
|
|
10122
10122
|
});
|
|
10123
|
-
for (var
|
|
10124
|
-
var
|
|
10125
|
-
|
|
10123
|
+
for (var Ie = c.querySelectorAll("[*|href]"), Tt = [], Pt = 0, Ut = Ie.length; Pt < Ut; Pt++) {
|
|
10124
|
+
var ft = Ie[Pt].getAttributeNS(Ei, "href");
|
|
10125
|
+
ft && ft.toString() === "#" + E[kt].id && Tt.push(Ie[Pt]);
|
|
10126
10126
|
}
|
|
10127
|
-
for (var
|
|
10128
|
-
Tt[
|
|
10129
|
-
E[kt].id =
|
|
10130
|
-
},
|
|
10131
|
-
|
|
10127
|
+
for (var Te = 0, Qo = Tt.length; Te < Qo; Te++)
|
|
10128
|
+
Tt[Te].setAttributeNS(Ei, "href", "#" + T);
|
|
10129
|
+
E[kt].id = T;
|
|
10130
|
+
}, je = 0, I = E.length; je < I; je++)
|
|
10131
|
+
pe(je);
|
|
10132
10132
|
});
|
|
10133
10133
|
}
|
|
10134
10134
|
c.removeAttribute("xmlns:a");
|
|
10135
|
-
for (var M = c.querySelectorAll("script"), X = [],
|
|
10136
|
-
|
|
10135
|
+
for (var M = c.querySelectorAll("script"), X = [], H, U, K = 0, Y = M.length; K < Y; K++)
|
|
10136
|
+
U = M[K].getAttribute("type"), (!U || U === "application/ecmascript" || U === "application/javascript" || U === "text/javascript") && (H = M[K].innerText || M[K].textContent, H && X.push(H), c.removeChild(M[K]));
|
|
10137
10137
|
if (X.length > 0 && (n === "always" || n === "once" && !kl[l])) {
|
|
10138
|
-
for (var
|
|
10139
|
-
new Function(X[
|
|
10138
|
+
for (var de = 0, q = X.length; de < q; de++)
|
|
10139
|
+
new Function(X[de])(window);
|
|
10140
10140
|
kl[l] = !0;
|
|
10141
10141
|
}
|
|
10142
|
-
var
|
|
10143
|
-
if (Array.prototype.forEach.call(
|
|
10144
|
-
|
|
10142
|
+
var he = c.querySelectorAll("style");
|
|
10143
|
+
if (Array.prototype.forEach.call(he, function(z) {
|
|
10144
|
+
z.textContent += "";
|
|
10145
10145
|
}), c.setAttribute("xmlns", Bb), c.setAttribute("xmlns:xlink", Ei), s(c), !t.parentNode) {
|
|
10146
|
-
|
|
10146
|
+
Ae.splice(Ae.indexOf(t), 1), t = null, a(new Error("Parent node is null"));
|
|
10147
10147
|
return;
|
|
10148
10148
|
}
|
|
10149
|
-
t.parentNode.replaceChild(c, t),
|
|
10149
|
+
t.parentNode.replaceChild(c, t), Ae.splice(Ae.indexOf(t), 1), t = null, a(null, c);
|
|
10150
10150
|
});
|
|
10151
10151
|
}, $b = function(t, n) {
|
|
10152
10152
|
var r = n === void 0 ? {} : n, i = r.afterAll, o = i === void 0 ? function() {
|
|
@@ -10155,12 +10155,12 @@ var Ot = /* @__PURE__ */ new Map(), qf = function(t) {
|
|
|
10155
10155
|
} : l, f = r.cacheRequests, c = f === void 0 ? !0 : f, d = r.evalScripts, h = d === void 0 ? "never" : d, p = r.httpRequestWithCredentials, m = p === void 0 ? !1 : p, g = r.renumerateIRIElements, y = g === void 0 ? !0 : g;
|
|
10156
10156
|
if (t && "length" in t)
|
|
10157
10157
|
for (var b = 0, v = 0, S = t.length; v < S; v++)
|
|
10158
|
-
Tl(t[v], h, y, c, m, u, function(E,
|
|
10159
|
-
a(E,
|
|
10158
|
+
Tl(t[v], h, y, c, m, u, function(E, k) {
|
|
10159
|
+
a(E, k), t && "length" in t && t.length === ++b && o(b);
|
|
10160
10160
|
});
|
|
10161
10161
|
else
|
|
10162
|
-
t ? Tl(t, h, y, c, m, u, function(E,
|
|
10163
|
-
a(E,
|
|
10162
|
+
t ? Tl(t, h, y, c, m, u, function(E, k) {
|
|
10163
|
+
a(E, k), o(1), t = null;
|
|
10164
10164
|
}) : o(0);
|
|
10165
10165
|
}, zb = function(t) {
|
|
10166
10166
|
var n = (t == null ? void 0 : t.ownerDocument) || document;
|
|
@@ -10191,9 +10191,9 @@ var Ot = /* @__PURE__ */ new Map(), qf = function(t) {
|
|
|
10191
10191
|
if (this.reactWrapper instanceof zb(this.reactWrapper).Node) {
|
|
10192
10192
|
var o = this.props, s = o.desc, a = o.evalScripts, l = o.httpRequestWithCredentials, u = o.renumerateIRIElements, f = o.src, c = o.title, d = o.useRequestCache, h = this.props.onError, p = this.props.beforeInjection, m = this.props.afterInjection, g = this.props.wrapper, y, b;
|
|
10193
10193
|
g === "svg" ? (y = document.createElementNS(Dn, g), y.setAttribute("xmlns", Dn), y.setAttribute("xmlns:xlink", Pl), b = document.createElementNS(Dn, g)) : (y = document.createElement(g), b = document.createElement(g)), y.appendChild(b), b.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(y);
|
|
10194
|
-
var v = function(
|
|
10194
|
+
var v = function(P) {
|
|
10195
10195
|
if (i.removeSVG(), !i._isMounted) {
|
|
10196
|
-
h(
|
|
10196
|
+
h(P);
|
|
10197
10197
|
return;
|
|
10198
10198
|
}
|
|
10199
10199
|
i.setState(function() {
|
|
@@ -10202,11 +10202,11 @@ var Ot = /* @__PURE__ */ new Map(), qf = function(t) {
|
|
|
10202
10202
|
isLoading: !1
|
|
10203
10203
|
};
|
|
10204
10204
|
}, function() {
|
|
10205
|
-
h(
|
|
10205
|
+
h(P);
|
|
10206
10206
|
});
|
|
10207
|
-
}, S = function(
|
|
10208
|
-
if (
|
|
10209
|
-
v(
|
|
10207
|
+
}, S = function(P, T) {
|
|
10208
|
+
if (P) {
|
|
10209
|
+
v(P);
|
|
10210
10210
|
return;
|
|
10211
10211
|
}
|
|
10212
10212
|
i._isMounted && i.setState(function() {
|
|
@@ -10215,28 +10215,28 @@ var Ot = /* @__PURE__ */ new Map(), qf = function(t) {
|
|
|
10215
10215
|
};
|
|
10216
10216
|
}, function() {
|
|
10217
10217
|
try {
|
|
10218
|
-
m(
|
|
10218
|
+
m(T);
|
|
10219
10219
|
} catch (M) {
|
|
10220
10220
|
v(M);
|
|
10221
10221
|
}
|
|
10222
10222
|
});
|
|
10223
|
-
}, E = function(
|
|
10224
|
-
if (
|
|
10225
|
-
var
|
|
10226
|
-
|
|
10223
|
+
}, E = function(P) {
|
|
10224
|
+
if (P.setAttribute("role", "img"), s) {
|
|
10225
|
+
var T = P.querySelector(":scope > desc");
|
|
10226
|
+
T && P.removeChild(T);
|
|
10227
10227
|
var M = document.createElement("desc");
|
|
10228
|
-
M.innerHTML = s,
|
|
10228
|
+
M.innerHTML = s, P.prepend(M);
|
|
10229
10229
|
}
|
|
10230
10230
|
if (c) {
|
|
10231
|
-
var X =
|
|
10232
|
-
X &&
|
|
10233
|
-
var
|
|
10234
|
-
|
|
10231
|
+
var X = P.querySelector(":scope > title");
|
|
10232
|
+
X && P.removeChild(X);
|
|
10233
|
+
var H = document.createElement("title");
|
|
10234
|
+
H.innerHTML = c, P.prepend(H);
|
|
10235
10235
|
}
|
|
10236
10236
|
try {
|
|
10237
|
-
p(
|
|
10238
|
-
} catch (
|
|
10239
|
-
v(
|
|
10237
|
+
p(P);
|
|
10238
|
+
} catch (U) {
|
|
10239
|
+
v(U);
|
|
10240
10240
|
}
|
|
10241
10241
|
};
|
|
10242
10242
|
$b(b, {
|
|
@@ -10296,19 +10296,19 @@ Jo.defaultProps = {
|
|
|
10296
10296
|
wrapper: "div"
|
|
10297
10297
|
};
|
|
10298
10298
|
Jo.propTypes = {
|
|
10299
|
-
afterInjection:
|
|
10300
|
-
beforeInjection:
|
|
10301
|
-
desc:
|
|
10302
|
-
evalScripts:
|
|
10303
|
-
fallback:
|
|
10304
|
-
httpRequestWithCredentials:
|
|
10305
|
-
loading:
|
|
10306
|
-
onError:
|
|
10307
|
-
renumerateIRIElements:
|
|
10308
|
-
src:
|
|
10309
|
-
title:
|
|
10310
|
-
useRequestCache:
|
|
10311
|
-
wrapper:
|
|
10299
|
+
afterInjection: J.func,
|
|
10300
|
+
beforeInjection: J.func,
|
|
10301
|
+
desc: J.string,
|
|
10302
|
+
evalScripts: J.oneOf(["always", "once", "never"]),
|
|
10303
|
+
fallback: J.oneOfType([J.func, J.object, J.string]),
|
|
10304
|
+
httpRequestWithCredentials: J.bool,
|
|
10305
|
+
loading: J.oneOfType([J.func, J.object, J.string]),
|
|
10306
|
+
onError: J.func,
|
|
10307
|
+
renumerateIRIElements: J.bool,
|
|
10308
|
+
src: J.string.isRequired,
|
|
10309
|
+
title: J.string,
|
|
10310
|
+
useRequestCache: J.bool,
|
|
10311
|
+
wrapper: J.oneOf(["div", "span", "svg"])
|
|
10312
10312
|
};
|
|
10313
10313
|
function Hb(e) {
|
|
10314
10314
|
return /* @__PURE__ */ R.jsx(
|
|
@@ -10410,10 +10410,10 @@ function Xb(e, t) {
|
|
|
10410
10410
|
return t ? e : void 0;
|
|
10411
10411
|
}
|
|
10412
10412
|
function Xf({ item: e, level: t = 0, ...n }) {
|
|
10413
|
-
var
|
|
10414
|
-
const { isActive: r, isCollapsed: i, expanded: o, toggleExpand: s } = n, a = `level-${t}`, l = i ? "collapsed" : "expanded", u = r(e.id) ? "active" : "", f = (
|
|
10413
|
+
var K, Y, de, q, he;
|
|
10414
|
+
const { isActive: r, isCollapsed: i, expanded: o, toggleExpand: s } = n, a = `level-${t}`, l = i ? "collapsed" : "expanded", u = r(e.id) ? "active" : "", f = (z, pe = a) => `${z} ${pe} ${l} ${u}`, c = !!((K = e.children) != null && K.length), [d, h] = x.useState(!1), p = x.useRef(), m = x.useRef(), g = (m == null ? void 0 : m.current) && ((Y = m == null ? void 0 : m.current) == null ? void 0 : Y.scrollWidth) > ((de = m == null ? void 0 : m.current) == null ? void 0 : de.clientWidth), y = window.location.origin, b = e.path && e.path.includes("http") ? new URL(e.path) : { origin: "", pathname: "" }, v = window.location.pathname.split("/")[1], S = b.pathname.split("/")[1], E = n.ssr || !y.includes("local") && y !== b.origin || S !== v, k = c || t === 0 ? "div" : E ? "a" : Tb, P = e.path || "#", T = t + 1, M = c && !(i && T >= 2 && !d), X = i || t === 0 ? void 0 : `${t}rem`, H = () => {
|
|
10415
10415
|
h(!0);
|
|
10416
|
-
},
|
|
10416
|
+
}, U = () => {
|
|
10417
10417
|
h(!1);
|
|
10418
10418
|
};
|
|
10419
10419
|
return /* @__PURE__ */ R.jsxs(
|
|
@@ -10421,32 +10421,32 @@ function Xf({ item: e, level: t = 0, ...n }) {
|
|
|
10421
10421
|
{
|
|
10422
10422
|
ref: p,
|
|
10423
10423
|
className: f("menu-item__wrapper"),
|
|
10424
|
-
onMouseOver:
|
|
10425
|
-
onMouseOut:
|
|
10424
|
+
onMouseOver: H,
|
|
10425
|
+
onMouseOut: U,
|
|
10426
10426
|
children: [
|
|
10427
10427
|
/* @__PURE__ */ R.jsx(
|
|
10428
10428
|
Gb,
|
|
10429
10429
|
{
|
|
10430
|
-
hasTooltip: i && t === 1,
|
|
10430
|
+
hasTooltip: g || i && t === 1,
|
|
10431
10431
|
children: /* @__PURE__ */ R.jsxs(
|
|
10432
|
-
|
|
10432
|
+
k,
|
|
10433
10433
|
{
|
|
10434
|
-
to:
|
|
10435
|
-
href:
|
|
10434
|
+
to: P,
|
|
10435
|
+
href: P,
|
|
10436
10436
|
className: f("menu-item__link"),
|
|
10437
10437
|
style: {
|
|
10438
|
-
paddingLeft:
|
|
10438
|
+
paddingLeft: X,
|
|
10439
10439
|
transition: "all 0.3s",
|
|
10440
10440
|
// transitionDelay: '0.1s',
|
|
10441
|
-
color: r(e.id) ? ((
|
|
10442
|
-
backgroundColor: r(e.id) && t === 1 ? (
|
|
10441
|
+
color: r(e.id) ? ((q = n.brandColors) == null ? void 0 : q.primary400) || rn.primary400 : void 0,
|
|
10442
|
+
backgroundColor: r(e.id) && t === 1 ? (he = n.brandColors) == null ? void 0 : he.primary200 : void 0
|
|
10443
10443
|
},
|
|
10444
|
-
onClick: (
|
|
10445
|
-
c && (
|
|
10444
|
+
onClick: (z) => {
|
|
10445
|
+
c && (z.preventDefault(), i || s(e.id));
|
|
10446
10446
|
},
|
|
10447
10447
|
children: [
|
|
10448
10448
|
t !== 0 && /* @__PURE__ */ R.jsx(Kb, { cls: f, item: e }),
|
|
10449
|
-
/* @__PURE__ */ R.jsx("span", { className: f("menu-item__label"), children: e.name }),
|
|
10449
|
+
/* @__PURE__ */ R.jsx("span", { className: f("menu-item__label"), ref: m, children: e.name }),
|
|
10450
10450
|
c && /* @__PURE__ */ R.jsx("div", { className: f("menu-item__icon-arrow__wrapper"), children: /* @__PURE__ */ R.jsx(
|
|
10451
10451
|
Hb,
|
|
10452
10452
|
{
|
|
@@ -10461,19 +10461,19 @@ function Xf({ item: e, level: t = 0, ...n }) {
|
|
|
10461
10461
|
title: e.name
|
|
10462
10462
|
}
|
|
10463
10463
|
),
|
|
10464
|
-
|
|
10464
|
+
M && /* @__PURE__ */ R.jsx(
|
|
10465
10465
|
qb,
|
|
10466
10466
|
{
|
|
10467
10467
|
parentRef: p,
|
|
10468
|
-
onlyChild: !i || i &&
|
|
10469
|
-
renderChildren: ({ maxHeight:
|
|
10470
|
-
var
|
|
10468
|
+
onlyChild: !i || i && T < 2,
|
|
10469
|
+
renderChildren: ({ maxHeight: z }) => {
|
|
10470
|
+
var pe;
|
|
10471
10471
|
return /* @__PURE__ */ R.jsx(
|
|
10472
10472
|
Qx.div,
|
|
10473
10473
|
{
|
|
10474
10474
|
className: f(
|
|
10475
10475
|
`menu-item__dropdown ${o(e.id) ? "menu-item__dropdown--open" : "menu-item__dropdown--close"}`,
|
|
10476
|
-
`level-${
|
|
10476
|
+
`level-${T}`
|
|
10477
10477
|
),
|
|
10478
10478
|
initial: {
|
|
10479
10479
|
height: i || o(e.id) ? "auto" : 0
|
|
@@ -10483,16 +10483,16 @@ function Xf({ item: e, level: t = 0, ...n }) {
|
|
|
10483
10483
|
},
|
|
10484
10484
|
transition: { duration: 0.25 },
|
|
10485
10485
|
style: Xb(
|
|
10486
|
-
{ maxHeight:
|
|
10487
|
-
|
|
10486
|
+
{ maxHeight: z, overflowY: "auto", paddingRight: 3 },
|
|
10487
|
+
z !== "auto" && !!T
|
|
10488
10488
|
),
|
|
10489
|
-
children: (
|
|
10489
|
+
children: (pe = e.children) == null ? void 0 : pe.map((je) => /* @__PURE__ */ x.createElement(
|
|
10490
10490
|
Xf,
|
|
10491
10491
|
{
|
|
10492
10492
|
...n,
|
|
10493
|
-
key:
|
|
10494
|
-
item:
|
|
10495
|
-
level:
|
|
10493
|
+
key: je.id,
|
|
10494
|
+
item: je,
|
|
10495
|
+
level: T
|
|
10496
10496
|
}
|
|
10497
10497
|
))
|
|
10498
10498
|
}
|
|
@@ -10618,21 +10618,21 @@ function ew(e) {
|
|
|
10618
10618
|
};
|
|
10619
10619
|
x.useLayoutEffect(() => {
|
|
10620
10620
|
(async () => {
|
|
10621
|
-
var
|
|
10621
|
+
var k, P;
|
|
10622
10622
|
try {
|
|
10623
10623
|
const M = t + (n || "/global-menu-config/api/v1/menu-items/user"), { data: X } = await xh.get(M, {
|
|
10624
10624
|
withCredentials: !0
|
|
10625
10625
|
});
|
|
10626
|
-
let
|
|
10626
|
+
let H = X.map((K) => ({
|
|
10627
10627
|
...K,
|
|
10628
10628
|
parentKey: 0
|
|
10629
10629
|
}));
|
|
10630
|
-
|
|
10631
|
-
const
|
|
10632
|
-
u(
|
|
10633
|
-
} catch (
|
|
10634
|
-
console.log(
|
|
10635
|
-
((
|
|
10630
|
+
H = Jf(H), e.replacePath && (H = Yf(H, e.replacePath));
|
|
10631
|
+
const U = nw(H);
|
|
10632
|
+
u(U), o(H);
|
|
10633
|
+
} catch (T) {
|
|
10634
|
+
console.log(T), $g(
|
|
10635
|
+
((P = (k = T.response) == null ? void 0 : k.data) == null ? void 0 : P.errorMessage) || "Have error when get menu items"
|
|
10636
10636
|
);
|
|
10637
10637
|
}
|
|
10638
10638
|
})();
|
|
@@ -10660,14 +10660,14 @@ function ew(e) {
|
|
|
10660
10660
|
overflowX: "hidden"
|
|
10661
10661
|
},
|
|
10662
10662
|
children: i.map((E) => {
|
|
10663
|
-
const
|
|
10663
|
+
const k = (P) => h.some((T) => T.id === P);
|
|
10664
10664
|
return /* @__PURE__ */ R.jsx(
|
|
10665
10665
|
Xf,
|
|
10666
10666
|
{
|
|
10667
10667
|
item: E,
|
|
10668
|
-
isActive:
|
|
10668
|
+
isActive: k,
|
|
10669
10669
|
isCollapsed: s,
|
|
10670
|
-
expanded: (
|
|
10670
|
+
expanded: (P) => l[P],
|
|
10671
10671
|
toggleExpand: p,
|
|
10672
10672
|
replacePath: e.replacePath,
|
|
10673
10673
|
ssr: e.ssr,
|
|
@@ -10721,7 +10721,7 @@ function Kf(e, t) {
|
|
|
10721
10721
|
})).sort((s, a) => {
|
|
10722
10722
|
const l = new URL(s.itemUrl).searchParams, u = new URL(a.itemUrl).searchParams;
|
|
10723
10723
|
return Array.from(l).length - Array.from(u).length;
|
|
10724
|
-
}).filter(({ itemUrl: s }) => n.origin === s.origin).filter(({ itemUrl: s }) => n.pathname === s.pathname).sort((s, a) => a.matchingParamsCount - s.matchingParamsCount);
|
|
10724
|
+
}).filter(({ itemUrl: s }) => n.origin === s.origin).filter(({ itemUrl: s }) => n.pathname === s.pathname || n.pathname.includes(s.pathname)).sort((s, a) => a.matchingParamsCount - s.matchingParamsCount);
|
|
10725
10725
|
let i = r.length > 0 ? r[0].item : null;
|
|
10726
10726
|
console.log("matchingItems:", r);
|
|
10727
10727
|
let o = [];
|