@ukpc-lib/react 0.2.33 → 0.2.35
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/GlobalMenu/components/Tooltip.d.ts +8 -0
- package/dist/components/index.cjs +23 -23
- package/dist/components/index.js +709 -656
- 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-c699dba7.cjs → index-01dc8163.cjs} +2 -2
- package/web-components-bundle/{index-9b037068.js → index-30758085.js} +405 -352
- package/web-components-bundle/{index-94f3fa31.cjs → index-3c1963a0.cjs} +82 -82
- package/web-components-bundle/{index-8f3da76f.js → index-b9d26092.js} +5747 -5744
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as
|
|
1
|
+
import { b as Rl, r as x, j as R, a as Ie, d as Al, R as Zf, _ as Qf, s as ed } from "./react-to-web-component-24d28041.js";
|
|
2
2
|
function Ol(e, t) {
|
|
3
3
|
return function() {
|
|
4
4
|
return e.apply(t, arguments);
|
|
@@ -138,8 +138,8 @@ const pd = (e, t, n, { allOwnKeys: r } = {}) => (vn(t, (i, o) => {
|
|
|
138
138
|
});
|
|
139
139
|
};
|
|
140
140
|
return Nt(e) ? r(e) : r(String(e).split(t)), n;
|
|
141
|
-
},
|
|
142
|
-
},
|
|
141
|
+
}, Rd = () => {
|
|
142
|
+
}, Ad = (e, t) => (e = +e, Number.isFinite(e) ? e : t), qr = "abcdefghijklmnopqrstuvwxyz", ns = "0123456789", jl = {
|
|
143
143
|
DIGIT: ns,
|
|
144
144
|
ALPHA: qr,
|
|
145
145
|
ALPHA_DIGIT: qr + qr.toUpperCase() + ns
|
|
@@ -212,8 +212,8 @@ const _d = (e) => {
|
|
|
212
212
|
freezeMethods: Td,
|
|
213
213
|
toObjectSet: Pd,
|
|
214
214
|
toCamelCase: Cd,
|
|
215
|
-
noop:
|
|
216
|
-
toFiniteNumber:
|
|
215
|
+
noop: Rd,
|
|
216
|
+
toFiniteNumber: Ad,
|
|
217
217
|
findKey: Vl,
|
|
218
218
|
global: Ll,
|
|
219
219
|
isContextDefined: Fl,
|
|
@@ -339,14 +339,14 @@ function kr(e, t, n) {
|
|
|
339
339
|
if (!w.isUndefined(p)) {
|
|
340
340
|
if (c.indexOf(p) !== -1)
|
|
341
341
|
throw Error("Circular reference detected in " + m.join("."));
|
|
342
|
-
c.push(p), w.forEach(p, function(y,
|
|
342
|
+
c.push(p), w.forEach(p, function(y, b) {
|
|
343
343
|
(!(w.isUndefined(y) || y === null) && i.call(
|
|
344
344
|
t,
|
|
345
345
|
y,
|
|
346
|
-
w.isString(
|
|
346
|
+
w.isString(b) ? b.trim() : b,
|
|
347
347
|
m,
|
|
348
348
|
d
|
|
349
|
-
)) === !0 && h(y, m ? m.concat(
|
|
349
|
+
)) === !0 && h(y, m ? m.concat(b) : [b]);
|
|
350
350
|
}), c.pop();
|
|
351
351
|
}
|
|
352
352
|
}
|
|
@@ -1448,13 +1448,13 @@ function Th(e) {
|
|
|
1448
1448
|
var i = kh.call(e);
|
|
1449
1449
|
return r && (t ? e[Ht] = n : delete e[Ht]), i;
|
|
1450
1450
|
}
|
|
1451
|
-
var Ph = Object.prototype,
|
|
1452
|
-
function
|
|
1453
|
-
return
|
|
1451
|
+
var Ph = Object.prototype, Rh = Ph.toString;
|
|
1452
|
+
function Ah(e) {
|
|
1453
|
+
return Rh.call(e);
|
|
1454
1454
|
}
|
|
1455
1455
|
var Oh = "[object Null]", Mh = "[object Undefined]", ds = Qn ? Qn.toStringTag : void 0;
|
|
1456
1456
|
function _h(e) {
|
|
1457
|
-
return e == null ? e === void 0 ? Mh : Oh : ds && ds in Object(e) ? Th(e) :
|
|
1457
|
+
return e == null ? e === void 0 ? Mh : Oh : ds && ds in Object(e) ? Th(e) : Ah(e);
|
|
1458
1458
|
}
|
|
1459
1459
|
function Vh(e) {
|
|
1460
1460
|
return e != null && typeof e == "object";
|
|
@@ -1521,17 +1521,17 @@ function Nn(e, t, n) {
|
|
|
1521
1521
|
function y() {
|
|
1522
1522
|
var k = Yr();
|
|
1523
1523
|
if (g(k))
|
|
1524
|
-
return
|
|
1524
|
+
return b(k);
|
|
1525
1525
|
a = setTimeout(y, m(k));
|
|
1526
1526
|
}
|
|
1527
|
-
function
|
|
1527
|
+
function b(k) {
|
|
1528
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;
|
|
1532
1532
|
}
|
|
1533
1533
|
function S() {
|
|
1534
|
-
return a === void 0 ? s :
|
|
1534
|
+
return a === void 0 ? s : b(Yr());
|
|
1535
1535
|
}
|
|
1536
1536
|
function E() {
|
|
1537
1537
|
var k = Yr(), T = g(k);
|
|
@@ -1557,7 +1557,7 @@ function Kh(e, t, n) {
|
|
|
1557
1557
|
});
|
|
1558
1558
|
}
|
|
1559
1559
|
var Yh = !!(typeof window < "u" && window.document && window.document.createElement), Jh = Yh;
|
|
1560
|
-
const Ql = /* @__PURE__ */
|
|
1560
|
+
const Ql = /* @__PURE__ */ Rl(Jh);
|
|
1561
1561
|
var Mt = function() {
|
|
1562
1562
|
return Mt = Object.assign || function(t) {
|
|
1563
1563
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
@@ -1567,20 +1567,20 @@ var Mt = function() {
|
|
|
1567
1567
|
}
|
|
1568
1568
|
return t;
|
|
1569
1569
|
}, Mt.apply(this, arguments);
|
|
1570
|
-
},
|
|
1570
|
+
}, Rt = null, ms = null;
|
|
1571
1571
|
Ql && window.addEventListener("resize", function() {
|
|
1572
|
-
ms !== window.devicePixelRatio && (ms = window.devicePixelRatio,
|
|
1572
|
+
ms !== window.devicePixelRatio && (ms = window.devicePixelRatio, Rt = null);
|
|
1573
1573
|
});
|
|
1574
1574
|
function gs() {
|
|
1575
|
-
if (
|
|
1575
|
+
if (Rt === null) {
|
|
1576
1576
|
if (typeof document > "u")
|
|
1577
|
-
return
|
|
1577
|
+
return Rt = 0, Rt;
|
|
1578
1578
|
var e = document.body, t = document.createElement("div");
|
|
1579
1579
|
t.classList.add("simplebar-hide-scrollbar"), e.appendChild(t);
|
|
1580
1580
|
var n = t.getBoundingClientRect().right;
|
|
1581
|
-
e.removeChild(t),
|
|
1581
|
+
e.removeChild(t), Rt = n;
|
|
1582
1582
|
}
|
|
1583
|
-
return
|
|
1583
|
+
return Rt;
|
|
1584
1584
|
}
|
|
1585
1585
|
function eu(e) {
|
|
1586
1586
|
return !e || !e.ownerDocument || !e.ownerDocument.defaultView ? window : e.ownerDocument.defaultView;
|
|
@@ -1670,11 +1670,11 @@ var Zh = /* @__PURE__ */ Object.freeze({
|
|
|
1670
1670
|
}, this.drag = function(i) {
|
|
1671
1671
|
var o, s, a, l, u, f, c, d, h, p, m;
|
|
1672
1672
|
if (!(!r.draggedAxis || !r.contentWrapperEl)) {
|
|
1673
|
-
var g, y = r.axis[r.draggedAxis].track,
|
|
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
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
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 T = k / (
|
|
1677
|
+
var T = k / (b - v.size), P = T * (S - E);
|
|
1678
1678
|
r.draggedAxis === "x" && r.isRtl && (P = !((m = e.getRtlHelpers()) === null || m === void 0) && m.isScrollingToNegative ? -P : P), r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr] = P;
|
|
1679
1679
|
}
|
|
1680
1680
|
}, this.onEndDrag = function(i) {
|
|
@@ -1831,10 +1831,10 @@ var Zh = /* @__PURE__ */ Object.freeze({
|
|
|
1831
1831
|
t.preventDefault();
|
|
1832
1832
|
var u = Xe(this.el);
|
|
1833
1833
|
this.axis[n].scrollbar.rect = l.scrollbar.el.getBoundingClientRect();
|
|
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,
|
|
1835
|
-
r.contentWrapperEl && (m === -1 ? h > g && (h -= y, r.contentWrapperEl[r.axis[n].scrollOffsetAttr] = h, u.requestAnimationFrame(
|
|
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
|
+
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)));
|
|
1836
1836
|
};
|
|
1837
|
-
|
|
1837
|
+
b();
|
|
1838
1838
|
}
|
|
1839
1839
|
}, e.prototype.getContentElement = function() {
|
|
1840
1840
|
return this.contentEl;
|
|
@@ -1902,13 +1902,13 @@ function ep(e, t) {
|
|
|
1902
1902
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
1903
1903
|
return n;
|
|
1904
1904
|
}
|
|
1905
|
-
var su =
|
|
1906
|
-
var n = e.children, r = e.scrollableNodeProps, i = r === void 0 ? {} : r, o = ep(e, ["children", "scrollableNodeProps"]), s =
|
|
1905
|
+
var su = x.forwardRef(function(e, t) {
|
|
1906
|
+
var n = e.children, r = e.scrollableNodeProps, i = r === void 0 ? {} : r, o = ep(e, ["children", "scrollableNodeProps"]), s = x.useRef(), a = x.useRef(), l = x.useRef(), u = {}, f = {};
|
|
1907
1907
|
Object.keys(o).forEach(function(h) {
|
|
1908
1908
|
Object.prototype.hasOwnProperty.call(kn.defaultOptions, h) ? u[h] = o[h] : f[h] = o[h];
|
|
1909
1909
|
});
|
|
1910
1910
|
var c = pe(pe({}, kn.defaultOptions.classNames), u.classNames), d = pe(pe({}, i), { className: "".concat(c.contentWrapper).concat(i.className ? " ".concat(i.className) : ""), tabIndex: 0, role: "region", "aria-label": u.ariaLabel || kn.defaultOptions.ariaLabel });
|
|
1911
|
-
return
|
|
1911
|
+
return x.useEffect(function() {
|
|
1912
1912
|
var h;
|
|
1913
1913
|
return a.current = d.ref ? d.ref.current : a.current, s.current && (h = new kn(s.current, pe(pe(pe({}, u), a.current && {
|
|
1914
1914
|
scrollableNode: a.current
|
|
@@ -1917,21 +1917,21 @@ var su = b.forwardRef(function(e, t) {
|
|
|
1917
1917
|
})), typeof t == "function" ? t(h) : t && (t.current = h)), function() {
|
|
1918
1918
|
h == null || h.unMount(), h = null, typeof t == "function" && t(null);
|
|
1919
1919
|
};
|
|
1920
|
-
}, []),
|
|
1920
|
+
}, []), x.createElement(
|
|
1921
1921
|
"div",
|
|
1922
1922
|
pe({ "data-simplebar": "init", ref: s }, f),
|
|
1923
|
-
|
|
1923
|
+
x.createElement(
|
|
1924
1924
|
"div",
|
|
1925
1925
|
{ className: c.wrapper },
|
|
1926
|
-
|
|
1926
|
+
x.createElement(
|
|
1927
1927
|
"div",
|
|
1928
1928
|
{ className: c.heightAutoObserverWrapperEl },
|
|
1929
|
-
|
|
1929
|
+
x.createElement("div", { className: c.heightAutoObserverEl })
|
|
1930
1930
|
),
|
|
1931
|
-
|
|
1931
|
+
x.createElement(
|
|
1932
1932
|
"div",
|
|
1933
1933
|
{ className: c.mask },
|
|
1934
|
-
|
|
1934
|
+
x.createElement("div", { className: c.offset }, typeof n == "function" ? n({
|
|
1935
1935
|
scrollableNodeRef: a,
|
|
1936
1936
|
scrollableNodeProps: pe(pe({}, d), { ref: a }),
|
|
1937
1937
|
contentNodeRef: l,
|
|
@@ -1939,23 +1939,23 @@ var su = b.forwardRef(function(e, t) {
|
|
|
1939
1939
|
className: c.contentEl,
|
|
1940
1940
|
ref: l
|
|
1941
1941
|
}
|
|
1942
|
-
}) :
|
|
1942
|
+
}) : x.createElement(
|
|
1943
1943
|
"div",
|
|
1944
1944
|
pe({}, d),
|
|
1945
|
-
|
|
1945
|
+
x.createElement("div", { className: c.contentEl }, n)
|
|
1946
1946
|
))
|
|
1947
1947
|
),
|
|
1948
|
-
|
|
1948
|
+
x.createElement("div", { className: c.placeholder })
|
|
1949
1949
|
),
|
|
1950
|
-
|
|
1950
|
+
x.createElement(
|
|
1951
1951
|
"div",
|
|
1952
1952
|
{ className: "".concat(c.track, " simplebar-horizontal") },
|
|
1953
|
-
|
|
1953
|
+
x.createElement("div", { className: c.scrollbar })
|
|
1954
1954
|
),
|
|
1955
|
-
|
|
1955
|
+
x.createElement(
|
|
1956
1956
|
"div",
|
|
1957
1957
|
{ className: "".concat(c.track, " simplebar-vertical") },
|
|
1958
|
-
|
|
1958
|
+
x.createElement("div", { className: c.scrollbar })
|
|
1959
1959
|
)
|
|
1960
1960
|
);
|
|
1961
1961
|
});
|
|
@@ -2005,7 +2005,7 @@ var Bt = {};
|
|
|
2005
2005
|
* This source code is licensed under the MIT license found in the
|
|
2006
2006
|
* LICENSE file in the root directory of this source tree.
|
|
2007
2007
|
*/
|
|
2008
|
-
var au =
|
|
2008
|
+
var au = x;
|
|
2009
2009
|
function M(e) {
|
|
2010
2010
|
for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, n = 1; n < arguments.length; n++)
|
|
2011
2011
|
t += "&args[]=" + encodeURIComponent(arguments[n]);
|
|
@@ -2157,7 +2157,7 @@ function oe(e) {
|
|
|
2157
2157
|
}
|
|
2158
2158
|
return e;
|
|
2159
2159
|
}
|
|
2160
|
-
var lp = /([A-Z])/g, up = /^ms-/,
|
|
2160
|
+
var lp = /([A-Z])/g, up = /^ms-/, Ri = Array.isArray;
|
|
2161
2161
|
function je(e, t) {
|
|
2162
2162
|
return { insertionMode: e, selectedValue: t };
|
|
2163
2163
|
}
|
|
@@ -2273,7 +2273,7 @@ function fp(e) {
|
|
|
2273
2273
|
}), t;
|
|
2274
2274
|
}
|
|
2275
2275
|
function Zr(e, t, n, r) {
|
|
2276
|
-
e.push(
|
|
2276
|
+
e.push(Ae(n));
|
|
2277
2277
|
var i = n = null, o;
|
|
2278
2278
|
for (o in t)
|
|
2279
2279
|
if (ue.call(t, o)) {
|
|
@@ -2293,7 +2293,7 @@ function Zr(e, t, n, r) {
|
|
|
2293
2293
|
return e.push(">"), $n(e, i, n), typeof n == "string" ? (e.push(oe(n)), null) : n;
|
|
2294
2294
|
}
|
|
2295
2295
|
var dp = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, bs = /* @__PURE__ */ new Map();
|
|
2296
|
-
function
|
|
2296
|
+
function Ae(e) {
|
|
2297
2297
|
var t = bs.get(e);
|
|
2298
2298
|
if (t === void 0) {
|
|
2299
2299
|
if (!dp.test(e))
|
|
@@ -2305,7 +2305,7 @@ function Re(e) {
|
|
|
2305
2305
|
function hp(e, t, n, r, i) {
|
|
2306
2306
|
switch (t) {
|
|
2307
2307
|
case "select":
|
|
2308
|
-
e.push(
|
|
2308
|
+
e.push(Ae("select"));
|
|
2309
2309
|
var o = null, s = null;
|
|
2310
2310
|
for (f in n)
|
|
2311
2311
|
if (ue.call(n, f)) {
|
|
@@ -2327,7 +2327,7 @@ function hp(e, t, n, r, i) {
|
|
|
2327
2327
|
}
|
|
2328
2328
|
return e.push(">"), $n(e, s, o), o;
|
|
2329
2329
|
case "option":
|
|
2330
|
-
s = i.selectedValue, e.push(
|
|
2330
|
+
s = i.selectedValue, e.push(Ae("option"));
|
|
2331
2331
|
var l = a = null, u = null, f = null;
|
|
2332
2332
|
for (o in n)
|
|
2333
2333
|
if (ue.call(n, o)) {
|
|
@@ -2350,7 +2350,7 @@ function hp(e, t, n, r, i) {
|
|
|
2350
2350
|
}
|
|
2351
2351
|
}
|
|
2352
2352
|
if (s != null)
|
|
2353
|
-
if (n = l !== null ? "" + l : fp(a),
|
|
2353
|
+
if (n = l !== null ? "" + l : fp(a), Ri(s)) {
|
|
2354
2354
|
for (r = 0; r < s.length; r++)
|
|
2355
2355
|
if ("" + s[r] === n) {
|
|
2356
2356
|
e.push(' selected=""');
|
|
@@ -2362,7 +2362,7 @@ function hp(e, t, n, r, i) {
|
|
|
2362
2362
|
u && e.push(' selected=""');
|
|
2363
2363
|
return e.push(">"), $n(e, f, a), a;
|
|
2364
2364
|
case "textarea":
|
|
2365
|
-
e.push(
|
|
2365
|
+
e.push(Ae("textarea")), f = s = o = null;
|
|
2366
2366
|
for (a in n)
|
|
2367
2367
|
if (ue.call(n, a) && (l = n[a], l != null))
|
|
2368
2368
|
switch (a) {
|
|
@@ -2388,7 +2388,7 @@ function hp(e, t, n, r, i) {
|
|
|
2388
2388
|
if (o === null && s !== null && (o = s), e.push(">"), f != null) {
|
|
2389
2389
|
if (o != null)
|
|
2390
2390
|
throw Error(M(92));
|
|
2391
|
-
if (
|
|
2391
|
+
if (Ri(f) && 1 < f.length)
|
|
2392
2392
|
throw Error(M(93));
|
|
2393
2393
|
o = "" + f;
|
|
2394
2394
|
}
|
|
@@ -2396,7 +2396,7 @@ function hp(e, t, n, r, i) {
|
|
|
2396
2396
|
` && e.push(`
|
|
2397
2397
|
`), o !== null && e.push(oe("" + o)), null;
|
|
2398
2398
|
case "input":
|
|
2399
|
-
e.push(
|
|
2399
|
+
e.push(Ae("input")), l = f = a = o = null;
|
|
2400
2400
|
for (s in n)
|
|
2401
2401
|
if (ue.call(n, s) && (u = n[s], u != null))
|
|
2402
2402
|
switch (s) {
|
|
@@ -2420,7 +2420,7 @@ function hp(e, t, n, r, i) {
|
|
|
2420
2420
|
}
|
|
2421
2421
|
return f !== null ? de(e, r, "checked", f) : l !== null && de(e, r, "checked", l), o !== null ? de(e, r, "value", o) : a !== null && de(e, r, "value", a), e.push("/>"), null;
|
|
2422
2422
|
case "menuitem":
|
|
2423
|
-
e.push(
|
|
2423
|
+
e.push(Ae("menuitem"));
|
|
2424
2424
|
for (var d in n)
|
|
2425
2425
|
if (ue.call(n, d) && (o = n[d], o != null))
|
|
2426
2426
|
switch (d) {
|
|
@@ -2432,7 +2432,7 @@ function hp(e, t, n, r, i) {
|
|
|
2432
2432
|
}
|
|
2433
2433
|
return e.push(">"), null;
|
|
2434
2434
|
case "title":
|
|
2435
|
-
e.push(
|
|
2435
|
+
e.push(Ae("title")), o = null;
|
|
2436
2436
|
for (c in n)
|
|
2437
2437
|
if (ue.call(n, c) && (s = n[c], s != null))
|
|
2438
2438
|
switch (c) {
|
|
@@ -2447,7 +2447,7 @@ function hp(e, t, n, r, i) {
|
|
|
2447
2447
|
return e.push(">"), o;
|
|
2448
2448
|
case "listing":
|
|
2449
2449
|
case "pre":
|
|
2450
|
-
e.push(
|
|
2450
|
+
e.push(Ae(t)), s = o = null;
|
|
2451
2451
|
for (l in n)
|
|
2452
2452
|
if (ue.call(n, l) && (a = n[l], a != null))
|
|
2453
2453
|
switch (l) {
|
|
@@ -2486,7 +2486,7 @@ function hp(e, t, n, r, i) {
|
|
|
2486
2486
|
case "source":
|
|
2487
2487
|
case "track":
|
|
2488
2488
|
case "wbr":
|
|
2489
|
-
e.push(
|
|
2489
|
+
e.push(Ae(t));
|
|
2490
2490
|
for (var h in n)
|
|
2491
2491
|
if (ue.call(n, h) && (o = n[h], o != null))
|
|
2492
2492
|
switch (h) {
|
|
@@ -2516,7 +2516,7 @@ function hp(e, t, n, r, i) {
|
|
|
2516
2516
|
default:
|
|
2517
2517
|
if (t.indexOf("-") === -1 && typeof n.is != "string")
|
|
2518
2518
|
return Zr(e, n, t, r);
|
|
2519
|
-
e.push(
|
|
2519
|
+
e.push(Ae(t)), s = o = null;
|
|
2520
2520
|
for (u in n)
|
|
2521
2521
|
if (ue.call(n, u) && (a = n[u], a != null))
|
|
2522
2522
|
switch (u) {
|
|
@@ -2607,7 +2607,7 @@ function Ss(e, t, n, r) {
|
|
|
2607
2607
|
return n.generateStaticMarkup ? (e.push(oe(t)), !1) : (t === "" ? e = r : (r && e.push("<!-- -->"), e.push(oe(t)), e = !0), e);
|
|
2608
2608
|
}
|
|
2609
2609
|
var Qt = Object.assign, vp = Symbol.for("react.element"), cu = Symbol.for("react.portal"), fu = Symbol.for("react.fragment"), du = Symbol.for("react.strict_mode"), hu = Symbol.for("react.profiler"), pu = Symbol.for("react.provider"), mu = Symbol.for("react.context"), gu = Symbol.for("react.forward_ref"), yu = Symbol.for("react.suspense"), vu = Symbol.for("react.suspense_list"), xu = Symbol.for("react.memo"), fo = Symbol.for("react.lazy"), xp = Symbol.for("react.scope"), bp = Symbol.for("react.debug_trace_mode"), wp = Symbol.for("react.legacy_hidden"), Sp = Symbol.for("react.default_value"), Es = Symbol.iterator;
|
|
2610
|
-
function
|
|
2610
|
+
function Ai(e) {
|
|
2611
2611
|
if (e == null)
|
|
2612
2612
|
return null;
|
|
2613
2613
|
if (typeof e == "function")
|
|
@@ -2638,11 +2638,11 @@ function Ri(e) {
|
|
|
2638
2638
|
var t = e.render;
|
|
2639
2639
|
return e = e.displayName, e || (e = t.displayName || t.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
2640
2640
|
case xu:
|
|
2641
|
-
return t = e.displayName || null, t !== null ? t :
|
|
2641
|
+
return t = e.displayName || null, t !== null ? t : Ai(e.type) || "Memo";
|
|
2642
2642
|
case fo:
|
|
2643
2643
|
t = e._payload, e = e._init;
|
|
2644
2644
|
try {
|
|
2645
|
-
return
|
|
2645
|
+
return Ai(e(t));
|
|
2646
2646
|
} catch {
|
|
2647
2647
|
}
|
|
2648
2648
|
}
|
|
@@ -2743,14 +2743,14 @@ function Tp(e) {
|
|
|
2743
2743
|
function Pp(e, t) {
|
|
2744
2744
|
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
2745
2745
|
}
|
|
2746
|
-
var
|
|
2746
|
+
var Rp = typeof Object.is == "function" ? Object.is : Pp, Ue = null, ho = null, Un = null, j = null, Xt = !1, nr = !1, un = 0, nt = null, Rr = 0;
|
|
2747
2747
|
function pt() {
|
|
2748
2748
|
if (Ue === null)
|
|
2749
2749
|
throw Error(M(321));
|
|
2750
2750
|
return Ue;
|
|
2751
2751
|
}
|
|
2752
2752
|
function Ps() {
|
|
2753
|
-
if (0 <
|
|
2753
|
+
if (0 < Rr)
|
|
2754
2754
|
throw Error(M(312));
|
|
2755
2755
|
return { memoizedState: null, queue: null, next: null };
|
|
2756
2756
|
}
|
|
@@ -2758,12 +2758,12 @@ function po() {
|
|
|
2758
2758
|
return j === null ? Un === null ? (Xt = !1, Un = j = Ps()) : (Xt = !0, j = Un) : j.next === null ? (Xt = !1, j = j.next = Ps()) : (Xt = !0, j = j.next), j;
|
|
2759
2759
|
}
|
|
2760
2760
|
function mo() {
|
|
2761
|
-
ho = Ue = null, nr = !1, Un = null,
|
|
2761
|
+
ho = Ue = null, nr = !1, Un = null, Rr = 0, j = nt = null;
|
|
2762
2762
|
}
|
|
2763
2763
|
function ku(e, t) {
|
|
2764
2764
|
return typeof t == "function" ? t(e) : t;
|
|
2765
2765
|
}
|
|
2766
|
-
function
|
|
2766
|
+
function Rs(e, t, n) {
|
|
2767
2767
|
if (Ue = pt(), j = po(), Xt) {
|
|
2768
2768
|
var r = j.queue;
|
|
2769
2769
|
if (t = r.dispatch, nt !== null && (n = nt.get(r), n !== void 0)) {
|
|
@@ -2775,9 +2775,9 @@ function As(e, t, n) {
|
|
|
2775
2775
|
}
|
|
2776
2776
|
return [j.memoizedState, t];
|
|
2777
2777
|
}
|
|
2778
|
-
return e = e === ku ? typeof t == "function" ? t() : t : n !== void 0 ? n(t) : t, j.memoizedState = e, e = j.queue = { last: null, dispatch: null }, e = e.dispatch =
|
|
2778
|
+
return e = e === ku ? typeof t == "function" ? t() : t : n !== void 0 ? n(t) : t, j.memoizedState = e, e = j.queue = { last: null, dispatch: null }, e = e.dispatch = Ap.bind(null, Ue, e), [j.memoizedState, e];
|
|
2779
2779
|
}
|
|
2780
|
-
function
|
|
2780
|
+
function As(e, t) {
|
|
2781
2781
|
if (Ue = pt(), j = po(), t = t === void 0 ? null : t, j !== null) {
|
|
2782
2782
|
var n = j.memoizedState;
|
|
2783
2783
|
if (n !== null && t !== null) {
|
|
@@ -2787,7 +2787,7 @@ function Rs(e, t) {
|
|
|
2787
2787
|
r = !1;
|
|
2788
2788
|
else {
|
|
2789
2789
|
for (var i = 0; i < r.length && i < t.length; i++)
|
|
2790
|
-
if (!
|
|
2790
|
+
if (!Rp(t[i], r[i])) {
|
|
2791
2791
|
r = !1;
|
|
2792
2792
|
break e;
|
|
2793
2793
|
}
|
|
@@ -2799,8 +2799,8 @@ function Rs(e, t) {
|
|
|
2799
2799
|
}
|
|
2800
2800
|
return e = e(), j.memoizedState = [e, t], e;
|
|
2801
2801
|
}
|
|
2802
|
-
function
|
|
2803
|
-
if (25 <=
|
|
2802
|
+
function Ap(e, t, n) {
|
|
2803
|
+
if (25 <= Rr)
|
|
2804
2804
|
throw Error(M(301));
|
|
2805
2805
|
if (e === Ue)
|
|
2806
2806
|
if (nr = !0, e = { action: n, next: null }, nt === null && (nt = /* @__PURE__ */ new Map()), n = nt.get(t), n === void 0)
|
|
@@ -2820,15 +2820,15 @@ var Os = { readContext: function(e) {
|
|
|
2820
2820
|
return e._currentValue2;
|
|
2821
2821
|
}, useContext: function(e) {
|
|
2822
2822
|
return pt(), e._currentValue2;
|
|
2823
|
-
}, useMemo:
|
|
2823
|
+
}, useMemo: As, useReducer: Rs, useRef: function(e) {
|
|
2824
2824
|
Ue = pt(), j = po();
|
|
2825
2825
|
var t = j.memoizedState;
|
|
2826
2826
|
return t === null ? (e = { current: e }, j.memoizedState = e) : t;
|
|
2827
2827
|
}, useState: function(e) {
|
|
2828
|
-
return
|
|
2828
|
+
return Rs(ku, e);
|
|
2829
2829
|
}, useInsertionEffect: Tn, useLayoutEffect: function() {
|
|
2830
2830
|
}, useCallback: function(e, t) {
|
|
2831
|
-
return
|
|
2831
|
+
return As(function() {
|
|
2832
2832
|
return e;
|
|
2833
2833
|
}, t);
|
|
2834
2834
|
}, useImperativeHandle: Tn, useEffect: Tn, useDebugValue: Tn, useDeferredValue: function(e) {
|
|
@@ -2865,7 +2865,7 @@ function go(e, t, n, r, i, o, s, a) {
|
|
|
2865
2865
|
e.allPendingTasks++, n === null ? e.pendingRootTasks++ : n.pendingTasks++;
|
|
2866
2866
|
var l = { node: t, ping: function() {
|
|
2867
2867
|
var u = e.pingedTasks;
|
|
2868
|
-
u.push(l), u.length === 1 &&
|
|
2868
|
+
u.push(l), u.length === 1 && Ru(e);
|
|
2869
2869
|
}, blockedBoundary: n, blockedSegment: r, abortSet: i, legacyContext: o, context: s, treeContext: a };
|
|
2870
2870
|
return i.add(l), l;
|
|
2871
2871
|
}
|
|
@@ -2883,7 +2883,7 @@ function ir(e, t) {
|
|
|
2883
2883
|
}
|
|
2884
2884
|
function Ms(e, t, n, r, i) {
|
|
2885
2885
|
for (Ue = {}, ho = t, un = 0, e = n(r, i); nr; )
|
|
2886
|
-
nr = !1, un = 0,
|
|
2886
|
+
nr = !1, un = 0, Rr += 1, j = null, e = n(r, i);
|
|
2887
2887
|
return mo(), e;
|
|
2888
2888
|
}
|
|
2889
2889
|
function _s(e, t, n, r) {
|
|
@@ -2896,7 +2896,7 @@ function _s(e, t, n, r) {
|
|
|
2896
2896
|
n = n.getChildContext();
|
|
2897
2897
|
for (var a in n)
|
|
2898
2898
|
if (!(a in o))
|
|
2899
|
-
throw Error(M(108,
|
|
2899
|
+
throw Error(M(108, Ai(r) || "Unknown", a));
|
|
2900
2900
|
r = Qt({}, s, n);
|
|
2901
2901
|
}
|
|
2902
2902
|
t.legacyContext = r, me(e, t, i), t.legacyContext = s;
|
|
@@ -3042,7 +3042,7 @@ function me(e, t, n) {
|
|
|
3042
3042
|
n = r(n._payload), me(e, t, n);
|
|
3043
3043
|
return;
|
|
3044
3044
|
}
|
|
3045
|
-
if (
|
|
3045
|
+
if (Ri(n)) {
|
|
3046
3046
|
Ls(e, t, n);
|
|
3047
3047
|
return;
|
|
3048
3048
|
}
|
|
@@ -3113,7 +3113,7 @@ function Pu(e, t, n) {
|
|
|
3113
3113
|
t.pendingTasks--, t.forceClientRender || (t.pendingTasks === 0 ? (n.parentFlushed && n.status === 1 && or(t, n), t.parentFlushed && e.completedBoundaries.push(t), t.fallbackAbortableTasks.forEach(Vp, e), t.fallbackAbortableTasks.clear()) : n.parentFlushed && n.status === 1 && (or(t, n), t.completedSegments.length === 1 && t.parentFlushed && e.partialBoundaries.push(t)));
|
|
3114
3114
|
e.allPendingTasks--, e.allPendingTasks === 0 && (e = e.onAllReady, e());
|
|
3115
3115
|
}
|
|
3116
|
-
function
|
|
3116
|
+
function Ru(e) {
|
|
3117
3117
|
if (e.status !== 2) {
|
|
3118
3118
|
var t = yt, n = ei.current;
|
|
3119
3119
|
ei.current = Os;
|
|
@@ -3165,7 +3165,7 @@ function Pn(e, t, n) {
|
|
|
3165
3165
|
for (var s = 0; s < n.length; s++) {
|
|
3166
3166
|
for (i = n[s]; o < i.index; o++)
|
|
3167
3167
|
t.push(r[o]);
|
|
3168
|
-
i =
|
|
3168
|
+
i = Ar(e, t, i);
|
|
3169
3169
|
}
|
|
3170
3170
|
for (; o < r.length - 1; o++)
|
|
3171
3171
|
t.push(r[o]);
|
|
@@ -3174,7 +3174,7 @@ function Pn(e, t, n) {
|
|
|
3174
3174
|
throw Error(M(390));
|
|
3175
3175
|
}
|
|
3176
3176
|
}
|
|
3177
|
-
function
|
|
3177
|
+
function Ar(e, t, n) {
|
|
3178
3178
|
var r = n.boundary;
|
|
3179
3179
|
if (r === null)
|
|
3180
3180
|
return Pn(e, t, n);
|
|
@@ -3189,19 +3189,19 @@ function Rr(e, t, n) {
|
|
|
3189
3189
|
return r.rootSegmentID = e.nextSegmentId++, e.completedBoundaries.push(r), ws(t, e.responseState, r.id), Pn(e, t, n), t.push("<!--/$-->");
|
|
3190
3190
|
if (e.responseState.generateStaticMarkup || t.push("<!--$-->"), n = r.completedSegments, n.length !== 1)
|
|
3191
3191
|
throw Error(M(391));
|
|
3192
|
-
return
|
|
3192
|
+
return Ar(e, t, n[0]), e = e.responseState.generateStaticMarkup ? !0 : t.push("<!--/$-->"), e;
|
|
3193
3193
|
}
|
|
3194
3194
|
function Fs(e, t, n) {
|
|
3195
|
-
return pp(t, e.responseState, n.formatContext, n.id),
|
|
3195
|
+
return pp(t, e.responseState, n.formatContext, n.id), Ar(e, t, n), mp(t, n.formatContext);
|
|
3196
3196
|
}
|
|
3197
3197
|
function Ds(e, t, n) {
|
|
3198
3198
|
for (var r = n.completedSegments, i = 0; i < r.length; i++)
|
|
3199
|
-
|
|
3199
|
+
Au(e, t, n, r[i]);
|
|
3200
3200
|
if (r.length = 0, e = e.responseState, r = n.id, n = n.rootSegmentID, t.push(e.startInlineScript), e.sentCompleteBoundaryFunction ? t.push('$RC("') : (e.sentCompleteBoundaryFunction = !0, t.push('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("')), r === null)
|
|
3201
3201
|
throw Error(M(395));
|
|
3202
3202
|
return n = n.toString(16), t.push(r), t.push('","'), t.push(e.segmentPrefix), t.push(n), t.push('")<\/script>');
|
|
3203
3203
|
}
|
|
3204
|
-
function
|
|
3204
|
+
function Au(e, t, n, r) {
|
|
3205
3205
|
if (r.status === 2)
|
|
3206
3206
|
return !0;
|
|
3207
3207
|
var i = r.id;
|
|
@@ -3216,7 +3216,7 @@ function yo(e, t) {
|
|
|
3216
3216
|
try {
|
|
3217
3217
|
var n = e.completedRootSegment;
|
|
3218
3218
|
if (n !== null && e.pendingRootTasks === 0) {
|
|
3219
|
-
|
|
3219
|
+
Ar(e, t, n), e.completedRootSegment = null;
|
|
3220
3220
|
var r = e.responseState.bootstrapChunks;
|
|
3221
3221
|
for (n = 0; n < r.length - 1; n++)
|
|
3222
3222
|
t.push(r[n]);
|
|
@@ -3262,14 +3262,14 @@ function yo(e, t) {
|
|
|
3262
3262
|
var y = g[o];
|
|
3263
3263
|
e: {
|
|
3264
3264
|
i = e, s = t;
|
|
3265
|
-
var
|
|
3266
|
-
for (a = 0; a <
|
|
3267
|
-
if (!
|
|
3268
|
-
a++,
|
|
3265
|
+
var b = y.completedSegments;
|
|
3266
|
+
for (a = 0; a < b.length; a++)
|
|
3267
|
+
if (!Au(i, s, y, b[a])) {
|
|
3268
|
+
a++, b.splice(0, a);
|
|
3269
3269
|
var v = !1;
|
|
3270
3270
|
break e;
|
|
3271
3271
|
}
|
|
3272
|
-
|
|
3272
|
+
b.splice(0, a), v = !0;
|
|
3273
3273
|
}
|
|
3274
3274
|
if (!v) {
|
|
3275
3275
|
e.destination = null, o++, g.splice(0, o);
|
|
@@ -3308,7 +3308,7 @@ function Ou(e, t, n, r) {
|
|
|
3308
3308
|
} }, l = !1;
|
|
3309
3309
|
if (e = _p(e, yp(n, t ? t.identifierPrefix : void 0), { insertionMode: 1, selectedValue: null }, 1 / 0, Fp, void 0, function() {
|
|
3310
3310
|
l = !0;
|
|
3311
|
-
}, void 0, void 0),
|
|
3311
|
+
}, void 0, void 0), Ru(e), Lp(e, r), e.status === 1)
|
|
3312
3312
|
e.status = 2, a.destroy(e.fatalError);
|
|
3313
3313
|
else if (e.status !== 2 && e.destination === null) {
|
|
3314
3314
|
e.destination = a;
|
|
@@ -3347,7 +3347,7 @@ var vo = {};
|
|
|
3347
3347
|
* This source code is licensed under the MIT license found in the
|
|
3348
3348
|
* LICENSE file in the root directory of this source tree.
|
|
3349
3349
|
*/
|
|
3350
|
-
var Mu =
|
|
3350
|
+
var Mu = x;
|
|
3351
3351
|
function V(e) {
|
|
3352
3352
|
for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, n = 1; n < arguments.length; n++)
|
|
3353
3353
|
t += "&args[]=" + encodeURIComponent(arguments[n]);
|
|
@@ -3595,7 +3595,7 @@ function Fu(e, t, n) {
|
|
|
3595
3595
|
}
|
|
3596
3596
|
t || e.push(mt);
|
|
3597
3597
|
}
|
|
3598
|
-
var Je = C(" "),
|
|
3598
|
+
var Je = C(" "), At = C('="'), mt = C('"'), Ws = C('=""');
|
|
3599
3599
|
function he(e, t, n, r) {
|
|
3600
3600
|
switch (n) {
|
|
3601
3601
|
case "style":
|
|
@@ -3623,16 +3623,16 @@ function he(e, t, n, r) {
|
|
|
3623
3623
|
r && e.push(Je, n, Ws);
|
|
3624
3624
|
break;
|
|
3625
3625
|
case 4:
|
|
3626
|
-
r === !0 ? e.push(Je, n, Ws) : r !== !1 && e.push(Je, n,
|
|
3626
|
+
r === !0 ? e.push(Je, n, Ws) : r !== !1 && e.push(Je, n, At, L(ee(r)), mt);
|
|
3627
3627
|
break;
|
|
3628
3628
|
case 5:
|
|
3629
|
-
isNaN(r) || e.push(Je, n,
|
|
3629
|
+
isNaN(r) || e.push(Je, n, At, L(ee(r)), mt);
|
|
3630
3630
|
break;
|
|
3631
3631
|
case 6:
|
|
3632
|
-
!isNaN(r) && 1 <= r && e.push(Je, n,
|
|
3632
|
+
!isNaN(r) && 1 <= r && e.push(Je, n, At, L(ee(r)), mt);
|
|
3633
3633
|
break;
|
|
3634
3634
|
default:
|
|
3635
|
-
t.sanitizeURL && (r = "" + r), e.push(Je, n,
|
|
3635
|
+
t.sanitizeURL && (r = "" + r), e.push(Je, n, At, L(ee(r)), mt);
|
|
3636
3636
|
}
|
|
3637
3637
|
} else if (Lu(n)) {
|
|
3638
3638
|
switch (typeof r) {
|
|
@@ -3643,7 +3643,7 @@ function he(e, t, n, r) {
|
|
|
3643
3643
|
if (t = n.toLowerCase().slice(0, 5), t !== "data-" && t !== "aria-")
|
|
3644
3644
|
return;
|
|
3645
3645
|
}
|
|
3646
|
-
e.push(Je, L(n),
|
|
3646
|
+
e.push(Je, L(n), At, L(ee(r)), mt);
|
|
3647
3647
|
}
|
|
3648
3648
|
}
|
|
3649
3649
|
}
|
|
@@ -3919,7 +3919,7 @@ function tm(e, t, n, r, i) {
|
|
|
3919
3919
|
case "suppressHydrationWarning":
|
|
3920
3920
|
break;
|
|
3921
3921
|
default:
|
|
3922
|
-
Lu(u) && typeof a != "function" && typeof a != "symbol" && e.push(Je, L(u),
|
|
3922
|
+
Lu(u) && typeof a != "function" && typeof a != "symbol" && e.push(Je, L(u), At, L(ee(a)), mt);
|
|
3923
3923
|
}
|
|
3924
3924
|
return e.push(Ze), qn(e, s, o), o;
|
|
3925
3925
|
}
|
|
@@ -3933,7 +3933,7 @@ function Gs(e, t, n) {
|
|
|
3933
3933
|
throw Error(V(395));
|
|
3934
3934
|
return A(e, n), $(e, lm);
|
|
3935
3935
|
}
|
|
3936
|
-
var mm = C('<div hidden id="'), gm = C('">'), ym = C("</div>"), vm = C('<svg aria-hidden="true" style="display:none" id="'), xm = C('">'), bm = C("</svg>"), wm = C('<math aria-hidden="true" style="display:none" id="'), Sm = C('">'), Em = C("</math>"), Cm = C('<table hidden id="'), km = C('">'), Tm = C("</table>"), Pm = C('<table hidden><tbody id="'),
|
|
3936
|
+
var mm = C('<div hidden id="'), gm = C('">'), ym = C("</div>"), vm = C('<svg aria-hidden="true" style="display:none" id="'), xm = C('">'), bm = C("</svg>"), wm = C('<math aria-hidden="true" style="display:none" id="'), Sm = C('">'), Em = C("</math>"), Cm = C('<table hidden id="'), km = C('">'), Tm = C("</table>"), Pm = C('<table hidden><tbody id="'), Rm = C('">'), Am = C("</tbody></table>"), Om = C('<table hidden><tr id="'), Mm = C('">'), _m = C("</tr></table>"), Vm = C('<table hidden><colgroup id="'), Lm = C('">'), Fm = C("</colgroup></table>");
|
|
3937
3937
|
function Dm(e, t, n, r) {
|
|
3938
3938
|
switch (n.insertionMode) {
|
|
3939
3939
|
case 0:
|
|
@@ -3946,7 +3946,7 @@ function Dm(e, t, n, r) {
|
|
|
3946
3946
|
case 4:
|
|
3947
3947
|
return A(e, Cm), A(e, t.segmentPrefix), A(e, L(r.toString(16))), $(e, km);
|
|
3948
3948
|
case 5:
|
|
3949
|
-
return A(e, Pm), A(e, t.segmentPrefix), A(e, L(r.toString(16))), $(e,
|
|
3949
|
+
return A(e, Pm), A(e, t.segmentPrefix), A(e, L(r.toString(16))), $(e, Rm);
|
|
3950
3950
|
case 6:
|
|
3951
3951
|
return A(e, Om), A(e, t.segmentPrefix), A(e, L(r.toString(16))), $(e, Mm);
|
|
3952
3952
|
case 7:
|
|
@@ -3970,7 +3970,7 @@ function jm(e, t) {
|
|
|
3970
3970
|
case 4:
|
|
3971
3971
|
return $(e, Tm);
|
|
3972
3972
|
case 5:
|
|
3973
|
-
return $(e,
|
|
3973
|
+
return $(e, Am);
|
|
3974
3974
|
case 6:
|
|
3975
3975
|
return $(e, _m);
|
|
3976
3976
|
case 7:
|
|
@@ -4202,7 +4202,7 @@ function lg(e, t, n) {
|
|
|
4202
4202
|
function ug() {
|
|
4203
4203
|
throw Error(V(394));
|
|
4204
4204
|
}
|
|
4205
|
-
function
|
|
4205
|
+
function Rn() {
|
|
4206
4206
|
}
|
|
4207
4207
|
var ta = { readContext: function(e) {
|
|
4208
4208
|
return e._currentValue;
|
|
@@ -4214,12 +4214,12 @@ var ta = { readContext: function(e) {
|
|
|
4214
4214
|
return t === null ? (e = { current: e }, I.memoizedState = e) : t;
|
|
4215
4215
|
}, useState: function(e) {
|
|
4216
4216
|
return Qs(Ju, e);
|
|
4217
|
-
}, useInsertionEffect:
|
|
4217
|
+
}, useInsertionEffect: Rn, useLayoutEffect: function() {
|
|
4218
4218
|
}, useCallback: function(e, t) {
|
|
4219
4219
|
return ea(function() {
|
|
4220
4220
|
return e;
|
|
4221
4221
|
}, t);
|
|
4222
|
-
}, useImperativeHandle:
|
|
4222
|
+
}, useImperativeHandle: Rn, useEffect: Rn, useDebugValue: Rn, useDeferredValue: function(e) {
|
|
4223
4223
|
return gt(), e;
|
|
4224
4224
|
}, useTransition: function() {
|
|
4225
4225
|
return gt(), [!1, ug];
|
|
@@ -4534,7 +4534,7 @@ function ec(e) {
|
|
|
4534
4534
|
}
|
|
4535
4535
|
}
|
|
4536
4536
|
}
|
|
4537
|
-
function
|
|
4537
|
+
function An(e, t, n) {
|
|
4538
4538
|
switch (n.parentFlushed = !0, n.status) {
|
|
4539
4539
|
case 0:
|
|
4540
4540
|
var r = n.id = e.nextSegmentId++;
|
|
@@ -4560,15 +4560,15 @@ function Rn(e, t, n) {
|
|
|
4560
4560
|
function _r(e, t, n) {
|
|
4561
4561
|
var r = n.boundary;
|
|
4562
4562
|
if (r === null)
|
|
4563
|
-
return
|
|
4563
|
+
return An(e, t, n);
|
|
4564
4564
|
if (r.parentFlushed = !0, r.forceClientRender)
|
|
4565
|
-
r = r.errorDigest, $(t, um), A(t, fm), r && (A(t, hm), A(t, L(ee(r))), A(t, dm)), $(t, pm),
|
|
4565
|
+
r = r.errorDigest, $(t, um), A(t, fm), r && (A(t, hm), A(t, L(ee(r))), A(t, dm)), $(t, pm), An(e, t, n);
|
|
4566
4566
|
else if (0 < r.pendingTasks) {
|
|
4567
4567
|
r.rootSegmentID = e.nextSegmentId++, 0 < r.completedSegments.length && e.partialBoundaries.push(r);
|
|
4568
4568
|
var i = e.responseState, o = i.nextSuspenseID++;
|
|
4569
|
-
i = C(i.boundaryPrefix + o.toString(16)), r = r.id = i, Gs(t, e.responseState, r),
|
|
4569
|
+
i = C(i.boundaryPrefix + o.toString(16)), r = r.id = i, Gs(t, e.responseState, r), An(e, t, n);
|
|
4570
4570
|
} else if (r.byteSize > e.progressiveChunkSize)
|
|
4571
|
-
r.rootSegmentID = e.nextSegmentId++, e.completedBoundaries.push(r), Gs(t, e.responseState, r.id),
|
|
4571
|
+
r.rootSegmentID = e.nextSegmentId++, e.completedBoundaries.push(r), Gs(t, e.responseState, r.id), An(e, t, n);
|
|
4572
4572
|
else {
|
|
4573
4573
|
if ($(t, sm), n = r.completedSegments, n.length !== 1)
|
|
4574
4574
|
throw Error(V(391));
|
|
@@ -4756,35 +4756,35 @@ var yg = function() {
|
|
|
4756
4756
|
};
|
|
4757
4757
|
rc.exports = yg();
|
|
4758
4758
|
var G = rc.exports;
|
|
4759
|
-
const Ce = /* @__PURE__ */
|
|
4759
|
+
const Ce = /* @__PURE__ */ Rl(G);
|
|
4760
4760
|
var vg = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4761
4761
|
function sc(e, t) {
|
|
4762
4762
|
return e(t = { exports: {} }, t.exports), t.exports;
|
|
4763
4763
|
}
|
|
4764
4764
|
var xg = sc(function(e) {
|
|
4765
4765
|
(function(t) {
|
|
4766
|
-
var n = function(g, y,
|
|
4766
|
+
var n = function(g, y, b) {
|
|
4767
4767
|
if (!l(y) || f(y) || c(y) || d(y) || a(y))
|
|
4768
4768
|
return y;
|
|
4769
4769
|
var v, S = 0, E = 0;
|
|
4770
4770
|
if (u(y))
|
|
4771
4771
|
for (v = [], E = y.length; S < E; S++)
|
|
4772
|
-
v.push(n(g, y[S],
|
|
4772
|
+
v.push(n(g, y[S], b));
|
|
4773
4773
|
else
|
|
4774
4774
|
for (var k in v = {}, y)
|
|
4775
|
-
Object.prototype.hasOwnProperty.call(y, k) && (v[g(k,
|
|
4775
|
+
Object.prototype.hasOwnProperty.call(y, k) && (v[g(k, b)] = n(g, y[k], b));
|
|
4776
4776
|
return v;
|
|
4777
4777
|
}, r = function(g) {
|
|
4778
|
-
return h(g) ? g : (g = g.replace(/[\-_\s]+(.)?/g, function(y,
|
|
4779
|
-
return
|
|
4778
|
+
return h(g) ? g : (g = g.replace(/[\-_\s]+(.)?/g, function(y, b) {
|
|
4779
|
+
return b ? b.toUpperCase() : "";
|
|
4780
4780
|
})).substr(0, 1).toLowerCase() + g.substr(1);
|
|
4781
4781
|
}, i = function(g) {
|
|
4782
4782
|
var y = r(g);
|
|
4783
4783
|
return y.substr(0, 1).toUpperCase() + y.substr(1);
|
|
4784
4784
|
}, o = function(g, y) {
|
|
4785
|
-
return function(
|
|
4785
|
+
return function(b, v) {
|
|
4786
4786
|
var S = (v = v || {}).separator || "_", E = v.split || /(?=[A-Z])/;
|
|
4787
|
-
return
|
|
4787
|
+
return b.split(E).join(S);
|
|
4788
4788
|
}(g, y).toLowerCase();
|
|
4789
4789
|
}, s = Object.prototype.toString, a = function(g) {
|
|
4790
4790
|
return typeof g == "function";
|
|
@@ -4801,9 +4801,9 @@ var xg = sc(function(e) {
|
|
|
4801
4801
|
}, h = function(g) {
|
|
4802
4802
|
return (g -= 0) == g;
|
|
4803
4803
|
}, p = function(g, y) {
|
|
4804
|
-
var
|
|
4805
|
-
return typeof
|
|
4806
|
-
return
|
|
4804
|
+
var b = y && "process" in y ? y.process : y;
|
|
4805
|
+
return typeof b != "function" ? g : function(v, S) {
|
|
4806
|
+
return b(v, g, S);
|
|
4807
4807
|
};
|
|
4808
4808
|
}, m = { camelize: r, decamelize: o, pascalize: i, depascalize: o, camelizeKeys: function(g, y) {
|
|
4809
4809
|
return n(p(r, y), g);
|
|
@@ -4883,26 +4883,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4883
4883
|
n = o[r], t.indexOf(n) >= 0 || Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
4884
4884
|
}
|
|
4885
4885
|
return i;
|
|
4886
|
-
}, Tg =
|
|
4886
|
+
}, Tg = x.createContext(null);
|
|
4887
4887
|
function Ii(e) {
|
|
4888
4888
|
var t = e.children, n = lc(e, ["children"]);
|
|
4889
4889
|
return typeof t != "string" && (t = hg(t)), Ie.createElement("template", ac({}, n, { dangerouslySetInnerHTML: { __html: t } }));
|
|
4890
4890
|
}
|
|
4891
4891
|
function Ni(e) {
|
|
4892
4892
|
var t = e.root, n = e.children;
|
|
4893
|
-
return
|
|
4893
|
+
return Al.createPortal(n, t);
|
|
4894
4894
|
}
|
|
4895
4895
|
function Pg(e) {
|
|
4896
|
-
var t =
|
|
4897
|
-
var i, o, s = n.mode, a = n.delegatesFocus, l = n.styleSheets, u = n.ssr, f = n.children, c = lc(n, ["mode", "delegatesFocus", "styleSheets", "ssr", "children"]), d = (o =
|
|
4896
|
+
var t = x.forwardRef(function(n, r) {
|
|
4897
|
+
var i, o, s = n.mode, a = n.delegatesFocus, l = n.styleSheets, u = n.ssr, f = n.children, c = lc(n, ["mode", "delegatesFocus", "styleSheets", "ssr", "children"]), d = (o = x.useRef((i = r) && i.current), x.useEffect(function() {
|
|
4898
4898
|
i && (i.current = o.current);
|
|
4899
|
-
}, [i]), o), h =
|
|
4900
|
-
return
|
|
4899
|
+
}, [i]), o), h = x.useState(null), p = Cg(h, 2), m = p[0], g = p[1], y = "node_".concat(s).concat(a);
|
|
4900
|
+
return x.useLayoutEffect(function() {
|
|
4901
4901
|
if (d.current)
|
|
4902
4902
|
try {
|
|
4903
4903
|
if (typeof r == "function" && r(d.current), u) {
|
|
4904
|
-
var
|
|
4905
|
-
return void g(
|
|
4904
|
+
var b = d.current.shadowRoot;
|
|
4905
|
+
return void g(b);
|
|
4906
4906
|
}
|
|
4907
4907
|
var v = d.current.attachShadow({ mode: s, delegatesFocus: a });
|
|
4908
4908
|
l.length > 0 && (v.adoptedStyleSheets = l), g(v);
|
|
@@ -4924,7 +4924,7 @@ function Pg(e) {
|
|
|
4924
4924
|
}
|
|
4925
4925
|
Ii.propTypes = { children: Ce.oneOfType([Ce.string, Ce.node]) }, Ii.defaultProps = { children: "" }, Ni.propTypes = { root: Ce.object.isRequired, children: Ce.node }, Ni.defaultProps = { children: null };
|
|
4926
4926
|
var ai = /* @__PURE__ */ new Map();
|
|
4927
|
-
function
|
|
4927
|
+
function Rg() {
|
|
4928
4928
|
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) {
|
|
4929
4929
|
return r.children;
|
|
4930
4930
|
};
|
|
@@ -4933,16 +4933,16 @@ function Ag() {
|
|
|
4933
4933
|
return ai.has(s) || ai.set(s, Pg({ tag: o, render: n })), ai.get(s);
|
|
4934
4934
|
} });
|
|
4935
4935
|
}
|
|
4936
|
-
var
|
|
4936
|
+
var Ag = Rg();
|
|
4937
4937
|
const Og = `*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}
|
|
4938
4938
|
`;
|
|
4939
4939
|
function Mg({ children: e, styles: t = [], ...n }) {
|
|
4940
|
-
return /* @__PURE__ */ R.jsxs(
|
|
4940
|
+
return /* @__PURE__ */ R.jsxs(Ag.div, { ...n, children: [
|
|
4941
4941
|
[Og, ...t].map((r, i) => /* @__PURE__ */ R.jsx("style", { type: "text/css", children: r }, i)),
|
|
4942
4942
|
e
|
|
4943
4943
|
] });
|
|
4944
4944
|
}
|
|
4945
|
-
const
|
|
4945
|
+
const Ro = (e) => typeof e == "number" && !isNaN(e), tn = (e) => typeof e == "string", uc = (e) => typeof e == "function", _g = (e) => x.isValidElement(e) || tn(e) || uc(e) || Ro(e), _e = /* @__PURE__ */ new Map();
|
|
4946
4946
|
let Bi = [];
|
|
4947
4947
|
const ca = /* @__PURE__ */ new Set(), cc = () => _e.size > 0;
|
|
4948
4948
|
function Vg(e, t) {
|
|
@@ -4967,7 +4967,7 @@ function fa(e, t) {
|
|
|
4967
4967
|
let Fg = 1;
|
|
4968
4968
|
const fc = () => "" + Fg++;
|
|
4969
4969
|
function Dg(e) {
|
|
4970
|
-
return e && (tn(e.toastId) ||
|
|
4970
|
+
return e && (tn(e.toastId) || Ro(e.toastId)) ? e.toastId : fc();
|
|
4971
4971
|
}
|
|
4972
4972
|
function nn(e, t) {
|
|
4973
4973
|
return Lg(e, t), t.toastId;
|
|
@@ -4995,7 +4995,7 @@ B.loading = (e, t) => nn(e, fr("default", { isLoading: !0, autoClose: !1, closeO
|
|
|
4995
4995
|
(function(t) {
|
|
4996
4996
|
var n;
|
|
4997
4997
|
if (cc()) {
|
|
4998
|
-
if (t == null || tn(n = t) ||
|
|
4998
|
+
if (t == null || tn(n = t) || Ro(n))
|
|
4999
4999
|
_e.forEach((i) => {
|
|
5000
5000
|
i.removeToast(t);
|
|
5001
5001
|
});
|
|
@@ -5144,7 +5144,7 @@ const Ig = {
|
|
|
5144
5144
|
color: $i.danger
|
|
5145
5145
|
}
|
|
5146
5146
|
});
|
|
5147
|
-
},
|
|
5147
|
+
}, iw = (e) => {
|
|
5148
5148
|
B(e, {
|
|
5149
5149
|
closeButton: Ng,
|
|
5150
5150
|
toastId: "notify",
|
|
@@ -5159,13 +5159,13 @@ const Ig = {
|
|
|
5159
5159
|
color: $i.textPrimary
|
|
5160
5160
|
}
|
|
5161
5161
|
});
|
|
5162
|
-
}, dc =
|
|
5162
|
+
}, dc = x.createContext({
|
|
5163
5163
|
transformPagePoint: (e) => e,
|
|
5164
5164
|
isStatic: !1,
|
|
5165
5165
|
reducedMotion: "never"
|
|
5166
|
-
}), Vr =
|
|
5166
|
+
}), Vr = x.createContext({}), Ao = x.createContext(null), Lr = typeof document < "u", $g = Lr ? x.useLayoutEffect : x.useEffect, hc = x.createContext({ strict: !1 }), Oo = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), zg = "framerAppearId", pc = "data-" + Oo(zg);
|
|
5167
5167
|
function Ug(e, t, n, r) {
|
|
5168
|
-
const { visualElement: i } =
|
|
5168
|
+
const { visualElement: i } = x.useContext(Vr), o = x.useContext(hc), s = x.useContext(Ao), a = x.useContext(dc).reducedMotion, l = x.useRef();
|
|
5169
5169
|
r = r || o.renderer, !l.current && r && (l.current = r(e, {
|
|
5170
5170
|
visualState: t,
|
|
5171
5171
|
parent: i,
|
|
@@ -5175,13 +5175,13 @@ function Ug(e, t, n, r) {
|
|
|
5175
5175
|
reducedMotionConfig: a
|
|
5176
5176
|
}));
|
|
5177
5177
|
const u = l.current;
|
|
5178
|
-
|
|
5178
|
+
x.useInsertionEffect(() => {
|
|
5179
5179
|
u && u.update(n, s);
|
|
5180
5180
|
});
|
|
5181
|
-
const f =
|
|
5181
|
+
const f = x.useRef(!!(n[pc] && !window.HandoffComplete));
|
|
5182
5182
|
return $g(() => {
|
|
5183
5183
|
u && (u.render(), f.current && u.animationState && u.animationState.animateChanges());
|
|
5184
|
-
}),
|
|
5184
|
+
}), x.useEffect(() => {
|
|
5185
5185
|
u && (u.updateFeatures(), !f.current && u.animationState && u.animationState.animateChanges(), f.current && (f.current = !1, window.HandoffComplete = !0));
|
|
5186
5186
|
}), u;
|
|
5187
5187
|
}
|
|
@@ -5189,7 +5189,7 @@ function _t(e) {
|
|
|
5189
5189
|
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
|
|
5190
5190
|
}
|
|
5191
5191
|
function Wg(e, t, n) {
|
|
5192
|
-
return
|
|
5192
|
+
return x.useCallback(
|
|
5193
5193
|
(r) => {
|
|
5194
5194
|
r && e.mount && e.mount(r), t && (r ? t.mount(r) : t.unmount()), n && (typeof n == "function" ? n(r) : _t(n) && (n.current = r));
|
|
5195
5195
|
},
|
|
@@ -5233,8 +5233,8 @@ function Hg(e, t) {
|
|
|
5233
5233
|
return e.inherit !== !1 ? t : {};
|
|
5234
5234
|
}
|
|
5235
5235
|
function qg(e) {
|
|
5236
|
-
const { initial: t, animate: n } = Hg(e,
|
|
5237
|
-
return
|
|
5236
|
+
const { initial: t, animate: n } = Hg(e, x.useContext(Vr));
|
|
5237
|
+
return x.useMemo(() => ({ initial: t, animate: n }), [da(t), da(n)]);
|
|
5238
5238
|
}
|
|
5239
5239
|
function da(e) {
|
|
5240
5240
|
return Array.isArray(e) ? e.join(" ") : e;
|
|
@@ -5270,19 +5270,19 @@ function Gg(e) {
|
|
|
5270
5270
|
...e[t]
|
|
5271
5271
|
};
|
|
5272
5272
|
}
|
|
5273
|
-
const gc =
|
|
5273
|
+
const gc = x.createContext({}), yc = x.createContext({}), Xg = Symbol.for("motionComponentSymbol");
|
|
5274
5274
|
function Kg({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVisualState: r, Component: i }) {
|
|
5275
5275
|
e && Gg(e);
|
|
5276
5276
|
function o(a, l) {
|
|
5277
5277
|
let u;
|
|
5278
5278
|
const f = {
|
|
5279
|
-
...
|
|
5279
|
+
...x.useContext(dc),
|
|
5280
5280
|
...a,
|
|
5281
5281
|
layoutId: Yg(a)
|
|
5282
5282
|
}, { isStatic: c } = f, d = qg(a), h = r(a, c);
|
|
5283
5283
|
if (!c && Lr) {
|
|
5284
5284
|
d.visualElement = Ug(i, h, f, t);
|
|
5285
|
-
const p =
|
|
5285
|
+
const p = x.useContext(yc), m = x.useContext(hc).strict;
|
|
5286
5286
|
d.visualElement && (u = d.visualElement.loadFeatures(
|
|
5287
5287
|
// Note: Pass the full new combined props to correctly re-render dynamic feature components.
|
|
5288
5288
|
f,
|
|
@@ -5291,18 +5291,18 @@ function Kg({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
|
|
|
5291
5291
|
p
|
|
5292
5292
|
));
|
|
5293
5293
|
}
|
|
5294
|
-
return
|
|
5294
|
+
return x.createElement(
|
|
5295
5295
|
Vr.Provider,
|
|
5296
5296
|
{ value: d },
|
|
5297
|
-
u && d.visualElement ?
|
|
5297
|
+
u && d.visualElement ? x.createElement(u, { visualElement: d.visualElement, ...f }) : null,
|
|
5298
5298
|
n(i, a, Wg(h, d.visualElement, l), h, c, d.visualElement)
|
|
5299
5299
|
);
|
|
5300
5300
|
}
|
|
5301
|
-
const s =
|
|
5301
|
+
const s = x.forwardRef(o);
|
|
5302
5302
|
return s[Xg] = i, s;
|
|
5303
5303
|
}
|
|
5304
5304
|
function Yg({ layoutId: e }) {
|
|
5305
|
-
const t =
|
|
5305
|
+
const t = x.useContext(gc).id;
|
|
5306
5306
|
return t && e !== void 0 ? t + "-" + e : e;
|
|
5307
5307
|
}
|
|
5308
5308
|
function Jg(e) {
|
|
@@ -5535,7 +5535,7 @@ function Ec(e, t, n) {
|
|
|
5535
5535
|
!fe(t[r]) && !vc(r, n) && (e[r] = t[r]);
|
|
5536
5536
|
}
|
|
5537
5537
|
function ly({ transformTemplate: e }, t, n) {
|
|
5538
|
-
return
|
|
5538
|
+
return x.useMemo(() => {
|
|
5539
5539
|
const r = Fo();
|
|
5540
5540
|
return Lo(r, t, { enableHardwareAcceleration: !n }, e), Object.assign({}, r.vars, r.style);
|
|
5541
5541
|
}, [t]);
|
|
@@ -5645,7 +5645,7 @@ const kc = () => ({
|
|
|
5645
5645
|
attrs: {}
|
|
5646
5646
|
}), jo = (e) => typeof e == "string" && e.toLowerCase() === "svg";
|
|
5647
5647
|
function vy(e, t, n, r) {
|
|
5648
|
-
const i =
|
|
5648
|
+
const i = x.useMemo(() => {
|
|
5649
5649
|
const o = kc();
|
|
5650
5650
|
return Do(o, t, { enableHardwareAcceleration: !1 }, jo(r), e.transformTemplate), {
|
|
5651
5651
|
...o.attrs,
|
|
@@ -5664,8 +5664,8 @@ function xy(e = !1) {
|
|
|
5664
5664
|
...hy(r, typeof n == "string", e),
|
|
5665
5665
|
...l,
|
|
5666
5666
|
ref: i
|
|
5667
|
-
}, { children: c } = r, d =
|
|
5668
|
-
return
|
|
5667
|
+
}, { children: c } = r, d = x.useMemo(() => fe(c) ? c.get() : c, [c]);
|
|
5668
|
+
return x.createElement(n, {
|
|
5669
5669
|
...f,
|
|
5670
5670
|
children: d
|
|
5671
5671
|
});
|
|
@@ -5701,7 +5701,7 @@ const Pc = /* @__PURE__ */ new Set([
|
|
|
5701
5701
|
"textLength",
|
|
5702
5702
|
"lengthAdjust"
|
|
5703
5703
|
]);
|
|
5704
|
-
function
|
|
5704
|
+
function Rc(e, t, n, r) {
|
|
5705
5705
|
Tc(e, t, void 0, r);
|
|
5706
5706
|
for (const i in t.attrs)
|
|
5707
5707
|
e.setAttribute(Pc.has(i) ? i : Oo(i), t.attrs[i]);
|
|
@@ -5712,7 +5712,7 @@ function Io(e, t) {
|
|
|
5712
5712
|
(fe(n[i]) || t.style && fe(t.style[i]) || vc(i, e)) && (r[i] = n[i]);
|
|
5713
5713
|
return r;
|
|
5714
5714
|
}
|
|
5715
|
-
function
|
|
5715
|
+
function Ac(e, t) {
|
|
5716
5716
|
const n = Io(e, t);
|
|
5717
5717
|
for (const r in e)
|
|
5718
5718
|
if (fe(e[r]) || fe(t[r])) {
|
|
@@ -5725,7 +5725,7 @@ function No(e, t, n, r = {}, i = {}) {
|
|
|
5725
5725
|
return typeof t == "function" && (t = t(n !== void 0 ? n : e.custom, r, i)), typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function" && (t = t(n !== void 0 ? n : e.custom, r, i)), t;
|
|
5726
5726
|
}
|
|
5727
5727
|
function by(e) {
|
|
5728
|
-
const t =
|
|
5728
|
+
const t = x.useRef(null);
|
|
5729
5729
|
return t.current === null && (t.current = e()), t.current;
|
|
5730
5730
|
}
|
|
5731
5731
|
const pr = (e) => Array.isArray(e), wy = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), Sy = (e) => pr(e) ? e[e.length - 1] || 0 : e;
|
|
@@ -5741,7 +5741,7 @@ function Ey({ scrapeMotionValuesFromProps: e, createRenderState: t, onMount: n }
|
|
|
5741
5741
|
return n && (s.mount = (a) => n(r, a, s)), s;
|
|
5742
5742
|
}
|
|
5743
5743
|
const Oc = (e) => (t, n) => {
|
|
5744
|
-
const r =
|
|
5744
|
+
const r = x.useContext(Vr), i = x.useContext(Ao), o = () => Ey(e, t, r, i);
|
|
5745
5745
|
return n ? o() : by(o);
|
|
5746
5746
|
};
|
|
5747
5747
|
function Cy(e, t, n, r) {
|
|
@@ -5759,16 +5759,16 @@ function Cy(e, t, n, r) {
|
|
|
5759
5759
|
if (!p)
|
|
5760
5760
|
return;
|
|
5761
5761
|
const { transitionEnd: m, transition: g, ...y } = p;
|
|
5762
|
-
for (const
|
|
5763
|
-
let v = y[
|
|
5762
|
+
for (const b in y) {
|
|
5763
|
+
let v = y[b];
|
|
5764
5764
|
if (Array.isArray(v)) {
|
|
5765
5765
|
const S = f ? v.length - 1 : 0;
|
|
5766
5766
|
v = v[S];
|
|
5767
5767
|
}
|
|
5768
|
-
v !== null && (i[
|
|
5768
|
+
v !== null && (i[b] = v);
|
|
5769
5769
|
}
|
|
5770
|
-
for (const
|
|
5771
|
-
i[
|
|
5770
|
+
for (const b in m)
|
|
5771
|
+
i[b] = m[b];
|
|
5772
5772
|
}), i;
|
|
5773
5773
|
}
|
|
5774
5774
|
const q = (e) => e;
|
|
@@ -5847,9 +5847,9 @@ function Py(e, t) {
|
|
|
5847
5847
|
return c[d] = (p, m = !1, g = !1) => (n || l(), h.schedule(p, m, g)), c;
|
|
5848
5848
|
}, {}), cancel: (c) => _n.forEach((d) => o[d].cancel(c)), state: i, steps: o };
|
|
5849
5849
|
}
|
|
5850
|
-
const { schedule: z, cancel: He, state: re, steps: li } = Py(typeof requestAnimationFrame < "u" ? requestAnimationFrame : q, !0),
|
|
5850
|
+
const { schedule: z, cancel: He, state: re, steps: li } = Py(typeof requestAnimationFrame < "u" ? requestAnimationFrame : q, !0), Ry = {
|
|
5851
5851
|
useVisualState: Oc({
|
|
5852
|
-
scrapeMotionValuesFromProps:
|
|
5852
|
+
scrapeMotionValuesFromProps: Ac,
|
|
5853
5853
|
createRenderState: kc,
|
|
5854
5854
|
onMount: (e, t, { renderState: n, latestValues: r }) => {
|
|
5855
5855
|
z.read(() => {
|
|
@@ -5864,11 +5864,11 @@ const { schedule: z, cancel: He, state: re, steps: li } = Py(typeof requestAnima
|
|
|
5864
5864
|
};
|
|
5865
5865
|
}
|
|
5866
5866
|
}), z.render(() => {
|
|
5867
|
-
Do(n, r, { enableHardwareAcceleration: !1 }, jo(t.tagName), e.transformTemplate),
|
|
5867
|
+
Do(n, r, { enableHardwareAcceleration: !1 }, jo(t.tagName), e.transformTemplate), Rc(t, n);
|
|
5868
5868
|
});
|
|
5869
5869
|
}
|
|
5870
5870
|
})
|
|
5871
|
-
},
|
|
5871
|
+
}, Ay = {
|
|
5872
5872
|
useVisualState: Oc({
|
|
5873
5873
|
scrapeMotionValuesFromProps: Io,
|
|
5874
5874
|
createRenderState: Fo
|
|
@@ -5876,7 +5876,7 @@ const { schedule: z, cancel: He, state: re, steps: li } = Py(typeof requestAnima
|
|
|
5876
5876
|
};
|
|
5877
5877
|
function Oy(e, { forwardMotionProps: t = !1 }, n, r) {
|
|
5878
5878
|
return {
|
|
5879
|
-
...Vo(e) ?
|
|
5879
|
+
...Vo(e) ? Ry : Ay,
|
|
5880
5880
|
preloadedFeatures: n,
|
|
5881
5881
|
useRender: xy(t),
|
|
5882
5882
|
createVisualElement: r,
|
|
@@ -6477,7 +6477,7 @@ function P0(e, t, n) {
|
|
|
6477
6477
|
function Hi(e, t) {
|
|
6478
6478
|
return e * Math.sqrt(1 - t * t);
|
|
6479
6479
|
}
|
|
6480
|
-
const
|
|
6480
|
+
const R0 = ["duration", "bounce"], A0 = ["stiffness", "damping", "mass"];
|
|
6481
6481
|
function ka(e, t) {
|
|
6482
6482
|
return t.some((n) => e[n] !== void 0);
|
|
6483
6483
|
}
|
|
@@ -6490,7 +6490,7 @@ function O0(e) {
|
|
|
6490
6490
|
isResolvedFromDuration: !1,
|
|
6491
6491
|
...e
|
|
6492
6492
|
};
|
|
6493
|
-
if (!ka(e,
|
|
6493
|
+
if (!ka(e, A0) && ka(e, R0)) {
|
|
6494
6494
|
const n = k0(e);
|
|
6495
6495
|
t = {
|
|
6496
6496
|
...t,
|
|
@@ -6506,18 +6506,18 @@ function lf({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {
|
|
|
6506
6506
|
velocity: -ze(r.velocity || 0)
|
|
6507
6507
|
}), h = c || 0, p = l / (2 * Math.sqrt(a * u)), m = o - i, g = ze(Math.sqrt(a / u)), y = Math.abs(m) < 5;
|
|
6508
6508
|
n || (n = y ? 0.01 : 2), t || (t = y ? 5e-3 : 0.5);
|
|
6509
|
-
let
|
|
6509
|
+
let b;
|
|
6510
6510
|
if (p < 1) {
|
|
6511
6511
|
const v = Hi(g, p);
|
|
6512
|
-
|
|
6512
|
+
b = (S) => {
|
|
6513
6513
|
const E = Math.exp(-p * g * S);
|
|
6514
6514
|
return o - E * ((h + p * g * m) / v * Math.sin(v * S) + m * Math.cos(v * S));
|
|
6515
6515
|
};
|
|
6516
6516
|
} else if (p === 1)
|
|
6517
|
-
|
|
6517
|
+
b = (v) => o - Math.exp(-g * v) * (m + (h + g * m) * v);
|
|
6518
6518
|
else {
|
|
6519
6519
|
const v = g * Math.sqrt(p * p - 1);
|
|
6520
|
-
|
|
6520
|
+
b = (S) => {
|
|
6521
6521
|
const E = Math.exp(-p * g * S), k = Math.min(v * S, 300);
|
|
6522
6522
|
return o - E * ((h + p * g * m) * Math.sinh(k) + v * m * Math.cosh(k)) / v;
|
|
6523
6523
|
};
|
|
@@ -6525,12 +6525,12 @@ function lf({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {
|
|
|
6525
6525
|
return {
|
|
6526
6526
|
calculatedDuration: d && f || null,
|
|
6527
6527
|
next: (v) => {
|
|
6528
|
-
const S =
|
|
6528
|
+
const S = b(v);
|
|
6529
6529
|
if (d)
|
|
6530
6530
|
s.done = v >= f;
|
|
6531
6531
|
else {
|
|
6532
6532
|
let E = h;
|
|
6533
|
-
v !== 0 && (p < 1 ? E = af(
|
|
6533
|
+
v !== 0 && (p < 1 ? E = af(b, v, S) : E = 0);
|
|
6534
6534
|
const k = Math.abs(E) <= n, T = Math.abs(o - S) <= t;
|
|
6535
6535
|
s.done = k && T;
|
|
6536
6536
|
}
|
|
@@ -6546,8 +6546,8 @@ function Ta({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
6546
6546
|
let m = n * t;
|
|
6547
6547
|
const g = c + m, y = s === void 0 ? g : s(g);
|
|
6548
6548
|
y !== g && (m = y - c);
|
|
6549
|
-
const
|
|
6550
|
-
const _ =
|
|
6549
|
+
const b = (P) => -m * Math.exp(-P / r), v = (P) => y + b(P), S = (P) => {
|
|
6550
|
+
const _ = b(P), H = v(P);
|
|
6551
6551
|
d.done = Math.abs(_) <= u, d.value = d.done ? y : H;
|
|
6552
6552
|
};
|
|
6553
6553
|
let E, k;
|
|
@@ -6581,7 +6581,7 @@ const M0 = (e) => {
|
|
|
6581
6581
|
now: () => re.isProcessing ? re.timestamp : performance.now()
|
|
6582
6582
|
};
|
|
6583
6583
|
}, Pa = 2e4;
|
|
6584
|
-
function
|
|
6584
|
+
function Ra(e) {
|
|
6585
6585
|
let t = 0;
|
|
6586
6586
|
const n = 50;
|
|
6587
6587
|
let r = e.next(t);
|
|
@@ -6604,7 +6604,7 @@ function yr({ autoplay: e = !0, delay: t = 0, driver: n = M0, keyframes: r, type
|
|
|
6604
6604
|
});
|
|
6605
6605
|
};
|
|
6606
6606
|
y();
|
|
6607
|
-
let
|
|
6607
|
+
let b;
|
|
6608
6608
|
const v = _0[i] || gr;
|
|
6609
6609
|
let S;
|
|
6610
6610
|
v !== gr && typeof r[0] != "number" && (S = of([0, 100], r, {
|
|
@@ -6618,7 +6618,7 @@ function yr({ autoplay: e = !0, delay: t = 0, driver: n = M0, keyframes: r, type
|
|
|
6618
6618
|
velocity: -(d.velocity || 0)
|
|
6619
6619
|
}));
|
|
6620
6620
|
let T = "idle", P = null, _ = null, H = null;
|
|
6621
|
-
E.calculatedDuration === null && o && (E.calculatedDuration =
|
|
6621
|
+
E.calculatedDuration === null && o && (E.calculatedDuration = Ra(E));
|
|
6622
6622
|
const { calculatedDuration: D } = E;
|
|
6623
6623
|
let U = 1 / 0, J = 1 / 0;
|
|
6624
6624
|
D !== null && (U = D + s, J = U * (o + 1) - s);
|
|
@@ -6642,7 +6642,7 @@ function yr({ autoplay: e = !0, delay: t = 0, driver: n = M0, keyframes: r, type
|
|
|
6642
6642
|
const Pt = P === null && (T === "finished" || T === "running" && Tt);
|
|
6643
6643
|
return c && c(De.value), Pt && Q(), De;
|
|
6644
6644
|
}, Y = () => {
|
|
6645
|
-
|
|
6645
|
+
b && b.stop(), b = void 0;
|
|
6646
6646
|
}, Pe = () => {
|
|
6647
6647
|
T = "idle", Y(), m(), y(), _ = H = null;
|
|
6648
6648
|
}, Q = () => {
|
|
@@ -6650,9 +6650,9 @@ function yr({ autoplay: e = !0, delay: t = 0, driver: n = M0, keyframes: r, type
|
|
|
6650
6650
|
}, qe = () => {
|
|
6651
6651
|
if (p)
|
|
6652
6652
|
return;
|
|
6653
|
-
|
|
6654
|
-
const N =
|
|
6655
|
-
l && l(), P !== null ? _ = N - P : (!_ || T === "finished") && (_ = N), T === "finished" && y(), H = _, P = null, T = "running",
|
|
6653
|
+
b || (b = n(Te));
|
|
6654
|
+
const N = b.now();
|
|
6655
|
+
l && l(), P !== null ? _ = N - P : (!_ || T === "finished") && (_ = N), T === "finished" && y(), H = _, P = null, T = "running", b.start();
|
|
6656
6656
|
};
|
|
6657
6657
|
e && qe();
|
|
6658
6658
|
const Et = {
|
|
@@ -6663,17 +6663,17 @@ function yr({ autoplay: e = !0, delay: t = 0, driver: n = M0, keyframes: r, type
|
|
|
6663
6663
|
return ze(Z);
|
|
6664
6664
|
},
|
|
6665
6665
|
set time(N) {
|
|
6666
|
-
N = ot(N), Z = N, P !== null || !
|
|
6666
|
+
N = ot(N), Z = N, P !== null || !b || h === 0 ? P = N : _ = b.now() - N / h;
|
|
6667
6667
|
},
|
|
6668
6668
|
get duration() {
|
|
6669
|
-
const N = E.calculatedDuration === null ?
|
|
6669
|
+
const N = E.calculatedDuration === null ? Ra(E) : E.calculatedDuration;
|
|
6670
6670
|
return ze(N);
|
|
6671
6671
|
},
|
|
6672
6672
|
get speed() {
|
|
6673
6673
|
return h;
|
|
6674
6674
|
},
|
|
6675
6675
|
set speed(N) {
|
|
6676
|
-
N === h || !
|
|
6676
|
+
N === h || !b || (h = N, Et.time = ze(Z));
|
|
6677
6677
|
},
|
|
6678
6678
|
get state() {
|
|
6679
6679
|
return T;
|
|
@@ -7246,8 +7246,8 @@ function pf(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
7246
7246
|
if (window.HandoffAppearAnimations) {
|
|
7247
7247
|
const y = e.getProps()[pc];
|
|
7248
7248
|
if (y) {
|
|
7249
|
-
const
|
|
7250
|
-
|
|
7249
|
+
const b = window.HandoffAppearAnimations(y, c, d, z);
|
|
7250
|
+
b !== null && (p.elapsed = b, p.isHandoff = !0);
|
|
7251
7251
|
}
|
|
7252
7252
|
}
|
|
7253
7253
|
let m = !p.isHandoff && !cv(d, h);
|
|
@@ -7324,16 +7324,16 @@ function yv(e) {
|
|
|
7324
7324
|
const f = e.getProps(), c = e.getVariantContext(!0) || {}, d = [], h = /* @__PURE__ */ new Set();
|
|
7325
7325
|
let p = {}, m = 1 / 0;
|
|
7326
7326
|
for (let y = 0; y < mv; y++) {
|
|
7327
|
-
const
|
|
7327
|
+
const b = pv[y], v = n[b], S = f[b] !== void 0 ? f[b] : c[b], E = hn(S), k = b === u ? v.isActive : null;
|
|
7328
7328
|
k === !1 && (m = y);
|
|
7329
|
-
let T = S === c[
|
|
7329
|
+
let T = S === c[b] && S !== f[b] && E;
|
|
7330
7330
|
if (T && r && e.manuallyAnimateOnMount && (T = !1), v.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
|
|
7331
7331
|
!v.isActive && k === null || // If we didn't and don't have any defined prop for this animation type
|
|
7332
7332
|
!S && !v.prevProp || // Or if the prop doesn't define an animation
|
|
7333
7333
|
Fr(S) || typeof S == "boolean")
|
|
7334
7334
|
continue;
|
|
7335
7335
|
let _ = vv(v.prevProp, S) || // If we're making this variant active, we want to always make it active
|
|
7336
|
-
|
|
7336
|
+
b === u && v.isActive && !T && E || // If we removed a higher-priority variant (i is in reverse order)
|
|
7337
7337
|
y > m && E, H = !1;
|
|
7338
7338
|
const D = Array.isArray(S) ? S : [S];
|
|
7339
7339
|
let U = D.reduce(i, {});
|
|
@@ -7353,14 +7353,14 @@ function yv(e) {
|
|
|
7353
7353
|
}
|
|
7354
7354
|
v.prevProp = S, v.prevResolvedValues = U, v.isActive && (p = { ...p, ...U }), r && e.blockInitialAnimation && (_ = !1), _ && (!T || H) && d.push(...D.map((Y) => ({
|
|
7355
7355
|
animation: Y,
|
|
7356
|
-
options: { type:
|
|
7356
|
+
options: { type: b, ...l }
|
|
7357
7357
|
})));
|
|
7358
7358
|
}
|
|
7359
7359
|
if (h.size) {
|
|
7360
7360
|
const y = {};
|
|
7361
|
-
h.forEach((
|
|
7362
|
-
const v = e.getBaseTarget(
|
|
7363
|
-
v !== void 0 && (y[
|
|
7361
|
+
h.forEach((b) => {
|
|
7362
|
+
const v = e.getBaseTarget(b);
|
|
7363
|
+
v !== void 0 && (y[b] = v);
|
|
7364
7364
|
}), d.push({ animation: y });
|
|
7365
7365
|
}
|
|
7366
7366
|
let g = !!d.length;
|
|
@@ -7462,9 +7462,9 @@ const Ev = {
|
|
|
7462
7462
|
exit: {
|
|
7463
7463
|
Feature: Sv
|
|
7464
7464
|
}
|
|
7465
|
-
},
|
|
7465
|
+
}, Aa = (e, t) => Math.abs(e - t);
|
|
7466
7466
|
function Cv(e, t) {
|
|
7467
|
-
const n =
|
|
7467
|
+
const n = Aa(e.x, t.x), r = Aa(e.y, t.y);
|
|
7468
7468
|
return Math.sqrt(n ** 2 + r ** 2);
|
|
7469
7469
|
}
|
|
7470
7470
|
class mf {
|
|
@@ -7565,7 +7565,7 @@ function Va(e, t, n) {
|
|
|
7565
7565
|
function an(e, t, n) {
|
|
7566
7566
|
Va(e.x, t.x, n.x), Va(e.y, t.y, n.y);
|
|
7567
7567
|
}
|
|
7568
|
-
function
|
|
7568
|
+
function Rv(e, { min: t, max: n }, r) {
|
|
7569
7569
|
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;
|
|
7570
7570
|
}
|
|
7571
7571
|
function La(e, t, n) {
|
|
@@ -7574,7 +7574,7 @@ function La(e, t, n) {
|
|
|
7574
7574
|
max: n !== void 0 ? e.max + n - (e.max - e.min) : void 0
|
|
7575
7575
|
};
|
|
7576
7576
|
}
|
|
7577
|
-
function
|
|
7577
|
+
function Av(e, { top: t, left: n, bottom: r, right: i }) {
|
|
7578
7578
|
return {
|
|
7579
7579
|
x: La(e.x, n, i),
|
|
7580
7580
|
y: La(e.y, t, r)
|
|
@@ -7734,9 +7734,9 @@ class $v {
|
|
|
7734
7734
|
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), we((g) => {
|
|
7735
7735
|
let y = this.getAxisMotionValue(g).get() || 0;
|
|
7736
7736
|
if (Le.test(y)) {
|
|
7737
|
-
const { projection:
|
|
7738
|
-
if (
|
|
7739
|
-
const v =
|
|
7737
|
+
const { projection: b } = this.visualElement;
|
|
7738
|
+
if (b && b.layout) {
|
|
7739
|
+
const v = b.layout.layoutBox[g];
|
|
7740
7740
|
v && (y = xe(v) * (parseFloat(y) / 100));
|
|
7741
7741
|
}
|
|
7742
7742
|
}
|
|
@@ -7792,12 +7792,12 @@ class $v {
|
|
|
7792
7792
|
return;
|
|
7793
7793
|
const o = this.getAxisMotionValue(t);
|
|
7794
7794
|
let s = this.originPoint[t] + r[t];
|
|
7795
|
-
this.constraints && this.constraints[t] && (s =
|
|
7795
|
+
this.constraints && this.constraints[t] && (s = Rv(s, this.constraints[t], this.elastic[t])), o.set(s);
|
|
7796
7796
|
}
|
|
7797
7797
|
resolveConstraints() {
|
|
7798
7798
|
var t;
|
|
7799
7799
|
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;
|
|
7800
|
-
n && _t(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints =
|
|
7800
|
+
n && _t(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = Av(i.layoutBox, n) : this.constraints = !1, this.elastic = Vv(r), o !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && we((s) => {
|
|
7801
7801
|
this.getAxisMotionValue(s) && (this.constraints[s] = _v(i.layoutBox[s], this.constraints[s]));
|
|
7802
7802
|
});
|
|
7803
7803
|
}
|
|
@@ -7993,11 +7993,11 @@ class Wv extends lt {
|
|
|
7993
7993
|
}
|
|
7994
7994
|
}
|
|
7995
7995
|
function Hv() {
|
|
7996
|
-
const e =
|
|
7996
|
+
const e = x.useContext(Ao);
|
|
7997
7997
|
if (e === null)
|
|
7998
7998
|
return [!0, null];
|
|
7999
|
-
const { isPresent: t, onExitComplete: n, register: r } = e, i =
|
|
8000
|
-
return
|
|
7999
|
+
const { isPresent: t, onExitComplete: n, register: r } = e, i = x.useId();
|
|
8000
|
+
return x.useEffect(() => r(i), []), !t && n ? [!1, () => n && n(i)] : [!0];
|
|
8001
8001
|
}
|
|
8002
8002
|
const Jn = {
|
|
8003
8003
|
/**
|
|
@@ -8078,8 +8078,8 @@ class Gv extends Ie.Component {
|
|
|
8078
8078
|
}
|
|
8079
8079
|
}
|
|
8080
8080
|
function Sf(e) {
|
|
8081
|
-
const [t, n] = Hv(), r =
|
|
8082
|
-
return Ie.createElement(Gv, { ...e, layoutGroup: r, switchLayoutGroup:
|
|
8081
|
+
const [t, n] = Hv(), r = x.useContext(gc);
|
|
8082
|
+
return Ie.createElement(Gv, { ...e, layoutGroup: r, switchLayoutGroup: x.useContext(yc), isPresent: t, safeToRemove: n });
|
|
8083
8083
|
}
|
|
8084
8084
|
const Xv = {
|
|
8085
8085
|
borderRadius: {
|
|
@@ -8303,8 +8303,8 @@ function Pf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8303
8303
|
this.target = void 0, this.relativeTarget = void 0;
|
|
8304
8304
|
return;
|
|
8305
8305
|
}
|
|
8306
|
-
const m = this.options.transition || f.getDefaultTransition() || kx, { onLayoutAnimationStart: g, onLayoutAnimationComplete: y } = f.getProps(),
|
|
8307
|
-
if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || v || d && (
|
|
8306
|
+
const m = this.options.transition || f.getDefaultTransition() || kx, { onLayoutAnimationStart: g, onLayoutAnimationComplete: y } = f.getProps(), b = !this.targetLayout || !Tf(this.targetLayout, p) || h, v = !d && h;
|
|
8307
|
+
if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || v || d && (b || !this.currentAnimation)) {
|
|
8308
8308
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(c, v);
|
|
8309
8309
|
const S = {
|
|
8310
8310
|
...Ho(m, "layout"),
|
|
@@ -8558,12 +8558,12 @@ function Pf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8558
8558
|
setAnimationOrigin(s, a = !1) {
|
|
8559
8559
|
const l = this.snapshot, u = l ? l.latestValues : {}, f = { ...this.latestValues }, c = Lt();
|
|
8560
8560
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
8561
|
-
const d = X(), 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,
|
|
8561
|
+
const d = X(), 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(Cx));
|
|
8562
8562
|
this.animationProgress = 0;
|
|
8563
8563
|
let v;
|
|
8564
8564
|
this.mixTargetDelta = (S) => {
|
|
8565
8565
|
const E = S / 1e3;
|
|
8566
|
-
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 && (an(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Ex(this.relativeTarget, this.relativeTargetOrigin, d, E), v && nx(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v = X()), be(v, this.relativeTarget)), m && (this.animationValues = f, Yv(f, u, this.latestValues, E,
|
|
8566
|
+
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 && (an(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Ex(this.relativeTarget, this.relativeTargetOrigin, d, E), v && nx(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v = X()), be(v, this.relativeTarget)), m && (this.animationValues = f, Yv(f, u, this.latestValues, E, b, y)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = E;
|
|
8567
8567
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
8568
8568
|
}
|
|
8569
8569
|
startAnimation(s) {
|
|
@@ -8591,7 +8591,7 @@ function Pf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8591
8591
|
const s = this.getLead();
|
|
8592
8592
|
let { targetWithTransforms: a, target: l, layout: u, latestValues: f } = s;
|
|
8593
8593
|
if (!(!a || !l || !u)) {
|
|
8594
|
-
if (this !== s && this.layout && u &&
|
|
8594
|
+
if (this !== s && this.layout && u && Rf(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
|
|
8595
8595
|
l = this.target || X();
|
|
8596
8596
|
const c = xe(this.layout.layoutBox.x);
|
|
8597
8597
|
l.x.min = s.target.x.min, l.x.max = l.x.min + c;
|
|
@@ -8677,13 +8677,13 @@ function Pf({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
8677
8677
|
for (const m in dr) {
|
|
8678
8678
|
if (d[m] === void 0)
|
|
8679
8679
|
continue;
|
|
8680
|
-
const { correct: g, applyTo: y } = dr[m],
|
|
8680
|
+
const { correct: g, applyTo: y } = dr[m], b = u.transform === "none" ? d[m] : g(d[m], c);
|
|
8681
8681
|
if (y) {
|
|
8682
8682
|
const v = y.length;
|
|
8683
8683
|
for (let S = 0; S < v; S++)
|
|
8684
|
-
u[y[S]] =
|
|
8684
|
+
u[y[S]] = b;
|
|
8685
8685
|
} else
|
|
8686
|
-
u[m] =
|
|
8686
|
+
u[m] = b;
|
|
8687
8687
|
}
|
|
8688
8688
|
return this.options.layoutId && (u.pointerEvents = c === this ? Yn(s == null ? void 0 : s.pointerEvents) || "" : "none"), u;
|
|
8689
8689
|
}
|
|
@@ -8710,7 +8710,7 @@ function hx(e) {
|
|
|
8710
8710
|
o === "size" ? we((c) => {
|
|
8711
8711
|
const d = s ? n.measuredBox[c] : n.layoutBox[c], h = xe(d);
|
|
8712
8712
|
d.min = r[c].min, d.max = d.min + h;
|
|
8713
|
-
}) :
|
|
8713
|
+
}) : Rf(o, n.layoutBox, r) && we((c) => {
|
|
8714
8714
|
const d = s ? n.measuredBox[c] : n.layoutBox[c], h = xe(r[c]);
|
|
8715
8715
|
d.max = d.min + h, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[c].max = e.relativeTarget[c].min + h);
|
|
8716
8716
|
});
|
|
@@ -8802,7 +8802,7 @@ function cl(e) {
|
|
|
8802
8802
|
function Tx(e) {
|
|
8803
8803
|
cl(e.x), cl(e.y);
|
|
8804
8804
|
}
|
|
8805
|
-
function
|
|
8805
|
+
function Rf(e, t, n) {
|
|
8806
8806
|
return e === "position" || e === "preserve-aspect" && !Ki(el(t), el(n), 0.2);
|
|
8807
8807
|
}
|
|
8808
8808
|
const Px = Pf({
|
|
@@ -8814,7 +8814,7 @@ const Px = Pf({
|
|
|
8814
8814
|
checkIsScrollRoot: () => !0
|
|
8815
8815
|
}), xi = {
|
|
8816
8816
|
current: void 0
|
|
8817
|
-
},
|
|
8817
|
+
}, Af = Pf({
|
|
8818
8818
|
measureScroll: (e) => ({
|
|
8819
8819
|
x: e.scrollLeft,
|
|
8820
8820
|
y: e.scrollTop
|
|
@@ -8830,18 +8830,18 @@ const Px = Pf({
|
|
|
8830
8830
|
e.style.transform = t !== void 0 ? t : "none";
|
|
8831
8831
|
},
|
|
8832
8832
|
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
|
|
8833
|
-
}),
|
|
8833
|
+
}), Rx = {
|
|
8834
8834
|
pan: {
|
|
8835
8835
|
Feature: Wv
|
|
8836
8836
|
},
|
|
8837
8837
|
drag: {
|
|
8838
8838
|
Feature: Uv,
|
|
8839
|
-
ProjectionNode:
|
|
8839
|
+
ProjectionNode: Af,
|
|
8840
8840
|
MeasureLayout: Sf
|
|
8841
8841
|
}
|
|
8842
|
-
},
|
|
8842
|
+
}, Ax = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;
|
|
8843
8843
|
function Ox(e) {
|
|
8844
|
-
const t =
|
|
8844
|
+
const t = Ax.exec(e);
|
|
8845
8845
|
if (!t)
|
|
8846
8846
|
return [,];
|
|
8847
8847
|
const [, n, r] = t;
|
|
@@ -9313,13 +9313,13 @@ class Xx extends Vf {
|
|
|
9313
9313
|
return X();
|
|
9314
9314
|
}
|
|
9315
9315
|
scrapeMotionValuesFromProps(t, n) {
|
|
9316
|
-
return
|
|
9316
|
+
return Ac(t, n);
|
|
9317
9317
|
}
|
|
9318
9318
|
build(t, n, r, i) {
|
|
9319
9319
|
Do(t, n, r, this.isSVGTag, i.transformTemplate);
|
|
9320
9320
|
}
|
|
9321
9321
|
renderInstance(t, n, r, i) {
|
|
9322
|
-
|
|
9322
|
+
Rc(t, n, r, i);
|
|
9323
9323
|
}
|
|
9324
9324
|
mount(t) {
|
|
9325
9325
|
this.isSVGTag = jo(t.tagName), super.mount(t);
|
|
@@ -9327,13 +9327,13 @@ class Xx extends Vf {
|
|
|
9327
9327
|
}
|
|
9328
9328
|
const Kx = (e, t) => Vo(e) ? new Xx(t, { enableHardwareAcceleration: !1 }) : new Gx(t, { enableHardwareAcceleration: !0 }), Yx = {
|
|
9329
9329
|
layout: {
|
|
9330
|
-
ProjectionNode:
|
|
9330
|
+
ProjectionNode: Af,
|
|
9331
9331
|
MeasureLayout: Sf
|
|
9332
9332
|
}
|
|
9333
9333
|
}, Jx = {
|
|
9334
9334
|
...Ev,
|
|
9335
9335
|
...Uy,
|
|
9336
|
-
...
|
|
9336
|
+
...Rx,
|
|
9337
9337
|
...Yx
|
|
9338
9338
|
}, Zx = /* @__PURE__ */ Jg((e, t) => Oy(e, t, Jx, Kx));
|
|
9339
9339
|
/**
|
|
@@ -9457,9 +9457,9 @@ function tb(e, t, n, r) {
|
|
|
9457
9457
|
}
|
|
9458
9458
|
function d(g, y) {
|
|
9459
9459
|
a = bt.Push;
|
|
9460
|
-
let
|
|
9461
|
-
n && n(
|
|
9462
|
-
let v = yl(
|
|
9460
|
+
let b = to(m.location, g, y);
|
|
9461
|
+
n && n(b, g), u = f() + 1;
|
|
9462
|
+
let v = yl(b, u), S = m.createHref(b);
|
|
9463
9463
|
try {
|
|
9464
9464
|
s.pushState(v, "", S);
|
|
9465
9465
|
} catch (E) {
|
|
@@ -9475,9 +9475,9 @@ function tb(e, t, n, r) {
|
|
|
9475
9475
|
}
|
|
9476
9476
|
function h(g, y) {
|
|
9477
9477
|
a = bt.Replace;
|
|
9478
|
-
let
|
|
9479
|
-
n && n(
|
|
9480
|
-
let v = yl(
|
|
9478
|
+
let b = to(m.location, g, y);
|
|
9479
|
+
n && n(b, g), u = f();
|
|
9480
|
+
let v = yl(b, u), S = m.createHref(b);
|
|
9481
9481
|
s.replaceState(v, "", S), o && l && l({
|
|
9482
9482
|
action: a,
|
|
9483
9483
|
location: m.location,
|
|
@@ -9485,8 +9485,8 @@ function tb(e, t, n, r) {
|
|
|
9485
9485
|
});
|
|
9486
9486
|
}
|
|
9487
9487
|
function p(g) {
|
|
9488
|
-
let y = i.location.origin !== "null" ? i.location.origin : i.location.href,
|
|
9489
|
-
return
|
|
9488
|
+
let y = i.location.origin !== "null" ? i.location.origin : i.location.href, b = typeof g == "string" ? g : br(g);
|
|
9489
|
+
return b = b.replace(/ $/, "%20"), ke(y, "No window.location.(origin|href) available to create URL for href: " + b), new URL(b, y);
|
|
9490
9490
|
}
|
|
9491
9491
|
let m = {
|
|
9492
9492
|
get action() {
|
|
@@ -9607,7 +9607,7 @@ function wr() {
|
|
|
9607
9607
|
return e;
|
|
9608
9608
|
}, wr.apply(this, arguments);
|
|
9609
9609
|
}
|
|
9610
|
-
const Nf = /* @__PURE__ */
|
|
9610
|
+
const Nf = /* @__PURE__ */ x.createContext(null), zt = /* @__PURE__ */ x.createContext(null), Yo = /* @__PURE__ */ x.createContext(null), $r = /* @__PURE__ */ x.createContext({
|
|
9611
9611
|
outlet: null,
|
|
9612
9612
|
matches: [],
|
|
9613
9613
|
isDataRoute: !1
|
|
@@ -9620,7 +9620,7 @@ function lb(e, t) {
|
|
|
9620
9620
|
let {
|
|
9621
9621
|
basename: r,
|
|
9622
9622
|
navigator: i
|
|
9623
|
-
} =
|
|
9623
|
+
} = x.useContext(zt), {
|
|
9624
9624
|
hash: o,
|
|
9625
9625
|
pathname: s,
|
|
9626
9626
|
search: a
|
|
@@ -9634,34 +9634,34 @@ function lb(e, t) {
|
|
|
9634
9634
|
});
|
|
9635
9635
|
}
|
|
9636
9636
|
function zr() {
|
|
9637
|
-
return
|
|
9637
|
+
return x.useContext(Yo) != null;
|
|
9638
9638
|
}
|
|
9639
9639
|
function Ur() {
|
|
9640
|
-
return zr() || ke(!1),
|
|
9640
|
+
return zr() || ke(!1), x.useContext(Yo).location;
|
|
9641
9641
|
}
|
|
9642
9642
|
function Bf(e) {
|
|
9643
|
-
|
|
9643
|
+
x.useContext(zt).static || x.useLayoutEffect(e);
|
|
9644
9644
|
}
|
|
9645
9645
|
function ub() {
|
|
9646
9646
|
let {
|
|
9647
9647
|
isDataRoute: e
|
|
9648
|
-
} =
|
|
9648
|
+
} = x.useContext($r);
|
|
9649
9649
|
return e ? pb() : cb();
|
|
9650
9650
|
}
|
|
9651
9651
|
function cb() {
|
|
9652
9652
|
zr() || ke(!1);
|
|
9653
|
-
let e =
|
|
9653
|
+
let e = x.useContext(Nf), {
|
|
9654
9654
|
basename: t,
|
|
9655
9655
|
future: n,
|
|
9656
9656
|
navigator: r
|
|
9657
|
-
} =
|
|
9657
|
+
} = x.useContext(zt), {
|
|
9658
9658
|
matches: i
|
|
9659
|
-
} =
|
|
9659
|
+
} = x.useContext($r), {
|
|
9660
9660
|
pathname: o
|
|
9661
|
-
} = Ur(), s = JSON.stringify(Ff(i, n.v7_relativeSplatPath)), a =
|
|
9661
|
+
} = Ur(), s = JSON.stringify(Ff(i, n.v7_relativeSplatPath)), a = x.useRef(!1);
|
|
9662
9662
|
return Bf(() => {
|
|
9663
9663
|
a.current = !0;
|
|
9664
|
-
}),
|
|
9664
|
+
}), x.useCallback(function(u, f) {
|
|
9665
9665
|
if (f === void 0 && (f = {}), !a.current)
|
|
9666
9666
|
return;
|
|
9667
9667
|
if (typeof u == "number") {
|
|
@@ -9677,12 +9677,12 @@ function $f(e, t) {
|
|
|
9677
9677
|
relative: n
|
|
9678
9678
|
} = t === void 0 ? {} : t, {
|
|
9679
9679
|
future: r
|
|
9680
|
-
} =
|
|
9680
|
+
} = x.useContext(zt), {
|
|
9681
9681
|
matches: i
|
|
9682
|
-
} =
|
|
9682
|
+
} = x.useContext($r), {
|
|
9683
9683
|
pathname: o
|
|
9684
9684
|
} = Ur(), s = JSON.stringify(Ff(i, r.v7_relativeSplatPath));
|
|
9685
|
-
return
|
|
9685
|
+
return x.useMemo(() => Df(e, JSON.parse(s), o, n === "path"), [e, s, o, n]);
|
|
9686
9686
|
}
|
|
9687
9687
|
var zf = /* @__PURE__ */ function(e) {
|
|
9688
9688
|
return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e;
|
|
@@ -9690,11 +9690,11 @@ var zf = /* @__PURE__ */ function(e) {
|
|
|
9690
9690
|
return e.UseBlocker = "useBlocker", e.UseLoaderData = "useLoaderData", e.UseActionData = "useActionData", e.UseRouteError = "useRouteError", e.UseNavigation = "useNavigation", e.UseRouteLoaderData = "useRouteLoaderData", e.UseMatches = "useMatches", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e.UseRouteId = "useRouteId", e;
|
|
9691
9691
|
}(Uf || {});
|
|
9692
9692
|
function fb(e) {
|
|
9693
|
-
let t =
|
|
9693
|
+
let t = x.useContext(Nf);
|
|
9694
9694
|
return t || ke(!1), t;
|
|
9695
9695
|
}
|
|
9696
9696
|
function db(e) {
|
|
9697
|
-
let t =
|
|
9697
|
+
let t = x.useContext($r);
|
|
9698
9698
|
return t || ke(!1), t;
|
|
9699
9699
|
}
|
|
9700
9700
|
function hb(e) {
|
|
@@ -9704,10 +9704,10 @@ function hb(e) {
|
|
|
9704
9704
|
function pb() {
|
|
9705
9705
|
let {
|
|
9706
9706
|
router: e
|
|
9707
|
-
} = fb(zf.UseNavigateStable), t = hb(Uf.UseNavigateStable), n =
|
|
9707
|
+
} = fb(zf.UseNavigateStable), t = hb(Uf.UseNavigateStable), n = x.useRef(!1);
|
|
9708
9708
|
return Bf(() => {
|
|
9709
9709
|
n.current = !0;
|
|
9710
|
-
}),
|
|
9710
|
+
}), x.useCallback(function(i, o) {
|
|
9711
9711
|
o === void 0 && (o = {}), n.current && (typeof i == "number" ? e.navigate(i) : e.navigate(i, wr({
|
|
9712
9712
|
fromRouteId: t
|
|
9713
9713
|
}, o)));
|
|
@@ -9724,7 +9724,7 @@ function mb(e) {
|
|
|
9724
9724
|
future: a
|
|
9725
9725
|
} = e;
|
|
9726
9726
|
zr() && ke(!1);
|
|
9727
|
-
let l = t.replace(/^\/*/, "/"), u =
|
|
9727
|
+
let l = t.replace(/^\/*/, "/"), u = x.useMemo(() => ({
|
|
9728
9728
|
basename: l,
|
|
9729
9729
|
navigator: o,
|
|
9730
9730
|
static: s,
|
|
@@ -9739,7 +9739,7 @@ function mb(e) {
|
|
|
9739
9739
|
hash: d = "",
|
|
9740
9740
|
state: h = null,
|
|
9741
9741
|
key: p = "default"
|
|
9742
|
-
} = r, m =
|
|
9742
|
+
} = r, m = x.useMemo(() => {
|
|
9743
9743
|
let g = Lf(f, l);
|
|
9744
9744
|
return g == null ? null : {
|
|
9745
9745
|
location: {
|
|
@@ -9752,9 +9752,9 @@ function mb(e) {
|
|
|
9752
9752
|
navigationType: i
|
|
9753
9753
|
};
|
|
9754
9754
|
}, [l, f, c, d, h, p, i]);
|
|
9755
|
-
return m == null ? null : /* @__PURE__ */
|
|
9755
|
+
return m == null ? null : /* @__PURE__ */ x.createElement(zt.Provider, {
|
|
9756
9756
|
value: u
|
|
9757
|
-
}, /* @__PURE__ */
|
|
9757
|
+
}, /* @__PURE__ */ x.createElement(Yo.Provider, {
|
|
9758
9758
|
children: n,
|
|
9759
9759
|
value: m
|
|
9760
9760
|
}));
|
|
@@ -9809,20 +9809,20 @@ function Sb(e) {
|
|
|
9809
9809
|
children: n,
|
|
9810
9810
|
future: r,
|
|
9811
9811
|
window: i
|
|
9812
|
-
} = e, o =
|
|
9812
|
+
} = e, o = x.useRef();
|
|
9813
9813
|
o.current == null && (o.current = Qx({
|
|
9814
9814
|
window: i,
|
|
9815
9815
|
v5Compat: !0
|
|
9816
9816
|
}));
|
|
9817
|
-
let s = o.current, [a, l] =
|
|
9817
|
+
let s = o.current, [a, l] = x.useState({
|
|
9818
9818
|
action: s.action,
|
|
9819
9819
|
location: s.location
|
|
9820
9820
|
}), {
|
|
9821
9821
|
v7_startTransition: u
|
|
9822
|
-
} = r || {}, f =
|
|
9822
|
+
} = r || {}, f = x.useCallback((c) => {
|
|
9823
9823
|
u && xl ? xl(() => l(c)) : l(c);
|
|
9824
9824
|
}, [l, u]);
|
|
9825
|
-
return
|
|
9825
|
+
return x.useLayoutEffect(() => s.listen(f), [s, f]), /* @__PURE__ */ x.createElement(mb, {
|
|
9826
9826
|
basename: t,
|
|
9827
9827
|
children: n,
|
|
9828
9828
|
location: a.location,
|
|
@@ -9831,7 +9831,7 @@ function Sb(e) {
|
|
|
9831
9831
|
future: r
|
|
9832
9832
|
});
|
|
9833
9833
|
}
|
|
9834
|
-
const Eb = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Cb = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, kb = /* @__PURE__ */
|
|
9834
|
+
const Eb = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Cb = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, kb = /* @__PURE__ */ x.forwardRef(function(t, n) {
|
|
9835
9835
|
let {
|
|
9836
9836
|
onClick: r,
|
|
9837
9837
|
relative: i,
|
|
@@ -9844,7 +9844,7 @@ const Eb = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
9844
9844
|
unstable_viewTransition: c
|
|
9845
9845
|
} = t, d = gb(t, xb), {
|
|
9846
9846
|
basename: h
|
|
9847
|
-
} =
|
|
9847
|
+
} = x.useContext(zt), p, m = !1;
|
|
9848
9848
|
if (typeof u == "string" && Cb.test(u) && (p = u, Eb))
|
|
9849
9849
|
try {
|
|
9850
9850
|
let v = new URL(window.location.href), S = u.startsWith("//") ? new URL(v.protocol + u) : new URL(u), E = Lf(S.pathname, h);
|
|
@@ -9861,14 +9861,14 @@ const Eb = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
9861
9861
|
relative: i,
|
|
9862
9862
|
unstable_viewTransition: c
|
|
9863
9863
|
});
|
|
9864
|
-
function
|
|
9864
|
+
function b(v) {
|
|
9865
9865
|
r && r(v), v.defaultPrevented || y(v);
|
|
9866
9866
|
}
|
|
9867
9867
|
return (
|
|
9868
9868
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
9869
|
-
/* @__PURE__ */
|
|
9869
|
+
/* @__PURE__ */ x.createElement("a", no({}, d, {
|
|
9870
9870
|
href: p || g,
|
|
9871
|
-
onClick: m || o ? r :
|
|
9871
|
+
onClick: m || o ? r : b,
|
|
9872
9872
|
ref: n,
|
|
9873
9873
|
target: l
|
|
9874
9874
|
}))
|
|
@@ -9893,7 +9893,7 @@ function Tb(e, t) {
|
|
|
9893
9893
|
} = t === void 0 ? {} : t, l = ub(), u = Ur(), f = $f(e, {
|
|
9894
9894
|
relative: s
|
|
9895
9895
|
});
|
|
9896
|
-
return
|
|
9896
|
+
return x.useCallback((c) => {
|
|
9897
9897
|
if (vb(c, n)) {
|
|
9898
9898
|
c.preventDefault();
|
|
9899
9899
|
let d = r !== void 0 ? r : br(u) === br(f);
|
|
@@ -9915,7 +9915,7 @@ function Wf(e, t) {
|
|
|
9915
9915
|
i = r[o], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
9916
9916
|
return n;
|
|
9917
9917
|
}
|
|
9918
|
-
const
|
|
9918
|
+
const sw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9919
9919
|
__proto__: null,
|
|
9920
9920
|
default: Wf
|
|
9921
9921
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -9929,7 +9929,7 @@ function yn() {
|
|
|
9929
9929
|
return e;
|
|
9930
9930
|
}, yn.apply(this, arguments);
|
|
9931
9931
|
}
|
|
9932
|
-
const
|
|
9932
|
+
const aw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9933
9933
|
__proto__: null,
|
|
9934
9934
|
default: yn
|
|
9935
9935
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -9947,7 +9947,7 @@ function wi(e, t, n) {
|
|
|
9947
9947
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
9948
9948
|
* MIT Licensed
|
|
9949
9949
|
*/
|
|
9950
|
-
var Sl = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,
|
|
9950
|
+
var Sl = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g, Rb = /\\([\u000b\u0020-\u00ff])/g, Ab = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/, Ob = Mb;
|
|
9951
9951
|
function Mb(e) {
|
|
9952
9952
|
if (!e)
|
|
9953
9953
|
throw new TypeError("argument string is required");
|
|
@@ -9955,7 +9955,7 @@ function Mb(e) {
|
|
|
9955
9955
|
if (typeof t != "string")
|
|
9956
9956
|
throw new TypeError("argument string is required to be a string");
|
|
9957
9957
|
var n = t.indexOf(";"), r = n !== -1 ? t.slice(0, n).trim() : t.trim();
|
|
9958
|
-
if (!
|
|
9958
|
+
if (!Ab.test(r))
|
|
9959
9959
|
throw new TypeError("invalid media type");
|
|
9960
9960
|
var i = new Vb(r.toLowerCase());
|
|
9961
9961
|
if (n !== -1) {
|
|
@@ -9963,7 +9963,7 @@ function Mb(e) {
|
|
|
9963
9963
|
for (Sl.lastIndex = n; s = Sl.exec(t); ) {
|
|
9964
9964
|
if (s.index !== n)
|
|
9965
9965
|
throw new TypeError("invalid parameter format");
|
|
9966
|
-
n += s[0].length, o = s[1].toLowerCase(), a = s[2], a.charCodeAt(0) === 34 && (a = a.slice(1, -1), a.indexOf("\\") !== -1 && (a = a.replace(
|
|
9966
|
+
n += s[0].length, o = s[1].toLowerCase(), a = s[2], a.charCodeAt(0) === 34 && (a = a.slice(1, -1), a.indexOf("\\") !== -1 && (a = a.replace(Rb, "$1"))), i.parameters[o] = a;
|
|
9967
9967
|
}
|
|
9968
9968
|
if (n !== t.length)
|
|
9969
9969
|
throw new TypeError("invalid parameter format");
|
|
@@ -10045,21 +10045,21 @@ var Ot = /* @__PURE__ */ new Map(), Hf = function(t) {
|
|
|
10045
10045
|
});
|
|
10046
10046
|
}, jb = 0, Ib = function() {
|
|
10047
10047
|
return ++jb;
|
|
10048
|
-
},
|
|
10048
|
+
}, Re = [], kl = {}, Nb = "http://www.w3.org/2000/svg", Si = "http://www.w3.org/1999/xlink", Tl = function(t, n, r, i, o, s, a) {
|
|
10049
10049
|
var l = t.getAttribute("data-src") || t.getAttribute("src");
|
|
10050
10050
|
if (!l) {
|
|
10051
10051
|
a(new Error("Invalid data-src or src attribute"));
|
|
10052
10052
|
return;
|
|
10053
10053
|
}
|
|
10054
|
-
if (
|
|
10055
|
-
|
|
10054
|
+
if (Re.indexOf(t) !== -1) {
|
|
10055
|
+
Re.splice(Re.indexOf(t), 1), t = null;
|
|
10056
10056
|
return;
|
|
10057
10057
|
}
|
|
10058
|
-
|
|
10058
|
+
Re.push(t), t.setAttribute("src", "");
|
|
10059
10059
|
var u = i ? Fb : Db;
|
|
10060
10060
|
u(l, o, function(f, c) {
|
|
10061
10061
|
if (!c) {
|
|
10062
|
-
|
|
10062
|
+
Re.splice(Re.indexOf(t), 1), t = null, a(f);
|
|
10063
10063
|
return;
|
|
10064
10064
|
}
|
|
10065
10065
|
var d = t.getAttribute("id");
|
|
@@ -10074,10 +10074,10 @@ var Ot = /* @__PURE__ */ new Map(), Hf = function(t) {
|
|
|
10074
10074
|
c.setAttribute("class", g);
|
|
10075
10075
|
var y = t.getAttribute("style");
|
|
10076
10076
|
y && c.setAttribute("style", y), c.setAttribute("data-src", l);
|
|
10077
|
-
var
|
|
10077
|
+
var b = [].filter.call(t.attributes, function(Q) {
|
|
10078
10078
|
return /^data-\w[\w-]*$/.test(Q.name);
|
|
10079
10079
|
});
|
|
10080
|
-
if (Array.prototype.forEach.call(
|
|
10080
|
+
if (Array.prototype.forEach.call(b, function(Q) {
|
|
10081
10081
|
Q.name && Q.value && c.setAttribute(Q.name, Q.value);
|
|
10082
10082
|
}), r) {
|
|
10083
10083
|
var v = {
|
|
@@ -10127,10 +10127,10 @@ var Ot = /* @__PURE__ */ new Map(), Hf = function(t) {
|
|
|
10127
10127
|
if (Array.prototype.forEach.call(Pe, function(Q) {
|
|
10128
10128
|
Q.textContent += "";
|
|
10129
10129
|
}), c.setAttribute("xmlns", Nb), c.setAttribute("xmlns:xlink", Si), s(c), !t.parentNode) {
|
|
10130
|
-
|
|
10130
|
+
Re.splice(Re.indexOf(t), 1), t = null, a(new Error("Parent node is null"));
|
|
10131
10131
|
return;
|
|
10132
10132
|
}
|
|
10133
|
-
t.parentNode.replaceChild(c, t),
|
|
10133
|
+
t.parentNode.replaceChild(c, t), Re.splice(Re.indexOf(t), 1), t = null, a(null, c);
|
|
10134
10134
|
});
|
|
10135
10135
|
}, Bb = function(t, n) {
|
|
10136
10136
|
var r = n === void 0 ? {} : n, i = r.afterAll, o = i === void 0 ? function() {
|
|
@@ -10138,9 +10138,9 @@ var Ot = /* @__PURE__ */ new Map(), Hf = function(t) {
|
|
|
10138
10138
|
} : s, l = r.beforeEach, u = l === void 0 ? function() {
|
|
10139
10139
|
} : 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;
|
|
10140
10140
|
if (t && "length" in t)
|
|
10141
|
-
for (var
|
|
10141
|
+
for (var b = 0, v = 0, S = t.length; v < S; v++)
|
|
10142
10142
|
Tl(t[v], h, y, c, m, u, function(E, k) {
|
|
10143
|
-
a(E, k), t && "length" in t && t.length === ++
|
|
10143
|
+
a(E, k), t && "length" in t && t.length === ++b && o(b);
|
|
10144
10144
|
});
|
|
10145
10145
|
else
|
|
10146
10146
|
t ? Tl(t, h, y, c, m, u, function(E, k) {
|
|
@@ -10173,8 +10173,8 @@ var Ot = /* @__PURE__ */ new Map(), Hf = function(t) {
|
|
|
10173
10173
|
return n.renderSVG = function() {
|
|
10174
10174
|
var i = this;
|
|
10175
10175
|
if (this.reactWrapper instanceof $b(this.reactWrapper).Node) {
|
|
10176
|
-
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,
|
|
10177
|
-
g === "svg" ? (y = document.createElementNS(Fn, g), y.setAttribute("xmlns", Fn), y.setAttribute("xmlns:xlink", Pl),
|
|
10176
|
+
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;
|
|
10177
|
+
g === "svg" ? (y = document.createElementNS(Fn, g), y.setAttribute("xmlns", Fn), y.setAttribute("xmlns:xlink", Pl), b = document.createElementNS(Fn, g)) : (y = document.createElement(g), b = document.createElement(g)), y.appendChild(b), b.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(y);
|
|
10178
10178
|
var v = function(T) {
|
|
10179
10179
|
if (i.removeSVG(), !i._isMounted) {
|
|
10180
10180
|
h(T);
|
|
@@ -10223,7 +10223,7 @@ var Ot = /* @__PURE__ */ new Map(), Hf = function(t) {
|
|
|
10223
10223
|
v(U);
|
|
10224
10224
|
}
|
|
10225
10225
|
};
|
|
10226
|
-
Bb(
|
|
10226
|
+
Bb(b, {
|
|
10227
10227
|
afterEach: S,
|
|
10228
10228
|
beforeEach: E,
|
|
10229
10229
|
cacheRequests: d,
|
|
@@ -10254,14 +10254,14 @@ var Ot = /* @__PURE__ */ new Map(), Hf = function(t) {
|
|
|
10254
10254
|
var s = i.loading;
|
|
10255
10255
|
i.renumerateIRIElements, i.src, i.title, i.useRequestCache;
|
|
10256
10256
|
var a = i.wrapper, l = Wf(i, Ub), u = a;
|
|
10257
|
-
return /* @__PURE__ */
|
|
10257
|
+
return /* @__PURE__ */ x.createElement(u, yn({}, l, {
|
|
10258
10258
|
ref: this.refCallback
|
|
10259
10259
|
}, a === "svg" ? {
|
|
10260
10260
|
xmlns: Fn,
|
|
10261
10261
|
xmlnsXlink: Pl
|
|
10262
|
-
} : {}), this.state.isLoading && s && /* @__PURE__ */
|
|
10262
|
+
} : {}), this.state.isLoading && s && /* @__PURE__ */ x.createElement(s, null), this.state.hasError && o && /* @__PURE__ */ x.createElement(o, null));
|
|
10263
10263
|
}, t;
|
|
10264
|
-
}(
|
|
10264
|
+
}(x.Component);
|
|
10265
10265
|
Jo.defaultProps = {
|
|
10266
10266
|
afterInjection: function() {
|
|
10267
10267
|
},
|
|
@@ -10315,8 +10315,8 @@ function Wb(e) {
|
|
|
10315
10315
|
);
|
|
10316
10316
|
}
|
|
10317
10317
|
function Hb(e) {
|
|
10318
|
-
const { children: t, parentRef: n, onlyChild: r } = e, [i, o] =
|
|
10319
|
-
return
|
|
10318
|
+
const { children: t, parentRef: n, onlyChild: r } = e, [i, o] = x.useState({ top: 0, left: 0 });
|
|
10319
|
+
return x.useLayoutEffect(() => {
|
|
10320
10320
|
if (n.current) {
|
|
10321
10321
|
const s = n.current.getBoundingClientRect();
|
|
10322
10322
|
o({
|
|
@@ -10324,7 +10324,7 @@ function Hb(e) {
|
|
|
10324
10324
|
left: s.left + s.width
|
|
10325
10325
|
});
|
|
10326
10326
|
}
|
|
10327
|
-
}, [n]), r ? t :
|
|
10327
|
+
}, [n]), r ? t : Al.createPortal(
|
|
10328
10328
|
/* @__PURE__ */ R.jsx(
|
|
10329
10329
|
"div",
|
|
10330
10330
|
{
|
|
@@ -10340,9 +10340,55 @@ function Hb(e) {
|
|
|
10340
10340
|
n.current
|
|
10341
10341
|
);
|
|
10342
10342
|
}
|
|
10343
|
+
function qb(e) {
|
|
10344
|
+
const { children: t, title: n, hasTooltip: r } = e, i = x.useRef(), [o, s] = x.useState(!1), [a, l] = x.useState({ top: 0, left: 0 });
|
|
10345
|
+
return (
|
|
10346
|
+
// Tooltip wrapper
|
|
10347
|
+
/* @__PURE__ */ R.jsxs(
|
|
10348
|
+
"div",
|
|
10349
|
+
{
|
|
10350
|
+
className: "tooltip-item__wrapper",
|
|
10351
|
+
onMouseOver: () => {
|
|
10352
|
+
if (s(!0), i.current) {
|
|
10353
|
+
const u = i.current.getBoundingClientRect();
|
|
10354
|
+
l({
|
|
10355
|
+
top: u.top - 20,
|
|
10356
|
+
left: u.left
|
|
10357
|
+
});
|
|
10358
|
+
}
|
|
10359
|
+
},
|
|
10360
|
+
onMouseLeave: () => s(!1),
|
|
10361
|
+
ref: i,
|
|
10362
|
+
children: [
|
|
10363
|
+
/* @__PURE__ */ R.jsx("div", { children: t }),
|
|
10364
|
+
o && r && /* @__PURE__ */ R.jsx(
|
|
10365
|
+
"div",
|
|
10366
|
+
{
|
|
10367
|
+
className: "tooltip-item__content",
|
|
10368
|
+
style: {
|
|
10369
|
+
position: "fixed",
|
|
10370
|
+
background: "#919196",
|
|
10371
|
+
borderRadius: "4px",
|
|
10372
|
+
color: "#fff",
|
|
10373
|
+
padding: "4px 8px",
|
|
10374
|
+
top: a.top,
|
|
10375
|
+
left: a.left,
|
|
10376
|
+
zIndex: 1400,
|
|
10377
|
+
fontSize: 10,
|
|
10378
|
+
transition: "all 0.2s ease-in-out",
|
|
10379
|
+
animation: "fadeIn 0.2s ease-in-out"
|
|
10380
|
+
},
|
|
10381
|
+
children: n
|
|
10382
|
+
}
|
|
10383
|
+
)
|
|
10384
|
+
]
|
|
10385
|
+
}
|
|
10386
|
+
)
|
|
10387
|
+
);
|
|
10388
|
+
}
|
|
10343
10389
|
function Gf({ item: e, level: t = 0, ...n }) {
|
|
10344
10390
|
var _, H;
|
|
10345
|
-
const { isActive: r, isCollapsed: i, expanded: o, toggleExpand: s } = n, a = `level-${t}`, l = i ? "collapsed" : "expanded", u = r(e.id) ? "active" : "", f = (D, U = a) => `${D} ${U} ${l} ${u}`, c = !!((_ = e.children) != null && _.length), [d, h] =
|
|
10391
|
+
const { isActive: r, isCollapsed: i, expanded: o, toggleExpand: s } = n, a = `level-${t}`, l = i ? "collapsed" : "expanded", u = r(e.id) ? "active" : "", f = (D, U = a) => `${D} ${U} ${l} ${u}`, c = !!((_ = e.children) != null && _.length), [d, h] = x.useState(!1), p = x.useRef(), m = window.location.origin, g = e.path && e.path.includes("http") ? new URL(e.path) : { origin: "", pathname: "" }, y = window.location.pathname.split("/")[1], b = g.pathname.split("/")[1], v = n.ssr || !m.includes("local") && m !== g.origin || b !== y, S = c || t === 0 ? "div" : v ? "a" : kb, E = e.path || "#", k = t + 1, T = c && !(i && k >= 2 && !d), P = i || t === 0 ? void 0 : `${t}rem`;
|
|
10346
10392
|
return /* @__PURE__ */ R.jsxs(
|
|
10347
10393
|
"div",
|
|
10348
10394
|
{
|
|
@@ -10351,32 +10397,39 @@ function Gf({ item: e, level: t = 0, ...n }) {
|
|
|
10351
10397
|
onMouseEnter: () => i && h(!0),
|
|
10352
10398
|
onMouseLeave: () => i && h(!1),
|
|
10353
10399
|
children: [
|
|
10354
|
-
/* @__PURE__ */ R.
|
|
10355
|
-
|
|
10400
|
+
/* @__PURE__ */ R.jsx(
|
|
10401
|
+
qb,
|
|
10356
10402
|
{
|
|
10357
|
-
|
|
10358
|
-
|
|
10359
|
-
|
|
10360
|
-
|
|
10361
|
-
|
|
10362
|
-
|
|
10363
|
-
|
|
10364
|
-
|
|
10365
|
-
|
|
10366
|
-
|
|
10367
|
-
|
|
10368
|
-
|
|
10369
|
-
|
|
10370
|
-
|
|
10371
|
-
|
|
10372
|
-
|
|
10373
|
-
|
|
10374
|
-
className: f(
|
|
10375
|
-
|
|
10376
|
-
|
|
10377
|
-
|
|
10378
|
-
|
|
10379
|
-
|
|
10403
|
+
hasTooltip: i && t === 1,
|
|
10404
|
+
children: /* @__PURE__ */ R.jsxs(
|
|
10405
|
+
S,
|
|
10406
|
+
{
|
|
10407
|
+
to: E,
|
|
10408
|
+
href: E,
|
|
10409
|
+
style: {
|
|
10410
|
+
paddingLeft: P,
|
|
10411
|
+
transition: "all 0.3s"
|
|
10412
|
+
// transitionDelay: '0.1s',
|
|
10413
|
+
},
|
|
10414
|
+
className: f("menu-item__link"),
|
|
10415
|
+
onClick: (D) => {
|
|
10416
|
+
c && (D.preventDefault(), i || s(e.id));
|
|
10417
|
+
},
|
|
10418
|
+
children: [
|
|
10419
|
+
t !== 0 && /* @__PURE__ */ R.jsx(Gb, { cls: f, item: e }),
|
|
10420
|
+
/* @__PURE__ */ R.jsx("span", { className: f("menu-item__label"), children: e.name }),
|
|
10421
|
+
c && /* @__PURE__ */ R.jsx("div", { className: f("menu-item__icon-arrow__wrapper"), children: /* @__PURE__ */ R.jsx(
|
|
10422
|
+
Wb,
|
|
10423
|
+
{
|
|
10424
|
+
className: f(
|
|
10425
|
+
`menu-item__icon-arrow__icon ${o(e.id) ? "open" : "close"}`
|
|
10426
|
+
)
|
|
10427
|
+
}
|
|
10428
|
+
) })
|
|
10429
|
+
]
|
|
10430
|
+
}
|
|
10431
|
+
),
|
|
10432
|
+
title: e.name
|
|
10380
10433
|
}
|
|
10381
10434
|
),
|
|
10382
10435
|
T && /* @__PURE__ */ R.jsx(
|
|
@@ -10395,7 +10448,7 @@ function Gf({ item: e, level: t = 0, ...n }) {
|
|
|
10395
10448
|
height: i || o(e.id) ? "auto" : 0
|
|
10396
10449
|
},
|
|
10397
10450
|
transition: { duration: 0.25 },
|
|
10398
|
-
children: (H = e.children) == null ? void 0 : H.map((D) => /* @__PURE__ */
|
|
10451
|
+
children: (H = e.children) == null ? void 0 : H.map((D) => /* @__PURE__ */ x.createElement(
|
|
10399
10452
|
Gf,
|
|
10400
10453
|
{
|
|
10401
10454
|
...n,
|
|
@@ -10412,9 +10465,9 @@ function Gf({ item: e, level: t = 0, ...n }) {
|
|
|
10412
10465
|
}
|
|
10413
10466
|
);
|
|
10414
10467
|
}
|
|
10415
|
-
function
|
|
10468
|
+
function Gb({ item: e, cls: t }) {
|
|
10416
10469
|
var s, a;
|
|
10417
|
-
const [n, r] =
|
|
10470
|
+
const [n, r] = x.useState(!e.icon), i = () => {
|
|
10418
10471
|
r(!0);
|
|
10419
10472
|
}, o = (s = e.icon) == null ? void 0 : s.endsWith(".svg");
|
|
10420
10473
|
return /* @__PURE__ */ R.jsx("div", { className: t("menu-item__icon"), children: n ? /* @__PURE__ */ R.jsx(
|
|
@@ -10451,7 +10504,7 @@ function qb({ item: e, cls: t }) {
|
|
|
10451
10504
|
}
|
|
10452
10505
|
) });
|
|
10453
10506
|
}
|
|
10454
|
-
function
|
|
10507
|
+
function Xb() {
|
|
10455
10508
|
return /* @__PURE__ */ R.jsx(
|
|
10456
10509
|
"svg",
|
|
10457
10510
|
{
|
|
@@ -10466,7 +10519,7 @@ function Gb() {
|
|
|
10466
10519
|
}
|
|
10467
10520
|
);
|
|
10468
10521
|
}
|
|
10469
|
-
function
|
|
10522
|
+
function Kb() {
|
|
10470
10523
|
return /* @__PURE__ */ R.jsx(
|
|
10471
10524
|
"svg",
|
|
10472
10525
|
{
|
|
@@ -10481,7 +10534,7 @@ function Xb() {
|
|
|
10481
10534
|
}
|
|
10482
10535
|
);
|
|
10483
10536
|
}
|
|
10484
|
-
function
|
|
10537
|
+
function Yb(e) {
|
|
10485
10538
|
return /* @__PURE__ */ R.jsx(
|
|
10486
10539
|
"svg",
|
|
10487
10540
|
{
|
|
@@ -10503,13 +10556,13 @@ function Kb(e) {
|
|
|
10503
10556
|
}
|
|
10504
10557
|
);
|
|
10505
10558
|
}
|
|
10506
|
-
const
|
|
10559
|
+
const Jb = `.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-1{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a!important;color:#009d4f!important}.menu-item__link.level-0{height:37px}.menu-item__link.menu-item__link.collapsed.level-0{padding:0;height:0;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1;transition:all .15s ease-in-out}.menu-item__label.level-1.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0,.menu-item__label.collapsed.level-1{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:0}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__wrapper.level-0.collapsed{display:none}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}
|
|
10507
10560
|
`;
|
|
10508
|
-
function
|
|
10509
|
-
const { baseUrl: t, menuPath: n } = e, r = Ur(), [i, o] =
|
|
10561
|
+
function Zb(e) {
|
|
10562
|
+
const { baseUrl: t, menuPath: n } = e, r = Ur(), [i, o] = x.useState([]), [s, a] = x.useState(
|
|
10510
10563
|
localStorage.getItem("isCollapsed") === "true"
|
|
10511
|
-
), [l, u] =
|
|
10512
|
-
|
|
10564
|
+
), [l, u] = x.useState({}), f = Zo(i), [c, d] = x.useState(window.location.href);
|
|
10565
|
+
x.useEffect(() => {
|
|
10513
10566
|
d(window.location.href);
|
|
10514
10567
|
}, [r]);
|
|
10515
10568
|
const h = Xf(f, c).filter(
|
|
@@ -10524,7 +10577,7 @@ function Jb(e) {
|
|
|
10524
10577
|
}, m = () => {
|
|
10525
10578
|
a(!s), localStorage.setItem("isCollapsed", JSON.stringify(!s));
|
|
10526
10579
|
};
|
|
10527
|
-
|
|
10580
|
+
x.useLayoutEffect(() => {
|
|
10528
10581
|
(async () => {
|
|
10529
10582
|
var k, T;
|
|
10530
10583
|
try {
|
|
@@ -10536,7 +10589,7 @@ function Jb(e) {
|
|
|
10536
10589
|
parentKey: 0
|
|
10537
10590
|
}));
|
|
10538
10591
|
D = Yf(D), e.replacePath && (D = Kf(D, e.replacePath));
|
|
10539
|
-
const U =
|
|
10592
|
+
const U = ew(D);
|
|
10540
10593
|
u(U), o(D);
|
|
10541
10594
|
} catch (P) {
|
|
10542
10595
|
console.log(P), Bg(
|
|
@@ -10545,14 +10598,14 @@ function Jb(e) {
|
|
|
10545
10598
|
}
|
|
10546
10599
|
})();
|
|
10547
10600
|
}, [t, n, e.replacePath]);
|
|
10548
|
-
const [g, y] =
|
|
10601
|
+
const [g, y] = x.useState(!1), b = s ? "collapsed" : "expanded", v = (E) => `${E} ${b}`, S = x.useRef(null);
|
|
10549
10602
|
return /* @__PURE__ */ R.jsxs("div", { className: v("side-bar"), children: [
|
|
10550
10603
|
/* @__PURE__ */ R.jsx("div", { className: v("wrap-section side-bar__wrapper-toggle-btn"), children: /* @__PURE__ */ R.jsx(
|
|
10551
10604
|
"button",
|
|
10552
10605
|
{
|
|
10553
10606
|
className: "icon-btn side-bar__toggle-btn",
|
|
10554
10607
|
onClick: m,
|
|
10555
|
-
children: s ? /* @__PURE__ */ R.jsx(
|
|
10608
|
+
children: s ? /* @__PURE__ */ R.jsx(Kb, {}) : /* @__PURE__ */ R.jsx(Xb, {})
|
|
10556
10609
|
}
|
|
10557
10610
|
) }),
|
|
10558
10611
|
/* @__PURE__ */ R.jsx(
|
|
@@ -10592,7 +10645,7 @@ function Jb(e) {
|
|
|
10592
10645
|
className: v("side-bar__logout-btn"),
|
|
10593
10646
|
onClick: () => y(!0),
|
|
10594
10647
|
children: [
|
|
10595
|
-
/* @__PURE__ */ R.jsx(
|
|
10648
|
+
/* @__PURE__ */ R.jsx(Yb, { className: v("side-bar__icon-logout") }),
|
|
10596
10649
|
/* @__PURE__ */ R.jsx("span", { className: v("side-bar__logout-btn__text"), children: "Logout" })
|
|
10597
10650
|
]
|
|
10598
10651
|
}
|
|
@@ -10614,7 +10667,7 @@ function Zo(e) {
|
|
|
10614
10667
|
t.push(n), n.children && (t = t.concat(Zo(n.children)));
|
|
10615
10668
|
return t;
|
|
10616
10669
|
}
|
|
10617
|
-
function
|
|
10670
|
+
function Qb(e, t) {
|
|
10618
10671
|
const n = new URL(e).searchParams, r = new URL(t).searchParams;
|
|
10619
10672
|
return Array.from(r).filter(
|
|
10620
10673
|
([i, o]) => o === n.get(i)
|
|
@@ -10624,7 +10677,7 @@ function Xf(e, t) {
|
|
|
10624
10677
|
const n = new URL(t), r = e.filter((s) => s.path && s.path.includes("http")).map((s) => ({
|
|
10625
10678
|
item: s,
|
|
10626
10679
|
itemUrl: new URL(s.path),
|
|
10627
|
-
matchingParamsCount:
|
|
10680
|
+
matchingParamsCount: Qb(t, s.path)
|
|
10628
10681
|
})).sort((s, a) => {
|
|
10629
10682
|
const l = new URL(s.itemUrl).searchParams, u = new URL(a.itemUrl).searchParams;
|
|
10630
10683
|
return Array.from(l).length - Array.from(u).length;
|
|
@@ -10645,28 +10698,28 @@ function Yf(e) {
|
|
|
10645
10698
|
path: window.location.origin + n.path
|
|
10646
10699
|
} : (n.children && (n.children = Yf(n.children)), n));
|
|
10647
10700
|
}
|
|
10648
|
-
function
|
|
10701
|
+
function ew(e) {
|
|
10649
10702
|
const t = Zo(e), n = Xf(t, window.location.href), r = {};
|
|
10650
10703
|
return n.forEach((i) => r[i.id] = !0), t.forEach((i) => {
|
|
10651
10704
|
var o;
|
|
10652
10705
|
(o = i.children) != null && o.length && (r[i.id] = !0);
|
|
10653
10706
|
}), r;
|
|
10654
10707
|
}
|
|
10655
|
-
function
|
|
10708
|
+
function tw(e) {
|
|
10656
10709
|
return /* @__PURE__ */ R.jsx(
|
|
10657
10710
|
Mg,
|
|
10658
10711
|
{
|
|
10659
|
-
styles: [tp,
|
|
10712
|
+
styles: [tp, Jb],
|
|
10660
10713
|
style: { position: "sticky", zIndex: 20 },
|
|
10661
|
-
children: /* @__PURE__ */ R.jsx(
|
|
10714
|
+
children: /* @__PURE__ */ R.jsx(Zb, { ...e })
|
|
10662
10715
|
}
|
|
10663
10716
|
);
|
|
10664
10717
|
}
|
|
10665
|
-
function
|
|
10666
|
-
return /* @__PURE__ */ R.jsx(Sb, { children: /* @__PURE__ */ R.jsx(
|
|
10718
|
+
function nw(e) {
|
|
10719
|
+
return /* @__PURE__ */ R.jsx(Sb, { children: /* @__PURE__ */ R.jsx(tw, { ...e, ssr: !0 }) });
|
|
10667
10720
|
}
|
|
10668
10721
|
{
|
|
10669
|
-
const e = ed(
|
|
10722
|
+
const e = ed(nw, {
|
|
10670
10723
|
props: {
|
|
10671
10724
|
baseUrl: "string",
|
|
10672
10725
|
menuPath: "string",
|
|
@@ -10679,16 +10732,16 @@ function tw(e) {
|
|
|
10679
10732
|
customElements.define("global-menu", e);
|
|
10680
10733
|
}
|
|
10681
10734
|
export {
|
|
10682
|
-
|
|
10735
|
+
tw as G,
|
|
10683
10736
|
ip as L,
|
|
10684
10737
|
Mg as S,
|
|
10685
10738
|
yn as _,
|
|
10686
10739
|
Wf as a,
|
|
10687
|
-
|
|
10740
|
+
aw as b,
|
|
10688
10741
|
$i as c,
|
|
10689
10742
|
Pb as d,
|
|
10690
10743
|
vh as e,
|
|
10691
|
-
|
|
10692
|
-
|
|
10744
|
+
iw as n,
|
|
10745
|
+
sw as o,
|
|
10693
10746
|
Bg as p
|
|
10694
10747
|
};
|