@eliseubatista99/react-scaffold-core 0.1.67 → 0.1.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs.js +13 -13
- package/dist/index.es.js +974 -939
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as D from "react";
|
|
2
|
-
import q, { forwardRef as
|
|
2
|
+
import q, { forwardRef as On, useContext as Yt, useEffect as Ir, useState as Ar, useMemo as zr, useCallback as _e } from "react";
|
|
3
3
|
var rt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4
4
|
function qt(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -47,8 +47,8 @@ function Pn() {
|
|
|
47
47
|
var c = null;
|
|
48
48
|
if (s !== void 0 && (c = "" + s), a.key !== void 0 && (c = "" + a.key), "key" in a) {
|
|
49
49
|
s = {};
|
|
50
|
-
for (var
|
|
51
|
-
|
|
50
|
+
for (var l in a)
|
|
51
|
+
l !== "key" && (s[l] = a[l]);
|
|
52
52
|
} else s = a;
|
|
53
53
|
return a = s.ref, {
|
|
54
54
|
$$typeof: e,
|
|
@@ -148,7 +148,7 @@ function En() {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
function a() {
|
|
151
|
-
var n =
|
|
151
|
+
var n = k.A;
|
|
152
152
|
return n === null ? null : n.getOwner();
|
|
153
153
|
}
|
|
154
154
|
function s() {
|
|
@@ -161,9 +161,9 @@ function En() {
|
|
|
161
161
|
}
|
|
162
162
|
return n.key !== void 0;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function l(n, f) {
|
|
165
165
|
function S() {
|
|
166
|
-
|
|
166
|
+
O || (O = !0, console.error(
|
|
167
167
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
168
168
|
f
|
|
169
169
|
));
|
|
@@ -173,7 +173,7 @@ function En() {
|
|
|
173
173
|
configurable: !0
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function u() {
|
|
177
177
|
var n = e(this.type);
|
|
178
178
|
return T[n] || (T[n] = !0, console.error(
|
|
179
179
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
@@ -188,7 +188,7 @@ function En() {
|
|
|
188
188
|
_owner: L
|
|
189
189
|
}, (S !== void 0 ? S : null) !== null ? Object.defineProperty(n, "ref", {
|
|
190
190
|
enumerable: !1,
|
|
191
|
-
get:
|
|
191
|
+
get: u
|
|
192
192
|
}) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
|
|
193
193
|
configurable: !1,
|
|
194
194
|
enumerable: !1,
|
|
@@ -247,7 +247,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
247
247
|
for (var X in f)
|
|
248
248
|
X !== "key" && (S[X] = f[X]);
|
|
249
249
|
} else S = f;
|
|
250
|
-
return B &&
|
|
250
|
+
return B && l(
|
|
251
251
|
S,
|
|
252
252
|
typeof n == "function" ? n.displayName || n.name || "Unknown" : n
|
|
253
253
|
), h(
|
|
@@ -264,7 +264,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
264
264
|
function x(n) {
|
|
265
265
|
typeof n == "object" && n !== null && n.$$typeof === M && n._store && (n._store.validated = 1);
|
|
266
266
|
}
|
|
267
|
-
var j = q, M = Symbol.for("react.transitional.element"), P = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), N = Symbol.for("react.consumer"), U = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), y = Symbol.for("react.activity"), d = Symbol.for("react.client.reference"),
|
|
267
|
+
var j = q, M = Symbol.for("react.transitional.element"), P = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), N = Symbol.for("react.consumer"), U = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), y = Symbol.for("react.activity"), d = Symbol.for("react.client.reference"), k = j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, A = Object.prototype.hasOwnProperty, R = Array.isArray, _ = console.createTask ? console.createTask : function() {
|
|
268
268
|
return null;
|
|
269
269
|
};
|
|
270
270
|
j = {
|
|
@@ -272,12 +272,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
272
272
|
return n();
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
|
-
var
|
|
275
|
+
var O, T = {}, o = j["react-stack-bottom-frame"].bind(
|
|
276
276
|
j,
|
|
277
277
|
s
|
|
278
278
|
)(), z = _(i(s)), m = {};
|
|
279
279
|
He.Fragment = p, He.jsx = function(n, f, S, $, L) {
|
|
280
|
-
var H = 1e4 >
|
|
280
|
+
var H = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
281
281
|
return g(
|
|
282
282
|
n,
|
|
283
283
|
f,
|
|
@@ -289,7 +289,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
289
289
|
H ? _(i(n)) : z
|
|
290
290
|
);
|
|
291
291
|
}, He.jsxs = function(n, f, S, $, L) {
|
|
292
|
-
var H = 1e4 >
|
|
292
|
+
var H = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
293
293
|
return g(
|
|
294
294
|
n,
|
|
295
295
|
f,
|
|
@@ -308,7 +308,7 @@ function Rn() {
|
|
|
308
308
|
return ir || (ir = 1, process.env.NODE_ENV === "production" ? nt.exports = Pn() : nt.exports = En()), nt.exports;
|
|
309
309
|
}
|
|
310
310
|
var K = Rn();
|
|
311
|
-
const
|
|
311
|
+
const es = ({ children: e, onClick: t, styles: r }) => /* @__PURE__ */ K.jsx(
|
|
312
312
|
"button",
|
|
313
313
|
{
|
|
314
314
|
style: {
|
|
@@ -374,20 +374,20 @@ var _t, or;
|
|
|
374
374
|
function Tn() {
|
|
375
375
|
if (or) return _t;
|
|
376
376
|
or = 1;
|
|
377
|
-
var e = "Expected a function", t = NaN, r = "[object Symbol]", i = /^\s+|\s+$/g, a = /^[-+]0x[0-9a-f]+$/i, s = /^0b[01]+$/i, c = /^0o[0-7]+$/i,
|
|
377
|
+
var e = "Expected a function", t = NaN, r = "[object Symbol]", i = /^\s+|\s+$/g, a = /^[-+]0x[0-9a-f]+$/i, s = /^0b[01]+$/i, c = /^0o[0-7]+$/i, l = parseInt, u = typeof rt == "object" && rt && rt.Object === Object && rt, h = typeof self == "object" && self && self.Object === Object && self, g = u || h || Function("return this")(), x = Object.prototype, j = x.toString, M = Math.max, P = Math.min, p = function() {
|
|
378
378
|
return g.Date.now();
|
|
379
379
|
};
|
|
380
380
|
function I(v, b, w) {
|
|
381
|
-
var E, y, d,
|
|
381
|
+
var E, y, d, k, A, R, _ = 0, O = !1, T = !1, o = !0;
|
|
382
382
|
if (typeof v != "function")
|
|
383
383
|
throw new TypeError(e);
|
|
384
|
-
b = V(b) || 0, C(w) && (
|
|
384
|
+
b = V(b) || 0, C(w) && (O = !!w.leading, T = "maxWait" in w, d = T ? M(V(w.maxWait) || 0, b) : d, o = "trailing" in w ? !!w.trailing : o);
|
|
385
385
|
function z(W) {
|
|
386
386
|
var B = E, G = y;
|
|
387
|
-
return E = y = void 0, _ = W,
|
|
387
|
+
return E = y = void 0, _ = W, k = v.apply(G, B), k;
|
|
388
388
|
}
|
|
389
389
|
function m(W) {
|
|
390
|
-
return _ = W, A = setTimeout(S, b),
|
|
390
|
+
return _ = W, A = setTimeout(S, b), O ? z(W) : k;
|
|
391
391
|
}
|
|
392
392
|
function n(W) {
|
|
393
393
|
var B = W - R, G = W - _, X = b - B;
|
|
@@ -404,13 +404,13 @@ function Tn() {
|
|
|
404
404
|
A = setTimeout(S, n(W));
|
|
405
405
|
}
|
|
406
406
|
function $(W) {
|
|
407
|
-
return A = void 0, o && E ? z(W) : (E = y = void 0,
|
|
407
|
+
return A = void 0, o && E ? z(W) : (E = y = void 0, k);
|
|
408
408
|
}
|
|
409
409
|
function L() {
|
|
410
410
|
A !== void 0 && clearTimeout(A), _ = 0, E = R = y = A = void 0;
|
|
411
411
|
}
|
|
412
412
|
function H() {
|
|
413
|
-
return A === void 0 ?
|
|
413
|
+
return A === void 0 ? k : $(p());
|
|
414
414
|
}
|
|
415
415
|
function F() {
|
|
416
416
|
var W = p(), B = f(W);
|
|
@@ -420,7 +420,7 @@ function Tn() {
|
|
|
420
420
|
if (T)
|
|
421
421
|
return A = setTimeout(S, b), z(R);
|
|
422
422
|
}
|
|
423
|
-
return A === void 0 && (A = setTimeout(S, b)),
|
|
423
|
+
return A === void 0 && (A = setTimeout(S, b)), k;
|
|
424
424
|
}
|
|
425
425
|
return F.cancel = L, F.flush = H, F;
|
|
426
426
|
}
|
|
@@ -447,7 +447,7 @@ function Tn() {
|
|
|
447
447
|
return v === 0 ? v : +v;
|
|
448
448
|
v = v.replace(i, "");
|
|
449
449
|
var w = s.test(v);
|
|
450
|
-
return w || c.test(v) ?
|
|
450
|
+
return w || c.test(v) ? l(v.slice(2), w ? 2 : 8) : a.test(v) ? t : +v;
|
|
451
451
|
}
|
|
452
452
|
return _t = I, _t;
|
|
453
453
|
}
|
|
@@ -464,8 +464,8 @@ function yt() {
|
|
|
464
464
|
var t = {}.hasOwnProperty;
|
|
465
465
|
function r() {
|
|
466
466
|
for (var s = "", c = 0; c < arguments.length; c++) {
|
|
467
|
-
var
|
|
468
|
-
|
|
467
|
+
var l = arguments[c];
|
|
468
|
+
l && (s = a(s, i(l)));
|
|
469
469
|
}
|
|
470
470
|
return s;
|
|
471
471
|
}
|
|
@@ -479,8 +479,8 @@ function yt() {
|
|
|
479
479
|
if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
|
|
480
480
|
return s.toString();
|
|
481
481
|
var c = "";
|
|
482
|
-
for (var
|
|
483
|
-
t.call(s,
|
|
482
|
+
for (var l in s)
|
|
483
|
+
t.call(s, l) && s[l] && (c = a(c, l));
|
|
484
484
|
return c;
|
|
485
485
|
}
|
|
486
486
|
function a(s, c) {
|
|
@@ -606,13 +606,13 @@ function Ke() {
|
|
|
606
606
|
return m;
|
|
607
607
|
}
|
|
608
608
|
function c(m, n, f) {
|
|
609
|
-
return (n =
|
|
609
|
+
return (n = l(n)) in m ? Object.defineProperty(m, n, { value: f, enumerable: !0, configurable: !0, writable: !0 }) : m[n] = f, m;
|
|
610
610
|
}
|
|
611
|
-
function
|
|
612
|
-
var n =
|
|
611
|
+
function l(m) {
|
|
612
|
+
var n = u(m, "string");
|
|
613
613
|
return i(n) == "symbol" ? n : n + "";
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function u(m, n) {
|
|
616
616
|
if (i(m) != "object" || !m) return m;
|
|
617
617
|
var f = m[Symbol.toPrimitive];
|
|
618
618
|
if (f !== void 0) {
|
|
@@ -782,8 +782,8 @@ function Ke() {
|
|
|
782
782
|
F && (Q.swipeLength = tr);
|
|
783
783
|
var Ie = (W ? -1 : 1) * (Q.curX > Q.startX ? 1 : -1);
|
|
784
784
|
F && (Ie = Q.curY > Q.startY ? 1 : -1);
|
|
785
|
-
var
|
|
786
|
-
return le || (B === 0 && (Ce === "right" || Ce === "down") || B + 1 >=
|
|
785
|
+
var kn = Math.ceil(ee / ie), Ce = N(f.touchObject, F), Ae = Q.swipeLength;
|
|
786
|
+
return le || (B === 0 && (Ce === "right" || Ce === "down") || B + 1 >= kn && (Ce === "left" || Ce === "up") || !U(f) && (Ce === "left" || Ce === "up")) && (Ae = Q.swipeLength * G, X === !1 && J && (J(Ce), Ee.edgeDragged = !0)), !te && oe && (oe(Ce), Ee.swiped = !0), L ? pe = tt + Ae * (ue / ce) * Ie : W ? pe = tt - Ae * Ie : pe = tt + Ae * Ie, F && (pe = tt + Ae * Ie), Ee = s(s({}, Ee), {}, {
|
|
787
787
|
touchObject: Q,
|
|
788
788
|
swipeLeft: pe,
|
|
789
789
|
trackStyle: E(s(s({}, f), {}, {
|
|
@@ -906,25 +906,25 @@ function Ke() {
|
|
|
906
906
|
if (te || n.slideCount === 1)
|
|
907
907
|
return 0;
|
|
908
908
|
var oe = 0;
|
|
909
|
-
if ($ ? (oe = -
|
|
909
|
+
if ($ ? (oe = -k(n), H % W !== 0 && f + W > H && (oe = -(f > H ? F - (f - H) : H % W)), L && (oe += parseInt(F / 2))) : (H % W !== 0 && f + W > H && (oe = F - H % W), L && (oe = parseInt(F / 2))), ee = oe * B, Q = oe * J, Z ? ie = f * J * -1 + Q : ie = f * B * -1 + ee, X === !0) {
|
|
910
910
|
var ue, ce = S && S.node;
|
|
911
|
-
if (ue = f +
|
|
912
|
-
ue = $ ? f +
|
|
911
|
+
if (ue = f + k(n), le = ce && ce.childNodes[ue], ie = le ? le.offsetLeft * -1 : 0, L === !0) {
|
|
912
|
+
ue = $ ? f + k(n) : f, le = ce && ce.children[ue], ie = 0;
|
|
913
913
|
for (var pe = 0; pe < ue; pe++)
|
|
914
914
|
ie -= ce && ce.children[pe] && ce.children[pe].offsetWidth;
|
|
915
915
|
ie -= parseInt(n.centerPadding), ie += le && (G - le.offsetWidth) / 2;
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
918
|
return ie;
|
|
919
|
-
},
|
|
919
|
+
}, k = Y.getPreClones = function(n) {
|
|
920
920
|
return n.unslick || !n.infinite ? 0 : n.variableWidth ? n.slideCount : n.slidesToShow + (n.centerMode ? 1 : 0);
|
|
921
921
|
}, A = Y.getPostClones = function(n) {
|
|
922
922
|
return n.unslick || !n.infinite ? 0 : n.variableWidth ? n.slideCount : n.slidesToShow + (n.centerMode ? 1 : 0);
|
|
923
923
|
}, R = Y.getTotalSlides = function(n) {
|
|
924
|
-
return n.slideCount === 1 ? 1 :
|
|
924
|
+
return n.slideCount === 1 ? 1 : k(n) + n.slideCount + A(n);
|
|
925
925
|
}, _ = Y.siblingDirection = function(n) {
|
|
926
|
-
return n.targetSlide > n.currentSlide ? n.targetSlide > n.currentSlide +
|
|
927
|
-
},
|
|
926
|
+
return n.targetSlide > n.currentSlide ? n.targetSlide > n.currentSlide + O(n) ? "left" : "right" : n.targetSlide < n.currentSlide - T(n) ? "right" : "left";
|
|
927
|
+
}, O = Y.slidesOnRight = function(n) {
|
|
928
928
|
var f = n.slidesToShow, S = n.centerMode, $ = n.rtl, L = n.centerPadding;
|
|
929
929
|
if (S) {
|
|
930
930
|
var H = (f - 1) / 2 + 1;
|
|
@@ -971,9 +971,9 @@ function jn() {
|
|
|
971
971
|
function s() {
|
|
972
972
|
return s = Object.assign ? Object.assign.bind() : function(y) {
|
|
973
973
|
for (var d = 1; d < arguments.length; d++) {
|
|
974
|
-
var
|
|
975
|
-
for (var A in
|
|
976
|
-
({}).hasOwnProperty.call(
|
|
974
|
+
var k = arguments[d];
|
|
975
|
+
for (var A in k)
|
|
976
|
+
({}).hasOwnProperty.call(k, A) && (y[A] = k[A]);
|
|
977
977
|
}
|
|
978
978
|
return y;
|
|
979
979
|
}, s.apply(null, arguments);
|
|
@@ -981,33 +981,33 @@ function jn() {
|
|
|
981
981
|
function c(y, d) {
|
|
982
982
|
if (!(y instanceof d)) throw new TypeError("Cannot call a class as a function");
|
|
983
983
|
}
|
|
984
|
-
function
|
|
985
|
-
for (var
|
|
986
|
-
var A = d[
|
|
984
|
+
function l(y, d) {
|
|
985
|
+
for (var k = 0; k < d.length; k++) {
|
|
986
|
+
var A = d[k];
|
|
987
987
|
A.enumerable = A.enumerable || !1, A.configurable = !0, "value" in A && (A.writable = !0), Object.defineProperty(y, U(A.key), A);
|
|
988
988
|
}
|
|
989
989
|
}
|
|
990
|
-
function
|
|
991
|
-
return d &&
|
|
990
|
+
function u(y, d, k) {
|
|
991
|
+
return d && l(y.prototype, d), Object.defineProperty(y, "prototype", { writable: !1 }), y;
|
|
992
992
|
}
|
|
993
993
|
function h(y, d) {
|
|
994
994
|
if (typeof d != "function" && d !== null) throw new TypeError("Super expression must either be null or a function");
|
|
995
995
|
y.prototype = Object.create(d && d.prototype, { constructor: { value: y, writable: !0, configurable: !0 } }), Object.defineProperty(y, "prototype", { writable: !1 }), d && g(y, d);
|
|
996
996
|
}
|
|
997
997
|
function g(y, d) {
|
|
998
|
-
return g = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(
|
|
999
|
-
return
|
|
998
|
+
return g = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(k, A) {
|
|
999
|
+
return k.__proto__ = A, k;
|
|
1000
1000
|
}, g(y, d);
|
|
1001
1001
|
}
|
|
1002
1002
|
function x(y) {
|
|
1003
1003
|
var d = P();
|
|
1004
1004
|
return function() {
|
|
1005
|
-
var
|
|
1005
|
+
var k, A = p(y);
|
|
1006
1006
|
if (d) {
|
|
1007
1007
|
var R = p(this).constructor;
|
|
1008
|
-
|
|
1009
|
-
} else
|
|
1010
|
-
return j(this,
|
|
1008
|
+
k = Reflect.construct(A, arguments, R);
|
|
1009
|
+
} else k = A.apply(this, arguments);
|
|
1010
|
+
return j(this, k);
|
|
1011
1011
|
};
|
|
1012
1012
|
}
|
|
1013
1013
|
function j(y, d) {
|
|
@@ -1035,28 +1035,28 @@ function jn() {
|
|
|
1035
1035
|
}, p(y);
|
|
1036
1036
|
}
|
|
1037
1037
|
function I(y, d) {
|
|
1038
|
-
var
|
|
1038
|
+
var k = Object.keys(y);
|
|
1039
1039
|
if (Object.getOwnPropertySymbols) {
|
|
1040
1040
|
var A = Object.getOwnPropertySymbols(y);
|
|
1041
1041
|
d && (A = A.filter(function(R) {
|
|
1042
1042
|
return Object.getOwnPropertyDescriptor(y, R).enumerable;
|
|
1043
|
-
})),
|
|
1043
|
+
})), k.push.apply(k, A);
|
|
1044
1044
|
}
|
|
1045
|
-
return
|
|
1045
|
+
return k;
|
|
1046
1046
|
}
|
|
1047
1047
|
function C(y) {
|
|
1048
1048
|
for (var d = 1; d < arguments.length; d++) {
|
|
1049
|
-
var
|
|
1050
|
-
d % 2 ? I(Object(
|
|
1051
|
-
N(y, A,
|
|
1052
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(y, Object.getOwnPropertyDescriptors(
|
|
1053
|
-
Object.defineProperty(y, A, Object.getOwnPropertyDescriptor(
|
|
1049
|
+
var k = arguments[d] != null ? arguments[d] : {};
|
|
1050
|
+
d % 2 ? I(Object(k), !0).forEach(function(A) {
|
|
1051
|
+
N(y, A, k[A]);
|
|
1052
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(y, Object.getOwnPropertyDescriptors(k)) : I(Object(k)).forEach(function(A) {
|
|
1053
|
+
Object.defineProperty(y, A, Object.getOwnPropertyDescriptor(k, A));
|
|
1054
1054
|
});
|
|
1055
1055
|
}
|
|
1056
1056
|
return y;
|
|
1057
1057
|
}
|
|
1058
|
-
function N(y, d,
|
|
1059
|
-
return (d = U(d)) in y ? Object.defineProperty(y, d, { value:
|
|
1058
|
+
function N(y, d, k) {
|
|
1059
|
+
return (d = U(d)) in y ? Object.defineProperty(y, d, { value: k, enumerable: !0, configurable: !0, writable: !0 }) : y[d] = k, y;
|
|
1060
1060
|
}
|
|
1061
1061
|
function U(y) {
|
|
1062
1062
|
var d = V(y, "string");
|
|
@@ -1064,35 +1064,35 @@ function jn() {
|
|
|
1064
1064
|
}
|
|
1065
1065
|
function V(y, d) {
|
|
1066
1066
|
if (a(y) != "object" || !y) return y;
|
|
1067
|
-
var
|
|
1068
|
-
if (
|
|
1069
|
-
var A =
|
|
1067
|
+
var k = y[Symbol.toPrimitive];
|
|
1068
|
+
if (k !== void 0) {
|
|
1069
|
+
var A = k.call(y, d);
|
|
1070
1070
|
if (a(A) != "object") return A;
|
|
1071
1071
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1072
1072
|
}
|
|
1073
1073
|
return (d === "string" ? String : Number)(y);
|
|
1074
1074
|
}
|
|
1075
1075
|
var v = function(d) {
|
|
1076
|
-
var
|
|
1077
|
-
d.rtl ?
|
|
1076
|
+
var k, A, R, _, O;
|
|
1077
|
+
d.rtl ? O = d.slideCount - 1 - d.index : O = d.index, R = O < 0 || O >= d.slideCount, d.centerMode ? (_ = Math.floor(d.slidesToShow / 2), A = (O - d.currentSlide) % d.slideCount === 0, O > d.currentSlide - _ - 1 && O <= d.currentSlide + _ && (k = !0)) : k = d.currentSlide <= O && O < d.currentSlide + d.slidesToShow;
|
|
1078
1078
|
var T;
|
|
1079
1079
|
d.targetSlide < 0 ? T = d.targetSlide + d.slideCount : d.targetSlide >= d.slideCount ? T = d.targetSlide - d.slideCount : T = d.targetSlide;
|
|
1080
|
-
var o =
|
|
1080
|
+
var o = O === T;
|
|
1081
1081
|
return {
|
|
1082
1082
|
"slick-slide": !0,
|
|
1083
|
-
"slick-active":
|
|
1083
|
+
"slick-active": k,
|
|
1084
1084
|
"slick-center": A,
|
|
1085
1085
|
"slick-cloned": R,
|
|
1086
1086
|
"slick-current": o
|
|
1087
1087
|
// dubious in case of RTL
|
|
1088
1088
|
};
|
|
1089
1089
|
}, b = function(d) {
|
|
1090
|
-
var
|
|
1091
|
-
return (d.variableWidth === void 0 || d.variableWidth === !1) && (
|
|
1092
|
-
}, w = function(d,
|
|
1093
|
-
return d.key ||
|
|
1090
|
+
var k = {};
|
|
1091
|
+
return (d.variableWidth === void 0 || d.variableWidth === !1) && (k.width = d.slideWidth), d.fade && (k.position = "relative", d.vertical ? k.top = -d.index * parseInt(d.slideHeight) : k.left = -d.index * parseInt(d.slideWidth), k.opacity = d.currentSlide === d.index ? 1 : 0, k.zIndex = d.currentSlide === d.index ? 999 : 998, d.useCSS && (k.transition = "opacity " + d.speed + "ms " + d.cssEase + ", visibility " + d.speed + "ms " + d.cssEase)), k;
|
|
1092
|
+
}, w = function(d, k) {
|
|
1093
|
+
return d.key || k;
|
|
1094
1094
|
}, E = function(d) {
|
|
1095
|
-
var
|
|
1095
|
+
var k, A = [], R = [], _ = [], O = e.default.Children.count(d.children), T = (0, r.lazyStartIndex)(d), o = (0, r.lazyEndIndex)(d);
|
|
1096
1096
|
return e.default.Children.forEach(d.children, function(z, m) {
|
|
1097
1097
|
var n, f = {
|
|
1098
1098
|
message: "children",
|
|
@@ -1118,13 +1118,13 @@ function jn() {
|
|
|
1118
1118
|
onClick: function(W) {
|
|
1119
1119
|
n.props && n.props.onClick && n.props.onClick(W), d.focusOnSelect && d.focusOnSelect(f);
|
|
1120
1120
|
}
|
|
1121
|
-
})), d.infinite &&
|
|
1122
|
-
var H =
|
|
1123
|
-
H <= (0, r.getPreClones)(d) && (
|
|
1124
|
-
index:
|
|
1121
|
+
})), d.infinite && O > 1 && d.fade === !1 && !d.unslick) {
|
|
1122
|
+
var H = O - m;
|
|
1123
|
+
H <= (0, r.getPreClones)(d) && (k = -H, k >= T && (n = z), L = v(C(C({}, d), {}, {
|
|
1124
|
+
index: k
|
|
1125
1125
|
})), R.push(/* @__PURE__ */ e.default.cloneElement(n, {
|
|
1126
|
-
key: "precloned" + w(n,
|
|
1127
|
-
"data-index":
|
|
1126
|
+
key: "precloned" + w(n, k),
|
|
1127
|
+
"data-index": k,
|
|
1128
1128
|
tabIndex: "-1",
|
|
1129
1129
|
className: (0, t.default)(L, $),
|
|
1130
1130
|
"aria-hidden": !L["slick-active"],
|
|
@@ -1132,11 +1132,11 @@ function jn() {
|
|
|
1132
1132
|
onClick: function(W) {
|
|
1133
1133
|
n.props && n.props.onClick && n.props.onClick(W), d.focusOnSelect && d.focusOnSelect(f);
|
|
1134
1134
|
}
|
|
1135
|
-
}))), m < (0, r.getPostClones)(d) && (
|
|
1136
|
-
index:
|
|
1135
|
+
}))), m < (0, r.getPostClones)(d) && (k = O + m, k < o && (n = z), L = v(C(C({}, d), {}, {
|
|
1136
|
+
index: k
|
|
1137
1137
|
})), _.push(/* @__PURE__ */ e.default.cloneElement(n, {
|
|
1138
|
-
key: "postcloned" + w(n,
|
|
1139
|
-
"data-index":
|
|
1138
|
+
key: "postcloned" + w(n, k),
|
|
1139
|
+
"data-index": k,
|
|
1140
1140
|
tabIndex: "-1",
|
|
1141
1141
|
className: (0, t.default)(L, $),
|
|
1142
1142
|
"aria-hidden": !L["slick-active"],
|
|
@@ -1149,22 +1149,22 @@ function jn() {
|
|
|
1149
1149
|
}), d.rtl ? R.concat(A, _).reverse() : R.concat(A, _);
|
|
1150
1150
|
};
|
|
1151
1151
|
return Fe.Track = /* @__PURE__ */ function(y) {
|
|
1152
|
-
h(
|
|
1153
|
-
var d = x(
|
|
1154
|
-
function
|
|
1152
|
+
h(k, y);
|
|
1153
|
+
var d = x(k);
|
|
1154
|
+
function k() {
|
|
1155
1155
|
var A;
|
|
1156
|
-
c(this,
|
|
1157
|
-
for (var R = arguments.length, _ = new Array(R),
|
|
1158
|
-
_[
|
|
1156
|
+
c(this, k);
|
|
1157
|
+
for (var R = arguments.length, _ = new Array(R), O = 0; O < R; O++)
|
|
1158
|
+
_[O] = arguments[O];
|
|
1159
1159
|
return A = d.call.apply(d, [this].concat(_)), N(M(A), "node", null), N(M(A), "handleRef", function(T) {
|
|
1160
1160
|
A.node = T;
|
|
1161
1161
|
}), A;
|
|
1162
1162
|
}
|
|
1163
|
-
return
|
|
1163
|
+
return u(k, [{
|
|
1164
1164
|
key: "render",
|
|
1165
1165
|
value: function() {
|
|
1166
|
-
var R = E(this.props), _ = this.props,
|
|
1167
|
-
onMouseEnter:
|
|
1166
|
+
var R = E(this.props), _ = this.props, O = _.onMouseEnter, T = _.onMouseOver, o = _.onMouseLeave, z = {
|
|
1167
|
+
onMouseEnter: O,
|
|
1168
1168
|
onMouseOver: T,
|
|
1169
1169
|
onMouseLeave: o
|
|
1170
1170
|
};
|
|
@@ -1174,7 +1174,7 @@ function jn() {
|
|
|
1174
1174
|
style: this.props.trackStyle
|
|
1175
1175
|
}, z), R);
|
|
1176
1176
|
}
|
|
1177
|
-
}]),
|
|
1177
|
+
}]), k;
|
|
1178
1178
|
}(e.default.PureComponent), Fe;
|
|
1179
1179
|
}
|
|
1180
1180
|
var We = {}, fr;
|
|
@@ -1210,17 +1210,17 @@ function Ln() {
|
|
|
1210
1210
|
for (var b = 1; b < arguments.length; b++) {
|
|
1211
1211
|
var w = arguments[b] != null ? arguments[b] : {};
|
|
1212
1212
|
b % 2 ? s(Object(w), !0).forEach(function(E) {
|
|
1213
|
-
|
|
1213
|
+
l(v, E, w[E]);
|
|
1214
1214
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(v, Object.getOwnPropertyDescriptors(w)) : s(Object(w)).forEach(function(E) {
|
|
1215
1215
|
Object.defineProperty(v, E, Object.getOwnPropertyDescriptor(w, E));
|
|
1216
1216
|
});
|
|
1217
1217
|
}
|
|
1218
1218
|
return v;
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1220
|
+
function l(v, b, w) {
|
|
1221
1221
|
return (b = x(b)) in v ? Object.defineProperty(v, b, { value: w, enumerable: !0, configurable: !0, writable: !0 }) : v[b] = w, v;
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1223
|
+
function u(v, b) {
|
|
1224
1224
|
if (!(v instanceof b)) throw new TypeError("Cannot call a class as a function");
|
|
1225
1225
|
}
|
|
1226
1226
|
function h(v, b) {
|
|
@@ -1298,7 +1298,7 @@ function Ln() {
|
|
|
1298
1298
|
M(w, v);
|
|
1299
1299
|
var b = p(w);
|
|
1300
1300
|
function w() {
|
|
1301
|
-
return
|
|
1301
|
+
return u(this, w), b.apply(this, arguments);
|
|
1302
1302
|
}
|
|
1303
1303
|
return g(w, [{
|
|
1304
1304
|
key: "clickHandler",
|
|
@@ -1308,14 +1308,14 @@ function Ln() {
|
|
|
1308
1308
|
}, {
|
|
1309
1309
|
key: "render",
|
|
1310
1310
|
value: function() {
|
|
1311
|
-
for (var y = this.props, d = y.onMouseEnter,
|
|
1311
|
+
for (var y = this.props, d = y.onMouseEnter, k = y.onMouseOver, A = y.onMouseLeave, R = y.infinite, _ = y.slidesToScroll, O = y.slidesToShow, T = y.slideCount, o = y.currentSlide, z = V({
|
|
1312
1312
|
slideCount: T,
|
|
1313
1313
|
slidesToScroll: _,
|
|
1314
|
-
slidesToShow:
|
|
1314
|
+
slidesToShow: O,
|
|
1315
1315
|
infinite: R
|
|
1316
1316
|
}), m = {
|
|
1317
1317
|
onMouseEnter: d,
|
|
1318
|
-
onMouseOver:
|
|
1318
|
+
onMouseOver: k,
|
|
1319
1319
|
onMouseLeave: A
|
|
1320
1320
|
}, n = [], f = 0; f < z; f++) {
|
|
1321
1321
|
var S = (f + 1) * _ - 1, $ = R ? S : (0, i.clamp)(S, 0, T - 1), L = $ - (_ - 1), H = R ? L : (0, i.clamp)(L, 0, T - 1), F = (0, r.default)({
|
|
@@ -1379,18 +1379,18 @@ function Dn() {
|
|
|
1379
1379
|
}
|
|
1380
1380
|
return w;
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1382
|
+
function l(v) {
|
|
1383
1383
|
for (var b = 1; b < arguments.length; b++) {
|
|
1384
1384
|
var w = arguments[b] != null ? arguments[b] : {};
|
|
1385
1385
|
b % 2 ? c(Object(w), !0).forEach(function(E) {
|
|
1386
|
-
|
|
1386
|
+
u(v, E, w[E]);
|
|
1387
1387
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(v, Object.getOwnPropertyDescriptors(w)) : c(Object(w)).forEach(function(E) {
|
|
1388
1388
|
Object.defineProperty(v, E, Object.getOwnPropertyDescriptor(w, E));
|
|
1389
1389
|
});
|
|
1390
1390
|
}
|
|
1391
1391
|
return v;
|
|
1392
1392
|
}
|
|
1393
|
-
function
|
|
1393
|
+
function u(v, b, w) {
|
|
1394
1394
|
return (b = j(b)) in v ? Object.defineProperty(v, b, { value: w, enumerable: !0, configurable: !0, writable: !0 }) : v[b] = w, v;
|
|
1395
1395
|
}
|
|
1396
1396
|
function h(v, b) {
|
|
@@ -1484,7 +1484,7 @@ function Dn() {
|
|
|
1484
1484
|
message: "previous"
|
|
1485
1485
|
});
|
|
1486
1486
|
!this.props.infinite && (this.props.currentSlide === 0 || this.props.slideCount <= this.props.slidesToShow) && (y["slick-disabled"] = !0, d = null);
|
|
1487
|
-
var
|
|
1487
|
+
var k = {
|
|
1488
1488
|
key: "0",
|
|
1489
1489
|
"data-role": "none",
|
|
1490
1490
|
className: (0, r.default)(y),
|
|
@@ -1496,10 +1496,10 @@ function Dn() {
|
|
|
1496
1496
|
currentSlide: this.props.currentSlide,
|
|
1497
1497
|
slideCount: this.props.slideCount
|
|
1498
1498
|
}, R;
|
|
1499
|
-
return this.props.prevArrow ? R = /* @__PURE__ */ t.default.cloneElement(this.props.prevArrow,
|
|
1499
|
+
return this.props.prevArrow ? R = /* @__PURE__ */ t.default.cloneElement(this.props.prevArrow, l(l({}, k), A)) : R = /* @__PURE__ */ t.default.createElement("button", s({
|
|
1500
1500
|
key: "0",
|
|
1501
1501
|
type: "button"
|
|
1502
|
-
},
|
|
1502
|
+
}, k), " ", "Previous"), R;
|
|
1503
1503
|
}
|
|
1504
1504
|
}]), w;
|
|
1505
1505
|
}(t.default.PureComponent), Re.NextArrow = /* @__PURE__ */ function(v) {
|
|
@@ -1523,7 +1523,7 @@ function Dn() {
|
|
|
1523
1523
|
message: "next"
|
|
1524
1524
|
});
|
|
1525
1525
|
(0, i.canGoNext)(this.props) || (y["slick-disabled"] = !0, d = null);
|
|
1526
|
-
var
|
|
1526
|
+
var k = {
|
|
1527
1527
|
key: "1",
|
|
1528
1528
|
"data-role": "none",
|
|
1529
1529
|
className: (0, r.default)(y),
|
|
@@ -1535,10 +1535,10 @@ function Dn() {
|
|
|
1535
1535
|
currentSlide: this.props.currentSlide,
|
|
1536
1536
|
slideCount: this.props.slideCount
|
|
1537
1537
|
}, R;
|
|
1538
|
-
return this.props.nextArrow ? R = /* @__PURE__ */ t.default.cloneElement(this.props.nextArrow,
|
|
1538
|
+
return this.props.nextArrow ? R = /* @__PURE__ */ t.default.cloneElement(this.props.nextArrow, l(l({}, k), A)) : R = /* @__PURE__ */ t.default.createElement("button", s({
|
|
1539
1539
|
key: "1",
|
|
1540
1540
|
type: "button"
|
|
1541
|
-
},
|
|
1541
|
+
}, k), " ", "Next"), R;
|
|
1542
1542
|
}
|
|
1543
1543
|
}]), w;
|
|
1544
1544
|
}(t.default.PureComponent), Re;
|
|
@@ -1601,22 +1601,22 @@ var Nr = function() {
|
|
|
1601
1601
|
function In(e, t) {
|
|
1602
1602
|
var r = !1, i = !1, a = 0;
|
|
1603
1603
|
function s() {
|
|
1604
|
-
r && (r = !1, e()), i &&
|
|
1604
|
+
r && (r = !1, e()), i && l();
|
|
1605
1605
|
}
|
|
1606
1606
|
function c() {
|
|
1607
1607
|
Mn(s);
|
|
1608
1608
|
}
|
|
1609
|
-
function
|
|
1610
|
-
var
|
|
1609
|
+
function l() {
|
|
1610
|
+
var u = Date.now();
|
|
1611
1611
|
if (r) {
|
|
1612
|
-
if (
|
|
1612
|
+
if (u - a < $n)
|
|
1613
1613
|
return;
|
|
1614
1614
|
i = !0;
|
|
1615
1615
|
} else
|
|
1616
1616
|
r = !0, i = !1, setTimeout(c, t);
|
|
1617
|
-
a =
|
|
1617
|
+
a = u;
|
|
1618
1618
|
}
|
|
1619
|
-
return
|
|
1619
|
+
return l;
|
|
1620
1620
|
}
|
|
1621
1621
|
var An = 20, zn = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], Hn = typeof MutationObserver < "u", Nn = (
|
|
1622
1622
|
/** @class */
|
|
@@ -1698,12 +1698,12 @@ function Un(e) {
|
|
|
1698
1698
|
var t = e.clientWidth, r = e.clientHeight;
|
|
1699
1699
|
if (!t && !r)
|
|
1700
1700
|
return Wr;
|
|
1701
|
-
var i = je(e).getComputedStyle(e), a = Fn(i), s = a.left + a.right, c = a.top + a.bottom,
|
|
1702
|
-
if (i.boxSizing === "border-box" && (Math.round(
|
|
1703
|
-
var h = Math.round(
|
|
1704
|
-
Math.abs(h) !== 1 && (
|
|
1701
|
+
var i = je(e).getComputedStyle(e), a = Fn(i), s = a.left + a.right, c = a.top + a.bottom, l = mt(i.width), u = mt(i.height);
|
|
1702
|
+
if (i.boxSizing === "border-box" && (Math.round(l + s) !== t && (l -= hr(i, "left", "right") + s), Math.round(u + c) !== r && (u -= hr(i, "top", "bottom") + c)), !qn(e)) {
|
|
1703
|
+
var h = Math.round(l + s) - t, g = Math.round(u + c) - r;
|
|
1704
|
+
Math.abs(h) !== 1 && (l -= h), Math.abs(g) !== 1 && (u -= g);
|
|
1705
1705
|
}
|
|
1706
|
-
return bt(a.left, a.top,
|
|
1706
|
+
return bt(a.left, a.top, l, u);
|
|
1707
1707
|
}
|
|
1708
1708
|
var Yn = /* @__PURE__ */ function() {
|
|
1709
1709
|
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
@@ -1840,7 +1840,7 @@ function ei() {
|
|
|
1840
1840
|
pr = 1, Object.defineProperty(Ne, "__esModule", {
|
|
1841
1841
|
value: !0
|
|
1842
1842
|
}), Ne.InnerSlider = void 0;
|
|
1843
|
-
var e = h(q), t = h(_n()), r = h(Tn()), i = h(yt()), a = Ke(), s = jn(), c = Ln(),
|
|
1843
|
+
var e = h(q), t = h(_n()), r = h(Tn()), i = h(yt()), a = Ke(), s = jn(), c = Ln(), l = Dn(), u = h(Qn);
|
|
1844
1844
|
function h(R) {
|
|
1845
1845
|
return R && R.__esModule ? R : { default: R };
|
|
1846
1846
|
}
|
|
@@ -1855,50 +1855,50 @@ function ei() {
|
|
|
1855
1855
|
function x() {
|
|
1856
1856
|
return x = Object.assign ? Object.assign.bind() : function(R) {
|
|
1857
1857
|
for (var _ = 1; _ < arguments.length; _++) {
|
|
1858
|
-
var
|
|
1859
|
-
for (var T in
|
|
1860
|
-
({}).hasOwnProperty.call(
|
|
1858
|
+
var O = arguments[_];
|
|
1859
|
+
for (var T in O)
|
|
1860
|
+
({}).hasOwnProperty.call(O, T) && (R[T] = O[T]);
|
|
1861
1861
|
}
|
|
1862
1862
|
return R;
|
|
1863
1863
|
}, x.apply(null, arguments);
|
|
1864
1864
|
}
|
|
1865
1865
|
function j(R, _) {
|
|
1866
1866
|
if (R == null) return {};
|
|
1867
|
-
var
|
|
1867
|
+
var O, T, o = M(R, _);
|
|
1868
1868
|
if (Object.getOwnPropertySymbols) {
|
|
1869
1869
|
var z = Object.getOwnPropertySymbols(R);
|
|
1870
1870
|
for (T = 0; T < z.length; T++)
|
|
1871
|
-
|
|
1871
|
+
O = z[T], _.includes(O) || {}.propertyIsEnumerable.call(R, O) && (o[O] = R[O]);
|
|
1872
1872
|
}
|
|
1873
1873
|
return o;
|
|
1874
1874
|
}
|
|
1875
1875
|
function M(R, _) {
|
|
1876
1876
|
if (R == null) return {};
|
|
1877
|
-
var
|
|
1877
|
+
var O = {};
|
|
1878
1878
|
for (var T in R)
|
|
1879
1879
|
if ({}.hasOwnProperty.call(R, T)) {
|
|
1880
1880
|
if (_.includes(T)) continue;
|
|
1881
|
-
|
|
1881
|
+
O[T] = R[T];
|
|
1882
1882
|
}
|
|
1883
|
-
return
|
|
1883
|
+
return O;
|
|
1884
1884
|
}
|
|
1885
1885
|
function P(R, _) {
|
|
1886
|
-
var
|
|
1886
|
+
var O = Object.keys(R);
|
|
1887
1887
|
if (Object.getOwnPropertySymbols) {
|
|
1888
1888
|
var T = Object.getOwnPropertySymbols(R);
|
|
1889
1889
|
_ && (T = T.filter(function(o) {
|
|
1890
1890
|
return Object.getOwnPropertyDescriptor(R, o).enumerable;
|
|
1891
|
-
})),
|
|
1891
|
+
})), O.push.apply(O, T);
|
|
1892
1892
|
}
|
|
1893
|
-
return
|
|
1893
|
+
return O;
|
|
1894
1894
|
}
|
|
1895
1895
|
function p(R) {
|
|
1896
1896
|
for (var _ = 1; _ < arguments.length; _++) {
|
|
1897
|
-
var
|
|
1898
|
-
_ % 2 ? P(Object(
|
|
1899
|
-
d(R, T,
|
|
1900
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(R, Object.getOwnPropertyDescriptors(
|
|
1901
|
-
Object.defineProperty(R, T, Object.getOwnPropertyDescriptor(
|
|
1897
|
+
var O = arguments[_] != null ? arguments[_] : {};
|
|
1898
|
+
_ % 2 ? P(Object(O), !0).forEach(function(T) {
|
|
1899
|
+
d(R, T, O[T]);
|
|
1900
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(R, Object.getOwnPropertyDescriptors(O)) : P(Object(O)).forEach(function(T) {
|
|
1901
|
+
Object.defineProperty(R, T, Object.getOwnPropertyDescriptor(O, T));
|
|
1902
1902
|
});
|
|
1903
1903
|
}
|
|
1904
1904
|
return R;
|
|
@@ -1907,12 +1907,12 @@ function ei() {
|
|
|
1907
1907
|
if (!(R instanceof _)) throw new TypeError("Cannot call a class as a function");
|
|
1908
1908
|
}
|
|
1909
1909
|
function C(R, _) {
|
|
1910
|
-
for (var
|
|
1911
|
-
var T = _[
|
|
1912
|
-
T.enumerable = T.enumerable || !1, T.configurable = !0, "value" in T && (T.writable = !0), Object.defineProperty(R,
|
|
1910
|
+
for (var O = 0; O < _.length; O++) {
|
|
1911
|
+
var T = _[O];
|
|
1912
|
+
T.enumerable = T.enumerable || !1, T.configurable = !0, "value" in T && (T.writable = !0), Object.defineProperty(R, k(T.key), T);
|
|
1913
1913
|
}
|
|
1914
1914
|
}
|
|
1915
|
-
function N(R, _,
|
|
1915
|
+
function N(R, _, O) {
|
|
1916
1916
|
return _ && C(R.prototype, _), Object.defineProperty(R, "prototype", { writable: !1 }), R;
|
|
1917
1917
|
}
|
|
1918
1918
|
function U(R, _) {
|
|
@@ -1920,19 +1920,19 @@ function ei() {
|
|
|
1920
1920
|
R.prototype = Object.create(_ && _.prototype, { constructor: { value: R, writable: !0, configurable: !0 } }), Object.defineProperty(R, "prototype", { writable: !1 }), _ && V(R, _);
|
|
1921
1921
|
}
|
|
1922
1922
|
function V(R, _) {
|
|
1923
|
-
return V = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(
|
|
1924
|
-
return
|
|
1923
|
+
return V = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(O, T) {
|
|
1924
|
+
return O.__proto__ = T, O;
|
|
1925
1925
|
}, V(R, _);
|
|
1926
1926
|
}
|
|
1927
1927
|
function v(R) {
|
|
1928
1928
|
var _ = E();
|
|
1929
1929
|
return function() {
|
|
1930
|
-
var
|
|
1930
|
+
var O, T = y(R);
|
|
1931
1931
|
if (_) {
|
|
1932
1932
|
var o = y(this).constructor;
|
|
1933
|
-
|
|
1934
|
-
} else
|
|
1935
|
-
return b(this,
|
|
1933
|
+
O = Reflect.construct(T, arguments, o);
|
|
1934
|
+
} else O = T.apply(this, arguments);
|
|
1935
|
+
return b(this, O);
|
|
1936
1936
|
};
|
|
1937
1937
|
}
|
|
1938
1938
|
function b(R, _) {
|
|
@@ -1959,29 +1959,29 @@ function ei() {
|
|
|
1959
1959
|
return _.__proto__ || Object.getPrototypeOf(_);
|
|
1960
1960
|
}, y(R);
|
|
1961
1961
|
}
|
|
1962
|
-
function d(R, _,
|
|
1963
|
-
return (_ =
|
|
1962
|
+
function d(R, _, O) {
|
|
1963
|
+
return (_ = k(_)) in R ? Object.defineProperty(R, _, { value: O, enumerable: !0, configurable: !0, writable: !0 }) : R[_] = O, R;
|
|
1964
1964
|
}
|
|
1965
|
-
function
|
|
1965
|
+
function k(R) {
|
|
1966
1966
|
var _ = A(R, "string");
|
|
1967
1967
|
return g(_) == "symbol" ? _ : _ + "";
|
|
1968
1968
|
}
|
|
1969
1969
|
function A(R, _) {
|
|
1970
1970
|
if (g(R) != "object" || !R) return R;
|
|
1971
|
-
var
|
|
1972
|
-
if (
|
|
1973
|
-
var T =
|
|
1971
|
+
var O = R[Symbol.toPrimitive];
|
|
1972
|
+
if (O !== void 0) {
|
|
1973
|
+
var T = O.call(R, _);
|
|
1974
1974
|
if (g(T) != "object") return T;
|
|
1975
1975
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1976
1976
|
}
|
|
1977
1977
|
return (_ === "string" ? String : Number)(R);
|
|
1978
1978
|
}
|
|
1979
1979
|
return Ne.InnerSlider = /* @__PURE__ */ function(R) {
|
|
1980
|
-
U(
|
|
1981
|
-
var _ = v(
|
|
1982
|
-
function
|
|
1980
|
+
U(O, R);
|
|
1981
|
+
var _ = v(O);
|
|
1982
|
+
function O(T) {
|
|
1983
1983
|
var o;
|
|
1984
|
-
I(this,
|
|
1984
|
+
I(this, O), o = _.call(this, T), d(w(o), "listRefHandler", function(m) {
|
|
1985
1985
|
return o.list = m;
|
|
1986
1986
|
}), d(w(o), "trackRefHandler", function(m) {
|
|
1987
1987
|
return o.track = m;
|
|
@@ -2005,7 +2005,7 @@ function ei() {
|
|
|
2005
2005
|
}, o.props);
|
|
2006
2006
|
o.updateState(n, !0, function() {
|
|
2007
2007
|
o.adaptHeight(), o.props.autoplay && o.autoPlay("update");
|
|
2008
|
-
}), o.props.lazyLoad === "progressive" && (o.lazyLoadTimer = setInterval(o.progressiveLazyLoad, 1e3)), o.ro = new
|
|
2008
|
+
}), o.props.lazyLoad === "progressive" && (o.lazyLoadTimer = setInterval(o.progressiveLazyLoad, 1e3)), o.ro = new u.default(function() {
|
|
2009
2009
|
o.state.animating ? (o.onWindowResized(!1), o.callbackTimers.push(setTimeout(function() {
|
|
2010
2010
|
return o.onWindowResized();
|
|
2011
2011
|
}, o.props.speed))) : o.onWindowResized();
|
|
@@ -2302,7 +2302,7 @@ function ei() {
|
|
|
2302
2302
|
}), $ = /* @__PURE__ */ e.default.createElement(c.Dots, L);
|
|
2303
2303
|
}
|
|
2304
2304
|
var F, W, B = (0, a.extractObject)(n, ["infinite", "centerMode", "currentSlide", "slideCount", "slidesToShow", "prevArrow", "nextArrow"]);
|
|
2305
|
-
B.clickHandler = o.changeSlide, o.props.arrows && (F = /* @__PURE__ */ e.default.createElement(
|
|
2305
|
+
B.clickHandler = o.changeSlide, o.props.arrows && (F = /* @__PURE__ */ e.default.createElement(l.PrevArrow, B), W = /* @__PURE__ */ e.default.createElement(l.NextArrow, B));
|
|
2306
2306
|
var G = null;
|
|
2307
2307
|
o.props.vertical && (G = {
|
|
2308
2308
|
height: o.state.listHeight
|
|
@@ -2349,7 +2349,7 @@ function ei() {
|
|
|
2349
2349
|
var z = o.ssrInit();
|
|
2350
2350
|
return o.state = p(p({}, o.state), z), o;
|
|
2351
2351
|
}
|
|
2352
|
-
return N(
|
|
2352
|
+
return N(O, [{
|
|
2353
2353
|
key: "didPropsChange",
|
|
2354
2354
|
value: function(o) {
|
|
2355
2355
|
for (var z = !1, m = 0, n = Object.keys(this.props); m < n.length; m++) {
|
|
@@ -2365,7 +2365,7 @@ function ei() {
|
|
|
2365
2365
|
}
|
|
2366
2366
|
return z || e.default.Children.count(this.props.children) !== e.default.Children.count(o.children);
|
|
2367
2367
|
}
|
|
2368
|
-
}]),
|
|
2368
|
+
}]), O;
|
|
2369
2369
|
}(e.default.Component), Ne;
|
|
2370
2370
|
}
|
|
2371
2371
|
var Lt, mr;
|
|
@@ -2388,14 +2388,14 @@ function ri() {
|
|
|
2388
2388
|
return s.test(a);
|
|
2389
2389
|
}, r = function(a) {
|
|
2390
2390
|
var s = "", c = Object.keys(a);
|
|
2391
|
-
return c.forEach(function(
|
|
2392
|
-
var h = a[
|
|
2393
|
-
|
|
2391
|
+
return c.forEach(function(l, u) {
|
|
2392
|
+
var h = a[l];
|
|
2393
|
+
l = e(l), t(l) && typeof h == "number" && (h = h + "px"), h === !0 ? s += l : h === !1 ? s += "not " + l : s += "(" + l + ": " + h + ")", u < c.length - 1 && (s += " and ");
|
|
2394
2394
|
}), s;
|
|
2395
2395
|
}, i = function(a) {
|
|
2396
2396
|
var s = "";
|
|
2397
|
-
return typeof a == "string" ? a : a instanceof Array ? (a.forEach(function(c,
|
|
2398
|
-
s += r(c),
|
|
2397
|
+
return typeof a == "string" ? a : a instanceof Array ? (a.forEach(function(c, l) {
|
|
2398
|
+
s += r(c), l < a.length - 1 && (s += ", ");
|
|
2399
2399
|
}), s) : r(a);
|
|
2400
2400
|
};
|
|
2401
2401
|
return Dt = i, Dt;
|
|
@@ -2410,41 +2410,41 @@ function ni() {
|
|
|
2410
2410
|
function c(E) {
|
|
2411
2411
|
return E && E.__esModule ? E : { default: E };
|
|
2412
2412
|
}
|
|
2413
|
-
function
|
|
2413
|
+
function l(E) {
|
|
2414
2414
|
"@babel/helpers - typeof";
|
|
2415
|
-
return
|
|
2415
|
+
return l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(y) {
|
|
2416
2416
|
return typeof y;
|
|
2417
2417
|
} : function(y) {
|
|
2418
2418
|
return y && typeof Symbol == "function" && y.constructor === Symbol && y !== Symbol.prototype ? "symbol" : typeof y;
|
|
2419
|
-
},
|
|
2419
|
+
}, l(E);
|
|
2420
2420
|
}
|
|
2421
|
-
function
|
|
2422
|
-
return
|
|
2421
|
+
function u() {
|
|
2422
|
+
return u = Object.assign ? Object.assign.bind() : function(E) {
|
|
2423
2423
|
for (var y = 1; y < arguments.length; y++) {
|
|
2424
2424
|
var d = arguments[y];
|
|
2425
|
-
for (var
|
|
2426
|
-
({}).hasOwnProperty.call(d,
|
|
2425
|
+
for (var k in d)
|
|
2426
|
+
({}).hasOwnProperty.call(d, k) && (E[k] = d[k]);
|
|
2427
2427
|
}
|
|
2428
2428
|
return E;
|
|
2429
|
-
},
|
|
2429
|
+
}, u.apply(null, arguments);
|
|
2430
2430
|
}
|
|
2431
2431
|
function h(E, y) {
|
|
2432
2432
|
var d = Object.keys(E);
|
|
2433
2433
|
if (Object.getOwnPropertySymbols) {
|
|
2434
|
-
var
|
|
2435
|
-
y && (
|
|
2434
|
+
var k = Object.getOwnPropertySymbols(E);
|
|
2435
|
+
y && (k = k.filter(function(A) {
|
|
2436
2436
|
return Object.getOwnPropertyDescriptor(E, A).enumerable;
|
|
2437
|
-
})), d.push.apply(d,
|
|
2437
|
+
})), d.push.apply(d, k);
|
|
2438
2438
|
}
|
|
2439
2439
|
return d;
|
|
2440
2440
|
}
|
|
2441
2441
|
function g(E) {
|
|
2442
2442
|
for (var y = 1; y < arguments.length; y++) {
|
|
2443
2443
|
var d = arguments[y] != null ? arguments[y] : {};
|
|
2444
|
-
y % 2 ? h(Object(d), !0).forEach(function(
|
|
2445
|
-
v(E,
|
|
2446
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(E, Object.getOwnPropertyDescriptors(d)) : h(Object(d)).forEach(function(
|
|
2447
|
-
Object.defineProperty(E,
|
|
2444
|
+
y % 2 ? h(Object(d), !0).forEach(function(k) {
|
|
2445
|
+
v(E, k, d[k]);
|
|
2446
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(E, Object.getOwnPropertyDescriptors(d)) : h(Object(d)).forEach(function(k) {
|
|
2447
|
+
Object.defineProperty(E, k, Object.getOwnPropertyDescriptor(d, k));
|
|
2448
2448
|
});
|
|
2449
2449
|
}
|
|
2450
2450
|
return E;
|
|
@@ -2454,8 +2454,8 @@ function ni() {
|
|
|
2454
2454
|
}
|
|
2455
2455
|
function j(E, y) {
|
|
2456
2456
|
for (var d = 0; d < y.length; d++) {
|
|
2457
|
-
var
|
|
2458
|
-
|
|
2457
|
+
var k = y[d];
|
|
2458
|
+
k.enumerable = k.enumerable || !1, k.configurable = !0, "value" in k && (k.writable = !0), Object.defineProperty(E, b(k.key), k);
|
|
2459
2459
|
}
|
|
2460
2460
|
}
|
|
2461
2461
|
function M(E, y, d) {
|
|
@@ -2466,23 +2466,23 @@ function ni() {
|
|
|
2466
2466
|
E.prototype = Object.create(y && y.prototype, { constructor: { value: E, writable: !0, configurable: !0 } }), Object.defineProperty(E, "prototype", { writable: !1 }), y && p(E, y);
|
|
2467
2467
|
}
|
|
2468
2468
|
function p(E, y) {
|
|
2469
|
-
return p = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(d,
|
|
2470
|
-
return d.__proto__ =
|
|
2469
|
+
return p = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(d, k) {
|
|
2470
|
+
return d.__proto__ = k, d;
|
|
2471
2471
|
}, p(E, y);
|
|
2472
2472
|
}
|
|
2473
2473
|
function I(E) {
|
|
2474
2474
|
var y = U();
|
|
2475
2475
|
return function() {
|
|
2476
|
-
var d,
|
|
2476
|
+
var d, k = V(E);
|
|
2477
2477
|
if (y) {
|
|
2478
2478
|
var A = V(this).constructor;
|
|
2479
|
-
d = Reflect.construct(
|
|
2480
|
-
} else d =
|
|
2479
|
+
d = Reflect.construct(k, arguments, A);
|
|
2480
|
+
} else d = k.apply(this, arguments);
|
|
2481
2481
|
return C(this, d);
|
|
2482
2482
|
};
|
|
2483
2483
|
}
|
|
2484
2484
|
function C(E, y) {
|
|
2485
|
-
if (y && (
|
|
2485
|
+
if (y && (l(y) == "object" || typeof y == "function")) return y;
|
|
2486
2486
|
if (y !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
2487
2487
|
return N(E);
|
|
2488
2488
|
}
|
|
@@ -2510,14 +2510,14 @@ function ni() {
|
|
|
2510
2510
|
}
|
|
2511
2511
|
function b(E) {
|
|
2512
2512
|
var y = w(E, "string");
|
|
2513
|
-
return
|
|
2513
|
+
return l(y) == "symbol" ? y : y + "";
|
|
2514
2514
|
}
|
|
2515
2515
|
function w(E, y) {
|
|
2516
|
-
if (
|
|
2516
|
+
if (l(E) != "object" || !E) return E;
|
|
2517
2517
|
var d = E[Symbol.toPrimitive];
|
|
2518
2518
|
if (d !== void 0) {
|
|
2519
|
-
var
|
|
2520
|
-
if (
|
|
2519
|
+
var k = d.call(E, y);
|
|
2520
|
+
if (l(k) != "object") return k;
|
|
2521
2521
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2522
2522
|
}
|
|
2523
2523
|
return (y === "string" ? String : Number)(E);
|
|
@@ -2525,9 +2525,9 @@ function ni() {
|
|
|
2525
2525
|
e.default = /* @__PURE__ */ function(E) {
|
|
2526
2526
|
P(d, E);
|
|
2527
2527
|
var y = I(d);
|
|
2528
|
-
function d(
|
|
2528
|
+
function d(k) {
|
|
2529
2529
|
var A;
|
|
2530
|
-
return x(this, d), A = y.call(this,
|
|
2530
|
+
return x(this, d), A = y.call(this, k), v(N(A), "innerSliderRefHandler", function(R) {
|
|
2531
2531
|
return A.innerSlider = R;
|
|
2532
2532
|
}), v(N(A), "slickPrev", function() {
|
|
2533
2533
|
return A.innerSlider.slickPrev();
|
|
@@ -2547,14 +2547,14 @@ function ni() {
|
|
|
2547
2547
|
return M(d, [{
|
|
2548
2548
|
key: "media",
|
|
2549
2549
|
value: function(A, R) {
|
|
2550
|
-
var _ = window.matchMedia(A),
|
|
2550
|
+
var _ = window.matchMedia(A), O = function(o) {
|
|
2551
2551
|
var z = o.matches;
|
|
2552
2552
|
z && R();
|
|
2553
2553
|
};
|
|
2554
|
-
_.addListener(
|
|
2554
|
+
_.addListener(O), this._responsiveMediaHandlers.push({
|
|
2555
2555
|
mql: _,
|
|
2556
2556
|
query: A,
|
|
2557
|
-
listener:
|
|
2557
|
+
listener: O
|
|
2558
2558
|
});
|
|
2559
2559
|
}
|
|
2560
2560
|
// handles responsive breakpoints
|
|
@@ -2563,22 +2563,22 @@ function ni() {
|
|
|
2563
2563
|
value: function() {
|
|
2564
2564
|
var A = this;
|
|
2565
2565
|
if (this.props.responsive) {
|
|
2566
|
-
var R = this.props.responsive.map(function(
|
|
2567
|
-
return
|
|
2566
|
+
var R = this.props.responsive.map(function(O) {
|
|
2567
|
+
return O.breakpoint;
|
|
2568
2568
|
});
|
|
2569
|
-
R.sort(function(
|
|
2570
|
-
return
|
|
2571
|
-
}), R.forEach(function(
|
|
2569
|
+
R.sort(function(O, T) {
|
|
2570
|
+
return O - T;
|
|
2571
|
+
}), R.forEach(function(O, T) {
|
|
2572
2572
|
var o;
|
|
2573
2573
|
T === 0 ? o = (0, i.default)({
|
|
2574
2574
|
minWidth: 0,
|
|
2575
|
-
maxWidth:
|
|
2575
|
+
maxWidth: O
|
|
2576
2576
|
}) : o = (0, i.default)({
|
|
2577
2577
|
minWidth: R[T - 1] + 1,
|
|
2578
|
-
maxWidth:
|
|
2578
|
+
maxWidth: O
|
|
2579
2579
|
}), (0, s.canUseDOM)() && A.media(o, function() {
|
|
2580
2580
|
A.setState({
|
|
2581
|
-
breakpoint:
|
|
2581
|
+
breakpoint: O
|
|
2582
2582
|
});
|
|
2583
2583
|
});
|
|
2584
2584
|
});
|
|
@@ -2606,14 +2606,14 @@ function ni() {
|
|
|
2606
2606
|
this.state.breakpoint ? (_ = this.props.responsive.filter(function(L) {
|
|
2607
2607
|
return L.breakpoint === A.state.breakpoint;
|
|
2608
2608
|
}), R = _[0].settings === "unslick" ? "unslick" : g(g(g({}, a.default), this.props), _[0].settings)) : R = g(g({}, a.default), this.props), R.centerMode && (R.slidesToScroll > 1 && process.env.NODE_ENV !== "production" && console.warn("slidesToScroll should be equal to 1 in centerMode, you are using ".concat(R.slidesToScroll)), R.slidesToScroll = 1), R.fade && (R.slidesToShow > 1 && process.env.NODE_ENV !== "production" && console.warn("slidesToShow should be equal to 1 when fade is true, you're using ".concat(R.slidesToShow)), R.slidesToScroll > 1 && process.env.NODE_ENV !== "production" && console.warn("slidesToScroll should be equal to 1 when fade is true, you're using ".concat(R.slidesToScroll)), R.slidesToShow = 1, R.slidesToScroll = 1);
|
|
2609
|
-
var
|
|
2610
|
-
|
|
2609
|
+
var O = t.default.Children.toArray(this.props.children);
|
|
2610
|
+
O = O.filter(function(L) {
|
|
2611
2611
|
return typeof L == "string" ? !!L.trim() : !!L;
|
|
2612
2612
|
}), R.variableWidth && (R.rows > 1 || R.slidesPerRow > 1) && (console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"), R.variableWidth = !1);
|
|
2613
|
-
for (var T = [], o = null, z = 0; z <
|
|
2613
|
+
for (var T = [], o = null, z = 0; z < O.length; z += R.rows * R.slidesPerRow) {
|
|
2614
2614
|
for (var m = [], n = z; n < z + R.rows * R.slidesPerRow; n += R.slidesPerRow) {
|
|
2615
|
-
for (var f = [], S = n; S < n + R.slidesPerRow && (R.variableWidth &&
|
|
2616
|
-
f.push(/* @__PURE__ */ t.default.cloneElement(
|
|
2615
|
+
for (var f = [], S = n; S < n + R.slidesPerRow && (R.variableWidth && O[S].props.style && (o = O[S].props.style.width), !(S >= O.length)); S += 1)
|
|
2616
|
+
f.push(/* @__PURE__ */ t.default.cloneElement(O[S], {
|
|
2617
2617
|
key: 100 * z + 10 * n + S,
|
|
2618
2618
|
tabIndex: -1,
|
|
2619
2619
|
style: {
|
|
@@ -2638,9 +2638,9 @@ function ni() {
|
|
|
2638
2638
|
var $ = "regular slider " + (this.props.className || "");
|
|
2639
2639
|
return /* @__PURE__ */ t.default.createElement("div", {
|
|
2640
2640
|
className: $
|
|
2641
|
-
},
|
|
2641
|
+
}, O);
|
|
2642
2642
|
} else T.length <= R.slidesToShow && (R.unslick = !0);
|
|
2643
|
-
return /* @__PURE__ */ t.default.createElement(r.InnerSlider,
|
|
2643
|
+
return /* @__PURE__ */ t.default.createElement(r.InnerSlider, u({
|
|
2644
2644
|
style: this.props.style,
|
|
2645
2645
|
ref: this.innerSliderRefHandler
|
|
2646
2646
|
}, (0, s.filterSettings)(R)), T);
|
|
@@ -2862,10 +2862,10 @@ function xi(e) {
|
|
|
2862
2862
|
me();
|
|
2863
2863
|
return Je(e, he);
|
|
2864
2864
|
}
|
|
2865
|
-
function
|
|
2865
|
+
function ki(e) {
|
|
2866
2866
|
return Kr(lt("", null, null, null, [""], e = Gr(e), 0, [0], e));
|
|
2867
2867
|
}
|
|
2868
|
-
function lt(e, t, r, i, a, s, c,
|
|
2868
|
+
function lt(e, t, r, i, a, s, c, l, u) {
|
|
2869
2869
|
for (var h = 0, g = 0, x = c, j = 0, M = 0, P = 0, p = 1, I = 1, C = 1, N = 0, U = "", V = a, v = s, b = i, w = U; I; )
|
|
2870
2870
|
switch (P = N, N = me()) {
|
|
2871
2871
|
// (
|
|
@@ -2896,7 +2896,7 @@ function lt(e, t, r, i, a, s, c, u, l) {
|
|
|
2896
2896
|
switch (be()) {
|
|
2897
2897
|
case 42:
|
|
2898
2898
|
case 47:
|
|
2899
|
-
it(
|
|
2899
|
+
it(Oi(Si(me(), ot()), t, r), u);
|
|
2900
2900
|
break;
|
|
2901
2901
|
default:
|
|
2902
2902
|
w += "/";
|
|
@@ -2904,7 +2904,7 @@ function lt(e, t, r, i, a, s, c, u, l) {
|
|
|
2904
2904
|
break;
|
|
2905
2905
|
// {
|
|
2906
2906
|
case 123 * p:
|
|
2907
|
-
|
|
2907
|
+
l[h++] = ge(w) * C;
|
|
2908
2908
|
// } ; \0
|
|
2909
2909
|
case 125 * p:
|
|
2910
2910
|
case 59:
|
|
@@ -2916,16 +2916,16 @@ function lt(e, t, r, i, a, s, c, u, l) {
|
|
|
2916
2916
|
I = 0;
|
|
2917
2917
|
// ;
|
|
2918
2918
|
case 59 + g:
|
|
2919
|
-
C == -1 && (w = ne(w, /\f/g, "")), M > 0 && ge(w) - x && it(M > 32 ? wr(w + ";", i, r, x - 1) : wr(ne(w, " ", "") + ";", i, r, x - 2),
|
|
2919
|
+
C == -1 && (w = ne(w, /\f/g, "")), M > 0 && ge(w) - x && it(M > 32 ? wr(w + ";", i, r, x - 1) : wr(ne(w, " ", "") + ";", i, r, x - 2), u);
|
|
2920
2920
|
break;
|
|
2921
2921
|
// @ ;
|
|
2922
2922
|
case 59:
|
|
2923
2923
|
w += ";";
|
|
2924
2924
|
// { rule/at-rule
|
|
2925
2925
|
default:
|
|
2926
|
-
if (it(b = br(w, t, r, h, g, a,
|
|
2926
|
+
if (it(b = br(w, t, r, h, g, a, l, U, V = [], v = [], x), s), N === 123)
|
|
2927
2927
|
if (g === 0)
|
|
2928
|
-
lt(w, t, b, b, V, s, x,
|
|
2928
|
+
lt(w, t, b, b, V, s, x, l, v);
|
|
2929
2929
|
else
|
|
2930
2930
|
switch (j === 99 && fe(w, 3) === 110 ? 100 : j) {
|
|
2931
2931
|
// d l m s
|
|
@@ -2933,10 +2933,10 @@ function lt(e, t, r, i, a, s, c, u, l) {
|
|
|
2933
2933
|
case 108:
|
|
2934
2934
|
case 109:
|
|
2935
2935
|
case 115:
|
|
2936
|
-
lt(e, b, b, i && it(br(e, b, b, 0, 0, a,
|
|
2936
|
+
lt(e, b, b, i && it(br(e, b, b, 0, 0, a, l, U, a, V = [], x), v), a, v, x, l, i ? V : v);
|
|
2937
2937
|
break;
|
|
2938
2938
|
default:
|
|
2939
|
-
lt(w, b, b, b, [""], v, 0,
|
|
2939
|
+
lt(w, b, b, b, [""], v, 0, l, v);
|
|
2940
2940
|
}
|
|
2941
2941
|
}
|
|
2942
2942
|
h = g = M = 0, p = C = 1, U = w = "", x = c;
|
|
@@ -2958,7 +2958,7 @@ function lt(e, t, r, i, a, s, c, u, l) {
|
|
|
2958
2958
|
break;
|
|
2959
2959
|
// ,
|
|
2960
2960
|
case 44:
|
|
2961
|
-
|
|
2961
|
+
l[h++] = (ge(w) - 1) * C, C = 1;
|
|
2962
2962
|
break;
|
|
2963
2963
|
// @
|
|
2964
2964
|
case 64:
|
|
@@ -2971,13 +2971,13 @@ function lt(e, t, r, i, a, s, c, u, l) {
|
|
|
2971
2971
|
}
|
|
2972
2972
|
return s;
|
|
2973
2973
|
}
|
|
2974
|
-
function br(e, t, r, i, a, s, c,
|
|
2974
|
+
function br(e, t, r, i, a, s, c, l, u, h, g) {
|
|
2975
2975
|
for (var x = a - 1, j = a === 0 ? s : [""], M = Xt(j), P = 0, p = 0, I = 0; P < i; ++P)
|
|
2976
2976
|
for (var C = 0, N = Be(e, x + 1, x = di(p = c[P])), U = e; C < M; ++C)
|
|
2977
|
-
(U = Vr(p > 0 ? j[C] + " " + N : ne(N, /&\f/g, j[C]))) && (
|
|
2978
|
-
return xt(e, t, r, a === 0 ? Bt :
|
|
2977
|
+
(U = Vr(p > 0 ? j[C] + " " + N : ne(N, /&\f/g, j[C]))) && (u[I++] = U);
|
|
2978
|
+
return xt(e, t, r, a === 0 ? Bt : l, u, h, g);
|
|
2979
2979
|
}
|
|
2980
|
-
function
|
|
2980
|
+
function Oi(e, t, r) {
|
|
2981
2981
|
return xt(e, t, r, qr, wt(gi()), Be(e, 2, -2), 0);
|
|
2982
2982
|
}
|
|
2983
2983
|
function wr(e, t, r, i) {
|
|
@@ -3007,8 +3007,8 @@ function Ci(e, t, r, i) {
|
|
|
3007
3007
|
function Pi(e) {
|
|
3008
3008
|
var t = Xt(e);
|
|
3009
3009
|
return function(r, i, a, s) {
|
|
3010
|
-
for (var c = "",
|
|
3011
|
-
c += e[
|
|
3010
|
+
for (var c = "", l = 0; l < t; l++)
|
|
3011
|
+
c += e[l](r, i, a, s) || "";
|
|
3012
3012
|
return c;
|
|
3013
3013
|
};
|
|
3014
3014
|
}
|
|
@@ -3058,9 +3058,9 @@ var Ri = function(t, r, i) {
|
|
|
3058
3058
|
if (i = i.parent, !i) return;
|
|
3059
3059
|
if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !Sr.get(i)) && !a) {
|
|
3060
3060
|
Sr.set(t, !0);
|
|
3061
|
-
for (var s = [], c = Ti(r, s),
|
|
3062
|
-
for (var g = 0; g <
|
|
3063
|
-
t.props[h] = s[
|
|
3061
|
+
for (var s = [], c = Ti(r, s), l = i.props, u = 0, h = 0; u < c.length; u++)
|
|
3062
|
+
for (var g = 0; g < l.length; g++, h++)
|
|
3063
|
+
t.props[h] = s[u] ? c[u].replace(/&\f/g, l[g]) : l[g] + " " + c[u];
|
|
3064
3064
|
}
|
|
3065
3065
|
}
|
|
3066
3066
|
}, Li = function(t) {
|
|
@@ -3253,7 +3253,7 @@ var Di = function(t, r, i, a) {
|
|
|
3253
3253
|
I.indexOf(" ") !== -1 && (document.head.appendChild(p), p.setAttribute("data-s", ""));
|
|
3254
3254
|
});
|
|
3255
3255
|
}
|
|
3256
|
-
var a = t.stylisPlugins || Mi, s = {}, c,
|
|
3256
|
+
var a = t.stylisPlugins || Mi, s = {}, c, l = [];
|
|
3257
3257
|
c = t.container || document.head, Array.prototype.forEach.call(
|
|
3258
3258
|
// this means we will ignore elements which don't have a space in them which
|
|
3259
3259
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
@@ -3261,17 +3261,17 @@ var Di = function(t, r, i, a) {
|
|
|
3261
3261
|
function(p) {
|
|
3262
3262
|
for (var I = p.getAttribute("data-emotion").split(" "), C = 1; C < I.length; C++)
|
|
3263
3263
|
s[I[C]] = !0;
|
|
3264
|
-
|
|
3264
|
+
l.push(p);
|
|
3265
3265
|
}
|
|
3266
3266
|
);
|
|
3267
|
-
var
|
|
3267
|
+
var u, h = [ji, Li];
|
|
3268
3268
|
{
|
|
3269
3269
|
var g, x = [Ci, Ei(function(p) {
|
|
3270
3270
|
g.insert(p);
|
|
3271
3271
|
})], j = Pi(h.concat(a, x)), M = function(I) {
|
|
3272
|
-
return Te(
|
|
3272
|
+
return Te(ki(I), j);
|
|
3273
3273
|
};
|
|
3274
|
-
|
|
3274
|
+
u = function(I, C, N, U) {
|
|
3275
3275
|
g = N, M(I ? I + "{" + C.styles + "}" : C.styles), U && (P.inserted[C.name] = !0);
|
|
3276
3276
|
};
|
|
3277
3277
|
}
|
|
@@ -3288,9 +3288,9 @@ var Di = function(t, r, i, a) {
|
|
|
3288
3288
|
nonce: t.nonce,
|
|
3289
3289
|
inserted: s,
|
|
3290
3290
|
registered: {},
|
|
3291
|
-
insert:
|
|
3291
|
+
insert: u
|
|
3292
3292
|
};
|
|
3293
|
-
return P.sheet.hydrate(
|
|
3293
|
+
return P.sheet.hydrate(l), P;
|
|
3294
3294
|
}, Ii = !0;
|
|
3295
3295
|
function Ai(e, t, r) {
|
|
3296
3296
|
var i = "";
|
|
@@ -3394,7 +3394,7 @@ var Ni = {
|
|
|
3394
3394
|
return t != null && typeof t != "boolean";
|
|
3395
3395
|
}, Mt = /* @__PURE__ */ Jr(function(e) {
|
|
3396
3396
|
return en(e) ? e : e.replace(Fi, "-$&").toLowerCase();
|
|
3397
|
-
}),
|
|
3397
|
+
}), kr = function(t, r) {
|
|
3398
3398
|
switch (t) {
|
|
3399
3399
|
case "animation":
|
|
3400
3400
|
case "animationName":
|
|
@@ -3436,15 +3436,15 @@ function Xe(e, t, r) {
|
|
|
3436
3436
|
styles: c.styles,
|
|
3437
3437
|
next: ye
|
|
3438
3438
|
}, c = c.next;
|
|
3439
|
-
var
|
|
3440
|
-
return
|
|
3439
|
+
var l = s.styles + ";";
|
|
3440
|
+
return l;
|
|
3441
3441
|
}
|
|
3442
3442
|
return Ui(e, t, r);
|
|
3443
3443
|
}
|
|
3444
3444
|
case "function": {
|
|
3445
3445
|
if (e !== void 0) {
|
|
3446
|
-
var
|
|
3447
|
-
return ye =
|
|
3446
|
+
var u = ye, h = r(e);
|
|
3447
|
+
return ye = u, Xe(e, t, h);
|
|
3448
3448
|
}
|
|
3449
3449
|
break;
|
|
3450
3450
|
}
|
|
@@ -3464,11 +3464,11 @@ function Ui(e, t, r) {
|
|
|
3464
3464
|
for (var s in r) {
|
|
3465
3465
|
var c = r[s];
|
|
3466
3466
|
if (typeof c != "object") {
|
|
3467
|
-
var
|
|
3468
|
-
t != null && t[
|
|
3467
|
+
var l = c;
|
|
3468
|
+
t != null && t[l] !== void 0 ? i += s + "{" + t[l] + "}" : xr(l) && (i += Mt(s) + ":" + kr(s, l) + ";");
|
|
3469
3469
|
} else if (Array.isArray(c) && typeof c[0] == "string" && (t == null || t[c[0]] === void 0))
|
|
3470
|
-
for (var
|
|
3471
|
-
xr(c[
|
|
3470
|
+
for (var u = 0; u < c.length; u++)
|
|
3471
|
+
xr(c[u]) && (i += Mt(s) + ":" + kr(s, c[u]) + ";");
|
|
3472
3472
|
else {
|
|
3473
3473
|
var h = Xe(e, t, c);
|
|
3474
3474
|
switch (s) {
|
|
@@ -3484,7 +3484,7 @@ function Ui(e, t, r) {
|
|
|
3484
3484
|
}
|
|
3485
3485
|
return i;
|
|
3486
3486
|
}
|
|
3487
|
-
var
|
|
3487
|
+
var Or = /label:\s*([^\s;{]+)\s*(;|$)/g, ye;
|
|
3488
3488
|
function Yi(e, t, r) {
|
|
3489
3489
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
3490
3490
|
return e[0];
|
|
@@ -3497,13 +3497,13 @@ function Yi(e, t, r) {
|
|
|
3497
3497
|
var c = s;
|
|
3498
3498
|
a += c[0];
|
|
3499
3499
|
}
|
|
3500
|
-
for (var
|
|
3501
|
-
if (a += Xe(r, t, e[
|
|
3502
|
-
var
|
|
3503
|
-
a += l
|
|
3500
|
+
for (var l = 1; l < e.length; l++)
|
|
3501
|
+
if (a += Xe(r, t, e[l]), i) {
|
|
3502
|
+
var u = s;
|
|
3503
|
+
a += u[l];
|
|
3504
3504
|
}
|
|
3505
|
-
|
|
3506
|
-
for (var h = "", g; (g =
|
|
3505
|
+
Or.lastIndex = 0;
|
|
3506
|
+
for (var h = "", g; (g = Or.exec(a)) !== null; )
|
|
3507
3507
|
h += "-" + g[1];
|
|
3508
3508
|
var x = Hi(a) + h;
|
|
3509
3509
|
return {
|
|
@@ -3527,7 +3527,7 @@ var qi = function(t) {
|
|
|
3527
3527
|
);
|
|
3528
3528
|
tn.Provider;
|
|
3529
3529
|
var Xi = function(t) {
|
|
3530
|
-
return /* @__PURE__ */
|
|
3530
|
+
return /* @__PURE__ */ On(function(r, i) {
|
|
3531
3531
|
var a = Yt(tn);
|
|
3532
3532
|
return t(r, a, i);
|
|
3533
3533
|
});
|
|
@@ -3560,7 +3560,7 @@ var Xi = function(t) {
|
|
|
3560
3560
|
}, ta = function e(t, r) {
|
|
3561
3561
|
var i = t.__emotion_real === t, a = i && t.__emotion_base || t, s, c;
|
|
3562
3562
|
r !== void 0 && (s = r.label, c = r.target);
|
|
3563
|
-
var
|
|
3563
|
+
var l = Pr(t, r, i), u = l || Cr(a), h = !u("as");
|
|
3564
3564
|
return function() {
|
|
3565
3565
|
var g = arguments, x = i && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
|
|
3566
3566
|
if (s !== void 0 && x.push("label:" + s + ";"), g[0] == null || g[0].raw === void 0)
|
|
@@ -3582,16 +3582,16 @@ var Xi = function(t) {
|
|
|
3582
3582
|
typeof I.className == "string" ? V = Ai(C.registered, v, I.className) : I.className != null && (V = I.className + " ");
|
|
3583
3583
|
var E = Yi(x.concat(v), C.registered, b);
|
|
3584
3584
|
V += C.key + "-" + E.name, c !== void 0 && (V += " " + c);
|
|
3585
|
-
var y = h &&
|
|
3586
|
-
for (var
|
|
3587
|
-
h &&
|
|
3585
|
+
var y = h && l === void 0 ? Cr(U) : u, d = {};
|
|
3586
|
+
for (var k in I)
|
|
3587
|
+
h && k === "as" || y(k) && (d[k] = I[k]);
|
|
3588
3588
|
return d.className = V, N && (d.ref = N), /* @__PURE__ */ D.createElement(D.Fragment, null, /* @__PURE__ */ D.createElement(ea, {
|
|
3589
3589
|
cache: C,
|
|
3590
3590
|
serialized: E,
|
|
3591
3591
|
isStringTag: typeof U == "string"
|
|
3592
3592
|
}), /* @__PURE__ */ D.createElement(U, d));
|
|
3593
3593
|
});
|
|
3594
|
-
return p.displayName = s !== void 0 ? s : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", p.defaultProps = t.defaultProps, p.__emotion_real = p, p.__emotion_base = a, p.__emotion_styles = x, p.__emotion_forwardProp =
|
|
3594
|
+
return p.displayName = s !== void 0 ? s : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", p.defaultProps = t.defaultProps, p.__emotion_real = p, p.__emotion_base = a, p.__emotion_styles = x, p.__emotion_forwardProp = l, Object.defineProperty(p, "toString", {
|
|
3595
3595
|
value: function() {
|
|
3596
3596
|
return "." + c;
|
|
3597
3597
|
}
|
|
@@ -3831,14 +3831,14 @@ const na = Pe.div`
|
|
|
3831
3831
|
box-sizing: border-box;
|
|
3832
3832
|
display: flex;
|
|
3833
3833
|
}
|
|
3834
|
-
`,
|
|
3834
|
+
`, ts = ({
|
|
3835
3835
|
styles: e,
|
|
3836
3836
|
content: t,
|
|
3837
3837
|
settings: r,
|
|
3838
3838
|
gap: i = 15
|
|
3839
3839
|
}) => {
|
|
3840
|
-
const [a, s] = q.useState(1), c = q.useRef(null),
|
|
3841
|
-
var
|
|
3840
|
+
const [a, s] = q.useState(1), c = q.useRef(null), l = q.useRef(null);
|
|
3841
|
+
var u = {
|
|
3842
3842
|
dots: !1,
|
|
3843
3843
|
speed: 500,
|
|
3844
3844
|
slidesToScroll: 1,
|
|
@@ -3851,7 +3851,7 @@ const na = Pe.div`
|
|
|
3851
3851
|
const h = t.map((x, j) => /* @__PURE__ */ K.jsx(
|
|
3852
3852
|
ia,
|
|
3853
3853
|
{
|
|
3854
|
-
ref: j === 0 ?
|
|
3854
|
+
ref: j === 0 ? l : void 0,
|
|
3855
3855
|
styles: {
|
|
3856
3856
|
paddingRight: `${i}px`,
|
|
3857
3857
|
overflow: "visible",
|
|
@@ -3862,11 +3862,11 @@ const na = Pe.div`
|
|
|
3862
3862
|
children: x.content
|
|
3863
3863
|
}
|
|
3864
3864
|
)), g = () => {
|
|
3865
|
-
if (
|
|
3866
|
-
s(
|
|
3865
|
+
if (u.slidesToShow) {
|
|
3866
|
+
s(u.slidesToShow);
|
|
3867
3867
|
return;
|
|
3868
3868
|
}
|
|
3869
|
-
const x = (c.current?.offsetWidth || i + 1) - i, j =
|
|
3869
|
+
const x = (c.current?.offsetWidth || i + 1) - i, j = l.current?.offsetWidth || 1;
|
|
3870
3870
|
let M = Math.floor(x / j);
|
|
3871
3871
|
M < 1 ? M = 1 : M > t.length && (M = t.length), console.debug("Slides to show > ", {
|
|
3872
3872
|
container: x,
|
|
@@ -3876,8 +3876,8 @@ const na = Pe.div`
|
|
|
3876
3876
|
};
|
|
3877
3877
|
return q.useEffect(() => {
|
|
3878
3878
|
g();
|
|
3879
|
-
}, [c,
|
|
3880
|
-
},
|
|
3879
|
+
}, [c, l]), /* @__PURE__ */ K.jsx(na, { ref: c, styles: { ...e }, children: h.length > 0 && /* @__PURE__ */ K.jsx(oi, { ...u, slidesToShow: a, children: h }) });
|
|
3880
|
+
}, rs = ({
|
|
3881
3881
|
checked: e,
|
|
3882
3882
|
onToggle: t,
|
|
3883
3883
|
styles: r,
|
|
@@ -3889,8 +3889,8 @@ const na = Pe.div`
|
|
|
3889
3889
|
return /* @__PURE__ */ K.jsxs(
|
|
3890
3890
|
"div",
|
|
3891
3891
|
{
|
|
3892
|
-
onClick: (
|
|
3893
|
-
|
|
3892
|
+
onClick: (l) => {
|
|
3893
|
+
l.preventDefault(), l.stopPropagation(), t?.(!e);
|
|
3894
3894
|
},
|
|
3895
3895
|
style: {
|
|
3896
3896
|
width: "25px",
|
|
@@ -3911,16 +3911,16 @@ const na = Pe.div`
|
|
|
3911
3911
|
]
|
|
3912
3912
|
}
|
|
3913
3913
|
);
|
|
3914
|
-
},
|
|
3914
|
+
}, ns = (e) => Ir(e, []), aa = () => {
|
|
3915
3915
|
const [e, t] = q.useState(
|
|
3916
3916
|
{}
|
|
3917
3917
|
), [r, i] = q.useState(!1);
|
|
3918
3918
|
return q.useEffect(() => {
|
|
3919
|
-
const a = (
|
|
3920
|
-
t({ x:
|
|
3921
|
-
}, s = (
|
|
3919
|
+
const a = (l) => {
|
|
3920
|
+
t({ x: l.clientX, y: l.clientY });
|
|
3921
|
+
}, s = (l) => {
|
|
3922
3922
|
i(!0);
|
|
3923
|
-
}, c = (
|
|
3923
|
+
}, c = (l) => {
|
|
3924
3924
|
i(!1);
|
|
3925
3925
|
};
|
|
3926
3926
|
return window.addEventListener("pointermove", a), window.addEventListener("pointerdown", s), window.addEventListener("pointerup", c), () => {
|
|
@@ -3936,39 +3936,39 @@ const na = Pe.div`
|
|
|
3936
3936
|
onDragStart: r,
|
|
3937
3937
|
onDragEnd: i
|
|
3938
3938
|
}) => {
|
|
3939
|
-
const a = q.useRef(!1), s = q.useRef(!1), { pointerPosition: c, isPointerDown:
|
|
3939
|
+
const a = q.useRef(!1), s = q.useRef(!1), { pointerPosition: c, isPointerDown: l } = aa(), u = q.useRef({
|
|
3940
3940
|
isDragging: !1
|
|
3941
3941
|
}), h = q.useCallback(
|
|
3942
3942
|
(P) => {
|
|
3943
|
-
if (!e || !e.current || !
|
|
3943
|
+
if (!e || !e.current || !u.current)
|
|
3944
3944
|
return;
|
|
3945
|
-
const p = { ...
|
|
3946
|
-
return p.posY = P.y, p.posX = P.x,
|
|
3945
|
+
const p = { ...u.current };
|
|
3946
|
+
return p.posY = P.y, p.posX = P.x, u.current.startPosX && u.current.posX && (p.distanceX = u.current.startPosX - u.current.posX), u.current.startPosY && u.current.posY && (p.distanceY = -(u.current.startPosY - u.current.posY)), p;
|
|
3947
3947
|
},
|
|
3948
3948
|
[]
|
|
3949
3949
|
), g = q.useCallback(
|
|
3950
3950
|
(P) => {
|
|
3951
|
-
P.preventDefault(), P.stopPropagation(),
|
|
3951
|
+
P.preventDefault(), P.stopPropagation(), u.current.isDragging = !0, u.current.startPosY = P.clientY, u.current.startPosX = P.clientX;
|
|
3952
3952
|
const p = h({ x: P.clientX, y: P.clientY });
|
|
3953
|
-
p && (
|
|
3953
|
+
p && (u.current = p, r?.(p));
|
|
3954
3954
|
},
|
|
3955
3955
|
[h]
|
|
3956
3956
|
), x = q.useCallback(
|
|
3957
3957
|
(P) => {
|
|
3958
|
-
|
|
3958
|
+
u.current.isDragging = !1;
|
|
3959
3959
|
const p = h(c);
|
|
3960
|
-
p && (i?.(p), p.startPosX = void 0, p.startPosY = void 0,
|
|
3960
|
+
p && (i?.(p), p.startPosX = void 0, p.startPosY = void 0, u.current = p);
|
|
3961
3961
|
},
|
|
3962
3962
|
[h, c]
|
|
3963
3963
|
), j = q.useCallback(
|
|
3964
3964
|
(P) => {
|
|
3965
3965
|
if (console.debug(
|
|
3966
3966
|
"useDrag > onPointerMove > Is Dragging >",
|
|
3967
|
-
|
|
3968
|
-
), !
|
|
3967
|
+
u.current.isDragging
|
|
3968
|
+
), !u.current.isDragging)
|
|
3969
3969
|
return;
|
|
3970
3970
|
const p = h(c);
|
|
3971
|
-
console.debug("useDrag > onPointerMove > Drag Result >", p), p && (t?.(p),
|
|
3971
|
+
console.debug("useDrag > onPointerMove > Drag Result >", p), p && (t?.(p), u.current = p);
|
|
3972
3972
|
},
|
|
3973
3973
|
[h, c]
|
|
3974
3974
|
), M = q.useCallback(async () => {
|
|
@@ -3983,52 +3983,53 @@ const na = Pe.div`
|
|
|
3983
3983
|
}, [M]), q.useEffect(() => {
|
|
3984
3984
|
j();
|
|
3985
3985
|
}, [c]), q.useEffect(() => {
|
|
3986
|
-
|
|
3987
|
-
}, [
|
|
3988
|
-
},
|
|
3989
|
-
const e = (
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
const j =
|
|
3994
|
-
|
|
3995
|
-
}
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3986
|
+
l !== s.current && (s.current = l, l || x());
|
|
3987
|
+
}, [l, s.current]);
|
|
3988
|
+
}, is = () => {
|
|
3989
|
+
const e = (l, u) => {
|
|
3990
|
+
if (!u) return l;
|
|
3991
|
+
const h = new URLSearchParams();
|
|
3992
|
+
for (const x in u) {
|
|
3993
|
+
const j = u[x];
|
|
3994
|
+
Array.isArray(j) ? j.forEach((M) => h.append(x, String(M))) : j != null && h.append(x, String(j));
|
|
3995
|
+
}
|
|
3996
|
+
const g = h.toString();
|
|
3997
|
+
return g ? `${l}?${g}` : l;
|
|
3998
|
+
}, t = async (l, u, h, g) => await (await fetch(l, {
|
|
3999
|
+
method: u,
|
|
3999
4000
|
headers: h,
|
|
4000
4001
|
body: g
|
|
4001
4002
|
})).json();
|
|
4002
4003
|
return {
|
|
4003
|
-
get: async (
|
|
4004
|
-
const h = e(
|
|
4004
|
+
get: async (l, u) => {
|
|
4005
|
+
const h = e(l, u);
|
|
4005
4006
|
return t(h, "GET");
|
|
4006
4007
|
},
|
|
4007
|
-
post: async (
|
|
4008
|
-
|
|
4008
|
+
post: async (l, u) => t(
|
|
4009
|
+
l,
|
|
4009
4010
|
"POST",
|
|
4010
4011
|
{ "Content-Type": "application/json" },
|
|
4011
|
-
JSON.stringify(
|
|
4012
|
+
JSON.stringify(u)
|
|
4012
4013
|
),
|
|
4013
|
-
put: async (
|
|
4014
|
-
|
|
4014
|
+
put: async (l, u) => t(
|
|
4015
|
+
l,
|
|
4015
4016
|
"PUT",
|
|
4016
4017
|
{ "Content-Type": "application/json" },
|
|
4017
|
-
JSON.stringify(
|
|
4018
|
+
JSON.stringify(u)
|
|
4018
4019
|
),
|
|
4019
|
-
patch: async (
|
|
4020
|
-
|
|
4020
|
+
patch: async (l, u) => t(
|
|
4021
|
+
l,
|
|
4021
4022
|
"PATCH",
|
|
4022
4023
|
{ "Content-Type": "application/json" },
|
|
4023
|
-
JSON.stringify(
|
|
4024
|
+
JSON.stringify(u)
|
|
4024
4025
|
),
|
|
4025
|
-
delete: async (
|
|
4026
|
-
const h = e(
|
|
4026
|
+
delete: async (l, u) => {
|
|
4027
|
+
const h = e(l, u);
|
|
4027
4028
|
return t(h, "DELETE");
|
|
4028
4029
|
}
|
|
4029
4030
|
};
|
|
4030
4031
|
};
|
|
4031
|
-
function
|
|
4032
|
+
function as(e) {
|
|
4032
4033
|
const [t, r] = Ar(!1), i = q.useMemo(
|
|
4033
4034
|
() => new IntersectionObserver(
|
|
4034
4035
|
([a]) => r(a.isIntersecting)
|
|
@@ -4044,7 +4045,7 @@ const sa = {
|
|
|
4044
4045
|
lg: 991,
|
|
4045
4046
|
xl: 1200,
|
|
4046
4047
|
xxl: 1440
|
|
4047
|
-
},
|
|
4048
|
+
}, os = (e) => {
|
|
4048
4049
|
const t = {
|
|
4049
4050
|
...sa,
|
|
4050
4051
|
...e?.breakpointConfiguration
|
|
@@ -4059,22 +4060,22 @@ const sa = {
|
|
|
4059
4060
|
}, la = (e, t) => e < t.sm ? "xs" : e < t.md ? "sm" : e < t.lg ? "md" : e < t.xl ? "lg" : e < t.xxl ? "xl" : "xxl", ua = (e, t) => e <= t.sm ? "mobile" : e <= t.md ? "tablet" : "desktop", Er = (e) => {
|
|
4060
4061
|
const t = window.innerWidth, r = window.innerHeight, i = la(t, e), a = ua(t, e);
|
|
4061
4062
|
return { currentWidth: t, currentHeight: r, currentBreakpoint: i, currentSize: a };
|
|
4062
|
-
},
|
|
4063
|
+
}, ss = (e) => {
|
|
4063
4064
|
const t = e.translations, r = e.language, i = (s, c) => {
|
|
4064
4065
|
if (!s)
|
|
4065
4066
|
return;
|
|
4066
|
-
let
|
|
4067
|
-
if (
|
|
4068
|
-
return c && Object.keys(c).forEach((
|
|
4069
|
-
const h = c[
|
|
4070
|
-
|
|
4071
|
-
}),
|
|
4067
|
+
let l = s[r];
|
|
4068
|
+
if (l)
|
|
4069
|
+
return c && Object.keys(c).forEach((u) => {
|
|
4070
|
+
const h = c[u];
|
|
4071
|
+
l = l.replaceAll(`{{${u}}}`, `${h}`);
|
|
4072
|
+
}), l;
|
|
4072
4073
|
};
|
|
4073
4074
|
return {
|
|
4074
4075
|
t: (s, c) => {
|
|
4075
4076
|
if (t[s]) {
|
|
4076
|
-
const
|
|
4077
|
-
return
|
|
4077
|
+
const l = i(t[s], c);
|
|
4078
|
+
return l ?? s;
|
|
4078
4079
|
}
|
|
4079
4080
|
return s;
|
|
4080
4081
|
},
|
|
@@ -4105,9 +4106,9 @@ function ca() {
|
|
|
4105
4106
|
C = j.lastIndexOf(";", N - 1) + 1;
|
|
4106
4107
|
continue;
|
|
4107
4108
|
}
|
|
4108
|
-
const v =
|
|
4109
|
+
const v = l(j, C, N), b = u(j, N, v), w = j.slice(v, b);
|
|
4109
4110
|
if (P[w] === void 0) {
|
|
4110
|
-
let E =
|
|
4111
|
+
let E = l(j, N + 1, V), y = u(j, V, E);
|
|
4111
4112
|
const d = I(j.slice(E, y));
|
|
4112
4113
|
P[w] = d;
|
|
4113
4114
|
}
|
|
@@ -4115,7 +4116,7 @@ function ca() {
|
|
|
4115
4116
|
} while (C < p);
|
|
4116
4117
|
return P;
|
|
4117
4118
|
}
|
|
4118
|
-
function
|
|
4119
|
+
function l(j, M, P) {
|
|
4119
4120
|
do {
|
|
4120
4121
|
const p = j.charCodeAt(M);
|
|
4121
4122
|
if (p !== 32 && p !== 9)
|
|
@@ -4123,7 +4124,7 @@ function ca() {
|
|
|
4123
4124
|
} while (++M < P);
|
|
4124
4125
|
return P;
|
|
4125
4126
|
}
|
|
4126
|
-
function
|
|
4127
|
+
function u(j, M, P) {
|
|
4127
4128
|
for (; M > P; ) {
|
|
4128
4129
|
const p = j.charCodeAt(--M);
|
|
4129
4130
|
if (p !== 32 && p !== 9)
|
|
@@ -4220,10 +4221,10 @@ ca();
|
|
|
4220
4221
|
var _r = "popstate";
|
|
4221
4222
|
function fa(e = {}) {
|
|
4222
4223
|
function t(i, a) {
|
|
4223
|
-
let { pathname: s, search: c, hash:
|
|
4224
|
+
let { pathname: s, search: c, hash: l } = i.location;
|
|
4224
4225
|
return Ft(
|
|
4225
4226
|
"",
|
|
4226
|
-
{ pathname: s, search: c, hash:
|
|
4227
|
+
{ pathname: s, search: c, hash: l },
|
|
4227
4228
|
// state defaults to `null` because `window.history.state` does
|
|
4228
4229
|
a.state && a.state.usr || null,
|
|
4229
4230
|
a.state && a.state.key || "default"
|
|
@@ -4294,18 +4295,18 @@ function Me(e) {
|
|
|
4294
4295
|
return t;
|
|
4295
4296
|
}
|
|
4296
4297
|
function ha(e, t, r, i = {}) {
|
|
4297
|
-
let { window: a = document.defaultView, v5Compat: s = !1 } = i, c = a.history,
|
|
4298
|
+
let { window: a = document.defaultView, v5Compat: s = !1 } = i, c = a.history, l = "POP", u = null, h = g();
|
|
4298
4299
|
h == null && (h = 0, c.replaceState({ ...c.state, idx: h }, ""));
|
|
4299
4300
|
function g() {
|
|
4300
4301
|
return (c.state || { idx: null }).idx;
|
|
4301
4302
|
}
|
|
4302
4303
|
function x() {
|
|
4303
|
-
|
|
4304
|
+
l = "POP";
|
|
4304
4305
|
let I = g(), C = I == null ? null : I - h;
|
|
4305
|
-
h = I,
|
|
4306
|
+
h = I, u && u({ action: l, location: p.location, delta: C });
|
|
4306
4307
|
}
|
|
4307
4308
|
function j(I, C) {
|
|
4308
|
-
|
|
4309
|
+
l = "PUSH";
|
|
4309
4310
|
let N = Ft(p.location, I, C);
|
|
4310
4311
|
h = g() + 1;
|
|
4311
4312
|
let U = Tr(N, h), V = p.createHref(N);
|
|
@@ -4316,30 +4317,30 @@ function ha(e, t, r, i = {}) {
|
|
|
4316
4317
|
throw v;
|
|
4317
4318
|
a.location.assign(V);
|
|
4318
4319
|
}
|
|
4319
|
-
s &&
|
|
4320
|
+
s && u && u({ action: l, location: p.location, delta: 1 });
|
|
4320
4321
|
}
|
|
4321
4322
|
function M(I, C) {
|
|
4322
|
-
|
|
4323
|
+
l = "REPLACE";
|
|
4323
4324
|
let N = Ft(p.location, I, C);
|
|
4324
4325
|
h = g();
|
|
4325
4326
|
let U = Tr(N, h), V = p.createHref(N);
|
|
4326
|
-
c.replaceState(U, "", V), s &&
|
|
4327
|
+
c.replaceState(U, "", V), s && u && u({ action: l, location: p.location, delta: 0 });
|
|
4327
4328
|
}
|
|
4328
4329
|
function P(I) {
|
|
4329
4330
|
return pa(I);
|
|
4330
4331
|
}
|
|
4331
4332
|
let p = {
|
|
4332
4333
|
get action() {
|
|
4333
|
-
return
|
|
4334
|
+
return l;
|
|
4334
4335
|
},
|
|
4335
4336
|
get location() {
|
|
4336
4337
|
return e(a, c);
|
|
4337
4338
|
},
|
|
4338
4339
|
listen(I) {
|
|
4339
|
-
if (
|
|
4340
|
+
if (u)
|
|
4340
4341
|
throw new Error("A history only accepts one active listener");
|
|
4341
|
-
return a.addEventListener(_r, x),
|
|
4342
|
-
a.removeEventListener(_r, x),
|
|
4342
|
+
return a.addEventListener(_r, x), u = I, () => {
|
|
4343
|
+
a.removeEventListener(_r, x), u = null;
|
|
4343
4344
|
};
|
|
4344
4345
|
},
|
|
4345
4346
|
createHref(I) {
|
|
@@ -4377,30 +4378,30 @@ function ma(e, t, r, i) {
|
|
|
4377
4378
|
return null;
|
|
4378
4379
|
let c = nn(e);
|
|
4379
4380
|
va(c);
|
|
4380
|
-
let
|
|
4381
|
-
for (let
|
|
4381
|
+
let l = null;
|
|
4382
|
+
for (let u = 0; l == null && u < c.length; ++u) {
|
|
4382
4383
|
let h = Ea(s);
|
|
4383
|
-
|
|
4384
|
-
c[
|
|
4384
|
+
l = Ca(
|
|
4385
|
+
c[u],
|
|
4385
4386
|
h,
|
|
4386
4387
|
i
|
|
4387
4388
|
);
|
|
4388
4389
|
}
|
|
4389
|
-
return
|
|
4390
|
+
return l;
|
|
4390
4391
|
}
|
|
4391
4392
|
function nn(e, t = [], r = [], i = "") {
|
|
4392
|
-
let a = (s, c,
|
|
4393
|
-
let
|
|
4394
|
-
relativePath:
|
|
4393
|
+
let a = (s, c, l) => {
|
|
4394
|
+
let u = {
|
|
4395
|
+
relativePath: l === void 0 ? s.path || "" : l,
|
|
4395
4396
|
caseSensitive: s.caseSensitive === !0,
|
|
4396
4397
|
childrenIndex: c,
|
|
4397
4398
|
route: s
|
|
4398
4399
|
};
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
`Absolute route path "${
|
|
4402
|
-
),
|
|
4403
|
-
let h = Se([i,
|
|
4400
|
+
u.relativePath.startsWith("/") && (ae(
|
|
4401
|
+
u.relativePath.startsWith(i),
|
|
4402
|
+
`Absolute route path "${u.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
|
|
4403
|
+
), u.relativePath = u.relativePath.slice(i.length));
|
|
4404
|
+
let h = Se([i, u.relativePath]), g = r.concat(u);
|
|
4404
4405
|
s.children && s.children.length > 0 && (ae(
|
|
4405
4406
|
// Our types know better, but runtime JS may not!
|
|
4406
4407
|
// @ts-expect-error
|
|
@@ -4408,7 +4409,7 @@ function nn(e, t = [], r = [], i = "") {
|
|
|
4408
4409
|
`Index routes must not have child routes. Please remove all child routes from route path "${h}".`
|
|
4409
4410
|
), nn(s.children, t, g, h)), !(s.path == null && !s.index) && t.push({
|
|
4410
4411
|
path: h,
|
|
4411
|
-
score:
|
|
4412
|
+
score: ka(h, s.index),
|
|
4412
4413
|
routesMeta: g
|
|
4413
4414
|
});
|
|
4414
4415
|
};
|
|
@@ -4416,8 +4417,8 @@ function nn(e, t = [], r = [], i = "") {
|
|
|
4416
4417
|
if (s.path === "" || !s.path?.includes("?"))
|
|
4417
4418
|
a(s, c);
|
|
4418
4419
|
else
|
|
4419
|
-
for (let
|
|
4420
|
-
a(s, c,
|
|
4420
|
+
for (let l of an(s.path))
|
|
4421
|
+
a(s, c, l);
|
|
4421
4422
|
}), t;
|
|
4422
4423
|
}
|
|
4423
4424
|
function an(e) {
|
|
@@ -4426,32 +4427,32 @@ function an(e) {
|
|
|
4426
4427
|
let [r, ...i] = t, a = r.endsWith("?"), s = r.replace(/\?$/, "");
|
|
4427
4428
|
if (i.length === 0)
|
|
4428
4429
|
return a ? [s, ""] : [s];
|
|
4429
|
-
let c = an(i.join("/")),
|
|
4430
|
-
return
|
|
4430
|
+
let c = an(i.join("/")), l = [];
|
|
4431
|
+
return l.push(
|
|
4431
4432
|
...c.map(
|
|
4432
|
-
(
|
|
4433
|
+
(u) => u === "" ? s : [s, u].join("/")
|
|
4433
4434
|
)
|
|
4434
|
-
), a &&
|
|
4435
|
-
(
|
|
4435
|
+
), a && l.push(...c), l.map(
|
|
4436
|
+
(u) => e.startsWith("/") && u === "" ? "/" : u
|
|
4436
4437
|
);
|
|
4437
4438
|
}
|
|
4438
4439
|
function va(e) {
|
|
4439
4440
|
e.sort(
|
|
4440
|
-
(t, r) => t.score !== r.score ? r.score - t.score :
|
|
4441
|
+
(t, r) => t.score !== r.score ? r.score - t.score : Oa(
|
|
4441
4442
|
t.routesMeta.map((i) => i.childrenIndex),
|
|
4442
4443
|
r.routesMeta.map((i) => i.childrenIndex)
|
|
4443
4444
|
)
|
|
4444
4445
|
);
|
|
4445
4446
|
}
|
|
4446
4447
|
var ga = /^:[\w-]+$/, ya = 3, ba = 2, wa = 1, Sa = 10, xa = -2, jr = (e) => e === "*";
|
|
4447
|
-
function
|
|
4448
|
+
function ka(e, t) {
|
|
4448
4449
|
let r = e.split("/"), i = r.length;
|
|
4449
4450
|
return r.some(jr) && (i += xa), t && (i += ba), r.filter((a) => !jr(a)).reduce(
|
|
4450
4451
|
(a, s) => a + (ga.test(s) ? ya : s === "" ? wa : Sa),
|
|
4451
4452
|
i
|
|
4452
4453
|
);
|
|
4453
4454
|
}
|
|
4454
|
-
function
|
|
4455
|
+
function Oa(e, t) {
|
|
4455
4456
|
return e.length === t.length && e.slice(0, -1).every((i, a) => i === t[a]) ? (
|
|
4456
4457
|
// If two routes are siblings, we should try to match the earlier sibling
|
|
4457
4458
|
// first. This allows people to have fine-grained control over the matching
|
|
@@ -4466,15 +4467,15 @@ function ka(e, t) {
|
|
|
4466
4467
|
}
|
|
4467
4468
|
function Ca(e, t, r = !1) {
|
|
4468
4469
|
let { routesMeta: i } = e, a = {}, s = "/", c = [];
|
|
4469
|
-
for (let
|
|
4470
|
-
let
|
|
4471
|
-
{ path:
|
|
4470
|
+
for (let l = 0; l < i.length; ++l) {
|
|
4471
|
+
let u = i[l], h = l === i.length - 1, g = s === "/" ? t : t.slice(s.length) || "/", x = gt(
|
|
4472
|
+
{ path: u.relativePath, caseSensitive: u.caseSensitive, end: h },
|
|
4472
4473
|
g
|
|
4473
|
-
), j =
|
|
4474
|
+
), j = u.route;
|
|
4474
4475
|
if (!x && h && r && !i[i.length - 1].route.index && (x = gt(
|
|
4475
4476
|
{
|
|
4476
|
-
path:
|
|
4477
|
-
caseSensitive:
|
|
4477
|
+
path: u.relativePath,
|
|
4478
|
+
caseSensitive: u.caseSensitive,
|
|
4478
4479
|
end: !1
|
|
4479
4480
|
},
|
|
4480
4481
|
g
|
|
@@ -4500,15 +4501,15 @@ function gt(e, t) {
|
|
|
4500
4501
|
e.end
|
|
4501
4502
|
), a = t.match(r);
|
|
4502
4503
|
if (!a) return null;
|
|
4503
|
-
let s = a[0], c = s.replace(/(.)\/+$/, "$1"),
|
|
4504
|
+
let s = a[0], c = s.replace(/(.)\/+$/, "$1"), l = a.slice(1);
|
|
4504
4505
|
return {
|
|
4505
4506
|
params: i.reduce(
|
|
4506
4507
|
(h, { paramName: g, isOptional: x }, j) => {
|
|
4507
4508
|
if (g === "*") {
|
|
4508
|
-
let P =
|
|
4509
|
+
let P = l[j] || "";
|
|
4509
4510
|
c = s.slice(0, s.length - P.length).replace(/(.)\/+$/, "$1");
|
|
4510
4511
|
}
|
|
4511
|
-
const M =
|
|
4512
|
+
const M = l[j];
|
|
4512
4513
|
return x && !M ? h[g] = void 0 : h[g] = (M || "").replace(/%2F/g, "/"), h;
|
|
4513
4514
|
},
|
|
4514
4515
|
{}
|
|
@@ -4525,7 +4526,7 @@ function Pa(e, t = !1, r = !0) {
|
|
|
4525
4526
|
);
|
|
4526
4527
|
let i = [], a = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
|
|
4527
4528
|
/\/:([\w-]+)(\?)?/g,
|
|
4528
|
-
(c,
|
|
4529
|
+
(c, l, u) => (i.push({ paramName: l, isOptional: u != null }), u ? "/?([^\\/]+)?" : "/([^\\/]+)")
|
|
4529
4530
|
);
|
|
4530
4531
|
return e.endsWith("*") ? (i.push({ paramName: "*" }), a += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? a += "\\/*$" : e !== "" && e !== "/" && (a += "(?:(?=\\/|$))"), [new RegExp(a, t ? void 0 : "i"), i];
|
|
4531
4532
|
}
|
|
@@ -4592,9 +4593,9 @@ function sn(e, t, r, i = !1) {
|
|
|
4592
4593
|
!a.search || !a.search.includes("#"),
|
|
4593
4594
|
$t("#", "search", "hash", a)
|
|
4594
4595
|
));
|
|
4595
|
-
let s = e === "" || a.pathname === "", c = s ? "/" : a.pathname,
|
|
4596
|
+
let s = e === "" || a.pathname === "", c = s ? "/" : a.pathname, l;
|
|
4596
4597
|
if (c == null)
|
|
4597
|
-
|
|
4598
|
+
l = r;
|
|
4598
4599
|
else {
|
|
4599
4600
|
let x = t.length - 1;
|
|
4600
4601
|
if (!i && c.startsWith("..")) {
|
|
@@ -4603,10 +4604,10 @@ function sn(e, t, r, i = !1) {
|
|
|
4603
4604
|
j.shift(), x -= 1;
|
|
4604
4605
|
a.pathname = j.join("/");
|
|
4605
4606
|
}
|
|
4606
|
-
|
|
4607
|
+
l = x >= 0 ? t[x] : "/";
|
|
4607
4608
|
}
|
|
4608
|
-
let
|
|
4609
|
-
return !
|
|
4609
|
+
let u = Ra(a, l), h = c && c !== "/" && c.endsWith("/"), g = (s || c === ".") && r.endsWith("/");
|
|
4610
|
+
return !u.pathname.endsWith("/") && (h || g) && (u.pathname += "/"), u;
|
|
4610
4611
|
}
|
|
4611
4612
|
var Se = (e) => e.join("/").replace(/\/\/+/g, "/"), ja = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), La = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Da = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
|
|
4612
4613
|
function Ma(e) {
|
|
@@ -4628,8 +4629,8 @@ var $a = [
|
|
|
4628
4629
|
new Set($a);
|
|
4629
4630
|
var $e = D.createContext(null);
|
|
4630
4631
|
$e.displayName = "DataRouter";
|
|
4631
|
-
var
|
|
4632
|
-
|
|
4632
|
+
var kt = D.createContext(null);
|
|
4633
|
+
kt.displayName = "DataRouterState";
|
|
4633
4634
|
var un = D.createContext({
|
|
4634
4635
|
isTransitioning: !1
|
|
4635
4636
|
});
|
|
@@ -4648,12 +4649,12 @@ var Ze = D.createContext(
|
|
|
4648
4649
|
null
|
|
4649
4650
|
);
|
|
4650
4651
|
Ze.displayName = "Location";
|
|
4651
|
-
var
|
|
4652
|
+
var ke = D.createContext({
|
|
4652
4653
|
outlet: null,
|
|
4653
4654
|
matches: [],
|
|
4654
4655
|
isDataRoute: !1
|
|
4655
4656
|
});
|
|
4656
|
-
|
|
4657
|
+
ke.displayName = "Route";
|
|
4657
4658
|
var Gt = D.createContext(null);
|
|
4658
4659
|
Gt.displayName = "RouteError";
|
|
4659
4660
|
function za(e, { relative: t } = {}) {
|
|
@@ -4663,13 +4664,13 @@ function za(e, { relative: t } = {}) {
|
|
|
4663
4664
|
// router loaded. We can help them understand how to avoid that.
|
|
4664
4665
|
"useHref() may be used only in the context of a <Router> component."
|
|
4665
4666
|
);
|
|
4666
|
-
let { basename: r, navigator: i } = D.useContext(we), { hash: a, pathname: s, search: c } = et(e, { relative: t }),
|
|
4667
|
-
return r !== "/" && (
|
|
4667
|
+
let { basename: r, navigator: i } = D.useContext(we), { hash: a, pathname: s, search: c } = et(e, { relative: t }), l = s;
|
|
4668
|
+
return r !== "/" && (l = s === "/" ? r : Se([r, s])), i.createHref({ pathname: l, search: c, hash: a });
|
|
4668
4669
|
}
|
|
4669
4670
|
function Qe() {
|
|
4670
4671
|
return D.useContext(Ze) != null;
|
|
4671
4672
|
}
|
|
4672
|
-
function
|
|
4673
|
+
function Oe() {
|
|
4673
4674
|
return ae(
|
|
4674
4675
|
Qe(),
|
|
4675
4676
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -4682,7 +4683,7 @@ function fn(e) {
|
|
|
4682
4683
|
D.useContext(we).static || D.useLayoutEffect(e);
|
|
4683
4684
|
}
|
|
4684
4685
|
function Kt() {
|
|
4685
|
-
let { isDataRoute: e } = D.useContext(
|
|
4686
|
+
let { isDataRoute: e } = D.useContext(ke);
|
|
4686
4687
|
return e ? Ja() : Ha();
|
|
4687
4688
|
}
|
|
4688
4689
|
function Ha() {
|
|
@@ -4692,18 +4693,18 @@ function Ha() {
|
|
|
4692
4693
|
// router loaded. We can help them understand how to avoid that.
|
|
4693
4694
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
4694
4695
|
);
|
|
4695
|
-
let e = D.useContext($e), { basename: t, navigator: r } = D.useContext(we), { matches: i } = D.useContext(
|
|
4696
|
+
let e = D.useContext($e), { basename: t, navigator: r } = D.useContext(we), { matches: i } = D.useContext(ke), { pathname: a } = Oe(), s = JSON.stringify(on(i)), c = D.useRef(!1);
|
|
4696
4697
|
return fn(() => {
|
|
4697
4698
|
c.current = !0;
|
|
4698
4699
|
}), D.useCallback(
|
|
4699
|
-
(
|
|
4700
|
+
(u, h = {}) => {
|
|
4700
4701
|
if (ve(c.current, cn), !c.current) return;
|
|
4701
|
-
if (typeof
|
|
4702
|
-
r.go(
|
|
4702
|
+
if (typeof u == "number") {
|
|
4703
|
+
r.go(u);
|
|
4703
4704
|
return;
|
|
4704
4705
|
}
|
|
4705
4706
|
let g = sn(
|
|
4706
|
-
|
|
4707
|
+
u,
|
|
4707
4708
|
JSON.parse(s),
|
|
4708
4709
|
a,
|
|
4709
4710
|
h.relative === "path"
|
|
@@ -4725,7 +4726,7 @@ function Ha() {
|
|
|
4725
4726
|
}
|
|
4726
4727
|
D.createContext(null);
|
|
4727
4728
|
function et(e, { relative: t } = {}) {
|
|
4728
|
-
let { matches: r } = D.useContext(
|
|
4729
|
+
let { matches: r } = D.useContext(ke), { pathname: i } = Oe(), a = JSON.stringify(on(r));
|
|
4729
4730
|
return D.useMemo(
|
|
4730
4731
|
() => sn(
|
|
4731
4732
|
e,
|
|
@@ -4746,18 +4747,18 @@ function dn(e, t, r, i) {
|
|
|
4746
4747
|
// router loaded. We can help them understand how to avoid that.
|
|
4747
4748
|
"useRoutes() may be used only in the context of a <Router> component."
|
|
4748
4749
|
);
|
|
4749
|
-
let { navigator: a } = D.useContext(we), { matches: s } = D.useContext(
|
|
4750
|
+
let { navigator: a } = D.useContext(we), { matches: s } = D.useContext(ke), c = s[s.length - 1], l = c ? c.params : {}, u = c ? c.pathname : "/", h = c ? c.pathnameBase : "/", g = c && c.route;
|
|
4750
4751
|
{
|
|
4751
4752
|
let C = g && g.path || "";
|
|
4752
4753
|
hn(
|
|
4753
|
-
|
|
4754
|
+
u,
|
|
4754
4755
|
!g || C.endsWith("*") || C.endsWith("*?"),
|
|
4755
|
-
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${
|
|
4756
|
+
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${C}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
4756
4757
|
|
|
4757
4758
|
Please change the parent <Route path="${C}"> to <Route path="${C === "/" ? "*" : `${C}/*`}">.`
|
|
4758
4759
|
);
|
|
4759
4760
|
}
|
|
4760
|
-
let x =
|
|
4761
|
+
let x = Oe(), j;
|
|
4761
4762
|
if (t) {
|
|
4762
4763
|
let C = typeof t == "string" ? Me(t) : t;
|
|
4763
4764
|
ae(
|
|
@@ -4782,7 +4783,7 @@ Please change the parent <Route path="${C}"> to <Route path="${C === "/" ? "*" :
|
|
|
4782
4783
|
let I = qa(
|
|
4783
4784
|
p && p.map(
|
|
4784
4785
|
(C) => Object.assign({}, C, {
|
|
4785
|
-
params: Object.assign({},
|
|
4786
|
+
params: Object.assign({}, l, C.params),
|
|
4786
4787
|
pathname: Se([
|
|
4787
4788
|
h,
|
|
4788
4789
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
@@ -4855,7 +4856,7 @@ var Wa = /* @__PURE__ */ D.createElement(Fa, null), Ua = class extends D.Compone
|
|
|
4855
4856
|
);
|
|
4856
4857
|
}
|
|
4857
4858
|
render() {
|
|
4858
|
-
return this.state.error !== void 0 ? /* @__PURE__ */ D.createElement(
|
|
4859
|
+
return this.state.error !== void 0 ? /* @__PURE__ */ D.createElement(ke.Provider, { value: this.props.routeContext }, /* @__PURE__ */ D.createElement(
|
|
4859
4860
|
Gt.Provider,
|
|
4860
4861
|
{
|
|
4861
4862
|
value: this.state.error,
|
|
@@ -4866,7 +4867,7 @@ var Wa = /* @__PURE__ */ D.createElement(Fa, null), Ua = class extends D.Compone
|
|
|
4866
4867
|
};
|
|
4867
4868
|
function Ya({ routeContext: e, match: t, children: r }) {
|
|
4868
4869
|
let i = D.useContext($e);
|
|
4869
|
-
return i && i.static && i.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ D.createElement(
|
|
4870
|
+
return i && i.static && i.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ D.createElement(ke.Provider, { value: e }, r);
|
|
4870
4871
|
}
|
|
4871
4872
|
function qa(e, t = [], r = null, i = null) {
|
|
4872
4873
|
if (e == null) {
|
|
@@ -4881,46 +4882,46 @@ function qa(e, t = [], r = null, i = null) {
|
|
|
4881
4882
|
}
|
|
4882
4883
|
let a = e, s = r?.errors;
|
|
4883
4884
|
if (s != null) {
|
|
4884
|
-
let
|
|
4885
|
+
let u = a.findIndex(
|
|
4885
4886
|
(h) => h.route.id && s?.[h.route.id] !== void 0
|
|
4886
4887
|
);
|
|
4887
4888
|
ae(
|
|
4888
|
-
|
|
4889
|
+
u >= 0,
|
|
4889
4890
|
`Could not find a matching route for errors on route IDs: ${Object.keys(
|
|
4890
4891
|
s
|
|
4891
4892
|
).join(",")}`
|
|
4892
4893
|
), a = a.slice(
|
|
4893
4894
|
0,
|
|
4894
|
-
Math.min(a.length,
|
|
4895
|
+
Math.min(a.length, u + 1)
|
|
4895
4896
|
);
|
|
4896
4897
|
}
|
|
4897
|
-
let c = !1,
|
|
4898
|
+
let c = !1, l = -1;
|
|
4898
4899
|
if (r)
|
|
4899
|
-
for (let
|
|
4900
|
-
let h = a[
|
|
4901
|
-
if ((h.route.HydrateFallback || h.route.hydrateFallbackElement) && (
|
|
4900
|
+
for (let u = 0; u < a.length; u++) {
|
|
4901
|
+
let h = a[u];
|
|
4902
|
+
if ((h.route.HydrateFallback || h.route.hydrateFallbackElement) && (l = u), h.route.id) {
|
|
4902
4903
|
let { loaderData: g, errors: x } = r, j = h.route.loader && !g.hasOwnProperty(h.route.id) && (!x || x[h.route.id] === void 0);
|
|
4903
4904
|
if (h.route.lazy || j) {
|
|
4904
|
-
c = !0,
|
|
4905
|
+
c = !0, l >= 0 ? a = a.slice(0, l + 1) : a = [a[0]];
|
|
4905
4906
|
break;
|
|
4906
4907
|
}
|
|
4907
4908
|
}
|
|
4908
4909
|
}
|
|
4909
|
-
return a.reduceRight((
|
|
4910
|
+
return a.reduceRight((u, h, g) => {
|
|
4910
4911
|
let x, j = !1, M = null, P = null;
|
|
4911
|
-
r && (x = s && h.route.id ? s[h.route.id] : void 0, M = h.route.errorElement || Wa, c && (
|
|
4912
|
+
r && (x = s && h.route.id ? s[h.route.id] : void 0, M = h.route.errorElement || Wa, c && (l < 0 && g === 0 ? (hn(
|
|
4912
4913
|
"route-fallback",
|
|
4913
4914
|
!1,
|
|
4914
4915
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
4915
|
-
), j = !0, P = null) :
|
|
4916
|
+
), j = !0, P = null) : l === g && (j = !0, P = h.route.hydrateFallbackElement || null)));
|
|
4916
4917
|
let p = t.concat(a.slice(0, g + 1)), I = () => {
|
|
4917
4918
|
let C;
|
|
4918
|
-
return x ? C = M : j ? C = P : h.route.Component ? C = /* @__PURE__ */ D.createElement(h.route.Component, null) : h.route.element ? C = h.route.element : C =
|
|
4919
|
+
return x ? C = M : j ? C = P : h.route.Component ? C = /* @__PURE__ */ D.createElement(h.route.Component, null) : h.route.element ? C = h.route.element : C = u, /* @__PURE__ */ D.createElement(
|
|
4919
4920
|
Ya,
|
|
4920
4921
|
{
|
|
4921
4922
|
match: h,
|
|
4922
4923
|
routeContext: {
|
|
4923
|
-
outlet:
|
|
4924
|
+
outlet: u,
|
|
4924
4925
|
matches: p,
|
|
4925
4926
|
isDataRoute: r != null
|
|
4926
4927
|
},
|
|
@@ -4949,11 +4950,11 @@ function Ba(e) {
|
|
|
4949
4950
|
return ae(t, Jt(e)), t;
|
|
4950
4951
|
}
|
|
4951
4952
|
function Va(e) {
|
|
4952
|
-
let t = D.useContext(
|
|
4953
|
+
let t = D.useContext(kt);
|
|
4953
4954
|
return ae(t, Jt(e)), t;
|
|
4954
4955
|
}
|
|
4955
4956
|
function Xa(e) {
|
|
4956
|
-
let t = D.useContext(
|
|
4957
|
+
let t = D.useContext(ke);
|
|
4957
4958
|
return ae(t, Jt(e)), t;
|
|
4958
4959
|
}
|
|
4959
4960
|
function Zt(e) {
|
|
@@ -5026,7 +5027,7 @@ function Qa({
|
|
|
5026
5027
|
!Qe(),
|
|
5027
5028
|
"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."
|
|
5028
5029
|
);
|
|
5029
|
-
let c = e.replace(/^\/*/, "/"),
|
|
5030
|
+
let c = e.replace(/^\/*/, "/"), l = D.useMemo(
|
|
5030
5031
|
() => ({
|
|
5031
5032
|
basename: c,
|
|
5032
5033
|
navigator: a,
|
|
@@ -5037,13 +5038,13 @@ function Qa({
|
|
|
5037
5038
|
);
|
|
5038
5039
|
typeof r == "string" && (r = Me(r));
|
|
5039
5040
|
let {
|
|
5040
|
-
pathname:
|
|
5041
|
+
pathname: u = "/",
|
|
5041
5042
|
search: h = "",
|
|
5042
5043
|
hash: g = "",
|
|
5043
5044
|
state: x = null,
|
|
5044
5045
|
key: j = "default"
|
|
5045
5046
|
} = r, M = D.useMemo(() => {
|
|
5046
|
-
let P = xe(
|
|
5047
|
+
let P = xe(u, c);
|
|
5047
5048
|
return P == null ? null : {
|
|
5048
5049
|
location: {
|
|
5049
5050
|
pathname: P,
|
|
@@ -5054,11 +5055,11 @@ function Qa({
|
|
|
5054
5055
|
},
|
|
5055
5056
|
navigationType: i
|
|
5056
5057
|
};
|
|
5057
|
-
}, [c,
|
|
5058
|
+
}, [c, u, h, g, x, j, i]);
|
|
5058
5059
|
return ve(
|
|
5059
5060
|
M != null,
|
|
5060
|
-
`<Router basename="${c}"> is not able to match the URL "${
|
|
5061
|
-
), M == null ? null : /* @__PURE__ */ D.createElement(we.Provider, { value:
|
|
5061
|
+
`<Router basename="${c}"> is not able to match the URL "${u}${h}${g}" because it does not start with the basename, so the <Router> won't render anything.`
|
|
5062
|
+
), M == null ? null : /* @__PURE__ */ D.createElement(we.Provider, { value: l }, /* @__PURE__ */ D.createElement(Ze.Provider, { children: t, value: M }));
|
|
5062
5063
|
}
|
|
5063
5064
|
function eo({
|
|
5064
5065
|
children: e,
|
|
@@ -5111,17 +5112,17 @@ function Wt(e, t = []) {
|
|
|
5111
5112
|
}), r;
|
|
5112
5113
|
}
|
|
5113
5114
|
var ut = "get", ct = "application/x-www-form-urlencoded";
|
|
5114
|
-
function
|
|
5115
|
+
function Ot(e) {
|
|
5115
5116
|
return e != null && typeof e.tagName == "string";
|
|
5116
5117
|
}
|
|
5117
5118
|
function to(e) {
|
|
5118
|
-
return
|
|
5119
|
+
return Ot(e) && e.tagName.toLowerCase() === "button";
|
|
5119
5120
|
}
|
|
5120
5121
|
function ro(e) {
|
|
5121
|
-
return
|
|
5122
|
+
return Ot(e) && e.tagName.toLowerCase() === "form";
|
|
5122
5123
|
}
|
|
5123
5124
|
function no(e) {
|
|
5124
|
-
return
|
|
5125
|
+
return Ot(e) && e.tagName.toLowerCase() === "input";
|
|
5125
5126
|
}
|
|
5126
5127
|
function io(e) {
|
|
5127
5128
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
@@ -5177,16 +5178,16 @@ function It(e) {
|
|
|
5177
5178
|
function uo(e, t) {
|
|
5178
5179
|
let r, i, a, s, c;
|
|
5179
5180
|
if (ro(e)) {
|
|
5180
|
-
let
|
|
5181
|
-
i =
|
|
5181
|
+
let l = e.getAttribute("action");
|
|
5182
|
+
i = l ? xe(l, t) : null, r = e.getAttribute("method") || ut, a = It(e.getAttribute("enctype")) || ct, s = new FormData(e);
|
|
5182
5183
|
} else if (to(e) || no(e) && (e.type === "submit" || e.type === "image")) {
|
|
5183
|
-
let
|
|
5184
|
-
if (
|
|
5184
|
+
let l = e.form;
|
|
5185
|
+
if (l == null)
|
|
5185
5186
|
throw new Error(
|
|
5186
5187
|
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
5187
5188
|
);
|
|
5188
|
-
let
|
|
5189
|
-
if (i =
|
|
5189
|
+
let u = e.getAttribute("formaction") || l.getAttribute("action");
|
|
5190
|
+
if (i = u ? xe(u, t) : null, r = e.getAttribute("formmethod") || l.getAttribute("method") || ut, a = It(e.getAttribute("formenctype")) || It(l.getAttribute("enctype")) || ct, s = new FormData(l, e), !so()) {
|
|
5190
5191
|
let { name: h, type: g, value: x } = e;
|
|
5191
5192
|
if (g === "image") {
|
|
5192
5193
|
let j = h ? `${h}.` : "";
|
|
@@ -5194,7 +5195,7 @@ function uo(e, t) {
|
|
|
5194
5195
|
} else h && s.append(h, x);
|
|
5195
5196
|
}
|
|
5196
5197
|
} else {
|
|
5197
|
-
if (
|
|
5198
|
+
if (Ot(e))
|
|
5198
5199
|
throw new Error(
|
|
5199
5200
|
'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
|
|
5200
5201
|
);
|
|
@@ -5244,29 +5245,29 @@ async function ho(e, t, r) {
|
|
|
5244
5245
|
);
|
|
5245
5246
|
}
|
|
5246
5247
|
function Dr(e, t, r, i, a, s) {
|
|
5247
|
-
let c = (
|
|
5248
|
+
let c = (u, h) => r[h] ? u.route.id !== r[h].route.id : !0, l = (u, h) => (
|
|
5248
5249
|
// param change, /users/123 -> /users/456
|
|
5249
|
-
r[h].pathname !==
|
|
5250
|
+
r[h].pathname !== u.pathname || // splat param changed, which is not present in match.path
|
|
5250
5251
|
// e.g. /files/images/avatar.jpg -> files/finances.xls
|
|
5251
|
-
r[h].route.path?.endsWith("*") && r[h].params["*"] !==
|
|
5252
|
+
r[h].route.path?.endsWith("*") && r[h].params["*"] !== u.params["*"]
|
|
5252
5253
|
);
|
|
5253
5254
|
return s === "assets" ? t.filter(
|
|
5254
|
-
(
|
|
5255
|
-
) : s === "data" ? t.filter((
|
|
5256
|
-
let g = i.routes[
|
|
5255
|
+
(u, h) => c(u, h) || l(u, h)
|
|
5256
|
+
) : s === "data" ? t.filter((u, h) => {
|
|
5257
|
+
let g = i.routes[u.route.id];
|
|
5257
5258
|
if (!g || !g.hasLoader)
|
|
5258
5259
|
return !1;
|
|
5259
|
-
if (c(
|
|
5260
|
+
if (c(u, h) || l(u, h))
|
|
5260
5261
|
return !0;
|
|
5261
|
-
if (
|
|
5262
|
-
let x =
|
|
5262
|
+
if (u.route.shouldRevalidate) {
|
|
5263
|
+
let x = u.route.shouldRevalidate({
|
|
5263
5264
|
currentUrl: new URL(
|
|
5264
5265
|
a.pathname + a.search + a.hash,
|
|
5265
5266
|
window.origin
|
|
5266
5267
|
),
|
|
5267
5268
|
currentParams: r[0]?.params || {},
|
|
5268
5269
|
nextUrl: new URL(e, window.origin),
|
|
5269
|
-
nextParams:
|
|
5270
|
+
nextParams: u.params,
|
|
5270
5271
|
defaultShouldRevalidate: !0
|
|
5271
5272
|
});
|
|
5272
5273
|
if (typeof x == "boolean")
|
|
@@ -5320,7 +5321,7 @@ function mn() {
|
|
|
5320
5321
|
), e;
|
|
5321
5322
|
}
|
|
5322
5323
|
function wo() {
|
|
5323
|
-
let e = D.useContext(
|
|
5324
|
+
let e = D.useContext(kt);
|
|
5324
5325
|
return Qt(
|
|
5325
5326
|
e,
|
|
5326
5327
|
"You must render this element inside a <DataRouterStateContext.Provider> element"
|
|
@@ -5336,7 +5337,7 @@ function vn() {
|
|
|
5336
5337
|
), e;
|
|
5337
5338
|
}
|
|
5338
5339
|
function So(e, t) {
|
|
5339
|
-
let r = D.useContext(er), [i, a] = D.useState(!1), [s, c] = D.useState(!1), { onFocus:
|
|
5340
|
+
let r = D.useContext(er), [i, a] = D.useState(!1), [s, c] = D.useState(!1), { onFocus: l, onBlur: u, onMouseEnter: h, onMouseLeave: g, onTouchStart: x } = t, j = D.useRef(null);
|
|
5340
5341
|
D.useEffect(() => {
|
|
5341
5342
|
if (e === "render" && c(!0), e === "viewport") {
|
|
5342
5343
|
let p = (C) => {
|
|
@@ -5367,8 +5368,8 @@ function So(e, t) {
|
|
|
5367
5368
|
s,
|
|
5368
5369
|
j,
|
|
5369
5370
|
{
|
|
5370
|
-
onFocus: qe(
|
|
5371
|
-
onBlur: qe(
|
|
5371
|
+
onFocus: qe(l, M),
|
|
5372
|
+
onBlur: qe(u, P),
|
|
5372
5373
|
onMouseEnter: qe(h, M),
|
|
5373
5374
|
onMouseLeave: qe(g, P),
|
|
5374
5375
|
onTouchStart: qe(x, M)
|
|
@@ -5388,9 +5389,9 @@ function xo({
|
|
|
5388
5389
|
() => rn(r.routes, e, r.basename),
|
|
5389
5390
|
[r.routes, e, r.basename]
|
|
5390
5391
|
);
|
|
5391
|
-
return i ? /* @__PURE__ */ D.createElement(
|
|
5392
|
+
return i ? /* @__PURE__ */ D.createElement(Oo, { page: e, matches: i, ...t }) : null;
|
|
5392
5393
|
}
|
|
5393
|
-
function
|
|
5394
|
+
function ko(e) {
|
|
5394
5395
|
let { manifest: t, routeModules: r } = vn(), [i, a] = D.useState([]);
|
|
5395
5396
|
return D.useEffect(() => {
|
|
5396
5397
|
let s = !1;
|
|
@@ -5403,38 +5404,38 @@ function Oo(e) {
|
|
|
5403
5404
|
};
|
|
5404
5405
|
}, [e, t, r]), i;
|
|
5405
5406
|
}
|
|
5406
|
-
function
|
|
5407
|
+
function Oo({
|
|
5407
5408
|
page: e,
|
|
5408
5409
|
matches: t,
|
|
5409
5410
|
...r
|
|
5410
5411
|
}) {
|
|
5411
|
-
let i =
|
|
5412
|
+
let i = Oe(), { manifest: a, routeModules: s } = vn(), { basename: c } = mn(), { loaderData: l, matches: u } = wo(), h = D.useMemo(
|
|
5412
5413
|
() => Dr(
|
|
5413
5414
|
e,
|
|
5414
5415
|
t,
|
|
5415
|
-
|
|
5416
|
+
u,
|
|
5416
5417
|
a,
|
|
5417
5418
|
i,
|
|
5418
5419
|
"data"
|
|
5419
5420
|
),
|
|
5420
|
-
[e, t,
|
|
5421
|
+
[e, t, u, a, i]
|
|
5421
5422
|
), g = D.useMemo(
|
|
5422
5423
|
() => Dr(
|
|
5423
5424
|
e,
|
|
5424
5425
|
t,
|
|
5425
|
-
|
|
5426
|
+
u,
|
|
5426
5427
|
a,
|
|
5427
5428
|
i,
|
|
5428
5429
|
"assets"
|
|
5429
5430
|
),
|
|
5430
|
-
[e, t,
|
|
5431
|
+
[e, t, u, a, i]
|
|
5431
5432
|
), x = D.useMemo(() => {
|
|
5432
5433
|
if (e === i.pathname + i.search + i.hash)
|
|
5433
5434
|
return [];
|
|
5434
5435
|
let P = /* @__PURE__ */ new Set(), p = !1;
|
|
5435
5436
|
if (t.forEach((C) => {
|
|
5436
5437
|
let N = a.routes[C.route.id];
|
|
5437
|
-
!N || !N.hasLoader || (!h.some((U) => U.route.id === C.route.id) && C.route.id in
|
|
5438
|
+
!N || !N.hasLoader || (!h.some((U) => U.route.id === C.route.id) && C.route.id in l && s[C.route.id]?.shouldRevalidate || N.hasClientLoader ? p = !0 : P.add(C.route.id));
|
|
5438
5439
|
}), P.size === 0)
|
|
5439
5440
|
return [];
|
|
5440
5441
|
let I = bo(e, c);
|
|
@@ -5444,7 +5445,7 @@ function ko({
|
|
|
5444
5445
|
), [I.pathname + I.search];
|
|
5445
5446
|
}, [
|
|
5446
5447
|
c,
|
|
5447
|
-
|
|
5448
|
+
l,
|
|
5448
5449
|
i,
|
|
5449
5450
|
a,
|
|
5450
5451
|
h,
|
|
@@ -5454,7 +5455,7 @@ function ko({
|
|
|
5454
5455
|
]), j = D.useMemo(
|
|
5455
5456
|
() => po(g, a),
|
|
5456
5457
|
[g, a]
|
|
5457
|
-
), M =
|
|
5458
|
+
), M = ko(g);
|
|
5458
5459
|
return /* @__PURE__ */ D.createElement(D.Fragment, null, x.map((P) => /* @__PURE__ */ D.createElement("link", { key: P, rel: "prefetch", as: "fetch", href: P, ...r })), j.map((P) => /* @__PURE__ */ D.createElement("link", { key: P, rel: "modulepreload", href: P, ...r })), M.map(({ key: P, link: p }) => (
|
|
5459
5460
|
// these don't spread `linkProps` because they are full link descriptors
|
|
5460
5461
|
// already with their own props
|
|
@@ -5483,13 +5484,13 @@ function Po({
|
|
|
5483
5484
|
let a = i.current, [s, c] = D.useState({
|
|
5484
5485
|
action: a.action,
|
|
5485
5486
|
location: a.location
|
|
5486
|
-
}),
|
|
5487
|
-
(
|
|
5488
|
-
D.startTransition(() => c(
|
|
5487
|
+
}), l = D.useCallback(
|
|
5488
|
+
(u) => {
|
|
5489
|
+
D.startTransition(() => c(u));
|
|
5489
5490
|
},
|
|
5490
5491
|
[c]
|
|
5491
5492
|
);
|
|
5492
|
-
return D.useLayoutEffect(() => a.listen(
|
|
5493
|
+
return D.useLayoutEffect(() => a.listen(l), [a, l]), /* @__PURE__ */ D.createElement(
|
|
5493
5494
|
Qa,
|
|
5494
5495
|
{
|
|
5495
5496
|
basename: e,
|
|
@@ -5508,8 +5509,8 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = D.forwardRef(
|
|
|
5508
5509
|
relative: a,
|
|
5509
5510
|
reloadDocument: s,
|
|
5510
5511
|
replace: c,
|
|
5511
|
-
state:
|
|
5512
|
-
target:
|
|
5512
|
+
state: l,
|
|
5513
|
+
target: u,
|
|
5513
5514
|
to: h,
|
|
5514
5515
|
preventScrollReset: g,
|
|
5515
5516
|
viewTransition: x,
|
|
@@ -5518,8 +5519,8 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = D.forwardRef(
|
|
|
5518
5519
|
let { basename: P } = D.useContext(we), p = typeof h == "string" && yn.test(h), I, C = !1;
|
|
5519
5520
|
if (typeof h == "string" && p && (I = h, gn))
|
|
5520
5521
|
try {
|
|
5521
|
-
let y = new URL(window.location.href), d = h.startsWith("//") ? new URL(y.protocol + h) : new URL(h),
|
|
5522
|
-
d.origin === y.origin &&
|
|
5522
|
+
let y = new URL(window.location.href), d = h.startsWith("//") ? new URL(y.protocol + h) : new URL(h), k = xe(d.pathname, P);
|
|
5523
|
+
d.origin === y.origin && k != null ? h = k + d.search + d.hash : C = !0;
|
|
5523
5524
|
} catch {
|
|
5524
5525
|
ve(
|
|
5525
5526
|
!1,
|
|
@@ -5531,8 +5532,8 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = D.forwardRef(
|
|
|
5531
5532
|
j
|
|
5532
5533
|
), b = To(h, {
|
|
5533
5534
|
replace: c,
|
|
5534
|
-
state:
|
|
5535
|
-
target:
|
|
5535
|
+
state: l,
|
|
5536
|
+
target: u,
|
|
5536
5537
|
preventScrollReset: g,
|
|
5537
5538
|
relative: a,
|
|
5538
5539
|
viewTransition: x
|
|
@@ -5550,7 +5551,7 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = D.forwardRef(
|
|
|
5550
5551
|
href: I || N,
|
|
5551
5552
|
onClick: C || s ? t : w,
|
|
5552
5553
|
ref: Co(M, V),
|
|
5553
|
-
target:
|
|
5554
|
+
target: u,
|
|
5554
5555
|
"data-discover": !p && r === "render" ? "true" : void 0
|
|
5555
5556
|
}
|
|
5556
5557
|
)
|
|
@@ -5567,13 +5568,13 @@ var Eo = D.forwardRef(
|
|
|
5567
5568
|
end: a = !1,
|
|
5568
5569
|
style: s,
|
|
5569
5570
|
to: c,
|
|
5570
|
-
viewTransition:
|
|
5571
|
-
children:
|
|
5571
|
+
viewTransition: l,
|
|
5572
|
+
children: u,
|
|
5572
5573
|
...h
|
|
5573
5574
|
}, g) {
|
|
5574
|
-
let x = et(c, { relative: h.relative }), j =
|
|
5575
|
+
let x = et(c, { relative: h.relative }), j = Oe(), M = D.useContext(kt), { navigator: P, basename: p } = D.useContext(we), I = M != null && // Conditional usage is OK here because the usage of a data router is static
|
|
5575
5576
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
5576
|
-
Io(x) &&
|
|
5577
|
+
Io(x) && l === !0, C = P.encodeLocation ? P.encodeLocation(x).pathname : x.pathname, N = j.pathname, U = M && M.navigation && M.navigation.location ? M.navigation.location.pathname : null;
|
|
5577
5578
|
r || (N = N.toLowerCase(), U = U ? U.toLowerCase() : null, C = C.toLowerCase()), U && p && (U = xe(U, p) || U);
|
|
5578
5579
|
const V = C !== "/" && C.endsWith("/") ? C.length - 1 : C.length;
|
|
5579
5580
|
let v = N === C || !a && N.startsWith(C) && N.charAt(V) === "/", b = U != null && (U === C || !a && U.startsWith(C) && U.charAt(C.length) === "/"), w = {
|
|
@@ -5597,9 +5598,9 @@ var Eo = D.forwardRef(
|
|
|
5597
5598
|
ref: g,
|
|
5598
5599
|
style: d,
|
|
5599
5600
|
to: c,
|
|
5600
|
-
viewTransition:
|
|
5601
|
+
viewTransition: l
|
|
5601
5602
|
},
|
|
5602
|
-
typeof
|
|
5603
|
+
typeof u == "function" ? u(w) : u
|
|
5603
5604
|
);
|
|
5604
5605
|
}
|
|
5605
5606
|
);
|
|
@@ -5613,15 +5614,15 @@ var Ro = D.forwardRef(
|
|
|
5613
5614
|
replace: a,
|
|
5614
5615
|
state: s,
|
|
5615
5616
|
method: c = ut,
|
|
5616
|
-
action:
|
|
5617
|
-
onSubmit:
|
|
5617
|
+
action: l,
|
|
5618
|
+
onSubmit: u,
|
|
5618
5619
|
relative: h,
|
|
5619
5620
|
preventScrollReset: g,
|
|
5620
5621
|
viewTransition: x,
|
|
5621
5622
|
...j
|
|
5622
5623
|
}, M) => {
|
|
5623
|
-
let P = Mo(), p = $o(
|
|
5624
|
-
if (
|
|
5624
|
+
let P = Mo(), p = $o(l, { relative: h }), I = c.toLowerCase() === "get" ? "get" : "post", C = typeof l == "string" && yn.test(l), N = (U) => {
|
|
5625
|
+
if (u && u(U), U.defaultPrevented) return;
|
|
5625
5626
|
U.preventDefault();
|
|
5626
5627
|
let V = U.nativeEvent.submitter, v = V?.getAttribute("formmethod") || c;
|
|
5627
5628
|
P(V || U.currentTarget, {
|
|
@@ -5641,7 +5642,7 @@ var Ro = D.forwardRef(
|
|
|
5641
5642
|
ref: M,
|
|
5642
5643
|
method: I,
|
|
5643
5644
|
action: p,
|
|
5644
|
-
onSubmit: i ?
|
|
5645
|
+
onSubmit: i ? u : N,
|
|
5645
5646
|
...j,
|
|
5646
5647
|
"data-discover": !C && e === "render" ? "true" : void 0
|
|
5647
5648
|
}
|
|
@@ -5664,13 +5665,13 @@ function To(e, {
|
|
|
5664
5665
|
relative: s,
|
|
5665
5666
|
viewTransition: c
|
|
5666
5667
|
} = {}) {
|
|
5667
|
-
let
|
|
5668
|
+
let l = Kt(), u = Oe(), h = et(e, { relative: s });
|
|
5668
5669
|
return D.useCallback(
|
|
5669
5670
|
(g) => {
|
|
5670
5671
|
if (ao(g, t)) {
|
|
5671
5672
|
g.preventDefault();
|
|
5672
|
-
let x = r !== void 0 ? r : Ge(
|
|
5673
|
-
|
|
5673
|
+
let x = r !== void 0 ? r : Ge(u) === Ge(h);
|
|
5674
|
+
l(e, {
|
|
5674
5675
|
replace: x,
|
|
5675
5676
|
state: i,
|
|
5676
5677
|
preventScrollReset: a,
|
|
@@ -5680,8 +5681,8 @@ function To(e, {
|
|
|
5680
5681
|
}
|
|
5681
5682
|
},
|
|
5682
5683
|
[
|
|
5683
|
-
l,
|
|
5684
5684
|
u,
|
|
5685
|
+
l,
|
|
5685
5686
|
h,
|
|
5686
5687
|
r,
|
|
5687
5688
|
i,
|
|
@@ -5698,7 +5699,7 @@ function jo(e) {
|
|
|
5698
5699
|
typeof URLSearchParams < "u",
|
|
5699
5700
|
"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params."
|
|
5700
5701
|
);
|
|
5701
|
-
let t = D.useRef(Ut(e)), r = D.useRef(!1), i =
|
|
5702
|
+
let t = D.useRef(Ut(e)), r = D.useRef(!1), i = Oe(), a = D.useMemo(
|
|
5702
5703
|
() => (
|
|
5703
5704
|
// Only merge in the defaults if we haven't yet called setSearchParams.
|
|
5704
5705
|
// Once we call that we want those to take precedence, otherwise you can't
|
|
@@ -5710,11 +5711,11 @@ function jo(e) {
|
|
|
5710
5711
|
),
|
|
5711
5712
|
[i.search]
|
|
5712
5713
|
), s = Kt(), c = D.useCallback(
|
|
5713
|
-
(
|
|
5714
|
+
(l, u) => {
|
|
5714
5715
|
const h = Ut(
|
|
5715
|
-
typeof
|
|
5716
|
+
typeof l == "function" ? l(a) : l
|
|
5716
5717
|
);
|
|
5717
|
-
r.current = !0, s("?" + h,
|
|
5718
|
+
r.current = !0, s("?" + h, u);
|
|
5718
5719
|
},
|
|
5719
5720
|
[s, a]
|
|
5720
5721
|
);
|
|
@@ -5728,7 +5729,7 @@ function Mo() {
|
|
|
5728
5729
|
), { basename: t } = D.useContext(we), r = Ga();
|
|
5729
5730
|
return D.useCallback(
|
|
5730
5731
|
async (i, a = {}) => {
|
|
5731
|
-
let { action: s, method: c, encType:
|
|
5732
|
+
let { action: s, method: c, encType: l, formData: u, body: h } = uo(
|
|
5732
5733
|
i,
|
|
5733
5734
|
t
|
|
5734
5735
|
);
|
|
@@ -5736,19 +5737,19 @@ function Mo() {
|
|
|
5736
5737
|
let g = a.fetcherKey || Do();
|
|
5737
5738
|
await e.fetch(g, r, a.action || s, {
|
|
5738
5739
|
preventScrollReset: a.preventScrollReset,
|
|
5739
|
-
formData:
|
|
5740
|
+
formData: u,
|
|
5740
5741
|
body: h,
|
|
5741
5742
|
formMethod: a.method || c,
|
|
5742
|
-
formEncType: a.encType ||
|
|
5743
|
+
formEncType: a.encType || l,
|
|
5743
5744
|
flushSync: a.flushSync
|
|
5744
5745
|
});
|
|
5745
5746
|
} else
|
|
5746
5747
|
await e.navigate(a.action || s, {
|
|
5747
5748
|
preventScrollReset: a.preventScrollReset,
|
|
5748
|
-
formData:
|
|
5749
|
+
formData: u,
|
|
5749
5750
|
body: h,
|
|
5750
5751
|
formMethod: a.method || c,
|
|
5751
|
-
formEncType: a.encType ||
|
|
5752
|
+
formEncType: a.encType || l,
|
|
5752
5753
|
replace: a.replace,
|
|
5753
5754
|
state: a.state,
|
|
5754
5755
|
fromRouteId: r,
|
|
@@ -5760,15 +5761,15 @@ function Mo() {
|
|
|
5760
5761
|
);
|
|
5761
5762
|
}
|
|
5762
5763
|
function $o(e, { relative: t } = {}) {
|
|
5763
|
-
let { basename: r } = D.useContext(we), i = D.useContext(
|
|
5764
|
+
let { basename: r } = D.useContext(we), i = D.useContext(ke);
|
|
5764
5765
|
ae(i, "useFormAction must be used inside a RouteContext");
|
|
5765
|
-
let [a] = i.matches.slice(-1), s = { ...et(e || ".", { relative: t }) }, c =
|
|
5766
|
+
let [a] = i.matches.slice(-1), s = { ...et(e || ".", { relative: t }) }, c = Oe();
|
|
5766
5767
|
if (e == null) {
|
|
5767
5768
|
s.search = c.search;
|
|
5768
|
-
let
|
|
5769
|
-
if (
|
|
5770
|
-
|
|
5771
|
-
let g =
|
|
5769
|
+
let l = new URLSearchParams(s.search), u = l.getAll("index");
|
|
5770
|
+
if (u.some((g) => g === "")) {
|
|
5771
|
+
l.delete("index"), u.filter((x) => x).forEach((x) => l.append("index", x));
|
|
5772
|
+
let g = l.toString();
|
|
5772
5773
|
s.search = g ? `?${g}` : "";
|
|
5773
5774
|
}
|
|
5774
5775
|
}
|
|
@@ -5831,13 +5832,13 @@ const Sn = q.createContext({
|
|
|
5831
5832
|
}), t(g);
|
|
5832
5833
|
},
|
|
5833
5834
|
[e, t]
|
|
5834
|
-
),
|
|
5835
|
+
), l = _e(
|
|
5835
5836
|
(h) => {
|
|
5836
5837
|
const g = new URLSearchParams(e);
|
|
5837
5838
|
g.delete(h), t(g);
|
|
5838
5839
|
},
|
|
5839
5840
|
[e, t]
|
|
5840
|
-
),
|
|
5841
|
+
), u = _e(
|
|
5841
5842
|
(h) => {
|
|
5842
5843
|
const g = new URLSearchParams(e);
|
|
5843
5844
|
h.forEach((x) => {
|
|
@@ -5852,25 +5853,25 @@ const Sn = q.createContext({
|
|
|
5852
5853
|
getMany: i,
|
|
5853
5854
|
set: s,
|
|
5854
5855
|
setMany: c,
|
|
5855
|
-
remove:
|
|
5856
|
-
removeMany:
|
|
5856
|
+
remove: l,
|
|
5857
|
+
removeMany: u
|
|
5857
5858
|
};
|
|
5858
|
-
},
|
|
5859
|
-
const e = Kt(), t =
|
|
5860
|
-
const
|
|
5861
|
-
return
|
|
5862
|
-
g != null &&
|
|
5863
|
-
}),
|
|
5859
|
+
}, ls = () => {
|
|
5860
|
+
const e = Kt(), t = Oe(), r = Ao(), i = Yt(Sn), a = (l) => {
|
|
5861
|
+
const u = new URL(l.path, "http://dummy-base");
|
|
5862
|
+
return l.params && Object.entries(l.params).forEach(([h, g]) => {
|
|
5863
|
+
g != null && u.searchParams.set(h, String(g));
|
|
5864
|
+
}), u.pathname + u.search;
|
|
5864
5865
|
}, s = q.useCallback(
|
|
5865
|
-
(
|
|
5866
|
-
const
|
|
5867
|
-
|
|
5866
|
+
(l) => {
|
|
5867
|
+
const u = a(l);
|
|
5868
|
+
l.addToHistory !== !1 ? (e(u), i.addToHistory(u)) : (e(u, { replace: !0 }), i.popFromHistory(1), i.addToHistory(u));
|
|
5868
5869
|
},
|
|
5869
5870
|
[e]
|
|
5870
5871
|
), c = q.useCallback(
|
|
5871
|
-
(
|
|
5872
|
-
const
|
|
5873
|
-
e(-
|
|
5872
|
+
(l) => {
|
|
5873
|
+
const u = l || 1;
|
|
5874
|
+
e(-u), i.popFromHistory(u);
|
|
5874
5875
|
},
|
|
5875
5876
|
[e]
|
|
5876
5877
|
);
|
|
@@ -5881,17 +5882,17 @@ const Sn = q.createContext({
|
|
|
5881
5882
|
goBack: c,
|
|
5882
5883
|
goTo: s
|
|
5883
5884
|
};
|
|
5884
|
-
},
|
|
5885
|
+
}, us = ({
|
|
5885
5886
|
isReady: e = !0,
|
|
5886
5887
|
routes: t,
|
|
5887
5888
|
children: r
|
|
5888
5889
|
}) => {
|
|
5889
5890
|
const i = q.useRef([]), [a, s] = q.useState([]), c = q.useCallback((x) => {
|
|
5890
5891
|
i.current = x, s(x);
|
|
5891
|
-
}, []),
|
|
5892
|
+
}, []), l = (x, j = !1) => {
|
|
5892
5893
|
let M = [...i.current];
|
|
5893
5894
|
j && (M = M.slice(0, M.length - 1)), M = [...M, x], c(M);
|
|
5894
|
-
},
|
|
5895
|
+
}, u = (x) => {
|
|
5895
5896
|
let j = "", M = [];
|
|
5896
5897
|
return i.current.length === 0 ? "/" : (i.current.length <= x ? (j = i.current[0], M = [j]) : (M = i.current.slice(
|
|
5897
5898
|
0,
|
|
@@ -5905,8 +5906,8 @@ const Sn = q.createContext({
|
|
|
5905
5906
|
{
|
|
5906
5907
|
value: {
|
|
5907
5908
|
history: a,
|
|
5908
|
-
addToHistory:
|
|
5909
|
-
popFromHistory:
|
|
5909
|
+
addToHistory: l,
|
|
5910
|
+
popFromHistory: u,
|
|
5910
5911
|
replaceHistory: h
|
|
5911
5912
|
},
|
|
5912
5913
|
children: /* @__PURE__ */ K.jsx(Po, { children: e && /* @__PURE__ */ K.jsxs(K.Fragment, { children: [
|
|
@@ -5924,18 +5925,18 @@ const Sn = q.createContext({
|
|
|
5924
5925
|
hideItem: () => {
|
|
5925
5926
|
}
|
|
5926
5927
|
}
|
|
5927
|
-
),
|
|
5928
|
-
const t = q.useRef([]), [r, i] = q.useState([]), a = q.useCallback((
|
|
5929
|
-
t.current =
|
|
5930
|
-
}, []), s = q.useCallback((
|
|
5931
|
-
(
|
|
5932
|
-
s(
|
|
5928
|
+
), cs = ({ children: e }) => {
|
|
5929
|
+
const t = q.useRef([]), [r, i] = q.useState([]), a = q.useCallback((u) => {
|
|
5930
|
+
t.current = u, i(u);
|
|
5931
|
+
}, []), s = q.useCallback((u) => t.current.some((h) => h === u), []), c = q.useCallback(
|
|
5932
|
+
(u) => {
|
|
5933
|
+
s(u) || a([...t.current, u]);
|
|
5933
5934
|
},
|
|
5934
5935
|
[s, a]
|
|
5935
|
-
),
|
|
5936
|
-
(
|
|
5937
|
-
s(
|
|
5938
|
-
t.current.filter((g) => g !==
|
|
5936
|
+
), l = q.useCallback(
|
|
5937
|
+
(u) => {
|
|
5938
|
+
s(u) && a(
|
|
5939
|
+
t.current.filter((g) => g !== u)
|
|
5939
5940
|
);
|
|
5940
5941
|
},
|
|
5941
5942
|
[s, a]
|
|
@@ -5947,7 +5948,7 @@ const Sn = q.createContext({
|
|
|
5947
5948
|
visibleItems: r,
|
|
5948
5949
|
isItemVisible: s,
|
|
5949
5950
|
showItem: c,
|
|
5950
|
-
hideItem:
|
|
5951
|
+
hideItem: l
|
|
5951
5952
|
},
|
|
5952
5953
|
children: e
|
|
5953
5954
|
}
|
|
@@ -5971,16 +5972,16 @@ const Sn = q.createContext({
|
|
|
5971
5972
|
}) => {
|
|
5972
5973
|
const { isItemVisible: i } = Ct(), [a, s] = q.useState({
|
|
5973
5974
|
isDragging: !1
|
|
5974
|
-
}), c = q.useRef(null),
|
|
5975
|
+
}), c = q.useRef(null), l = q.useRef(null), u = q.useRef(null), [h, g] = q.useState(0), x = (P) => {
|
|
5975
5976
|
s(P);
|
|
5976
5977
|
}, j = (P) => {
|
|
5977
5978
|
s(P), g(0);
|
|
5978
5979
|
};
|
|
5979
5980
|
return oa({
|
|
5980
|
-
ref:
|
|
5981
|
+
ref: u,
|
|
5981
5982
|
onDrag: (P) => {
|
|
5982
5983
|
s(P);
|
|
5983
|
-
const p =
|
|
5984
|
+
const p = l.current?.clientHeight || 0;
|
|
5984
5985
|
P.distanceY && (g(P.distanceY < 0 ? 0 : -P.distanceY), P.distanceY >= p - r && (t?.(), j(P)));
|
|
5985
5986
|
},
|
|
5986
5987
|
onDragEnd: j,
|
|
@@ -5988,16 +5989,16 @@ const Sn = q.createContext({
|
|
|
5988
5989
|
}), {
|
|
5989
5990
|
isVisible: i(e),
|
|
5990
5991
|
drawerParentRef: c,
|
|
5991
|
-
drawerRef:
|
|
5992
|
+
drawerRef: l,
|
|
5992
5993
|
drawerBottomDistance: h,
|
|
5993
|
-
handleRef:
|
|
5994
|
+
handleRef: u
|
|
5994
5995
|
};
|
|
5995
|
-
},
|
|
5996
|
+
}, fs = (e) => {
|
|
5996
5997
|
const { children: t, backgroundStyles: r, contentStyles: i, handle: a } = e, {
|
|
5997
5998
|
isVisible: s,
|
|
5998
5999
|
drawerParentRef: c,
|
|
5999
|
-
drawerRef:
|
|
6000
|
-
handleRef:
|
|
6000
|
+
drawerRef: l,
|
|
6001
|
+
handleRef: u,
|
|
6001
6002
|
drawerBottomDistance: h
|
|
6002
6003
|
} = zo(e);
|
|
6003
6004
|
return /* @__PURE__ */ K.jsx(K.Fragment, { children: s && /* @__PURE__ */ K.jsx(
|
|
@@ -6021,7 +6022,7 @@ const Sn = q.createContext({
|
|
|
6021
6022
|
children: /* @__PURE__ */ K.jsxs(
|
|
6022
6023
|
"div",
|
|
6023
6024
|
{
|
|
6024
|
-
ref:
|
|
6025
|
+
ref: l,
|
|
6025
6026
|
style: {
|
|
6026
6027
|
width: "100%",
|
|
6027
6028
|
height: "fit-content",
|
|
@@ -6047,7 +6048,7 @@ const Sn = q.createContext({
|
|
|
6047
6048
|
/* @__PURE__ */ K.jsx(
|
|
6048
6049
|
"div",
|
|
6049
6050
|
{
|
|
6050
|
-
ref:
|
|
6051
|
+
ref: u,
|
|
6051
6052
|
style: {
|
|
6052
6053
|
display: "flex",
|
|
6053
6054
|
alignItems: "center",
|
|
@@ -6071,12 +6072,12 @@ const Sn = q.createContext({
|
|
|
6071
6072
|
}, Ho = ({ onSubmit: e, fields: t }) => {
|
|
6072
6073
|
const r = q.useRef(null), i = q.useCallback(
|
|
6073
6074
|
(c) => {
|
|
6074
|
-
var
|
|
6075
|
-
for (let g = 0; g <
|
|
6076
|
-
const x =
|
|
6075
|
+
var l = Object.keys(c.currentTarget.elements), u = Object.values(c.currentTarget.elements), h = [];
|
|
6076
|
+
for (let g = 0; g < l.length; g++) {
|
|
6077
|
+
const x = l[g];
|
|
6077
6078
|
if (t.findIndex((M) => M.name === x) === -1)
|
|
6078
6079
|
continue;
|
|
6079
|
-
const j =
|
|
6080
|
+
const j = u[g].value;
|
|
6080
6081
|
h.push({
|
|
6081
6082
|
name: x,
|
|
6082
6083
|
value: j
|
|
@@ -6088,8 +6089,8 @@ const Sn = q.createContext({
|
|
|
6088
6089
|
), a = q.useCallback(
|
|
6089
6090
|
(c) => {
|
|
6090
6091
|
c.preventDefault(), c.stopPropagation();
|
|
6091
|
-
const
|
|
6092
|
-
e?.(
|
|
6092
|
+
const l = i(c);
|
|
6093
|
+
e?.(l);
|
|
6093
6094
|
},
|
|
6094
6095
|
[e]
|
|
6095
6096
|
);
|
|
@@ -6115,8 +6116,8 @@ const Sn = q.createContext({
|
|
|
6115
6116
|
> * {
|
|
6116
6117
|
pointer-events: none;
|
|
6117
6118
|
}
|
|
6118
|
-
`,
|
|
6119
|
-
const { fields: t, styles: r, submitButton: i } = e, { ref: a, handleFormSubmission: s, submitForm: c } = Ho(e),
|
|
6119
|
+
`, ds = (e) => {
|
|
6120
|
+
const { fields: t, styles: r, submitButton: i } = e, { ref: a, handleFormSubmission: s, submitForm: c } = Ho(e), l = q.useCallback(() => t.map((u) => ({ ...u.content, key: u.name })), [t]);
|
|
6120
6121
|
return /* @__PURE__ */ K.jsxs(
|
|
6121
6122
|
"form",
|
|
6122
6123
|
{
|
|
@@ -6131,7 +6132,7 @@ const Sn = q.createContext({
|
|
|
6131
6132
|
...r
|
|
6132
6133
|
},
|
|
6133
6134
|
children: [
|
|
6134
|
-
|
|
6135
|
+
l(),
|
|
6135
6136
|
/* @__PURE__ */ K.jsx(
|
|
6136
6137
|
No,
|
|
6137
6138
|
{
|
|
@@ -6145,7 +6146,7 @@ const Sn = q.createContext({
|
|
|
6145
6146
|
]
|
|
6146
6147
|
}
|
|
6147
6148
|
);
|
|
6148
|
-
},
|
|
6149
|
+
}, hs = ({ src: e, alt: t = "", onClick: r, styles: i }) => /* @__PURE__ */ K.jsx(
|
|
6149
6150
|
"img",
|
|
6150
6151
|
{
|
|
6151
6152
|
src: e,
|
|
@@ -6182,7 +6183,7 @@ const Sn = q.createContext({
|
|
|
6182
6183
|
input:-webkit-autofill {
|
|
6183
6184
|
background-color: #00000000;
|
|
6184
6185
|
}
|
|
6185
|
-
`,
|
|
6186
|
+
`, ps = ({
|
|
6186
6187
|
name: e,
|
|
6187
6188
|
label: t,
|
|
6188
6189
|
leftIcon: r,
|
|
@@ -6190,8 +6191,8 @@ const Sn = q.createContext({
|
|
|
6190
6191
|
bottomMessage: a,
|
|
6191
6192
|
placeHolder: s,
|
|
6192
6193
|
autoComplete: c = "off",
|
|
6193
|
-
value:
|
|
6194
|
-
initialValue:
|
|
6194
|
+
value: l,
|
|
6195
|
+
initialValue: u,
|
|
6195
6196
|
type: h = "text",
|
|
6196
6197
|
onChange: g,
|
|
6197
6198
|
onFocus: x,
|
|
@@ -6262,8 +6263,8 @@ const Sn = q.createContext({
|
|
|
6262
6263
|
...j
|
|
6263
6264
|
},
|
|
6264
6265
|
placeholder: s,
|
|
6265
|
-
value:
|
|
6266
|
-
defaultValue:
|
|
6266
|
+
value: l,
|
|
6267
|
+
defaultValue: u,
|
|
6267
6268
|
onChange: I,
|
|
6268
6269
|
onFocus: C
|
|
6269
6270
|
}
|
|
@@ -6276,7 +6277,7 @@ const Sn = q.createContext({
|
|
|
6276
6277
|
]
|
|
6277
6278
|
}
|
|
6278
6279
|
);
|
|
6279
|
-
},
|
|
6280
|
+
}, ms = ({ id: e, styles: t, children: r }) => {
|
|
6280
6281
|
const { isItemVisible: i } = Ct();
|
|
6281
6282
|
return /* @__PURE__ */ K.jsx(K.Fragment, { children: i(e) && /* @__PURE__ */ K.jsx(
|
|
6282
6283
|
"div",
|
|
@@ -6297,7 +6298,7 @@ const Sn = q.createContext({
|
|
|
6297
6298
|
children: r
|
|
6298
6299
|
}
|
|
6299
6300
|
) });
|
|
6300
|
-
},
|
|
6301
|
+
}, vs = ({
|
|
6301
6302
|
id: e,
|
|
6302
6303
|
children: t,
|
|
6303
6304
|
backgroundStyles: r,
|
|
@@ -6356,19 +6357,19 @@ const Sn = q.createContext({
|
|
|
6356
6357
|
}
|
|
6357
6358
|
) });
|
|
6358
6359
|
}, Wo = (e) => {
|
|
6359
|
-
const t = q.useRef(null), r = q.useRef(null), [i, a] = q.useState(24), [s, c] = q.useState(24),
|
|
6360
|
+
const t = q.useRef(null), r = q.useRef(null), [i, a] = q.useState(24), [s, c] = q.useState(24), l = q.useCallback(() => {
|
|
6360
6361
|
t.current && a(t.current.clientHeight);
|
|
6361
|
-
}, [t, t.current]),
|
|
6362
|
+
}, [t, t.current]), u = q.useCallback(() => {
|
|
6362
6363
|
r.current && c(r.current.clientHeight);
|
|
6363
6364
|
}, [r, r.current]), h = q.useCallback(() => {
|
|
6364
6365
|
let g = 0;
|
|
6365
6366
|
return e.header?.visibility === "always" && (g = g + (i || 0)), e.footer?.visibility === "always" && (g = g + (s || 0)), g;
|
|
6366
6367
|
}, [r, r.current]);
|
|
6367
6368
|
return q.useEffect(() => {
|
|
6368
|
-
u();
|
|
6369
|
-
}, [u, t, t.current]), q.useEffect(() => {
|
|
6370
6369
|
l();
|
|
6371
|
-
}, [l,
|
|
6370
|
+
}, [l, t, t.current]), q.useEffect(() => {
|
|
6371
|
+
u();
|
|
6372
|
+
}, [u, r, r.current]), {
|
|
6372
6373
|
header: {
|
|
6373
6374
|
...e.header,
|
|
6374
6375
|
visible: e.header !== void 0,
|
|
@@ -6405,7 +6406,7 @@ const Sn = q.createContext({
|
|
|
6405
6406
|
box-sizing: border-box;
|
|
6406
6407
|
position: relative;
|
|
6407
6408
|
}
|
|
6408
|
-
`,
|
|
6409
|
+
`, gs = (e) => {
|
|
6409
6410
|
const {
|
|
6410
6411
|
containerStyles: t,
|
|
6411
6412
|
pageStyles: r,
|
|
@@ -6413,7 +6414,7 @@ const Sn = q.createContext({
|
|
|
6413
6414
|
allowScroll: a = !0,
|
|
6414
6415
|
floatingContent: s,
|
|
6415
6416
|
reserveSpaceForScrollbar: c
|
|
6416
|
-
} = e, { footer:
|
|
6417
|
+
} = e, { footer: l, header: u } = Wo(e);
|
|
6417
6418
|
return /* @__PURE__ */ K.jsxs(
|
|
6418
6419
|
Uo,
|
|
6419
6420
|
{
|
|
@@ -6422,15 +6423,15 @@ const Sn = q.createContext({
|
|
|
6422
6423
|
...t
|
|
6423
6424
|
},
|
|
6424
6425
|
children: [
|
|
6425
|
-
|
|
6426
|
+
u.visible && /* @__PURE__ */ K.jsx(
|
|
6426
6427
|
"div",
|
|
6427
6428
|
{
|
|
6428
|
-
ref:
|
|
6429
|
+
ref: u.ref,
|
|
6429
6430
|
id: "page-header",
|
|
6430
6431
|
style: {
|
|
6431
6432
|
width: "100%",
|
|
6432
6433
|
zIndex: 99,
|
|
6433
|
-
position:
|
|
6434
|
+
position: u.visibility === "fixed" ? "relative" : "sticky",
|
|
6434
6435
|
top: 0,
|
|
6435
6436
|
left: 0,
|
|
6436
6437
|
right: 0,
|
|
@@ -6438,9 +6439,9 @@ const Sn = q.createContext({
|
|
|
6438
6439
|
flexDirection: "row",
|
|
6439
6440
|
height: "fit-content",
|
|
6440
6441
|
boxSizing: "border-box",
|
|
6441
|
-
...
|
|
6442
|
+
...u.styles
|
|
6442
6443
|
},
|
|
6443
|
-
children:
|
|
6444
|
+
children: u.content
|
|
6444
6445
|
}
|
|
6445
6446
|
),
|
|
6446
6447
|
/* @__PURE__ */ K.jsx(
|
|
@@ -6452,8 +6453,8 @@ const Sn = q.createContext({
|
|
|
6452
6453
|
overflow: "hidden",
|
|
6453
6454
|
display: "flex",
|
|
6454
6455
|
flex: 1,
|
|
6455
|
-
marginTop: `-${
|
|
6456
|
-
marginBottom: `-${
|
|
6456
|
+
marginTop: `-${u.height}px`,
|
|
6457
|
+
marginBottom: `-${l.height}px`
|
|
6457
6458
|
},
|
|
6458
6459
|
children: /* @__PURE__ */ K.jsx(
|
|
6459
6460
|
"div",
|
|
@@ -6470,8 +6471,8 @@ const Sn = q.createContext({
|
|
|
6470
6471
|
scrollbarGutter: c ? "stable" : void 0,
|
|
6471
6472
|
paddingLeft: "0px",
|
|
6472
6473
|
paddingRight: "0px",
|
|
6473
|
-
paddingTop: `${
|
|
6474
|
-
paddingBottom: `${
|
|
6474
|
+
paddingTop: `${u.height}px`,
|
|
6475
|
+
paddingBottom: `${l.height}px`,
|
|
6475
6476
|
...r
|
|
6476
6477
|
},
|
|
6477
6478
|
children: i
|
|
@@ -6479,15 +6480,15 @@ const Sn = q.createContext({
|
|
|
6479
6480
|
)
|
|
6480
6481
|
}
|
|
6481
6482
|
),
|
|
6482
|
-
|
|
6483
|
+
l.visible && /* @__PURE__ */ K.jsx(
|
|
6483
6484
|
"div",
|
|
6484
6485
|
{
|
|
6485
|
-
ref:
|
|
6486
|
+
ref: l.ref,
|
|
6486
6487
|
id: "page-footer",
|
|
6487
6488
|
style: {
|
|
6488
6489
|
width: "100%",
|
|
6489
6490
|
zIndex: 99,
|
|
6490
|
-
position:
|
|
6491
|
+
position: l.visibility === "fixed" ? "relative" : "sticky",
|
|
6491
6492
|
bottom: 0,
|
|
6492
6493
|
left: 0,
|
|
6493
6494
|
right: 0,
|
|
@@ -6495,230 +6496,19 @@ const Sn = q.createContext({
|
|
|
6495
6496
|
flexDirection: "row",
|
|
6496
6497
|
height: "fit-content",
|
|
6497
6498
|
boxSizing: "border-box",
|
|
6498
|
-
...
|
|
6499
|
+
...l.styles
|
|
6499
6500
|
},
|
|
6500
|
-
children:
|
|
6501
|
+
children: l.content
|
|
6501
6502
|
}
|
|
6502
6503
|
)
|
|
6503
6504
|
]
|
|
6504
6505
|
}
|
|
6505
6506
|
);
|
|
6506
|
-
}
|
|
6507
|
-
|
|
6508
|
-
width: t = "22",
|
|
6509
|
-
height: r = "28",
|
|
6510
|
-
stroke: i,
|
|
6511
|
-
viewBox: a = "0 0 22 28",
|
|
6512
|
-
fill: s = "#000000",
|
|
6513
|
-
alt: c = "",
|
|
6514
|
-
onClick: u,
|
|
6515
|
-
styles: l
|
|
6516
|
-
}) => /* @__PURE__ */ K.jsx(
|
|
6517
|
-
"div",
|
|
6518
|
-
{
|
|
6519
|
-
style: {
|
|
6520
|
-
width: "fit-content",
|
|
6521
|
-
height: "fit-content",
|
|
6522
|
-
display: "flex",
|
|
6523
|
-
alignItems: "center",
|
|
6524
|
-
justifyContent: "center",
|
|
6525
|
-
...l
|
|
6526
|
-
},
|
|
6527
|
-
onClick: () => u?.(),
|
|
6528
|
-
children: /* @__PURE__ */ K.jsx(
|
|
6529
|
-
"svg",
|
|
6530
|
-
{
|
|
6531
|
-
width: t,
|
|
6532
|
-
height: r,
|
|
6533
|
-
viewBox: a,
|
|
6534
|
-
fill: s,
|
|
6535
|
-
stroke: i,
|
|
6536
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6537
|
-
style: {
|
|
6538
|
-
display: "flex"
|
|
6539
|
-
},
|
|
6540
|
-
children: e
|
|
6541
|
-
}
|
|
6542
|
-
)
|
|
6543
|
-
}
|
|
6544
|
-
), Yo = Pe.div`
|
|
6545
|
-
display: flex;
|
|
6546
|
-
flex-direction: column;
|
|
6547
|
-
font-family: inherit;
|
|
6548
|
-
|
|
6549
|
-
textarea::-webkit-scrollbar {
|
|
6550
|
-
width: 5px; /* largura da barra */
|
|
6551
|
-
}
|
|
6552
|
-
|
|
6553
|
-
textarea::-webkit-scrollbar-track {
|
|
6554
|
-
background: #f0f0f0; /* fundo */
|
|
6555
|
-
border-radius: 10px;
|
|
6556
|
-
}
|
|
6557
|
-
|
|
6558
|
-
textarea::-webkit-scrollbar-thumb {
|
|
6559
|
-
background: #888; /* cor da barra */
|
|
6560
|
-
border-radius: 10px;
|
|
6561
|
-
}
|
|
6562
|
-
|
|
6563
|
-
textarea::-webkit-scrollbar-thumb:hover {
|
|
6564
|
-
background: #555; /* hover */
|
|
6565
|
-
}
|
|
6566
|
-
`, ys = ({
|
|
6567
|
-
name: e,
|
|
6568
|
-
label: t,
|
|
6569
|
-
leftIcon: r,
|
|
6570
|
-
rightIcon: i,
|
|
6571
|
-
bottomMessage: a,
|
|
6572
|
-
placeHolder: s,
|
|
6573
|
-
value: c,
|
|
6574
|
-
initialValue: u,
|
|
6575
|
-
onChange: l,
|
|
6576
|
-
onFocus: h,
|
|
6577
|
-
inputStyles: g,
|
|
6578
|
-
containerStyles: x,
|
|
6579
|
-
styles: j
|
|
6580
|
-
}) => {
|
|
6581
|
-
const M = (p) => {
|
|
6582
|
-
l?.(p.currentTarget.value);
|
|
6583
|
-
}, P = (p) => {
|
|
6584
|
-
p.preventDefault(), p.stopPropagation(), h?.();
|
|
6585
|
-
};
|
|
6586
|
-
return /* @__PURE__ */ K.jsxs(
|
|
6587
|
-
Yo,
|
|
6588
|
-
{
|
|
6589
|
-
style: {
|
|
6590
|
-
width: "100%",
|
|
6591
|
-
maxWidth: "357px",
|
|
6592
|
-
gap: "8px",
|
|
6593
|
-
...j
|
|
6594
|
-
},
|
|
6595
|
-
children: [
|
|
6596
|
-
t,
|
|
6597
|
-
/* @__PURE__ */ K.jsxs(
|
|
6598
|
-
"div",
|
|
6599
|
-
{
|
|
6600
|
-
style: {
|
|
6601
|
-
display: "flex",
|
|
6602
|
-
flexDirection: "row",
|
|
6603
|
-
width: "100%",
|
|
6604
|
-
margin: "8px auto 0 auto",
|
|
6605
|
-
border: "2px solid #000000",
|
|
6606
|
-
borderRadius: "5px",
|
|
6607
|
-
color: "#000000",
|
|
6608
|
-
fontFamily: "inherit",
|
|
6609
|
-
fontStyle: "normal",
|
|
6610
|
-
fontWeight: 400,
|
|
6611
|
-
outline: "none",
|
|
6612
|
-
alignItems: "flex-start",
|
|
6613
|
-
gap: "10px",
|
|
6614
|
-
...x
|
|
6615
|
-
},
|
|
6616
|
-
children: [
|
|
6617
|
-
r,
|
|
6618
|
-
/* @__PURE__ */ K.jsx(
|
|
6619
|
-
"textarea",
|
|
6620
|
-
{
|
|
6621
|
-
name: e,
|
|
6622
|
-
style: {
|
|
6623
|
-
resize: "none",
|
|
6624
|
-
flex: 1,
|
|
6625
|
-
border: "none",
|
|
6626
|
-
color: "inherit",
|
|
6627
|
-
fontFamily: "inherit",
|
|
6628
|
-
fontStyle: "inherit",
|
|
6629
|
-
fontWeight: "inherit",
|
|
6630
|
-
fontSize: "inherit",
|
|
6631
|
-
lineHeight: "inherit",
|
|
6632
|
-
outline: "inherit",
|
|
6633
|
-
background: "none",
|
|
6634
|
-
minHeight: "47px",
|
|
6635
|
-
...g
|
|
6636
|
-
},
|
|
6637
|
-
placeholder: s,
|
|
6638
|
-
value: c,
|
|
6639
|
-
defaultValue: u,
|
|
6640
|
-
onChange: M,
|
|
6641
|
-
onFocus: P
|
|
6642
|
-
}
|
|
6643
|
-
),
|
|
6644
|
-
i
|
|
6645
|
-
]
|
|
6646
|
-
}
|
|
6647
|
-
),
|
|
6648
|
-
a
|
|
6649
|
-
]
|
|
6650
|
-
}
|
|
6651
|
-
);
|
|
6652
|
-
}, bs = ({
|
|
6653
|
-
id: e,
|
|
6654
|
-
children: t,
|
|
6655
|
-
styles: r,
|
|
6656
|
-
durationInSeconds: i = 3
|
|
6657
|
-
}) => {
|
|
6658
|
-
const a = q.useRef(!1), { isItemVisible: s, hideItem: c } = Ct();
|
|
6659
|
-
return q.useEffect(() => {
|
|
6660
|
-
const u = s(e);
|
|
6661
|
-
a.current !== u && (a.current = u, u && setTimeout(() => c(e), i * 1e3));
|
|
6662
|
-
}, [a, s, c]), /* @__PURE__ */ K.jsx(K.Fragment, { children: s(e) && /* @__PURE__ */ K.jsx(
|
|
6663
|
-
"div",
|
|
6664
|
-
{
|
|
6665
|
-
style: {
|
|
6666
|
-
width: "100px",
|
|
6667
|
-
height: "40px",
|
|
6668
|
-
background: "#534a4aff",
|
|
6669
|
-
color: "#ffffff",
|
|
6670
|
-
position: "fixed",
|
|
6671
|
-
top: "10px",
|
|
6672
|
-
left: "50%",
|
|
6673
|
-
transform: "translateX(-50%)",
|
|
6674
|
-
zIndex: 1e3,
|
|
6675
|
-
borderRadius: "20px",
|
|
6676
|
-
display: "flex",
|
|
6677
|
-
flexDirection: "column",
|
|
6678
|
-
alignItems: "center",
|
|
6679
|
-
justifyContent: "center",
|
|
6680
|
-
border: "solid 3px #000000ff",
|
|
6681
|
-
...r
|
|
6682
|
-
},
|
|
6683
|
-
onClick: (u) => {
|
|
6684
|
-
u.stopPropagation(), u.preventDefault();
|
|
6685
|
-
},
|
|
6686
|
-
children: t
|
|
6687
|
-
}
|
|
6688
|
-
) });
|
|
6689
|
-
}, ws = ({
|
|
6690
|
-
overflowEllipsis: e,
|
|
6691
|
-
maxNumberOfLines: t,
|
|
6692
|
-
children: r,
|
|
6693
|
-
styles: i
|
|
6694
|
-
}) => /* @__PURE__ */ K.jsx(
|
|
6695
|
-
"p",
|
|
6696
|
-
{
|
|
6697
|
-
style: {
|
|
6698
|
-
fontFamily: "inherit",
|
|
6699
|
-
maxWidth: "100%",
|
|
6700
|
-
overflow: "hidden",
|
|
6701
|
-
// whiteSpace: overflowEllipsis ? "nowrap" : "normal", //Old way
|
|
6702
|
-
// new way
|
|
6703
|
-
display: "-webkit-box",
|
|
6704
|
-
WebkitLineClamp: t || void 0,
|
|
6705
|
-
WebkitBoxOrient: "vertical",
|
|
6706
|
-
whiteSpace: "unset",
|
|
6707
|
-
// end new way
|
|
6708
|
-
textOverflow: e ? "ellipsis" : void 0,
|
|
6709
|
-
fontSize: "16px",
|
|
6710
|
-
fontStyle: "normal",
|
|
6711
|
-
lineHeight: "normal",
|
|
6712
|
-
color: "inherit",
|
|
6713
|
-
...i
|
|
6714
|
-
},
|
|
6715
|
-
children: r
|
|
6716
|
-
}
|
|
6717
|
-
);
|
|
6718
|
-
class Ss {
|
|
6507
|
+
};
|
|
6508
|
+
class Yo {
|
|
6719
6509
|
static clamp = (t, r, i) => t > i ? i : t < r ? r : t;
|
|
6720
6510
|
}
|
|
6721
|
-
class
|
|
6511
|
+
class ys {
|
|
6722
6512
|
static isScrollEnabled = () => document.body.style.overflow === "unset" || document.body.style.overflow === "auto";
|
|
6723
6513
|
static disableScroll = () => {
|
|
6724
6514
|
document.body.style.overflow = "hidden";
|
|
@@ -6727,7 +6517,7 @@ class xs {
|
|
|
6727
6517
|
document.body.style.overflow = "unset";
|
|
6728
6518
|
};
|
|
6729
6519
|
}
|
|
6730
|
-
class
|
|
6520
|
+
class bs {
|
|
6731
6521
|
static getPascalCase = (t) => t.replace(/\w+/g, function(r) {
|
|
6732
6522
|
return r[0].toUpperCase() + r.slice(1).toLowerCase();
|
|
6733
6523
|
});
|
|
@@ -6739,60 +6529,60 @@ function Bo() {
|
|
|
6739
6529
|
(function(r, i) {
|
|
6740
6530
|
e.exports = i();
|
|
6741
6531
|
})(qo, function() {
|
|
6742
|
-
var r = 1e3, i = 6e4, a = 36e5, s = "millisecond", c = "second",
|
|
6743
|
-
var
|
|
6744
|
-
return "[" + _ + (
|
|
6745
|
-
} }, U = function(_,
|
|
6532
|
+
var r = 1e3, i = 6e4, a = 36e5, s = "millisecond", c = "second", l = "minute", u = "hour", h = "day", g = "week", x = "month", j = "quarter", M = "year", P = "date", p = "Invalid Date", I = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, N = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(_) {
|
|
6533
|
+
var O = ["th", "st", "nd", "rd"], T = _ % 100;
|
|
6534
|
+
return "[" + _ + (O[(T - 20) % 10] || O[T] || O[0]) + "]";
|
|
6535
|
+
} }, U = function(_, O, T) {
|
|
6746
6536
|
var o = String(_);
|
|
6747
|
-
return !o || o.length >=
|
|
6537
|
+
return !o || o.length >= O ? _ : "" + Array(O + 1 - o.length).join(T) + _;
|
|
6748
6538
|
}, V = { s: U, z: function(_) {
|
|
6749
|
-
var
|
|
6750
|
-
return (
|
|
6751
|
-
}, m: function _(
|
|
6752
|
-
if (
|
|
6753
|
-
var o = 12 * (T.year() -
|
|
6539
|
+
var O = -_.utcOffset(), T = Math.abs(O), o = Math.floor(T / 60), z = T % 60;
|
|
6540
|
+
return (O <= 0 ? "+" : "-") + U(o, 2, "0") + ":" + U(z, 2, "0");
|
|
6541
|
+
}, m: function _(O, T) {
|
|
6542
|
+
if (O.date() < T.date()) return -_(T, O);
|
|
6543
|
+
var o = 12 * (T.year() - O.year()) + (T.month() - O.month()), z = O.clone().add(o, x), m = T - z < 0, n = O.clone().add(o + (m ? -1 : 1), x);
|
|
6754
6544
|
return +(-(o + (T - z) / (m ? z - n : n - z)) || 0);
|
|
6755
6545
|
}, a: function(_) {
|
|
6756
6546
|
return _ < 0 ? Math.ceil(_) || 0 : Math.floor(_);
|
|
6757
6547
|
}, p: function(_) {
|
|
6758
|
-
return { M: x, y: M, w: g, d: h, D: P, h:
|
|
6548
|
+
return { M: x, y: M, w: g, d: h, D: P, h: u, m: l, s: c, ms: s, Q: j }[_] || String(_ || "").toLowerCase().replace(/s$/, "");
|
|
6759
6549
|
}, u: function(_) {
|
|
6760
6550
|
return _ === void 0;
|
|
6761
6551
|
} }, v = "en", b = {};
|
|
6762
6552
|
b[v] = N;
|
|
6763
6553
|
var w = "$isDayjsObject", E = function(_) {
|
|
6764
6554
|
return _ instanceof A || !(!_ || !_[w]);
|
|
6765
|
-
}, y = function _(
|
|
6555
|
+
}, y = function _(O, T, o) {
|
|
6766
6556
|
var z;
|
|
6767
|
-
if (!
|
|
6768
|
-
if (typeof
|
|
6769
|
-
var m =
|
|
6557
|
+
if (!O) return v;
|
|
6558
|
+
if (typeof O == "string") {
|
|
6559
|
+
var m = O.toLowerCase();
|
|
6770
6560
|
b[m] && (z = m), T && (b[m] = T, z = m);
|
|
6771
|
-
var n =
|
|
6561
|
+
var n = O.split("-");
|
|
6772
6562
|
if (!z && n.length > 1) return _(n[0]);
|
|
6773
6563
|
} else {
|
|
6774
|
-
var f =
|
|
6775
|
-
b[f] =
|
|
6564
|
+
var f = O.name;
|
|
6565
|
+
b[f] = O, z = f;
|
|
6776
6566
|
}
|
|
6777
6567
|
return !o && z && (v = z), z || !o && v;
|
|
6778
|
-
}, d = function(_,
|
|
6568
|
+
}, d = function(_, O) {
|
|
6779
6569
|
if (E(_)) return _.clone();
|
|
6780
|
-
var T = typeof
|
|
6570
|
+
var T = typeof O == "object" ? O : {};
|
|
6781
6571
|
return T.date = _, T.args = arguments, new A(T);
|
|
6782
|
-
},
|
|
6783
|
-
|
|
6784
|
-
return d(_, { locale:
|
|
6572
|
+
}, k = V;
|
|
6573
|
+
k.l = y, k.i = E, k.w = function(_, O) {
|
|
6574
|
+
return d(_, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
|
|
6785
6575
|
};
|
|
6786
6576
|
var A = function() {
|
|
6787
6577
|
function _(T) {
|
|
6788
6578
|
this.$L = y(T.locale, null, !0), this.parse(T), this.$x = this.$x || T.x || {}, this[w] = !0;
|
|
6789
6579
|
}
|
|
6790
|
-
var
|
|
6791
|
-
return
|
|
6580
|
+
var O = _.prototype;
|
|
6581
|
+
return O.parse = function(T) {
|
|
6792
6582
|
this.$d = function(o) {
|
|
6793
6583
|
var z = o.date, m = o.utc;
|
|
6794
6584
|
if (z === null) return /* @__PURE__ */ new Date(NaN);
|
|
6795
|
-
if (
|
|
6585
|
+
if (k.u(z)) return /* @__PURE__ */ new Date();
|
|
6796
6586
|
if (z instanceof Date) return new Date(z);
|
|
6797
6587
|
if (typeof z == "string" && !/Z$/i.test(z)) {
|
|
6798
6588
|
var n = z.match(I);
|
|
@@ -6803,32 +6593,32 @@ function Bo() {
|
|
|
6803
6593
|
}
|
|
6804
6594
|
return new Date(z);
|
|
6805
6595
|
}(T), this.init();
|
|
6806
|
-
},
|
|
6596
|
+
}, O.init = function() {
|
|
6807
6597
|
var T = this.$d;
|
|
6808
6598
|
this.$y = T.getFullYear(), this.$M = T.getMonth(), this.$D = T.getDate(), this.$W = T.getDay(), this.$H = T.getHours(), this.$m = T.getMinutes(), this.$s = T.getSeconds(), this.$ms = T.getMilliseconds();
|
|
6809
|
-
},
|
|
6810
|
-
return
|
|
6811
|
-
},
|
|
6599
|
+
}, O.$utils = function() {
|
|
6600
|
+
return k;
|
|
6601
|
+
}, O.isValid = function() {
|
|
6812
6602
|
return this.$d.toString() !== p;
|
|
6813
|
-
},
|
|
6603
|
+
}, O.isSame = function(T, o) {
|
|
6814
6604
|
var z = d(T);
|
|
6815
6605
|
return this.startOf(o) <= z && z <= this.endOf(o);
|
|
6816
|
-
},
|
|
6606
|
+
}, O.isAfter = function(T, o) {
|
|
6817
6607
|
return d(T) < this.startOf(o);
|
|
6818
|
-
},
|
|
6608
|
+
}, O.isBefore = function(T, o) {
|
|
6819
6609
|
return this.endOf(o) < d(T);
|
|
6820
|
-
},
|
|
6821
|
-
return
|
|
6822
|
-
},
|
|
6610
|
+
}, O.$g = function(T, o, z) {
|
|
6611
|
+
return k.u(T) ? this[o] : this.set(z, T);
|
|
6612
|
+
}, O.unix = function() {
|
|
6823
6613
|
return Math.floor(this.valueOf() / 1e3);
|
|
6824
|
-
},
|
|
6614
|
+
}, O.valueOf = function() {
|
|
6825
6615
|
return this.$d.getTime();
|
|
6826
|
-
},
|
|
6827
|
-
var z = this, m = !!
|
|
6828
|
-
var J =
|
|
6616
|
+
}, O.startOf = function(T, o) {
|
|
6617
|
+
var z = this, m = !!k.u(o) || o, n = k.p(T), f = function(G, X) {
|
|
6618
|
+
var J = k.w(z.$u ? Date.UTC(z.$y, X, G) : new Date(z.$y, X, G), z);
|
|
6829
6619
|
return m ? J : J.endOf(h);
|
|
6830
6620
|
}, S = function(G, X) {
|
|
6831
|
-
return
|
|
6621
|
+
return k.w(z.toDate()[G].apply(z.toDate("s"), (m ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(X)), z);
|
|
6832
6622
|
}, $ = this.$W, L = this.$M, H = this.$D, F = "set" + (this.$u ? "UTC" : "");
|
|
6833
6623
|
switch (n) {
|
|
6834
6624
|
case M:
|
|
@@ -6841,50 +6631,50 @@ function Bo() {
|
|
|
6841
6631
|
case h:
|
|
6842
6632
|
case P:
|
|
6843
6633
|
return S(F + "Hours", 0);
|
|
6844
|
-
case l:
|
|
6845
|
-
return S(F + "Minutes", 1);
|
|
6846
6634
|
case u:
|
|
6635
|
+
return S(F + "Minutes", 1);
|
|
6636
|
+
case l:
|
|
6847
6637
|
return S(F + "Seconds", 2);
|
|
6848
6638
|
case c:
|
|
6849
6639
|
return S(F + "Milliseconds", 3);
|
|
6850
6640
|
default:
|
|
6851
6641
|
return this.clone();
|
|
6852
6642
|
}
|
|
6853
|
-
},
|
|
6643
|
+
}, O.endOf = function(T) {
|
|
6854
6644
|
return this.startOf(T, !1);
|
|
6855
|
-
},
|
|
6856
|
-
var z, m =
|
|
6645
|
+
}, O.$set = function(T, o) {
|
|
6646
|
+
var z, m = k.p(T), n = "set" + (this.$u ? "UTC" : ""), f = (z = {}, z[h] = n + "Date", z[P] = n + "Date", z[x] = n + "Month", z[M] = n + "FullYear", z[u] = n + "Hours", z[l] = n + "Minutes", z[c] = n + "Seconds", z[s] = n + "Milliseconds", z)[m], S = m === h ? this.$D + (o - this.$W) : o;
|
|
6857
6647
|
if (m === x || m === M) {
|
|
6858
6648
|
var $ = this.clone().set(P, 1);
|
|
6859
6649
|
$.$d[f](S), $.init(), this.$d = $.set(P, Math.min(this.$D, $.daysInMonth())).$d;
|
|
6860
6650
|
} else f && this.$d[f](S);
|
|
6861
6651
|
return this.init(), this;
|
|
6862
|
-
},
|
|
6652
|
+
}, O.set = function(T, o) {
|
|
6863
6653
|
return this.clone().$set(T, o);
|
|
6864
|
-
},
|
|
6865
|
-
return this[
|
|
6866
|
-
},
|
|
6654
|
+
}, O.get = function(T) {
|
|
6655
|
+
return this[k.p(T)]();
|
|
6656
|
+
}, O.add = function(T, o) {
|
|
6867
6657
|
var z, m = this;
|
|
6868
6658
|
T = Number(T);
|
|
6869
|
-
var n =
|
|
6659
|
+
var n = k.p(o), f = function(L) {
|
|
6870
6660
|
var H = d(m);
|
|
6871
|
-
return
|
|
6661
|
+
return k.w(H.date(H.date() + Math.round(L * T)), m);
|
|
6872
6662
|
};
|
|
6873
6663
|
if (n === x) return this.set(x, this.$M + T);
|
|
6874
6664
|
if (n === M) return this.set(M, this.$y + T);
|
|
6875
6665
|
if (n === h) return f(1);
|
|
6876
6666
|
if (n === g) return f(7);
|
|
6877
|
-
var S = (z = {}, z[
|
|
6878
|
-
return
|
|
6879
|
-
},
|
|
6667
|
+
var S = (z = {}, z[l] = i, z[u] = a, z[c] = r, z)[n] || 1, $ = this.$d.getTime() + T * S;
|
|
6668
|
+
return k.w($, this);
|
|
6669
|
+
}, O.subtract = function(T, o) {
|
|
6880
6670
|
return this.add(-1 * T, o);
|
|
6881
|
-
},
|
|
6671
|
+
}, O.format = function(T) {
|
|
6882
6672
|
var o = this, z = this.$locale();
|
|
6883
6673
|
if (!this.isValid()) return z.invalidDate || p;
|
|
6884
|
-
var m = T || "YYYY-MM-DDTHH:mm:ssZ", n =
|
|
6674
|
+
var m = T || "YYYY-MM-DDTHH:mm:ssZ", n = k.z(this), f = this.$H, S = this.$m, $ = this.$M, L = z.weekdays, H = z.months, F = z.meridiem, W = function(X, J, te, Z) {
|
|
6885
6675
|
return X && (X[J] || X(o, m)) || te[J].slice(0, Z);
|
|
6886
6676
|
}, B = function(X) {
|
|
6887
|
-
return
|
|
6677
|
+
return k.s(f % 12 || 12, X, "0");
|
|
6888
6678
|
}, G = F || function(X, J, te) {
|
|
6889
6679
|
var Z = X < 12 ? "AM" : "PM";
|
|
6890
6680
|
return te ? Z.toLowerCase() : Z;
|
|
@@ -6895,11 +6685,11 @@ function Bo() {
|
|
|
6895
6685
|
case "YY":
|
|
6896
6686
|
return String(o.$y).slice(-2);
|
|
6897
6687
|
case "YYYY":
|
|
6898
|
-
return
|
|
6688
|
+
return k.s(o.$y, 4, "0");
|
|
6899
6689
|
case "M":
|
|
6900
6690
|
return $ + 1;
|
|
6901
6691
|
case "MM":
|
|
6902
|
-
return
|
|
6692
|
+
return k.s($ + 1, 2, "0");
|
|
6903
6693
|
case "MMM":
|
|
6904
6694
|
return W(z.monthsShort, $, H, 3);
|
|
6905
6695
|
case "MMMM":
|
|
@@ -6907,7 +6697,7 @@ function Bo() {
|
|
|
6907
6697
|
case "D":
|
|
6908
6698
|
return o.$D;
|
|
6909
6699
|
case "DD":
|
|
6910
|
-
return
|
|
6700
|
+
return k.s(o.$D, 2, "0");
|
|
6911
6701
|
case "d":
|
|
6912
6702
|
return String(o.$W);
|
|
6913
6703
|
case "dd":
|
|
@@ -6919,7 +6709,7 @@ function Bo() {
|
|
|
6919
6709
|
case "H":
|
|
6920
6710
|
return String(f);
|
|
6921
6711
|
case "HH":
|
|
6922
|
-
return
|
|
6712
|
+
return k.s(f, 2, "0");
|
|
6923
6713
|
case "h":
|
|
6924
6714
|
return B(1);
|
|
6925
6715
|
case "hh":
|
|
@@ -6931,24 +6721,24 @@ function Bo() {
|
|
|
6931
6721
|
case "m":
|
|
6932
6722
|
return String(S);
|
|
6933
6723
|
case "mm":
|
|
6934
|
-
return
|
|
6724
|
+
return k.s(S, 2, "0");
|
|
6935
6725
|
case "s":
|
|
6936
6726
|
return String(o.$s);
|
|
6937
6727
|
case "ss":
|
|
6938
|
-
return
|
|
6728
|
+
return k.s(o.$s, 2, "0");
|
|
6939
6729
|
case "SSS":
|
|
6940
|
-
return
|
|
6730
|
+
return k.s(o.$ms, 3, "0");
|
|
6941
6731
|
case "Z":
|
|
6942
6732
|
return n;
|
|
6943
6733
|
}
|
|
6944
6734
|
return null;
|
|
6945
6735
|
}(X) || n.replace(":", "");
|
|
6946
6736
|
});
|
|
6947
|
-
},
|
|
6737
|
+
}, O.utcOffset = function() {
|
|
6948
6738
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
6949
|
-
},
|
|
6950
|
-
var m, n = this, f =
|
|
6951
|
-
return
|
|
6739
|
+
}, O.diff = function(T, o, z) {
|
|
6740
|
+
var m, n = this, f = k.p(o), S = d(T), $ = (S.utcOffset() - this.utcOffset()) * i, L = this - S, H = function() {
|
|
6741
|
+
return k.m(n, S);
|
|
6952
6742
|
};
|
|
6953
6743
|
switch (f) {
|
|
6954
6744
|
case M:
|
|
@@ -6966,10 +6756,10 @@ function Bo() {
|
|
|
6966
6756
|
case h:
|
|
6967
6757
|
m = (L - $) / 864e5;
|
|
6968
6758
|
break;
|
|
6969
|
-
case
|
|
6759
|
+
case u:
|
|
6970
6760
|
m = L / a;
|
|
6971
6761
|
break;
|
|
6972
|
-
case
|
|
6762
|
+
case l:
|
|
6973
6763
|
m = L / i;
|
|
6974
6764
|
break;
|
|
6975
6765
|
case c:
|
|
@@ -6978,33 +6768,33 @@ function Bo() {
|
|
|
6978
6768
|
default:
|
|
6979
6769
|
m = L;
|
|
6980
6770
|
}
|
|
6981
|
-
return z ? m :
|
|
6982
|
-
},
|
|
6771
|
+
return z ? m : k.a(m);
|
|
6772
|
+
}, O.daysInMonth = function() {
|
|
6983
6773
|
return this.endOf(x).$D;
|
|
6984
|
-
},
|
|
6774
|
+
}, O.$locale = function() {
|
|
6985
6775
|
return b[this.$L];
|
|
6986
|
-
},
|
|
6776
|
+
}, O.locale = function(T, o) {
|
|
6987
6777
|
if (!T) return this.$L;
|
|
6988
6778
|
var z = this.clone(), m = y(T, o, !0);
|
|
6989
6779
|
return m && (z.$L = m), z;
|
|
6990
|
-
},
|
|
6991
|
-
return
|
|
6992
|
-
},
|
|
6780
|
+
}, O.clone = function() {
|
|
6781
|
+
return k.w(this.$d, this);
|
|
6782
|
+
}, O.toDate = function() {
|
|
6993
6783
|
return new Date(this.valueOf());
|
|
6994
|
-
},
|
|
6784
|
+
}, O.toJSON = function() {
|
|
6995
6785
|
return this.isValid() ? this.toISOString() : null;
|
|
6996
|
-
},
|
|
6786
|
+
}, O.toISOString = function() {
|
|
6997
6787
|
return this.$d.toISOString();
|
|
6998
|
-
},
|
|
6788
|
+
}, O.toString = function() {
|
|
6999
6789
|
return this.$d.toUTCString();
|
|
7000
6790
|
}, _;
|
|
7001
6791
|
}(), R = A.prototype;
|
|
7002
|
-
return d.prototype = R, [["$ms", s], ["$s", c], ["$m",
|
|
7003
|
-
R[_[1]] = function(
|
|
7004
|
-
return this.$g(
|
|
6792
|
+
return d.prototype = R, [["$ms", s], ["$s", c], ["$m", l], ["$H", u], ["$W", h], ["$M", x], ["$y", M], ["$D", P]].forEach(function(_) {
|
|
6793
|
+
R[_[1]] = function(O) {
|
|
6794
|
+
return this.$g(O, _[0], _[1]);
|
|
7005
6795
|
};
|
|
7006
|
-
}), d.extend = function(_,
|
|
7007
|
-
return _.$i || (_(
|
|
6796
|
+
}), d.extend = function(_, O) {
|
|
6797
|
+
return _.$i || (_(O, A, d), _.$i = !0), d;
|
|
7008
6798
|
}, d.locale = y, d.isDayjs = E, d.unix = function(_) {
|
|
7009
6799
|
return d(1e3 * _);
|
|
7010
6800
|
}, d.en = b[v], d.Ls = b, d.p = {}, d;
|
|
@@ -7020,30 +6810,30 @@ function Go() {
|
|
|
7020
6810
|
e.exports = i();
|
|
7021
6811
|
})(Xo, function() {
|
|
7022
6812
|
var r = "minute", i = /[+-]\d\d(?::?\d\d)?/g, a = /([+-]|\d\d)/g;
|
|
7023
|
-
return function(s, c,
|
|
7024
|
-
var
|
|
7025
|
-
|
|
6813
|
+
return function(s, c, l) {
|
|
6814
|
+
var u = c.prototype;
|
|
6815
|
+
l.utc = function(p) {
|
|
7026
6816
|
var I = { date: p, utc: !0, args: arguments };
|
|
7027
6817
|
return new c(I);
|
|
7028
|
-
},
|
|
7029
|
-
var I =
|
|
6818
|
+
}, u.utc = function(p) {
|
|
6819
|
+
var I = l(this.toDate(), { locale: this.$L, utc: !0 });
|
|
7030
6820
|
return p ? I.add(this.utcOffset(), r) : I;
|
|
7031
|
-
},
|
|
7032
|
-
return
|
|
6821
|
+
}, u.local = function() {
|
|
6822
|
+
return l(this.toDate(), { locale: this.$L, utc: !1 });
|
|
7033
6823
|
};
|
|
7034
|
-
var h =
|
|
7035
|
-
|
|
6824
|
+
var h = u.parse;
|
|
6825
|
+
u.parse = function(p) {
|
|
7036
6826
|
p.utc && (this.$u = !0), this.$utils().u(p.$offset) || (this.$offset = p.$offset), h.call(this, p);
|
|
7037
6827
|
};
|
|
7038
|
-
var g =
|
|
7039
|
-
|
|
6828
|
+
var g = u.init;
|
|
6829
|
+
u.init = function() {
|
|
7040
6830
|
if (this.$u) {
|
|
7041
6831
|
var p = this.$d;
|
|
7042
6832
|
this.$y = p.getUTCFullYear(), this.$M = p.getUTCMonth(), this.$D = p.getUTCDate(), this.$W = p.getUTCDay(), this.$H = p.getUTCHours(), this.$m = p.getUTCMinutes(), this.$s = p.getUTCSeconds(), this.$ms = p.getUTCMilliseconds();
|
|
7043
6833
|
} else g.call(this);
|
|
7044
6834
|
};
|
|
7045
|
-
var x =
|
|
7046
|
-
|
|
6835
|
+
var x = u.utcOffset;
|
|
6836
|
+
u.utcOffset = function(p, I) {
|
|
7047
6837
|
var C = this.$utils().u;
|
|
7048
6838
|
if (C(p)) return this.$u ? 0 : C(this.$offset) ? x.call(this) : this.$offset;
|
|
7049
6839
|
if (typeof p == "string" && (p = function(v) {
|
|
@@ -7060,28 +6850,28 @@ function Go() {
|
|
|
7060
6850
|
var V = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
7061
6851
|
return (U = this.local().add(N + V, r)).$offset = N, U.$x.$localOffset = V, U;
|
|
7062
6852
|
};
|
|
7063
|
-
var j =
|
|
7064
|
-
|
|
6853
|
+
var j = u.format;
|
|
6854
|
+
u.format = function(p) {
|
|
7065
6855
|
var I = p || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
7066
6856
|
return j.call(this, I);
|
|
7067
|
-
},
|
|
6857
|
+
}, u.valueOf = function() {
|
|
7068
6858
|
var p = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
7069
6859
|
return this.$d.valueOf() - 6e4 * p;
|
|
7070
|
-
},
|
|
6860
|
+
}, u.isUTC = function() {
|
|
7071
6861
|
return !!this.$u;
|
|
7072
|
-
},
|
|
6862
|
+
}, u.toISOString = function() {
|
|
7073
6863
|
return this.toDate().toISOString();
|
|
7074
|
-
},
|
|
6864
|
+
}, u.toString = function() {
|
|
7075
6865
|
return this.toDate().toUTCString();
|
|
7076
6866
|
};
|
|
7077
|
-
var M =
|
|
7078
|
-
|
|
7079
|
-
return p === "s" && this.$offset ?
|
|
6867
|
+
var M = u.toDate;
|
|
6868
|
+
u.toDate = function(p) {
|
|
6869
|
+
return p === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : M.call(this);
|
|
7080
6870
|
};
|
|
7081
|
-
var P =
|
|
7082
|
-
|
|
6871
|
+
var P = u.diff;
|
|
6872
|
+
u.diff = function(p, I, C) {
|
|
7083
6873
|
if (p && this.$u === p.$u) return P.call(this, p, I, C);
|
|
7084
|
-
var N = this.local(), U =
|
|
6874
|
+
var N = this.local(), U = l(p).local();
|
|
7085
6875
|
return P.call(N, U, I, C);
|
|
7086
6876
|
};
|
|
7087
6877
|
};
|
|
@@ -7091,7 +6881,7 @@ function Go() {
|
|
|
7091
6881
|
var Ko = Go();
|
|
7092
6882
|
const Jo = /* @__PURE__ */ qt(Ko);
|
|
7093
6883
|
dt.extend(Jo);
|
|
7094
|
-
class
|
|
6884
|
+
class ws {
|
|
7095
6885
|
static waitForMilliseconds = (t) => new Promise((r) => setTimeout(r, t));
|
|
7096
6886
|
static waitForCondition = (t) => new Promise((r) => {
|
|
7097
6887
|
const i = () => {
|
|
@@ -7112,14 +6902,14 @@ class ks {
|
|
|
7112
6902
|
static isDateOneAfterDateTwo = (t, r) => t.getFullYear() >= r.getFullYear() && t.getMonth() >= r.getMonth() ? t.getDay() > r.getDay() : !1;
|
|
7113
6903
|
static getDateInUTC = (t) => {
|
|
7114
6904
|
try {
|
|
7115
|
-
const r = dt.utc(t), i = r.date(), a = r.month(), s = r.year(), c = r.hour(),
|
|
6905
|
+
const r = dt.utc(t), i = r.date(), a = r.month(), s = r.year(), c = r.hour(), l = r.minute(), u = r.day();
|
|
7116
6906
|
return {
|
|
7117
6907
|
day: i,
|
|
7118
6908
|
month: a,
|
|
7119
6909
|
year: s,
|
|
7120
6910
|
hour: c,
|
|
7121
|
-
minute:
|
|
7122
|
-
weekday:
|
|
6911
|
+
minute: l,
|
|
6912
|
+
weekday: u
|
|
7123
6913
|
};
|
|
7124
6914
|
} catch {
|
|
7125
6915
|
return;
|
|
@@ -7128,35 +6918,280 @@ class ks {
|
|
|
7128
6918
|
static formatDateLocalTime = (t, r) => t ? dt.utc(t).local().format(r || "DD/MM/YYYYㆍHH:mm") : "";
|
|
7129
6919
|
static formatDateUTC = (t, r) => t ? dt.utc(t).format(r || "DD/MM/YYYYㆍHH:mm") : "";
|
|
7130
6920
|
}
|
|
6921
|
+
const Ss = ({
|
|
6922
|
+
percentage: e,
|
|
6923
|
+
min: t = 0,
|
|
6924
|
+
max: r = 100,
|
|
6925
|
+
styles: i,
|
|
6926
|
+
barStyles: a
|
|
6927
|
+
}) => {
|
|
6928
|
+
const s = Yo.clamp(e, t, r);
|
|
6929
|
+
return /* @__PURE__ */ K.jsx(
|
|
6930
|
+
"div",
|
|
6931
|
+
{
|
|
6932
|
+
style: {
|
|
6933
|
+
width: "90%",
|
|
6934
|
+
height: "30px",
|
|
6935
|
+
border: "1px solid #000000",
|
|
6936
|
+
borderRadius: "3px",
|
|
6937
|
+
background: "#ffffff",
|
|
6938
|
+
...i
|
|
6939
|
+
},
|
|
6940
|
+
children: /* @__PURE__ */ K.jsx(
|
|
6941
|
+
"div",
|
|
6942
|
+
{
|
|
6943
|
+
style: {
|
|
6944
|
+
width: `${s}%`,
|
|
6945
|
+
height: "100%",
|
|
6946
|
+
background: "#f58b00ff",
|
|
6947
|
+
...a
|
|
6948
|
+
}
|
|
6949
|
+
}
|
|
6950
|
+
)
|
|
6951
|
+
}
|
|
6952
|
+
);
|
|
6953
|
+
}, xs = ({
|
|
6954
|
+
src: e,
|
|
6955
|
+
width: t = "22",
|
|
6956
|
+
height: r = "28",
|
|
6957
|
+
stroke: i,
|
|
6958
|
+
viewBox: a = "0 0 22 28",
|
|
6959
|
+
fill: s = "#000000",
|
|
6960
|
+
alt: c = "",
|
|
6961
|
+
onClick: l,
|
|
6962
|
+
styles: u
|
|
6963
|
+
}) => /* @__PURE__ */ K.jsx(
|
|
6964
|
+
"div",
|
|
6965
|
+
{
|
|
6966
|
+
style: {
|
|
6967
|
+
width: "fit-content",
|
|
6968
|
+
height: "fit-content",
|
|
6969
|
+
display: "flex",
|
|
6970
|
+
alignItems: "center",
|
|
6971
|
+
justifyContent: "center",
|
|
6972
|
+
...u
|
|
6973
|
+
},
|
|
6974
|
+
onClick: () => l?.(),
|
|
6975
|
+
children: /* @__PURE__ */ K.jsx(
|
|
6976
|
+
"svg",
|
|
6977
|
+
{
|
|
6978
|
+
width: t,
|
|
6979
|
+
height: r,
|
|
6980
|
+
viewBox: a,
|
|
6981
|
+
fill: s,
|
|
6982
|
+
stroke: i,
|
|
6983
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6984
|
+
style: {
|
|
6985
|
+
display: "flex"
|
|
6986
|
+
},
|
|
6987
|
+
children: e
|
|
6988
|
+
}
|
|
6989
|
+
)
|
|
6990
|
+
}
|
|
6991
|
+
), Zo = Pe.div`
|
|
6992
|
+
display: flex;
|
|
6993
|
+
flex-direction: column;
|
|
6994
|
+
font-family: inherit;
|
|
6995
|
+
|
|
6996
|
+
textarea::-webkit-scrollbar {
|
|
6997
|
+
width: 5px; /* largura da barra */
|
|
6998
|
+
}
|
|
6999
|
+
|
|
7000
|
+
textarea::-webkit-scrollbar-track {
|
|
7001
|
+
background: #f0f0f0; /* fundo */
|
|
7002
|
+
border-radius: 10px;
|
|
7003
|
+
}
|
|
7004
|
+
|
|
7005
|
+
textarea::-webkit-scrollbar-thumb {
|
|
7006
|
+
background: #888; /* cor da barra */
|
|
7007
|
+
border-radius: 10px;
|
|
7008
|
+
}
|
|
7009
|
+
|
|
7010
|
+
textarea::-webkit-scrollbar-thumb:hover {
|
|
7011
|
+
background: #555; /* hover */
|
|
7012
|
+
}
|
|
7013
|
+
`, ks = ({
|
|
7014
|
+
name: e,
|
|
7015
|
+
label: t,
|
|
7016
|
+
leftIcon: r,
|
|
7017
|
+
rightIcon: i,
|
|
7018
|
+
bottomMessage: a,
|
|
7019
|
+
placeHolder: s,
|
|
7020
|
+
value: c,
|
|
7021
|
+
initialValue: l,
|
|
7022
|
+
onChange: u,
|
|
7023
|
+
onFocus: h,
|
|
7024
|
+
inputStyles: g,
|
|
7025
|
+
containerStyles: x,
|
|
7026
|
+
styles: j
|
|
7027
|
+
}) => {
|
|
7028
|
+
const M = (p) => {
|
|
7029
|
+
u?.(p.currentTarget.value);
|
|
7030
|
+
}, P = (p) => {
|
|
7031
|
+
p.preventDefault(), p.stopPropagation(), h?.();
|
|
7032
|
+
};
|
|
7033
|
+
return /* @__PURE__ */ K.jsxs(
|
|
7034
|
+
Zo,
|
|
7035
|
+
{
|
|
7036
|
+
style: {
|
|
7037
|
+
width: "100%",
|
|
7038
|
+
maxWidth: "357px",
|
|
7039
|
+
gap: "8px",
|
|
7040
|
+
...j
|
|
7041
|
+
},
|
|
7042
|
+
children: [
|
|
7043
|
+
t,
|
|
7044
|
+
/* @__PURE__ */ K.jsxs(
|
|
7045
|
+
"div",
|
|
7046
|
+
{
|
|
7047
|
+
style: {
|
|
7048
|
+
display: "flex",
|
|
7049
|
+
flexDirection: "row",
|
|
7050
|
+
width: "100%",
|
|
7051
|
+
margin: "8px auto 0 auto",
|
|
7052
|
+
border: "2px solid #000000",
|
|
7053
|
+
borderRadius: "5px",
|
|
7054
|
+
color: "#000000",
|
|
7055
|
+
fontFamily: "inherit",
|
|
7056
|
+
fontStyle: "normal",
|
|
7057
|
+
fontWeight: 400,
|
|
7058
|
+
outline: "none",
|
|
7059
|
+
alignItems: "flex-start",
|
|
7060
|
+
gap: "10px",
|
|
7061
|
+
...x
|
|
7062
|
+
},
|
|
7063
|
+
children: [
|
|
7064
|
+
r,
|
|
7065
|
+
/* @__PURE__ */ K.jsx(
|
|
7066
|
+
"textarea",
|
|
7067
|
+
{
|
|
7068
|
+
name: e,
|
|
7069
|
+
style: {
|
|
7070
|
+
resize: "none",
|
|
7071
|
+
flex: 1,
|
|
7072
|
+
border: "none",
|
|
7073
|
+
color: "inherit",
|
|
7074
|
+
fontFamily: "inherit",
|
|
7075
|
+
fontStyle: "inherit",
|
|
7076
|
+
fontWeight: "inherit",
|
|
7077
|
+
fontSize: "inherit",
|
|
7078
|
+
lineHeight: "inherit",
|
|
7079
|
+
outline: "inherit",
|
|
7080
|
+
background: "none",
|
|
7081
|
+
minHeight: "47px",
|
|
7082
|
+
...g
|
|
7083
|
+
},
|
|
7084
|
+
placeholder: s,
|
|
7085
|
+
value: c,
|
|
7086
|
+
defaultValue: l,
|
|
7087
|
+
onChange: M,
|
|
7088
|
+
onFocus: P
|
|
7089
|
+
}
|
|
7090
|
+
),
|
|
7091
|
+
i
|
|
7092
|
+
]
|
|
7093
|
+
}
|
|
7094
|
+
),
|
|
7095
|
+
a
|
|
7096
|
+
]
|
|
7097
|
+
}
|
|
7098
|
+
);
|
|
7099
|
+
}, Os = ({
|
|
7100
|
+
id: e,
|
|
7101
|
+
children: t,
|
|
7102
|
+
styles: r,
|
|
7103
|
+
durationInSeconds: i = 3
|
|
7104
|
+
}) => {
|
|
7105
|
+
const a = q.useRef(!1), { isItemVisible: s, hideItem: c } = Ct();
|
|
7106
|
+
return q.useEffect(() => {
|
|
7107
|
+
const l = s(e);
|
|
7108
|
+
a.current !== l && (a.current = l, l && setTimeout(() => c(e), i * 1e3));
|
|
7109
|
+
}, [a, s, c]), /* @__PURE__ */ K.jsx(K.Fragment, { children: s(e) && /* @__PURE__ */ K.jsx(
|
|
7110
|
+
"div",
|
|
7111
|
+
{
|
|
7112
|
+
style: {
|
|
7113
|
+
width: "100px",
|
|
7114
|
+
height: "40px",
|
|
7115
|
+
background: "#534a4aff",
|
|
7116
|
+
color: "#ffffff",
|
|
7117
|
+
position: "fixed",
|
|
7118
|
+
top: "10px",
|
|
7119
|
+
left: "50%",
|
|
7120
|
+
transform: "translateX(-50%)",
|
|
7121
|
+
zIndex: 1e3,
|
|
7122
|
+
borderRadius: "20px",
|
|
7123
|
+
display: "flex",
|
|
7124
|
+
flexDirection: "column",
|
|
7125
|
+
alignItems: "center",
|
|
7126
|
+
justifyContent: "center",
|
|
7127
|
+
border: "solid 3px #000000ff",
|
|
7128
|
+
...r
|
|
7129
|
+
},
|
|
7130
|
+
onClick: (l) => {
|
|
7131
|
+
l.stopPropagation(), l.preventDefault();
|
|
7132
|
+
},
|
|
7133
|
+
children: t
|
|
7134
|
+
}
|
|
7135
|
+
) });
|
|
7136
|
+
}, Cs = ({
|
|
7137
|
+
overflowEllipsis: e,
|
|
7138
|
+
maxNumberOfLines: t,
|
|
7139
|
+
children: r,
|
|
7140
|
+
styles: i
|
|
7141
|
+
}) => /* @__PURE__ */ K.jsx(
|
|
7142
|
+
"p",
|
|
7143
|
+
{
|
|
7144
|
+
style: {
|
|
7145
|
+
fontFamily: "inherit",
|
|
7146
|
+
maxWidth: "100%",
|
|
7147
|
+
overflow: "hidden",
|
|
7148
|
+
// whiteSpace: overflowEllipsis ? "nowrap" : "normal", //Old way
|
|
7149
|
+
// new way
|
|
7150
|
+
display: "-webkit-box",
|
|
7151
|
+
WebkitLineClamp: t || void 0,
|
|
7152
|
+
WebkitBoxOrient: "vertical",
|
|
7153
|
+
whiteSpace: "unset",
|
|
7154
|
+
// end new way
|
|
7155
|
+
textOverflow: e ? "ellipsis" : void 0,
|
|
7156
|
+
fontSize: "16px",
|
|
7157
|
+
fontStyle: "normal",
|
|
7158
|
+
lineHeight: "normal",
|
|
7159
|
+
color: "inherit",
|
|
7160
|
+
...i
|
|
7161
|
+
},
|
|
7162
|
+
children: r
|
|
7163
|
+
}
|
|
7164
|
+
);
|
|
7131
7165
|
export {
|
|
7132
|
-
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
|
|
7139
|
-
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7166
|
+
es as Button,
|
|
7167
|
+
ts as Carousel,
|
|
7168
|
+
rs as Checkbox,
|
|
7169
|
+
fs as Drawer,
|
|
7170
|
+
cs as FeedbackProvider,
|
|
7171
|
+
ds as Form,
|
|
7172
|
+
hs as Image,
|
|
7173
|
+
ps as InputField,
|
|
7174
|
+
ms as Loader,
|
|
7175
|
+
vs as Modal,
|
|
7176
|
+
us as NavigationProvider,
|
|
7177
|
+
Yo as NumberHelper,
|
|
7178
|
+
gs as PageLayout,
|
|
7179
|
+
Ss as ProgressBar,
|
|
7180
|
+
ys as ScrollHelper,
|
|
7181
|
+
xs as SvgImage,
|
|
7182
|
+
ks as TextAreaField,
|
|
7183
|
+
bs as TextHelper,
|
|
7184
|
+
ws as TimeHelper,
|
|
7185
|
+
Os as Toast,
|
|
7186
|
+
Cs as Typography,
|
|
7152
7187
|
sa as defaultBreakpoints,
|
|
7153
|
-
|
|
7188
|
+
ns as useDidMount,
|
|
7154
7189
|
oa as useDrag,
|
|
7155
7190
|
Ct as useFeedback,
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7191
|
+
is as useFetch,
|
|
7192
|
+
ls as useNavigation,
|
|
7193
|
+
as as useOnScreen,
|
|
7159
7194
|
aa as usePointer,
|
|
7160
|
-
|
|
7161
|
-
|
|
7195
|
+
os as useResponsive,
|
|
7196
|
+
ss as useTranslations
|
|
7162
7197
|
};
|