@ienlab/react-library 0.17.0-beta.25 → 0.17.0-beta.27
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/hooks/index.d.ts +1 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/use-screen-lifecycle.d.ts +8 -0
- package/dist/hooks/use-screen-lifecycle.d.ts.map +1 -0
- package/dist/my-library.cjs.js +3 -1
- package/dist/my-library.es.js +2039 -731
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/router.d.ts +6 -0
- package/dist/types/router.d.ts.map +1 -0
- package/package.json +7 -5
package/dist/my-library.es.js
CHANGED
|
@@ -1,81 +1,82 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import w from "
|
|
9
|
-
import
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { createContext as t, createElement as n, useContext as r, useEffect as i, useMemo as a, useState as o } from "react";
|
|
3
|
+
import { AnimatePresence as s, Reorder as c, motion as l } from "motion/react";
|
|
4
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
5
|
+
import { useTranslation as f } from "react-i18next";
|
|
6
|
+
import { flexRender as p, getCoreRowModel as m, getExpandedRowModel as h, useReactTable as g } from "@tanstack/react-table";
|
|
7
|
+
import { documentId as _, getDoc as v, getDocs as y, onSnapshot as b, query as x, serverTimestamp as S, where as C } from "firebase/firestore";
|
|
8
|
+
import { useStore as w } from "zustand/react";
|
|
9
|
+
import T from "i18next";
|
|
10
|
+
import { getDownloadURL as E, ref as ee, uploadBytes as te } from "firebase/storage";
|
|
10
11
|
//#region \0rolldown/runtime.js
|
|
11
|
-
var
|
|
12
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
12
|
+
var ne = Object.create, D = Object.defineProperty, O = Object.getOwnPropertyDescriptor, k = Object.getOwnPropertyNames, A = Object.getPrototypeOf, re = Object.prototype.hasOwnProperty, ie = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), j = (e, t, n, r) => {
|
|
13
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = k(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !re.call(e, s) && s !== n && D(e, s, {
|
|
13
14
|
get: ((e) => t[e]).bind(null, s),
|
|
14
|
-
enumerable: !(r =
|
|
15
|
+
enumerable: !(r = O(t, s)) || r.enumerable
|
|
15
16
|
});
|
|
16
17
|
return e;
|
|
17
|
-
},
|
|
18
|
+
}, ae = (e, t, n) => (n = e == null ? {} : ne(A(e)), j(t || !e || !e.__esModule ? D(n, "default", {
|
|
18
19
|
value: e,
|
|
19
20
|
enumerable: !0
|
|
20
21
|
}) : n, e));
|
|
21
22
|
//#endregion
|
|
22
23
|
//#region src/components/image/CrossfadeImage.tsx
|
|
23
|
-
function
|
|
24
|
-
let [
|
|
24
|
+
function oe({ placeholder: e, src: t, onLoadError: n, ...r }) {
|
|
25
|
+
let [a, c] = o(() => {
|
|
25
26
|
if (typeof window > "u" || !t) return !1;
|
|
26
27
|
let e = new Image();
|
|
27
28
|
return e.src = t, e.complete && e.naturalWidth > 0;
|
|
28
|
-
}), [d, f] =
|
|
29
|
-
return d !== t && (f(t),
|
|
29
|
+
}), [d, f] = o(t);
|
|
30
|
+
return d !== t && (f(t), c(!1)), i(() => {
|
|
30
31
|
if (!t) return;
|
|
31
32
|
let e = new Image();
|
|
32
|
-
return e.src = t, e.onload = () =>
|
|
33
|
+
return e.src = t, e.onload = () => c(!0), e.onerror = (e) => {
|
|
33
34
|
n ? n(e) : console.error("CrossfadeImage: Failed to load image", t);
|
|
34
35
|
}, e.complete && e.naturalWidth > 0 && e.onload(new Event("load")), () => {
|
|
35
36
|
e.onload = null, e.onerror = null;
|
|
36
37
|
};
|
|
37
|
-
}, [t, n]), /* @__PURE__ */
|
|
38
|
+
}, [t, n]), /* @__PURE__ */ u(s, { children: a && t ? /* @__PURE__ */ u(l.img, {
|
|
38
39
|
src: t,
|
|
39
|
-
...
|
|
40
|
+
...r,
|
|
40
41
|
initial: { opacity: 0 },
|
|
41
42
|
animate: { opacity: 1 },
|
|
42
43
|
exit: { opacity: 0 },
|
|
43
|
-
style: { ...
|
|
44
|
-
}, "loaded-image") : /* @__PURE__ */ l
|
|
44
|
+
style: { ...r.style }
|
|
45
|
+
}, "loaded-image") : /* @__PURE__ */ u(l.div, {
|
|
45
46
|
initial: { opacity: 1 },
|
|
46
47
|
transition: { duration: .3 },
|
|
47
|
-
style: { ...
|
|
48
|
-
children: e ?? /* @__PURE__ */
|
|
48
|
+
style: { ...r.style },
|
|
49
|
+
children: e ?? /* @__PURE__ */ u("div", { className: "w-full h-full bg-sidebar" })
|
|
49
50
|
}, "placeholder") });
|
|
50
51
|
}
|
|
51
52
|
//#endregion
|
|
52
53
|
//#region src/types/image.tsx
|
|
53
|
-
var
|
|
54
|
+
var se = ({ children: e }) => /* @__PURE__ */ u("div", { children: e }), ce = (e) => /* @__PURE__ */ u("label", { ...e }), M = ({ children: e }) => /* @__PURE__ */ u("p", { children: e }), N = (e) => /* @__PURE__ */ u("input", { ...e }), le = ({ children: e, ...t }) => /* @__PURE__ */ u("div", {
|
|
54
55
|
...t,
|
|
55
56
|
children: e
|
|
56
|
-
}),
|
|
57
|
+
}), ue = (e) => null, P = ({ children: e, ...t }) => /* @__PURE__ */ u("div", {
|
|
57
58
|
...t,
|
|
58
59
|
children: e
|
|
59
|
-
}),
|
|
60
|
+
}), de = ({ children: e, type: t = "button", ...n }) => /* @__PURE__ */ u("button", {
|
|
60
61
|
type: t,
|
|
61
62
|
...n,
|
|
62
63
|
children: e
|
|
63
|
-
}),
|
|
64
|
+
}), fe = ({ className: e }) => /* @__PURE__ */ u("span", {
|
|
64
65
|
className: e,
|
|
65
66
|
children: "×"
|
|
66
|
-
}),
|
|
67
|
-
function
|
|
68
|
-
|
|
67
|
+
}), pe = ["ko", "en"], me = null;
|
|
68
|
+
function he(e) {
|
|
69
|
+
me = e;
|
|
69
70
|
}
|
|
70
|
-
var
|
|
71
|
+
var ge = {
|
|
71
72
|
get(e, t = "ko") {
|
|
72
|
-
let n =
|
|
73
|
-
return e[
|
|
73
|
+
let n = me?.();
|
|
74
|
+
return e[pe.includes(n) ? n : t] ?? e[t];
|
|
74
75
|
},
|
|
75
76
|
ko(e) {
|
|
76
77
|
return e.ko;
|
|
77
78
|
}
|
|
78
|
-
},
|
|
79
|
+
}, _e = class {
|
|
79
80
|
url = "";
|
|
80
81
|
file = null;
|
|
81
82
|
constructor(e = {}) {
|
|
@@ -90,19 +91,19 @@ var V = {
|
|
|
90
91
|
get isEmpty() {
|
|
91
92
|
return !this.file && !this.url;
|
|
92
93
|
}
|
|
93
|
-
},
|
|
94
|
+
}, ve = (e) => /* @__PURE__ */ u("table", { ...e }), ye = (e) => /* @__PURE__ */ u("thead", { ...e }), be = (e) => /* @__PURE__ */ u("tbody", { ...e }), xe = (e) => /* @__PURE__ */ u("tr", { ...e }), Se = (e) => /* @__PURE__ */ u("th", { ...e }), Ce = (e) => /* @__PURE__ */ u("td", { ...e }), we = ({ open: e, children: t }) => e ? /* @__PURE__ */ u("div", { children: t }) : null, Te = (e) => /* @__PURE__ */ u("div", { ...e }), Ee = (e) => /* @__PURE__ */ u("div", { ...e }), De = (e) => /* @__PURE__ */ u("h2", { ...e }), Oe = (e) => /* @__PURE__ */ u("p", { ...e }), ke = (e) => /* @__PURE__ */ u("div", { ...e }), Ae = (e) => /* @__PURE__ */ u("div", { children: "Calendar" }), je = (e) => /* @__PURE__ */ u("div", {
|
|
94
95
|
className: e.className,
|
|
95
96
|
children: e.children
|
|
96
|
-
}),
|
|
97
|
+
}), Me = (e) => /* @__PURE__ */ u("div", {
|
|
97
98
|
className: e.className,
|
|
98
99
|
children: e.children
|
|
99
|
-
}),
|
|
100
|
+
}), Ne = (e) => /* @__PURE__ */ u("input", { ...e }), Pe = (e) => /* @__PURE__ */ u("div", {
|
|
100
101
|
className: e.className,
|
|
101
102
|
children: e.children
|
|
102
|
-
}),
|
|
103
|
+
}), Fe = ({ className: e }) => /* @__PURE__ */ u("span", {
|
|
103
104
|
className: e,
|
|
104
105
|
children: "🕔"
|
|
105
|
-
}),
|
|
106
|
+
}), F = {
|
|
106
107
|
wrapper: {
|
|
107
108
|
display: "flex",
|
|
108
109
|
flexDirection: "column",
|
|
@@ -177,76 +178,76 @@ var V = {
|
|
|
177
178
|
transition: "box-shadow 160ms ease"
|
|
178
179
|
}
|
|
179
180
|
};
|
|
180
|
-
function
|
|
181
|
-
let { t: p } =
|
|
182
|
-
...
|
|
181
|
+
function Ie({ id: e, label: t, uploadHintText: n, descriptionText: r, value: i, onChange: a, aspectRatio: s = "1 / 1", accept: c = "image/*", components: l }) {
|
|
182
|
+
let { t: p } = f(), m = l?.Field ?? se, h = l?.FieldLabel ?? ce, g = l?.FieldDescription ?? M, _ = l?.Input ?? N, v = {
|
|
183
|
+
...F.imageBox,
|
|
183
184
|
aspectRatio: s
|
|
184
|
-
}, [y, b] =
|
|
185
|
-
return /* @__PURE__ */
|
|
185
|
+
}, [y, b] = o(!1);
|
|
186
|
+
return /* @__PURE__ */ d(m, { children: [/* @__PURE__ */ u(h, {
|
|
186
187
|
htmlFor: e,
|
|
187
188
|
children: t
|
|
188
|
-
}), /* @__PURE__ */
|
|
189
|
-
style:
|
|
189
|
+
}), /* @__PURE__ */ d("div", {
|
|
190
|
+
style: F.wrapper,
|
|
190
191
|
children: [
|
|
191
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ u("label", {
|
|
192
193
|
htmlFor: e,
|
|
193
194
|
style: {
|
|
194
|
-
...
|
|
195
|
+
...F.trigger,
|
|
195
196
|
backgroundColor: y ? "var(--accent)" : "var(--card)"
|
|
196
197
|
},
|
|
197
198
|
onMouseEnter: () => b(!0),
|
|
198
199
|
onMouseLeave: () => b(!1),
|
|
199
|
-
children: /* @__PURE__ */
|
|
200
|
-
style:
|
|
201
|
-
children: [/* @__PURE__ */
|
|
202
|
-
style:
|
|
203
|
-
children: i.url ? /* @__PURE__ */
|
|
204
|
-
style:
|
|
205
|
-
children: /* @__PURE__ */
|
|
200
|
+
children: /* @__PURE__ */ d("div", {
|
|
201
|
+
style: F.card,
|
|
202
|
+
children: [/* @__PURE__ */ u("div", {
|
|
203
|
+
style: F.frame,
|
|
204
|
+
children: i.url ? /* @__PURE__ */ u("div", {
|
|
205
|
+
style: F.imageLayer,
|
|
206
|
+
children: /* @__PURE__ */ u("div", {
|
|
206
207
|
style: v,
|
|
207
|
-
children: /* @__PURE__ */
|
|
208
|
+
children: /* @__PURE__ */ u(oe, {
|
|
208
209
|
src: i.url,
|
|
209
210
|
className: "",
|
|
210
211
|
alt: t,
|
|
211
|
-
style:
|
|
212
|
+
style: F.image
|
|
212
213
|
})
|
|
213
214
|
})
|
|
214
|
-
}) : /* @__PURE__ */
|
|
215
|
-
style:
|
|
216
|
-
children: [/* @__PURE__ */
|
|
217
|
-
style:
|
|
215
|
+
}) : /* @__PURE__ */ d("div", {
|
|
216
|
+
style: F.empty,
|
|
217
|
+
children: [/* @__PURE__ */ u("div", {
|
|
218
|
+
style: F.badge,
|
|
218
219
|
children: p("libs:add_assets")
|
|
219
|
-
}), /* @__PURE__ */
|
|
220
|
-
style:
|
|
220
|
+
}), /* @__PURE__ */ u("p", {
|
|
221
|
+
style: F.hint,
|
|
221
222
|
children: n
|
|
222
223
|
})]
|
|
223
224
|
})
|
|
224
|
-
}), /* @__PURE__ */
|
|
225
|
-
...
|
|
225
|
+
}), /* @__PURE__ */ u("div", { style: {
|
|
226
|
+
...F.overlay,
|
|
226
227
|
boxShadow: y ? "inset 0 0 0 2px rgba(59, 130, 246, 0.16)" : "inset 0 0 0 0 rgba(59, 130, 246, 0)"
|
|
227
228
|
} })]
|
|
228
229
|
})
|
|
229
230
|
}),
|
|
230
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ u(_, {
|
|
231
232
|
id: e,
|
|
232
233
|
type: "file",
|
|
233
234
|
accept: c,
|
|
234
235
|
onChange: (e) => {
|
|
235
236
|
let t = e.target.files?.[0];
|
|
236
|
-
t && (i.revokeIfNeeded(),
|
|
237
|
+
t && (i.revokeIfNeeded(), a(new _e({
|
|
237
238
|
file: t,
|
|
238
239
|
url: URL.createObjectURL(t)
|
|
239
240
|
})), e.currentTarget.value = "");
|
|
240
241
|
},
|
|
241
242
|
style: { display: "none" }
|
|
242
243
|
}),
|
|
243
|
-
/* @__PURE__ */
|
|
244
|
+
/* @__PURE__ */ u(g, { children: r })
|
|
244
245
|
]
|
|
245
246
|
})] });
|
|
246
247
|
}
|
|
247
248
|
//#endregion
|
|
248
249
|
//#region src/components/image/ImageUploadSortableField.tsx
|
|
249
|
-
var
|
|
250
|
+
var I = {
|
|
250
251
|
wrapper: {
|
|
251
252
|
display: "flex",
|
|
252
253
|
flexDirection: "column",
|
|
@@ -350,61 +351,61 @@ var U = {
|
|
|
350
351
|
marginRight: "1rem"
|
|
351
352
|
}
|
|
352
353
|
};
|
|
353
|
-
function
|
|
354
|
-
let { t: p } =
|
|
354
|
+
function Le({ id: e, label: t, descriptionText: n, uploadHintText: r, items: i, onChange: a, aspectRatio: o = "1 / 1", accept: s = "image/*", components: l }) {
|
|
355
|
+
let { t: p } = f(), m = l?.Field ?? se, h = l?.FieldLabel ?? ce, g = l?.FieldDescription ?? M, _ = l?.Input ?? N, v = l?.ScrollArea ?? le, y = l?.ScrollBar ?? ue, b = l?.Card ?? P, x = l?.Button ?? de, S = l?.CloseIcon ?? fe, C = (e) => {
|
|
355
356
|
e.revokeIfNeeded(), a(i.filter((t) => t !== e));
|
|
356
357
|
}, w = (e) => {
|
|
357
|
-
!e || e.length === 0 || a([...i, ...Array.from(e).map((e) => new
|
|
358
|
+
!e || e.length === 0 || a([...i, ...Array.from(e).map((e) => new _e({
|
|
358
359
|
file: e,
|
|
359
360
|
url: URL.createObjectURL(e)
|
|
360
361
|
}))]);
|
|
361
362
|
}, T = {
|
|
362
|
-
...
|
|
363
|
+
...I.card,
|
|
363
364
|
aspectRatio: o
|
|
364
365
|
}, E = {
|
|
365
|
-
...
|
|
366
|
+
...I.uploadCard,
|
|
366
367
|
aspectRatio: o
|
|
367
368
|
};
|
|
368
|
-
return /* @__PURE__ */
|
|
369
|
+
return /* @__PURE__ */ d(m, { children: [/* @__PURE__ */ u(h, {
|
|
369
370
|
htmlFor: e,
|
|
370
371
|
children: t
|
|
371
|
-
}), /* @__PURE__ */
|
|
372
|
-
style:
|
|
373
|
-
children: [/* @__PURE__ */
|
|
374
|
-
style:
|
|
375
|
-
children: [/* @__PURE__ */
|
|
376
|
-
style:
|
|
377
|
-
children: [/* @__PURE__ */
|
|
372
|
+
}), /* @__PURE__ */ d("div", {
|
|
373
|
+
style: I.wrapper,
|
|
374
|
+
children: [/* @__PURE__ */ d("div", {
|
|
375
|
+
style: I.outerBox,
|
|
376
|
+
children: [/* @__PURE__ */ d(v, {
|
|
377
|
+
style: I.scrollArea,
|
|
378
|
+
children: [/* @__PURE__ */ d(c.Group, {
|
|
378
379
|
axis: "x",
|
|
379
380
|
values: i,
|
|
380
381
|
onReorder: a,
|
|
381
382
|
layoutScroll: !0,
|
|
382
|
-
style:
|
|
383
|
-
children: [i.map((e) => /* @__PURE__ */
|
|
383
|
+
style: I.list,
|
|
384
|
+
children: [i.map((e) => /* @__PURE__ */ u(c.Item, {
|
|
384
385
|
value: e,
|
|
385
|
-
style:
|
|
386
|
-
children: /* @__PURE__ */
|
|
386
|
+
style: I.item,
|
|
387
|
+
children: /* @__PURE__ */ u(b, {
|
|
387
388
|
style: T,
|
|
388
|
-
children: /* @__PURE__ */
|
|
389
|
-
style:
|
|
390
|
-
children: [/* @__PURE__ */
|
|
389
|
+
children: /* @__PURE__ */ d("div", {
|
|
390
|
+
style: I.cardInner,
|
|
391
|
+
children: [/* @__PURE__ */ u(oe, {
|
|
391
392
|
src: e.url,
|
|
392
393
|
className: "",
|
|
393
394
|
alt: t,
|
|
394
|
-
style:
|
|
395
|
+
style: I.image,
|
|
395
396
|
draggable: !1
|
|
396
|
-
}), /* @__PURE__ */
|
|
397
|
+
}), /* @__PURE__ */ u(x, {
|
|
397
398
|
type: "button",
|
|
398
|
-
style:
|
|
399
|
+
style: I.removeButton,
|
|
399
400
|
onClick: () => C(e),
|
|
400
|
-
children: /* @__PURE__ */
|
|
401
|
+
children: /* @__PURE__ */ u(S, {})
|
|
401
402
|
})]
|
|
402
403
|
})
|
|
403
404
|
})
|
|
404
|
-
}, e.url)), /* @__PURE__ */
|
|
405
|
+
}, e.url)), /* @__PURE__ */ u("label", {
|
|
405
406
|
htmlFor: e,
|
|
406
|
-
style:
|
|
407
|
-
children: /* @__PURE__ */
|
|
407
|
+
style: I.uploadLabel,
|
|
408
|
+
children: /* @__PURE__ */ u(b, {
|
|
408
409
|
style: E,
|
|
409
410
|
onMouseEnter: (e) => {
|
|
410
411
|
e.currentTarget.style.backgroundColor = "var(--accent)";
|
|
@@ -412,149 +413,149 @@ function ke({ id: e, label: t, descriptionText: n, uploadHintText: r, items: i,
|
|
|
412
413
|
onMouseLeave: (e) => {
|
|
413
414
|
e.currentTarget.style.backgroundColor = "var(--card)";
|
|
414
415
|
},
|
|
415
|
-
children: /* @__PURE__ */
|
|
416
|
-
style:
|
|
417
|
-
children: [/* @__PURE__ */
|
|
418
|
-
style:
|
|
416
|
+
children: /* @__PURE__ */ d("div", {
|
|
417
|
+
style: I.uploadCardInner,
|
|
418
|
+
children: [/* @__PURE__ */ u("div", {
|
|
419
|
+
style: I.badge,
|
|
419
420
|
children: p("libs:add_assets")
|
|
420
|
-
}), /* @__PURE__ */
|
|
421
|
-
style:
|
|
421
|
+
}), /* @__PURE__ */ u("p", {
|
|
422
|
+
style: I.hint,
|
|
422
423
|
children: r
|
|
423
424
|
})]
|
|
424
425
|
})
|
|
425
426
|
})
|
|
426
427
|
})]
|
|
427
|
-
}), /* @__PURE__ */
|
|
428
|
+
}), /* @__PURE__ */ u(y, {
|
|
428
429
|
orientation: "horizontal",
|
|
429
|
-
style:
|
|
430
|
+
style: I.scrollBar
|
|
430
431
|
})]
|
|
431
|
-
}), /* @__PURE__ */
|
|
432
|
+
}), /* @__PURE__ */ u(_, {
|
|
432
433
|
id: e,
|
|
433
434
|
type: "file",
|
|
434
|
-
accept:
|
|
435
|
+
accept: s,
|
|
435
436
|
multiple: !0,
|
|
436
437
|
onChange: (e) => {
|
|
437
438
|
w(e.target.files), e.currentTarget.value = "";
|
|
438
439
|
},
|
|
439
|
-
style:
|
|
440
|
+
style: I.hiddenInput
|
|
440
441
|
})]
|
|
441
|
-
}), /* @__PURE__ */
|
|
442
|
-
style:
|
|
443
|
-
children: /* @__PURE__ */
|
|
442
|
+
}), /* @__PURE__ */ u("div", {
|
|
443
|
+
style: I.description,
|
|
444
|
+
children: /* @__PURE__ */ u(g, { children: n })
|
|
444
445
|
})]
|
|
445
446
|
})] });
|
|
446
447
|
}
|
|
447
448
|
//#endregion
|
|
448
449
|
//#region node_modules/clsx/dist/clsx.mjs
|
|
449
|
-
function
|
|
450
|
+
function Re(e) {
|
|
450
451
|
var t, n, r = "";
|
|
451
452
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
452
453
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
453
454
|
var i = e.length;
|
|
454
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
455
|
+
for (t = 0; t < i; t++) e[t] && (n = Re(e[t])) && (r && (r += " "), r += n);
|
|
455
456
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
456
457
|
return r;
|
|
457
458
|
}
|
|
458
|
-
function
|
|
459
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
459
|
+
function ze() {
|
|
460
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Re(e)) && (r && (r += " "), r += t);
|
|
460
461
|
return r;
|
|
461
462
|
}
|
|
462
463
|
//#endregion
|
|
463
464
|
//#region node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
464
|
-
var
|
|
465
|
+
var Be = (e, t) => {
|
|
465
466
|
let n = Array(e.length + t.length);
|
|
466
467
|
for (let t = 0; t < e.length; t++) n[t] = e[t];
|
|
467
468
|
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
|
|
468
469
|
return n;
|
|
469
|
-
},
|
|
470
|
+
}, Ve = (e, t) => ({
|
|
470
471
|
classGroupId: e,
|
|
471
472
|
validator: t
|
|
472
|
-
}),
|
|
473
|
+
}), He = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
473
474
|
nextPart: e,
|
|
474
475
|
validators: t,
|
|
475
476
|
classGroupId: n
|
|
476
|
-
}),
|
|
477
|
-
let t =
|
|
477
|
+
}), Ue = "-", We = [], Ge = "arbitrary..", Ke = (e) => {
|
|
478
|
+
let t = Ye(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
|
|
478
479
|
return {
|
|
479
480
|
getClassGroupId: (e) => {
|
|
480
|
-
if (e.startsWith("[") && e.endsWith("]")) return
|
|
481
|
-
let n = e.split(
|
|
482
|
-
return
|
|
481
|
+
if (e.startsWith("[") && e.endsWith("]")) return Je(e);
|
|
482
|
+
let n = e.split(Ue);
|
|
483
|
+
return qe(n, +(n[0] === "" && n.length > 1), t);
|
|
483
484
|
},
|
|
484
485
|
getConflictingClassGroupIds: (e, t) => {
|
|
485
486
|
if (t) {
|
|
486
487
|
let t = r[e], i = n[e];
|
|
487
|
-
return t ? i ?
|
|
488
|
+
return t ? i ? Be(i, t) : t : i || We;
|
|
488
489
|
}
|
|
489
|
-
return n[e] ||
|
|
490
|
+
return n[e] || We;
|
|
490
491
|
}
|
|
491
492
|
};
|
|
492
|
-
},
|
|
493
|
+
}, qe = (e, t, n) => {
|
|
493
494
|
if (e.length - t === 0) return n.classGroupId;
|
|
494
495
|
let r = e[t], i = n.nextPart.get(r);
|
|
495
496
|
if (i) {
|
|
496
|
-
let n =
|
|
497
|
+
let n = qe(e, t + 1, i);
|
|
497
498
|
if (n) return n;
|
|
498
499
|
}
|
|
499
500
|
let a = n.validators;
|
|
500
501
|
if (a === null) return;
|
|
501
|
-
let o = t === 0 ? e.join(
|
|
502
|
+
let o = t === 0 ? e.join(Ue) : e.slice(t).join(Ue), s = a.length;
|
|
502
503
|
for (let e = 0; e < s; e++) {
|
|
503
504
|
let t = a[e];
|
|
504
505
|
if (t.validator(o)) return t.classGroupId;
|
|
505
506
|
}
|
|
506
|
-
},
|
|
507
|
+
}, Je = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
507
508
|
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
|
|
508
|
-
return r ?
|
|
509
|
-
})(),
|
|
509
|
+
return r ? Ge + r : void 0;
|
|
510
|
+
})(), Ye = (e) => {
|
|
510
511
|
let { theme: t, classGroups: n } = e;
|
|
511
|
-
return
|
|
512
|
-
},
|
|
513
|
-
let n =
|
|
512
|
+
return Xe(n, t);
|
|
513
|
+
}, Xe = (e, t) => {
|
|
514
|
+
let n = He();
|
|
514
515
|
for (let r in e) {
|
|
515
516
|
let i = e[r];
|
|
516
|
-
|
|
517
|
+
Ze(i, n, r, t);
|
|
517
518
|
}
|
|
518
519
|
return n;
|
|
519
|
-
},
|
|
520
|
+
}, Ze = (e, t, n, r) => {
|
|
520
521
|
let i = e.length;
|
|
521
522
|
for (let a = 0; a < i; a++) {
|
|
522
523
|
let i = e[a];
|
|
523
|
-
|
|
524
|
+
Qe(i, t, n, r);
|
|
524
525
|
}
|
|
525
|
-
},
|
|
526
|
+
}, Qe = (e, t, n, r) => {
|
|
526
527
|
if (typeof e == "string") {
|
|
527
|
-
|
|
528
|
+
$e(e, t, n);
|
|
528
529
|
return;
|
|
529
530
|
}
|
|
530
531
|
if (typeof e == "function") {
|
|
531
|
-
|
|
532
|
+
et(e, t, n, r);
|
|
532
533
|
return;
|
|
533
534
|
}
|
|
534
|
-
|
|
535
|
-
},
|
|
536
|
-
let r = e === "" ? t :
|
|
535
|
+
tt(e, t, n, r);
|
|
536
|
+
}, $e = (e, t, n) => {
|
|
537
|
+
let r = e === "" ? t : nt(t, e);
|
|
537
538
|
r.classGroupId = n;
|
|
538
|
-
},
|
|
539
|
-
if (
|
|
540
|
-
|
|
539
|
+
}, et = (e, t, n, r) => {
|
|
540
|
+
if (rt(e)) {
|
|
541
|
+
Ze(e(r), t, n, r);
|
|
541
542
|
return;
|
|
542
543
|
}
|
|
543
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
544
|
-
},
|
|
544
|
+
t.validators === null && (t.validators = []), t.validators.push(Ve(n, e));
|
|
545
|
+
}, tt = (e, t, n, r) => {
|
|
545
546
|
let i = Object.entries(e), a = i.length;
|
|
546
547
|
for (let e = 0; e < a; e++) {
|
|
547
548
|
let [a, o] = i[e];
|
|
548
|
-
|
|
549
|
+
Ze(o, nt(t, a), n, r);
|
|
549
550
|
}
|
|
550
|
-
},
|
|
551
|
-
let n = e, r = t.split(
|
|
551
|
+
}, nt = (e, t) => {
|
|
552
|
+
let n = e, r = t.split(Ue), i = r.length;
|
|
552
553
|
for (let e = 0; e < i; e++) {
|
|
553
554
|
let t = r[e], i = n.nextPart.get(t);
|
|
554
|
-
i || (i =
|
|
555
|
+
i || (i = He(), n.nextPart.set(t, i)), n = i;
|
|
555
556
|
}
|
|
556
557
|
return n;
|
|
557
|
-
},
|
|
558
|
+
}, rt = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, it = (e) => {
|
|
558
559
|
if (e < 1) return {
|
|
559
560
|
get: () => void 0,
|
|
560
561
|
set: () => {}
|
|
@@ -572,19 +573,19 @@ var Me = (e, t) => {
|
|
|
572
573
|
e in n ? n[e] = t : i(e, t);
|
|
573
574
|
}
|
|
574
575
|
};
|
|
575
|
-
},
|
|
576
|
+
}, at = "!", ot = ":", st = [], ct = (e, t, n, r, i) => ({
|
|
576
577
|
modifiers: e,
|
|
577
578
|
hasImportantModifier: t,
|
|
578
579
|
baseClassName: n,
|
|
579
580
|
maybePostfixModifierPosition: r,
|
|
580
581
|
isExternal: i
|
|
581
|
-
}),
|
|
582
|
+
}), lt = (e) => {
|
|
582
583
|
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
|
|
583
584
|
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
|
|
584
585
|
for (let s = 0; s < o; s++) {
|
|
585
586
|
let o = e[s];
|
|
586
587
|
if (n === 0 && r === 0) {
|
|
587
|
-
if (o ===
|
|
588
|
+
if (o === ot) {
|
|
588
589
|
t.push(e.slice(i, s)), i = s + 1;
|
|
589
590
|
continue;
|
|
590
591
|
}
|
|
@@ -596,13 +597,13 @@ var Me = (e, t) => {
|
|
|
596
597
|
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
|
|
597
598
|
}
|
|
598
599
|
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
|
|
599
|
-
s.endsWith(
|
|
600
|
+
s.endsWith(at) ? (c = s.slice(0, -1), l = !0) : s.startsWith(at) && (c = s.slice(1), l = !0);
|
|
600
601
|
let u = a && a > i ? a - i : void 0;
|
|
601
|
-
return
|
|
602
|
+
return ct(t, l, c, u);
|
|
602
603
|
};
|
|
603
604
|
if (t) {
|
|
604
|
-
let e = t +
|
|
605
|
-
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) :
|
|
605
|
+
let e = t + ot, n = r;
|
|
606
|
+
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : ct(st, !1, t, void 0, !0);
|
|
606
607
|
}
|
|
607
608
|
if (n) {
|
|
608
609
|
let e = r;
|
|
@@ -612,7 +613,7 @@ var Me = (e, t) => {
|
|
|
612
613
|
});
|
|
613
614
|
}
|
|
614
615
|
return r;
|
|
615
|
-
},
|
|
616
|
+
}, ut = (e) => {
|
|
616
617
|
let t = /* @__PURE__ */ new Map();
|
|
617
618
|
return e.orderSensitiveModifiers.forEach((e, n) => {
|
|
618
619
|
t.set(e, 1e6 + n);
|
|
@@ -624,18 +625,18 @@ var Me = (e, t) => {
|
|
|
624
625
|
}
|
|
625
626
|
return r.length > 0 && (r.sort(), n.push(...r)), n;
|
|
626
627
|
};
|
|
627
|
-
},
|
|
628
|
-
cache:
|
|
629
|
-
parseClassName:
|
|
630
|
-
sortModifiers:
|
|
631
|
-
postfixLookupClassGroupIds:
|
|
632
|
-
...
|
|
633
|
-
}),
|
|
628
|
+
}, dt = (e) => ({
|
|
629
|
+
cache: it(e.cacheSize),
|
|
630
|
+
parseClassName: lt(e),
|
|
631
|
+
sortModifiers: ut(e),
|
|
632
|
+
postfixLookupClassGroupIds: ft(e),
|
|
633
|
+
...Ke(e)
|
|
634
|
+
}), ft = (e) => {
|
|
634
635
|
let t = Object.create(null), n = e.postfixLookupClassGroups;
|
|
635
636
|
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
|
|
636
637
|
return t;
|
|
637
|
-
},
|
|
638
|
-
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(
|
|
638
|
+
}, pt = /\s+/, mt = (e, t) => {
|
|
639
|
+
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(pt), l = "";
|
|
639
640
|
for (let e = c.length - 1; e >= 0; --e) {
|
|
640
641
|
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
|
|
641
642
|
if (u) {
|
|
@@ -659,7 +660,7 @@ var Me = (e, t) => {
|
|
|
659
660
|
}
|
|
660
661
|
h = !1;
|
|
661
662
|
}
|
|
662
|
-
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ +
|
|
663
|
+
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + at : _, y = v + g;
|
|
663
664
|
if (s.indexOf(y) > -1) continue;
|
|
664
665
|
s.push(y);
|
|
665
666
|
let b = i(g, h);
|
|
@@ -670,34 +671,34 @@ var Me = (e, t) => {
|
|
|
670
671
|
l = t + (l.length > 0 ? " " + l : l);
|
|
671
672
|
}
|
|
672
673
|
return l;
|
|
673
|
-
},
|
|
674
|
+
}, ht = (...e) => {
|
|
674
675
|
let t = 0, n, r, i = "";
|
|
675
|
-
for (; t < e.length;) (n = e[t++]) && (r =
|
|
676
|
+
for (; t < e.length;) (n = e[t++]) && (r = gt(n)) && (i && (i += " "), i += r);
|
|
676
677
|
return i;
|
|
677
|
-
},
|
|
678
|
+
}, gt = (e) => {
|
|
678
679
|
if (typeof e == "string") return e;
|
|
679
680
|
let t, n = "";
|
|
680
|
-
for (let r = 0; r < e.length; r++) e[r] && (t =
|
|
681
|
+
for (let r = 0; r < e.length; r++) e[r] && (t = gt(e[r])) && (n && (n += " "), n += t);
|
|
681
682
|
return n;
|
|
682
|
-
},
|
|
683
|
-
let n, r, i, a, o = (o) => (n =
|
|
683
|
+
}, _t = (e, ...t) => {
|
|
684
|
+
let n, r, i, a, o = (o) => (n = dt(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
|
|
684
685
|
let t = r(e);
|
|
685
686
|
if (t) return t;
|
|
686
|
-
let a =
|
|
687
|
+
let a = mt(e, n);
|
|
687
688
|
return i(e, a), a;
|
|
688
689
|
};
|
|
689
|
-
return a = o, (...e) => a(
|
|
690
|
-
},
|
|
691
|
-
let t = (t) => t[e] ||
|
|
690
|
+
return a = o, (...e) => a(ht(...e));
|
|
691
|
+
}, vt = [], L = (e) => {
|
|
692
|
+
let t = (t) => t[e] || vt;
|
|
692
693
|
return t.isThemeGetter = !0, t;
|
|
693
|
-
},
|
|
694
|
-
let r =
|
|
694
|
+
}, yt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, bt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, xt = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, St = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ct = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, wt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Tt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Et = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, R = (e) => xt.test(e), z = (e) => !!e && !Number.isNaN(Number(e)), B = (e) => !!e && Number.isInteger(Number(e)), Dt = (e) => e.endsWith("%") && z(e.slice(0, -1)), V = (e) => St.test(e), Ot = () => !0, kt = (e) => Ct.test(e) && !wt.test(e), At = () => !1, jt = (e) => Tt.test(e), Mt = (e) => Et.test(e), Nt = (e) => !H(e) && !W(e), Pt = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Ft = (e) => G(e, Zt, At), H = (e) => yt.test(e), U = (e) => G(e, Qt, kt), It = (e) => G(e, $t, z), Lt = (e) => G(e, tn, Ot), Rt = (e) => G(e, en, At), zt = (e) => G(e, Yt, At), Bt = (e) => G(e, Xt, Mt), Vt = (e) => G(e, nn, jt), W = (e) => bt.test(e), Ht = (e) => K(e, Qt), Ut = (e) => K(e, en), Wt = (e) => K(e, Yt), Gt = (e) => K(e, Zt), Kt = (e) => K(e, Xt), qt = (e) => K(e, nn, !0), Jt = (e) => K(e, tn, !0), G = (e, t, n) => {
|
|
695
|
+
let r = yt.exec(e);
|
|
695
696
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
696
|
-
},
|
|
697
|
-
let r =
|
|
697
|
+
}, K = (e, t, n = !1) => {
|
|
698
|
+
let r = bt.exec(e);
|
|
698
699
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
699
|
-
},
|
|
700
|
-
let e =
|
|
700
|
+
}, Yt = (e) => e === "position" || e === "percentage", Xt = (e) => e === "image" || e === "url", Zt = (e) => e === "length" || e === "size" || e === "bg-size", Qt = (e) => e === "length", $t = (e) => e === "number", en = (e) => e === "family-name", tn = (e) => e === "number" || e === "weight", nn = (e) => e === "shadow", rn = /* @__PURE__ */ _t(() => {
|
|
701
|
+
let e = L("color"), t = L("font"), n = L("text"), r = L("font-weight"), i = L("tracking"), a = L("leading"), o = L("breakpoint"), s = L("container"), c = L("spacing"), l = L("radius"), u = L("shadow"), d = L("inset-shadow"), f = L("text-shadow"), p = L("drop-shadow"), m = L("blur"), h = L("perspective"), g = L("aspect"), _ = L("ease"), v = L("animate"), y = () => [
|
|
701
702
|
"auto",
|
|
702
703
|
"avoid",
|
|
703
704
|
"all",
|
|
@@ -722,8 +723,8 @@ var Me = (e, t) => {
|
|
|
722
723
|
"left-bottom"
|
|
723
724
|
], x = () => [
|
|
724
725
|
...b(),
|
|
725
|
-
|
|
726
|
-
|
|
726
|
+
W,
|
|
727
|
+
H
|
|
727
728
|
], S = () => [
|
|
728
729
|
"auto",
|
|
729
730
|
"hidden",
|
|
@@ -735,44 +736,44 @@ var Me = (e, t) => {
|
|
|
735
736
|
"contain",
|
|
736
737
|
"none"
|
|
737
738
|
], w = () => [
|
|
738
|
-
|
|
739
|
-
|
|
739
|
+
W,
|
|
740
|
+
H,
|
|
740
741
|
c
|
|
741
742
|
], T = () => [
|
|
742
|
-
|
|
743
|
+
R,
|
|
743
744
|
"full",
|
|
744
745
|
"auto",
|
|
745
746
|
...w()
|
|
746
747
|
], E = () => [
|
|
747
|
-
|
|
748
|
+
B,
|
|
748
749
|
"none",
|
|
749
750
|
"subgrid",
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
],
|
|
751
|
+
W,
|
|
752
|
+
H
|
|
753
|
+
], ee = () => [
|
|
753
754
|
"auto",
|
|
754
755
|
{ span: [
|
|
755
756
|
"full",
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
757
|
+
B,
|
|
758
|
+
W,
|
|
759
|
+
H
|
|
759
760
|
] },
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
], ee = () => [
|
|
764
|
-
q,
|
|
765
|
-
"auto",
|
|
766
|
-
Z,
|
|
767
|
-
Y
|
|
761
|
+
B,
|
|
762
|
+
W,
|
|
763
|
+
H
|
|
768
764
|
], te = () => [
|
|
765
|
+
B,
|
|
766
|
+
"auto",
|
|
767
|
+
W,
|
|
768
|
+
H
|
|
769
|
+
], ne = () => [
|
|
769
770
|
"auto",
|
|
770
771
|
"min",
|
|
771
772
|
"max",
|
|
772
773
|
"fr",
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
],
|
|
774
|
+
W,
|
|
775
|
+
H
|
|
776
|
+
], D = () => [
|
|
776
777
|
"start",
|
|
777
778
|
"end",
|
|
778
779
|
"center",
|
|
@@ -791,7 +792,7 @@ var Me = (e, t) => {
|
|
|
791
792
|
"center-safe",
|
|
792
793
|
"end-safe"
|
|
793
794
|
], k = () => ["auto", ...w()], A = () => [
|
|
794
|
-
|
|
795
|
+
R,
|
|
795
796
|
"auto",
|
|
796
797
|
"full",
|
|
797
798
|
"dvw",
|
|
@@ -804,8 +805,8 @@ var Me = (e, t) => {
|
|
|
804
805
|
"max",
|
|
805
806
|
"fit",
|
|
806
807
|
...w()
|
|
807
|
-
],
|
|
808
|
-
|
|
808
|
+
], re = () => [
|
|
809
|
+
R,
|
|
809
810
|
"screen",
|
|
810
811
|
"full",
|
|
811
812
|
"dvw",
|
|
@@ -815,8 +816,8 @@ var Me = (e, t) => {
|
|
|
815
816
|
"max",
|
|
816
817
|
"fit",
|
|
817
818
|
...w()
|
|
818
|
-
],
|
|
819
|
-
|
|
819
|
+
], ie = () => [
|
|
820
|
+
R,
|
|
820
821
|
"screen",
|
|
821
822
|
"full",
|
|
822
823
|
"lh",
|
|
@@ -827,50 +828,50 @@ var Me = (e, t) => {
|
|
|
827
828
|
"max",
|
|
828
829
|
"fit",
|
|
829
830
|
...w()
|
|
830
|
-
],
|
|
831
|
+
], j = () => [
|
|
831
832
|
e,
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
],
|
|
833
|
+
W,
|
|
834
|
+
H
|
|
835
|
+
], ae = () => [
|
|
835
836
|
...b(),
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
{ position: [
|
|
839
|
-
],
|
|
837
|
+
Wt,
|
|
838
|
+
zt,
|
|
839
|
+
{ position: [W, H] }
|
|
840
|
+
], oe = () => ["no-repeat", { repeat: [
|
|
840
841
|
"",
|
|
841
842
|
"x",
|
|
842
843
|
"y",
|
|
843
844
|
"space",
|
|
844
845
|
"round"
|
|
845
|
-
] }],
|
|
846
|
+
] }], se = () => [
|
|
846
847
|
"auto",
|
|
847
848
|
"cover",
|
|
848
849
|
"contain",
|
|
849
|
-
|
|
850
|
+
Gt,
|
|
851
|
+
Ft,
|
|
852
|
+
{ size: [W, H] }
|
|
853
|
+
], ce = () => [
|
|
850
854
|
Dt,
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
Pt,
|
|
855
|
-
X
|
|
856
|
-
], F = () => [
|
|
855
|
+
Ht,
|
|
856
|
+
U
|
|
857
|
+
], M = () => [
|
|
857
858
|
"",
|
|
858
859
|
"none",
|
|
859
860
|
"full",
|
|
860
861
|
l,
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
],
|
|
862
|
+
W,
|
|
863
|
+
H
|
|
864
|
+
], N = () => [
|
|
864
865
|
"",
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
],
|
|
866
|
+
z,
|
|
867
|
+
Ht,
|
|
868
|
+
U
|
|
869
|
+
], le = () => [
|
|
869
870
|
"solid",
|
|
870
871
|
"dashed",
|
|
871
872
|
"dotted",
|
|
872
873
|
"double"
|
|
873
|
-
],
|
|
874
|
+
], ue = () => [
|
|
874
875
|
"normal",
|
|
875
876
|
"multiply",
|
|
876
877
|
"screen",
|
|
@@ -887,33 +888,33 @@ var Me = (e, t) => {
|
|
|
887
888
|
"saturation",
|
|
888
889
|
"color",
|
|
889
890
|
"luminosity"
|
|
890
|
-
],
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
],
|
|
891
|
+
], P = () => [
|
|
892
|
+
z,
|
|
893
|
+
Dt,
|
|
894
|
+
Wt,
|
|
895
|
+
zt
|
|
896
|
+
], de = () => [
|
|
896
897
|
"",
|
|
897
898
|
"none",
|
|
898
899
|
m,
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
],
|
|
900
|
+
W,
|
|
901
|
+
H
|
|
902
|
+
], fe = () => [
|
|
902
903
|
"none",
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
],
|
|
904
|
+
z,
|
|
905
|
+
W,
|
|
906
|
+
H
|
|
907
|
+
], pe = () => [
|
|
907
908
|
"none",
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
],
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
],
|
|
916
|
-
|
|
909
|
+
z,
|
|
910
|
+
W,
|
|
911
|
+
H
|
|
912
|
+
], me = () => [
|
|
913
|
+
z,
|
|
914
|
+
W,
|
|
915
|
+
H
|
|
916
|
+
], he = () => [
|
|
917
|
+
R,
|
|
917
918
|
"full",
|
|
918
919
|
...w()
|
|
919
920
|
];
|
|
@@ -927,17 +928,17 @@ var Me = (e, t) => {
|
|
|
927
928
|
"bounce"
|
|
928
929
|
],
|
|
929
930
|
aspect: ["video"],
|
|
930
|
-
blur: [
|
|
931
|
-
breakpoint: [
|
|
932
|
-
color: [
|
|
933
|
-
container: [
|
|
934
|
-
"drop-shadow": [
|
|
931
|
+
blur: [V],
|
|
932
|
+
breakpoint: [V],
|
|
933
|
+
color: [Ot],
|
|
934
|
+
container: [V],
|
|
935
|
+
"drop-shadow": [V],
|
|
935
936
|
ease: [
|
|
936
937
|
"in",
|
|
937
938
|
"out",
|
|
938
939
|
"in-out"
|
|
939
940
|
],
|
|
940
|
-
font: [
|
|
941
|
+
font: [Nt],
|
|
941
942
|
"font-weight": [
|
|
942
943
|
"thin",
|
|
943
944
|
"extralight",
|
|
@@ -949,7 +950,7 @@ var Me = (e, t) => {
|
|
|
949
950
|
"extrabold",
|
|
950
951
|
"black"
|
|
951
952
|
],
|
|
952
|
-
"inset-shadow": [
|
|
953
|
+
"inset-shadow": [V],
|
|
953
954
|
leading: [
|
|
954
955
|
"none",
|
|
955
956
|
"tight",
|
|
@@ -966,11 +967,11 @@ var Me = (e, t) => {
|
|
|
966
967
|
"distant",
|
|
967
968
|
"none"
|
|
968
969
|
],
|
|
969
|
-
radius: [
|
|
970
|
-
shadow: [
|
|
971
|
-
spacing: ["px",
|
|
972
|
-
text: [
|
|
973
|
-
"text-shadow": [
|
|
970
|
+
radius: [V],
|
|
971
|
+
shadow: [V],
|
|
972
|
+
spacing: ["px", z],
|
|
973
|
+
text: [V],
|
|
974
|
+
"text-shadow": [V],
|
|
974
975
|
tracking: [
|
|
975
976
|
"tighter",
|
|
976
977
|
"tight",
|
|
@@ -984,9 +985,9 @@ var Me = (e, t) => {
|
|
|
984
985
|
aspect: [{ aspect: [
|
|
985
986
|
"auto",
|
|
986
987
|
"square",
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
988
|
+
R,
|
|
989
|
+
H,
|
|
990
|
+
W,
|
|
990
991
|
g
|
|
991
992
|
] }],
|
|
992
993
|
container: ["container"],
|
|
@@ -994,14 +995,14 @@ var Me = (e, t) => {
|
|
|
994
995
|
"",
|
|
995
996
|
"normal",
|
|
996
997
|
"size",
|
|
997
|
-
|
|
998
|
-
|
|
998
|
+
W,
|
|
999
|
+
H
|
|
999
1000
|
] }],
|
|
1000
|
-
"container-named": [
|
|
1001
|
+
"container-named": [Pt],
|
|
1001
1002
|
columns: [{ columns: [
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1003
|
+
z,
|
|
1004
|
+
H,
|
|
1005
|
+
W,
|
|
1005
1006
|
s
|
|
1006
1007
|
] }],
|
|
1007
1008
|
"break-after": [{ "break-after": y() }],
|
|
@@ -1098,13 +1099,13 @@ var Me = (e, t) => {
|
|
|
1098
1099
|
"collapse"
|
|
1099
1100
|
],
|
|
1100
1101
|
z: [{ z: [
|
|
1101
|
-
|
|
1102
|
+
B,
|
|
1102
1103
|
"auto",
|
|
1103
|
-
|
|
1104
|
-
|
|
1104
|
+
W,
|
|
1105
|
+
H
|
|
1105
1106
|
] }],
|
|
1106
1107
|
basis: [{ basis: [
|
|
1107
|
-
|
|
1108
|
+
R,
|
|
1108
1109
|
"full",
|
|
1109
1110
|
"auto",
|
|
1110
1111
|
s,
|
|
@@ -1122,41 +1123,41 @@ var Me = (e, t) => {
|
|
|
1122
1123
|
"wrap-reverse"
|
|
1123
1124
|
] }],
|
|
1124
1125
|
flex: [{ flex: [
|
|
1125
|
-
|
|
1126
|
-
|
|
1126
|
+
z,
|
|
1127
|
+
R,
|
|
1127
1128
|
"auto",
|
|
1128
1129
|
"initial",
|
|
1129
1130
|
"none",
|
|
1130
|
-
|
|
1131
|
+
H
|
|
1131
1132
|
] }],
|
|
1132
1133
|
grow: [{ grow: [
|
|
1133
1134
|
"",
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1135
|
+
z,
|
|
1136
|
+
W,
|
|
1137
|
+
H
|
|
1137
1138
|
] }],
|
|
1138
1139
|
shrink: [{ shrink: [
|
|
1139
1140
|
"",
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1141
|
+
z,
|
|
1142
|
+
W,
|
|
1143
|
+
H
|
|
1143
1144
|
] }],
|
|
1144
1145
|
order: [{ order: [
|
|
1145
|
-
|
|
1146
|
+
B,
|
|
1146
1147
|
"first",
|
|
1147
1148
|
"last",
|
|
1148
1149
|
"none",
|
|
1149
|
-
|
|
1150
|
-
|
|
1150
|
+
W,
|
|
1151
|
+
H
|
|
1151
1152
|
] }],
|
|
1152
1153
|
"grid-cols": [{ "grid-cols": E() }],
|
|
1153
|
-
"col-start-end": [{ col:
|
|
1154
|
-
"col-start": [{ "col-start":
|
|
1155
|
-
"col-end": [{ "col-end":
|
|
1154
|
+
"col-start-end": [{ col: ee() }],
|
|
1155
|
+
"col-start": [{ "col-start": te() }],
|
|
1156
|
+
"col-end": [{ "col-end": te() }],
|
|
1156
1157
|
"grid-rows": [{ "grid-rows": E() }],
|
|
1157
|
-
"row-start-end": [{ row:
|
|
1158
|
-
"row-start": [{ "row-start":
|
|
1159
|
-
"row-end": [{ "row-end":
|
|
1158
|
+
"row-start-end": [{ row: ee() }],
|
|
1159
|
+
"row-start": [{ "row-start": te() }],
|
|
1160
|
+
"row-end": [{ "row-end": te() }],
|
|
1160
1161
|
"grid-flow": [{ "grid-flow": [
|
|
1161
1162
|
"row",
|
|
1162
1163
|
"col",
|
|
@@ -1164,22 +1165,22 @@ var Me = (e, t) => {
|
|
|
1164
1165
|
"row-dense",
|
|
1165
1166
|
"col-dense"
|
|
1166
1167
|
] }],
|
|
1167
|
-
"auto-cols": [{ "auto-cols":
|
|
1168
|
-
"auto-rows": [{ "auto-rows":
|
|
1168
|
+
"auto-cols": [{ "auto-cols": ne() }],
|
|
1169
|
+
"auto-rows": [{ "auto-rows": ne() }],
|
|
1169
1170
|
gap: [{ gap: w() }],
|
|
1170
1171
|
"gap-x": [{ "gap-x": w() }],
|
|
1171
1172
|
"gap-y": [{ "gap-y": w() }],
|
|
1172
|
-
"justify-content": [{ justify: [...
|
|
1173
|
+
"justify-content": [{ justify: [...D(), "normal"] }],
|
|
1173
1174
|
"justify-items": [{ "justify-items": [...O(), "normal"] }],
|
|
1174
1175
|
"justify-self": [{ "justify-self": ["auto", ...O()] }],
|
|
1175
|
-
"align-content": [{ content: ["normal", ...
|
|
1176
|
+
"align-content": [{ content: ["normal", ...D()] }],
|
|
1176
1177
|
"align-items": [{ items: [...O(), { baseline: ["", "last"] }] }],
|
|
1177
1178
|
"align-self": [{ self: [
|
|
1178
1179
|
"auto",
|
|
1179
1180
|
...O(),
|
|
1180
1181
|
{ baseline: ["", "last"] }
|
|
1181
1182
|
] }],
|
|
1182
|
-
"place-content": [{ "place-content":
|
|
1183
|
+
"place-content": [{ "place-content": D() }],
|
|
1183
1184
|
"place-items": [{ "place-items": [...O(), "baseline"] }],
|
|
1184
1185
|
"place-self": [{ "place-self": ["auto", ...O()] }],
|
|
1185
1186
|
p: [{ p: w() }],
|
|
@@ -1209,12 +1210,12 @@ var Me = (e, t) => {
|
|
|
1209
1210
|
"space-y": [{ "space-y": w() }],
|
|
1210
1211
|
"space-y-reverse": ["space-y-reverse"],
|
|
1211
1212
|
size: [{ size: A() }],
|
|
1212
|
-
"inline-size": [{ inline: ["auto", ...
|
|
1213
|
-
"min-inline-size": [{ "min-inline": ["auto", ...
|
|
1214
|
-
"max-inline-size": [{ "max-inline": ["none", ...
|
|
1215
|
-
"block-size": [{ block: ["auto", ...
|
|
1216
|
-
"min-block-size": [{ "min-block": ["auto", ...
|
|
1217
|
-
"max-block-size": [{ "max-block": ["none", ...
|
|
1213
|
+
"inline-size": [{ inline: ["auto", ...re()] }],
|
|
1214
|
+
"min-inline-size": [{ "min-inline": ["auto", ...re()] }],
|
|
1215
|
+
"max-inline-size": [{ "max-inline": ["none", ...re()] }],
|
|
1216
|
+
"block-size": [{ block: ["auto", ...ie()] }],
|
|
1217
|
+
"min-block-size": [{ "min-block": ["auto", ...ie()] }],
|
|
1218
|
+
"max-block-size": [{ "max-block": ["none", ...ie()] }],
|
|
1218
1219
|
w: [{ w: [
|
|
1219
1220
|
s,
|
|
1220
1221
|
"screen",
|
|
@@ -1253,15 +1254,15 @@ var Me = (e, t) => {
|
|
|
1253
1254
|
"font-size": [{ text: [
|
|
1254
1255
|
"base",
|
|
1255
1256
|
n,
|
|
1256
|
-
|
|
1257
|
-
|
|
1257
|
+
Ht,
|
|
1258
|
+
U
|
|
1258
1259
|
] }],
|
|
1259
1260
|
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
1260
1261
|
"font-style": ["italic", "not-italic"],
|
|
1261
1262
|
"font-weight": [{ font: [
|
|
1262
1263
|
r,
|
|
1263
|
-
|
|
1264
|
-
|
|
1264
|
+
Jt,
|
|
1265
|
+
Lt
|
|
1265
1266
|
] }],
|
|
1266
1267
|
"font-stretch": [{ "font-stretch": [
|
|
1267
1268
|
"ultra-condensed",
|
|
@@ -1273,15 +1274,15 @@ var Me = (e, t) => {
|
|
|
1273
1274
|
"expanded",
|
|
1274
1275
|
"extra-expanded",
|
|
1275
1276
|
"ultra-expanded",
|
|
1276
|
-
|
|
1277
|
-
|
|
1277
|
+
Dt,
|
|
1278
|
+
H
|
|
1278
1279
|
] }],
|
|
1279
1280
|
"font-family": [{ font: [
|
|
1280
|
-
|
|
1281
|
-
|
|
1281
|
+
Ut,
|
|
1282
|
+
Rt,
|
|
1282
1283
|
t
|
|
1283
1284
|
] }],
|
|
1284
|
-
"font-features": [{ "font-features": [
|
|
1285
|
+
"font-features": [{ "font-features": [H] }],
|
|
1285
1286
|
"fvn-normal": ["normal-nums"],
|
|
1286
1287
|
"fvn-ordinal": ["ordinal"],
|
|
1287
1288
|
"fvn-slashed-zero": ["slashed-zero"],
|
|
@@ -1290,28 +1291,28 @@ var Me = (e, t) => {
|
|
|
1290
1291
|
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
1291
1292
|
tracking: [{ tracking: [
|
|
1292
1293
|
i,
|
|
1293
|
-
|
|
1294
|
-
|
|
1294
|
+
W,
|
|
1295
|
+
H
|
|
1295
1296
|
] }],
|
|
1296
1297
|
"line-clamp": [{ "line-clamp": [
|
|
1297
|
-
|
|
1298
|
+
z,
|
|
1298
1299
|
"none",
|
|
1299
|
-
|
|
1300
|
-
|
|
1300
|
+
W,
|
|
1301
|
+
It
|
|
1301
1302
|
] }],
|
|
1302
1303
|
leading: [{ leading: [a, ...w()] }],
|
|
1303
1304
|
"list-image": [{ "list-image": [
|
|
1304
1305
|
"none",
|
|
1305
|
-
|
|
1306
|
-
|
|
1306
|
+
W,
|
|
1307
|
+
H
|
|
1307
1308
|
] }],
|
|
1308
1309
|
"list-style-position": [{ list: ["inside", "outside"] }],
|
|
1309
1310
|
"list-style-type": [{ list: [
|
|
1310
1311
|
"disc",
|
|
1311
1312
|
"decimal",
|
|
1312
1313
|
"none",
|
|
1313
|
-
|
|
1314
|
-
|
|
1314
|
+
W,
|
|
1315
|
+
H
|
|
1315
1316
|
] }],
|
|
1316
1317
|
"text-alignment": [{ text: [
|
|
1317
1318
|
"left",
|
|
@@ -1321,28 +1322,28 @@ var Me = (e, t) => {
|
|
|
1321
1322
|
"start",
|
|
1322
1323
|
"end"
|
|
1323
1324
|
] }],
|
|
1324
|
-
"placeholder-color": [{ placeholder:
|
|
1325
|
-
"text-color": [{ text:
|
|
1325
|
+
"placeholder-color": [{ placeholder: j() }],
|
|
1326
|
+
"text-color": [{ text: j() }],
|
|
1326
1327
|
"text-decoration": [
|
|
1327
1328
|
"underline",
|
|
1328
1329
|
"overline",
|
|
1329
1330
|
"line-through",
|
|
1330
1331
|
"no-underline"
|
|
1331
1332
|
],
|
|
1332
|
-
"text-decoration-style": [{ decoration: [...
|
|
1333
|
+
"text-decoration-style": [{ decoration: [...le(), "wavy"] }],
|
|
1333
1334
|
"text-decoration-thickness": [{ decoration: [
|
|
1334
|
-
|
|
1335
|
+
z,
|
|
1335
1336
|
"from-font",
|
|
1336
1337
|
"auto",
|
|
1337
|
-
|
|
1338
|
-
|
|
1338
|
+
W,
|
|
1339
|
+
U
|
|
1339
1340
|
] }],
|
|
1340
|
-
"text-decoration-color": [{ decoration:
|
|
1341
|
+
"text-decoration-color": [{ decoration: j() }],
|
|
1341
1342
|
"underline-offset": [{ "underline-offset": [
|
|
1342
|
-
|
|
1343
|
+
z,
|
|
1343
1344
|
"auto",
|
|
1344
|
-
|
|
1345
|
-
|
|
1345
|
+
W,
|
|
1346
|
+
H
|
|
1346
1347
|
] }],
|
|
1347
1348
|
"text-transform": [
|
|
1348
1349
|
"uppercase",
|
|
@@ -1363,9 +1364,9 @@ var Me = (e, t) => {
|
|
|
1363
1364
|
] }],
|
|
1364
1365
|
indent: [{ indent: w() }],
|
|
1365
1366
|
"tab-size": [{ tab: [
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1367
|
+
B,
|
|
1368
|
+
W,
|
|
1369
|
+
H
|
|
1369
1370
|
] }],
|
|
1370
1371
|
"vertical-align": [{ align: [
|
|
1371
1372
|
"baseline",
|
|
@@ -1376,8 +1377,8 @@ var Me = (e, t) => {
|
|
|
1376
1377
|
"text-bottom",
|
|
1377
1378
|
"sub",
|
|
1378
1379
|
"super",
|
|
1379
|
-
|
|
1380
|
-
|
|
1380
|
+
W,
|
|
1381
|
+
H
|
|
1381
1382
|
] }],
|
|
1382
1383
|
whitespace: [{ whitespace: [
|
|
1383
1384
|
"normal",
|
|
@@ -1405,8 +1406,8 @@ var Me = (e, t) => {
|
|
|
1405
1406
|
] }],
|
|
1406
1407
|
content: [{ content: [
|
|
1407
1408
|
"none",
|
|
1408
|
-
|
|
1409
|
-
|
|
1409
|
+
W,
|
|
1410
|
+
H
|
|
1410
1411
|
] }],
|
|
1411
1412
|
"bg-attachment": [{ bg: [
|
|
1412
1413
|
"fixed",
|
|
@@ -1424,9 +1425,9 @@ var Me = (e, t) => {
|
|
|
1424
1425
|
"padding",
|
|
1425
1426
|
"content"
|
|
1426
1427
|
] }],
|
|
1427
|
-
"bg-position": [{ bg:
|
|
1428
|
-
"bg-repeat": [{ bg:
|
|
1429
|
-
"bg-size": [{ bg:
|
|
1428
|
+
"bg-position": [{ bg: ae() }],
|
|
1429
|
+
"bg-repeat": [{ bg: oe() }],
|
|
1430
|
+
"bg-size": [{ bg: se() }],
|
|
1430
1431
|
"bg-image": [{ bg: [
|
|
1431
1432
|
"none",
|
|
1432
1433
|
{
|
|
@@ -1441,140 +1442,140 @@ var Me = (e, t) => {
|
|
|
1441
1442
|
"l",
|
|
1442
1443
|
"tl"
|
|
1443
1444
|
] },
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1445
|
+
B,
|
|
1446
|
+
W,
|
|
1447
|
+
H
|
|
1447
1448
|
],
|
|
1448
1449
|
radial: [
|
|
1449
1450
|
"",
|
|
1450
|
-
|
|
1451
|
-
|
|
1451
|
+
W,
|
|
1452
|
+
H
|
|
1452
1453
|
],
|
|
1453
1454
|
conic: [
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1455
|
+
B,
|
|
1456
|
+
W,
|
|
1457
|
+
H
|
|
1457
1458
|
]
|
|
1458
1459
|
},
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
] }],
|
|
1462
|
-
"bg-color": [{ bg:
|
|
1463
|
-
"gradient-from-pos": [{ from:
|
|
1464
|
-
"gradient-via-pos": [{ via:
|
|
1465
|
-
"gradient-to-pos": [{ to:
|
|
1466
|
-
"gradient-from": [{ from:
|
|
1467
|
-
"gradient-via": [{ via:
|
|
1468
|
-
"gradient-to": [{ to:
|
|
1469
|
-
rounded: [{ rounded:
|
|
1470
|
-
"rounded-s": [{ "rounded-s":
|
|
1471
|
-
"rounded-e": [{ "rounded-e":
|
|
1472
|
-
"rounded-t": [{ "rounded-t":
|
|
1473
|
-
"rounded-r": [{ "rounded-r":
|
|
1474
|
-
"rounded-b": [{ "rounded-b":
|
|
1475
|
-
"rounded-l": [{ "rounded-l":
|
|
1476
|
-
"rounded-ss": [{ "rounded-ss":
|
|
1477
|
-
"rounded-se": [{ "rounded-se":
|
|
1478
|
-
"rounded-ee": [{ "rounded-ee":
|
|
1479
|
-
"rounded-es": [{ "rounded-es":
|
|
1480
|
-
"rounded-tl": [{ "rounded-tl":
|
|
1481
|
-
"rounded-tr": [{ "rounded-tr":
|
|
1482
|
-
"rounded-br": [{ "rounded-br":
|
|
1483
|
-
"rounded-bl": [{ "rounded-bl":
|
|
1484
|
-
"border-w": [{ border:
|
|
1485
|
-
"border-w-x": [{ "border-x":
|
|
1486
|
-
"border-w-y": [{ "border-y":
|
|
1487
|
-
"border-w-s": [{ "border-s":
|
|
1488
|
-
"border-w-e": [{ "border-e":
|
|
1489
|
-
"border-w-bs": [{ "border-bs":
|
|
1490
|
-
"border-w-be": [{ "border-be":
|
|
1491
|
-
"border-w-t": [{ "border-t":
|
|
1492
|
-
"border-w-r": [{ "border-r":
|
|
1493
|
-
"border-w-b": [{ "border-b":
|
|
1494
|
-
"border-w-l": [{ "border-l":
|
|
1495
|
-
"divide-x": [{ "divide-x":
|
|
1460
|
+
Kt,
|
|
1461
|
+
Bt
|
|
1462
|
+
] }],
|
|
1463
|
+
"bg-color": [{ bg: j() }],
|
|
1464
|
+
"gradient-from-pos": [{ from: ce() }],
|
|
1465
|
+
"gradient-via-pos": [{ via: ce() }],
|
|
1466
|
+
"gradient-to-pos": [{ to: ce() }],
|
|
1467
|
+
"gradient-from": [{ from: j() }],
|
|
1468
|
+
"gradient-via": [{ via: j() }],
|
|
1469
|
+
"gradient-to": [{ to: j() }],
|
|
1470
|
+
rounded: [{ rounded: M() }],
|
|
1471
|
+
"rounded-s": [{ "rounded-s": M() }],
|
|
1472
|
+
"rounded-e": [{ "rounded-e": M() }],
|
|
1473
|
+
"rounded-t": [{ "rounded-t": M() }],
|
|
1474
|
+
"rounded-r": [{ "rounded-r": M() }],
|
|
1475
|
+
"rounded-b": [{ "rounded-b": M() }],
|
|
1476
|
+
"rounded-l": [{ "rounded-l": M() }],
|
|
1477
|
+
"rounded-ss": [{ "rounded-ss": M() }],
|
|
1478
|
+
"rounded-se": [{ "rounded-se": M() }],
|
|
1479
|
+
"rounded-ee": [{ "rounded-ee": M() }],
|
|
1480
|
+
"rounded-es": [{ "rounded-es": M() }],
|
|
1481
|
+
"rounded-tl": [{ "rounded-tl": M() }],
|
|
1482
|
+
"rounded-tr": [{ "rounded-tr": M() }],
|
|
1483
|
+
"rounded-br": [{ "rounded-br": M() }],
|
|
1484
|
+
"rounded-bl": [{ "rounded-bl": M() }],
|
|
1485
|
+
"border-w": [{ border: N() }],
|
|
1486
|
+
"border-w-x": [{ "border-x": N() }],
|
|
1487
|
+
"border-w-y": [{ "border-y": N() }],
|
|
1488
|
+
"border-w-s": [{ "border-s": N() }],
|
|
1489
|
+
"border-w-e": [{ "border-e": N() }],
|
|
1490
|
+
"border-w-bs": [{ "border-bs": N() }],
|
|
1491
|
+
"border-w-be": [{ "border-be": N() }],
|
|
1492
|
+
"border-w-t": [{ "border-t": N() }],
|
|
1493
|
+
"border-w-r": [{ "border-r": N() }],
|
|
1494
|
+
"border-w-b": [{ "border-b": N() }],
|
|
1495
|
+
"border-w-l": [{ "border-l": N() }],
|
|
1496
|
+
"divide-x": [{ "divide-x": N() }],
|
|
1496
1497
|
"divide-x-reverse": ["divide-x-reverse"],
|
|
1497
|
-
"divide-y": [{ "divide-y":
|
|
1498
|
+
"divide-y": [{ "divide-y": N() }],
|
|
1498
1499
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
1499
1500
|
"border-style": [{ border: [
|
|
1500
|
-
...
|
|
1501
|
+
...le(),
|
|
1501
1502
|
"hidden",
|
|
1502
1503
|
"none"
|
|
1503
1504
|
] }],
|
|
1504
1505
|
"divide-style": [{ divide: [
|
|
1505
|
-
...
|
|
1506
|
+
...le(),
|
|
1506
1507
|
"hidden",
|
|
1507
1508
|
"none"
|
|
1508
1509
|
] }],
|
|
1509
|
-
"border-color": [{ border:
|
|
1510
|
-
"border-color-x": [{ "border-x":
|
|
1511
|
-
"border-color-y": [{ "border-y":
|
|
1512
|
-
"border-color-s": [{ "border-s":
|
|
1513
|
-
"border-color-e": [{ "border-e":
|
|
1514
|
-
"border-color-bs": [{ "border-bs":
|
|
1515
|
-
"border-color-be": [{ "border-be":
|
|
1516
|
-
"border-color-t": [{ "border-t":
|
|
1517
|
-
"border-color-r": [{ "border-r":
|
|
1518
|
-
"border-color-b": [{ "border-b":
|
|
1519
|
-
"border-color-l": [{ "border-l":
|
|
1520
|
-
"divide-color": [{ divide:
|
|
1510
|
+
"border-color": [{ border: j() }],
|
|
1511
|
+
"border-color-x": [{ "border-x": j() }],
|
|
1512
|
+
"border-color-y": [{ "border-y": j() }],
|
|
1513
|
+
"border-color-s": [{ "border-s": j() }],
|
|
1514
|
+
"border-color-e": [{ "border-e": j() }],
|
|
1515
|
+
"border-color-bs": [{ "border-bs": j() }],
|
|
1516
|
+
"border-color-be": [{ "border-be": j() }],
|
|
1517
|
+
"border-color-t": [{ "border-t": j() }],
|
|
1518
|
+
"border-color-r": [{ "border-r": j() }],
|
|
1519
|
+
"border-color-b": [{ "border-b": j() }],
|
|
1520
|
+
"border-color-l": [{ "border-l": j() }],
|
|
1521
|
+
"divide-color": [{ divide: j() }],
|
|
1521
1522
|
"outline-style": [{ outline: [
|
|
1522
|
-
...
|
|
1523
|
+
...le(),
|
|
1523
1524
|
"none",
|
|
1524
1525
|
"hidden"
|
|
1525
1526
|
] }],
|
|
1526
1527
|
"outline-offset": [{ "outline-offset": [
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1528
|
+
z,
|
|
1529
|
+
W,
|
|
1530
|
+
H
|
|
1530
1531
|
] }],
|
|
1531
1532
|
"outline-w": [{ outline: [
|
|
1532
1533
|
"",
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1534
|
+
z,
|
|
1535
|
+
Ht,
|
|
1536
|
+
U
|
|
1536
1537
|
] }],
|
|
1537
|
-
"outline-color": [{ outline:
|
|
1538
|
+
"outline-color": [{ outline: j() }],
|
|
1538
1539
|
shadow: [{ shadow: [
|
|
1539
1540
|
"",
|
|
1540
1541
|
"none",
|
|
1541
1542
|
u,
|
|
1542
|
-
|
|
1543
|
-
|
|
1543
|
+
qt,
|
|
1544
|
+
Vt
|
|
1544
1545
|
] }],
|
|
1545
|
-
"shadow-color": [{ shadow:
|
|
1546
|
+
"shadow-color": [{ shadow: j() }],
|
|
1546
1547
|
"inset-shadow": [{ "inset-shadow": [
|
|
1547
1548
|
"none",
|
|
1548
1549
|
d,
|
|
1549
|
-
|
|
1550
|
-
|
|
1550
|
+
qt,
|
|
1551
|
+
Vt
|
|
1551
1552
|
] }],
|
|
1552
|
-
"inset-shadow-color": [{ "inset-shadow":
|
|
1553
|
-
"ring-w": [{ ring:
|
|
1553
|
+
"inset-shadow-color": [{ "inset-shadow": j() }],
|
|
1554
|
+
"ring-w": [{ ring: N() }],
|
|
1554
1555
|
"ring-w-inset": ["ring-inset"],
|
|
1555
|
-
"ring-color": [{ ring:
|
|
1556
|
-
"ring-offset-w": [{ "ring-offset": [
|
|
1557
|
-
"ring-offset-color": [{ "ring-offset":
|
|
1558
|
-
"inset-ring-w": [{ "inset-ring":
|
|
1559
|
-
"inset-ring-color": [{ "inset-ring":
|
|
1556
|
+
"ring-color": [{ ring: j() }],
|
|
1557
|
+
"ring-offset-w": [{ "ring-offset": [z, U] }],
|
|
1558
|
+
"ring-offset-color": [{ "ring-offset": j() }],
|
|
1559
|
+
"inset-ring-w": [{ "inset-ring": N() }],
|
|
1560
|
+
"inset-ring-color": [{ "inset-ring": j() }],
|
|
1560
1561
|
"text-shadow": [{ "text-shadow": [
|
|
1561
1562
|
"none",
|
|
1562
1563
|
f,
|
|
1563
|
-
|
|
1564
|
-
|
|
1564
|
+
qt,
|
|
1565
|
+
Vt
|
|
1565
1566
|
] }],
|
|
1566
|
-
"text-shadow-color": [{ "text-shadow":
|
|
1567
|
+
"text-shadow-color": [{ "text-shadow": j() }],
|
|
1567
1568
|
opacity: [{ opacity: [
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1569
|
+
z,
|
|
1570
|
+
W,
|
|
1571
|
+
H
|
|
1571
1572
|
] }],
|
|
1572
1573
|
"mix-blend": [{ "mix-blend": [
|
|
1573
|
-
...
|
|
1574
|
+
...ue(),
|
|
1574
1575
|
"plus-darker",
|
|
1575
1576
|
"plus-lighter"
|
|
1576
1577
|
] }],
|
|
1577
|
-
"bg-blend": [{ "bg-blend":
|
|
1578
|
+
"bg-blend": [{ "bg-blend": ue() }],
|
|
1578
1579
|
"mask-clip": [{ "mask-clip": [
|
|
1579
1580
|
"border",
|
|
1580
1581
|
"padding",
|
|
@@ -1589,51 +1590,51 @@ var Me = (e, t) => {
|
|
|
1589
1590
|
"intersect",
|
|
1590
1591
|
"exclude"
|
|
1591
1592
|
] }],
|
|
1592
|
-
"mask-image-linear-pos": [{ "mask-linear": [
|
|
1593
|
-
"mask-image-linear-from-pos": [{ "mask-linear-from":
|
|
1594
|
-
"mask-image-linear-to-pos": [{ "mask-linear-to":
|
|
1595
|
-
"mask-image-linear-from-color": [{ "mask-linear-from":
|
|
1596
|
-
"mask-image-linear-to-color": [{ "mask-linear-to":
|
|
1597
|
-
"mask-image-t-from-pos": [{ "mask-t-from":
|
|
1598
|
-
"mask-image-t-to-pos": [{ "mask-t-to":
|
|
1599
|
-
"mask-image-t-from-color": [{ "mask-t-from":
|
|
1600
|
-
"mask-image-t-to-color": [{ "mask-t-to":
|
|
1601
|
-
"mask-image-r-from-pos": [{ "mask-r-from":
|
|
1602
|
-
"mask-image-r-to-pos": [{ "mask-r-to":
|
|
1603
|
-
"mask-image-r-from-color": [{ "mask-r-from":
|
|
1604
|
-
"mask-image-r-to-color": [{ "mask-r-to":
|
|
1605
|
-
"mask-image-b-from-pos": [{ "mask-b-from":
|
|
1606
|
-
"mask-image-b-to-pos": [{ "mask-b-to":
|
|
1607
|
-
"mask-image-b-from-color": [{ "mask-b-from":
|
|
1608
|
-
"mask-image-b-to-color": [{ "mask-b-to":
|
|
1609
|
-
"mask-image-l-from-pos": [{ "mask-l-from":
|
|
1610
|
-
"mask-image-l-to-pos": [{ "mask-l-to":
|
|
1611
|
-
"mask-image-l-from-color": [{ "mask-l-from":
|
|
1612
|
-
"mask-image-l-to-color": [{ "mask-l-to":
|
|
1613
|
-
"mask-image-x-from-pos": [{ "mask-x-from":
|
|
1614
|
-
"mask-image-x-to-pos": [{ "mask-x-to":
|
|
1615
|
-
"mask-image-x-from-color": [{ "mask-x-from":
|
|
1616
|
-
"mask-image-x-to-color": [{ "mask-x-to":
|
|
1617
|
-
"mask-image-y-from-pos": [{ "mask-y-from":
|
|
1618
|
-
"mask-image-y-to-pos": [{ "mask-y-to":
|
|
1619
|
-
"mask-image-y-from-color": [{ "mask-y-from":
|
|
1620
|
-
"mask-image-y-to-color": [{ "mask-y-to":
|
|
1621
|
-
"mask-image-radial": [{ "mask-radial": [
|
|
1622
|
-
"mask-image-radial-from-pos": [{ "mask-radial-from":
|
|
1623
|
-
"mask-image-radial-to-pos": [{ "mask-radial-to":
|
|
1624
|
-
"mask-image-radial-from-color": [{ "mask-radial-from":
|
|
1625
|
-
"mask-image-radial-to-color": [{ "mask-radial-to":
|
|
1593
|
+
"mask-image-linear-pos": [{ "mask-linear": [z] }],
|
|
1594
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": P() }],
|
|
1595
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": P() }],
|
|
1596
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": j() }],
|
|
1597
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": j() }],
|
|
1598
|
+
"mask-image-t-from-pos": [{ "mask-t-from": P() }],
|
|
1599
|
+
"mask-image-t-to-pos": [{ "mask-t-to": P() }],
|
|
1600
|
+
"mask-image-t-from-color": [{ "mask-t-from": j() }],
|
|
1601
|
+
"mask-image-t-to-color": [{ "mask-t-to": j() }],
|
|
1602
|
+
"mask-image-r-from-pos": [{ "mask-r-from": P() }],
|
|
1603
|
+
"mask-image-r-to-pos": [{ "mask-r-to": P() }],
|
|
1604
|
+
"mask-image-r-from-color": [{ "mask-r-from": j() }],
|
|
1605
|
+
"mask-image-r-to-color": [{ "mask-r-to": j() }],
|
|
1606
|
+
"mask-image-b-from-pos": [{ "mask-b-from": P() }],
|
|
1607
|
+
"mask-image-b-to-pos": [{ "mask-b-to": P() }],
|
|
1608
|
+
"mask-image-b-from-color": [{ "mask-b-from": j() }],
|
|
1609
|
+
"mask-image-b-to-color": [{ "mask-b-to": j() }],
|
|
1610
|
+
"mask-image-l-from-pos": [{ "mask-l-from": P() }],
|
|
1611
|
+
"mask-image-l-to-pos": [{ "mask-l-to": P() }],
|
|
1612
|
+
"mask-image-l-from-color": [{ "mask-l-from": j() }],
|
|
1613
|
+
"mask-image-l-to-color": [{ "mask-l-to": j() }],
|
|
1614
|
+
"mask-image-x-from-pos": [{ "mask-x-from": P() }],
|
|
1615
|
+
"mask-image-x-to-pos": [{ "mask-x-to": P() }],
|
|
1616
|
+
"mask-image-x-from-color": [{ "mask-x-from": j() }],
|
|
1617
|
+
"mask-image-x-to-color": [{ "mask-x-to": j() }],
|
|
1618
|
+
"mask-image-y-from-pos": [{ "mask-y-from": P() }],
|
|
1619
|
+
"mask-image-y-to-pos": [{ "mask-y-to": P() }],
|
|
1620
|
+
"mask-image-y-from-color": [{ "mask-y-from": j() }],
|
|
1621
|
+
"mask-image-y-to-color": [{ "mask-y-to": j() }],
|
|
1622
|
+
"mask-image-radial": [{ "mask-radial": [W, H] }],
|
|
1623
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": P() }],
|
|
1624
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": P() }],
|
|
1625
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": j() }],
|
|
1626
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": j() }],
|
|
1626
1627
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
1627
1628
|
"mask-image-radial-size": [{ "mask-radial": [{
|
|
1628
1629
|
closest: ["side", "corner"],
|
|
1629
1630
|
farthest: ["side", "corner"]
|
|
1630
1631
|
}] }],
|
|
1631
1632
|
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
|
|
1632
|
-
"mask-image-conic-pos": [{ "mask-conic": [
|
|
1633
|
-
"mask-image-conic-from-pos": [{ "mask-conic-from":
|
|
1634
|
-
"mask-image-conic-to-pos": [{ "mask-conic-to":
|
|
1635
|
-
"mask-image-conic-from-color": [{ "mask-conic-from":
|
|
1636
|
-
"mask-image-conic-to-color": [{ "mask-conic-to":
|
|
1633
|
+
"mask-image-conic-pos": [{ "mask-conic": [z] }],
|
|
1634
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": P() }],
|
|
1635
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": P() }],
|
|
1636
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": j() }],
|
|
1637
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": j() }],
|
|
1637
1638
|
"mask-mode": [{ mask: [
|
|
1638
1639
|
"alpha",
|
|
1639
1640
|
"luminance",
|
|
@@ -1647,117 +1648,117 @@ var Me = (e, t) => {
|
|
|
1647
1648
|
"stroke",
|
|
1648
1649
|
"view"
|
|
1649
1650
|
] }],
|
|
1650
|
-
"mask-position": [{ mask:
|
|
1651
|
-
"mask-repeat": [{ mask:
|
|
1652
|
-
"mask-size": [{ mask:
|
|
1651
|
+
"mask-position": [{ mask: ae() }],
|
|
1652
|
+
"mask-repeat": [{ mask: oe() }],
|
|
1653
|
+
"mask-size": [{ mask: se() }],
|
|
1653
1654
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
1654
1655
|
"mask-image": [{ mask: [
|
|
1655
1656
|
"none",
|
|
1656
|
-
|
|
1657
|
-
|
|
1657
|
+
W,
|
|
1658
|
+
H
|
|
1658
1659
|
] }],
|
|
1659
1660
|
filter: [{ filter: [
|
|
1660
1661
|
"",
|
|
1661
1662
|
"none",
|
|
1662
|
-
|
|
1663
|
-
|
|
1663
|
+
W,
|
|
1664
|
+
H
|
|
1664
1665
|
] }],
|
|
1665
|
-
blur: [{ blur:
|
|
1666
|
+
blur: [{ blur: de() }],
|
|
1666
1667
|
brightness: [{ brightness: [
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1668
|
+
z,
|
|
1669
|
+
W,
|
|
1670
|
+
H
|
|
1670
1671
|
] }],
|
|
1671
1672
|
contrast: [{ contrast: [
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1673
|
+
z,
|
|
1674
|
+
W,
|
|
1675
|
+
H
|
|
1675
1676
|
] }],
|
|
1676
1677
|
"drop-shadow": [{ "drop-shadow": [
|
|
1677
1678
|
"",
|
|
1678
1679
|
"none",
|
|
1679
1680
|
p,
|
|
1680
|
-
|
|
1681
|
-
|
|
1681
|
+
qt,
|
|
1682
|
+
Vt
|
|
1682
1683
|
] }],
|
|
1683
|
-
"drop-shadow-color": [{ "drop-shadow":
|
|
1684
|
+
"drop-shadow-color": [{ "drop-shadow": j() }],
|
|
1684
1685
|
grayscale: [{ grayscale: [
|
|
1685
1686
|
"",
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1687
|
+
z,
|
|
1688
|
+
W,
|
|
1689
|
+
H
|
|
1689
1690
|
] }],
|
|
1690
1691
|
"hue-rotate": [{ "hue-rotate": [
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1692
|
+
z,
|
|
1693
|
+
W,
|
|
1694
|
+
H
|
|
1694
1695
|
] }],
|
|
1695
1696
|
invert: [{ invert: [
|
|
1696
1697
|
"",
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1698
|
+
z,
|
|
1699
|
+
W,
|
|
1700
|
+
H
|
|
1700
1701
|
] }],
|
|
1701
1702
|
saturate: [{ saturate: [
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1703
|
+
z,
|
|
1704
|
+
W,
|
|
1705
|
+
H
|
|
1705
1706
|
] }],
|
|
1706
1707
|
sepia: [{ sepia: [
|
|
1707
1708
|
"",
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1709
|
+
z,
|
|
1710
|
+
W,
|
|
1711
|
+
H
|
|
1711
1712
|
] }],
|
|
1712
1713
|
"backdrop-filter": [{ "backdrop-filter": [
|
|
1713
1714
|
"",
|
|
1714
1715
|
"none",
|
|
1715
|
-
|
|
1716
|
-
|
|
1716
|
+
W,
|
|
1717
|
+
H
|
|
1717
1718
|
] }],
|
|
1718
|
-
"backdrop-blur": [{ "backdrop-blur":
|
|
1719
|
+
"backdrop-blur": [{ "backdrop-blur": de() }],
|
|
1719
1720
|
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1721
|
+
z,
|
|
1722
|
+
W,
|
|
1723
|
+
H
|
|
1723
1724
|
] }],
|
|
1724
1725
|
"backdrop-contrast": [{ "backdrop-contrast": [
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1726
|
+
z,
|
|
1727
|
+
W,
|
|
1728
|
+
H
|
|
1728
1729
|
] }],
|
|
1729
1730
|
"backdrop-grayscale": [{ "backdrop-grayscale": [
|
|
1730
1731
|
"",
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1732
|
+
z,
|
|
1733
|
+
W,
|
|
1734
|
+
H
|
|
1734
1735
|
] }],
|
|
1735
1736
|
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1737
|
+
z,
|
|
1738
|
+
W,
|
|
1739
|
+
H
|
|
1739
1740
|
] }],
|
|
1740
1741
|
"backdrop-invert": [{ "backdrop-invert": [
|
|
1741
1742
|
"",
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1743
|
+
z,
|
|
1744
|
+
W,
|
|
1745
|
+
H
|
|
1745
1746
|
] }],
|
|
1746
1747
|
"backdrop-opacity": [{ "backdrop-opacity": [
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1748
|
+
z,
|
|
1749
|
+
W,
|
|
1750
|
+
H
|
|
1750
1751
|
] }],
|
|
1751
1752
|
"backdrop-saturate": [{ "backdrop-saturate": [
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1753
|
+
z,
|
|
1754
|
+
W,
|
|
1755
|
+
H
|
|
1755
1756
|
] }],
|
|
1756
1757
|
"backdrop-sepia": [{ "backdrop-sepia": [
|
|
1757
1758
|
"",
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1759
|
+
z,
|
|
1760
|
+
W,
|
|
1761
|
+
H
|
|
1761
1762
|
] }],
|
|
1762
1763
|
"border-collapse": [{ border: ["collapse", "separate"] }],
|
|
1763
1764
|
"border-spacing": [{ "border-spacing": w() }],
|
|
@@ -1773,56 +1774,56 @@ var Me = (e, t) => {
|
|
|
1773
1774
|
"shadow",
|
|
1774
1775
|
"transform",
|
|
1775
1776
|
"none",
|
|
1776
|
-
|
|
1777
|
-
|
|
1777
|
+
W,
|
|
1778
|
+
H
|
|
1778
1779
|
] }],
|
|
1779
1780
|
"transition-behavior": [{ transition: ["normal", "discrete"] }],
|
|
1780
1781
|
duration: [{ duration: [
|
|
1781
|
-
|
|
1782
|
+
z,
|
|
1782
1783
|
"initial",
|
|
1783
|
-
|
|
1784
|
-
|
|
1784
|
+
W,
|
|
1785
|
+
H
|
|
1785
1786
|
] }],
|
|
1786
1787
|
ease: [{ ease: [
|
|
1787
1788
|
"linear",
|
|
1788
1789
|
"initial",
|
|
1789
1790
|
_,
|
|
1790
|
-
|
|
1791
|
-
|
|
1791
|
+
W,
|
|
1792
|
+
H
|
|
1792
1793
|
] }],
|
|
1793
1794
|
delay: [{ delay: [
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1795
|
+
z,
|
|
1796
|
+
W,
|
|
1797
|
+
H
|
|
1797
1798
|
] }],
|
|
1798
1799
|
animate: [{ animate: [
|
|
1799
1800
|
"none",
|
|
1800
1801
|
v,
|
|
1801
|
-
|
|
1802
|
-
|
|
1802
|
+
W,
|
|
1803
|
+
H
|
|
1803
1804
|
] }],
|
|
1804
1805
|
backface: [{ backface: ["hidden", "visible"] }],
|
|
1805
1806
|
perspective: [{ perspective: [
|
|
1806
1807
|
h,
|
|
1807
|
-
|
|
1808
|
-
|
|
1808
|
+
W,
|
|
1809
|
+
H
|
|
1809
1810
|
] }],
|
|
1810
1811
|
"perspective-origin": [{ "perspective-origin": x() }],
|
|
1811
|
-
rotate: [{ rotate:
|
|
1812
|
-
"rotate-x": [{ "rotate-x":
|
|
1813
|
-
"rotate-y": [{ "rotate-y":
|
|
1814
|
-
"rotate-z": [{ "rotate-z":
|
|
1815
|
-
scale: [{ scale:
|
|
1816
|
-
"scale-x": [{ "scale-x":
|
|
1817
|
-
"scale-y": [{ "scale-y":
|
|
1818
|
-
"scale-z": [{ "scale-z":
|
|
1812
|
+
rotate: [{ rotate: fe() }],
|
|
1813
|
+
"rotate-x": [{ "rotate-x": fe() }],
|
|
1814
|
+
"rotate-y": [{ "rotate-y": fe() }],
|
|
1815
|
+
"rotate-z": [{ "rotate-z": fe() }],
|
|
1816
|
+
scale: [{ scale: pe() }],
|
|
1817
|
+
"scale-x": [{ "scale-x": pe() }],
|
|
1818
|
+
"scale-y": [{ "scale-y": pe() }],
|
|
1819
|
+
"scale-z": [{ "scale-z": pe() }],
|
|
1819
1820
|
"scale-3d": ["scale-3d"],
|
|
1820
|
-
skew: [{ skew:
|
|
1821
|
-
"skew-x": [{ "skew-x":
|
|
1822
|
-
"skew-y": [{ "skew-y":
|
|
1821
|
+
skew: [{ skew: me() }],
|
|
1822
|
+
"skew-x": [{ "skew-x": me() }],
|
|
1823
|
+
"skew-y": [{ "skew-y": me() }],
|
|
1823
1824
|
transform: [{ transform: [
|
|
1824
|
-
|
|
1825
|
-
|
|
1825
|
+
W,
|
|
1826
|
+
H,
|
|
1826
1827
|
"",
|
|
1827
1828
|
"none",
|
|
1828
1829
|
"gpu",
|
|
@@ -1830,19 +1831,19 @@ var Me = (e, t) => {
|
|
|
1830
1831
|
] }],
|
|
1831
1832
|
"transform-origin": [{ origin: x() }],
|
|
1832
1833
|
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
1833
|
-
translate: [{ translate:
|
|
1834
|
-
"translate-x": [{ "translate-x":
|
|
1835
|
-
"translate-y": [{ "translate-y":
|
|
1836
|
-
"translate-z": [{ "translate-z":
|
|
1834
|
+
translate: [{ translate: he() }],
|
|
1835
|
+
"translate-x": [{ "translate-x": he() }],
|
|
1836
|
+
"translate-y": [{ "translate-y": he() }],
|
|
1837
|
+
"translate-z": [{ "translate-z": he() }],
|
|
1837
1838
|
"translate-none": ["translate-none"],
|
|
1838
1839
|
zoom: [{ zoom: [
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1840
|
+
B,
|
|
1841
|
+
W,
|
|
1842
|
+
H
|
|
1842
1843
|
] }],
|
|
1843
|
-
accent: [{ accent:
|
|
1844
|
+
accent: [{ accent: j() }],
|
|
1844
1845
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
1845
|
-
"caret-color": [{ caret:
|
|
1846
|
+
"caret-color": [{ caret: j() }],
|
|
1846
1847
|
"color-scheme": [{ scheme: [
|
|
1847
1848
|
"normal",
|
|
1848
1849
|
"dark",
|
|
@@ -1888,8 +1889,8 @@ var Me = (e, t) => {
|
|
|
1888
1889
|
"nwse-resize",
|
|
1889
1890
|
"zoom-in",
|
|
1890
1891
|
"zoom-out",
|
|
1891
|
-
|
|
1892
|
-
|
|
1892
|
+
W,
|
|
1893
|
+
H
|
|
1893
1894
|
] }],
|
|
1894
1895
|
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
|
|
1895
1896
|
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
|
|
@@ -1900,8 +1901,8 @@ var Me = (e, t) => {
|
|
|
1900
1901
|
"x"
|
|
1901
1902
|
] }],
|
|
1902
1903
|
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
|
|
1903
|
-
"scrollbar-thumb-color": [{ "scrollbar-thumb":
|
|
1904
|
-
"scrollbar-track-color": [{ "scrollbar-track":
|
|
1904
|
+
"scrollbar-thumb-color": [{ "scrollbar-thumb": j() }],
|
|
1905
|
+
"scrollbar-track-color": [{ "scrollbar-track": j() }],
|
|
1905
1906
|
"scrollbar-gutter": [{ "scrollbar-gutter": [
|
|
1906
1907
|
"auto",
|
|
1907
1908
|
"stable",
|
|
@@ -1975,17 +1976,17 @@ var Me = (e, t) => {
|
|
|
1975
1976
|
"scroll",
|
|
1976
1977
|
"contents",
|
|
1977
1978
|
"transform",
|
|
1978
|
-
|
|
1979
|
-
|
|
1979
|
+
W,
|
|
1980
|
+
H
|
|
1980
1981
|
] }],
|
|
1981
|
-
fill: [{ fill: ["none", ...
|
|
1982
|
+
fill: [{ fill: ["none", ...j()] }],
|
|
1982
1983
|
"stroke-w": [{ stroke: [
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1984
|
+
z,
|
|
1985
|
+
Ht,
|
|
1986
|
+
U,
|
|
1987
|
+
It
|
|
1987
1988
|
] }],
|
|
1988
|
-
stroke: [{ stroke: ["none", ...
|
|
1989
|
+
stroke: [{ stroke: ["none", ...j()] }],
|
|
1989
1990
|
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
1990
1991
|
},
|
|
1991
1992
|
conflictingClassGroups: {
|
|
@@ -2174,41 +2175,41 @@ var Me = (e, t) => {
|
|
|
2174
2175
|
});
|
|
2175
2176
|
//#endregion
|
|
2176
2177
|
//#region src/lib/utils.ts
|
|
2177
|
-
function
|
|
2178
|
-
return
|
|
2178
|
+
function an(...e) {
|
|
2179
|
+
return rn(ze(e));
|
|
2179
2180
|
}
|
|
2180
2181
|
//#endregion
|
|
2181
2182
|
//#region src/components/table/data-table.tsx
|
|
2182
|
-
function
|
|
2183
|
-
let [o, s] = r, c =
|
|
2183
|
+
function on({ columns: e, data: t, getRowId: n, selectionState: r, onClick: i, components: a }) {
|
|
2184
|
+
let [o, s] = r, c = g({
|
|
2184
2185
|
data: t,
|
|
2185
2186
|
columns: e,
|
|
2186
2187
|
state: { rowSelection: o },
|
|
2187
2188
|
getRowId: n,
|
|
2188
2189
|
enableRowSelection: !0,
|
|
2189
2190
|
onRowSelectionChange: s,
|
|
2190
|
-
getCoreRowModel:
|
|
2191
|
-
}), { t:
|
|
2192
|
-
return /* @__PURE__ */
|
|
2193
|
-
className:
|
|
2194
|
-
children: e.isPlaceholder ? null :
|
|
2195
|
-
}, e.id)) }, e.id)) }), /* @__PURE__ */
|
|
2191
|
+
getCoreRowModel: m()
|
|
2192
|
+
}), { t: l } = f(), h = a?.Table ?? ve, _ = a?.TableHeader ?? ye, v = a?.TableBody ?? be, y = a?.TableRow ?? xe, b = a?.TableHead ?? Se, x = a?.TableCell ?? Ce;
|
|
2193
|
+
return /* @__PURE__ */ d(h, { children: [/* @__PURE__ */ u(_, { children: c.getHeaderGroups().map((e) => /* @__PURE__ */ u(y, { children: e.headers.map((e) => /* @__PURE__ */ u(b, {
|
|
2194
|
+
className: an(e.column.columnDef.meta?.className),
|
|
2195
|
+
children: e.isPlaceholder ? null : p(e.column.columnDef.header, e.getContext())
|
|
2196
|
+
}, e.id)) }, e.id)) }), /* @__PURE__ */ u(v, { children: c.getRowModel().rows?.length ? c.getRowModel().rows.map((e) => /* @__PURE__ */ u(y, {
|
|
2196
2197
|
"data-state": e.getIsSelected() && "selected",
|
|
2197
2198
|
onClick: () => i(e.original),
|
|
2198
|
-
children: e.getVisibleCells().map((e) => /* @__PURE__ */
|
|
2199
|
-
className:
|
|
2200
|
-
children:
|
|
2199
|
+
children: e.getVisibleCells().map((e) => /* @__PURE__ */ u(x, {
|
|
2200
|
+
className: an(e.column.columnDef.meta?.className),
|
|
2201
|
+
children: p(e.column.columnDef.cell, e.getContext())
|
|
2201
2202
|
}, e.id))
|
|
2202
|
-
}, e.id)) : /* @__PURE__ */
|
|
2203
|
+
}, e.id)) : /* @__PURE__ */ u(y, { children: /* @__PURE__ */ u(x, {
|
|
2203
2204
|
colSpan: e.length,
|
|
2204
2205
|
className: "h-24 text-center",
|
|
2205
|
-
children:
|
|
2206
|
+
children: l("libs:no_results")
|
|
2206
2207
|
}) }) })] });
|
|
2207
2208
|
}
|
|
2208
2209
|
//#endregion
|
|
2209
2210
|
//#region src/components/table/data-table-grouped.tsx
|
|
2210
|
-
function
|
|
2211
|
-
let [s, c] = r,
|
|
2211
|
+
function sn({ columns: e, data: t, getRowId: n, selectionState: r, onClick: i, components: a, indentSize: o = 24 }) {
|
|
2212
|
+
let [s, c] = r, l = g({
|
|
2212
2213
|
data: t,
|
|
2213
2214
|
columns: e,
|
|
2214
2215
|
state: {
|
|
@@ -2219,30 +2220,30 @@ function Qt({ columns: e, data: t, getRowId: n, selectionState: r, onClick: i, c
|
|
|
2219
2220
|
enableRowSelection: !0,
|
|
2220
2221
|
onRowSelectionChange: c,
|
|
2221
2222
|
getSubRows: (e) => e.subRows,
|
|
2222
|
-
getCoreRowModel:
|
|
2223
|
-
getExpandedRowModel:
|
|
2224
|
-
}), { t: _ } =
|
|
2225
|
-
return /* @__PURE__ */
|
|
2223
|
+
getCoreRowModel: m(),
|
|
2224
|
+
getExpandedRowModel: h()
|
|
2225
|
+
}), { t: _ } = f(), v = a?.Table ?? ve, y = a?.TableHeader ?? ye, b = a?.TableBody ?? be, x = a?.TableRow ?? xe, S = a?.TableHead ?? Se, C = a?.TableCell ?? Ce;
|
|
2226
|
+
return /* @__PURE__ */ d(v, {
|
|
2226
2227
|
style: { width: "100%" },
|
|
2227
|
-
children: [/* @__PURE__ */
|
|
2228
|
-
className:
|
|
2229
|
-
children: e.isPlaceholder ? null :
|
|
2230
|
-
}, e.id)) }, e.id)) }), /* @__PURE__ */
|
|
2228
|
+
children: [/* @__PURE__ */ u(y, { children: l.getHeaderGroups().map((e) => /* @__PURE__ */ u(x, { children: e.headers.map((e) => /* @__PURE__ */ u(S, {
|
|
2229
|
+
className: an(e.column.columnDef.meta?.className),
|
|
2230
|
+
children: e.isPlaceholder ? null : p(e.column.columnDef.header, e.getContext())
|
|
2231
|
+
}, e.id)) }, e.id)) }), /* @__PURE__ */ u(b, { children: l.getRowModel().rows?.length ? l.getRowModel().rows.map((e) => /* @__PURE__ */ u(x, {
|
|
2231
2232
|
id: e.id,
|
|
2232
2233
|
"data-state": e.getIsSelected() && "selected",
|
|
2233
2234
|
onClick: () => i(e.original),
|
|
2234
2235
|
children: e.getVisibleCells().map((t, n) => {
|
|
2235
2236
|
let r = n === 0 ? e.depth * o : 0;
|
|
2236
|
-
return /* @__PURE__ */
|
|
2237
|
-
className:
|
|
2237
|
+
return /* @__PURE__ */ d(C, {
|
|
2238
|
+
className: an(t.column.columnDef.meta?.className),
|
|
2238
2239
|
style: { paddingLeft: r ? `${r}px` : void 0 },
|
|
2239
|
-
children: [n === 0 && e.depth > 0 && /* @__PURE__ */
|
|
2240
|
+
children: [n === 0 && e.depth > 0 && /* @__PURE__ */ u("span", {
|
|
2240
2241
|
className: "mr-2 text-muted-foreground",
|
|
2241
2242
|
children: "↳"
|
|
2242
|
-
}),
|
|
2243
|
+
}), p(t.column.columnDef.cell, t.getContext())]
|
|
2243
2244
|
}, t.id);
|
|
2244
2245
|
})
|
|
2245
|
-
}, e.id)) : /* @__PURE__ */
|
|
2246
|
+
}, e.id)) : /* @__PURE__ */ u(x, { children: /* @__PURE__ */ u(C, {
|
|
2246
2247
|
colSpan: e.length,
|
|
2247
2248
|
className: "h-24 text-center",
|
|
2248
2249
|
children: _("libs:no_results")
|
|
@@ -2251,7 +2252,7 @@ function Qt({ columns: e, data: t, getRowId: n, selectionState: r, onClick: i, c
|
|
|
2251
2252
|
}
|
|
2252
2253
|
//#endregion
|
|
2253
2254
|
//#region src/components/icon/AnimatedSwapIcon.tsx
|
|
2254
|
-
var
|
|
2255
|
+
var cn = {
|
|
2255
2256
|
initial: {
|
|
2256
2257
|
opacity: 0,
|
|
2257
2258
|
scale: .9
|
|
@@ -2269,24 +2270,24 @@ var $t = {
|
|
|
2269
2270
|
ease: "easeOut"
|
|
2270
2271
|
}
|
|
2271
2272
|
};
|
|
2272
|
-
function
|
|
2273
|
-
return /* @__PURE__ */
|
|
2273
|
+
function ln({ loading: e, loadingNode: t, idleNode: r, className: i = "w-6 h-6 flex flex-row items-center justify-center", motionProps: a }) {
|
|
2274
|
+
return /* @__PURE__ */ u("div", {
|
|
2274
2275
|
className: i,
|
|
2275
|
-
children: /* @__PURE__ */
|
|
2276
|
+
children: /* @__PURE__ */ u(s, {
|
|
2276
2277
|
mode: "popLayout",
|
|
2277
2278
|
initial: !1,
|
|
2278
|
-
children: /* @__PURE__ */
|
|
2279
|
-
|
|
2279
|
+
children: /* @__PURE__ */ n(l.div, {
|
|
2280
|
+
...cn,
|
|
2280
2281
|
...a,
|
|
2281
2282
|
key: e ? "loading" : "idle"
|
|
2282
|
-
}, e ?
|
|
2283
|
+
}, e ? t : r)
|
|
2283
2284
|
})
|
|
2284
2285
|
});
|
|
2285
2286
|
}
|
|
2286
2287
|
//#endregion
|
|
2287
2288
|
//#region src/components/selector/BaseDateTimeSelector.tsx
|
|
2288
|
-
function
|
|
2289
|
-
let { t } =
|
|
2289
|
+
function un(e) {
|
|
2290
|
+
let { t } = f(), n = e.date ? [
|
|
2290
2291
|
String(e.date.getHours()).padStart(2, "0"),
|
|
2291
2292
|
String(e.date.getMinutes()).padStart(2, "0"),
|
|
2292
2293
|
String(e.date.getSeconds()).padStart(2, "0")
|
|
@@ -2304,43 +2305,43 @@ function tn(e) {
|
|
|
2304
2305
|
}, i = (t) => {
|
|
2305
2306
|
let [n = "0", r = "0", i = "0"] = t.split(":"), a = e.date ? new Date(e.date) : /* @__PURE__ */ new Date();
|
|
2306
2307
|
a.setHours(Number(n), Number(r), Number(i), 0), e.setDate(a);
|
|
2307
|
-
}, a = e.components?.Calendar ??
|
|
2308
|
-
return /* @__PURE__ */
|
|
2308
|
+
}, a = e.components?.Calendar ?? Ae, o = e.components?.Field ?? se, s = e.components?.FieldLabel ?? ce, c = e.components?.FieldGroup ?? je, l = e.components?.InputGroup ?? Me, p = e.components?.InputGroupInput ?? Ne, m = e.components?.InputGroupAddon ?? Pe, h = e.components?.TimeIcon ?? Fe;
|
|
2309
|
+
return /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u(a, {
|
|
2309
2310
|
mode: "single",
|
|
2310
2311
|
captionLayout: "dropdown",
|
|
2311
2312
|
defaultMonth: e.date,
|
|
2312
2313
|
selected: e.date,
|
|
2313
2314
|
onSelect: r
|
|
2314
|
-
}), /* @__PURE__ */
|
|
2315
|
+
}), /* @__PURE__ */ u(c, {
|
|
2315
2316
|
className: "border-t p-4",
|
|
2316
|
-
children: /* @__PURE__ */
|
|
2317
|
+
children: /* @__PURE__ */ d(o, { children: [/* @__PURE__ */ u(s, {
|
|
2317
2318
|
htmlFor: "time",
|
|
2318
2319
|
children: t("libs:time")
|
|
2319
|
-
}), /* @__PURE__ */
|
|
2320
|
+
}), /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(p, {
|
|
2320
2321
|
id: "time",
|
|
2321
2322
|
type: "time",
|
|
2322
2323
|
step: "1",
|
|
2323
2324
|
value: n,
|
|
2324
2325
|
onChange: (e) => i(e.target.value),
|
|
2325
2326
|
className: "appearance-none [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"
|
|
2326
|
-
}), /* @__PURE__ */
|
|
2327
|
+
}), /* @__PURE__ */ u(m, { children: /* @__PURE__ */ u(h, { className: "text-muted-foreground" }) })] })] })
|
|
2327
2328
|
})] });
|
|
2328
2329
|
}
|
|
2329
2330
|
//#endregion
|
|
2330
2331
|
//#region src/components/dialog/BaseDeleteAlertDialog.tsx
|
|
2331
|
-
function
|
|
2332
|
-
let { t } =
|
|
2333
|
-
return /* @__PURE__ */
|
|
2332
|
+
function dn(e) {
|
|
2333
|
+
let { t } = f(), n = e.components?.AlertDialog ?? we, r = e.components?.AlertDialogContent ?? Te, i = e.components?.AlertDialogHeader ?? Ee, a = e.components?.AlertDialogTitle ?? De, o = e.components?.AlertDialogDescription ?? Oe, s = e.components?.AlertDialogFooter ?? ke, c = e.components?.Button ?? de;
|
|
2334
|
+
return /* @__PURE__ */ u(n, {
|
|
2334
2335
|
open: e.visible,
|
|
2335
2336
|
onOpenChange: e.onVisibleChange,
|
|
2336
|
-
children: /* @__PURE__ */
|
|
2337
|
+
children: /* @__PURE__ */ d(r, {
|
|
2337
2338
|
role: "alertdialog",
|
|
2338
2339
|
"aria-modal": "true",
|
|
2339
|
-
children: [/* @__PURE__ */
|
|
2340
|
+
children: [/* @__PURE__ */ d(i, { children: [/* @__PURE__ */ u(a, { children: t("libs:delete_dialog_title") }), /* @__PURE__ */ u(o, { children: t("libs:delete_dialog_desc") })] }), /* @__PURE__ */ d(s, { children: [/* @__PURE__ */ u(c, {
|
|
2340
2341
|
variant: "outline",
|
|
2341
2342
|
onClick: () => e.onVisibleChange(!1),
|
|
2342
2343
|
children: t("libs:cancel")
|
|
2343
|
-
}), /* @__PURE__ */
|
|
2344
|
+
}), /* @__PURE__ */ u(c, {
|
|
2344
2345
|
variant: "destructive",
|
|
2345
2346
|
onClick: e.onConfirm,
|
|
2346
2347
|
children: t("libs:confirm")
|
|
@@ -2350,16 +2351,16 @@ function nn(e) {
|
|
|
2350
2351
|
}
|
|
2351
2352
|
//#endregion
|
|
2352
2353
|
//#region src/components/dialog/BaseRouterPromptAlertDialog.tsx
|
|
2353
|
-
function
|
|
2354
|
-
let { t } =
|
|
2355
|
-
return /* @__PURE__ */
|
|
2354
|
+
function fn(e) {
|
|
2355
|
+
let { t } = f(), n = e.components?.AlertDialog ?? we, r = e.components?.AlertDialogContent ?? Te, i = e.components?.AlertDialogHeader ?? Ee, a = e.components?.AlertDialogTitle ?? De, o = e.components?.AlertDialogDescription ?? Oe, s = e.components?.AlertDialogFooter ?? ke, c = e.components?.Button ?? de;
|
|
2356
|
+
return /* @__PURE__ */ u(n, {
|
|
2356
2357
|
open: e.visible,
|
|
2357
2358
|
onOpenChange: e.onVisibleChange,
|
|
2358
|
-
children: /* @__PURE__ */
|
|
2359
|
+
children: /* @__PURE__ */ d(r, { children: [/* @__PURE__ */ d(i, { children: [/* @__PURE__ */ u(a, { children: t("libs:quit_warning_title") }), /* @__PURE__ */ u(o, { children: t("libs:quite_warning_desc") })] }), /* @__PURE__ */ d(s, { children: [/* @__PURE__ */ u(c, {
|
|
2359
2360
|
variant: "outline",
|
|
2360
2361
|
onClick: () => e.onVisibleChange(!1),
|
|
2361
2362
|
children: t("libs:cancel")
|
|
2362
|
-
}), /* @__PURE__ */
|
|
2363
|
+
}), /* @__PURE__ */ u(c, {
|
|
2363
2364
|
variant: "destructive",
|
|
2364
2365
|
onClick: e.onConfirm,
|
|
2365
2366
|
children: t("libs:confirm")
|
|
@@ -2367,49 +2368,1356 @@ function rn(e) {
|
|
|
2367
2368
|
});
|
|
2368
2369
|
}
|
|
2369
2370
|
//#endregion
|
|
2371
|
+
//#region node_modules/react-router/dist/development/chunk-QUQL4437.mjs
|
|
2372
|
+
function q(e, t) {
|
|
2373
|
+
if (e === !1 || e == null) throw Error(t);
|
|
2374
|
+
}
|
|
2375
|
+
function J(e, t) {
|
|
2376
|
+
if (!e) {
|
|
2377
|
+
typeof console < "u" && console.warn(t);
|
|
2378
|
+
try {
|
|
2379
|
+
throw Error(t);
|
|
2380
|
+
} catch {}
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
2383
|
+
function pn({ pathname: e = "/", search: t = "", hash: n = "" }) {
|
|
2384
|
+
return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
|
|
2385
|
+
}
|
|
2386
|
+
function mn(e) {
|
|
2387
|
+
let t = {};
|
|
2388
|
+
if (e) {
|
|
2389
|
+
let n = e.indexOf("#");
|
|
2390
|
+
n >= 0 && (t.hash = e.substring(n), e = e.substring(0, n));
|
|
2391
|
+
let r = e.indexOf("?");
|
|
2392
|
+
r >= 0 && (t.search = e.substring(r), e = e.substring(0, r)), e && (t.pathname = e);
|
|
2393
|
+
}
|
|
2394
|
+
return t;
|
|
2395
|
+
}
|
|
2396
|
+
function hn(e, t, n = "/") {
|
|
2397
|
+
return gn(e, t, n, !1);
|
|
2398
|
+
}
|
|
2399
|
+
function gn(e, t, n, r, i) {
|
|
2400
|
+
let a = Y((typeof t == "string" ? mn(t) : t).pathname || "/", n);
|
|
2401
|
+
if (a == null) return null;
|
|
2402
|
+
let o = i ?? vn(e), s = null, c = Pn(a);
|
|
2403
|
+
for (let e = 0; s == null && e < o.length; ++e) s = jn(o[e], c, r);
|
|
2404
|
+
return s;
|
|
2405
|
+
}
|
|
2406
|
+
function _n(e, t) {
|
|
2407
|
+
let { route: n, pathname: r, params: i } = e;
|
|
2408
|
+
return {
|
|
2409
|
+
id: n.id,
|
|
2410
|
+
pathname: r,
|
|
2411
|
+
params: i,
|
|
2412
|
+
data: t[n.id],
|
|
2413
|
+
loaderData: t[n.id],
|
|
2414
|
+
handle: n.handle
|
|
2415
|
+
};
|
|
2416
|
+
}
|
|
2417
|
+
function vn(e) {
|
|
2418
|
+
let t = yn(e);
|
|
2419
|
+
return xn(t), t;
|
|
2420
|
+
}
|
|
2421
|
+
function yn(e, t = [], n = [], r = "", i = !1) {
|
|
2422
|
+
let a = (e, a, o = i, s) => {
|
|
2423
|
+
let c = {
|
|
2424
|
+
relativePath: s === void 0 ? e.path || "" : s,
|
|
2425
|
+
caseSensitive: e.caseSensitive === !0,
|
|
2426
|
+
childrenIndex: a,
|
|
2427
|
+
route: e
|
|
2428
|
+
};
|
|
2429
|
+
if (c.relativePath.startsWith("/")) {
|
|
2430
|
+
if (!c.relativePath.startsWith(r) && o) return;
|
|
2431
|
+
q(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
|
|
2432
|
+
}
|
|
2433
|
+
let l = X([r, c.relativePath]), u = n.concat(c);
|
|
2434
|
+
e.children && e.children.length > 0 && (q(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), yn(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({
|
|
2435
|
+
path: l,
|
|
2436
|
+
score: kn(l, e.index),
|
|
2437
|
+
routesMeta: u
|
|
2438
|
+
});
|
|
2439
|
+
};
|
|
2440
|
+
return e.forEach((e, t) => {
|
|
2441
|
+
if (e.path === "" || !e.path?.includes("?")) a(e, t);
|
|
2442
|
+
else for (let n of bn(e.path)) a(e, t, !0, n);
|
|
2443
|
+
}), t;
|
|
2444
|
+
}
|
|
2445
|
+
function bn(e) {
|
|
2446
|
+
let t = e.split("/");
|
|
2447
|
+
if (t.length === 0) return [];
|
|
2448
|
+
let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");
|
|
2449
|
+
if (r.length === 0) return i ? [a, ""] : [a];
|
|
2450
|
+
let o = bn(r.join("/")), s = [];
|
|
2451
|
+
return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
|
|
2452
|
+
}
|
|
2453
|
+
function xn(e) {
|
|
2454
|
+
e.sort((e, t) => e.score === t.score ? An(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
|
|
2455
|
+
}
|
|
2456
|
+
var Sn = /^:[\w-]+$/, Cn = 3, wn = 2, Tn = 1, En = 10, Dn = -2, On = (e) => e === "*";
|
|
2457
|
+
function kn(e, t) {
|
|
2458
|
+
let n = e.split("/"), r = n.length;
|
|
2459
|
+
return n.some(On) && (r += Dn), t && (r += wn), n.filter((e) => !On(e)).reduce((e, t) => e + (Sn.test(t) ? Cn : t === "" ? Tn : En), r);
|
|
2460
|
+
}
|
|
2461
|
+
function An(e, t) {
|
|
2462
|
+
return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
|
|
2463
|
+
}
|
|
2464
|
+
function jn(e, t, n = !1) {
|
|
2465
|
+
let { routesMeta: r } = e, i = {}, a = "/", o = [];
|
|
2466
|
+
for (let e = 0; e < r.length; ++e) {
|
|
2467
|
+
let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = Mn({
|
|
2468
|
+
path: s.relativePath,
|
|
2469
|
+
caseSensitive: s.caseSensitive,
|
|
2470
|
+
end: c
|
|
2471
|
+
}, l), d = s.route;
|
|
2472
|
+
if (!u && c && n && !r[r.length - 1].route.index && (u = Mn({
|
|
2473
|
+
path: s.relativePath,
|
|
2474
|
+
caseSensitive: s.caseSensitive,
|
|
2475
|
+
end: !1
|
|
2476
|
+
}, l)), !u) return null;
|
|
2477
|
+
Object.assign(i, u.params), o.push({
|
|
2478
|
+
params: i,
|
|
2479
|
+
pathname: X([a, u.pathname]),
|
|
2480
|
+
pathnameBase: Wn(X([a, u.pathnameBase])),
|
|
2481
|
+
route: d
|
|
2482
|
+
}), u.pathnameBase !== "/" && (a = X([a, u.pathnameBase]));
|
|
2483
|
+
}
|
|
2484
|
+
return o;
|
|
2485
|
+
}
|
|
2486
|
+
function Mn(e, t) {
|
|
2487
|
+
typeof e == "string" && (e = {
|
|
2488
|
+
path: e,
|
|
2489
|
+
caseSensitive: !1,
|
|
2490
|
+
end: !0
|
|
2491
|
+
});
|
|
2492
|
+
let [n, r] = Nn(e.path, e.caseSensitive, e.end), i = t.match(n);
|
|
2493
|
+
if (!i) return null;
|
|
2494
|
+
let a = i[0], o = a.replace(/(.)\/+$/, "$1"), s = i.slice(1);
|
|
2495
|
+
return {
|
|
2496
|
+
params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
|
|
2497
|
+
if (t === "*") {
|
|
2498
|
+
let e = s[r] || "";
|
|
2499
|
+
o = a.slice(0, a.length - e.length).replace(/(.)\/+$/, "$1");
|
|
2500
|
+
}
|
|
2501
|
+
let i = s[r];
|
|
2502
|
+
return n && !i ? e[t] = void 0 : e[t] = (i || "").replace(/%2F/g, "/"), e;
|
|
2503
|
+
}, {}),
|
|
2504
|
+
pathname: a,
|
|
2505
|
+
pathnameBase: o,
|
|
2506
|
+
pattern: e
|
|
2507
|
+
};
|
|
2508
|
+
}
|
|
2509
|
+
function Nn(e, t = !1, n = !0) {
|
|
2510
|
+
J(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(/\*$/, "/*")}".`);
|
|
2511
|
+
let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
|
|
2512
|
+
if (r.push({
|
|
2513
|
+
paramName: t,
|
|
2514
|
+
isOptional: n != null
|
|
2515
|
+
}), n) {
|
|
2516
|
+
let t = a.charAt(i + e.length);
|
|
2517
|
+
return t && t !== "/" ? "/([^\\/]*)" : "(?:/([^\\/]*))?";
|
|
2518
|
+
}
|
|
2519
|
+
return "/([^\\/]+)";
|
|
2520
|
+
}).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
|
|
2521
|
+
return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
|
|
2522
|
+
}
|
|
2523
|
+
function Pn(e) {
|
|
2524
|
+
try {
|
|
2525
|
+
return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
|
|
2526
|
+
} catch (t) {
|
|
2527
|
+
return J(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
|
|
2528
|
+
}
|
|
2529
|
+
}
|
|
2530
|
+
function Y(e, t) {
|
|
2531
|
+
if (t === "/") return e;
|
|
2532
|
+
if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
|
|
2533
|
+
let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
|
|
2534
|
+
return r && r !== "/" ? null : e.slice(n) || "/";
|
|
2535
|
+
}
|
|
2536
|
+
var Fn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
|
|
2537
|
+
function In(e, t = "/") {
|
|
2538
|
+
let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? mn(e) : e, a;
|
|
2539
|
+
return n ? (n = Hn(n), a = n.startsWith("/") ? Ln(n.substring(1), "/") : Ln(n, t)) : a = t, {
|
|
2540
|
+
pathname: a,
|
|
2541
|
+
search: Gn(r),
|
|
2542
|
+
hash: Kn(i)
|
|
2543
|
+
};
|
|
2544
|
+
}
|
|
2545
|
+
function Ln(e, t) {
|
|
2546
|
+
let n = Un(t).split("/");
|
|
2547
|
+
return e.split("/").forEach((e) => {
|
|
2548
|
+
e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
|
|
2549
|
+
}), n.length > 1 ? n.join("/") : "/";
|
|
2550
|
+
}
|
|
2551
|
+
function Rn(e, t, n, r) {
|
|
2552
|
+
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.`;
|
|
2553
|
+
}
|
|
2554
|
+
function zn(e) {
|
|
2555
|
+
return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
|
|
2556
|
+
}
|
|
2557
|
+
function Bn(e) {
|
|
2558
|
+
let t = zn(e);
|
|
2559
|
+
return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
|
|
2560
|
+
}
|
|
2561
|
+
function Vn(e, t, n, r = !1) {
|
|
2562
|
+
let i;
|
|
2563
|
+
typeof e == "string" ? i = mn(e) : (i = { ...e }, q(!i.pathname || !i.pathname.includes("?"), Rn("?", "pathname", "search", i)), q(!i.pathname || !i.pathname.includes("#"), Rn("#", "pathname", "hash", i)), q(!i.search || !i.search.includes("#"), Rn("#", "search", "hash", i)));
|
|
2564
|
+
let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
|
|
2565
|
+
if (o == null) s = n;
|
|
2566
|
+
else {
|
|
2567
|
+
let e = t.length - 1;
|
|
2568
|
+
if (!r && o.startsWith("..")) {
|
|
2569
|
+
let t = o.split("/");
|
|
2570
|
+
for (; t[0] === "..";) t.shift(), --e;
|
|
2571
|
+
i.pathname = t.join("/");
|
|
2572
|
+
}
|
|
2573
|
+
s = e >= 0 ? t[e] : "/";
|
|
2574
|
+
}
|
|
2575
|
+
let c = In(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
|
|
2576
|
+
return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
|
|
2577
|
+
}
|
|
2578
|
+
var Hn = (e) => e.replace(/\/\/+/g, "/"), X = (e) => Hn(e.join("/")), Un = (e) => e.replace(/\/+$/, ""), Wn = (e) => Un(e).replace(/^\/*/, "/"), Gn = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Kn = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, qn = class {
|
|
2579
|
+
constructor(e, t, n, r = !1) {
|
|
2580
|
+
this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
|
|
2581
|
+
}
|
|
2582
|
+
};
|
|
2583
|
+
function Jn(e) {
|
|
2584
|
+
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
2585
|
+
}
|
|
2586
|
+
function Yn(e) {
|
|
2587
|
+
return X(e.map((e) => e.route.path).filter(Boolean)) || "/";
|
|
2588
|
+
}
|
|
2589
|
+
var Xn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
|
|
2590
|
+
function Zn(e, t) {
|
|
2591
|
+
let n = e;
|
|
2592
|
+
if (typeof n != "string" || !Fn.test(n)) return {
|
|
2593
|
+
absoluteURL: void 0,
|
|
2594
|
+
isExternal: !1,
|
|
2595
|
+
to: n
|
|
2596
|
+
};
|
|
2597
|
+
let r = n, i = !1;
|
|
2598
|
+
if (Xn) try {
|
|
2599
|
+
let e = new URL(window.location.href), r = n.startsWith("//") ? new URL(e.protocol + n) : new URL(n), a = Y(r.pathname, t);
|
|
2600
|
+
r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
|
|
2601
|
+
} catch {
|
|
2602
|
+
J(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
|
|
2603
|
+
}
|
|
2604
|
+
return {
|
|
2605
|
+
absoluteURL: r,
|
|
2606
|
+
isExternal: i,
|
|
2607
|
+
to: n
|
|
2608
|
+
};
|
|
2609
|
+
}
|
|
2610
|
+
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
2611
|
+
var Qn = [
|
|
2612
|
+
"POST",
|
|
2613
|
+
"PUT",
|
|
2614
|
+
"PATCH",
|
|
2615
|
+
"DELETE"
|
|
2616
|
+
];
|
|
2617
|
+
new Set(Qn);
|
|
2618
|
+
var $n = ["GET", ...Qn];
|
|
2619
|
+
new Set($n);
|
|
2620
|
+
var er = e.createContext(null);
|
|
2621
|
+
er.displayName = "DataRouter";
|
|
2622
|
+
var tr = e.createContext(null);
|
|
2623
|
+
tr.displayName = "DataRouterState";
|
|
2624
|
+
var nr = e.createContext(!1);
|
|
2625
|
+
function rr() {
|
|
2626
|
+
return e.useContext(nr);
|
|
2627
|
+
}
|
|
2628
|
+
var ir = e.createContext({ isTransitioning: !1 });
|
|
2629
|
+
ir.displayName = "ViewTransition";
|
|
2630
|
+
var ar = e.createContext(/* @__PURE__ */ new Map());
|
|
2631
|
+
ar.displayName = "Fetchers";
|
|
2632
|
+
var or = e.createContext(null);
|
|
2633
|
+
or.displayName = "Await";
|
|
2634
|
+
var Z = e.createContext(null);
|
|
2635
|
+
Z.displayName = "Navigation";
|
|
2636
|
+
var sr = e.createContext(null);
|
|
2637
|
+
sr.displayName = "Location";
|
|
2638
|
+
var Q = e.createContext({
|
|
2639
|
+
outlet: null,
|
|
2640
|
+
matches: [],
|
|
2641
|
+
isDataRoute: !1
|
|
2642
|
+
});
|
|
2643
|
+
Q.displayName = "Route";
|
|
2644
|
+
var cr = e.createContext(null);
|
|
2645
|
+
cr.displayName = "RouteError";
|
|
2646
|
+
var lr = "REACT_ROUTER_ERROR", ur = "REDIRECT", dr = "ROUTE_ERROR_RESPONSE";
|
|
2647
|
+
function fr(e) {
|
|
2648
|
+
if (e.startsWith(`${lr}:${ur}:{`)) try {
|
|
2649
|
+
let t = JSON.parse(e.slice(28));
|
|
2650
|
+
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
|
|
2651
|
+
} catch {}
|
|
2652
|
+
}
|
|
2653
|
+
function pr(e) {
|
|
2654
|
+
if (e.startsWith(`${lr}:${dr}:{`)) try {
|
|
2655
|
+
let t = JSON.parse(e.slice(40));
|
|
2656
|
+
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new qn(t.status, t.statusText, t.data);
|
|
2657
|
+
} catch {}
|
|
2658
|
+
}
|
|
2659
|
+
function mr(t, { relative: n } = {}) {
|
|
2660
|
+
q(hr(), "useHref() may be used only in the context of a <Router> component.");
|
|
2661
|
+
let { basename: r, navigator: i } = e.useContext(Z), { hash: a, pathname: o, search: s } = br(t, { relative: n }), c = o;
|
|
2662
|
+
return r !== "/" && (c = o === "/" ? r : X([r, o])), i.createHref({
|
|
2663
|
+
pathname: c,
|
|
2664
|
+
search: s,
|
|
2665
|
+
hash: a
|
|
2666
|
+
});
|
|
2667
|
+
}
|
|
2668
|
+
function hr() {
|
|
2669
|
+
return e.useContext(sr) != null;
|
|
2670
|
+
}
|
|
2671
|
+
function $() {
|
|
2672
|
+
return q(hr(), "useLocation() may be used only in the context of a <Router> component."), e.useContext(sr).location;
|
|
2673
|
+
}
|
|
2674
|
+
var gr = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
2675
|
+
function _r(t) {
|
|
2676
|
+
e.useContext(Z).static || e.useLayoutEffect(t);
|
|
2677
|
+
}
|
|
2678
|
+
function vr() {
|
|
2679
|
+
let { isDataRoute: t } = e.useContext(Q);
|
|
2680
|
+
return t ? Rr() : yr();
|
|
2681
|
+
}
|
|
2682
|
+
function yr() {
|
|
2683
|
+
q(hr(), "useNavigate() may be used only in the context of a <Router> component.");
|
|
2684
|
+
let t = e.useContext(er), { basename: n, navigator: r } = e.useContext(Z), { matches: i } = e.useContext(Q), { pathname: a } = $(), o = JSON.stringify(Bn(i)), s = e.useRef(!1);
|
|
2685
|
+
return _r(() => {
|
|
2686
|
+
s.current = !0;
|
|
2687
|
+
}), e.useCallback((e, i = {}) => {
|
|
2688
|
+
if (J(s.current, gr), !s.current) return;
|
|
2689
|
+
if (typeof e == "number") {
|
|
2690
|
+
r.go(e);
|
|
2691
|
+
return;
|
|
2692
|
+
}
|
|
2693
|
+
let c = Vn(e, JSON.parse(o), a, i.relative === "path");
|
|
2694
|
+
t == null && n !== "/" && (c.pathname = c.pathname === "/" ? n : X([n, c.pathname])), (i.replace ? r.replace : r.push)(c, i.state, i);
|
|
2695
|
+
}, [
|
|
2696
|
+
n,
|
|
2697
|
+
r,
|
|
2698
|
+
o,
|
|
2699
|
+
a,
|
|
2700
|
+
t
|
|
2701
|
+
]);
|
|
2702
|
+
}
|
|
2703
|
+
e.createContext(null);
|
|
2704
|
+
function br(t, { relative: n } = {}) {
|
|
2705
|
+
let { matches: r } = e.useContext(Q), { pathname: i } = $(), a = JSON.stringify(Bn(r));
|
|
2706
|
+
return e.useMemo(() => Vn(t, JSON.parse(a), i, n === "path"), [
|
|
2707
|
+
t,
|
|
2708
|
+
a,
|
|
2709
|
+
i,
|
|
2710
|
+
n
|
|
2711
|
+
]);
|
|
2712
|
+
}
|
|
2713
|
+
function xr(t, n, r) {
|
|
2714
|
+
q(hr(), "useRoutes() may be used only in the context of a <Router> component.");
|
|
2715
|
+
let { navigator: i } = e.useContext(Z), { matches: a } = e.useContext(Q), o = a[a.length - 1], s = o ? o.params : {}, c = o ? o.pathname : "/", l = o ? o.pathnameBase : "/", u = o && o.route;
|
|
2716
|
+
{
|
|
2717
|
+
let e = u && u.path || "";
|
|
2718
|
+
Br(c, !u || e.endsWith("*") || e.endsWith("*?"), `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${e}">) 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.
|
|
2719
|
+
|
|
2720
|
+
Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" : `${e}/*`}">.`);
|
|
2721
|
+
}
|
|
2722
|
+
let d = $(), f;
|
|
2723
|
+
if (n) {
|
|
2724
|
+
let e = typeof n == "string" ? mn(n) : n;
|
|
2725
|
+
q(l === "/" || e.pathname?.startsWith(l), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`), f = e;
|
|
2726
|
+
} else f = d;
|
|
2727
|
+
let p = f.pathname || "/", m = p;
|
|
2728
|
+
if (l !== "/") {
|
|
2729
|
+
let e = l.replace(/^\//, "").split("/");
|
|
2730
|
+
m = "/" + p.replace(/^\//, "").split("/").slice(e.length).join("/");
|
|
2731
|
+
}
|
|
2732
|
+
let h = r && r.state.matches.length ? r.state.matches.map((e) => Object.assign(e, { route: r.manifest[e.route.id] || e.route })) : hn(t, { pathname: m });
|
|
2733
|
+
J(u || h != null, `No routes matched location "${f.pathname}${f.search}${f.hash}" `), J(h == null || h[h.length - 1].route.element !== void 0 || h[h.length - 1].route.Component !== void 0 || h[h.length - 1].route.lazy !== void 0, `Matched leaf route at location "${f.pathname}${f.search}${f.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.`);
|
|
2734
|
+
let g = Or(h && h.map((e) => Object.assign({}, e, {
|
|
2735
|
+
params: Object.assign({}, s, e.params),
|
|
2736
|
+
pathname: X([l, i.encodeLocation ? i.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
|
|
2737
|
+
pathnameBase: e.pathnameBase === "/" ? l : X([l, i.encodeLocation ? i.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
|
|
2738
|
+
})), a, r);
|
|
2739
|
+
return n && g ? /* @__PURE__ */ e.createElement(sr.Provider, { value: {
|
|
2740
|
+
location: {
|
|
2741
|
+
pathname: "/",
|
|
2742
|
+
search: "",
|
|
2743
|
+
hash: "",
|
|
2744
|
+
state: null,
|
|
2745
|
+
key: "default",
|
|
2746
|
+
mask: void 0,
|
|
2747
|
+
...f
|
|
2748
|
+
},
|
|
2749
|
+
navigationType: "POP"
|
|
2750
|
+
} }, g) : g;
|
|
2751
|
+
}
|
|
2752
|
+
function Sr() {
|
|
2753
|
+
let t = Lr(), n = Jn(t) ? `${t.status} ${t.statusText}` : t instanceof Error ? t.message : JSON.stringify(t), r = t instanceof Error ? t.stack : null, i = "rgba(200,200,200, 0.5)", a = {
|
|
2754
|
+
padding: "0.5rem",
|
|
2755
|
+
backgroundColor: i
|
|
2756
|
+
}, o = {
|
|
2757
|
+
padding: "2px 4px",
|
|
2758
|
+
backgroundColor: i
|
|
2759
|
+
}, s = null;
|
|
2760
|
+
return console.error("Error handled by React Router default ErrorBoundary:", t), s = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ e.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ e.createElement("code", { style: o }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ e.createElement("code", { style: o }, "errorElement"), " prop on your route.")), /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ e.createElement("h3", { style: { fontStyle: "italic" } }, n), r ? /* @__PURE__ */ e.createElement("pre", { style: a }, r) : null, s);
|
|
2761
|
+
}
|
|
2762
|
+
var Cr = /* @__PURE__ */ e.createElement(Sr, null), wr = class extends e.Component {
|
|
2763
|
+
constructor(e) {
|
|
2764
|
+
super(e), this.state = {
|
|
2765
|
+
location: e.location,
|
|
2766
|
+
revalidation: e.revalidation,
|
|
2767
|
+
error: e.error
|
|
2768
|
+
};
|
|
2769
|
+
}
|
|
2770
|
+
static getDerivedStateFromError(e) {
|
|
2771
|
+
return { error: e };
|
|
2772
|
+
}
|
|
2773
|
+
static getDerivedStateFromProps(e, t) {
|
|
2774
|
+
return t.location !== e.location || t.revalidation !== "idle" && e.revalidation === "idle" ? {
|
|
2775
|
+
error: e.error,
|
|
2776
|
+
location: e.location,
|
|
2777
|
+
revalidation: e.revalidation
|
|
2778
|
+
} : {
|
|
2779
|
+
error: e.error === void 0 ? t.error : e.error,
|
|
2780
|
+
location: t.location,
|
|
2781
|
+
revalidation: e.revalidation || t.revalidation
|
|
2782
|
+
};
|
|
2783
|
+
}
|
|
2784
|
+
componentDidCatch(e, t) {
|
|
2785
|
+
this.props.onError ? this.props.onError(e, t) : console.error("React Router caught the following error during render", e);
|
|
2786
|
+
}
|
|
2787
|
+
render() {
|
|
2788
|
+
let t = this.state.error;
|
|
2789
|
+
if (this.context && typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
|
|
2790
|
+
let e = pr(t.digest);
|
|
2791
|
+
e && (t = e);
|
|
2792
|
+
}
|
|
2793
|
+
let n = t === void 0 ? this.props.children : /* @__PURE__ */ e.createElement(Q.Provider, { value: this.props.routeContext }, /* @__PURE__ */ e.createElement(cr.Provider, {
|
|
2794
|
+
value: t,
|
|
2795
|
+
children: this.props.component
|
|
2796
|
+
}));
|
|
2797
|
+
return this.context ? /* @__PURE__ */ e.createElement(Er, { error: t }, n) : n;
|
|
2798
|
+
}
|
|
2799
|
+
};
|
|
2800
|
+
wr.contextType = nr;
|
|
2801
|
+
var Tr = /* @__PURE__ */ new WeakMap();
|
|
2802
|
+
function Er({ children: t, error: n }) {
|
|
2803
|
+
let { basename: r } = e.useContext(Z);
|
|
2804
|
+
if (typeof n == "object" && n && "digest" in n && typeof n.digest == "string") {
|
|
2805
|
+
let t = fr(n.digest);
|
|
2806
|
+
if (t) {
|
|
2807
|
+
let i = Tr.get(n);
|
|
2808
|
+
if (i) throw i;
|
|
2809
|
+
let a = Zn(t.location, r);
|
|
2810
|
+
if (Xn && !Tr.get(n)) if (a.isExternal || t.reloadDocument) window.location.href = a.absoluteURL || a.to;
|
|
2811
|
+
else {
|
|
2812
|
+
let e = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: t.replace }));
|
|
2813
|
+
throw Tr.set(n, e), e;
|
|
2814
|
+
}
|
|
2815
|
+
return /* @__PURE__ */ e.createElement("meta", {
|
|
2816
|
+
httpEquiv: "refresh",
|
|
2817
|
+
content: `0;url=${a.absoluteURL || a.to}`
|
|
2818
|
+
});
|
|
2819
|
+
}
|
|
2820
|
+
}
|
|
2821
|
+
return t;
|
|
2822
|
+
}
|
|
2823
|
+
function Dr({ routeContext: t, match: n, children: r }) {
|
|
2824
|
+
let i = e.useContext(er);
|
|
2825
|
+
return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ e.createElement(Q.Provider, { value: t }, r);
|
|
2826
|
+
}
|
|
2827
|
+
function Or(t, n = [], r) {
|
|
2828
|
+
let i = r?.state;
|
|
2829
|
+
if (t == null) {
|
|
2830
|
+
if (!i) return null;
|
|
2831
|
+
if (i.errors) t = i.matches;
|
|
2832
|
+
else if (n.length === 0 && !i.initialized && i.matches.length > 0) t = i.matches;
|
|
2833
|
+
else return null;
|
|
2834
|
+
}
|
|
2835
|
+
let a = t, o = i?.errors;
|
|
2836
|
+
if (o != null) {
|
|
2837
|
+
let e = a.findIndex((e) => e.route.id && o?.[e.route.id] !== void 0);
|
|
2838
|
+
q(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`), a = a.slice(0, Math.min(a.length, e + 1));
|
|
2839
|
+
}
|
|
2840
|
+
let s = !1, c = -1;
|
|
2841
|
+
if (r && i) {
|
|
2842
|
+
s = i.renderFallback;
|
|
2843
|
+
for (let e = 0; e < a.length; e++) {
|
|
2844
|
+
let t = a[e];
|
|
2845
|
+
if ((t.route.HydrateFallback || t.route.hydrateFallbackElement) && (c = e), t.route.id) {
|
|
2846
|
+
let { loaderData: e, errors: n } = i, o = t.route.loader && !e.hasOwnProperty(t.route.id) && (!n || n[t.route.id] === void 0);
|
|
2847
|
+
if (t.route.lazy || o) {
|
|
2848
|
+
r.isStatic && (s = !0), a = c >= 0 ? a.slice(0, c + 1) : [a[0]];
|
|
2849
|
+
break;
|
|
2850
|
+
}
|
|
2851
|
+
}
|
|
2852
|
+
}
|
|
2853
|
+
}
|
|
2854
|
+
let l = r?.onError, u = i && l ? (e, t) => {
|
|
2855
|
+
l(e, {
|
|
2856
|
+
location: i.location,
|
|
2857
|
+
params: i.matches?.[0]?.params ?? {},
|
|
2858
|
+
pattern: Yn(i.matches),
|
|
2859
|
+
errorInfo: t
|
|
2860
|
+
});
|
|
2861
|
+
} : void 0;
|
|
2862
|
+
return a.reduceRight((t, r, l) => {
|
|
2863
|
+
let d, f = !1, p = null, m = null;
|
|
2864
|
+
i && (d = o && r.route.id ? o[r.route.id] : void 0, p = r.route.errorElement || Cr, s && (c < 0 && l === 0 ? (Br("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), f = !0, m = null) : c === l && (f = !0, m = r.route.hydrateFallbackElement || null)));
|
|
2865
|
+
let h = n.concat(a.slice(0, l + 1)), g = () => {
|
|
2866
|
+
let n;
|
|
2867
|
+
return n = d ? p : f ? m : r.route.Component ? /* @__PURE__ */ e.createElement(r.route.Component, null) : r.route.element ? r.route.element : t, /* @__PURE__ */ e.createElement(Dr, {
|
|
2868
|
+
match: r,
|
|
2869
|
+
routeContext: {
|
|
2870
|
+
outlet: t,
|
|
2871
|
+
matches: h,
|
|
2872
|
+
isDataRoute: i != null
|
|
2873
|
+
},
|
|
2874
|
+
children: n
|
|
2875
|
+
});
|
|
2876
|
+
};
|
|
2877
|
+
return i && (r.route.ErrorBoundary || r.route.errorElement || l === 0) ? /* @__PURE__ */ e.createElement(wr, {
|
|
2878
|
+
location: i.location,
|
|
2879
|
+
revalidation: i.revalidation,
|
|
2880
|
+
component: p,
|
|
2881
|
+
error: d,
|
|
2882
|
+
children: g(),
|
|
2883
|
+
routeContext: {
|
|
2884
|
+
outlet: null,
|
|
2885
|
+
matches: h,
|
|
2886
|
+
isDataRoute: !0
|
|
2887
|
+
},
|
|
2888
|
+
onError: u
|
|
2889
|
+
}) : g();
|
|
2890
|
+
}, null);
|
|
2891
|
+
}
|
|
2892
|
+
function kr(e) {
|
|
2893
|
+
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
2894
|
+
}
|
|
2895
|
+
function Ar(t) {
|
|
2896
|
+
let n = e.useContext(er);
|
|
2897
|
+
return q(n, kr(t)), n;
|
|
2898
|
+
}
|
|
2899
|
+
function jr(t) {
|
|
2900
|
+
let n = e.useContext(tr);
|
|
2901
|
+
return q(n, kr(t)), n;
|
|
2902
|
+
}
|
|
2903
|
+
function Mr(t) {
|
|
2904
|
+
let n = e.useContext(Q);
|
|
2905
|
+
return q(n, kr(t)), n;
|
|
2906
|
+
}
|
|
2907
|
+
function Nr(e) {
|
|
2908
|
+
let t = Mr(e), n = t.matches[t.matches.length - 1];
|
|
2909
|
+
return q(n.route.id, `${e} can only be used on routes that contain a unique "id"`), n.route.id;
|
|
2910
|
+
}
|
|
2911
|
+
function Pr() {
|
|
2912
|
+
return Nr("useRouteId");
|
|
2913
|
+
}
|
|
2914
|
+
function Fr() {
|
|
2915
|
+
let t = jr("useNavigation");
|
|
2916
|
+
return e.useMemo(() => {
|
|
2917
|
+
let { matches: e, historyAction: n, ...r } = t.navigation;
|
|
2918
|
+
return r;
|
|
2919
|
+
}, [t.navigation]);
|
|
2920
|
+
}
|
|
2921
|
+
function Ir() {
|
|
2922
|
+
let { matches: t, loaderData: n } = jr("useMatches");
|
|
2923
|
+
return e.useMemo(() => t.map((e) => _n(e, n)), [t, n]);
|
|
2924
|
+
}
|
|
2925
|
+
function Lr() {
|
|
2926
|
+
let t = e.useContext(cr), n = jr("useRouteError"), r = Nr("useRouteError");
|
|
2927
|
+
return t === void 0 ? n.errors?.[r] : t;
|
|
2928
|
+
}
|
|
2929
|
+
function Rr() {
|
|
2930
|
+
let { router: t } = Ar("useNavigate"), n = Nr("useNavigate"), r = e.useRef(!1);
|
|
2931
|
+
return _r(() => {
|
|
2932
|
+
r.current = !0;
|
|
2933
|
+
}), e.useCallback(async (e, i = {}) => {
|
|
2934
|
+
J(r.current, gr), r.current && (typeof e == "number" ? await t.navigate(e) : await t.navigate(e, {
|
|
2935
|
+
fromRouteId: n,
|
|
2936
|
+
...i
|
|
2937
|
+
}));
|
|
2938
|
+
}, [t, n]);
|
|
2939
|
+
}
|
|
2940
|
+
var zr = {};
|
|
2941
|
+
function Br(e, t, n) {
|
|
2942
|
+
!t && !zr[e] && (zr[e] = !0, J(!1, n));
|
|
2943
|
+
}
|
|
2944
|
+
e.memo(Vr);
|
|
2945
|
+
function Vr({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError: a }) {
|
|
2946
|
+
return xr(e, void 0, {
|
|
2947
|
+
manifest: t,
|
|
2948
|
+
state: r,
|
|
2949
|
+
isStatic: i,
|
|
2950
|
+
onError: a,
|
|
2951
|
+
future: n
|
|
2952
|
+
});
|
|
2953
|
+
}
|
|
2954
|
+
function Hr({ basename: t = "/", children: n = null, location: r, navigationType: i = "POP", navigator: a, static: o = !1, useTransitions: s }) {
|
|
2955
|
+
q(!hr(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
|
|
2956
|
+
let c = t.replace(/^\/*/, "/"), l = e.useMemo(() => ({
|
|
2957
|
+
basename: c,
|
|
2958
|
+
navigator: a,
|
|
2959
|
+
static: o,
|
|
2960
|
+
useTransitions: s,
|
|
2961
|
+
future: {}
|
|
2962
|
+
}), [
|
|
2963
|
+
c,
|
|
2964
|
+
a,
|
|
2965
|
+
o,
|
|
2966
|
+
s
|
|
2967
|
+
]);
|
|
2968
|
+
typeof r == "string" && (r = mn(r));
|
|
2969
|
+
let { pathname: u = "/", search: d = "", hash: f = "", state: p = null, key: m = "default", mask: h } = r, g = e.useMemo(() => {
|
|
2970
|
+
let e = Y(u, c);
|
|
2971
|
+
return e == null ? null : {
|
|
2972
|
+
location: {
|
|
2973
|
+
pathname: e,
|
|
2974
|
+
search: d,
|
|
2975
|
+
hash: f,
|
|
2976
|
+
state: p,
|
|
2977
|
+
key: m,
|
|
2978
|
+
mask: h
|
|
2979
|
+
},
|
|
2980
|
+
navigationType: i
|
|
2981
|
+
};
|
|
2982
|
+
}, [
|
|
2983
|
+
c,
|
|
2984
|
+
u,
|
|
2985
|
+
d,
|
|
2986
|
+
f,
|
|
2987
|
+
p,
|
|
2988
|
+
m,
|
|
2989
|
+
i,
|
|
2990
|
+
h
|
|
2991
|
+
]);
|
|
2992
|
+
return J(g != null, `<Router basename="${c}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`), g == null ? null : /* @__PURE__ */ e.createElement(Z.Provider, { value: l }, /* @__PURE__ */ e.createElement(sr.Provider, {
|
|
2993
|
+
children: n,
|
|
2994
|
+
value: g
|
|
2995
|
+
}));
|
|
2996
|
+
}
|
|
2997
|
+
e.Component;
|
|
2998
|
+
var Ur = "get", Wr = "application/x-www-form-urlencoded";
|
|
2999
|
+
function Gr(e) {
|
|
3000
|
+
return typeof HTMLElement < "u" && e instanceof HTMLElement;
|
|
3001
|
+
}
|
|
3002
|
+
function Kr(e) {
|
|
3003
|
+
return Gr(e) && e.tagName.toLowerCase() === "button";
|
|
3004
|
+
}
|
|
3005
|
+
function qr(e) {
|
|
3006
|
+
return Gr(e) && e.tagName.toLowerCase() === "form";
|
|
3007
|
+
}
|
|
3008
|
+
function Jr(e) {
|
|
3009
|
+
return Gr(e) && e.tagName.toLowerCase() === "input";
|
|
3010
|
+
}
|
|
3011
|
+
function Yr(e) {
|
|
3012
|
+
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
3013
|
+
}
|
|
3014
|
+
function Xr(e, t) {
|
|
3015
|
+
return e.button === 0 && (!t || t === "_self") && !Yr(e);
|
|
3016
|
+
}
|
|
3017
|
+
var Zr = null;
|
|
3018
|
+
function Qr() {
|
|
3019
|
+
if (Zr === null) try {
|
|
3020
|
+
new FormData(document.createElement("form"), 0), Zr = !1;
|
|
3021
|
+
} catch {
|
|
3022
|
+
Zr = !0;
|
|
3023
|
+
}
|
|
3024
|
+
return Zr;
|
|
3025
|
+
}
|
|
3026
|
+
var $r = /* @__PURE__ */ new Set([
|
|
3027
|
+
"application/x-www-form-urlencoded",
|
|
3028
|
+
"multipart/form-data",
|
|
3029
|
+
"text/plain"
|
|
3030
|
+
]);
|
|
3031
|
+
function ei(e) {
|
|
3032
|
+
return e != null && !$r.has(e) ? (J(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Wr}"`), null) : e;
|
|
3033
|
+
}
|
|
3034
|
+
function ti(e, t) {
|
|
3035
|
+
let n, r, i, a, o;
|
|
3036
|
+
if (qr(e)) {
|
|
3037
|
+
let o = e.getAttribute("action");
|
|
3038
|
+
r = o ? Y(o, t) : null, n = e.getAttribute("method") || Ur, i = ei(e.getAttribute("enctype")) || Wr, a = new FormData(e);
|
|
3039
|
+
} else if (Kr(e) || Jr(e) && (e.type === "submit" || e.type === "image")) {
|
|
3040
|
+
let o = e.form;
|
|
3041
|
+
if (o == null) throw Error("Cannot submit a <button> or <input type=\"submit\"> without a <form>");
|
|
3042
|
+
let s = e.getAttribute("formaction") || o.getAttribute("action");
|
|
3043
|
+
if (r = s ? Y(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") || Ur, i = ei(e.getAttribute("formenctype")) || ei(o.getAttribute("enctype")) || Wr, a = new FormData(o, e), !Qr()) {
|
|
3044
|
+
let { name: t, type: n, value: r } = e;
|
|
3045
|
+
if (n === "image") {
|
|
3046
|
+
let e = t ? `${t}.` : "";
|
|
3047
|
+
a.append(`${e}x`, "0"), a.append(`${e}y`, "0");
|
|
3048
|
+
} else t && a.append(t, r);
|
|
3049
|
+
}
|
|
3050
|
+
} else if (Gr(e)) throw Error("Cannot submit element that is not <form>, <button>, or <input type=\"submit|image\">");
|
|
3051
|
+
else n = Ur, r = null, i = Wr, o = e;
|
|
3052
|
+
return a && i === "text/plain" && (o = a, a = void 0), {
|
|
3053
|
+
action: r,
|
|
3054
|
+
method: n.toLowerCase(),
|
|
3055
|
+
encType: i,
|
|
3056
|
+
formData: a,
|
|
3057
|
+
body: o
|
|
3058
|
+
};
|
|
3059
|
+
}
|
|
3060
|
+
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
3061
|
+
var ni = {
|
|
3062
|
+
"&": "\\u0026",
|
|
3063
|
+
">": "\\u003e",
|
|
3064
|
+
"<": "\\u003c",
|
|
3065
|
+
"\u2028": "\\u2028",
|
|
3066
|
+
"\u2029": "\\u2029"
|
|
3067
|
+
}, ri = /[&><\u2028\u2029]/g;
|
|
3068
|
+
function ii(e) {
|
|
3069
|
+
return e.replace(ri, (e) => ni[e]);
|
|
3070
|
+
}
|
|
3071
|
+
function ai(e, t) {
|
|
3072
|
+
if (e === !1 || e == null) throw Error(t);
|
|
3073
|
+
}
|
|
3074
|
+
function oi(e, t, n, r) {
|
|
3075
|
+
let i = typeof e == "string" ? new URL(e, typeof window > "u" ? "server://singlefetch/" : window.location.origin) : e;
|
|
3076
|
+
return n ? i.pathname.endsWith("/") ? i.pathname = `${i.pathname}_.${r}` : i.pathname = `${i.pathname}.${r}` : i.pathname === "/" ? i.pathname = `_root.${r}` : t && Y(i.pathname, t) === "/" ? i.pathname = `${Un(t)}/_root.${r}` : i.pathname = `${Un(i.pathname)}.${r}`, i;
|
|
3077
|
+
}
|
|
3078
|
+
async function si(e, t) {
|
|
3079
|
+
if (e.id in t) return t[e.id];
|
|
3080
|
+
try {
|
|
3081
|
+
let n = await import(
|
|
3082
|
+
/* @vite-ignore */
|
|
3083
|
+
/* webpackIgnore: true */
|
|
3084
|
+
e.module
|
|
3085
|
+
);
|
|
3086
|
+
return t[e.id] = n, n;
|
|
3087
|
+
} catch (t) {
|
|
3088
|
+
return console.error(`Error loading route module \`${e.module}\`, reloading page...`), console.error(t), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {});
|
|
3089
|
+
}
|
|
3090
|
+
}
|
|
3091
|
+
function ci(e) {
|
|
3092
|
+
return e != null && typeof e.page == "string";
|
|
3093
|
+
}
|
|
3094
|
+
function li(e) {
|
|
3095
|
+
return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
|
|
3096
|
+
}
|
|
3097
|
+
async function ui(e, t, n) {
|
|
3098
|
+
return hi((await Promise.all(e.map(async (e) => {
|
|
3099
|
+
let r = t.routes[e.route.id];
|
|
3100
|
+
if (r) {
|
|
3101
|
+
let e = await si(r, n);
|
|
3102
|
+
return e.links ? e.links() : [];
|
|
3103
|
+
}
|
|
3104
|
+
return [];
|
|
3105
|
+
}))).flat(1).filter(li).filter((e) => e.rel === "stylesheet" || e.rel === "preload").map((e) => e.rel === "stylesheet" ? {
|
|
3106
|
+
...e,
|
|
3107
|
+
rel: "prefetch",
|
|
3108
|
+
as: "style"
|
|
3109
|
+
} : {
|
|
3110
|
+
...e,
|
|
3111
|
+
rel: "prefetch"
|
|
3112
|
+
}));
|
|
3113
|
+
}
|
|
3114
|
+
function di(e, t, n, r, i, a) {
|
|
3115
|
+
let o = (e, t) => n[t] ? e.route.id !== n[t].route.id : !0, s = (e, t) => n[t].pathname !== e.pathname || n[t].route.path?.endsWith("*") && n[t].params["*"] !== e.params["*"];
|
|
3116
|
+
return a === "assets" ? t.filter((e, t) => o(e, t) || s(e, t)) : a === "data" ? t.filter((t, a) => {
|
|
3117
|
+
let c = r.routes[t.route.id];
|
|
3118
|
+
if (!c || !c.hasLoader) return !1;
|
|
3119
|
+
if (o(t, a) || s(t, a)) return !0;
|
|
3120
|
+
if (t.route.shouldRevalidate) {
|
|
3121
|
+
let r = t.route.shouldRevalidate({
|
|
3122
|
+
currentUrl: new URL(i.pathname + i.search + i.hash, window.origin),
|
|
3123
|
+
currentParams: n[0]?.params || {},
|
|
3124
|
+
nextUrl: new URL(e, window.origin),
|
|
3125
|
+
nextParams: t.params,
|
|
3126
|
+
defaultShouldRevalidate: !0
|
|
3127
|
+
});
|
|
3128
|
+
if (typeof r == "boolean") return r;
|
|
3129
|
+
}
|
|
3130
|
+
return !0;
|
|
3131
|
+
}) : [];
|
|
3132
|
+
}
|
|
3133
|
+
function fi(e, t, { includeHydrateFallback: n } = {}) {
|
|
3134
|
+
return pi(e.map((e) => {
|
|
3135
|
+
let r = t.routes[e.route.id];
|
|
3136
|
+
if (!r) return [];
|
|
3137
|
+
let i = [r.module];
|
|
3138
|
+
return r.clientActionModule && (i = i.concat(r.clientActionModule)), r.clientLoaderModule && (i = i.concat(r.clientLoaderModule)), n && r.hydrateFallbackModule && (i = i.concat(r.hydrateFallbackModule)), r.imports && (i = i.concat(r.imports)), i;
|
|
3139
|
+
}).flat(1));
|
|
3140
|
+
}
|
|
3141
|
+
function pi(e) {
|
|
3142
|
+
return [...new Set(e)];
|
|
3143
|
+
}
|
|
3144
|
+
function mi(e) {
|
|
3145
|
+
let t = {}, n = Object.keys(e).sort();
|
|
3146
|
+
for (let r of n) t[r] = e[r];
|
|
3147
|
+
return t;
|
|
3148
|
+
}
|
|
3149
|
+
function hi(e, t) {
|
|
3150
|
+
let n = /* @__PURE__ */ new Set(), r = new Set(t);
|
|
3151
|
+
return e.reduce((e, i) => {
|
|
3152
|
+
if (t && !ci(i) && i.as === "script" && i.href && r.has(i.href)) return e;
|
|
3153
|
+
let a = JSON.stringify(mi(i));
|
|
3154
|
+
return n.has(a) || (n.add(a), e.push({
|
|
3155
|
+
key: a,
|
|
3156
|
+
link: i
|
|
3157
|
+
})), e;
|
|
3158
|
+
}, []);
|
|
3159
|
+
}
|
|
3160
|
+
function gi() {
|
|
3161
|
+
let t = e.useContext(er);
|
|
3162
|
+
return ai(t, "You must render this element inside a <DataRouterContext.Provider> element"), t;
|
|
3163
|
+
}
|
|
3164
|
+
function _i() {
|
|
3165
|
+
let t = e.useContext(tr);
|
|
3166
|
+
return ai(t, "You must render this element inside a <DataRouterStateContext.Provider> element"), t;
|
|
3167
|
+
}
|
|
3168
|
+
var vi = e.createContext(void 0);
|
|
3169
|
+
vi.displayName = "FrameworkContext";
|
|
3170
|
+
function yi() {
|
|
3171
|
+
let t = e.useContext(vi);
|
|
3172
|
+
return ai(t, "You must render this element inside a <HydratedRouter> element"), t;
|
|
3173
|
+
}
|
|
3174
|
+
function bi(t, n) {
|
|
3175
|
+
let r = e.useContext(vi), [i, a] = e.useState(!1), [o, s] = e.useState(!1), { onFocus: c, onBlur: l, onMouseEnter: u, onMouseLeave: d, onTouchStart: f } = n, p = e.useRef(null);
|
|
3176
|
+
e.useEffect(() => {
|
|
3177
|
+
if (t === "render" && s(!0), t === "viewport") {
|
|
3178
|
+
let e = new IntersectionObserver((e) => {
|
|
3179
|
+
e.forEach((e) => {
|
|
3180
|
+
s(e.isIntersecting);
|
|
3181
|
+
});
|
|
3182
|
+
}, { threshold: .5 });
|
|
3183
|
+
return p.current && e.observe(p.current), () => {
|
|
3184
|
+
e.disconnect();
|
|
3185
|
+
};
|
|
3186
|
+
}
|
|
3187
|
+
}, [t]), e.useEffect(() => {
|
|
3188
|
+
if (i) {
|
|
3189
|
+
let e = setTimeout(() => {
|
|
3190
|
+
s(!0);
|
|
3191
|
+
}, 100);
|
|
3192
|
+
return () => {
|
|
3193
|
+
clearTimeout(e);
|
|
3194
|
+
};
|
|
3195
|
+
}
|
|
3196
|
+
}, [i]);
|
|
3197
|
+
let m = () => {
|
|
3198
|
+
a(!0);
|
|
3199
|
+
}, h = () => {
|
|
3200
|
+
a(!1), s(!1);
|
|
3201
|
+
};
|
|
3202
|
+
return r ? t === "intent" ? [
|
|
3203
|
+
o,
|
|
3204
|
+
p,
|
|
3205
|
+
{
|
|
3206
|
+
onFocus: xi(c, m),
|
|
3207
|
+
onBlur: xi(l, h),
|
|
3208
|
+
onMouseEnter: xi(u, m),
|
|
3209
|
+
onMouseLeave: xi(d, h),
|
|
3210
|
+
onTouchStart: xi(f, m)
|
|
3211
|
+
}
|
|
3212
|
+
] : [
|
|
3213
|
+
o,
|
|
3214
|
+
p,
|
|
3215
|
+
{}
|
|
3216
|
+
] : [
|
|
3217
|
+
!1,
|
|
3218
|
+
p,
|
|
3219
|
+
{}
|
|
3220
|
+
];
|
|
3221
|
+
}
|
|
3222
|
+
function xi(e, t) {
|
|
3223
|
+
return (n) => {
|
|
3224
|
+
e && e(n), n.defaultPrevented || t(n);
|
|
3225
|
+
};
|
|
3226
|
+
}
|
|
3227
|
+
function Si({ page: t, ...n }) {
|
|
3228
|
+
let r = rr(), { router: i } = gi(), a = e.useMemo(() => hn(i.routes, t, i.basename), [
|
|
3229
|
+
i.routes,
|
|
3230
|
+
t,
|
|
3231
|
+
i.basename
|
|
3232
|
+
]);
|
|
3233
|
+
return a ? r ? /* @__PURE__ */ e.createElement(wi, {
|
|
3234
|
+
page: t,
|
|
3235
|
+
matches: a,
|
|
3236
|
+
...n
|
|
3237
|
+
}) : /* @__PURE__ */ e.createElement(Ti, {
|
|
3238
|
+
page: t,
|
|
3239
|
+
matches: a,
|
|
3240
|
+
...n
|
|
3241
|
+
}) : null;
|
|
3242
|
+
}
|
|
3243
|
+
function Ci(t) {
|
|
3244
|
+
let { manifest: n, routeModules: r } = yi(), [i, a] = e.useState([]);
|
|
3245
|
+
return e.useEffect(() => {
|
|
3246
|
+
let e = !1;
|
|
3247
|
+
return ui(t, n, r).then((t) => {
|
|
3248
|
+
e || a(t);
|
|
3249
|
+
}), () => {
|
|
3250
|
+
e = !0;
|
|
3251
|
+
};
|
|
3252
|
+
}, [
|
|
3253
|
+
t,
|
|
3254
|
+
n,
|
|
3255
|
+
r
|
|
3256
|
+
]), i;
|
|
3257
|
+
}
|
|
3258
|
+
function wi({ page: t, matches: n, ...r }) {
|
|
3259
|
+
let i = $(), { future: a } = yi(), { basename: o } = gi(), s = e.useMemo(() => {
|
|
3260
|
+
if (t === i.pathname + i.search + i.hash) return [];
|
|
3261
|
+
let e = oi(t, o, a.v8_trailingSlashAwareDataRequests, "rsc"), r = !1, s = [];
|
|
3262
|
+
for (let e of n) typeof e.route.shouldRevalidate == "function" ? r = !0 : s.push(e.route.id);
|
|
3263
|
+
return r && s.length > 0 && e.searchParams.set("_routes", s.join(",")), [e.pathname + e.search];
|
|
3264
|
+
}, [
|
|
3265
|
+
o,
|
|
3266
|
+
a.v8_trailingSlashAwareDataRequests,
|
|
3267
|
+
t,
|
|
3268
|
+
i,
|
|
3269
|
+
n
|
|
3270
|
+
]);
|
|
3271
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, s.map((t) => /* @__PURE__ */ e.createElement("link", {
|
|
3272
|
+
key: t,
|
|
3273
|
+
rel: "prefetch",
|
|
3274
|
+
as: "fetch",
|
|
3275
|
+
href: t,
|
|
3276
|
+
...r
|
|
3277
|
+
})));
|
|
3278
|
+
}
|
|
3279
|
+
function Ti({ page: t, matches: n, ...r }) {
|
|
3280
|
+
let i = $(), { future: a, manifest: o, routeModules: s } = yi(), { basename: c } = gi(), { loaderData: l, matches: u } = _i(), d = e.useMemo(() => di(t, n, u, o, i, "data"), [
|
|
3281
|
+
t,
|
|
3282
|
+
n,
|
|
3283
|
+
u,
|
|
3284
|
+
o,
|
|
3285
|
+
i
|
|
3286
|
+
]), f = e.useMemo(() => di(t, n, u, o, i, "assets"), [
|
|
3287
|
+
t,
|
|
3288
|
+
n,
|
|
3289
|
+
u,
|
|
3290
|
+
o,
|
|
3291
|
+
i
|
|
3292
|
+
]), p = e.useMemo(() => {
|
|
3293
|
+
if (t === i.pathname + i.search + i.hash) return [];
|
|
3294
|
+
let e = /* @__PURE__ */ new Set(), r = !1;
|
|
3295
|
+
if (n.forEach((t) => {
|
|
3296
|
+
let n = o.routes[t.route.id];
|
|
3297
|
+
!n || !n.hasLoader || (!d.some((e) => e.route.id === t.route.id) && t.route.id in l && s[t.route.id]?.shouldRevalidate || n.hasClientLoader ? r = !0 : e.add(t.route.id));
|
|
3298
|
+
}), e.size === 0) return [];
|
|
3299
|
+
let u = oi(t, c, a.v8_trailingSlashAwareDataRequests, "data");
|
|
3300
|
+
return r && e.size > 0 && u.searchParams.set("_routes", n.filter((t) => e.has(t.route.id)).map((e) => e.route.id).join(",")), [u.pathname + u.search];
|
|
3301
|
+
}, [
|
|
3302
|
+
c,
|
|
3303
|
+
a.v8_trailingSlashAwareDataRequests,
|
|
3304
|
+
l,
|
|
3305
|
+
i,
|
|
3306
|
+
o,
|
|
3307
|
+
d,
|
|
3308
|
+
n,
|
|
3309
|
+
t,
|
|
3310
|
+
s
|
|
3311
|
+
]), m = e.useMemo(() => fi(f, o), [f, o]), h = Ci(f);
|
|
3312
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, p.map((t) => /* @__PURE__ */ e.createElement("link", {
|
|
3313
|
+
key: t,
|
|
3314
|
+
rel: "prefetch",
|
|
3315
|
+
as: "fetch",
|
|
3316
|
+
href: t,
|
|
3317
|
+
...r
|
|
3318
|
+
})), m.map((t) => /* @__PURE__ */ e.createElement("link", {
|
|
3319
|
+
key: t,
|
|
3320
|
+
rel: "modulepreload",
|
|
3321
|
+
href: t,
|
|
3322
|
+
...r
|
|
3323
|
+
})), h.map(({ key: t, link: n }) => /* @__PURE__ */ e.createElement("link", {
|
|
3324
|
+
key: t,
|
|
3325
|
+
nonce: r.nonce,
|
|
3326
|
+
...n,
|
|
3327
|
+
crossOrigin: n.crossOrigin ?? r.crossOrigin
|
|
3328
|
+
})));
|
|
3329
|
+
}
|
|
3330
|
+
function Ei(...e) {
|
|
3331
|
+
return (t) => {
|
|
3332
|
+
e.forEach((e) => {
|
|
3333
|
+
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
3334
|
+
});
|
|
3335
|
+
};
|
|
3336
|
+
}
|
|
3337
|
+
e.Component;
|
|
3338
|
+
var Di = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
|
|
3339
|
+
try {
|
|
3340
|
+
Di && (window.__reactRouterVersion = "7.16.0");
|
|
3341
|
+
} catch {}
|
|
3342
|
+
function Oi({ basename: t, children: n, history: r, useTransitions: i }) {
|
|
3343
|
+
let [a, o] = e.useState({
|
|
3344
|
+
action: r.action,
|
|
3345
|
+
location: r.location
|
|
3346
|
+
}), s = e.useCallback((t) => {
|
|
3347
|
+
i === !1 ? o(t) : e.startTransition(() => o(t));
|
|
3348
|
+
}, [i]);
|
|
3349
|
+
return e.useLayoutEffect(() => r.listen(s), [r, s]), /* @__PURE__ */ e.createElement(Hr, {
|
|
3350
|
+
basename: t,
|
|
3351
|
+
children: n,
|
|
3352
|
+
location: a.location,
|
|
3353
|
+
navigationType: a.action,
|
|
3354
|
+
navigator: r,
|
|
3355
|
+
useTransitions: i
|
|
3356
|
+
});
|
|
3357
|
+
}
|
|
3358
|
+
Oi.displayName = "unstable_HistoryRouter";
|
|
3359
|
+
var ki = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ai = e.forwardRef(function({ onClick: t, discover: n = "render", prefetch: r = "none", relative: i, reloadDocument: a, replace: o, mask: s, state: c, target: l, to: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) {
|
|
3360
|
+
let { basename: g, navigator: _, useTransitions: v } = e.useContext(Z), y = typeof u == "string" && ki.test(u), b = Zn(u, g);
|
|
3361
|
+
u = b.to;
|
|
3362
|
+
let x = mr(u, { relative: i }), S = $(), C = null;
|
|
3363
|
+
if (s) {
|
|
3364
|
+
let e = Vn(s, [], S.mask ? S.mask.pathname : "/", !0);
|
|
3365
|
+
g !== "/" && (e.pathname = e.pathname === "/" ? g : X([g, e.pathname])), C = _.createHref(e);
|
|
3366
|
+
}
|
|
3367
|
+
let [w, T, E] = bi(r, m), ee = Li(u, {
|
|
3368
|
+
replace: o,
|
|
3369
|
+
mask: s,
|
|
3370
|
+
state: c,
|
|
3371
|
+
target: l,
|
|
3372
|
+
preventScrollReset: d,
|
|
3373
|
+
relative: i,
|
|
3374
|
+
viewTransition: f,
|
|
3375
|
+
defaultShouldRevalidate: p,
|
|
3376
|
+
useTransitions: v
|
|
3377
|
+
});
|
|
3378
|
+
function te(e) {
|
|
3379
|
+
t && t(e), e.defaultPrevented || ee(e);
|
|
3380
|
+
}
|
|
3381
|
+
let ne = !(b.isExternal || a), D = /* @__PURE__ */ e.createElement("a", {
|
|
3382
|
+
...m,
|
|
3383
|
+
...E,
|
|
3384
|
+
href: (ne ? C : void 0) || b.absoluteURL || x,
|
|
3385
|
+
onClick: ne ? te : t,
|
|
3386
|
+
ref: Ei(h, T),
|
|
3387
|
+
target: l,
|
|
3388
|
+
"data-discover": !y && n === "render" ? "true" : void 0
|
|
3389
|
+
});
|
|
3390
|
+
return w && !y ? /* @__PURE__ */ e.createElement(e.Fragment, null, D, /* @__PURE__ */ e.createElement(Si, { page: x })) : D;
|
|
3391
|
+
});
|
|
3392
|
+
Ai.displayName = "Link";
|
|
3393
|
+
var ji = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n = !1, className: r = "", end: i = !1, style: a, to: o, viewTransition: s, children: c, ...l }, u) {
|
|
3394
|
+
let d = br(o, { relative: l.relative }), f = $(), p = e.useContext(tr), { navigator: m, basename: h } = e.useContext(Z), g = p != null && qi(d) && s === !0, _ = m.encodeLocation ? m.encodeLocation(d).pathname : d.pathname, v = f.pathname, y = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
|
|
3395
|
+
n || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && h && (y = Y(y, h) || y);
|
|
3396
|
+
let b = _ !== "/" && _.endsWith("/") ? _.length - 1 : _.length, x = v === _ || !i && v.startsWith(_) && v.charAt(b) === "/", S = y != null && (y === _ || !i && y.startsWith(_) && y.charAt(_.length) === "/"), C = {
|
|
3397
|
+
isActive: x,
|
|
3398
|
+
isPending: S,
|
|
3399
|
+
isTransitioning: g
|
|
3400
|
+
}, w = x ? t : void 0, T;
|
|
3401
|
+
T = typeof r == "function" ? r(C) : [
|
|
3402
|
+
r,
|
|
3403
|
+
x ? "active" : null,
|
|
3404
|
+
S ? "pending" : null,
|
|
3405
|
+
g ? "transitioning" : null
|
|
3406
|
+
].filter(Boolean).join(" ");
|
|
3407
|
+
let E = typeof a == "function" ? a(C) : a;
|
|
3408
|
+
return /* @__PURE__ */ e.createElement(Ai, {
|
|
3409
|
+
...l,
|
|
3410
|
+
"aria-current": w,
|
|
3411
|
+
className: T,
|
|
3412
|
+
ref: u,
|
|
3413
|
+
style: E,
|
|
3414
|
+
to: o,
|
|
3415
|
+
viewTransition: s
|
|
3416
|
+
}, typeof c == "function" ? c(C) : c);
|
|
3417
|
+
});
|
|
3418
|
+
ji.displayName = "NavLink";
|
|
3419
|
+
var Mi = e.forwardRef(({ discover: t = "render", fetcherKey: n, navigate: r, reloadDocument: i, replace: a, state: o, method: s = Ur, action: c, onSubmit: l, relative: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) => {
|
|
3420
|
+
let { useTransitions: g } = e.useContext(Z), _ = Bi(), v = Vi(c, { relative: u }), y = s.toLowerCase() === "get" ? "get" : "post", b = typeof c == "string" && ki.test(c);
|
|
3421
|
+
return /* @__PURE__ */ e.createElement("form", {
|
|
3422
|
+
ref: h,
|
|
3423
|
+
method: y,
|
|
3424
|
+
action: v,
|
|
3425
|
+
onSubmit: i ? l : (t) => {
|
|
3426
|
+
if (l && l(t), t.defaultPrevented) return;
|
|
3427
|
+
t.preventDefault();
|
|
3428
|
+
let i = t.nativeEvent.submitter, c = i?.getAttribute("formmethod") || s, m = () => _(i || t.currentTarget, {
|
|
3429
|
+
fetcherKey: n,
|
|
3430
|
+
method: c,
|
|
3431
|
+
navigate: r,
|
|
3432
|
+
replace: a,
|
|
3433
|
+
state: o,
|
|
3434
|
+
relative: u,
|
|
3435
|
+
preventScrollReset: d,
|
|
3436
|
+
viewTransition: f,
|
|
3437
|
+
defaultShouldRevalidate: p
|
|
3438
|
+
});
|
|
3439
|
+
g && r !== !1 ? e.startTransition(() => m()) : m();
|
|
3440
|
+
},
|
|
3441
|
+
...m,
|
|
3442
|
+
"data-discover": !b && t === "render" ? "true" : void 0
|
|
3443
|
+
});
|
|
3444
|
+
});
|
|
3445
|
+
Mi.displayName = "Form";
|
|
3446
|
+
function Ni({ getKey: t, storageKey: n, ...r }) {
|
|
3447
|
+
let i = e.useContext(vi), { basename: a } = e.useContext(Z), o = $(), s = Ir();
|
|
3448
|
+
Gi({
|
|
3449
|
+
getKey: t,
|
|
3450
|
+
storageKey: n
|
|
3451
|
+
});
|
|
3452
|
+
let c = e.useMemo(() => {
|
|
3453
|
+
if (!i || !t) return null;
|
|
3454
|
+
let e = Wi(o, s, a, t);
|
|
3455
|
+
return e === o.key ? null : e;
|
|
3456
|
+
}, []);
|
|
3457
|
+
if (!i || i.isSpaMode) return null;
|
|
3458
|
+
let l = ((e, t) => {
|
|
3459
|
+
if (!window.history.state || !window.history.state.key) {
|
|
3460
|
+
let e = Math.random().toString(32).slice(2);
|
|
3461
|
+
window.history.replaceState({ key: e }, "");
|
|
3462
|
+
}
|
|
3463
|
+
try {
|
|
3464
|
+
let n = JSON.parse(sessionStorage.getItem(e) || "{}")[t || window.history.state.key];
|
|
3465
|
+
typeof n == "number" && window.scrollTo(0, n);
|
|
3466
|
+
} catch (t) {
|
|
3467
|
+
console.error(t), sessionStorage.removeItem(e);
|
|
3468
|
+
}
|
|
3469
|
+
}).toString();
|
|
3470
|
+
return /* @__PURE__ */ e.createElement("script", {
|
|
3471
|
+
...r,
|
|
3472
|
+
suppressHydrationWarning: !0,
|
|
3473
|
+
dangerouslySetInnerHTML: { __html: `(${l})(${ii(JSON.stringify(n || Hi))}, ${ii(JSON.stringify(c))})` }
|
|
3474
|
+
});
|
|
3475
|
+
}
|
|
3476
|
+
Ni.displayName = "ScrollRestoration";
|
|
3477
|
+
function Pi(e) {
|
|
3478
|
+
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
3479
|
+
}
|
|
3480
|
+
function Fi(t) {
|
|
3481
|
+
let n = e.useContext(er);
|
|
3482
|
+
return q(n, Pi(t)), n;
|
|
3483
|
+
}
|
|
3484
|
+
function Ii(t) {
|
|
3485
|
+
let n = e.useContext(tr);
|
|
3486
|
+
return q(n, Pi(t)), n;
|
|
3487
|
+
}
|
|
3488
|
+
function Li(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: o, relative: s, viewTransition: c, defaultShouldRevalidate: l, useTransitions: u } = {}) {
|
|
3489
|
+
let d = vr(), f = $(), p = br(t, { relative: s });
|
|
3490
|
+
return e.useCallback((m) => {
|
|
3491
|
+
if (Xr(m, n)) {
|
|
3492
|
+
m.preventDefault();
|
|
3493
|
+
let n = r === void 0 ? pn(f) === pn(p) : r, h = () => d(t, {
|
|
3494
|
+
replace: n,
|
|
3495
|
+
mask: i,
|
|
3496
|
+
state: a,
|
|
3497
|
+
preventScrollReset: o,
|
|
3498
|
+
relative: s,
|
|
3499
|
+
viewTransition: c,
|
|
3500
|
+
defaultShouldRevalidate: l
|
|
3501
|
+
});
|
|
3502
|
+
u ? e.startTransition(() => h()) : h();
|
|
3503
|
+
}
|
|
3504
|
+
}, [
|
|
3505
|
+
f,
|
|
3506
|
+
d,
|
|
3507
|
+
p,
|
|
3508
|
+
r,
|
|
3509
|
+
i,
|
|
3510
|
+
a,
|
|
3511
|
+
n,
|
|
3512
|
+
t,
|
|
3513
|
+
o,
|
|
3514
|
+
s,
|
|
3515
|
+
c,
|
|
3516
|
+
l,
|
|
3517
|
+
u
|
|
3518
|
+
]);
|
|
3519
|
+
}
|
|
3520
|
+
var Ri = 0, zi = () => `__${String(++Ri)}__`;
|
|
3521
|
+
function Bi() {
|
|
3522
|
+
let { router: t } = Fi("useSubmit"), { basename: n } = e.useContext(Z), r = Pr(), i = t.fetch, a = t.navigate;
|
|
3523
|
+
return e.useCallback(async (e, t = {}) => {
|
|
3524
|
+
let { action: o, method: s, encType: c, formData: l, body: u } = ti(e, n);
|
|
3525
|
+
t.navigate === !1 ? await i(t.fetcherKey || zi(), r, t.action || o, {
|
|
3526
|
+
defaultShouldRevalidate: t.defaultShouldRevalidate,
|
|
3527
|
+
preventScrollReset: t.preventScrollReset,
|
|
3528
|
+
formData: l,
|
|
3529
|
+
body: u,
|
|
3530
|
+
formMethod: t.method || s,
|
|
3531
|
+
formEncType: t.encType || c,
|
|
3532
|
+
flushSync: t.flushSync
|
|
3533
|
+
}) : await a(t.action || o, {
|
|
3534
|
+
defaultShouldRevalidate: t.defaultShouldRevalidate,
|
|
3535
|
+
preventScrollReset: t.preventScrollReset,
|
|
3536
|
+
formData: l,
|
|
3537
|
+
body: u,
|
|
3538
|
+
formMethod: t.method || s,
|
|
3539
|
+
formEncType: t.encType || c,
|
|
3540
|
+
replace: t.replace,
|
|
3541
|
+
state: t.state,
|
|
3542
|
+
fromRouteId: r,
|
|
3543
|
+
flushSync: t.flushSync,
|
|
3544
|
+
viewTransition: t.viewTransition
|
|
3545
|
+
});
|
|
3546
|
+
}, [
|
|
3547
|
+
i,
|
|
3548
|
+
a,
|
|
3549
|
+
n,
|
|
3550
|
+
r
|
|
3551
|
+
]);
|
|
3552
|
+
}
|
|
3553
|
+
function Vi(t, { relative: n } = {}) {
|
|
3554
|
+
let { basename: r } = e.useContext(Z), i = e.useContext(Q);
|
|
3555
|
+
q(i, "useFormAction must be used inside a RouteContext");
|
|
3556
|
+
let [a] = i.matches.slice(-1), o = { ...br(t || ".", { relative: n }) }, s = $();
|
|
3557
|
+
if (t == null) {
|
|
3558
|
+
o.search = s.search;
|
|
3559
|
+
let e = new URLSearchParams(o.search), t = e.getAll("index");
|
|
3560
|
+
if (t.some((e) => e === "")) {
|
|
3561
|
+
e.delete("index"), t.filter((e) => e).forEach((t) => e.append("index", t));
|
|
3562
|
+
let n = e.toString();
|
|
3563
|
+
o.search = n ? `?${n}` : "";
|
|
3564
|
+
}
|
|
3565
|
+
}
|
|
3566
|
+
return (!t || t === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (o.pathname = o.pathname === "/" ? r : X([r, o.pathname])), pn(o);
|
|
3567
|
+
}
|
|
3568
|
+
var Hi = "react-router-scroll-positions", Ui = {};
|
|
3569
|
+
function Wi(e, t, n, r) {
|
|
3570
|
+
let i = null;
|
|
3571
|
+
return r && (i = r(n === "/" ? e : {
|
|
3572
|
+
...e,
|
|
3573
|
+
pathname: Y(e.pathname, n) || e.pathname
|
|
3574
|
+
}, t)), i ??= e.key, i;
|
|
3575
|
+
}
|
|
3576
|
+
function Gi({ getKey: t, storageKey: n } = {}) {
|
|
3577
|
+
let { router: r } = Fi("useScrollRestoration"), { restoreScrollPosition: i, preventScrollReset: a } = Ii("useScrollRestoration"), { basename: o } = e.useContext(Z), s = $(), c = Ir(), l = Fr();
|
|
3578
|
+
e.useEffect(() => (window.history.scrollRestoration = "manual", () => {
|
|
3579
|
+
window.history.scrollRestoration = "auto";
|
|
3580
|
+
}), []), Ki(e.useCallback(() => {
|
|
3581
|
+
if (l.state === "idle") {
|
|
3582
|
+
let e = Wi(s, c, o, t);
|
|
3583
|
+
Ui[e] = window.scrollY;
|
|
3584
|
+
}
|
|
3585
|
+
try {
|
|
3586
|
+
sessionStorage.setItem(n || Hi, JSON.stringify(Ui));
|
|
3587
|
+
} catch (e) {
|
|
3588
|
+
J(!1, `Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`);
|
|
3589
|
+
}
|
|
3590
|
+
window.history.scrollRestoration = "auto";
|
|
3591
|
+
}, [
|
|
3592
|
+
l.state,
|
|
3593
|
+
t,
|
|
3594
|
+
o,
|
|
3595
|
+
s,
|
|
3596
|
+
c,
|
|
3597
|
+
n
|
|
3598
|
+
])), typeof document < "u" && (e.useLayoutEffect(() => {
|
|
3599
|
+
try {
|
|
3600
|
+
let e = sessionStorage.getItem(n || Hi);
|
|
3601
|
+
e && (Ui = JSON.parse(e));
|
|
3602
|
+
} catch {}
|
|
3603
|
+
}, [n]), e.useLayoutEffect(() => {
|
|
3604
|
+
let e = r?.enableScrollRestoration(Ui, () => window.scrollY, t ? (e, n) => Wi(e, n, o, t) : void 0);
|
|
3605
|
+
return () => e && e();
|
|
3606
|
+
}, [
|
|
3607
|
+
r,
|
|
3608
|
+
o,
|
|
3609
|
+
t
|
|
3610
|
+
]), e.useLayoutEffect(() => {
|
|
3611
|
+
if (i !== !1) {
|
|
3612
|
+
if (typeof i == "number") {
|
|
3613
|
+
window.scrollTo(0, i);
|
|
3614
|
+
return;
|
|
3615
|
+
}
|
|
3616
|
+
try {
|
|
3617
|
+
if (s.hash) {
|
|
3618
|
+
let e = document.getElementById(decodeURIComponent(s.hash.slice(1)));
|
|
3619
|
+
if (e) {
|
|
3620
|
+
e.scrollIntoView();
|
|
3621
|
+
return;
|
|
3622
|
+
}
|
|
3623
|
+
}
|
|
3624
|
+
} catch {
|
|
3625
|
+
J(!1, `"${s.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`);
|
|
3626
|
+
}
|
|
3627
|
+
a !== !0 && window.scrollTo(0, 0);
|
|
3628
|
+
}
|
|
3629
|
+
}, [
|
|
3630
|
+
s,
|
|
3631
|
+
i,
|
|
3632
|
+
a
|
|
3633
|
+
]));
|
|
3634
|
+
}
|
|
3635
|
+
function Ki(t, n) {
|
|
3636
|
+
let { capture: r } = n || {};
|
|
3637
|
+
e.useEffect(() => {
|
|
3638
|
+
let e = r == null ? void 0 : { capture: r };
|
|
3639
|
+
return window.addEventListener("pagehide", t, e), () => {
|
|
3640
|
+
window.removeEventListener("pagehide", t, e);
|
|
3641
|
+
};
|
|
3642
|
+
}, [t, r]);
|
|
3643
|
+
}
|
|
3644
|
+
function qi(t, { relative: n } = {}) {
|
|
3645
|
+
let r = e.useContext(ir);
|
|
3646
|
+
q(r != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
|
|
3647
|
+
let { basename: i } = Fi("useViewTransitionState"), a = br(t, { relative: n });
|
|
3648
|
+
if (!r.isTransitioning) return !1;
|
|
3649
|
+
let o = Y(r.currentLocation.pathname, i) || r.currentLocation.pathname, s = Y(r.nextLocation.pathname, i) || r.nextLocation.pathname;
|
|
3650
|
+
return Mn(a.pathname, s) != null || Mn(a.pathname, o) != null;
|
|
3651
|
+
}
|
|
3652
|
+
//#endregion
|
|
3653
|
+
//#region src/hooks/use-screen-lifecycle.tsx
|
|
3654
|
+
function Ji(e) {
|
|
3655
|
+
return typeof e == "object" && !!e && "shouldRefresh" in e && !!e.shouldRefresh;
|
|
3656
|
+
}
|
|
3657
|
+
function Yi({ init: e, refresh: t, onDisposed: n }) {
|
|
3658
|
+
let r = $(), a = vr();
|
|
3659
|
+
i(() => {
|
|
3660
|
+
if (Ji(r.state)) {
|
|
3661
|
+
t(), a(r.pathname, {
|
|
3662
|
+
replace: !0,
|
|
3663
|
+
state: {}
|
|
3664
|
+
});
|
|
3665
|
+
return;
|
|
3666
|
+
}
|
|
3667
|
+
e();
|
|
3668
|
+
}, [
|
|
3669
|
+
r.key,
|
|
3670
|
+
r.pathname,
|
|
3671
|
+
r.state,
|
|
3672
|
+
a,
|
|
3673
|
+
e,
|
|
3674
|
+
t
|
|
3675
|
+
]), i(() => () => n(), [n]);
|
|
3676
|
+
}
|
|
3677
|
+
//#endregion
|
|
2370
3678
|
//#region src/utils/firestore.ts
|
|
2371
|
-
function
|
|
3679
|
+
function Xi(e) {
|
|
2372
3680
|
return {
|
|
2373
3681
|
...e.data(),
|
|
2374
3682
|
id: e.id
|
|
2375
3683
|
};
|
|
2376
3684
|
}
|
|
2377
|
-
async function
|
|
3685
|
+
async function Zi(e, t, n, r) {
|
|
2378
3686
|
let i = r.filter((e) => !!(e && !n.has(e.path)));
|
|
2379
3687
|
for (let r = 0; r < i.length; r += 30) {
|
|
2380
3688
|
let a = i.slice(r, r + 30);
|
|
2381
|
-
(await
|
|
3689
|
+
(await y(x(e, C(_(), "in", a.map((e) => e.id))))).forEach((e) => {
|
|
2382
3690
|
let r = t(e);
|
|
2383
3691
|
n.set(e.ref.path, r);
|
|
2384
3692
|
});
|
|
2385
3693
|
}
|
|
2386
3694
|
}
|
|
2387
|
-
async function
|
|
3695
|
+
async function Qi(e, t, n) {
|
|
2388
3696
|
let r = n.filter((e) => !!(e && !t.has(e.path)));
|
|
2389
3697
|
await Promise.all(r.map(async (n) => {
|
|
2390
|
-
let r = e(await
|
|
3698
|
+
let r = e(await v(n));
|
|
2391
3699
|
t.set(n.path, r);
|
|
2392
3700
|
}));
|
|
2393
3701
|
}
|
|
2394
|
-
function
|
|
3702
|
+
function $i(e = {}) {
|
|
2395
3703
|
let { cache: t = !0, includeMetadataChanges: n } = e;
|
|
2396
3704
|
return {
|
|
2397
3705
|
listenOptions: { includeMetadataChanges: n ?? !t },
|
|
2398
3706
|
cache: t
|
|
2399
3707
|
};
|
|
2400
3708
|
}
|
|
2401
|
-
function
|
|
3709
|
+
function ea(e, t) {
|
|
2402
3710
|
return t !== !1 || !e;
|
|
2403
3711
|
}
|
|
2404
|
-
function
|
|
2405
|
-
let { listenOptions: r, cache: i } =
|
|
2406
|
-
return e.type,
|
|
2407
|
-
|
|
3712
|
+
function ta(e, t, n = {}) {
|
|
3713
|
+
let { listenOptions: r, cache: i } = $i(n), { onError: a } = n;
|
|
3714
|
+
return e.type, b(e, r, (e) => {
|
|
3715
|
+
ea(e.metadata.fromCache, i) && t(e);
|
|
2408
3716
|
}, a);
|
|
2409
3717
|
}
|
|
2410
3718
|
//#endregion
|
|
2411
3719
|
//#region src/utils/array.ts
|
|
2412
|
-
function
|
|
3720
|
+
function na(e, t) {
|
|
2413
3721
|
return e.flatMap((e, n) => {
|
|
2414
3722
|
let r = t(e, n);
|
|
2415
3723
|
return r == null ? [] : [r];
|
|
@@ -2417,41 +3725,41 @@ function dn(e, t) {
|
|
|
2417
3725
|
}
|
|
2418
3726
|
//#endregion
|
|
2419
3727
|
//#region src/utils/platform.ts
|
|
2420
|
-
function
|
|
3728
|
+
function ra() {
|
|
2421
3729
|
if (typeof window > "u") return "pc";
|
|
2422
3730
|
let e = navigator.userAgent, t = navigator.platform, n = /Android/i.test(e), r = /iPhone|iPad|iPod/i.test(e) || t === "MacIntel" && navigator.maxTouchPoints > 1;
|
|
2423
3731
|
return n ? "android" : r ? "ios" : "pc";
|
|
2424
3732
|
}
|
|
2425
3733
|
//#endregion
|
|
2426
3734
|
//#region src/utils/zustand.tsx
|
|
2427
|
-
function
|
|
2428
|
-
let
|
|
2429
|
-
function i({ children:
|
|
2430
|
-
let [i] =
|
|
2431
|
-
return /* @__PURE__ */
|
|
3735
|
+
function ia(e) {
|
|
3736
|
+
let n = t(null);
|
|
3737
|
+
function i({ children: t, ...r }) {
|
|
3738
|
+
let [i] = o(() => e(r));
|
|
3739
|
+
return /* @__PURE__ */ u(n.Provider, {
|
|
2432
3740
|
value: i,
|
|
2433
|
-
children:
|
|
3741
|
+
children: t
|
|
2434
3742
|
});
|
|
2435
3743
|
}
|
|
2436
|
-
function
|
|
2437
|
-
let t = n
|
|
3744
|
+
function a(e) {
|
|
3745
|
+
let t = r(n);
|
|
2438
3746
|
if (!t) throw Error("Provider가 필요합니다.");
|
|
2439
|
-
return
|
|
3747
|
+
return w(t, e);
|
|
2440
3748
|
}
|
|
2441
3749
|
let s = /* @__PURE__ */ new Map();
|
|
2442
3750
|
return {
|
|
2443
3751
|
Provider: i,
|
|
2444
|
-
useStore:
|
|
2445
|
-
use: new Proxy({}, { get: (e, t) => (s.has(t) || s.set(t, () =>
|
|
3752
|
+
useStore: a,
|
|
3753
|
+
use: new Proxy({}, { get: (e, t) => (s.has(t) || s.set(t, () => a((e) => e[t])), s.get(t)) })
|
|
2446
3754
|
};
|
|
2447
3755
|
}
|
|
2448
3756
|
//#endregion
|
|
2449
3757
|
//#region node_modules/dayjs/dayjs.min.js
|
|
2450
|
-
var
|
|
3758
|
+
var aa = /* @__PURE__ */ ie(((e, t) => {
|
|
2451
3759
|
(function(n, r) {
|
|
2452
3760
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
2453
3761
|
})(e, (function() {
|
|
2454
|
-
var e = 1e3, t = 6e4, n = 36e5, r = "millisecond", i = "second", a = "minute", o = "hour", s = "day", c = "week", l = "month", u = "quarter", d = "year", f = "date", p = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, h = /\[([^\]]+)]|
|
|
3762
|
+
var e = 1e3, t = 6e4, n = 36e5, r = "millisecond", i = "second", a = "minute", o = "hour", s = "day", c = "week", l = "month", u = "quarter", d = "year", f = "date", p = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, h = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, g = {
|
|
2455
3763
|
name: "en",
|
|
2456
3764
|
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
2457
3765
|
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
@@ -2721,8 +4029,8 @@ var mn = /* @__PURE__ */ j(((e, t) => {
|
|
|
2721
4029
|
}, _.toString = function() {
|
|
2722
4030
|
return this.$d.toUTCString();
|
|
2723
4031
|
}, g;
|
|
2724
|
-
}(),
|
|
2725
|
-
return w.prototype =
|
|
4032
|
+
}(), ee = E.prototype;
|
|
4033
|
+
return w.prototype = ee, [
|
|
2726
4034
|
["$ms", r],
|
|
2727
4035
|
["$s", i],
|
|
2728
4036
|
["$m", a],
|
|
@@ -2732,7 +4040,7 @@ var mn = /* @__PURE__ */ j(((e, t) => {
|
|
|
2732
4040
|
["$y", d],
|
|
2733
4041
|
["$D", f]
|
|
2734
4042
|
].forEach((function(e) {
|
|
2735
|
-
|
|
4043
|
+
ee[e[1]] = function(t) {
|
|
2736
4044
|
return this.$g(t, e[0], e[1]);
|
|
2737
4045
|
};
|
|
2738
4046
|
})), w.extend = function(e, t) {
|
|
@@ -2741,9 +4049,9 @@ var mn = /* @__PURE__ */ j(((e, t) => {
|
|
|
2741
4049
|
return w(1e3 * e);
|
|
2742
4050
|
}, w.en = b[y], w.Ls = b, w.p = {}, w;
|
|
2743
4051
|
}));
|
|
2744
|
-
})),
|
|
4052
|
+
})), oa = /* @__PURE__ */ ie(((e, t) => {
|
|
2745
4053
|
(function(n, r) {
|
|
2746
|
-
typeof e == "object" && t !== void 0 ? t.exports = r(
|
|
4054
|
+
typeof e == "object" && t !== void 0 ? t.exports = r(aa()) : typeof define == "function" && define.amd ? define(["dayjs"], r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_locale_ko = r(n.dayjs);
|
|
2747
4055
|
})(e, (function(e) {
|
|
2748
4056
|
function t(e) {
|
|
2749
4057
|
return e && typeof e == "object" && "default" in e ? e : { default: e };
|
|
@@ -2791,7 +4099,7 @@ var mn = /* @__PURE__ */ j(((e, t) => {
|
|
|
2791
4099
|
};
|
|
2792
4100
|
return n.default.locale(r, null, !0), r;
|
|
2793
4101
|
}));
|
|
2794
|
-
})),
|
|
4102
|
+
})), sa = /* @__PURE__ */ ie(((e, t) => {
|
|
2795
4103
|
(function(n, r) {
|
|
2796
4104
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_locale_en = r();
|
|
2797
4105
|
})(e, (function() {
|
|
@@ -2810,54 +4118,54 @@ var mn = /* @__PURE__ */ j(((e, t) => {
|
|
|
2810
4118
|
}
|
|
2811
4119
|
};
|
|
2812
4120
|
}));
|
|
2813
|
-
})),
|
|
2814
|
-
|
|
2815
|
-
function
|
|
2816
|
-
let r = (0,
|
|
4121
|
+
})), ca = /* @__PURE__ */ ae(aa(), 1);
|
|
4122
|
+
oa(), sa();
|
|
4123
|
+
function la(e, t, n) {
|
|
4124
|
+
let r = (0, ca.default)(e);
|
|
2817
4125
|
return !e || !r.isValid() ? "" : r.format(n(t));
|
|
2818
4126
|
}
|
|
2819
|
-
function
|
|
2820
|
-
let { t: e } =
|
|
2821
|
-
return
|
|
2822
|
-
basicDateTimeFormat: (t, n) =>
|
|
2823
|
-
dateTimeFormat: (t) =>
|
|
2824
|
-
dateFormat: (t) =>
|
|
2825
|
-
timeFormat: (t) =>
|
|
4127
|
+
function ua() {
|
|
4128
|
+
let { t: e } = f();
|
|
4129
|
+
return a(() => ({
|
|
4130
|
+
basicDateTimeFormat: (t, n) => la(t, n, e),
|
|
4131
|
+
dateTimeFormat: (t) => la(t, "libs:datetime.date_time_format", e),
|
|
4132
|
+
dateFormat: (t) => la(t, "libs:datetime.date_format", e),
|
|
4133
|
+
timeFormat: (t) => la(t, "libs:datetime.time_format", e)
|
|
2826
4134
|
}), [e]);
|
|
2827
4135
|
}
|
|
2828
|
-
function
|
|
2829
|
-
let t = (0,
|
|
4136
|
+
function da(e) {
|
|
4137
|
+
let t = (0, ca.default)(e);
|
|
2830
4138
|
return t.isValid() ? t.format("YYYYMMDD") : "";
|
|
2831
4139
|
}
|
|
2832
|
-
function
|
|
2833
|
-
let t = (0,
|
|
4140
|
+
function fa(e) {
|
|
4141
|
+
let t = (0, ca.default)(e);
|
|
2834
4142
|
return t.isValid() ? t.format("HH:mm") : "";
|
|
2835
4143
|
}
|
|
2836
|
-
var
|
|
4144
|
+
var pa = (e) => {
|
|
2837
4145
|
let t = e?.split("-")[0] === "ko" ? "ko" : "en";
|
|
2838
|
-
|
|
4146
|
+
ca.default.locale(t);
|
|
2839
4147
|
};
|
|
2840
|
-
|
|
4148
|
+
T.isInitialized && pa(T.resolvedLanguage || T.language), T.on("languageChanged", pa);
|
|
2841
4149
|
//#endregion
|
|
2842
4150
|
//#region src/utils/file.ts
|
|
2843
|
-
function
|
|
4151
|
+
function ma(e) {
|
|
2844
4152
|
let t = e.lastIndexOf(".");
|
|
2845
4153
|
return t === -1 ? "" : e.substring(t + 1);
|
|
2846
4154
|
}
|
|
2847
4155
|
//#endregion
|
|
2848
4156
|
//#region src/utils/fb-storage.ts
|
|
2849
|
-
async function
|
|
4157
|
+
async function ha(e, t, n) {
|
|
2850
4158
|
if (!n.file) return n.url;
|
|
2851
4159
|
try {
|
|
2852
|
-
let r =
|
|
2853
|
-
return await
|
|
4160
|
+
let r = ma(n.file.name);
|
|
4161
|
+
return await E((await te(ee(e, r ? t + "." + r : t), n.file, { contentType: n.file.type })).ref);
|
|
2854
4162
|
} catch (e) {
|
|
2855
4163
|
throw console.error("Firebase image upload failed:", e), e;
|
|
2856
4164
|
}
|
|
2857
4165
|
}
|
|
2858
4166
|
//#endregion
|
|
2859
4167
|
//#region src/utils/table.ts
|
|
2860
|
-
function
|
|
4168
|
+
function ga(e, t, n, r) {
|
|
2861
4169
|
let i = /* @__PURE__ */ new Map(), a = [];
|
|
2862
4170
|
for (let n of e) i.set(t(n), {
|
|
2863
4171
|
...n,
|
|
@@ -2876,39 +4184,39 @@ function Tn(e, t, n, r) {
|
|
|
2876
4184
|
}
|
|
2877
4185
|
//#endregion
|
|
2878
4186
|
//#region src/utils/theme-provider.tsx
|
|
2879
|
-
var
|
|
4187
|
+
var _a = t({
|
|
2880
4188
|
theme: "system",
|
|
2881
4189
|
resolvedTheme: "light",
|
|
2882
4190
|
setTheme: () => null
|
|
2883
|
-
}),
|
|
4191
|
+
}), va = (e) => e === "light" || e === "dark" || e === "system", ya = (e, t, n) => {
|
|
2884
4192
|
let r = localStorage.getItem(e);
|
|
2885
4193
|
if (!r) return t;
|
|
2886
4194
|
try {
|
|
2887
4195
|
let i = JSON.parse(r);
|
|
2888
|
-
if (
|
|
4196
|
+
if (va(i)) return i;
|
|
2889
4197
|
if (i && typeof i == "object" && "theme" in i && "time" in i) {
|
|
2890
4198
|
let r = i;
|
|
2891
|
-
if (!
|
|
4199
|
+
if (!va(r.theme) || typeof r.time != "number") return t;
|
|
2892
4200
|
let a = Date.now(), o = n * 60 * 60 * 1e3;
|
|
2893
4201
|
return a - r.time < o ? r.theme : (localStorage.removeItem(e), t);
|
|
2894
4202
|
}
|
|
2895
4203
|
} catch {
|
|
2896
|
-
if (
|
|
4204
|
+
if (va(r)) return r;
|
|
2897
4205
|
}
|
|
2898
4206
|
return t;
|
|
2899
4207
|
};
|
|
2900
|
-
function
|
|
2901
|
-
let [s, c] =
|
|
2902
|
-
|
|
4208
|
+
function ba({ children: e, defaultTheme: t = "system", storageKey: n = "vite-ui-theme", themeExpiryHours: r = 24 }) {
|
|
4209
|
+
let [s, c] = o(() => ya(n, t, r)), [l, d] = o(() => window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), f = s === "system" ? l : s;
|
|
4210
|
+
i(() => {
|
|
2903
4211
|
let e = window.matchMedia("(prefers-color-scheme: dark)"), t = (e) => {
|
|
2904
4212
|
d(e.matches ? "dark" : "light");
|
|
2905
4213
|
};
|
|
2906
4214
|
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
2907
|
-
}, []),
|
|
4215
|
+
}, []), i(() => {
|
|
2908
4216
|
let e = window.document.documentElement, t = f === "dark" ? "dark" : "light";
|
|
2909
4217
|
e.classList.remove("light", "dark"), e.classList.add(t);
|
|
2910
4218
|
}, [f]);
|
|
2911
|
-
let p =
|
|
4219
|
+
let p = a(() => ({
|
|
2912
4220
|
theme: s,
|
|
2913
4221
|
resolvedTheme: f,
|
|
2914
4222
|
setTheme: (e) => {
|
|
@@ -2923,39 +4231,39 @@ function kn({ children: e, defaultTheme: t = "system", storageKey: n = "vite-ui-
|
|
|
2923
4231
|
f,
|
|
2924
4232
|
n
|
|
2925
4233
|
]);
|
|
2926
|
-
return /* @__PURE__ */
|
|
4234
|
+
return /* @__PURE__ */ u(_a.Provider, {
|
|
2927
4235
|
value: p,
|
|
2928
4236
|
children: e
|
|
2929
4237
|
});
|
|
2930
4238
|
}
|
|
2931
|
-
var
|
|
4239
|
+
var xa = () => r(_a);
|
|
2932
4240
|
//#endregion
|
|
2933
4241
|
//#region src/utils/text.ts
|
|
2934
|
-
function
|
|
4242
|
+
function Sa(e) {
|
|
2935
4243
|
let t = e.trimEnd(), n = t.length === 0 ? null : t[t.length - 1];
|
|
2936
4244
|
return !n || n.charCodeAt(0) < 44032 || n.charCodeAt(0) > 55203 ? !1 : (n.charCodeAt(0) - 44032) % 28 != 0;
|
|
2937
4245
|
}
|
|
2938
|
-
function
|
|
2939
|
-
return e + (
|
|
4246
|
+
function Ca(e, t, n) {
|
|
4247
|
+
return e + (Sa(e) ? t : n);
|
|
2940
4248
|
}
|
|
2941
4249
|
//#endregion
|
|
2942
4250
|
//#region src/constant/firestore.ts
|
|
2943
|
-
var
|
|
2944
|
-
updateAt:
|
|
4251
|
+
var wa = () => ({
|
|
4252
|
+
updateAt: S(),
|
|
2945
4253
|
delete: !0
|
|
2946
|
-
}),
|
|
2947
|
-
updateAt:
|
|
4254
|
+
}), Ta = () => ({
|
|
4255
|
+
updateAt: S(),
|
|
2948
4256
|
delete: !1
|
|
2949
|
-
}),
|
|
2950
|
-
updateAt:
|
|
2951
|
-
deletedAt:
|
|
2952
|
-
}),
|
|
2953
|
-
updateAt:
|
|
4257
|
+
}), Ea = () => ({
|
|
4258
|
+
updateAt: S(),
|
|
4259
|
+
deletedAt: S()
|
|
4260
|
+
}), Da = () => ({
|
|
4261
|
+
updateAt: S(),
|
|
2954
4262
|
deletedAt: null
|
|
2955
4263
|
});
|
|
2956
4264
|
//#endregion
|
|
2957
4265
|
//#region src/constant/auth.ts
|
|
2958
|
-
function
|
|
4266
|
+
function Oa(e) {
|
|
2959
4267
|
switch (e) {
|
|
2960
4268
|
case "auth/user-not-found": return "libs:auth.errors.user_not_found";
|
|
2961
4269
|
case "auth/wrong-password": return "libs:auth.errors.wrong_password";
|
|
@@ -2977,7 +4285,7 @@ function Ln(e) {
|
|
|
2977
4285
|
default: return "libs:auth.errors.default";
|
|
2978
4286
|
}
|
|
2979
4287
|
}
|
|
2980
|
-
var
|
|
4288
|
+
var ka = {
|
|
2981
4289
|
add_assets: "애셋 추가",
|
|
2982
4290
|
auth: { errors: {
|
|
2983
4291
|
account_exists_with_different_credential: "이미 다른 로그인 방식으로 가입된 이메일이에요. 기존 방식으로 로그인해 주세요.",
|
|
@@ -3015,7 +4323,7 @@ var Rn = {
|
|
|
3015
4323
|
quite_warning_desc: "변경된 모든 사항을 취소하고 이전 화면으로 돌아갑니다.",
|
|
3016
4324
|
time: "시각",
|
|
3017
4325
|
unknown_error_occurred: "알 수 없는 오류가 발생했습니다."
|
|
3018
|
-
},
|
|
4326
|
+
}, Aa = {
|
|
3019
4327
|
add_assets: "Add Assets",
|
|
3020
4328
|
auth: { errors: {
|
|
3021
4329
|
account_exists_with_different_credential: "This email is already linked to another sign-in method. Please use that method to sign in.",
|
|
@@ -3056,12 +4364,12 @@ var Rn = {
|
|
|
3056
4364
|
};
|
|
3057
4365
|
//#endregion
|
|
3058
4366
|
//#region src/locales/i18n.ts
|
|
3059
|
-
function
|
|
3060
|
-
e.hasResourceBundle("ko", "libs") || e.addResourceBundle("ko", "libs",
|
|
4367
|
+
function ja(e) {
|
|
4368
|
+
e.hasResourceBundle("ko", "libs") || e.addResourceBundle("ko", "libs", ka, !0, !1), e.hasResourceBundle("en", "libs") || e.addResourceBundle("en", "libs", Aa, !0, !1);
|
|
3061
4369
|
}
|
|
3062
4370
|
//#endregion
|
|
3063
4371
|
//#region src/css/toast.ts
|
|
3064
|
-
var
|
|
4372
|
+
var Ma = {
|
|
3065
4373
|
Info: {
|
|
3066
4374
|
Soft: {
|
|
3067
4375
|
"--normal-bg": "color-mix(in oklab, light-dark(var(--color-sky-600), var(--color-sky-400)) 10%, var(--background))",
|
|
@@ -3130,7 +4438,7 @@ var Vn = {
|
|
|
3130
4438
|
"--normal-border": "transparent"
|
|
3131
4439
|
}
|
|
3132
4440
|
}
|
|
3133
|
-
},
|
|
4441
|
+
}, Na = {
|
|
3134
4442
|
initial: {
|
|
3135
4443
|
opacity: 0,
|
|
3136
4444
|
y: -10
|
|
@@ -3143,11 +4451,11 @@ var Vn = {
|
|
|
3143
4451
|
opacity: 0,
|
|
3144
4452
|
y: -10
|
|
3145
4453
|
}
|
|
3146
|
-
},
|
|
4454
|
+
}, Pa = {
|
|
3147
4455
|
initial: { opacity: 0 },
|
|
3148
4456
|
animate: { opacity: 1 },
|
|
3149
4457
|
exit: { opacity: 0 },
|
|
3150
4458
|
transition: { duration: .3 }
|
|
3151
4459
|
};
|
|
3152
4460
|
//#endregion
|
|
3153
|
-
export {
|
|
4461
|
+
export { ln as AnimatedSwapIcon, un as BaseDateTimeSelector, dn as BaseDeleteAlertDialog, fn as BaseRouterPromptAlertDialog, oe as CrossfadeImage, on as DataTable, Ae as DefaultCalendar, Te as DefaultDialogContent, Oe as DefaultDialogDescription, ke as DefaultDialogFooter, Ee as DefaultDialogHeader, we as DefaultDialogRoot, De as DefaultDialogTitle, je as DefaultFieldGroup, Me as DefaultInputGroup, Pe as DefaultInputGroupAddon, Ne as DefaultInputGroupInput, ve as DefaultTable, be as DefaultTableBody, Ce as DefaultTableCell, Se as DefaultTableHead, ye as DefaultTableHeader, xe as DefaultTableRow, Fe as DefaultTimeIcon, sn as GroupedDataTable, Ie as ImageUploadField, _e as ImageUploadItem, Le as ImageUploadSortableField, ge as Localized, pe as SUPPORTED_LOCALES, ba as ThemeProvider, Ma as ToastCSS, ga as buildTreeWithSubRows, ia as createZustandContext, da as dateIdFormat, Ea as delItem, wa as delItemLegacy, Pa as fadeProps, Zi as fetchItems, Qi as fetchItemsByOne, Oa as getAuthErrorKey, ma as getFileExtension, ra as getPlatformType, ta as getSnapshots, Sa as hasLastConsonant, ja as initIenlabI18n, na as mapNotNull, he as setLocalizedLocaleResolver, Na as slideFadeProps, Xi as snapshotToData, fa as time24Format, Da as undelItem, Ta as undelItemLegacy, ha as uploadImage, ua as useDateTimeFormatters, Yi as useListScreenLifecycle, xa as useTheme, Ca as withLetterParticle };
|