@attraccess/plugins-frontend-ui 1.6.0 → 1.8.1
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/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import t, { createContext as n, createElement as r, forwardRef as i, useCallback as a, useContext as o, useEffect as s, useMemo as c, useRef as l, useState as u } from "react";
|
|
3
|
-
import { Avatar as d, AvatarFallback as f, AvatarImage as p,
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { useResourcesServiceGetAllResources as
|
|
3
|
+
import { Avatar as d, AvatarFallback as f, AvatarImage as p, Button as m, Checkbox as h, ComboBox as g, Input as _, InputGroup as v, Label as y, ListBox as b, ListBoxItem as x, Popover as S, Spinner as C, TableBody as w, TableCell as T, TableColumn as E, TableContent as ee, TableHeader as te, TableRoot as ne, TableRow as re, TableScrollContainer as ie, TextField as ae } from "@heroui/react";
|
|
4
|
+
import { jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
5
|
+
import { useResourcesServiceGetAllResources as oe, useUsersServiceFindMany as se, useUsersServiceGetOneUserById as ce } from "@attraccess/react-query-client";
|
|
6
6
|
//#region \0rolldown/runtime.js
|
|
7
|
-
var
|
|
8
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
7
|
+
var le = Object.create, ue = Object.defineProperty, de = Object.getOwnPropertyDescriptor, fe = Object.getOwnPropertyNames, pe = Object.getPrototypeOf, me = Object.prototype.hasOwnProperty, k = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), he = (e, t, n, r) => {
|
|
8
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = fe(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !me.call(e, s) && s !== n && ue(e, s, {
|
|
9
9
|
get: ((e) => t[e]).bind(null, s),
|
|
10
|
-
enumerable: !(r =
|
|
10
|
+
enumerable: !(r = de(t, s)) || r.enumerable
|
|
11
11
|
});
|
|
12
12
|
return e;
|
|
13
|
-
},
|
|
13
|
+
}, ge = (e, t, n) => (n = e == null ? {} : le(pe(e)), he(t || !e || !e.__esModule ? ue(n, "default", {
|
|
14
14
|
value: e,
|
|
15
15
|
enumerable: !0
|
|
16
|
-
}) : n, e)),
|
|
16
|
+
}) : n, e)), _e = (e) => {
|
|
17
17
|
let t, n = /* @__PURE__ */ new Set(), r = (e, r) => {
|
|
18
18
|
let i = typeof e == "function" ? e(t) : e;
|
|
19
19
|
if (!Object.is(i, t)) {
|
|
@@ -27,93 +27,93 @@ var se = Object.create, ce = Object.defineProperty, le = Object.getOwnPropertyDe
|
|
|
27
27
|
subscribe: (e) => (n.add(e), () => n.delete(e))
|
|
28
28
|
}, o = t = e(r, i, a);
|
|
29
29
|
return a;
|
|
30
|
-
},
|
|
31
|
-
function
|
|
30
|
+
}, ve = ((e) => e ? _e(e) : _e), ye = (e) => e;
|
|
31
|
+
function be(e, n = ye) {
|
|
32
32
|
let r = t.useSyncExternalStore(e.subscribe, t.useCallback(() => n(e.getState()), [e, n]), t.useCallback(() => n(e.getInitialState()), [e, n]));
|
|
33
33
|
return t.useDebugValue(r), r;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
36
|
-
let t =
|
|
35
|
+
var xe = (e) => {
|
|
36
|
+
let t = ve(e), n = (e) => be(t, e);
|
|
37
37
|
return Object.assign(n, t), n;
|
|
38
|
-
},
|
|
39
|
-
function
|
|
40
|
-
var t =
|
|
38
|
+
}, Se = ((e) => e ? xe(e) : xe), Ce = typeof global == "object" && global && global.Object === Object && global, we = typeof self == "object" && self && self.Object === Object && self, Te = Ce || we || Function("return this")(), A = Te.Symbol, Ee = Object.prototype, De = Ee.hasOwnProperty, Oe = Ee.toString, j = A ? A.toStringTag : void 0;
|
|
39
|
+
function ke(e) {
|
|
40
|
+
var t = De.call(e, j), n = e[j];
|
|
41
41
|
try {
|
|
42
|
-
e[
|
|
42
|
+
e[j] = void 0;
|
|
43
43
|
var r = !0;
|
|
44
44
|
} catch {}
|
|
45
|
-
var i =
|
|
46
|
-
return r && (t ? e[
|
|
45
|
+
var i = Oe.call(e);
|
|
46
|
+
return r && (t ? e[j] = n : delete e[j]), i;
|
|
47
47
|
}
|
|
48
48
|
//#endregion
|
|
49
49
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
|
|
50
|
-
var
|
|
51
|
-
function
|
|
52
|
-
return
|
|
50
|
+
var Ae = Object.prototype.toString;
|
|
51
|
+
function je(e) {
|
|
52
|
+
return Ae.call(e);
|
|
53
53
|
}
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
|
|
56
|
-
var
|
|
57
|
-
function
|
|
58
|
-
return e == null ? e === void 0 ?
|
|
56
|
+
var Me = "[object Null]", Ne = "[object Undefined]", Pe = A ? A.toStringTag : void 0;
|
|
57
|
+
function Fe(e) {
|
|
58
|
+
return e == null ? e === void 0 ? Ne : Me : Pe && Pe in Object(e) ? ke(e) : je(e);
|
|
59
59
|
}
|
|
60
60
|
//#endregion
|
|
61
61
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
|
|
62
|
-
function
|
|
62
|
+
function Ie(e) {
|
|
63
63
|
return typeof e == "object" && !!e;
|
|
64
64
|
}
|
|
65
65
|
//#endregion
|
|
66
66
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
|
|
67
|
-
var
|
|
68
|
-
function
|
|
69
|
-
return typeof e == "symbol" ||
|
|
67
|
+
var Le = "[object Symbol]";
|
|
68
|
+
function Re(e) {
|
|
69
|
+
return typeof e == "symbol" || Ie(e) && Fe(e) == Le;
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
72
72
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js
|
|
73
|
-
function
|
|
73
|
+
function ze(e, t) {
|
|
74
74
|
for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
|
|
75
75
|
return i;
|
|
76
76
|
}
|
|
77
77
|
//#endregion
|
|
78
78
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
|
|
79
|
-
var
|
|
80
|
-
function
|
|
79
|
+
var Be = Array.isArray, Ve = Infinity, He = A ? A.prototype : void 0, Ue = He ? He.toString : void 0;
|
|
80
|
+
function We(e) {
|
|
81
81
|
if (typeof e == "string") return e;
|
|
82
|
-
if (
|
|
83
|
-
if (
|
|
82
|
+
if (Be(e)) return ze(e, We) + "";
|
|
83
|
+
if (Re(e)) return Ue ? Ue.call(e) : "";
|
|
84
84
|
var t = e + "";
|
|
85
|
-
return t == "0" && 1 / e == -
|
|
85
|
+
return t == "0" && 1 / e == -Ve ? "-0" : t;
|
|
86
86
|
}
|
|
87
87
|
//#endregion
|
|
88
88
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
|
|
89
|
-
function
|
|
89
|
+
function Ge(e) {
|
|
90
90
|
var t = typeof e;
|
|
91
91
|
return e != null && (t == "object" || t == "function");
|
|
92
92
|
}
|
|
93
93
|
//#endregion
|
|
94
94
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js
|
|
95
|
-
var
|
|
96
|
-
function
|
|
97
|
-
if (!
|
|
98
|
-
var t =
|
|
99
|
-
return t ==
|
|
95
|
+
var Ke = "[object AsyncFunction]", qe = "[object Function]", Je = "[object GeneratorFunction]", Ye = "[object Proxy]";
|
|
96
|
+
function Xe(e) {
|
|
97
|
+
if (!Ge(e)) return !1;
|
|
98
|
+
var t = Fe(e);
|
|
99
|
+
return t == qe || t == Je || t == Ke || t == Ye;
|
|
100
100
|
}
|
|
101
101
|
//#endregion
|
|
102
102
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js
|
|
103
|
-
var
|
|
104
|
-
var e = /[^.]+$/.exec(
|
|
103
|
+
var Ze = Te["__core-js_shared__"], Qe = function() {
|
|
104
|
+
var e = /[^.]+$/.exec(Ze && Ze.keys && Ze.keys.IE_PROTO || "");
|
|
105
105
|
return e ? "Symbol(src)_1." + e : "";
|
|
106
106
|
}();
|
|
107
|
-
function
|
|
108
|
-
return !!
|
|
107
|
+
function $e(e) {
|
|
108
|
+
return !!Qe && Qe in e;
|
|
109
109
|
}
|
|
110
110
|
//#endregion
|
|
111
111
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js
|
|
112
|
-
var
|
|
113
|
-
function
|
|
112
|
+
var et = Function.prototype.toString;
|
|
113
|
+
function tt(e) {
|
|
114
114
|
if (e != null) {
|
|
115
115
|
try {
|
|
116
|
-
return
|
|
116
|
+
return et.call(e);
|
|
117
117
|
} catch {}
|
|
118
118
|
try {
|
|
119
119
|
return e + "";
|
|
@@ -123,249 +123,249 @@ function $e(e) {
|
|
|
123
123
|
}
|
|
124
124
|
//#endregion
|
|
125
125
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js
|
|
126
|
-
var
|
|
127
|
-
function
|
|
128
|
-
return !
|
|
126
|
+
var nt = /[\\^$.*+?()[\]{}|]/g, rt = /^\[object .+?Constructor\]$/, it = Function.prototype, at = Object.prototype, ot = it.toString, st = at.hasOwnProperty, ct = RegExp("^" + ot.call(st).replace(nt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
127
|
+
function lt(e) {
|
|
128
|
+
return !Ge(e) || $e(e) ? !1 : (Xe(e) ? ct : rt).test(tt(e));
|
|
129
129
|
}
|
|
130
130
|
//#endregion
|
|
131
131
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js
|
|
132
|
-
function
|
|
132
|
+
function ut(e, t) {
|
|
133
133
|
return e?.[t];
|
|
134
134
|
}
|
|
135
135
|
//#endregion
|
|
136
136
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js
|
|
137
|
-
function
|
|
138
|
-
var n =
|
|
139
|
-
return
|
|
137
|
+
function dt(e, t) {
|
|
138
|
+
var n = ut(e, t);
|
|
139
|
+
return lt(n) ? n : void 0;
|
|
140
140
|
}
|
|
141
141
|
//#endregion
|
|
142
142
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.js
|
|
143
|
-
function
|
|
143
|
+
function ft(e, t) {
|
|
144
144
|
return e === t || e !== e && t !== t;
|
|
145
145
|
}
|
|
146
146
|
//#endregion
|
|
147
147
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js
|
|
148
|
-
var
|
|
149
|
-
function
|
|
150
|
-
if (
|
|
148
|
+
var pt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, mt = /^\w*$/;
|
|
149
|
+
function ht(e, t) {
|
|
150
|
+
if (Be(e)) return !1;
|
|
151
151
|
var n = typeof e;
|
|
152
|
-
return n == "number" || n == "symbol" || n == "boolean" || e == null ||
|
|
152
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || Re(e) ? !0 : mt.test(e) || !pt.test(e) || t != null && e in Object(t);
|
|
153
153
|
}
|
|
154
154
|
//#endregion
|
|
155
155
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js
|
|
156
|
-
var
|
|
156
|
+
var M = dt(Object, "create");
|
|
157
157
|
//#endregion
|
|
158
158
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js
|
|
159
|
-
function
|
|
160
|
-
this.__data__ =
|
|
159
|
+
function gt() {
|
|
160
|
+
this.__data__ = M ? M(null) : {}, this.size = 0;
|
|
161
161
|
}
|
|
162
162
|
//#endregion
|
|
163
163
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js
|
|
164
|
-
function
|
|
164
|
+
function _t(e) {
|
|
165
165
|
var t = this.has(e) && delete this.__data__[e];
|
|
166
166
|
return this.size -= +!!t, t;
|
|
167
167
|
}
|
|
168
168
|
//#endregion
|
|
169
169
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js
|
|
170
|
-
var
|
|
171
|
-
function
|
|
170
|
+
var vt = "__lodash_hash_undefined__", yt = Object.prototype.hasOwnProperty;
|
|
171
|
+
function bt(e) {
|
|
172
172
|
var t = this.__data__;
|
|
173
|
-
if (
|
|
173
|
+
if (M) {
|
|
174
174
|
var n = t[e];
|
|
175
|
-
return n ===
|
|
175
|
+
return n === vt ? void 0 : n;
|
|
176
176
|
}
|
|
177
|
-
return
|
|
177
|
+
return yt.call(t, e) ? t[e] : void 0;
|
|
178
178
|
}
|
|
179
179
|
//#endregion
|
|
180
180
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js
|
|
181
|
-
var
|
|
182
|
-
function
|
|
181
|
+
var xt = Object.prototype.hasOwnProperty;
|
|
182
|
+
function St(e) {
|
|
183
183
|
var t = this.__data__;
|
|
184
|
-
return
|
|
184
|
+
return M ? t[e] !== void 0 : xt.call(t, e);
|
|
185
185
|
}
|
|
186
186
|
//#endregion
|
|
187
187
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js
|
|
188
|
-
var
|
|
189
|
-
function
|
|
188
|
+
var Ct = "__lodash_hash_undefined__";
|
|
189
|
+
function wt(e, t) {
|
|
190
190
|
var n = this.__data__;
|
|
191
|
-
return this.size += +!this.has(e), n[e] =
|
|
191
|
+
return this.size += +!this.has(e), n[e] = M && t === void 0 ? Ct : t, this;
|
|
192
192
|
}
|
|
193
193
|
//#endregion
|
|
194
194
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js
|
|
195
|
-
function
|
|
195
|
+
function N(e) {
|
|
196
196
|
var t = -1, n = e == null ? 0 : e.length;
|
|
197
197
|
for (this.clear(); ++t < n;) {
|
|
198
198
|
var r = e[t];
|
|
199
199
|
this.set(r[0], r[1]);
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
|
|
202
|
+
N.prototype.clear = gt, N.prototype.delete = _t, N.prototype.get = bt, N.prototype.has = St, N.prototype.set = wt;
|
|
203
203
|
//#endregion
|
|
204
204
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js
|
|
205
|
-
function
|
|
205
|
+
function Tt() {
|
|
206
206
|
this.__data__ = [], this.size = 0;
|
|
207
207
|
}
|
|
208
208
|
//#endregion
|
|
209
209
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js
|
|
210
|
-
function
|
|
211
|
-
for (var n = e.length; n--;) if (
|
|
210
|
+
function Et(e, t) {
|
|
211
|
+
for (var n = e.length; n--;) if (ft(e[n][0], t)) return n;
|
|
212
212
|
return -1;
|
|
213
213
|
}
|
|
214
214
|
//#endregion
|
|
215
215
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js
|
|
216
|
-
var
|
|
217
|
-
function
|
|
218
|
-
var t = this.__data__, n =
|
|
219
|
-
return n < 0 ? !1 : (n == t.length - 1 ? t.pop() :
|
|
216
|
+
var Dt = Array.prototype.splice;
|
|
217
|
+
function Ot(e) {
|
|
218
|
+
var t = this.__data__, n = Et(t, e);
|
|
219
|
+
return n < 0 ? !1 : (n == t.length - 1 ? t.pop() : Dt.call(t, n, 1), --this.size, !0);
|
|
220
220
|
}
|
|
221
221
|
//#endregion
|
|
222
222
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js
|
|
223
|
-
function
|
|
224
|
-
var t = this.__data__, n =
|
|
223
|
+
function kt(e) {
|
|
224
|
+
var t = this.__data__, n = Et(t, e);
|
|
225
225
|
return n < 0 ? void 0 : t[n][1];
|
|
226
226
|
}
|
|
227
227
|
//#endregion
|
|
228
228
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js
|
|
229
|
-
function
|
|
230
|
-
return
|
|
229
|
+
function At(e) {
|
|
230
|
+
return Et(this.__data__, e) > -1;
|
|
231
231
|
}
|
|
232
232
|
//#endregion
|
|
233
233
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js
|
|
234
|
-
function
|
|
235
|
-
var n = this.__data__, r =
|
|
234
|
+
function jt(e, t) {
|
|
235
|
+
var n = this.__data__, r = Et(n, e);
|
|
236
236
|
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
237
237
|
}
|
|
238
238
|
//#endregion
|
|
239
239
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js
|
|
240
|
-
function
|
|
240
|
+
function P(e) {
|
|
241
241
|
var t = -1, n = e == null ? 0 : e.length;
|
|
242
242
|
for (this.clear(); ++t < n;) {
|
|
243
243
|
var r = e[t];
|
|
244
244
|
this.set(r[0], r[1]);
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
|
-
|
|
247
|
+
P.prototype.clear = Tt, P.prototype.delete = Ot, P.prototype.get = kt, P.prototype.has = At, P.prototype.set = jt;
|
|
248
248
|
//#endregion
|
|
249
249
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.js
|
|
250
|
-
var
|
|
250
|
+
var Mt = dt(Te, "Map");
|
|
251
251
|
//#endregion
|
|
252
252
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js
|
|
253
|
-
function
|
|
253
|
+
function Nt() {
|
|
254
254
|
this.size = 0, this.__data__ = {
|
|
255
|
-
hash: new
|
|
256
|
-
map: new (
|
|
257
|
-
string: new
|
|
255
|
+
hash: new N(),
|
|
256
|
+
map: new (Mt || P)(),
|
|
257
|
+
string: new N()
|
|
258
258
|
};
|
|
259
259
|
}
|
|
260
260
|
//#endregion
|
|
261
261
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js
|
|
262
|
-
function
|
|
262
|
+
function Pt(e) {
|
|
263
263
|
var t = typeof e;
|
|
264
264
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
265
265
|
}
|
|
266
266
|
//#endregion
|
|
267
267
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js
|
|
268
|
-
function
|
|
268
|
+
function Ft(e, t) {
|
|
269
269
|
var n = e.__data__;
|
|
270
|
-
return
|
|
270
|
+
return Pt(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
271
271
|
}
|
|
272
272
|
//#endregion
|
|
273
273
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js
|
|
274
|
-
function
|
|
275
|
-
var t =
|
|
274
|
+
function It(e) {
|
|
275
|
+
var t = Ft(this, e).delete(e);
|
|
276
276
|
return this.size -= +!!t, t;
|
|
277
277
|
}
|
|
278
278
|
//#endregion
|
|
279
279
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js
|
|
280
|
-
function
|
|
281
|
-
return
|
|
280
|
+
function Lt(e) {
|
|
281
|
+
return Ft(this, e).get(e);
|
|
282
282
|
}
|
|
283
283
|
//#endregion
|
|
284
284
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js
|
|
285
|
-
function
|
|
286
|
-
return
|
|
285
|
+
function Rt(e) {
|
|
286
|
+
return Ft(this, e).has(e);
|
|
287
287
|
}
|
|
288
288
|
//#endregion
|
|
289
289
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js
|
|
290
|
-
function
|
|
291
|
-
var n =
|
|
290
|
+
function zt(e, t) {
|
|
291
|
+
var n = Ft(this, e), r = n.size;
|
|
292
292
|
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
293
293
|
}
|
|
294
294
|
//#endregion
|
|
295
295
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js
|
|
296
|
-
function
|
|
296
|
+
function F(e) {
|
|
297
297
|
var t = -1, n = e == null ? 0 : e.length;
|
|
298
298
|
for (this.clear(); ++t < n;) {
|
|
299
299
|
var r = e[t];
|
|
300
300
|
this.set(r[0], r[1]);
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
|
-
|
|
303
|
+
F.prototype.clear = Nt, F.prototype.delete = It, F.prototype.get = Lt, F.prototype.has = Rt, F.prototype.set = zt;
|
|
304
304
|
//#endregion
|
|
305
305
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.js
|
|
306
|
-
var
|
|
307
|
-
function
|
|
308
|
-
if (typeof e != "function" || t != null && typeof t != "function") throw TypeError(
|
|
306
|
+
var Bt = "Expected a function";
|
|
307
|
+
function Vt(e, t) {
|
|
308
|
+
if (typeof e != "function" || t != null && typeof t != "function") throw TypeError(Bt);
|
|
309
309
|
var n = function() {
|
|
310
310
|
var r = arguments, i = t ? t.apply(this, r) : r[0], a = n.cache;
|
|
311
311
|
if (a.has(i)) return a.get(i);
|
|
312
312
|
var o = e.apply(this, r);
|
|
313
313
|
return n.cache = a.set(i, o) || a, o;
|
|
314
314
|
};
|
|
315
|
-
return n.cache = new (
|
|
315
|
+
return n.cache = new (Vt.Cache || F)(), n;
|
|
316
316
|
}
|
|
317
|
-
|
|
317
|
+
Vt.Cache = F;
|
|
318
318
|
//#endregion
|
|
319
319
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js
|
|
320
|
-
var
|
|
321
|
-
function
|
|
322
|
-
var t =
|
|
323
|
-
return n.size ===
|
|
320
|
+
var Ht = 500;
|
|
321
|
+
function Ut(e) {
|
|
322
|
+
var t = Vt(e, function(e) {
|
|
323
|
+
return n.size === Ht && n.clear(), e;
|
|
324
324
|
}), n = t.cache;
|
|
325
325
|
return t;
|
|
326
326
|
}
|
|
327
327
|
//#endregion
|
|
328
328
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js
|
|
329
|
-
var
|
|
329
|
+
var Wt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Gt = /\\(\\)?/g, Kt = Ut(function(e) {
|
|
330
330
|
var t = [];
|
|
331
|
-
return e.charCodeAt(0) === 46 && t.push(""), e.replace(
|
|
332
|
-
t.push(r ? i.replace(
|
|
331
|
+
return e.charCodeAt(0) === 46 && t.push(""), e.replace(Wt, function(e, n, r, i) {
|
|
332
|
+
t.push(r ? i.replace(Gt, "$1") : n || e);
|
|
333
333
|
}), t;
|
|
334
334
|
});
|
|
335
335
|
//#endregion
|
|
336
336
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.js
|
|
337
|
-
function
|
|
338
|
-
return e == null ? "" :
|
|
337
|
+
function qt(e) {
|
|
338
|
+
return e == null ? "" : We(e);
|
|
339
339
|
}
|
|
340
340
|
//#endregion
|
|
341
341
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js
|
|
342
|
-
function
|
|
343
|
-
return
|
|
342
|
+
function Jt(e, t) {
|
|
343
|
+
return Be(e) ? e : ht(e, t) ? [e] : Kt(qt(e));
|
|
344
344
|
}
|
|
345
345
|
//#endregion
|
|
346
346
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js
|
|
347
|
-
var
|
|
348
|
-
function
|
|
349
|
-
if (typeof e == "string" ||
|
|
347
|
+
var Yt = Infinity;
|
|
348
|
+
function Xt(e) {
|
|
349
|
+
if (typeof e == "string" || Re(e)) return e;
|
|
350
350
|
var t = e + "";
|
|
351
|
-
return t == "0" && 1 / e == -
|
|
351
|
+
return t == "0" && 1 / e == -Yt ? "-0" : t;
|
|
352
352
|
}
|
|
353
353
|
//#endregion
|
|
354
354
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js
|
|
355
|
-
function
|
|
356
|
-
t =
|
|
357
|
-
for (var n = 0, r = t.length; e != null && n < r;) e = e[
|
|
355
|
+
function Zt(e, t) {
|
|
356
|
+
t = Jt(t, e);
|
|
357
|
+
for (var n = 0, r = t.length; e != null && n < r;) e = e[Xt(t[n++])];
|
|
358
358
|
return n && n == r ? e : void 0;
|
|
359
359
|
}
|
|
360
360
|
//#endregion
|
|
361
361
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/get.js
|
|
362
|
-
function
|
|
363
|
-
var r = e == null ? void 0 :
|
|
362
|
+
function Qt(e, t, n) {
|
|
363
|
+
var r = e == null ? void 0 : Zt(e, t);
|
|
364
364
|
return r === void 0 ? n : r;
|
|
365
365
|
}
|
|
366
366
|
//#endregion
|
|
367
367
|
//#region ../../node_modules/.pnpm/handlebars@4.7.9/node_modules/handlebars/dist/cjs/handlebars/utils.js
|
|
368
|
-
var
|
|
368
|
+
var I = /* @__PURE__ */ k(((e) => {
|
|
369
369
|
e.__esModule = !0, e.extend = a, e.indexOf = l, e.escapeExpression = u, e.isEmpty = d, e.createFrame = f, e.blockParams = p, e.appendContextPath = m;
|
|
370
370
|
var t = {
|
|
371
371
|
"&": "&",
|
|
@@ -422,7 +422,7 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
422
422
|
function m(e, t) {
|
|
423
423
|
return (e ? e + "." : "") + t;
|
|
424
424
|
}
|
|
425
|
-
})),
|
|
425
|
+
})), L = /* @__PURE__ */ k(((e, t) => {
|
|
426
426
|
e.__esModule = !0;
|
|
427
427
|
var n = [
|
|
428
428
|
"description",
|
|
@@ -451,9 +451,9 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
451
451
|
} catch {}
|
|
452
452
|
}
|
|
453
453
|
r.prototype = /* @__PURE__ */ Error(), e.default = r, t.exports = e.default;
|
|
454
|
-
})),
|
|
454
|
+
})), $t = /* @__PURE__ */ k(((e, t) => {
|
|
455
455
|
e.__esModule = !0;
|
|
456
|
-
var n =
|
|
456
|
+
var n = I();
|
|
457
457
|
e.default = function(e) {
|
|
458
458
|
e.registerHelper("blockHelperMissing", function(t, r) {
|
|
459
459
|
var i = r.inverse, a = r.fn;
|
|
@@ -467,13 +467,13 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
467
467
|
return a(t, r);
|
|
468
468
|
});
|
|
469
469
|
}, t.exports = e.default;
|
|
470
|
-
})),
|
|
470
|
+
})), en = /* @__PURE__ */ k(((e, t) => {
|
|
471
471
|
e.__esModule = !0;
|
|
472
472
|
// istanbul ignore next
|
|
473
473
|
function n(e) {
|
|
474
474
|
return e && e.__esModule ? e : { default: e };
|
|
475
475
|
}
|
|
476
|
-
var r =
|
|
476
|
+
var r = I(), i = n(L());
|
|
477
477
|
e.default = function(e) {
|
|
478
478
|
e.registerHelper("each", function(e, t) {
|
|
479
479
|
if (!t) throw new i.default("Must pass iterator to #each");
|
|
@@ -499,25 +499,25 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
499
499
|
return o === 0 && (s = a(this)), s;
|
|
500
500
|
});
|
|
501
501
|
}, t.exports = e.default;
|
|
502
|
-
})),
|
|
502
|
+
})), tn = /* @__PURE__ */ k(((e, t) => {
|
|
503
503
|
e.__esModule = !0;
|
|
504
504
|
// istanbul ignore next
|
|
505
505
|
function n(e) {
|
|
506
506
|
return e && e.__esModule ? e : { default: e };
|
|
507
507
|
}
|
|
508
|
-
var r = n(
|
|
508
|
+
var r = n(L());
|
|
509
509
|
e.default = function(e) {
|
|
510
510
|
e.registerHelper("helperMissing", function() {
|
|
511
511
|
if (arguments.length !== 1) throw new r.default("Missing helper: \"" + arguments[arguments.length - 1].name + "\"");
|
|
512
512
|
});
|
|
513
513
|
}, t.exports = e.default;
|
|
514
|
-
})),
|
|
514
|
+
})), nn = /* @__PURE__ */ k(((e, t) => {
|
|
515
515
|
e.__esModule = !0;
|
|
516
516
|
// istanbul ignore next
|
|
517
517
|
function n(e) {
|
|
518
518
|
return e && e.__esModule ? e : { default: e };
|
|
519
519
|
}
|
|
520
|
-
var r =
|
|
520
|
+
var r = I(), i = n(L());
|
|
521
521
|
e.default = function(e) {
|
|
522
522
|
e.registerHelper("if", function(e, t) {
|
|
523
523
|
if (arguments.length != 2) throw new i.default("#if requires exactly one argument");
|
|
@@ -531,7 +531,7 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
531
531
|
});
|
|
532
532
|
});
|
|
533
533
|
}, t.exports = e.default;
|
|
534
|
-
})),
|
|
534
|
+
})), rn = /* @__PURE__ */ k(((e, t) => {
|
|
535
535
|
e.__esModule = !0, e.default = function(e) {
|
|
536
536
|
e.registerHelper("log", function() {
|
|
537
537
|
for (var t = [void 0], n = arguments[arguments.length - 1], r = 0; r < arguments.length - 1; r++) t.push(arguments[r]);
|
|
@@ -539,19 +539,19 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
539
539
|
n.hash.level == null ? n.data && n.data.level != null && (i = n.data.level) : i = n.hash.level, t[0] = i, e.log.apply(e, t);
|
|
540
540
|
});
|
|
541
541
|
}, t.exports = e.default;
|
|
542
|
-
})),
|
|
542
|
+
})), an = /* @__PURE__ */ k(((e, t) => {
|
|
543
543
|
e.__esModule = !0, e.default = function(e) {
|
|
544
544
|
e.registerHelper("lookup", function(e, t, n) {
|
|
545
545
|
return e && n.lookupProperty(e, t);
|
|
546
546
|
});
|
|
547
547
|
}, t.exports = e.default;
|
|
548
|
-
})),
|
|
548
|
+
})), on = /* @__PURE__ */ k(((e, t) => {
|
|
549
549
|
e.__esModule = !0;
|
|
550
550
|
// istanbul ignore next
|
|
551
551
|
function n(e) {
|
|
552
552
|
return e && e.__esModule ? e : { default: e };
|
|
553
553
|
}
|
|
554
|
-
var r =
|
|
554
|
+
var r = I(), i = n(L());
|
|
555
555
|
e.default = function(e) {
|
|
556
556
|
e.registerHelper("with", function(e, t) {
|
|
557
557
|
if (arguments.length != 2) throw new i.default("#with requires exactly one argument");
|
|
@@ -565,22 +565,22 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
565
565
|
});
|
|
566
566
|
});
|
|
567
567
|
}, t.exports = e.default;
|
|
568
|
-
})),
|
|
568
|
+
})), sn = /* @__PURE__ */ k(((e) => {
|
|
569
569
|
e.__esModule = !0, e.registerDefaultHelpers = l, e.moveHelperToHooks = u;
|
|
570
570
|
// istanbul ignore next
|
|
571
571
|
function t(e) {
|
|
572
572
|
return e && e.__esModule ? e : { default: e };
|
|
573
573
|
}
|
|
574
|
-
var n = t(
|
|
574
|
+
var n = t($t()), r = t(en()), i = t(tn()), a = t(nn()), o = t(rn()), s = t(an()), c = t(on());
|
|
575
575
|
function l(e) {
|
|
576
576
|
n.default(e), r.default(e), i.default(e), a.default(e), o.default(e), s.default(e), c.default(e);
|
|
577
577
|
}
|
|
578
578
|
function u(e, t, n) {
|
|
579
579
|
e.helpers[t] && (e.hooks[t] = e.helpers[t], n || (e.helpers[t] = void 0));
|
|
580
580
|
}
|
|
581
|
-
})),
|
|
581
|
+
})), cn = /* @__PURE__ */ k(((e, t) => {
|
|
582
582
|
e.__esModule = !0;
|
|
583
|
-
var n =
|
|
583
|
+
var n = I();
|
|
584
584
|
e.default = function(e) {
|
|
585
585
|
e.registerDecorator("inline", function(e, t, r, i) {
|
|
586
586
|
var a = e;
|
|
@@ -592,19 +592,19 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
592
592
|
}), t.partials[i.args[0]] = i.fn, a;
|
|
593
593
|
});
|
|
594
594
|
}, t.exports = e.default;
|
|
595
|
-
})),
|
|
595
|
+
})), ln = /* @__PURE__ */ k(((e) => {
|
|
596
596
|
e.__esModule = !0, e.registerDefaultDecorators = r;
|
|
597
597
|
// istanbul ignore next
|
|
598
598
|
function t(e) {
|
|
599
599
|
return e && e.__esModule ? e : { default: e };
|
|
600
600
|
}
|
|
601
|
-
var n = t(
|
|
601
|
+
var n = t(cn());
|
|
602
602
|
function r(e) {
|
|
603
603
|
n.default(e);
|
|
604
604
|
}
|
|
605
|
-
})),
|
|
605
|
+
})), un = /* @__PURE__ */ k(((e, t) => {
|
|
606
606
|
e.__esModule = !0;
|
|
607
|
-
var n =
|
|
607
|
+
var n = I(), r = {
|
|
608
608
|
methodMap: [
|
|
609
609
|
"debug",
|
|
610
610
|
"info",
|
|
@@ -629,13 +629,13 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
629
629
|
}
|
|
630
630
|
};
|
|
631
631
|
e.default = r, t.exports = e.default;
|
|
632
|
-
})),
|
|
632
|
+
})), dn = /* @__PURE__ */ k(((e) => {
|
|
633
633
|
e.__esModule = !0, e.createProtoAccessControl = a, e.resultIsAllowed = o, e.resetLoggedProperties = l;
|
|
634
634
|
// istanbul ignore next
|
|
635
635
|
function t(e) {
|
|
636
636
|
return e && e.__esModule ? e : { default: e };
|
|
637
637
|
}
|
|
638
|
-
var n =
|
|
638
|
+
var n = I(), r = t(un()), i = Object.create(null);
|
|
639
639
|
function a(e) {
|
|
640
640
|
var t = Object.create(null);
|
|
641
641
|
t.__proto__ = !1, n.extend(t, e.allowedProtoProperties);
|
|
@@ -665,13 +665,13 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
665
665
|
delete i[e];
|
|
666
666
|
});
|
|
667
667
|
}
|
|
668
|
-
})),
|
|
668
|
+
})), fn = /* @__PURE__ */ k(((e) => {
|
|
669
669
|
e.__esModule = !0, e.HandlebarsEnvironment = l;
|
|
670
670
|
// istanbul ignore next
|
|
671
671
|
function t(e) {
|
|
672
672
|
return e && e.__esModule ? e : { default: e };
|
|
673
673
|
}
|
|
674
|
-
var n =
|
|
674
|
+
var n = I(), r = t(L()), i = sn(), a = ln(), o = t(un()), s = dn();
|
|
675
675
|
e.VERSION = "4.7.9", e.COMPILER_REVISION = 8, e.LAST_COMPATIBLE_COMPILER_REVISION = 7, e.REVISION_CHANGES = {
|
|
676
676
|
1: "<= 1.0.rc.2",
|
|
677
677
|
2: "== 1.0.0-rc.3",
|
|
@@ -722,7 +722,7 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
722
722
|
s.resetLoggedProperties();
|
|
723
723
|
}
|
|
724
724
|
}, e.log = o.default.log, e.createFrame = n.createFrame, e.logger = o.default;
|
|
725
|
-
})),
|
|
725
|
+
})), pn = /* @__PURE__ */ k(((e, t) => {
|
|
726
726
|
e.__esModule = !0;
|
|
727
727
|
function n(e) {
|
|
728
728
|
this.string = e;
|
|
@@ -730,7 +730,7 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
730
730
|
n.prototype.toString = n.prototype.toHTML = function() {
|
|
731
731
|
return "" + this.string;
|
|
732
732
|
}, e.default = n, t.exports = e.default;
|
|
733
|
-
})),
|
|
733
|
+
})), mn = /* @__PURE__ */ k(((e) => {
|
|
734
734
|
e.__esModule = !0, e.wrapHelper = t;
|
|
735
735
|
function t(e, t) {
|
|
736
736
|
return typeof e == "function" ? function() {
|
|
@@ -738,7 +738,7 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
738
738
|
return arguments[arguments.length - 1] = t(n), e.apply(this, arguments);
|
|
739
739
|
} : e;
|
|
740
740
|
}
|
|
741
|
-
})),
|
|
741
|
+
})), hn = /* @__PURE__ */ k(((e) => {
|
|
742
742
|
e.__esModule = !0, e.checkRevision = l, e.template = u, e.wrapProgram = d, e.resolvePartial = f, e.invokePartial = p, e.noop = m;
|
|
743
743
|
// istanbul ignore next
|
|
744
744
|
function t(e) {
|
|
@@ -751,7 +751,7 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
751
751
|
if (e != null) for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
|
|
752
752
|
return t.default = e, t;
|
|
753
753
|
}
|
|
754
|
-
var r = n(
|
|
754
|
+
var r = n(I()), i = t(L()), a = fn(), o = sn(), s = mn(), c = dn();
|
|
755
755
|
function l(e) {
|
|
756
756
|
var t = e && e[0] || 1, n = a.COMPILER_REVISION;
|
|
757
757
|
if (!(t >= a.LAST_COMPATIBLE_COMPILER_REVISION && t <= a.COMPILER_REVISION)) if (t < a.LAST_COMPATIBLE_COMPILER_REVISION) {
|
|
@@ -893,7 +893,7 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
893
893
|
return e.lookupProperty = n, e;
|
|
894
894
|
});
|
|
895
895
|
}
|
|
896
|
-
})),
|
|
896
|
+
})), gn = /* @__PURE__ */ k(((e, t) => {
|
|
897
897
|
e.__esModule = !0, e.default = function(e) {
|
|
898
898
|
/* istanbul ignore next */
|
|
899
899
|
(function() {
|
|
@@ -907,7 +907,7 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
907
907
|
return globalThis.Handlebars === e && (globalThis.Handlebars = t), e;
|
|
908
908
|
};
|
|
909
909
|
}, t.exports = e.default;
|
|
910
|
-
})),
|
|
910
|
+
})), _n = /* @__PURE__ */ k(((e, t) => {
|
|
911
911
|
e.__esModule = !0;
|
|
912
912
|
// istanbul ignore next
|
|
913
913
|
function n(e) {
|
|
@@ -920,7 +920,7 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
920
920
|
if (e != null) for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
|
|
921
921
|
return t.default = e, t;
|
|
922
922
|
}
|
|
923
|
-
var i = r(
|
|
923
|
+
var i = r(fn()), a = n(pn()), o = n(L()), s = r(I()), c = r(hn()), l = n(gn());
|
|
924
924
|
function u() {
|
|
925
925
|
var e = new i.HandlebarsEnvironment();
|
|
926
926
|
return s.extend(e, i), e.SafeString = a.default, e.Exception = o.default, e.Utils = s, e.escapeExpression = s.escapeExpression, e.VM = c, e.template = function(t) {
|
|
@@ -929,7 +929,7 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
929
929
|
}
|
|
930
930
|
var d = u();
|
|
931
931
|
d.create = u, l.default(d), d.default = d, e.default = d, t.exports = e.default;
|
|
932
|
-
})),
|
|
932
|
+
})), vn = /* @__PURE__ */ k(((e, t) => {
|
|
933
933
|
e.__esModule = !0;
|
|
934
934
|
var n = { helpers: {
|
|
935
935
|
helperExpression: function(e) {
|
|
@@ -943,7 +943,7 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
943
943
|
}
|
|
944
944
|
} };
|
|
945
945
|
e.default = n, t.exports = e.default;
|
|
946
|
-
})),
|
|
946
|
+
})), yn = /* @__PURE__ */ k(((e, t) => {
|
|
947
947
|
e.__esModule = !0, e.default = (function() {
|
|
948
948
|
var e = {
|
|
949
949
|
trace: function() {},
|
|
@@ -3230,13 +3230,13 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
3230
3230
|
}
|
|
3231
3231
|
return t.prototype = e, e.Parser = t, new t();
|
|
3232
3232
|
})(), t.exports = e.default;
|
|
3233
|
-
})),
|
|
3233
|
+
})), bn = /* @__PURE__ */ k(((e, t) => {
|
|
3234
3234
|
e.__esModule = !0;
|
|
3235
3235
|
// istanbul ignore next
|
|
3236
3236
|
function n(e) {
|
|
3237
3237
|
return e && e.__esModule ? e : { default: e };
|
|
3238
3238
|
}
|
|
3239
|
-
var r = n(
|
|
3239
|
+
var r = n(L());
|
|
3240
3240
|
function i() {
|
|
3241
3241
|
this.parents = [];
|
|
3242
3242
|
}
|
|
@@ -3303,13 +3303,13 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
3303
3303
|
this.acceptRequired(e, "name"), this.acceptArray(e.params), this.acceptKey(e, "hash");
|
|
3304
3304
|
}
|
|
3305
3305
|
e.default = i, t.exports = e.default;
|
|
3306
|
-
})),
|
|
3306
|
+
})), xn = /* @__PURE__ */ k(((e, t) => {
|
|
3307
3307
|
e.__esModule = !0;
|
|
3308
3308
|
// istanbul ignore next
|
|
3309
3309
|
function n(e) {
|
|
3310
3310
|
return e && e.__esModule ? e : { default: e };
|
|
3311
3311
|
}
|
|
3312
|
-
var r = n(
|
|
3312
|
+
var r = n(bn());
|
|
3313
3313
|
function i() {
|
|
3314
3314
|
var e = arguments.length <= 0 || arguments[0] === void 0 ? {} : arguments[0];
|
|
3315
3315
|
this.options = e;
|
|
@@ -3378,13 +3378,13 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
3378
3378
|
}
|
|
3379
3379
|
}
|
|
3380
3380
|
e.default = i, t.exports = e.default;
|
|
3381
|
-
})),
|
|
3381
|
+
})), Sn = /* @__PURE__ */ k(((e) => {
|
|
3382
3382
|
e.__esModule = !0, e.SourceLocation = i, e.id = a, e.stripFlags = o, e.stripComment = s, e.preparePath = c, e.prepareMustache = l, e.prepareRawBlock = u, e.prepareBlock = d, e.prepareProgram = f, e.preparePartialBlock = p;
|
|
3383
3383
|
// istanbul ignore next
|
|
3384
3384
|
function t(e) {
|
|
3385
3385
|
return e && e.__esModule ? e : { default: e };
|
|
3386
3386
|
}
|
|
3387
|
-
var n = t(
|
|
3387
|
+
var n = t(L());
|
|
3388
3388
|
function r(e, t) {
|
|
3389
3389
|
if (t = t.path ? t.path.original : t, e.path.original !== t) {
|
|
3390
3390
|
var r = { loc: e.path.loc };
|
|
@@ -3519,7 +3519,7 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
3519
3519
|
loc: this.locInfo(i)
|
|
3520
3520
|
};
|
|
3521
3521
|
}
|
|
3522
|
-
})),
|
|
3522
|
+
})), Cn = /* @__PURE__ */ k(((e) => {
|
|
3523
3523
|
e.__esModule = !0, e.parseWithoutProcessing = l, e.parse = u;
|
|
3524
3524
|
// istanbul ignore next
|
|
3525
3525
|
function t(e) {
|
|
@@ -3532,7 +3532,7 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
3532
3532
|
function n(e) {
|
|
3533
3533
|
return e && e.__esModule ? e : { default: e };
|
|
3534
3534
|
}
|
|
3535
|
-
var r = n(
|
|
3535
|
+
var r = n(yn()), i = n(xn()), a = t(Sn()), o = n(L()), s = I();
|
|
3536
3536
|
e.parser = r.default;
|
|
3537
3537
|
var c = {};
|
|
3538
3538
|
s.extend(c, a);
|
|
@@ -3571,13 +3571,13 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
3571
3571
|
function p(e) {
|
|
3572
3572
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && e >= 0;
|
|
3573
3573
|
}
|
|
3574
|
-
})),
|
|
3574
|
+
})), wn = /* @__PURE__ */ k(((e) => {
|
|
3575
3575
|
e.__esModule = !0, e.Compiler = o, e.precompile = s, e.compile = c;
|
|
3576
3576
|
// istanbul ignore next
|
|
3577
3577
|
function t(e) {
|
|
3578
3578
|
return e && e.__esModule ? e : { default: e };
|
|
3579
3579
|
}
|
|
3580
|
-
var n = t(
|
|
3580
|
+
var n = t(L()), r = I(), i = t(vn()), a = [].slice;
|
|
3581
3581
|
function o() {}
|
|
3582
3582
|
o.prototype = {
|
|
3583
3583
|
compiler: o,
|
|
@@ -3795,7 +3795,7 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
3795
3795
|
};
|
|
3796
3796
|
}
|
|
3797
3797
|
}
|
|
3798
|
-
})),
|
|
3798
|
+
})), Tn = /* @__PURE__ */ k(((e) => {
|
|
3799
3799
|
var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
|
|
3800
3800
|
e.encode = function(e) {
|
|
3801
3801
|
if (0 <= e && e < t.length) return t[e];
|
|
@@ -3804,8 +3804,8 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
3804
3804
|
var t = 65, n = 90, r = 97, i = 122, a = 48;
|
|
3805
3805
|
return t <= e && e <= n ? e - t : r <= e && e <= i ? e - r + 26 : a <= e && e <= 57 ? e - a + 52 : e == 43 ? 62 : e == 47 ? 63 : -1;
|
|
3806
3806
|
};
|
|
3807
|
-
})),
|
|
3808
|
-
var t =
|
|
3807
|
+
})), En = /* @__PURE__ */ k(((e) => {
|
|
3808
|
+
var t = Tn(), n = 5, r = 1 << n, i = r - 1, a = r;
|
|
3809
3809
|
function o(e) {
|
|
3810
3810
|
return e < 0 ? (-e << 1) + 1 : (e << 1) + 0;
|
|
3811
3811
|
}
|
|
@@ -3828,7 +3828,7 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
3828
3828
|
} while (d);
|
|
3829
3829
|
o.value = s(l), o.rest = r;
|
|
3830
3830
|
};
|
|
3831
|
-
})),
|
|
3831
|
+
})), R = /* @__PURE__ */ k(((e) => {
|
|
3832
3832
|
function t(e, t, n) {
|
|
3833
3833
|
if (t in e) return e[t];
|
|
3834
3834
|
if (arguments.length === 3) return n;
|
|
@@ -3940,8 +3940,8 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
3940
3940
|
return o(t);
|
|
3941
3941
|
}
|
|
3942
3942
|
e.computeSourceURL = y;
|
|
3943
|
-
})),
|
|
3944
|
-
var t =
|
|
3943
|
+
})), Dn = /* @__PURE__ */ k(((e) => {
|
|
3944
|
+
var t = R(), n = Object.prototype.hasOwnProperty, r = typeof Map < "u";
|
|
3945
3945
|
function i() {
|
|
3946
3946
|
this._array = [], this._set = r ? /* @__PURE__ */ new Map() : Object.create(null);
|
|
3947
3947
|
}
|
|
@@ -3972,8 +3972,8 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
3972
3972
|
}, i.prototype.toArray = function() {
|
|
3973
3973
|
return this._array.slice();
|
|
3974
3974
|
}, e.ArraySet = i;
|
|
3975
|
-
})),
|
|
3976
|
-
var t =
|
|
3975
|
+
})), On = /* @__PURE__ */ k(((e) => {
|
|
3976
|
+
var t = R();
|
|
3977
3977
|
function n(e, n) {
|
|
3978
3978
|
var r = e.generatedLine, i = n.generatedLine, a = e.generatedColumn, o = n.generatedColumn;
|
|
3979
3979
|
return i > r || i == r && o >= a || t.compareByGeneratedPositionsInflated(e, n) <= 0;
|
|
@@ -3991,8 +3991,8 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
3991
3991
|
}, r.prototype.toArray = function() {
|
|
3992
3992
|
return this._sorted ||= (this._array.sort(t.compareByGeneratedPositionsInflated), !0), this._array;
|
|
3993
3993
|
}, e.MappingList = r;
|
|
3994
|
-
})),
|
|
3995
|
-
var t =
|
|
3994
|
+
})), kn = /* @__PURE__ */ k(((e) => {
|
|
3995
|
+
var t = En(), n = R(), r = Dn().ArraySet, i = On().MappingList;
|
|
3996
3996
|
function a(e) {
|
|
3997
3997
|
e ||= {}, this._file = n.getArg(e, "file", null), this._sourceRoot = n.getArg(e, "sourceRoot", null), this._skipValidation = n.getArg(e, "skipValidation", !1), this._sources = new r(), this._names = new r(), this._mappings = new i(), this._sourcesContents = null;
|
|
3998
3998
|
}
|
|
@@ -4090,7 +4090,7 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
4090
4090
|
}, a.prototype.toString = function() {
|
|
4091
4091
|
return JSON.stringify(this.toJSON());
|
|
4092
4092
|
}, e.SourceMapGenerator = a;
|
|
4093
|
-
})),
|
|
4093
|
+
})), An = /* @__PURE__ */ k(((e) => {
|
|
4094
4094
|
e.GREATEST_LOWER_BOUND = 1, e.LEAST_UPPER_BOUND = 2;
|
|
4095
4095
|
function t(n, r, i, a, o, s) {
|
|
4096
4096
|
var c = Math.floor((r - n) / 2) + n, l = o(i, a[c], !0);
|
|
@@ -4103,7 +4103,7 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
4103
4103
|
for (; o - 1 >= 0 && i(r[o], r[o - 1], !0) === 0;) --o;
|
|
4104
4104
|
return o;
|
|
4105
4105
|
};
|
|
4106
|
-
})),
|
|
4106
|
+
})), jn = /* @__PURE__ */ k(((e) => {
|
|
4107
4107
|
function t(e, t, n) {
|
|
4108
4108
|
var r = e[t];
|
|
4109
4109
|
e[t] = e[n], e[n] = r;
|
|
@@ -4124,8 +4124,8 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
4124
4124
|
e.quickSort = function(e, t) {
|
|
4125
4125
|
r(e, t, 0, e.length - 1);
|
|
4126
4126
|
};
|
|
4127
|
-
})),
|
|
4128
|
-
var t =
|
|
4127
|
+
})), Mn = /* @__PURE__ */ k(((e) => {
|
|
4128
|
+
var t = R(), n = An(), r = Dn().ArraySet, i = En(), a = jn().quickSort;
|
|
4129
4129
|
function o(e, n) {
|
|
4130
4130
|
var r = e;
|
|
4131
4131
|
return typeof e == "string" && (r = t.parseSourceMapInput(e)), r.sections == null ? new s(r, n) : new l(r, n);
|
|
@@ -4416,8 +4416,8 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
4416
4416
|
}
|
|
4417
4417
|
a(this.__generatedMappings, t.compareByGeneratedPositionsDeflated), a(this.__originalMappings, t.compareByOriginalPositions);
|
|
4418
4418
|
}, e.IndexedSourceMapConsumer = l;
|
|
4419
|
-
})),
|
|
4420
|
-
var t =
|
|
4419
|
+
})), Nn = /* @__PURE__ */ k(((e) => {
|
|
4420
|
+
var t = kn().SourceMapGenerator, n = R(), r = /(\r?\n)/, i = 10, a = "$$$isSourceNode$$$";
|
|
4421
4421
|
function o(e, t, n, r, i) {
|
|
4422
4422
|
this.children = [], this.sourceContents = {}, this.line = e ?? null, this.column = t ?? null, this.source = n ?? null, this.name = i ?? null, this[a] = !0, r != null && this.add(r);
|
|
4423
4423
|
}
|
|
@@ -4532,14 +4532,14 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
4532
4532
|
map: r
|
|
4533
4533
|
};
|
|
4534
4534
|
}, e.SourceNode = o;
|
|
4535
|
-
})),
|
|
4536
|
-
e.SourceMapGenerator =
|
|
4537
|
-
})),
|
|
4535
|
+
})), Pn = /* @__PURE__ */ k(((e) => {
|
|
4536
|
+
e.SourceMapGenerator = kn().SourceMapGenerator, e.SourceMapConsumer = Mn().SourceMapConsumer, e.SourceNode = Nn().SourceNode;
|
|
4537
|
+
})), Fn = /* @__PURE__ */ k(((e, t) => {
|
|
4538
4538
|
e.__esModule = !0;
|
|
4539
|
-
var n =
|
|
4539
|
+
var n = I(), r = void 0;
|
|
4540
4540
|
try {
|
|
4541
4541
|
/* istanbul ignore next */
|
|
4542
|
-
(typeof define != "function" || !define.amd) && (r =
|
|
4542
|
+
(typeof define != "function" || !define.amd) && (r = Pn().SourceNode);
|
|
4543
4543
|
} catch {}
|
|
4544
4544
|
/* istanbul ignore if: tested but not covered in istanbul due to dist build */
|
|
4545
4545
|
r || (r = function(e, t, n, r) {
|
|
@@ -4633,13 +4633,13 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
4633
4633
|
return t.prepend("["), t.add("]"), t;
|
|
4634
4634
|
}
|
|
4635
4635
|
}, e.default = a, t.exports = e.default;
|
|
4636
|
-
})),
|
|
4636
|
+
})), In = /* @__PURE__ */ k(((e, t) => {
|
|
4637
4637
|
e.__esModule = !0;
|
|
4638
4638
|
// istanbul ignore next
|
|
4639
4639
|
function n(e) {
|
|
4640
4640
|
return e && e.__esModule ? e : { default: e };
|
|
4641
4641
|
}
|
|
4642
|
-
var r =
|
|
4642
|
+
var r = fn(), i = n(L()), a = I(), o = n(Fn());
|
|
4643
4643
|
function s(e) {
|
|
4644
4644
|
this.value = e;
|
|
4645
4645
|
}
|
|
@@ -5123,13 +5123,13 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
5123
5123
|
] : a;
|
|
5124
5124
|
}
|
|
5125
5125
|
e.default = c, t.exports = e.default;
|
|
5126
|
-
})),
|
|
5126
|
+
})), Ln = /* @__PURE__ */ ge((/* @__PURE__ */ k(((e, t) => {
|
|
5127
5127
|
e.__esModule = !0;
|
|
5128
5128
|
// istanbul ignore next
|
|
5129
5129
|
function n(e) {
|
|
5130
5130
|
return e && e.__esModule ? e : { default: e };
|
|
5131
5131
|
}
|
|
5132
|
-
var r = n(
|
|
5132
|
+
var r = n(_n()), i = n(vn()), a = Cn(), o = wn(), s = n(In()), c = n(bn()), l = n(gn()), u = r.default.create;
|
|
5133
5133
|
function d() {
|
|
5134
5134
|
var e = u();
|
|
5135
5135
|
return e.compile = function(t, n) {
|
|
@@ -5141,25 +5141,25 @@ var F = /* @__PURE__ */ O(((e) => {
|
|
|
5141
5141
|
var f = d();
|
|
5142
5142
|
f.create = d, l.default(f), f.Visitor = c.default, f.default = f, e.default = f, t.exports = e.default;
|
|
5143
5143
|
})))(), 1);
|
|
5144
|
-
|
|
5145
|
-
var
|
|
5144
|
+
Ln.Utils.escapeExpression = (e) => String(e ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
5145
|
+
var Rn = "language", z = Se((e) => ({
|
|
5146
5146
|
language: "en",
|
|
5147
5147
|
setLanguage: (t) => {
|
|
5148
|
-
e({ language: t }), localStorage.setItem(
|
|
5148
|
+
e({ language: t }), localStorage.setItem(Rn, t);
|
|
5149
5149
|
}
|
|
5150
|
-
})),
|
|
5151
|
-
function
|
|
5152
|
-
let { language: t, setLanguage: n } =
|
|
5150
|
+
})), zn = (e) => typeof e == "object" && !!e && "one" in e && "many" in e && typeof e.one == "string" && typeof e.many == "string", Bn = (e, t) => t === 1 ? e.one : e.many;
|
|
5151
|
+
function Vn(e) {
|
|
5152
|
+
let { language: t, setLanguage: n } = z(), r = l(e), i = c(() => r.current[t], [t]), o = c(() => r.current.en, []), u = a((e) => Qt(i, e, Qt(o, e)), [i, o]), d = a((e, t) => {
|
|
5153
5153
|
let n = `!!! ${e} !!!`, r = u(e);
|
|
5154
|
-
return
|
|
5154
|
+
return zn(r) && t && typeof t.count == "number" && (r = Bn(r, t.count)), r === void 0 || typeof r != "string" ? (console.error(`Missing translation for key: ${e}`), n) : Ln.compile(r)(t);
|
|
5155
5155
|
}, [u]), f = a((e, t) => {
|
|
5156
5156
|
let n = u(e);
|
|
5157
|
-
return n !== void 0 && (typeof n == "string" ||
|
|
5157
|
+
return n !== void 0 && (typeof n == "string" || zn(n) || t?.succeedIfKeyIsObject && typeof n == "object");
|
|
5158
5158
|
}, [u]), p = (e) => {
|
|
5159
5159
|
let t = [], n = (e, r) => {
|
|
5160
5160
|
Object.entries(e).forEach(([e, i]) => {
|
|
5161
5161
|
let a = r ? `${r}.${e}` : e;
|
|
5162
|
-
typeof i == "object" && i && !Array.isArray(i) && !
|
|
5162
|
+
typeof i == "object" && i && !Array.isArray(i) && !zn(i) ? n(i, a) : t.push(a);
|
|
5163
5163
|
});
|
|
5164
5164
|
};
|
|
5165
5165
|
return n(e, ""), t;
|
|
@@ -5186,24 +5186,24 @@ function zn(e) {
|
|
|
5186
5186
|
setLanguage: n
|
|
5187
5187
|
};
|
|
5188
5188
|
}
|
|
5189
|
-
function
|
|
5190
|
-
let e = localStorage.getItem(
|
|
5189
|
+
function Hn() {
|
|
5190
|
+
let e = localStorage.getItem(Rn), t = sessionStorage.getItem(Rn), n = navigator.language;
|
|
5191
5191
|
n.includes("-") && (n = n.split("-")[0]);
|
|
5192
5192
|
let r = e || t || n;
|
|
5193
|
-
|
|
5193
|
+
z.getState().setLanguage(r);
|
|
5194
5194
|
}
|
|
5195
5195
|
//#endregion
|
|
5196
5196
|
//#region ../../node_modules/.pnpm/jdenticon@3.3.0/node_modules/jdenticon/dist/jdenticon-module.mjs
|
|
5197
|
-
function
|
|
5197
|
+
function B(e, t, n) {
|
|
5198
5198
|
return parseInt(e.substr(t, n), 16);
|
|
5199
5199
|
}
|
|
5200
|
-
function
|
|
5200
|
+
function Un(e) {
|
|
5201
5201
|
return e |= 0, e < 0 ? "00" : e < 16 ? "0" + e.toString(16) : e < 256 ? e.toString(16) : "ff";
|
|
5202
5202
|
}
|
|
5203
|
-
function
|
|
5204
|
-
return n = n < 0 ? n + 6 : n > 6 ? n - 6 : n,
|
|
5203
|
+
function Wn(e, t, n) {
|
|
5204
|
+
return n = n < 0 ? n + 6 : n > 6 ? n - 6 : n, Un(255 * (n < 1 ? e + (t - e) * n : n < 3 ? t : n < 4 ? e + (t - e) * (4 - n) : e));
|
|
5205
5205
|
}
|
|
5206
|
-
function
|
|
5206
|
+
function Gn(e) {
|
|
5207
5207
|
if (/^#[0-9a-f]{3,8}$/i.test(e)) {
|
|
5208
5208
|
let t, n = e.length;
|
|
5209
5209
|
if (n < 6) {
|
|
@@ -5213,18 +5213,18 @@ function Un(e) {
|
|
|
5213
5213
|
return (n == 7 || n > 8) && (t = e), t;
|
|
5214
5214
|
}
|
|
5215
5215
|
}
|
|
5216
|
-
function
|
|
5216
|
+
function Kn(e, t, n) {
|
|
5217
5217
|
let r;
|
|
5218
5218
|
if (t == 0) {
|
|
5219
|
-
let e =
|
|
5219
|
+
let e = Un(n * 255);
|
|
5220
5220
|
r = e + e + e;
|
|
5221
5221
|
} else {
|
|
5222
5222
|
let i = n <= .5 ? n * (t + 1) : n + t - n * t, a = n * 2 - i;
|
|
5223
|
-
r =
|
|
5223
|
+
r = Wn(a, i, e * 6 + 2) + Wn(a, i, e * 6) + Wn(a, i, e * 6 - 2);
|
|
5224
5224
|
}
|
|
5225
5225
|
return "#" + r;
|
|
5226
5226
|
}
|
|
5227
|
-
function
|
|
5227
|
+
function V(e, t, n) {
|
|
5228
5228
|
let r = [
|
|
5229
5229
|
.55,
|
|
5230
5230
|
.5,
|
|
@@ -5234,14 +5234,14 @@ function B(e, t, n) {
|
|
|
5234
5234
|
.55,
|
|
5235
5235
|
.55
|
|
5236
5236
|
][e * 6 + .5 | 0];
|
|
5237
|
-
return n = n < .5 ? n * r * 2 : r + (n - .5) * (1 - r) * 2,
|
|
5237
|
+
return n = n < .5 ? n * r * 2 : r + (n - .5) * (1 - r) * 2, Kn(e, t, n);
|
|
5238
5238
|
}
|
|
5239
|
-
var
|
|
5239
|
+
var qn = typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : {}, Jn = {
|
|
5240
5240
|
V: "jdenticon_config",
|
|
5241
5241
|
n: "config"
|
|
5242
|
-
},
|
|
5243
|
-
function
|
|
5244
|
-
let n = typeof e == "object" && e ||
|
|
5242
|
+
}, Yn = {};
|
|
5243
|
+
function Xn(e, t) {
|
|
5244
|
+
let n = typeof e == "object" && e || Yn[Jn.n] || qn[Jn.V] || {}, r = n.lightness || {}, i = n.saturation || {}, a = "color" in i ? i.color : i, o = i.grayscale, s = n.backColor, c = n.padding;
|
|
5245
5245
|
function l(e, t) {
|
|
5246
5246
|
let n = r[e];
|
|
5247
5247
|
return n && n.length > 1 || (n = t), function(e) {
|
|
@@ -5258,25 +5258,25 @@ function Jn(e, t) {
|
|
|
5258
5258
|
D: typeof o == "number" ? o : 0,
|
|
5259
5259
|
p: l("color", [.4, .8]),
|
|
5260
5260
|
F: l("grayscale", [.3, .9]),
|
|
5261
|
-
G:
|
|
5261
|
+
G: Gn(s),
|
|
5262
5262
|
X: typeof e == "number" ? e : typeof c == "number" ? c : t
|
|
5263
5263
|
};
|
|
5264
5264
|
}
|
|
5265
|
-
var
|
|
5265
|
+
var Zn = class {
|
|
5266
5266
|
constructor(e, t) {
|
|
5267
5267
|
this.x = e, this.y = t;
|
|
5268
5268
|
}
|
|
5269
|
-
},
|
|
5269
|
+
}, Qn = class {
|
|
5270
5270
|
constructor(e, t, n, r) {
|
|
5271
5271
|
this.q = e, this.t = t, this.H = n, this.Y = r;
|
|
5272
5272
|
}
|
|
5273
5273
|
I(e, t, n, r) {
|
|
5274
5274
|
let i = this.q + this.H, a = this.t + this.H, o = this.Y;
|
|
5275
|
-
return o === 1 ? new
|
|
5275
|
+
return o === 1 ? new Zn(i - t - (r || 0), this.t + e) : o === 2 ? new Zn(i - e - (n || 0), a - t - (r || 0)) : o === 3 ? new Zn(this.q + t, a - e - (n || 0)) : new Zn(this.q + e, this.t + t);
|
|
5276
5276
|
}
|
|
5277
|
-
},
|
|
5277
|
+
}, $n = new Qn(0, 0, 0, 0), er = class {
|
|
5278
5278
|
constructor(e) {
|
|
5279
|
-
this.J = e, this.u =
|
|
5279
|
+
this.J = e, this.u = $n;
|
|
5280
5280
|
}
|
|
5281
5281
|
g(e, t) {
|
|
5282
5282
|
let n = t ? -2 : 2, r = [];
|
|
@@ -5325,7 +5325,7 @@ var Yn = class {
|
|
|
5325
5325
|
], i);
|
|
5326
5326
|
}
|
|
5327
5327
|
};
|
|
5328
|
-
function
|
|
5328
|
+
function tr(e, t, n, r) {
|
|
5329
5329
|
e %= 14;
|
|
5330
5330
|
let i, a, o, s, c, l;
|
|
5331
5331
|
e ? e == 1 ? (o = 0 | n * .5, s = 0 | n * .8, t.j(n - o, 0, o, s, 2)) : e == 2 ? (o = 0 | n / 3, t.i(o, o, n - o, n - o)) : e == 3 ? (c = n * .1, l = n < 6 ? 1 : n < 8 ? 2 : 0 | n * .25, c = c > 1 ? 0 | c : c > .5 ? 1 : c, t.i(l, l, n - c - l, n - c - l)) : e == 4 ? (a = 0 | n * .15, o = 0 | n * .5, t.h(n - o - a, n - o - a, o)) : e == 5 ? (c = n * .1, l = c * 4, l > 3 && (l = 0 | l), t.i(0, 0, n, n), t.g([
|
|
@@ -5361,40 +5361,40 @@ function $n(e, t, n, r) {
|
|
|
5361
5361
|
n
|
|
5362
5362
|
]));
|
|
5363
5363
|
}
|
|
5364
|
-
function
|
|
5364
|
+
function nr(e, t, n) {
|
|
5365
5365
|
e %= 4;
|
|
5366
5366
|
let r;
|
|
5367
5367
|
e ? e == 1 ? t.j(0, n / 2, n, n / 2, 0) : e == 2 ? t.K(0, 0, n, n) : (r = n / 6, t.h(r, r, n - 2 * r)) : t.j(0, 0, n, n, 0);
|
|
5368
5368
|
}
|
|
5369
|
-
function
|
|
5369
|
+
function rr(e, t) {
|
|
5370
5370
|
return e = t.W(e), [
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5371
|
+
V(e, t.D, t.F(0)),
|
|
5372
|
+
V(e, t.o, t.p(.5)),
|
|
5373
|
+
V(e, t.D, t.F(1)),
|
|
5374
|
+
V(e, t.o, t.p(1)),
|
|
5375
|
+
V(e, t.o, t.p(0))
|
|
5376
5376
|
];
|
|
5377
5377
|
}
|
|
5378
|
-
function
|
|
5379
|
-
let r =
|
|
5378
|
+
function ir(e, t, n) {
|
|
5379
|
+
let r = Xn(n, .08);
|
|
5380
5380
|
r.G && e.m(r.G);
|
|
5381
5381
|
let i = e.k, a = .5 + i * r.X | 0;
|
|
5382
5382
|
i -= a * 2;
|
|
5383
|
-
let o = new
|
|
5383
|
+
let o = new er(e), s = 0 | i / 4, c = 0 | a + i / 2 - s * 2, l = 0 | a + i / 2 - s * 2;
|
|
5384
5384
|
function u(n, r, i, a, u) {
|
|
5385
|
-
let p =
|
|
5385
|
+
let p = B(t, i, 1), m = a ? B(t, a, 1) : 0;
|
|
5386
5386
|
e.L(d[f[n]]);
|
|
5387
|
-
for (let e = 0; e < u.length; e++) o.u = new
|
|
5387
|
+
for (let e = 0; e < u.length; e++) o.u = new Qn(c + u[e][0] * s, l + u[e][1] * s, s, m++ % 4), r(p, o, s, e);
|
|
5388
5388
|
e.M();
|
|
5389
5389
|
}
|
|
5390
|
-
let d =
|
|
5390
|
+
let d = rr(B(t, -7) / 268435455, r), f = [], p;
|
|
5391
5391
|
function m(e) {
|
|
5392
5392
|
if (e.indexOf(p) >= 0) {
|
|
5393
5393
|
for (let t = 0; t < e.length; t++) if (f.indexOf(e[t]) >= 0) return !0;
|
|
5394
5394
|
}
|
|
5395
5395
|
}
|
|
5396
|
-
for (let e = 0; e < 3; e++) p =
|
|
5397
|
-
u(0,
|
|
5396
|
+
for (let e = 0; e < 3; e++) p = B(t, 8 + e, 1) % d.length, (m([0, 4]) || m([2, 3])) && (p = 1), f.push(p);
|
|
5397
|
+
u(0, nr, 2, 3, [
|
|
5398
5398
|
[1, 0],
|
|
5399
5399
|
[2, 0],
|
|
5400
5400
|
[2, 3],
|
|
@@ -5403,19 +5403,19 @@ function nr(e, t, n) {
|
|
|
5403
5403
|
[3, 1],
|
|
5404
5404
|
[3, 2],
|
|
5405
5405
|
[0, 2]
|
|
5406
|
-
]), u(1,
|
|
5406
|
+
]), u(1, nr, 4, 5, [
|
|
5407
5407
|
[0, 0],
|
|
5408
5408
|
[3, 0],
|
|
5409
5409
|
[3, 3],
|
|
5410
5410
|
[0, 3]
|
|
5411
|
-
]), u(2,
|
|
5411
|
+
]), u(2, tr, 1, null, [
|
|
5412
5412
|
[1, 1],
|
|
5413
5413
|
[2, 1],
|
|
5414
5414
|
[2, 2],
|
|
5415
5415
|
[1, 2]
|
|
5416
5416
|
]), e.finish();
|
|
5417
5417
|
}
|
|
5418
|
-
function
|
|
5418
|
+
function ar(e) {
|
|
5419
5419
|
var t = 0, n = 0, r = encodeURI(e) + "%80", i = [], a, o = [], s = 1732584193, c = 4023233417, l = ~s, u = ~c, d = 3285377520, f = [
|
|
5420
5420
|
s,
|
|
5421
5421
|
c,
|
|
@@ -5434,39 +5434,39 @@ function rr(e) {
|
|
|
5434
5434
|
for (t = 0; t < 40; t++) m += (f[t >> 3] >>> (7 - (t & 7)) * 4 & 15).toString(16);
|
|
5435
5435
|
return m;
|
|
5436
5436
|
}
|
|
5437
|
-
function
|
|
5437
|
+
function or(e) {
|
|
5438
5438
|
return /^[0-9a-f]{11,}$/i.test(e) && e;
|
|
5439
5439
|
}
|
|
5440
|
-
function
|
|
5441
|
-
return
|
|
5440
|
+
function sr(e) {
|
|
5441
|
+
return ar(e == null ? "" : "" + e);
|
|
5442
5442
|
}
|
|
5443
5443
|
typeof document < "u" && document.querySelectorAll.bind(document);
|
|
5444
|
-
function
|
|
5444
|
+
function H(e) {
|
|
5445
5445
|
return (e * 10 + .5 | 0) / 10;
|
|
5446
5446
|
}
|
|
5447
|
-
var
|
|
5447
|
+
var cr = class {
|
|
5448
5448
|
constructor() {
|
|
5449
5449
|
this.v = "";
|
|
5450
5450
|
}
|
|
5451
5451
|
g(e) {
|
|
5452
5452
|
let t = "";
|
|
5453
|
-
for (let n = 0; n < e.length; n++) t += (n ? "L" : "M") +
|
|
5453
|
+
for (let n = 0; n < e.length; n++) t += (n ? "L" : "M") + H(e[n].x) + " " + H(e[n].y);
|
|
5454
5454
|
this.v += t + "Z";
|
|
5455
5455
|
}
|
|
5456
5456
|
h(e, t, n) {
|
|
5457
|
-
let r = +!n, i =
|
|
5458
|
-
this.v += "M" +
|
|
5457
|
+
let r = +!n, i = H(t / 2), a = H(t), o = "a" + i + "," + i + " 0 1," + r + " ";
|
|
5458
|
+
this.v += "M" + H(e.x) + " " + H(e.y + t / 2) + o + a + ",0" + o + -a + ",0";
|
|
5459
5459
|
}
|
|
5460
|
-
},
|
|
5460
|
+
}, lr = class {
|
|
5461
5461
|
constructor(e) {
|
|
5462
5462
|
this.A, this.B = {}, this.O = e, this.k = e.k;
|
|
5463
5463
|
}
|
|
5464
5464
|
m(e) {
|
|
5465
|
-
let t = /^(#......)(..)?/.exec(e), n = t[2] ?
|
|
5465
|
+
let t = /^(#......)(..)?/.exec(e), n = t[2] ? B(t[2], 0) / 255 : 1;
|
|
5466
5466
|
this.O.m(t[1], n);
|
|
5467
5467
|
}
|
|
5468
5468
|
L(e) {
|
|
5469
|
-
this.A = this.B[e] || (this.B[e] = new
|
|
5469
|
+
this.A = this.B[e] || (this.B[e] = new cr());
|
|
5470
5470
|
}
|
|
5471
5471
|
M() {}
|
|
5472
5472
|
g(e) {
|
|
@@ -5479,13 +5479,13 @@ var or = class {
|
|
|
5479
5479
|
let e = this.B;
|
|
5480
5480
|
for (let t in e) e.hasOwnProperty(t) && this.O.P(t, e[t].v);
|
|
5481
5481
|
}
|
|
5482
|
-
},
|
|
5482
|
+
}, ur = {
|
|
5483
5483
|
R: "http://www.w3.org/2000/svg",
|
|
5484
5484
|
S: "width",
|
|
5485
5485
|
T: "height"
|
|
5486
|
-
},
|
|
5486
|
+
}, dr = class {
|
|
5487
5487
|
constructor(e) {
|
|
5488
|
-
this.k = e, this.C = "<svg xmlns=\"" +
|
|
5488
|
+
this.k = e, this.C = "<svg xmlns=\"" + ur.R + "\" width=\"" + e + "\" height=\"" + e + "\" viewBox=\"0 0 " + e + " " + e + "\">";
|
|
5489
5489
|
}
|
|
5490
5490
|
m(e, t) {
|
|
5491
5491
|
t && (this.C += "<rect width=\"100%\" height=\"100%\" fill=\"" + e + "\" opacity=\"" + t.toFixed(2) + "\"/>");
|
|
@@ -5497,16 +5497,16 @@ var or = class {
|
|
|
5497
5497
|
return this.C + "</svg>";
|
|
5498
5498
|
}
|
|
5499
5499
|
};
|
|
5500
|
-
function
|
|
5501
|
-
let r = new
|
|
5502
|
-
return
|
|
5500
|
+
function fr(e, t, n) {
|
|
5501
|
+
let r = new dr(t);
|
|
5502
|
+
return ir(new lr(r), or(e) || sr(e), n), r.toString();
|
|
5503
5503
|
}
|
|
5504
5504
|
//#endregion
|
|
5505
5505
|
//#region ../../node_modules/.pnpm/lucide-react@1.14.0_react@19.2.6/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs
|
|
5506
|
-
var
|
|
5507
|
-
let t =
|
|
5506
|
+
var pr = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), mr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), hr = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), gr = (e) => {
|
|
5507
|
+
let t = hr(e);
|
|
5508
5508
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
5509
|
-
},
|
|
5509
|
+
}, _r = {
|
|
5510
5510
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5511
5511
|
width: 24,
|
|
5512
5512
|
height: 24,
|
|
@@ -5516,31 +5516,34 @@ var dr = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
|
|
|
5516
5516
|
strokeWidth: 2,
|
|
5517
5517
|
strokeLinecap: "round",
|
|
5518
5518
|
strokeLinejoin: "round"
|
|
5519
|
-
},
|
|
5519
|
+
}, vr = (e) => {
|
|
5520
5520
|
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
5521
5521
|
return !1;
|
|
5522
|
-
},
|
|
5523
|
-
let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } =
|
|
5522
|
+
}, yr = n({}), br = () => o(yr), xr = i(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: i, className: a = "", children: o, iconNode: s, ...c }, l) => {
|
|
5523
|
+
let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = br() ?? {}, h = i ?? f ? Number(n ?? d) * 24 / Number(t ?? u) : n ?? d;
|
|
5524
5524
|
return r("svg", {
|
|
5525
5525
|
ref: l,
|
|
5526
|
-
...
|
|
5527
|
-
width: t ?? u ??
|
|
5528
|
-
height: t ?? u ??
|
|
5526
|
+
..._r,
|
|
5527
|
+
width: t ?? u ?? _r.width,
|
|
5528
|
+
height: t ?? u ?? _r.height,
|
|
5529
5529
|
stroke: e ?? p,
|
|
5530
5530
|
strokeWidth: h,
|
|
5531
|
-
className:
|
|
5532
|
-
...!o && !
|
|
5531
|
+
className: pr("lucide", m, a),
|
|
5532
|
+
...!o && !vr(c) && { "aria-hidden": "true" },
|
|
5533
5533
|
...c
|
|
5534
5534
|
}, [...s.map(([e, t]) => r(e, t)), ...Array.isArray(o) ? o : [o]]);
|
|
5535
|
-
}),
|
|
5536
|
-
let n = i(({ className: n, ...i }, a) => r(
|
|
5535
|
+
}), Sr = (e, t) => {
|
|
5536
|
+
let n = i(({ className: n, ...i }, a) => r(xr, {
|
|
5537
5537
|
ref: a,
|
|
5538
5538
|
iconNode: t,
|
|
5539
|
-
className:
|
|
5539
|
+
className: pr(`lucide-${mr(gr(e))}`, `lucide-${e}`, n),
|
|
5540
5540
|
...i
|
|
5541
5541
|
}));
|
|
5542
|
-
return n.displayName =
|
|
5543
|
-
},
|
|
5542
|
+
return n.displayName = gr(e), n;
|
|
5543
|
+
}, Cr = Sr("message-circle", [["path", {
|
|
5544
|
+
d: "M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",
|
|
5545
|
+
key: "1sd12s"
|
|
5546
|
+
}]]), wr = Sr("search", [["path", {
|
|
5544
5547
|
d: "m21 21-4.34-4.34",
|
|
5545
5548
|
key: "14j7rj"
|
|
5546
5549
|
}], ["circle", {
|
|
@@ -5548,7 +5551,7 @@ var dr = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
|
|
|
5548
5551
|
cy: "11",
|
|
5549
5552
|
r: "8",
|
|
5550
5553
|
key: "4ej97u"
|
|
5551
|
-
}]]),
|
|
5554
|
+
}]]), Tr = Sr("triangle-alert", [
|
|
5552
5555
|
["path", {
|
|
5553
5556
|
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
|
|
5554
5557
|
key: "wmoenq"
|
|
@@ -5561,39 +5564,89 @@ var dr = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
|
|
|
5561
5564
|
d: "M12 17h.01",
|
|
5562
5565
|
key: "p32p05"
|
|
5563
5566
|
}]
|
|
5564
|
-
]),
|
|
5567
|
+
]), Er = n({});
|
|
5568
|
+
function Dr({ children: e, onStartDirectMessage: t }) {
|
|
5569
|
+
return /* @__PURE__ */ D(Er.Provider, {
|
|
5570
|
+
value: { onStartDirectMessage: t },
|
|
5571
|
+
children: e
|
|
5572
|
+
});
|
|
5573
|
+
}
|
|
5574
|
+
function Or() {
|
|
5575
|
+
return o(Er);
|
|
5576
|
+
}
|
|
5577
|
+
var kr = {
|
|
5578
|
+
unknown: "Unknown",
|
|
5579
|
+
startDirectMessage: "Start direct message",
|
|
5580
|
+
emailVerified: "Email verified",
|
|
5581
|
+
emailUnverified: "Email not verified"
|
|
5582
|
+
}, Ar = {
|
|
5583
|
+
unknown: "Gelöscht",
|
|
5584
|
+
startDirectMessage: "Direktnachricht starten",
|
|
5585
|
+
emailVerified: "E-Mail bestätigt",
|
|
5586
|
+
emailUnverified: "E-Mail nicht bestätigt"
|
|
5587
|
+
};
|
|
5565
5588
|
//#endregion
|
|
5566
5589
|
//#region src/lib/components/attraccess-user/AttraccessUser.tsx
|
|
5567
|
-
function
|
|
5568
|
-
let { t:
|
|
5569
|
-
en:
|
|
5570
|
-
de:
|
|
5571
|
-
}),
|
|
5572
|
-
if (
|
|
5573
|
-
let t =
|
|
5590
|
+
function jr({ user: e, description: t, className: n, onStartDirectMessage: r, variant: i = "full" }) {
|
|
5591
|
+
let { t: o } = Vn({
|
|
5592
|
+
en: kr,
|
|
5593
|
+
de: Ar
|
|
5594
|
+
}), s = Or(), l = !e || !!e?.deletedAt, u = c(() => {
|
|
5595
|
+
if (l) return;
|
|
5596
|
+
let t = fr(e?.id || "unknown", 100);
|
|
5574
5597
|
return `data:image/svg+xml;base64,${btoa(t)}`;
|
|
5575
|
-
}, [
|
|
5576
|
-
|
|
5598
|
+
}, [l, e]), h = e?.username || o("unknown"), g = a(() => {
|
|
5599
|
+
r ? r(e) : s.onStartDirectMessage(e);
|
|
5600
|
+
}, [
|
|
5601
|
+
e,
|
|
5602
|
+
r,
|
|
5603
|
+
s
|
|
5604
|
+
]), _ = !!e && !!g, v = /* @__PURE__ */ O(d, { children: [u ? /* @__PURE__ */ D(p, {
|
|
5605
|
+
src: u,
|
|
5606
|
+
alt: h
|
|
5607
|
+
}) : null, /* @__PURE__ */ D(f, {
|
|
5608
|
+
color: l ? "warning" : void 0,
|
|
5609
|
+
children: l ? /* @__PURE__ */ D(Tr, { className: "w-4 h-4" }) : h.slice(0, 2).toUpperCase()
|
|
5610
|
+
})] }), y = /* @__PURE__ */ O("div", {
|
|
5577
5611
|
className: `flex items-center gap-2 ${n ?? ""}`,
|
|
5578
|
-
children: [
|
|
5579
|
-
color: i ? "warning" : void 0,
|
|
5580
|
-
children: i ? /* @__PURE__ */ E(Sr, { className: "w-4 h-4" }) : o.slice(0, 2).toUpperCase()
|
|
5581
|
-
})] }), /* @__PURE__ */ D("div", {
|
|
5612
|
+
children: [v, /* @__PURE__ */ O("div", {
|
|
5582
5613
|
className: "flex flex-col",
|
|
5583
|
-
children: [/* @__PURE__ */
|
|
5584
|
-
className: "
|
|
5585
|
-
children:
|
|
5586
|
-
|
|
5614
|
+
children: [/* @__PURE__ */ O("div", {
|
|
5615
|
+
className: "flex flex-row items-center",
|
|
5616
|
+
children: [/* @__PURE__ */ D("span", {
|
|
5617
|
+
className: "text-sm font-medium",
|
|
5618
|
+
children: l ? /* @__PURE__ */ D("del", { children: h }) : h
|
|
5619
|
+
}), /* @__PURE__ */ D(m, {
|
|
5620
|
+
isIconOnly: !0,
|
|
5621
|
+
variant: "ghost",
|
|
5622
|
+
size: "sm",
|
|
5623
|
+
onPress: g,
|
|
5624
|
+
children: /* @__PURE__ */ D(Cr, {})
|
|
5625
|
+
})]
|
|
5626
|
+
}), t && /* @__PURE__ */ D("span", {
|
|
5587
5627
|
className: "text-xs text-muted-foreground",
|
|
5588
|
-
children:
|
|
5628
|
+
children: l ? /* @__PURE__ */ D("del", { children: t }) : t
|
|
5589
5629
|
})]
|
|
5590
5630
|
})]
|
|
5591
|
-
});
|
|
5631
|
+
}), b = i === "mini" ? v : y;
|
|
5632
|
+
return _ ? /* @__PURE__ */ O(S, { children: [/* @__PURE__ */ D(S.Trigger, {
|
|
5633
|
+
className: "inline-flex w-fit cursor-pointer rounded-md outline-none focus-visible:ring-2",
|
|
5634
|
+
children: b
|
|
5635
|
+
}), /* @__PURE__ */ D(S.Content, { children: /* @__PURE__ */ O(S.Dialog, {
|
|
5636
|
+
className: "flex w-64 flex-col gap-3 p-4",
|
|
5637
|
+
children: [y, !l && /* @__PURE__ */ O(m, {
|
|
5638
|
+
variant: "primary",
|
|
5639
|
+
size: "sm",
|
|
5640
|
+
className: "w-full",
|
|
5641
|
+
onPress: g,
|
|
5642
|
+
children: [/* @__PURE__ */ D(Cr, { className: "h-4 w-4" }), o("startDirectMessage")]
|
|
5643
|
+
})]
|
|
5644
|
+
}) })] }) : b;
|
|
5592
5645
|
}
|
|
5593
5646
|
//#endregion
|
|
5594
5647
|
//#region src/lib/hooks/useFormatDateTime.tsx
|
|
5595
|
-
function
|
|
5596
|
-
let { showTime: t = !0, showDate: n = !0, showSeconds: r = !1 } = e ?? {}, { language: i } =
|
|
5648
|
+
function Mr(e) {
|
|
5649
|
+
let { showTime: t = !0, showDate: n = !0, showSeconds: r = !1 } = e ?? {}, { language: i } = z(), o = c(() => {
|
|
5597
5650
|
let e = {};
|
|
5598
5651
|
return t && (e.hour12 = !1, e.hour = "2-digit", e.minute = "2-digit", r && (e.second = "2-digit")), n && (e.day = "2-digit", e.month = "2-digit", e.year = "numeric"), new Intl.DateTimeFormat(i, e);
|
|
5599
5652
|
}, [
|
|
@@ -5608,13 +5661,13 @@ function Er(e) {
|
|
|
5608
5661
|
return isNaN(n.getTime()) ? t ?? "-" : o.format(n);
|
|
5609
5662
|
}, [o]);
|
|
5610
5663
|
}
|
|
5611
|
-
function
|
|
5612
|
-
return
|
|
5664
|
+
function Nr(e, t) {
|
|
5665
|
+
return Mr(t)(e);
|
|
5613
5666
|
}
|
|
5614
5667
|
//#endregion
|
|
5615
5668
|
//#region src/lib/hooks/useFormatDuration.ts
|
|
5616
|
-
function
|
|
5617
|
-
let { language: t } =
|
|
5669
|
+
function Pr(e) {
|
|
5670
|
+
let { language: t } = z(), n = a((e) => {
|
|
5618
5671
|
let n = 1440, r = Math.floor(e / n), i = Math.floor((e - r * n) / 60), a = e - r * n - i * 60;
|
|
5619
5672
|
try {
|
|
5620
5673
|
if (typeof Intl.DurationFormat == "function") {
|
|
@@ -5638,10 +5691,10 @@ function Or(e) {
|
|
|
5638
5691
|
}
|
|
5639
5692
|
//#endregion
|
|
5640
5693
|
//#region ../../node_modules/.pnpm/react-router@7.15.1_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/react-router/dist/development/chunk-4N6VE7H7.mjs
|
|
5641
|
-
function
|
|
5694
|
+
function U(e, t) {
|
|
5642
5695
|
if (e === !1 || e == null) throw Error(t);
|
|
5643
5696
|
}
|
|
5644
|
-
function
|
|
5697
|
+
function W(e, t) {
|
|
5645
5698
|
if (!e) {
|
|
5646
5699
|
typeof console < "u" && console.warn(t);
|
|
5647
5700
|
try {
|
|
@@ -5649,10 +5702,10 @@ function U(e, t) {
|
|
|
5649
5702
|
} catch {}
|
|
5650
5703
|
}
|
|
5651
5704
|
}
|
|
5652
|
-
function
|
|
5705
|
+
function Fr({ pathname: e = "/", search: t = "", hash: n = "" }) {
|
|
5653
5706
|
return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
|
|
5654
5707
|
}
|
|
5655
|
-
function
|
|
5708
|
+
function G(e) {
|
|
5656
5709
|
let t = {};
|
|
5657
5710
|
if (e) {
|
|
5658
5711
|
let n = e.indexOf("#");
|
|
@@ -5662,17 +5715,17 @@ function W(e) {
|
|
|
5662
5715
|
}
|
|
5663
5716
|
return t;
|
|
5664
5717
|
}
|
|
5665
|
-
function
|
|
5666
|
-
return
|
|
5718
|
+
function Ir(e, t, n = "/") {
|
|
5719
|
+
return Lr(e, t, n, !1);
|
|
5667
5720
|
}
|
|
5668
|
-
function
|
|
5669
|
-
let a =
|
|
5721
|
+
function Lr(e, t, n, r, i) {
|
|
5722
|
+
let a = K((typeof t == "string" ? G(t) : t).pathname || "/", n);
|
|
5670
5723
|
if (a == null) return null;
|
|
5671
|
-
let o = i ??
|
|
5672
|
-
for (let e = 0; s == null && e < o.length; ++e) s =
|
|
5724
|
+
let o = i ?? zr(e), s = null, c = ti(a);
|
|
5725
|
+
for (let e = 0; s == null && e < o.length; ++e) s = Qr(o[e], c, r);
|
|
5673
5726
|
return s;
|
|
5674
5727
|
}
|
|
5675
|
-
function
|
|
5728
|
+
function Rr(e, t) {
|
|
5676
5729
|
let { route: n, pathname: r, params: i } = e;
|
|
5677
5730
|
return {
|
|
5678
5731
|
id: n.id,
|
|
@@ -5683,11 +5736,11 @@ function Mr(e, t) {
|
|
|
5683
5736
|
handle: n.handle
|
|
5684
5737
|
};
|
|
5685
5738
|
}
|
|
5686
|
-
function
|
|
5687
|
-
let t =
|
|
5688
|
-
return
|
|
5739
|
+
function zr(e) {
|
|
5740
|
+
let t = Br(e);
|
|
5741
|
+
return Hr(t), t;
|
|
5689
5742
|
}
|
|
5690
|
-
function
|
|
5743
|
+
function Br(e, t = [], n = [], r = "", i = !1) {
|
|
5691
5744
|
let a = (e, a, o = i, s) => {
|
|
5692
5745
|
let c = {
|
|
5693
5746
|
relativePath: s === void 0 ? e.path || "" : s,
|
|
@@ -5697,68 +5750,68 @@ function Pr(e, t = [], n = [], r = "", i = !1) {
|
|
|
5697
5750
|
};
|
|
5698
5751
|
if (c.relativePath.startsWith("/")) {
|
|
5699
5752
|
if (!c.relativePath.startsWith(r) && o) return;
|
|
5700
|
-
|
|
5753
|
+
U(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);
|
|
5701
5754
|
}
|
|
5702
|
-
let l =
|
|
5703
|
-
e.children && e.children.length > 0 && (
|
|
5755
|
+
let l = q([r, c.relativePath]), u = n.concat(c);
|
|
5756
|
+
e.children && e.children.length > 0 && (U(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), Br(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({
|
|
5704
5757
|
path: l,
|
|
5705
|
-
score:
|
|
5758
|
+
score: Xr(l, e.index),
|
|
5706
5759
|
routesMeta: u
|
|
5707
5760
|
});
|
|
5708
5761
|
};
|
|
5709
5762
|
return e.forEach((e, t) => {
|
|
5710
5763
|
if (e.path === "" || !e.path?.includes("?")) a(e, t);
|
|
5711
|
-
else for (let n of
|
|
5764
|
+
else for (let n of Vr(e.path)) a(e, t, !0, n);
|
|
5712
5765
|
}), t;
|
|
5713
5766
|
}
|
|
5714
|
-
function
|
|
5767
|
+
function Vr(e) {
|
|
5715
5768
|
let t = e.split("/");
|
|
5716
5769
|
if (t.length === 0) return [];
|
|
5717
5770
|
let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");
|
|
5718
5771
|
if (r.length === 0) return i ? [a, ""] : [a];
|
|
5719
|
-
let o =
|
|
5772
|
+
let o = Vr(r.join("/")), s = [];
|
|
5720
5773
|
return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
|
|
5721
5774
|
}
|
|
5722
|
-
function
|
|
5723
|
-
e.sort((e, t) => e.score === t.score ?
|
|
5775
|
+
function Hr(e) {
|
|
5776
|
+
e.sort((e, t) => e.score === t.score ? Zr(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
|
|
5724
5777
|
}
|
|
5725
|
-
var
|
|
5726
|
-
function
|
|
5778
|
+
var Ur = /^:[\w-]+$/, Wr = 3, Gr = 2, Kr = 1, qr = 10, Jr = -2, Yr = (e) => e === "*";
|
|
5779
|
+
function Xr(e, t) {
|
|
5727
5780
|
let n = e.split("/"), r = n.length;
|
|
5728
|
-
return n.some(
|
|
5781
|
+
return n.some(Yr) && (r += Jr), t && (r += Gr), n.filter((e) => !Yr(e)).reduce((e, t) => e + (Ur.test(t) ? Wr : t === "" ? Kr : qr), r);
|
|
5729
5782
|
}
|
|
5730
|
-
function
|
|
5783
|
+
function Zr(e, t) {
|
|
5731
5784
|
return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
|
|
5732
5785
|
}
|
|
5733
|
-
function
|
|
5786
|
+
function Qr(e, t, n = !1) {
|
|
5734
5787
|
let { routesMeta: r } = e, i = {}, a = "/", o = [];
|
|
5735
5788
|
for (let e = 0; e < r.length; ++e) {
|
|
5736
|
-
let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u =
|
|
5789
|
+
let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = $r({
|
|
5737
5790
|
path: s.relativePath,
|
|
5738
5791
|
caseSensitive: s.caseSensitive,
|
|
5739
5792
|
end: c
|
|
5740
5793
|
}, l), d = s.route;
|
|
5741
|
-
if (!u && c && n && !r[r.length - 1].route.index && (u =
|
|
5794
|
+
if (!u && c && n && !r[r.length - 1].route.index && (u = $r({
|
|
5742
5795
|
path: s.relativePath,
|
|
5743
5796
|
caseSensitive: s.caseSensitive,
|
|
5744
5797
|
end: !1
|
|
5745
5798
|
}, l)), !u) return null;
|
|
5746
5799
|
Object.assign(i, u.params), o.push({
|
|
5747
5800
|
params: i,
|
|
5748
|
-
pathname:
|
|
5749
|
-
pathnameBase:
|
|
5801
|
+
pathname: q([a, u.pathname]),
|
|
5802
|
+
pathnameBase: di(q([a, u.pathnameBase])),
|
|
5750
5803
|
route: d
|
|
5751
|
-
}), u.pathnameBase !== "/" && (a =
|
|
5804
|
+
}), u.pathnameBase !== "/" && (a = q([a, u.pathnameBase]));
|
|
5752
5805
|
}
|
|
5753
5806
|
return o;
|
|
5754
5807
|
}
|
|
5755
|
-
function
|
|
5808
|
+
function $r(e, t) {
|
|
5756
5809
|
typeof e == "string" && (e = {
|
|
5757
5810
|
path: e,
|
|
5758
5811
|
caseSensitive: !1,
|
|
5759
5812
|
end: !0
|
|
5760
5813
|
});
|
|
5761
|
-
let [n, r] =
|
|
5814
|
+
let [n, r] = ei(e.path, e.caseSensitive, e.end), i = t.match(n);
|
|
5762
5815
|
if (!i) return null;
|
|
5763
5816
|
let a = i[0], o = a.replace(/(.)\/+$/, "$1"), s = i.slice(1);
|
|
5764
5817
|
return {
|
|
@@ -5775,8 +5828,8 @@ function qr(e, t) {
|
|
|
5775
5828
|
pattern: e
|
|
5776
5829
|
};
|
|
5777
5830
|
}
|
|
5778
|
-
function
|
|
5779
|
-
|
|
5831
|
+
function ei(e, t = !1, n = !0) {
|
|
5832
|
+
W(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(/\*$/, "/*")}".`);
|
|
5780
5833
|
let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
|
|
5781
5834
|
if (r.push({
|
|
5782
5835
|
paramName: t,
|
|
@@ -5789,47 +5842,47 @@ function Jr(e, t = !1, n = !0) {
|
|
|
5789
5842
|
}).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
|
|
5790
5843
|
return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
|
|
5791
5844
|
}
|
|
5792
|
-
function
|
|
5845
|
+
function ti(e) {
|
|
5793
5846
|
try {
|
|
5794
5847
|
return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
|
|
5795
5848
|
} catch (t) {
|
|
5796
|
-
return
|
|
5849
|
+
return W(!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;
|
|
5797
5850
|
}
|
|
5798
5851
|
}
|
|
5799
|
-
function
|
|
5852
|
+
function K(e, t) {
|
|
5800
5853
|
if (t === "/") return e;
|
|
5801
5854
|
if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
|
|
5802
5855
|
let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
|
|
5803
5856
|
return r && r !== "/" ? null : e.slice(n) || "/";
|
|
5804
5857
|
}
|
|
5805
|
-
var
|
|
5806
|
-
function
|
|
5807
|
-
let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ?
|
|
5808
|
-
return n ? (n =
|
|
5858
|
+
var ni = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
|
|
5859
|
+
function ri(e, t = "/") {
|
|
5860
|
+
let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? G(e) : e, a;
|
|
5861
|
+
return n ? (n = li(n), a = n.startsWith("/") ? ii(n.substring(1), "/") : ii(n, t)) : a = t, {
|
|
5809
5862
|
pathname: a,
|
|
5810
|
-
search:
|
|
5811
|
-
hash:
|
|
5863
|
+
search: fi(r),
|
|
5864
|
+
hash: pi(i)
|
|
5812
5865
|
};
|
|
5813
5866
|
}
|
|
5814
|
-
function
|
|
5815
|
-
let n =
|
|
5867
|
+
function ii(e, t) {
|
|
5868
|
+
let n = ui(t).split("/");
|
|
5816
5869
|
return e.split("/").forEach((e) => {
|
|
5817
5870
|
e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
|
|
5818
5871
|
}), n.length > 1 ? n.join("/") : "/";
|
|
5819
5872
|
}
|
|
5820
|
-
function
|
|
5873
|
+
function ai(e, t, n, r) {
|
|
5821
5874
|
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.`;
|
|
5822
5875
|
}
|
|
5823
|
-
function
|
|
5876
|
+
function oi(e) {
|
|
5824
5877
|
return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
|
|
5825
5878
|
}
|
|
5826
|
-
function
|
|
5827
|
-
let t =
|
|
5879
|
+
function si(e) {
|
|
5880
|
+
let t = oi(e);
|
|
5828
5881
|
return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
|
|
5829
5882
|
}
|
|
5830
|
-
function
|
|
5883
|
+
function ci(e, t, n, r = !1) {
|
|
5831
5884
|
let i;
|
|
5832
|
-
typeof e == "string" ? i =
|
|
5885
|
+
typeof e == "string" ? i = G(e) : (i = { ...e }, U(!i.pathname || !i.pathname.includes("?"), ai("?", "pathname", "search", i)), U(!i.pathname || !i.pathname.includes("#"), ai("#", "pathname", "hash", i)), U(!i.search || !i.search.includes("#"), ai("#", "search", "hash", i)));
|
|
5833
5886
|
let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
|
|
5834
5887
|
if (o == null) s = n;
|
|
5835
5888
|
else {
|
|
@@ -5841,34 +5894,34 @@ function ni(e, t, n, r = !1) {
|
|
|
5841
5894
|
}
|
|
5842
5895
|
s = e >= 0 ? t[e] : "/";
|
|
5843
5896
|
}
|
|
5844
|
-
let c =
|
|
5897
|
+
let c = ri(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
|
|
5845
5898
|
return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
|
|
5846
5899
|
}
|
|
5847
|
-
var
|
|
5900
|
+
var li = (e) => e.replace(/\/\/+/g, "/"), q = (e) => li(e.join("/")), ui = (e) => e.replace(/\/+$/, ""), di = (e) => ui(e).replace(/^\/*/, "/"), fi = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, pi = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, mi = class {
|
|
5848
5901
|
constructor(e, t, n, r = !1) {
|
|
5849
5902
|
this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
|
|
5850
5903
|
}
|
|
5851
5904
|
};
|
|
5852
|
-
function
|
|
5905
|
+
function hi(e) {
|
|
5853
5906
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
5854
5907
|
}
|
|
5855
|
-
function
|
|
5856
|
-
return
|
|
5908
|
+
function gi(e) {
|
|
5909
|
+
return q(e.map((e) => e.route.path).filter(Boolean)) || "/";
|
|
5857
5910
|
}
|
|
5858
|
-
var
|
|
5859
|
-
function
|
|
5911
|
+
var _i = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
|
|
5912
|
+
function vi(e, t) {
|
|
5860
5913
|
let n = e;
|
|
5861
|
-
if (typeof n != "string" || !
|
|
5914
|
+
if (typeof n != "string" || !ni.test(n)) return {
|
|
5862
5915
|
absoluteURL: void 0,
|
|
5863
5916
|
isExternal: !1,
|
|
5864
5917
|
to: n
|
|
5865
5918
|
};
|
|
5866
5919
|
let r = n, i = !1;
|
|
5867
|
-
if (
|
|
5868
|
-
let e = new URL(window.location.href), r = n.startsWith("//") ? new URL(e.protocol + n) : new URL(n), a =
|
|
5920
|
+
if (_i) try {
|
|
5921
|
+
let e = new URL(window.location.href), r = n.startsWith("//") ? new URL(e.protocol + n) : new URL(n), a = K(r.pathname, t);
|
|
5869
5922
|
r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
|
|
5870
5923
|
} catch {
|
|
5871
|
-
|
|
5924
|
+
W(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
|
|
5872
5925
|
}
|
|
5873
5926
|
return {
|
|
5874
5927
|
absoluteURL: r,
|
|
@@ -5877,90 +5930,90 @@ function fi(e, t) {
|
|
|
5877
5930
|
};
|
|
5878
5931
|
}
|
|
5879
5932
|
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
5880
|
-
var
|
|
5933
|
+
var yi = [
|
|
5881
5934
|
"POST",
|
|
5882
5935
|
"PUT",
|
|
5883
5936
|
"PATCH",
|
|
5884
5937
|
"DELETE"
|
|
5885
5938
|
];
|
|
5886
|
-
new Set(
|
|
5887
|
-
var
|
|
5888
|
-
new Set(
|
|
5889
|
-
var q = e.createContext(null);
|
|
5890
|
-
q.displayName = "DataRouter";
|
|
5939
|
+
new Set(yi);
|
|
5940
|
+
var bi = ["GET", ...yi];
|
|
5941
|
+
new Set(bi);
|
|
5891
5942
|
var J = e.createContext(null);
|
|
5892
|
-
J.displayName = "
|
|
5893
|
-
var hi = e.createContext(!1);
|
|
5894
|
-
function gi() {
|
|
5895
|
-
return e.useContext(hi);
|
|
5896
|
-
}
|
|
5897
|
-
var _i = e.createContext({ isTransitioning: !1 });
|
|
5898
|
-
_i.displayName = "ViewTransition";
|
|
5899
|
-
var vi = e.createContext(/* @__PURE__ */ new Map());
|
|
5900
|
-
vi.displayName = "Fetchers";
|
|
5901
|
-
var yi = e.createContext(null);
|
|
5902
|
-
yi.displayName = "Await";
|
|
5943
|
+
J.displayName = "DataRouter";
|
|
5903
5944
|
var Y = e.createContext(null);
|
|
5904
|
-
Y.displayName = "
|
|
5945
|
+
Y.displayName = "DataRouterState";
|
|
5946
|
+
var xi = e.createContext(!1);
|
|
5947
|
+
function Si() {
|
|
5948
|
+
return e.useContext(xi);
|
|
5949
|
+
}
|
|
5950
|
+
var Ci = e.createContext({ isTransitioning: !1 });
|
|
5951
|
+
Ci.displayName = "ViewTransition";
|
|
5952
|
+
var wi = e.createContext(/* @__PURE__ */ new Map());
|
|
5953
|
+
wi.displayName = "Fetchers";
|
|
5954
|
+
var Ti = e.createContext(null);
|
|
5955
|
+
Ti.displayName = "Await";
|
|
5905
5956
|
var X = e.createContext(null);
|
|
5906
|
-
X.displayName = "
|
|
5907
|
-
var Z = e.createContext(
|
|
5957
|
+
X.displayName = "Navigation";
|
|
5958
|
+
var Z = e.createContext(null);
|
|
5959
|
+
Z.displayName = "Location";
|
|
5960
|
+
var Q = e.createContext({
|
|
5908
5961
|
outlet: null,
|
|
5909
5962
|
matches: [],
|
|
5910
5963
|
isDataRoute: !1
|
|
5911
5964
|
});
|
|
5912
|
-
|
|
5913
|
-
var
|
|
5914
|
-
|
|
5915
|
-
var
|
|
5916
|
-
function
|
|
5917
|
-
if (e.startsWith(`${
|
|
5965
|
+
Q.displayName = "Route";
|
|
5966
|
+
var Ei = e.createContext(null);
|
|
5967
|
+
Ei.displayName = "RouteError";
|
|
5968
|
+
var Di = "REACT_ROUTER_ERROR", Oi = "REDIRECT", ki = "ROUTE_ERROR_RESPONSE";
|
|
5969
|
+
function Ai(e) {
|
|
5970
|
+
if (e.startsWith(`${Di}:${Oi}:{`)) try {
|
|
5918
5971
|
let t = JSON.parse(e.slice(28));
|
|
5919
5972
|
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;
|
|
5920
5973
|
} catch {}
|
|
5921
5974
|
}
|
|
5922
|
-
function
|
|
5923
|
-
if (e.startsWith(`${
|
|
5975
|
+
function ji(e) {
|
|
5976
|
+
if (e.startsWith(`${Di}:${ki}:{`)) try {
|
|
5924
5977
|
let t = JSON.parse(e.slice(40));
|
|
5925
|
-
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new
|
|
5978
|
+
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new mi(t.status, t.statusText, t.data);
|
|
5926
5979
|
} catch {}
|
|
5927
5980
|
}
|
|
5928
|
-
function
|
|
5929
|
-
|
|
5930
|
-
let { basename: r, navigator: i } = e.useContext(
|
|
5931
|
-
return r !== "/" && (c = o === "/" ? r :
|
|
5981
|
+
function Mi(t, { relative: n } = {}) {
|
|
5982
|
+
U(Ni(), "useHref() may be used only in the context of a <Router> component.");
|
|
5983
|
+
let { basename: r, navigator: i } = e.useContext(X), { hash: a, pathname: o, search: s } = Ri(t, { relative: n }), c = o;
|
|
5984
|
+
return r !== "/" && (c = o === "/" ? r : q([r, o])), i.createHref({
|
|
5932
5985
|
pathname: c,
|
|
5933
5986
|
search: s,
|
|
5934
5987
|
hash: a
|
|
5935
5988
|
});
|
|
5936
5989
|
}
|
|
5937
|
-
function
|
|
5938
|
-
return e.useContext(
|
|
5990
|
+
function Ni() {
|
|
5991
|
+
return e.useContext(Z) != null;
|
|
5939
5992
|
}
|
|
5940
5993
|
function $() {
|
|
5941
|
-
return
|
|
5994
|
+
return U(Ni(), "useLocation() may be used only in the context of a <Router> component."), e.useContext(Z).location;
|
|
5942
5995
|
}
|
|
5943
|
-
var
|
|
5944
|
-
function
|
|
5945
|
-
e.useContext(
|
|
5996
|
+
var Pi = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
5997
|
+
function Fi(t) {
|
|
5998
|
+
e.useContext(X).static || e.useLayoutEffect(t);
|
|
5946
5999
|
}
|
|
5947
|
-
function
|
|
5948
|
-
let { isDataRoute: t } = e.useContext(
|
|
5949
|
-
return t ?
|
|
6000
|
+
function Ii() {
|
|
6001
|
+
let { isDataRoute: t } = e.useContext(Q);
|
|
6002
|
+
return t ? na() : Li();
|
|
5950
6003
|
}
|
|
5951
|
-
function
|
|
5952
|
-
|
|
5953
|
-
let t = e.useContext(
|
|
5954
|
-
return
|
|
6004
|
+
function Li() {
|
|
6005
|
+
U(Ni(), "useNavigate() may be used only in the context of a <Router> component.");
|
|
6006
|
+
let t = e.useContext(J), { basename: n, navigator: r } = e.useContext(X), { matches: i } = e.useContext(Q), { pathname: a } = $(), o = JSON.stringify(si(i)), s = e.useRef(!1);
|
|
6007
|
+
return Fi(() => {
|
|
5955
6008
|
s.current = !0;
|
|
5956
6009
|
}), e.useCallback((e, i = {}) => {
|
|
5957
|
-
if (
|
|
6010
|
+
if (W(s.current, Pi), !s.current) return;
|
|
5958
6011
|
if (typeof e == "number") {
|
|
5959
6012
|
r.go(e);
|
|
5960
6013
|
return;
|
|
5961
6014
|
}
|
|
5962
|
-
let c =
|
|
5963
|
-
t == null && n !== "/" && (c.pathname = c.pathname === "/" ? n :
|
|
6015
|
+
let c = ci(e, JSON.parse(o), a, i.relative === "path");
|
|
6016
|
+
t == null && n !== "/" && (c.pathname = c.pathname === "/" ? n : q([n, c.pathname])), (i.replace ? r.replace : r.push)(c, i.state, i);
|
|
5964
6017
|
}, [
|
|
5965
6018
|
n,
|
|
5966
6019
|
r,
|
|
@@ -5970,42 +6023,42 @@ function Ai() {
|
|
|
5970
6023
|
]);
|
|
5971
6024
|
}
|
|
5972
6025
|
e.createContext(null);
|
|
5973
|
-
function
|
|
5974
|
-
let { matches: r } = e.useContext(
|
|
5975
|
-
return e.useMemo(() =>
|
|
6026
|
+
function Ri(t, { relative: n } = {}) {
|
|
6027
|
+
let { matches: r } = e.useContext(Q), { pathname: i } = $(), a = JSON.stringify(si(r));
|
|
6028
|
+
return e.useMemo(() => ci(t, JSON.parse(a), i, n === "path"), [
|
|
5976
6029
|
t,
|
|
5977
6030
|
a,
|
|
5978
6031
|
i,
|
|
5979
6032
|
n
|
|
5980
6033
|
]);
|
|
5981
6034
|
}
|
|
5982
|
-
function
|
|
5983
|
-
|
|
5984
|
-
let { navigator: i } = e.useContext(
|
|
6035
|
+
function zi(t, n, r) {
|
|
6036
|
+
U(Ni(), "useRoutes() may be used only in the context of a <Router> component.");
|
|
6037
|
+
let { navigator: i } = e.useContext(X), { 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;
|
|
5985
6038
|
{
|
|
5986
6039
|
let e = u && u.path || "";
|
|
5987
|
-
|
|
6040
|
+
ia(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.
|
|
5988
6041
|
|
|
5989
6042
|
Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" : `${e}/*`}">.`);
|
|
5990
6043
|
}
|
|
5991
6044
|
let d = $(), f;
|
|
5992
6045
|
if (n) {
|
|
5993
|
-
let e = typeof n == "string" ?
|
|
5994
|
-
|
|
6046
|
+
let e = typeof n == "string" ? G(n) : n;
|
|
6047
|
+
U(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;
|
|
5995
6048
|
} else f = d;
|
|
5996
6049
|
let p = f.pathname || "/", m = p;
|
|
5997
6050
|
if (l !== "/") {
|
|
5998
6051
|
let e = l.replace(/^\//, "").split("/");
|
|
5999
6052
|
m = "/" + p.replace(/^\//, "").split("/").slice(e.length).join("/");
|
|
6000
6053
|
}
|
|
6001
|
-
let h = r && r.state.matches.length ? r.state.matches.map((e) => Object.assign(e, { route: r.manifest[e.route.id] || e.route })) :
|
|
6002
|
-
|
|
6003
|
-
let g =
|
|
6054
|
+
let h = r && r.state.matches.length ? r.state.matches.map((e) => Object.assign(e, { route: r.manifest[e.route.id] || e.route })) : Ir(t, { pathname: m });
|
|
6055
|
+
W(u || h != null, `No routes matched location "${f.pathname}${f.search}${f.hash}" `), W(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.`);
|
|
6056
|
+
let g = Ki(h && h.map((e) => Object.assign({}, e, {
|
|
6004
6057
|
params: Object.assign({}, s, e.params),
|
|
6005
|
-
pathname:
|
|
6006
|
-
pathnameBase: e.pathnameBase === "/" ? l :
|
|
6058
|
+
pathname: q([l, i.encodeLocation ? i.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
|
|
6059
|
+
pathnameBase: e.pathnameBase === "/" ? l : q([l, i.encodeLocation ? i.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
|
|
6007
6060
|
})), a, r);
|
|
6008
|
-
return n && g ? /* @__PURE__ */ e.createElement(
|
|
6061
|
+
return n && g ? /* @__PURE__ */ e.createElement(Z.Provider, { value: {
|
|
6009
6062
|
location: {
|
|
6010
6063
|
pathname: "/",
|
|
6011
6064
|
search: "",
|
|
@@ -6018,8 +6071,8 @@ Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" :
|
|
|
6018
6071
|
navigationType: "POP"
|
|
6019
6072
|
} }, g) : g;
|
|
6020
6073
|
}
|
|
6021
|
-
function
|
|
6022
|
-
let t =
|
|
6074
|
+
function Bi() {
|
|
6075
|
+
let t = ta(), n = hi(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 = {
|
|
6023
6076
|
padding: "0.5rem",
|
|
6024
6077
|
backgroundColor: i
|
|
6025
6078
|
}, o = {
|
|
@@ -6028,7 +6081,7 @@ function Ni() {
|
|
|
6028
6081
|
}, s = null;
|
|
6029
6082
|
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);
|
|
6030
6083
|
}
|
|
6031
|
-
var
|
|
6084
|
+
var Vi = /* @__PURE__ */ e.createElement(Bi, null), Hi = class extends e.Component {
|
|
6032
6085
|
constructor(e) {
|
|
6033
6086
|
super(e), this.state = {
|
|
6034
6087
|
location: e.location,
|
|
@@ -6056,30 +6109,30 @@ var Pi = /* @__PURE__ */ e.createElement(Ni, null), Fi = class extends e.Compone
|
|
|
6056
6109
|
render() {
|
|
6057
6110
|
let t = this.state.error;
|
|
6058
6111
|
if (this.context && typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
|
|
6059
|
-
let e =
|
|
6112
|
+
let e = ji(t.digest);
|
|
6060
6113
|
e && (t = e);
|
|
6061
6114
|
}
|
|
6062
|
-
let n = t === void 0 ? this.props.children : /* @__PURE__ */ e.createElement(
|
|
6115
|
+
let n = t === void 0 ? this.props.children : /* @__PURE__ */ e.createElement(Q.Provider, { value: this.props.routeContext }, /* @__PURE__ */ e.createElement(Ei.Provider, {
|
|
6063
6116
|
value: t,
|
|
6064
6117
|
children: this.props.component
|
|
6065
6118
|
}));
|
|
6066
|
-
return this.context ? /* @__PURE__ */ e.createElement(
|
|
6119
|
+
return this.context ? /* @__PURE__ */ e.createElement(Wi, { error: t }, n) : n;
|
|
6067
6120
|
}
|
|
6068
6121
|
};
|
|
6069
|
-
|
|
6070
|
-
var
|
|
6071
|
-
function
|
|
6072
|
-
let { basename: r } = e.useContext(
|
|
6122
|
+
Hi.contextType = xi;
|
|
6123
|
+
var Ui = /* @__PURE__ */ new WeakMap();
|
|
6124
|
+
function Wi({ children: t, error: n }) {
|
|
6125
|
+
let { basename: r } = e.useContext(X);
|
|
6073
6126
|
if (typeof n == "object" && n && "digest" in n && typeof n.digest == "string") {
|
|
6074
|
-
let t =
|
|
6127
|
+
let t = Ai(n.digest);
|
|
6075
6128
|
if (t) {
|
|
6076
|
-
let i =
|
|
6129
|
+
let i = Ui.get(n);
|
|
6077
6130
|
if (i) throw i;
|
|
6078
|
-
let a =
|
|
6079
|
-
if (
|
|
6131
|
+
let a = vi(t.location, r);
|
|
6132
|
+
if (_i && !Ui.get(n)) if (a.isExternal || t.reloadDocument) window.location.href = a.absoluteURL || a.to;
|
|
6080
6133
|
else {
|
|
6081
6134
|
let e = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: t.replace }));
|
|
6082
|
-
throw
|
|
6135
|
+
throw Ui.set(n, e), e;
|
|
6083
6136
|
}
|
|
6084
6137
|
return /* @__PURE__ */ e.createElement("meta", {
|
|
6085
6138
|
httpEquiv: "refresh",
|
|
@@ -6089,11 +6142,11 @@ function Li({ children: t, error: n }) {
|
|
|
6089
6142
|
}
|
|
6090
6143
|
return t;
|
|
6091
6144
|
}
|
|
6092
|
-
function
|
|
6093
|
-
let i = e.useContext(
|
|
6094
|
-
return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ e.createElement(
|
|
6145
|
+
function Gi({ routeContext: t, match: n, children: r }) {
|
|
6146
|
+
let i = e.useContext(J);
|
|
6147
|
+
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);
|
|
6095
6148
|
}
|
|
6096
|
-
function
|
|
6149
|
+
function Ki(t, n = [], r) {
|
|
6097
6150
|
let i = r?.state;
|
|
6098
6151
|
if (t == null) {
|
|
6099
6152
|
if (!i) return null;
|
|
@@ -6104,7 +6157,7 @@ function zi(t, n = [], r) {
|
|
|
6104
6157
|
let a = t, o = i?.errors;
|
|
6105
6158
|
if (o != null) {
|
|
6106
6159
|
let e = a.findIndex((e) => e.route.id && o?.[e.route.id] !== void 0);
|
|
6107
|
-
|
|
6160
|
+
U(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));
|
|
6108
6161
|
}
|
|
6109
6162
|
let s = !1, c = -1;
|
|
6110
6163
|
if (r && i) {
|
|
@@ -6124,16 +6177,16 @@ function zi(t, n = [], r) {
|
|
|
6124
6177
|
l(e, {
|
|
6125
6178
|
location: i.location,
|
|
6126
6179
|
params: i.matches?.[0]?.params ?? {},
|
|
6127
|
-
pattern:
|
|
6180
|
+
pattern: gi(i.matches),
|
|
6128
6181
|
errorInfo: t
|
|
6129
6182
|
});
|
|
6130
6183
|
} : void 0;
|
|
6131
6184
|
return a.reduceRight((t, r, l) => {
|
|
6132
6185
|
let d, f = !1, p = null, m = null;
|
|
6133
|
-
i && (d = o && r.route.id ? o[r.route.id] : void 0, p = r.route.errorElement ||
|
|
6186
|
+
i && (d = o && r.route.id ? o[r.route.id] : void 0, p = r.route.errorElement || Vi, s && (c < 0 && l === 0 ? (ia("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)));
|
|
6134
6187
|
let h = n.concat(a.slice(0, l + 1)), g = () => {
|
|
6135
6188
|
let n;
|
|
6136
|
-
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(
|
|
6189
|
+
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(Gi, {
|
|
6137
6190
|
match: r,
|
|
6138
6191
|
routeContext: {
|
|
6139
6192
|
outlet: t,
|
|
@@ -6143,7 +6196,7 @@ function zi(t, n = [], r) {
|
|
|
6143
6196
|
children: n
|
|
6144
6197
|
});
|
|
6145
6198
|
};
|
|
6146
|
-
return i && (r.route.ErrorBoundary || r.route.errorElement || l === 0) ? /* @__PURE__ */ e.createElement(
|
|
6199
|
+
return i && (r.route.ErrorBoundary || r.route.errorElement || l === 0) ? /* @__PURE__ */ e.createElement(Hi, {
|
|
6147
6200
|
location: i.location,
|
|
6148
6201
|
revalidation: i.revalidation,
|
|
6149
6202
|
component: p,
|
|
@@ -6158,61 +6211,61 @@ function zi(t, n = [], r) {
|
|
|
6158
6211
|
}) : g();
|
|
6159
6212
|
}, null);
|
|
6160
6213
|
}
|
|
6161
|
-
function
|
|
6214
|
+
function qi(e) {
|
|
6162
6215
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
6163
6216
|
}
|
|
6164
|
-
function
|
|
6165
|
-
let n = e.useContext(q);
|
|
6166
|
-
return H(n, Bi(t)), n;
|
|
6167
|
-
}
|
|
6168
|
-
function Hi(t) {
|
|
6217
|
+
function Ji(t) {
|
|
6169
6218
|
let n = e.useContext(J);
|
|
6170
|
-
return
|
|
6219
|
+
return U(n, qi(t)), n;
|
|
6220
|
+
}
|
|
6221
|
+
function Yi(t) {
|
|
6222
|
+
let n = e.useContext(Y);
|
|
6223
|
+
return U(n, qi(t)), n;
|
|
6171
6224
|
}
|
|
6172
|
-
function
|
|
6173
|
-
let n = e.useContext(
|
|
6174
|
-
return
|
|
6225
|
+
function Xi(t) {
|
|
6226
|
+
let n = e.useContext(Q);
|
|
6227
|
+
return U(n, qi(t)), n;
|
|
6175
6228
|
}
|
|
6176
|
-
function
|
|
6177
|
-
let t =
|
|
6178
|
-
return
|
|
6229
|
+
function Zi(e) {
|
|
6230
|
+
let t = Xi(e), n = t.matches[t.matches.length - 1];
|
|
6231
|
+
return U(n.route.id, `${e} can only be used on routes that contain a unique "id"`), n.route.id;
|
|
6179
6232
|
}
|
|
6180
|
-
function
|
|
6181
|
-
return
|
|
6233
|
+
function Qi() {
|
|
6234
|
+
return Zi("useRouteId");
|
|
6182
6235
|
}
|
|
6183
|
-
function
|
|
6184
|
-
let t =
|
|
6236
|
+
function $i() {
|
|
6237
|
+
let t = Yi("useNavigation");
|
|
6185
6238
|
return e.useMemo(() => {
|
|
6186
6239
|
let { matches: e, historyAction: n, ...r } = t.navigation;
|
|
6187
6240
|
return r;
|
|
6188
6241
|
}, [t.navigation]);
|
|
6189
6242
|
}
|
|
6190
|
-
function
|
|
6191
|
-
let { matches: t, loaderData: n } =
|
|
6192
|
-
return e.useMemo(() => t.map((e) =>
|
|
6243
|
+
function ea() {
|
|
6244
|
+
let { matches: t, loaderData: n } = Yi("useMatches");
|
|
6245
|
+
return e.useMemo(() => t.map((e) => Rr(e, n)), [t, n]);
|
|
6193
6246
|
}
|
|
6194
|
-
function
|
|
6195
|
-
let t = e.useContext(
|
|
6247
|
+
function ta() {
|
|
6248
|
+
let t = e.useContext(Ei), n = Yi("useRouteError"), r = Zi("useRouteError");
|
|
6196
6249
|
return t === void 0 ? n.errors?.[r] : t;
|
|
6197
6250
|
}
|
|
6198
|
-
function
|
|
6199
|
-
let { router: t } =
|
|
6200
|
-
return
|
|
6251
|
+
function na() {
|
|
6252
|
+
let { router: t } = Ji("useNavigate"), n = Zi("useNavigate"), r = e.useRef(!1);
|
|
6253
|
+
return Fi(() => {
|
|
6201
6254
|
r.current = !0;
|
|
6202
6255
|
}), e.useCallback(async (e, i = {}) => {
|
|
6203
|
-
|
|
6256
|
+
W(r.current, Pi), r.current && (typeof e == "number" ? await t.navigate(e) : await t.navigate(e, {
|
|
6204
6257
|
fromRouteId: n,
|
|
6205
6258
|
...i
|
|
6206
6259
|
}));
|
|
6207
6260
|
}, [t, n]);
|
|
6208
6261
|
}
|
|
6209
|
-
var
|
|
6210
|
-
function
|
|
6211
|
-
!t && !
|
|
6262
|
+
var ra = {};
|
|
6263
|
+
function ia(e, t, n) {
|
|
6264
|
+
!t && !ra[e] && (ra[e] = !0, W(!1, n));
|
|
6212
6265
|
}
|
|
6213
|
-
e.memo(
|
|
6214
|
-
function
|
|
6215
|
-
return
|
|
6266
|
+
e.memo(aa);
|
|
6267
|
+
function aa({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError: a }) {
|
|
6268
|
+
return zi(e, void 0, {
|
|
6216
6269
|
manifest: t,
|
|
6217
6270
|
state: r,
|
|
6218
6271
|
isStatic: i,
|
|
@@ -6220,8 +6273,8 @@ function Qi({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError:
|
|
|
6220
6273
|
future: n
|
|
6221
6274
|
});
|
|
6222
6275
|
}
|
|
6223
|
-
function
|
|
6224
|
-
|
|
6276
|
+
function oa({ basename: t = "/", children: n = null, location: r, navigationType: i = "POP", navigator: a, static: o = !1, useTransitions: s }) {
|
|
6277
|
+
U(!Ni(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
|
|
6225
6278
|
let c = t.replace(/^\/*/, "/"), l = e.useMemo(() => ({
|
|
6226
6279
|
basename: c,
|
|
6227
6280
|
navigator: a,
|
|
@@ -6234,9 +6287,9 @@ function $i({ basename: t = "/", children: n = null, location: r, navigationType
|
|
|
6234
6287
|
o,
|
|
6235
6288
|
s
|
|
6236
6289
|
]);
|
|
6237
|
-
typeof r == "string" && (r =
|
|
6290
|
+
typeof r == "string" && (r = G(r));
|
|
6238
6291
|
let { pathname: u = "/", search: d = "", hash: f = "", state: p = null, key: m = "default", mask: h } = r, g = e.useMemo(() => {
|
|
6239
|
-
let e =
|
|
6292
|
+
let e = K(u, c);
|
|
6240
6293
|
return e == null ? null : {
|
|
6241
6294
|
location: {
|
|
6242
6295
|
pathname: e,
|
|
@@ -6258,66 +6311,66 @@ function $i({ basename: t = "/", children: n = null, location: r, navigationType
|
|
|
6258
6311
|
i,
|
|
6259
6312
|
h
|
|
6260
6313
|
]);
|
|
6261
|
-
return
|
|
6314
|
+
return W(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(X.Provider, { value: l }, /* @__PURE__ */ e.createElement(Z.Provider, {
|
|
6262
6315
|
children: n,
|
|
6263
6316
|
value: g
|
|
6264
6317
|
}));
|
|
6265
6318
|
}
|
|
6266
6319
|
e.Component;
|
|
6267
|
-
var
|
|
6268
|
-
function
|
|
6320
|
+
var sa = "get", ca = "application/x-www-form-urlencoded";
|
|
6321
|
+
function la(e) {
|
|
6269
6322
|
return typeof HTMLElement < "u" && e instanceof HTMLElement;
|
|
6270
6323
|
}
|
|
6271
|
-
function
|
|
6272
|
-
return
|
|
6324
|
+
function ua(e) {
|
|
6325
|
+
return la(e) && e.tagName.toLowerCase() === "button";
|
|
6273
6326
|
}
|
|
6274
|
-
function
|
|
6275
|
-
return
|
|
6327
|
+
function da(e) {
|
|
6328
|
+
return la(e) && e.tagName.toLowerCase() === "form";
|
|
6276
6329
|
}
|
|
6277
|
-
function
|
|
6278
|
-
return
|
|
6330
|
+
function fa(e) {
|
|
6331
|
+
return la(e) && e.tagName.toLowerCase() === "input";
|
|
6279
6332
|
}
|
|
6280
|
-
function
|
|
6333
|
+
function pa(e) {
|
|
6281
6334
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
6282
6335
|
}
|
|
6283
|
-
function
|
|
6284
|
-
return e.button === 0 && (!t || t === "_self") && !
|
|
6336
|
+
function ma(e, t) {
|
|
6337
|
+
return e.button === 0 && (!t || t === "_self") && !pa(e);
|
|
6285
6338
|
}
|
|
6286
|
-
var
|
|
6287
|
-
function
|
|
6288
|
-
if (
|
|
6289
|
-
new FormData(document.createElement("form"), 0),
|
|
6339
|
+
var ha = null;
|
|
6340
|
+
function ga() {
|
|
6341
|
+
if (ha === null) try {
|
|
6342
|
+
new FormData(document.createElement("form"), 0), ha = !1;
|
|
6290
6343
|
} catch {
|
|
6291
|
-
|
|
6344
|
+
ha = !0;
|
|
6292
6345
|
}
|
|
6293
|
-
return
|
|
6346
|
+
return ha;
|
|
6294
6347
|
}
|
|
6295
|
-
var
|
|
6348
|
+
var _a = /* @__PURE__ */ new Set([
|
|
6296
6349
|
"application/x-www-form-urlencoded",
|
|
6297
6350
|
"multipart/form-data",
|
|
6298
6351
|
"text/plain"
|
|
6299
6352
|
]);
|
|
6300
|
-
function
|
|
6301
|
-
return e != null && !
|
|
6353
|
+
function va(e) {
|
|
6354
|
+
return e != null && !_a.has(e) ? (W(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ca}"`), null) : e;
|
|
6302
6355
|
}
|
|
6303
|
-
function
|
|
6356
|
+
function ya(e, t) {
|
|
6304
6357
|
let n, r, i, a, o;
|
|
6305
|
-
if (
|
|
6358
|
+
if (da(e)) {
|
|
6306
6359
|
let o = e.getAttribute("action");
|
|
6307
|
-
r = o ?
|
|
6308
|
-
} else if (
|
|
6360
|
+
r = o ? K(o, t) : null, n = e.getAttribute("method") || sa, i = va(e.getAttribute("enctype")) || ca, a = new FormData(e);
|
|
6361
|
+
} else if (ua(e) || fa(e) && (e.type === "submit" || e.type === "image")) {
|
|
6309
6362
|
let o = e.form;
|
|
6310
6363
|
if (o == null) throw Error("Cannot submit a <button> or <input type=\"submit\"> without a <form>");
|
|
6311
6364
|
let s = e.getAttribute("formaction") || o.getAttribute("action");
|
|
6312
|
-
if (r = s ?
|
|
6365
|
+
if (r = s ? K(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") || sa, i = va(e.getAttribute("formenctype")) || va(o.getAttribute("enctype")) || ca, a = new FormData(o, e), !ga()) {
|
|
6313
6366
|
let { name: t, type: n, value: r } = e;
|
|
6314
6367
|
if (n === "image") {
|
|
6315
6368
|
let e = t ? `${t}.` : "";
|
|
6316
6369
|
a.append(`${e}x`, "0"), a.append(`${e}y`, "0");
|
|
6317
6370
|
} else t && a.append(t, r);
|
|
6318
6371
|
}
|
|
6319
|
-
} else if (
|
|
6320
|
-
else n =
|
|
6372
|
+
} else if (la(e)) throw Error("Cannot submit element that is not <form>, <button>, or <input type=\"submit|image\">");
|
|
6373
|
+
else n = sa, r = null, i = ca, o = e;
|
|
6321
6374
|
return a && i === "text/plain" && (o = a, a = void 0), {
|
|
6322
6375
|
action: r,
|
|
6323
6376
|
method: n.toLowerCase(),
|
|
@@ -6327,24 +6380,24 @@ function fa(e, t) {
|
|
|
6327
6380
|
};
|
|
6328
6381
|
}
|
|
6329
6382
|
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
6330
|
-
var
|
|
6383
|
+
var ba = {
|
|
6331
6384
|
"&": "\\u0026",
|
|
6332
6385
|
">": "\\u003e",
|
|
6333
6386
|
"<": "\\u003c",
|
|
6334
6387
|
"\u2028": "\\u2028",
|
|
6335
6388
|
"\u2029": "\\u2029"
|
|
6336
|
-
},
|
|
6337
|
-
function
|
|
6338
|
-
return e.replace(
|
|
6389
|
+
}, xa = /[&><\u2028\u2029]/g;
|
|
6390
|
+
function Sa(e) {
|
|
6391
|
+
return e.replace(xa, (e) => ba[e]);
|
|
6339
6392
|
}
|
|
6340
|
-
function
|
|
6393
|
+
function Ca(e, t) {
|
|
6341
6394
|
if (e === !1 || e == null) throw Error(t);
|
|
6342
6395
|
}
|
|
6343
|
-
function
|
|
6396
|
+
function wa(e, t, n, r) {
|
|
6344
6397
|
let i = typeof e == "string" ? new URL(e, typeof window > "u" ? "server://singlefetch/" : window.location.origin) : e;
|
|
6345
|
-
return n ? i.pathname.endsWith("/") ? i.pathname = `${i.pathname}_.${r}` : i.pathname = `${i.pathname}.${r}` : i.pathname === "/" ? i.pathname = `_root.${r}` : t &&
|
|
6398
|
+
return n ? i.pathname.endsWith("/") ? i.pathname = `${i.pathname}_.${r}` : i.pathname = `${i.pathname}.${r}` : i.pathname === "/" ? i.pathname = `_root.${r}` : t && K(i.pathname, t) === "/" ? i.pathname = `${ui(t)}/_root.${r}` : i.pathname = `${ui(i.pathname)}.${r}`, i;
|
|
6346
6399
|
}
|
|
6347
|
-
async function
|
|
6400
|
+
async function Ta(e, t) {
|
|
6348
6401
|
if (e.id in t) return t[e.id];
|
|
6349
6402
|
try {
|
|
6350
6403
|
let n = await import(
|
|
@@ -6357,21 +6410,21 @@ async function va(e, t) {
|
|
|
6357
6410
|
return console.error(`Error loading route module \`${e.module}\`, reloading page...`), console.error(t), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {});
|
|
6358
6411
|
}
|
|
6359
6412
|
}
|
|
6360
|
-
function
|
|
6413
|
+
function Ea(e) {
|
|
6361
6414
|
return e != null && typeof e.page == "string";
|
|
6362
6415
|
}
|
|
6363
|
-
function
|
|
6416
|
+
function Da(e) {
|
|
6364
6417
|
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";
|
|
6365
6418
|
}
|
|
6366
|
-
async function
|
|
6367
|
-
return
|
|
6419
|
+
async function Oa(e, t, n) {
|
|
6420
|
+
return Na((await Promise.all(e.map(async (e) => {
|
|
6368
6421
|
let r = t.routes[e.route.id];
|
|
6369
6422
|
if (r) {
|
|
6370
|
-
let e = await
|
|
6423
|
+
let e = await Ta(r, n);
|
|
6371
6424
|
return e.links ? e.links() : [];
|
|
6372
6425
|
}
|
|
6373
6426
|
return [];
|
|
6374
|
-
}))).flat(1).filter(
|
|
6427
|
+
}))).flat(1).filter(Da).filter((e) => e.rel === "stylesheet" || e.rel === "preload").map((e) => e.rel === "stylesheet" ? {
|
|
6375
6428
|
...e,
|
|
6376
6429
|
rel: "prefetch",
|
|
6377
6430
|
as: "style"
|
|
@@ -6380,7 +6433,7 @@ async function xa(e, t, n) {
|
|
|
6380
6433
|
rel: "prefetch"
|
|
6381
6434
|
}));
|
|
6382
6435
|
}
|
|
6383
|
-
function
|
|
6436
|
+
function ka(e, t, n, r, i, a) {
|
|
6384
6437
|
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["*"];
|
|
6385
6438
|
return a === "assets" ? t.filter((e, t) => o(e, t) || s(e, t)) : a === "data" ? t.filter((t, a) => {
|
|
6386
6439
|
let c = r.routes[t.route.id];
|
|
@@ -6399,49 +6452,49 @@ function Sa(e, t, n, r, i, a) {
|
|
|
6399
6452
|
return !0;
|
|
6400
6453
|
}) : [];
|
|
6401
6454
|
}
|
|
6402
|
-
function
|
|
6403
|
-
return
|
|
6455
|
+
function Aa(e, t, { includeHydrateFallback: n } = {}) {
|
|
6456
|
+
return ja(e.map((e) => {
|
|
6404
6457
|
let r = t.routes[e.route.id];
|
|
6405
6458
|
if (!r) return [];
|
|
6406
6459
|
let i = [r.module];
|
|
6407
6460
|
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;
|
|
6408
6461
|
}).flat(1));
|
|
6409
6462
|
}
|
|
6410
|
-
function
|
|
6463
|
+
function ja(e) {
|
|
6411
6464
|
return [...new Set(e)];
|
|
6412
6465
|
}
|
|
6413
|
-
function
|
|
6466
|
+
function Ma(e) {
|
|
6414
6467
|
let t = {}, n = Object.keys(e).sort();
|
|
6415
6468
|
for (let r of n) t[r] = e[r];
|
|
6416
6469
|
return t;
|
|
6417
6470
|
}
|
|
6418
|
-
function
|
|
6471
|
+
function Na(e, t) {
|
|
6419
6472
|
let n = /* @__PURE__ */ new Set(), r = new Set(t);
|
|
6420
6473
|
return e.reduce((e, i) => {
|
|
6421
|
-
if (t && !
|
|
6422
|
-
let a = JSON.stringify(
|
|
6474
|
+
if (t && !Ea(i) && i.as === "script" && i.href && r.has(i.href)) return e;
|
|
6475
|
+
let a = JSON.stringify(Ma(i));
|
|
6423
6476
|
return n.has(a) || (n.add(a), e.push({
|
|
6424
6477
|
key: a,
|
|
6425
6478
|
link: i
|
|
6426
6479
|
})), e;
|
|
6427
6480
|
}, []);
|
|
6428
6481
|
}
|
|
6429
|
-
function
|
|
6430
|
-
let t = e.useContext(q);
|
|
6431
|
-
return ga(t, "You must render this element inside a <DataRouterContext.Provider> element"), t;
|
|
6432
|
-
}
|
|
6433
|
-
function Oa() {
|
|
6482
|
+
function Pa() {
|
|
6434
6483
|
let t = e.useContext(J);
|
|
6435
|
-
return
|
|
6484
|
+
return Ca(t, "You must render this element inside a <DataRouterContext.Provider> element"), t;
|
|
6485
|
+
}
|
|
6486
|
+
function Fa() {
|
|
6487
|
+
let t = e.useContext(Y);
|
|
6488
|
+
return Ca(t, "You must render this element inside a <DataRouterStateContext.Provider> element"), t;
|
|
6436
6489
|
}
|
|
6437
|
-
var
|
|
6438
|
-
|
|
6439
|
-
function
|
|
6440
|
-
let t = e.useContext(
|
|
6441
|
-
return
|
|
6490
|
+
var Ia = e.createContext(void 0);
|
|
6491
|
+
Ia.displayName = "FrameworkContext";
|
|
6492
|
+
function La() {
|
|
6493
|
+
let t = e.useContext(Ia);
|
|
6494
|
+
return Ca(t, "You must render this element inside a <HydratedRouter> element"), t;
|
|
6442
6495
|
}
|
|
6443
|
-
function
|
|
6444
|
-
let r = e.useContext(
|
|
6496
|
+
function Ra(t, n) {
|
|
6497
|
+
let r = e.useContext(Ia), [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);
|
|
6445
6498
|
e.useEffect(() => {
|
|
6446
6499
|
if (t === "render" && s(!0), t === "viewport") {
|
|
6447
6500
|
let e = new IntersectionObserver((e) => {
|
|
@@ -6472,11 +6525,11 @@ function ja(t, n) {
|
|
|
6472
6525
|
o,
|
|
6473
6526
|
p,
|
|
6474
6527
|
{
|
|
6475
|
-
onFocus:
|
|
6476
|
-
onBlur:
|
|
6477
|
-
onMouseEnter:
|
|
6478
|
-
onMouseLeave:
|
|
6479
|
-
onTouchStart:
|
|
6528
|
+
onFocus: za(c, m),
|
|
6529
|
+
onBlur: za(l, h),
|
|
6530
|
+
onMouseEnter: za(u, m),
|
|
6531
|
+
onMouseLeave: za(d, h),
|
|
6532
|
+
onTouchStart: za(f, m)
|
|
6480
6533
|
}
|
|
6481
6534
|
] : [
|
|
6482
6535
|
o,
|
|
@@ -6488,32 +6541,32 @@ function ja(t, n) {
|
|
|
6488
6541
|
{}
|
|
6489
6542
|
];
|
|
6490
6543
|
}
|
|
6491
|
-
function
|
|
6544
|
+
function za(e, t) {
|
|
6492
6545
|
return (n) => {
|
|
6493
6546
|
e && e(n), n.defaultPrevented || t(n);
|
|
6494
6547
|
};
|
|
6495
6548
|
}
|
|
6496
|
-
function
|
|
6497
|
-
let r =
|
|
6549
|
+
function Ba({ page: t, ...n }) {
|
|
6550
|
+
let r = Si(), { router: i } = Pa(), a = e.useMemo(() => Ir(i.routes, t, i.basename), [
|
|
6498
6551
|
i.routes,
|
|
6499
6552
|
t,
|
|
6500
6553
|
i.basename
|
|
6501
6554
|
]);
|
|
6502
|
-
return a ? r ? /* @__PURE__ */ e.createElement(
|
|
6555
|
+
return a ? r ? /* @__PURE__ */ e.createElement(Ha, {
|
|
6503
6556
|
page: t,
|
|
6504
6557
|
matches: a,
|
|
6505
6558
|
...n
|
|
6506
|
-
}) : /* @__PURE__ */ e.createElement(
|
|
6559
|
+
}) : /* @__PURE__ */ e.createElement(Ua, {
|
|
6507
6560
|
page: t,
|
|
6508
6561
|
matches: a,
|
|
6509
6562
|
...n
|
|
6510
6563
|
}) : null;
|
|
6511
6564
|
}
|
|
6512
|
-
function
|
|
6513
|
-
let { manifest: n, routeModules: r } =
|
|
6565
|
+
function Va(t) {
|
|
6566
|
+
let { manifest: n, routeModules: r } = La(), [i, a] = e.useState([]);
|
|
6514
6567
|
return e.useEffect(() => {
|
|
6515
6568
|
let e = !1;
|
|
6516
|
-
return
|
|
6569
|
+
return Oa(t, n, r).then((t) => {
|
|
6517
6570
|
e || a(t);
|
|
6518
6571
|
}), () => {
|
|
6519
6572
|
e = !0;
|
|
@@ -6524,10 +6577,10 @@ function Pa(t) {
|
|
|
6524
6577
|
r
|
|
6525
6578
|
]), i;
|
|
6526
6579
|
}
|
|
6527
|
-
function
|
|
6528
|
-
let i = $(), { future: a } =
|
|
6580
|
+
function Ha({ page: t, matches: n, ...r }) {
|
|
6581
|
+
let i = $(), { future: a } = La(), { basename: o } = Pa(), s = e.useMemo(() => {
|
|
6529
6582
|
if (t === i.pathname + i.search + i.hash) return [];
|
|
6530
|
-
let e =
|
|
6583
|
+
let e = wa(t, o, a.unstable_trailingSlashAwareDataRequests, "rsc"), r = !1, s = [];
|
|
6531
6584
|
for (let e of n) typeof e.route.shouldRevalidate == "function" ? r = !0 : s.push(e.route.id);
|
|
6532
6585
|
return r && s.length > 0 && e.searchParams.set("_routes", s.join(",")), [e.pathname + e.search];
|
|
6533
6586
|
}, [
|
|
@@ -6545,14 +6598,14 @@ function Fa({ page: t, matches: n, ...r }) {
|
|
|
6545
6598
|
...r
|
|
6546
6599
|
})));
|
|
6547
6600
|
}
|
|
6548
|
-
function
|
|
6549
|
-
let i = $(), { future: a, manifest: o, routeModules: s } =
|
|
6601
|
+
function Ua({ page: t, matches: n, ...r }) {
|
|
6602
|
+
let i = $(), { future: a, manifest: o, routeModules: s } = La(), { basename: c } = Pa(), { loaderData: l, matches: u } = Fa(), d = e.useMemo(() => ka(t, n, u, o, i, "data"), [
|
|
6550
6603
|
t,
|
|
6551
6604
|
n,
|
|
6552
6605
|
u,
|
|
6553
6606
|
o,
|
|
6554
6607
|
i
|
|
6555
|
-
]), f = e.useMemo(() =>
|
|
6608
|
+
]), f = e.useMemo(() => ka(t, n, u, o, i, "assets"), [
|
|
6556
6609
|
t,
|
|
6557
6610
|
n,
|
|
6558
6611
|
u,
|
|
@@ -6565,7 +6618,7 @@ function Ia({ page: t, matches: n, ...r }) {
|
|
|
6565
6618
|
let n = o.routes[t.route.id];
|
|
6566
6619
|
!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));
|
|
6567
6620
|
}), e.size === 0) return [];
|
|
6568
|
-
let u =
|
|
6621
|
+
let u = wa(t, c, a.unstable_trailingSlashAwareDataRequests, "data");
|
|
6569
6622
|
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];
|
|
6570
6623
|
}, [
|
|
6571
6624
|
c,
|
|
@@ -6577,7 +6630,7 @@ function Ia({ page: t, matches: n, ...r }) {
|
|
|
6577
6630
|
n,
|
|
6578
6631
|
t,
|
|
6579
6632
|
s
|
|
6580
|
-
]), m = e.useMemo(() =>
|
|
6633
|
+
]), m = e.useMemo(() => Aa(f, o), [f, o]), h = Va(f);
|
|
6581
6634
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, p.map((t) => /* @__PURE__ */ e.createElement("link", {
|
|
6582
6635
|
key: t,
|
|
6583
6636
|
rel: "prefetch",
|
|
@@ -6596,7 +6649,7 @@ function Ia({ page: t, matches: n, ...r }) {
|
|
|
6596
6649
|
crossOrigin: n.crossOrigin ?? r.crossOrigin
|
|
6597
6650
|
})));
|
|
6598
6651
|
}
|
|
6599
|
-
function
|
|
6652
|
+
function Wa(...e) {
|
|
6600
6653
|
return (t) => {
|
|
6601
6654
|
e.forEach((e) => {
|
|
6602
6655
|
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
@@ -6604,18 +6657,18 @@ function La(...e) {
|
|
|
6604
6657
|
};
|
|
6605
6658
|
}
|
|
6606
6659
|
e.Component;
|
|
6607
|
-
var
|
|
6660
|
+
var Ga = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
|
|
6608
6661
|
try {
|
|
6609
|
-
|
|
6662
|
+
Ga && (window.__reactRouterVersion = "7.15.1");
|
|
6610
6663
|
} catch {}
|
|
6611
|
-
function
|
|
6664
|
+
function Ka({ basename: t, children: n, history: r, useTransitions: i }) {
|
|
6612
6665
|
let [a, o] = e.useState({
|
|
6613
6666
|
action: r.action,
|
|
6614
6667
|
location: r.location
|
|
6615
6668
|
}), s = e.useCallback((t) => {
|
|
6616
6669
|
i === !1 ? o(t) : e.startTransition(() => o(t));
|
|
6617
6670
|
}, [i]);
|
|
6618
|
-
return e.useLayoutEffect(() => r.listen(s), [r, s]), /* @__PURE__ */ e.createElement(
|
|
6671
|
+
return e.useLayoutEffect(() => r.listen(s), [r, s]), /* @__PURE__ */ e.createElement(oa, {
|
|
6619
6672
|
basename: t,
|
|
6620
6673
|
children: n,
|
|
6621
6674
|
location: a.location,
|
|
@@ -6624,16 +6677,16 @@ function za({ basename: t, children: n, history: r, useTransitions: i }) {
|
|
|
6624
6677
|
useTransitions: i
|
|
6625
6678
|
});
|
|
6626
6679
|
}
|
|
6627
|
-
|
|
6628
|
-
var
|
|
6629
|
-
let { basename: g, navigator: _, useTransitions: v } = e.useContext(
|
|
6680
|
+
Ka.displayName = "unstable_HistoryRouter";
|
|
6681
|
+
var qa = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ja = 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) {
|
|
6682
|
+
let { basename: g, navigator: _, useTransitions: v } = e.useContext(X), y = typeof u == "string" && qa.test(u), b = vi(u, g);
|
|
6630
6683
|
u = b.to;
|
|
6631
|
-
let x =
|
|
6684
|
+
let x = Mi(u, { relative: i }), S = $(), C = null;
|
|
6632
6685
|
if (s) {
|
|
6633
|
-
let e =
|
|
6634
|
-
g !== "/" && (e.pathname = e.pathname === "/" ? g :
|
|
6686
|
+
let e = ci(s, [], S.mask ? S.mask.pathname : "/", !0);
|
|
6687
|
+
g !== "/" && (e.pathname = e.pathname === "/" ? g : q([g, e.pathname])), C = _.createHref(e);
|
|
6635
6688
|
}
|
|
6636
|
-
let [w, T,
|
|
6689
|
+
let [w, T, E] = Ra(r, m), ee = to(u, {
|
|
6637
6690
|
replace: o,
|
|
6638
6691
|
mask: s,
|
|
6639
6692
|
state: c,
|
|
@@ -6644,24 +6697,24 @@ var Ba = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Va = e.forwardRef(function({ onClick:
|
|
|
6644
6697
|
defaultShouldRevalidate: p,
|
|
6645
6698
|
useTransitions: v
|
|
6646
6699
|
});
|
|
6647
|
-
function
|
|
6648
|
-
t && t(e), e.defaultPrevented ||
|
|
6700
|
+
function te(e) {
|
|
6701
|
+
t && t(e), e.defaultPrevented || ee(e);
|
|
6649
6702
|
}
|
|
6650
|
-
let
|
|
6703
|
+
let ne = !(b.isExternal || a), re = /* @__PURE__ */ e.createElement("a", {
|
|
6651
6704
|
...m,
|
|
6652
|
-
...
|
|
6653
|
-
href: (
|
|
6654
|
-
onClick:
|
|
6655
|
-
ref:
|
|
6705
|
+
...E,
|
|
6706
|
+
href: (ne ? C : void 0) || b.absoluteURL || x,
|
|
6707
|
+
onClick: ne ? te : t,
|
|
6708
|
+
ref: Wa(h, T),
|
|
6656
6709
|
target: l,
|
|
6657
6710
|
"data-discover": !y && n === "render" ? "true" : void 0
|
|
6658
6711
|
});
|
|
6659
|
-
return w && !y ? /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
6712
|
+
return w && !y ? /* @__PURE__ */ e.createElement(e.Fragment, null, re, /* @__PURE__ */ e.createElement(Ba, { page: x })) : re;
|
|
6660
6713
|
});
|
|
6661
|
-
|
|
6662
|
-
var
|
|
6663
|
-
let d =
|
|
6664
|
-
n || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && h && (y =
|
|
6714
|
+
Ja.displayName = "Link";
|
|
6715
|
+
var Ya = 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) {
|
|
6716
|
+
let d = Ri(o, { relative: l.relative }), f = $(), p = e.useContext(Y), { navigator: m, basename: h } = e.useContext(X), g = p != null && fo(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;
|
|
6717
|
+
n || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && h && (y = K(y, h) || y);
|
|
6665
6718
|
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 = {
|
|
6666
6719
|
isActive: x,
|
|
6667
6720
|
isPending: S,
|
|
@@ -6673,20 +6726,20 @@ var Ha = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n =
|
|
|
6673
6726
|
S ? "pending" : null,
|
|
6674
6727
|
g ? "transitioning" : null
|
|
6675
6728
|
].filter(Boolean).join(" ");
|
|
6676
|
-
let
|
|
6677
|
-
return /* @__PURE__ */ e.createElement(
|
|
6729
|
+
let E = typeof a == "function" ? a(C) : a;
|
|
6730
|
+
return /* @__PURE__ */ e.createElement(Ja, {
|
|
6678
6731
|
...l,
|
|
6679
6732
|
"aria-current": w,
|
|
6680
6733
|
className: T,
|
|
6681
6734
|
ref: u,
|
|
6682
|
-
style:
|
|
6735
|
+
style: E,
|
|
6683
6736
|
to: o,
|
|
6684
6737
|
viewTransition: s
|
|
6685
6738
|
}, typeof c == "function" ? c(C) : c);
|
|
6686
6739
|
});
|
|
6687
|
-
|
|
6688
|
-
var
|
|
6689
|
-
let { useTransitions: g } = e.useContext(
|
|
6740
|
+
Ya.displayName = "NavLink";
|
|
6741
|
+
var Xa = e.forwardRef(({ discover: t = "render", fetcherKey: n, navigate: r, reloadDocument: i, replace: a, state: o, method: s = sa, action: c, onSubmit: l, relative: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) => {
|
|
6742
|
+
let { useTransitions: g } = e.useContext(X), _ = io(), v = ao(c, { relative: u }), y = s.toLowerCase() === "get" ? "get" : "post", b = typeof c == "string" && qa.test(c);
|
|
6690
6743
|
return /* @__PURE__ */ e.createElement("form", {
|
|
6691
6744
|
ref: h,
|
|
6692
6745
|
method: y,
|
|
@@ -6711,16 +6764,16 @@ var Ua = e.forwardRef(({ discover: t = "render", fetcherKey: n, navigate: r, rel
|
|
|
6711
6764
|
"data-discover": !b && t === "render" ? "true" : void 0
|
|
6712
6765
|
});
|
|
6713
6766
|
});
|
|
6714
|
-
|
|
6715
|
-
function
|
|
6716
|
-
let i = e.useContext(
|
|
6717
|
-
|
|
6767
|
+
Xa.displayName = "Form";
|
|
6768
|
+
function Za({ getKey: t, storageKey: n, ...r }) {
|
|
6769
|
+
let i = e.useContext(Ia), { basename: a } = e.useContext(X), o = $(), s = ea();
|
|
6770
|
+
lo({
|
|
6718
6771
|
getKey: t,
|
|
6719
6772
|
storageKey: n
|
|
6720
6773
|
});
|
|
6721
6774
|
let c = e.useMemo(() => {
|
|
6722
6775
|
if (!i || !t) return null;
|
|
6723
|
-
let e =
|
|
6776
|
+
let e = co(o, s, a, t);
|
|
6724
6777
|
return e === o.key ? null : e;
|
|
6725
6778
|
}, []);
|
|
6726
6779
|
if (!i || i.isSpaMode) return null;
|
|
@@ -6739,27 +6792,27 @@ function Wa({ getKey: t, storageKey: n, ...r }) {
|
|
|
6739
6792
|
return /* @__PURE__ */ e.createElement("script", {
|
|
6740
6793
|
...r,
|
|
6741
6794
|
suppressHydrationWarning: !0,
|
|
6742
|
-
dangerouslySetInnerHTML: { __html: `(${l})(${
|
|
6795
|
+
dangerouslySetInnerHTML: { __html: `(${l})(${Sa(JSON.stringify(n || oo))}, ${Sa(JSON.stringify(c))})` }
|
|
6743
6796
|
});
|
|
6744
6797
|
}
|
|
6745
|
-
|
|
6746
|
-
function
|
|
6798
|
+
Za.displayName = "ScrollRestoration";
|
|
6799
|
+
function Qa(e) {
|
|
6747
6800
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
6748
6801
|
}
|
|
6749
|
-
function
|
|
6750
|
-
let n = e.useContext(q);
|
|
6751
|
-
return H(n, Ga(t)), n;
|
|
6752
|
-
}
|
|
6753
|
-
function qa(t) {
|
|
6802
|
+
function $a(t) {
|
|
6754
6803
|
let n = e.useContext(J);
|
|
6755
|
-
return
|
|
6804
|
+
return U(n, Qa(t)), n;
|
|
6805
|
+
}
|
|
6806
|
+
function eo(t) {
|
|
6807
|
+
let n = e.useContext(Y);
|
|
6808
|
+
return U(n, Qa(t)), n;
|
|
6756
6809
|
}
|
|
6757
|
-
function
|
|
6758
|
-
let d =
|
|
6810
|
+
function to(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: o, relative: s, viewTransition: c, defaultShouldRevalidate: l, useTransitions: u } = {}) {
|
|
6811
|
+
let d = Ii(), f = $(), p = Ri(t, { relative: s });
|
|
6759
6812
|
return e.useCallback((m) => {
|
|
6760
|
-
if (
|
|
6813
|
+
if (ma(m, n)) {
|
|
6761
6814
|
m.preventDefault();
|
|
6762
|
-
let n = r === void 0 ?
|
|
6815
|
+
let n = r === void 0 ? Fr(f) === Fr(p) : r, h = () => d(t, {
|
|
6763
6816
|
replace: n,
|
|
6764
6817
|
mask: i,
|
|
6765
6818
|
state: a,
|
|
@@ -6786,12 +6839,12 @@ function Ja(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: o
|
|
|
6786
6839
|
u
|
|
6787
6840
|
]);
|
|
6788
6841
|
}
|
|
6789
|
-
var
|
|
6790
|
-
function
|
|
6791
|
-
let { router: t } =
|
|
6842
|
+
var no = 0, ro = () => `__${String(++no)}__`;
|
|
6843
|
+
function io() {
|
|
6844
|
+
let { router: t } = $a("useSubmit"), { basename: n } = e.useContext(X), r = Qi(), i = t.fetch, a = t.navigate;
|
|
6792
6845
|
return e.useCallback(async (e, t = {}) => {
|
|
6793
|
-
let { action: o, method: s, encType: c, formData: l, body: u } =
|
|
6794
|
-
t.navigate === !1 ? await i(t.fetcherKey ||
|
|
6846
|
+
let { action: o, method: s, encType: c, formData: l, body: u } = ya(e, n);
|
|
6847
|
+
t.navigate === !1 ? await i(t.fetcherKey || ro(), r, t.action || o, {
|
|
6795
6848
|
defaultShouldRevalidate: t.defaultShouldRevalidate,
|
|
6796
6849
|
preventScrollReset: t.preventScrollReset,
|
|
6797
6850
|
formData: l,
|
|
@@ -6819,10 +6872,10 @@ function Za() {
|
|
|
6819
6872
|
r
|
|
6820
6873
|
]);
|
|
6821
6874
|
}
|
|
6822
|
-
function
|
|
6823
|
-
let { basename: r } = e.useContext(
|
|
6824
|
-
|
|
6825
|
-
let [a] = i.matches.slice(-1), o = { ...
|
|
6875
|
+
function ao(t, { relative: n } = {}) {
|
|
6876
|
+
let { basename: r } = e.useContext(X), i = e.useContext(Q);
|
|
6877
|
+
U(i, "useFormAction must be used inside a RouteContext");
|
|
6878
|
+
let [a] = i.matches.slice(-1), o = { ...Ri(t || ".", { relative: n }) }, s = $();
|
|
6826
6879
|
if (t == null) {
|
|
6827
6880
|
o.search = s.search;
|
|
6828
6881
|
let e = new URLSearchParams(o.search), t = e.getAll("index");
|
|
@@ -6832,29 +6885,29 @@ function Qa(t, { relative: n } = {}) {
|
|
|
6832
6885
|
o.search = n ? `?${n}` : "";
|
|
6833
6886
|
}
|
|
6834
6887
|
}
|
|
6835
|
-
return (!t || t === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (o.pathname = o.pathname === "/" ? r :
|
|
6888
|
+
return (!t || t === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (o.pathname = o.pathname === "/" ? r : q([r, o.pathname])), Fr(o);
|
|
6836
6889
|
}
|
|
6837
|
-
var
|
|
6838
|
-
function
|
|
6890
|
+
var oo = "react-router-scroll-positions", so = {};
|
|
6891
|
+
function co(e, t, n, r) {
|
|
6839
6892
|
let i = null;
|
|
6840
6893
|
return r && (i = r(n === "/" ? e : {
|
|
6841
6894
|
...e,
|
|
6842
|
-
pathname:
|
|
6895
|
+
pathname: K(e.pathname, n) || e.pathname
|
|
6843
6896
|
}, t)), i ??= e.key, i;
|
|
6844
6897
|
}
|
|
6845
|
-
function
|
|
6846
|
-
let { router: r } =
|
|
6898
|
+
function lo({ getKey: t, storageKey: n } = {}) {
|
|
6899
|
+
let { router: r } = $a("useScrollRestoration"), { restoreScrollPosition: i, preventScrollReset: a } = eo("useScrollRestoration"), { basename: o } = e.useContext(X), s = $(), c = ea(), l = $i();
|
|
6847
6900
|
e.useEffect(() => (window.history.scrollRestoration = "manual", () => {
|
|
6848
6901
|
window.history.scrollRestoration = "auto";
|
|
6849
|
-
}), []),
|
|
6902
|
+
}), []), uo(e.useCallback(() => {
|
|
6850
6903
|
if (l.state === "idle") {
|
|
6851
|
-
let e =
|
|
6852
|
-
|
|
6904
|
+
let e = co(s, c, o, t);
|
|
6905
|
+
so[e] = window.scrollY;
|
|
6853
6906
|
}
|
|
6854
6907
|
try {
|
|
6855
|
-
sessionStorage.setItem(n ||
|
|
6908
|
+
sessionStorage.setItem(n || oo, JSON.stringify(so));
|
|
6856
6909
|
} catch (e) {
|
|
6857
|
-
|
|
6910
|
+
W(!1, `Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`);
|
|
6858
6911
|
}
|
|
6859
6912
|
window.history.scrollRestoration = "auto";
|
|
6860
6913
|
}, [
|
|
@@ -6866,11 +6919,11 @@ function no({ getKey: t, storageKey: n } = {}) {
|
|
|
6866
6919
|
n
|
|
6867
6920
|
])), typeof document < "u" && (e.useLayoutEffect(() => {
|
|
6868
6921
|
try {
|
|
6869
|
-
let e = sessionStorage.getItem(n ||
|
|
6870
|
-
e && (
|
|
6922
|
+
let e = sessionStorage.getItem(n || oo);
|
|
6923
|
+
e && (so = JSON.parse(e));
|
|
6871
6924
|
} catch {}
|
|
6872
6925
|
}, [n]), e.useLayoutEffect(() => {
|
|
6873
|
-
let e = r?.enableScrollRestoration(
|
|
6926
|
+
let e = r?.enableScrollRestoration(so, () => window.scrollY, t ? (e, n) => co(e, n, o, t) : void 0);
|
|
6874
6927
|
return () => e && e();
|
|
6875
6928
|
}, [
|
|
6876
6929
|
r,
|
|
@@ -6891,7 +6944,7 @@ function no({ getKey: t, storageKey: n } = {}) {
|
|
|
6891
6944
|
}
|
|
6892
6945
|
}
|
|
6893
6946
|
} catch {
|
|
6894
|
-
|
|
6947
|
+
W(!1, `"${s.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`);
|
|
6895
6948
|
}
|
|
6896
6949
|
a !== !0 && window.scrollTo(0, 0);
|
|
6897
6950
|
}
|
|
@@ -6901,7 +6954,7 @@ function no({ getKey: t, storageKey: n } = {}) {
|
|
|
6901
6954
|
a
|
|
6902
6955
|
]));
|
|
6903
6956
|
}
|
|
6904
|
-
function
|
|
6957
|
+
function uo(t, n) {
|
|
6905
6958
|
let { capture: r } = n || {};
|
|
6906
6959
|
e.useEffect(() => {
|
|
6907
6960
|
let e = r == null ? void 0 : { capture: r };
|
|
@@ -6910,60 +6963,60 @@ function ro(t, n) {
|
|
|
6910
6963
|
};
|
|
6911
6964
|
}, [t, r]);
|
|
6912
6965
|
}
|
|
6913
|
-
function
|
|
6914
|
-
let r = e.useContext(
|
|
6915
|
-
|
|
6916
|
-
let { basename: i } =
|
|
6966
|
+
function fo(t, { relative: n } = {}) {
|
|
6967
|
+
let r = e.useContext(Ci);
|
|
6968
|
+
U(r != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
|
|
6969
|
+
let { basename: i } = $a("useViewTransitionState"), a = Ri(t, { relative: n });
|
|
6917
6970
|
if (!r.isTransitioning) return !1;
|
|
6918
|
-
let o =
|
|
6919
|
-
return
|
|
6971
|
+
let o = K(r.currentLocation.pathname, i) || r.currentLocation.pathname, s = K(r.nextLocation.pathname, i) || r.nextLocation.pathname;
|
|
6972
|
+
return $r(a.pathname, s) != null || $r(a.pathname, o) != null;
|
|
6920
6973
|
}
|
|
6921
6974
|
//#endregion
|
|
6922
6975
|
//#region src/lib/hooks/useUrlQuery.ts
|
|
6923
|
-
function
|
|
6976
|
+
function po() {
|
|
6924
6977
|
let { search: e } = $();
|
|
6925
6978
|
return c(() => new URLSearchParams(e), [e]);
|
|
6926
6979
|
}
|
|
6927
6980
|
//#endregion
|
|
6928
6981
|
//#region src/lib/hooks/useFormatNumber.ts
|
|
6929
|
-
function
|
|
6930
|
-
let { language: t } =
|
|
6982
|
+
function mo(e) {
|
|
6983
|
+
let { language: t } = z(), n = c(() => new Intl.NumberFormat(t, e), [t, e]);
|
|
6931
6984
|
return a((e) => {
|
|
6932
6985
|
if (e == null) return "-";
|
|
6933
6986
|
let t = Number(e);
|
|
6934
6987
|
return isNaN(t) ? "-" : n.format(t);
|
|
6935
6988
|
}, [n]);
|
|
6936
6989
|
}
|
|
6937
|
-
function
|
|
6938
|
-
return
|
|
6990
|
+
function ho(e) {
|
|
6991
|
+
return mo()(e);
|
|
6939
6992
|
}
|
|
6940
6993
|
//#endregion
|
|
6941
6994
|
//#region src/lib/components/datetime-display/DateTimeDisplay.tsx
|
|
6942
|
-
function
|
|
6943
|
-
let { date: t, options: n, ...r } = e, i =
|
|
6944
|
-
return /* @__PURE__ */
|
|
6995
|
+
function go(e) {
|
|
6996
|
+
let { date: t, options: n, ...r } = e, i = Nr(t, n);
|
|
6997
|
+
return /* @__PURE__ */ D("span", {
|
|
6945
6998
|
...r,
|
|
6946
6999
|
children: i
|
|
6947
7000
|
});
|
|
6948
7001
|
}
|
|
6949
7002
|
//#endregion
|
|
6950
7003
|
//#region src/lib/components/duration-display/DurationDisplay.tsx
|
|
6951
|
-
function
|
|
6952
|
-
let r =
|
|
6953
|
-
return e == null ? /* @__PURE__ */
|
|
7004
|
+
function _o({ minutes: e, alternativeText: t = "", ...n }) {
|
|
7005
|
+
let r = Pr(e ?? 0);
|
|
7006
|
+
return e == null ? /* @__PURE__ */ D("span", {
|
|
6954
7007
|
...n,
|
|
6955
7008
|
children: t
|
|
6956
|
-
}) : /* @__PURE__ */
|
|
7009
|
+
}) : /* @__PURE__ */ D("span", {
|
|
6957
7010
|
...n,
|
|
6958
7011
|
children: r
|
|
6959
7012
|
});
|
|
6960
7013
|
}
|
|
6961
|
-
var
|
|
7014
|
+
var vo = {
|
|
6962
7015
|
label: "User",
|
|
6963
7016
|
placeholder: "Search by username or email",
|
|
6964
7017
|
noUsersFound: "No users found",
|
|
6965
7018
|
typeToSearch: "Type to search for users"
|
|
6966
|
-
},
|
|
7019
|
+
}, yo = {
|
|
6967
7020
|
label: "Benutzer",
|
|
6968
7021
|
placeholder: "Nach Benutzername oder E-Mail suchen",
|
|
6969
7022
|
noUsersFound: "Keine Benutzer gefunden",
|
|
@@ -6971,69 +7024,69 @@ var uo = {
|
|
|
6971
7024
|
};
|
|
6972
7025
|
//#endregion
|
|
6973
7026
|
//#region src/lib/components/user-search/UserSearch.tsx
|
|
6974
|
-
function
|
|
6975
|
-
let { label: t, placeholder: n, onSelectionChange: r, afterAutocomplete: i, wrapperProps: o, afterSelection: l } = e, { t: d } =
|
|
6976
|
-
en:
|
|
6977
|
-
de:
|
|
6978
|
-
}), [f, p] = u(""), [m,
|
|
7027
|
+
function bo(e) {
|
|
7028
|
+
let { label: t, placeholder: n, onSelectionChange: r, afterAutocomplete: i, wrapperProps: o, afterSelection: l } = e, { t: d } = Vn({
|
|
7029
|
+
en: vo,
|
|
7030
|
+
de: yo
|
|
7031
|
+
}), [f, p] = u(""), [m, h] = u(null), v = c(() => m == null ? null : Number(m), [m]), S = se({
|
|
6979
7032
|
search: f,
|
|
6980
7033
|
limit: 10,
|
|
6981
7034
|
page: 1
|
|
6982
7035
|
}), C = c(() => {
|
|
6983
7036
|
let e = S.data?.data ?? [], t = f.trim().toLowerCase();
|
|
6984
7037
|
return t ? e.filter((e) => e.username.toLowerCase().includes(t)) : e;
|
|
6985
|
-
}, [S.data, f]), w =
|
|
6986
|
-
|
|
7038
|
+
}, [S.data, f]), w = ce({ id: v }, void 0, { enabled: !!v }), T = c(() => v ? w.data?.id === v ? w.data : C.find((e) => e.id === v) ?? null : null, [
|
|
7039
|
+
v,
|
|
6987
7040
|
w.data,
|
|
6988
7041
|
C
|
|
6989
7042
|
]);
|
|
6990
7043
|
s(() => {
|
|
6991
7044
|
typeof r == "function" && r(T);
|
|
6992
7045
|
}, [T, r]);
|
|
6993
|
-
let
|
|
6994
|
-
if (
|
|
7046
|
+
let E = a((e) => {
|
|
7047
|
+
if (h(e), e != null) {
|
|
6995
7048
|
let t = C.find((t) => t.id === Number(e));
|
|
6996
7049
|
t && p(t.username);
|
|
6997
7050
|
}
|
|
6998
|
-
}, [C]),
|
|
6999
|
-
p(e), m != null && T && e !== T.username &&
|
|
7051
|
+
}, [C]), ee = a((e) => {
|
|
7052
|
+
p(e), m != null && T && e !== T.username && h(null);
|
|
7000
7053
|
}, [m, T]);
|
|
7001
|
-
return /* @__PURE__ */
|
|
7054
|
+
return /* @__PURE__ */ O("div", {
|
|
7002
7055
|
...o,
|
|
7003
|
-
children: [/* @__PURE__ */
|
|
7056
|
+
children: [/* @__PURE__ */ O("div", {
|
|
7004
7057
|
className: "flex gap-2 items-center",
|
|
7005
|
-
children: [/* @__PURE__ */
|
|
7058
|
+
children: [/* @__PURE__ */ O(g, {
|
|
7006
7059
|
className: "flex-1",
|
|
7007
7060
|
items: C,
|
|
7008
7061
|
selectedKey: m,
|
|
7009
|
-
onSelectionChange:
|
|
7062
|
+
onSelectionChange: E,
|
|
7010
7063
|
inputValue: f,
|
|
7011
|
-
onInputChange:
|
|
7064
|
+
onInputChange: ee,
|
|
7012
7065
|
menuTrigger: "input",
|
|
7013
7066
|
allowsEmptyCollection: !0,
|
|
7014
7067
|
children: [
|
|
7015
|
-
/* @__PURE__ */
|
|
7016
|
-
/* @__PURE__ */
|
|
7068
|
+
/* @__PURE__ */ D(y, { children: t ?? d("label") }),
|
|
7069
|
+
/* @__PURE__ */ O(g.InputGroup, { children: [/* @__PURE__ */ D(_, {
|
|
7017
7070
|
placeholder: n ?? d("placeholder"),
|
|
7018
7071
|
autoComplete: "off"
|
|
7019
|
-
}), /* @__PURE__ */
|
|
7020
|
-
/* @__PURE__ */
|
|
7072
|
+
}), /* @__PURE__ */ D(g.Trigger, {})] }),
|
|
7073
|
+
/* @__PURE__ */ D(g.Popover, { children: /* @__PURE__ */ D(b, { children: (e) => /* @__PURE__ */ D(x, {
|
|
7021
7074
|
id: String(e.id),
|
|
7022
7075
|
textValue: e.username,
|
|
7023
|
-
children: /* @__PURE__ */
|
|
7076
|
+
children: /* @__PURE__ */ D(jr, { user: e })
|
|
7024
7077
|
}) }) })
|
|
7025
7078
|
]
|
|
7026
7079
|
}), i]
|
|
7027
|
-
}), /* @__PURE__ */
|
|
7080
|
+
}), /* @__PURE__ */ O("div", {
|
|
7028
7081
|
className: "flex gap-2 items-center w-full justify-between",
|
|
7029
|
-
children: [T && /* @__PURE__ */
|
|
7082
|
+
children: [T && /* @__PURE__ */ D(jr, {
|
|
7030
7083
|
user: T,
|
|
7031
7084
|
className: "my-2 mx-2"
|
|
7032
7085
|
}), l]
|
|
7033
7086
|
})]
|
|
7034
7087
|
});
|
|
7035
7088
|
}
|
|
7036
|
-
var
|
|
7089
|
+
var xo = {
|
|
7037
7090
|
search: {
|
|
7038
7091
|
label: "Ressourcen suchen",
|
|
7039
7092
|
placeholder: "Tippe um zu suchen"
|
|
@@ -7043,7 +7096,7 @@ var mo = {
|
|
|
7043
7096
|
columns: { name: { header: "Name" } }
|
|
7044
7097
|
},
|
|
7045
7098
|
list: { label: "Zugewiesen an" }
|
|
7046
|
-
},
|
|
7099
|
+
}, So = {
|
|
7047
7100
|
search: {
|
|
7048
7101
|
label: "Search resources",
|
|
7049
7102
|
placeholder: "Type to search"
|
|
@@ -7053,38 +7106,38 @@ var mo = {
|
|
|
7053
7106
|
columns: { name: { header: "Name" } }
|
|
7054
7107
|
},
|
|
7055
7108
|
list: { label: "Assigned to" }
|
|
7056
|
-
},
|
|
7109
|
+
}, Co = ({ children: e }) => /* @__PURE__ */ D("div", {
|
|
7057
7110
|
className: "border-small px-1 py-2 rounded-small border-default-200 dark:border-default-100",
|
|
7058
7111
|
children: e
|
|
7059
7112
|
});
|
|
7060
|
-
function
|
|
7061
|
-
let { selection: t, onSelectionChange: n, multiple: r = !0, listClassName: i = "" } = e, [a, o] = u(""), { t: s } =
|
|
7062
|
-
de:
|
|
7063
|
-
en:
|
|
7064
|
-
}), { data: c, isLoading: l } =
|
|
7113
|
+
function wo(e) {
|
|
7114
|
+
let { selection: t, onSelectionChange: n, multiple: r = !0, listClassName: i = "" } = e, [a, o] = u(""), { t: s } = Vn({
|
|
7115
|
+
de: xo,
|
|
7116
|
+
en: So
|
|
7117
|
+
}), { data: c, isLoading: l } = oe({
|
|
7065
7118
|
limit: 15,
|
|
7066
7119
|
page: 1,
|
|
7067
7120
|
search: a
|
|
7068
7121
|
});
|
|
7069
|
-
return /* @__PURE__ */
|
|
7122
|
+
return /* @__PURE__ */ O("div", {
|
|
7070
7123
|
className: "flex flex-col gap-2",
|
|
7071
|
-
children: [/* @__PURE__ */
|
|
7124
|
+
children: [/* @__PURE__ */ O(ae, {
|
|
7072
7125
|
value: a,
|
|
7073
7126
|
onChange: o,
|
|
7074
7127
|
className: "w-full",
|
|
7075
|
-
children: [/* @__PURE__ */
|
|
7076
|
-
/* @__PURE__ */
|
|
7077
|
-
/* @__PURE__ */
|
|
7078
|
-
l ? /* @__PURE__ */
|
|
7128
|
+
children: [/* @__PURE__ */ D(y, { children: s("search.label") }), /* @__PURE__ */ O(v, { children: [
|
|
7129
|
+
/* @__PURE__ */ D(v.Prefix, { children: /* @__PURE__ */ D(wr, { className: "size-4 text-muted" }) }),
|
|
7130
|
+
/* @__PURE__ */ D(v.Input, { placeholder: s("search.placeholder") }),
|
|
7131
|
+
l ? /* @__PURE__ */ D(v.Suffix, { children: /* @__PURE__ */ D(C, { size: "sm" }) }) : null
|
|
7079
7132
|
] })]
|
|
7080
|
-
}), /* @__PURE__ */
|
|
7133
|
+
}), /* @__PURE__ */ D(ne, {
|
|
7081
7134
|
"aria-label": s("table.ariaLabel"),
|
|
7082
7135
|
className: i,
|
|
7083
7136
|
style: {
|
|
7084
|
-
maxHeight:
|
|
7137
|
+
maxHeight: 387,
|
|
7085
7138
|
overflowY: "auto"
|
|
7086
7139
|
},
|
|
7087
|
-
children: /* @__PURE__ */ D(
|
|
7140
|
+
children: /* @__PURE__ */ D(ie, { children: /* @__PURE__ */ O(ee, {
|
|
7088
7141
|
selectionMode: r ? "multiple" : "single",
|
|
7089
7142
|
selectedKeys: new Set(t.map(String)),
|
|
7090
7143
|
onSelectionChange: (e) => {
|
|
@@ -7094,39 +7147,39 @@ function bo(e) {
|
|
|
7094
7147
|
}
|
|
7095
7148
|
n(Array.from(e).map((e) => Number(e)));
|
|
7096
7149
|
},
|
|
7097
|
-
children: [/* @__PURE__ */
|
|
7150
|
+
children: [/* @__PURE__ */ O(te, { children: [/* @__PURE__ */ D(E, {
|
|
7098
7151
|
className: "pr-0 w-0",
|
|
7099
|
-
children: r ? /* @__PURE__ */
|
|
7152
|
+
children: r ? /* @__PURE__ */ D(h, {
|
|
7100
7153
|
"aria-label": s("table.ariaLabel"),
|
|
7101
7154
|
slot: "selection",
|
|
7102
|
-
children: /* @__PURE__ */
|
|
7155
|
+
children: /* @__PURE__ */ D(h.Control, { children: /* @__PURE__ */ D(h.Indicator, {}) })
|
|
7103
7156
|
}) : null
|
|
7104
|
-
}), /* @__PURE__ */ E
|
|
7157
|
+
}), /* @__PURE__ */ D(E, {
|
|
7105
7158
|
className: "w-full",
|
|
7106
7159
|
isRowHeader: !0,
|
|
7107
7160
|
children: s("table.columns.name.header")
|
|
7108
|
-
})] }), /* @__PURE__ */
|
|
7161
|
+
})] }), /* @__PURE__ */ D(w, {
|
|
7109
7162
|
items: c?.data ?? [],
|
|
7110
|
-
children: (e) => /* @__PURE__ */
|
|
7163
|
+
children: (e) => /* @__PURE__ */ O(re, {
|
|
7111
7164
|
id: String(e.id),
|
|
7112
|
-
children: [/* @__PURE__ */
|
|
7165
|
+
children: [/* @__PURE__ */ D(T, {
|
|
7113
7166
|
className: "pr-0",
|
|
7114
|
-
children: /* @__PURE__ */
|
|
7167
|
+
children: /* @__PURE__ */ D(h, {
|
|
7115
7168
|
"aria-label": e.name,
|
|
7116
7169
|
slot: "selection",
|
|
7117
7170
|
variant: "secondary",
|
|
7118
|
-
children: /* @__PURE__ */
|
|
7171
|
+
children: /* @__PURE__ */ D(h.Control, { children: /* @__PURE__ */ D(h.Indicator, {}) })
|
|
7119
7172
|
})
|
|
7120
|
-
}), /* @__PURE__ */
|
|
7173
|
+
}), /* @__PURE__ */ D(T, { children: e.name })]
|
|
7121
7174
|
}, e.id)
|
|
7122
7175
|
})]
|
|
7123
|
-
})
|
|
7176
|
+
}) })
|
|
7124
7177
|
})]
|
|
7125
7178
|
});
|
|
7126
7179
|
}
|
|
7127
7180
|
//#endregion
|
|
7128
7181
|
//#region src/lib/components/Trans/index.tsx
|
|
7129
|
-
function
|
|
7182
|
+
function To(e) {
|
|
7130
7183
|
let t = { children: [] }, n = [], r = /<\/?([a-zA-Z0-9_]+)\s*\/?\s*>/g, i = 0, a = () => n.length === 0 ? t.children : n[n.length - 1].children, o;
|
|
7131
7184
|
for (; (o = r.exec(e)) !== null;) {
|
|
7132
7185
|
let s = o[0], c = o[1], l = s.startsWith("</"), u = /\/>\s*$/.test(s) || !l && s.endsWith("/>");
|
|
@@ -7184,7 +7237,7 @@ function xo(e) {
|
|
|
7184
7237
|
}
|
|
7185
7238
|
return t.children;
|
|
7186
7239
|
}
|
|
7187
|
-
function
|
|
7240
|
+
function Eo(e, n, r = "k") {
|
|
7188
7241
|
let i = [];
|
|
7189
7242
|
return e.forEach((e, a) => {
|
|
7190
7243
|
let o = `${r}-${a}`;
|
|
@@ -7196,21 +7249,21 @@ function So(e, n, r = "k") {
|
|
|
7196
7249
|
if (t.isValidElement(s)) {
|
|
7197
7250
|
if (e.selfClosing) i.push(t.cloneElement(s, { key: o }));
|
|
7198
7251
|
else {
|
|
7199
|
-
let r =
|
|
7252
|
+
let r = Eo(e.children, n, o);
|
|
7200
7253
|
i.push(t.cloneElement(s, { key: o }, r));
|
|
7201
7254
|
}
|
|
7202
7255
|
return;
|
|
7203
7256
|
}
|
|
7204
|
-
e.selfClosing || i.push(...
|
|
7257
|
+
e.selfClosing || i.push(...Eo(e.children, n, o));
|
|
7205
7258
|
}), i;
|
|
7206
7259
|
}
|
|
7207
|
-
function
|
|
7260
|
+
function Do(e) {
|
|
7208
7261
|
let { i18nKey: t, values: n, components: r, t: i } = e, a = c(() => i(t, n), [
|
|
7209
7262
|
i,
|
|
7210
7263
|
t,
|
|
7211
7264
|
n
|
|
7212
|
-
]), o = c(() =>
|
|
7213
|
-
return c(() =>
|
|
7265
|
+
]), o = c(() => To(a), [a]);
|
|
7266
|
+
return c(() => Eo(o, r), [o, r]);
|
|
7214
7267
|
}
|
|
7215
7268
|
//#endregion
|
|
7216
|
-
export {
|
|
7269
|
+
export { jr as AttraccessUser, Dr as AttraccessUserActionsProvider, go as DateTimeDisplay, _o as DurationDisplay, Rn as I18N_LANGUAGE_STORAGE_KEY, Do as I18nTransComponent, Co as ListboxWrapper, wo as ResourceSelector, bo as UserSearch, Hn as detectAndSetLanguage, Or as useAttraccessUserActions, Mr as useDateTimeFormatter, Nr as useFormatDateTime, ho as useFormatNumber, Pr as useFormatedDuration, mo as useNumberFormatter, z as useTranslationState, Vn as useTranslations, po as useUrlQuery };
|