@billgangcom/theme-lib 1.127.0 → 1.128.0
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/{builder-DbBnEh3U.js → builder-CNebwPFm.js} +890 -881
- package/dist/{builder-FlfTMOiQ.cjs → builder-Dy7RSMJ7.cjs} +12 -12
- package/dist/builder-components-C-sRGuDw.cjs +5 -0
- package/dist/{builder-components-BApQHlfu.js → builder-components-CvwDC4WU.js} +2322 -2391
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +34 -34
- package/dist/{charge-DQqXA24M.cjs → charge-BaFC9CGT.cjs} +1 -1
- package/dist/{charge-CEnroh9b.js → charge-Bz7t9N9W.js} +6 -6
- package/dist/{checkout-DpOpLTYJ.js → checkout-DAO9n_bN.js} +5 -5
- package/dist/{checkout-CKWBwYzA.cjs → checkout-NyApNNAm.cjs} +1 -1
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-CNl0hs7D.cjs → index-BABt7BrX.cjs} +1 -1
- package/dist/{index-QEntiOo_.js → index-BHe4V2uc.js} +5 -5
- package/dist/{index-CAhSMxcR.cjs → index-Bkv9sQSH.cjs} +1 -1
- package/dist/index-C1JFjFgn.cjs +1 -0
- package/dist/{index-5AMPUrPw.js → index-CKUu7lB5.js} +5 -5
- package/dist/{index-GUvAgH0Q.cjs → index-Cnx1ZMfy.cjs} +1 -1
- package/dist/{index-DlvpmC0X.js → index-DN5QEFqV.js} +33 -32
- package/dist/{index--4kpy6DG.js → index-DPcCnjju.js} +5 -5
- package/dist/{index-DuhU_G_L.js → index-DS0QHCBx.js} +1 -1
- package/dist/{index-BWqwYf77.cjs → index-H3n_s-qw.cjs} +1 -1
- package/dist/{index-BvPCswts.cjs → index-S8Pzv9Y6.cjs} +1 -1
- package/dist/{index-YcPB7Mhe.js → index-TBAsOkdy.js} +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +6 -6
- package/dist/{order-2yMPhYdK.cjs → order-D9bZsw6j.cjs} +1 -1
- package/dist/{order-DA6bx3MX.js → order-FDCc_xoh.js} +5 -5
- package/dist/src/builder/components/Navbar/index.d.ts +1 -0
- package/dist/src/builder/constants/block-icons.d.ts +30 -0
- package/dist/src/ui/ButtonSettings/index.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{subscription-Gua672Jm.js → subscription-BCxznt8S.js} +5 -5
- package/dist/{subscription-hSsSCaMq.cjs → subscription-HzlEomWK.cjs} +1 -1
- package/dist/{ticket-Bo8KyxXg.js → ticket-Bokxlwru.js} +6 -6
- package/dist/{ticket-CjHl2fUT.cjs → ticket-DbTulR68.cjs} +1 -1
- package/dist/{top-up-TXCm0-cC.cjs → top-up-D55gc7sC.cjs} +1 -1
- package/dist/{top-up-DaR2Khtl.js → top-up-DmvN2ae_.js} +5 -5
- package/dist/{ui-components-vOXufedG.js → ui-components-C0algo6I.js} +1048 -1039
- package/dist/ui-components-CmbdJIOh.cjs +1 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1 -1
- package/dist/{validation-DMRsjClx.js → validation-BrJf4NbL.js} +5 -5
- package/dist/{validation-DRUFbc2c.cjs → validation-maeHixvI.cjs} +1 -1
- package/package.json +1 -1
- package/dist/builder-components-C6nG2kYo.cjs +0 -5
- package/dist/index-beXlgnJA.cjs +0 -1
- package/dist/src/builder/components/HeaderSettings/index.d.ts +0 -4
- package/dist/src/builder/components/HeaderSwitchTheme/index.d.ts +0 -4
- package/dist/src/builder/components/PreviewHeader/index.d.ts +0 -2
- package/dist/ui-components-BAslp_hx.cjs +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as y from "react";
|
|
2
|
-
import Te, { useRef as $r, useEffect as
|
|
3
|
-
import * as
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { I as
|
|
6
|
-
import "./charge-
|
|
7
|
-
import { N as
|
|
8
|
-
import "./ticket-
|
|
2
|
+
import Te, { useRef as $r, useEffect as Da } from "react";
|
|
3
|
+
import * as Fa from "react-dom";
|
|
4
|
+
import { jsx as O, jsxs as Ee, Fragment as Ia } from "react/jsx-runtime";
|
|
5
|
+
import { I as qt, B as zr, a as Zn, C as Ba, b as Ha, L as Ua } from "./ui-components-C0algo6I.js";
|
|
6
|
+
import "./charge-Bz7t9N9W.js";
|
|
7
|
+
import { N as Va, S as ja, H as $a, P as za, M as Ja } from "./builder-components-CvwDC4WU.js";
|
|
8
|
+
import "./ticket-Bokxlwru.js";
|
|
9
9
|
/**
|
|
10
10
|
* @remix-run/router v1.23.0
|
|
11
11
|
*
|
|
@@ -31,7 +31,7 @@ var ve;
|
|
|
31
31
|
e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
|
|
32
32
|
})(ve || (ve = {}));
|
|
33
33
|
const Jr = "popstate";
|
|
34
|
-
function
|
|
34
|
+
function Wa(e) {
|
|
35
35
|
e === void 0 && (e = {});
|
|
36
36
|
function t(r, o) {
|
|
37
37
|
let {
|
|
@@ -39,7 +39,7 @@ function Va(e) {
|
|
|
39
39
|
search: i,
|
|
40
40
|
hash: s
|
|
41
41
|
} = r.location;
|
|
42
|
-
return
|
|
42
|
+
return Zt(
|
|
43
43
|
"",
|
|
44
44
|
{
|
|
45
45
|
pathname: a,
|
|
@@ -54,7 +54,7 @@ function Va(e) {
|
|
|
54
54
|
function n(r, o) {
|
|
55
55
|
return typeof o == "string" ? o : ut(o);
|
|
56
56
|
}
|
|
57
|
-
return
|
|
57
|
+
return Za(t, n, null, e);
|
|
58
58
|
}
|
|
59
59
|
function I(e, t) {
|
|
60
60
|
if (e === !1 || e === null || typeof e > "u")
|
|
@@ -69,7 +69,7 @@ function we(e, t) {
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function qa() {
|
|
73
73
|
return Math.random().toString(36).substr(2, 8);
|
|
74
74
|
}
|
|
75
75
|
function Wr(e, t) {
|
|
@@ -79,7 +79,7 @@ function Wr(e, t) {
|
|
|
79
79
|
idx: t
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Zt(e, t, n, r) {
|
|
83
83
|
return n === void 0 && (n = null), fe({
|
|
84
84
|
pathname: typeof e == "string" ? e : e.pathname,
|
|
85
85
|
search: "",
|
|
@@ -90,7 +90,7 @@ function qt(e, t, n, r) {
|
|
|
90
90
|
// full Locations now and avoid the need to run through this flow at all
|
|
91
91
|
// But that's a pretty big refactor to the current test suite so going to
|
|
92
92
|
// keep as is for the time being and just let any incoming keys take precedence
|
|
93
|
-
key: t && t.key || r ||
|
|
93
|
+
key: t && t.key || r || qa()
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
function ut(e) {
|
|
@@ -111,7 +111,7 @@ function ft(e) {
|
|
|
111
111
|
}
|
|
112
112
|
return t;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Za(e, t, n, r) {
|
|
115
115
|
r === void 0 && (r = {});
|
|
116
116
|
let {
|
|
117
117
|
window: o = document.defaultView,
|
|
@@ -136,7 +136,7 @@ function $a(e, t, n, r) {
|
|
|
136
136
|
}
|
|
137
137
|
function h(v, R) {
|
|
138
138
|
s = ve.Push;
|
|
139
|
-
let S =
|
|
139
|
+
let S = Zt(p.location, v, R);
|
|
140
140
|
c = u() + 1;
|
|
141
141
|
let x = Wr(S, c), _ = p.createHref(S);
|
|
142
142
|
try {
|
|
@@ -154,7 +154,7 @@ function $a(e, t, n, r) {
|
|
|
154
154
|
}
|
|
155
155
|
function w(v, R) {
|
|
156
156
|
s = ve.Replace;
|
|
157
|
-
let S =
|
|
157
|
+
let S = Zt(p.location, v, R);
|
|
158
158
|
c = u();
|
|
159
159
|
let x = Wr(S, c), _ = p.createHref(S);
|
|
160
160
|
i.replaceState(x, "", _), a && l && l({
|
|
@@ -205,14 +205,14 @@ var oe;
|
|
|
205
205
|
(function(e) {
|
|
206
206
|
e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error";
|
|
207
207
|
})(oe || (oe = {}));
|
|
208
|
-
const
|
|
209
|
-
function
|
|
208
|
+
const Ka = /* @__PURE__ */ new Set(["lazy", "caseSensitive", "path", "id", "index", "children"]);
|
|
209
|
+
function Ga(e) {
|
|
210
210
|
return e.index === !0;
|
|
211
211
|
}
|
|
212
212
|
function En(e, t, n, r) {
|
|
213
213
|
return n === void 0 && (n = []), r === void 0 && (r = {}), e.map((o, a) => {
|
|
214
214
|
let i = [...n, String(a)], s = typeof o.id == "string" ? o.id : i.join("-");
|
|
215
|
-
if (I(o.index !== !0 || !o.children, "Cannot specify children on an index route"), I(!r[s], 'Found a route id collision on id "' + s + `". Route id's must be globally unique within Data Router usages`),
|
|
215
|
+
if (I(o.index !== !0 || !o.children, "Cannot specify children on an index route"), I(!r[s], 'Found a route id collision on id "' + s + `". Route id's must be globally unique within Data Router usages`), Ga(o)) {
|
|
216
216
|
let l = fe({}, o, t(o), {
|
|
217
217
|
id: s
|
|
218
218
|
});
|
|
@@ -233,16 +233,16 @@ function yn(e, t, n, r) {
|
|
|
233
233
|
let o = typeof t == "string" ? ft(t) : t, a = We(o.pathname || "/", n);
|
|
234
234
|
if (a == null)
|
|
235
235
|
return null;
|
|
236
|
-
let i =
|
|
237
|
-
|
|
236
|
+
let i = Bo(e);
|
|
237
|
+
Xa(i);
|
|
238
238
|
let s = null;
|
|
239
239
|
for (let l = 0; s == null && l < i.length; ++l) {
|
|
240
|
-
let c =
|
|
241
|
-
s =
|
|
240
|
+
let c = ci(a);
|
|
241
|
+
s = si(i[l], c, r);
|
|
242
242
|
}
|
|
243
243
|
return s;
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function Ya(e, t) {
|
|
246
246
|
let {
|
|
247
247
|
route: n,
|
|
248
248
|
pathname: r,
|
|
@@ -256,7 +256,7 @@ function Wa(e, t) {
|
|
|
256
256
|
handle: n.handle
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function Bo(e, t, n, r) {
|
|
260
260
|
t === void 0 && (t = []), n === void 0 && (n = []), r === void 0 && (r = "");
|
|
261
261
|
let o = (a, i, s) => {
|
|
262
262
|
let l = {
|
|
@@ -272,9 +272,9 @@ function Mo(e, t, n, r) {
|
|
|
272
272
|
// @ts-expect-error
|
|
273
273
|
a.index !== !0,
|
|
274
274
|
"Index routes must not have child routes. Please remove " + ('all child routes from route path "' + c + '".')
|
|
275
|
-
),
|
|
275
|
+
), Bo(a.children, t, u, c)), !(a.path == null && !a.index) && t.push({
|
|
276
276
|
path: c,
|
|
277
|
-
score:
|
|
277
|
+
score: ai(c, a.index),
|
|
278
278
|
routesMeta: u
|
|
279
279
|
});
|
|
280
280
|
};
|
|
@@ -283,28 +283,28 @@ function Mo(e, t, n, r) {
|
|
|
283
283
|
if (a.path === "" || !((s = a.path) != null && s.includes("?")))
|
|
284
284
|
o(a, i);
|
|
285
285
|
else
|
|
286
|
-
for (let l of
|
|
286
|
+
for (let l of Ho(a.path))
|
|
287
287
|
o(a, i, l);
|
|
288
288
|
}), t;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function Ho(e) {
|
|
291
291
|
let t = e.split("/");
|
|
292
292
|
if (t.length === 0) return [];
|
|
293
293
|
let [n, ...r] = t, o = n.endsWith("?"), a = n.replace(/\?$/, "");
|
|
294
294
|
if (r.length === 0)
|
|
295
295
|
return o ? [a, ""] : [a];
|
|
296
|
-
let i =
|
|
296
|
+
let i = Ho(r.join("/")), s = [];
|
|
297
297
|
return s.push(...i.map((l) => l === "" ? a : [a, l].join("/"))), o && s.push(...i), s.map((l) => e.startsWith("/") && l === "" ? "/" : l);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
e.sort((t, n) => t.score !== n.score ? n.score - t.score :
|
|
299
|
+
function Xa(e) {
|
|
300
|
+
e.sort((t, n) => t.score !== n.score ? n.score - t.score : ii(t.routesMeta.map((r) => r.childrenIndex), n.routesMeta.map((r) => r.childrenIndex)));
|
|
301
301
|
}
|
|
302
|
-
const
|
|
303
|
-
function
|
|
302
|
+
const Qa = /^:[\w-]+$/, ei = 3, ti = 2, ni = 1, ri = 10, oi = -2, qr = (e) => e === "*";
|
|
303
|
+
function ai(e, t) {
|
|
304
304
|
let n = e.split("/"), r = n.length;
|
|
305
|
-
return n.some(qr) && (r +=
|
|
305
|
+
return n.some(qr) && (r += oi), t && (r += ti), n.filter((o) => !qr(o)).reduce((o, a) => o + (Qa.test(a) ? ei : a === "" ? ni : ri), r);
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function ii(e, t) {
|
|
308
308
|
return e.length === t.length && e.slice(0, -1).every((r, o) => r === t[o]) ? (
|
|
309
309
|
// If two routes are siblings, we should try to match the earlier sibling
|
|
310
310
|
// first. This allows people to have fine-grained control over the matching
|
|
@@ -317,7 +317,7 @@ function ti(e, t) {
|
|
|
317
317
|
0
|
|
318
318
|
);
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function si(e, t, n) {
|
|
321
321
|
n === void 0 && (n = !1);
|
|
322
322
|
let {
|
|
323
323
|
routesMeta: r
|
|
@@ -338,7 +338,7 @@ function ni(e, t, n) {
|
|
|
338
338
|
// TODO: Can this as be avoided?
|
|
339
339
|
params: o,
|
|
340
340
|
pathname: Qe([a, d.pathname]),
|
|
341
|
-
pathnameBase:
|
|
341
|
+
pathnameBase: fi(Qe([a, d.pathnameBase])),
|
|
342
342
|
route: h
|
|
343
343
|
}), d.pathnameBase !== "/" && (a = Qe([a, d.pathnameBase]));
|
|
344
344
|
}
|
|
@@ -350,7 +350,7 @@ function Ln(e, t) {
|
|
|
350
350
|
caseSensitive: !1,
|
|
351
351
|
end: !0
|
|
352
352
|
});
|
|
353
|
-
let [n, r] =
|
|
353
|
+
let [n, r] = li(e.path, e.caseSensitive, e.end), o = t.match(n);
|
|
354
354
|
if (!o) return null;
|
|
355
355
|
let a = o[0], i = a.replace(/(.)\/+$/, "$1"), s = o.slice(1);
|
|
356
356
|
return {
|
|
@@ -371,7 +371,7 @@ function Ln(e, t) {
|
|
|
371
371
|
pattern: e
|
|
372
372
|
};
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function li(e, t, n) {
|
|
375
375
|
t === void 0 && (t = !1), n === void 0 && (n = !0), we(e === "*" || !e.endsWith("*") || e.endsWith("/*"), 'Route path "' + e + '" will be treated as if it were ' + ('"' + e.replace(/\*$/, "/*") + '" because the `*` character must ') + "always follow a `/` in the pattern. To get rid of this warning, " + ('please change the route path to "' + e.replace(/\*$/, "/*") + '".'));
|
|
376
376
|
let r = [], o = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (i, s, l) => (r.push({
|
|
377
377
|
paramName: s,
|
|
@@ -381,7 +381,7 @@ function ri(e, t, n) {
|
|
|
381
381
|
paramName: "*"
|
|
382
382
|
}), o += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? o += "\\/*$" : e !== "" && e !== "/" && (o += "(?:(?=\\/|$))"), [new RegExp(o, t ? void 0 : "i"), r];
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function ci(e) {
|
|
385
385
|
try {
|
|
386
386
|
return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
|
|
387
387
|
} catch (t) {
|
|
@@ -395,7 +395,7 @@ function We(e, t) {
|
|
|
395
395
|
let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
|
|
396
396
|
return r && r !== "/" ? null : e.slice(n) || "/";
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function ui(e, t) {
|
|
399
399
|
t === void 0 && (t = "/");
|
|
400
400
|
let {
|
|
401
401
|
pathname: n,
|
|
@@ -403,12 +403,12 @@ function ai(e, t) {
|
|
|
403
403
|
hash: o = ""
|
|
404
404
|
} = typeof e == "string" ? ft(e) : e;
|
|
405
405
|
return {
|
|
406
|
-
pathname: n ? n.startsWith("/") ? n :
|
|
407
|
-
search:
|
|
408
|
-
hash:
|
|
406
|
+
pathname: n ? n.startsWith("/") ? n : di(n, t) : t,
|
|
407
|
+
search: hi(r),
|
|
408
|
+
hash: pi(o)
|
|
409
409
|
};
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function di(e, t) {
|
|
412
412
|
let n = t.replace(/\/+$/, "").split("/");
|
|
413
413
|
return e.split("/").forEach((o) => {
|
|
414
414
|
o === ".." ? n.length > 1 && n.pop() : o !== "." && n.push(o);
|
|
@@ -417,11 +417,11 @@ function ii(e, t) {
|
|
|
417
417
|
function Kn(e, t, n, r) {
|
|
418
418
|
return "Cannot include a '" + e + "' character in a manually specified " + ("`to." + t + "` field [" + JSON.stringify(r) + "]. Please separate it out to the ") + ("`to." + n + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function Uo(e) {
|
|
421
421
|
return e.filter((t, n) => n === 0 || t.route.path && t.route.path.length > 0);
|
|
422
422
|
}
|
|
423
423
|
function Pn(e, t) {
|
|
424
|
-
let n =
|
|
424
|
+
let n = Uo(e);
|
|
425
425
|
return t ? n.map((r, o) => o === n.length - 1 ? r.pathname : r.pathnameBase) : n.map((r) => r.pathnameBase);
|
|
426
426
|
}
|
|
427
427
|
function On(e, t, n, r) {
|
|
@@ -441,19 +441,19 @@ function On(e, t, n, r) {
|
|
|
441
441
|
}
|
|
442
442
|
s = d >= 0 ? t[d] : "/";
|
|
443
443
|
}
|
|
444
|
-
let l =
|
|
444
|
+
let l = ui(o, s), c = i && i !== "/" && i.endsWith("/"), u = (a || i === ".") && n.endsWith("/");
|
|
445
445
|
return !l.pathname.endsWith("/") && (c || u) && (l.pathname += "/"), l;
|
|
446
446
|
}
|
|
447
|
-
const Qe = (e) => e.join("/").replace(/\/\/+/g, "/"),
|
|
447
|
+
const Qe = (e) => e.join("/").replace(/\/\/+/g, "/"), fi = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), hi = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, pi = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
|
|
448
448
|
class Rn {
|
|
449
449
|
constructor(t, n, r, o) {
|
|
450
450
|
o === void 0 && (o = !1), this.status = t, this.statusText = n || "", this.internal = o, r instanceof Error ? (this.data = r.toString(), this.error = r) : this.data = r;
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Kt(e) {
|
|
454
454
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
455
455
|
}
|
|
456
|
-
const
|
|
456
|
+
const Vo = ["post", "put", "patch", "delete"], mi = new Set(Vo), gi = ["get", ...Vo], yi = new Set(gi), vi = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]), wi = /* @__PURE__ */ new Set([307, 308]), Gn = {
|
|
457
457
|
state: "idle",
|
|
458
458
|
location: void 0,
|
|
459
459
|
formMethod: void 0,
|
|
@@ -462,7 +462,7 @@ const Fo = ["post", "put", "patch", "delete"], ui = new Set(Fo), di = ["get", ..
|
|
|
462
462
|
formData: void 0,
|
|
463
463
|
json: void 0,
|
|
464
464
|
text: void 0
|
|
465
|
-
},
|
|
465
|
+
}, bi = {
|
|
466
466
|
state: "idle",
|
|
467
467
|
data: void 0,
|
|
468
468
|
formMethod: void 0,
|
|
@@ -476,10 +476,10 @@ const Fo = ["post", "put", "patch", "delete"], ui = new Set(Fo), di = ["get", ..
|
|
|
476
476
|
proceed: void 0,
|
|
477
477
|
reset: void 0,
|
|
478
478
|
location: void 0
|
|
479
|
-
}, Cr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,
|
|
479
|
+
}, Cr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Si = (e) => ({
|
|
480
480
|
hasErrorBoundary: !!e.hasErrorBoundary
|
|
481
|
-
}),
|
|
482
|
-
function
|
|
481
|
+
}), jo = "remix-router-transitions";
|
|
482
|
+
function Ci(e) {
|
|
483
483
|
const t = e.window ? e.window : typeof window < "u" ? window : void 0, n = typeof t < "u" && typeof t.document < "u" && typeof t.document.createElement < "u", r = !n;
|
|
484
484
|
I(e.routes.length > 0, "You must provide a non-empty routes array to createRouter");
|
|
485
485
|
let o;
|
|
@@ -491,8 +491,8 @@ function yi(e) {
|
|
|
491
491
|
hasErrorBoundary: f(g)
|
|
492
492
|
});
|
|
493
493
|
} else
|
|
494
|
-
o =
|
|
495
|
-
let a = {}, i = En(e.routes, o, void 0, a), s, l = e.basename || "/", c = e.dataStrategy ||
|
|
494
|
+
o = Si;
|
|
495
|
+
let a = {}, i = En(e.routes, o, void 0, a), s, l = e.basename || "/", c = e.dataStrategy || xi, u = e.patchRoutesOnNavigation, d = fe({
|
|
496
496
|
v7_fetcherPersist: !1,
|
|
497
497
|
v7_normalizeFormMethod: !1,
|
|
498
498
|
v7_partialHydration: !1,
|
|
@@ -511,7 +511,7 @@ function yi(e) {
|
|
|
511
511
|
[C.id]: f
|
|
512
512
|
};
|
|
513
513
|
}
|
|
514
|
-
S && !e.hydrationData &&
|
|
514
|
+
S && !e.hydrationData && cn(S, i, e.history.location.pathname).active && (S = null);
|
|
515
515
|
let N;
|
|
516
516
|
if (S)
|
|
517
517
|
if (S.some((f) => f.route.lazy))
|
|
@@ -528,7 +528,7 @@ function yi(e) {
|
|
|
528
528
|
} else
|
|
529
529
|
N = e.hydrationData != null;
|
|
530
530
|
else if (N = !1, S = [], d.v7_partialHydration) {
|
|
531
|
-
let f =
|
|
531
|
+
let f = cn(null, i, e.history.location.pathname);
|
|
532
532
|
f.active && f.matches && (x = !0, S = f.matches);
|
|
533
533
|
}
|
|
534
534
|
let U, b = {
|
|
@@ -546,8 +546,8 @@ function yi(e) {
|
|
|
546
546
|
errors: e.hydrationData && e.hydrationData.errors || _,
|
|
547
547
|
fetchers: /* @__PURE__ */ new Map(),
|
|
548
548
|
blockers: /* @__PURE__ */ new Map()
|
|
549
|
-
}, T = ve.Pop, K = !1, B, ae = !1, ie = /* @__PURE__ */ new Map(), te = null, he = !1, Le = !1, Ze = [],
|
|
550
|
-
function
|
|
549
|
+
}, T = ve.Pop, K = !1, B, ae = !1, ie = /* @__PURE__ */ new Map(), te = null, he = !1, Le = !1, Ze = [], Me = /* @__PURE__ */ new Set(), le = /* @__PURE__ */ new Map(), Ne = 0, be = -1, $e = /* @__PURE__ */ new Map(), ge = /* @__PURE__ */ new Set(), Be = /* @__PURE__ */ new Map(), ze = /* @__PURE__ */ new Map(), G = /* @__PURE__ */ new Set(), Se = /* @__PURE__ */ new Map(), Re = /* @__PURE__ */ new Map(), De;
|
|
550
|
+
function nn() {
|
|
551
551
|
if (h = e.history.listen((f) => {
|
|
552
552
|
let {
|
|
553
553
|
action: g,
|
|
@@ -568,11 +568,11 @@ function yi(e) {
|
|
|
568
568
|
let F = new Promise((H) => {
|
|
569
569
|
De = H;
|
|
570
570
|
});
|
|
571
|
-
e.history.go(L * -1),
|
|
571
|
+
e.history.go(L * -1), ln(k, {
|
|
572
572
|
state: "blocked",
|
|
573
573
|
location: C,
|
|
574
574
|
proceed() {
|
|
575
|
-
|
|
575
|
+
ln(k, {
|
|
576
576
|
state: "proceeding",
|
|
577
577
|
proceed: void 0,
|
|
578
578
|
reset: void 0,
|
|
@@ -590,8 +590,8 @@ function yi(e) {
|
|
|
590
590
|
}
|
|
591
591
|
return Ke(g, C);
|
|
592
592
|
}), n) {
|
|
593
|
-
|
|
594
|
-
let f = () =>
|
|
593
|
+
Ui(t, ie);
|
|
594
|
+
let f = () => Vi(t, ie);
|
|
595
595
|
t.addEventListener("pagehide", f), te = () => t.removeEventListener("pagehide", f);
|
|
596
596
|
}
|
|
597
597
|
return b.initialized || Ke(ve.Pop, b.location, {
|
|
@@ -599,9 +599,9 @@ function yi(e) {
|
|
|
599
599
|
}), U;
|
|
600
600
|
}
|
|
601
601
|
function zn() {
|
|
602
|
-
h && h(), te && te(), w.clear(), B && B.abort(), b.fetchers.forEach((f, g) =>
|
|
602
|
+
h && h(), te && te(), w.clear(), B && B.abort(), b.fetchers.forEach((f, g) => sn(g)), b.blockers.forEach((f, g) => Br(g));
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function rn(f) {
|
|
605
605
|
return w.add(f), () => w.delete(f);
|
|
606
606
|
}
|
|
607
607
|
function Ce(f, g) {
|
|
@@ -615,15 +615,15 @@ function yi(e) {
|
|
|
615
615
|
deletedFetchers: L,
|
|
616
616
|
viewTransitionOpts: g.viewTransitionOpts,
|
|
617
617
|
flushSync: g.flushSync === !0
|
|
618
|
-
})), d.v7_fetcherPersist ? (C.forEach((k) => b.fetchers.delete(k)), L.forEach((k) =>
|
|
618
|
+
})), d.v7_fetcherPersist ? (C.forEach((k) => b.fetchers.delete(k)), L.forEach((k) => sn(k))) : L.forEach((k) => G.delete(k));
|
|
619
619
|
}
|
|
620
620
|
function tt(f, g, C) {
|
|
621
621
|
var L, k;
|
|
622
622
|
let {
|
|
623
623
|
flushSync: F
|
|
624
|
-
} = C === void 0 ? {} : C, H = b.actionData != null && b.navigation.formMethod != null && Je(b.navigation.formMethod) && b.navigation.state === "loading" && ((L = f.state) == null ? void 0 : L._isRedirect) !== !0,
|
|
625
|
-
g.actionData ? Object.keys(g.actionData).length > 0 ?
|
|
626
|
-
let
|
|
624
|
+
} = C === void 0 ? {} : C, H = b.actionData != null && b.navigation.formMethod != null && Je(b.navigation.formMethod) && b.navigation.state === "loading" && ((L = f.state) == null ? void 0 : L._isRedirect) !== !0, A;
|
|
625
|
+
g.actionData ? Object.keys(g.actionData).length > 0 ? A = g.actionData : A = null : H ? A = b.actionData : A = null;
|
|
626
|
+
let M = g.loaderData ? no(b.loaderData, g.loaderData, g.matches || [], g.errors) : b.loaderData, P = b.blockers;
|
|
627
627
|
P.size > 0 && (P = new Map(P), P.forEach((X, xe) => P.set(xe, Ft)));
|
|
628
628
|
let D = K === !0 || b.navigation.formMethod != null && Je(b.navigation.formMethod) && ((k = f.state) == null ? void 0 : k._isRedirect) !== !0;
|
|
629
629
|
s && (i = s, s = void 0), he || T === ve.Pop || (T === ve.Push ? e.history.push(f, f.state) : T === ve.Replace && e.history.replace(f, f.state));
|
|
@@ -645,8 +645,8 @@ function yi(e) {
|
|
|
645
645
|
};
|
|
646
646
|
}
|
|
647
647
|
Ce(fe({}, g, {
|
|
648
|
-
actionData:
|
|
649
|
-
loaderData:
|
|
648
|
+
actionData: A,
|
|
649
|
+
loaderData: M,
|
|
650
650
|
historyAction: T,
|
|
651
651
|
location: f,
|
|
652
652
|
initialized: !0,
|
|
@@ -660,7 +660,7 @@ function yi(e) {
|
|
|
660
660
|
flushSync: F === !0
|
|
661
661
|
}), T = ve.Pop, K = !1, ae = !1, he = !1, Le = !1, Ze = [];
|
|
662
662
|
}
|
|
663
|
-
async function
|
|
663
|
+
async function on(f, g) {
|
|
664
664
|
if (typeof f == "number") {
|
|
665
665
|
e.history.go(f);
|
|
666
666
|
return;
|
|
@@ -669,26 +669,26 @@ function yi(e) {
|
|
|
669
669
|
path: L,
|
|
670
670
|
submission: k,
|
|
671
671
|
error: F
|
|
672
|
-
} = Zr(d.v7_normalizeFormMethod, !1, C, g), H = b.location,
|
|
673
|
-
|
|
674
|
-
let
|
|
675
|
-
|
|
672
|
+
} = Zr(d.v7_normalizeFormMethod, !1, C, g), H = b.location, A = Zt(b.location, L, g && g.state);
|
|
673
|
+
A = fe({}, A, e.history.encodeLocation(A));
|
|
674
|
+
let M = g && g.replace != null ? g.replace : void 0, P = ve.Push;
|
|
675
|
+
M === !0 ? P = ve.Replace : M === !1 || k != null && Je(k.formMethod) && k.formAction === b.location.pathname + b.location.search && (P = ve.Replace);
|
|
676
676
|
let D = g && "preventScrollReset" in g ? g.preventScrollReset === !0 : void 0, J = (g && g.flushSync) === !0, X = Hr({
|
|
677
677
|
currentLocation: H,
|
|
678
|
-
nextLocation:
|
|
678
|
+
nextLocation: A,
|
|
679
679
|
historyAction: P
|
|
680
680
|
});
|
|
681
681
|
if (X) {
|
|
682
|
-
|
|
682
|
+
ln(X, {
|
|
683
683
|
state: "blocked",
|
|
684
|
-
location:
|
|
684
|
+
location: A,
|
|
685
685
|
proceed() {
|
|
686
|
-
|
|
686
|
+
ln(X, {
|
|
687
687
|
state: "proceeding",
|
|
688
688
|
proceed: void 0,
|
|
689
689
|
reset: void 0,
|
|
690
|
-
location:
|
|
691
|
-
}),
|
|
690
|
+
location: A
|
|
691
|
+
}), on(f, g);
|
|
692
692
|
},
|
|
693
693
|
reset() {
|
|
694
694
|
let xe = new Map(b.blockers);
|
|
@@ -699,7 +699,7 @@ function yi(e) {
|
|
|
699
699
|
});
|
|
700
700
|
return;
|
|
701
701
|
}
|
|
702
|
-
return await Ke(P,
|
|
702
|
+
return await Ke(P, A, {
|
|
703
703
|
submission: k,
|
|
704
704
|
// Send through the formData serialization error if we have one so we can
|
|
705
705
|
// render at the right error boundary after we match routes
|
|
@@ -710,7 +710,7 @@ function yi(e) {
|
|
|
710
710
|
flushSync: J
|
|
711
711
|
});
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function an() {
|
|
714
714
|
if (ht(), Ce({
|
|
715
715
|
revalidation: "loading"
|
|
716
716
|
}), b.navigation.state !== "submitting") {
|
|
@@ -728,12 +728,12 @@ function yi(e) {
|
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
730
|
async function Ke(f, g, C) {
|
|
731
|
-
B && B.abort(), B = null, T = f, he = (C && C.startUninterruptedRevalidation) === !0,
|
|
731
|
+
B && B.abort(), B = null, T = f, he = (C && C.startUninterruptedRevalidation) === !0, Pa(b.location, b.matches), K = (C && C.preventScrollReset) === !0, ae = (C && C.enableViewTransition) === !0;
|
|
732
732
|
let L = s || i, k = C && C.overrideNavigation, F = C != null && C.initialHydration && b.matches && b.matches.length > 0 && !x ? (
|
|
733
733
|
// `matchRoutes()` has already been called if we're in here via `router.initialize()`
|
|
734
734
|
b.matches
|
|
735
735
|
) : gt(L, g, l), H = (C && C.flushSync) === !0;
|
|
736
|
-
if (F && b.initialized && !Le &&
|
|
736
|
+
if (F && b.initialized && !Le && Oi(b.location, g) && !(C && C.submission && Je(C.submission.formMethod))) {
|
|
737
737
|
tt(g, {
|
|
738
738
|
matches: F
|
|
739
739
|
}, {
|
|
@@ -741,8 +741,8 @@ function yi(e) {
|
|
|
741
741
|
});
|
|
742
742
|
return;
|
|
743
743
|
}
|
|
744
|
-
let
|
|
745
|
-
if (
|
|
744
|
+
let A = cn(F, L, g.pathname);
|
|
745
|
+
if (A.active && A.matches && (F = A.matches), !F) {
|
|
746
746
|
let {
|
|
747
747
|
error: ce,
|
|
748
748
|
notFoundMatches: ee,
|
|
@@ -760,14 +760,14 @@ function yi(e) {
|
|
|
760
760
|
return;
|
|
761
761
|
}
|
|
762
762
|
B = new AbortController();
|
|
763
|
-
let
|
|
763
|
+
let M = Rt(e.history, g, B.signal, C && C.submission), P;
|
|
764
764
|
if (C && C.pendingError)
|
|
765
765
|
P = [yt(F).route.id, {
|
|
766
766
|
type: oe.error,
|
|
767
767
|
error: C.pendingError
|
|
768
768
|
}];
|
|
769
769
|
else if (C && C.submission && Je(C.submission.formMethod)) {
|
|
770
|
-
let ce = await j(
|
|
770
|
+
let ce = await j(M, g, C.submission, F, A.active, {
|
|
771
771
|
replace: C.replace,
|
|
772
772
|
flushSync: H
|
|
773
773
|
});
|
|
@@ -775,7 +775,7 @@ function yi(e) {
|
|
|
775
775
|
return;
|
|
776
776
|
if (ce.pendingActionResult) {
|
|
777
777
|
let [ee, pe] = ce.pendingActionResult;
|
|
778
|
-
if (Fe(pe) &&
|
|
778
|
+
if (Fe(pe) && Kt(pe.error) && pe.error.status === 404) {
|
|
779
779
|
B = null, tt(g, {
|
|
780
780
|
matches: ce.matches,
|
|
781
781
|
loaderData: {},
|
|
@@ -786,14 +786,14 @@ function yi(e) {
|
|
|
786
786
|
return;
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
|
-
F = ce.matches || F, P = ce.pendingActionResult, k = Yn(g, C.submission), H = !1,
|
|
789
|
+
F = ce.matches || F, P = ce.pendingActionResult, k = Yn(g, C.submission), H = !1, A.active = !1, M = Rt(e.history, M.url, M.signal);
|
|
790
790
|
}
|
|
791
791
|
let {
|
|
792
792
|
shortCircuited: D,
|
|
793
793
|
matches: J,
|
|
794
794
|
loaderData: X,
|
|
795
795
|
errors: xe
|
|
796
|
-
} = await V(
|
|
796
|
+
} = await V(M, g, F, A.active, k, C && C.submission, C && C.fetcherSubmission, C && C.replace, C && C.initialHydration === !0, H, P);
|
|
797
797
|
D || (B = null, tt(g, fe({
|
|
798
798
|
matches: J || F
|
|
799
799
|
}, ro(P), {
|
|
@@ -803,13 +803,13 @@ function yi(e) {
|
|
|
803
803
|
}
|
|
804
804
|
async function j(f, g, C, L, k, F) {
|
|
805
805
|
F === void 0 && (F = {}), ht();
|
|
806
|
-
let H =
|
|
806
|
+
let H = Bi(g, C);
|
|
807
807
|
if (Ce({
|
|
808
808
|
navigation: H
|
|
809
809
|
}, {
|
|
810
810
|
flushSync: F.flushSync === !0
|
|
811
811
|
}), k) {
|
|
812
|
-
let P = await
|
|
812
|
+
let P = await un(L, g.pathname, f.signal);
|
|
813
813
|
if (P.type === "aborted")
|
|
814
814
|
return {
|
|
815
815
|
shortCircuited: !0
|
|
@@ -840,47 +840,47 @@ function yi(e) {
|
|
|
840
840
|
};
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
|
-
let
|
|
844
|
-
if (!
|
|
845
|
-
|
|
843
|
+
let A, M = zt(L, g);
|
|
844
|
+
if (!M.route.action && !M.route.lazy)
|
|
845
|
+
A = {
|
|
846
846
|
type: oe.error,
|
|
847
847
|
error: Pe(405, {
|
|
848
848
|
method: f.method,
|
|
849
849
|
pathname: g.pathname,
|
|
850
|
-
routeId:
|
|
850
|
+
routeId: M.route.id
|
|
851
851
|
})
|
|
852
852
|
};
|
|
853
|
-
else if (
|
|
853
|
+
else if (A = (await ue("action", b, f, [M], L, null))[M.route.id], f.signal.aborted)
|
|
854
854
|
return {
|
|
855
855
|
shortCircuited: !0
|
|
856
856
|
};
|
|
857
|
-
if (vt(
|
|
857
|
+
if (vt(A)) {
|
|
858
858
|
let P;
|
|
859
|
-
return F && F.replace != null ? P = F.replace : P = Qr(
|
|
859
|
+
return F && F.replace != null ? P = F.replace : P = Qr(A.response.headers.get("Location"), new URL(f.url), l) === b.location.pathname + b.location.search, await Z(f, A, !0, {
|
|
860
860
|
submission: C,
|
|
861
861
|
replace: P
|
|
862
862
|
}), {
|
|
863
863
|
shortCircuited: !0
|
|
864
864
|
};
|
|
865
865
|
}
|
|
866
|
-
if (ct(
|
|
866
|
+
if (ct(A))
|
|
867
867
|
throw Pe(400, {
|
|
868
868
|
type: "defer-action"
|
|
869
869
|
});
|
|
870
|
-
if (Fe(
|
|
871
|
-
let P = yt(L,
|
|
870
|
+
if (Fe(A)) {
|
|
871
|
+
let P = yt(L, M.route.id);
|
|
872
872
|
return (F && F.replace) !== !0 && (T = ve.Push), {
|
|
873
873
|
matches: L,
|
|
874
|
-
pendingActionResult: [P.route.id,
|
|
874
|
+
pendingActionResult: [P.route.id, A]
|
|
875
875
|
};
|
|
876
876
|
}
|
|
877
877
|
return {
|
|
878
878
|
matches: L,
|
|
879
|
-
pendingActionResult: [
|
|
879
|
+
pendingActionResult: [M.route.id, A]
|
|
880
880
|
};
|
|
881
881
|
}
|
|
882
|
-
async function V(f, g, C, L, k, F, H,
|
|
883
|
-
let J = k || Yn(g, F), X = F || H || io(J), xe = !he && (!d.v7_partialHydration || !
|
|
882
|
+
async function V(f, g, C, L, k, F, H, A, M, P, D) {
|
|
883
|
+
let J = k || Yn(g, F), X = F || H || io(J), xe = !he && (!d.v7_partialHydration || !M);
|
|
884
884
|
if (L) {
|
|
885
885
|
if (xe) {
|
|
886
886
|
let me = ne(D);
|
|
@@ -892,7 +892,7 @@ function yi(e) {
|
|
|
892
892
|
flushSync: P
|
|
893
893
|
});
|
|
894
894
|
}
|
|
895
|
-
let Q = await
|
|
895
|
+
let Q = await un(C, g.pathname, f.signal);
|
|
896
896
|
if (Q.type === "aborted")
|
|
897
897
|
return {
|
|
898
898
|
shortCircuited: !0
|
|
@@ -923,7 +923,7 @@ function yi(e) {
|
|
|
923
923
|
};
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
|
-
let ce = s || i, [ee, pe] = Gr(e.history, b, C, X, g, d.v7_partialHydration &&
|
|
926
|
+
let ce = s || i, [ee, pe] = Gr(e.history, b, C, X, g, d.v7_partialHydration && M === !0, d.v7_skipActionErrorRevalidation, Le, Ze, Me, G, Be, ge, ce, l, D);
|
|
927
927
|
if (Wn((Q) => !(C && C.some((me) => me.route.id === Q)) || ee && ee.some((me) => me.route.id === Q)), be = ++Ne, ee.length === 0 && pe.length === 0) {
|
|
928
928
|
let Q = Fr();
|
|
929
929
|
return tt(g, fe({
|
|
@@ -958,7 +958,7 @@ function yi(e) {
|
|
|
958
958
|
let Ct = () => pe.forEach((Q) => it(Q.key));
|
|
959
959
|
B && B.signal.addEventListener("abort", Ct);
|
|
960
960
|
let {
|
|
961
|
-
loaderResults:
|
|
961
|
+
loaderResults: At,
|
|
962
962
|
fetcherResults: ot
|
|
963
963
|
} = await nt(b, C, ee, pe, f);
|
|
964
964
|
if (f.signal.aborted)
|
|
@@ -966,34 +966,34 @@ function yi(e) {
|
|
|
966
966
|
shortCircuited: !0
|
|
967
967
|
};
|
|
968
968
|
B && B.signal.removeEventListener("abort", Ct), pe.forEach((Q) => le.delete(Q.key));
|
|
969
|
-
let Ye =
|
|
969
|
+
let Ye = hn(At);
|
|
970
970
|
if (Ye)
|
|
971
971
|
return await Z(f, Ye.result, !0, {
|
|
972
|
-
replace:
|
|
972
|
+
replace: A
|
|
973
973
|
}), {
|
|
974
974
|
shortCircuited: !0
|
|
975
975
|
};
|
|
976
|
-
if (Ye =
|
|
976
|
+
if (Ye = hn(ot), Ye)
|
|
977
977
|
return ge.add(Ye.key), await Z(f, Ye.result, !0, {
|
|
978
|
-
replace:
|
|
978
|
+
replace: A
|
|
979
979
|
}), {
|
|
980
980
|
shortCircuited: !0
|
|
981
981
|
};
|
|
982
982
|
let {
|
|
983
983
|
loaderData: qn,
|
|
984
|
-
errors:
|
|
985
|
-
} = to(b, C,
|
|
984
|
+
errors: Mt
|
|
985
|
+
} = to(b, C, At, D, pe, ot, Se);
|
|
986
986
|
Se.forEach((Q, me) => {
|
|
987
987
|
Q.subscribe((Et) => {
|
|
988
988
|
(Et || Q.done) && Se.delete(me);
|
|
989
989
|
});
|
|
990
|
-
}), d.v7_partialHydration &&
|
|
991
|
-
let pt = Fr(),
|
|
990
|
+
}), d.v7_partialHydration && M && b.errors && (Mt = fe({}, b.errors, Mt));
|
|
991
|
+
let pt = Fr(), dn = Ir(be), fn = pt || dn || pe.length > 0;
|
|
992
992
|
return fe({
|
|
993
993
|
matches: C,
|
|
994
994
|
loaderData: qn,
|
|
995
|
-
errors:
|
|
996
|
-
},
|
|
995
|
+
errors: Mt
|
|
996
|
+
}, fn ? {
|
|
997
997
|
fetchers: new Map(b.fetchers)
|
|
998
998
|
} : {});
|
|
999
999
|
}
|
|
@@ -1015,8 +1015,8 @@ function yi(e) {
|
|
|
1015
1015
|
if (r)
|
|
1016
1016
|
throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");
|
|
1017
1017
|
it(f);
|
|
1018
|
-
let k = (L && L.flushSync) === !0, F = s || i, H = sr(b.location, b.matches, l, d.v7_prependBasename, C, d.v7_relativeSplatPath, g, L == null ? void 0 : L.relative),
|
|
1019
|
-
if (
|
|
1018
|
+
let k = (L && L.flushSync) === !0, F = s || i, H = sr(b.location, b.matches, l, d.v7_prependBasename, C, d.v7_relativeSplatPath, g, L == null ? void 0 : L.relative), A = gt(F, H, l), M = cn(A, F, H);
|
|
1019
|
+
if (M.active && M.matches && (A = M.matches), !A) {
|
|
1020
1020
|
rt(f, g, Pe(404, {
|
|
1021
1021
|
pathname: H
|
|
1022
1022
|
}), {
|
|
@@ -1035,22 +1035,22 @@ function yi(e) {
|
|
|
1035
1035
|
});
|
|
1036
1036
|
return;
|
|
1037
1037
|
}
|
|
1038
|
-
let X =
|
|
1038
|
+
let X = zt(A, P), xe = (L && L.preventScrollReset) === !0;
|
|
1039
1039
|
if (D && Je(D.formMethod)) {
|
|
1040
|
-
W(f, g, P, X,
|
|
1040
|
+
W(f, g, P, X, A, M.active, k, xe, D);
|
|
1041
1041
|
return;
|
|
1042
1042
|
}
|
|
1043
1043
|
Be.set(f, {
|
|
1044
1044
|
routeId: g,
|
|
1045
1045
|
path: P
|
|
1046
|
-
}), re(f, g, P, X,
|
|
1046
|
+
}), re(f, g, P, X, A, M.active, k, xe, D);
|
|
1047
1047
|
}
|
|
1048
|
-
async function W(f, g, C, L, k, F, H,
|
|
1048
|
+
async function W(f, g, C, L, k, F, H, A, M) {
|
|
1049
1049
|
ht(), Be.delete(f);
|
|
1050
1050
|
function P(ye) {
|
|
1051
1051
|
if (!ye.route.action && !ye.route.lazy) {
|
|
1052
1052
|
let Lt = Pe(405, {
|
|
1053
|
-
method:
|
|
1053
|
+
method: M.formMethod,
|
|
1054
1054
|
pathname: C,
|
|
1055
1055
|
routeId: g
|
|
1056
1056
|
});
|
|
@@ -1063,12 +1063,12 @@ function yi(e) {
|
|
|
1063
1063
|
if (!F && P(L))
|
|
1064
1064
|
return;
|
|
1065
1065
|
let D = b.fetchers.get(f);
|
|
1066
|
-
Ge(f,
|
|
1066
|
+
Ge(f, Hi(M, D), {
|
|
1067
1067
|
flushSync: H
|
|
1068
1068
|
});
|
|
1069
|
-
let J = new AbortController(), X = Rt(e.history, C, J.signal,
|
|
1069
|
+
let J = new AbortController(), X = Rt(e.history, C, J.signal, M);
|
|
1070
1070
|
if (F) {
|
|
1071
|
-
let ye = await
|
|
1071
|
+
let ye = await un(k, new URL(X.url).pathname, X.signal, f);
|
|
1072
1072
|
if (ye.type === "aborted")
|
|
1073
1073
|
return;
|
|
1074
1074
|
if (ye.type === "error") {
|
|
@@ -1077,7 +1077,7 @@ function yi(e) {
|
|
|
1077
1077
|
});
|
|
1078
1078
|
return;
|
|
1079
1079
|
} else if (ye.matches) {
|
|
1080
|
-
if (k = ye.matches, L =
|
|
1080
|
+
if (k = ye.matches, L = zt(k, C), P(L))
|
|
1081
1081
|
return;
|
|
1082
1082
|
} else {
|
|
1083
1083
|
rt(f, g, Pe(404, {
|
|
@@ -1105,9 +1105,9 @@ function yi(e) {
|
|
|
1105
1105
|
Ge(f, st(void 0));
|
|
1106
1106
|
return;
|
|
1107
1107
|
} else
|
|
1108
|
-
return ge.add(f), Ge(f, It(
|
|
1109
|
-
fetcherSubmission:
|
|
1110
|
-
preventScrollReset:
|
|
1108
|
+
return ge.add(f), Ge(f, It(M)), Z(X, ee, !1, {
|
|
1109
|
+
fetcherSubmission: M,
|
|
1110
|
+
preventScrollReset: A
|
|
1111
1111
|
});
|
|
1112
1112
|
if (Fe(ee)) {
|
|
1113
1113
|
rt(f, g, ee.error);
|
|
@@ -1118,41 +1118,41 @@ function yi(e) {
|
|
|
1118
1118
|
throw Pe(400, {
|
|
1119
1119
|
type: "defer-action"
|
|
1120
1120
|
});
|
|
1121
|
-
let pe = b.navigation.location || b.location, Ct = Rt(e.history, pe, J.signal),
|
|
1121
|
+
let pe = b.navigation.location || b.location, Ct = Rt(e.history, pe, J.signal), At = s || i, ot = b.navigation.state !== "idle" ? gt(At, b.navigation.location, l) : b.matches;
|
|
1122
1122
|
I(ot, "Didn't find any matches after fetcher action");
|
|
1123
1123
|
let Ye = ++Ne;
|
|
1124
1124
|
$e.set(f, Ye);
|
|
1125
|
-
let qn = It(
|
|
1125
|
+
let qn = It(M, ee.data);
|
|
1126
1126
|
b.fetchers.set(f, qn);
|
|
1127
|
-
let [
|
|
1127
|
+
let [Mt, pt] = Gr(e.history, b, ot, M, pe, !1, d.v7_skipActionErrorRevalidation, Le, Ze, Me, G, Be, ge, At, l, [L.route.id, ee]);
|
|
1128
1128
|
pt.filter((ye) => ye.key !== f).forEach((ye) => {
|
|
1129
|
-
let Lt = ye.key, jr = b.fetchers.get(Lt),
|
|
1130
|
-
b.fetchers.set(Lt,
|
|
1129
|
+
let Lt = ye.key, jr = b.fetchers.get(Lt), Ma = It(void 0, jr ? jr.data : void 0);
|
|
1130
|
+
b.fetchers.set(Lt, Ma), it(Lt), ye.controller && le.set(Lt, ye.controller);
|
|
1131
1131
|
}), Ce({
|
|
1132
1132
|
fetchers: new Map(b.fetchers)
|
|
1133
1133
|
});
|
|
1134
|
-
let
|
|
1135
|
-
J.signal.addEventListener("abort",
|
|
1134
|
+
let dn = () => pt.forEach((ye) => it(ye.key));
|
|
1135
|
+
J.signal.addEventListener("abort", dn);
|
|
1136
1136
|
let {
|
|
1137
|
-
loaderResults:
|
|
1137
|
+
loaderResults: fn,
|
|
1138
1138
|
fetcherResults: Q
|
|
1139
|
-
} = await nt(b, ot,
|
|
1139
|
+
} = await nt(b, ot, Mt, pt, Ct);
|
|
1140
1140
|
if (J.signal.aborted)
|
|
1141
1141
|
return;
|
|
1142
|
-
J.signal.removeEventListener("abort",
|
|
1143
|
-
let me = fn
|
|
1142
|
+
J.signal.removeEventListener("abort", dn), $e.delete(f), le.delete(f), pt.forEach((ye) => le.delete(ye.key));
|
|
1143
|
+
let me = hn(fn);
|
|
1144
1144
|
if (me)
|
|
1145
1145
|
return Z(Ct, me.result, !1, {
|
|
1146
|
-
preventScrollReset:
|
|
1146
|
+
preventScrollReset: A
|
|
1147
1147
|
});
|
|
1148
|
-
if (me =
|
|
1148
|
+
if (me = hn(Q), me)
|
|
1149
1149
|
return ge.add(me.key), Z(Ct, me.result, !1, {
|
|
1150
|
-
preventScrollReset:
|
|
1150
|
+
preventScrollReset: A
|
|
1151
1151
|
});
|
|
1152
1152
|
let {
|
|
1153
1153
|
loaderData: Et,
|
|
1154
1154
|
errors: Dt
|
|
1155
|
-
} = to(b, ot,
|
|
1155
|
+
} = to(b, ot, fn, void 0, pt, Q, Se);
|
|
1156
1156
|
if (b.fetchers.has(f)) {
|
|
1157
1157
|
let ye = st(ee.data);
|
|
1158
1158
|
b.fetchers.set(f, ye);
|
|
@@ -1168,14 +1168,14 @@ function yi(e) {
|
|
|
1168
1168
|
fetchers: new Map(b.fetchers)
|
|
1169
1169
|
}), Le = !1);
|
|
1170
1170
|
}
|
|
1171
|
-
async function re(f, g, C, L, k, F, H,
|
|
1171
|
+
async function re(f, g, C, L, k, F, H, A, M) {
|
|
1172
1172
|
let P = b.fetchers.get(f);
|
|
1173
|
-
Ge(f, It(
|
|
1173
|
+
Ge(f, It(M, P ? P.data : void 0), {
|
|
1174
1174
|
flushSync: H
|
|
1175
1175
|
});
|
|
1176
1176
|
let D = new AbortController(), J = Rt(e.history, C, D.signal);
|
|
1177
1177
|
if (F) {
|
|
1178
|
-
let ee = await
|
|
1178
|
+
let ee = await un(k, new URL(J.url).pathname, J.signal, f);
|
|
1179
1179
|
if (ee.type === "aborted")
|
|
1180
1180
|
return;
|
|
1181
1181
|
if (ee.type === "error") {
|
|
@@ -1184,7 +1184,7 @@ function yi(e) {
|
|
|
1184
1184
|
});
|
|
1185
1185
|
return;
|
|
1186
1186
|
} else if (ee.matches)
|
|
1187
|
-
k = ee.matches, L =
|
|
1187
|
+
k = ee.matches, L = zt(k, C);
|
|
1188
1188
|
else {
|
|
1189
1189
|
rt(f, g, Pe(404, {
|
|
1190
1190
|
pathname: C
|
|
@@ -1207,7 +1207,7 @@ function yi(e) {
|
|
|
1207
1207
|
return;
|
|
1208
1208
|
} else {
|
|
1209
1209
|
ge.add(f), await Z(J, ce, !1, {
|
|
1210
|
-
preventScrollReset:
|
|
1210
|
+
preventScrollReset: A
|
|
1211
1211
|
});
|
|
1212
1212
|
return;
|
|
1213
1213
|
}
|
|
@@ -1223,41 +1223,41 @@ function yi(e) {
|
|
|
1223
1223
|
submission: k,
|
|
1224
1224
|
fetcherSubmission: F,
|
|
1225
1225
|
preventScrollReset: H,
|
|
1226
|
-
replace:
|
|
1226
|
+
replace: A
|
|
1227
1227
|
} = L === void 0 ? {} : L;
|
|
1228
1228
|
g.response.headers.has("X-Remix-Revalidate") && (Le = !0);
|
|
1229
|
-
let
|
|
1230
|
-
I(
|
|
1231
|
-
let P =
|
|
1229
|
+
let M = g.response.headers.get("Location");
|
|
1230
|
+
I(M, "Expected a Location header on the redirect Response"), M = Qr(M, new URL(f.url), l);
|
|
1231
|
+
let P = Zt(b.location, M, {
|
|
1232
1232
|
_isRedirect: !0
|
|
1233
1233
|
});
|
|
1234
1234
|
if (n) {
|
|
1235
1235
|
let ee = !1;
|
|
1236
1236
|
if (g.response.headers.has("X-Remix-Reload-Document"))
|
|
1237
1237
|
ee = !0;
|
|
1238
|
-
else if (Cr.test(
|
|
1239
|
-
const pe = e.history.createURL(
|
|
1238
|
+
else if (Cr.test(M)) {
|
|
1239
|
+
const pe = e.history.createURL(M);
|
|
1240
1240
|
ee = // Hard reload if it's an absolute URL to a new origin
|
|
1241
1241
|
pe.origin !== t.location.origin || // Hard reload if it's an absolute URL that does not match our basename
|
|
1242
1242
|
We(pe.pathname, l) == null;
|
|
1243
1243
|
}
|
|
1244
1244
|
if (ee) {
|
|
1245
|
-
|
|
1245
|
+
A ? t.location.replace(M) : t.location.assign(M);
|
|
1246
1246
|
return;
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
1249
1249
|
B = null;
|
|
1250
|
-
let D =
|
|
1250
|
+
let D = A === !0 || g.response.headers.has("X-Remix-Replace") ? ve.Replace : ve.Push, {
|
|
1251
1251
|
formMethod: J,
|
|
1252
1252
|
formAction: X,
|
|
1253
1253
|
formEncType: xe
|
|
1254
1254
|
} = b.navigation;
|
|
1255
1255
|
!k && !F && J && X && xe && (k = io(b.navigation));
|
|
1256
1256
|
let ce = k || F;
|
|
1257
|
-
if (
|
|
1257
|
+
if (wi.has(g.response.status) && ce && Je(ce.formMethod))
|
|
1258
1258
|
await Ke(D, P, {
|
|
1259
1259
|
submission: fe({}, ce, {
|
|
1260
|
-
formAction:
|
|
1260
|
+
formAction: M
|
|
1261
1261
|
}),
|
|
1262
1262
|
// Preserve these flags across redirects
|
|
1263
1263
|
preventScrollReset: H || K,
|
|
@@ -1276,30 +1276,30 @@ function yi(e) {
|
|
|
1276
1276
|
}
|
|
1277
1277
|
}
|
|
1278
1278
|
async function ue(f, g, C, L, k, F) {
|
|
1279
|
-
let H,
|
|
1279
|
+
let H, A = {};
|
|
1280
1280
|
try {
|
|
1281
|
-
H = await
|
|
1282
|
-
} catch (
|
|
1281
|
+
H = await ki(c, f, g, C, L, k, F, a, o);
|
|
1282
|
+
} catch (M) {
|
|
1283
1283
|
return L.forEach((P) => {
|
|
1284
|
-
|
|
1284
|
+
A[P.route.id] = {
|
|
1285
1285
|
type: oe.error,
|
|
1286
|
-
error:
|
|
1286
|
+
error: M
|
|
1287
1287
|
};
|
|
1288
|
-
}),
|
|
1288
|
+
}), A;
|
|
1289
1289
|
}
|
|
1290
|
-
for (let [
|
|
1291
|
-
if (
|
|
1290
|
+
for (let [M, P] of Object.entries(H))
|
|
1291
|
+
if (Ai(P)) {
|
|
1292
1292
|
let D = P.result;
|
|
1293
|
-
|
|
1293
|
+
A[M] = {
|
|
1294
1294
|
type: oe.redirect,
|
|
1295
|
-
response:
|
|
1295
|
+
response: Ti(D, C, M, k, l, d.v7_relativeSplatPath)
|
|
1296
1296
|
};
|
|
1297
1297
|
} else
|
|
1298
|
-
|
|
1299
|
-
return
|
|
1298
|
+
A[M] = await _i(P);
|
|
1299
|
+
return A;
|
|
1300
1300
|
}
|
|
1301
1301
|
async function nt(f, g, C, L, k) {
|
|
1302
|
-
let F = f.matches, H = ue("loader", f, k, C, g, null),
|
|
1302
|
+
let F = f.matches, H = ue("loader", f, k, C, g, null), A = Promise.all(L.map(async (D) => {
|
|
1303
1303
|
if (D.matches && D.match && D.controller) {
|
|
1304
1304
|
let X = (await ue("loader", f, Rt(e.history, D.path, D.controller.signal), [D.match], D.matches, D.key))[D.match.route.id];
|
|
1305
1305
|
return {
|
|
@@ -1314,15 +1314,15 @@ function yi(e) {
|
|
|
1314
1314
|
})
|
|
1315
1315
|
}
|
|
1316
1316
|
});
|
|
1317
|
-
})),
|
|
1318
|
-
return await Promise.all([
|
|
1319
|
-
loaderResults:
|
|
1317
|
+
})), M = await H, P = (await A).reduce((D, J) => Object.assign(D, J), {});
|
|
1318
|
+
return await Promise.all([Fi(g, M, k.signal, F, f.loaderData), Ii(g, P, L)]), {
|
|
1319
|
+
loaderResults: M,
|
|
1320
1320
|
fetcherResults: P
|
|
1321
1321
|
};
|
|
1322
1322
|
}
|
|
1323
1323
|
function ht() {
|
|
1324
1324
|
Le = !0, Ze.push(...Wn()), Be.forEach((f, g) => {
|
|
1325
|
-
le.has(g) &&
|
|
1325
|
+
le.has(g) && Me.add(g), it(g);
|
|
1326
1326
|
});
|
|
1327
1327
|
}
|
|
1328
1328
|
function Ge(f, g, C) {
|
|
@@ -1335,7 +1335,7 @@ function yi(e) {
|
|
|
1335
1335
|
function rt(f, g, C, L) {
|
|
1336
1336
|
L === void 0 && (L = {});
|
|
1337
1337
|
let k = yt(b.matches, g);
|
|
1338
|
-
|
|
1338
|
+
sn(f), Ce({
|
|
1339
1339
|
errors: {
|
|
1340
1340
|
[k.route.id]: C
|
|
1341
1341
|
},
|
|
@@ -1344,16 +1344,16 @@ function yi(e) {
|
|
|
1344
1344
|
flushSync: (L && L.flushSync) === !0
|
|
1345
1345
|
});
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1348
|
-
return ze.set(f, (ze.get(f) || 0) + 1), G.has(f) && G.delete(f), b.fetchers.get(f) ||
|
|
1347
|
+
function Mr(f) {
|
|
1348
|
+
return ze.set(f, (ze.get(f) || 0) + 1), G.has(f) && G.delete(f), b.fetchers.get(f) || bi;
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1350
|
+
function sn(f) {
|
|
1351
1351
|
let g = b.fetchers.get(f);
|
|
1352
|
-
le.has(f) && !(g && g.state === "loading" && $e.has(f)) && it(f), Be.delete(f), $e.delete(f), ge.delete(f), d.v7_fetcherPersist && G.delete(f),
|
|
1352
|
+
le.has(f) && !(g && g.state === "loading" && $e.has(f)) && it(f), Be.delete(f), $e.delete(f), ge.delete(f), d.v7_fetcherPersist && G.delete(f), Me.delete(f), b.fetchers.delete(f);
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function Na(f) {
|
|
1355
1355
|
let g = (ze.get(f) || 0) - 1;
|
|
1356
|
-
g <= 0 ? (ze.delete(f), G.add(f), d.v7_fetcherPersist ||
|
|
1356
|
+
g <= 0 ? (ze.delete(f), G.add(f), d.v7_fetcherPersist || sn(f)) : ze.set(f, g), Ce({
|
|
1357
1357
|
fetchers: new Map(b.fetchers)
|
|
1358
1358
|
});
|
|
1359
1359
|
}
|
|
@@ -1363,7 +1363,7 @@ function yi(e) {
|
|
|
1363
1363
|
}
|
|
1364
1364
|
function Dr(f) {
|
|
1365
1365
|
for (let g of f) {
|
|
1366
|
-
let C =
|
|
1366
|
+
let C = Mr(g), L = st(C.data);
|
|
1367
1367
|
b.fetchers.set(g, L);
|
|
1368
1368
|
}
|
|
1369
1369
|
}
|
|
@@ -1384,14 +1384,14 @@ function yi(e) {
|
|
|
1384
1384
|
}
|
|
1385
1385
|
return Dr(g), g.length > 0;
|
|
1386
1386
|
}
|
|
1387
|
-
function
|
|
1387
|
+
function _a(f, g) {
|
|
1388
1388
|
let C = b.blockers.get(f) || Ft;
|
|
1389
1389
|
return Re.get(f) !== g && Re.set(f, g), C;
|
|
1390
1390
|
}
|
|
1391
1391
|
function Br(f) {
|
|
1392
1392
|
b.blockers.delete(f), Re.delete(f);
|
|
1393
1393
|
}
|
|
1394
|
-
function
|
|
1394
|
+
function ln(f, g) {
|
|
1395
1395
|
let C = b.blockers.get(f) || Ft;
|
|
1396
1396
|
I(C.state === "unblocked" && g.state === "blocked" || C.state === "blocked" && g.state === "blocked" || C.state === "blocked" && g.state === "proceeding" || C.state === "blocked" && g.state === "unblocked" || C.state === "proceeding" && g.state === "unblocked", "Invalid blocker state transition: " + C.state + " -> " + g.state);
|
|
1397
1397
|
let L = new Map(b.blockers);
|
|
@@ -1408,8 +1408,8 @@ function yi(e) {
|
|
|
1408
1408
|
if (Re.size === 0)
|
|
1409
1409
|
return;
|
|
1410
1410
|
Re.size > 1 && we(!1, "A router only supports one blocker at a time");
|
|
1411
|
-
let k = Array.from(Re.entries()), [F, H] = k[k.length - 1],
|
|
1412
|
-
if (!(
|
|
1411
|
+
let k = Array.from(Re.entries()), [F, H] = k[k.length - 1], A = b.blockers.get(F);
|
|
1412
|
+
if (!(A && A.state === "proceeding") && H({
|
|
1413
1413
|
currentLocation: g,
|
|
1414
1414
|
nextLocation: C,
|
|
1415
1415
|
historyAction: L
|
|
@@ -1435,7 +1435,7 @@ function yi(e) {
|
|
|
1435
1435
|
(!f || f(L)) && (C.cancel(), g.push(L), Se.delete(L));
|
|
1436
1436
|
}), g;
|
|
1437
1437
|
}
|
|
1438
|
-
function
|
|
1438
|
+
function Ta(f, g, C) {
|
|
1439
1439
|
if (m = f, v = g, p = C || null, !R && b.navigation === Gn) {
|
|
1440
1440
|
R = !0;
|
|
1441
1441
|
let L = Vr(b.location, b.matches);
|
|
@@ -1448,9 +1448,9 @@ function yi(e) {
|
|
|
1448
1448
|
};
|
|
1449
1449
|
}
|
|
1450
1450
|
function Ur(f, g) {
|
|
1451
|
-
return p && p(f, g.map((L) =>
|
|
1451
|
+
return p && p(f, g.map((L) => Ya(L, b.loaderData))) || f.key;
|
|
1452
1452
|
}
|
|
1453
|
-
function
|
|
1453
|
+
function Pa(f, g) {
|
|
1454
1454
|
if (m && v) {
|
|
1455
1455
|
let C = Ur(f, g);
|
|
1456
1456
|
m[C] = v();
|
|
@@ -1464,7 +1464,7 @@ function yi(e) {
|
|
|
1464
1464
|
}
|
|
1465
1465
|
return null;
|
|
1466
1466
|
}
|
|
1467
|
-
function
|
|
1467
|
+
function cn(f, g, C) {
|
|
1468
1468
|
if (u)
|
|
1469
1469
|
if (f) {
|
|
1470
1470
|
if (Object.keys(f[0].params).length > 0)
|
|
@@ -1482,7 +1482,7 @@ function yi(e) {
|
|
|
1482
1482
|
matches: null
|
|
1483
1483
|
};
|
|
1484
1484
|
}
|
|
1485
|
-
async function
|
|
1485
|
+
async function un(f, g, C, L) {
|
|
1486
1486
|
if (!u)
|
|
1487
1487
|
return {
|
|
1488
1488
|
type: "success",
|
|
@@ -1490,7 +1490,7 @@ function yi(e) {
|
|
|
1490
1490
|
};
|
|
1491
1491
|
let k = f;
|
|
1492
1492
|
for (; ; ) {
|
|
1493
|
-
let F = s == null, H = s || i,
|
|
1493
|
+
let F = s == null, H = s || i, A = a;
|
|
1494
1494
|
try {
|
|
1495
1495
|
await u({
|
|
1496
1496
|
signal: C,
|
|
@@ -1498,7 +1498,7 @@ function yi(e) {
|
|
|
1498
1498
|
matches: k,
|
|
1499
1499
|
fetcherKey: L,
|
|
1500
1500
|
patch: (D, J) => {
|
|
1501
|
-
C.aborted || Xr(D, J, H,
|
|
1501
|
+
C.aborted || Xr(D, J, H, A, o);
|
|
1502
1502
|
}
|
|
1503
1503
|
});
|
|
1504
1504
|
} catch (D) {
|
|
@@ -1514,11 +1514,11 @@ function yi(e) {
|
|
|
1514
1514
|
return {
|
|
1515
1515
|
type: "aborted"
|
|
1516
1516
|
};
|
|
1517
|
-
let
|
|
1518
|
-
if (
|
|
1517
|
+
let M = gt(H, g, l);
|
|
1518
|
+
if (M)
|
|
1519
1519
|
return {
|
|
1520
1520
|
type: "success",
|
|
1521
|
-
matches:
|
|
1521
|
+
matches: M
|
|
1522
1522
|
};
|
|
1523
1523
|
let P = yn(H, g, l, !0);
|
|
1524
1524
|
if (!P || k.length === P.length && k.every((D, J) => D.route.id === P[J].route.id))
|
|
@@ -1529,10 +1529,10 @@ function yi(e) {
|
|
|
1529
1529
|
k = P;
|
|
1530
1530
|
}
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1532
|
+
function Oa(f) {
|
|
1533
1533
|
a = {}, s = En(f, o, void 0, a);
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1535
|
+
function Aa(f, g) {
|
|
1536
1536
|
let C = s == null;
|
|
1537
1537
|
Xr(f, g, s || i, a, o), C && (i = [...i], Ce({}));
|
|
1538
1538
|
}
|
|
@@ -1552,30 +1552,30 @@ function yi(e) {
|
|
|
1552
1552
|
get window() {
|
|
1553
1553
|
return t;
|
|
1554
1554
|
},
|
|
1555
|
-
initialize:
|
|
1556
|
-
subscribe:
|
|
1557
|
-
enableScrollRestoration:
|
|
1558
|
-
navigate:
|
|
1555
|
+
initialize: nn,
|
|
1556
|
+
subscribe: rn,
|
|
1557
|
+
enableScrollRestoration: Ta,
|
|
1558
|
+
navigate: on,
|
|
1559
1559
|
fetch: Y,
|
|
1560
|
-
revalidate:
|
|
1560
|
+
revalidate: an,
|
|
1561
1561
|
// Passthrough to history-aware createHref used by useHref so we get proper
|
|
1562
1562
|
// hash-aware URLs in DOM paths
|
|
1563
1563
|
createHref: (f) => e.history.createHref(f),
|
|
1564
1564
|
encodeLocation: (f) => e.history.encodeLocation(f),
|
|
1565
|
-
getFetcher:
|
|
1566
|
-
deleteFetcher:
|
|
1565
|
+
getFetcher: Mr,
|
|
1566
|
+
deleteFetcher: Na,
|
|
1567
1567
|
dispose: zn,
|
|
1568
|
-
getBlocker:
|
|
1568
|
+
getBlocker: _a,
|
|
1569
1569
|
deleteBlocker: Br,
|
|
1570
|
-
patchRoutes:
|
|
1570
|
+
patchRoutes: Aa,
|
|
1571
1571
|
_internalFetchControllers: le,
|
|
1572
1572
|
_internalActiveDeferreds: Se,
|
|
1573
1573
|
// TODO: Remove setRoutes, it's temporary to avoid dealing with
|
|
1574
1574
|
// updating the tree while validating the update algorithm.
|
|
1575
|
-
_internalSetRoutes:
|
|
1575
|
+
_internalSetRoutes: Oa
|
|
1576
1576
|
}, U;
|
|
1577
1577
|
}
|
|
1578
|
-
function
|
|
1578
|
+
function Ei(e) {
|
|
1579
1579
|
return e != null && ("formData" in e && e.formData != null || "body" in e && e.body !== void 0);
|
|
1580
1580
|
}
|
|
1581
1581
|
function sr(e, t, n, r, o, a, i, s) {
|
|
@@ -1604,11 +1604,11 @@ function sr(e, t, n, r, o, a, i, s) {
|
|
|
1604
1604
|
return r && n !== "/" && (u.pathname = u.pathname === "/" ? n : Qe([n, u.pathname])), ut(u);
|
|
1605
1605
|
}
|
|
1606
1606
|
function Zr(e, t, n, r) {
|
|
1607
|
-
if (!r || !
|
|
1607
|
+
if (!r || !Ei(r))
|
|
1608
1608
|
return {
|
|
1609
1609
|
path: n
|
|
1610
1610
|
};
|
|
1611
|
-
if (r.formMethod && !
|
|
1611
|
+
if (r.formMethod && !Di(r.formMethod))
|
|
1612
1612
|
return {
|
|
1613
1613
|
path: n,
|
|
1614
1614
|
error: Pe(405, {
|
|
@@ -1620,7 +1620,7 @@ function Zr(e, t, n, r) {
|
|
|
1620
1620
|
error: Pe(400, {
|
|
1621
1621
|
type: "invalid-body"
|
|
1622
1622
|
})
|
|
1623
|
-
}), a = r.formMethod || "get", i = e ? a.toUpperCase() : a.toLowerCase(), s =
|
|
1623
|
+
}), a = r.formMethod || "get", i = e ? a.toUpperCase() : a.toLowerCase(), s = Jo(n);
|
|
1624
1624
|
if (r.body !== void 0) {
|
|
1625
1625
|
if (r.formEncType === "text/plain") {
|
|
1626
1626
|
if (!Je(i))
|
|
@@ -1718,7 +1718,7 @@ function Gr(e, t, n, r, o, a, i, s, l, c, u, d, h, w, m, p) {
|
|
|
1718
1718
|
return !1;
|
|
1719
1719
|
if (a)
|
|
1720
1720
|
return lr(B, t.loaderData, t.errors);
|
|
1721
|
-
if (
|
|
1721
|
+
if (Li(t.loaderData, t.matches[K], T) || l.some((te) => te === T.route.id))
|
|
1722
1722
|
return !0;
|
|
1723
1723
|
let ae = t.matches[K], ie = T;
|
|
1724
1724
|
return Yr(T, fe({
|
|
@@ -1732,7 +1732,7 @@ function Gr(e, t, n, r, o, a, i, s, l, c, u, d, h, w, m, p) {
|
|
|
1732
1732
|
defaultShouldRevalidate: N ? !1 : (
|
|
1733
1733
|
// Forced revalidation due to submission, useRevalidator, or X-Remix-Revalidate
|
|
1734
1734
|
s || R.pathname + R.search === S.pathname + S.search || // Search params affect all loaders
|
|
1735
|
-
R.search !== S.search ||
|
|
1735
|
+
R.search !== S.search || $o(ae, ie)
|
|
1736
1736
|
)
|
|
1737
1737
|
}));
|
|
1738
1738
|
}), b = [];
|
|
@@ -1751,7 +1751,7 @@ function Gr(e, t, n, r, o, a, i, s, l, c, u, d, h, w, m, p) {
|
|
|
1751
1751
|
});
|
|
1752
1752
|
return;
|
|
1753
1753
|
}
|
|
1754
|
-
let ae = t.fetchers.get(K), ie =
|
|
1754
|
+
let ae = t.fetchers.get(K), ie = zt(B, T.path), te = !1;
|
|
1755
1755
|
h.has(K) ? te = !1 : c.has(K) ? (c.delete(K), te = !0) : ae && ae.state !== "idle" && ae.data === void 0 ? te = s : te = Yr(ie, fe({
|
|
1756
1756
|
currentUrl: R,
|
|
1757
1757
|
currentParams: t.matches[t.matches.length - 1].params,
|
|
@@ -1779,7 +1779,7 @@ function lr(e, t, n) {
|
|
|
1779
1779
|
let r = t != null && t[e.id] !== void 0, o = n != null && n[e.id] !== void 0;
|
|
1780
1780
|
return !r && o ? !1 : typeof e.loader == "function" && e.loader.hydrate === !0 ? !0 : !r && !o;
|
|
1781
1781
|
}
|
|
1782
|
-
function
|
|
1782
|
+
function Li(e, t, n) {
|
|
1783
1783
|
let r = (
|
|
1784
1784
|
// [a] -> [a, b]
|
|
1785
1785
|
!t || // [a, b] -> [a, c]
|
|
@@ -1787,7 +1787,7 @@ function wi(e, t, n) {
|
|
|
1787
1787
|
), o = e[n.route.id] === void 0;
|
|
1788
1788
|
return r || o;
|
|
1789
1789
|
}
|
|
1790
|
-
function
|
|
1790
|
+
function $o(e, t) {
|
|
1791
1791
|
let n = e.route.path;
|
|
1792
1792
|
return (
|
|
1793
1793
|
// param change for this match, /users/123 -> /users/456
|
|
@@ -1812,16 +1812,16 @@ function Xr(e, t, n, r, o) {
|
|
|
1812
1812
|
I(c, "No route found to patch children into: routeId = " + e), c.children || (c.children = []), i = c.children;
|
|
1813
1813
|
} else
|
|
1814
1814
|
i = n;
|
|
1815
|
-
let s = t.filter((c) => !i.some((u) =>
|
|
1815
|
+
let s = t.filter((c) => !i.some((u) => zo(c, u))), l = En(s, o, [e || "_", "patch", String(((a = i) == null ? void 0 : a.length) || "0")], r);
|
|
1816
1816
|
i.push(...l);
|
|
1817
1817
|
}
|
|
1818
|
-
function
|
|
1818
|
+
function zo(e, t) {
|
|
1819
1819
|
return "id" in e && "id" in t && e.id === t.id ? !0 : e.index === t.index && e.path === t.path && e.caseSensitive === t.caseSensitive ? (!e.children || e.children.length === 0) && (!t.children || t.children.length === 0) ? !0 : e.children.every((n, r) => {
|
|
1820
1820
|
var o;
|
|
1821
|
-
return (o = t.children) == null ? void 0 : o.some((a) =>
|
|
1821
|
+
return (o = t.children) == null ? void 0 : o.some((a) => zo(n, a));
|
|
1822
1822
|
}) : !1;
|
|
1823
1823
|
}
|
|
1824
|
-
async function
|
|
1824
|
+
async function Ri(e, t, n) {
|
|
1825
1825
|
if (!e.lazy)
|
|
1826
1826
|
return;
|
|
1827
1827
|
let r = await e.lazy();
|
|
@@ -1834,13 +1834,13 @@ async function bi(e, t, n) {
|
|
|
1834
1834
|
let l = o[i] !== void 0 && // This property isn't static since it should always be updated based
|
|
1835
1835
|
// on the route updates
|
|
1836
1836
|
i !== "hasErrorBoundary";
|
|
1837
|
-
we(!l, 'Route "' + o.id + '" has a static property "' + i + '" defined but its lazy function is also returning a value for this property. ' + ('The lazy route property "' + i + '" will be ignored.')), !l && !
|
|
1837
|
+
we(!l, 'Route "' + o.id + '" has a static property "' + i + '" defined but its lazy function is also returning a value for this property. ' + ('The lazy route property "' + i + '" will be ignored.')), !l && !Ka.has(i) && (a[i] = r[i]);
|
|
1838
1838
|
}
|
|
1839
1839
|
Object.assign(o, a), Object.assign(o, fe({}, t(o), {
|
|
1840
1840
|
lazy: void 0
|
|
1841
1841
|
}));
|
|
1842
1842
|
}
|
|
1843
|
-
async function
|
|
1843
|
+
async function xi(e) {
|
|
1844
1844
|
let {
|
|
1845
1845
|
matches: t
|
|
1846
1846
|
} = e, n = t.filter((o) => o.shouldLoad);
|
|
@@ -1848,12 +1848,12 @@ async function Si(e) {
|
|
|
1848
1848
|
[n[i].route.id]: a
|
|
1849
1849
|
}), {});
|
|
1850
1850
|
}
|
|
1851
|
-
async function
|
|
1852
|
-
let u = a.map((w) => w.route.lazy ?
|
|
1851
|
+
async function ki(e, t, n, r, o, a, i, s, l, c) {
|
|
1852
|
+
let u = a.map((w) => w.route.lazy ? Ri(w.route, l, s) : void 0), d = a.map((w, m) => {
|
|
1853
1853
|
let p = u[m], v = o.some((S) => S.route.id === w.route.id);
|
|
1854
1854
|
return fe({}, w, {
|
|
1855
1855
|
shouldLoad: v,
|
|
1856
|
-
resolve: async (S) => (S && r.method === "GET" && (w.route.lazy || w.route.loader) && (v = !0), v ?
|
|
1856
|
+
resolve: async (S) => (S && r.method === "GET" && (w.route.lazy || w.route.loader) && (v = !0), v ? Ni(t, r, w, p, S, c) : Promise.resolve({
|
|
1857
1857
|
type: oe.data,
|
|
1858
1858
|
result: void 0
|
|
1859
1859
|
}))
|
|
@@ -1871,7 +1871,7 @@ async function Ci(e, t, n, r, o, a, i, s, l, c) {
|
|
|
1871
1871
|
}
|
|
1872
1872
|
return h;
|
|
1873
1873
|
}
|
|
1874
|
-
async function
|
|
1874
|
+
async function Ni(e, t, n, r, o, a) {
|
|
1875
1875
|
let i, s, l = (c) => {
|
|
1876
1876
|
let u, d = new Promise((m, p) => u = p);
|
|
1877
1877
|
s = () => u(), t.signal.addEventListener("abort", s);
|
|
@@ -1943,12 +1943,12 @@ async function Ei(e, t, n, r, o, a) {
|
|
|
1943
1943
|
}
|
|
1944
1944
|
return i;
|
|
1945
1945
|
}
|
|
1946
|
-
async function
|
|
1946
|
+
async function _i(e) {
|
|
1947
1947
|
let {
|
|
1948
1948
|
result: t,
|
|
1949
1949
|
type: n
|
|
1950
1950
|
} = e;
|
|
1951
|
-
if (
|
|
1951
|
+
if (Wo(t)) {
|
|
1952
1952
|
let d;
|
|
1953
1953
|
try {
|
|
1954
1954
|
let h = t.headers.get("Content-Type");
|
|
@@ -1986,17 +1986,17 @@ async function Li(e) {
|
|
|
1986
1986
|
return {
|
|
1987
1987
|
type: oe.error,
|
|
1988
1988
|
error: new Rn(((r = t.init) == null ? void 0 : r.status) || 500, void 0, t.data),
|
|
1989
|
-
statusCode:
|
|
1989
|
+
statusCode: Kt(t) ? t.status : void 0,
|
|
1990
1990
|
headers: (o = t.init) != null && o.headers ? new Headers(t.init.headers) : void 0
|
|
1991
1991
|
};
|
|
1992
1992
|
}
|
|
1993
1993
|
return {
|
|
1994
1994
|
type: oe.error,
|
|
1995
1995
|
error: t,
|
|
1996
|
-
statusCode:
|
|
1996
|
+
statusCode: Kt(t) ? t.status : void 0
|
|
1997
1997
|
};
|
|
1998
1998
|
}
|
|
1999
|
-
if (
|
|
1999
|
+
if (Mi(t)) {
|
|
2000
2000
|
var s, l;
|
|
2001
2001
|
return {
|
|
2002
2002
|
type: oe.deferred,
|
|
@@ -2019,7 +2019,7 @@ async function Li(e) {
|
|
|
2019
2019
|
data: t
|
|
2020
2020
|
};
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2022
|
+
function Ti(e, t, n, r, o, a) {
|
|
2023
2023
|
let i = e.headers.get("Location");
|
|
2024
2024
|
if (I(i, "Redirects returned/thrown from loaders/actions must have a Location header"), !Cr.test(i)) {
|
|
2025
2025
|
let s = r.slice(0, r.findIndex((l) => l.route.id === n) + 1);
|
|
@@ -2036,7 +2036,7 @@ function Qr(e, t, n) {
|
|
|
2036
2036
|
return e;
|
|
2037
2037
|
}
|
|
2038
2038
|
function Rt(e, t, n, r) {
|
|
2039
|
-
let o = e.createURL(
|
|
2039
|
+
let o = e.createURL(Jo(t)).toString(), a = {
|
|
2040
2040
|
signal: n
|
|
2041
2041
|
};
|
|
2042
2042
|
if (r && Je(r.formMethod)) {
|
|
@@ -2062,7 +2062,7 @@ function eo(e) {
|
|
|
2062
2062
|
t.append(n, r);
|
|
2063
2063
|
return t;
|
|
2064
2064
|
}
|
|
2065
|
-
function
|
|
2065
|
+
function Pi(e, t, n, r, o) {
|
|
2066
2066
|
let a = {}, i = null, s, l = !1, c = {}, u = n && Fe(n[1]) ? n[1].error : void 0;
|
|
2067
2067
|
return e.forEach((d) => {
|
|
2068
2068
|
if (!(d.route.id in t))
|
|
@@ -2075,7 +2075,7 @@ function xi(e, t, n, r, o) {
|
|
|
2075
2075
|
let p = yt(e, h);
|
|
2076
2076
|
i[p.route.id] == null && (i[p.route.id] = m);
|
|
2077
2077
|
}
|
|
2078
|
-
a[h] = void 0, l || (l = !0, s =
|
|
2078
|
+
a[h] = void 0, l || (l = !0, s = Kt(w.error) ? w.error.status : 500), w.headers && (c[h] = w.headers);
|
|
2079
2079
|
} else
|
|
2080
2080
|
ct(w) ? (r.set(h, w.deferredData), a[h] = w.deferredData.data, w.statusCode != null && w.statusCode !== 200 && !l && (s = w.statusCode), w.headers && (c[h] = w.headers)) : (a[h] = w.data, w.statusCode && w.statusCode !== 200 && !l && (s = w.statusCode), w.headers && (c[h] = w.headers));
|
|
2081
2081
|
}), u !== void 0 && n && (i = {
|
|
@@ -2091,7 +2091,7 @@ function to(e, t, n, r, o, a, i) {
|
|
|
2091
2091
|
let {
|
|
2092
2092
|
loaderData: s,
|
|
2093
2093
|
errors: l
|
|
2094
|
-
} =
|
|
2094
|
+
} = Pi(t, n, r, i);
|
|
2095
2095
|
return o.forEach((c) => {
|
|
2096
2096
|
let {
|
|
2097
2097
|
key: u,
|
|
@@ -2163,7 +2163,7 @@ function Pe(e, t) {
|
|
|
2163
2163
|
} = t === void 0 ? {} : t, s = "Unknown Server Error", l = "Unknown @remix-run/router error";
|
|
2164
2164
|
return e === 400 ? (s = "Bad Request", o && n && r ? l = "You made a " + o + ' request to "' + n + '" but ' + ('did not provide a `loader` for route "' + r + '", ') + "so there is no way to handle the request." : a === "defer-action" ? l = "defer() is not supported in actions" : a === "invalid-body" && (l = "Unable to encode submission body")) : e === 403 ? (s = "Forbidden", l = 'Route "' + r + '" does not match URL "' + n + '"') : e === 404 ? (s = "Not Found", l = 'No route matches URL "' + n + '"') : e === 405 && (s = "Method Not Allowed", o && n && r ? l = "You made a " + o.toUpperCase() + ' request to "' + n + '" but ' + ('did not provide an `action` for route "' + r + '", ') + "so there is no way to handle the request." : o && (l = 'Invalid request method "' + o.toUpperCase() + '"')), new Rn(e || 500, s, new Error(l), !0);
|
|
2165
2165
|
}
|
|
2166
|
-
function
|
|
2166
|
+
function hn(e) {
|
|
2167
2167
|
let t = Object.entries(e);
|
|
2168
2168
|
for (let n = t.length - 1; n >= 0; n--) {
|
|
2169
2169
|
let [r, o] = t[n];
|
|
@@ -2174,17 +2174,17 @@ function fn(e) {
|
|
|
2174
2174
|
};
|
|
2175
2175
|
}
|
|
2176
2176
|
}
|
|
2177
|
-
function
|
|
2177
|
+
function Jo(e) {
|
|
2178
2178
|
let t = typeof e == "string" ? ft(e) : e;
|
|
2179
2179
|
return ut(fe({}, t, {
|
|
2180
2180
|
hash: ""
|
|
2181
2181
|
}));
|
|
2182
2182
|
}
|
|
2183
|
-
function
|
|
2183
|
+
function Oi(e, t) {
|
|
2184
2184
|
return e.pathname !== t.pathname || e.search !== t.search ? !1 : e.hash === "" ? t.hash !== "" : e.hash === t.hash ? !0 : t.hash !== "";
|
|
2185
2185
|
}
|
|
2186
|
-
function
|
|
2187
|
-
return
|
|
2186
|
+
function Ai(e) {
|
|
2187
|
+
return Wo(e.result) && vi.has(e.result.status);
|
|
2188
2188
|
}
|
|
2189
2189
|
function ct(e) {
|
|
2190
2190
|
return e.type === oe.deferred;
|
|
@@ -2198,32 +2198,32 @@ function vt(e) {
|
|
|
2198
2198
|
function ao(e) {
|
|
2199
2199
|
return typeof e == "object" && e != null && "type" in e && "data" in e && "init" in e && e.type === "DataWithResponseInit";
|
|
2200
2200
|
}
|
|
2201
|
-
function
|
|
2201
|
+
function Mi(e) {
|
|
2202
2202
|
let t = e;
|
|
2203
2203
|
return t && typeof t == "object" && typeof t.data == "object" && typeof t.subscribe == "function" && typeof t.cancel == "function" && typeof t.resolveData == "function";
|
|
2204
2204
|
}
|
|
2205
|
-
function
|
|
2205
|
+
function Wo(e) {
|
|
2206
2206
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.headers == "object" && typeof e.body < "u";
|
|
2207
2207
|
}
|
|
2208
|
-
function
|
|
2209
|
-
return
|
|
2208
|
+
function Di(e) {
|
|
2209
|
+
return yi.has(e.toLowerCase());
|
|
2210
2210
|
}
|
|
2211
2211
|
function Je(e) {
|
|
2212
|
-
return
|
|
2212
|
+
return mi.has(e.toLowerCase());
|
|
2213
2213
|
}
|
|
2214
|
-
async function
|
|
2214
|
+
async function Fi(e, t, n, r, o) {
|
|
2215
2215
|
let a = Object.entries(t);
|
|
2216
2216
|
for (let i = 0; i < a.length; i++) {
|
|
2217
2217
|
let [s, l] = a[i], c = e.find((h) => (h == null ? void 0 : h.route.id) === s);
|
|
2218
2218
|
if (!c)
|
|
2219
2219
|
continue;
|
|
2220
|
-
let u = r.find((h) => h.route.id === c.route.id), d = u != null &&
|
|
2220
|
+
let u = r.find((h) => h.route.id === c.route.id), d = u != null && !$o(u, c) && (o && o[c.route.id]) !== void 0;
|
|
2221
2221
|
ct(l) && d && await Er(l, n, !1).then((h) => {
|
|
2222
2222
|
h && (t[s] = h);
|
|
2223
2223
|
});
|
|
2224
2224
|
}
|
|
2225
2225
|
}
|
|
2226
|
-
async function
|
|
2226
|
+
async function Ii(e, t, n) {
|
|
2227
2227
|
for (let r = 0; r < n.length; r++) {
|
|
2228
2228
|
let {
|
|
2229
2229
|
key: o,
|
|
@@ -2258,11 +2258,11 @@ async function Er(e, t, n) {
|
|
|
2258
2258
|
function Lr(e) {
|
|
2259
2259
|
return new URLSearchParams(e).getAll("index").some((t) => t === "");
|
|
2260
2260
|
}
|
|
2261
|
-
function
|
|
2261
|
+
function zt(e, t) {
|
|
2262
2262
|
let n = typeof t == "string" ? ft(t).search : t.search;
|
|
2263
2263
|
if (e[e.length - 1].route.index && Lr(n || ""))
|
|
2264
2264
|
return e[e.length - 1];
|
|
2265
|
-
let r =
|
|
2265
|
+
let r = Uo(e);
|
|
2266
2266
|
return r[r.length - 1];
|
|
2267
2267
|
}
|
|
2268
2268
|
function io(e) {
|
|
@@ -2325,7 +2325,7 @@ function Yn(e, t) {
|
|
|
2325
2325
|
text: void 0
|
|
2326
2326
|
};
|
|
2327
2327
|
}
|
|
2328
|
-
function
|
|
2328
|
+
function Bi(e, t) {
|
|
2329
2329
|
return {
|
|
2330
2330
|
state: "submitting",
|
|
2331
2331
|
location: e,
|
|
@@ -2358,7 +2358,7 @@ function It(e, t) {
|
|
|
2358
2358
|
data: t
|
|
2359
2359
|
};
|
|
2360
2360
|
}
|
|
2361
|
-
function
|
|
2361
|
+
function Hi(e, t) {
|
|
2362
2362
|
return {
|
|
2363
2363
|
state: "submitting",
|
|
2364
2364
|
formMethod: e.formMethod,
|
|
@@ -2382,9 +2382,9 @@ function st(e) {
|
|
|
2382
2382
|
data: e
|
|
2383
2383
|
};
|
|
2384
2384
|
}
|
|
2385
|
-
function
|
|
2385
|
+
function Ui(e, t) {
|
|
2386
2386
|
try {
|
|
2387
|
-
let n = e.sessionStorage.getItem(
|
|
2387
|
+
let n = e.sessionStorage.getItem(jo);
|
|
2388
2388
|
if (n) {
|
|
2389
2389
|
let r = JSON.parse(n);
|
|
2390
2390
|
for (let [o, a] of Object.entries(r || {}))
|
|
@@ -2393,13 +2393,13 @@ function Di(e, t) {
|
|
|
2393
2393
|
} catch {
|
|
2394
2394
|
}
|
|
2395
2395
|
}
|
|
2396
|
-
function
|
|
2396
|
+
function Vi(e, t) {
|
|
2397
2397
|
if (t.size > 0) {
|
|
2398
2398
|
let n = {};
|
|
2399
2399
|
for (let [r, o] of t)
|
|
2400
2400
|
n[r] = [...o];
|
|
2401
2401
|
try {
|
|
2402
|
-
e.sessionStorage.setItem(
|
|
2402
|
+
e.sessionStorage.setItem(jo, JSON.stringify(n));
|
|
2403
2403
|
} catch (r) {
|
|
2404
2404
|
we(!1, "Failed to save applied view transitions in sessionStorage (" + r + ").");
|
|
2405
2405
|
}
|
|
@@ -2427,14 +2427,14 @@ function xn() {
|
|
|
2427
2427
|
}
|
|
2428
2428
|
const _t = /* @__PURE__ */ y.createContext(null);
|
|
2429
2429
|
process.env.NODE_ENV !== "production" && (_t.displayName = "DataRouter");
|
|
2430
|
-
const
|
|
2431
|
-
process.env.NODE_ENV !== "production" && (
|
|
2432
|
-
const
|
|
2433
|
-
process.env.NODE_ENV !== "production" && (
|
|
2430
|
+
const An = /* @__PURE__ */ y.createContext(null);
|
|
2431
|
+
process.env.NODE_ENV !== "production" && (An.displayName = "DataRouterState");
|
|
2432
|
+
const ji = /* @__PURE__ */ y.createContext(null);
|
|
2433
|
+
process.env.NODE_ENV !== "production" && (ji.displayName = "Await");
|
|
2434
2434
|
const Ve = /* @__PURE__ */ y.createContext(null);
|
|
2435
2435
|
process.env.NODE_ENV !== "production" && (Ve.displayName = "Navigation");
|
|
2436
|
-
const
|
|
2437
|
-
process.env.NODE_ENV !== "production" && (
|
|
2436
|
+
const Mn = /* @__PURE__ */ y.createContext(null);
|
|
2437
|
+
process.env.NODE_ENV !== "production" && (Mn.displayName = "Location");
|
|
2438
2438
|
const je = /* @__PURE__ */ y.createContext({
|
|
2439
2439
|
outlet: null,
|
|
2440
2440
|
matches: [],
|
|
@@ -2443,7 +2443,7 @@ const je = /* @__PURE__ */ y.createContext({
|
|
|
2443
2443
|
process.env.NODE_ENV !== "production" && (je.displayName = "Route");
|
|
2444
2444
|
const Rr = /* @__PURE__ */ y.createContext(null);
|
|
2445
2445
|
process.env.NODE_ENV !== "production" && (Rr.displayName = "RouteError");
|
|
2446
|
-
function
|
|
2446
|
+
function $i(e, t) {
|
|
2447
2447
|
let {
|
|
2448
2448
|
relative: n
|
|
2449
2449
|
} = t === void 0 ? {} : t;
|
|
@@ -2460,7 +2460,7 @@ function Bi(e, t) {
|
|
|
2460
2460
|
hash: a,
|
|
2461
2461
|
pathname: i,
|
|
2462
2462
|
search: s
|
|
2463
|
-
} =
|
|
2463
|
+
} = Xt(e, {
|
|
2464
2464
|
relative: n
|
|
2465
2465
|
}), l = i;
|
|
2466
2466
|
return r !== "/" && (l = i === "/" ? r : Qe([r, i])), o.createHref({
|
|
@@ -2470,7 +2470,7 @@ function Bi(e, t) {
|
|
|
2470
2470
|
});
|
|
2471
2471
|
}
|
|
2472
2472
|
function Tt() {
|
|
2473
|
-
return y.useContext(
|
|
2473
|
+
return y.useContext(Mn) != null;
|
|
2474
2474
|
}
|
|
2475
2475
|
function et() {
|
|
2476
2476
|
return Tt() || (process.env.NODE_ENV !== "production" ? I(
|
|
@@ -2478,19 +2478,19 @@ function et() {
|
|
|
2478
2478
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
2479
2479
|
// router loaded. We can help them understand how to avoid that.
|
|
2480
2480
|
"useLocation() may be used only in the context of a <Router> component."
|
|
2481
|
-
) : I(!1)), y.useContext(
|
|
2481
|
+
) : I(!1)), y.useContext(Mn).location;
|
|
2482
2482
|
}
|
|
2483
|
-
const
|
|
2484
|
-
function
|
|
2483
|
+
const qo = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
2484
|
+
function Zo(e) {
|
|
2485
2485
|
y.useContext(Ve).static || y.useLayoutEffect(e);
|
|
2486
2486
|
}
|
|
2487
2487
|
function Dn() {
|
|
2488
2488
|
let {
|
|
2489
2489
|
isDataRoute: e
|
|
2490
2490
|
} = y.useContext(je);
|
|
2491
|
-
return e ?
|
|
2491
|
+
return e ? os() : zi();
|
|
2492
2492
|
}
|
|
2493
|
-
function
|
|
2493
|
+
function zi() {
|
|
2494
2494
|
Tt() || (process.env.NODE_ENV !== "production" ? I(
|
|
2495
2495
|
!1,
|
|
2496
2496
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -2506,10 +2506,10 @@ function Hi() {
|
|
|
2506
2506
|
} = y.useContext(je), {
|
|
2507
2507
|
pathname: a
|
|
2508
2508
|
} = et(), i = JSON.stringify(Pn(o, n.v7_relativeSplatPath)), s = y.useRef(!1);
|
|
2509
|
-
return
|
|
2509
|
+
return Zo(() => {
|
|
2510
2510
|
s.current = !0;
|
|
2511
2511
|
}), y.useCallback(function(c, u) {
|
|
2512
|
-
if (u === void 0 && (u = {}), process.env.NODE_ENV !== "production" && we(s.current,
|
|
2512
|
+
if (u === void 0 && (u = {}), process.env.NODE_ENV !== "production" && we(s.current, qo), !s.current) return;
|
|
2513
2513
|
if (typeof c == "number") {
|
|
2514
2514
|
r.go(c);
|
|
2515
2515
|
return;
|
|
@@ -2518,10 +2518,10 @@ function Hi() {
|
|
|
2518
2518
|
e == null && t !== "/" && (d.pathname = d.pathname === "/" ? t : Qe([t, d.pathname])), (u.replace ? r.replace : r.push)(d, u.state, u);
|
|
2519
2519
|
}, [t, r, i, a, e]);
|
|
2520
2520
|
}
|
|
2521
|
-
const
|
|
2522
|
-
function
|
|
2521
|
+
const Ji = /* @__PURE__ */ y.createContext(null);
|
|
2522
|
+
function Wi(e) {
|
|
2523
2523
|
let t = y.useContext(je).outlet;
|
|
2524
|
-
return t && /* @__PURE__ */ y.createElement(
|
|
2524
|
+
return t && /* @__PURE__ */ y.createElement(Ji.Provider, {
|
|
2525
2525
|
value: e
|
|
2526
2526
|
}, t);
|
|
2527
2527
|
}
|
|
@@ -2531,7 +2531,7 @@ function Nd() {
|
|
|
2531
2531
|
} = y.useContext(je), t = e[e.length - 1];
|
|
2532
2532
|
return t ? t.params : {};
|
|
2533
2533
|
}
|
|
2534
|
-
function
|
|
2534
|
+
function Xt(e, t) {
|
|
2535
2535
|
let {
|
|
2536
2536
|
relative: n
|
|
2537
2537
|
} = t === void 0 ? {} : t, {
|
|
@@ -2543,7 +2543,7 @@ function Yt(e, t) {
|
|
|
2543
2543
|
} = et(), i = JSON.stringify(Pn(o, r.v7_relativeSplatPath));
|
|
2544
2544
|
return y.useMemo(() => On(e, JSON.parse(i), a, n === "path"), [e, i, a, n]);
|
|
2545
2545
|
}
|
|
2546
|
-
function
|
|
2546
|
+
function qi(e, t, n, r) {
|
|
2547
2547
|
Tt() || (process.env.NODE_ENV !== "production" ? I(
|
|
2548
2548
|
!1,
|
|
2549
2549
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -2558,7 +2558,7 @@ function ji(e, t, n, r) {
|
|
|
2558
2558
|
} = y.useContext(je), s = i[i.length - 1], l = s ? s.params : {}, c = s ? s.pathname : "/", u = s ? s.pathnameBase : "/", d = s && s.route;
|
|
2559
2559
|
if (process.env.NODE_ENV !== "production") {
|
|
2560
2560
|
let S = d && d.path || "";
|
|
2561
|
-
|
|
2561
|
+
Go(c, !d || S.endsWith("*"), "You rendered descendant <Routes> (or called `useRoutes()`) at " + ('"' + c + '" (under <Route path="' + S + '">) 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.
|
|
2562
2562
|
|
|
2563
2563
|
` + ('Please change the parent <Route path="' + S + '"> to <Route ') + ('path="' + (S === "/" ? "*" : S + "/*") + '">.'));
|
|
2564
2564
|
}
|
|
@@ -2572,7 +2572,7 @@ function ji(e, t, n, r) {
|
|
|
2572
2572
|
let v = !a && n && n.matches && n.matches.length > 0 ? n.matches : gt(e, {
|
|
2573
2573
|
pathname: p
|
|
2574
2574
|
});
|
|
2575
|
-
return process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && we(d || v != null, 'No routes matched location "' + w.pathname + w.search + w.hash + '" '), process.env.NODE_ENV !== "production" && we(v == null || v[v.length - 1].route.element !== void 0 || v[v.length - 1].route.Component !== void 0 || v[v.length - 1].route.lazy !== void 0, 'Matched leaf route at location "' + w.pathname + w.search + w.hash + '" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.')),
|
|
2575
|
+
return process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && we(d || v != null, 'No routes matched location "' + w.pathname + w.search + w.hash + '" '), process.env.NODE_ENV !== "production" && we(v == null || v[v.length - 1].route.element !== void 0 || v[v.length - 1].route.Component !== void 0 || v[v.length - 1].route.lazy !== void 0, 'Matched leaf route at location "' + w.pathname + w.search + w.hash + '" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.')), Xi(v && v.map((S) => Object.assign({}, S, {
|
|
2576
2576
|
params: Object.assign({}, l, S.params),
|
|
2577
2577
|
pathname: Qe([
|
|
2578
2578
|
u,
|
|
@@ -2586,8 +2586,8 @@ function ji(e, t, n, r) {
|
|
|
2586
2586
|
])
|
|
2587
2587
|
})), i, n, r);
|
|
2588
2588
|
}
|
|
2589
|
-
function
|
|
2590
|
-
let e =
|
|
2589
|
+
function Zi() {
|
|
2590
|
+
let e = rs(), t = Kt(e) ? e.status + " " + e.statusText : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, r = "rgba(200,200,200, 0.5)", o = {
|
|
2591
2591
|
padding: "0.5rem",
|
|
2592
2592
|
backgroundColor: r
|
|
2593
2593
|
}, a = {
|
|
@@ -2606,8 +2606,8 @@ function $i() {
|
|
|
2606
2606
|
style: o
|
|
2607
2607
|
}, n) : null, i);
|
|
2608
2608
|
}
|
|
2609
|
-
const
|
|
2610
|
-
class
|
|
2609
|
+
const Ki = /* @__PURE__ */ y.createElement(Zi, null);
|
|
2610
|
+
class Gi extends y.Component {
|
|
2611
2611
|
constructor(t) {
|
|
2612
2612
|
super(t), this.state = {
|
|
2613
2613
|
location: t.location,
|
|
@@ -2643,7 +2643,7 @@ class Ji extends y.Component {
|
|
|
2643
2643
|
})) : this.props.children;
|
|
2644
2644
|
}
|
|
2645
2645
|
}
|
|
2646
|
-
function
|
|
2646
|
+
function Yi(e) {
|
|
2647
2647
|
let {
|
|
2648
2648
|
routeContext: t,
|
|
2649
2649
|
match: n,
|
|
@@ -2653,7 +2653,7 @@ function Wi(e) {
|
|
|
2653
2653
|
value: t
|
|
2654
2654
|
}, r);
|
|
2655
2655
|
}
|
|
2656
|
-
function
|
|
2656
|
+
function Xi(e, t, n, r) {
|
|
2657
2657
|
var o;
|
|
2658
2658
|
if (t === void 0 && (t = []), n === void 0 && (n = null), r === void 0 && (r = null), e == null) {
|
|
2659
2659
|
var a;
|
|
@@ -2688,10 +2688,10 @@ function qi(e, t, n, r) {
|
|
|
2688
2688
|
}
|
|
2689
2689
|
return i.reduceRight((u, d, h) => {
|
|
2690
2690
|
let w, m = !1, p = null, v = null;
|
|
2691
|
-
n && (w = s && d.route.id ? s[d.route.id] : void 0, p = d.route.errorElement ||
|
|
2691
|
+
n && (w = s && d.route.id ? s[d.route.id] : void 0, p = d.route.errorElement || Ki, l && (c < 0 && h === 0 ? (Go("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), m = !0, v = null) : c === h && (m = !0, v = d.route.hydrateFallbackElement || null)));
|
|
2692
2692
|
let R = t.concat(i.slice(0, h + 1)), S = () => {
|
|
2693
2693
|
let x;
|
|
2694
|
-
return w ? x = p : m ? x = v : d.route.Component ? x = /* @__PURE__ */ y.createElement(d.route.Component, null) : d.route.element ? x = d.route.element : x = u, /* @__PURE__ */ y.createElement(
|
|
2694
|
+
return w ? x = p : m ? x = v : d.route.Component ? x = /* @__PURE__ */ y.createElement(d.route.Component, null) : d.route.element ? x = d.route.element : x = u, /* @__PURE__ */ y.createElement(Yi, {
|
|
2695
2695
|
match: d,
|
|
2696
2696
|
routeContext: {
|
|
2697
2697
|
outlet: u,
|
|
@@ -2701,7 +2701,7 @@ function qi(e, t, n, r) {
|
|
|
2701
2701
|
children: x
|
|
2702
2702
|
});
|
|
2703
2703
|
};
|
|
2704
|
-
return n && (d.route.ErrorBoundary || d.route.errorElement || h === 0) ? /* @__PURE__ */ y.createElement(
|
|
2704
|
+
return n && (d.route.ErrorBoundary || d.route.errorElement || h === 0) ? /* @__PURE__ */ y.createElement(Gi, {
|
|
2705
2705
|
location: n.location,
|
|
2706
2706
|
revalidation: n.revalidation,
|
|
2707
2707
|
component: p,
|
|
@@ -2715,60 +2715,60 @@ function qi(e, t, n, r) {
|
|
|
2715
2715
|
}) : S();
|
|
2716
2716
|
}, null);
|
|
2717
2717
|
}
|
|
2718
|
-
var
|
|
2718
|
+
var Ko = /* @__PURE__ */ function(e) {
|
|
2719
2719
|
return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e;
|
|
2720
|
-
}(
|
|
2720
|
+
}(Ko || {}), Gt = /* @__PURE__ */ function(e) {
|
|
2721
2721
|
return e.UseBlocker = "useBlocker", e.UseLoaderData = "useLoaderData", e.UseActionData = "useActionData", e.UseRouteError = "useRouteError", e.UseNavigation = "useNavigation", e.UseRouteLoaderData = "useRouteLoaderData", e.UseMatches = "useMatches", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e.UseRouteId = "useRouteId", e;
|
|
2722
|
-
}(
|
|
2722
|
+
}(Gt || {});
|
|
2723
2723
|
function xr(e) {
|
|
2724
2724
|
return e + " must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router.";
|
|
2725
2725
|
}
|
|
2726
|
-
function
|
|
2726
|
+
function Qi(e) {
|
|
2727
2727
|
let t = y.useContext(_t);
|
|
2728
2728
|
return t || (process.env.NODE_ENV !== "production" ? I(!1, xr(e)) : I(!1)), t;
|
|
2729
2729
|
}
|
|
2730
|
-
function
|
|
2731
|
-
let t = y.useContext(
|
|
2730
|
+
function es(e) {
|
|
2731
|
+
let t = y.useContext(An);
|
|
2732
2732
|
return t || (process.env.NODE_ENV !== "production" ? I(!1, xr(e)) : I(!1)), t;
|
|
2733
2733
|
}
|
|
2734
|
-
function
|
|
2734
|
+
function ts(e) {
|
|
2735
2735
|
let t = y.useContext(je);
|
|
2736
2736
|
return t || (process.env.NODE_ENV !== "production" ? I(!1, xr(e)) : I(!1)), t;
|
|
2737
2737
|
}
|
|
2738
2738
|
function kr(e) {
|
|
2739
|
-
let t =
|
|
2739
|
+
let t = ts(e), n = t.matches[t.matches.length - 1];
|
|
2740
2740
|
return n.route.id || (process.env.NODE_ENV !== "production" ? I(!1, e + ' can only be used on routes that contain a unique "id"') : I(!1)), n.route.id;
|
|
2741
2741
|
}
|
|
2742
|
-
function
|
|
2743
|
-
return kr(
|
|
2742
|
+
function ns() {
|
|
2743
|
+
return kr(Gt.UseRouteId);
|
|
2744
2744
|
}
|
|
2745
|
-
function
|
|
2745
|
+
function rs() {
|
|
2746
2746
|
var e;
|
|
2747
|
-
let t = y.useContext(Rr), n =
|
|
2747
|
+
let t = y.useContext(Rr), n = es(Gt.UseRouteError), r = kr(Gt.UseRouteError);
|
|
2748
2748
|
return t !== void 0 ? t : (e = n.errors) == null ? void 0 : e[r];
|
|
2749
2749
|
}
|
|
2750
|
-
function
|
|
2750
|
+
function os() {
|
|
2751
2751
|
let {
|
|
2752
2752
|
router: e
|
|
2753
|
-
} =
|
|
2754
|
-
return
|
|
2753
|
+
} = Qi(Ko.UseNavigateStable), t = kr(Gt.UseNavigateStable), n = y.useRef(!1);
|
|
2754
|
+
return Zo(() => {
|
|
2755
2755
|
n.current = !0;
|
|
2756
2756
|
}), y.useCallback(function(o, a) {
|
|
2757
|
-
a === void 0 && (a = {}), process.env.NODE_ENV !== "production" && we(n.current,
|
|
2757
|
+
a === void 0 && (a = {}), process.env.NODE_ENV !== "production" && we(n.current, qo), n.current && (typeof o == "number" ? e.navigate(o) : e.navigate(o, xn({
|
|
2758
2758
|
fromRouteId: t
|
|
2759
2759
|
}, a)));
|
|
2760
2760
|
}, [e, t]);
|
|
2761
2761
|
}
|
|
2762
2762
|
const so = {};
|
|
2763
|
-
function
|
|
2763
|
+
function Go(e, t, n) {
|
|
2764
2764
|
!t && !so[e] && (so[e] = !0, process.env.NODE_ENV !== "production" && we(!1, n));
|
|
2765
2765
|
}
|
|
2766
2766
|
const lo = {};
|
|
2767
|
-
function
|
|
2767
|
+
function as(e, t) {
|
|
2768
2768
|
process.env.NODE_ENV !== "production" && !lo[t] && (lo[t] = !0, console.warn(t));
|
|
2769
2769
|
}
|
|
2770
|
-
const xt = (e, t, n) =>
|
|
2771
|
-
function
|
|
2770
|
+
const xt = (e, t, n) => as(e, "⚠️ React Router Future Flag Warning: " + t + ". " + ("You can use the `" + e + "` future flag to opt-in early. ") + ("For more information, see " + n + "."));
|
|
2771
|
+
function is(e, t) {
|
|
2772
2772
|
(e == null ? void 0 : e.v7_startTransition) === void 0 && xt("v7_startTransition", "React Router will begin wrapping state updates in `React.startTransition` in v7", "https://reactrouter.com/v6/upgrading/future#v7_starttransition"), (e == null ? void 0 : e.v7_relativeSplatPath) === void 0 && (!t || !t.v7_relativeSplatPath) && xt("v7_relativeSplatPath", "Relative route resolution within Splat routes is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"), t && (t.v7_fetcherPersist === void 0 && xt("v7_fetcherPersist", "The persistence behavior of fetchers is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"), t.v7_normalizeFormMethod === void 0 && xt("v7_normalizeFormMethod", "Casing of `formMethod` fields is being normalized to uppercase in v7", "https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"), t.v7_partialHydration === void 0 && xt("v7_partialHydration", "`RouterProvider` hydration behavior is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_partialhydration"), t.v7_skipActionErrorRevalidation === void 0 && xt("v7_skipActionErrorRevalidation", "The revalidation behavior after 4xx/5xx `action` responses is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"));
|
|
2773
2773
|
}
|
|
2774
2774
|
function _d(e) {
|
|
@@ -2801,9 +2801,9 @@ function _d(e) {
|
|
|
2801
2801
|
}), [c, d, o, n, r]), null;
|
|
2802
2802
|
}
|
|
2803
2803
|
function Td(e) {
|
|
2804
|
-
return
|
|
2804
|
+
return Wi(e.context);
|
|
2805
2805
|
}
|
|
2806
|
-
function
|
|
2806
|
+
function ss(e) {
|
|
2807
2807
|
let {
|
|
2808
2808
|
basename: t = "/",
|
|
2809
2809
|
children: n = null,
|
|
@@ -2844,14 +2844,14 @@ function ns(e) {
|
|
|
2844
2844
|
}, [l, u, d, h, w, m, o]);
|
|
2845
2845
|
return process.env.NODE_ENV !== "production" && we(p != null, '<Router basename="' + l + '"> is not able to match the URL ' + ('"' + u + d + h + '" because it does not start with the ') + "basename, so the <Router> won't render anything."), p == null ? null : /* @__PURE__ */ y.createElement(Ve.Provider, {
|
|
2846
2846
|
value: c
|
|
2847
|
-
}, /* @__PURE__ */ y.createElement(
|
|
2847
|
+
}, /* @__PURE__ */ y.createElement(Mn.Provider, {
|
|
2848
2848
|
children: n,
|
|
2849
2849
|
value: p
|
|
2850
2850
|
}));
|
|
2851
2851
|
}
|
|
2852
2852
|
new Promise(() => {
|
|
2853
2853
|
});
|
|
2854
|
-
function
|
|
2854
|
+
function ls(e) {
|
|
2855
2855
|
let t = {
|
|
2856
2856
|
// Note: this check also occurs in createRoutesFromChildren so update
|
|
2857
2857
|
// there if you change this -- please and thank you!
|
|
@@ -2899,22 +2899,22 @@ const vn = "get", wn = "application/x-www-form-urlencoded";
|
|
|
2899
2899
|
function Fn(e) {
|
|
2900
2900
|
return e != null && typeof e.tagName == "string";
|
|
2901
2901
|
}
|
|
2902
|
-
function
|
|
2902
|
+
function cs(e) {
|
|
2903
2903
|
return Fn(e) && e.tagName.toLowerCase() === "button";
|
|
2904
2904
|
}
|
|
2905
|
-
function
|
|
2905
|
+
function us(e) {
|
|
2906
2906
|
return Fn(e) && e.tagName.toLowerCase() === "form";
|
|
2907
2907
|
}
|
|
2908
|
-
function
|
|
2908
|
+
function ds(e) {
|
|
2909
2909
|
return Fn(e) && e.tagName.toLowerCase() === "input";
|
|
2910
2910
|
}
|
|
2911
|
-
function
|
|
2911
|
+
function fs(e) {
|
|
2912
2912
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
2913
2913
|
}
|
|
2914
|
-
function
|
|
2914
|
+
function hs(e, t) {
|
|
2915
2915
|
return e.button === 0 && // Ignore everything but left clicks
|
|
2916
2916
|
(!t || t === "_self") && // Let browser handle "target=_blank" etc.
|
|
2917
|
-
!
|
|
2917
|
+
!fs(e);
|
|
2918
2918
|
}
|
|
2919
2919
|
function ur(e) {
|
|
2920
2920
|
return e === void 0 && (e = ""), new URLSearchParams(typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((t, n) => {
|
|
@@ -2922,7 +2922,7 @@ function ur(e) {
|
|
|
2922
2922
|
return t.concat(Array.isArray(r) ? r.map((o) => [n, o]) : [[n, r]]);
|
|
2923
2923
|
}, []));
|
|
2924
2924
|
}
|
|
2925
|
-
function
|
|
2925
|
+
function ps(e, t) {
|
|
2926
2926
|
let n = ur(e);
|
|
2927
2927
|
return t && t.forEach((r, o) => {
|
|
2928
2928
|
n.has(o) || t.getAll(o).forEach((a) => {
|
|
@@ -2930,35 +2930,35 @@ function cs(e, t) {
|
|
|
2930
2930
|
});
|
|
2931
2931
|
}), n;
|
|
2932
2932
|
}
|
|
2933
|
-
let
|
|
2934
|
-
function
|
|
2935
|
-
if (
|
|
2933
|
+
let pn = null;
|
|
2934
|
+
function ms() {
|
|
2935
|
+
if (pn === null)
|
|
2936
2936
|
try {
|
|
2937
2937
|
new FormData(
|
|
2938
2938
|
document.createElement("form"),
|
|
2939
2939
|
// @ts-expect-error if FormData supports the submitter parameter, this will throw
|
|
2940
2940
|
0
|
|
2941
|
-
),
|
|
2941
|
+
), pn = !1;
|
|
2942
2942
|
} catch {
|
|
2943
|
-
|
|
2943
|
+
pn = !0;
|
|
2944
2944
|
}
|
|
2945
|
-
return
|
|
2945
|
+
return pn;
|
|
2946
2946
|
}
|
|
2947
|
-
const
|
|
2947
|
+
const gs = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
|
|
2948
2948
|
function Xn(e) {
|
|
2949
|
-
return e != null && !
|
|
2949
|
+
return e != null && !gs.has(e) ? (process.env.NODE_ENV !== "production" && we(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + wn + '"')), null) : e;
|
|
2950
2950
|
}
|
|
2951
|
-
function
|
|
2951
|
+
function ys(e, t) {
|
|
2952
2952
|
let n, r, o, a, i;
|
|
2953
|
-
if (
|
|
2953
|
+
if (us(e)) {
|
|
2954
2954
|
let s = e.getAttribute("action");
|
|
2955
2955
|
r = s ? We(s, t) : null, n = e.getAttribute("method") || vn, o = Xn(e.getAttribute("enctype")) || wn, a = new FormData(e);
|
|
2956
|
-
} else if (
|
|
2956
|
+
} else if (cs(e) || ds(e) && (e.type === "submit" || e.type === "image")) {
|
|
2957
2957
|
let s = e.form;
|
|
2958
2958
|
if (s == null)
|
|
2959
2959
|
throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
|
|
2960
2960
|
let l = e.getAttribute("formaction") || s.getAttribute("action");
|
|
2961
|
-
if (r = l ? We(l, t) : null, n = e.getAttribute("formmethod") || s.getAttribute("method") || vn, o = Xn(e.getAttribute("formenctype")) || Xn(s.getAttribute("enctype")) || wn, a = new FormData(s, e), !
|
|
2961
|
+
if (r = l ? We(l, t) : null, n = e.getAttribute("formmethod") || s.getAttribute("method") || vn, o = Xn(e.getAttribute("formenctype")) || Xn(s.getAttribute("enctype")) || wn, a = new FormData(s, e), !ms()) {
|
|
2962
2962
|
let {
|
|
2963
2963
|
name: c,
|
|
2964
2964
|
type: u,
|
|
@@ -2982,36 +2982,36 @@ function fs(e, t) {
|
|
|
2982
2982
|
body: i
|
|
2983
2983
|
};
|
|
2984
2984
|
}
|
|
2985
|
-
const
|
|
2985
|
+
const vs = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "viewTransition"], ws = ["aria-current", "caseSensitive", "className", "end", "style", "to", "viewTransition", "children"], bs = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "viewTransition"], Ss = "6";
|
|
2986
2986
|
try {
|
|
2987
|
-
window.__reactRouterVersion =
|
|
2987
|
+
window.__reactRouterVersion = Ss;
|
|
2988
2988
|
} catch {
|
|
2989
2989
|
}
|
|
2990
2990
|
function Pd(e, t) {
|
|
2991
|
-
return
|
|
2991
|
+
return Ci({
|
|
2992
2992
|
basename: void 0,
|
|
2993
2993
|
future: dt({}, void 0, {
|
|
2994
2994
|
v7_prependBasename: !0
|
|
2995
2995
|
}),
|
|
2996
|
-
history:
|
|
2996
|
+
history: Wa({
|
|
2997
2997
|
window: void 0
|
|
2998
2998
|
}),
|
|
2999
|
-
hydrationData:
|
|
2999
|
+
hydrationData: Cs(),
|
|
3000
3000
|
routes: e,
|
|
3001
|
-
mapRouteProperties:
|
|
3001
|
+
mapRouteProperties: ls,
|
|
3002
3002
|
dataStrategy: void 0,
|
|
3003
3003
|
patchRoutesOnNavigation: void 0,
|
|
3004
3004
|
window: void 0
|
|
3005
3005
|
}).initialize();
|
|
3006
3006
|
}
|
|
3007
|
-
function
|
|
3007
|
+
function Cs() {
|
|
3008
3008
|
var e;
|
|
3009
3009
|
let t = (e = window) == null ? void 0 : e.__staticRouterHydrationData;
|
|
3010
3010
|
return t && t.errors && (t = dt({}, t, {
|
|
3011
|
-
errors:
|
|
3011
|
+
errors: Es(t.errors)
|
|
3012
3012
|
})), t;
|
|
3013
3013
|
}
|
|
3014
|
-
function
|
|
3014
|
+
function Es(e) {
|
|
3015
3015
|
if (!e) return null;
|
|
3016
3016
|
let t = Object.entries(e), n = {};
|
|
3017
3017
|
for (let [r, o] of t)
|
|
@@ -3039,16 +3039,16 @@ const _r = /* @__PURE__ */ y.createContext({
|
|
|
3039
3039
|
isTransitioning: !1
|
|
3040
3040
|
});
|
|
3041
3041
|
process.env.NODE_ENV !== "production" && (_r.displayName = "ViewTransition");
|
|
3042
|
-
const
|
|
3043
|
-
process.env.NODE_ENV !== "production" && (
|
|
3044
|
-
const
|
|
3045
|
-
function
|
|
3042
|
+
const Yo = /* @__PURE__ */ y.createContext(/* @__PURE__ */ new Map());
|
|
3043
|
+
process.env.NODE_ENV !== "production" && (Yo.displayName = "Fetchers");
|
|
3044
|
+
const Ls = "startTransition", co = y[Ls], Rs = "flushSync", uo = Fa[Rs];
|
|
3045
|
+
function xs(e) {
|
|
3046
3046
|
co ? co(e) : e();
|
|
3047
3047
|
}
|
|
3048
3048
|
function Bt(e) {
|
|
3049
3049
|
uo ? uo(e) : e();
|
|
3050
3050
|
}
|
|
3051
|
-
class
|
|
3051
|
+
class ks {
|
|
3052
3052
|
constructor() {
|
|
3053
3053
|
this.status = "pending", this.promise = new Promise((t, n) => {
|
|
3054
3054
|
this.resolve = (r) => {
|
|
@@ -3069,7 +3069,7 @@ function Od(e) {
|
|
|
3069
3069
|
}), [u, d] = y.useState(), [h, w] = y.useState(), [m, p] = y.useState(), v = y.useRef(/* @__PURE__ */ new Map()), {
|
|
3070
3070
|
v7_startTransition: R
|
|
3071
3071
|
} = r || {}, S = y.useCallback((T) => {
|
|
3072
|
-
R ?
|
|
3072
|
+
R ? xs(T) : T();
|
|
3073
3073
|
}, [R]), x = y.useCallback((T, K) => {
|
|
3074
3074
|
let {
|
|
3075
3075
|
deletedFetchers: B,
|
|
@@ -3117,7 +3117,7 @@ function Od(e) {
|
|
|
3117
3117
|
}));
|
|
3118
3118
|
}, [n.window, h, u, v, S]);
|
|
3119
3119
|
y.useLayoutEffect(() => n.subscribe(x), [n, x]), y.useEffect(() => {
|
|
3120
|
-
l.isTransitioning && !l.flushSync && d(new
|
|
3120
|
+
l.isTransitioning && !l.flushSync && d(new ks());
|
|
3121
3121
|
}, [l]), y.useEffect(() => {
|
|
3122
3122
|
if (u && i && n.window) {
|
|
3123
3123
|
let T = i, K = u.promise, B = n.window.document.startViewTransition(async () => {
|
|
@@ -3162,37 +3162,37 @@ function Od(e) {
|
|
|
3162
3162
|
}), [n, _, N]), b = y.useMemo(() => ({
|
|
3163
3163
|
v7_relativeSplatPath: n.future.v7_relativeSplatPath
|
|
3164
3164
|
}), [n.future.v7_relativeSplatPath]);
|
|
3165
|
-
return y.useEffect(() =>
|
|
3165
|
+
return y.useEffect(() => is(r, n.future), [r, n.future]), /* @__PURE__ */ y.createElement(y.Fragment, null, /* @__PURE__ */ y.createElement(_t.Provider, {
|
|
3166
3166
|
value: U
|
|
3167
|
-
}, /* @__PURE__ */ y.createElement(
|
|
3167
|
+
}, /* @__PURE__ */ y.createElement(An.Provider, {
|
|
3168
3168
|
value: o
|
|
3169
|
-
}, /* @__PURE__ */ y.createElement(
|
|
3169
|
+
}, /* @__PURE__ */ y.createElement(Yo.Provider, {
|
|
3170
3170
|
value: v.current
|
|
3171
3171
|
}, /* @__PURE__ */ y.createElement(_r.Provider, {
|
|
3172
3172
|
value: l
|
|
3173
|
-
}, /* @__PURE__ */ y.createElement(
|
|
3173
|
+
}, /* @__PURE__ */ y.createElement(ss, {
|
|
3174
3174
|
basename: N,
|
|
3175
3175
|
location: o.location,
|
|
3176
3176
|
navigationType: o.historyAction,
|
|
3177
3177
|
navigator: _,
|
|
3178
3178
|
future: b
|
|
3179
|
-
}, o.initialized || n.future.v7_partialHydration ? /* @__PURE__ */ y.createElement(
|
|
3179
|
+
}, o.initialized || n.future.v7_partialHydration ? /* @__PURE__ */ y.createElement(Ns, {
|
|
3180
3180
|
routes: n.routes,
|
|
3181
3181
|
future: n.future,
|
|
3182
3182
|
state: o
|
|
3183
3183
|
}) : t))))), null);
|
|
3184
3184
|
}
|
|
3185
|
-
const
|
|
3186
|
-
function
|
|
3185
|
+
const Ns = /* @__PURE__ */ y.memo(_s);
|
|
3186
|
+
function _s(e) {
|
|
3187
3187
|
let {
|
|
3188
3188
|
routes: t,
|
|
3189
3189
|
future: n,
|
|
3190
3190
|
state: r
|
|
3191
3191
|
} = e;
|
|
3192
|
-
return
|
|
3192
|
+
return qi(t, void 0, r, n);
|
|
3193
3193
|
}
|
|
3194
3194
|
process.env.NODE_ENV;
|
|
3195
|
-
const
|
|
3195
|
+
const Ts = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Ps = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Xo = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
3196
3196
|
let {
|
|
3197
3197
|
onClick: r,
|
|
3198
3198
|
relative: o,
|
|
@@ -3203,19 +3203,19 @@ const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
3203
3203
|
to: c,
|
|
3204
3204
|
preventScrollReset: u,
|
|
3205
3205
|
viewTransition: d
|
|
3206
|
-
} = t, h = Nr(t,
|
|
3206
|
+
} = t, h = Nr(t, vs), {
|
|
3207
3207
|
basename: w
|
|
3208
3208
|
} = y.useContext(Ve), m, p = !1;
|
|
3209
|
-
if (typeof c == "string" &&
|
|
3209
|
+
if (typeof c == "string" && Ps.test(c) && (m = c, Ts))
|
|
3210
3210
|
try {
|
|
3211
3211
|
let x = new URL(window.location.href), _ = c.startsWith("//") ? new URL(x.protocol + c) : new URL(c), N = We(_.pathname, w);
|
|
3212
3212
|
_.origin === x.origin && N != null ? c = N + _.search + _.hash : p = !0;
|
|
3213
3213
|
} catch {
|
|
3214
3214
|
process.env.NODE_ENV !== "production" && we(!1, '<Link to="' + c + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
|
|
3215
3215
|
}
|
|
3216
|
-
let v =
|
|
3216
|
+
let v = $i(c, {
|
|
3217
3217
|
relative: o
|
|
3218
|
-
}), R =
|
|
3218
|
+
}), R = Ds(c, {
|
|
3219
3219
|
replace: i,
|
|
3220
3220
|
state: s,
|
|
3221
3221
|
target: l,
|
|
@@ -3236,8 +3236,8 @@ const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
3236
3236
|
}))
|
|
3237
3237
|
);
|
|
3238
3238
|
});
|
|
3239
|
-
process.env.NODE_ENV !== "production" && (
|
|
3240
|
-
const
|
|
3239
|
+
process.env.NODE_ENV !== "production" && (Xo.displayName = "Link");
|
|
3240
|
+
const Os = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
3241
3241
|
let {
|
|
3242
3242
|
"aria-current": r = "page",
|
|
3243
3243
|
caseSensitive: o = !1,
|
|
@@ -3247,14 +3247,14 @@ const ks = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
3247
3247
|
to: l,
|
|
3248
3248
|
viewTransition: c,
|
|
3249
3249
|
children: u
|
|
3250
|
-
} = t, d = Nr(t,
|
|
3250
|
+
} = t, d = Nr(t, ws), h = Xt(l, {
|
|
3251
3251
|
relative: d.relative
|
|
3252
|
-
}), w = et(), m = y.useContext(
|
|
3252
|
+
}), w = et(), m = y.useContext(An), {
|
|
3253
3253
|
navigator: p,
|
|
3254
3254
|
basename: v
|
|
3255
3255
|
} = y.useContext(Ve), R = m != null && // Conditional usage is OK here because the usage of a data router is static
|
|
3256
3256
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
3257
|
-
|
|
3257
|
+
Vs(h) && c === !0, S = p.encodeLocation ? p.encodeLocation(h).pathname : h.pathname, x = w.pathname, _ = m && m.navigation && m.navigation.location ? m.navigation.location.pathname : null;
|
|
3258
3258
|
o || (x = x.toLowerCase(), _ = _ ? _.toLowerCase() : null, S = S.toLowerCase()), _ && v && (_ = We(_, v) || _);
|
|
3259
3259
|
const N = S !== "/" && S.endsWith("/") ? S.length - 1 : S.length;
|
|
3260
3260
|
let U = x === S || !i && x.startsWith(S) && x.charAt(N) === "/", b = _ != null && (_ === S || !i && _.startsWith(S) && _.charAt(S.length) === "/"), T = {
|
|
@@ -3264,7 +3264,7 @@ const ks = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
3264
3264
|
}, K = U ? r : void 0, B;
|
|
3265
3265
|
typeof a == "function" ? B = a(T) : B = [a, U ? "active" : null, b ? "pending" : null, R ? "transitioning" : null].filter(Boolean).join(" ");
|
|
3266
3266
|
let ae = typeof s == "function" ? s(T) : s;
|
|
3267
|
-
return /* @__PURE__ */ y.createElement(
|
|
3267
|
+
return /* @__PURE__ */ y.createElement(Xo, dt({}, d, {
|
|
3268
3268
|
"aria-current": K,
|
|
3269
3269
|
className: B,
|
|
3270
3270
|
ref: n,
|
|
@@ -3273,8 +3273,8 @@ const ks = /* @__PURE__ */ y.forwardRef(function(t, n) {
|
|
|
3273
3273
|
viewTransition: c
|
|
3274
3274
|
}), typeof u == "function" ? u(T) : u);
|
|
3275
3275
|
});
|
|
3276
|
-
process.env.NODE_ENV !== "production" && (
|
|
3277
|
-
const
|
|
3276
|
+
process.env.NODE_ENV !== "production" && (Os.displayName = "NavLink");
|
|
3277
|
+
const As = /* @__PURE__ */ y.forwardRef((e, t) => {
|
|
3278
3278
|
let {
|
|
3279
3279
|
fetcherKey: n,
|
|
3280
3280
|
navigate: r,
|
|
@@ -3287,7 +3287,7 @@ const Ns = /* @__PURE__ */ y.forwardRef((e, t) => {
|
|
|
3287
3287
|
relative: u,
|
|
3288
3288
|
preventScrollReset: d,
|
|
3289
3289
|
viewTransition: h
|
|
3290
|
-
} = e, w = Nr(e,
|
|
3290
|
+
} = e, w = Nr(e, bs), m = Hs(), p = Us(l, {
|
|
3291
3291
|
relative: u
|
|
3292
3292
|
}), v = s.toLowerCase() === "get" ? "get" : "post", R = (S) => {
|
|
3293
3293
|
if (c && c(S), S.defaultPrevented) return;
|
|
@@ -3311,7 +3311,7 @@ const Ns = /* @__PURE__ */ y.forwardRef((e, t) => {
|
|
|
3311
3311
|
onSubmit: o ? c : R
|
|
3312
3312
|
}, w));
|
|
3313
3313
|
});
|
|
3314
|
-
process.env.NODE_ENV !== "production" && (
|
|
3314
|
+
process.env.NODE_ENV !== "production" && (As.displayName = "Form");
|
|
3315
3315
|
process.env.NODE_ENV;
|
|
3316
3316
|
var kn;
|
|
3317
3317
|
(function(e) {
|
|
@@ -3321,14 +3321,14 @@ var fo;
|
|
|
3321
3321
|
(function(e) {
|
|
3322
3322
|
e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
|
|
3323
3323
|
})(fo || (fo = {}));
|
|
3324
|
-
function
|
|
3324
|
+
function Ms(e) {
|
|
3325
3325
|
return e + " must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router.";
|
|
3326
3326
|
}
|
|
3327
|
-
function
|
|
3327
|
+
function Qo(e) {
|
|
3328
3328
|
let t = y.useContext(_t);
|
|
3329
|
-
return t || (process.env.NODE_ENV !== "production" ? I(!1,
|
|
3329
|
+
return t || (process.env.NODE_ENV !== "production" ? I(!1, Ms(e)) : I(!1)), t;
|
|
3330
3330
|
}
|
|
3331
|
-
function
|
|
3331
|
+
function Ds(e, t) {
|
|
3332
3332
|
let {
|
|
3333
3333
|
target: n,
|
|
3334
3334
|
replace: r,
|
|
@@ -3336,11 +3336,11 @@ function Ts(e, t) {
|
|
|
3336
3336
|
preventScrollReset: a,
|
|
3337
3337
|
relative: i,
|
|
3338
3338
|
viewTransition: s
|
|
3339
|
-
} = t === void 0 ? {} : t, l = Dn(), c = et(), u =
|
|
3339
|
+
} = t === void 0 ? {} : t, l = Dn(), c = et(), u = Xt(e, {
|
|
3340
3340
|
relative: i
|
|
3341
3341
|
});
|
|
3342
3342
|
return y.useCallback((d) => {
|
|
3343
|
-
if (
|
|
3343
|
+
if (hs(d, n)) {
|
|
3344
3344
|
d.preventDefault();
|
|
3345
3345
|
let h = r !== void 0 ? r : ut(c) === ut(u);
|
|
3346
3346
|
l(e, {
|
|
@@ -3353,41 +3353,41 @@ function Ts(e, t) {
|
|
|
3353
3353
|
}
|
|
3354
3354
|
}, [c, l, u, r, o, n, e, a, i, s]);
|
|
3355
3355
|
}
|
|
3356
|
-
function
|
|
3356
|
+
function Ad(e) {
|
|
3357
3357
|
process.env.NODE_ENV !== "production" && we(typeof URLSearchParams < "u", "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.");
|
|
3358
3358
|
let t = y.useRef(ur(e)), n = y.useRef(!1), r = et(), o = y.useMemo(() => (
|
|
3359
3359
|
// Only merge in the defaults if we haven't yet called setSearchParams.
|
|
3360
3360
|
// Once we call that we want those to take precedence, otherwise you can't
|
|
3361
3361
|
// remove a param with setSearchParams({}) if it has an initial value
|
|
3362
|
-
|
|
3362
|
+
ps(r.search, n.current ? null : t.current)
|
|
3363
3363
|
), [r.search]), a = Dn(), i = y.useCallback((s, l) => {
|
|
3364
3364
|
const c = ur(typeof s == "function" ? s(o) : s);
|
|
3365
3365
|
n.current = !0, a("?" + c, l);
|
|
3366
3366
|
}, [a, o]);
|
|
3367
3367
|
return [o, i];
|
|
3368
3368
|
}
|
|
3369
|
-
function
|
|
3369
|
+
function Fs() {
|
|
3370
3370
|
if (typeof document > "u")
|
|
3371
3371
|
throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
|
|
3372
3372
|
}
|
|
3373
|
-
let
|
|
3374
|
-
function
|
|
3373
|
+
let Is = 0, Bs = () => "__" + String(++Is) + "__";
|
|
3374
|
+
function Hs() {
|
|
3375
3375
|
let {
|
|
3376
3376
|
router: e
|
|
3377
|
-
} =
|
|
3377
|
+
} = Qo(kn.UseSubmit), {
|
|
3378
3378
|
basename: t
|
|
3379
|
-
} = y.useContext(Ve), n =
|
|
3379
|
+
} = y.useContext(Ve), n = ns();
|
|
3380
3380
|
return y.useCallback(function(r, o) {
|
|
3381
|
-
o === void 0 && (o = {}),
|
|
3381
|
+
o === void 0 && (o = {}), Fs();
|
|
3382
3382
|
let {
|
|
3383
3383
|
action: a,
|
|
3384
3384
|
method: i,
|
|
3385
3385
|
encType: s,
|
|
3386
3386
|
formData: l,
|
|
3387
3387
|
body: c
|
|
3388
|
-
} =
|
|
3388
|
+
} = ys(r, t);
|
|
3389
3389
|
if (o.navigate === !1) {
|
|
3390
|
-
let u = o.fetcherKey ||
|
|
3390
|
+
let u = o.fetcherKey || Bs();
|
|
3391
3391
|
e.fetch(u, n, o.action || a, {
|
|
3392
3392
|
preventScrollReset: o.preventScrollReset,
|
|
3393
3393
|
formData: l,
|
|
@@ -3411,14 +3411,14 @@ function As() {
|
|
|
3411
3411
|
});
|
|
3412
3412
|
}, [e, t, n]);
|
|
3413
3413
|
}
|
|
3414
|
-
function
|
|
3414
|
+
function Us(e, t) {
|
|
3415
3415
|
let {
|
|
3416
3416
|
relative: n
|
|
3417
3417
|
} = t === void 0 ? {} : t, {
|
|
3418
3418
|
basename: r
|
|
3419
3419
|
} = y.useContext(Ve), o = y.useContext(je);
|
|
3420
3420
|
o || (process.env.NODE_ENV !== "production" ? I(!1, "useFormAction must be used inside a RouteContext") : I(!1));
|
|
3421
|
-
let [a] = o.matches.slice(-1), i = dt({},
|
|
3421
|
+
let [a] = o.matches.slice(-1), i = dt({}, Xt(e || ".", {
|
|
3422
3422
|
relative: n
|
|
3423
3423
|
})), s = et();
|
|
3424
3424
|
if (e == null) {
|
|
@@ -3432,13 +3432,13 @@ function Ds(e, t) {
|
|
|
3432
3432
|
}
|
|
3433
3433
|
return (!e || e === ".") && a.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (i.pathname = i.pathname === "/" ? r : Qe([r, i.pathname])), ut(i);
|
|
3434
3434
|
}
|
|
3435
|
-
function
|
|
3435
|
+
function Vs(e, t) {
|
|
3436
3436
|
t === void 0 && (t = {});
|
|
3437
3437
|
let n = y.useContext(_r);
|
|
3438
3438
|
n == null && (process.env.NODE_ENV !== "production" ? I(!1, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : I(!1));
|
|
3439
3439
|
let {
|
|
3440
3440
|
basename: r
|
|
3441
|
-
} =
|
|
3441
|
+
} = Qo(kn.useViewTransitionState), o = Xt(e, {
|
|
3442
3442
|
relative: t.relative
|
|
3443
3443
|
});
|
|
3444
3444
|
if (!n.isTransitioning)
|
|
@@ -3446,8 +3446,8 @@ function Fs(e, t) {
|
|
|
3446
3446
|
let a = We(n.currentLocation.pathname, r) || n.currentLocation.pathname, i = We(n.nextLocation.pathname, r) || n.nextLocation.pathname;
|
|
3447
3447
|
return Ln(o.pathname, i) != null || Ln(o.pathname, a) != null;
|
|
3448
3448
|
}
|
|
3449
|
-
var
|
|
3450
|
-
const
|
|
3449
|
+
var ea = /* @__PURE__ */ ((e) => (e.Home = "Home", e.Orders = "Orders", e.Rewards = "Rewards", e.Balance = "Balance", e.Subscriptions = "Subscriptions", e.Tickets = "Tickets", e.Api = "API", e))(ea || {}), js = /* @__PURE__ */ ((e) => (e.Home = "Home", e.Orders = "Orders", e.Rewards = "Rewards", e.Balance = "Balance", e.Tickets = "Tickets", e.Api = "API", e))(js || {});
|
|
3450
|
+
const Md = [
|
|
3451
3451
|
{
|
|
3452
3452
|
caption: "Share link",
|
|
3453
3453
|
description: "Send the link to your friends in all convenient ways"
|
|
@@ -3470,8 +3470,8 @@ const Ad = [
|
|
|
3470
3470
|
}
|
|
3471
3471
|
}, o = () => t, s = { setState: r, getState: o, getInitialState: () => l, subscribe: (c) => (n.add(c), () => n.delete(c)) }, l = t = e(r, o, s);
|
|
3472
3472
|
return s;
|
|
3473
|
-
},
|
|
3474
|
-
function
|
|
3473
|
+
}, $s = (e) => e ? ho(e) : ho, zs = (e) => e;
|
|
3474
|
+
function Js(e, t = zs) {
|
|
3475
3475
|
const n = Te.useSyncExternalStore(
|
|
3476
3476
|
e.subscribe,
|
|
3477
3477
|
() => t(e.getState()),
|
|
@@ -3480,12 +3480,12 @@ function Us(e, t = Hs) {
|
|
|
3480
3480
|
return Te.useDebugValue(n), n;
|
|
3481
3481
|
}
|
|
3482
3482
|
const po = (e) => {
|
|
3483
|
-
const t =
|
|
3483
|
+
const t = $s(e), n = (r) => Js(t, r);
|
|
3484
3484
|
return Object.assign(n, t), n;
|
|
3485
3485
|
}, se = (e) => e ? po(e) : po, Dd = se((e) => ({
|
|
3486
3486
|
action: null,
|
|
3487
3487
|
setAction: (t) => e(() => ({ action: t })),
|
|
3488
|
-
route:
|
|
3488
|
+
route: ea.Home,
|
|
3489
3489
|
setRoute: (t) => e(() => ({ route: t })),
|
|
3490
3490
|
dashInfo: null,
|
|
3491
3491
|
setDashInfo: (t) => e(() => ({ dashInfo: t })),
|
|
@@ -3524,16 +3524,16 @@ const po = (e) => {
|
|
|
3524
3524
|
shopRefundPolicy: null,
|
|
3525
3525
|
setShopRefundPolicy: (t) => e(() => ({ shopRefundPolicy: t }))
|
|
3526
3526
|
}));
|
|
3527
|
-
class
|
|
3527
|
+
class Jt extends Error {
|
|
3528
3528
|
}
|
|
3529
|
-
|
|
3530
|
-
function
|
|
3529
|
+
Jt.prototype.name = "InvalidTokenError";
|
|
3530
|
+
function Ws(e) {
|
|
3531
3531
|
return decodeURIComponent(atob(e).replace(/(.)/g, (t, n) => {
|
|
3532
3532
|
let r = n.charCodeAt(0).toString(16).toUpperCase();
|
|
3533
3533
|
return r.length < 2 && (r = "0" + r), "%" + r;
|
|
3534
3534
|
}));
|
|
3535
3535
|
}
|
|
3536
|
-
function
|
|
3536
|
+
function qs(e) {
|
|
3537
3537
|
let t = e.replace(/-/g, "+").replace(/_/g, "/");
|
|
3538
3538
|
switch (t.length % 4) {
|
|
3539
3539
|
case 0:
|
|
@@ -3548,58 +3548,58 @@ function js(e) {
|
|
|
3548
3548
|
throw new Error("base64 string is not of the correct length");
|
|
3549
3549
|
}
|
|
3550
3550
|
try {
|
|
3551
|
-
return
|
|
3551
|
+
return Ws(t);
|
|
3552
3552
|
} catch {
|
|
3553
3553
|
return atob(t);
|
|
3554
3554
|
}
|
|
3555
3555
|
}
|
|
3556
|
-
function
|
|
3556
|
+
function Zs(e, t) {
|
|
3557
3557
|
if (typeof e != "string")
|
|
3558
|
-
throw new
|
|
3558
|
+
throw new Jt("Invalid token specified: must be a string");
|
|
3559
3559
|
t || (t = {});
|
|
3560
3560
|
const n = t.header === !0 ? 0 : 1, r = e.split(".")[n];
|
|
3561
3561
|
if (typeof r != "string")
|
|
3562
|
-
throw new
|
|
3562
|
+
throw new Jt(`Invalid token specified: missing part #${n + 1}`);
|
|
3563
3563
|
let o;
|
|
3564
3564
|
try {
|
|
3565
|
-
o =
|
|
3565
|
+
o = qs(r);
|
|
3566
3566
|
} catch (a) {
|
|
3567
|
-
throw new
|
|
3567
|
+
throw new Jt(`Invalid token specified: invalid base64 for part #${n + 1} (${a.message})`);
|
|
3568
3568
|
}
|
|
3569
3569
|
try {
|
|
3570
3570
|
return JSON.parse(o);
|
|
3571
3571
|
} catch (a) {
|
|
3572
|
-
throw new
|
|
3572
|
+
throw new Jt(`Invalid token specified: invalid json for part #${n + 1} (${a.message})`);
|
|
3573
3573
|
}
|
|
3574
3574
|
}
|
|
3575
|
-
function
|
|
3575
|
+
function ta(e, t) {
|
|
3576
3576
|
return function() {
|
|
3577
3577
|
return e.apply(t, arguments);
|
|
3578
3578
|
};
|
|
3579
3579
|
}
|
|
3580
|
-
const { toString:
|
|
3581
|
-
const n =
|
|
3580
|
+
const { toString: Ks } = Object.prototype, { getPrototypeOf: Tr } = Object, In = /* @__PURE__ */ ((e) => (t) => {
|
|
3581
|
+
const n = Ks.call(t);
|
|
3582
3582
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
3583
|
-
})(/* @__PURE__ */ Object.create(null)), qe = (e) => (e = e.toLowerCase(), (t) => In(t) === e), Bn = (e) => (t) => typeof t === e, { isArray: Pt } = Array,
|
|
3584
|
-
function
|
|
3585
|
-
return e !== null && !
|
|
3583
|
+
})(/* @__PURE__ */ Object.create(null)), qe = (e) => (e = e.toLowerCase(), (t) => In(t) === e), Bn = (e) => (t) => typeof t === e, { isArray: Pt } = Array, Yt = Bn("undefined");
|
|
3584
|
+
function Gs(e) {
|
|
3585
|
+
return e !== null && !Yt(e) && e.constructor !== null && !Yt(e.constructor) && Ie(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
3586
3586
|
}
|
|
3587
|
-
const
|
|
3588
|
-
function
|
|
3587
|
+
const na = qe("ArrayBuffer");
|
|
3588
|
+
function Ys(e) {
|
|
3589
3589
|
let t;
|
|
3590
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
3590
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && na(e.buffer), t;
|
|
3591
3591
|
}
|
|
3592
|
-
const
|
|
3592
|
+
const Xs = Bn("string"), Ie = Bn("function"), ra = Bn("number"), Hn = (e) => e !== null && typeof e == "object", Qs = (e) => e === !0 || e === !1, bn = (e) => {
|
|
3593
3593
|
if (In(e) !== "object")
|
|
3594
3594
|
return !1;
|
|
3595
3595
|
const t = Tr(e);
|
|
3596
3596
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
3597
|
-
},
|
|
3597
|
+
}, el = qe("Date"), tl = qe("File"), nl = qe("Blob"), rl = qe("FileList"), ol = (e) => Hn(e) && Ie(e.pipe), al = (e) => {
|
|
3598
3598
|
let t;
|
|
3599
3599
|
return e && (typeof FormData == "function" && e instanceof FormData || Ie(e.append) && ((t = In(e)) === "formdata" || // detect form-data instance
|
|
3600
3600
|
t === "object" && Ie(e.toString) && e.toString() === "[object FormData]"));
|
|
3601
|
-
},
|
|
3602
|
-
function
|
|
3601
|
+
}, il = qe("URLSearchParams"), [sl, ll, cl, ul] = ["ReadableStream", "Request", "Response", "Headers"].map(qe), dl = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
3602
|
+
function Qt(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
3603
3603
|
if (e === null || typeof e > "u")
|
|
3604
3604
|
return;
|
|
3605
3605
|
let r, o;
|
|
@@ -3613,7 +3613,7 @@ function Xt(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
3613
3613
|
s = a[r], t.call(null, e[s], s, e);
|
|
3614
3614
|
}
|
|
3615
3615
|
}
|
|
3616
|
-
function
|
|
3616
|
+
function oa(e, t) {
|
|
3617
3617
|
t = t.toLowerCase();
|
|
3618
3618
|
const n = Object.keys(e);
|
|
3619
3619
|
let r = n.length, o;
|
|
@@ -3622,23 +3622,23 @@ function Qo(e, t) {
|
|
|
3622
3622
|
return o;
|
|
3623
3623
|
return null;
|
|
3624
3624
|
}
|
|
3625
|
-
const wt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
3625
|
+
const wt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, aa = (e) => !Yt(e) && e !== wt;
|
|
3626
3626
|
function dr() {
|
|
3627
|
-
const { caseless: e } =
|
|
3628
|
-
const a = e &&
|
|
3627
|
+
const { caseless: e } = aa(this) && this || {}, t = {}, n = (r, o) => {
|
|
3628
|
+
const a = e && oa(t, o) || o;
|
|
3629
3629
|
bn(t[a]) && bn(r) ? t[a] = dr(t[a], r) : bn(r) ? t[a] = dr({}, r) : Pt(r) ? t[a] = r.slice() : t[a] = r;
|
|
3630
3630
|
};
|
|
3631
3631
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
3632
|
-
arguments[r] &&
|
|
3632
|
+
arguments[r] && Qt(arguments[r], n);
|
|
3633
3633
|
return t;
|
|
3634
3634
|
}
|
|
3635
|
-
const
|
|
3636
|
-
n && Ie(o) ? e[a] =
|
|
3637
|
-
}, { allOwnKeys: r }), e),
|
|
3635
|
+
const fl = (e, t, n, { allOwnKeys: r } = {}) => (Qt(t, (o, a) => {
|
|
3636
|
+
n && Ie(o) ? e[a] = ta(o, n) : e[a] = o;
|
|
3637
|
+
}, { allOwnKeys: r }), e), hl = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), pl = (e, t, n, r) => {
|
|
3638
3638
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
3639
3639
|
value: t.prototype
|
|
3640
3640
|
}), n && Object.assign(e.prototype, n);
|
|
3641
|
-
},
|
|
3641
|
+
}, ml = (e, t, n, r) => {
|
|
3642
3642
|
let o, a, i;
|
|
3643
3643
|
const s = {};
|
|
3644
3644
|
if (t = t || {}, e == null) return t;
|
|
@@ -3648,45 +3648,45 @@ const sl = (e, t, n, { allOwnKeys: r } = {}) => (Xt(t, (o, a) => {
|
|
|
3648
3648
|
e = n !== !1 && Tr(e);
|
|
3649
3649
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
3650
3650
|
return t;
|
|
3651
|
-
},
|
|
3651
|
+
}, gl = (e, t, n) => {
|
|
3652
3652
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
3653
3653
|
const r = e.indexOf(t, n);
|
|
3654
3654
|
return r !== -1 && r === n;
|
|
3655
|
-
},
|
|
3655
|
+
}, yl = (e) => {
|
|
3656
3656
|
if (!e) return null;
|
|
3657
3657
|
if (Pt(e)) return e;
|
|
3658
3658
|
let t = e.length;
|
|
3659
|
-
if (!
|
|
3659
|
+
if (!ra(t)) return null;
|
|
3660
3660
|
const n = new Array(t);
|
|
3661
3661
|
for (; t-- > 0; )
|
|
3662
3662
|
n[t] = e[t];
|
|
3663
3663
|
return n;
|
|
3664
|
-
},
|
|
3664
|
+
}, vl = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Tr(Uint8Array)), wl = (e, t) => {
|
|
3665
3665
|
const r = (e && e[Symbol.iterator]).call(e);
|
|
3666
3666
|
let o;
|
|
3667
3667
|
for (; (o = r.next()) && !o.done; ) {
|
|
3668
3668
|
const a = o.value;
|
|
3669
3669
|
t.call(e, a[0], a[1]);
|
|
3670
3670
|
}
|
|
3671
|
-
},
|
|
3671
|
+
}, bl = (e, t) => {
|
|
3672
3672
|
let n;
|
|
3673
3673
|
const r = [];
|
|
3674
3674
|
for (; (n = e.exec(t)) !== null; )
|
|
3675
3675
|
r.push(n);
|
|
3676
3676
|
return r;
|
|
3677
|
-
},
|
|
3677
|
+
}, Sl = qe("HTMLFormElement"), Cl = (e) => e.toLowerCase().replace(
|
|
3678
3678
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
3679
3679
|
function(n, r, o) {
|
|
3680
3680
|
return r.toUpperCase() + o;
|
|
3681
3681
|
}
|
|
3682
|
-
), mo = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype),
|
|
3682
|
+
), mo = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), El = qe("RegExp"), ia = (e, t) => {
|
|
3683
3683
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
3684
|
-
|
|
3684
|
+
Qt(n, (o, a) => {
|
|
3685
3685
|
let i;
|
|
3686
3686
|
(i = t(o, a, e)) !== !1 && (r[a] = i || o);
|
|
3687
3687
|
}), Object.defineProperties(e, r);
|
|
3688
|
-
},
|
|
3689
|
-
|
|
3688
|
+
}, Ll = (e) => {
|
|
3689
|
+
ia(e, (t, n) => {
|
|
3690
3690
|
if (Ie(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
3691
3691
|
return !1;
|
|
3692
3692
|
const r = e[n];
|
|
@@ -3700,19 +3700,19 @@ const sl = (e, t, n, { allOwnKeys: r } = {}) => (Xt(t, (o, a) => {
|
|
|
3700
3700
|
});
|
|
3701
3701
|
}
|
|
3702
3702
|
});
|
|
3703
|
-
},
|
|
3703
|
+
}, Rl = (e, t) => {
|
|
3704
3704
|
const n = {}, r = (o) => {
|
|
3705
3705
|
o.forEach((a) => {
|
|
3706
3706
|
n[a] = !0;
|
|
3707
3707
|
});
|
|
3708
3708
|
};
|
|
3709
3709
|
return Pt(e) ? r(e) : r(String(e).split(t)), n;
|
|
3710
|
-
},
|
|
3711
|
-
},
|
|
3712
|
-
function
|
|
3710
|
+
}, xl = () => {
|
|
3711
|
+
}, kl = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
3712
|
+
function Nl(e) {
|
|
3713
3713
|
return !!(e && Ie(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
3714
3714
|
}
|
|
3715
|
-
const
|
|
3715
|
+
const _l = (e) => {
|
|
3716
3716
|
const t = new Array(10), n = (r, o) => {
|
|
3717
3717
|
if (Hn(r)) {
|
|
3718
3718
|
if (t.indexOf(r) >= 0)
|
|
@@ -3720,79 +3720,79 @@ const Ll = (e) => {
|
|
|
3720
3720
|
if (!("toJSON" in r)) {
|
|
3721
3721
|
t[o] = r;
|
|
3722
3722
|
const a = Pt(r) ? [] : {};
|
|
3723
|
-
return
|
|
3723
|
+
return Qt(r, (i, s) => {
|
|
3724
3724
|
const l = n(i, o + 1);
|
|
3725
|
-
!
|
|
3725
|
+
!Yt(l) && (a[s] = l);
|
|
3726
3726
|
}), t[o] = void 0, a;
|
|
3727
3727
|
}
|
|
3728
3728
|
}
|
|
3729
3729
|
return r;
|
|
3730
3730
|
};
|
|
3731
3731
|
return n(e, 0);
|
|
3732
|
-
},
|
|
3732
|
+
}, Tl = qe("AsyncFunction"), Pl = (e) => e && (Hn(e) || Ie(e)) && Ie(e.then) && Ie(e.catch), sa = ((e, t) => e ? setImmediate : t ? ((n, r) => (wt.addEventListener("message", ({ source: o, data: a }) => {
|
|
3733
3733
|
o === wt && a === n && r.length && r.shift()();
|
|
3734
3734
|
}, !1), (o) => {
|
|
3735
3735
|
r.push(o), wt.postMessage(n, "*");
|
|
3736
3736
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
3737
3737
|
typeof setImmediate == "function",
|
|
3738
3738
|
Ie(wt.postMessage)
|
|
3739
|
-
),
|
|
3739
|
+
), Ol = typeof queueMicrotask < "u" ? queueMicrotask.bind(wt) : typeof process < "u" && process.nextTick || sa, E = {
|
|
3740
3740
|
isArray: Pt,
|
|
3741
|
-
isArrayBuffer:
|
|
3742
|
-
isBuffer:
|
|
3743
|
-
isFormData:
|
|
3744
|
-
isArrayBufferView:
|
|
3745
|
-
isString:
|
|
3746
|
-
isNumber:
|
|
3747
|
-
isBoolean:
|
|
3741
|
+
isArrayBuffer: na,
|
|
3742
|
+
isBuffer: Gs,
|
|
3743
|
+
isFormData: al,
|
|
3744
|
+
isArrayBufferView: Ys,
|
|
3745
|
+
isString: Xs,
|
|
3746
|
+
isNumber: ra,
|
|
3747
|
+
isBoolean: Qs,
|
|
3748
3748
|
isObject: Hn,
|
|
3749
3749
|
isPlainObject: bn,
|
|
3750
|
-
isReadableStream:
|
|
3751
|
-
isRequest:
|
|
3752
|
-
isResponse:
|
|
3753
|
-
isHeaders:
|
|
3754
|
-
isUndefined:
|
|
3755
|
-
isDate:
|
|
3756
|
-
isFile:
|
|
3757
|
-
isBlob:
|
|
3758
|
-
isRegExp:
|
|
3750
|
+
isReadableStream: sl,
|
|
3751
|
+
isRequest: ll,
|
|
3752
|
+
isResponse: cl,
|
|
3753
|
+
isHeaders: ul,
|
|
3754
|
+
isUndefined: Yt,
|
|
3755
|
+
isDate: el,
|
|
3756
|
+
isFile: tl,
|
|
3757
|
+
isBlob: nl,
|
|
3758
|
+
isRegExp: El,
|
|
3759
3759
|
isFunction: Ie,
|
|
3760
|
-
isStream:
|
|
3761
|
-
isURLSearchParams:
|
|
3762
|
-
isTypedArray:
|
|
3763
|
-
isFileList:
|
|
3764
|
-
forEach:
|
|
3760
|
+
isStream: ol,
|
|
3761
|
+
isURLSearchParams: il,
|
|
3762
|
+
isTypedArray: vl,
|
|
3763
|
+
isFileList: rl,
|
|
3764
|
+
forEach: Qt,
|
|
3765
3765
|
merge: dr,
|
|
3766
|
-
extend:
|
|
3767
|
-
trim:
|
|
3768
|
-
stripBOM:
|
|
3769
|
-
inherits:
|
|
3770
|
-
toFlatObject:
|
|
3766
|
+
extend: fl,
|
|
3767
|
+
trim: dl,
|
|
3768
|
+
stripBOM: hl,
|
|
3769
|
+
inherits: pl,
|
|
3770
|
+
toFlatObject: ml,
|
|
3771
3771
|
kindOf: In,
|
|
3772
3772
|
kindOfTest: qe,
|
|
3773
|
-
endsWith:
|
|
3774
|
-
toArray:
|
|
3775
|
-
forEachEntry:
|
|
3776
|
-
matchAll:
|
|
3777
|
-
isHTMLForm:
|
|
3773
|
+
endsWith: gl,
|
|
3774
|
+
toArray: yl,
|
|
3775
|
+
forEachEntry: wl,
|
|
3776
|
+
matchAll: bl,
|
|
3777
|
+
isHTMLForm: Sl,
|
|
3778
3778
|
hasOwnProperty: mo,
|
|
3779
3779
|
hasOwnProp: mo,
|
|
3780
3780
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
3781
|
-
reduceDescriptors:
|
|
3782
|
-
freezeMethods:
|
|
3783
|
-
toObjectSet:
|
|
3784
|
-
toCamelCase:
|
|
3785
|
-
noop:
|
|
3786
|
-
toFiniteNumber:
|
|
3787
|
-
findKey:
|
|
3781
|
+
reduceDescriptors: ia,
|
|
3782
|
+
freezeMethods: Ll,
|
|
3783
|
+
toObjectSet: Rl,
|
|
3784
|
+
toCamelCase: Cl,
|
|
3785
|
+
noop: xl,
|
|
3786
|
+
toFiniteNumber: kl,
|
|
3787
|
+
findKey: oa,
|
|
3788
3788
|
global: wt,
|
|
3789
|
-
isContextDefined:
|
|
3790
|
-
isSpecCompliantForm:
|
|
3791
|
-
toJSONObject:
|
|
3792
|
-
isAsyncFn:
|
|
3793
|
-
isThenable:
|
|
3794
|
-
setImmediate:
|
|
3795
|
-
asap:
|
|
3789
|
+
isContextDefined: aa,
|
|
3790
|
+
isSpecCompliantForm: Nl,
|
|
3791
|
+
toJSONObject: _l,
|
|
3792
|
+
isAsyncFn: Tl,
|
|
3793
|
+
isThenable: Pl,
|
|
3794
|
+
setImmediate: sa,
|
|
3795
|
+
asap: Ol
|
|
3796
3796
|
};
|
|
3797
3797
|
function $(e, t, n, r, o) {
|
|
3798
3798
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
@@ -3818,7 +3818,7 @@ E.inherits($, Error, {
|
|
|
3818
3818
|
};
|
|
3819
3819
|
}
|
|
3820
3820
|
});
|
|
3821
|
-
const
|
|
3821
|
+
const la = $.prototype, ca = {};
|
|
3822
3822
|
[
|
|
3823
3823
|
"ERR_BAD_OPTION_VALUE",
|
|
3824
3824
|
"ERR_BAD_OPTION",
|
|
@@ -3834,32 +3834,32 @@ const ra = $.prototype, oa = {};
|
|
|
3834
3834
|
"ERR_INVALID_URL"
|
|
3835
3835
|
// eslint-disable-next-line func-names
|
|
3836
3836
|
].forEach((e) => {
|
|
3837
|
-
|
|
3837
|
+
ca[e] = { value: e };
|
|
3838
3838
|
});
|
|
3839
|
-
Object.defineProperties($,
|
|
3840
|
-
Object.defineProperty(
|
|
3839
|
+
Object.defineProperties($, ca);
|
|
3840
|
+
Object.defineProperty(la, "isAxiosError", { value: !0 });
|
|
3841
3841
|
$.from = (e, t, n, r, o, a) => {
|
|
3842
|
-
const i = Object.create(
|
|
3842
|
+
const i = Object.create(la);
|
|
3843
3843
|
return E.toFlatObject(e, i, function(l) {
|
|
3844
3844
|
return l !== Error.prototype;
|
|
3845
3845
|
}, (s) => s !== "isAxiosError"), $.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, a && Object.assign(i, a), i;
|
|
3846
3846
|
};
|
|
3847
|
-
const
|
|
3847
|
+
const Al = null;
|
|
3848
3848
|
function fr(e) {
|
|
3849
3849
|
return E.isPlainObject(e) || E.isArray(e);
|
|
3850
3850
|
}
|
|
3851
|
-
function
|
|
3851
|
+
function ua(e) {
|
|
3852
3852
|
return E.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
3853
3853
|
}
|
|
3854
3854
|
function go(e, t, n) {
|
|
3855
3855
|
return e ? e.concat(t).map(function(o, a) {
|
|
3856
|
-
return o =
|
|
3856
|
+
return o = ua(o), !n && a ? "[" + o + "]" : o;
|
|
3857
3857
|
}).join(n ? "." : "") : t;
|
|
3858
3858
|
}
|
|
3859
|
-
function
|
|
3859
|
+
function Ml(e) {
|
|
3860
3860
|
return E.isArray(e) && !e.some(fr);
|
|
3861
3861
|
}
|
|
3862
|
-
const
|
|
3862
|
+
const Dl = E.toFlatObject(E, {}, null, function(t) {
|
|
3863
3863
|
return /^is[A-Z]/.test(t);
|
|
3864
3864
|
});
|
|
3865
3865
|
function Un(e, t, n) {
|
|
@@ -3888,8 +3888,8 @@ function Un(e, t, n) {
|
|
|
3888
3888
|
if (m && !v && typeof m == "object") {
|
|
3889
3889
|
if (E.endsWith(p, "{}"))
|
|
3890
3890
|
p = r ? p : p.slice(0, -2), m = JSON.stringify(m);
|
|
3891
|
-
else if (E.isArray(m) &&
|
|
3892
|
-
return p =
|
|
3891
|
+
else if (E.isArray(m) && Ml(m) || (E.isFileList(m) || E.endsWith(p, "[]")) && (R = E.toArray(m)))
|
|
3892
|
+
return p = ua(p), R.forEach(function(x, _) {
|
|
3893
3893
|
!(E.isUndefined(x) || x === null) && t.append(
|
|
3894
3894
|
// eslint-disable-next-line no-nested-ternary
|
|
3895
3895
|
i === !0 ? go([p], _, a) : i === null ? p : p + "[]",
|
|
@@ -3899,7 +3899,7 @@ function Un(e, t, n) {
|
|
|
3899
3899
|
}
|
|
3900
3900
|
return fr(m) ? !0 : (t.append(go(v, p, a), c(m)), !1);
|
|
3901
3901
|
}
|
|
3902
|
-
const d = [], h = Object.assign(
|
|
3902
|
+
const d = [], h = Object.assign(Dl, {
|
|
3903
3903
|
defaultVisitor: u,
|
|
3904
3904
|
convertValue: c,
|
|
3905
3905
|
isVisitable: fr
|
|
@@ -3940,11 +3940,11 @@ function yo(e) {
|
|
|
3940
3940
|
function Pr(e, t) {
|
|
3941
3941
|
this._pairs = [], e && Un(e, this, t);
|
|
3942
3942
|
}
|
|
3943
|
-
const
|
|
3944
|
-
|
|
3943
|
+
const da = Pr.prototype;
|
|
3944
|
+
da.append = function(t, n) {
|
|
3945
3945
|
this._pairs.push([t, n]);
|
|
3946
3946
|
};
|
|
3947
|
-
|
|
3947
|
+
da.toString = function(t) {
|
|
3948
3948
|
const n = t ? function(r) {
|
|
3949
3949
|
return t.call(this, r, yo);
|
|
3950
3950
|
} : yo;
|
|
@@ -3952,13 +3952,13 @@ ia.toString = function(t) {
|
|
|
3952
3952
|
return n(o[0]) + "=" + n(o[1]);
|
|
3953
3953
|
}, "").join("&");
|
|
3954
3954
|
};
|
|
3955
|
-
function
|
|
3955
|
+
function Fl(e) {
|
|
3956
3956
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
3957
3957
|
}
|
|
3958
|
-
function
|
|
3958
|
+
function fa(e, t, n) {
|
|
3959
3959
|
if (!t)
|
|
3960
3960
|
return e;
|
|
3961
|
-
const r = n && n.encode ||
|
|
3961
|
+
const r = n && n.encode || Fl;
|
|
3962
3962
|
E.isFunction(n) && (n = {
|
|
3963
3963
|
serialize: n
|
|
3964
3964
|
});
|
|
@@ -4024,41 +4024,41 @@ class vo {
|
|
|
4024
4024
|
});
|
|
4025
4025
|
}
|
|
4026
4026
|
}
|
|
4027
|
-
const
|
|
4027
|
+
const ha = {
|
|
4028
4028
|
silentJSONParsing: !0,
|
|
4029
4029
|
forcedJSONParsing: !0,
|
|
4030
4030
|
clarifyTimeoutError: !1
|
|
4031
|
-
},
|
|
4031
|
+
}, Il = typeof URLSearchParams < "u" ? URLSearchParams : Pr, Bl = typeof FormData < "u" ? FormData : null, Hl = typeof Blob < "u" ? Blob : null, Ul = {
|
|
4032
4032
|
isBrowser: !0,
|
|
4033
4033
|
classes: {
|
|
4034
|
-
URLSearchParams:
|
|
4035
|
-
FormData:
|
|
4036
|
-
Blob:
|
|
4034
|
+
URLSearchParams: Il,
|
|
4035
|
+
FormData: Bl,
|
|
4036
|
+
Blob: Hl
|
|
4037
4037
|
},
|
|
4038
4038
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
4039
|
-
}, Or = typeof window < "u" && typeof document < "u", hr = typeof navigator == "object" && navigator || void 0,
|
|
4040
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
4039
|
+
}, Or = typeof window < "u" && typeof document < "u", hr = typeof navigator == "object" && navigator || void 0, Vl = Or && (!hr || ["ReactNative", "NativeScript", "NS"].indexOf(hr.product) < 0), jl = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
4040
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", $l = Or && window.location.href || "http://localhost", zl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4041
4041
|
__proto__: null,
|
|
4042
4042
|
hasBrowserEnv: Or,
|
|
4043
|
-
hasStandardBrowserEnv:
|
|
4044
|
-
hasStandardBrowserWebWorkerEnv:
|
|
4043
|
+
hasStandardBrowserEnv: Vl,
|
|
4044
|
+
hasStandardBrowserWebWorkerEnv: jl,
|
|
4045
4045
|
navigator: hr,
|
|
4046
|
-
origin:
|
|
4046
|
+
origin: $l
|
|
4047
4047
|
}, Symbol.toStringTag, { value: "Module" })), _e = {
|
|
4048
|
-
...
|
|
4049
|
-
...
|
|
4048
|
+
...zl,
|
|
4049
|
+
...Ul
|
|
4050
4050
|
};
|
|
4051
|
-
function
|
|
4051
|
+
function Jl(e, t) {
|
|
4052
4052
|
return Un(e, new _e.classes.URLSearchParams(), Object.assign({
|
|
4053
4053
|
visitor: function(n, r, o, a) {
|
|
4054
4054
|
return _e.isNode && E.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
4055
4055
|
}
|
|
4056
4056
|
}, t));
|
|
4057
4057
|
}
|
|
4058
|
-
function
|
|
4058
|
+
function Wl(e) {
|
|
4059
4059
|
return E.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
4060
4060
|
}
|
|
4061
|
-
function
|
|
4061
|
+
function ql(e) {
|
|
4062
4062
|
const t = {}, n = Object.keys(e);
|
|
4063
4063
|
let r;
|
|
4064
4064
|
const o = n.length;
|
|
@@ -4067,22 +4067,22 @@ function jl(e) {
|
|
|
4067
4067
|
a = n[r], t[a] = e[a];
|
|
4068
4068
|
return t;
|
|
4069
4069
|
}
|
|
4070
|
-
function
|
|
4070
|
+
function pa(e) {
|
|
4071
4071
|
function t(n, r, o, a) {
|
|
4072
4072
|
let i = n[a++];
|
|
4073
4073
|
if (i === "__proto__") return !0;
|
|
4074
4074
|
const s = Number.isFinite(+i), l = a >= n.length;
|
|
4075
|
-
return i = !i && E.isArray(o) ? o.length : i, l ? (E.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !E.isObject(o[i])) && (o[i] = []), t(n, r, o[i], a) && E.isArray(o[i]) && (o[i] =
|
|
4075
|
+
return i = !i && E.isArray(o) ? o.length : i, l ? (E.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !E.isObject(o[i])) && (o[i] = []), t(n, r, o[i], a) && E.isArray(o[i]) && (o[i] = ql(o[i])), !s);
|
|
4076
4076
|
}
|
|
4077
4077
|
if (E.isFormData(e) && E.isFunction(e.entries)) {
|
|
4078
4078
|
const n = {};
|
|
4079
4079
|
return E.forEachEntry(e, (r, o) => {
|
|
4080
|
-
t(
|
|
4080
|
+
t(Wl(r), o, n, 0);
|
|
4081
4081
|
}), n;
|
|
4082
4082
|
}
|
|
4083
4083
|
return null;
|
|
4084
4084
|
}
|
|
4085
|
-
function
|
|
4085
|
+
function Zl(e, t, n) {
|
|
4086
4086
|
if (E.isString(e))
|
|
4087
4087
|
try {
|
|
4088
4088
|
return (t || JSON.parse)(e), E.trim(e);
|
|
@@ -4092,13 +4092,13 @@ function $l(e, t, n) {
|
|
|
4092
4092
|
}
|
|
4093
4093
|
return (n || JSON.stringify)(e);
|
|
4094
4094
|
}
|
|
4095
|
-
const
|
|
4096
|
-
transitional:
|
|
4095
|
+
const en = {
|
|
4096
|
+
transitional: ha,
|
|
4097
4097
|
adapter: ["xhr", "http", "fetch"],
|
|
4098
4098
|
transformRequest: [function(t, n) {
|
|
4099
4099
|
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, a = E.isObject(t);
|
|
4100
4100
|
if (a && E.isHTMLForm(t) && (t = new FormData(t)), E.isFormData(t))
|
|
4101
|
-
return o ? JSON.stringify(
|
|
4101
|
+
return o ? JSON.stringify(pa(t)) : t;
|
|
4102
4102
|
if (E.isArrayBuffer(t) || E.isBuffer(t) || E.isStream(t) || E.isFile(t) || E.isBlob(t) || E.isReadableStream(t))
|
|
4103
4103
|
return t;
|
|
4104
4104
|
if (E.isArrayBufferView(t))
|
|
@@ -4108,7 +4108,7 @@ const Qt = {
|
|
|
4108
4108
|
let s;
|
|
4109
4109
|
if (a) {
|
|
4110
4110
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
4111
|
-
return
|
|
4111
|
+
return Jl(t, this.formSerializer).toString();
|
|
4112
4112
|
if ((s = E.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
4113
4113
|
const l = this.env && this.env.FormData;
|
|
4114
4114
|
return Un(
|
|
@@ -4118,10 +4118,10 @@ const Qt = {
|
|
|
4118
4118
|
);
|
|
4119
4119
|
}
|
|
4120
4120
|
}
|
|
4121
|
-
return a || o ? (n.setContentType("application/json", !1),
|
|
4121
|
+
return a || o ? (n.setContentType("application/json", !1), Zl(t)) : t;
|
|
4122
4122
|
}],
|
|
4123
4123
|
transformResponse: [function(t) {
|
|
4124
|
-
const n = this.transitional ||
|
|
4124
|
+
const n = this.transitional || en.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
4125
4125
|
if (E.isResponse(t) || E.isReadableStream(t))
|
|
4126
4126
|
return t;
|
|
4127
4127
|
if (t && E.isString(t) && (r && !this.responseType || o)) {
|
|
@@ -4159,9 +4159,9 @@ const Qt = {
|
|
|
4159
4159
|
}
|
|
4160
4160
|
};
|
|
4161
4161
|
E.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
4162
|
-
|
|
4162
|
+
en.headers[e] = {};
|
|
4163
4163
|
});
|
|
4164
|
-
const
|
|
4164
|
+
const Kl = E.toObjectSet([
|
|
4165
4165
|
"age",
|
|
4166
4166
|
"authorization",
|
|
4167
4167
|
"content-length",
|
|
@@ -4179,12 +4179,12 @@ const zl = E.toObjectSet([
|
|
|
4179
4179
|
"referer",
|
|
4180
4180
|
"retry-after",
|
|
4181
4181
|
"user-agent"
|
|
4182
|
-
]),
|
|
4182
|
+
]), Gl = (e) => {
|
|
4183
4183
|
const t = {};
|
|
4184
4184
|
let n, r, o;
|
|
4185
4185
|
return e && e.split(`
|
|
4186
4186
|
`).forEach(function(i) {
|
|
4187
|
-
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] &&
|
|
4187
|
+
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && Kl[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
4188
4188
|
}), t;
|
|
4189
4189
|
}, wo = Symbol("internals");
|
|
4190
4190
|
function Ht(e) {
|
|
@@ -4193,14 +4193,14 @@ function Ht(e) {
|
|
|
4193
4193
|
function Sn(e) {
|
|
4194
4194
|
return e === !1 || e == null ? e : E.isArray(e) ? e.map(Sn) : String(e);
|
|
4195
4195
|
}
|
|
4196
|
-
function
|
|
4196
|
+
function Yl(e) {
|
|
4197
4197
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
4198
4198
|
let r;
|
|
4199
4199
|
for (; r = n.exec(e); )
|
|
4200
4200
|
t[r[1]] = r[2];
|
|
4201
4201
|
return t;
|
|
4202
4202
|
}
|
|
4203
|
-
const
|
|
4203
|
+
const Xl = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
4204
4204
|
function Qn(e, t, n, r, o) {
|
|
4205
4205
|
if (E.isFunction(r))
|
|
4206
4206
|
return r.call(this, t, n);
|
|
@@ -4211,10 +4211,10 @@ function Qn(e, t, n, r, o) {
|
|
|
4211
4211
|
return r.test(t);
|
|
4212
4212
|
}
|
|
4213
4213
|
}
|
|
4214
|
-
function
|
|
4214
|
+
function Ql(e) {
|
|
4215
4215
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
4216
4216
|
}
|
|
4217
|
-
function
|
|
4217
|
+
function ec(e, t) {
|
|
4218
4218
|
const n = E.toCamelCase(" " + t);
|
|
4219
4219
|
["get", "set", "has"].forEach((r) => {
|
|
4220
4220
|
Object.defineProperty(e, r + n, {
|
|
@@ -4225,7 +4225,7 @@ function Kl(e, t) {
|
|
|
4225
4225
|
});
|
|
4226
4226
|
});
|
|
4227
4227
|
}
|
|
4228
|
-
let
|
|
4228
|
+
let Ae = class {
|
|
4229
4229
|
constructor(t) {
|
|
4230
4230
|
t && this.set(t);
|
|
4231
4231
|
}
|
|
@@ -4241,8 +4241,8 @@ let Me = class {
|
|
|
4241
4241
|
const i = (s, l) => E.forEach(s, (c, u) => a(c, u, l));
|
|
4242
4242
|
if (E.isPlainObject(t) || t instanceof this.constructor)
|
|
4243
4243
|
i(t, n);
|
|
4244
|
-
else if (E.isString(t) && (t = t.trim()) && !
|
|
4245
|
-
i(
|
|
4244
|
+
else if (E.isString(t) && (t = t.trim()) && !Xl(t))
|
|
4245
|
+
i(Gl(t), n);
|
|
4246
4246
|
else if (E.isHeaders(t))
|
|
4247
4247
|
for (const [s, l] of t.entries())
|
|
4248
4248
|
a(l, s, r);
|
|
@@ -4258,7 +4258,7 @@ let Me = class {
|
|
|
4258
4258
|
if (!n)
|
|
4259
4259
|
return o;
|
|
4260
4260
|
if (n === !0)
|
|
4261
|
-
return
|
|
4261
|
+
return Yl(o);
|
|
4262
4262
|
if (E.isFunction(n))
|
|
4263
4263
|
return n.call(this, o, r);
|
|
4264
4264
|
if (E.isRegExp(n))
|
|
@@ -4302,7 +4302,7 @@ let Me = class {
|
|
|
4302
4302
|
n[i] = Sn(o), delete n[a];
|
|
4303
4303
|
return;
|
|
4304
4304
|
}
|
|
4305
|
-
const s = t ?
|
|
4305
|
+
const s = t ? Ql(a) : String(a).trim();
|
|
4306
4306
|
s !== a && delete n[a], n[s] = Sn(o), r[s] = !0;
|
|
4307
4307
|
}), this;
|
|
4308
4308
|
}
|
|
@@ -4338,13 +4338,13 @@ let Me = class {
|
|
|
4338
4338
|
}).accessors, o = this.prototype;
|
|
4339
4339
|
function a(i) {
|
|
4340
4340
|
const s = Ht(i);
|
|
4341
|
-
r[s] || (
|
|
4341
|
+
r[s] || (ec(o, i), r[s] = !0);
|
|
4342
4342
|
}
|
|
4343
4343
|
return E.isArray(t) ? t.forEach(a) : a(t), this;
|
|
4344
4344
|
}
|
|
4345
4345
|
};
|
|
4346
|
-
|
|
4347
|
-
E.reduceDescriptors(
|
|
4346
|
+
Ae.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
4347
|
+
E.reduceDescriptors(Ae.prototype, ({ value: e }, t) => {
|
|
4348
4348
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
4349
4349
|
return {
|
|
4350
4350
|
get: () => e,
|
|
@@ -4353,15 +4353,15 @@ E.reduceDescriptors(Me.prototype, ({ value: e }, t) => {
|
|
|
4353
4353
|
}
|
|
4354
4354
|
};
|
|
4355
4355
|
});
|
|
4356
|
-
E.freezeMethods(
|
|
4356
|
+
E.freezeMethods(Ae);
|
|
4357
4357
|
function er(e, t) {
|
|
4358
|
-
const n = this ||
|
|
4358
|
+
const n = this || en, r = t || n, o = Ae.from(r.headers);
|
|
4359
4359
|
let a = r.data;
|
|
4360
4360
|
return E.forEach(e, function(s) {
|
|
4361
4361
|
a = s.call(n, a, o.normalize(), t ? t.status : void 0);
|
|
4362
4362
|
}), o.normalize(), a;
|
|
4363
4363
|
}
|
|
4364
|
-
function
|
|
4364
|
+
function ma(e) {
|
|
4365
4365
|
return !!(e && e.__CANCEL__);
|
|
4366
4366
|
}
|
|
4367
4367
|
function Ot(e, t, n) {
|
|
@@ -4370,7 +4370,7 @@ function Ot(e, t, n) {
|
|
|
4370
4370
|
E.inherits(Ot, $, {
|
|
4371
4371
|
__CANCEL__: !0
|
|
4372
4372
|
});
|
|
4373
|
-
function
|
|
4373
|
+
function ga(e, t, n) {
|
|
4374
4374
|
const r = n.config.validateStatus;
|
|
4375
4375
|
!n.status || !r || r(n.status) ? e(n) : t(new $(
|
|
4376
4376
|
"Request failed with status code " + n.status,
|
|
@@ -4380,11 +4380,11 @@ function da(e, t, n) {
|
|
|
4380
4380
|
n
|
|
4381
4381
|
));
|
|
4382
4382
|
}
|
|
4383
|
-
function
|
|
4383
|
+
function tc(e) {
|
|
4384
4384
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
4385
4385
|
return t && t[1] || "";
|
|
4386
4386
|
}
|
|
4387
|
-
function
|
|
4387
|
+
function nc(e, t) {
|
|
4388
4388
|
e = e || 10;
|
|
4389
4389
|
const n = new Array(e), r = new Array(e);
|
|
4390
4390
|
let o = 0, a = 0, i;
|
|
@@ -4400,7 +4400,7 @@ function Yl(e, t) {
|
|
|
4400
4400
|
return w ? Math.round(h * 1e3 / w) : void 0;
|
|
4401
4401
|
};
|
|
4402
4402
|
}
|
|
4403
|
-
function
|
|
4403
|
+
function rc(e, t) {
|
|
4404
4404
|
let n = 0, r = 1e3 / t, o, a;
|
|
4405
4405
|
const i = (c, u = Date.now()) => {
|
|
4406
4406
|
n = u, o = null, a && (clearTimeout(a), a = null), e.apply(null, c);
|
|
@@ -4414,8 +4414,8 @@ function Xl(e, t) {
|
|
|
4414
4414
|
}
|
|
4415
4415
|
const Nn = (e, t, n = 3) => {
|
|
4416
4416
|
let r = 0;
|
|
4417
|
-
const o =
|
|
4418
|
-
return
|
|
4417
|
+
const o = nc(50, 250);
|
|
4418
|
+
return rc((a) => {
|
|
4419
4419
|
const i = a.loaded, s = a.lengthComputable ? a.total : void 0, l = i - r, c = o(l), u = i <= s;
|
|
4420
4420
|
r = i;
|
|
4421
4421
|
const d = {
|
|
@@ -4438,10 +4438,10 @@ const Nn = (e, t, n = 3) => {
|
|
|
4438
4438
|
total: e,
|
|
4439
4439
|
loaded: r
|
|
4440
4440
|
}), t[1]];
|
|
4441
|
-
}, So = (e) => (...t) => E.asap(() => e(...t)),
|
|
4441
|
+
}, So = (e) => (...t) => E.asap(() => e(...t)), oc = _e.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, _e.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
4442
4442
|
new URL(_e.origin),
|
|
4443
4443
|
_e.navigator && /(msie|trident)/i.test(_e.navigator.userAgent)
|
|
4444
|
-
) : () => !0,
|
|
4444
|
+
) : () => !0, ac = _e.hasStandardBrowserEnv ? (
|
|
4445
4445
|
// Standard browser envs support document.cookie
|
|
4446
4446
|
{
|
|
4447
4447
|
write(e, t, n, r, o, a) {
|
|
@@ -4468,17 +4468,17 @@ const Nn = (e, t, n = 3) => {
|
|
|
4468
4468
|
}
|
|
4469
4469
|
}
|
|
4470
4470
|
);
|
|
4471
|
-
function
|
|
4471
|
+
function ic(e) {
|
|
4472
4472
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
4473
4473
|
}
|
|
4474
|
-
function
|
|
4474
|
+
function sc(e, t) {
|
|
4475
4475
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
4476
4476
|
}
|
|
4477
|
-
function
|
|
4478
|
-
let r = !
|
|
4479
|
-
return e && r || n == !1 ?
|
|
4477
|
+
function ya(e, t, n) {
|
|
4478
|
+
let r = !ic(t);
|
|
4479
|
+
return e && r || n == !1 ? sc(e, t) : t;
|
|
4480
4480
|
}
|
|
4481
|
-
const Co = (e) => e instanceof
|
|
4481
|
+
const Co = (e) => e instanceof Ae ? { ...e } : e;
|
|
4482
4482
|
function St(e, t) {
|
|
4483
4483
|
t = t || {};
|
|
4484
4484
|
const n = {};
|
|
@@ -4543,10 +4543,10 @@ function St(e, t) {
|
|
|
4543
4543
|
E.isUndefined(h) && d !== s || (n[u] = h);
|
|
4544
4544
|
}), n;
|
|
4545
4545
|
}
|
|
4546
|
-
const
|
|
4546
|
+
const va = (e) => {
|
|
4547
4547
|
const t = St({}, e);
|
|
4548
4548
|
let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: a, headers: i, auth: s } = t;
|
|
4549
|
-
t.headers = i =
|
|
4549
|
+
t.headers = i = Ae.from(i), t.url = fa(ya(t.baseURL, t.url), e.params, e.paramsSerializer), s && i.set(
|
|
4550
4550
|
"Authorization",
|
|
4551
4551
|
"Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
|
|
4552
4552
|
);
|
|
@@ -4559,16 +4559,16 @@ const ha = (e) => {
|
|
|
4559
4559
|
i.setContentType([c || "multipart/form-data", ...u].join("; "));
|
|
4560
4560
|
}
|
|
4561
4561
|
}
|
|
4562
|
-
if (_e.hasStandardBrowserEnv && (r && E.isFunction(r) && (r = r(t)), r || r !== !1 &&
|
|
4563
|
-
const c = o && a &&
|
|
4562
|
+
if (_e.hasStandardBrowserEnv && (r && E.isFunction(r) && (r = r(t)), r || r !== !1 && oc(t.url))) {
|
|
4563
|
+
const c = o && a && ac.read(a);
|
|
4564
4564
|
c && i.set(o, c);
|
|
4565
4565
|
}
|
|
4566
4566
|
return t;
|
|
4567
|
-
},
|
|
4567
|
+
}, lc = typeof XMLHttpRequest < "u", cc = lc && function(e) {
|
|
4568
4568
|
return new Promise(function(n, r) {
|
|
4569
|
-
const o =
|
|
4569
|
+
const o = va(e);
|
|
4570
4570
|
let a = o.data;
|
|
4571
|
-
const i =
|
|
4571
|
+
const i = Ae.from(o.headers).normalize();
|
|
4572
4572
|
let { responseType: s, onUploadProgress: l, onDownloadProgress: c } = o, u, d, h, w, m;
|
|
4573
4573
|
function p() {
|
|
4574
4574
|
w && w(), m && m(), o.cancelToken && o.cancelToken.unsubscribe(u), o.signal && o.signal.removeEventListener("abort", u);
|
|
@@ -4578,7 +4578,7 @@ const ha = (e) => {
|
|
|
4578
4578
|
function R() {
|
|
4579
4579
|
if (!v)
|
|
4580
4580
|
return;
|
|
4581
|
-
const x =
|
|
4581
|
+
const x = Ae.from(
|
|
4582
4582
|
"getAllResponseHeaders" in v && v.getAllResponseHeaders()
|
|
4583
4583
|
), N = {
|
|
4584
4584
|
data: !s || s === "text" || s === "json" ? v.responseText : v.response,
|
|
@@ -4588,7 +4588,7 @@ const ha = (e) => {
|
|
|
4588
4588
|
config: e,
|
|
4589
4589
|
request: v
|
|
4590
4590
|
};
|
|
4591
|
-
|
|
4591
|
+
ga(function(b) {
|
|
4592
4592
|
n(b), p();
|
|
4593
4593
|
}, function(b) {
|
|
4594
4594
|
r(b), p();
|
|
@@ -4602,7 +4602,7 @@ const ha = (e) => {
|
|
|
4602
4602
|
r(new $("Network Error", $.ERR_NETWORK, e, v)), v = null;
|
|
4603
4603
|
}, v.ontimeout = function() {
|
|
4604
4604
|
let _ = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
4605
|
-
const N = o.transitional ||
|
|
4605
|
+
const N = o.transitional || ha;
|
|
4606
4606
|
o.timeoutErrorMessage && (_ = o.timeoutErrorMessage), r(new $(
|
|
4607
4607
|
_,
|
|
4608
4608
|
N.clarifyTimeoutError ? $.ETIMEDOUT : $.ECONNABORTED,
|
|
@@ -4614,14 +4614,14 @@ const ha = (e) => {
|
|
|
4614
4614
|
}), E.isUndefined(o.withCredentials) || (v.withCredentials = !!o.withCredentials), s && s !== "json" && (v.responseType = o.responseType), c && ([h, m] = Nn(c, !0), v.addEventListener("progress", h)), l && v.upload && ([d, w] = Nn(l), v.upload.addEventListener("progress", d), v.upload.addEventListener("loadend", w)), (o.cancelToken || o.signal) && (u = (x) => {
|
|
4615
4615
|
v && (r(!x || x.type ? new Ot(null, e, v) : x), v.abort(), v = null);
|
|
4616
4616
|
}, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
|
|
4617
|
-
const S =
|
|
4617
|
+
const S = tc(o.url);
|
|
4618
4618
|
if (S && _e.protocols.indexOf(S) === -1) {
|
|
4619
4619
|
r(new $("Unsupported protocol " + S + ":", $.ERR_BAD_REQUEST, e));
|
|
4620
4620
|
return;
|
|
4621
4621
|
}
|
|
4622
4622
|
v.send(a || null);
|
|
4623
4623
|
});
|
|
4624
|
-
},
|
|
4624
|
+
}, uc = (e, t) => {
|
|
4625
4625
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
4626
4626
|
if (t || n) {
|
|
4627
4627
|
let r = new AbortController(), o;
|
|
@@ -4644,7 +4644,7 @@ const ha = (e) => {
|
|
|
4644
4644
|
const { signal: l } = r;
|
|
4645
4645
|
return l.unsubscribe = () => E.asap(s), l;
|
|
4646
4646
|
}
|
|
4647
|
-
},
|
|
4647
|
+
}, dc = function* (e, t) {
|
|
4648
4648
|
let n = e.byteLength;
|
|
4649
4649
|
if (n < t) {
|
|
4650
4650
|
yield e;
|
|
@@ -4653,10 +4653,10 @@ const ha = (e) => {
|
|
|
4653
4653
|
let r = 0, o;
|
|
4654
4654
|
for (; r < n; )
|
|
4655
4655
|
o = r + t, yield e.slice(r, o), r = o;
|
|
4656
|
-
},
|
|
4657
|
-
for await (const n of
|
|
4658
|
-
yield*
|
|
4659
|
-
},
|
|
4656
|
+
}, fc = async function* (e, t) {
|
|
4657
|
+
for await (const n of hc(e))
|
|
4658
|
+
yield* dc(n, t);
|
|
4659
|
+
}, hc = async function* (e) {
|
|
4660
4660
|
if (e[Symbol.asyncIterator]) {
|
|
4661
4661
|
yield* e;
|
|
4662
4662
|
return;
|
|
@@ -4673,7 +4673,7 @@ const ha = (e) => {
|
|
|
4673
4673
|
await t.cancel();
|
|
4674
4674
|
}
|
|
4675
4675
|
}, Eo = (e, t, n, r) => {
|
|
4676
|
-
const o =
|
|
4676
|
+
const o = fc(e, t);
|
|
4677
4677
|
let a = 0, i, s = (l) => {
|
|
4678
4678
|
i || (i = !0, r && r(l));
|
|
4679
4679
|
};
|
|
@@ -4701,13 +4701,13 @@ const ha = (e) => {
|
|
|
4701
4701
|
}, {
|
|
4702
4702
|
highWaterMark: 2
|
|
4703
4703
|
});
|
|
4704
|
-
}, Vn = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
|
|
4704
|
+
}, Vn = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", wa = Vn && typeof ReadableStream == "function", pc = Vn && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), ba = (e, ...t) => {
|
|
4705
4705
|
try {
|
|
4706
4706
|
return !!e(...t);
|
|
4707
4707
|
} catch {
|
|
4708
4708
|
return !1;
|
|
4709
4709
|
}
|
|
4710
|
-
},
|
|
4710
|
+
}, mc = wa && ba(() => {
|
|
4711
4711
|
let e = !1;
|
|
4712
4712
|
const t = new Request(_e.origin, {
|
|
4713
4713
|
body: new ReadableStream(),
|
|
@@ -4717,7 +4717,7 @@ const ha = (e) => {
|
|
|
4717
4717
|
}
|
|
4718
4718
|
}).headers.has("Content-Type");
|
|
4719
4719
|
return e && !t;
|
|
4720
|
-
}), Lo = 64 * 1024, pr =
|
|
4720
|
+
}), Lo = 64 * 1024, pr = wa && ba(() => E.isReadableStream(new Response("").body)), _n = {
|
|
4721
4721
|
stream: pr && ((e) => e.body)
|
|
4722
4722
|
};
|
|
4723
4723
|
Vn && ((e) => {
|
|
@@ -4727,7 +4727,7 @@ Vn && ((e) => {
|
|
|
4727
4727
|
});
|
|
4728
4728
|
});
|
|
4729
4729
|
})(new Response());
|
|
4730
|
-
const
|
|
4730
|
+
const gc = async (e) => {
|
|
4731
4731
|
if (e == null)
|
|
4732
4732
|
return 0;
|
|
4733
4733
|
if (E.isBlob(e))
|
|
@@ -4740,11 +4740,11 @@ const dc = async (e) => {
|
|
|
4740
4740
|
if (E.isArrayBufferView(e) || E.isArrayBuffer(e))
|
|
4741
4741
|
return e.byteLength;
|
|
4742
4742
|
if (E.isURLSearchParams(e) && (e = e + ""), E.isString(e))
|
|
4743
|
-
return (await
|
|
4744
|
-
},
|
|
4743
|
+
return (await pc(e)).byteLength;
|
|
4744
|
+
}, yc = async (e, t) => {
|
|
4745
4745
|
const n = E.toFiniteNumber(e.getContentLength());
|
|
4746
|
-
return n ??
|
|
4747
|
-
},
|
|
4746
|
+
return n ?? gc(t);
|
|
4747
|
+
}, vc = Vn && (async (e) => {
|
|
4748
4748
|
let {
|
|
4749
4749
|
url: t,
|
|
4750
4750
|
method: n,
|
|
@@ -4758,15 +4758,15 @@ const dc = async (e) => {
|
|
|
4758
4758
|
headers: u,
|
|
4759
4759
|
withCredentials: d = "same-origin",
|
|
4760
4760
|
fetchOptions: h
|
|
4761
|
-
} =
|
|
4761
|
+
} = va(e);
|
|
4762
4762
|
c = c ? (c + "").toLowerCase() : "text";
|
|
4763
|
-
let w =
|
|
4763
|
+
let w = uc([o, a && a.toAbortSignal()], i), m;
|
|
4764
4764
|
const p = w && w.unsubscribe && (() => {
|
|
4765
4765
|
w.unsubscribe();
|
|
4766
4766
|
});
|
|
4767
4767
|
let v;
|
|
4768
4768
|
try {
|
|
4769
|
-
if (l &&
|
|
4769
|
+
if (l && mc && n !== "get" && n !== "head" && (v = await yc(u, r)) !== 0) {
|
|
4770
4770
|
let N = new Request(t, {
|
|
4771
4771
|
method: "POST",
|
|
4772
4772
|
body: r,
|
|
@@ -4812,9 +4812,9 @@ const dc = async (e) => {
|
|
|
4812
4812
|
c = c || "text";
|
|
4813
4813
|
let _ = await _n[E.findKey(_n, c) || "text"](S, e);
|
|
4814
4814
|
return !x && p && p(), await new Promise((N, U) => {
|
|
4815
|
-
|
|
4815
|
+
ga(N, U, {
|
|
4816
4816
|
data: _,
|
|
4817
|
-
headers:
|
|
4817
|
+
headers: Ae.from(S.headers),
|
|
4818
4818
|
status: S.status,
|
|
4819
4819
|
statusText: S.statusText,
|
|
4820
4820
|
config: e,
|
|
@@ -4830,9 +4830,9 @@ const dc = async (e) => {
|
|
|
4830
4830
|
) : $.from(R, R && R.code, e, m);
|
|
4831
4831
|
}
|
|
4832
4832
|
}), mr = {
|
|
4833
|
-
http:
|
|
4834
|
-
xhr:
|
|
4835
|
-
fetch:
|
|
4833
|
+
http: Al,
|
|
4834
|
+
xhr: cc,
|
|
4835
|
+
fetch: vc
|
|
4836
4836
|
};
|
|
4837
4837
|
E.forEach(mr, (e, t) => {
|
|
4838
4838
|
if (e) {
|
|
@@ -4843,7 +4843,7 @@ E.forEach(mr, (e, t) => {
|
|
|
4843
4843
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
4844
4844
|
}
|
|
4845
4845
|
});
|
|
4846
|
-
const Ro = (e) => `- ${e}`,
|
|
4846
|
+
const Ro = (e) => `- ${e}`, wc = (e) => E.isFunction(e) || e === null || e === !1, Sa = {
|
|
4847
4847
|
getAdapter: (e) => {
|
|
4848
4848
|
e = E.isArray(e) ? e : [e];
|
|
4849
4849
|
const { length: t } = e;
|
|
@@ -4852,7 +4852,7 @@ const Ro = (e) => `- ${e}`, pc = (e) => E.isFunction(e) || e === null || e === !
|
|
|
4852
4852
|
for (let a = 0; a < t; a++) {
|
|
4853
4853
|
n = e[a];
|
|
4854
4854
|
let i;
|
|
4855
|
-
if (r = n, !
|
|
4855
|
+
if (r = n, !wc(n) && (r = mr[(i = String(n)).toLowerCase()], r === void 0))
|
|
4856
4856
|
throw new $(`Unknown adapter '${i}'`);
|
|
4857
4857
|
if (r)
|
|
4858
4858
|
break;
|
|
@@ -4879,24 +4879,24 @@ function tr(e) {
|
|
|
4879
4879
|
throw new Ot(null, e);
|
|
4880
4880
|
}
|
|
4881
4881
|
function xo(e) {
|
|
4882
|
-
return tr(e), e.headers =
|
|
4882
|
+
return tr(e), e.headers = Ae.from(e.headers), e.data = er.call(
|
|
4883
4883
|
e,
|
|
4884
4884
|
e.transformRequest
|
|
4885
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
4885
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Sa.getAdapter(e.adapter || en.adapter)(e).then(function(r) {
|
|
4886
4886
|
return tr(e), r.data = er.call(
|
|
4887
4887
|
e,
|
|
4888
4888
|
e.transformResponse,
|
|
4889
4889
|
r
|
|
4890
|
-
), r.headers =
|
|
4890
|
+
), r.headers = Ae.from(r.headers), r;
|
|
4891
4891
|
}, function(r) {
|
|
4892
|
-
return
|
|
4892
|
+
return ma(r) || (tr(e), r && r.response && (r.response.data = er.call(
|
|
4893
4893
|
e,
|
|
4894
4894
|
e.transformResponse,
|
|
4895
4895
|
r.response
|
|
4896
|
-
), r.response.headers =
|
|
4896
|
+
), r.response.headers = Ae.from(r.response.headers))), Promise.reject(r);
|
|
4897
4897
|
});
|
|
4898
4898
|
}
|
|
4899
|
-
const
|
|
4899
|
+
const Ca = "1.8.1", jn = {};
|
|
4900
4900
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
4901
4901
|
jn[e] = function(r) {
|
|
4902
4902
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
@@ -4905,7 +4905,7 @@ const ya = "1.8.1", jn = {};
|
|
|
4905
4905
|
const ko = {};
|
|
4906
4906
|
jn.transitional = function(t, n, r) {
|
|
4907
4907
|
function o(a, i) {
|
|
4908
|
-
return "[Axios v" +
|
|
4908
|
+
return "[Axios v" + Ca + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
|
|
4909
4909
|
}
|
|
4910
4910
|
return (a, i, s) => {
|
|
4911
4911
|
if (t === !1)
|
|
@@ -4924,7 +4924,7 @@ jn.transitional = function(t, n, r) {
|
|
|
4924
4924
|
jn.spelling = function(t) {
|
|
4925
4925
|
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
4926
4926
|
};
|
|
4927
|
-
function
|
|
4927
|
+
function bc(e, t, n) {
|
|
4928
4928
|
if (typeof e != "object")
|
|
4929
4929
|
throw new $("options must be an object", $.ERR_BAD_OPTION_VALUE);
|
|
4930
4930
|
const r = Object.keys(e);
|
|
@@ -4942,7 +4942,7 @@ function mc(e, t, n) {
|
|
|
4942
4942
|
}
|
|
4943
4943
|
}
|
|
4944
4944
|
const Cn = {
|
|
4945
|
-
assertOptions:
|
|
4945
|
+
assertOptions: bc,
|
|
4946
4946
|
validators: jn
|
|
4947
4947
|
}, Xe = Cn.validators;
|
|
4948
4948
|
let bt = class {
|
|
@@ -5002,7 +5002,7 @@ let bt = class {
|
|
|
5002
5002
|
(m) => {
|
|
5003
5003
|
delete a[m];
|
|
5004
5004
|
}
|
|
5005
|
-
), n.headers =
|
|
5005
|
+
), n.headers = Ae.concat(i, a);
|
|
5006
5006
|
const s = [];
|
|
5007
5007
|
let l = !0;
|
|
5008
5008
|
this.interceptors.request.forEach(function(p) {
|
|
@@ -5041,8 +5041,8 @@ let bt = class {
|
|
|
5041
5041
|
}
|
|
5042
5042
|
getUri(t) {
|
|
5043
5043
|
t = St(this.defaults, t);
|
|
5044
|
-
const n =
|
|
5045
|
-
return
|
|
5044
|
+
const n = ya(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
5045
|
+
return fa(n, t.params, t.paramsSerializer);
|
|
5046
5046
|
}
|
|
5047
5047
|
};
|
|
5048
5048
|
E.forEach(["delete", "get", "head", "options"], function(t) {
|
|
@@ -5069,7 +5069,7 @@ E.forEach(["post", "put", "patch"], function(t) {
|
|
|
5069
5069
|
}
|
|
5070
5070
|
bt.prototype[t] = n(), bt.prototype[t + "Form"] = n(!0);
|
|
5071
5071
|
});
|
|
5072
|
-
let
|
|
5072
|
+
let Sc = class Ea {
|
|
5073
5073
|
constructor(t) {
|
|
5074
5074
|
if (typeof t != "function")
|
|
5075
5075
|
throw new TypeError("executor must be a function.");
|
|
@@ -5135,19 +5135,19 @@ let gc = class va {
|
|
|
5135
5135
|
static source() {
|
|
5136
5136
|
let t;
|
|
5137
5137
|
return {
|
|
5138
|
-
token: new
|
|
5138
|
+
token: new Ea(function(o) {
|
|
5139
5139
|
t = o;
|
|
5140
5140
|
}),
|
|
5141
5141
|
cancel: t
|
|
5142
5142
|
};
|
|
5143
5143
|
}
|
|
5144
5144
|
};
|
|
5145
|
-
function
|
|
5145
|
+
function Cc(e) {
|
|
5146
5146
|
return function(n) {
|
|
5147
5147
|
return e.apply(null, n);
|
|
5148
5148
|
};
|
|
5149
5149
|
}
|
|
5150
|
-
function
|
|
5150
|
+
function Ec(e) {
|
|
5151
5151
|
return E.isObject(e) && e.isAxiosError === !0;
|
|
5152
5152
|
}
|
|
5153
5153
|
const gr = {
|
|
@@ -5218,35 +5218,35 @@ const gr = {
|
|
|
5218
5218
|
Object.entries(gr).forEach(([e, t]) => {
|
|
5219
5219
|
gr[t] = e;
|
|
5220
5220
|
});
|
|
5221
|
-
function
|
|
5222
|
-
const t = new bt(e), n =
|
|
5221
|
+
function La(e) {
|
|
5222
|
+
const t = new bt(e), n = ta(bt.prototype.request, t);
|
|
5223
5223
|
return E.extend(n, bt.prototype, t, { allOwnKeys: !0 }), E.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
5224
|
-
return
|
|
5224
|
+
return La(St(e, o));
|
|
5225
5225
|
}, n;
|
|
5226
5226
|
}
|
|
5227
|
-
const de =
|
|
5227
|
+
const de = La(en);
|
|
5228
5228
|
de.Axios = bt;
|
|
5229
5229
|
de.CanceledError = Ot;
|
|
5230
|
-
de.CancelToken =
|
|
5231
|
-
de.isCancel =
|
|
5232
|
-
de.VERSION =
|
|
5230
|
+
de.CancelToken = Sc;
|
|
5231
|
+
de.isCancel = ma;
|
|
5232
|
+
de.VERSION = Ca;
|
|
5233
5233
|
de.toFormData = Un;
|
|
5234
5234
|
de.AxiosError = $;
|
|
5235
5235
|
de.Cancel = de.CanceledError;
|
|
5236
5236
|
de.all = function(t) {
|
|
5237
5237
|
return Promise.all(t);
|
|
5238
5238
|
};
|
|
5239
|
-
de.spread =
|
|
5240
|
-
de.isAxiosError =
|
|
5239
|
+
de.spread = Cc;
|
|
5240
|
+
de.isAxiosError = Ec;
|
|
5241
5241
|
de.mergeConfig = St;
|
|
5242
|
-
de.AxiosHeaders =
|
|
5243
|
-
de.formToJSON = (e) =>
|
|
5244
|
-
de.getAdapter =
|
|
5242
|
+
de.AxiosHeaders = Ae;
|
|
5243
|
+
de.formToJSON = (e) => pa(E.isHTMLForm(e) ? new FormData(e) : e);
|
|
5244
|
+
de.getAdapter = Sa.getAdapter;
|
|
5245
5245
|
de.HttpStatusCode = gr;
|
|
5246
5246
|
de.default = de;
|
|
5247
5247
|
const {
|
|
5248
5248
|
Axios: Hd,
|
|
5249
|
-
AxiosError:
|
|
5249
|
+
AxiosError: Lc,
|
|
5250
5250
|
CanceledError: Ud,
|
|
5251
5251
|
isCancel: Vd,
|
|
5252
5252
|
CancelToken: jd,
|
|
@@ -5261,7 +5261,7 @@ const {
|
|
|
5261
5261
|
formToJSON: Yd,
|
|
5262
5262
|
getAdapter: Xd,
|
|
5263
5263
|
mergeConfig: Qd
|
|
5264
|
-
} = de,
|
|
5264
|
+
} = de, mn = "https://localhost:5043", at = async (e) => {
|
|
5265
5265
|
var h, w;
|
|
5266
5266
|
const { url: t, withToken: n, method: r, body: o, contentType: a, typeToken: i = "seller" } = e, s = n ? localStorage.getItem("sellerAccessToken") : null, l = n ? localStorage.getItem("token") : null, c = i === "seller" ? s : l, u = localStorage.getItem("dv"), d = {};
|
|
5267
5267
|
a && !(o instanceof FormData) ? d["Content-Type"] = a : o instanceof FormData || (d["Content-Type"] = "application/json"), n && c && (d.Authorization = `Bearer ${c}`);
|
|
@@ -5269,16 +5269,16 @@ const {
|
|
|
5269
5269
|
let m = null;
|
|
5270
5270
|
switch (r) {
|
|
5271
5271
|
case "get":
|
|
5272
|
-
m = await de.get(u ?
|
|
5272
|
+
m = await de.get(u ? mn : t, { headers: d });
|
|
5273
5273
|
break;
|
|
5274
5274
|
case "post":
|
|
5275
|
-
m = await de.post(u ?
|
|
5275
|
+
m = await de.post(u ? mn : t, o, { headers: d });
|
|
5276
5276
|
break;
|
|
5277
5277
|
case "put":
|
|
5278
|
-
m = await de.put(u ?
|
|
5278
|
+
m = await de.put(u ? mn : t, o, { headers: d });
|
|
5279
5279
|
break;
|
|
5280
5280
|
case "delete":
|
|
5281
|
-
m = await de.delete(u ?
|
|
5281
|
+
m = await de.delete(u ? mn : t, { headers: d });
|
|
5282
5282
|
break;
|
|
5283
5283
|
}
|
|
5284
5284
|
return {
|
|
@@ -5293,21 +5293,21 @@ const {
|
|
|
5293
5293
|
const S = (w = p.response) == null ? void 0 : w.status;
|
|
5294
5294
|
if (S === 401)
|
|
5295
5295
|
try {
|
|
5296
|
-
const _ = await import("./charge-
|
|
5296
|
+
const _ = await import("./charge-Bz7t9N9W.js").then((N) => N.a6);
|
|
5297
5297
|
_ && _.logoutCustomer ? await _.logoutCustomer() : localStorage.removeItem("token"), window.location.reload();
|
|
5298
5298
|
} catch (_) {
|
|
5299
5299
|
console.error("Failed to import logoutCustomer:", _), localStorage.removeItem("token"), window.location.reload();
|
|
5300
5300
|
}
|
|
5301
|
-
const x = new
|
|
5301
|
+
const x = new Lc(R, (S == null ? void 0 : S.toString()) || "400");
|
|
5302
5302
|
throw x.response = p.response, x;
|
|
5303
5303
|
}
|
|
5304
|
-
},
|
|
5305
|
-
api:
|
|
5306
|
-
googleFonts:
|
|
5307
|
-
storeApi:
|
|
5308
|
-
slApi:
|
|
5309
|
-
customersApi:
|
|
5310
|
-
cashappApi:
|
|
5304
|
+
}, Rc = "https://g-api.billgang.com", xc = "https://www.googleapis.com/webfonts/v1/webfonts", kc = "https://stores-api.billgang.com", Nc = "https://sl-api.billgang.com", _c = "https://customers-api.billgang.com", Tc = "https://cashapp-api.billgang.com", Pc = {
|
|
5305
|
+
api: Rc,
|
|
5306
|
+
googleFonts: xc,
|
|
5307
|
+
storeApi: kc,
|
|
5308
|
+
slApi: Nc,
|
|
5309
|
+
customersApi: _c,
|
|
5310
|
+
cashappApi: Tc
|
|
5311
5311
|
}, ef = (e, t = "300") => e === "not found" ? "empty" : `https://imagedelivery.net/${e}/w=${t}`, tf = (e) => {
|
|
5312
5312
|
const t = new Intl.NumberFormat("en-US", {
|
|
5313
5313
|
style: "currency",
|
|
@@ -5354,13 +5354,13 @@ const {
|
|
|
5354
5354
|
(t === null || typeof t != "object") && window.localStorage.setItem(e, String(t));
|
|
5355
5355
|
const n = JSON.stringify(t);
|
|
5356
5356
|
window.localStorage.setItem(e, n);
|
|
5357
|
-
}, nr = "f10120ab-7ebb-4785-b240-7428edaa3c4e", Ut = "https://t-api.billgang.com", Vt = "https://internal-t-api.antistock.io",
|
|
5357
|
+
}, nr = "f10120ab-7ebb-4785-b240-7428edaa3c4e", Ut = "https://t-api.billgang.com", Vt = "https://internal-t-api.antistock.io", Wt = "I", Oc = 10 * 1e3, Ac = 15 * 1e3, Mc = 15 * 60 * 1e3, Dc = () => {
|
|
5358
5358
|
var t;
|
|
5359
|
-
const e = yr(
|
|
5359
|
+
const e = yr(Wt);
|
|
5360
5360
|
return ((t = e == null ? void 0 : e.s) == null ? void 0 : t.i) || null;
|
|
5361
5361
|
}, sf = (e, t = "production", n) => {
|
|
5362
5362
|
const { pathname: r } = et(), o = $r(), a = $r(document.visibilityState);
|
|
5363
|
-
|
|
5363
|
+
Da(() => {
|
|
5364
5364
|
if (!e) return;
|
|
5365
5365
|
const i = () => Date.now(), s = async () => (await at({
|
|
5366
5366
|
url: `${n ? Vt : Ut}/${e}/t/p`,
|
|
@@ -5395,8 +5395,8 @@ const {
|
|
|
5395
5395
|
method: "post",
|
|
5396
5396
|
withToken: !1
|
|
5397
5397
|
});
|
|
5398
|
-
const S = yr(
|
|
5399
|
-
S && (S.s.u = i().toString(), S.lu = i().toString(), No(
|
|
5398
|
+
const S = yr(Wt);
|
|
5399
|
+
S && (S.s.u = i().toString(), S.lu = i().toString(), No(Wt, S));
|
|
5400
5400
|
}, d = (m, p, v) => {
|
|
5401
5401
|
o.current && clearInterval(o.current), o.current = setInterval(async () => {
|
|
5402
5402
|
if (document.visibilityState === "visible")
|
|
@@ -5405,17 +5405,17 @@ const {
|
|
|
5405
5405
|
} catch {
|
|
5406
5406
|
await h();
|
|
5407
5407
|
}
|
|
5408
|
-
},
|
|
5408
|
+
}, Oc);
|
|
5409
5409
|
}, h = async () => {
|
|
5410
5410
|
var R, S, x, _;
|
|
5411
|
-
const m = `${window.location.hostname}${r}`, p = yr(
|
|
5411
|
+
const m = `${window.location.hostname}${r}`, p = yr(Wt), v = i();
|
|
5412
5412
|
try {
|
|
5413
5413
|
let N = p == null ? void 0 : p.p;
|
|
5414
5414
|
N || (N = await s());
|
|
5415
5415
|
let U = (R = p == null ? void 0 : p.s) == null ? void 0 : R.i;
|
|
5416
|
-
const b = Number(((S = p == null ? void 0 : p.s) == null ? void 0 : S.u) || ((x = p == null ? void 0 : p.s) == null ? void 0 : x.c)), T = !U || v - b >
|
|
5416
|
+
const b = Number(((S = p == null ? void 0 : p.s) == null ? void 0 : S.u) || ((x = p == null ? void 0 : p.s) == null ? void 0 : x.c)), T = !U || v - b > Mc;
|
|
5417
5417
|
(!U || T) && (U = await l(N));
|
|
5418
|
-
const K = Number((p == null ? void 0 : p.lu) || 0), B = v - K >
|
|
5418
|
+
const K = Number((p == null ? void 0 : p.lu) || 0), B = v - K > Ac, ae = await c(
|
|
5419
5419
|
N,
|
|
5420
5420
|
U,
|
|
5421
5421
|
m,
|
|
@@ -5430,7 +5430,7 @@ const {
|
|
|
5430
5430
|
l: ae,
|
|
5431
5431
|
lu: v.toString()
|
|
5432
5432
|
};
|
|
5433
|
-
No(
|
|
5433
|
+
No(Wt, ie), d(N, U, ae);
|
|
5434
5434
|
} catch (N) {
|
|
5435
5435
|
console.error("[TrackingAnalytics] error", N);
|
|
5436
5436
|
}
|
|
@@ -5443,7 +5443,7 @@ const {
|
|
|
5443
5443
|
o.current && clearInterval(o.current), document.removeEventListener("visibilitychange", w);
|
|
5444
5444
|
};
|
|
5445
5445
|
}, [r, e, t]);
|
|
5446
|
-
},
|
|
5446
|
+
}, Fc = {
|
|
5447
5447
|
customerEmail: "",
|
|
5448
5448
|
recaptcha: "",
|
|
5449
5449
|
gateway: "",
|
|
@@ -5452,18 +5452,18 @@ const {
|
|
|
5452
5452
|
customFields: {},
|
|
5453
5453
|
discordSocialConnectId: null,
|
|
5454
5454
|
coupon: null,
|
|
5455
|
-
tsId:
|
|
5455
|
+
tsId: Dc()
|
|
5456
5456
|
};
|
|
5457
5457
|
let Nt = null;
|
|
5458
5458
|
const _o = localStorage.getItem("token");
|
|
5459
5459
|
if (_o)
|
|
5460
5460
|
try {
|
|
5461
|
-
Nt =
|
|
5461
|
+
Nt = Zs(JSON.parse(_o) || "");
|
|
5462
5462
|
} catch {
|
|
5463
5463
|
Nt = null;
|
|
5464
5464
|
}
|
|
5465
5465
|
const lf = se((e) => ({
|
|
5466
|
-
cart: { ...
|
|
5466
|
+
cart: { ...Fc, customerEmail: Nt ? Nt.email : "" },
|
|
5467
5467
|
products: [],
|
|
5468
5468
|
coupon: null,
|
|
5469
5469
|
pending: !1,
|
|
@@ -5498,10 +5498,10 @@ const lf = se((e) => ({
|
|
|
5498
5498
|
})), df = se((e) => ({
|
|
5499
5499
|
subscription: null,
|
|
5500
5500
|
setSubscription: (t) => e({ subscription: t })
|
|
5501
|
-
})),
|
|
5502
|
-
apiUrls:
|
|
5501
|
+
})), tn = se((e) => ({
|
|
5502
|
+
apiUrls: Pc,
|
|
5503
5503
|
setApiUrls: (t) => e(() => ({ apiUrls: t }))
|
|
5504
|
-
})),
|
|
5504
|
+
})), Ic = se((e) => ({
|
|
5505
5505
|
header: null,
|
|
5506
5506
|
footer: null,
|
|
5507
5507
|
announcement: null,
|
|
@@ -5520,7 +5520,7 @@ const lf = se((e) => ({
|
|
|
5520
5520
|
setSettings: (t) => e(() => ({ settings: t })),
|
|
5521
5521
|
settingsInstance: null,
|
|
5522
5522
|
setSettingsInstance: (t) => e(() => ({ settingsInstance: t }))
|
|
5523
|
-
})),
|
|
5523
|
+
})), Ar = se((e) => ({
|
|
5524
5524
|
general: null,
|
|
5525
5525
|
setGeneral: (t) => e(() => ({ general: t })),
|
|
5526
5526
|
isAntistock: !1,
|
|
@@ -5904,27 +5904,27 @@ const lf = se((e) => ({
|
|
|
5904
5904
|
var ke = [];
|
|
5905
5905
|
for (var rr = 0; rr < 256; ++rr)
|
|
5906
5906
|
ke.push((rr + 256).toString(16).slice(1));
|
|
5907
|
-
function
|
|
5907
|
+
function Bc(e, t = 0) {
|
|
5908
5908
|
return (ke[e[t + 0]] + ke[e[t + 1]] + ke[e[t + 2]] + ke[e[t + 3]] + "-" + ke[e[t + 4]] + ke[e[t + 5]] + "-" + ke[e[t + 6]] + ke[e[t + 7]] + "-" + ke[e[t + 8]] + ke[e[t + 9]] + "-" + ke[e[t + 10]] + ke[e[t + 11]] + ke[e[t + 12]] + ke[e[t + 13]] + ke[e[t + 14]] + ke[e[t + 15]]).toLowerCase();
|
|
5909
5909
|
}
|
|
5910
|
-
var
|
|
5911
|
-
function
|
|
5912
|
-
if (!
|
|
5910
|
+
var gn, Hc = new Uint8Array(16);
|
|
5911
|
+
function Uc() {
|
|
5912
|
+
if (!gn && (gn = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !gn))
|
|
5913
5913
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
5914
|
-
return
|
|
5914
|
+
return gn(Hc);
|
|
5915
5915
|
}
|
|
5916
|
-
var
|
|
5916
|
+
var Vc = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
5917
5917
|
const Po = {
|
|
5918
|
-
randomUUID:
|
|
5918
|
+
randomUUID: Vc
|
|
5919
5919
|
};
|
|
5920
5920
|
function lt(e, t, n) {
|
|
5921
5921
|
if (Po.randomUUID && !e)
|
|
5922
5922
|
return Po.randomUUID();
|
|
5923
5923
|
e = e || {};
|
|
5924
|
-
var r = e.random || (e.rng ||
|
|
5925
|
-
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128,
|
|
5924
|
+
var r = e.random || (e.rng || Uc)();
|
|
5925
|
+
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, Bc(r);
|
|
5926
5926
|
}
|
|
5927
|
-
function
|
|
5927
|
+
function jc(e, t) {
|
|
5928
5928
|
let n;
|
|
5929
5929
|
try {
|
|
5930
5930
|
n = e();
|
|
@@ -5965,9 +5965,9 @@ const wr = (e) => (t) => {
|
|
|
5965
5965
|
}
|
|
5966
5966
|
};
|
|
5967
5967
|
}
|
|
5968
|
-
},
|
|
5968
|
+
}, $c = (e, t) => (n, r, o) => {
|
|
5969
5969
|
let a = {
|
|
5970
|
-
storage:
|
|
5970
|
+
storage: jc(() => localStorage),
|
|
5971
5971
|
partialize: (p) => p,
|
|
5972
5972
|
version: 0,
|
|
5973
5973
|
merge: (p, v) => ({
|
|
@@ -6066,7 +6066,7 @@ const wr = (e) => (t) => {
|
|
|
6066
6066
|
l.delete(p);
|
|
6067
6067
|
})
|
|
6068
6068
|
}, a.skipHydration || m(), w || h;
|
|
6069
|
-
}, $n =
|
|
6069
|
+
}, $n = $c, Tn = se(
|
|
6070
6070
|
$n(
|
|
6071
6071
|
(e, t) => ({
|
|
6072
6072
|
pages: null,
|
|
@@ -6298,7 +6298,7 @@ const wr = (e) => (t) => {
|
|
|
6298
6298
|
[n]: i
|
|
6299
6299
|
},
|
|
6300
6300
|
currentBlock: s
|
|
6301
|
-
}),
|
|
6301
|
+
}), zc.getState().setActiveBlock({
|
|
6302
6302
|
id: s,
|
|
6303
6303
|
neededScroll: !0
|
|
6304
6304
|
}), He.getState().setNotifications([
|
|
@@ -6386,7 +6386,7 @@ const wr = (e) => (t) => {
|
|
|
6386
6386
|
future: p
|
|
6387
6387
|
}), m.themeSettings && w(m.themeSettings), m.layers && l(m.layers), m.header && c(m.header, !1), m.footer && u(m.footer, !1), m.announcement && d(m.announcement, !1);
|
|
6388
6388
|
}
|
|
6389
|
-
})),
|
|
6389
|
+
})), zc = se(
|
|
6390
6390
|
$n(
|
|
6391
6391
|
(e) => ({
|
|
6392
6392
|
onPreview: !0,
|
|
@@ -6407,7 +6407,7 @@ const wr = (e) => (t) => {
|
|
|
6407
6407
|
}
|
|
6408
6408
|
}
|
|
6409
6409
|
)
|
|
6410
|
-
),
|
|
6410
|
+
), Jc = [
|
|
6411
6411
|
{
|
|
6412
6412
|
icon: "TreeStructure",
|
|
6413
6413
|
name: "Layers"
|
|
@@ -6560,7 +6560,7 @@ const wr = (e) => (t) => {
|
|
|
6560
6560
|
}, Cf = [
|
|
6561
6561
|
{
|
|
6562
6562
|
value: "4:3",
|
|
6563
|
-
addon: /* @__PURE__ */
|
|
6563
|
+
addon: /* @__PURE__ */ O(
|
|
6564
6564
|
"div",
|
|
6565
6565
|
{
|
|
6566
6566
|
style: {
|
|
@@ -6570,7 +6570,7 @@ const wr = (e) => (t) => {
|
|
|
6570
6570
|
alignItems: "center",
|
|
6571
6571
|
justifyContent: "center"
|
|
6572
6572
|
},
|
|
6573
|
-
children: /* @__PURE__ */
|
|
6573
|
+
children: /* @__PURE__ */ O(
|
|
6574
6574
|
"div",
|
|
6575
6575
|
{
|
|
6576
6576
|
style: {
|
|
@@ -6586,7 +6586,7 @@ const wr = (e) => (t) => {
|
|
|
6586
6586
|
},
|
|
6587
6587
|
{
|
|
6588
6588
|
value: "16:9",
|
|
6589
|
-
addon: /* @__PURE__ */
|
|
6589
|
+
addon: /* @__PURE__ */ O(
|
|
6590
6590
|
"div",
|
|
6591
6591
|
{
|
|
6592
6592
|
style: {
|
|
@@ -6596,7 +6596,7 @@ const wr = (e) => (t) => {
|
|
|
6596
6596
|
alignItems: "center",
|
|
6597
6597
|
justifyContent: "center"
|
|
6598
6598
|
},
|
|
6599
|
-
children: /* @__PURE__ */
|
|
6599
|
+
children: /* @__PURE__ */ O(
|
|
6600
6600
|
"div",
|
|
6601
6601
|
{
|
|
6602
6602
|
style: {
|
|
@@ -6612,7 +6612,7 @@ const wr = (e) => (t) => {
|
|
|
6612
6612
|
},
|
|
6613
6613
|
{
|
|
6614
6614
|
value: "9:16",
|
|
6615
|
-
addon: /* @__PURE__ */
|
|
6615
|
+
addon: /* @__PURE__ */ O(
|
|
6616
6616
|
"div",
|
|
6617
6617
|
{
|
|
6618
6618
|
style: {
|
|
@@ -6622,7 +6622,7 @@ const wr = (e) => (t) => {
|
|
|
6622
6622
|
alignItems: "center",
|
|
6623
6623
|
justifyContent: "center"
|
|
6624
6624
|
},
|
|
6625
|
-
children: /* @__PURE__ */
|
|
6625
|
+
children: /* @__PURE__ */ O(
|
|
6626
6626
|
"div",
|
|
6627
6627
|
{
|
|
6628
6628
|
style: {
|
|
@@ -6638,7 +6638,7 @@ const wr = (e) => (t) => {
|
|
|
6638
6638
|
},
|
|
6639
6639
|
{
|
|
6640
6640
|
value: "1:1",
|
|
6641
|
-
addon: /* @__PURE__ */
|
|
6641
|
+
addon: /* @__PURE__ */ O(
|
|
6642
6642
|
"div",
|
|
6643
6643
|
{
|
|
6644
6644
|
style: {
|
|
@@ -6648,7 +6648,7 @@ const wr = (e) => (t) => {
|
|
|
6648
6648
|
alignItems: "center",
|
|
6649
6649
|
justifyContent: "center"
|
|
6650
6650
|
},
|
|
6651
|
-
children: /* @__PURE__ */
|
|
6651
|
+
children: /* @__PURE__ */ O(
|
|
6652
6652
|
"div",
|
|
6653
6653
|
{
|
|
6654
6654
|
style: {
|
|
@@ -6674,9 +6674,9 @@ const wr = (e) => (t) => {
|
|
|
6674
6674
|
md: "Paragraph Medium",
|
|
6675
6675
|
sm: "Paragraph Small"
|
|
6676
6676
|
}, Lf = se((e) => ({
|
|
6677
|
-
activeBlock:
|
|
6677
|
+
activeBlock: Jc[0],
|
|
6678
6678
|
setActiveBlock: (t) => e(() => ({ activeBlock: t }))
|
|
6679
|
-
})),
|
|
6679
|
+
})), Wc = se((e) => ({
|
|
6680
6680
|
openModal: !1,
|
|
6681
6681
|
setOpenModal: (t) => e(() => ({ openModal: t })),
|
|
6682
6682
|
onChange: null,
|
|
@@ -6686,7 +6686,7 @@ const wr = (e) => (t) => {
|
|
|
6686
6686
|
})), Rf = se((e) => ({
|
|
6687
6687
|
error: null,
|
|
6688
6688
|
setError: (t) => e(() => ({ error: t }))
|
|
6689
|
-
})),
|
|
6689
|
+
})), qc = se((e) => ({
|
|
6690
6690
|
title: null,
|
|
6691
6691
|
description: null,
|
|
6692
6692
|
onConfirm: null,
|
|
@@ -6695,10 +6695,10 @@ const wr = (e) => (t) => {
|
|
|
6695
6695
|
setOnConfirm: (t) => e(() => ({ onConfirm: t }))
|
|
6696
6696
|
}));
|
|
6697
6697
|
var xf = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
6698
|
-
function
|
|
6698
|
+
function Zc(e) {
|
|
6699
6699
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6700
6700
|
}
|
|
6701
|
-
var
|
|
6701
|
+
var Ra = { exports: {} };
|
|
6702
6702
|
/*!
|
|
6703
6703
|
Copyright (c) 2018 Jed Watson.
|
|
6704
6704
|
Licensed under the MIT License (MIT), see
|
|
@@ -6733,9 +6733,9 @@ var ba = { exports: {} };
|
|
|
6733
6733
|
}
|
|
6734
6734
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
6735
6735
|
})();
|
|
6736
|
-
})(
|
|
6737
|
-
var
|
|
6738
|
-
const Ue = /* @__PURE__ */
|
|
6736
|
+
})(Ra);
|
|
6737
|
+
var Kc = Ra.exports;
|
|
6738
|
+
const Ue = /* @__PURE__ */ Zc(Kc), kf = se((e) => ({
|
|
6739
6739
|
currentDevice: {
|
|
6740
6740
|
icon: "Desktop",
|
|
6741
6741
|
value: "desktop"
|
|
@@ -6746,7 +6746,7 @@ se((e) => ({
|
|
|
6746
6746
|
pageData: null,
|
|
6747
6747
|
setPageData: (t) => e(() => ({ pageData: t }))
|
|
6748
6748
|
}));
|
|
6749
|
-
const
|
|
6749
|
+
const xa = se((e, t) => ({
|
|
6750
6750
|
isModalVisible: !1,
|
|
6751
6751
|
hoverBlockId: null,
|
|
6752
6752
|
isMouseOverModal: !1,
|
|
@@ -6790,7 +6790,7 @@ const Sa = se((e, t) => ({
|
|
|
6790
6790
|
setHoverBlockTopPosition: (n) => {
|
|
6791
6791
|
e({ hoverBlockTopPosition: n });
|
|
6792
6792
|
}
|
|
6793
|
-
})),
|
|
6793
|
+
})), Gc = se(
|
|
6794
6794
|
$n(
|
|
6795
6795
|
(e) => ({
|
|
6796
6796
|
fonts: [],
|
|
@@ -6800,7 +6800,7 @@ const Sa = se((e, t) => ({
|
|
|
6800
6800
|
name: "fonts-storage"
|
|
6801
6801
|
}
|
|
6802
6802
|
)
|
|
6803
|
-
),
|
|
6803
|
+
), ka = se()((e) => ({
|
|
6804
6804
|
color: "default",
|
|
6805
6805
|
initialColor: "",
|
|
6806
6806
|
setInitialColor: (t) => e(() => ({ initialColor: t })),
|
|
@@ -6871,18 +6871,18 @@ const Sa = se((e, t) => ({
|
|
|
6871
6871
|
activeColorIndex: 1,
|
|
6872
6872
|
isGradientActive: !0
|
|
6873
6873
|
}))
|
|
6874
|
-
})),
|
|
6874
|
+
})), Yc = se((e) => ({
|
|
6875
6875
|
showTooltip: !1,
|
|
6876
6876
|
setShowTooltip: (t) => e({ showTooltip: t })
|
|
6877
|
-
})),
|
|
6878
|
-
loader:
|
|
6879
|
-
}, Nf = () => /* @__PURE__ */
|
|
6880
|
-
tooltip:
|
|
6877
|
+
})), Xc = "_loader_14kob_4", Qc = {
|
|
6878
|
+
loader: Xc
|
|
6879
|
+
}, Nf = () => /* @__PURE__ */ O("div", { className: Qc.loader }), eu = "_tooltip_q7jko_8", tu = {
|
|
6880
|
+
tooltip: eu
|
|
6881
6881
|
}, _f = (e) => {
|
|
6882
|
-
const { text: t } = e, { setShowTooltip: n } =
|
|
6882
|
+
const { text: t } = e, { setShowTooltip: n } = Yc();
|
|
6883
6883
|
return Te.useEffect(() => (n(!0), () => {
|
|
6884
6884
|
n(!1);
|
|
6885
|
-
}), []), /* @__PURE__ */
|
|
6885
|
+
}), []), /* @__PURE__ */ O("div", { className: tu.tooltip, children: t });
|
|
6886
6886
|
}, Tf = (e) => e ? e.replace(/_/g, " ").split(" ").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(" and ") : "";
|
|
6887
6887
|
function Pf(e, t) {
|
|
6888
6888
|
if (!t || !t[e])
|
|
@@ -6890,33 +6890,41 @@ function Pf(e, t) {
|
|
|
6890
6890
|
const n = new t[e]();
|
|
6891
6891
|
return !n.blockSettings || !n.blockSettings.displayName ? "unknown name" : n.blockSettings.displayName;
|
|
6892
6892
|
}
|
|
6893
|
-
const
|
|
6893
|
+
const nu = (e, t, n, r, o, a, i) => {
|
|
6894
6894
|
const s = e.currentTarget.getBoundingClientRect(), l = window.innerHeight - s.bottom, c = s.top, u = window.innerWidth - s.right, d = s.left;
|
|
6895
6895
|
let h, w;
|
|
6896
6896
|
return h = s.bottom + r + window.scrollY, w = s.left, (l < t || l < o) && (c >= t + i ? h = s.top - t - r + window.scrollY : h = window.scrollY + i), h - window.scrollY < i && (h = window.scrollY + i), (u < n || u < a) && (d >= n ? w = s.right - n : w = (window.innerWidth - n) / 2), w < s.right + a && (w = s.right + a), w < s.right && w + n > s.left && h < s.bottom && h + t > s.top && (u >= n + a ? w = s.right + r + a : l >= t ? h = s.bottom + r + window.scrollY : (h = window.scrollY + i, w = (window.innerWidth - n) / 2)), { top: h, left: w };
|
|
6897
|
-
}, Xc = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M20.25 15.45V8.55C20.25 6.86984 20.25 6.02976 19.923 5.38803C19.6354 4.82354 19.1765 4.3646 18.612 4.07698C17.9702 3.75 17.1302 3.75 15.45 3.75H8.55C6.86984 3.75 6.02976 3.75 5.38803 4.07698C4.82354 4.3646 4.3646 4.82354 4.07698 5.38803C3.75 6.02976 3.75 6.86984 3.75 8.55V15.45C3.75 17.1302 3.75 17.9702 4.07698 18.612C4.3646 19.1765 4.82354 19.6354 5.38803 19.923C6.02976 20.25 6.86984 20.25 8.55 20.25H15.45C17.1302 20.25 17.9702 20.25 18.612 19.923C19.1765 19.6354 19.6354 19.1765 19.923 18.612C20.25 17.9702 20.25 17.1302 20.25 15.45Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), Qc = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M12.0002 12V20.5M12.0002 12L4.5 7.78125M12.0002 12L19.2627 7.91474M20.25 9.11392V14.8861C20.25 15.9699 19.6654 16.9695 18.7208 17.5008L13.4708 20.4539C12.5575 20.9676 11.4425 20.9676 10.5292 20.4539L5.27922 17.5008C4.33459 16.9695 3.75 15.9699 3.75 14.8861V9.11392C3.75 8.0301 4.33459 7.03055 5.27922 6.49919L10.5292 3.54607C11.4425 3.03237 12.5575 3.03237 13.4708 3.54607L18.7208 6.4992C19.6654 7.03055 20.25 8.0301 20.25 9.11392Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), eu = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M8.25 20.25H6.75C5.09315 20.25 3.75 18.9069 3.75 17.25V15.75M15.75 20.25H17.25C18.9069 20.25 20.25 18.9069 20.25 17.25V15.75M3.75 8.25V6.75C3.75 5.09315 5.09315 3.75 6.75 3.75H8.25M15.75 3.75H17.25C18.9069 3.75 20.25 5.09315 20.25 6.75V8.25M15.25 10.3571L12 11.9999M12 11.9999L8.75 10.3571M12 11.9999V15.2856M11.0077 8.28125L9.25772 9.28125C8.63457 9.63733 8.25 10.3 8.25 11.0177V12.9822C8.25 13.6999 8.63457 14.3626 9.25772 14.7186L11.0077 15.7186C11.6226 16.07 12.3774 16.07 12.9923 15.7186L14.7423 14.7186C15.3654 14.3626 15.75 13.6999 15.75 12.9822V11.0177C15.75 10.3 15.3654 9.63733 14.7423 9.28125L12.9923 8.28125C12.3774 7.9299 11.6226 7.9299 11.0077 8.28125Z", stroke: "#252525", strokeWidth: 1.40625, strokeLinecap: "round", strokeLinejoin: "round" })), tu = (e) => /* @__PURE__ */ y.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M3.125 3.125H16.875", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ y.createElement("path", { d: "M12.9167 5.625C12.1113 5.625 11.4583 6.27792 11.4583 7.08333V12.0833C11.4583 12.8887 12.1113 13.5417 12.9167 13.5417C13.7221 13.5417 14.375 12.8887 14.375 12.0833V7.08333C14.375 6.27792 13.7221 5.625 12.9167 5.625Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ y.createElement("path", { d: "M7.08333 5.625C6.27792 5.625 5.625 6.27792 5.625 7.08333V15.4167C5.625 16.2221 6.27792 16.875 7.08333 16.875C7.88875 16.875 8.54167 16.2221 8.54167 15.4167V7.08333C8.54167 6.27792 7.88875 5.625 7.08333 5.625Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), nu = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M17.1073 17.1577C17.1073 18.8655 15.7213 20.25 14.0116 20.25C12.3019 20.25 10.9159 18.8655 10.9159 17.1577C10.9159 15.4499 12.3019 14.0654 14.0116 14.0654C15.7213 14.0654 17.1073 15.4499 17.1073 17.1577Z", stroke: "#252525", strokeWidth: 1.5, strokeLinejoin: "round" }), /* @__PURE__ */ y.createElement("path", { d: "M4.99145 6.98598L10.4681 11.5764L3.75 14.0189L4.99145 6.98598Z", stroke: "#252525", strokeWidth: 1.5, strokeLinejoin: "round" }), /* @__PURE__ */ y.createElement("path", { d: "M14.0106 4.46532C14.1536 3.9321 14.7017 3.61567 15.235 3.75841L19.2835 4.842C19.8172 4.98485 20.1339 5.53345 19.9908 6.06708L18.9065 10.1093C18.7635 10.6425 18.2154 10.9589 17.6821 10.8162L13.6336 9.73258C13.0999 9.58973 12.7832 9.04113 12.9263 8.50749L14.0106 4.46532Z", stroke: "#252525", strokeWidth: 1.5, strokeLinejoin: "round" })), ru = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M9.25 14.75H10C10 14.3358 9.66421 14 9.25 14V14.75ZM3.75 20.25H3V21H3.75V20.25ZM14.75 9.25H15.5C15.5 8.83579 15.1642 8.5 14.75 8.5V9.25ZM20.25 20.25V21H21V20.25H20.25ZM1.75 19.5C1.33579 19.5 1 19.8358 1 20.25C1 20.6642 1.33579 21 1.75 21V19.5ZM22.25 21C22.6642 21 23 20.6642 23 20.25C23 19.8358 22.6642 19.5 22.25 19.5V21ZM5.25 15.5H9.25V14H5.25V15.5ZM8.5 14.75V20.25H10V14.75H8.5ZM9.25 19.5H3.75V21H9.25V19.5ZM4.5 20.25V16.25H3V20.25H4.5ZM5.25 14C4.00736 14 3 15.0074 3 16.25H4.5C4.5 15.8358 4.83579 15.5 5.25 15.5V14ZM10.75 10H14.75V8.5H10.75V10ZM14 9.25V20.25H15.5V9.25H14ZM14.75 19.5H9.25V21H14.75V19.5ZM10 20.25V10.75H8.5V20.25H10ZM10.75 8.5C9.50736 8.5 8.5 9.50736 8.5 10.75H10C10 10.3358 10.3358 10 10.75 10V8.5ZM16.25 4.5H18.75V3H16.25V4.5ZM19.5 5.25V20.25H21V5.25H19.5ZM20.25 19.5H14.75V21H20.25V19.5ZM15.5 20.25V5.25H14V20.25H15.5ZM18.75 4.5C19.1642 4.5 19.5 4.83579 19.5 5.25H21C21 4.00736 19.9926 3 18.75 3V4.5ZM16.25 3C15.0074 3 14 4.00736 14 5.25H15.5C15.5 4.83579 15.8358 4.5 16.25 4.5V3ZM1.75 21H22.25V19.5H1.75V21Z", fill: "#252525" })), ou = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M4 14.2105L6.84488 12.0821C7.66137 11.5378 8.75215 11.6663 9.41987 12.3853C10.9123 13.9926 12.6426 15.4538 15 15.4538C17.1727 15.4538 18.6125 14.6485 20 13.261M6.75 20.25H17.25C18.9069 20.25 20.25 18.9069 20.25 17.25V6.75C20.25 5.09315 18.9069 3.75 17.25 3.75H6.75C5.09315 3.75 3.75 5.09315 3.75 6.75V17.25C3.75 18.9069 5.09315 20.25 6.75 20.25ZM17.25 8.75C17.25 9.85457 16.3546 10.75 15.25 10.75C14.1454 10.75 13.25 9.85457 13.25 8.75C13.25 7.64543 14.1454 6.75 15.25 6.75C16.3546 6.75 17.25 7.64543 17.25 8.75Z", stroke: "#252525", strokeWidth: 1.5, strokeLinecap: "round" })), au = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M17.252 19.25H6.74803C5.26465 19.25 4.29985 17.6884 4.96324 16.3611L10.2152 5.85345C10.9506 4.38218 13.0494 4.38218 13.7848 5.85345L19.0368 16.3611C19.7001 17.6884 18.7354 19.25 17.252 19.25Z", stroke: "#252525", strokeWidth: 1.5, strokeLinejoin: "round" })), iu = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M11 2.75V4.5M16.9069 5.09326L15.5962 6.40392M6.40381 15.5962L5.09315 16.9069M4.5 11H2.75M6.40381 6.40381L5.09315 5.09315M14.1323 20.999L10.5777 11.3226C10.3542 10.7143 10.9552 10.1281 11.5577 10.3666L21.0397 14.1199C21.4283 14.2737 21.4679 14.8081 21.1062 15.0175L17.4231 17.1498C17.3097 17.2155 17.2155 17.3097 17.1498 17.4231L15.0343 21.0771C14.822 21.4438 14.2784 21.3967 14.1323 20.999Z", stroke: "#252525", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), su = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M5.38803 19.923L5.72852 19.2548H5.72852L5.38803 19.923ZM4.07698 18.612L3.40873 18.9525H3.40873L4.07698 18.612ZM19.923 18.612L19.2548 18.2715V18.2715L19.923 18.612ZM18.612 19.923L18.2715 19.2548H18.2715L18.612 19.923ZM19.923 5.38803L19.2548 5.72852V5.72852L19.923 5.38803ZM18.612 4.07698L18.9525 3.40873V3.40873L18.612 4.07698ZM4.07698 5.38803L4.74524 5.72852L4.07698 5.38803ZM5.38803 4.07698L5.72852 4.74524L5.38803 4.07698ZM19.5 8.55V15.45H21V8.55H19.5ZM15.45 19.5H8.55V21H15.45V19.5ZM4.5 15.45V8.55H3V15.45H4.5ZM8.55 4.5H15.45V3H8.55V4.5ZM8.55 19.5C7.69755 19.5 7.10331 19.4994 6.64068 19.4616C6.1868 19.4245 5.92604 19.3554 5.72852 19.2548L5.04754 20.5913C5.49175 20.8176 5.97189 20.912 6.51853 20.9566C7.05641 21.0006 7.7223 21 8.55 21V19.5ZM3 15.45C3 16.2777 2.99942 16.9436 3.04336 17.4815C3.08803 18.0281 3.18238 18.5082 3.40873 18.9525L4.74524 18.2715C4.6446 18.074 4.57546 17.8132 4.53838 17.3593C4.50058 16.8967 4.5 16.3025 4.5 15.45H3ZM5.72852 19.2548C5.30516 19.039 4.96095 18.6948 4.74524 18.2715L3.40873 18.9525C3.76825 19.6581 4.34193 20.2317 5.04754 20.5913L5.72852 19.2548ZM19.5 15.45C19.5 16.3025 19.4994 16.8967 19.4616 17.3593C19.4245 17.8132 19.3554 18.074 19.2548 18.2715L20.5913 18.9525C20.8176 18.5082 20.912 18.0281 20.9566 17.4815C21.0006 16.9436 21 16.2777 21 15.45H19.5ZM15.45 21C16.2777 21 16.9436 21.0006 17.4815 20.9566C18.0281 20.912 18.5082 20.8176 18.9525 20.5913L18.2715 19.2548C18.074 19.3554 17.8132 19.4245 17.3593 19.4616C16.8967 19.4994 16.3025 19.5 15.45 19.5V21ZM19.2548 18.2715C19.0391 18.6948 18.6948 19.039 18.2715 19.2548L18.9525 20.5913C19.6581 20.2317 20.2318 19.6581 20.5913 18.9525L19.2548 18.2715ZM21 8.55C21 7.7223 21.0006 7.05641 20.9566 6.51853C20.912 5.97189 20.8176 5.49175 20.5913 5.04754L19.2548 5.72852C19.3554 5.92604 19.4245 6.1868 19.4616 6.64068C19.4994 7.10331 19.5 7.69755 19.5 8.55H21ZM15.45 4.5C16.3025 4.5 16.8967 4.50058 17.3593 4.53838C17.8132 4.57546 18.074 4.6446 18.2715 4.74524L18.9525 3.40873C18.5082 3.18238 18.0281 3.08803 17.4815 3.04336C16.9436 2.99942 16.2777 3 15.45 3V4.5ZM20.5913 5.04754C20.2318 4.34193 19.6581 3.76825 18.9525 3.40873L18.2715 4.74524C18.6948 4.96095 19.0391 5.30516 19.2548 5.72852L20.5913 5.04754ZM4.5 8.55C4.5 7.69755 4.50058 7.10331 4.53838 6.64068C4.57546 6.1868 4.6446 5.92604 4.74524 5.72852L3.40873 5.04754C3.18238 5.49175 3.08803 5.97189 3.04336 6.51853C2.99942 7.05641 3 7.7223 3 8.55H4.5ZM8.55 3C7.7223 3 7.05641 2.99942 6.51853 3.04336C5.97189 3.08803 5.49175 3.18238 5.04754 3.40873L5.72852 4.74524C5.92604 4.6446 6.1868 4.57546 6.64068 4.53838C7.10331 4.50058 7.69755 4.5 8.55 4.5V3ZM4.74524 5.72852C4.96095 5.30516 5.30516 4.96095 5.72852 4.74524L5.04754 3.40873C4.34193 3.76825 3.76825 4.34193 3.40873 5.04754L4.74524 5.72852Z", fill: "currentColor" }), /* @__PURE__ */ y.createElement("path", { d: "M20.25 15H21V13.5H20.25V15ZM3.75 13.5H3V15H3.75V13.5ZM3.75 15H20.25V13.5H3.75V15Z", fill: "currentColor" })), lu = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M11.0858 2.32272C11.4533 1.55909 12.5467 1.55909 12.9142 2.32272L15.0872 6.83907C15.2351 7.14651 15.5293 7.35876 15.8692 7.40319L20.8676 8.05664C21.7134 8.16721 22.0517 9.20388 21.4322 9.78704L17.779 13.2263C17.5295 13.4612 17.4167 13.8058 17.4795 14.1417L18.3971 19.0563C18.5526 19.8892 17.6676 20.5294 16.9183 20.1261L12.4825 17.7385C12.1815 17.5764 11.8185 17.5764 11.5175 17.7385L7.08174 20.1261C6.33244 20.5294 5.44743 19.8892 5.60294 19.0563L6.52054 14.1417C6.58325 13.8058 6.47048 13.4612 6.22097 13.2263L2.56776 9.78704C1.94833 9.20388 2.28661 8.16721 3.13241 8.05664L8.13078 7.40319C8.47066 7.35876 8.7649 7.14651 8.91282 6.83907L11.0858 2.32272Z", stroke: "#252525", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), cu = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M6.25 4.75H5.75C4.09315 4.75 2.75 6.09315 2.75 7.75V8.25M17.75 4.75H18.25C19.9069 4.75 21.25 6.09315 21.25 7.75V8.25M21.25 15.75V16.25C21.25 17.9069 19.9069 19.25 18.25 19.25H17.75M6.25 19.25H5.75C4.09315 19.25 2.75 17.9069 2.75 16.25V15.75", stroke: "#252525", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ y.createElement("path", { d: "M7.75 9.75H16.25", stroke: "#252525", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ y.createElement("path", { d: "M7.75 14.25H14.25", stroke: "#252525", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), uu = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M20.25 10.75V6.75C20.25 5.09315 18.9069 3.75 17.25 3.75H6.75C5.09315 3.75 3.75 5.09315 3.75 6.75V17.25C3.75 18.9069 5.09315 20.25 6.75 20.25H10.75M14.1879 20.8366L12.0869 13.0056C11.9372 12.4478 12.4478 11.9372 13.0056 12.0869L20.8366 14.1879C21.2665 14.3032 21.3428 14.8805 20.9576 15.1035L17.4231 17.1498C17.3097 17.2155 17.2155 17.3097 17.1498 17.4231L15.1035 20.9576C14.8805 21.3428 14.3032 21.2665 14.1879 20.8366Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), du = (e) => /* @__PURE__ */ y.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M3.125 16.875H16.875", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ y.createElement("path", { d: "M12.9167 6.45833C12.1113 6.45833 11.4583 7.11125 11.4583 7.91667V12.9167C11.4583 13.7221 12.1113 14.375 12.9167 14.375C13.7221 14.375 14.375 13.7221 14.375 12.9167V7.91667C14.375 7.11125 13.7221 6.45833 12.9167 6.45833Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ y.createElement("path", { d: "M7.08333 3.125C6.27792 3.125 5.625 3.77792 5.625 4.58333V12.9167C5.625 13.7221 6.27792 14.375 7.08333 14.375C7.88875 14.375 8.54167 13.7221 8.54167 12.9167V4.58333C8.54167 3.77792 7.88875 3.125 7.08333 3.125Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), fu = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M3.75 18.25H7.25M3.75 12H9.25M3.75 5.75H20.25M17 10.5L18.5 13.5L21.5 15L18.5 16.5L17 19.5L15.5 16.5L12.5 15L15.5 13.5L17 10.5Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), hu = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M19.9016 9.48786L10.3899 3.2788C8.39443 1.97623 5.75 3.40798 5.75 5.79094V18.2091C5.75 20.592 8.39442 22.0238 10.3899 20.7212L19.9016 14.5121C21.7151 13.3283 21.7151 10.6717 19.9016 9.48786Z", stroke: "#252525", strokeWidth: 1.5, strokeLinejoin: "round" })), Of = {
|
|
6898
|
-
Header:
|
|
6897
|
+
}, Oo = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M20.25 15.45V8.55C20.25 6.86984 20.25 6.02976 19.923 5.38803C19.6354 4.82354 19.1765 4.3646 18.612 4.07698C17.9702 3.75 17.1302 3.75 15.45 3.75H8.55C6.86984 3.75 6.02976 3.75 5.38803 4.07698C4.82354 4.3646 4.3646 4.82354 4.07698 5.38803C3.75 6.02976 3.75 6.86984 3.75 8.55V15.45C3.75 17.1302 3.75 17.9702 4.07698 18.612C4.3646 19.1765 4.82354 19.6354 5.38803 19.923C6.02976 20.25 6.86984 20.25 8.55 20.25H15.45C17.1302 20.25 17.9702 20.25 18.612 19.923C19.1765 19.6354 19.6354 19.1765 19.923 18.612C20.25 17.9702 20.25 17.1302 20.25 15.45Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), Ao = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M12.0002 12V20.5M12.0002 12L4.5 7.78125M12.0002 12L19.2627 7.91474M20.25 9.11392V14.8861C20.25 15.9699 19.6654 16.9695 18.7208 17.5008L13.4708 20.4539C12.5575 20.9676 11.4425 20.9676 10.5292 20.4539L5.27922 17.5008C4.33459 16.9695 3.75 15.9699 3.75 14.8861V9.11392C3.75 8.0301 4.33459 7.03055 5.27922 6.49919L10.5292 3.54607C11.4425 3.03237 12.5575 3.03237 13.4708 3.54607L18.7208 6.4992C19.6654 7.03055 20.25 8.0301 20.25 9.11392Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), ru = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M8.25 20.25H6.75C5.09315 20.25 3.75 18.9069 3.75 17.25V15.75M15.75 20.25H17.25C18.9069 20.25 20.25 18.9069 20.25 17.25V15.75M3.75 8.25V6.75C3.75 5.09315 5.09315 3.75 6.75 3.75H8.25M15.75 3.75H17.25C18.9069 3.75 20.25 5.09315 20.25 6.75V8.25M15.25 10.3571L12 11.9999M12 11.9999L8.75 10.3571M12 11.9999V15.2856M11.0077 8.28125L9.25772 9.28125C8.63457 9.63733 8.25 10.3 8.25 11.0177V12.9822C8.25 13.6999 8.63457 14.3626 9.25772 14.7186L11.0077 15.7186C11.6226 16.07 12.3774 16.07 12.9923 15.7186L14.7423 14.7186C15.3654 14.3626 15.75 13.6999 15.75 12.9822V11.0177C15.75 10.3 15.3654 9.63733 14.7423 9.28125L12.9923 8.28125C12.3774 7.9299 11.6226 7.9299 11.0077 8.28125Z", stroke: "#252525", strokeWidth: 1.40625, strokeLinecap: "round", strokeLinejoin: "round" })), ou = (e) => /* @__PURE__ */ y.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M3.125 3.125H16.875", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ y.createElement("path", { d: "M12.9167 5.625C12.1113 5.625 11.4583 6.27792 11.4583 7.08333V12.0833C11.4583 12.8887 12.1113 13.5417 12.9167 13.5417C13.7221 13.5417 14.375 12.8887 14.375 12.0833V7.08333C14.375 6.27792 13.7221 5.625 12.9167 5.625Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ y.createElement("path", { d: "M7.08333 5.625C6.27792 5.625 5.625 6.27792 5.625 7.08333V15.4167C5.625 16.2221 6.27792 16.875 7.08333 16.875C7.88875 16.875 8.54167 16.2221 8.54167 15.4167V7.08333C8.54167 6.27792 7.88875 5.625 7.08333 5.625Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), Mo = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M17.1073 17.1577C17.1073 18.8655 15.7213 20.25 14.0116 20.25C12.3019 20.25 10.9159 18.8655 10.9159 17.1577C10.9159 15.4499 12.3019 14.0654 14.0116 14.0654C15.7213 14.0654 17.1073 15.4499 17.1073 17.1577Z", stroke: "#252525", strokeWidth: 1.5, strokeLinejoin: "round" }), /* @__PURE__ */ y.createElement("path", { d: "M4.99145 6.98598L10.4681 11.5764L3.75 14.0189L4.99145 6.98598Z", stroke: "#252525", strokeWidth: 1.5, strokeLinejoin: "round" }), /* @__PURE__ */ y.createElement("path", { d: "M14.0106 4.46532C14.1536 3.9321 14.7017 3.61567 15.235 3.75841L19.2835 4.842C19.8172 4.98485 20.1339 5.53345 19.9908 6.06708L18.9065 10.1093C18.7635 10.6425 18.2154 10.9589 17.6821 10.8162L13.6336 9.73258C13.0999 9.58973 12.7832 9.04113 12.9263 8.50749L14.0106 4.46532Z", stroke: "#252525", strokeWidth: 1.5, strokeLinejoin: "round" })), Do = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M9.25 14.75H10C10 14.3358 9.66421 14 9.25 14V14.75ZM3.75 20.25H3V21H3.75V20.25ZM14.75 9.25H15.5C15.5 8.83579 15.1642 8.5 14.75 8.5V9.25ZM20.25 20.25V21H21V20.25H20.25ZM1.75 19.5C1.33579 19.5 1 19.8358 1 20.25C1 20.6642 1.33579 21 1.75 21V19.5ZM22.25 21C22.6642 21 23 20.6642 23 20.25C23 19.8358 22.6642 19.5 22.25 19.5V21ZM5.25 15.5H9.25V14H5.25V15.5ZM8.5 14.75V20.25H10V14.75H8.5ZM9.25 19.5H3.75V21H9.25V19.5ZM4.5 20.25V16.25H3V20.25H4.5ZM5.25 14C4.00736 14 3 15.0074 3 16.25H4.5C4.5 15.8358 4.83579 15.5 5.25 15.5V14ZM10.75 10H14.75V8.5H10.75V10ZM14 9.25V20.25H15.5V9.25H14ZM14.75 19.5H9.25V21H14.75V19.5ZM10 20.25V10.75H8.5V20.25H10ZM10.75 8.5C9.50736 8.5 8.5 9.50736 8.5 10.75H10C10 10.3358 10.3358 10 10.75 10V8.5ZM16.25 4.5H18.75V3H16.25V4.5ZM19.5 5.25V20.25H21V5.25H19.5ZM20.25 19.5H14.75V21H20.25V19.5ZM15.5 20.25V5.25H14V20.25H15.5ZM18.75 4.5C19.1642 4.5 19.5 4.83579 19.5 5.25H21C21 4.00736 19.9926 3 18.75 3V4.5ZM16.25 3C15.0074 3 14 4.00736 14 5.25H15.5C15.5 4.83579 15.8358 4.5 16.25 4.5V3ZM1.75 21H22.25V19.5H1.75V21Z", fill: "#252525" })), au = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M4 14.2105L6.84488 12.0821C7.66137 11.5378 8.75215 11.6663 9.41987 12.3853C10.9123 13.9926 12.6426 15.4538 15 15.4538C17.1727 15.4538 18.6125 14.6485 20 13.261M6.75 20.25H17.25C18.9069 20.25 20.25 18.9069 20.25 17.25V6.75C20.25 5.09315 18.9069 3.75 17.25 3.75H6.75C5.09315 3.75 3.75 5.09315 3.75 6.75V17.25C3.75 18.9069 5.09315 20.25 6.75 20.25ZM17.25 8.75C17.25 9.85457 16.3546 10.75 15.25 10.75C14.1454 10.75 13.25 9.85457 13.25 8.75C13.25 7.64543 14.1454 6.75 15.25 6.75C16.3546 6.75 17.25 7.64543 17.25 8.75Z", stroke: "#252525", strokeWidth: 1.5, strokeLinecap: "round" })), iu = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M17.252 19.25H6.74803C5.26465 19.25 4.29985 17.6884 4.96324 16.3611L10.2152 5.85345C10.9506 4.38218 13.0494 4.38218 13.7848 5.85345L19.0368 16.3611C19.7001 17.6884 18.7354 19.25 17.252 19.25Z", stroke: "#252525", strokeWidth: 1.5, strokeLinejoin: "round" })), su = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M11 2.75V4.5M16.9069 5.09326L15.5962 6.40392M6.40381 15.5962L5.09315 16.9069M4.5 11H2.75M6.40381 6.40381L5.09315 5.09315M14.1323 20.999L10.5777 11.3226C10.3542 10.7143 10.9552 10.1281 11.5577 10.3666L21.0397 14.1199C21.4283 14.2737 21.4679 14.8081 21.1062 15.0175L17.4231 17.1498C17.3097 17.2155 17.2155 17.3097 17.1498 17.4231L15.0343 21.0771C14.822 21.4438 14.2784 21.3967 14.1323 20.999Z", stroke: "#252525", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), lu = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M5.38803 19.923L5.72852 19.2548H5.72852L5.38803 19.923ZM4.07698 18.612L3.40873 18.9525H3.40873L4.07698 18.612ZM19.923 18.612L19.2548 18.2715V18.2715L19.923 18.612ZM18.612 19.923L18.2715 19.2548H18.2715L18.612 19.923ZM19.923 5.38803L19.2548 5.72852V5.72852L19.923 5.38803ZM18.612 4.07698L18.9525 3.40873V3.40873L18.612 4.07698ZM4.07698 5.38803L4.74524 5.72852L4.07698 5.38803ZM5.38803 4.07698L5.72852 4.74524L5.38803 4.07698ZM19.5 8.55V15.45H21V8.55H19.5ZM15.45 19.5H8.55V21H15.45V19.5ZM4.5 15.45V8.55H3V15.45H4.5ZM8.55 4.5H15.45V3H8.55V4.5ZM8.55 19.5C7.69755 19.5 7.10331 19.4994 6.64068 19.4616C6.1868 19.4245 5.92604 19.3554 5.72852 19.2548L5.04754 20.5913C5.49175 20.8176 5.97189 20.912 6.51853 20.9566C7.05641 21.0006 7.7223 21 8.55 21V19.5ZM3 15.45C3 16.2777 2.99942 16.9436 3.04336 17.4815C3.08803 18.0281 3.18238 18.5082 3.40873 18.9525L4.74524 18.2715C4.6446 18.074 4.57546 17.8132 4.53838 17.3593C4.50058 16.8967 4.5 16.3025 4.5 15.45H3ZM5.72852 19.2548C5.30516 19.039 4.96095 18.6948 4.74524 18.2715L3.40873 18.9525C3.76825 19.6581 4.34193 20.2317 5.04754 20.5913L5.72852 19.2548ZM19.5 15.45C19.5 16.3025 19.4994 16.8967 19.4616 17.3593C19.4245 17.8132 19.3554 18.074 19.2548 18.2715L20.5913 18.9525C20.8176 18.5082 20.912 18.0281 20.9566 17.4815C21.0006 16.9436 21 16.2777 21 15.45H19.5ZM15.45 21C16.2777 21 16.9436 21.0006 17.4815 20.9566C18.0281 20.912 18.5082 20.8176 18.9525 20.5913L18.2715 19.2548C18.074 19.3554 17.8132 19.4245 17.3593 19.4616C16.8967 19.4994 16.3025 19.5 15.45 19.5V21ZM19.2548 18.2715C19.0391 18.6948 18.6948 19.039 18.2715 19.2548L18.9525 20.5913C19.6581 20.2317 20.2318 19.6581 20.5913 18.9525L19.2548 18.2715ZM21 8.55C21 7.7223 21.0006 7.05641 20.9566 6.51853C20.912 5.97189 20.8176 5.49175 20.5913 5.04754L19.2548 5.72852C19.3554 5.92604 19.4245 6.1868 19.4616 6.64068C19.4994 7.10331 19.5 7.69755 19.5 8.55H21ZM15.45 4.5C16.3025 4.5 16.8967 4.50058 17.3593 4.53838C17.8132 4.57546 18.074 4.6446 18.2715 4.74524L18.9525 3.40873C18.5082 3.18238 18.0281 3.08803 17.4815 3.04336C16.9436 2.99942 16.2777 3 15.45 3V4.5ZM20.5913 5.04754C20.2318 4.34193 19.6581 3.76825 18.9525 3.40873L18.2715 4.74524C18.6948 4.96095 19.0391 5.30516 19.2548 5.72852L20.5913 5.04754ZM4.5 8.55C4.5 7.69755 4.50058 7.10331 4.53838 6.64068C4.57546 6.1868 4.6446 5.92604 4.74524 5.72852L3.40873 5.04754C3.18238 5.49175 3.08803 5.97189 3.04336 6.51853C2.99942 7.05641 3 7.7223 3 8.55H4.5ZM8.55 3C7.7223 3 7.05641 2.99942 6.51853 3.04336C5.97189 3.08803 5.49175 3.18238 5.04754 3.40873L5.72852 4.74524C5.92604 4.6446 6.1868 4.57546 6.64068 4.53838C7.10331 4.50058 7.69755 4.5 8.55 4.5V3ZM4.74524 5.72852C4.96095 5.30516 5.30516 4.96095 5.72852 4.74524L5.04754 3.40873C4.34193 3.76825 3.76825 4.34193 3.40873 5.04754L4.74524 5.72852Z", fill: "currentColor" }), /* @__PURE__ */ y.createElement("path", { d: "M20.25 15H21V13.5H20.25V15ZM3.75 13.5H3V15H3.75V13.5ZM3.75 15H20.25V13.5H3.75V15Z", fill: "currentColor" })), Fo = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M11.0858 2.32272C11.4533 1.55909 12.5467 1.55909 12.9142 2.32272L15.0872 6.83907C15.2351 7.14651 15.5293 7.35876 15.8692 7.40319L20.8676 8.05664C21.7134 8.16721 22.0517 9.20388 21.4322 9.78704L17.779 13.2263C17.5295 13.4612 17.4167 13.8058 17.4795 14.1417L18.3971 19.0563C18.5526 19.8892 17.6676 20.5294 16.9183 20.1261L12.4825 17.7385C12.1815 17.5764 11.8185 17.5764 11.5175 17.7385L7.08174 20.1261C6.33244 20.5294 5.44743 19.8892 5.60294 19.0563L6.52054 14.1417C6.58325 13.8058 6.47048 13.4612 6.22097 13.2263L2.56776 9.78704C1.94833 9.20388 2.28661 8.16721 3.13241 8.05664L8.13078 7.40319C8.47066 7.35876 8.7649 7.14651 8.91282 6.83907L11.0858 2.32272Z", stroke: "#252525", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), cu = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M6.25 4.75H5.75C4.09315 4.75 2.75 6.09315 2.75 7.75V8.25M17.75 4.75H18.25C19.9069 4.75 21.25 6.09315 21.25 7.75V8.25M21.25 15.75V16.25C21.25 17.9069 19.9069 19.25 18.25 19.25H17.75M6.25 19.25H5.75C4.09315 19.25 2.75 17.9069 2.75 16.25V15.75", stroke: "#252525", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ y.createElement("path", { d: "M7.75 9.75H16.25", stroke: "#252525", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ y.createElement("path", { d: "M7.75 14.25H14.25", stroke: "#252525", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), uu = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M20.25 10.75V6.75C20.25 5.09315 18.9069 3.75 17.25 3.75H6.75C5.09315 3.75 3.75 5.09315 3.75 6.75V17.25C3.75 18.9069 5.09315 20.25 6.75 20.25H10.75M14.1879 20.8366L12.0869 13.0056C11.9372 12.4478 12.4478 11.9372 13.0056 12.0869L20.8366 14.1879C21.2665 14.3032 21.3428 14.8805 20.9576 15.1035L17.4231 17.1498C17.3097 17.2155 17.2155 17.3097 17.1498 17.4231L15.1035 20.9576C14.8805 21.3428 14.3032 21.2665 14.1879 20.8366Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), du = (e) => /* @__PURE__ */ y.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M3.125 16.875H16.875", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ y.createElement("path", { d: "M12.9167 6.45833C12.1113 6.45833 11.4583 7.11125 11.4583 7.91667V12.9167C11.4583 13.7221 12.1113 14.375 12.9167 14.375C13.7221 14.375 14.375 13.7221 14.375 12.9167V7.91667C14.375 7.11125 13.7221 6.45833 12.9167 6.45833Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ y.createElement("path", { d: "M7.08333 3.125C6.27792 3.125 5.625 3.77792 5.625 4.58333V12.9167C5.625 13.7221 6.27792 14.375 7.08333 14.375C7.88875 14.375 8.54167 13.7221 8.54167 12.9167V4.58333C8.54167 3.77792 7.88875 3.125 7.08333 3.125Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), fu = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M3.75 18.25H7.25M3.75 12H9.25M3.75 5.75H20.25M17 10.5L18.5 13.5L21.5 15L18.5 16.5L17 19.5L15.5 16.5L12.5 15L15.5 13.5L17 10.5Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), hu = (e) => /* @__PURE__ */ y.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ y.createElement("path", { d: "M19.9016 9.48786L10.3899 3.2788C8.39443 1.97623 5.75 3.40798 5.75 5.79094V18.2091C5.75 20.592 8.39442 22.0238 10.3899 20.7212L19.9016 14.5121C21.7151 13.3283 21.7151 10.6717 19.9016 9.48786Z", stroke: "#252525", strokeWidth: 1.5, strokeLinejoin: "round" })), Of = {
|
|
6898
|
+
Header: ou,
|
|
6899
6899
|
Announcement: fu,
|
|
6900
6900
|
PrimaryHero: uu,
|
|
6901
|
-
ProductHero:
|
|
6902
|
-
Items:
|
|
6903
|
-
FeaturedItems:
|
|
6904
|
-
Content:
|
|
6905
|
-
Stats:
|
|
6906
|
-
ImageGallery:
|
|
6907
|
-
Logos:
|
|
6908
|
-
CTA:
|
|
6909
|
-
FAQ:
|
|
6910
|
-
Reviews:
|
|
6901
|
+
ProductHero: Oo,
|
|
6902
|
+
Items: Ao,
|
|
6903
|
+
FeaturedItems: ru,
|
|
6904
|
+
Content: Mo,
|
|
6905
|
+
Stats: Do,
|
|
6906
|
+
ImageGallery: au,
|
|
6907
|
+
Logos: iu,
|
|
6908
|
+
CTA: su,
|
|
6909
|
+
FAQ: lu,
|
|
6910
|
+
Reviews: Fo,
|
|
6911
6911
|
ContactUs: cu,
|
|
6912
6912
|
Footer: du,
|
|
6913
|
-
Video: hu
|
|
6914
|
-
|
|
6913
|
+
Video: hu,
|
|
6914
|
+
// V1 theme block keys that didn't have a dedicated SVG —
|
|
6915
|
+
// mapped to the closest semantic match so the Layers/Add Sections
|
|
6916
|
+
// lists don't all collapse to the generic <Icon name='Cards' /> fallback.
|
|
6917
|
+
Cart: Ao,
|
|
6918
|
+
ProductInfo: Oo,
|
|
6919
|
+
Vouches: Fo,
|
|
6920
|
+
IntroductionBlock: Mo,
|
|
6921
|
+
PricingBlock: Do
|
|
6922
|
+
}, pu = "_wrapper_13tl3_8", mu = "_submodal_13tl3_46", Sr = {
|
|
6915
6923
|
wrapper: pu,
|
|
6916
6924
|
submodal: mu
|
|
6917
|
-
},
|
|
6918
|
-
const { keyBlock: r, startHideTimeout: o, clearHideTimeout: a, setMouseOverModal: i } =
|
|
6919
|
-
return r ? /* @__PURE__ */
|
|
6925
|
+
}, Af = ({ children: e, positionTop: t, positionLeft: n }) => {
|
|
6926
|
+
const { keyBlock: r, startHideTimeout: o, clearHideTimeout: a, setMouseOverModal: i } = xa();
|
|
6927
|
+
return r ? /* @__PURE__ */ O(
|
|
6920
6928
|
"div",
|
|
6921
6929
|
{
|
|
6922
6930
|
className: Sr.wrapper,
|
|
@@ -6933,9 +6941,9 @@ const Yc = (e, t, n, r, o, a, i) => {
|
|
|
6933
6941
|
children: e
|
|
6934
6942
|
}
|
|
6935
6943
|
) : null;
|
|
6936
|
-
},
|
|
6937
|
-
const { hoverBlockId: t, startHideTimeout: n, clearHideTimeout: r, setMouseOverModal: o } =
|
|
6938
|
-
return t ? /* @__PURE__ */
|
|
6944
|
+
}, Mf = ({ children: e }) => {
|
|
6945
|
+
const { hoverBlockId: t, startHideTimeout: n, clearHideTimeout: r, setMouseOverModal: o } = xa();
|
|
6946
|
+
return t ? /* @__PURE__ */ O(
|
|
6939
6947
|
"div",
|
|
6940
6948
|
{
|
|
6941
6949
|
className: Ue(Sr.wrapper, Sr.submodal),
|
|
@@ -6948,7 +6956,7 @@ const Yc = (e, t, n, r, o, a, i) => {
|
|
|
6948
6956
|
children: e
|
|
6949
6957
|
}
|
|
6950
6958
|
) : null;
|
|
6951
|
-
}, gu = "
|
|
6959
|
+
}, gu = "_applyButton_1260s_2", yu = "_content_1260s_7", vu = "_title_1260s_14", wu = "_label_1260s_21", bu = "_colorValue_1260s_44", Su = "_colorMap_1260s_52", Cu = "_indicator_1260s_61", Eu = "_hueSlider_1260s_70", Lu = "_slider_1260s_101", Ru = "_buttons_1260s_106", xu = "_name_1260s_113", ku = "_secondary_1260s_118", Nu = "_input_1260s_127", _u = "_modal_1260s_171", Tu = "_alphaSlider_1260s_261", Pu = "_alphaBackground_1260s_269", Ou = "_alphaGradient_1260s_280", Au = "_chargeTypes_1260s_309", Mu = "_charge_1260s_309", Du = "_chargeActive_1260s_338", Fu = "_gradient_1260s_346", Iu = "_color_1260s_44", Bu = "_colorActive_1260s_367", Hu = "_gradientWrapper_1260s_374", Uu = "_subtitle_1260s_380", Vu = "_colorTypes_1260s_387", ju = "_colorType_1260s_387", $u = "_colorTypeActive_1260s_411", zu = "_colorsWrapper_1260s_416", Ju = "_colors_1260s_416", q = {
|
|
6952
6960
|
applyButton: gu,
|
|
6953
6961
|
content: yu,
|
|
6954
6962
|
title: vu,
|
|
@@ -6966,8 +6974,8 @@ const Yc = (e, t, n, r, o, a, i) => {
|
|
|
6966
6974
|
alphaSlider: Tu,
|
|
6967
6975
|
alphaBackground: Pu,
|
|
6968
6976
|
alphaGradient: Ou,
|
|
6969
|
-
chargeTypes:
|
|
6970
|
-
charge:
|
|
6977
|
+
chargeTypes: Au,
|
|
6978
|
+
charge: Mu,
|
|
6971
6979
|
chargeActive: Du,
|
|
6972
6980
|
gradient: Fu,
|
|
6973
6981
|
color: Iu,
|
|
@@ -7005,7 +7013,7 @@ const Wu = (e) => {
|
|
|
7005
7013
|
setColorChange: p,
|
|
7006
7014
|
setIsGradientActive: v,
|
|
7007
7015
|
colorChange: R
|
|
7008
|
-
} =
|
|
7016
|
+
} = ka();
|
|
7009
7017
|
Te.useEffect(() => {
|
|
7010
7018
|
const N = () => {
|
|
7011
7019
|
h(!1), c(null), d(t), w(() => {
|
|
@@ -7018,7 +7026,7 @@ const Wu = (e) => {
|
|
|
7018
7026
|
}, [t]);
|
|
7019
7027
|
const S = (N) => {
|
|
7020
7028
|
N.stopPropagation(), h(!0), p(l), w(n), d(t), m(s), v(a);
|
|
7021
|
-
const { top: U, left: b } =
|
|
7029
|
+
const { top: U, left: b } = nu(N, 600, 288, 10, 20, 230, 80);
|
|
7022
7030
|
u({
|
|
7023
7031
|
top: U,
|
|
7024
7032
|
left: b
|
|
@@ -7030,7 +7038,7 @@ const Wu = (e) => {
|
|
|
7030
7038
|
or(s) || l(t);
|
|
7031
7039
|
};
|
|
7032
7040
|
return /* @__PURE__ */ Ee("div", { className: q.content, children: [
|
|
7033
|
-
/* @__PURE__ */
|
|
7041
|
+
/* @__PURE__ */ O(
|
|
7034
7042
|
"span",
|
|
7035
7043
|
{
|
|
7036
7044
|
className: Ue(q.name, {
|
|
@@ -7045,7 +7053,7 @@ const Wu = (e) => {
|
|
|
7045
7053
|
className: q.label,
|
|
7046
7054
|
onClick: (N) => N.stopPropagation(),
|
|
7047
7055
|
children: [
|
|
7048
|
-
/* @__PURE__ */
|
|
7056
|
+
/* @__PURE__ */ O(
|
|
7049
7057
|
"div",
|
|
7050
7058
|
{
|
|
7051
7059
|
className: q.colorValue,
|
|
@@ -7057,7 +7065,7 @@ const Wu = (e) => {
|
|
|
7057
7065
|
onClick: i ? void 0 : S
|
|
7058
7066
|
}
|
|
7059
7067
|
),
|
|
7060
|
-
/* @__PURE__ */
|
|
7068
|
+
/* @__PURE__ */ O(
|
|
7061
7069
|
"input",
|
|
7062
7070
|
{
|
|
7063
7071
|
type: "text",
|
|
@@ -7109,12 +7117,12 @@ const Wu = (e) => {
|
|
|
7109
7117
|
setActiveColorIndex: he,
|
|
7110
7118
|
isGradientActive: Le,
|
|
7111
7119
|
isBlockSettings: Ze
|
|
7112
|
-
} =
|
|
7120
|
+
} = ka(), Me = (j, V, ne) => {
|
|
7113
7121
|
V /= 100, ne /= 100;
|
|
7114
7122
|
const z = (ue) => (ue + j / 60) % 6, Y = (ue) => ne * (1 - V * Math.max(0, Math.min(z(ue), 4 - z(ue), 1))), W = Math.round(255 * Y(5)), re = Math.round(255 * Y(3)), Z = Math.round(255 * Y(1));
|
|
7115
7123
|
return { r: W, g: re, b: Z };
|
|
7116
7124
|
}, le = (j) => j.toString(16).padStart(2, "0"), Ne = (j, V, ne, z) => {
|
|
7117
|
-
const { r: Y, g: W, b: re } =
|
|
7125
|
+
const { r: Y, g: W, b: re } = Me(j, V, ne), Z = Math.round(z / 100 * 255);
|
|
7118
7126
|
return `#${le(Y)}${le(W)}${le(re)}${le(Z)}`;
|
|
7119
7127
|
}, be = (j, V, ne, z) => {
|
|
7120
7128
|
if (R)
|
|
@@ -7238,7 +7246,7 @@ const Wu = (e) => {
|
|
|
7238
7246
|
function Se() {
|
|
7239
7247
|
r(!1), m(n);
|
|
7240
7248
|
}
|
|
7241
|
-
const Re = R ? te === 1 ? o : N : o, De = R ? te === 1 ? a : U : a,
|
|
7249
|
+
const Re = R ? te === 1 ? o : N : o, De = R ? te === 1 ? a : U : a, nn = R ? te === 1 ? i : b : i, zn = R ? te === 1 ? s : T : s, { r: rn, g: Ce, b: tt } = Me(Re, De, nn), on = `linear-gradient(to right, rgba(${rn}, ${Ce}, ${tt}, 0), rgba(${rn}, ${Ce}, ${tt}, 1))`, an = Ne(o, a, i, s), Ke = Ne(N, U, b, T);
|
|
7242
7250
|
return /* @__PURE__ */ Ee(
|
|
7243
7251
|
"div",
|
|
7244
7252
|
{
|
|
@@ -7249,7 +7257,7 @@ const Wu = (e) => {
|
|
|
7249
7257
|
left: `${e.left}px`
|
|
7250
7258
|
},
|
|
7251
7259
|
children: [
|
|
7252
|
-
/* @__PURE__ */
|
|
7260
|
+
/* @__PURE__ */ O("h2", { className: q.title, children: "Color" }),
|
|
7253
7261
|
Le && /* @__PURE__ */ Ee("div", { className: q.colorTypes, children: [
|
|
7254
7262
|
/* @__PURE__ */ Ee(
|
|
7255
7263
|
"div",
|
|
@@ -7257,7 +7265,7 @@ const Wu = (e) => {
|
|
|
7257
7265
|
className: Ue(q.colorType, { [q.colorTypeActive]: !R }),
|
|
7258
7266
|
onClick: () => S(!1),
|
|
7259
7267
|
children: [
|
|
7260
|
-
/* @__PURE__ */
|
|
7268
|
+
/* @__PURE__ */ O(
|
|
7261
7269
|
"div",
|
|
7262
7270
|
{
|
|
7263
7271
|
style: {
|
|
@@ -7278,7 +7286,7 @@ const Wu = (e) => {
|
|
|
7278
7286
|
className: Ue(q.colorType, { [q.colorTypeActive]: R }),
|
|
7279
7287
|
onClick: () => S(!0),
|
|
7280
7288
|
children: [
|
|
7281
|
-
/* @__PURE__ */
|
|
7289
|
+
/* @__PURE__ */ O(
|
|
7282
7290
|
"div",
|
|
7283
7291
|
{
|
|
7284
7292
|
style: {
|
|
@@ -7295,24 +7303,24 @@ const Wu = (e) => {
|
|
|
7295
7303
|
)
|
|
7296
7304
|
] }),
|
|
7297
7305
|
R && Le && /* @__PURE__ */ Ee("div", { className: q.colorsWrapper, children: [
|
|
7298
|
-
/* @__PURE__ */
|
|
7306
|
+
/* @__PURE__ */ O(
|
|
7299
7307
|
"div",
|
|
7300
7308
|
{
|
|
7301
7309
|
className: q.colors,
|
|
7302
7310
|
style: {
|
|
7303
|
-
background: `linear-gradient(90deg, ${
|
|
7311
|
+
background: `linear-gradient(90deg, ${an} 0%, ${Ke} 100%)`
|
|
7304
7312
|
}
|
|
7305
7313
|
}
|
|
7306
7314
|
),
|
|
7307
|
-
/* @__PURE__ */
|
|
7315
|
+
/* @__PURE__ */ O(
|
|
7308
7316
|
"div",
|
|
7309
7317
|
{
|
|
7310
7318
|
className: Ue(q.color, { [q.colorActive]: te === 1 }),
|
|
7311
7319
|
onClick: () => he(1),
|
|
7312
|
-
style: { background:
|
|
7320
|
+
style: { background: an }
|
|
7313
7321
|
}
|
|
7314
7322
|
),
|
|
7315
|
-
/* @__PURE__ */
|
|
7323
|
+
/* @__PURE__ */ O(
|
|
7316
7324
|
"div",
|
|
7317
7325
|
{
|
|
7318
7326
|
className: Ue(q.color, { [q.colorActive]: te === 2 }),
|
|
@@ -7321,7 +7329,7 @@ const Wu = (e) => {
|
|
|
7321
7329
|
}
|
|
7322
7330
|
)
|
|
7323
7331
|
] }),
|
|
7324
|
-
/* @__PURE__ */
|
|
7332
|
+
/* @__PURE__ */ O(
|
|
7325
7333
|
"div",
|
|
7326
7334
|
{
|
|
7327
7335
|
className: q.colorMap,
|
|
@@ -7332,28 +7340,28 @@ const Wu = (e) => {
|
|
|
7332
7340
|
linear-gradient(to right, hsl(${Re}, 100%, 100%), hsl(${Re}, 100%, 50%))
|
|
7333
7341
|
`
|
|
7334
7342
|
},
|
|
7335
|
-
children: /* @__PURE__ */
|
|
7343
|
+
children: /* @__PURE__ */ O(
|
|
7336
7344
|
"div",
|
|
7337
7345
|
{
|
|
7338
7346
|
className: q.indicator,
|
|
7339
7347
|
style: {
|
|
7340
7348
|
position: "absolute",
|
|
7341
7349
|
left: `${De}%`,
|
|
7342
|
-
top: `${100 -
|
|
7350
|
+
top: `${100 - nn}%`,
|
|
7343
7351
|
transform: "translate(-50%, -50%)"
|
|
7344
7352
|
}
|
|
7345
7353
|
}
|
|
7346
7354
|
)
|
|
7347
7355
|
}
|
|
7348
7356
|
),
|
|
7349
|
-
/* @__PURE__ */
|
|
7357
|
+
/* @__PURE__ */ O(
|
|
7350
7358
|
"div",
|
|
7351
7359
|
{
|
|
7352
7360
|
className: q.hueSlider,
|
|
7353
7361
|
style: {
|
|
7354
7362
|
bottom: Ze ? R ? "225px" : "150px" : R ? "175px" : "100px"
|
|
7355
7363
|
},
|
|
7356
|
-
children: /* @__PURE__ */
|
|
7364
|
+
children: /* @__PURE__ */ O(
|
|
7357
7365
|
"input",
|
|
7358
7366
|
{
|
|
7359
7367
|
type: "range",
|
|
@@ -7377,15 +7385,15 @@ const Wu = (e) => {
|
|
|
7377
7385
|
bottom: Ze ? R ? "200px" : "125px" : R ? "150px" : "75px"
|
|
7378
7386
|
},
|
|
7379
7387
|
children: [
|
|
7380
|
-
/* @__PURE__ */
|
|
7381
|
-
/* @__PURE__ */
|
|
7388
|
+
/* @__PURE__ */ O("div", { className: q.alphaBackground }),
|
|
7389
|
+
/* @__PURE__ */ O(
|
|
7382
7390
|
"div",
|
|
7383
7391
|
{
|
|
7384
7392
|
className: q.alphaGradient,
|
|
7385
|
-
style: { background:
|
|
7393
|
+
style: { background: on }
|
|
7386
7394
|
}
|
|
7387
7395
|
),
|
|
7388
|
-
/* @__PURE__ */
|
|
7396
|
+
/* @__PURE__ */ O(
|
|
7389
7397
|
"input",
|
|
7390
7398
|
{
|
|
7391
7399
|
type: "range",
|
|
@@ -7403,8 +7411,8 @@ const Wu = (e) => {
|
|
|
7403
7411
|
}
|
|
7404
7412
|
),
|
|
7405
7413
|
R && Le && /* @__PURE__ */ Ee("div", { className: q.gradientWrapper, children: [
|
|
7406
|
-
/* @__PURE__ */
|
|
7407
|
-
/* @__PURE__ */
|
|
7414
|
+
/* @__PURE__ */ O("h3", { className: q.subtitle, children: "Rotation" }),
|
|
7415
|
+
/* @__PURE__ */ O("div", { className: q.gradient, children: /* @__PURE__ */ Ee("div", { className: q.chargeTypes, children: [
|
|
7408
7416
|
/* @__PURE__ */ Ee(
|
|
7409
7417
|
"div",
|
|
7410
7418
|
{
|
|
@@ -7413,8 +7421,8 @@ const Wu = (e) => {
|
|
|
7413
7421
|
}),
|
|
7414
7422
|
onClick: () => _("horizontal"),
|
|
7415
7423
|
children: [
|
|
7416
|
-
/* @__PURE__ */
|
|
7417
|
-
|
|
7424
|
+
/* @__PURE__ */ O(
|
|
7425
|
+
qt,
|
|
7418
7426
|
{
|
|
7419
7427
|
name: "ArrowsHorizontal",
|
|
7420
7428
|
width: 20,
|
|
@@ -7433,8 +7441,8 @@ const Wu = (e) => {
|
|
|
7433
7441
|
}),
|
|
7434
7442
|
onClick: () => _("vertical"),
|
|
7435
7443
|
children: [
|
|
7436
|
-
/* @__PURE__ */
|
|
7437
|
-
|
|
7444
|
+
/* @__PURE__ */ O(
|
|
7445
|
+
qt,
|
|
7438
7446
|
{
|
|
7439
7447
|
name: "ArrowsVertical",
|
|
7440
7448
|
width: 20,
|
|
@@ -7447,7 +7455,7 @@ const Wu = (e) => {
|
|
|
7447
7455
|
)
|
|
7448
7456
|
] }) })
|
|
7449
7457
|
] }),
|
|
7450
|
-
Ze && /* @__PURE__ */
|
|
7458
|
+
Ze && /* @__PURE__ */ O(
|
|
7451
7459
|
Wu,
|
|
7452
7460
|
{
|
|
7453
7461
|
initialColor: t,
|
|
@@ -7457,7 +7465,7 @@ const Wu = (e) => {
|
|
|
7457
7465
|
}
|
|
7458
7466
|
),
|
|
7459
7467
|
/* @__PURE__ */ Ee("div", { className: q.buttons, children: [
|
|
7460
|
-
/* @__PURE__ */
|
|
7468
|
+
/* @__PURE__ */ O(
|
|
7461
7469
|
zr,
|
|
7462
7470
|
{
|
|
7463
7471
|
onClick: Se,
|
|
@@ -7466,7 +7474,7 @@ const Wu = (e) => {
|
|
|
7466
7474
|
children: "Cancel"
|
|
7467
7475
|
}
|
|
7468
7476
|
),
|
|
7469
|
-
/* @__PURE__ */
|
|
7477
|
+
/* @__PURE__ */ O(
|
|
7470
7478
|
zr,
|
|
7471
7479
|
{
|
|
7472
7480
|
onClick: G,
|
|
@@ -7479,13 +7487,13 @@ const Wu = (e) => {
|
|
|
7479
7487
|
]
|
|
7480
7488
|
}
|
|
7481
7489
|
);
|
|
7482
|
-
}, qu = "
|
|
7490
|
+
}, qu = "_wrapper_1jcqs_8", Zu = "_open_1jcqs_26", Ku = "_close_1jcqs_32", ar = {
|
|
7483
7491
|
wrapper: qu,
|
|
7484
7492
|
open: Zu,
|
|
7485
7493
|
close: Ku
|
|
7486
7494
|
}, Ff = (e) => {
|
|
7487
7495
|
const { isOpen: t, isClose: n, children: r } = e;
|
|
7488
|
-
return /* @__PURE__ */
|
|
7496
|
+
return /* @__PURE__ */ O(
|
|
7489
7497
|
"div",
|
|
7490
7498
|
{
|
|
7491
7499
|
className: Ue(ar.wrapper, {
|
|
@@ -7495,19 +7503,19 @@ const Wu = (e) => {
|
|
|
7495
7503
|
children: r
|
|
7496
7504
|
}
|
|
7497
7505
|
);
|
|
7498
|
-
}, Gu = "
|
|
7506
|
+
}, Gu = "_blocks_9aq2f_4", Yu = "_block_9aq2f_4", Xu = "_active_9aq2f_31", ir = {
|
|
7499
7507
|
blocks: Gu,
|
|
7500
7508
|
block: Yu,
|
|
7501
7509
|
active: Xu
|
|
7502
7510
|
}, If = (e) => {
|
|
7503
7511
|
const { items: t, selectedItem: n, onSelect: r, getIconName: o } = e;
|
|
7504
|
-
return /* @__PURE__ */
|
|
7512
|
+
return /* @__PURE__ */ O("div", { className: ir.blocks, children: t.map((a) => /* @__PURE__ */ O(
|
|
7505
7513
|
"div",
|
|
7506
7514
|
{
|
|
7507
7515
|
className: Ue(ir.block, { [ir.active]: n === a }),
|
|
7508
7516
|
onClick: () => r(a),
|
|
7509
|
-
children: /* @__PURE__ */
|
|
7510
|
-
|
|
7517
|
+
children: /* @__PURE__ */ O(
|
|
7518
|
+
qt,
|
|
7511
7519
|
{
|
|
7512
7520
|
name: o(a),
|
|
7513
7521
|
fill: n === a ? "#252525" : "#757575"
|
|
@@ -7516,23 +7524,24 @@ const Wu = (e) => {
|
|
|
7516
7524
|
},
|
|
7517
7525
|
String(a)
|
|
7518
7526
|
)) });
|
|
7519
|
-
}, Qu = "
|
|
7527
|
+
}, Qu = "_layout_1oj0z_1", ed = "_main_1oj0z_12", td = "_content_1oj0z_24", nd = "_previewWrapper_1oj0z_34", rd = "_notifications_1oj0z_51", $t = {
|
|
7520
7528
|
layout: Qu,
|
|
7521
7529
|
main: ed,
|
|
7522
7530
|
content: td,
|
|
7523
|
-
|
|
7524
|
-
|
|
7525
|
-
|
|
7526
|
-
|
|
7527
|
-
|
|
7528
|
-
|
|
7529
|
-
|
|
7530
|
-
|
|
7531
|
-
|
|
7531
|
+
previewWrapper: nd,
|
|
7532
|
+
notifications: rd
|
|
7533
|
+
}, od = "_notification_is1oo_5", ad = "_text_is1oo_41", id = "_timer_is1oo_47", sd = "_warning_is1oo_57", ld = "_error_is1oo_61", cd = "_success_is1oo_65", kt = {
|
|
7534
|
+
notification: od,
|
|
7535
|
+
text: ad,
|
|
7536
|
+
timer: id,
|
|
7537
|
+
warning: sd,
|
|
7538
|
+
error: ld,
|
|
7539
|
+
success: cd
|
|
7540
|
+
}, Io = {
|
|
7532
7541
|
warning: "#C1972A",
|
|
7533
7542
|
error: "#FF3F19",
|
|
7534
7543
|
success: "#338B13"
|
|
7535
|
-
},
|
|
7544
|
+
}, ud = (e) => {
|
|
7536
7545
|
const { type: t, message: n, style: r, padding: o, timer: a, id: i, element: s } = e, [l, c] = Te.useState(a), { setNotifications: u } = He();
|
|
7537
7546
|
function d() {
|
|
7538
7547
|
const w = He.getState().notifications.filter((m) => m.id !== i);
|
|
@@ -7553,7 +7562,7 @@ const Wu = (e) => {
|
|
|
7553
7562
|
padding: o,
|
|
7554
7563
|
timer: a,
|
|
7555
7564
|
id: i
|
|
7556
|
-
}) : /* @__PURE__ */
|
|
7565
|
+
}) : /* @__PURE__ */ O(
|
|
7557
7566
|
"div",
|
|
7558
7567
|
{
|
|
7559
7568
|
style: {
|
|
@@ -7570,28 +7579,28 @@ const Wu = (e) => {
|
|
|
7570
7579
|
}),
|
|
7571
7580
|
style: r,
|
|
7572
7581
|
children: [
|
|
7573
|
-
/* @__PURE__ */
|
|
7574
|
-
|
|
7582
|
+
/* @__PURE__ */ O("div", { children: /* @__PURE__ */ O(
|
|
7583
|
+
qt,
|
|
7575
7584
|
{
|
|
7576
7585
|
name: "Info",
|
|
7577
|
-
fill:
|
|
7586
|
+
fill: Io[t],
|
|
7578
7587
|
width: 20,
|
|
7579
7588
|
height: 20
|
|
7580
7589
|
}
|
|
7581
7590
|
) }),
|
|
7582
|
-
/* @__PURE__ */
|
|
7583
|
-
a && /* @__PURE__ */
|
|
7584
|
-
/* @__PURE__ */
|
|
7591
|
+
/* @__PURE__ */ O("div", { className: kt.text, children: n }),
|
|
7592
|
+
a && /* @__PURE__ */ O("div", { className: kt.timer, children: l }),
|
|
7593
|
+
/* @__PURE__ */ O(
|
|
7585
7594
|
"div",
|
|
7586
7595
|
{
|
|
7587
7596
|
style: {
|
|
7588
7597
|
display: "flex"
|
|
7589
7598
|
},
|
|
7590
|
-
children: /* @__PURE__ */
|
|
7591
|
-
|
|
7599
|
+
children: /* @__PURE__ */ O(
|
|
7600
|
+
qt,
|
|
7592
7601
|
{
|
|
7593
7602
|
name: "X",
|
|
7594
|
-
fill:
|
|
7603
|
+
fill: Io[t],
|
|
7595
7604
|
width: 20,
|
|
7596
7605
|
height: 20,
|
|
7597
7606
|
hoverable: !0,
|
|
@@ -7605,32 +7614,32 @@ const Wu = (e) => {
|
|
|
7605
7614
|
)
|
|
7606
7615
|
}
|
|
7607
7616
|
);
|
|
7608
|
-
},
|
|
7609
|
-
const { isOpenModal: e, setIsOpenModal: t } = Tn(), { openModal: n, setOpenModal: r } =
|
|
7617
|
+
}, dd = () => {
|
|
7618
|
+
const { isOpenModal: e, setIsOpenModal: t } = Tn(), { openModal: n, setOpenModal: r } = Wc(), { isAntistock: o } = Ar(), { notifications: a } = He(), { title: i, description: s, setTitle: l, setDescription: c, setOnConfirm: u } = qc();
|
|
7610
7619
|
return /* @__PURE__ */ Ee("div", { id: "builder", className: o ? "builder-dark" : "", children: [
|
|
7611
|
-
/* @__PURE__ */ Ee("div", { className:
|
|
7612
|
-
/* @__PURE__ */
|
|
7613
|
-
/* @__PURE__ */
|
|
7614
|
-
/* @__PURE__ */
|
|
7615
|
-
/* @__PURE__ */ Ee("div", { className:
|
|
7616
|
-
/* @__PURE__ */
|
|
7617
|
-
/* @__PURE__ */
|
|
7620
|
+
/* @__PURE__ */ Ee("div", { className: $t.layout, children: [
|
|
7621
|
+
/* @__PURE__ */ O(Va, {}),
|
|
7622
|
+
/* @__PURE__ */ O("main", { className: $t.main, children: /* @__PURE__ */ Ee("div", { className: $t.content, children: [
|
|
7623
|
+
/* @__PURE__ */ O(ja, {}),
|
|
7624
|
+
/* @__PURE__ */ Ee("div", { className: $t.previewWrapper, children: [
|
|
7625
|
+
/* @__PURE__ */ O($a, {}),
|
|
7626
|
+
/* @__PURE__ */ O(za, {})
|
|
7618
7627
|
] })
|
|
7619
|
-
] })
|
|
7628
|
+
] }) })
|
|
7620
7629
|
] }),
|
|
7621
|
-
i && s && /* @__PURE__ */
|
|
7630
|
+
i && s && /* @__PURE__ */ O(
|
|
7622
7631
|
Zn,
|
|
7623
7632
|
{
|
|
7624
7633
|
close: () => {
|
|
7625
7634
|
l(null), c(null), u(null);
|
|
7626
7635
|
},
|
|
7627
|
-
children: /* @__PURE__ */
|
|
7636
|
+
children: /* @__PURE__ */ O(Ba, {})
|
|
7628
7637
|
}
|
|
7629
7638
|
),
|
|
7630
|
-
e && /* @__PURE__ */
|
|
7631
|
-
n && /* @__PURE__ */
|
|
7632
|
-
a.length > 0 && /* @__PURE__ */
|
|
7633
|
-
|
|
7639
|
+
e && /* @__PURE__ */ O(Zn, { close: t, children: /* @__PURE__ */ O(Ja, {}) }),
|
|
7640
|
+
n && /* @__PURE__ */ O(Zn, { close: r, children: /* @__PURE__ */ O(Ha, {}) }),
|
|
7641
|
+
a.length > 0 && /* @__PURE__ */ O("div", { className: $t.notifications, children: a.map((d) => /* @__PURE__ */ O(
|
|
7642
|
+
ud,
|
|
7634
7643
|
{
|
|
7635
7644
|
type: d.status,
|
|
7636
7645
|
message: d.message,
|
|
@@ -7643,22 +7652,22 @@ const Wu = (e) => {
|
|
|
7643
7652
|
] });
|
|
7644
7653
|
};
|
|
7645
7654
|
async function mt(e, t) {
|
|
7646
|
-
const n = localStorage.getItem("shopId") || void 0, o = `${
|
|
7655
|
+
const n = localStorage.getItem("shopId") || void 0, o = `${tn.getState().apiUrls.api}/${e}/builder/shops/${n}/${t}`;
|
|
7647
7656
|
return (await at({
|
|
7648
7657
|
url: o,
|
|
7649
7658
|
withToken: !0,
|
|
7650
7659
|
method: "get"
|
|
7651
7660
|
})).data;
|
|
7652
7661
|
}
|
|
7653
|
-
async function
|
|
7654
|
-
const r = localStorage.getItem("shopId") || void 0, a = `${
|
|
7662
|
+
async function fd(e, t, n) {
|
|
7663
|
+
const r = localStorage.getItem("shopId") || void 0, a = `${tn.getState().apiUrls.api}/${e}/builder/shops/${r}/drafts/${t}/${n}`;
|
|
7655
7664
|
return (await at({
|
|
7656
7665
|
url: a,
|
|
7657
7666
|
withToken: !0,
|
|
7658
7667
|
method: "get"
|
|
7659
7668
|
})).data;
|
|
7660
7669
|
}
|
|
7661
|
-
async function
|
|
7670
|
+
async function hd(e) {
|
|
7662
7671
|
try {
|
|
7663
7672
|
const [
|
|
7664
7673
|
t,
|
|
@@ -7681,7 +7690,7 @@ async function fd(e) {
|
|
|
7681
7690
|
Promise.resolve({ data: null }),
|
|
7682
7691
|
Promise.resolve({ data: null }),
|
|
7683
7692
|
e ? mt("v1", "vouches") : Promise.resolve({ data: null }),
|
|
7684
|
-
e ?
|
|
7693
|
+
e ? fd("v2", localStorage.getItem("draftId") ?? "", "live-stats") : Promise.resolve({ data: null })
|
|
7685
7694
|
]);
|
|
7686
7695
|
return {
|
|
7687
7696
|
general: t,
|
|
@@ -7699,8 +7708,8 @@ async function fd(e) {
|
|
|
7699
7708
|
throw console.error("Error fetching page data:", t), t;
|
|
7700
7709
|
}
|
|
7701
7710
|
}
|
|
7702
|
-
async function
|
|
7703
|
-
const e =
|
|
7711
|
+
async function pd() {
|
|
7712
|
+
const e = tn.getState().apiUrls;
|
|
7704
7713
|
try {
|
|
7705
7714
|
const { data: t } = await de.get(
|
|
7706
7715
|
`${e.googleFonts}?key=AIzaSyAEsTbjAPUz_TeuFCq4z4LPK9w_vst0Pfw`
|
|
@@ -7710,9 +7719,9 @@ async function hd() {
|
|
|
7710
7719
|
throw console.error("Error fetching page data:", t), t;
|
|
7711
7720
|
}
|
|
7712
7721
|
}
|
|
7713
|
-
async function
|
|
7722
|
+
async function md() {
|
|
7714
7723
|
var o;
|
|
7715
|
-
const e = localStorage.getItem("shopId"), t = localStorage.getItem("draftId"), r = `${
|
|
7724
|
+
const e = localStorage.getItem("shopId"), t = localStorage.getItem("draftId"), r = `${tn.getState().apiUrls.api}/v2/builder/shops/${e}/drafts/${t}/pages`;
|
|
7716
7725
|
try {
|
|
7717
7726
|
return (await at({
|
|
7718
7727
|
url: r,
|
|
@@ -7726,15 +7735,15 @@ async function pd() {
|
|
|
7726
7735
|
};
|
|
7727
7736
|
}
|
|
7728
7737
|
}
|
|
7729
|
-
async function
|
|
7730
|
-
const e = localStorage.getItem("shopId") || void 0, t = localStorage.getItem("draftId") || void 0, r = `${
|
|
7738
|
+
async function gd() {
|
|
7739
|
+
const e = localStorage.getItem("shopId") || void 0, t = localStorage.getItem("draftId") || void 0, r = `${tn.getState().apiUrls.api}/v2/builder/shops/${e}/drafts/${t}/all`;
|
|
7731
7740
|
return (await at({
|
|
7732
7741
|
url: r,
|
|
7733
7742
|
withToken: !0,
|
|
7734
7743
|
method: "get"
|
|
7735
7744
|
})).data;
|
|
7736
7745
|
}
|
|
7737
|
-
const
|
|
7746
|
+
const yd = (e) => {
|
|
7738
7747
|
const { blocks: t, settings: n, header: r, footer: o, announcement: a } = e, {
|
|
7739
7748
|
setBlocks: i,
|
|
7740
7749
|
setSourceBlocks: s,
|
|
@@ -7742,7 +7751,7 @@ const gd = (e) => {
|
|
|
7742
7751
|
setFooter: c,
|
|
7743
7752
|
setAnnouncement: u,
|
|
7744
7753
|
setSettings: d
|
|
7745
|
-
} =
|
|
7754
|
+
} = Ic(), { fonts: h, setFonts: w } = Gc(), { setSettings: m } = To(), { setPageContext: p } = Tn(), { setThemeSettings: v, setIsLoadingThemeSettings: R } = vr(), { setIsLoadingSettings: S } = To(), { notifications: x, setNotifications: _ } = He(), { isAntistock: N } = Ar(), {
|
|
7746
7755
|
setBlocks: U,
|
|
7747
7756
|
blocks: b,
|
|
7748
7757
|
createPage: T,
|
|
@@ -7754,10 +7763,10 @@ const gd = (e) => {
|
|
|
7754
7763
|
return Te.useEffect(() => {
|
|
7755
7764
|
R(!0), K(!0), S(!0);
|
|
7756
7765
|
const Le = {};
|
|
7757
|
-
Object.keys(t).forEach((
|
|
7758
|
-
Le[
|
|
7766
|
+
Object.keys(t).forEach((Me) => {
|
|
7767
|
+
Le[Me] = t[Me];
|
|
7759
7768
|
}), s(Le), i(Le), l(r), c(o), u(a), d(n), (async () => {
|
|
7760
|
-
const
|
|
7769
|
+
const Me = {
|
|
7761
7770
|
listings: null,
|
|
7762
7771
|
products: null,
|
|
7763
7772
|
reviews: null,
|
|
@@ -7769,12 +7778,12 @@ const gd = (e) => {
|
|
|
7769
7778
|
preserveContent: !1,
|
|
7770
7779
|
vouches: null,
|
|
7771
7780
|
liveStats: null
|
|
7772
|
-
}, le = await
|
|
7781
|
+
}, le = await hd(N);
|
|
7773
7782
|
Object.keys(le).map((G) => {
|
|
7774
7783
|
const Se = G;
|
|
7775
|
-
|
|
7776
|
-
}), p(
|
|
7777
|
-
const { data: Ne } = await
|
|
7784
|
+
Me[Se] = le[Se].value.data;
|
|
7785
|
+
}), p(Me);
|
|
7786
|
+
const { data: Ne } = await gd(), { themeSettings: be, layers: $e, settings: ge } = Ne || {};
|
|
7778
7787
|
if (ge) {
|
|
7779
7788
|
if (ge.settings) {
|
|
7780
7789
|
const G = new n();
|
|
@@ -7790,7 +7799,7 @@ const gd = (e) => {
|
|
|
7790
7799
|
m(G.blockSettings);
|
|
7791
7800
|
}
|
|
7792
7801
|
be && v(be);
|
|
7793
|
-
const Be = await
|
|
7802
|
+
const Be = await md(), ze = {};
|
|
7794
7803
|
if (Be.status >= 400 && _([
|
|
7795
7804
|
...x,
|
|
7796
7805
|
{
|
|
@@ -7806,7 +7815,7 @@ const gd = (e) => {
|
|
|
7806
7815
|
name: G.name || ((Se = G.seo) == null ? void 0 : Se.pageTitle) || ((Re = jt[G.path]) == null ? void 0 : Re.name) || G.path
|
|
7807
7816
|
};
|
|
7808
7817
|
}), te(ze), he(Object.keys(ze)[0])) : (te(jt), he(Object.keys(jt)[0])), h.length === 0) {
|
|
7809
|
-
const G = await
|
|
7818
|
+
const G = await pd();
|
|
7810
7819
|
w([
|
|
7811
7820
|
...G.map((Se) => {
|
|
7812
7821
|
const Re = Se.variants.map((De) => {
|
|
@@ -7822,29 +7831,29 @@ const gd = (e) => {
|
|
|
7822
7831
|
}
|
|
7823
7832
|
U($e), R(!1), K(!1), S(!1);
|
|
7824
7833
|
})();
|
|
7825
|
-
}, []), /* @__PURE__ */
|
|
7834
|
+
}, []), /* @__PURE__ */ O(dd, {});
|
|
7826
7835
|
};
|
|
7827
|
-
function
|
|
7836
|
+
function vd() {
|
|
7828
7837
|
const e = new URL(window.location.href);
|
|
7829
7838
|
window.history.replaceState(null, "", e.pathname + e.hash);
|
|
7830
7839
|
}
|
|
7831
|
-
function
|
|
7840
|
+
function wd() {
|
|
7832
7841
|
const e = new URLSearchParams(document.location.search), t = e.get("shopId") || localStorage.getItem("shopId"), n = e.get("sellerAccessToken") || localStorage.getItem("sellerAccessToken"), r = e.get("draftId") || localStorage.getItem("draftId");
|
|
7833
|
-
return
|
|
7842
|
+
return vd(), n && localStorage.setItem("sellerAccessToken", n), t && localStorage.setItem("shopId", t), r && localStorage.setItem("draftId", r), !!(n && t && r);
|
|
7834
7843
|
}
|
|
7835
|
-
const
|
|
7836
|
-
const { blocks: t, settings: n, header: r, footer: o, announcement: a } = e, { isAntistock: i } =
|
|
7844
|
+
const bd = "data:image/svg+xml,%3csvg%20width='19'%20height='32'%20viewBox='0%200%2019%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.0103662%2023.5362C0.0538052%2022.4425%200.370173%2021.4309%201.08058%2020.6127C1.92699%2019.6379%202.91375%2019.2329%204.14841%2019.1732C4.162%2020.1401%204.15111%2021.1085%204.15091%2022.0756L4.70583%2022.0747L7.42027%2022.0755C7.95952%2022.0752%208.50027%2022.0844%209.03933%2022.0742L9.17755%2022.0731L10.6132%2022.0759C10.8265%2022.0759%2011.0767%2022.1021%2011.2852%2022.0658C11.3052%2022.0703%2011.3534%2022.0735%2011.3625%2022.0928C11.3917%2022.1543%2011.3688%2031.0517%2011.3725%2031.9631C11.1563%2032.0856%2010.2676%2031.8701%2010.0303%2031.7947C9.89866%2031.7528%209.644%2031.6914%209.54946%2031.5874L9.51914%2031.584C9.46943%2031.5736%209.44171%2031.5537%209.40126%2031.5222C9.30218%2031.5131%209.14954%2031.4132%209.07718%2031.343C9.00129%2031.3163%208.92757%2031.2576%208.85921%2031.2134L8.85617%2031.2002C8.5748%2031.0715%208.14929%2030.6244%207.94318%2030.376C7.35205%2029.6639%206.93892%2028.7659%206.83493%2027.8203C6.78763%2027.3904%206.7994%2026.9595%206.80055%2026.5277C6.80084%2026.4202%206.82996%2026.126%206.78242%2026.0387L6.71237%2026.023C6.54382%2026.0528%206.34316%2026.0328%206.17124%2026.0324L1.0194%2026.0325L0.942306%2026.0307C0.74237%2026.0326%200.173082%2026.0689%200.0224192%2026.0192L0.00848581%2026.0029C0.022853%2025.8597%200.0136924%2025.7065%200.013837%2025.562L0.0113299%2024.6651L0.0117161%2024.5253C0.0150266%2024.1956%200.0145767%2023.8659%200.0103662%2023.5362Z'%20fill='%23A13DFF'/%3e%3cpath%20d='M6.79824%200.00127802C6.88001%20-0.000781892%206.96176%20-0.000351703%207.04349%200.00256876C7.12523%200.00549261%207.20682%200.0108998%207.28827%200.0187905C7.36968%200.0266845%207.45082%200.0370518%207.53169%200.0498924C7.61259%200.0627296%207.69305%200.078018%207.77309%200.0957576C7.85312%200.113501%207.93259%200.133663%208.0115%200.156244C8.09044%200.178828%208.16868%200.203796%208.24624%200.231148C8.3238%200.258499%208.40053%200.28819%208.47645%200.32022C8.55237%200.352247%208.62736%200.386559%208.70141%200.423156L8.71428%200.423492C8.76476%200.450874%208.815%200.479135%208.8661%200.50516C8.947%200.550491%209.03065%200.593185%209.10687%200.646856L9.24939%200.733144C9.31674%200.78126%209.38361%200.83049%209.45202%200.87695C10.462%201.67615%2011.1434%202.77146%2011.325%204.10211C11.4076%204.70784%2011.3729%205.34243%2011.372%205.9541C11.4625%205.96599%2011.5526%205.9664%2011.6436%205.96762C12.6033%205.93794%2013.5708%205.96289%2014.5314%205.96294C15.459%205.96305%2016.3927%205.93758%2017.3195%205.9633C17.5874%205.96523%2017.9062%206.00101%2018.1677%205.95273C18.1496%206.13096%2018.1583%206.31472%2018.1585%206.49401L18.1598%207.38388L18.1595%207.51855C18.1591%207.83084%2018.14%208.15609%2018.1607%208.46685C18.109%209.73893%2017.6972%2010.8198%2016.8003%2011.6891C15.9969%2012.4676%2015.0894%2012.76%2014.0228%2012.8194L14.021%2010.9083C14.0209%2010.5892%2014.0389%2010.2573%2014.0163%209.93952C14.0002%209.92849%2013.9879%209.91884%2013.9692%209.9133C13.7941%209.93418%2013.6055%209.92148%2013.4293%209.92133H9.15258L9.04077%209.92082L7.56664%209.92209C7.31676%209.92224%207.04528%209.94526%206.79858%209.90893L6.79824%200.00127802Z'%20fill='%23A13DFF'/%3e%3cpath%20d='M4.13987%205.96279C4.65941%205.9653%205.17894%205.96467%205.69847%205.96091C5.70059%207.27995%205.71757%208.60219%205.69833%209.92082L4.15072%209.92046L4.15106%2011.4065C4.15096%2011.6783%204.1406%2011.9555%204.15443%2012.2266C4.73799%2012.8393%205.31307%2013.4655%205.90921%2014.0644L5.98321%2014.0407C6.25311%2014.0833%206.6928%2014.0501%206.97981%2014.0499L12.7386%2014.0492L13.5943%2014.0482C13.7363%2014.0479%2013.9068%2014.0286%2014.0457%2014.0577L15.8019%2015.9078L15.8915%2015.997L15.9615%2016.0784L15.9955%2016.1093L17.4221%2017.6163C17.6528%2017.8599%2017.9077%2018.0979%2018.1211%2018.3569C18.1463%2018.3875%2018.1599%2018.4086%2018.1691%2018.4477C18.1415%2018.6757%2018.1577%2018.9211%2018.1579%2019.1514L18.1594%2020.4531C18.1597%2021.8112%2018.142%2023.1721%2018.1599%2024.5297L18.1589%2024.6625L18.158%2025.5556C18.158%2025.7089%2018.1437%2025.8808%2018.1676%2026.0315L18.0995%2026.031L17.2568%2026.0329L17.2101%2026.0308C16.2512%2026.0486%2015.2892%2026.0305%2014.3299%2026.0308C13.7488%2026.031%2013.0694%2026.064%2012.4959%2026.0258L12.4831%2026.0202C12.4481%2025.9239%2012.4717%2022.4806%2012.47%2022.075L14.0216%2022.0744C14.0024%2021.3241%2014.0324%2020.5711%2014.0173%2019.8203C13.4629%2019.2116%2012.887%2018.6041%2012.3052%2018.0244L12.293%2017.9978C12.0554%2018.0392%2011.5401%2018.0054%2011.2777%2018.0053L8.9362%2018.0074C7.75375%2017.9793%206.56306%2018.0065%205.37994%2018.0069C5.13497%2018.007%204.32737%2018.0401%204.13472%2017.9962L2.36331%2016.1262L2.29219%2016.0566L2.21959%2015.9758L2.15074%2015.9102C1.93803%2015.6694%201.70849%2015.441%201.48797%2015.2079L0%2013.631C0.0383768%2013.4512%200.014078%2013.2231%200.013837%2013.0369L0.0121494%2011.9198L0.0113299%207.52017L0.0122943%207.34622C0.0134032%206.9143%200.0453199%206.37479%200.00371286%205.95329C0.115854%205.96772%200.229056%205.9664%200.341872%205.96777C0.589393%205.96198%200.836946%205.96042%201.08453%205.9631L3.10905%205.96548C3.44789%205.96554%203.80282%205.98825%204.13987%205.96279Z'%20fill='%23A13DFF'/%3e%3c/svg%3e", Sd = (e) => {
|
|
7845
|
+
const { blocks: t, settings: n, header: r, footer: o, announcement: a } = e, { isAntistock: i } = Ar(), [s, l] = Te.useState(!0), c = Dn(), u = et();
|
|
7837
7846
|
return Te.useEffect(() => {
|
|
7838
7847
|
const d = u.pathname;
|
|
7839
7848
|
if (d.startsWith("/admin/builder")) {
|
|
7840
7849
|
d === "/admin/builder/add" ? document.title = "Add Section | Builder" : d === "/admin/builder/theme" ? document.title = "Theme Settings | Builder" : d === "/admin/builder/settings" ? document.title = "Settings | Builder" : document.title = `Builder | ${i ? "Antistock" : "Billgang "}`;
|
|
7841
7850
|
let h = document.querySelector("link[rel~='icon']");
|
|
7842
|
-
h || (h = document.createElement("link"), h.rel = "icon", document.head.appendChild(h)), h && (h.href =
|
|
7851
|
+
h || (h = document.createElement("link"), h.rel = "icon", document.head.appendChild(h)), h && (h.href = bd);
|
|
7843
7852
|
}
|
|
7844
7853
|
}, [u]), Te.useEffect(() => {
|
|
7845
|
-
l(!0),
|
|
7846
|
-
}, []), /* @__PURE__ */
|
|
7847
|
-
|
|
7854
|
+
l(!0), wd() ? l(!1) : c("/");
|
|
7855
|
+
}, []), /* @__PURE__ */ O(Ia, { children: s ? /* @__PURE__ */ O(Ua, {}) : /* @__PURE__ */ O(
|
|
7856
|
+
yd,
|
|
7848
7857
|
{
|
|
7849
7858
|
blocks: t,
|
|
7850
7859
|
settings: n,
|
|
@@ -7858,14 +7867,14 @@ const wd = "data:image/svg+xml,%3csvg%20width='204'%20height='241'%20viewBox='0%
|
|
|
7858
7867
|
BuilderPage: Sd
|
|
7859
7868
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
7860
7869
|
export {
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
|
|
7870
|
+
Zc as $,
|
|
7871
|
+
Mf as A,
|
|
7872
|
+
nu as B,
|
|
7864
7873
|
Df as C,
|
|
7865
7874
|
Tf as D,
|
|
7866
7875
|
Ff as E,
|
|
7867
7876
|
bf as F,
|
|
7868
|
-
|
|
7877
|
+
Gc as G,
|
|
7869
7878
|
gf as H,
|
|
7870
7879
|
Wu as I,
|
|
7871
7880
|
ff as J,
|
|
@@ -7875,66 +7884,66 @@ export {
|
|
|
7875
7884
|
Dd as N,
|
|
7876
7885
|
cf as O,
|
|
7877
7886
|
If as P,
|
|
7878
|
-
|
|
7887
|
+
js as Q,
|
|
7879
7888
|
wf as R,
|
|
7880
|
-
|
|
7889
|
+
Af as S,
|
|
7881
7890
|
_f as T,
|
|
7882
|
-
|
|
7891
|
+
ea as U,
|
|
7883
7892
|
tf as V,
|
|
7884
|
-
|
|
7893
|
+
Dc as W,
|
|
7885
7894
|
ef as X,
|
|
7886
7895
|
of as Y,
|
|
7887
7896
|
lf as Z,
|
|
7888
7897
|
uf as _,
|
|
7889
7898
|
To as a,
|
|
7890
7899
|
_d as a0,
|
|
7891
|
-
|
|
7900
|
+
Md as a1,
|
|
7892
7901
|
af as a2,
|
|
7893
|
-
|
|
7902
|
+
Os as a3,
|
|
7894
7903
|
rf as a4,
|
|
7895
7904
|
xf as a5,
|
|
7896
|
-
|
|
7905
|
+
Ad as a6,
|
|
7897
7906
|
Nd as a7,
|
|
7898
7907
|
df as a8,
|
|
7899
7908
|
nf as a9,
|
|
7900
7909
|
de as aa,
|
|
7901
7910
|
et as ab,
|
|
7902
7911
|
Ef as ac,
|
|
7903
|
-
|
|
7912
|
+
Wc as ad,
|
|
7904
7913
|
Cf as ae,
|
|
7905
7914
|
Sf as af,
|
|
7906
|
-
|
|
7915
|
+
Zs as ag,
|
|
7907
7916
|
hf as ah,
|
|
7908
7917
|
Pd as ai,
|
|
7909
7918
|
Td as aj,
|
|
7910
7919
|
Od as ak,
|
|
7911
7920
|
Rf as al,
|
|
7912
7921
|
sf as am,
|
|
7913
|
-
|
|
7922
|
+
rs as an,
|
|
7914
7923
|
Bf as ao,
|
|
7915
7924
|
Tn as b,
|
|
7916
|
-
|
|
7925
|
+
Ic as c,
|
|
7917
7926
|
Oe as d,
|
|
7918
7927
|
He as e,
|
|
7919
7928
|
Ue as f,
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
7929
|
+
kf as g,
|
|
7930
|
+
pf as h,
|
|
7931
|
+
zc as i,
|
|
7932
|
+
tn as j,
|
|
7933
|
+
qc as k,
|
|
7925
7934
|
yf as l,
|
|
7926
7935
|
vr as m,
|
|
7927
|
-
|
|
7936
|
+
Yc as n,
|
|
7928
7937
|
Lf as o,
|
|
7929
7938
|
Dn as p,
|
|
7930
|
-
|
|
7939
|
+
Jc as q,
|
|
7931
7940
|
at as r,
|
|
7932
7941
|
Pf as s,
|
|
7933
|
-
|
|
7942
|
+
xa as t,
|
|
7934
7943
|
br as u,
|
|
7935
7944
|
lt as v,
|
|
7936
7945
|
Of as w,
|
|
7937
|
-
|
|
7938
|
-
|
|
7946
|
+
ka as x,
|
|
7947
|
+
Ar as y,
|
|
7939
7948
|
mf as z
|
|
7940
7949
|
};
|