@attraccess/plugins-frontend-ui 1.8.1 → 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 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, useMemo as c, useRef as l, useState as u } from "react";
3
- import { Avatar as d, AvatarFallback as f, AvatarImage as p, Button as m, Checkbox as h, ComboBox as g, Input as _, InputGroup as v, Label as y, ListBox as b, ListBoxItem as x, Popover as S, Spinner as C, TableBody as w, TableCell as T, TableColumn as E, TableContent as ee, TableHeader as te, TableRoot as ne, TableRow as re, TableScrollContainer as ie, TextField as ae } from "@heroui/react";
4
- import { jsx as D, jsxs as O } from "react/jsx-runtime";
5
- import { useResourcesServiceGetAllResources as oe, useUsersServiceFindMany as se, useUsersServiceGetOneUserById as ce } from "@attraccess/react-query-client";
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 le = Object.create, ue = Object.defineProperty, de = Object.getOwnPropertyDescriptor, fe = Object.getOwnPropertyNames, pe = Object.getPrototypeOf, me = Object.prototype.hasOwnProperty, k = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), he = (e, t, n, r) => {
8
- if (t && typeof t == "object" || typeof t == "function") for (var i = fe(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !me.call(e, s) && s !== n && ue(e, s, {
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 = de(t, s)) || r.enumerable
10
+ enumerable: !(r = ve(t, s)) || r.enumerable
11
11
  });
12
12
  return e;
13
- }, ge = (e, t, n) => (n = e == null ? {} : le(pe(e)), he(t || !e || !e.__esModule ? ue(n, "default", {
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)), _e = (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
- }, ve = ((e) => e ? _e(e) : _e), ye = (e) => e;
31
- function be(e, n = ye) {
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 xe = (e) => {
36
- let t = ve(e), n = (e) => be(t, e);
35
+ var De = (e) => {
36
+ let t = we(e), n = (e) => Ee(t, e);
37
37
  return Object.assign(n, t), n;
38
- }, Se = ((e) => e ? xe(e) : xe), Ce = typeof global == "object" && global && global.Object === Object && global, we = typeof self == "object" && self && self.Object === Object && self, Te = Ce || we || Function("return this")(), A = Te.Symbol, Ee = Object.prototype, De = Ee.hasOwnProperty, Oe = Ee.toString, j = A ? A.toStringTag : void 0;
39
- function ke(e) {
40
- var t = De.call(e, j), n = e[j];
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[j] = void 0;
42
+ e[P] = void 0;
43
43
  var r = !0;
44
44
  } catch {}
45
- var i = Oe.call(e);
46
- return r && (t ? e[j] = n : delete e[j]), i;
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 Ae = Object.prototype.toString;
51
- function je(e) {
52
- return Ae.call(e);
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 Me = "[object Null]", Ne = "[object Undefined]", Pe = A ? A.toStringTag : void 0;
57
- function Fe(e) {
58
- return e == null ? e === void 0 ? Ne : Me : Pe && Pe in Object(e) ? ke(e) : je(e);
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 Ie(e) {
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 Le = "[object Symbol]";
68
- function Re(e) {
69
- return typeof e == "symbol" || Ie(e) && Fe(e) == Le;
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 ze(e, t) {
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 Be = Array.isArray, Ve = Infinity, He = A ? A.prototype : void 0, Ue = He ? He.toString : void 0;
80
- function We(e) {
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 (Be(e)) return ze(e, We) + "";
83
- if (Re(e)) return Ue ? Ue.call(e) : "";
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 == -Ve ? "-0" : t;
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 Ge(e) {
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 Ke = "[object AsyncFunction]", qe = "[object Function]", Je = "[object GeneratorFunction]", Ye = "[object Proxy]";
96
- function Xe(e) {
97
- if (!Ge(e)) return !1;
98
- var t = Fe(e);
99
- return t == qe || t == Je || t == Ke || t == Ye;
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 Ze = Te["__core-js_shared__"], Qe = function() {
104
- var e = /[^.]+$/.exec(Ze && Ze.keys && Ze.keys.IE_PROTO || "");
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 $e(e) {
108
- return !!Qe && Qe in e;
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 et = Function.prototype.toString;
113
- function tt(e) {
112
+ var ot = Function.prototype.toString;
113
+ function st(e) {
114
114
  if (e != null) {
115
115
  try {
116
- return et.call(e);
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 nt = /[\\^$.*+?()[\]{}|]/g, rt = /^\[object .+?Constructor\]$/, it = Function.prototype, at = Object.prototype, ot = it.toString, st = at.hasOwnProperty, ct = RegExp("^" + ot.call(st).replace(nt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
127
- function lt(e) {
128
- return !Ge(e) || $e(e) ? !1 : (Xe(e) ? ct : rt).test(tt(e));
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 ut(e, t) {
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 dt(e, t) {
138
- var n = ut(e, t);
139
- return lt(n) ? n : void 0;
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 ft(e, t) {
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 pt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, mt = /^\w*$/;
149
- function ht(e, t) {
150
- if (Be(e)) return !1;
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 || Re(e) ? !0 : mt.test(e) || !pt.test(e) || t != null && e in Object(t);
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 M = dt(Object, "create");
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 gt() {
160
- this.__data__ = M ? M(null) : {}, this.size = 0;
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 _t(e) {
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 vt = "__lodash_hash_undefined__", yt = Object.prototype.hasOwnProperty;
171
- function bt(e) {
170
+ var wt = "__lodash_hash_undefined__", Tt = Object.prototype.hasOwnProperty;
171
+ function Et(e) {
172
172
  var t = this.__data__;
173
- if (M) {
173
+ if (F) {
174
174
  var n = t[e];
175
- return n === vt ? void 0 : n;
175
+ return n === wt ? void 0 : n;
176
176
  }
177
- return yt.call(t, e) ? t[e] : void 0;
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 xt = Object.prototype.hasOwnProperty;
182
- function St(e) {
181
+ var Dt = Object.prototype.hasOwnProperty;
182
+ function Ot(e) {
183
183
  var t = this.__data__;
184
- return M ? t[e] !== void 0 : xt.call(t, e);
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 Ct = "__lodash_hash_undefined__";
189
- function wt(e, t) {
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] = M && t === void 0 ? Ct : t, this;
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 N(e) {
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
- N.prototype.clear = gt, N.prototype.delete = _t, N.prototype.get = bt, N.prototype.has = St, N.prototype.set = wt;
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 Tt() {
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 Et(e, t) {
211
- for (var n = e.length; n--;) if (ft(e[n][0], t)) return n;
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 Dt = Array.prototype.splice;
217
- function Ot(e) {
218
- var t = this.__data__, n = Et(t, e);
219
- return n < 0 ? !1 : (n == t.length - 1 ? t.pop() : Dt.call(t, n, 1), --this.size, !0);
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 kt(e) {
224
- var t = this.__data__, n = Et(t, e);
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 At(e) {
230
- return Et(this.__data__, e) > -1;
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 jt(e, t) {
235
- var n = this.__data__, r = Et(n, e);
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 P(e) {
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
- P.prototype.clear = Tt, P.prototype.delete = Ot, P.prototype.get = kt, P.prototype.has = At, P.prototype.set = jt;
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 Mt = dt(Te, "Map");
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 Nt() {
253
+ function zt() {
254
254
  this.size = 0, this.__data__ = {
255
- hash: new N(),
256
- map: new (Mt || P)(),
257
- string: new N()
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 Pt(e) {
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 Ft(e, t) {
268
+ function Vt(e, t) {
269
269
  var n = e.__data__;
270
- return Pt(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
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 It(e) {
275
- var t = Ft(this, e).delete(e);
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 Lt(e) {
281
- return Ft(this, e).get(e);
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 Rt(e) {
286
- return Ft(this, e).has(e);
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 zt(e, t) {
291
- var n = Ft(this, e), r = n.size;
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 F(e) {
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
- F.prototype.clear = Nt, F.prototype.delete = It, F.prototype.get = Lt, F.prototype.has = Rt, F.prototype.set = zt;
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 Bt = "Expected a function";
307
- function Vt(e, t) {
308
- if (typeof e != "function" || t != null && typeof t != "function") throw TypeError(Bt);
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 (Vt.Cache || F)(), n;
315
+ return n.cache = new (qt.Cache || R)(), n;
316
316
  }
317
- Vt.Cache = F;
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 Ht = 500;
321
- function Ut(e) {
322
- var t = Vt(e, function(e) {
323
- return n.size === Ht && n.clear(), e;
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 Wt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Gt = /\\(\\)?/g, Kt = Ut(function(e) {
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(Wt, function(e, n, r, i) {
332
- t.push(r ? i.replace(Gt, "$1") : n || e);
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 qt(e) {
338
- return e == null ? "" : We(e);
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 Jt(e, t) {
343
- return Be(e) ? e : ht(e, t) ? [e] : Kt(qt(e));
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 Yt = Infinity;
348
- function Xt(e) {
349
- if (typeof e == "string" || Re(e)) return e;
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 == -Yt ? "-0" : t;
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 Zt(e, t) {
356
- t = Jt(t, e);
357
- for (var n = 0, r = t.length; e != null && n < r;) e = e[Xt(t[n++])];
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 Qt(e, t, n) {
363
- var r = e == null ? void 0 : Zt(e, t);
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 I = /* @__PURE__ */ k(((e) => {
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
  "&": "&amp;",
@@ -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 ? !0 : !!(c(e) && e.length === 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
- })), L = /* @__PURE__ */ k(((e, t) => {
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
- })), $t = /* @__PURE__ */ k(((e, t) => {
454
+ })), on = /* @__PURE__ */ j(((e, t) => {
455
455
  e.__esModule = !0;
456
- var n = I();
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
- })), en = /* @__PURE__ */ k(((e, t) => {
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 = I(), i = n(L());
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
- })), tn = /* @__PURE__ */ k(((e, t) => {
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(L());
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
- })), nn = /* @__PURE__ */ k(((e, t) => {
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 = I(), i = n(L());
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
- })), rn = /* @__PURE__ */ k(((e, t) => {
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
- })), an = /* @__PURE__ */ k(((e, t) => {
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
- })), on = /* @__PURE__ */ k(((e, t) => {
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 = I(), i = n(L());
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
- })), sn = /* @__PURE__ */ k(((e) => {
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($t()), r = t(en()), i = t(tn()), a = t(nn()), o = t(rn()), s = t(an()), c = t(on());
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
- })), cn = /* @__PURE__ */ k(((e, t) => {
581
+ })), mn = /* @__PURE__ */ j(((e, t) => {
582
582
  e.__esModule = !0;
583
- var n = I();
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
- })), ln = /* @__PURE__ */ k(((e) => {
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(cn());
601
+ var n = t(mn());
602
602
  function r(e) {
603
603
  n.default(e);
604
604
  }
605
- })), un = /* @__PURE__ */ k(((e, t) => {
605
+ })), gn = /* @__PURE__ */ j(((e, t) => {
606
606
  e.__esModule = !0;
607
- var n = I(), r = {
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
- })), dn = /* @__PURE__ */ k(((e) => {
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 = I(), r = t(un()), i = Object.create(null);
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
- })), fn = /* @__PURE__ */ k(((e) => {
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 = I(), r = t(L()), i = sn(), a = ln(), o = t(un()), s = dn();
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
- })), pn = /* @__PURE__ */ k(((e, t) => {
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
- })), mn = /* @__PURE__ */ k(((e) => {
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
- })), hn = /* @__PURE__ */ k(((e) => {
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(I()), i = t(L()), a = fn(), o = sn(), s = mn(), c = dn();
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
- })), gn = /* @__PURE__ */ k(((e, t) => {
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
- })), _n = /* @__PURE__ */ k(((e, t) => {
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(fn()), a = n(pn()), o = n(L()), s = r(I()), c = r(hn()), l = n(gn());
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
- })), vn = /* @__PURE__ */ k(((e, t) => {
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
- })), yn = /* @__PURE__ */ k(((e, t) => {
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
- })), bn = /* @__PURE__ */ k(((e, t) => {
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(L());
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
- })), xn = /* @__PURE__ */ k(((e, t) => {
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(bn());
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
- })), Sn = /* @__PURE__ */ k(((e) => {
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(L());
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
- })), Cn = /* @__PURE__ */ k(((e) => {
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(yn()), i = n(xn()), a = t(Sn()), o = n(L()), s = I();
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
- })), wn = /* @__PURE__ */ k(((e) => {
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(L()), r = I(), i = t(vn()), a = [].slice;
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
- })), Tn = /* @__PURE__ */ k(((e) => {
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
- })), En = /* @__PURE__ */ k(((e) => {
3808
- var t = Tn(), n = 5, r = 1 << n, i = r - 1, a = r;
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
- })), R = /* @__PURE__ */ k(((e) => {
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
- })), Dn = /* @__PURE__ */ k(((e) => {
3944
- var t = R(), n = Object.prototype.hasOwnProperty, r = typeof Map < "u";
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
- })), On = /* @__PURE__ */ k(((e) => {
3976
- var t = R();
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
- })), kn = /* @__PURE__ */ k(((e) => {
3995
- var t = En(), n = R(), r = Dn().ArraySet, i = On().MappingList;
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
- })), An = /* @__PURE__ */ k(((e) => {
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
- })), jn = /* @__PURE__ */ k(((e) => {
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
- })), Mn = /* @__PURE__ */ k(((e) => {
4128
- var t = R(), n = An(), r = Dn().ArraySet, i = En(), a = jn().quickSort;
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
- })), Nn = /* @__PURE__ */ k(((e) => {
4420
- var t = kn().SourceMapGenerator, n = R(), r = /(\r?\n)/, i = 10, a = "$$$isSourceNode$$$";
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
- })), Pn = /* @__PURE__ */ k(((e) => {
4536
- e.SourceMapGenerator = kn().SourceMapGenerator, e.SourceMapConsumer = Mn().SourceMapConsumer, e.SourceNode = Nn().SourceNode;
4537
- })), Fn = /* @__PURE__ */ k(((e, t) => {
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 = I(), r = void 0;
4539
+ var n = z(), r = void 0;
4540
4540
  try {
4541
4541
  /* istanbul ignore next */
4542
- (typeof define != "function" || !define.amd) && (r = Pn().SourceNode);
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
- })), In = /* @__PURE__ */ k(((e, t) => {
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 = fn(), i = n(L()), a = I(), o = n(Fn());
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
- })), Ln = /* @__PURE__ */ ge((/* @__PURE__ */ k(((e, t) => {
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(_n()), i = n(vn()), a = Cn(), o = wn(), s = n(In()), c = n(bn()), l = n(gn()), u = r.default.create;
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
- Ln.Utils.escapeExpression = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
5145
- var Rn = "language", z = Se((e) => ({
5144
+ Un.Utils.escapeExpression = (e) => String(e ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
5145
+ var Wn = "language", H = Oe((e) => ({
5146
5146
  language: "en",
5147
5147
  setLanguage: (t) => {
5148
- e({ language: t }), localStorage.setItem(Rn, t);
5149
- }
5150
- })), zn = (e) => typeof e == "object" && !!e && "one" in e && "many" in e && typeof e.one == "string" && typeof e.many == "string", Bn = (e, t) => t === 1 ? e.one : e.many;
5151
- function Vn(e) {
5152
- let { language: t, setLanguage: n } = z(), r = l(e), i = c(() => r.current[t], [t]), o = c(() => r.current.en, []), u = a((e) => Qt(i, e, Qt(o, e)), [i, o]), d = a((e, t) => {
5153
- let n = `!!! ${e} !!!`, r = u(e);
5154
- return zn(r) && t && typeof t.count == "number" && (r = Bn(r, t.count)), r === void 0 || typeof r != "string" ? (console.error(`Missing translation for key: ${e}`), n) : Ln.compile(r)(t);
5155
- }, [u]), f = a((e, t) => {
5156
- let n = u(e);
5157
- return n !== void 0 && (typeof n == "string" || zn(n) || t?.succeedIfKeyIsObject && typeof n == "object");
5158
- }, [u]), p = (e) => {
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) && !zn(i) ? n(i, a) : t.push(a);
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 Hn() {
5190
- let e = localStorage.getItem(Rn), t = sessionStorage.getItem(Rn), n = navigator.language;
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
- z.getState().setLanguage(r);
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 B(e, t, n) {
5200
+ function Yn(e, t, n) {
5198
5201
  return parseInt(e.substr(t, n), 16);
5199
5202
  }
5200
- function Un(e) {
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 Wn(e, t, n) {
5204
- return n = n < 0 ? n + 6 : n > 6 ? n - 6 : n, Un(255 * (n < 1 ? e + (t - e) * n : n < 3 ? t : n < 4 ? e + (t - e) * (4 - n) : e));
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 Gn(e) {
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 Kn(e, t, n) {
5219
+ function $n(e, t, n) {
5217
5220
  let r;
5218
5221
  if (t == 0) {
5219
- let e = Un(n * 255);
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 = Wn(a, i, e * 6 + 2) + Wn(a, i, e * 6) + Wn(a, i, e * 6 - 2);
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 V(e, t, n) {
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, Kn(e, t, n);
5240
+ return n = n < .5 ? n * r * 2 : r + (n - .5) * (1 - r) * 2, $n(e, t, n);
5238
5241
  }
5239
- var qn = typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : {}, Jn = {
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
- }, Yn = {};
5243
- function Xn(e, t) {
5244
- let n = typeof e == "object" && e || Yn[Jn.n] || qn[Jn.V] || {}, r = n.lightness || {}, i = n.saturation || {}, a = "color" in i ? i.color : i, o = i.grayscale, s = n.backColor, c = n.padding;
5245
+ }, 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: Gn(s),
5264
+ G: Qn(s),
5262
5265
  X: typeof e == "number" ? e : typeof c == "number" ? c : t
5263
5266
  };
5264
5267
  }
5265
- var Zn = class {
5268
+ var ar = class {
5266
5269
  constructor(e, t) {
5267
5270
  this.x = e, this.y = t;
5268
5271
  }
5269
- }, Qn = class {
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 Zn(i - t - (r || 0), this.t + e) : o === 2 ? new Zn(i - e - (n || 0), a - t - (r || 0)) : o === 3 ? new Zn(this.q + t, a - e - (n || 0)) : new Zn(this.q + e, this.t + t);
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
- }, $n = new Qn(0, 0, 0, 0), er = class {
5280
+ }, sr = new or(0, 0, 0, 0), cr = class {
5278
5281
  constructor(e) {
5279
- this.J = e, this.u = $n;
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 tr(e, t, n, r) {
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 nr(e, t, n) {
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 rr(e, t) {
5372
+ function dr(e, t) {
5370
5373
  return e = t.W(e), [
5371
- V(e, t.D, t.F(0)),
5372
- V(e, t.o, t.p(.5)),
5373
- V(e, t.D, t.F(1)),
5374
- V(e, t.o, t.p(1)),
5375
- V(e, t.o, t.p(0))
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 ir(e, t, n) {
5379
- let r = Xn(n, .08);
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 er(e), s = 0 | i / 4, c = 0 | a + i / 2 - s * 2, l = 0 | a + i / 2 - s * 2;
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 = B(t, i, 1), m = a ? B(t, a, 1) : 0;
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 Qn(c + u[e][0] * s, l + u[e][1] * s, s, m++ % 4), r(p, o, s, e);
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 = rr(B(t, -7) / 268435455, r), f = [], p;
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 = B(t, 8 + e, 1) % d.length, (m([0, 4]) || m([2, 3])) && (p = 1), f.push(p);
5397
- u(0, nr, 2, 3, [
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, nr, 4, 5, [
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, tr, 1, null, [
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 ar(e) {
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 or(e) {
5440
+ function mr(e) {
5438
5441
  return /^[0-9a-f]{11,}$/i.test(e) && e;
5439
5442
  }
5440
- function sr(e) {
5441
- return ar(e == null ? "" : "" + e);
5443
+ function hr(e) {
5444
+ return pr(e == null ? "" : "" + e);
5442
5445
  }
5443
5446
  typeof document < "u" && document.querySelectorAll.bind(document);
5444
- function H(e) {
5447
+ function U(e) {
5445
5448
  return (e * 10 + .5 | 0) / 10;
5446
5449
  }
5447
- var cr = class {
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") + H(e[n].x) + " " + H(e[n].y);
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 = H(t / 2), a = H(t), o = "a" + i + "," + i + " 0 1," + r + " ";
5458
- this.v += "M" + H(e.x) + " " + H(e.y + t / 2) + o + a + ",0" + o + -a + ",0";
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
- }, lr = class {
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] ? B(t[2], 0) / 255 : 1;
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 cr());
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
- }, ur = {
5485
+ }, vr = {
5483
5486
  R: "http://www.w3.org/2000/svg",
5484
5487
  S: "width",
5485
5488
  T: "height"
5486
- }, dr = class {
5489
+ }, yr = class {
5487
5490
  constructor(e) {
5488
- this.k = e, this.C = "<svg xmlns=\"" + ur.R + "\" width=\"" + e + "\" height=\"" + e + "\" viewBox=\"0 0 " + e + " " + e + "\">";
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 fr(e, t, n) {
5501
- let r = new dr(t);
5502
- return ir(new lr(r), or(e) || sr(e), n), r.toString();
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.14.0_react@19.2.6/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs
5506
- var pr = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), mr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), hr = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), gr = (e) => {
5507
- let t = hr(e);
5508
+ //#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
- }, _r = {
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
- }, vr = (e) => {
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
- }, yr = n({}), br = () => o(yr), xr = i(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: i, className: a = "", children: o, iconNode: s, ...c }, l) => {
5523
- let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = br() ?? {}, h = i ?? f ? Number(n ?? d) * 24 / Number(t ?? u) : n ?? d;
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
- ..._r,
5527
- width: t ?? u ?? _r.width,
5528
- height: t ?? u ?? _r.height,
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: pr("lucide", m, a),
5532
- ...!o && !vr(c) && { "aria-hidden": "true" },
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
- }), Sr = (e, t) => {
5536
- let n = i(({ className: n, ...i }, a) => r(xr, {
5538
+ }), W = (e, t) => {
5539
+ let n = i(({ className: n, ...i }, a) => r(kr, {
5537
5540
  ref: a,
5538
5541
  iconNode: t,
5539
- className: pr(`lucide-${mr(gr(e))}`, `lucide-${e}`, n),
5542
+ className: xr(`lucide-${Sr(wr(e))}`, `lucide-${e}`, n),
5540
5543
  ...i
5541
5544
  }));
5542
- return n.displayName = gr(e), n;
5543
- }, Cr = Sr("message-circle", [["path", {
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
- }]]), wr = Sr("search", [["path", {
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
- }]]), Tr = Sr("triangle-alert", [
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
- ]), Er = n({});
5568
- function Dr({ children: e, onStartDirectMessage: t }) {
5569
- return /* @__PURE__ */ D(Er.Provider, {
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 Or() {
5575
- return o(Er);
5611
+ function Rr() {
5612
+ return o(Ir);
5576
5613
  }
5577
- var kr = {
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
- }, Ar = {
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 jr({ user: e, description: t, className: n, onStartDirectMessage: r, variant: i = "full" }) {
5591
- let { t: o } = Vn({
5592
- en: kr,
5593
- de: Ar
5594
- }), s = Or(), l = !e || !!e?.deletedAt, u = c(() => {
5595
- if (l) return;
5596
- let t = fr(e?.id || "unknown", 100);
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
- }, [l, e]), h = e?.username || o("unknown"), g = a(() => {
5599
- r ? r(e) : s.onStartDirectMessage(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
- s
5604
- ]), _ = !!e && !!g, v = /* @__PURE__ */ O(d, { children: [u ? /* @__PURE__ */ D(p, {
5605
- src: u,
5606
- alt: h
5607
- }) : null, /* @__PURE__ */ D(f, {
5608
- color: l ? "warning" : void 0,
5609
- children: l ? /* @__PURE__ */ D(Tr, { className: "w-4 h-4" }) : h.slice(0, 2).toUpperCase()
5610
- })] }), y = /* @__PURE__ */ O("div", {
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: [v, /* @__PURE__ */ O("div", {
5649
+ children: [y, /* @__PURE__ */ A("div", {
5613
5650
  className: "flex flex-col",
5614
- children: [/* @__PURE__ */ O("div", {
5615
- className: "flex flex-row items-center",
5616
- children: [/* @__PURE__ */ D("span", {
5617
- className: "text-sm font-medium",
5618
- children: l ? /* @__PURE__ */ D("del", { children: h }) : h
5619
- }), /* @__PURE__ */ D(m, {
5620
- isIconOnly: !0,
5621
- variant: "ghost",
5622
- size: "sm",
5623
- onPress: g,
5624
- children: /* @__PURE__ */ D(Cr, {})
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__ */ D("span", {
5661
+ }), t && /* @__PURE__ */ k("span", {
5627
5662
  className: "text-xs text-muted-foreground",
5628
- children: l ? /* @__PURE__ */ D("del", { children: t }) : t
5663
+ children: u ? /* @__PURE__ */ k("del", { children: t }) : t
5629
5664
  })]
5630
5665
  })]
5631
- }), b = i === "mini" ? v : y;
5632
- return _ ? /* @__PURE__ */ O(S, { children: [/* @__PURE__ */ D(S.Trigger, {
5633
- className: "inline-flex w-fit cursor-pointer rounded-md outline-none focus-visible:ring-2",
5634
- children: b
5635
- }), /* @__PURE__ */ D(S.Content, { children: /* @__PURE__ */ O(S.Dialog, {
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: [y, !l && /* @__PURE__ */ O(m, {
5672
+ children: [b, !u && /* @__PURE__ */ A(h, {
5638
5673
  variant: "primary",
5639
5674
  size: "sm",
5640
5675
  className: "w-full",
5641
- onPress: g,
5642
- children: [/* @__PURE__ */ D(Cr, { className: "h-4 w-4" }), o("startDirectMessage")]
5676
+ onPress: _,
5677
+ children: [/* @__PURE__ */ k(jr, { className: "h-4 w-4" }), s("startDirectMessage")]
5643
5678
  })]
5644
- }) })] }) : b;
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 Mr(e) {
5649
- let { showTime: t = !0, showDate: n = !0, showSeconds: r = !1 } = e ?? {}, { language: i } = z(), o = c(() => {
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 Nr(e, t) {
5665
- return Mr(t)(e);
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 Pr(e) {
5670
- let { language: t } = z(), n = a((e) => {
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 c(() => n(e), [e, n]);
5738
+ return l(() => n(e), [e, n]);
5691
5739
  }
5692
5740
  //#endregion
5693
- //#region ../../node_modules/.pnpm/react-router@7.15.1_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/react-router/dist/development/chunk-4N6VE7H7.mjs
5694
- function U(e, t) {
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 W(e, t) {
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 Fr({ pathname: e = "/", search: t = "", hash: n = "" }) {
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 G(e) {
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 Ir(e, t, n = "/") {
5719
- return Lr(e, t, n, !1);
5770
+ function Zr(e, t, n = "/") {
5771
+ return Qr(e, t, n, !1);
5720
5772
  }
5721
- function Lr(e, t, n, r, i) {
5722
- let a = K((typeof t == "string" ? G(t) : t).pathname || "/", n);
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 ?? zr(e), s = null, c = ti(a);
5725
- for (let e = 0; s == null && e < o.length; ++e) s = Qr(o[e], c, r);
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 Rr(e, t) {
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 zr(e) {
5740
- let t = Br(e);
5741
- return Hr(t), t;
5791
+ function ei(e) {
5792
+ let t = ti(e);
5793
+ return ri(t), t;
5742
5794
  }
5743
- function Br(e, t = [], n = [], r = "", i = !1) {
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
- U(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
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 = q([r, c.relativePath]), u = n.concat(c);
5756
- e.children && e.children.length > 0 && (U(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), Br(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({
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: Xr(l, e.index),
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 Vr(e.path)) a(e, t, !0, n);
5823
+ else for (let n of ni(e.path)) a(e, t, !0, n);
5765
5824
  }), t;
5766
5825
  }
5767
- function Vr(e) {
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 = Vr(r.join("/")), s = [];
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 Hr(e) {
5776
- e.sort((e, t) => e.score === t.score ? Zr(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
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 Ur = /^:[\w-]+$/, Wr = 3, Gr = 2, Kr = 1, qr = 10, Jr = -2, Yr = (e) => e === "*";
5779
- function Xr(e, t) {
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(Yr) && (r += Jr), t && (r += Gr), n.filter((e) => !Yr(e)).reduce((e, t) => e + (Ur.test(t) ? Wr : t === "" ? Kr : qr), r);
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 Zr(e, t) {
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 Qr(e, t, n = !1) {
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 = $r({
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), d = s.route;
5794
- if (!u && c && n && !r[r.length - 1].route.index && (u = $r({
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)), !u) return null;
5799
- Object.assign(i, u.params), o.push({
5857
+ }, l)), !d) return null;
5858
+ Object.assign(i, d.params), o.push({
5800
5859
  params: i,
5801
- pathname: q([a, u.pathname]),
5802
- pathnameBase: di(q([a, u.pathnameBase])),
5803
- route: d
5804
- }), u.pathnameBase !== "/" && (a = q([a, u.pathnameBase]));
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 $r(e, t) {
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] = ei(e.path, e.caseSensitive, e.end), i = t.match(n);
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 ei(e, t = !1, n = !0) {
5832
- W(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
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 ti(e) {
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 W(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
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 K(e, t) {
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
- var ni = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
5859
- function ri(e, t = "/") {
5860
- let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? G(e) : e, a;
5861
- return n ? (n = li(n), a = n.startsWith("/") ? ii(n.substring(1), "/") : ii(n, t)) : a = t, {
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: fi(r),
5864
- hash: pi(i)
5925
+ search: Di(r),
5926
+ hash: Oi(i)
5865
5927
  };
5866
5928
  }
5867
- function ii(e, t) {
5868
- let n = ui(t).split("/");
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 ai(e, t, n, r) {
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 oi(e) {
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 si(e) {
5880
- let t = oi(e);
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 ci(e, t, n, r = !1) {
5945
+ function Ci(e, t, n, r = !1) {
5884
5946
  let i;
5885
- typeof e == "string" ? i = G(e) : (i = { ...e }, U(!i.pathname || !i.pathname.includes("?"), ai("?", "pathname", "search", i)), U(!i.pathname || !i.pathname.includes("#"), ai("#", "pathname", "hash", i)), U(!i.search || !i.search.includes("#"), ai("#", "search", "hash", i)));
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 = ri(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
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 li = (e) => e.replace(/\/\/+/g, "/"), q = (e) => li(e.join("/")), ui = (e) => e.replace(/\/+$/, ""), di = (e) => ui(e).replace(/^\/*/, "/"), fi = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, pi = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, mi = class {
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 hi(e) {
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 gi(e) {
5909
- return q(e.map((e) => e.route.path).filter(Boolean)) || "/";
5970
+ function ji(e) {
5971
+ return J(e.map((e) => e.route.path).filter(Boolean)) || "/";
5910
5972
  }
5911
- var _i = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
5912
- function vi(e, t) {
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" || !ni.test(n)) return {
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 (_i) try {
5921
- let e = new URL(window.location.href), r = n.startsWith("//") ? new URL(e.protocol + n) : new URL(n), a = K(r.pathname, t);
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
- W(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
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 yi = [
5995
+ var Pi = [
5934
5996
  "POST",
5935
5997
  "PUT",
5936
5998
  "PATCH",
5937
5999
  "DELETE"
5938
6000
  ];
5939
- new Set(yi);
5940
- var bi = ["GET", ...yi];
5941
- new Set(bi);
5942
- var J = e.createContext(null);
5943
- J.displayName = "DataRouter";
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 = "DataRouterState";
5946
- var xi = e.createContext(!1);
5947
- function Si() {
5948
- return e.useContext(xi);
5949
- }
5950
- var Ci = e.createContext({ isTransitioning: !1 });
5951
- Ci.displayName = "ViewTransition";
5952
- var wi = e.createContext(/* @__PURE__ */ new Map());
5953
- wi.displayName = "Fetchers";
5954
- var Ti = e.createContext(null);
5955
- Ti.displayName = "Await";
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 Z = e.createContext(null);
5959
- Z.displayName = "Location";
5960
- var Q = e.createContext({
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
- Q.displayName = "Route";
5966
- var Ei = e.createContext(null);
5967
- Ei.displayName = "RouteError";
5968
- var Di = "REACT_ROUTER_ERROR", Oi = "REDIRECT", ki = "ROUTE_ERROR_RESPONSE";
5969
- function Ai(e) {
5970
- if (e.startsWith(`${Di}:${Oi}:{`)) try {
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 ji(e) {
5976
- if (e.startsWith(`${Di}:${ki}:{`)) try {
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 mi(t.status, t.statusText, t.data);
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 Mi(t, { relative: n } = {}) {
5982
- U(Ni(), "useHref() may be used only in the context of a <Router> component.");
5983
- let { basename: r, navigator: i } = e.useContext(X), { hash: a, pathname: o, search: s } = Ri(t, { relative: n }), c = o;
5984
- return r !== "/" && (c = o === "/" ? r : q([r, o])), i.createHref({
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 Ni() {
5991
- return e.useContext(Z) != null;
6071
+ function Qi() {
6072
+ return e.useContext(Wi) != null;
5992
6073
  }
5993
- function $() {
5994
- return U(Ni(), "useLocation() may be used only in the context of a <Router> component."), e.useContext(Z).location;
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 Pi = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
5997
- function Fi(t) {
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 Ii() {
6001
- let { isDataRoute: t } = e.useContext(Q);
6002
- return t ? na() : Li();
6081
+ function ta() {
6082
+ let { isDataRoute: t } = e.useContext(Z);
6083
+ return t ? xa() : na();
6003
6084
  }
6004
- function Li() {
6005
- U(Ni(), "useNavigate() may be used only in the context of a <Router> component.");
6006
- let t = e.useContext(J), { basename: n, navigator: r } = e.useContext(X), { matches: i } = e.useContext(Q), { pathname: a } = $(), o = JSON.stringify(si(i)), s = e.useRef(!1);
6007
- return Fi(() => {
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 (W(s.current, Pi), !s.current) return;
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 = ci(e, JSON.parse(o), a, i.relative === "path");
6016
- t == null && n !== "/" && (c.pathname = c.pathname === "/" ? n : q([n, c.pathname])), (i.replace ? r.replace : r.push)(c, i.state, i);
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 Ri(t, { relative: n } = {}) {
6027
- let { matches: r } = e.useContext(Q), { pathname: i } = $(), a = JSON.stringify(si(r));
6028
- return e.useMemo(() => ci(t, JSON.parse(a), i, n === "path"), [
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 zi(t, n, r) {
6036
- U(Ni(), "useRoutes() may be used only in the context of a <Router> component.");
6037
- let { navigator: i } = e.useContext(X), { matches: a } = e.useContext(Q), o = a[a.length - 1], s = o ? o.params : {}, c = o ? o.pathname : "/", l = o ? o.pathnameBase : "/", u = o && o.route;
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
- ia(c, !u || e.endsWith("*") || e.endsWith("*?"), `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
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 = $(), f;
6125
+ let d = Q(), f;
6045
6126
  if (n) {
6046
- let e = typeof n == "string" ? G(n) : n;
6047
- U(l === "/" || e.pathname?.startsWith(l), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`), f = e;
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 })) : Ir(t, { pathname: m });
6055
- W(u || h != null, `No routes matched location "${f.pathname}${f.search}${f.hash}" `), W(h == null || h[h.length - 1].route.element !== void 0 || h[h.length - 1].route.Component !== void 0 || h[h.length - 1].route.lazy !== void 0, `Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);
6056
- let g = Ki(h && h.map((e) => Object.assign({}, e, {
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: q([l, i.encodeLocation ? i.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
6059
- pathnameBase: e.pathnameBase === "/" ? l : q([l, i.encodeLocation ? i.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
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(Z.Provider, { value: {
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 Bi() {
6075
- let t = ta(), n = hi(t) ? `${t.status} ${t.statusText}` : t instanceof Error ? t.message : JSON.stringify(t), r = t instanceof Error ? t.stack : null, i = "rgba(200,200,200, 0.5)", a = {
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 Vi = /* @__PURE__ */ e.createElement(Bi, null), Hi = class extends e.Component {
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 = ji(t.digest);
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(Q.Provider, { value: this.props.routeContext }, /* @__PURE__ */ e.createElement(Ei.Provider, {
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(Wi, { error: t }, n) : n;
6200
+ return this.context ? /* @__PURE__ */ e.createElement(la, { error: t }, n) : n;
6120
6201
  }
6121
6202
  };
6122
- Hi.contextType = xi;
6123
- var Ui = /* @__PURE__ */ new WeakMap();
6124
- function Wi({ children: t, error: n }) {
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 = Ai(n.digest);
6208
+ let t = Yi(n.digest);
6128
6209
  if (t) {
6129
- let i = Ui.get(n);
6210
+ let i = ca.get(n);
6130
6211
  if (i) throw i;
6131
- let a = vi(t.location, r);
6132
- if (_i && !Ui.get(n)) if (a.isExternal || t.reloadDocument) window.location.href = a.absoluteURL || a.to;
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 Ui.set(n, e), e;
6217
+ throw ca.set(n, e), e;
6136
6218
  }
6137
6219
  return /* @__PURE__ */ e.createElement("meta", {
6138
6220
  httpEquiv: "refresh",
6139
- content: `0;url=${a.absoluteURL || a.to}`
6221
+ content: `0;url=${o}`
6140
6222
  });
6141
6223
  }
6142
6224
  }
6143
6225
  return t;
6144
6226
  }
6145
- function Gi({ routeContext: t, match: n, children: r }) {
6146
- let i = e.useContext(J);
6147
- return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ e.createElement(Q.Provider, { value: t }, r);
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 Ki(t, n = [], r) {
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
- U(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`), a = a.slice(0, Math.min(a.length, e + 1));
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: gi(i.matches),
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 || Vi, s && (c < 0 && l === 0 ? (ia("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), f = !0, m = null) : c === l && (f = !0, m = r.route.hydrateFallbackElement || null)));
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(Gi, {
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(Hi, {
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 qi(e) {
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 Ji(t) {
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 U(n, qi(t)), n;
6301
+ return G(n, fa(t)), n;
6224
6302
  }
6225
- function Xi(t) {
6226
- let n = e.useContext(Q);
6227
- return U(n, qi(t)), n;
6303
+ function ma(t) {
6304
+ let n = e.useContext(Ri);
6305
+ return G(n, fa(t)), n;
6228
6306
  }
6229
- function Zi(e) {
6230
- let t = Xi(e), n = t.matches[t.matches.length - 1];
6231
- return U(n.route.id, `${e} can only be used on routes that contain a unique "id"`), n.route.id;
6307
+ function ha(t) {
6308
+ let n = e.useContext(Z);
6309
+ return G(n, fa(t)), n;
6232
6310
  }
6233
- function Qi() {
6234
- return Zi("useRouteId");
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 $i() {
6237
- let t = Yi("useNavigation");
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 ea() {
6244
- let { matches: t, loaderData: n } = Yi("useMatches");
6245
- return e.useMemo(() => t.map((e) => Rr(e, n)), [t, n]);
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 ta() {
6248
- let t = e.useContext(Ei), n = Yi("useRouteError"), r = Zi("useRouteError");
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 na() {
6252
- let { router: t } = Ji("useNavigate"), n = Zi("useNavigate"), r = e.useRef(!1);
6253
- return Fi(() => {
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
- W(r.current, Pi), r.current && (typeof e == "number" ? await t.navigate(e) : await t.navigate(e, {
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 ra = {};
6263
- function ia(e, t, n) {
6264
- !t && !ra[e] && (ra[e] = !0, W(!1, n));
6344
+ var Sa = {};
6345
+ function Ca(e, t, n) {
6346
+ !t && !Sa[e] && (Sa[e] = !0, K(!1, n));
6265
6347
  }
6266
- e.memo(aa);
6267
- function aa({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError: a }) {
6268
- return zi(e, void 0, {
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 oa({ basename: t = "/", children: n = null, location: r, navigationType: i = "POP", navigator: a, static: o = !1, useTransitions: s }) {
6277
- U(!Ni(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
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 = G(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 = K(u, c);
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 W(g != null, `<Router basename="${c}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`), g == null ? null : /* @__PURE__ */ e.createElement(X.Provider, { value: l }, /* @__PURE__ */ e.createElement(Z.Provider, {
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 sa = "get", ca = "application/x-www-form-urlencoded";
6321
- function la(e) {
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 ua(e) {
6325
- return la(e) && e.tagName.toLowerCase() === "button";
6406
+ function ka(e) {
6407
+ return Oa(e) && e.tagName.toLowerCase() === "button";
6326
6408
  }
6327
- function da(e) {
6328
- return la(e) && e.tagName.toLowerCase() === "form";
6409
+ function Aa(e) {
6410
+ return Oa(e) && e.tagName.toLowerCase() === "form";
6329
6411
  }
6330
- function fa(e) {
6331
- return la(e) && e.tagName.toLowerCase() === "input";
6412
+ function ja(e) {
6413
+ return Oa(e) && e.tagName.toLowerCase() === "input";
6332
6414
  }
6333
- function pa(e) {
6415
+ function Ma(e) {
6334
6416
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
6335
6417
  }
6336
- function ma(e, t) {
6337
- return e.button === 0 && (!t || t === "_self") && !pa(e);
6418
+ function Na(e, t) {
6419
+ return e.button === 0 && (!t || t === "_self") && !Ma(e);
6338
6420
  }
6339
- var ha = null;
6340
- function ga() {
6341
- if (ha === null) try {
6342
- new FormData(document.createElement("form"), 0), ha = !1;
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
- ha = !0;
6426
+ Pa = !0;
6345
6427
  }
6346
- return ha;
6428
+ return Pa;
6347
6429
  }
6348
- var _a = /* @__PURE__ */ new Set([
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 va(e) {
6354
- return e != null && !_a.has(e) ? (W(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ca}"`), null) : e;
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 ya(e, t) {
6438
+ function Ra(e, t) {
6357
6439
  let n, r, i, a, o;
6358
- if (da(e)) {
6440
+ if (Aa(e)) {
6359
6441
  let o = e.getAttribute("action");
6360
- r = o ? K(o, t) : null, n = e.getAttribute("method") || sa, i = va(e.getAttribute("enctype")) || ca, a = new FormData(e);
6361
- } else if (ua(e) || fa(e) && (e.type === "submit" || e.type === "image")) {
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 ? K(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") || sa, i = va(e.getAttribute("formenctype")) || va(o.getAttribute("enctype")) || ca, a = new FormData(o, e), !ga()) {
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 (la(e)) throw Error("Cannot submit element that is not <form>, <button>, or <input type=\"submit|image\">");
6373
- else n = sa, r = null, i = ca, o = e;
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 ba = {
6465
+ var za = {
6384
6466
  "&": "\\u0026",
6385
6467
  ">": "\\u003e",
6386
6468
  "<": "\\u003c",
6387
6469
  "\u2028": "\\u2028",
6388
6470
  "\u2029": "\\u2029"
6389
- }, xa = /[&><\u2028\u2029]/g;
6390
- function Sa(e) {
6391
- return e.replace(xa, (e) => ba[e]);
6471
+ }, Ba = /[&><\u2028\u2029]/g;
6472
+ function Va(e) {
6473
+ return e.replace(Ba, (e) => za[e]);
6392
6474
  }
6393
- function Ca(e, t) {
6475
+ function Ha(e, t) {
6394
6476
  if (e === !1 || e == null) throw Error(t);
6395
6477
  }
6396
- function wa(e, t, n, r) {
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 && K(i.pathname, t) === "/" ? i.pathname = `${ui(t)}/_root.${r}` : i.pathname = `${ui(i.pathname)}.${r}`, i;
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 Ta(e, t) {
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 Ea(e) {
6495
+ function Ga(e) {
6414
6496
  return e != null && typeof e.page == "string";
6415
6497
  }
6416
- function Da(e) {
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 Oa(e, t, n) {
6420
- return Na((await Promise.all(e.map(async (e) => {
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 Ta(r, n);
6505
+ let e = await Wa(r, n);
6424
6506
  return e.links ? e.links() : [];
6425
6507
  }
6426
6508
  return [];
6427
- }))).flat(1).filter(Da).filter((e) => e.rel === "stylesheet" || e.rel === "preload").map((e) => e.rel === "stylesheet" ? {
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 ka(e, t, n, r, i, a) {
6437
- let o = (e, t) => n[t] ? e.route.id !== n[t].route.id : !0, s = (e, t) => n[t].pathname !== e.pathname || n[t].route.path?.endsWith("*") && n[t].params["*"] !== e.params["*"];
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 Aa(e, t, { includeHydrateFallback: n } = {}) {
6456
- return ja(e.map((e) => {
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 ja(e) {
6545
+ function Xa(e) {
6464
6546
  return [...new Set(e)];
6465
6547
  }
6466
- function Ma(e) {
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 Na(e, t) {
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 && !Ea(i) && i.as === "script" && i.href && r.has(i.href)) return e;
6475
- let a = JSON.stringify(Ma(i));
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 Pa() {
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 Ca(t, "You must render this element inside a <DataRouterStateContext.Provider> element"), t;
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 Ia = e.createContext(void 0);
6491
- Ia.displayName = "FrameworkContext";
6492
- function La() {
6493
- let t = e.useContext(Ia);
6494
- return Ca(t, "You must render this element inside a <HydratedRouter> element"), t;
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 Ra(t, n) {
6497
- let r = e.useContext(Ia), [i, a] = e.useState(!1), [o, s] = e.useState(!1), { onFocus: c, onBlur: l, onMouseEnter: u, onMouseLeave: d, onTouchStart: f } = n, p = e.useRef(null);
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: za(c, m),
6529
- onBlur: za(l, h),
6530
- onMouseEnter: za(u, m),
6531
- onMouseLeave: za(d, h),
6532
- onTouchStart: za(f, m)
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 za(e, t) {
6626
+ function $(e, t) {
6545
6627
  return (n) => {
6546
6628
  e && e(n), n.defaultPrevented || t(n);
6547
6629
  };
6548
6630
  }
6549
- function Ba({ page: t, ...n }) {
6550
- let r = Si(), { router: i } = Pa(), a = e.useMemo(() => Ir(i.routes, t, i.basename), [
6551
- i.routes,
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
- i.basename
6635
+ a.basename
6554
6636
  ]);
6555
- return a ? r ? /* @__PURE__ */ e.createElement(Ha, {
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: a,
6642
+ matches: o,
6558
6643
  ...n
6559
- }) : /* @__PURE__ */ e.createElement(Ua, {
6644
+ }) : /* @__PURE__ */ e.createElement(so, {
6560
6645
  page: t,
6561
- matches: a,
6646
+ matches: o,
6562
6647
  ...n
6563
- }) : null;
6648
+ })) : null;
6564
6649
  }
6565
- function Va(t) {
6566
- let { manifest: n, routeModules: r } = La(), [i, a] = e.useState([]);
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 Oa(t, n, r).then((t) => {
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 Ha({ page: t, matches: n, ...r }) {
6581
- let i = $(), { future: a } = La(), { basename: o } = Pa(), s = e.useMemo(() => {
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 = wa(t, o, a.unstable_trailingSlashAwareDataRequests, "rsc"), r = !1, s = [];
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.unstable_trailingSlashAwareDataRequests,
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 Ua({ page: t, matches: n, ...r }) {
6602
- let i = $(), { future: a, manifest: o, routeModules: s } = La(), { basename: c } = Pa(), { loaderData: l, matches: u } = Fa(), d = e.useMemo(() => ka(t, n, u, o, i, "data"), [
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(() => ka(t, n, u, o, i, "assets"), [
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 = wa(t, c, a.unstable_trailingSlashAwareDataRequests, "data");
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.unstable_trailingSlashAwareDataRequests,
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(() => Aa(f, o), [f, o]), h = Va(f);
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 Wa(...e) {
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 Ga = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
6745
+ var lo = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
6661
6746
  try {
6662
- Ga && (window.__reactRouterVersion = "7.15.1");
6747
+ lo && (window.__reactRouterVersion = "7.18.1");
6663
6748
  } catch {}
6664
- function Ka({ basename: t, children: n, history: r, useTransitions: i }) {
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(oa, {
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
- Ka.displayName = "unstable_HistoryRouter";
6681
- var qa = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ja = e.forwardRef(function({ onClick: t, discover: n = "render", prefetch: r = "none", relative: i, reloadDocument: a, replace: o, mask: s, state: c, target: l, to: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) {
6682
- let { basename: g, navigator: _, useTransitions: v } = e.useContext(X), y = typeof u == "string" && qa.test(u), b = vi(u, g);
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 = Mi(u, { relative: i }), S = $(), C = null;
6769
+ let x = Zi(u, { relative: i }), S = Q(), C = null;
6685
6770
  if (s) {
6686
- let e = ci(s, [], S.mask ? S.mask.pathname : "/", !0);
6687
- g !== "/" && (e.pathname = e.pathname === "/" ? g : q([g, e.pathname])), C = _.createHref(e);
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 [w, T, E] = Ra(r, m), ee = to(u, {
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 te(e) {
6701
- t && t(e), e.defaultPrevented || ee(e);
6785
+ function ie(e) {
6786
+ t && t(e), e.defaultPrevented || re(e);
6702
6787
  }
6703
- let ne = !(b.isExternal || a), re = /* @__PURE__ */ e.createElement("a", {
6788
+ let ae = !(b.isExternal || a), w = /* @__PURE__ */ e.createElement("a", {
6704
6789
  ...m,
6705
- ...E,
6706
- href: (ne ? C : void 0) || b.absoluteURL || x,
6707
- onClick: ne ? te : t,
6708
- ref: Wa(h, T),
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 w && !y ? /* @__PURE__ */ e.createElement(e.Fragment, null, re, /* @__PURE__ */ e.createElement(Ba, { page: x })) : re;
6797
+ return ee && !y ? /* @__PURE__ */ e.createElement(e.Fragment, null, w, /* @__PURE__ */ e.createElement(io, { page: x })) : w;
6713
6798
  });
6714
- Ja.displayName = "Link";
6715
- var Ya = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n = !1, className: r = "", end: i = !1, style: a, to: o, viewTransition: s, children: c, ...l }, u) {
6716
- let d = Ri(o, { relative: l.relative }), f = $(), p = e.useContext(Y), { navigator: m, basename: h } = e.useContext(X), g = p != null && fo(d) && s === !0, _ = m.encodeLocation ? m.encodeLocation(d).pathname : d.pathname, v = f.pathname, y = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
6717
- n || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && h && (y = K(y, h) || y);
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
- }, w = x ? t : void 0, T;
6723
- T = typeof r == "function" ? r(C) : [
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 E = typeof a == "function" ? a(C) : a;
6730
- return /* @__PURE__ */ e.createElement(Ja, {
6814
+ let ne = typeof a == "function" ? a(C) : a;
6815
+ return /* @__PURE__ */ e.createElement(fo, {
6731
6816
  ...l,
6732
- "aria-current": w,
6733
- className: T,
6817
+ "aria-current": ee,
6818
+ className: te,
6734
6819
  ref: u,
6735
- style: E,
6820
+ style: ne,
6736
6821
  to: o,
6737
6822
  viewTransition: s
6738
6823
  }, typeof c == "function" ? c(C) : c);
6739
6824
  });
6740
- Ya.displayName = "NavLink";
6741
- var Xa = e.forwardRef(({ discover: t = "render", fetcherKey: n, navigate: r, reloadDocument: i, replace: a, state: o, method: s = sa, action: c, onSubmit: l, relative: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) => {
6742
- let { useTransitions: g } = e.useContext(X), _ = io(), v = ao(c, { relative: u }), y = s.toLowerCase() === "get" ? "get" : "post", b = typeof c == "string" && qa.test(c);
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
- Xa.displayName = "Form";
6768
- function Za({ getKey: t, storageKey: n, ...r }) {
6769
- let i = e.useContext(Ia), { basename: a } = e.useContext(X), o = $(), s = ea();
6770
- lo({
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 = co(o, s, a, t);
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})(${Sa(JSON.stringify(n || oo))}, ${Sa(JSON.stringify(c))})` }
6880
+ dangerouslySetInnerHTML: { __html: `(${l})(${Va(JSON.stringify(n || wo))}, ${Va(JSON.stringify(c))})` }
6796
6881
  });
6797
6882
  }
6798
- Za.displayName = "ScrollRestoration";
6799
- function Qa(e) {
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 $a(t) {
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 U(n, Qa(t)), n;
6889
+ return G(n, go(t)), n;
6809
6890
  }
6810
- function to(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: o, relative: s, viewTransition: c, defaultShouldRevalidate: l, useTransitions: u } = {}) {
6811
- let d = Ii(), f = $(), p = Ri(t, { relative: s });
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 (ma(m, n)) {
6898
+ if (Na(m, n)) {
6814
6899
  m.preventDefault();
6815
- let n = r === void 0 ? Fr(f) === Fr(p) : r, h = () => d(t, {
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 no = 0, ro = () => `__${String(++no)}__`;
6843
- function io() {
6844
- let { router: t } = $a("useSubmit"), { basename: n } = e.useContext(X), r = Qi(), i = t.fetch, a = t.navigate;
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 } = ya(e, n);
6847
- t.navigate === !1 ? await i(t.fetcherKey || ro(), r, t.action || o, {
6848
- defaultShouldRevalidate: t.defaultShouldRevalidate,
6849
- preventScrollReset: t.preventScrollReset,
6850
- formData: l,
6851
- body: u,
6852
- formMethod: t.method || s,
6853
- formEncType: t.encType || c,
6854
- flushSync: t.flushSync
6855
- }) : await a(t.action || o, {
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 ao(t, { relative: n } = {}) {
6876
- let { basename: r } = e.useContext(X), i = e.useContext(Q);
6877
- U(i, "useFormAction must be used inside a RouteContext");
6878
- let [a] = i.matches.slice(-1), o = { ...Ri(t || ".", { relative: n }) }, s = $();
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 : q([r, o.pathname])), Fr(o);
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 oo = "react-router-scroll-positions", so = {};
6891
- function co(e, t, n, r) {
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: K(e.pathname, n) || e.pathname
6983
+ pathname: q(e.pathname, n) || e.pathname
6896
6984
  }, t)), i ??= e.key, i;
6897
6985
  }
6898
- function lo({ getKey: t, storageKey: n } = {}) {
6899
- let { router: r } = $a("useScrollRestoration"), { restoreScrollPosition: i, preventScrollReset: a } = eo("useScrollRestoration"), { basename: o } = e.useContext(X), s = $(), c = ea(), l = $i();
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
- }), []), uo(e.useCallback(() => {
6990
+ }), []), Oo(e.useCallback(() => {
6903
6991
  if (l.state === "idle") {
6904
- let e = co(s, c, o, t);
6905
- so[e] = window.scrollY;
6992
+ let e = Eo(s, c, o, t);
6993
+ To[e] = window.scrollY;
6906
6994
  }
6907
6995
  try {
6908
- sessionStorage.setItem(n || oo, JSON.stringify(so));
6996
+ sessionStorage.setItem(n || wo, JSON.stringify(To));
6909
6997
  } catch (e) {
6910
- W(!1, `Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`);
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 || oo);
6923
- e && (so = JSON.parse(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(so, () => window.scrollY, t ? (e, n) => co(e, n, o, t) : void 0);
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
- W(!1, `"${s.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`);
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 uo(t, n) {
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 fo(t, { relative: n } = {}) {
6967
- let r = e.useContext(Ci);
6968
- U(r != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
6969
- let { basename: i } = $a("useViewTransitionState"), a = Ri(t, { relative: n });
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 = K(r.currentLocation.pathname, i) || r.currentLocation.pathname, s = K(r.nextLocation.pathname, i) || r.nextLocation.pathname;
6972
- return $r(a.pathname, s) != null || $r(a.pathname, o) != null;
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 po() {
6977
- let { search: e } = $();
6978
- return c(() => new URLSearchParams(e), [e]);
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 mo(e) {
6983
- let { language: t } = z(), n = c(() => new Intl.NumberFormat(t, e), [t, e]);
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 ho(e) {
6991
- return mo()(e);
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 go(e) {
6996
- let { date: t, options: n, ...r } = e, i = Nr(t, n);
6997
- return /* @__PURE__ */ D("span", {
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 _o({ minutes: e, alternativeText: t = "", ...n }) {
7005
- let r = Pr(e ?? 0);
7006
- return e == null ? /* @__PURE__ */ D("span", {
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__ */ D("span", {
7097
+ }) : /* @__PURE__ */ k("span", {
7010
7098
  ...n,
7011
7099
  children: r
7012
7100
  });
7013
7101
  }
7014
- var vo = {
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
- placeholder: "Search by username or email",
7017
- noUsersFound: "No users found",
7018
- typeToSearch: "Type to search for users"
7019
- }, yo = {
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
- placeholder: "Nach Benutzername oder E-Mail suchen",
7022
- noUsersFound: "Keine Benutzer gefunden",
7023
- typeToSearch: "Tippen Sie, um nach Benutzern zu suchen"
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
- //#endregion
7026
- //#region src/lib/components/user-search/UserSearch.tsx
7027
- function bo(e) {
7028
- let { label: t, placeholder: n, onSelectionChange: r, afterAutocomplete: i, wrapperProps: o, afterSelection: l } = e, { t: d } = Vn({
7029
- en: vo,
7030
- de: yo
7031
- }), [f, p] = u(""), [m, h] = u(null), v = c(() => m == null ? null : Number(m), [m]), S = se({
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
- typeof r == "function" && r(T);
7045
- }, [T, r]);
7046
- let E = a((e) => {
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
- }, [C]), ee = a((e) => {
7052
- p(e), m != null && T && e !== T.username && h(null);
7053
- }, [m, T]);
7054
- return /* @__PURE__ */ O("div", {
7055
- ...o,
7056
- children: [/* @__PURE__ */ O("div", {
7057
- className: "flex gap-2 items-center",
7058
- children: [/* @__PURE__ */ O(g, {
7059
- className: "flex-1",
7060
- items: C,
7061
- selectedKey: m,
7062
- onSelectionChange: E,
7063
- inputValue: f,
7064
- onInputChange: ee,
7065
- menuTrigger: "input",
7066
- allowsEmptyCollection: !0,
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__ */ D(y, { children: t ?? d("label") }),
7069
- /* @__PURE__ */ O(g.InputGroup, { children: [/* @__PURE__ */ D(_, {
7070
- placeholder: n ?? d("placeholder"),
7071
- autoComplete: "off"
7072
- }), /* @__PURE__ */ D(g.Trigger, {})] }),
7073
- /* @__PURE__ */ D(g.Popover, { children: /* @__PURE__ */ D(b, { children: (e) => /* @__PURE__ */ D(x, {
7074
- id: String(e.id),
7075
- textValue: e.username,
7076
- children: /* @__PURE__ */ D(jr, { user: e })
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
- }), i]
7080
- }), /* @__PURE__ */ O("div", {
7081
- className: "flex gap-2 items-center w-full justify-between",
7082
- children: [T && /* @__PURE__ */ D(jr, {
7083
- user: T,
7084
- className: "my-2 mx-2"
7085
- }), l]
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 xo = {
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
- }, So = {
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
- }, Co = ({ children: e }) => /* @__PURE__ */ D("div", {
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 wo(e) {
7114
- let { selection: t, onSelectionChange: n, multiple: r = !0, listClassName: i = "" } = e, [a, o] = u(""), { t: s } = Vn({
7115
- de: xo,
7116
- en: So
7117
- }), { data: c, isLoading: l } = oe({
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__ */ O("div", {
7386
+ return /* @__PURE__ */ A("div", {
7123
7387
  className: "flex flex-col gap-2",
7124
- children: [/* @__PURE__ */ O(ae, {
7388
+ children: [/* @__PURE__ */ A(de, {
7125
7389
  value: a,
7126
7390
  onChange: o,
7127
7391
  className: "w-full",
7128
- children: [/* @__PURE__ */ D(y, { children: s("search.label") }), /* @__PURE__ */ O(v, { children: [
7129
- /* @__PURE__ */ D(v.Prefix, { children: /* @__PURE__ */ D(wr, { className: "size-4 text-muted" }) }),
7130
- /* @__PURE__ */ D(v.Input, { placeholder: s("search.placeholder") }),
7131
- l ? /* @__PURE__ */ D(v.Suffix, { children: /* @__PURE__ */ D(C, { size: "sm" }) }) : null
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__ */ D(ne, {
7397
+ }), /* @__PURE__ */ k(ce, {
7134
7398
  "aria-label": s("table.ariaLabel"),
7135
7399
  className: i,
7136
7400
  style: {
7137
7401
  maxHeight: 387,
7138
7402
  overflowY: "auto"
7139
7403
  },
7140
- children: /* @__PURE__ */ D(ie, { children: /* @__PURE__ */ O(ee, {
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 wo(e) {
7147
7411
  }
7148
7412
  n(Array.from(e).map((e) => Number(e)));
7149
7413
  },
7150
- children: [/* @__PURE__ */ O(te, { children: [/* @__PURE__ */ D(E, {
7414
+ children: [/* @__PURE__ */ A(se, { children: [/* @__PURE__ */ k(D, {
7151
7415
  className: "pr-0 w-0",
7152
- children: r ? /* @__PURE__ */ D(h, {
7416
+ children: r ? /* @__PURE__ */ k(g, {
7153
7417
  "aria-label": s("table.ariaLabel"),
7154
7418
  slot: "selection",
7155
- children: /* @__PURE__ */ D(h.Control, { children: /* @__PURE__ */ D(h.Indicator, {}) })
7419
+ children: /* @__PURE__ */ k(g.Control, { children: /* @__PURE__ */ k(g.Indicator, {}) })
7156
7420
  }) : null
7157
- }), /* @__PURE__ */ D(E, {
7421
+ }), /* @__PURE__ */ k(D, {
7158
7422
  className: "w-full",
7159
7423
  isRowHeader: !0,
7160
7424
  children: s("table.columns.name.header")
7161
- })] }), /* @__PURE__ */ D(w, {
7425
+ })] }), /* @__PURE__ */ k(T, {
7162
7426
  items: c?.data ?? [],
7163
- children: (e) => /* @__PURE__ */ O(re, {
7427
+ children: (e) => /* @__PURE__ */ A(le, {
7164
7428
  id: String(e.id),
7165
- children: [/* @__PURE__ */ D(T, {
7429
+ children: [/* @__PURE__ */ k(E, {
7166
7430
  className: "pr-0",
7167
- children: /* @__PURE__ */ D(h, {
7431
+ children: /* @__PURE__ */ k(g, {
7168
7432
  "aria-label": e.name,
7169
7433
  slot: "selection",
7170
7434
  variant: "secondary",
7171
- children: /* @__PURE__ */ D(h.Control, { children: /* @__PURE__ */ D(h.Indicator, {}) })
7435
+ children: /* @__PURE__ */ k(g.Control, { children: /* @__PURE__ */ k(g.Indicator, {}) })
7172
7436
  })
7173
- }), /* @__PURE__ */ D(T, { children: e.name })]
7437
+ }), /* @__PURE__ */ k(E, { children: e.name })]
7174
7438
  }, e.id)
7175
7439
  })]
7176
7440
  }) })
@@ -7179,7 +7443,7 @@ function wo(e) {
7179
7443
  }
7180
7444
  //#endregion
7181
7445
  //#region src/lib/components/Trans/index.tsx
7182
- function To(e) {
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 To(e) {
7237
7501
  }
7238
7502
  return t.children;
7239
7503
  }
7240
- function Eo(e, n, r = "k") {
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 Eo(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 = Eo(e.children, n, o);
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(...Eo(e.children, n, o));
7521
+ e.selfClosing || i.push(...qo(e.children, n, o));
7258
7522
  }), i;
7259
7523
  }
7260
- function Do(e) {
7261
- let { i18nKey: t, values: n, components: r, t: i } = e, a = c(() => i(t, n), [
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 = c(() => To(a), [a]);
7266
- return c(() => Eo(o, r), [o, r]);
7529
+ ]), o = l(() => Ko(a), [a]);
7530
+ return l(() => qo(o, r), [o, r]);
7267
7531
  }
7268
7532
  //#endregion
7269
- export { jr as AttraccessUser, Dr as AttraccessUserActionsProvider, go as DateTimeDisplay, _o as DurationDisplay, Rn as I18N_LANGUAGE_STORAGE_KEY, Do as I18nTransComponent, Co as ListboxWrapper, wo as ResourceSelector, bo as UserSearch, Hn as detectAndSetLanguage, Or as useAttraccessUserActions, Mr as useDateTimeFormatter, Nr as useFormatDateTime, ho as useFormatNumber, Pr as useFormatedDuration, mo as useNumberFormatter, z as useTranslationState, Vn as useTranslations, po as useUrlQuery };
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 };