@attraccess/plugins-frontend-ui 1.8.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1113 -849
- package/lib/components/ResourceSelector/ResourceSelector.d.ts +2 -2
- package/lib/components/attraccess-user/AttraccessUser.d.ts +4 -2
- package/lib/components/attraccess-user/AttraccessUserActionsContext.d.ts +2 -2
- package/lib/components/datetime-display/DateTimeDisplay.d.ts +1 -1
- package/lib/components/duration-display/DurationDisplay.d.ts +1 -1
- package/lib/components/user-search/UserSearch.d.ts +6 -5
- package/lib/components/user-search/UserSearch.utils.d.ts +6 -0
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/useDebounce.d.ts +9 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import t, { createContext as n, createElement as r, forwardRef as i, useCallback as a, useContext as o, useEffect as s,
|
|
3
|
-
import { Avatar as
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { useResourcesServiceGetAllResources as
|
|
2
|
+
import t, { createContext as n, createElement as r, forwardRef as i, useCallback as a, useContext as o, useEffect as s, useId as c, useMemo as l, useRef as u, useState as d } from "react";
|
|
3
|
+
import { Avatar as f, AvatarFallback as p, AvatarImage as m, Button as h, Checkbox as g, Header as _, InputGroup as v, Label as y, ListBox as b, ListBoxItem as x, ListBoxSection as S, Modal as C, ModalBackdrop as ee, ModalBody as te, ModalContainer as ne, ModalDialog as re, ModalHeader as ie, ModalHeading as ae, Popover as w, Spinner as oe, TableBody as T, TableCell as E, TableColumn as D, TableContent as O, TableHeader as se, TableRoot as ce, TableRow as le, TableScrollContainer as ue, TextField as de, useOverlayState as fe } from "@heroui/react";
|
|
4
|
+
import { Fragment as pe, jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
5
|
+
import { useResourcesServiceGetAllResources as me, useUsersServiceFindManyInfinite as he } 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 ge = Object.create, _e = Object.defineProperty, ve = Object.getOwnPropertyDescriptor, ye = Object.getOwnPropertyNames, be = Object.getPrototypeOf, xe = Object.prototype.hasOwnProperty, j = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), Se = (e, t, n, r) => {
|
|
8
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = ye(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !xe.call(e, s) && s !== n && _e(e, s, {
|
|
9
9
|
get: ((e) => t[e]).bind(null, s),
|
|
10
|
-
enumerable: !(r =
|
|
10
|
+
enumerable: !(r = ve(t, s)) || r.enumerable
|
|
11
11
|
});
|
|
12
12
|
return e;
|
|
13
|
-
},
|
|
13
|
+
}, Ce = (e, t, n) => (n = e == null ? {} : ge(be(e)), Se(t || !e || !e.__esModule ? _e(n, "default", {
|
|
14
14
|
value: e,
|
|
15
15
|
enumerable: !0
|
|
16
|
-
}) : n, e)),
|
|
16
|
+
}) : n, e)), M = (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 le = Object.create, ue = Object.defineProperty, de = 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
|
+
}, we = ((e) => e ? M(e) : M), Te = (e) => e;
|
|
31
|
+
function Ee(e, n = Te) {
|
|
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 De = (e) => {
|
|
36
|
+
let t = we(e), n = (e) => Ee(t, e);
|
|
37
37
|
return Object.assign(n, t), n;
|
|
38
|
-
},
|
|
39
|
-
function
|
|
40
|
-
var t =
|
|
38
|
+
}, Oe = ((e) => e ? De(e) : De), ke = typeof global == "object" && global && global.Object === Object && global, Ae = typeof self == "object" && self && self.Object === Object && self, je = ke || Ae || Function("return this")(), N = je.Symbol, Me = Object.prototype, Ne = Me.hasOwnProperty, Pe = Me.toString, P = N ? N.toStringTag : void 0;
|
|
39
|
+
function Fe(e) {
|
|
40
|
+
var t = Ne.call(e, P), n = e[P];
|
|
41
41
|
try {
|
|
42
|
-
e[
|
|
42
|
+
e[P] = void 0;
|
|
43
43
|
var r = !0;
|
|
44
44
|
} catch {}
|
|
45
|
-
var i =
|
|
46
|
-
return r && (t ? e[
|
|
45
|
+
var i = Pe.call(e);
|
|
46
|
+
return r && (t ? e[P] = n : delete e[P]), 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 Ie = Object.prototype.toString;
|
|
51
|
+
function Le(e) {
|
|
52
|
+
return Ie.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 Re = "[object Null]", ze = "[object Undefined]", Be = N ? N.toStringTag : void 0;
|
|
57
|
+
function Ve(e) {
|
|
58
|
+
return e == null ? e === void 0 ? ze : Re : Be && Be in Object(e) ? Fe(e) : Le(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 He(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 Ue = "[object Symbol]";
|
|
68
|
+
function We(e) {
|
|
69
|
+
return typeof e == "symbol" || He(e) && Ve(e) == Ue;
|
|
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 Ge(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 Ke = Array.isArray, qe = Infinity, Je = N ? N.prototype : void 0, Ye = Je ? Je.toString : void 0;
|
|
80
|
+
function Xe(e) {
|
|
81
81
|
if (typeof e == "string") return e;
|
|
82
|
-
if (
|
|
83
|
-
if (
|
|
82
|
+
if (Ke(e)) return Ge(e, Xe) + "";
|
|
83
|
+
if (We(e)) return Ye ? Ye.call(e) : "";
|
|
84
84
|
var t = e + "";
|
|
85
|
-
return t == "0" && 1 / e == -
|
|
85
|
+
return t == "0" && 1 / e == -qe ? "-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 Ze(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 Qe = "[object AsyncFunction]", $e = "[object Function]", et = "[object GeneratorFunction]", tt = "[object Proxy]";
|
|
96
|
+
function nt(e) {
|
|
97
|
+
if (!Ze(e)) return !1;
|
|
98
|
+
var t = Ve(e);
|
|
99
|
+
return t == $e || t == et || t == Qe || t == tt;
|
|
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 rt = je["__core-js_shared__"], it = function() {
|
|
104
|
+
var e = /[^.]+$/.exec(rt && rt.keys && rt.keys.IE_PROTO || "");
|
|
105
105
|
return e ? "Symbol(src)_1." + e : "";
|
|
106
106
|
}();
|
|
107
|
-
function
|
|
108
|
-
return !!
|
|
107
|
+
function at(e) {
|
|
108
|
+
return !!it && it 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 ot = Function.prototype.toString;
|
|
113
|
+
function st(e) {
|
|
114
114
|
if (e != null) {
|
|
115
115
|
try {
|
|
116
|
-
return
|
|
116
|
+
return ot.call(e);
|
|
117
117
|
} catch {}
|
|
118
118
|
try {
|
|
119
119
|
return e + "";
|
|
@@ -123,249 +123,249 @@ function tt(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 ct = /[\\^$.*+?()[\]{}|]/g, lt = /^\[object .+?Constructor\]$/, ut = Function.prototype, dt = Object.prototype, ft = ut.toString, pt = dt.hasOwnProperty, mt = RegExp("^" + ft.call(pt).replace(ct, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
127
|
+
function ht(e) {
|
|
128
|
+
return !Ze(e) || at(e) ? !1 : (nt(e) ? mt : lt).test(st(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 gt(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 _t(e, t) {
|
|
138
|
+
var n = gt(e, t);
|
|
139
|
+
return ht(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 vt(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 yt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, bt = /^\w*$/;
|
|
149
|
+
function xt(e, t) {
|
|
150
|
+
if (Ke(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 || We(e) ? !0 : bt.test(e) || !yt.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 F = _t(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 St() {
|
|
160
|
+
this.__data__ = F ? F(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 Ct(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 wt = "__lodash_hash_undefined__", Tt = Object.prototype.hasOwnProperty;
|
|
171
|
+
function Et(e) {
|
|
172
172
|
var t = this.__data__;
|
|
173
|
-
if (
|
|
173
|
+
if (F) {
|
|
174
174
|
var n = t[e];
|
|
175
|
-
return n ===
|
|
175
|
+
return n === wt ? void 0 : n;
|
|
176
176
|
}
|
|
177
|
-
return
|
|
177
|
+
return Tt.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 Dt = Object.prototype.hasOwnProperty;
|
|
182
|
+
function Ot(e) {
|
|
183
183
|
var t = this.__data__;
|
|
184
|
-
return
|
|
184
|
+
return F ? t[e] !== void 0 : Dt.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 kt = "__lodash_hash_undefined__";
|
|
189
|
+
function At(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] = F && t === void 0 ? kt : 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 I(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
|
+
I.prototype.clear = St, I.prototype.delete = Ct, I.prototype.get = Et, I.prototype.has = Ot, I.prototype.set = At;
|
|
203
203
|
//#endregion
|
|
204
204
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js
|
|
205
|
-
function
|
|
205
|
+
function jt() {
|
|
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 Mt(e, t) {
|
|
211
|
+
for (var n = e.length; n--;) if (vt(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 Nt = Array.prototype.splice;
|
|
217
|
+
function Pt(e) {
|
|
218
|
+
var t = this.__data__, n = Mt(t, e);
|
|
219
|
+
return n < 0 ? !1 : (n == t.length - 1 ? t.pop() : Nt.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 Ft(e) {
|
|
224
|
+
var t = this.__data__, n = Mt(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 It(e) {
|
|
230
|
+
return Mt(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 Lt(e, t) {
|
|
235
|
+
var n = this.__data__, r = Mt(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 L(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
|
+
L.prototype.clear = jt, L.prototype.delete = Pt, L.prototype.get = Ft, L.prototype.has = It, L.prototype.set = Lt;
|
|
248
248
|
//#endregion
|
|
249
249
|
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.js
|
|
250
|
-
var
|
|
250
|
+
var Rt = _t(je, "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 zt() {
|
|
254
254
|
this.size = 0, this.__data__ = {
|
|
255
|
-
hash: new
|
|
256
|
-
map: new (
|
|
257
|
-
string: new
|
|
255
|
+
hash: new I(),
|
|
256
|
+
map: new (Rt || L)(),
|
|
257
|
+
string: new I()
|
|
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 Bt(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 Vt(e, t) {
|
|
269
269
|
var n = e.__data__;
|
|
270
|
-
return
|
|
270
|
+
return Bt(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 Ht(e) {
|
|
275
|
+
var t = Vt(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 Ut(e) {
|
|
281
|
+
return Vt(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 Wt(e) {
|
|
286
|
+
return Vt(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 Gt(e, t) {
|
|
291
|
+
var n = Vt(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 R(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
|
+
R.prototype.clear = zt, R.prototype.delete = Ht, R.prototype.get = Ut, R.prototype.has = Wt, R.prototype.set = Gt;
|
|
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 Kt = "Expected a function";
|
|
307
|
+
function qt(e, t) {
|
|
308
|
+
if (typeof e != "function" || t != null && typeof t != "function") throw TypeError(Kt);
|
|
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 (qt.Cache || R)(), n;
|
|
316
316
|
}
|
|
317
|
-
|
|
317
|
+
qt.Cache = R;
|
|
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 Jt = 500;
|
|
321
|
+
function Yt(e) {
|
|
322
|
+
var t = qt(e, function(e) {
|
|
323
|
+
return n.size === Jt && 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 Xt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Zt = /\\(\\)?/g, Qt = Yt(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(Xt, function(e, n, r, i) {
|
|
332
|
+
t.push(r ? i.replace(Zt, "$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 $t(e) {
|
|
338
|
+
return e == null ? "" : Xe(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 en(e, t) {
|
|
343
|
+
return Ke(e) ? e : xt(e, t) ? [e] : Qt($t(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 tn = Infinity;
|
|
348
|
+
function nn(e) {
|
|
349
|
+
if (typeof e == "string" || We(e)) return e;
|
|
350
350
|
var t = e + "";
|
|
351
|
-
return t == "0" && 1 / e == -
|
|
351
|
+
return t == "0" && 1 / e == -tn ? "-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 rn(e, t) {
|
|
356
|
+
t = en(t, e);
|
|
357
|
+
for (var n = 0, r = t.length; e != null && n < r;) e = e[nn(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 an(e, t, n) {
|
|
363
|
+
var r = e == null ? void 0 : rn(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 z = /* @__PURE__ */ j(((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
|
"&": "&",
|
|
@@ -410,7 +410,7 @@ var I = /* @__PURE__ */ k(((e) => {
|
|
|
410
410
|
return r.test(e) ? e.replace(n, i) : e;
|
|
411
411
|
}
|
|
412
412
|
function d(e) {
|
|
413
|
-
return !e && e !== 0
|
|
413
|
+
return !e && e !== 0 || !!(c(e) && e.length === 0);
|
|
414
414
|
}
|
|
415
415
|
function f(e) {
|
|
416
416
|
var t = a({}, e);
|
|
@@ -422,7 +422,7 @@ var I = /* @__PURE__ */ k(((e) => {
|
|
|
422
422
|
function m(e, t) {
|
|
423
423
|
return (e ? e + "." : "") + t;
|
|
424
424
|
}
|
|
425
|
-
})),
|
|
425
|
+
})), B = /* @__PURE__ */ j(((e, t) => {
|
|
426
426
|
e.__esModule = !0;
|
|
427
427
|
var n = [
|
|
428
428
|
"description",
|
|
@@ -451,9 +451,9 @@ var I = /* @__PURE__ */ k(((e) => {
|
|
|
451
451
|
} catch {}
|
|
452
452
|
}
|
|
453
453
|
r.prototype = /* @__PURE__ */ Error(), e.default = r, t.exports = e.default;
|
|
454
|
-
})),
|
|
454
|
+
})), on = /* @__PURE__ */ j(((e, t) => {
|
|
455
455
|
e.__esModule = !0;
|
|
456
|
-
var n =
|
|
456
|
+
var n = z();
|
|
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 I = /* @__PURE__ */ k(((e) => {
|
|
|
467
467
|
return a(t, r);
|
|
468
468
|
});
|
|
469
469
|
}, t.exports = e.default;
|
|
470
|
-
})),
|
|
470
|
+
})), sn = /* @__PURE__ */ j(((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 = z(), i = n(B());
|
|
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 I = /* @__PURE__ */ k(((e) => {
|
|
|
499
499
|
return o === 0 && (s = a(this)), s;
|
|
500
500
|
});
|
|
501
501
|
}, t.exports = e.default;
|
|
502
|
-
})),
|
|
502
|
+
})), cn = /* @__PURE__ */ j(((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(B());
|
|
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
|
+
})), ln = /* @__PURE__ */ j(((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 = z(), i = n(B());
|
|
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 I = /* @__PURE__ */ k(((e) => {
|
|
|
531
531
|
});
|
|
532
532
|
});
|
|
533
533
|
}, t.exports = e.default;
|
|
534
|
-
})),
|
|
534
|
+
})), un = /* @__PURE__ */ j(((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 I = /* @__PURE__ */ k(((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
|
+
})), dn = /* @__PURE__ */ j(((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
|
+
})), fn = /* @__PURE__ */ j(((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 = z(), i = n(B());
|
|
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 I = /* @__PURE__ */ k(((e) => {
|
|
|
565
565
|
});
|
|
566
566
|
});
|
|
567
567
|
}, t.exports = e.default;
|
|
568
|
-
})),
|
|
568
|
+
})), pn = /* @__PURE__ */ j(((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(on()), r = t(sn()), i = t(cn()), a = t(ln()), o = t(un()), s = t(dn()), c = t(fn());
|
|
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
|
+
})), mn = /* @__PURE__ */ j(((e, t) => {
|
|
582
582
|
e.__esModule = !0;
|
|
583
|
-
var n =
|
|
583
|
+
var n = z();
|
|
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 I = /* @__PURE__ */ k(((e) => {
|
|
|
592
592
|
}), t.partials[i.args[0]] = i.fn, a;
|
|
593
593
|
});
|
|
594
594
|
}, t.exports = e.default;
|
|
595
|
-
})),
|
|
595
|
+
})), hn = /* @__PURE__ */ j(((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(mn());
|
|
602
602
|
function r(e) {
|
|
603
603
|
n.default(e);
|
|
604
604
|
}
|
|
605
|
-
})),
|
|
605
|
+
})), gn = /* @__PURE__ */ j(((e, t) => {
|
|
606
606
|
e.__esModule = !0;
|
|
607
|
-
var n =
|
|
607
|
+
var n = z(), r = {
|
|
608
608
|
methodMap: [
|
|
609
609
|
"debug",
|
|
610
610
|
"info",
|
|
@@ -629,13 +629,13 @@ var I = /* @__PURE__ */ k(((e) => {
|
|
|
629
629
|
}
|
|
630
630
|
};
|
|
631
631
|
e.default = r, t.exports = e.default;
|
|
632
|
-
})),
|
|
632
|
+
})), _n = /* @__PURE__ */ j(((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 = z(), r = t(gn()), 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 I = /* @__PURE__ */ k(((e) => {
|
|
|
665
665
|
delete i[e];
|
|
666
666
|
});
|
|
667
667
|
}
|
|
668
|
-
})),
|
|
668
|
+
})), vn = /* @__PURE__ */ j(((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 = z(), r = t(B()), i = pn(), a = hn(), o = t(gn()), s = _n();
|
|
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 I = /* @__PURE__ */ k(((e) => {
|
|
|
722
722
|
s.resetLoggedProperties();
|
|
723
723
|
}
|
|
724
724
|
}, e.log = o.default.log, e.createFrame = n.createFrame, e.logger = o.default;
|
|
725
|
-
})),
|
|
725
|
+
})), yn = /* @__PURE__ */ j(((e, t) => {
|
|
726
726
|
e.__esModule = !0;
|
|
727
727
|
function n(e) {
|
|
728
728
|
this.string = e;
|
|
@@ -730,7 +730,7 @@ var I = /* @__PURE__ */ k(((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
|
+
})), bn = /* @__PURE__ */ j(((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 I = /* @__PURE__ */ k(((e) => {
|
|
|
738
738
|
return arguments[arguments.length - 1] = t(n), e.apply(this, arguments);
|
|
739
739
|
} : e;
|
|
740
740
|
}
|
|
741
|
-
})),
|
|
741
|
+
})), xn = /* @__PURE__ */ j(((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 I = /* @__PURE__ */ k(((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(z()), i = t(B()), a = vn(), o = pn(), s = bn(), c = _n();
|
|
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 I = /* @__PURE__ */ k(((e) => {
|
|
|
893
893
|
return e.lookupProperty = n, e;
|
|
894
894
|
});
|
|
895
895
|
}
|
|
896
|
-
})),
|
|
896
|
+
})), Sn = /* @__PURE__ */ j(((e, t) => {
|
|
897
897
|
e.__esModule = !0, e.default = function(e) {
|
|
898
898
|
/* istanbul ignore next */
|
|
899
899
|
(function() {
|
|
@@ -907,7 +907,7 @@ var I = /* @__PURE__ */ k(((e) => {
|
|
|
907
907
|
return globalThis.Handlebars === e && (globalThis.Handlebars = t), e;
|
|
908
908
|
};
|
|
909
909
|
}, t.exports = e.default;
|
|
910
|
-
})),
|
|
910
|
+
})), Cn = /* @__PURE__ */ j(((e, t) => {
|
|
911
911
|
e.__esModule = !0;
|
|
912
912
|
// istanbul ignore next
|
|
913
913
|
function n(e) {
|
|
@@ -920,7 +920,7 @@ var I = /* @__PURE__ */ k(((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(vn()), a = n(yn()), o = n(B()), s = r(z()), c = r(xn()), l = n(Sn());
|
|
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 I = /* @__PURE__ */ k(((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
|
+
})), wn = /* @__PURE__ */ j(((e, t) => {
|
|
933
933
|
e.__esModule = !0;
|
|
934
934
|
var n = { helpers: {
|
|
935
935
|
helperExpression: function(e) {
|
|
@@ -943,7 +943,7 @@ var I = /* @__PURE__ */ k(((e) => {
|
|
|
943
943
|
}
|
|
944
944
|
} };
|
|
945
945
|
e.default = n, t.exports = e.default;
|
|
946
|
-
})),
|
|
946
|
+
})), Tn = /* @__PURE__ */ j(((e, t) => {
|
|
947
947
|
e.__esModule = !0, e.default = (function() {
|
|
948
948
|
var e = {
|
|
949
949
|
trace: function() {},
|
|
@@ -3230,13 +3230,13 @@ var I = /* @__PURE__ */ k(((e) => {
|
|
|
3230
3230
|
}
|
|
3231
3231
|
return t.prototype = e, e.Parser = t, new t();
|
|
3232
3232
|
})(), t.exports = e.default;
|
|
3233
|
-
})),
|
|
3233
|
+
})), En = /* @__PURE__ */ j(((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(B());
|
|
3240
3240
|
function i() {
|
|
3241
3241
|
this.parents = [];
|
|
3242
3242
|
}
|
|
@@ -3303,13 +3303,13 @@ var I = /* @__PURE__ */ k(((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
|
+
})), Dn = /* @__PURE__ */ j(((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(En());
|
|
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 I = /* @__PURE__ */ k(((e) => {
|
|
|
3378
3378
|
}
|
|
3379
3379
|
}
|
|
3380
3380
|
e.default = i, t.exports = e.default;
|
|
3381
|
-
})),
|
|
3381
|
+
})), On = /* @__PURE__ */ j(((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(B());
|
|
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 I = /* @__PURE__ */ k(((e) => {
|
|
|
3519
3519
|
loc: this.locInfo(i)
|
|
3520
3520
|
};
|
|
3521
3521
|
}
|
|
3522
|
-
})),
|
|
3522
|
+
})), kn = /* @__PURE__ */ j(((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 I = /* @__PURE__ */ k(((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(Tn()), i = n(Dn()), a = t(On()), o = n(B()), s = z();
|
|
3536
3536
|
e.parser = r.default;
|
|
3537
3537
|
var c = {};
|
|
3538
3538
|
s.extend(c, a);
|
|
@@ -3571,13 +3571,13 @@ var I = /* @__PURE__ */ k(((e) => {
|
|
|
3571
3571
|
function p(e) {
|
|
3572
3572
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && e >= 0;
|
|
3573
3573
|
}
|
|
3574
|
-
})),
|
|
3574
|
+
})), An = /* @__PURE__ */ j(((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(B()), r = z(), i = t(wn()), a = [].slice;
|
|
3581
3581
|
function o() {}
|
|
3582
3582
|
o.prototype = {
|
|
3583
3583
|
compiler: o,
|
|
@@ -3795,7 +3795,7 @@ var I = /* @__PURE__ */ k(((e) => {
|
|
|
3795
3795
|
};
|
|
3796
3796
|
}
|
|
3797
3797
|
}
|
|
3798
|
-
})),
|
|
3798
|
+
})), jn = /* @__PURE__ */ j(((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 I = /* @__PURE__ */ k(((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
|
+
})), Mn = /* @__PURE__ */ j(((e) => {
|
|
3808
|
+
var t = jn(), 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 I = /* @__PURE__ */ k(((e) => {
|
|
|
3828
3828
|
} while (d);
|
|
3829
3829
|
o.value = s(l), o.rest = r;
|
|
3830
3830
|
};
|
|
3831
|
-
})),
|
|
3831
|
+
})), V = /* @__PURE__ */ j(((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 I = /* @__PURE__ */ k(((e) => {
|
|
|
3940
3940
|
return o(t);
|
|
3941
3941
|
}
|
|
3942
3942
|
e.computeSourceURL = y;
|
|
3943
|
-
})),
|
|
3944
|
-
var t =
|
|
3943
|
+
})), Nn = /* @__PURE__ */ j(((e) => {
|
|
3944
|
+
var t = V(), 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 I = /* @__PURE__ */ k(((e) => {
|
|
|
3972
3972
|
}, i.prototype.toArray = function() {
|
|
3973
3973
|
return this._array.slice();
|
|
3974
3974
|
}, e.ArraySet = i;
|
|
3975
|
-
})),
|
|
3976
|
-
var t =
|
|
3975
|
+
})), Pn = /* @__PURE__ */ j(((e) => {
|
|
3976
|
+
var t = V();
|
|
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 I = /* @__PURE__ */ k(((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
|
+
})), Fn = /* @__PURE__ */ j(((e) => {
|
|
3995
|
+
var t = Mn(), n = V(), r = Nn().ArraySet, i = Pn().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 I = /* @__PURE__ */ k(((e) => {
|
|
|
4090
4090
|
}, a.prototype.toString = function() {
|
|
4091
4091
|
return JSON.stringify(this.toJSON());
|
|
4092
4092
|
}, e.SourceMapGenerator = a;
|
|
4093
|
-
})),
|
|
4093
|
+
})), In = /* @__PURE__ */ j(((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 I = /* @__PURE__ */ k(((e) => {
|
|
|
4103
4103
|
for (; o - 1 >= 0 && i(r[o], r[o - 1], !0) === 0;) --o;
|
|
4104
4104
|
return o;
|
|
4105
4105
|
};
|
|
4106
|
-
})),
|
|
4106
|
+
})), Ln = /* @__PURE__ */ j(((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 I = /* @__PURE__ */ k(((e) => {
|
|
|
4124
4124
|
e.quickSort = function(e, t) {
|
|
4125
4125
|
r(e, t, 0, e.length - 1);
|
|
4126
4126
|
};
|
|
4127
|
-
})),
|
|
4128
|
-
var t =
|
|
4127
|
+
})), Rn = /* @__PURE__ */ j(((e) => {
|
|
4128
|
+
var t = V(), n = In(), r = Nn().ArraySet, i = Mn(), a = Ln().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 I = /* @__PURE__ */ k(((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
|
+
})), zn = /* @__PURE__ */ j(((e) => {
|
|
4420
|
+
var t = Fn().SourceMapGenerator, n = V(), 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 I = /* @__PURE__ */ k(((e) => {
|
|
|
4532
4532
|
map: r
|
|
4533
4533
|
};
|
|
4534
4534
|
}, e.SourceNode = o;
|
|
4535
|
-
})),
|
|
4536
|
-
e.SourceMapGenerator =
|
|
4537
|
-
})),
|
|
4535
|
+
})), Bn = /* @__PURE__ */ j(((e) => {
|
|
4536
|
+
e.SourceMapGenerator = Fn().SourceMapGenerator, e.SourceMapConsumer = Rn().SourceMapConsumer, e.SourceNode = zn().SourceNode;
|
|
4537
|
+
})), Vn = /* @__PURE__ */ j(((e, t) => {
|
|
4538
4538
|
e.__esModule = !0;
|
|
4539
|
-
var n =
|
|
4539
|
+
var n = z(), 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 = Bn().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 I = /* @__PURE__ */ k(((e) => {
|
|
|
4633
4633
|
return t.prepend("["), t.add("]"), t;
|
|
4634
4634
|
}
|
|
4635
4635
|
}, e.default = a, t.exports = e.default;
|
|
4636
|
-
})),
|
|
4636
|
+
})), Hn = /* @__PURE__ */ j(((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 = vn(), i = n(B()), a = z(), o = n(Vn());
|
|
4643
4643
|
function s(e) {
|
|
4644
4644
|
this.value = e;
|
|
4645
4645
|
}
|
|
@@ -5123,13 +5123,13 @@ var I = /* @__PURE__ */ k(((e) => {
|
|
|
5123
5123
|
] : a;
|
|
5124
5124
|
}
|
|
5125
5125
|
e.default = c, t.exports = e.default;
|
|
5126
|
-
})),
|
|
5126
|
+
})), Un = /* @__PURE__ */ Ce((/* @__PURE__ */ j(((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(Cn()), i = n(wn()), a = kn(), o = An(), s = n(Hn()), c = n(En()), l = n(Sn()), u = r.default.create;
|
|
5133
5133
|
function d() {
|
|
5134
5134
|
var e = u();
|
|
5135
5135
|
return e.compile = function(t, n) {
|
|
@@ -5141,25 +5141,28 @@ var I = /* @__PURE__ */ k(((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
|
+
Un.Utils.escapeExpression = (e) => String(e ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
5145
|
+
var Wn = "language", H = Oe((e) => ({
|
|
5146
5146
|
language: "en",
|
|
5147
5147
|
setLanguage: (t) => {
|
|
5148
|
-
e({ language: t }), localStorage.setItem(
|
|
5149
|
-
}
|
|
5150
|
-
})),
|
|
5151
|
-
function
|
|
5152
|
-
let { language: t, setLanguage: n } =
|
|
5153
|
-
let
|
|
5154
|
-
return
|
|
5155
|
-
}, [
|
|
5156
|
-
let n =
|
|
5157
|
-
return
|
|
5158
|
-
}, [
|
|
5148
|
+
e({ language: t }), localStorage.setItem(Wn, t);
|
|
5149
|
+
}
|
|
5150
|
+
})), Gn = (e) => typeof e == "object" && !!e && "one" in e && "many" in e && typeof e.one == "string" && typeof e.many == "string", Kn = (e, t) => t === 1 ? e.one : e.many;
|
|
5151
|
+
function qn(e) {
|
|
5152
|
+
let { language: t, setLanguage: n } = H(), r = u(e), i = l(() => r.current[t], [t]), o = l(() => r.current.en, []), c = a((e) => {
|
|
5153
|
+
let t = an(o, e);
|
|
5154
|
+
return an(i, e, t);
|
|
5155
|
+
}, [i, o]), d = a((e, t) => {
|
|
5156
|
+
let n = `!!! ${e} !!!`, r = c(e);
|
|
5157
|
+
return Gn(r) && t && typeof t.count == "number" && (r = Kn(r, t.count)), r === void 0 || typeof r != "string" ? (console.error(`Missing translation for key: ${e}`), n) : Un.compile(r)(t);
|
|
5158
|
+
}, [c]), f = a((e, t) => {
|
|
5159
|
+
let n = c(e);
|
|
5160
|
+
return n !== void 0 && (typeof n == "string" || Gn(n) || t?.succeedIfKeyIsObject && typeof n == "object");
|
|
5161
|
+
}, [c]), p = (e) => {
|
|
5159
5162
|
let t = [], n = (e, r) => {
|
|
5160
5163
|
Object.entries(e).forEach(([e, i]) => {
|
|
5161
5164
|
let a = r ? `${r}.${e}` : e;
|
|
5162
|
-
typeof i == "object" && i && !Array.isArray(i) && !
|
|
5165
|
+
typeof i == "object" && i && !Array.isArray(i) && !Gn(i) ? n(i, a) : t.push(a);
|
|
5163
5166
|
});
|
|
5164
5167
|
};
|
|
5165
5168
|
return n(e, ""), t;
|
|
@@ -5186,24 +5189,24 @@ function Vn(e) {
|
|
|
5186
5189
|
setLanguage: n
|
|
5187
5190
|
};
|
|
5188
5191
|
}
|
|
5189
|
-
function
|
|
5190
|
-
let e = localStorage.getItem(
|
|
5192
|
+
function Jn() {
|
|
5193
|
+
let e = localStorage.getItem(Wn), t = sessionStorage.getItem(Wn), n = navigator.language;
|
|
5191
5194
|
n.includes("-") && (n = n.split("-")[0]);
|
|
5192
5195
|
let r = e || t || n;
|
|
5193
|
-
|
|
5196
|
+
H.getState().setLanguage(r);
|
|
5194
5197
|
}
|
|
5195
5198
|
//#endregion
|
|
5196
5199
|
//#region ../../node_modules/.pnpm/jdenticon@3.3.0/node_modules/jdenticon/dist/jdenticon-module.mjs
|
|
5197
|
-
function
|
|
5200
|
+
function Yn(e, t, n) {
|
|
5198
5201
|
return parseInt(e.substr(t, n), 16);
|
|
5199
5202
|
}
|
|
5200
|
-
function
|
|
5203
|
+
function Xn(e) {
|
|
5201
5204
|
return e |= 0, e < 0 ? "00" : e < 16 ? "0" + e.toString(16) : e < 256 ? e.toString(16) : "ff";
|
|
5202
5205
|
}
|
|
5203
|
-
function
|
|
5204
|
-
return n = n < 0 ? n + 6 : n > 6 ? n - 6 : n,
|
|
5206
|
+
function Zn(e, t, n) {
|
|
5207
|
+
return n = n < 0 ? n + 6 : n > 6 ? n - 6 : n, Xn(255 * (n < 1 ? e + (t - e) * n : n < 3 ? t : n < 4 ? e + (t - e) * (4 - n) : e));
|
|
5205
5208
|
}
|
|
5206
|
-
function
|
|
5209
|
+
function Qn(e) {
|
|
5207
5210
|
if (/^#[0-9a-f]{3,8}$/i.test(e)) {
|
|
5208
5211
|
let t, n = e.length;
|
|
5209
5212
|
if (n < 6) {
|
|
@@ -5213,18 +5216,18 @@ function Gn(e) {
|
|
|
5213
5216
|
return (n == 7 || n > 8) && (t = e), t;
|
|
5214
5217
|
}
|
|
5215
5218
|
}
|
|
5216
|
-
function
|
|
5219
|
+
function $n(e, t, n) {
|
|
5217
5220
|
let r;
|
|
5218
5221
|
if (t == 0) {
|
|
5219
|
-
let e =
|
|
5222
|
+
let e = Xn(n * 255);
|
|
5220
5223
|
r = e + e + e;
|
|
5221
5224
|
} else {
|
|
5222
5225
|
let i = n <= .5 ? n * (t + 1) : n + t - n * t, a = n * 2 - i;
|
|
5223
|
-
r =
|
|
5226
|
+
r = Zn(a, i, e * 6 + 2) + Zn(a, i, e * 6) + Zn(a, i, e * 6 - 2);
|
|
5224
5227
|
}
|
|
5225
5228
|
return "#" + r;
|
|
5226
5229
|
}
|
|
5227
|
-
function
|
|
5230
|
+
function er(e, t, n) {
|
|
5228
5231
|
let r = [
|
|
5229
5232
|
.55,
|
|
5230
5233
|
.5,
|
|
@@ -5234,14 +5237,14 @@ function V(e, t, n) {
|
|
|
5234
5237
|
.55,
|
|
5235
5238
|
.55
|
|
5236
5239
|
][e * 6 + .5 | 0];
|
|
5237
|
-
return n = n < .5 ? n * r * 2 : r + (n - .5) * (1 - r) * 2,
|
|
5240
|
+
return n = n < .5 ? n * r * 2 : r + (n - .5) * (1 - r) * 2, $n(e, t, n);
|
|
5238
5241
|
}
|
|
5239
|
-
var
|
|
5242
|
+
var tr = typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : {}, nr = {
|
|
5240
5243
|
V: "jdenticon_config",
|
|
5241
5244
|
n: "config"
|
|
5242
|
-
},
|
|
5243
|
-
function
|
|
5244
|
-
let n = typeof e == "object" && e ||
|
|
5245
|
+
}, rr = {};
|
|
5246
|
+
function ir(e, t) {
|
|
5247
|
+
let n = typeof e == "object" && e || rr[nr.n] || tr[nr.V] || {}, r = n.lightness || {}, i = n.saturation || {}, a = "color" in i ? i.color : i, o = i.grayscale, s = n.backColor, c = n.padding;
|
|
5245
5248
|
function l(e, t) {
|
|
5246
5249
|
let n = r[e];
|
|
5247
5250
|
return n && n.length > 1 || (n = t), function(e) {
|
|
@@ -5258,25 +5261,25 @@ function Xn(e, t) {
|
|
|
5258
5261
|
D: typeof o == "number" ? o : 0,
|
|
5259
5262
|
p: l("color", [.4, .8]),
|
|
5260
5263
|
F: l("grayscale", [.3, .9]),
|
|
5261
|
-
G:
|
|
5264
|
+
G: Qn(s),
|
|
5262
5265
|
X: typeof e == "number" ? e : typeof c == "number" ? c : t
|
|
5263
5266
|
};
|
|
5264
5267
|
}
|
|
5265
|
-
var
|
|
5268
|
+
var ar = class {
|
|
5266
5269
|
constructor(e, t) {
|
|
5267
5270
|
this.x = e, this.y = t;
|
|
5268
5271
|
}
|
|
5269
|
-
},
|
|
5272
|
+
}, or = class {
|
|
5270
5273
|
constructor(e, t, n, r) {
|
|
5271
5274
|
this.q = e, this.t = t, this.H = n, this.Y = r;
|
|
5272
5275
|
}
|
|
5273
5276
|
I(e, t, n, r) {
|
|
5274
5277
|
let i = this.q + this.H, a = this.t + this.H, o = this.Y;
|
|
5275
|
-
return o === 1 ? new
|
|
5278
|
+
return o === 1 ? new ar(i - t - (r || 0), this.t + e) : o === 2 ? new ar(i - e - (n || 0), a - t - (r || 0)) : o === 3 ? new ar(this.q + t, a - e - (n || 0)) : new ar(this.q + e, this.t + t);
|
|
5276
5279
|
}
|
|
5277
|
-
},
|
|
5280
|
+
}, sr = new or(0, 0, 0, 0), cr = class {
|
|
5278
5281
|
constructor(e) {
|
|
5279
|
-
this.J = e, this.u =
|
|
5282
|
+
this.J = e, this.u = sr;
|
|
5280
5283
|
}
|
|
5281
5284
|
g(e, t) {
|
|
5282
5285
|
let n = t ? -2 : 2, r = [];
|
|
@@ -5325,7 +5328,7 @@ var Zn = class {
|
|
|
5325
5328
|
], i);
|
|
5326
5329
|
}
|
|
5327
5330
|
};
|
|
5328
|
-
function
|
|
5331
|
+
function lr(e, t, n, r) {
|
|
5329
5332
|
e %= 14;
|
|
5330
5333
|
let i, a, o, s, c, l;
|
|
5331
5334
|
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 +5364,40 @@ function tr(e, t, n, r) {
|
|
|
5361
5364
|
n
|
|
5362
5365
|
]));
|
|
5363
5366
|
}
|
|
5364
|
-
function
|
|
5367
|
+
function ur(e, t, n) {
|
|
5365
5368
|
e %= 4;
|
|
5366
5369
|
let r;
|
|
5367
5370
|
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
5371
|
}
|
|
5369
|
-
function
|
|
5372
|
+
function dr(e, t) {
|
|
5370
5373
|
return e = t.W(e), [
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5374
|
+
er(e, t.D, t.F(0)),
|
|
5375
|
+
er(e, t.o, t.p(.5)),
|
|
5376
|
+
er(e, t.D, t.F(1)),
|
|
5377
|
+
er(e, t.o, t.p(1)),
|
|
5378
|
+
er(e, t.o, t.p(0))
|
|
5376
5379
|
];
|
|
5377
5380
|
}
|
|
5378
|
-
function
|
|
5379
|
-
let r =
|
|
5381
|
+
function fr(e, t, n) {
|
|
5382
|
+
let r = ir(n, .08);
|
|
5380
5383
|
r.G && e.m(r.G);
|
|
5381
5384
|
let i = e.k, a = .5 + i * r.X | 0;
|
|
5382
5385
|
i -= a * 2;
|
|
5383
|
-
let o = new
|
|
5386
|
+
let o = new cr(e), s = 0 | i / 4, c = 0 | a + i / 2 - s * 2, l = 0 | a + i / 2 - s * 2;
|
|
5384
5387
|
function u(n, r, i, a, u) {
|
|
5385
|
-
let p =
|
|
5388
|
+
let p = Yn(t, i, 1), m = a ? Yn(t, a, 1) : 0;
|
|
5386
5389
|
e.L(d[f[n]]);
|
|
5387
|
-
for (let e = 0; e < u.length; e++) o.u = new
|
|
5390
|
+
for (let e = 0; e < u.length; e++) o.u = new or(c + u[e][0] * s, l + u[e][1] * s, s, m++ % 4), r(p, o, s, e);
|
|
5388
5391
|
e.M();
|
|
5389
5392
|
}
|
|
5390
|
-
let d =
|
|
5393
|
+
let d = dr(Yn(t, -7) / 268435455, r), f = [], p;
|
|
5391
5394
|
function m(e) {
|
|
5392
5395
|
if (e.indexOf(p) >= 0) {
|
|
5393
5396
|
for (let t = 0; t < e.length; t++) if (f.indexOf(e[t]) >= 0) return !0;
|
|
5394
5397
|
}
|
|
5395
5398
|
}
|
|
5396
|
-
for (let e = 0; e < 3; e++) p =
|
|
5397
|
-
u(0,
|
|
5399
|
+
for (let e = 0; e < 3; e++) p = Yn(t, 8 + e, 1) % d.length, (m([0, 4]) || m([2, 3])) && (p = 1), f.push(p);
|
|
5400
|
+
u(0, ur, 2, 3, [
|
|
5398
5401
|
[1, 0],
|
|
5399
5402
|
[2, 0],
|
|
5400
5403
|
[2, 3],
|
|
@@ -5403,19 +5406,19 @@ function ir(e, t, n) {
|
|
|
5403
5406
|
[3, 1],
|
|
5404
5407
|
[3, 2],
|
|
5405
5408
|
[0, 2]
|
|
5406
|
-
]), u(1,
|
|
5409
|
+
]), u(1, ur, 4, 5, [
|
|
5407
5410
|
[0, 0],
|
|
5408
5411
|
[3, 0],
|
|
5409
5412
|
[3, 3],
|
|
5410
5413
|
[0, 3]
|
|
5411
|
-
]), u(2,
|
|
5414
|
+
]), u(2, lr, 1, null, [
|
|
5412
5415
|
[1, 1],
|
|
5413
5416
|
[2, 1],
|
|
5414
5417
|
[2, 2],
|
|
5415
5418
|
[1, 2]
|
|
5416
5419
|
]), e.finish();
|
|
5417
5420
|
}
|
|
5418
|
-
function
|
|
5421
|
+
function pr(e) {
|
|
5419
5422
|
var t = 0, n = 0, r = encodeURI(e) + "%80", i = [], a, o = [], s = 1732584193, c = 4023233417, l = ~s, u = ~c, d = 3285377520, f = [
|
|
5420
5423
|
s,
|
|
5421
5424
|
c,
|
|
@@ -5434,39 +5437,39 @@ function ar(e) {
|
|
|
5434
5437
|
for (t = 0; t < 40; t++) m += (f[t >> 3] >>> (7 - (t & 7)) * 4 & 15).toString(16);
|
|
5435
5438
|
return m;
|
|
5436
5439
|
}
|
|
5437
|
-
function
|
|
5440
|
+
function mr(e) {
|
|
5438
5441
|
return /^[0-9a-f]{11,}$/i.test(e) && e;
|
|
5439
5442
|
}
|
|
5440
|
-
function
|
|
5441
|
-
return
|
|
5443
|
+
function hr(e) {
|
|
5444
|
+
return pr(e == null ? "" : "" + e);
|
|
5442
5445
|
}
|
|
5443
5446
|
typeof document < "u" && document.querySelectorAll.bind(document);
|
|
5444
|
-
function
|
|
5447
|
+
function U(e) {
|
|
5445
5448
|
return (e * 10 + .5 | 0) / 10;
|
|
5446
5449
|
}
|
|
5447
|
-
var
|
|
5450
|
+
var gr = class {
|
|
5448
5451
|
constructor() {
|
|
5449
5452
|
this.v = "";
|
|
5450
5453
|
}
|
|
5451
5454
|
g(e) {
|
|
5452
5455
|
let t = "";
|
|
5453
|
-
for (let n = 0; n < e.length; n++) t += (n ? "L" : "M") +
|
|
5456
|
+
for (let n = 0; n < e.length; n++) t += (n ? "L" : "M") + U(e[n].x) + " " + U(e[n].y);
|
|
5454
5457
|
this.v += t + "Z";
|
|
5455
5458
|
}
|
|
5456
5459
|
h(e, t, n) {
|
|
5457
|
-
let r = +!n, i =
|
|
5458
|
-
this.v += "M" +
|
|
5460
|
+
let r = +!n, i = U(t / 2), a = U(t), o = "a" + i + "," + i + " 0 1," + r + " ";
|
|
5461
|
+
this.v += "M" + U(e.x) + " " + U(e.y + t / 2) + o + a + ",0" + o + -a + ",0";
|
|
5459
5462
|
}
|
|
5460
|
-
},
|
|
5463
|
+
}, _r = class {
|
|
5461
5464
|
constructor(e) {
|
|
5462
5465
|
this.A, this.B = {}, this.O = e, this.k = e.k;
|
|
5463
5466
|
}
|
|
5464
5467
|
m(e) {
|
|
5465
|
-
let t = /^(#......)(..)?/.exec(e), n = t[2] ?
|
|
5468
|
+
let t = /^(#......)(..)?/.exec(e), n = t[2] ? Yn(t[2], 0) / 255 : 1;
|
|
5466
5469
|
this.O.m(t[1], n);
|
|
5467
5470
|
}
|
|
5468
5471
|
L(e) {
|
|
5469
|
-
this.A = this.B[e] || (this.B[e] = new
|
|
5472
|
+
this.A = this.B[e] || (this.B[e] = new gr());
|
|
5470
5473
|
}
|
|
5471
5474
|
M() {}
|
|
5472
5475
|
g(e) {
|
|
@@ -5479,13 +5482,13 @@ var cr = class {
|
|
|
5479
5482
|
let e = this.B;
|
|
5480
5483
|
for (let t in e) e.hasOwnProperty(t) && this.O.P(t, e[t].v);
|
|
5481
5484
|
}
|
|
5482
|
-
},
|
|
5485
|
+
}, vr = {
|
|
5483
5486
|
R: "http://www.w3.org/2000/svg",
|
|
5484
5487
|
S: "width",
|
|
5485
5488
|
T: "height"
|
|
5486
|
-
},
|
|
5489
|
+
}, yr = class {
|
|
5487
5490
|
constructor(e) {
|
|
5488
|
-
this.k = e, this.C = "<svg xmlns=\"" +
|
|
5491
|
+
this.k = e, this.C = "<svg xmlns=\"" + vr.R + "\" width=\"" + e + "\" height=\"" + e + "\" viewBox=\"0 0 " + e + " " + e + "\">";
|
|
5489
5492
|
}
|
|
5490
5493
|
m(e, t) {
|
|
5491
5494
|
t && (this.C += "<rect width=\"100%\" height=\"100%\" fill=\"" + e + "\" opacity=\"" + t.toFixed(2) + "\"/>");
|
|
@@ -5497,16 +5500,16 @@ var cr = class {
|
|
|
5497
5500
|
return this.C + "</svg>";
|
|
5498
5501
|
}
|
|
5499
5502
|
};
|
|
5500
|
-
function
|
|
5501
|
-
let r = new
|
|
5502
|
-
return
|
|
5503
|
+
function br(e, t, n) {
|
|
5504
|
+
let r = new yr(t);
|
|
5505
|
+
return fr(new _r(r), mr(e) || hr(e), n), r.toString();
|
|
5503
5506
|
}
|
|
5504
5507
|
//#endregion
|
|
5505
|
-
//#region ../../node_modules/.pnpm/lucide-react@1.
|
|
5506
|
-
var
|
|
5507
|
-
let t =
|
|
5508
|
+
//#region ../../node_modules/.pnpm/lucide-react@1.25.0_react@19.2.7/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs
|
|
5509
|
+
var xr = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), Sr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Cr = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), wr = (e) => {
|
|
5510
|
+
let t = Cr(e);
|
|
5508
5511
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
5509
|
-
},
|
|
5512
|
+
}, Tr = {
|
|
5510
5513
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5511
5514
|
width: 24,
|
|
5512
5515
|
height: 24,
|
|
@@ -5516,34 +5519,37 @@ var pr = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
|
|
|
5516
5519
|
strokeWidth: 2,
|
|
5517
5520
|
strokeLinecap: "round",
|
|
5518
5521
|
strokeLinejoin: "round"
|
|
5519
|
-
},
|
|
5522
|
+
}, Er = (e) => {
|
|
5520
5523
|
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
5521
5524
|
return !1;
|
|
5522
|
-
},
|
|
5523
|
-
let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } =
|
|
5525
|
+
}, Dr = n({}), Or = () => o(Dr), kr = i(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: i, className: a = "", children: o, iconNode: s, ...c }, l) => {
|
|
5526
|
+
let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = Or() ?? {}, h = i ?? f ? Number(n ?? d) * 24 / Number(t ?? u) : n ?? d;
|
|
5524
5527
|
return r("svg", {
|
|
5525
5528
|
ref: l,
|
|
5526
|
-
...
|
|
5527
|
-
width: t ?? u ??
|
|
5528
|
-
height: t ?? u ??
|
|
5529
|
+
...Tr,
|
|
5530
|
+
width: t ?? u ?? Tr.width,
|
|
5531
|
+
height: t ?? u ?? Tr.height,
|
|
5529
5532
|
stroke: e ?? p,
|
|
5530
5533
|
strokeWidth: h,
|
|
5531
|
-
className:
|
|
5532
|
-
...!o && !
|
|
5534
|
+
className: xr("lucide", m, a),
|
|
5535
|
+
...!o && !Er(c) && { "aria-hidden": "true" },
|
|
5533
5536
|
...c
|
|
5534
5537
|
}, [...s.map(([e, t]) => r(e, t)), ...Array.isArray(o) ? o : [o]]);
|
|
5535
|
-
}),
|
|
5536
|
-
let n = i(({ className: n, ...i }, a) => r(
|
|
5538
|
+
}), W = (e, t) => {
|
|
5539
|
+
let n = i(({ className: n, ...i }, a) => r(kr, {
|
|
5537
5540
|
ref: a,
|
|
5538
5541
|
iconNode: t,
|
|
5539
|
-
className:
|
|
5542
|
+
className: xr(`lucide-${Sr(wr(e))}`, `lucide-${e}`, n),
|
|
5540
5543
|
...i
|
|
5541
5544
|
}));
|
|
5542
|
-
return n.displayName =
|
|
5543
|
-
},
|
|
5545
|
+
return n.displayName = wr(e), n;
|
|
5546
|
+
}, Ar = W("chevron-down", [["path", {
|
|
5547
|
+
d: "m6 9 6 6 6-6",
|
|
5548
|
+
key: "qrunsl"
|
|
5549
|
+
}]]), jr = W("message-circle", [["path", {
|
|
5544
5550
|
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
5551
|
key: "1sd12s"
|
|
5546
|
-
}]]),
|
|
5552
|
+
}]]), Mr = W("search", [["path", {
|
|
5547
5553
|
d: "m21 21-4.34-4.34",
|
|
5548
5554
|
key: "14j7rj"
|
|
5549
5555
|
}], ["circle", {
|
|
@@ -5551,7 +5557,7 @@ var pr = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
|
|
|
5551
5557
|
cy: "11",
|
|
5552
5558
|
r: "8",
|
|
5553
5559
|
key: "4ej97u"
|
|
5554
|
-
}]]),
|
|
5560
|
+
}]]), Nr = W("triangle-alert", [
|
|
5555
5561
|
["path", {
|
|
5556
5562
|
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",
|
|
5557
5563
|
key: "wmoenq"
|
|
@@ -5564,22 +5570,53 @@ var pr = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e)
|
|
|
5564
5570
|
d: "M12 17h.01",
|
|
5565
5571
|
key: "p32p05"
|
|
5566
5572
|
}]
|
|
5567
|
-
]),
|
|
5568
|
-
|
|
5569
|
-
|
|
5573
|
+
]), Pr = W("user-plus", [
|
|
5574
|
+
["path", {
|
|
5575
|
+
d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",
|
|
5576
|
+
key: "1yyitq"
|
|
5577
|
+
}],
|
|
5578
|
+
["circle", {
|
|
5579
|
+
cx: "9",
|
|
5580
|
+
cy: "7",
|
|
5581
|
+
r: "4",
|
|
5582
|
+
key: "nufk8"
|
|
5583
|
+
}],
|
|
5584
|
+
["line", {
|
|
5585
|
+
x1: "19",
|
|
5586
|
+
x2: "19",
|
|
5587
|
+
y1: "8",
|
|
5588
|
+
y2: "14",
|
|
5589
|
+
key: "1bvyxn"
|
|
5590
|
+
}],
|
|
5591
|
+
["line", {
|
|
5592
|
+
x1: "22",
|
|
5593
|
+
x2: "16",
|
|
5594
|
+
y1: "11",
|
|
5595
|
+
y2: "11",
|
|
5596
|
+
key: "1shjgl"
|
|
5597
|
+
}]
|
|
5598
|
+
]), Fr = W("x", [["path", {
|
|
5599
|
+
d: "M18 6 6 18",
|
|
5600
|
+
key: "1bl5f8"
|
|
5601
|
+
}], ["path", {
|
|
5602
|
+
d: "m6 6 12 12",
|
|
5603
|
+
key: "d8bk6v"
|
|
5604
|
+
}]]), Ir = n({});
|
|
5605
|
+
function Lr({ children: e, onStartDirectMessage: t }) {
|
|
5606
|
+
return /* @__PURE__ */ k(Ir.Provider, {
|
|
5570
5607
|
value: { onStartDirectMessage: t },
|
|
5571
5608
|
children: e
|
|
5572
5609
|
});
|
|
5573
5610
|
}
|
|
5574
|
-
function
|
|
5575
|
-
return o(
|
|
5611
|
+
function Rr() {
|
|
5612
|
+
return o(Ir);
|
|
5576
5613
|
}
|
|
5577
|
-
var
|
|
5614
|
+
var zr = {
|
|
5578
5615
|
unknown: "Unknown",
|
|
5579
5616
|
startDirectMessage: "Start direct message",
|
|
5580
5617
|
emailVerified: "Email verified",
|
|
5581
5618
|
emailUnverified: "Email not verified"
|
|
5582
|
-
},
|
|
5619
|
+
}, Br = {
|
|
5583
5620
|
unknown: "Gelöscht",
|
|
5584
5621
|
startDirectMessage: "Direktnachricht starten",
|
|
5585
5622
|
emailVerified: "E-Mail bestätigt",
|
|
@@ -5587,66 +5624,77 @@ var kr = {
|
|
|
5587
5624
|
};
|
|
5588
5625
|
//#endregion
|
|
5589
5626
|
//#region src/lib/components/attraccess-user/AttraccessUser.tsx
|
|
5590
|
-
function
|
|
5591
|
-
let { t:
|
|
5592
|
-
en:
|
|
5593
|
-
de:
|
|
5594
|
-
}),
|
|
5595
|
-
if (
|
|
5596
|
-
let t =
|
|
5627
|
+
function Vr({ user: e, description: t, className: n, onStartDirectMessage: r, variant: i = "full", interactive: o = !0 }) {
|
|
5628
|
+
let { t: s } = qn({
|
|
5629
|
+
en: zr,
|
|
5630
|
+
de: Br
|
|
5631
|
+
}), c = Rr(), u = !e || !!e?.deletedAt, d = l(() => {
|
|
5632
|
+
if (u) return;
|
|
5633
|
+
let t = br(e?.id || "unknown", 100);
|
|
5597
5634
|
return `data:image/svg+xml;base64,${btoa(t)}`;
|
|
5598
|
-
}, [
|
|
5599
|
-
r ? r(e) :
|
|
5635
|
+
}, [u, e]), g = e?.username || s("unknown"), _ = a(() => {
|
|
5636
|
+
r ? r(e) : c.onStartDirectMessage(e);
|
|
5600
5637
|
}, [
|
|
5601
5638
|
e,
|
|
5602
5639
|
r,
|
|
5603
|
-
|
|
5604
|
-
]),
|
|
5605
|
-
src:
|
|
5606
|
-
alt:
|
|
5607
|
-
}) : null, /* @__PURE__ */
|
|
5608
|
-
color:
|
|
5609
|
-
children:
|
|
5610
|
-
})] }),
|
|
5640
|
+
c
|
|
5641
|
+
]), v = o && !!e && !!_, y = /* @__PURE__ */ A(f, { children: [d ? /* @__PURE__ */ k(m, {
|
|
5642
|
+
src: d,
|
|
5643
|
+
alt: g
|
|
5644
|
+
}) : null, /* @__PURE__ */ k(p, {
|
|
5645
|
+
color: u ? "warning" : void 0,
|
|
5646
|
+
children: u ? /* @__PURE__ */ k(Nr, { className: "w-4 h-4" }) : g.slice(0, 2).toUpperCase()
|
|
5647
|
+
})] }), b = /* @__PURE__ */ A("div", {
|
|
5611
5648
|
className: `flex items-center gap-2 ${n ?? ""}`,
|
|
5612
|
-
children: [
|
|
5649
|
+
children: [y, /* @__PURE__ */ A("div", {
|
|
5613
5650
|
className: "flex flex-col",
|
|
5614
|
-
children: [/* @__PURE__ */
|
|
5615
|
-
className: "flex flex-row items-center",
|
|
5616
|
-
children: [/* @__PURE__ */
|
|
5617
|
-
className: "text-sm font-medium",
|
|
5618
|
-
children:
|
|
5619
|
-
}), /* @__PURE__ */
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
onPress: g,
|
|
5624
|
-
children: /* @__PURE__ */ D(Cr, {})
|
|
5651
|
+
children: [/* @__PURE__ */ A("div", {
|
|
5652
|
+
className: "flex flex-row items-center gap-1",
|
|
5653
|
+
children: [/* @__PURE__ */ k("span", {
|
|
5654
|
+
className: "text-sm font-medium group-hover:underline",
|
|
5655
|
+
children: u ? /* @__PURE__ */ k("del", { children: g }) : g
|
|
5656
|
+
}), v && /* @__PURE__ */ k(Ar, {
|
|
5657
|
+
className: "h-3 w-3 text-muted-foreground shrink-0",
|
|
5658
|
+
"aria-hidden": "true",
|
|
5659
|
+
focusable: "false"
|
|
5625
5660
|
})]
|
|
5626
|
-
}), t && /* @__PURE__ */
|
|
5661
|
+
}), t && /* @__PURE__ */ k("span", {
|
|
5627
5662
|
className: "text-xs text-muted-foreground",
|
|
5628
|
-
children:
|
|
5663
|
+
children: u ? /* @__PURE__ */ k("del", { children: t }) : t
|
|
5629
5664
|
})]
|
|
5630
5665
|
})]
|
|
5631
|
-
}),
|
|
5632
|
-
return
|
|
5633
|
-
className: "inline-flex w-fit cursor-pointer rounded-md outline-none focus-visible:ring-2",
|
|
5634
|
-
children:
|
|
5635
|
-
}), /* @__PURE__ */
|
|
5666
|
+
}), x = i === "mini" ? y : b;
|
|
5667
|
+
return v ? /* @__PURE__ */ A(w, { children: [/* @__PURE__ */ k(w.Trigger, {
|
|
5668
|
+
className: "group inline-flex w-fit cursor-pointer rounded-md outline-none focus-visible:ring-2",
|
|
5669
|
+
children: x
|
|
5670
|
+
}), /* @__PURE__ */ k(w.Content, { children: /* @__PURE__ */ A(w.Dialog, {
|
|
5636
5671
|
className: "flex w-64 flex-col gap-3 p-4",
|
|
5637
|
-
children: [
|
|
5672
|
+
children: [b, !u && /* @__PURE__ */ A(h, {
|
|
5638
5673
|
variant: "primary",
|
|
5639
5674
|
size: "sm",
|
|
5640
5675
|
className: "w-full",
|
|
5641
|
-
onPress:
|
|
5642
|
-
children: [/* @__PURE__ */
|
|
5676
|
+
onPress: _,
|
|
5677
|
+
children: [/* @__PURE__ */ k(jr, { className: "h-4 w-4" }), s("startDirectMessage")]
|
|
5643
5678
|
})]
|
|
5644
|
-
}) })] }) :
|
|
5679
|
+
}) })] }) : x;
|
|
5680
|
+
}
|
|
5681
|
+
//#endregion
|
|
5682
|
+
//#region src/lib/hooks/useDebounce.ts
|
|
5683
|
+
function Hr(e, t) {
|
|
5684
|
+
let [n, r] = d(e);
|
|
5685
|
+
return s(() => {
|
|
5686
|
+
let n = setTimeout(() => {
|
|
5687
|
+
r(e);
|
|
5688
|
+
}, t);
|
|
5689
|
+
return () => {
|
|
5690
|
+
clearTimeout(n);
|
|
5691
|
+
};
|
|
5692
|
+
}, [e, t]), n;
|
|
5645
5693
|
}
|
|
5646
5694
|
//#endregion
|
|
5647
5695
|
//#region src/lib/hooks/useFormatDateTime.tsx
|
|
5648
|
-
function
|
|
5649
|
-
let { showTime: t = !0, showDate: n = !0, showSeconds: r = !1 } = e ?? {}, { language: i } =
|
|
5696
|
+
function Ur(e) {
|
|
5697
|
+
let { showTime: t = !0, showDate: n = !0, showSeconds: r = !1 } = e ?? {}, { language: i } = H(), o = l(() => {
|
|
5650
5698
|
let e = {};
|
|
5651
5699
|
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);
|
|
5652
5700
|
}, [
|
|
@@ -5661,13 +5709,13 @@ function Mr(e) {
|
|
|
5661
5709
|
return isNaN(n.getTime()) ? t ?? "-" : o.format(n);
|
|
5662
5710
|
}, [o]);
|
|
5663
5711
|
}
|
|
5664
|
-
function
|
|
5665
|
-
return
|
|
5712
|
+
function Wr(e, t) {
|
|
5713
|
+
return Ur(t)(e);
|
|
5666
5714
|
}
|
|
5667
5715
|
//#endregion
|
|
5668
5716
|
//#region src/lib/hooks/useFormatDuration.ts
|
|
5669
|
-
function
|
|
5670
|
-
let { language: t } =
|
|
5717
|
+
function Gr(e) {
|
|
5718
|
+
let { language: t } = H(), n = a((e) => {
|
|
5671
5719
|
let n = 1440, r = Math.floor(e / n), i = Math.floor((e - r * n) / 60), a = e - r * n - i * 60;
|
|
5672
5720
|
try {
|
|
5673
5721
|
if (typeof Intl.DurationFormat == "function") {
|
|
@@ -5687,14 +5735,18 @@ function Pr(e) {
|
|
|
5687
5735
|
return console.warn("Intl.DurationFormat not supported", e), t.startsWith("de") ? `${r}T ${i}Std. ${a}Min.` : `${r}T ${i}h ${a}m`;
|
|
5688
5736
|
}
|
|
5689
5737
|
}, [t]);
|
|
5690
|
-
return
|
|
5738
|
+
return l(() => n(e), [e, n]);
|
|
5691
5739
|
}
|
|
5692
5740
|
//#endregion
|
|
5693
|
-
//#region ../../node_modules/.pnpm/react-router@7.
|
|
5694
|
-
|
|
5741
|
+
//#region ../../node_modules/.pnpm/react-router@7.18.1_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-router/dist/development/chunk-KS7C4IRE.mjs
|
|
5742
|
+
var Kr = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, qr = /^[\\/]{2}/;
|
|
5743
|
+
function Jr(e, t) {
|
|
5744
|
+
return t + e.replace(/\\/g, "/");
|
|
5745
|
+
}
|
|
5746
|
+
function G(e, t) {
|
|
5695
5747
|
if (e === !1 || e == null) throw Error(t);
|
|
5696
5748
|
}
|
|
5697
|
-
function
|
|
5749
|
+
function K(e, t) {
|
|
5698
5750
|
if (!e) {
|
|
5699
5751
|
typeof console < "u" && console.warn(t);
|
|
5700
5752
|
try {
|
|
@@ -5702,10 +5754,10 @@ function W(e, t) {
|
|
|
5702
5754
|
} catch {}
|
|
5703
5755
|
}
|
|
5704
5756
|
}
|
|
5705
|
-
function
|
|
5757
|
+
function Yr({ pathname: e = "/", search: t = "", hash: n = "" }) {
|
|
5706
5758
|
return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
|
|
5707
5759
|
}
|
|
5708
|
-
function
|
|
5760
|
+
function Xr(e) {
|
|
5709
5761
|
let t = {};
|
|
5710
5762
|
if (e) {
|
|
5711
5763
|
let n = e.indexOf("#");
|
|
@@ -5715,17 +5767,17 @@ function G(e) {
|
|
|
5715
5767
|
}
|
|
5716
5768
|
return t;
|
|
5717
5769
|
}
|
|
5718
|
-
function
|
|
5719
|
-
return
|
|
5770
|
+
function Zr(e, t, n = "/") {
|
|
5771
|
+
return Qr(e, t, n, !1);
|
|
5720
5772
|
}
|
|
5721
|
-
function
|
|
5722
|
-
let a =
|
|
5773
|
+
function Qr(e, t, n, r, i) {
|
|
5774
|
+
let a = q((typeof t == "string" ? Xr(t) : t).pathname || "/", n);
|
|
5723
5775
|
if (a == null) return null;
|
|
5724
|
-
let o = i ??
|
|
5725
|
-
for (let e = 0; s == null && e < o.length; ++e) s =
|
|
5776
|
+
let o = i ?? ei(e), s = null, c = _i(a);
|
|
5777
|
+
for (let e = 0; s == null && e < o.length; ++e) s = pi(o[e], c, r);
|
|
5726
5778
|
return s;
|
|
5727
5779
|
}
|
|
5728
|
-
function
|
|
5780
|
+
function $r(e, t) {
|
|
5729
5781
|
let { route: n, pathname: r, params: i } = e;
|
|
5730
5782
|
return {
|
|
5731
5783
|
id: n.id,
|
|
@@ -5736,11 +5788,11 @@ function Rr(e, t) {
|
|
|
5736
5788
|
handle: n.handle
|
|
5737
5789
|
};
|
|
5738
5790
|
}
|
|
5739
|
-
function
|
|
5740
|
-
let t =
|
|
5741
|
-
return
|
|
5791
|
+
function ei(e) {
|
|
5792
|
+
let t = ti(e);
|
|
5793
|
+
return ri(t), t;
|
|
5742
5794
|
}
|
|
5743
|
-
function
|
|
5795
|
+
function ti(e, t = [], n = [], r = "", i = !1) {
|
|
5744
5796
|
let a = (e, a, o = i, s) => {
|
|
5745
5797
|
let c = {
|
|
5746
5798
|
relativePath: s === void 0 ? e.path || "" : s,
|
|
@@ -5750,68 +5802,79 @@ function Br(e, t = [], n = [], r = "", i = !1) {
|
|
|
5750
5802
|
};
|
|
5751
5803
|
if (c.relativePath.startsWith("/")) {
|
|
5752
5804
|
if (!c.relativePath.startsWith(r) && o) return;
|
|
5753
|
-
|
|
5805
|
+
G(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);
|
|
5754
5806
|
}
|
|
5755
|
-
let l =
|
|
5756
|
-
e.children && e.children.length > 0 && (
|
|
5807
|
+
let l = J([r, c.relativePath]), u = n.concat(c);
|
|
5808
|
+
e.children && e.children.length > 0 && (G(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), ti(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({
|
|
5757
5809
|
path: l,
|
|
5758
|
-
score:
|
|
5759
|
-
routesMeta: u
|
|
5810
|
+
score: di(l, e.index),
|
|
5811
|
+
routesMeta: u.map((e, t) => {
|
|
5812
|
+
let [n, r] = gi(e.relativePath, e.caseSensitive, t === u.length - 1);
|
|
5813
|
+
return {
|
|
5814
|
+
...e,
|
|
5815
|
+
matcher: n,
|
|
5816
|
+
compiledParams: r
|
|
5817
|
+
};
|
|
5818
|
+
})
|
|
5760
5819
|
});
|
|
5761
5820
|
};
|
|
5762
5821
|
return e.forEach((e, t) => {
|
|
5763
5822
|
if (e.path === "" || !e.path?.includes("?")) a(e, t);
|
|
5764
|
-
else for (let n of
|
|
5823
|
+
else for (let n of ni(e.path)) a(e, t, !0, n);
|
|
5765
5824
|
}), t;
|
|
5766
5825
|
}
|
|
5767
|
-
function
|
|
5826
|
+
function ni(e) {
|
|
5768
5827
|
let t = e.split("/");
|
|
5769
5828
|
if (t.length === 0) return [];
|
|
5770
5829
|
let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");
|
|
5771
5830
|
if (r.length === 0) return i ? [a, ""] : [a];
|
|
5772
|
-
let o =
|
|
5831
|
+
let o = ni(r.join("/")), s = [];
|
|
5773
5832
|
return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
|
|
5774
5833
|
}
|
|
5775
|
-
function
|
|
5776
|
-
e.sort((e, t) => e.score === t.score ?
|
|
5834
|
+
function ri(e) {
|
|
5835
|
+
e.sort((e, t) => e.score === t.score ? fi(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
|
|
5777
5836
|
}
|
|
5778
|
-
var
|
|
5779
|
-
function
|
|
5837
|
+
var ii = /^:[\w-]+$/, ai = 3, oi = 2, si = 1, ci = 10, li = -2, ui = (e) => e === "*";
|
|
5838
|
+
function di(e, t) {
|
|
5780
5839
|
let n = e.split("/"), r = n.length;
|
|
5781
|
-
return n.some(
|
|
5840
|
+
return n.some(ui) && (r += li), t && (r += oi), n.filter((e) => !ui(e)).reduce((e, t) => e + (ii.test(t) ? ai : t === "" ? si : ci), r);
|
|
5782
5841
|
}
|
|
5783
|
-
function
|
|
5842
|
+
function fi(e, t) {
|
|
5784
5843
|
return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
|
|
5785
5844
|
}
|
|
5786
|
-
function
|
|
5845
|
+
function pi(e, t, n = !1) {
|
|
5787
5846
|
let { routesMeta: r } = e, i = {}, a = "/", o = [];
|
|
5788
5847
|
for (let e = 0; e < r.length; ++e) {
|
|
5789
|
-
let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u =
|
|
5848
|
+
let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = {
|
|
5790
5849
|
path: s.relativePath,
|
|
5791
5850
|
caseSensitive: s.caseSensitive,
|
|
5792
5851
|
end: c
|
|
5793
|
-
}, l),
|
|
5794
|
-
if (!
|
|
5852
|
+
}, d = s.matcher && s.compiledParams ? hi(u, l, s.matcher, s.compiledParams) : mi(u, l), f = s.route;
|
|
5853
|
+
if (!d && c && n && !r[r.length - 1].route.index && (d = mi({
|
|
5795
5854
|
path: s.relativePath,
|
|
5796
5855
|
caseSensitive: s.caseSensitive,
|
|
5797
5856
|
end: !1
|
|
5798
|
-
}, l)), !
|
|
5799
|
-
Object.assign(i,
|
|
5857
|
+
}, l)), !d) return null;
|
|
5858
|
+
Object.assign(i, d.params), o.push({
|
|
5800
5859
|
params: i,
|
|
5801
|
-
pathname:
|
|
5802
|
-
pathnameBase:
|
|
5803
|
-
route:
|
|
5804
|
-
}),
|
|
5860
|
+
pathname: J([a, d.pathname]),
|
|
5861
|
+
pathnameBase: Ei(J([a, d.pathnameBase])),
|
|
5862
|
+
route: f
|
|
5863
|
+
}), d.pathnameBase !== "/" && (a = J([a, d.pathnameBase]));
|
|
5805
5864
|
}
|
|
5806
5865
|
return o;
|
|
5807
5866
|
}
|
|
5808
|
-
function
|
|
5867
|
+
function mi(e, t) {
|
|
5809
5868
|
typeof e == "string" && (e = {
|
|
5810
5869
|
path: e,
|
|
5811
5870
|
caseSensitive: !1,
|
|
5812
5871
|
end: !0
|
|
5813
5872
|
});
|
|
5814
|
-
let [n, r] =
|
|
5873
|
+
let [n, r] = gi(e.path, e.caseSensitive, e.end);
|
|
5874
|
+
return hi(e, t, n, r);
|
|
5875
|
+
}
|
|
5876
|
+
function hi(e, t, n, r) {
|
|
5877
|
+
let i = t.match(n);
|
|
5815
5878
|
if (!i) return null;
|
|
5816
5879
|
let a = i[0], o = a.replace(/(.)\/+$/, "$1"), s = i.slice(1);
|
|
5817
5880
|
return {
|
|
@@ -5828,8 +5891,8 @@ function $r(e, t) {
|
|
|
5828
5891
|
pattern: e
|
|
5829
5892
|
};
|
|
5830
5893
|
}
|
|
5831
|
-
function
|
|
5832
|
-
|
|
5894
|
+
function gi(e, t = !1, n = !0) {
|
|
5895
|
+
K(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(/\*$/, "/*")}".`);
|
|
5833
5896
|
let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
|
|
5834
5897
|
if (r.push({
|
|
5835
5898
|
paramName: t,
|
|
@@ -5842,47 +5905,46 @@ function ei(e, t = !1, n = !0) {
|
|
|
5842
5905
|
}).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
|
|
5843
5906
|
return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
|
|
5844
5907
|
}
|
|
5845
|
-
function
|
|
5908
|
+
function _i(e) {
|
|
5846
5909
|
try {
|
|
5847
5910
|
return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
|
|
5848
5911
|
} catch (t) {
|
|
5849
|
-
return
|
|
5912
|
+
return K(!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;
|
|
5850
5913
|
}
|
|
5851
5914
|
}
|
|
5852
|
-
function
|
|
5915
|
+
function q(e, t) {
|
|
5853
5916
|
if (t === "/") return e;
|
|
5854
5917
|
if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
|
|
5855
5918
|
let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
|
|
5856
5919
|
return r && r !== "/" ? null : e.slice(n) || "/";
|
|
5857
5920
|
}
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
return n ? (n = li(n), a = n.startsWith("/") ? ii(n.substring(1), "/") : ii(n, t)) : a = t, {
|
|
5921
|
+
function vi(e, t = "/") {
|
|
5922
|
+
let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? Xr(e) : e, a;
|
|
5923
|
+
return n ? (n = wi(n), a = n.startsWith("/") ? yi(n.substring(1), "/") : yi(n, t)) : a = t, {
|
|
5862
5924
|
pathname: a,
|
|
5863
|
-
search:
|
|
5864
|
-
hash:
|
|
5925
|
+
search: Di(r),
|
|
5926
|
+
hash: Oi(i)
|
|
5865
5927
|
};
|
|
5866
5928
|
}
|
|
5867
|
-
function
|
|
5868
|
-
let n =
|
|
5929
|
+
function yi(e, t) {
|
|
5930
|
+
let n = Ti(t).split("/");
|
|
5869
5931
|
return e.split("/").forEach((e) => {
|
|
5870
5932
|
e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
|
|
5871
5933
|
}), n.length > 1 ? n.join("/") : "/";
|
|
5872
5934
|
}
|
|
5873
|
-
function
|
|
5935
|
+
function bi(e, t, n, r) {
|
|
5874
5936
|
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.`;
|
|
5875
5937
|
}
|
|
5876
|
-
function
|
|
5938
|
+
function xi(e) {
|
|
5877
5939
|
return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
|
|
5878
5940
|
}
|
|
5879
|
-
function
|
|
5880
|
-
let t =
|
|
5941
|
+
function Si(e) {
|
|
5942
|
+
let t = xi(e);
|
|
5881
5943
|
return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
|
|
5882
5944
|
}
|
|
5883
|
-
function
|
|
5945
|
+
function Ci(e, t, n, r = !1) {
|
|
5884
5946
|
let i;
|
|
5885
|
-
typeof e == "string" ? i =
|
|
5947
|
+
typeof e == "string" ? i = Xr(e) : (i = { ...e }, G(!i.pathname || !i.pathname.includes("?"), bi("?", "pathname", "search", i)), G(!i.pathname || !i.pathname.includes("#"), bi("#", "pathname", "hash", i)), G(!i.search || !i.search.includes("#"), bi("#", "search", "hash", i)));
|
|
5886
5948
|
let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
|
|
5887
5949
|
if (o == null) s = n;
|
|
5888
5950
|
else {
|
|
@@ -5894,34 +5956,34 @@ function ci(e, t, n, r = !1) {
|
|
|
5894
5956
|
}
|
|
5895
5957
|
s = e >= 0 ? t[e] : "/";
|
|
5896
5958
|
}
|
|
5897
|
-
let c =
|
|
5959
|
+
let c = vi(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
|
|
5898
5960
|
return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
|
|
5899
5961
|
}
|
|
5900
|
-
var
|
|
5962
|
+
var wi = (e) => e.replace(/[\\/]{2,}/g, "/"), J = (e) => wi(e.join("/")), Ti = (e) => e.replace(/\/+$/, ""), Ei = (e) => Ti(e).replace(/^\/*/, "/"), Di = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Oi = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, ki = class {
|
|
5901
5963
|
constructor(e, t, n, r = !1) {
|
|
5902
5964
|
this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
|
|
5903
5965
|
}
|
|
5904
5966
|
};
|
|
5905
|
-
function
|
|
5967
|
+
function Ai(e) {
|
|
5906
5968
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
5907
5969
|
}
|
|
5908
|
-
function
|
|
5909
|
-
return
|
|
5970
|
+
function ji(e) {
|
|
5971
|
+
return J(e.map((e) => e.route.path).filter(Boolean)) || "/";
|
|
5910
5972
|
}
|
|
5911
|
-
var
|
|
5912
|
-
function
|
|
5973
|
+
var Mi = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
|
|
5974
|
+
function Ni(e, t) {
|
|
5913
5975
|
let n = e;
|
|
5914
|
-
if (typeof n != "string" || !
|
|
5976
|
+
if (typeof n != "string" || !Kr.test(n)) return {
|
|
5915
5977
|
absoluteURL: void 0,
|
|
5916
5978
|
isExternal: !1,
|
|
5917
5979
|
to: n
|
|
5918
5980
|
};
|
|
5919
5981
|
let r = n, i = !1;
|
|
5920
|
-
if (
|
|
5921
|
-
let e = new URL(window.location.href), r =
|
|
5982
|
+
if (Mi) try {
|
|
5983
|
+
let e = new URL(window.location.href), r = qr.test(n) ? new URL(Jr(n, e.protocol)) : new URL(n), a = q(r.pathname, t);
|
|
5922
5984
|
r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
|
|
5923
5985
|
} catch {
|
|
5924
|
-
|
|
5986
|
+
K(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
|
|
5925
5987
|
}
|
|
5926
5988
|
return {
|
|
5927
5989
|
absoluteURL: r,
|
|
@@ -5930,90 +5992,109 @@ function vi(e, t) {
|
|
|
5930
5992
|
};
|
|
5931
5993
|
}
|
|
5932
5994
|
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
5933
|
-
var
|
|
5995
|
+
var Pi = [
|
|
5934
5996
|
"POST",
|
|
5935
5997
|
"PUT",
|
|
5936
5998
|
"PATCH",
|
|
5937
5999
|
"DELETE"
|
|
5938
6000
|
];
|
|
5939
|
-
new Set(
|
|
5940
|
-
var
|
|
5941
|
-
new Set(
|
|
5942
|
-
var
|
|
5943
|
-
|
|
6001
|
+
new Set(Pi);
|
|
6002
|
+
var Fi = ["GET", ...Pi];
|
|
6003
|
+
new Set(Fi);
|
|
6004
|
+
var Ii = [
|
|
6005
|
+
"about:",
|
|
6006
|
+
"blob:",
|
|
6007
|
+
"chrome:",
|
|
6008
|
+
"chrome-untrusted:",
|
|
6009
|
+
"content:",
|
|
6010
|
+
"data:",
|
|
6011
|
+
"devtools:",
|
|
6012
|
+
"file:",
|
|
6013
|
+
"filesystem:",
|
|
6014
|
+
"javascript:"
|
|
6015
|
+
];
|
|
6016
|
+
function Li(e) {
|
|
6017
|
+
try {
|
|
6018
|
+
return Ii.includes(new URL(e).protocol);
|
|
6019
|
+
} catch {
|
|
6020
|
+
return !1;
|
|
6021
|
+
}
|
|
6022
|
+
}
|
|
5944
6023
|
var Y = e.createContext(null);
|
|
5945
|
-
Y.displayName = "
|
|
5946
|
-
var
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
var
|
|
5953
|
-
|
|
5954
|
-
var
|
|
5955
|
-
|
|
6024
|
+
Y.displayName = "DataRouter";
|
|
6025
|
+
var Ri = e.createContext(null);
|
|
6026
|
+
Ri.displayName = "DataRouterState";
|
|
6027
|
+
var zi = e.createContext(!1);
|
|
6028
|
+
function Bi() {
|
|
6029
|
+
return e.useContext(zi);
|
|
6030
|
+
}
|
|
6031
|
+
var Vi = e.createContext({ isTransitioning: !1 });
|
|
6032
|
+
Vi.displayName = "ViewTransition";
|
|
6033
|
+
var Hi = e.createContext(/* @__PURE__ */ new Map());
|
|
6034
|
+
Hi.displayName = "Fetchers";
|
|
6035
|
+
var Ui = e.createContext(null);
|
|
6036
|
+
Ui.displayName = "Await";
|
|
5956
6037
|
var X = e.createContext(null);
|
|
5957
6038
|
X.displayName = "Navigation";
|
|
5958
|
-
var
|
|
5959
|
-
|
|
5960
|
-
var
|
|
6039
|
+
var Wi = e.createContext(null);
|
|
6040
|
+
Wi.displayName = "Location";
|
|
6041
|
+
var Z = e.createContext({
|
|
5961
6042
|
outlet: null,
|
|
5962
6043
|
matches: [],
|
|
5963
6044
|
isDataRoute: !1
|
|
5964
6045
|
});
|
|
5965
|
-
|
|
5966
|
-
var
|
|
5967
|
-
|
|
5968
|
-
var
|
|
5969
|
-
function
|
|
5970
|
-
if (e.startsWith(`${
|
|
6046
|
+
Z.displayName = "Route";
|
|
6047
|
+
var Gi = e.createContext(null);
|
|
6048
|
+
Gi.displayName = "RouteError";
|
|
6049
|
+
var Ki = "REACT_ROUTER_ERROR", qi = "REDIRECT", Ji = "ROUTE_ERROR_RESPONSE";
|
|
6050
|
+
function Yi(e) {
|
|
6051
|
+
if (e.startsWith(`${Ki}:${qi}:{`)) try {
|
|
5971
6052
|
let t = JSON.parse(e.slice(28));
|
|
5972
6053
|
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;
|
|
5973
6054
|
} catch {}
|
|
5974
6055
|
}
|
|
5975
|
-
function
|
|
5976
|
-
if (e.startsWith(`${
|
|
6056
|
+
function Xi(e) {
|
|
6057
|
+
if (e.startsWith(`${Ki}:${Ji}:{`)) try {
|
|
5977
6058
|
let t = JSON.parse(e.slice(40));
|
|
5978
|
-
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new
|
|
6059
|
+
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new ki(t.status, t.statusText, t.data);
|
|
5979
6060
|
} catch {}
|
|
5980
6061
|
}
|
|
5981
|
-
function
|
|
5982
|
-
|
|
5983
|
-
let { basename: r, navigator: i } = e.useContext(X), { hash: a, pathname: o, search: s } =
|
|
5984
|
-
return r !== "/" && (c = o === "/" ? r :
|
|
6062
|
+
function Zi(t, { relative: n } = {}) {
|
|
6063
|
+
G(Qi(), "useHref() may be used only in the context of a <Router> component.");
|
|
6064
|
+
let { basename: r, navigator: i } = e.useContext(X), { hash: a, pathname: o, search: s } = ra(t, { relative: n }), c = o;
|
|
6065
|
+
return r !== "/" && (c = o === "/" ? r : J([r, o])), i.createHref({
|
|
5985
6066
|
pathname: c,
|
|
5986
6067
|
search: s,
|
|
5987
6068
|
hash: a
|
|
5988
6069
|
});
|
|
5989
6070
|
}
|
|
5990
|
-
function
|
|
5991
|
-
return e.useContext(
|
|
6071
|
+
function Qi() {
|
|
6072
|
+
return e.useContext(Wi) != null;
|
|
5992
6073
|
}
|
|
5993
|
-
function
|
|
5994
|
-
return
|
|
6074
|
+
function Q() {
|
|
6075
|
+
return G(Qi(), "useLocation() may be used only in the context of a <Router> component."), e.useContext(Wi).location;
|
|
5995
6076
|
}
|
|
5996
|
-
var
|
|
5997
|
-
function
|
|
6077
|
+
var $i = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
6078
|
+
function ea(t) {
|
|
5998
6079
|
e.useContext(X).static || e.useLayoutEffect(t);
|
|
5999
6080
|
}
|
|
6000
|
-
function
|
|
6001
|
-
let { isDataRoute: t } = e.useContext(
|
|
6002
|
-
return t ?
|
|
6081
|
+
function ta() {
|
|
6082
|
+
let { isDataRoute: t } = e.useContext(Z);
|
|
6083
|
+
return t ? xa() : na();
|
|
6003
6084
|
}
|
|
6004
|
-
function
|
|
6005
|
-
|
|
6006
|
-
let t = e.useContext(
|
|
6007
|
-
return
|
|
6085
|
+
function na() {
|
|
6086
|
+
G(Qi(), "useNavigate() may be used only in the context of a <Router> component.");
|
|
6087
|
+
let t = e.useContext(Y), { basename: n, navigator: r } = e.useContext(X), { matches: i } = e.useContext(Z), { pathname: a } = Q(), o = JSON.stringify(Si(i)), s = e.useRef(!1);
|
|
6088
|
+
return ea(() => {
|
|
6008
6089
|
s.current = !0;
|
|
6009
6090
|
}), e.useCallback((e, i = {}) => {
|
|
6010
|
-
if (
|
|
6091
|
+
if (K(s.current, $i), !s.current) return;
|
|
6011
6092
|
if (typeof e == "number") {
|
|
6012
6093
|
r.go(e);
|
|
6013
6094
|
return;
|
|
6014
6095
|
}
|
|
6015
|
-
let c =
|
|
6016
|
-
t == null && n !== "/" && (c.pathname = c.pathname === "/" ? n :
|
|
6096
|
+
let c = Ci(e, JSON.parse(o), a, i.relative === "path");
|
|
6097
|
+
t == null && n !== "/" && (c.pathname = c.pathname === "/" ? n : J([n, c.pathname])), (i.replace ? r.replace : r.push)(c, i.state, i);
|
|
6017
6098
|
}, [
|
|
6018
6099
|
n,
|
|
6019
6100
|
r,
|
|
@@ -6023,42 +6104,42 @@ function Li() {
|
|
|
6023
6104
|
]);
|
|
6024
6105
|
}
|
|
6025
6106
|
e.createContext(null);
|
|
6026
|
-
function
|
|
6027
|
-
let { matches: r } = e.useContext(
|
|
6028
|
-
return e.useMemo(() =>
|
|
6107
|
+
function ra(t, { relative: n } = {}) {
|
|
6108
|
+
let { matches: r } = e.useContext(Z), { pathname: i } = Q(), a = JSON.stringify(Si(r));
|
|
6109
|
+
return e.useMemo(() => Ci(t, JSON.parse(a), i, n === "path"), [
|
|
6029
6110
|
t,
|
|
6030
6111
|
a,
|
|
6031
6112
|
i,
|
|
6032
6113
|
n
|
|
6033
6114
|
]);
|
|
6034
6115
|
}
|
|
6035
|
-
function
|
|
6036
|
-
|
|
6037
|
-
let { navigator: i } = e.useContext(X), { matches: a } = e.useContext(
|
|
6116
|
+
function ia(t, n, r) {
|
|
6117
|
+
G(Qi(), "useRoutes() may be used only in the context of a <Router> component.");
|
|
6118
|
+
let { navigator: i } = e.useContext(X), { matches: a } = e.useContext(Z), o = a[a.length - 1], s = o ? o.params : {}, c = o ? o.pathname : "/", l = o ? o.pathnameBase : "/", u = o && o.route;
|
|
6038
6119
|
{
|
|
6039
6120
|
let e = u && u.path || "";
|
|
6040
|
-
|
|
6121
|
+
Ca(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.
|
|
6041
6122
|
|
|
6042
6123
|
Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" : `${e}/*`}">.`);
|
|
6043
6124
|
}
|
|
6044
|
-
let d =
|
|
6125
|
+
let d = Q(), f;
|
|
6045
6126
|
if (n) {
|
|
6046
|
-
let e = typeof n == "string" ?
|
|
6047
|
-
|
|
6127
|
+
let e = typeof n == "string" ? Xr(n) : n;
|
|
6128
|
+
G(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;
|
|
6048
6129
|
} else f = d;
|
|
6049
6130
|
let p = f.pathname || "/", m = p;
|
|
6050
6131
|
if (l !== "/") {
|
|
6051
6132
|
let e = l.replace(/^\//, "").split("/");
|
|
6052
6133
|
m = "/" + p.replace(/^\//, "").split("/").slice(e.length).join("/");
|
|
6053
6134
|
}
|
|
6054
|
-
let h = r && r.state.matches.length ? r.state.matches.map((e) => Object.assign(e, { route: r.manifest[e.route.id] || e.route })) :
|
|
6055
|
-
|
|
6056
|
-
let g =
|
|
6135
|
+
let h = r && r.state.matches.length ? r.state.matches.map((e) => Object.assign(e, { route: r.manifest[e.route.id] || e.route })) : Zr(t, { pathname: m });
|
|
6136
|
+
K(u || h != null, `No routes matched location "${f.pathname}${f.search}${f.hash}" `), K(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.`);
|
|
6137
|
+
let g = da(h && h.map((e) => Object.assign({}, e, {
|
|
6057
6138
|
params: Object.assign({}, s, e.params),
|
|
6058
|
-
pathname:
|
|
6059
|
-
pathnameBase: e.pathnameBase === "/" ? l :
|
|
6139
|
+
pathname: J([l, i.encodeLocation ? i.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
|
|
6140
|
+
pathnameBase: e.pathnameBase === "/" ? l : J([l, i.encodeLocation ? i.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
|
|
6060
6141
|
})), a, r);
|
|
6061
|
-
return n && g ? /* @__PURE__ */ e.createElement(
|
|
6142
|
+
return n && g ? /* @__PURE__ */ e.createElement(Wi.Provider, { value: {
|
|
6062
6143
|
location: {
|
|
6063
6144
|
pathname: "/",
|
|
6064
6145
|
search: "",
|
|
@@ -6071,8 +6152,8 @@ Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" :
|
|
|
6071
6152
|
navigationType: "POP"
|
|
6072
6153
|
} }, g) : g;
|
|
6073
6154
|
}
|
|
6074
|
-
function
|
|
6075
|
-
let t =
|
|
6155
|
+
function aa() {
|
|
6156
|
+
let t = ba(), n = Ai(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 = {
|
|
6076
6157
|
padding: "0.5rem",
|
|
6077
6158
|
backgroundColor: i
|
|
6078
6159
|
}, o = {
|
|
@@ -6081,7 +6162,7 @@ function Bi() {
|
|
|
6081
6162
|
}, s = null;
|
|
6082
6163
|
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);
|
|
6083
6164
|
}
|
|
6084
|
-
var
|
|
6165
|
+
var oa = /* @__PURE__ */ e.createElement(aa, null), sa = class extends e.Component {
|
|
6085
6166
|
constructor(e) {
|
|
6086
6167
|
super(e), this.state = {
|
|
6087
6168
|
location: e.location,
|
|
@@ -6109,44 +6190,45 @@ var Vi = /* @__PURE__ */ e.createElement(Bi, null), Hi = class extends e.Compone
|
|
|
6109
6190
|
render() {
|
|
6110
6191
|
let t = this.state.error;
|
|
6111
6192
|
if (this.context && typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
|
|
6112
|
-
let e =
|
|
6193
|
+
let e = Xi(t.digest);
|
|
6113
6194
|
e && (t = e);
|
|
6114
6195
|
}
|
|
6115
|
-
let n = t === void 0 ? this.props.children : /* @__PURE__ */ e.createElement(
|
|
6196
|
+
let n = t === void 0 ? this.props.children : /* @__PURE__ */ e.createElement(Z.Provider, { value: this.props.routeContext }, /* @__PURE__ */ e.createElement(Gi.Provider, {
|
|
6116
6197
|
value: t,
|
|
6117
6198
|
children: this.props.component
|
|
6118
6199
|
}));
|
|
6119
|
-
return this.context ? /* @__PURE__ */ e.createElement(
|
|
6200
|
+
return this.context ? /* @__PURE__ */ e.createElement(la, { error: t }, n) : n;
|
|
6120
6201
|
}
|
|
6121
6202
|
};
|
|
6122
|
-
|
|
6123
|
-
var
|
|
6124
|
-
function
|
|
6203
|
+
sa.contextType = zi;
|
|
6204
|
+
var ca = /* @__PURE__ */ new WeakMap();
|
|
6205
|
+
function la({ children: t, error: n }) {
|
|
6125
6206
|
let { basename: r } = e.useContext(X);
|
|
6126
6207
|
if (typeof n == "object" && n && "digest" in n && typeof n.digest == "string") {
|
|
6127
|
-
let t =
|
|
6208
|
+
let t = Yi(n.digest);
|
|
6128
6209
|
if (t) {
|
|
6129
|
-
let i =
|
|
6210
|
+
let i = ca.get(n);
|
|
6130
6211
|
if (i) throw i;
|
|
6131
|
-
let a =
|
|
6132
|
-
if (
|
|
6212
|
+
let a = Ni(t.location, r), o = a.absoluteURL || a.to;
|
|
6213
|
+
if (Li(o)) throw Error("Invalid redirect location");
|
|
6214
|
+
if (Mi && !ca.get(n)) if (a.isExternal || t.reloadDocument) window.location.href = o;
|
|
6133
6215
|
else {
|
|
6134
6216
|
let e = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: t.replace }));
|
|
6135
|
-
throw
|
|
6217
|
+
throw ca.set(n, e), e;
|
|
6136
6218
|
}
|
|
6137
6219
|
return /* @__PURE__ */ e.createElement("meta", {
|
|
6138
6220
|
httpEquiv: "refresh",
|
|
6139
|
-
content: `0;url=${
|
|
6221
|
+
content: `0;url=${o}`
|
|
6140
6222
|
});
|
|
6141
6223
|
}
|
|
6142
6224
|
}
|
|
6143
6225
|
return t;
|
|
6144
6226
|
}
|
|
6145
|
-
function
|
|
6146
|
-
let i = e.useContext(
|
|
6147
|
-
return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ e.createElement(
|
|
6227
|
+
function ua({ routeContext: t, match: n, children: r }) {
|
|
6228
|
+
let i = e.useContext(Y);
|
|
6229
|
+
return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ e.createElement(Z.Provider, { value: t }, r);
|
|
6148
6230
|
}
|
|
6149
|
-
function
|
|
6231
|
+
function da(t, n = [], r) {
|
|
6150
6232
|
let i = r?.state;
|
|
6151
6233
|
if (t == null) {
|
|
6152
6234
|
if (!i) return null;
|
|
@@ -6157,7 +6239,7 @@ function Ki(t, n = [], r) {
|
|
|
6157
6239
|
let a = t, o = i?.errors;
|
|
6158
6240
|
if (o != null) {
|
|
6159
6241
|
let e = a.findIndex((e) => e.route.id && o?.[e.route.id] !== void 0);
|
|
6160
|
-
|
|
6242
|
+
G(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));
|
|
6161
6243
|
}
|
|
6162
6244
|
let s = !1, c = -1;
|
|
6163
6245
|
if (r && i) {
|
|
@@ -6177,16 +6259,16 @@ function Ki(t, n = [], r) {
|
|
|
6177
6259
|
l(e, {
|
|
6178
6260
|
location: i.location,
|
|
6179
6261
|
params: i.matches?.[0]?.params ?? {},
|
|
6180
|
-
pattern:
|
|
6262
|
+
pattern: ji(i.matches),
|
|
6181
6263
|
errorInfo: t
|
|
6182
6264
|
});
|
|
6183
6265
|
} : void 0;
|
|
6184
6266
|
return a.reduceRight((t, r, l) => {
|
|
6185
6267
|
let d, f = !1, p = null, m = null;
|
|
6186
|
-
i && (d = o && r.route.id ? o[r.route.id] : void 0, p = r.route.errorElement ||
|
|
6268
|
+
i && (d = o && r.route.id ? o[r.route.id] : void 0, p = r.route.errorElement || oa, s && (c < 0 && l === 0 ? (Ca("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)));
|
|
6187
6269
|
let h = n.concat(a.slice(0, l + 1)), g = () => {
|
|
6188
6270
|
let n;
|
|
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(
|
|
6271
|
+
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(ua, {
|
|
6190
6272
|
match: r,
|
|
6191
6273
|
routeContext: {
|
|
6192
6274
|
outlet: t,
|
|
@@ -6196,7 +6278,7 @@ function Ki(t, n = [], r) {
|
|
|
6196
6278
|
children: n
|
|
6197
6279
|
});
|
|
6198
6280
|
};
|
|
6199
|
-
return i && (r.route.ErrorBoundary || r.route.errorElement || l === 0) ? /* @__PURE__ */ e.createElement(
|
|
6281
|
+
return i && (r.route.ErrorBoundary || r.route.errorElement || l === 0) ? /* @__PURE__ */ e.createElement(sa, {
|
|
6200
6282
|
location: i.location,
|
|
6201
6283
|
revalidation: i.revalidation,
|
|
6202
6284
|
component: p,
|
|
@@ -6211,61 +6293,61 @@ function Ki(t, n = [], r) {
|
|
|
6211
6293
|
}) : g();
|
|
6212
6294
|
}, null);
|
|
6213
6295
|
}
|
|
6214
|
-
function
|
|
6296
|
+
function fa(e) {
|
|
6215
6297
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
6216
6298
|
}
|
|
6217
|
-
function
|
|
6218
|
-
let n = e.useContext(J);
|
|
6219
|
-
return U(n, qi(t)), n;
|
|
6220
|
-
}
|
|
6221
|
-
function Yi(t) {
|
|
6299
|
+
function pa(t) {
|
|
6222
6300
|
let n = e.useContext(Y);
|
|
6223
|
-
return
|
|
6301
|
+
return G(n, fa(t)), n;
|
|
6224
6302
|
}
|
|
6225
|
-
function
|
|
6226
|
-
let n = e.useContext(
|
|
6227
|
-
return
|
|
6303
|
+
function ma(t) {
|
|
6304
|
+
let n = e.useContext(Ri);
|
|
6305
|
+
return G(n, fa(t)), n;
|
|
6228
6306
|
}
|
|
6229
|
-
function
|
|
6230
|
-
let
|
|
6231
|
-
return
|
|
6307
|
+
function ha(t) {
|
|
6308
|
+
let n = e.useContext(Z);
|
|
6309
|
+
return G(n, fa(t)), n;
|
|
6232
6310
|
}
|
|
6233
|
-
function
|
|
6234
|
-
|
|
6311
|
+
function ga(e) {
|
|
6312
|
+
let t = ha(e), n = t.matches[t.matches.length - 1];
|
|
6313
|
+
return G(n.route.id, `${e} can only be used on routes that contain a unique "id"`), n.route.id;
|
|
6314
|
+
}
|
|
6315
|
+
function _a() {
|
|
6316
|
+
return ga("useRouteId");
|
|
6235
6317
|
}
|
|
6236
|
-
function
|
|
6237
|
-
let t =
|
|
6318
|
+
function va() {
|
|
6319
|
+
let t = ma("useNavigation");
|
|
6238
6320
|
return e.useMemo(() => {
|
|
6239
6321
|
let { matches: e, historyAction: n, ...r } = t.navigation;
|
|
6240
6322
|
return r;
|
|
6241
6323
|
}, [t.navigation]);
|
|
6242
6324
|
}
|
|
6243
|
-
function
|
|
6244
|
-
let { matches: t, loaderData: n } =
|
|
6245
|
-
return e.useMemo(() => t.map((e) =>
|
|
6325
|
+
function ya() {
|
|
6326
|
+
let { matches: t, loaderData: n } = ma("useMatches");
|
|
6327
|
+
return e.useMemo(() => t.map((e) => $r(e, n)), [t, n]);
|
|
6246
6328
|
}
|
|
6247
|
-
function
|
|
6248
|
-
let t = e.useContext(
|
|
6329
|
+
function ba() {
|
|
6330
|
+
let t = e.useContext(Gi), n = ma("useRouteError"), r = ga("useRouteError");
|
|
6249
6331
|
return t === void 0 ? n.errors?.[r] : t;
|
|
6250
6332
|
}
|
|
6251
|
-
function
|
|
6252
|
-
let { router: t } =
|
|
6253
|
-
return
|
|
6333
|
+
function xa() {
|
|
6334
|
+
let { router: t } = pa("useNavigate"), n = ga("useNavigate"), r = e.useRef(!1);
|
|
6335
|
+
return ea(() => {
|
|
6254
6336
|
r.current = !0;
|
|
6255
6337
|
}), e.useCallback(async (e, i = {}) => {
|
|
6256
|
-
|
|
6338
|
+
K(r.current, $i), r.current && (typeof e == "number" ? await t.navigate(e) : await t.navigate(e, {
|
|
6257
6339
|
fromRouteId: n,
|
|
6258
6340
|
...i
|
|
6259
6341
|
}));
|
|
6260
6342
|
}, [t, n]);
|
|
6261
6343
|
}
|
|
6262
|
-
var
|
|
6263
|
-
function
|
|
6264
|
-
!t && !
|
|
6344
|
+
var Sa = {};
|
|
6345
|
+
function Ca(e, t, n) {
|
|
6346
|
+
!t && !Sa[e] && (Sa[e] = !0, K(!1, n));
|
|
6265
6347
|
}
|
|
6266
|
-
e.memo(
|
|
6267
|
-
function
|
|
6268
|
-
return
|
|
6348
|
+
e.memo(wa);
|
|
6349
|
+
function wa({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError: a }) {
|
|
6350
|
+
return ia(e, void 0, {
|
|
6269
6351
|
manifest: t,
|
|
6270
6352
|
state: r,
|
|
6271
6353
|
isStatic: i,
|
|
@@ -6273,8 +6355,8 @@ function aa({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError:
|
|
|
6273
6355
|
future: n
|
|
6274
6356
|
});
|
|
6275
6357
|
}
|
|
6276
|
-
function
|
|
6277
|
-
|
|
6358
|
+
function Ta({ basename: t = "/", children: n = null, location: r, navigationType: i = "POP", navigator: a, static: o = !1, useTransitions: s }) {
|
|
6359
|
+
G(!Qi(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
|
|
6278
6360
|
let c = t.replace(/^\/*/, "/"), l = e.useMemo(() => ({
|
|
6279
6361
|
basename: c,
|
|
6280
6362
|
navigator: a,
|
|
@@ -6287,9 +6369,9 @@ function oa({ basename: t = "/", children: n = null, location: r, navigationType
|
|
|
6287
6369
|
o,
|
|
6288
6370
|
s
|
|
6289
6371
|
]);
|
|
6290
|
-
typeof r == "string" && (r =
|
|
6372
|
+
typeof r == "string" && (r = Xr(r));
|
|
6291
6373
|
let { pathname: u = "/", search: d = "", hash: f = "", state: p = null, key: m = "default", mask: h } = r, g = e.useMemo(() => {
|
|
6292
|
-
let e =
|
|
6374
|
+
let e = q(u, c);
|
|
6293
6375
|
return e == null ? null : {
|
|
6294
6376
|
location: {
|
|
6295
6377
|
pathname: e,
|
|
@@ -6311,66 +6393,66 @@ function oa({ basename: t = "/", children: n = null, location: r, navigationType
|
|
|
6311
6393
|
i,
|
|
6312
6394
|
h
|
|
6313
6395
|
]);
|
|
6314
|
-
return
|
|
6396
|
+
return K(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(Wi.Provider, {
|
|
6315
6397
|
children: n,
|
|
6316
6398
|
value: g
|
|
6317
6399
|
}));
|
|
6318
6400
|
}
|
|
6319
6401
|
e.Component;
|
|
6320
|
-
var
|
|
6321
|
-
function
|
|
6402
|
+
var Ea = "get", Da = "application/x-www-form-urlencoded";
|
|
6403
|
+
function Oa(e) {
|
|
6322
6404
|
return typeof HTMLElement < "u" && e instanceof HTMLElement;
|
|
6323
6405
|
}
|
|
6324
|
-
function
|
|
6325
|
-
return
|
|
6406
|
+
function ka(e) {
|
|
6407
|
+
return Oa(e) && e.tagName.toLowerCase() === "button";
|
|
6326
6408
|
}
|
|
6327
|
-
function
|
|
6328
|
-
return
|
|
6409
|
+
function Aa(e) {
|
|
6410
|
+
return Oa(e) && e.tagName.toLowerCase() === "form";
|
|
6329
6411
|
}
|
|
6330
|
-
function
|
|
6331
|
-
return
|
|
6412
|
+
function ja(e) {
|
|
6413
|
+
return Oa(e) && e.tagName.toLowerCase() === "input";
|
|
6332
6414
|
}
|
|
6333
|
-
function
|
|
6415
|
+
function Ma(e) {
|
|
6334
6416
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
6335
6417
|
}
|
|
6336
|
-
function
|
|
6337
|
-
return e.button === 0 && (!t || t === "_self") && !
|
|
6418
|
+
function Na(e, t) {
|
|
6419
|
+
return e.button === 0 && (!t || t === "_self") && !Ma(e);
|
|
6338
6420
|
}
|
|
6339
|
-
var
|
|
6340
|
-
function
|
|
6341
|
-
if (
|
|
6342
|
-
new FormData(document.createElement("form"), 0),
|
|
6421
|
+
var Pa = null;
|
|
6422
|
+
function Fa() {
|
|
6423
|
+
if (Pa === null) try {
|
|
6424
|
+
new FormData(document.createElement("form"), 0), Pa = !1;
|
|
6343
6425
|
} catch {
|
|
6344
|
-
|
|
6426
|
+
Pa = !0;
|
|
6345
6427
|
}
|
|
6346
|
-
return
|
|
6428
|
+
return Pa;
|
|
6347
6429
|
}
|
|
6348
|
-
var
|
|
6430
|
+
var Ia = /* @__PURE__ */ new Set([
|
|
6349
6431
|
"application/x-www-form-urlencoded",
|
|
6350
6432
|
"multipart/form-data",
|
|
6351
6433
|
"text/plain"
|
|
6352
6434
|
]);
|
|
6353
|
-
function
|
|
6354
|
-
return e != null && !
|
|
6435
|
+
function La(e) {
|
|
6436
|
+
return e != null && !Ia.has(e) ? (K(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Da}"`), null) : e;
|
|
6355
6437
|
}
|
|
6356
|
-
function
|
|
6438
|
+
function Ra(e, t) {
|
|
6357
6439
|
let n, r, i, a, o;
|
|
6358
|
-
if (
|
|
6440
|
+
if (Aa(e)) {
|
|
6359
6441
|
let o = e.getAttribute("action");
|
|
6360
|
-
r = o ?
|
|
6361
|
-
} else if (
|
|
6442
|
+
r = o ? q(o, t) : null, n = e.getAttribute("method") || Ea, i = La(e.getAttribute("enctype")) || Da, a = new FormData(e);
|
|
6443
|
+
} else if (ka(e) || ja(e) && (e.type === "submit" || e.type === "image")) {
|
|
6362
6444
|
let o = e.form;
|
|
6363
6445
|
if (o == null) throw Error("Cannot submit a <button> or <input type=\"submit\"> without a <form>");
|
|
6364
6446
|
let s = e.getAttribute("formaction") || o.getAttribute("action");
|
|
6365
|
-
if (r = s ?
|
|
6447
|
+
if (r = s ? q(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") || Ea, i = La(e.getAttribute("formenctype")) || La(o.getAttribute("enctype")) || Da, a = new FormData(o, e), !Fa()) {
|
|
6366
6448
|
let { name: t, type: n, value: r } = e;
|
|
6367
6449
|
if (n === "image") {
|
|
6368
6450
|
let e = t ? `${t}.` : "";
|
|
6369
6451
|
a.append(`${e}x`, "0"), a.append(`${e}y`, "0");
|
|
6370
6452
|
} else t && a.append(t, r);
|
|
6371
6453
|
}
|
|
6372
|
-
} else if (
|
|
6373
|
-
else n =
|
|
6454
|
+
} else if (Oa(e)) throw Error("Cannot submit element that is not <form>, <button>, or <input type=\"submit|image\">");
|
|
6455
|
+
else n = Ea, r = null, i = Da, o = e;
|
|
6374
6456
|
return a && i === "text/plain" && (o = a, a = void 0), {
|
|
6375
6457
|
action: r,
|
|
6376
6458
|
method: n.toLowerCase(),
|
|
@@ -6380,24 +6462,24 @@ function ya(e, t) {
|
|
|
6380
6462
|
};
|
|
6381
6463
|
}
|
|
6382
6464
|
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
6383
|
-
var
|
|
6465
|
+
var za = {
|
|
6384
6466
|
"&": "\\u0026",
|
|
6385
6467
|
">": "\\u003e",
|
|
6386
6468
|
"<": "\\u003c",
|
|
6387
6469
|
"\u2028": "\\u2028",
|
|
6388
6470
|
"\u2029": "\\u2029"
|
|
6389
|
-
},
|
|
6390
|
-
function
|
|
6391
|
-
return e.replace(
|
|
6471
|
+
}, Ba = /[&><\u2028\u2029]/g;
|
|
6472
|
+
function Va(e) {
|
|
6473
|
+
return e.replace(Ba, (e) => za[e]);
|
|
6392
6474
|
}
|
|
6393
|
-
function
|
|
6475
|
+
function Ha(e, t) {
|
|
6394
6476
|
if (e === !1 || e == null) throw Error(t);
|
|
6395
6477
|
}
|
|
6396
|
-
function
|
|
6478
|
+
function Ua(e, t, n, r) {
|
|
6397
6479
|
let i = typeof e == "string" ? new URL(e, typeof window > "u" ? "server://singlefetch/" : window.location.origin) : e;
|
|
6398
|
-
return n ? i.pathname.endsWith("/") ? i.pathname = `${i.pathname}_.${r}` : i.pathname = `${i.pathname}.${r}` : i.pathname === "/" ? i.pathname = `_root.${r}` : t &&
|
|
6480
|
+
return n ? i.pathname.endsWith("/") ? i.pathname = `${i.pathname}_.${r}` : i.pathname = `${i.pathname}.${r}` : i.pathname === "/" ? i.pathname = `_root.${r}` : t && q(i.pathname, t) === "/" ? i.pathname = `${Ti(t)}/_root.${r}` : i.pathname = `${Ti(i.pathname)}.${r}`, i;
|
|
6399
6481
|
}
|
|
6400
|
-
async function
|
|
6482
|
+
async function Wa(e, t) {
|
|
6401
6483
|
if (e.id in t) return t[e.id];
|
|
6402
6484
|
try {
|
|
6403
6485
|
let n = await import(
|
|
@@ -6410,21 +6492,21 @@ async function Ta(e, t) {
|
|
|
6410
6492
|
return console.error(`Error loading route module \`${e.module}\`, reloading page...`), console.error(t), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {});
|
|
6411
6493
|
}
|
|
6412
6494
|
}
|
|
6413
|
-
function
|
|
6495
|
+
function Ga(e) {
|
|
6414
6496
|
return e != null && typeof e.page == "string";
|
|
6415
6497
|
}
|
|
6416
|
-
function
|
|
6498
|
+
function Ka(e) {
|
|
6417
6499
|
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";
|
|
6418
6500
|
}
|
|
6419
|
-
async function
|
|
6420
|
-
return
|
|
6501
|
+
async function qa(e, t, n) {
|
|
6502
|
+
return Qa((await Promise.all(e.map(async (e) => {
|
|
6421
6503
|
let r = t.routes[e.route.id];
|
|
6422
6504
|
if (r) {
|
|
6423
|
-
let e = await
|
|
6505
|
+
let e = await Wa(r, n);
|
|
6424
6506
|
return e.links ? e.links() : [];
|
|
6425
6507
|
}
|
|
6426
6508
|
return [];
|
|
6427
|
-
}))).flat(1).filter(
|
|
6509
|
+
}))).flat(1).filter(Ka).filter((e) => e.rel === "stylesheet" || e.rel === "preload").map((e) => e.rel === "stylesheet" ? {
|
|
6428
6510
|
...e,
|
|
6429
6511
|
rel: "prefetch",
|
|
6430
6512
|
as: "style"
|
|
@@ -6433,8 +6515,8 @@ async function Oa(e, t, n) {
|
|
|
6433
6515
|
rel: "prefetch"
|
|
6434
6516
|
}));
|
|
6435
6517
|
}
|
|
6436
|
-
function
|
|
6437
|
-
let o = (e, t) => n[t]
|
|
6518
|
+
function Ja(e, t, n, r, i, a) {
|
|
6519
|
+
let o = (e, t) => !n[t] || e.route.id !== n[t].route.id, s = (e, t) => n[t].pathname !== e.pathname || n[t].route.path?.endsWith("*") && n[t].params["*"] !== e.params["*"];
|
|
6438
6520
|
return a === "assets" ? t.filter((e, t) => o(e, t) || s(e, t)) : a === "data" ? t.filter((t, a) => {
|
|
6439
6521
|
let c = r.routes[t.route.id];
|
|
6440
6522
|
if (!c || !c.hasLoader) return !1;
|
|
@@ -6452,49 +6534,49 @@ function ka(e, t, n, r, i, a) {
|
|
|
6452
6534
|
return !0;
|
|
6453
6535
|
}) : [];
|
|
6454
6536
|
}
|
|
6455
|
-
function
|
|
6456
|
-
return
|
|
6537
|
+
function Ya(e, t, { includeHydrateFallback: n } = {}) {
|
|
6538
|
+
return Xa(e.map((e) => {
|
|
6457
6539
|
let r = t.routes[e.route.id];
|
|
6458
6540
|
if (!r) return [];
|
|
6459
6541
|
let i = [r.module];
|
|
6460
6542
|
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;
|
|
6461
6543
|
}).flat(1));
|
|
6462
6544
|
}
|
|
6463
|
-
function
|
|
6545
|
+
function Xa(e) {
|
|
6464
6546
|
return [...new Set(e)];
|
|
6465
6547
|
}
|
|
6466
|
-
function
|
|
6548
|
+
function Za(e) {
|
|
6467
6549
|
let t = {}, n = Object.keys(e).sort();
|
|
6468
6550
|
for (let r of n) t[r] = e[r];
|
|
6469
6551
|
return t;
|
|
6470
6552
|
}
|
|
6471
|
-
function
|
|
6553
|
+
function Qa(e, t) {
|
|
6472
6554
|
let n = /* @__PURE__ */ new Set(), r = new Set(t);
|
|
6473
6555
|
return e.reduce((e, i) => {
|
|
6474
|
-
if (t && !
|
|
6475
|
-
let a = JSON.stringify(
|
|
6556
|
+
if (t && !Ga(i) && i.as === "script" && i.href && r.has(i.href)) return e;
|
|
6557
|
+
let a = JSON.stringify(Za(i));
|
|
6476
6558
|
return n.has(a) || (n.add(a), e.push({
|
|
6477
6559
|
key: a,
|
|
6478
6560
|
link: i
|
|
6479
6561
|
})), e;
|
|
6480
6562
|
}, []);
|
|
6481
6563
|
}
|
|
6482
|
-
function
|
|
6483
|
-
let t = e.useContext(J);
|
|
6484
|
-
return Ca(t, "You must render this element inside a <DataRouterContext.Provider> element"), t;
|
|
6485
|
-
}
|
|
6486
|
-
function Fa() {
|
|
6564
|
+
function $a() {
|
|
6487
6565
|
let t = e.useContext(Y);
|
|
6488
|
-
return
|
|
6566
|
+
return Ha(t, "You must render this element inside a <DataRouterContext.Provider> element"), t;
|
|
6567
|
+
}
|
|
6568
|
+
function eo() {
|
|
6569
|
+
let t = e.useContext(Ri);
|
|
6570
|
+
return Ha(t, "You must render this element inside a <DataRouterStateContext.Provider> element"), t;
|
|
6489
6571
|
}
|
|
6490
|
-
var
|
|
6491
|
-
|
|
6492
|
-
function
|
|
6493
|
-
let t = e.useContext(
|
|
6494
|
-
return
|
|
6572
|
+
var to = e.createContext(void 0);
|
|
6573
|
+
to.displayName = "FrameworkContext";
|
|
6574
|
+
function no() {
|
|
6575
|
+
let t = e.useContext(to);
|
|
6576
|
+
return Ha(t, "You must render this element inside a <HydratedRouter> element"), t;
|
|
6495
6577
|
}
|
|
6496
|
-
function
|
|
6497
|
-
let r = e.useContext(
|
|
6578
|
+
function ro(t, n) {
|
|
6579
|
+
let r = e.useContext(to), [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);
|
|
6498
6580
|
e.useEffect(() => {
|
|
6499
6581
|
if (t === "render" && s(!0), t === "viewport") {
|
|
6500
6582
|
let e = new IntersectionObserver((e) => {
|
|
@@ -6525,11 +6607,11 @@ function Ra(t, n) {
|
|
|
6525
6607
|
o,
|
|
6526
6608
|
p,
|
|
6527
6609
|
{
|
|
6528
|
-
onFocus:
|
|
6529
|
-
onBlur:
|
|
6530
|
-
onMouseEnter:
|
|
6531
|
-
onMouseLeave:
|
|
6532
|
-
onTouchStart:
|
|
6610
|
+
onFocus: $(c, m),
|
|
6611
|
+
onBlur: $(l, h),
|
|
6612
|
+
onMouseEnter: $(u, m),
|
|
6613
|
+
onMouseLeave: $(d, h),
|
|
6614
|
+
onTouchStart: $(f, m)
|
|
6533
6615
|
}
|
|
6534
6616
|
] : [
|
|
6535
6617
|
o,
|
|
@@ -6541,32 +6623,35 @@ function Ra(t, n) {
|
|
|
6541
6623
|
{}
|
|
6542
6624
|
];
|
|
6543
6625
|
}
|
|
6544
|
-
function
|
|
6626
|
+
function $(e, t) {
|
|
6545
6627
|
return (n) => {
|
|
6546
6628
|
e && e(n), n.defaultPrevented || t(n);
|
|
6547
6629
|
};
|
|
6548
6630
|
}
|
|
6549
|
-
function
|
|
6550
|
-
let r =
|
|
6551
|
-
|
|
6631
|
+
function io({ page: t, ...n }) {
|
|
6632
|
+
let r = Bi(), { nonce: i } = no(), { router: a } = $a(), o = e.useMemo(() => Zr(a.routes, t, a.basename), [
|
|
6633
|
+
a.routes,
|
|
6552
6634
|
t,
|
|
6553
|
-
|
|
6635
|
+
a.basename
|
|
6554
6636
|
]);
|
|
6555
|
-
return
|
|
6637
|
+
return o ? (n.nonce == null && i && (n = {
|
|
6638
|
+
...n,
|
|
6639
|
+
nonce: i
|
|
6640
|
+
}), r ? /* @__PURE__ */ e.createElement(oo, {
|
|
6556
6641
|
page: t,
|
|
6557
|
-
matches:
|
|
6642
|
+
matches: o,
|
|
6558
6643
|
...n
|
|
6559
|
-
}) : /* @__PURE__ */ e.createElement(
|
|
6644
|
+
}) : /* @__PURE__ */ e.createElement(so, {
|
|
6560
6645
|
page: t,
|
|
6561
|
-
matches:
|
|
6646
|
+
matches: o,
|
|
6562
6647
|
...n
|
|
6563
|
-
}) : null;
|
|
6648
|
+
})) : null;
|
|
6564
6649
|
}
|
|
6565
|
-
function
|
|
6566
|
-
let { manifest: n, routeModules: r } =
|
|
6650
|
+
function ao(t) {
|
|
6651
|
+
let { manifest: n, routeModules: r } = no(), [i, a] = e.useState([]);
|
|
6567
6652
|
return e.useEffect(() => {
|
|
6568
6653
|
let e = !1;
|
|
6569
|
-
return
|
|
6654
|
+
return qa(t, n, r).then((t) => {
|
|
6570
6655
|
e || a(t);
|
|
6571
6656
|
}), () => {
|
|
6572
6657
|
e = !0;
|
|
@@ -6577,15 +6662,15 @@ function Va(t) {
|
|
|
6577
6662
|
r
|
|
6578
6663
|
]), i;
|
|
6579
6664
|
}
|
|
6580
|
-
function
|
|
6581
|
-
let i =
|
|
6665
|
+
function oo({ page: t, matches: n, ...r }) {
|
|
6666
|
+
let i = Q(), { future: a } = no(), { basename: o } = $a(), s = e.useMemo(() => {
|
|
6582
6667
|
if (t === i.pathname + i.search + i.hash) return [];
|
|
6583
|
-
let e =
|
|
6668
|
+
let e = Ua(t, o, a.v8_trailingSlashAwareDataRequests, "rsc"), r = !1, s = [];
|
|
6584
6669
|
for (let e of n) typeof e.route.shouldRevalidate == "function" ? r = !0 : s.push(e.route.id);
|
|
6585
6670
|
return r && s.length > 0 && e.searchParams.set("_routes", s.join(",")), [e.pathname + e.search];
|
|
6586
6671
|
}, [
|
|
6587
6672
|
o,
|
|
6588
|
-
a.
|
|
6673
|
+
a.v8_trailingSlashAwareDataRequests,
|
|
6589
6674
|
t,
|
|
6590
6675
|
i,
|
|
6591
6676
|
n
|
|
@@ -6598,14 +6683,14 @@ function Ha({ page: t, matches: n, ...r }) {
|
|
|
6598
6683
|
...r
|
|
6599
6684
|
})));
|
|
6600
6685
|
}
|
|
6601
|
-
function
|
|
6602
|
-
let i =
|
|
6686
|
+
function so({ page: t, matches: n, ...r }) {
|
|
6687
|
+
let i = Q(), { future: a, manifest: o, routeModules: s } = no(), { basename: c } = $a(), { loaderData: l, matches: u } = eo(), d = e.useMemo(() => Ja(t, n, u, o, i, "data"), [
|
|
6603
6688
|
t,
|
|
6604
6689
|
n,
|
|
6605
6690
|
u,
|
|
6606
6691
|
o,
|
|
6607
6692
|
i
|
|
6608
|
-
]), f = e.useMemo(() =>
|
|
6693
|
+
]), f = e.useMemo(() => Ja(t, n, u, o, i, "assets"), [
|
|
6609
6694
|
t,
|
|
6610
6695
|
n,
|
|
6611
6696
|
u,
|
|
@@ -6618,11 +6703,11 @@ function Ua({ page: t, matches: n, ...r }) {
|
|
|
6618
6703
|
let n = o.routes[t.route.id];
|
|
6619
6704
|
!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));
|
|
6620
6705
|
}), e.size === 0) return [];
|
|
6621
|
-
let u =
|
|
6706
|
+
let u = Ua(t, c, a.v8_trailingSlashAwareDataRequests, "data");
|
|
6622
6707
|
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];
|
|
6623
6708
|
}, [
|
|
6624
6709
|
c,
|
|
6625
|
-
a.
|
|
6710
|
+
a.v8_trailingSlashAwareDataRequests,
|
|
6626
6711
|
l,
|
|
6627
6712
|
i,
|
|
6628
6713
|
o,
|
|
@@ -6630,7 +6715,7 @@ function Ua({ page: t, matches: n, ...r }) {
|
|
|
6630
6715
|
n,
|
|
6631
6716
|
t,
|
|
6632
6717
|
s
|
|
6633
|
-
]), m = e.useMemo(() =>
|
|
6718
|
+
]), m = e.useMemo(() => Ya(f, o), [f, o]), h = ao(f);
|
|
6634
6719
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, p.map((t) => /* @__PURE__ */ e.createElement("link", {
|
|
6635
6720
|
key: t,
|
|
6636
6721
|
rel: "prefetch",
|
|
@@ -6649,7 +6734,7 @@ function Ua({ page: t, matches: n, ...r }) {
|
|
|
6649
6734
|
crossOrigin: n.crossOrigin ?? r.crossOrigin
|
|
6650
6735
|
})));
|
|
6651
6736
|
}
|
|
6652
|
-
function
|
|
6737
|
+
function co(...e) {
|
|
6653
6738
|
return (t) => {
|
|
6654
6739
|
e.forEach((e) => {
|
|
6655
6740
|
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
@@ -6657,18 +6742,18 @@ function Wa(...e) {
|
|
|
6657
6742
|
};
|
|
6658
6743
|
}
|
|
6659
6744
|
e.Component;
|
|
6660
|
-
var
|
|
6745
|
+
var lo = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
|
|
6661
6746
|
try {
|
|
6662
|
-
|
|
6747
|
+
lo && (window.__reactRouterVersion = "7.18.1");
|
|
6663
6748
|
} catch {}
|
|
6664
|
-
function
|
|
6749
|
+
function uo({ basename: t, children: n, history: r, useTransitions: i }) {
|
|
6665
6750
|
let [a, o] = e.useState({
|
|
6666
6751
|
action: r.action,
|
|
6667
6752
|
location: r.location
|
|
6668
6753
|
}), s = e.useCallback((t) => {
|
|
6669
6754
|
i === !1 ? o(t) : e.startTransition(() => o(t));
|
|
6670
6755
|
}, [i]);
|
|
6671
|
-
return e.useLayoutEffect(() => r.listen(s), [r, s]), /* @__PURE__ */ e.createElement(
|
|
6756
|
+
return e.useLayoutEffect(() => r.listen(s), [r, s]), /* @__PURE__ */ e.createElement(Ta, {
|
|
6672
6757
|
basename: t,
|
|
6673
6758
|
children: n,
|
|
6674
6759
|
location: a.location,
|
|
@@ -6677,16 +6762,16 @@ function Ka({ basename: t, children: n, history: r, useTransitions: i }) {
|
|
|
6677
6762
|
useTransitions: i
|
|
6678
6763
|
});
|
|
6679
6764
|
}
|
|
6680
|
-
|
|
6681
|
-
var
|
|
6682
|
-
let { basename: g, navigator: _, useTransitions: v } = e.useContext(X), y = typeof u == "string" &&
|
|
6765
|
+
uo.displayName = "unstable_HistoryRouter";
|
|
6766
|
+
var fo = 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) {
|
|
6767
|
+
let { basename: g, navigator: _, useTransitions: v } = e.useContext(X), y = typeof u == "string" && Kr.test(u), b = Ni(u, g);
|
|
6683
6768
|
u = b.to;
|
|
6684
|
-
let x =
|
|
6769
|
+
let x = Zi(u, { relative: i }), S = Q(), C = null;
|
|
6685
6770
|
if (s) {
|
|
6686
|
-
let e =
|
|
6687
|
-
g !== "/" && (e.pathname = e.pathname === "/" ? g :
|
|
6771
|
+
let e = Ci(s, [], S.mask ? S.mask.pathname : "/", !0);
|
|
6772
|
+
g !== "/" && (e.pathname = e.pathname === "/" ? g : J([g, e.pathname])), C = _.createHref(e);
|
|
6688
6773
|
}
|
|
6689
|
-
let [
|
|
6774
|
+
let [ee, te, ne] = ro(r, m), re = yo(u, {
|
|
6690
6775
|
replace: o,
|
|
6691
6776
|
mask: s,
|
|
6692
6777
|
state: c,
|
|
@@ -6697,49 +6782,49 @@ var qa = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ja = e.forwardRef(function({ onClick:
|
|
|
6697
6782
|
defaultShouldRevalidate: p,
|
|
6698
6783
|
useTransitions: v
|
|
6699
6784
|
});
|
|
6700
|
-
function
|
|
6701
|
-
t && t(e), e.defaultPrevented ||
|
|
6785
|
+
function ie(e) {
|
|
6786
|
+
t && t(e), e.defaultPrevented || re(e);
|
|
6702
6787
|
}
|
|
6703
|
-
let
|
|
6788
|
+
let ae = !(b.isExternal || a), w = /* @__PURE__ */ e.createElement("a", {
|
|
6704
6789
|
...m,
|
|
6705
|
-
...
|
|
6706
|
-
href: (
|
|
6707
|
-
onClick:
|
|
6708
|
-
ref:
|
|
6790
|
+
...ne,
|
|
6791
|
+
href: (ae ? C : void 0) || b.absoluteURL || x,
|
|
6792
|
+
onClick: ae ? ie : t,
|
|
6793
|
+
ref: co(h, te),
|
|
6709
6794
|
target: l,
|
|
6710
6795
|
"data-discover": !y && n === "render" ? "true" : void 0
|
|
6711
6796
|
});
|
|
6712
|
-
return
|
|
6797
|
+
return ee && !y ? /* @__PURE__ */ e.createElement(e.Fragment, null, w, /* @__PURE__ */ e.createElement(io, { page: x })) : w;
|
|
6713
6798
|
});
|
|
6714
|
-
|
|
6715
|
-
var
|
|
6716
|
-
let d =
|
|
6717
|
-
n || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && h && (y =
|
|
6799
|
+
fo.displayName = "Link";
|
|
6800
|
+
var po = 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) {
|
|
6801
|
+
let d = ra(o, { relative: l.relative }), f = Q(), p = e.useContext(Ri), { navigator: m, basename: h } = e.useContext(X), g = p != null && ko(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;
|
|
6802
|
+
n || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && h && (y = q(y, h) || y);
|
|
6718
6803
|
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 = {
|
|
6719
6804
|
isActive: x,
|
|
6720
6805
|
isPending: S,
|
|
6721
6806
|
isTransitioning: g
|
|
6722
|
-
},
|
|
6723
|
-
|
|
6807
|
+
}, ee = x ? t : void 0, te;
|
|
6808
|
+
te = typeof r == "function" ? r(C) : [
|
|
6724
6809
|
r,
|
|
6725
6810
|
x ? "active" : null,
|
|
6726
6811
|
S ? "pending" : null,
|
|
6727
6812
|
g ? "transitioning" : null
|
|
6728
6813
|
].filter(Boolean).join(" ");
|
|
6729
|
-
let
|
|
6730
|
-
return /* @__PURE__ */ e.createElement(
|
|
6814
|
+
let ne = typeof a == "function" ? a(C) : a;
|
|
6815
|
+
return /* @__PURE__ */ e.createElement(fo, {
|
|
6731
6816
|
...l,
|
|
6732
|
-
"aria-current":
|
|
6733
|
-
className:
|
|
6817
|
+
"aria-current": ee,
|
|
6818
|
+
className: te,
|
|
6734
6819
|
ref: u,
|
|
6735
|
-
style:
|
|
6820
|
+
style: ne,
|
|
6736
6821
|
to: o,
|
|
6737
6822
|
viewTransition: s
|
|
6738
6823
|
}, typeof c == "function" ? c(C) : c);
|
|
6739
6824
|
});
|
|
6740
|
-
|
|
6741
|
-
var
|
|
6742
|
-
let { useTransitions: g } = e.useContext(X), _ =
|
|
6825
|
+
po.displayName = "NavLink";
|
|
6826
|
+
var mo = e.forwardRef(({ discover: t = "render", fetcherKey: n, navigate: r, reloadDocument: i, replace: a, state: o, method: s = Ea, action: c, onSubmit: l, relative: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) => {
|
|
6827
|
+
let { useTransitions: g } = e.useContext(X), _ = So(), v = Co(c, { relative: u }), y = s.toLowerCase() === "get" ? "get" : "post", b = typeof c == "string" && Kr.test(c);
|
|
6743
6828
|
return /* @__PURE__ */ e.createElement("form", {
|
|
6744
6829
|
ref: h,
|
|
6745
6830
|
method: y,
|
|
@@ -6764,16 +6849,16 @@ var Xa = e.forwardRef(({ discover: t = "render", fetcherKey: n, navigate: r, rel
|
|
|
6764
6849
|
"data-discover": !b && t === "render" ? "true" : void 0
|
|
6765
6850
|
});
|
|
6766
6851
|
});
|
|
6767
|
-
|
|
6768
|
-
function
|
|
6769
|
-
let i = e.useContext(
|
|
6770
|
-
|
|
6852
|
+
mo.displayName = "Form";
|
|
6853
|
+
function ho({ getKey: t, storageKey: n, ...r }) {
|
|
6854
|
+
let i = e.useContext(to), { basename: a } = e.useContext(X), o = Q(), s = ya();
|
|
6855
|
+
Do({
|
|
6771
6856
|
getKey: t,
|
|
6772
6857
|
storageKey: n
|
|
6773
6858
|
});
|
|
6774
6859
|
let c = e.useMemo(() => {
|
|
6775
6860
|
if (!i || !t) return null;
|
|
6776
|
-
let e =
|
|
6861
|
+
let e = Eo(o, s, a, t);
|
|
6777
6862
|
return e === o.key ? null : e;
|
|
6778
6863
|
}, []);
|
|
6779
6864
|
if (!i || i.isSpaMode) return null;
|
|
@@ -6789,30 +6874,30 @@ function Za({ getKey: t, storageKey: n, ...r }) {
|
|
|
6789
6874
|
console.error(t), sessionStorage.removeItem(e);
|
|
6790
6875
|
}
|
|
6791
6876
|
}).toString();
|
|
6792
|
-
return /* @__PURE__ */ e.createElement("script", {
|
|
6877
|
+
return r.nonce == null && i?.nonce && (r.nonce = i.nonce), /* @__PURE__ */ e.createElement("script", {
|
|
6793
6878
|
...r,
|
|
6794
6879
|
suppressHydrationWarning: !0,
|
|
6795
|
-
dangerouslySetInnerHTML: { __html: `(${l})(${
|
|
6880
|
+
dangerouslySetInnerHTML: { __html: `(${l})(${Va(JSON.stringify(n || wo))}, ${Va(JSON.stringify(c))})` }
|
|
6796
6881
|
});
|
|
6797
6882
|
}
|
|
6798
|
-
|
|
6799
|
-
function
|
|
6883
|
+
ho.displayName = "ScrollRestoration";
|
|
6884
|
+
function go(e) {
|
|
6800
6885
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
6801
6886
|
}
|
|
6802
|
-
function
|
|
6803
|
-
let n = e.useContext(J);
|
|
6804
|
-
return U(n, Qa(t)), n;
|
|
6805
|
-
}
|
|
6806
|
-
function eo(t) {
|
|
6887
|
+
function _o(t) {
|
|
6807
6888
|
let n = e.useContext(Y);
|
|
6808
|
-
return
|
|
6889
|
+
return G(n, go(t)), n;
|
|
6809
6890
|
}
|
|
6810
|
-
function
|
|
6811
|
-
let
|
|
6891
|
+
function vo(t) {
|
|
6892
|
+
let n = e.useContext(Ri);
|
|
6893
|
+
return G(n, go(t)), n;
|
|
6894
|
+
}
|
|
6895
|
+
function yo(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: o, relative: s, viewTransition: c, defaultShouldRevalidate: l, useTransitions: u } = {}) {
|
|
6896
|
+
let d = ta(), f = Q(), p = ra(t, { relative: s });
|
|
6812
6897
|
return e.useCallback((m) => {
|
|
6813
|
-
if (
|
|
6898
|
+
if (Na(m, n)) {
|
|
6814
6899
|
m.preventDefault();
|
|
6815
|
-
let n = r === void 0 ?
|
|
6900
|
+
let n = r === void 0 ? Yr(f) === Yr(p) : r, h = () => d(t, {
|
|
6816
6901
|
replace: n,
|
|
6817
6902
|
mask: i,
|
|
6818
6903
|
state: a,
|
|
@@ -6839,20 +6924,23 @@ function to(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: o
|
|
|
6839
6924
|
u
|
|
6840
6925
|
]);
|
|
6841
6926
|
}
|
|
6842
|
-
var
|
|
6843
|
-
function
|
|
6844
|
-
let { router: t } =
|
|
6927
|
+
var bo = 0, xo = () => `__${String(++bo)}__`;
|
|
6928
|
+
function So() {
|
|
6929
|
+
let { router: t } = _o("useSubmit"), { basename: n } = e.useContext(X), r = _a(), i = t.fetch, a = t.navigate;
|
|
6845
6930
|
return e.useCallback(async (e, t = {}) => {
|
|
6846
|
-
let { action: o, method: s, encType: c, formData: l, body: u } =
|
|
6847
|
-
t.navigate === !1
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6931
|
+
let { action: o, method: s, encType: c, formData: l, body: u } = Ra(e, n);
|
|
6932
|
+
if (t.navigate === !1) {
|
|
6933
|
+
let e = t.fetcherKey || xo();
|
|
6934
|
+
await i(e, r, t.action || o, {
|
|
6935
|
+
defaultShouldRevalidate: t.defaultShouldRevalidate,
|
|
6936
|
+
preventScrollReset: t.preventScrollReset,
|
|
6937
|
+
formData: l,
|
|
6938
|
+
body: u,
|
|
6939
|
+
formMethod: t.method || s,
|
|
6940
|
+
formEncType: t.encType || c,
|
|
6941
|
+
flushSync: t.flushSync
|
|
6942
|
+
});
|
|
6943
|
+
} else await a(t.action || o, {
|
|
6856
6944
|
defaultShouldRevalidate: t.defaultShouldRevalidate,
|
|
6857
6945
|
preventScrollReset: t.preventScrollReset,
|
|
6858
6946
|
formData: l,
|
|
@@ -6872,10 +6960,10 @@ function io() {
|
|
|
6872
6960
|
r
|
|
6873
6961
|
]);
|
|
6874
6962
|
}
|
|
6875
|
-
function
|
|
6876
|
-
let { basename: r } = e.useContext(X), i = e.useContext(
|
|
6877
|
-
|
|
6878
|
-
let [a] = i.matches.slice(-1), o = { ...
|
|
6963
|
+
function Co(t, { relative: n } = {}) {
|
|
6964
|
+
let { basename: r } = e.useContext(X), i = e.useContext(Z);
|
|
6965
|
+
G(i, "useFormAction must be used inside a RouteContext");
|
|
6966
|
+
let [a] = i.matches.slice(-1), o = { ...ra(t || ".", { relative: n }) }, s = Q();
|
|
6879
6967
|
if (t == null) {
|
|
6880
6968
|
o.search = s.search;
|
|
6881
6969
|
let e = new URLSearchParams(o.search), t = e.getAll("index");
|
|
@@ -6885,29 +6973,29 @@ function ao(t, { relative: n } = {}) {
|
|
|
6885
6973
|
o.search = n ? `?${n}` : "";
|
|
6886
6974
|
}
|
|
6887
6975
|
}
|
|
6888
|
-
return (!t || t === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (o.pathname = o.pathname === "/" ? r :
|
|
6976
|
+
return (!t || t === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (o.pathname = o.pathname === "/" ? r : J([r, o.pathname])), Yr(o);
|
|
6889
6977
|
}
|
|
6890
|
-
var
|
|
6891
|
-
function
|
|
6978
|
+
var wo = "react-router-scroll-positions", To = {};
|
|
6979
|
+
function Eo(e, t, n, r) {
|
|
6892
6980
|
let i = null;
|
|
6893
6981
|
return r && (i = r(n === "/" ? e : {
|
|
6894
6982
|
...e,
|
|
6895
|
-
pathname:
|
|
6983
|
+
pathname: q(e.pathname, n) || e.pathname
|
|
6896
6984
|
}, t)), i ??= e.key, i;
|
|
6897
6985
|
}
|
|
6898
|
-
function
|
|
6899
|
-
let { router: r } =
|
|
6986
|
+
function Do({ getKey: t, storageKey: n } = {}) {
|
|
6987
|
+
let { router: r } = _o("useScrollRestoration"), { restoreScrollPosition: i, preventScrollReset: a } = vo("useScrollRestoration"), { basename: o } = e.useContext(X), s = Q(), c = ya(), l = va();
|
|
6900
6988
|
e.useEffect(() => (window.history.scrollRestoration = "manual", () => {
|
|
6901
6989
|
window.history.scrollRestoration = "auto";
|
|
6902
|
-
}), []),
|
|
6990
|
+
}), []), Oo(e.useCallback(() => {
|
|
6903
6991
|
if (l.state === "idle") {
|
|
6904
|
-
let e =
|
|
6905
|
-
|
|
6992
|
+
let e = Eo(s, c, o, t);
|
|
6993
|
+
To[e] = window.scrollY;
|
|
6906
6994
|
}
|
|
6907
6995
|
try {
|
|
6908
|
-
sessionStorage.setItem(n ||
|
|
6996
|
+
sessionStorage.setItem(n || wo, JSON.stringify(To));
|
|
6909
6997
|
} catch (e) {
|
|
6910
|
-
|
|
6998
|
+
K(!1, `Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`);
|
|
6911
6999
|
}
|
|
6912
7000
|
window.history.scrollRestoration = "auto";
|
|
6913
7001
|
}, [
|
|
@@ -6919,11 +7007,11 @@ function lo({ getKey: t, storageKey: n } = {}) {
|
|
|
6919
7007
|
n
|
|
6920
7008
|
])), typeof document < "u" && (e.useLayoutEffect(() => {
|
|
6921
7009
|
try {
|
|
6922
|
-
let e = sessionStorage.getItem(n ||
|
|
6923
|
-
e && (
|
|
7010
|
+
let e = sessionStorage.getItem(n || wo);
|
|
7011
|
+
e && (To = JSON.parse(e));
|
|
6924
7012
|
} catch {}
|
|
6925
7013
|
}, [n]), e.useLayoutEffect(() => {
|
|
6926
|
-
let e = r?.enableScrollRestoration(
|
|
7014
|
+
let e = r?.enableScrollRestoration(To, () => window.scrollY, t ? (e, n) => Eo(e, n, o, t) : void 0);
|
|
6927
7015
|
return () => e && e();
|
|
6928
7016
|
}, [
|
|
6929
7017
|
r,
|
|
@@ -6944,7 +7032,7 @@ function lo({ getKey: t, storageKey: n } = {}) {
|
|
|
6944
7032
|
}
|
|
6945
7033
|
}
|
|
6946
7034
|
} catch {
|
|
6947
|
-
|
|
7035
|
+
K(!1, `"${s.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`);
|
|
6948
7036
|
}
|
|
6949
7037
|
a !== !0 && window.scrollTo(0, 0);
|
|
6950
7038
|
}
|
|
@@ -6954,7 +7042,7 @@ function lo({ getKey: t, storageKey: n } = {}) {
|
|
|
6954
7042
|
a
|
|
6955
7043
|
]));
|
|
6956
7044
|
}
|
|
6957
|
-
function
|
|
7045
|
+
function Oo(t, n) {
|
|
6958
7046
|
let { capture: r } = n || {};
|
|
6959
7047
|
e.useEffect(() => {
|
|
6960
7048
|
let e = r == null ? void 0 : { capture: r };
|
|
@@ -6963,130 +7051,306 @@ function uo(t, n) {
|
|
|
6963
7051
|
};
|
|
6964
7052
|
}, [t, r]);
|
|
6965
7053
|
}
|
|
6966
|
-
function
|
|
6967
|
-
let r = e.useContext(
|
|
6968
|
-
|
|
6969
|
-
let { basename: i } =
|
|
7054
|
+
function ko(t, { relative: n } = {}) {
|
|
7055
|
+
let r = e.useContext(Vi);
|
|
7056
|
+
G(r != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
|
|
7057
|
+
let { basename: i } = _o("useViewTransitionState"), a = ra(t, { relative: n });
|
|
6970
7058
|
if (!r.isTransitioning) return !1;
|
|
6971
|
-
let o =
|
|
6972
|
-
return
|
|
7059
|
+
let o = q(r.currentLocation.pathname, i) || r.currentLocation.pathname, s = q(r.nextLocation.pathname, i) || r.nextLocation.pathname;
|
|
7060
|
+
return mi(a.pathname, s) != null || mi(a.pathname, o) != null;
|
|
6973
7061
|
}
|
|
6974
7062
|
//#endregion
|
|
6975
7063
|
//#region src/lib/hooks/useUrlQuery.ts
|
|
6976
|
-
function
|
|
6977
|
-
let { search: e } =
|
|
6978
|
-
return
|
|
7064
|
+
function Ao() {
|
|
7065
|
+
let { search: e } = Q();
|
|
7066
|
+
return l(() => new URLSearchParams(e), [e]);
|
|
6979
7067
|
}
|
|
6980
7068
|
//#endregion
|
|
6981
7069
|
//#region src/lib/hooks/useFormatNumber.ts
|
|
6982
|
-
function
|
|
6983
|
-
let { language: t } =
|
|
7070
|
+
function jo(e) {
|
|
7071
|
+
let { language: t } = H(), n = l(() => new Intl.NumberFormat(t, e), [t, e]);
|
|
6984
7072
|
return a((e) => {
|
|
6985
7073
|
if (e == null) return "-";
|
|
6986
7074
|
let t = Number(e);
|
|
6987
7075
|
return isNaN(t) ? "-" : n.format(t);
|
|
6988
7076
|
}, [n]);
|
|
6989
7077
|
}
|
|
6990
|
-
function
|
|
6991
|
-
return
|
|
7078
|
+
function Mo(e) {
|
|
7079
|
+
return jo()(e);
|
|
6992
7080
|
}
|
|
6993
7081
|
//#endregion
|
|
6994
7082
|
//#region src/lib/components/datetime-display/DateTimeDisplay.tsx
|
|
6995
|
-
function
|
|
6996
|
-
let { date: t, options: n, ...r } = e, i =
|
|
6997
|
-
return /* @__PURE__ */
|
|
7083
|
+
function No(e) {
|
|
7084
|
+
let { date: t, options: n, ...r } = e, i = Wr(t, n);
|
|
7085
|
+
return /* @__PURE__ */ k("span", {
|
|
6998
7086
|
...r,
|
|
6999
7087
|
children: i
|
|
7000
7088
|
});
|
|
7001
7089
|
}
|
|
7002
7090
|
//#endregion
|
|
7003
7091
|
//#region src/lib/components/duration-display/DurationDisplay.tsx
|
|
7004
|
-
function
|
|
7005
|
-
let r =
|
|
7006
|
-
return e == null ? /* @__PURE__ */
|
|
7092
|
+
function Po({ minutes: e, alternativeText: t = "", ...n }) {
|
|
7093
|
+
let r = Gr(e ?? 0);
|
|
7094
|
+
return e == null ? /* @__PURE__ */ k("span", {
|
|
7007
7095
|
...n,
|
|
7008
7096
|
children: t
|
|
7009
|
-
}) : /* @__PURE__ */
|
|
7097
|
+
}) : /* @__PURE__ */ k("span", {
|
|
7010
7098
|
...n,
|
|
7011
7099
|
children: r
|
|
7012
7100
|
});
|
|
7013
7101
|
}
|
|
7014
|
-
|
|
7102
|
+
//#endregion
|
|
7103
|
+
//#region src/lib/components/user-search/UserSearch.utils.ts
|
|
7104
|
+
function Fo(e) {
|
|
7105
|
+
let t = /* @__PURE__ */ new Map();
|
|
7106
|
+
for (let n of e) {
|
|
7107
|
+
let e = (n.username?.[0] ?? "#").toUpperCase(), r = t.get(e);
|
|
7108
|
+
r ? r.push(n) : t.set(e, [n]);
|
|
7109
|
+
}
|
|
7110
|
+
return [...t.entries()].sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => ({
|
|
7111
|
+
letter: e,
|
|
7112
|
+
users: t
|
|
7113
|
+
}));
|
|
7114
|
+
}
|
|
7115
|
+
var Io = {
|
|
7015
7116
|
label: "User",
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7117
|
+
chooseUser: "Choose user",
|
|
7118
|
+
modalTitle: "Choose a user",
|
|
7119
|
+
searchPlaceholder: "Search by username or email",
|
|
7120
|
+
usersListLabel: "Users",
|
|
7121
|
+
clear: "Clear selection",
|
|
7122
|
+
resultCount: {
|
|
7123
|
+
one: "{{count}} user shown",
|
|
7124
|
+
many: "{{count}} users shown"
|
|
7125
|
+
},
|
|
7126
|
+
empty: "No users found",
|
|
7127
|
+
loadError: "Users could not be loaded.",
|
|
7128
|
+
retry: "Try again"
|
|
7129
|
+
}, Lo = {
|
|
7020
7130
|
label: "Benutzer",
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7131
|
+
chooseUser: "Benutzer auswählen",
|
|
7132
|
+
modalTitle: "Benutzer auswählen",
|
|
7133
|
+
searchPlaceholder: "Nach Benutzername oder E-Mail suchen",
|
|
7134
|
+
usersListLabel: "Benutzer",
|
|
7135
|
+
clear: "Auswahl entfernen",
|
|
7136
|
+
resultCount: {
|
|
7137
|
+
one: "{{count}} Benutzer angezeigt",
|
|
7138
|
+
many: "{{count}} Benutzer angezeigt"
|
|
7139
|
+
},
|
|
7140
|
+
empty: "Keine Benutzer gefunden",
|
|
7141
|
+
loadError: "Benutzer konnten nicht geladen werden.",
|
|
7142
|
+
retry: "Erneut versuchen"
|
|
7143
|
+
}, Ro = 50, zo = 300, Bo = {
|
|
7144
|
+
"--field-border": "var(--border-secondary)",
|
|
7145
|
+
"--border-width-field": "1px"
|
|
7024
7146
|
};
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
de: yo
|
|
7031
|
-
}), [f, p] = u(""), [m, h] = u(null), v = c(() => m == null ? null : Number(m), [m]), S = se({
|
|
7032
|
-
search: f,
|
|
7033
|
-
limit: 10,
|
|
7034
|
-
page: 1
|
|
7035
|
-
}), C = c(() => {
|
|
7036
|
-
let e = S.data?.data ?? [], t = f.trim().toLowerCase();
|
|
7037
|
-
return t ? e.filter((e) => e.username.toLowerCase().includes(t)) : e;
|
|
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,
|
|
7040
|
-
w.data,
|
|
7041
|
-
C
|
|
7042
|
-
]);
|
|
7147
|
+
function Vo(e) {
|
|
7148
|
+
let { label: t, placeholder: n, size: r, resetSignal: i, onSelectionChange: o, afterAutocomplete: f, wrapperProps: p, afterSelection: m } = e, { t: g } = qn({
|
|
7149
|
+
en: Io,
|
|
7150
|
+
de: Lo
|
|
7151
|
+
}), w = c(), T = c(), { isOpen: E, open: D, close: O } = fe(), [se, ce] = d(null), [le, ue] = d(""), me = Hr(le, zo), ge = u(!0);
|
|
7043
7152
|
s(() => {
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
if (h(e), e != null) {
|
|
7048
|
-
let t = C.find((t) => t.id === Number(e));
|
|
7049
|
-
t && p(t.username);
|
|
7153
|
+
if (ge.current) {
|
|
7154
|
+
ge.current = !1;
|
|
7155
|
+
return;
|
|
7050
7156
|
}
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7157
|
+
ce(null), ue("");
|
|
7158
|
+
}, [i]);
|
|
7159
|
+
let { data: _e, fetchNextPage: ve, hasNextPage: ye, isFetchingNextPage: be, isFetching: xe, isLoading: j, isError: Se, refetch: Ce } = he({
|
|
7160
|
+
limit: Ro,
|
|
7161
|
+
search: E && le.trim() && me.trim() || void 0
|
|
7162
|
+
}, void 0, {
|
|
7163
|
+
enabled: E,
|
|
7164
|
+
initialPageParam: 1,
|
|
7165
|
+
getNextPageParam: (e) => e.nextPage
|
|
7166
|
+
}), M = l(() => {
|
|
7167
|
+
let e = /* @__PURE__ */ new Map();
|
|
7168
|
+
for (let t of _e?.pages ?? []) for (let n of t.data) e.set(n.id, n);
|
|
7169
|
+
return [...e.values()];
|
|
7170
|
+
}, [_e]), we = l(() => Fo(M), [M]);
|
|
7171
|
+
s(() => {
|
|
7172
|
+
o?.(se);
|
|
7173
|
+
}, [se, o]);
|
|
7174
|
+
let Te = a((e) => {
|
|
7175
|
+
ce(e), ue(""), O();
|
|
7176
|
+
}, [O]), Ee = a((e) => {
|
|
7177
|
+
e ? D() : (ue(""), O());
|
|
7178
|
+
}, [D, O]), De = u(null), Oe = u(null), ke = u({
|
|
7179
|
+
hasNextPage: ye,
|
|
7180
|
+
isFetchingNextPage: be,
|
|
7181
|
+
fetchNextPage: ve
|
|
7182
|
+
});
|
|
7183
|
+
return s(() => {
|
|
7184
|
+
ke.current = {
|
|
7185
|
+
hasNextPage: ye,
|
|
7186
|
+
isFetchingNextPage: be,
|
|
7187
|
+
fetchNextPage: ve
|
|
7188
|
+
};
|
|
7189
|
+
}), s(() => {
|
|
7190
|
+
let e = Oe.current, t = De.current;
|
|
7191
|
+
if (!e || !t || !E) return;
|
|
7192
|
+
let n = new IntersectionObserver((e) => {
|
|
7193
|
+
let t = ke.current;
|
|
7194
|
+
e[0]?.isIntersecting && t.hasNextPage && !t.isFetchingNextPage && t.fetchNextPage();
|
|
7195
|
+
}, {
|
|
7196
|
+
root: t,
|
|
7197
|
+
rootMargin: "200px"
|
|
7198
|
+
});
|
|
7199
|
+
return n.observe(e), () => n.disconnect();
|
|
7200
|
+
}, [E, Se]), /* @__PURE__ */ A("div", {
|
|
7201
|
+
...p,
|
|
7202
|
+
children: [
|
|
7203
|
+
/* @__PURE__ */ k(y, {
|
|
7204
|
+
id: w,
|
|
7205
|
+
className: "mb-1 block",
|
|
7206
|
+
children: t ?? g("label")
|
|
7207
|
+
}),
|
|
7208
|
+
/* @__PURE__ */ A("div", {
|
|
7209
|
+
className: "flex gap-2 items-center",
|
|
7067
7210
|
children: [
|
|
7068
|
-
/* @__PURE__ */
|
|
7069
|
-
|
|
7070
|
-
|
|
7071
|
-
|
|
7072
|
-
|
|
7073
|
-
|
|
7074
|
-
|
|
7075
|
-
|
|
7076
|
-
children: /* @__PURE__ */
|
|
7077
|
-
|
|
7211
|
+
se ? /* @__PURE__ */ A(pe, { children: [/* @__PURE__ */ k(h, {
|
|
7212
|
+
variant: "ghost",
|
|
7213
|
+
size: r,
|
|
7214
|
+
onPress: D,
|
|
7215
|
+
className: "justify-start px-2",
|
|
7216
|
+
id: T,
|
|
7217
|
+
"aria-labelledby": `${w} ${T}`,
|
|
7218
|
+
"data-cy": "user-picker-selected",
|
|
7219
|
+
children: /* @__PURE__ */ k(Vr, {
|
|
7220
|
+
user: se,
|
|
7221
|
+
interactive: !1
|
|
7222
|
+
})
|
|
7223
|
+
}), /* @__PURE__ */ k(h, {
|
|
7224
|
+
variant: "ghost",
|
|
7225
|
+
size: r ?? "sm",
|
|
7226
|
+
isIconOnly: !0,
|
|
7227
|
+
onPress: () => ce(null),
|
|
7228
|
+
"aria-label": g("clear"),
|
|
7229
|
+
"data-cy": "user-picker-clear",
|
|
7230
|
+
children: /* @__PURE__ */ k(Fr, { className: "w-4 h-4" })
|
|
7231
|
+
})] }) : /* @__PURE__ */ A(h, {
|
|
7232
|
+
variant: "secondary",
|
|
7233
|
+
size: r,
|
|
7234
|
+
onPress: D,
|
|
7235
|
+
className: "flex-1 justify-start",
|
|
7236
|
+
id: T,
|
|
7237
|
+
"aria-labelledby": `${w} ${T}`,
|
|
7238
|
+
"data-cy": "user-picker-open",
|
|
7239
|
+
children: [/* @__PURE__ */ k(Pr, { className: "w-4 h-4" }), g("chooseUser")]
|
|
7240
|
+
}),
|
|
7241
|
+
f,
|
|
7242
|
+
m
|
|
7078
7243
|
]
|
|
7079
|
-
}),
|
|
7080
|
-
|
|
7081
|
-
|
|
7082
|
-
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
7244
|
+
}),
|
|
7245
|
+
/* @__PURE__ */ k(C, {
|
|
7246
|
+
isOpen: E,
|
|
7247
|
+
onOpenChange: Ee,
|
|
7248
|
+
children: /* @__PURE__ */ k(ee, { children: /* @__PURE__ */ k(ne, {
|
|
7249
|
+
size: "md",
|
|
7250
|
+
children: /* @__PURE__ */ A(re, {
|
|
7251
|
+
className: "bg-surface-secondary",
|
|
7252
|
+
style: Bo,
|
|
7253
|
+
"aria-label": g("modalTitle"),
|
|
7254
|
+
children: [/* @__PURE__ */ k(ie, { children: /* @__PURE__ */ k(ae, { children: g("modalTitle") }) }), /* @__PURE__ */ A(te, {
|
|
7255
|
+
className: "px-0 pb-0",
|
|
7256
|
+
children: [
|
|
7257
|
+
/* @__PURE__ */ k("div", {
|
|
7258
|
+
className: "px-4",
|
|
7259
|
+
children: /* @__PURE__ */ k(de, {
|
|
7260
|
+
value: le,
|
|
7261
|
+
onChange: ue,
|
|
7262
|
+
className: "w-full",
|
|
7263
|
+
"aria-label": g("searchPlaceholder"),
|
|
7264
|
+
children: /* @__PURE__ */ A(v, { children: [
|
|
7265
|
+
/* @__PURE__ */ k(v.Prefix, { children: /* @__PURE__ */ k(Mr, { className: "size-4 text-muted" }) }),
|
|
7266
|
+
/* @__PURE__ */ k(v.Input, {
|
|
7267
|
+
placeholder: n ?? g("searchPlaceholder"),
|
|
7268
|
+
autoComplete: "off"
|
|
7269
|
+
}),
|
|
7270
|
+
j ? /* @__PURE__ */ k(v.Suffix, { children: /* @__PURE__ */ k(oe, { size: "sm" }) }) : null
|
|
7271
|
+
] })
|
|
7272
|
+
})
|
|
7273
|
+
}),
|
|
7274
|
+
/* @__PURE__ */ k("div", {
|
|
7275
|
+
"aria-live": "polite",
|
|
7276
|
+
className: "sr-only",
|
|
7277
|
+
children: g("resultCount", { count: M.length })
|
|
7278
|
+
}),
|
|
7279
|
+
/* @__PURE__ */ A("div", {
|
|
7280
|
+
ref: De,
|
|
7281
|
+
className: "mt-2",
|
|
7282
|
+
style: {
|
|
7283
|
+
maxHeight: "60vh",
|
|
7284
|
+
overflowY: "auto"
|
|
7285
|
+
},
|
|
7286
|
+
"data-cy": "user-picker-list",
|
|
7287
|
+
children: [
|
|
7288
|
+
Se && M.length === 0 ? /* @__PURE__ */ A("div", {
|
|
7289
|
+
className: "flex flex-col items-center gap-3 py-10",
|
|
7290
|
+
"data-cy": "user-picker-error",
|
|
7291
|
+
children: [/* @__PURE__ */ k("p", {
|
|
7292
|
+
className: "text-sm text-muted",
|
|
7293
|
+
children: g("loadError")
|
|
7294
|
+
}), /* @__PURE__ */ k(h, {
|
|
7295
|
+
variant: "secondary",
|
|
7296
|
+
size: "sm",
|
|
7297
|
+
isPending: xe,
|
|
7298
|
+
onPress: () => Ce(),
|
|
7299
|
+
children: g("retry")
|
|
7300
|
+
})]
|
|
7301
|
+
}) : we.length === 0 && !j ? /* @__PURE__ */ k("div", {
|
|
7302
|
+
className: "py-10 text-center text-sm text-muted",
|
|
7303
|
+
children: g("empty")
|
|
7304
|
+
}) : /* @__PURE__ */ k(b, {
|
|
7305
|
+
"aria-label": g("usersListLabel"),
|
|
7306
|
+
selectionMode: "none",
|
|
7307
|
+
children: we.map((e) => /* @__PURE__ */ A(S, {
|
|
7308
|
+
id: e.letter,
|
|
7309
|
+
children: [/* @__PURE__ */ k(_, {
|
|
7310
|
+
className: "sticky top-0 z-10 bg-surface-secondary px-2 py-1 text-xs font-semibold text-muted",
|
|
7311
|
+
children: e.letter
|
|
7312
|
+
}), e.users.map((e) => /* @__PURE__ */ k(x, {
|
|
7313
|
+
id: String(e.id),
|
|
7314
|
+
textValue: e.username,
|
|
7315
|
+
onAction: () => Te(e),
|
|
7316
|
+
"data-cy": `user-picker-item-${e.id}`,
|
|
7317
|
+
children: /* @__PURE__ */ k(Vr, {
|
|
7318
|
+
user: e,
|
|
7319
|
+
interactive: !1
|
|
7320
|
+
})
|
|
7321
|
+
}, e.id))]
|
|
7322
|
+
}, e.letter))
|
|
7323
|
+
}),
|
|
7324
|
+
Se ? null : /* @__PURE__ */ k("div", { ref: Oe }),
|
|
7325
|
+
Se && M.length > 0 ? /* @__PURE__ */ A("div", {
|
|
7326
|
+
className: "flex items-center justify-center gap-3 py-3",
|
|
7327
|
+
"data-cy": "user-picker-load-more-error",
|
|
7328
|
+
children: [/* @__PURE__ */ k("p", {
|
|
7329
|
+
className: "text-sm text-muted",
|
|
7330
|
+
children: g("loadError")
|
|
7331
|
+
}), /* @__PURE__ */ k(h, {
|
|
7332
|
+
variant: "secondary",
|
|
7333
|
+
size: "sm",
|
|
7334
|
+
isPending: be,
|
|
7335
|
+
onPress: () => ve(),
|
|
7336
|
+
children: g("retry")
|
|
7337
|
+
})]
|
|
7338
|
+
}) : null,
|
|
7339
|
+
be ? /* @__PURE__ */ k("div", {
|
|
7340
|
+
className: "flex justify-center py-3",
|
|
7341
|
+
children: /* @__PURE__ */ k(oe, { size: "sm" })
|
|
7342
|
+
}) : null
|
|
7343
|
+
]
|
|
7344
|
+
})
|
|
7345
|
+
]
|
|
7346
|
+
})]
|
|
7347
|
+
})
|
|
7348
|
+
}) })
|
|
7349
|
+
})
|
|
7350
|
+
]
|
|
7087
7351
|
});
|
|
7088
7352
|
}
|
|
7089
|
-
var
|
|
7353
|
+
var Ho = {
|
|
7090
7354
|
search: {
|
|
7091
7355
|
label: "Ressourcen suchen",
|
|
7092
7356
|
placeholder: "Tippe um zu suchen"
|
|
@@ -7096,7 +7360,7 @@ var xo = {
|
|
|
7096
7360
|
columns: { name: { header: "Name" } }
|
|
7097
7361
|
},
|
|
7098
7362
|
list: { label: "Zugewiesen an" }
|
|
7099
|
-
},
|
|
7363
|
+
}, Uo = {
|
|
7100
7364
|
search: {
|
|
7101
7365
|
label: "Search resources",
|
|
7102
7366
|
placeholder: "Type to search"
|
|
@@ -7106,38 +7370,38 @@ var xo = {
|
|
|
7106
7370
|
columns: { name: { header: "Name" } }
|
|
7107
7371
|
},
|
|
7108
7372
|
list: { label: "Assigned to" }
|
|
7109
|
-
},
|
|
7373
|
+
}, Wo = ({ children: e }) => /* @__PURE__ */ k("div", {
|
|
7110
7374
|
className: "border-small px-1 py-2 rounded-small border-default-200 dark:border-default-100",
|
|
7111
7375
|
children: e
|
|
7112
7376
|
});
|
|
7113
|
-
function
|
|
7114
|
-
let { selection: t, onSelectionChange: n, multiple: r = !0, listClassName: i = "" } = e, [a, o] =
|
|
7115
|
-
de:
|
|
7116
|
-
en:
|
|
7117
|
-
}), { data: c, isLoading: l } =
|
|
7377
|
+
function Go(e) {
|
|
7378
|
+
let { selection: t, onSelectionChange: n, multiple: r = !0, listClassName: i = "" } = e, [a, o] = d(""), { t: s } = qn({
|
|
7379
|
+
de: Ho,
|
|
7380
|
+
en: Uo
|
|
7381
|
+
}), { data: c, isLoading: l } = me({
|
|
7118
7382
|
limit: 15,
|
|
7119
7383
|
page: 1,
|
|
7120
7384
|
search: a
|
|
7121
7385
|
});
|
|
7122
|
-
return /* @__PURE__ */
|
|
7386
|
+
return /* @__PURE__ */ A("div", {
|
|
7123
7387
|
className: "flex flex-col gap-2",
|
|
7124
|
-
children: [/* @__PURE__ */
|
|
7388
|
+
children: [/* @__PURE__ */ A(de, {
|
|
7125
7389
|
value: a,
|
|
7126
7390
|
onChange: o,
|
|
7127
7391
|
className: "w-full",
|
|
7128
|
-
children: [/* @__PURE__ */
|
|
7129
|
-
/* @__PURE__ */
|
|
7130
|
-
/* @__PURE__ */
|
|
7131
|
-
l ? /* @__PURE__ */
|
|
7392
|
+
children: [/* @__PURE__ */ k(y, { children: s("search.label") }), /* @__PURE__ */ A(v, { children: [
|
|
7393
|
+
/* @__PURE__ */ k(v.Prefix, { children: /* @__PURE__ */ k(Mr, { className: "size-4 text-muted" }) }),
|
|
7394
|
+
/* @__PURE__ */ k(v.Input, { placeholder: s("search.placeholder") }),
|
|
7395
|
+
l ? /* @__PURE__ */ k(v.Suffix, { children: /* @__PURE__ */ k(oe, { size: "sm" }) }) : null
|
|
7132
7396
|
] })]
|
|
7133
|
-
}), /* @__PURE__ */
|
|
7397
|
+
}), /* @__PURE__ */ k(ce, {
|
|
7134
7398
|
"aria-label": s("table.ariaLabel"),
|
|
7135
7399
|
className: i,
|
|
7136
7400
|
style: {
|
|
7137
|
-
maxHeight:
|
|
7401
|
+
maxHeight: 387,
|
|
7138
7402
|
overflowY: "auto"
|
|
7139
7403
|
},
|
|
7140
|
-
children: /* @__PURE__ */
|
|
7404
|
+
children: /* @__PURE__ */ k(ue, { children: /* @__PURE__ */ A(O, {
|
|
7141
7405
|
selectionMode: r ? "multiple" : "single",
|
|
7142
7406
|
selectedKeys: new Set(t.map(String)),
|
|
7143
7407
|
onSelectionChange: (e) => {
|
|
@@ -7147,30 +7411,30 @@ function Do(e) {
|
|
|
7147
7411
|
}
|
|
7148
7412
|
n(Array.from(e).map((e) => Number(e)));
|
|
7149
7413
|
},
|
|
7150
|
-
children: [/* @__PURE__ */
|
|
7414
|
+
children: [/* @__PURE__ */ A(se, { children: [/* @__PURE__ */ k(D, {
|
|
7151
7415
|
className: "pr-0 w-0",
|
|
7152
|
-
children: r ? /* @__PURE__ */
|
|
7416
|
+
children: r ? /* @__PURE__ */ k(g, {
|
|
7153
7417
|
"aria-label": s("table.ariaLabel"),
|
|
7154
7418
|
slot: "selection",
|
|
7155
|
-
children: /* @__PURE__ */
|
|
7419
|
+
children: /* @__PURE__ */ k(g.Control, { children: /* @__PURE__ */ k(g.Indicator, {}) })
|
|
7156
7420
|
}) : null
|
|
7157
|
-
}), /* @__PURE__ */ D
|
|
7421
|
+
}), /* @__PURE__ */ k(D, {
|
|
7158
7422
|
className: "w-full",
|
|
7159
7423
|
isRowHeader: !0,
|
|
7160
7424
|
children: s("table.columns.name.header")
|
|
7161
|
-
})] }), /* @__PURE__ */
|
|
7425
|
+
})] }), /* @__PURE__ */ k(T, {
|
|
7162
7426
|
items: c?.data ?? [],
|
|
7163
|
-
children: (e) => /* @__PURE__ */
|
|
7427
|
+
children: (e) => /* @__PURE__ */ A(le, {
|
|
7164
7428
|
id: String(e.id),
|
|
7165
|
-
children: [/* @__PURE__ */
|
|
7429
|
+
children: [/* @__PURE__ */ k(E, {
|
|
7166
7430
|
className: "pr-0",
|
|
7167
|
-
children: /* @__PURE__ */
|
|
7431
|
+
children: /* @__PURE__ */ k(g, {
|
|
7168
7432
|
"aria-label": e.name,
|
|
7169
7433
|
slot: "selection",
|
|
7170
7434
|
variant: "secondary",
|
|
7171
|
-
children: /* @__PURE__ */
|
|
7435
|
+
children: /* @__PURE__ */ k(g.Control, { children: /* @__PURE__ */ k(g.Indicator, {}) })
|
|
7172
7436
|
})
|
|
7173
|
-
}), /* @__PURE__ */
|
|
7437
|
+
}), /* @__PURE__ */ k(E, { children: e.name })]
|
|
7174
7438
|
}, e.id)
|
|
7175
7439
|
})]
|
|
7176
7440
|
}) })
|
|
@@ -7179,7 +7443,7 @@ function Do(e) {
|
|
|
7179
7443
|
}
|
|
7180
7444
|
//#endregion
|
|
7181
7445
|
//#region src/lib/components/Trans/index.tsx
|
|
7182
|
-
function
|
|
7446
|
+
function Ko(e) {
|
|
7183
7447
|
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;
|
|
7184
7448
|
for (; (o = r.exec(e)) !== null;) {
|
|
7185
7449
|
let s = o[0], c = o[1], l = s.startsWith("</"), u = /\/>\s*$/.test(s) || !l && s.endsWith("/>");
|
|
@@ -7237,7 +7501,7 @@ function Oo(e) {
|
|
|
7237
7501
|
}
|
|
7238
7502
|
return t.children;
|
|
7239
7503
|
}
|
|
7240
|
-
function
|
|
7504
|
+
function qo(e, n, r = "k") {
|
|
7241
7505
|
let i = [];
|
|
7242
7506
|
return e.forEach((e, a) => {
|
|
7243
7507
|
let o = `${r}-${a}`;
|
|
@@ -7249,21 +7513,21 @@ function ko(e, n, r = "k") {
|
|
|
7249
7513
|
if (t.isValidElement(s)) {
|
|
7250
7514
|
if (e.selfClosing) i.push(t.cloneElement(s, { key: o }));
|
|
7251
7515
|
else {
|
|
7252
|
-
let r =
|
|
7516
|
+
let r = qo(e.children, n, o);
|
|
7253
7517
|
i.push(t.cloneElement(s, { key: o }, r));
|
|
7254
7518
|
}
|
|
7255
7519
|
return;
|
|
7256
7520
|
}
|
|
7257
|
-
e.selfClosing || i.push(...
|
|
7521
|
+
e.selfClosing || i.push(...qo(e.children, n, o));
|
|
7258
7522
|
}), i;
|
|
7259
7523
|
}
|
|
7260
|
-
function
|
|
7261
|
-
let { i18nKey: t, values: n, components: r, t: i } = e, a =
|
|
7524
|
+
function Jo(e) {
|
|
7525
|
+
let { i18nKey: t, values: n, components: r, t: i } = e, a = l(() => i(t, n), [
|
|
7262
7526
|
i,
|
|
7263
7527
|
t,
|
|
7264
7528
|
n
|
|
7265
|
-
]), o =
|
|
7266
|
-
return
|
|
7529
|
+
]), o = l(() => Ko(a), [a]);
|
|
7530
|
+
return l(() => qo(o, r), [o, r]);
|
|
7267
7531
|
}
|
|
7268
7532
|
//#endregion
|
|
7269
|
-
export {
|
|
7533
|
+
export { Vr as AttraccessUser, Lr as AttraccessUserActionsProvider, No as DateTimeDisplay, Po as DurationDisplay, Wn as I18N_LANGUAGE_STORAGE_KEY, Jo as I18nTransComponent, Wo as ListboxWrapper, Go as ResourceSelector, Vo as UserSearch, Jn as detectAndSetLanguage, Rr as useAttraccessUserActions, Ur as useDateTimeFormatter, Hr as useDebounce, Wr as useFormatDateTime, Mo as useFormatNumber, Gr as useFormatedDuration, jo as useNumberFormatter, H as useTranslationState, qn as useTranslations, Ao as useUrlQuery };
|