@sudobility/marketing-components 1.1.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,12 +1,12 @@
1
- import * as c from "react";
2
- import me from "react";
3
- import { cn as E } from "@sudobility/components";
4
- import { textVariants as z, ui as nt } from "@sudobility/design";
5
- var X = { exports: {} }, Y = {};
6
- var Se;
7
- function at() {
8
- if (Se) return Y;
9
- Se = 1;
1
+ import * as u from "react";
2
+ import fe from "react";
3
+ import { cn as R } from "@sudobility/components";
4
+ import { textVariants as Y, ui as Ze } from "@sudobility/design";
5
+ var K = { exports: {} }, V = {};
6
+ var Ne;
7
+ function Qe() {
8
+ if (Ne) return V;
9
+ Ne = 1;
10
10
  var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
11
11
  function t(n, a, o) {
12
12
  var l = null;
@@ -23,253 +23,253 @@ function at() {
23
23
  props: o
24
24
  };
25
25
  }
26
- return Y.Fragment = r, Y.jsx = t, Y.jsxs = t, Y;
26
+ return V.Fragment = r, V.jsx = t, V.jsxs = t, V;
27
27
  }
28
- var H = {};
28
+ var B = {};
29
29
  var Pe;
30
- function ot() {
30
+ function et() {
31
31
  return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && (function() {
32
- function e(u) {
33
- if (u == null) return null;
34
- if (typeof u == "function")
35
- return u.$$typeof === q ? null : u.displayName || u.name || null;
36
- if (typeof u == "string") return u;
37
- switch (u) {
38
- case v:
32
+ function e(s) {
33
+ if (s == null) return null;
34
+ if (typeof s == "function")
35
+ return s.$$typeof === q ? null : s.displayName || s.name || null;
36
+ if (typeof s == "string") return s;
37
+ switch (s) {
38
+ case w:
39
39
  return "Fragment";
40
- case g:
40
+ case b:
41
41
  return "Profiler";
42
- case k:
42
+ case v:
43
43
  return "StrictMode";
44
44
  case M:
45
45
  return "Suspense";
46
- case D:
46
+ case I:
47
47
  return "SuspenseList";
48
- case O:
48
+ case U:
49
49
  return "Activity";
50
50
  }
51
- if (typeof u == "object")
52
- switch (typeof u.tag == "number" && console.error(
51
+ if (typeof s == "object")
52
+ switch (typeof s.tag == "number" && console.error(
53
53
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
54
- ), u.$$typeof) {
55
- case C:
54
+ ), s.$$typeof) {
55
+ case E:
56
56
  return "Portal";
57
- case _:
58
- return u.displayName || "Context";
59
- case w:
60
- return (u._context.displayName || "Context") + ".Consumer";
61
- case L:
62
- var y = u.render;
63
- return u = u.displayName, u || (u = y.displayName || y.name || "", u = u !== "" ? "ForwardRef(" + u + ")" : "ForwardRef"), u;
57
+ case O:
58
+ return s.displayName || "Context";
59
+ case k:
60
+ return (s._context.displayName || "Context") + ".Consumer";
61
+ case T:
62
+ var x = s.render;
63
+ return s = s.displayName, s || (s = x.displayName || x.name || "", s = s !== "" ? "ForwardRef(" + s + ")" : "ForwardRef"), s;
64
64
  case W:
65
- return y = u.displayName || null, y !== null ? y : e(u.type) || "Memo";
66
- case P:
67
- y = u._payload, u = u._init;
65
+ return x = s.displayName || null, x !== null ? x : e(s.type) || "Memo";
66
+ case j:
67
+ x = s._payload, s = s._init;
68
68
  try {
69
- return e(u(y));
69
+ return e(s(x));
70
70
  } catch {
71
71
  }
72
72
  }
73
73
  return null;
74
74
  }
75
- function r(u) {
76
- return "" + u;
75
+ function r(s) {
76
+ return "" + s;
77
77
  }
78
- function t(u) {
78
+ function t(s) {
79
79
  try {
80
- r(u);
81
- var y = !1;
80
+ r(s);
81
+ var x = !1;
82
82
  } catch {
83
- y = !0;
83
+ x = !0;
84
84
  }
85
- if (y) {
86
- y = console;
87
- var R = y.error, N = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object";
88
- return R.call(
89
- y,
85
+ if (x) {
86
+ x = console;
87
+ var C = x.error, S = typeof Symbol == "function" && Symbol.toStringTag && s[Symbol.toStringTag] || s.constructor.name || "Object";
88
+ return C.call(
89
+ x,
90
90
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
91
- N
92
- ), r(u);
91
+ S
92
+ ), r(s);
93
93
  }
94
94
  }
95
- function n(u) {
96
- if (u === v) return "<>";
97
- if (typeof u == "object" && u !== null && u.$$typeof === P)
95
+ function n(s) {
96
+ if (s === w) return "<>";
97
+ if (typeof s == "object" && s !== null && s.$$typeof === j)
98
98
  return "<...>";
99
99
  try {
100
- var y = e(u);
101
- return y ? "<" + y + ">" : "<...>";
100
+ var x = e(s);
101
+ return x ? "<" + x + ">" : "<...>";
102
102
  } catch {
103
103
  return "<...>";
104
104
  }
105
105
  }
106
106
  function a() {
107
- var u = oe.A;
108
- return u === null ? null : u.getOwner();
107
+ var s = oe.A;
108
+ return s === null ? null : s.getOwner();
109
109
  }
110
110
  function o() {
111
111
  return Error("react-stack-top-frame");
112
112
  }
113
- function l(u) {
114
- if (we.call(u, "key")) {
115
- var y = Object.getOwnPropertyDescriptor(u, "key").get;
116
- if (y && y.isReactWarning) return !1;
113
+ function l(s) {
114
+ if (we.call(s, "key")) {
115
+ var x = Object.getOwnPropertyDescriptor(s, "key").get;
116
+ if (x && x.isReactWarning) return !1;
117
117
  }
118
- return u.key !== void 0;
118
+ return s.key !== void 0;
119
119
  }
120
- function i(u, y) {
121
- function R() {
122
- Ee || (Ee = !0, console.error(
120
+ function i(s, x) {
121
+ function C() {
122
+ ke || (ke = !0, console.error(
123
123
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
124
- y
124
+ x
125
125
  ));
126
126
  }
127
- R.isReactWarning = !0, Object.defineProperty(u, "key", {
128
- get: R,
127
+ C.isReactWarning = !0, Object.defineProperty(s, "key", {
128
+ get: C,
129
129
  configurable: !0
130
130
  });
131
131
  }
132
- function s() {
133
- var u = e(this.type);
134
- return Ce[u] || (Ce[u] = !0, console.error(
132
+ function c() {
133
+ var s = e(this.type);
134
+ return Ee[s] || (Ee[s] = !0, console.error(
135
135
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
136
- )), u = this.props.ref, u !== void 0 ? u : null;
136
+ )), s = this.props.ref, s !== void 0 ? s : null;
137
137
  }
138
- function d(u, y, R, N, K, ie) {
139
- var j = R.ref;
140
- return u = {
141
- $$typeof: x,
142
- type: u,
143
- key: y,
144
- props: R,
145
- _owner: N
146
- }, (j !== void 0 ? j : null) !== null ? Object.defineProperty(u, "ref", {
138
+ function f(s, x, C, S, X, ie) {
139
+ var N = C.ref;
140
+ return s = {
141
+ $$typeof: y,
142
+ type: s,
143
+ key: x,
144
+ props: C,
145
+ _owner: S
146
+ }, (N !== void 0 ? N : null) !== null ? Object.defineProperty(s, "ref", {
147
147
  enumerable: !1,
148
- get: s
149
- }) : Object.defineProperty(u, "ref", { enumerable: !1, value: null }), u._store = {}, Object.defineProperty(u._store, "validated", {
148
+ get: c
149
+ }) : Object.defineProperty(s, "ref", { enumerable: !1, value: null }), s._store = {}, Object.defineProperty(s._store, "validated", {
150
150
  configurable: !1,
151
151
  enumerable: !1,
152
152
  writable: !0,
153
153
  value: 0
154
- }), Object.defineProperty(u, "_debugInfo", {
154
+ }), Object.defineProperty(s, "_debugInfo", {
155
155
  configurable: !1,
156
156
  enumerable: !1,
157
157
  writable: !0,
158
158
  value: null
159
- }), Object.defineProperty(u, "_debugStack", {
159
+ }), Object.defineProperty(s, "_debugStack", {
160
160
  configurable: !1,
161
161
  enumerable: !1,
162
162
  writable: !0,
163
- value: K
164
- }), Object.defineProperty(u, "_debugTask", {
163
+ value: X
164
+ }), Object.defineProperty(s, "_debugTask", {
165
165
  configurable: !1,
166
166
  enumerable: !1,
167
167
  writable: !0,
168
168
  value: ie
169
- }), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
169
+ }), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
170
170
  }
171
- function f(u, y, R, N, K, ie) {
172
- var j = y.children;
173
- if (j !== void 0)
174
- if (N)
175
- if (tt(j)) {
176
- for (N = 0; N < j.length; N++)
177
- m(j[N]);
178
- Object.freeze && Object.freeze(j);
171
+ function m(s, x, C, S, X, ie) {
172
+ var N = x.children;
173
+ if (N !== void 0)
174
+ if (S)
175
+ if (Xe(N)) {
176
+ for (S = 0; S < N.length; S++)
177
+ d(N[S]);
178
+ Object.freeze && Object.freeze(N);
179
179
  } else
180
180
  console.error(
181
181
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
182
182
  );
183
- else m(j);
184
- if (we.call(y, "key")) {
185
- j = e(u);
186
- var V = Object.keys(y).filter(function(rt) {
187
- return rt !== "key";
183
+ else d(N);
184
+ if (we.call(x, "key")) {
185
+ N = e(s);
186
+ var z = Object.keys(x).filter(function(Ke) {
187
+ return Ke !== "key";
188
188
  });
189
- N = 0 < V.length ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}", je[j + N] || (V = 0 < V.length ? "{" + V.join(": ..., ") + ": ...}" : "{}", console.error(
189
+ S = 0 < z.length ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}", Se[N + S] || (z = 0 < z.length ? "{" + z.join(": ..., ") + ": ...}" : "{}", console.error(
190
190
  `A props object containing a "key" prop is being spread into JSX:
191
191
  let props = %s;
192
192
  <%s {...props} />
193
193
  React keys must be passed directly to JSX without using spread:
194
194
  let props = %s;
195
195
  <%s key={someKey} {...props} />`,
196
+ S,
196
197
  N,
197
- j,
198
- V,
199
- j
200
- ), je[j + N] = !0);
198
+ z,
199
+ N
200
+ ), Se[N + S] = !0);
201
201
  }
202
- if (j = null, R !== void 0 && (t(R), j = "" + R), l(y) && (t(y.key), j = "" + y.key), "key" in y) {
203
- R = {};
204
- for (var se in y)
205
- se !== "key" && (R[se] = y[se]);
206
- } else R = y;
207
- return j && i(
208
- R,
209
- typeof u == "function" ? u.displayName || u.name || "Unknown" : u
210
- ), d(
211
- u,
212
- j,
213
- R,
202
+ if (N = null, C !== void 0 && (t(C), N = "" + C), l(x) && (t(x.key), N = "" + x.key), "key" in x) {
203
+ C = {};
204
+ for (var se in x)
205
+ se !== "key" && (C[se] = x[se]);
206
+ } else C = x;
207
+ return N && i(
208
+ C,
209
+ typeof s == "function" ? s.displayName || s.name || "Unknown" : s
210
+ ), f(
211
+ s,
212
+ N,
213
+ C,
214
214
  a(),
215
- K,
215
+ X,
216
216
  ie
217
217
  );
218
218
  }
219
- function m(u) {
220
- p(u) ? u._store && (u._store.validated = 1) : typeof u == "object" && u !== null && u.$$typeof === P && (u._payload.status === "fulfilled" ? p(u._payload.value) && u._payload.value._store && (u._payload.value._store.validated = 1) : u._store && (u._store.validated = 1));
219
+ function d(s) {
220
+ p(s) ? s._store && (s._store.validated = 1) : typeof s == "object" && s !== null && s.$$typeof === j && (s._payload.status === "fulfilled" ? p(s._payload.value) && s._payload.value._store && (s._payload.value._store.validated = 1) : s._store && (s._store.validated = 1));
221
221
  }
222
- function p(u) {
223
- return typeof u == "object" && u !== null && u.$$typeof === x;
222
+ function p(s) {
223
+ return typeof s == "object" && s !== null && s.$$typeof === y;
224
224
  }
225
- var b = me, x = Symbol.for("react.transitional.element"), C = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), L = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), W = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), q = Symbol.for("react.client.reference"), oe = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, we = Object.prototype.hasOwnProperty, tt = Array.isArray, le = console.createTask ? console.createTask : function() {
225
+ var g = fe, y = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), k = Symbol.for("react.consumer"), O = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), W = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), U = Symbol.for("react.activity"), q = Symbol.for("react.client.reference"), oe = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, we = Object.prototype.hasOwnProperty, Xe = Array.isArray, le = console.createTask ? console.createTask : function() {
226
226
  return null;
227
227
  };
228
- b = {
229
- react_stack_bottom_frame: function(u) {
230
- return u();
228
+ g = {
229
+ react_stack_bottom_frame: function(s) {
230
+ return s();
231
231
  }
232
232
  };
233
- var Ee, Ce = {}, Re = b.react_stack_bottom_frame.bind(
234
- b,
233
+ var ke, Ee = {}, Re = g.react_stack_bottom_frame.bind(
234
+ g,
235
235
  o
236
- )(), Ne = le(n(o)), je = {};
237
- H.Fragment = v, H.jsx = function(u, y, R) {
238
- var N = 1e4 > oe.recentlyCreatedOwnerStacks++;
239
- return f(
240
- u,
241
- y,
242
- R,
236
+ )(), Ce = le(n(o)), Se = {};
237
+ B.Fragment = w, B.jsx = function(s, x, C) {
238
+ var S = 1e4 > oe.recentlyCreatedOwnerStacks++;
239
+ return m(
240
+ s,
241
+ x,
242
+ C,
243
243
  !1,
244
- N ? Error("react-stack-top-frame") : Re,
245
- N ? le(n(u)) : Ne
244
+ S ? Error("react-stack-top-frame") : Re,
245
+ S ? le(n(s)) : Ce
246
246
  );
247
- }, H.jsxs = function(u, y, R) {
248
- var N = 1e4 > oe.recentlyCreatedOwnerStacks++;
249
- return f(
250
- u,
251
- y,
252
- R,
247
+ }, B.jsxs = function(s, x, C) {
248
+ var S = 1e4 > oe.recentlyCreatedOwnerStacks++;
249
+ return m(
250
+ s,
251
+ x,
252
+ C,
253
253
  !0,
254
- N ? Error("react-stack-top-frame") : Re,
255
- N ? le(n(u)) : Ne
254
+ S ? Error("react-stack-top-frame") : Re,
255
+ S ? le(n(s)) : Ce
256
256
  );
257
257
  };
258
- })()), H;
258
+ })()), B;
259
259
  }
260
- var _e;
261
- function lt() {
262
- return _e || (_e = 1, process.env.NODE_ENV === "production" ? X.exports = at() : X.exports = ot()), X.exports;
260
+ var je;
261
+ function tt() {
262
+ return je || (je = 1, process.env.NODE_ENV === "production" ? K.exports = Qe() : K.exports = et()), K.exports;
263
263
  }
264
- var h = lt();
265
- const Or = ({
264
+ var h = tt();
265
+ const Sr = ({
266
266
  className: e,
267
267
  children: r,
268
268
  disabled: t
269
269
  }) => /* @__PURE__ */ h.jsx(
270
270
  "div",
271
271
  {
272
- className: E(
272
+ className: R(
273
273
  "p-4 rounded-lg border transition-colors",
274
274
  "bg-white dark:bg-gray-900",
275
275
  "border-gray-200 dark:border-gray-700",
@@ -281,7 +281,7 @@ const Or = ({
281
281
  "aria-label": "CrmDashboard",
282
282
  children: r || "CrmDashboard Component"
283
283
  }
284
- ), Fr = ({
284
+ ), Nr = ({
285
285
  className: e,
286
286
  children: r,
287
287
  disabled: t = !1,
@@ -289,7 +289,7 @@ const Or = ({
289
289
  }) => /* @__PURE__ */ h.jsx(
290
290
  "div",
291
291
  {
292
- className: E(
292
+ className: R(
293
293
  "p-4 rounded-lg border transition-colors",
294
294
  "bg-white dark:bg-gray-900",
295
295
  "border-gray-200 dark:border-gray-700",
@@ -304,314 +304,12 @@ const Or = ({
304
304
  children: r || "UctaUbanner Component"
305
305
  }
306
306
  );
307
- function De(e) {
308
- var r, t, n = "";
309
- if (typeof e == "string" || typeof e == "number") n += e;
310
- else if (typeof e == "object") if (Array.isArray(e)) {
311
- var a = e.length;
312
- for (r = 0; r < a; r++) e[r] && (t = De(e[r])) && (n && (n += " "), n += t);
313
- } else for (t in e) e[t] && (n && (n += " "), n += t);
314
- return n;
315
- }
316
- function it() {
317
- for (var e, r, t = 0, n = "", a = arguments.length; t < a; t++) (e = arguments[t]) && (r = De(e)) && (n && (n += " "), n += r);
318
- return n;
319
- }
320
- const Le = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Te = it, fe = (e, r) => (t) => {
321
- var n;
322
- if (r?.variants == null) return Te(e, t?.class, t?.className);
323
- const { variants: a, defaultVariants: o } = r, l = Object.keys(a).map((d) => {
324
- const f = t?.[d], m = o?.[d];
325
- if (f === null) return null;
326
- const p = Le(f) || Le(m);
327
- return a[d][p];
328
- }), i = t && Object.entries(t).reduce((d, f) => {
329
- let [m, p] = f;
330
- return p === void 0 || (d[m] = p), d;
331
- }, {}), s = r == null || (n = r.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((d, f) => {
332
- let { class: m, className: p, ...b } = f;
333
- return Object.entries(b).every((x) => {
334
- let [C, v] = x;
335
- return Array.isArray(v) ? v.includes({
336
- ...o,
337
- ...i
338
- }[C]) : {
339
- ...o,
340
- ...i
341
- }[C] === v;
342
- }) ? [
343
- ...d,
344
- m,
345
- p
346
- ] : d;
347
- }, []);
348
- return Te(e, l, s, t?.class, t?.className);
349
- }, st = fe("grid gap-8", {
350
- variants: {
351
- columns: {
352
- 1: "grid-cols-1",
353
- 2: "grid-cols-1 md:grid-cols-2",
354
- 3: "grid-cols-1 md:grid-cols-2 lg:grid-cols-3",
355
- 4: "grid-cols-1 md:grid-cols-2 lg:grid-cols-4"
356
- },
357
- spacing: {
358
- sm: "gap-4",
359
- md: "gap-8",
360
- lg: "gap-12"
361
- }
362
- },
363
- defaultVariants: {
364
- columns: 3,
365
- spacing: "md"
366
- }
367
- }), ut = fe("group transition-all duration-300", {
368
- variants: {
369
- variant: {
370
- default: "text-center",
371
- left: "text-left",
372
- hoverable: "text-center hover:transform hover:scale-105 cursor-pointer",
373
- card: "bg-white dark:bg-gray-800 rounded-2xl p-8 shadow-lg hover:shadow-xl text-center",
374
- minimal: "text-center space-y-4"
375
- },
376
- animation: {
377
- none: "",
378
- hover: "hover:transform hover:scale-105",
379
- float: "hover:-translate-y-2"
380
- }
381
- },
382
- defaultVariants: {
383
- variant: "default",
384
- animation: "hover"
385
- }
386
- }), ct = fe(
387
- "flex items-center justify-center rounded-2xl mb-6 transition-all duration-300",
388
- {
389
- variants: {
390
- size: {
391
- sm: "w-16 h-16",
392
- md: "w-20 h-20",
393
- lg: "w-24 h-24"
394
- },
395
- style: {
396
- gradient: "bg-gradient-to-br from-blue-100 to-blue-200 dark:from-blue-900/30 dark:to-blue-800/30 group-hover:from-blue-200 group-hover:to-blue-300 dark:group-hover:from-blue-800/40 dark:group-hover:to-blue-700/40",
397
- solid: "bg-blue-100 dark:bg-blue-900/30 group-hover:bg-blue-200 dark:group-hover:bg-blue-800/40",
398
- outline: "border-2 border-blue-200 dark:border-blue-800 group-hover:border-blue-300 dark:group-hover:border-blue-700",
399
- colorful: "group-hover:scale-110"
400
- },
401
- position: {
402
- center: "mx-auto",
403
- left: "",
404
- right: "ml-auto"
405
- }
406
- },
407
- defaultVariants: {
408
- size: "md",
409
- style: "gradient",
410
- position: "center"
411
- }
412
- }
413
- ), dt = {
414
- success: "bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",
415
- info: "bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",
416
- warning: "bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300",
417
- default: "bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300"
418
- }, Dr = ({
419
- className: e,
420
- features: r,
421
- columns: t = 3,
422
- spacing: n = "md",
423
- cardVariant: a = "default",
424
- cardAnimation: o = "hover",
425
- iconSize: l = "md",
426
- iconStyle: i = "gradient",
427
- iconPosition: s = "center",
428
- titleClass: d,
429
- descriptionClass: f,
430
- animate: m = !0,
431
- animationDelay: p = 0,
432
- staggerDelay: b = 100,
433
- onFeatureClick: x,
434
- defaultLinkText: C = "Learn more"
435
- }) => {
436
- const v = (g, w) => {
437
- if (i === "colorful" && g.gradient)
438
- return {
439
- background: `linear-gradient(135deg, ${g.gradient.from}, ${g.gradient.to})`
440
- };
441
- if (i === "colorful") {
442
- const _ = [
443
- { from: "#3B82F6", to: "#1D4ED8" },
444
- // blue
445
- { from: "#10B981", to: "#059669" },
446
- // emerald
447
- { from: "#8B5CF6", to: "#7C3AED" },
448
- // violet
449
- { from: "#F59E0B", to: "#D97706" },
450
- // amber
451
- { from: "#EF4444", to: "#DC2626" },
452
- // red
453
- { from: "#06B6D4", to: "#0891B2" }
454
- // cyan
455
- ], L = _[w % _.length];
456
- return {
457
- background: `linear-gradient(135deg, ${L.from}, ${L.to})`
458
- };
459
- }
460
- }, k = (g, w) => {
461
- const _ = /* @__PURE__ */ h.jsxs(
462
- "div",
463
- {
464
- className: E(
465
- ut({ variant: a, animation: o })
466
- ),
467
- onClick: () => x?.(g),
468
- role: x ? "button" : void 0,
469
- tabIndex: x ? 0 : void 0,
470
- children: [
471
- g.badge && /* @__PURE__ */ h.jsx("div", { className: "mb-4", children: /* @__PURE__ */ h.jsx(
472
- "span",
473
- {
474
- className: E(
475
- "inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
476
- dt[g.badge.variant || "default"]
477
- ),
478
- children: g.badge.text
479
- }
480
- ) }),
481
- /* @__PURE__ */ h.jsx(
482
- "div",
483
- {
484
- className: E(
485
- ct({
486
- size: l,
487
- style: i,
488
- position: s
489
- })
490
- ),
491
- style: v(g, w),
492
- children: /* @__PURE__ */ h.jsx(
493
- "div",
494
- {
495
- className: E(
496
- "flex items-center justify-center",
497
- i === "colorful" ? "text-white" : "text-blue-600 dark:text-blue-400"
498
- ),
499
- children: g.icon
500
- }
501
- )
502
- }
503
- ),
504
- /* @__PURE__ */ h.jsx(
505
- "h3",
506
- {
507
- className: E(
508
- "text-xl font-bold text-gray-900 dark:text-white mb-4",
509
- d
510
- ),
511
- children: g.title
512
- }
513
- ),
514
- /* @__PURE__ */ h.jsx(
515
- "div",
516
- {
517
- className: E(
518
- "text-gray-600 dark:text-gray-300 leading-relaxed",
519
- f
520
- ),
521
- children: g.description
522
- }
523
- ),
524
- g.link && /* @__PURE__ */ h.jsx("div", { className: "mt-6", children: /* @__PURE__ */ h.jsxs(
525
- "a",
526
- {
527
- href: g.link.href,
528
- className: "inline-flex items-center text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 font-medium transition-colors duration-200",
529
- children: [
530
- g.link.text || C,
531
- /* @__PURE__ */ h.jsx(
532
- "svg",
533
- {
534
- className: "w-4 h-4 ml-1",
535
- fill: "none",
536
- stroke: "currentColor",
537
- viewBox: "0 0 24 24",
538
- children: /* @__PURE__ */ h.jsx(
539
- "path",
540
- {
541
- strokeLinecap: "round",
542
- strokeLinejoin: "round",
543
- strokeWidth: 2,
544
- d: "M9 5l7 7-7 7"
545
- }
546
- )
547
- }
548
- )
549
- ]
550
- }
551
- ) })
552
- ]
553
- }
554
- );
555
- return /* @__PURE__ */ h.jsx("div", { children: _ }, g.id || w);
556
- };
557
- return /* @__PURE__ */ h.jsx("div", { className: E(st({ columns: t, spacing: n }), e), children: r.map(k) });
558
- }, Ue = (e, r, t, n) => ({
559
- icon: e,
560
- title: r,
561
- description: t,
562
- ...n
563
- }), Ir = (e) => [
564
- Ue(
565
- /* @__PURE__ */ h.jsx(
566
- "svg",
567
- {
568
- className: "w-8 h-8",
569
- fill: "none",
570
- stroke: "currentColor",
571
- viewBox: "0 0 24 24",
572
- children: /* @__PURE__ */ h.jsx(
573
- "path",
574
- {
575
- strokeLinecap: "round",
576
- strokeLinejoin: "round",
577
- strokeWidth: 2,
578
- d: "M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"
579
- }
580
- )
581
- }
582
- ),
583
- e?.passwordlessTitle || "Passwordless Security",
584
- e?.passwordlessDescription || "Authenticate using your Web3 wallet - no passwords to remember or lose."
585
- ),
586
- Ue(
587
- /* @__PURE__ */ h.jsx(
588
- "svg",
589
- {
590
- className: "w-8 h-8",
591
- fill: "none",
592
- stroke: "currentColor",
593
- viewBox: "0 0 24 24",
594
- children: /* @__PURE__ */ h.jsx(
595
- "path",
596
- {
597
- strokeLinecap: "round",
598
- strokeLinejoin: "round",
599
- strokeWidth: 2,
600
- d: "M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.40A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"
601
- }
602
- )
603
- }
604
- ),
605
- e?.encryptionTitle || "End-to-End Encryption",
606
- e?.encryptionDescription || "Your emails are encrypted and only you can read them."
607
- )
608
- ];
609
- function mt({
307
+ function rt({
610
308
  title: e,
611
309
  titleId: r,
612
310
  ...t
613
311
  }, n) {
614
- return /* @__PURE__ */ c.createElement("svg", Object.assign({
312
+ return /* @__PURE__ */ u.createElement("svg", Object.assign({
615
313
  xmlns: "http://www.w3.org/2000/svg",
616
314
  fill: "none",
617
315
  viewBox: "0 0 24 24",
@@ -621,18 +319,18 @@ function mt({
621
319
  "data-slot": "icon",
622
320
  ref: n,
623
321
  "aria-labelledby": r
624
- }, t), e ? /* @__PURE__ */ c.createElement("title", {
322
+ }, t), e ? /* @__PURE__ */ u.createElement("title", {
625
323
  id: r
626
- }, e) : null, /* @__PURE__ */ c.createElement("path", {
324
+ }, e) : null, /* @__PURE__ */ u.createElement("path", {
627
325
  strokeLinecap: "round",
628
326
  strokeLinejoin: "round",
629
327
  d: "M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
630
328
  }));
631
329
  }
632
- const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
330
+ const nt = /* @__PURE__ */ u.forwardRef(rt), Pr = ({
633
331
  title: e,
634
332
  description: r,
635
- icon: t = ft,
333
+ icon: t = nt,
636
334
  iconVariant: n = "success",
637
335
  size: a = "md",
638
336
  className: o
@@ -643,48 +341,48 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
643
341
  warning: "bg-yellow-400 text-yellow-900",
644
342
  info: "bg-cyan-400 text-cyan-900",
645
343
  gradient: "bg-gradient-to-br from-blue-400 to-purple-500 text-white"
646
- }, s = {
344
+ }, c = {
647
345
  sm: {
648
346
  container: "gap-2",
649
347
  icon: "p-1.5",
650
348
  iconSize: "h-4 w-4",
651
- title: z.body.md(),
652
- description: z.body.sm()
349
+ title: Y.body.md(),
350
+ description: Y.body.sm()
653
351
  },
654
352
  md: {
655
353
  container: "gap-3",
656
354
  icon: "p-2",
657
355
  iconSize: "h-5 w-5",
658
- title: z.body.strong.md(),
659
- description: z.body.md()
356
+ title: Y.body.strong.md(),
357
+ description: Y.body.md()
660
358
  },
661
359
  lg: {
662
360
  container: "gap-4",
663
361
  icon: "p-3",
664
362
  iconSize: "h-6 w-6",
665
- title: z.heading.h4(),
666
- description: z.body.md()
363
+ title: Y.heading.h4(),
364
+ description: Y.body.md()
667
365
  }
668
366
  }[a];
669
- return /* @__PURE__ */ h.jsxs("div", { className: E("flex items-start", s.container, o), children: [
367
+ return /* @__PURE__ */ h.jsxs("div", { className: R("flex items-start", c.container, o), children: [
670
368
  /* @__PURE__ */ h.jsx(
671
369
  "div",
672
370
  {
673
- className: E(
371
+ className: R(
674
372
  "rounded-full flex-shrink-0",
675
- s.icon,
373
+ c.icon,
676
374
  l[n]
677
375
  ),
678
- children: /* @__PURE__ */ h.jsx(t, { className: s.iconSize })
376
+ children: /* @__PURE__ */ h.jsx(t, { className: c.iconSize })
679
377
  }
680
378
  ),
681
379
  /* @__PURE__ */ h.jsxs("div", { className: "flex-1 min-w-0", children: [
682
- /* @__PURE__ */ h.jsx("h4", { className: s.title, children: e }),
380
+ /* @__PURE__ */ h.jsx("h4", { className: c.title, children: e }),
683
381
  r && /* @__PURE__ */ h.jsx(
684
382
  "p",
685
383
  {
686
- className: E(
687
- s.description,
384
+ className: R(
385
+ c.description,
688
386
  "mt-1 text-gray-600 dark:text-gray-300"
689
387
  ),
690
388
  children: r
@@ -692,7 +390,7 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
692
390
  )
693
391
  ] })
694
392
  ] });
695
- }, Wr = ({
393
+ }, jr = ({
696
394
  className: e,
697
395
  children: r,
698
396
  disabled: t = !1,
@@ -700,7 +398,7 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
700
398
  }) => /* @__PURE__ */ h.jsx(
701
399
  "div",
702
400
  {
703
- className: E(
401
+ className: R(
704
402
  "p-4 rounded-lg border transition-colors",
705
403
  "bg-white dark:bg-gray-900",
706
404
  "border-gray-200 dark:border-gray-700",
@@ -714,29 +412,7 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
714
412
  "aria-label": "UfeatureUspotlight",
715
413
  children: r || "UfeatureUspotlight Component"
716
414
  }
717
- ), Vr = ({
718
- className: e,
719
- children: r,
720
- disabled: t = !1,
721
- onClick: n
722
- }) => /* @__PURE__ */ h.jsx(
723
- "div",
724
- {
725
- className: E(
726
- "p-4 rounded-lg border transition-colors",
727
- "bg-white dark:bg-gray-900",
728
- "border-gray-200 dark:border-gray-700",
729
- "text-gray-900 dark:text-white",
730
- t && "opacity-50 cursor-not-allowed",
731
- "hover:bg-gray-50 dark:hover:bg-gray-800",
732
- e
733
- ),
734
- onClick: t ? void 0 : n,
735
- role: "region",
736
- "aria-label": "UfunnelUchart",
737
- children: r || "UfunnelUchart Component"
738
- }
739
- ), zr = ({
415
+ ), _r = ({
740
416
  badgeIcon: e,
741
417
  badgeText: r,
742
418
  badgeColor: t = "blue",
@@ -745,10 +421,10 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
745
421
  description: o,
746
422
  primaryButton: l,
747
423
  secondaryButton: i,
748
- className: s,
749
- children: d
424
+ className: c,
425
+ children: f
750
426
  }) => {
751
- const m = {
427
+ const d = {
752
428
  blue: "bg-blue-100 dark:bg-blue-900/30 border-blue-300 dark:border-blue-700 text-blue-800 dark:text-blue-200",
753
429
  green: "bg-green-100 dark:bg-green-900/30 border-green-300 dark:border-green-700 text-green-800 dark:text-green-200",
754
430
  purple: "bg-purple-100 dark:bg-purple-900/30 border-purple-300 dark:border-purple-700 text-purple-800 dark:text-purple-200",
@@ -756,13 +432,13 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
756
432
  pink: "bg-pink-100 dark:bg-pink-900/30 border-pink-300 dark:border-pink-700 text-pink-800 dark:text-pink-200",
757
433
  gray: "bg-gray-100 dark:bg-gray-900/30 border-gray-300 dark:border-gray-700 text-gray-800 dark:text-gray-200"
758
434
  }[t];
759
- return /* @__PURE__ */ h.jsx("section", { className: E("py-20", s), children: /* @__PURE__ */ h.jsxs("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center", children: [
435
+ return /* @__PURE__ */ h.jsx("section", { className: R("py-20", c), children: /* @__PURE__ */ h.jsxs("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center", children: [
760
436
  /* @__PURE__ */ h.jsxs(
761
437
  "div",
762
438
  {
763
- className: E(
439
+ className: R(
764
440
  "inline-flex items-center border px-6 py-3 rounded-full mb-6",
765
- m
441
+ d
766
442
  ),
767
443
  children: [
768
444
  e && /* @__PURE__ */ h.jsx("span", { className: "mr-3", children: e }),
@@ -780,7 +456,7 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
780
456
  "a",
781
457
  {
782
458
  href: l.href,
783
- className: E(
459
+ className: R(
784
460
  "px-8 py-3 rounded-md bg-blue-600 text-white hover:bg-blue-700 transition-colors inline-block",
785
461
  l.className
786
462
  ),
@@ -790,7 +466,7 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
790
466
  "button",
791
467
  {
792
468
  onClick: l.onClick,
793
- className: E(
469
+ className: R(
794
470
  "px-8 py-3 rounded-md bg-blue-600 text-white hover:bg-blue-700 transition-colors",
795
471
  l.className
796
472
  ),
@@ -801,7 +477,7 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
801
477
  "a",
802
478
  {
803
479
  href: i.href,
804
- className: E(
480
+ className: R(
805
481
  "px-8 py-3 rounded-md border-2 border-gray-300 dark:border-gray-600 hover:border-gray-400 transition-colors inline-block",
806
482
  i.className
807
483
  ),
@@ -811,7 +487,7 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
811
487
  "button",
812
488
  {
813
489
  onClick: i.onClick,
814
- className: E(
490
+ className: R(
815
491
  "px-8 py-3 rounded-md border-2 border-gray-300 dark:border-gray-600 hover:border-gray-400 transition-colors",
816
492
  i.className
817
493
  ),
@@ -819,14 +495,14 @@ const ft = /* @__PURE__ */ c.forwardRef(mt), Mr = ({
819
495
  }
820
496
  ))
821
497
  ] }),
822
- d
498
+ f
823
499
  ] }) });
824
500
  };
825
- function S(e, r) {
501
+ function P(e, r) {
826
502
  if (e === !1 || e === null || typeof e > "u")
827
503
  throw new Error(r);
828
504
  }
829
- function T(e, r) {
505
+ function _(e, r) {
830
506
  if (!e) {
831
507
  typeof console < "u" && console.warn(r);
832
508
  try {
@@ -842,7 +518,7 @@ function de({
842
518
  }) {
843
519
  return r && r !== "?" && (e += r.charAt(0) === "?" ? r : "?" + r), t && t !== "#" && (e += t.charAt(0) === "#" ? t : "#" + t), e;
844
520
  }
845
- function he(e) {
521
+ function me(e) {
846
522
  let r = {};
847
523
  if (e) {
848
524
  let t = e.indexOf("#");
@@ -852,57 +528,57 @@ function he(e) {
852
528
  }
853
529
  return r;
854
530
  }
855
- function Ie(e, r, t = "/") {
856
- return ht(e, r, t, !1);
531
+ function Ae(e, r, t = "/") {
532
+ return at(e, r, t, !1);
857
533
  }
858
- function ht(e, r, t, n) {
859
- let a = typeof r == "string" ? he(r) : r, o = F(a.pathname || "/", t);
534
+ function at(e, r, t, n) {
535
+ let a = typeof r == "string" ? me(r) : r, o = F(a.pathname || "/", t);
860
536
  if (o == null)
861
537
  return null;
862
- let l = Me(e);
863
- gt(l);
538
+ let l = Oe(e);
539
+ ot(l);
864
540
  let i = null;
865
- for (let s = 0; i == null && s < l.length; ++s) {
866
- let d = Nt(o);
867
- i = Ct(
868
- l[s],
869
- d,
541
+ for (let c = 0; i == null && c < l.length; ++c) {
542
+ let f = gt(o);
543
+ i = ht(
544
+ l[c],
545
+ f,
870
546
  n
871
547
  );
872
548
  }
873
549
  return i;
874
550
  }
875
- function Me(e, r = [], t = [], n = "", a = !1) {
876
- let o = (l, i, s = a, d) => {
877
- let f = {
878
- relativePath: d === void 0 ? l.path || "" : d,
551
+ function Oe(e, r = [], t = [], n = "", a = !1) {
552
+ let o = (l, i, c = a, f) => {
553
+ let m = {
554
+ relativePath: f === void 0 ? l.path || "" : f,
879
555
  caseSensitive: l.caseSensitive === !0,
880
556
  childrenIndex: i,
881
557
  route: l
882
558
  };
883
- if (f.relativePath.startsWith("/")) {
884
- if (!f.relativePath.startsWith(n) && s)
559
+ if (m.relativePath.startsWith("/")) {
560
+ if (!m.relativePath.startsWith(n) && c)
885
561
  return;
886
- S(
887
- f.relativePath.startsWith(n),
888
- `Absolute route path "${f.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
889
- ), f.relativePath = f.relativePath.slice(n.length);
562
+ P(
563
+ m.relativePath.startsWith(n),
564
+ `Absolute route path "${m.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
565
+ ), m.relativePath = m.relativePath.slice(n.length);
890
566
  }
891
- let m = U([n, f.relativePath]), p = t.concat(f);
892
- l.children && l.children.length > 0 && (S(
567
+ let d = L([n, m.relativePath]), p = t.concat(m);
568
+ l.children && l.children.length > 0 && (P(
893
569
  // Our types know better, but runtime JS may not!
894
570
  // @ts-expect-error
895
571
  l.index !== !0,
896
- `Index routes must not have child routes. Please remove all child routes from route path "${m}".`
897
- ), Me(
572
+ `Index routes must not have child routes. Please remove all child routes from route path "${d}".`
573
+ ), Oe(
898
574
  l.children,
899
575
  r,
900
576
  p,
901
- m,
902
- s
577
+ d,
578
+ c
903
579
  )), !(l.path == null && !l.index) && r.push({
904
- path: m,
905
- score: wt(m, l.index),
580
+ path: d,
581
+ score: ft(d, l.index),
906
582
  routesMeta: p
907
583
  });
908
584
  };
@@ -910,42 +586,42 @@ function Me(e, r = [], t = [], n = "", a = !1) {
910
586
  if (l.path === "" || !l.path?.includes("?"))
911
587
  o(l, i);
912
588
  else
913
- for (let s of We(l.path))
914
- o(l, i, !0, s);
589
+ for (let c of Ue(l.path))
590
+ o(l, i, !0, c);
915
591
  }), r;
916
592
  }
917
- function We(e) {
593
+ function Ue(e) {
918
594
  let r = e.split("/");
919
595
  if (r.length === 0) return [];
920
596
  let [t, ...n] = r, a = t.endsWith("?"), o = t.replace(/\?$/, "");
921
597
  if (n.length === 0)
922
598
  return a ? [o, ""] : [o];
923
- let l = We(n.join("/")), i = [];
599
+ let l = Ue(n.join("/")), i = [];
924
600
  return i.push(
925
601
  ...l.map(
926
- (s) => s === "" ? o : [o, s].join("/")
602
+ (c) => c === "" ? o : [o, c].join("/")
927
603
  )
928
604
  ), a && i.push(...l), i.map(
929
- (s) => e.startsWith("/") && s === "" ? "/" : s
605
+ (c) => e.startsWith("/") && c === "" ? "/" : c
930
606
  );
931
607
  }
932
- function gt(e) {
608
+ function ot(e) {
933
609
  e.sort(
934
- (r, t) => r.score !== t.score ? t.score - r.score : Et(
610
+ (r, t) => r.score !== t.score ? t.score - r.score : mt(
935
611
  r.routesMeta.map((n) => n.childrenIndex),
936
612
  t.routesMeta.map((n) => n.childrenIndex)
937
613
  )
938
614
  );
939
615
  }
940
- var pt = /^:[\w-]+$/, bt = 3, xt = 2, vt = 1, yt = 10, kt = -2, $e = (e) => e === "*";
941
- function wt(e, r) {
616
+ var lt = /^:[\w-]+$/, it = 3, st = 2, ut = 1, ct = 10, dt = -2, _e = (e) => e === "*";
617
+ function ft(e, r) {
942
618
  let t = e.split("/"), n = t.length;
943
- return t.some($e) && (n += kt), r && (n += xt), t.filter((a) => !$e(a)).reduce(
944
- (a, o) => a + (pt.test(o) ? bt : o === "" ? vt : yt),
619
+ return t.some(_e) && (n += dt), r && (n += st), t.filter((a) => !_e(a)).reduce(
620
+ (a, o) => a + (lt.test(o) ? it : o === "" ? ut : ct),
945
621
  n
946
622
  );
947
623
  }
948
- function Et(e, r) {
624
+ function mt(e, r) {
949
625
  return e.length === r.length && e.slice(0, -1).every((n, a) => n === r[a]) ? (
950
626
  // If two routes are siblings, we should try to match the earlier sibling
951
627
  // first. This allows people to have fine-grained control over the matching
@@ -958,37 +634,37 @@ function Et(e, r) {
958
634
  0
959
635
  );
960
636
  }
961
- function Ct(e, r, t = !1) {
637
+ function ht(e, r, t = !1) {
962
638
  let { routesMeta: n } = e, a = {}, o = "/", l = [];
963
639
  for (let i = 0; i < n.length; ++i) {
964
- let s = n[i], d = i === n.length - 1, f = o === "/" ? r : r.slice(o.length) || "/", m = te(
965
- { path: s.relativePath, caseSensitive: s.caseSensitive, end: d },
966
- f
967
- ), p = s.route;
968
- if (!m && d && t && !n[n.length - 1].route.index && (m = te(
640
+ let c = n[i], f = i === n.length - 1, m = o === "/" ? r : r.slice(o.length) || "/", d = te(
641
+ { path: c.relativePath, caseSensitive: c.caseSensitive, end: f },
642
+ m
643
+ ), p = c.route;
644
+ if (!d && f && t && !n[n.length - 1].route.index && (d = te(
969
645
  {
970
- path: s.relativePath,
971
- caseSensitive: s.caseSensitive,
646
+ path: c.relativePath,
647
+ caseSensitive: c.caseSensitive,
972
648
  end: !1
973
649
  },
974
- f
975
- )), !m)
650
+ m
651
+ )), !d)
976
652
  return null;
977
- Object.assign(a, m.params), l.push({
653
+ Object.assign(a, d.params), l.push({
978
654
  // TODO: Can this as be avoided?
979
655
  params: a,
980
- pathname: U([o, m.pathname]),
981
- pathnameBase: Lt(
982
- U([o, m.pathnameBase])
656
+ pathname: L([o, d.pathname]),
657
+ pathnameBase: wt(
658
+ L([o, d.pathnameBase])
983
659
  ),
984
660
  route: p
985
- }), m.pathnameBase !== "/" && (o = U([o, m.pathnameBase]));
661
+ }), d.pathnameBase !== "/" && (o = L([o, d.pathnameBase]));
986
662
  }
987
663
  return l;
988
664
  }
989
665
  function te(e, r) {
990
666
  typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
991
- let [t, n] = Rt(
667
+ let [t, n] = pt(
992
668
  e.path,
993
669
  e.caseSensitive,
994
670
  e.end
@@ -997,13 +673,13 @@ function te(e, r) {
997
673
  let o = a[0], l = o.replace(/(.)\/+$/, "$1"), i = a.slice(1);
998
674
  return {
999
675
  params: n.reduce(
1000
- (d, { paramName: f, isOptional: m }, p) => {
1001
- if (f === "*") {
1002
- let x = i[p] || "";
1003
- l = o.slice(0, o.length - x.length).replace(/(.)\/+$/, "$1");
676
+ (f, { paramName: m, isOptional: d }, p) => {
677
+ if (m === "*") {
678
+ let y = i[p] || "";
679
+ l = o.slice(0, o.length - y.length).replace(/(.)\/+$/, "$1");
1004
680
  }
1005
- const b = i[p];
1006
- return m && !b ? d[f] = void 0 : d[f] = (b || "").replace(/%2F/g, "/"), d;
681
+ const g = i[p];
682
+ return d && !g ? f[m] = void 0 : f[m] = (g || "").replace(/%2F/g, "/"), f;
1007
683
  },
1008
684
  {}
1009
685
  ),
@@ -1012,22 +688,22 @@ function te(e, r) {
1012
688
  pattern: e
1013
689
  };
1014
690
  }
1015
- function Rt(e, r = !1, t = !0) {
1016
- T(
691
+ function pt(e, r = !1, t = !0) {
692
+ _(
1017
693
  e === "*" || !e.endsWith("*") || e.endsWith("/*"),
1018
694
  `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(/\*$/, "/*")}".`
1019
695
  );
1020
696
  let n = [], a = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
1021
697
  /\/:([\w-]+)(\?)?/g,
1022
- (l, i, s) => (n.push({ paramName: i, isOptional: s != null }), s ? "/?([^\\/]+)?" : "/([^\\/]+)")
698
+ (l, i, c) => (n.push({ paramName: i, isOptional: c != null }), c ? "/?([^\\/]+)?" : "/([^\\/]+)")
1023
699
  ).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
1024
700
  return e.endsWith("*") ? (n.push({ paramName: "*" }), a += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : t ? a += "\\/*$" : e !== "" && e !== "/" && (a += "(?:(?=\\/|$))"), [new RegExp(a, r ? void 0 : "i"), n];
1025
701
  }
1026
- function Nt(e) {
702
+ function gt(e) {
1027
703
  try {
1028
704
  return e.split("/").map((r) => decodeURIComponent(r).replace(/\//g, "%2F")).join("/");
1029
705
  } catch (r) {
1030
- return T(
706
+ return _(
1031
707
  !1,
1032
708
  `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`
1033
709
  ), e;
@@ -1040,35 +716,35 @@ function F(e, r) {
1040
716
  let t = r.endsWith("/") ? r.length - 1 : r.length, n = e.charAt(t);
1041
717
  return n && n !== "/" ? null : e.slice(t) || "/";
1042
718
  }
1043
- var jt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, St = (e) => jt.test(e);
1044
- function Pt(e, r = "/") {
719
+ var bt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, xt = (e) => bt.test(e);
720
+ function yt(e, r = "/") {
1045
721
  let {
1046
722
  pathname: t,
1047
723
  search: n = "",
1048
724
  hash: a = ""
1049
- } = typeof e == "string" ? he(e) : e, o;
725
+ } = typeof e == "string" ? me(e) : e, o;
1050
726
  if (t)
1051
- if (St(t))
727
+ if (xt(t))
1052
728
  o = t;
1053
729
  else {
1054
730
  if (t.includes("//")) {
1055
731
  let l = t;
1056
- t = t.replace(/\/\/+/g, "/"), T(
732
+ t = t.replace(/\/\/+/g, "/"), _(
1057
733
  !1,
1058
734
  `Pathnames cannot have embedded double slashes - normalizing ${l} -> ${t}`
1059
735
  );
1060
736
  }
1061
- t.startsWith("/") ? o = Ae(t.substring(1), "/") : o = Ae(t, r);
737
+ t.startsWith("/") ? o = Te(t.substring(1), "/") : o = Te(t, r);
1062
738
  }
1063
739
  else
1064
740
  o = r;
1065
741
  return {
1066
742
  pathname: o,
1067
- search: Tt(n),
1068
- hash: Ut(a)
743
+ search: kt(n),
744
+ hash: Et(a)
1069
745
  };
1070
746
  }
1071
- function Ae(e, r) {
747
+ function Te(e, r) {
1072
748
  let t = r.replace(/\/+$/, "").split("/");
1073
749
  return e.split("/").forEach((a) => {
1074
750
  a === ".." ? t.length > 1 && t.pop() : a !== "." && t.push(a);
@@ -1079,26 +755,26 @@ function ue(e, r, t, n) {
1079
755
  n
1080
756
  )}]. Please separate it out to the \`to.${t}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
1081
757
  }
1082
- function _t(e) {
758
+ function vt(e) {
1083
759
  return e.filter(
1084
760
  (r, t) => t === 0 || r.route.path && r.route.path.length > 0
1085
761
  );
1086
762
  }
1087
- function Ve(e) {
1088
- let r = _t(e);
763
+ function Fe(e) {
764
+ let r = vt(e);
1089
765
  return r.map(
1090
766
  (t, n) => n === r.length - 1 ? t.pathname : t.pathnameBase
1091
767
  );
1092
768
  }
1093
- function ze(e, r, t, n = !1) {
769
+ function Ie(e, r, t, n = !1) {
1094
770
  let a;
1095
- typeof e == "string" ? a = he(e) : (a = { ...e }, S(
771
+ typeof e == "string" ? a = me(e) : (a = { ...e }, P(
1096
772
  !a.pathname || !a.pathname.includes("?"),
1097
773
  ue("?", "pathname", "search", a)
1098
- ), S(
774
+ ), P(
1099
775
  !a.pathname || !a.pathname.includes("#"),
1100
776
  ue("#", "pathname", "hash", a)
1101
- ), S(
777
+ ), P(
1102
778
  !a.search || !a.search.includes("#"),
1103
779
  ue("#", "search", "hash", a)
1104
780
  ));
@@ -1106,124 +782,124 @@ function ze(e, r, t, n = !1) {
1106
782
  if (l == null)
1107
783
  i = t;
1108
784
  else {
1109
- let m = r.length - 1;
785
+ let d = r.length - 1;
1110
786
  if (!n && l.startsWith("..")) {
1111
787
  let p = l.split("/");
1112
788
  for (; p[0] === ".."; )
1113
- p.shift(), m -= 1;
789
+ p.shift(), d -= 1;
1114
790
  a.pathname = p.join("/");
1115
791
  }
1116
- i = m >= 0 ? r[m] : "/";
792
+ i = d >= 0 ? r[d] : "/";
1117
793
  }
1118
- let s = Pt(a, i), d = l && l !== "/" && l.endsWith("/"), f = (o || l === ".") && t.endsWith("/");
1119
- return !s.pathname.endsWith("/") && (d || f) && (s.pathname += "/"), s;
794
+ let c = yt(a, i), f = l && l !== "/" && l.endsWith("/"), m = (o || l === ".") && t.endsWith("/");
795
+ return !c.pathname.endsWith("/") && (f || m) && (c.pathname += "/"), c;
1120
796
  }
1121
- var U = (e) => e.join("/").replace(/\/\/+/g, "/"), Lt = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Tt = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Ut = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
1122
- function $t(e) {
797
+ var L = (e) => e.join("/").replace(/\/\/+/g, "/"), wt = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), kt = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Et = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
798
+ function Rt(e) {
1123
799
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
1124
800
  }
1125
801
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
1126
- var Be = [
802
+ var De = [
1127
803
  "POST",
1128
804
  "PUT",
1129
805
  "PATCH",
1130
806
  "DELETE"
1131
807
  ];
1132
808
  new Set(
1133
- Be
809
+ De
1134
810
  );
1135
- var At = [
811
+ var Ct = [
1136
812
  "GET",
1137
- ...Be
813
+ ...De
1138
814
  ];
1139
- new Set(At);
1140
- var B = c.createContext(null);
1141
- B.displayName = "DataRouter";
1142
- var re = c.createContext(null);
815
+ new Set(Ct);
816
+ var H = u.createContext(null);
817
+ H.displayName = "DataRouter";
818
+ var re = u.createContext(null);
1143
819
  re.displayName = "DataRouterState";
1144
- c.createContext(!1);
1145
- var Ye = c.createContext({
820
+ u.createContext(!1);
821
+ var Me = u.createContext({
1146
822
  isTransitioning: !1
1147
823
  });
1148
- Ye.displayName = "ViewTransition";
1149
- var Ot = c.createContext(
824
+ Me.displayName = "ViewTransition";
825
+ var St = u.createContext(
1150
826
  /* @__PURE__ */ new Map()
1151
827
  );
1152
- Ot.displayName = "Fetchers";
1153
- var Ft = c.createContext(null);
1154
- Ft.displayName = "Await";
1155
- var $ = c.createContext(
828
+ St.displayName = "Fetchers";
829
+ var Nt = u.createContext(null);
830
+ Nt.displayName = "Await";
831
+ var $ = u.createContext(
1156
832
  null
1157
833
  );
1158
834
  $.displayName = "Navigation";
1159
- var ge = c.createContext(
835
+ var he = u.createContext(
1160
836
  null
1161
837
  );
1162
- ge.displayName = "Location";
1163
- var A = c.createContext({
838
+ he.displayName = "Location";
839
+ var A = u.createContext({
1164
840
  outlet: null,
1165
841
  matches: [],
1166
842
  isDataRoute: !1
1167
843
  });
1168
844
  A.displayName = "Route";
1169
- var pe = c.createContext(null);
845
+ var pe = u.createContext(null);
1170
846
  pe.displayName = "RouteError";
1171
- function Dt(e, { relative: r } = {}) {
1172
- S(
847
+ function Pt(e, { relative: r } = {}) {
848
+ P(
1173
849
  ne(),
1174
850
  // TODO: This error is probably because they somehow have 2 versions of the
1175
851
  // router loaded. We can help them understand how to avoid that.
1176
852
  "useHref() may be used only in the context of a <Router> component."
1177
853
  );
1178
- let { basename: t, navigator: n } = c.useContext($), { hash: a, pathname: o, search: l } = G(e, { relative: r }), i = o;
1179
- return t !== "/" && (i = o === "/" ? t : U([t, o])), n.createHref({ pathname: i, search: l, hash: a });
854
+ let { basename: t, navigator: n } = u.useContext($), { hash: a, pathname: o, search: l } = G(e, { relative: r }), i = o;
855
+ return t !== "/" && (i = o === "/" ? t : L([t, o])), n.createHref({ pathname: i, search: l, hash: a });
1180
856
  }
1181
857
  function ne() {
1182
- return c.useContext(ge) != null;
858
+ return u.useContext(he) != null;
1183
859
  }
1184
- function I() {
1185
- return S(
860
+ function D() {
861
+ return P(
1186
862
  ne(),
1187
863
  // TODO: This error is probably because they somehow have 2 versions of the
1188
864
  // router loaded. We can help them understand how to avoid that.
1189
865
  "useLocation() may be used only in the context of a <Router> component."
1190
- ), c.useContext(ge).location;
866
+ ), u.useContext(he).location;
1191
867
  }
1192
- var He = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
1193
- function Je(e) {
1194
- c.useContext($).static || c.useLayoutEffect(e);
868
+ var We = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
869
+ function ze(e) {
870
+ u.useContext($).static || u.useLayoutEffect(e);
1195
871
  }
1196
- function It() {
1197
- let { isDataRoute: e } = c.useContext(A);
1198
- return e ? Zt() : Mt();
872
+ function jt() {
873
+ let { isDataRoute: e } = u.useContext(A);
874
+ return e ? zt() : _t();
1199
875
  }
1200
- function Mt() {
1201
- S(
876
+ function _t() {
877
+ P(
1202
878
  ne(),
1203
879
  // TODO: This error is probably because they somehow have 2 versions of the
1204
880
  // router loaded. We can help them understand how to avoid that.
1205
881
  "useNavigate() may be used only in the context of a <Router> component."
1206
882
  );
1207
- let e = c.useContext(B), { basename: r, navigator: t } = c.useContext($), { matches: n } = c.useContext(A), { pathname: a } = I(), o = JSON.stringify(Ve(n)), l = c.useRef(!1);
1208
- return Je(() => {
883
+ let e = u.useContext(H), { basename: r, navigator: t } = u.useContext($), { matches: n } = u.useContext(A), { pathname: a } = D(), o = JSON.stringify(Fe(n)), l = u.useRef(!1);
884
+ return ze(() => {
1209
885
  l.current = !0;
1210
- }), c.useCallback(
1211
- (s, d = {}) => {
1212
- if (T(l.current, He), !l.current) return;
1213
- if (typeof s == "number") {
1214
- t.go(s);
886
+ }), u.useCallback(
887
+ (c, f = {}) => {
888
+ if (_(l.current, We), !l.current) return;
889
+ if (typeof c == "number") {
890
+ t.go(c);
1215
891
  return;
1216
892
  }
1217
- let f = ze(
1218
- s,
893
+ let m = Ie(
894
+ c,
1219
895
  JSON.parse(o),
1220
896
  a,
1221
- d.relative === "path"
897
+ f.relative === "path"
1222
898
  );
1223
- e == null && r !== "/" && (f.pathname = f.pathname === "/" ? r : U([r, f.pathname])), (d.replace ? t.replace : t.push)(
1224
- f,
1225
- d.state,
1226
- d
899
+ e == null && r !== "/" && (m.pathname = m.pathname === "/" ? r : L([r, m.pathname])), (f.replace ? t.replace : t.push)(
900
+ m,
901
+ f.state,
902
+ f
1227
903
  );
1228
904
  },
1229
905
  [
@@ -1235,11 +911,11 @@ function Mt() {
1235
911
  ]
1236
912
  );
1237
913
  }
1238
- c.createContext(null);
914
+ u.createContext(null);
1239
915
  function G(e, { relative: r } = {}) {
1240
- let { matches: t } = c.useContext(A), { pathname: n } = I(), a = JSON.stringify(Ve(t));
1241
- return c.useMemo(
1242
- () => ze(
916
+ let { matches: t } = u.useContext(A), { pathname: n } = D(), a = JSON.stringify(Fe(t));
917
+ return u.useMemo(
918
+ () => Ie(
1243
919
  e,
1244
920
  JSON.parse(a),
1245
921
  n,
@@ -1248,61 +924,61 @@ function G(e, { relative: r } = {}) {
1248
924
  [e, a, n, r]
1249
925
  );
1250
926
  }
1251
- function Wt(e, r, t, n, a) {
1252
- S(
927
+ function Tt(e, r, t, n, a) {
928
+ P(
1253
929
  ne(),
1254
930
  // TODO: This error is probably because they somehow have 2 versions of the
1255
931
  // router loaded. We can help them understand how to avoid that.
1256
932
  "useRoutes() may be used only in the context of a <Router> component."
1257
933
  );
1258
- let { navigator: o } = c.useContext($), { matches: l } = c.useContext(A), i = l[l.length - 1], s = i ? i.params : {}, d = i ? i.pathname : "/", f = i ? i.pathnameBase : "/", m = i && i.route;
934
+ let { navigator: o } = u.useContext($), { matches: l } = u.useContext(A), i = l[l.length - 1], c = i ? i.params : {}, f = i ? i.pathname : "/", m = i ? i.pathnameBase : "/", d = i && i.route;
1259
935
  {
1260
- let g = m && m.path || "";
1261
- Ge(
1262
- d,
1263
- !m || g.endsWith("*") || g.endsWith("*?"),
1264
- `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${g}">) 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.
936
+ let b = d && d.path || "";
937
+ Ye(
938
+ f,
939
+ !d || b.endsWith("*") || b.endsWith("*?"),
940
+ `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${b}">) 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.
1265
941
 
1266
- Please change the parent <Route path="${g}"> to <Route path="${g === "/" ? "*" : `${g}/*`}">.`
942
+ Please change the parent <Route path="${b}"> to <Route path="${b === "/" ? "*" : `${b}/*`}">.`
1267
943
  );
1268
944
  }
1269
- let p = I(), b;
1270
- b = p;
1271
- let x = b.pathname || "/", C = x;
1272
- if (f !== "/") {
1273
- let g = f.replace(/^\//, "").split("/");
1274
- C = "/" + x.replace(/^\//, "").split("/").slice(g.length).join("/");
945
+ let p = D(), g;
946
+ g = p;
947
+ let y = g.pathname || "/", E = y;
948
+ if (m !== "/") {
949
+ let b = m.replace(/^\//, "").split("/");
950
+ E = "/" + y.replace(/^\//, "").split("/").slice(b.length).join("/");
1275
951
  }
1276
- let v = Ie(e, { pathname: C });
1277
- return T(
1278
- m || v != null,
1279
- `No routes matched location "${b.pathname}${b.search}${b.hash}" `
1280
- ), T(
1281
- v == null || v[v.length - 1].route.element !== void 0 || v[v.length - 1].route.Component !== void 0 || v[v.length - 1].route.lazy !== void 0,
1282
- `Matched leaf route at location "${b.pathname}${b.search}${b.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.`
1283
- ), Ht(
1284
- v && v.map(
1285
- (g) => Object.assign({}, g, {
1286
- params: Object.assign({}, s, g.params),
1287
- pathname: U([
1288
- f,
952
+ let w = Ae(e, { pathname: E });
953
+ return _(
954
+ d || w != null,
955
+ `No routes matched location "${g.pathname}${g.search}${g.hash}" `
956
+ ), _(
957
+ w == null || w[w.length - 1].route.element !== void 0 || w[w.length - 1].route.Component !== void 0 || w[w.length - 1].route.lazy !== void 0,
958
+ `Matched leaf route at location "${g.pathname}${g.search}${g.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.`
959
+ ), Ut(
960
+ w && w.map(
961
+ (b) => Object.assign({}, b, {
962
+ params: Object.assign({}, c, b.params),
963
+ pathname: L([
964
+ m,
1289
965
  // Re-encode pathnames that were decoded inside matchRoutes.
1290
966
  // Pre-encode `?` and `#` ahead of `encodeLocation` because it uses
1291
967
  // `new URL()` internally and we need to prevent it from treating
1292
968
  // them as separators
1293
969
  o.encodeLocation ? o.encodeLocation(
1294
- g.pathname.replace(/\?/g, "%3F").replace(/#/g, "%23")
1295
- ).pathname : g.pathname
970
+ b.pathname.replace(/\?/g, "%3F").replace(/#/g, "%23")
971
+ ).pathname : b.pathname
1296
972
  ]),
1297
- pathnameBase: g.pathnameBase === "/" ? f : U([
1298
- f,
973
+ pathnameBase: b.pathnameBase === "/" ? m : L([
974
+ m,
1299
975
  // Re-encode pathnames that were decoded inside matchRoutes
1300
976
  // Pre-encode `?` and `#` ahead of `encodeLocation` because it uses
1301
977
  // `new URL()` internally and we need to prevent it from treating
1302
978
  // them as separators
1303
979
  o.encodeLocation ? o.encodeLocation(
1304
- g.pathnameBase.replace(/\?/g, "%3F").replace(/#/g, "%23")
1305
- ).pathname : g.pathnameBase
980
+ b.pathnameBase.replace(/\?/g, "%3F").replace(/#/g, "%23")
981
+ ).pathname : b.pathnameBase
1306
982
  ])
1307
983
  })
1308
984
  ),
@@ -1312,14 +988,14 @@ Please change the parent <Route path="${g}"> to <Route path="${g === "/" ? "*" :
1312
988
  a
1313
989
  );
1314
990
  }
1315
- function Vt() {
1316
- let e = Xt(), r = $t(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), t = e instanceof Error ? e.stack : null, n = "rgba(200,200,200, 0.5)", a = { padding: "0.5rem", backgroundColor: n }, o = { padding: "2px 4px", backgroundColor: n }, l = null;
991
+ function Lt() {
992
+ let e = Wt(), r = Rt(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), t = e instanceof Error ? e.stack : null, n = "rgba(200,200,200, 0.5)", a = { padding: "0.5rem", backgroundColor: n }, o = { padding: "2px 4px", backgroundColor: n }, l = null;
1317
993
  return console.error(
1318
994
  "Error handled by React Router default ErrorBoundary:",
1319
995
  e
1320
- ), l = /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ c.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ c.createElement("code", { style: o }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ c.createElement("code", { style: o }, "errorElement"), " prop on your route.")), /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ c.createElement("h3", { style: { fontStyle: "italic" } }, r), t ? /* @__PURE__ */ c.createElement("pre", { style: a }, t) : null, l);
996
+ ), l = /* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ u.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ u.createElement("code", { style: o }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ u.createElement("code", { style: o }, "errorElement"), " prop on your route.")), /* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ u.createElement("h3", { style: { fontStyle: "italic" } }, r), t ? /* @__PURE__ */ u.createElement("pre", { style: a }, t) : null, l);
1321
997
  }
1322
- var zt = /* @__PURE__ */ c.createElement(Vt, null), Bt = class extends c.Component {
998
+ var $t = /* @__PURE__ */ u.createElement(Lt, null), At = class extends u.Component {
1323
999
  constructor(e) {
1324
1000
  super(e), this.state = {
1325
1001
  location: e.location,
@@ -1348,7 +1024,7 @@ var zt = /* @__PURE__ */ c.createElement(Vt, null), Bt = class extends c.Compone
1348
1024
  );
1349
1025
  }
1350
1026
  render() {
1351
- return this.state.error !== void 0 ? /* @__PURE__ */ c.createElement(A.Provider, { value: this.props.routeContext }, /* @__PURE__ */ c.createElement(
1027
+ return this.state.error !== void 0 ? /* @__PURE__ */ u.createElement(A.Provider, { value: this.props.routeContext }, /* @__PURE__ */ u.createElement(
1352
1028
  pe.Provider,
1353
1029
  {
1354
1030
  value: this.state.error,
@@ -1357,11 +1033,11 @@ var zt = /* @__PURE__ */ c.createElement(Vt, null), Bt = class extends c.Compone
1357
1033
  )) : this.props.children;
1358
1034
  }
1359
1035
  };
1360
- function Yt({ routeContext: e, match: r, children: t }) {
1361
- let n = c.useContext(B);
1362
- return n && n.static && n.staticContext && (r.route.errorElement || r.route.ErrorBoundary) && (n.staticContext._deepestRenderedBoundaryId = r.route.id), /* @__PURE__ */ c.createElement(A.Provider, { value: e }, t);
1036
+ function Ot({ routeContext: e, match: r, children: t }) {
1037
+ let n = u.useContext(H);
1038
+ return n && n.static && n.staticContext && (r.route.errorElement || r.route.ErrorBoundary) && (n.staticContext._deepestRenderedBoundaryId = r.route.id), /* @__PURE__ */ u.createElement(A.Provider, { value: e }, t);
1363
1039
  }
1364
- function Ht(e, r = [], t = null, n = null, a = null) {
1040
+ function Ut(e, r = [], t = null, n = null, a = null) {
1365
1041
  if (e == null) {
1366
1042
  if (!t)
1367
1043
  return null;
@@ -1374,168 +1050,168 @@ function Ht(e, r = [], t = null, n = null, a = null) {
1374
1050
  }
1375
1051
  let o = e, l = t?.errors;
1376
1052
  if (l != null) {
1377
- let f = o.findIndex(
1378
- (m) => m.route.id && l?.[m.route.id] !== void 0
1053
+ let m = o.findIndex(
1054
+ (d) => d.route.id && l?.[d.route.id] !== void 0
1379
1055
  );
1380
- S(
1381
- f >= 0,
1056
+ P(
1057
+ m >= 0,
1382
1058
  `Could not find a matching route for errors on route IDs: ${Object.keys(
1383
1059
  l
1384
1060
  ).join(",")}`
1385
1061
  ), o = o.slice(
1386
1062
  0,
1387
- Math.min(o.length, f + 1)
1063
+ Math.min(o.length, m + 1)
1388
1064
  );
1389
1065
  }
1390
- let i = !1, s = -1;
1066
+ let i = !1, c = -1;
1391
1067
  if (t)
1392
- for (let f = 0; f < o.length; f++) {
1393
- let m = o[f];
1394
- if ((m.route.HydrateFallback || m.route.hydrateFallbackElement) && (s = f), m.route.id) {
1395
- let { loaderData: p, errors: b } = t, x = m.route.loader && !p.hasOwnProperty(m.route.id) && (!b || b[m.route.id] === void 0);
1396
- if (m.route.lazy || x) {
1397
- i = !0, s >= 0 ? o = o.slice(0, s + 1) : o = [o[0]];
1068
+ for (let m = 0; m < o.length; m++) {
1069
+ let d = o[m];
1070
+ if ((d.route.HydrateFallback || d.route.hydrateFallbackElement) && (c = m), d.route.id) {
1071
+ let { loaderData: p, errors: g } = t, y = d.route.loader && !p.hasOwnProperty(d.route.id) && (!g || g[d.route.id] === void 0);
1072
+ if (d.route.lazy || y) {
1073
+ i = !0, c >= 0 ? o = o.slice(0, c + 1) : o = [o[0]];
1398
1074
  break;
1399
1075
  }
1400
1076
  }
1401
1077
  }
1402
- let d = t && n ? (f, m) => {
1403
- n(f, {
1078
+ let f = t && n ? (m, d) => {
1079
+ n(m, {
1404
1080
  location: t.location,
1405
1081
  params: t.matches?.[0]?.params ?? {},
1406
- errorInfo: m
1082
+ errorInfo: d
1407
1083
  });
1408
1084
  } : void 0;
1409
1085
  return o.reduceRight(
1410
- (f, m, p) => {
1411
- let b, x = !1, C = null, v = null;
1412
- t && (b = l && m.route.id ? l[m.route.id] : void 0, C = m.route.errorElement || zt, i && (s < 0 && p === 0 ? (Ge(
1086
+ (m, d, p) => {
1087
+ let g, y = !1, E = null, w = null;
1088
+ t && (g = l && d.route.id ? l[d.route.id] : void 0, E = d.route.errorElement || $t, i && (c < 0 && p === 0 ? (Ye(
1413
1089
  "route-fallback",
1414
1090
  !1,
1415
1091
  "No `HydrateFallback` element provided to render during initial hydration"
1416
- ), x = !0, v = null) : s === p && (x = !0, v = m.route.hydrateFallbackElement || null)));
1417
- let k = r.concat(o.slice(0, p + 1)), g = () => {
1418
- let w;
1419
- return b ? w = C : x ? w = v : m.route.Component ? w = /* @__PURE__ */ c.createElement(m.route.Component, null) : m.route.element ? w = m.route.element : w = f, /* @__PURE__ */ c.createElement(
1420
- Yt,
1092
+ ), y = !0, w = null) : c === p && (y = !0, w = d.route.hydrateFallbackElement || null)));
1093
+ let v = r.concat(o.slice(0, p + 1)), b = () => {
1094
+ let k;
1095
+ return g ? k = E : y ? k = w : d.route.Component ? k = /* @__PURE__ */ u.createElement(d.route.Component, null) : d.route.element ? k = d.route.element : k = m, /* @__PURE__ */ u.createElement(
1096
+ Ot,
1421
1097
  {
1422
- match: m,
1098
+ match: d,
1423
1099
  routeContext: {
1424
- outlet: f,
1425
- matches: k,
1100
+ outlet: m,
1101
+ matches: v,
1426
1102
  isDataRoute: t != null
1427
1103
  },
1428
- children: w
1104
+ children: k
1429
1105
  }
1430
1106
  );
1431
1107
  };
1432
- return t && (m.route.ErrorBoundary || m.route.errorElement || p === 0) ? /* @__PURE__ */ c.createElement(
1433
- Bt,
1108
+ return t && (d.route.ErrorBoundary || d.route.errorElement || p === 0) ? /* @__PURE__ */ u.createElement(
1109
+ At,
1434
1110
  {
1435
1111
  location: t.location,
1436
1112
  revalidation: t.revalidation,
1437
- component: C,
1438
- error: b,
1439
- children: g(),
1440
- routeContext: { outlet: null, matches: k, isDataRoute: !0 },
1441
- onError: d
1113
+ component: E,
1114
+ error: g,
1115
+ children: b(),
1116
+ routeContext: { outlet: null, matches: v, isDataRoute: !0 },
1117
+ onError: f
1442
1118
  }
1443
- ) : g();
1119
+ ) : b();
1444
1120
  },
1445
1121
  null
1446
1122
  );
1447
1123
  }
1448
- function be(e) {
1124
+ function ge(e) {
1449
1125
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1450
1126
  }
1451
- function Jt(e) {
1452
- let r = c.useContext(B);
1453
- return S(r, be(e)), r;
1127
+ function Ft(e) {
1128
+ let r = u.useContext(H);
1129
+ return P(r, ge(e)), r;
1454
1130
  }
1455
- function Gt(e) {
1456
- let r = c.useContext(re);
1457
- return S(r, be(e)), r;
1131
+ function It(e) {
1132
+ let r = u.useContext(re);
1133
+ return P(r, ge(e)), r;
1458
1134
  }
1459
- function qt(e) {
1460
- let r = c.useContext(A);
1461
- return S(r, be(e)), r;
1135
+ function Dt(e) {
1136
+ let r = u.useContext(A);
1137
+ return P(r, ge(e)), r;
1462
1138
  }
1463
- function xe(e) {
1464
- let r = qt(e), t = r.matches[r.matches.length - 1];
1465
- return S(
1139
+ function be(e) {
1140
+ let r = Dt(e), t = r.matches[r.matches.length - 1];
1141
+ return P(
1466
1142
  t.route.id,
1467
1143
  `${e} can only be used on routes that contain a unique "id"`
1468
1144
  ), t.route.id;
1469
1145
  }
1470
- function Kt() {
1471
- return xe(
1146
+ function Mt() {
1147
+ return be(
1472
1148
  "useRouteId"
1473
1149
  /* UseRouteId */
1474
1150
  );
1475
1151
  }
1476
- function Xt() {
1477
- let e = c.useContext(pe), r = Gt(
1152
+ function Wt() {
1153
+ let e = u.useContext(pe), r = It(
1478
1154
  "useRouteError"
1479
1155
  /* UseRouteError */
1480
- ), t = xe(
1156
+ ), t = be(
1481
1157
  "useRouteError"
1482
1158
  /* UseRouteError */
1483
1159
  );
1484
1160
  return e !== void 0 ? e : r.errors?.[t];
1485
1161
  }
1486
- function Zt() {
1487
- let { router: e } = Jt(
1162
+ function zt() {
1163
+ let { router: e } = Ft(
1488
1164
  "useNavigate"
1489
1165
  /* UseNavigateStable */
1490
- ), r = xe(
1166
+ ), r = be(
1491
1167
  "useNavigate"
1492
1168
  /* UseNavigateStable */
1493
- ), t = c.useRef(!1);
1494
- return Je(() => {
1169
+ ), t = u.useRef(!1);
1170
+ return ze(() => {
1495
1171
  t.current = !0;
1496
- }), c.useCallback(
1172
+ }), u.useCallback(
1497
1173
  async (a, o = {}) => {
1498
- T(t.current, He), t.current && (typeof a == "number" ? e.navigate(a) : await e.navigate(a, { fromRouteId: r, ...o }));
1174
+ _(t.current, We), t.current && (typeof a == "number" ? e.navigate(a) : await e.navigate(a, { fromRouteId: r, ...o }));
1499
1175
  },
1500
1176
  [e, r]
1501
1177
  );
1502
1178
  }
1503
- var Oe = {};
1504
- function Ge(e, r, t) {
1505
- !r && !Oe[e] && (Oe[e] = !0, T(!1, t));
1179
+ var Le = {};
1180
+ function Ye(e, r, t) {
1181
+ !r && !Le[e] && (Le[e] = !0, _(!1, t));
1506
1182
  }
1507
- c.memo(Qt);
1508
- function Qt({
1183
+ u.memo(Yt);
1184
+ function Yt({
1509
1185
  routes: e,
1510
1186
  future: r,
1511
1187
  state: t,
1512
1188
  unstable_onError: n
1513
1189
  }) {
1514
- return Wt(e, void 0, t, n, r);
1190
+ return Tt(e, void 0, t, n, r);
1515
1191
  }
1516
1192
  var Q = "get", ee = "application/x-www-form-urlencoded";
1517
1193
  function ae(e) {
1518
1194
  return e != null && typeof e.tagName == "string";
1519
1195
  }
1520
- function er(e) {
1196
+ function Ht(e) {
1521
1197
  return ae(e) && e.tagName.toLowerCase() === "button";
1522
1198
  }
1523
- function tr(e) {
1199
+ function Vt(e) {
1524
1200
  return ae(e) && e.tagName.toLowerCase() === "form";
1525
1201
  }
1526
- function rr(e) {
1202
+ function Bt(e) {
1527
1203
  return ae(e) && e.tagName.toLowerCase() === "input";
1528
1204
  }
1529
- function nr(e) {
1205
+ function Jt(e) {
1530
1206
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
1531
1207
  }
1532
- function ar(e, r) {
1208
+ function Gt(e, r) {
1533
1209
  return e.button === 0 && // Ignore everything but left clicks
1534
1210
  (!r || r === "_self") && // Let browser handle "target=_blank" etc.
1535
- !nr(e);
1211
+ !Jt(e);
1536
1212
  }
1537
1213
  var Z = null;
1538
- function or() {
1214
+ function qt() {
1539
1215
  if (Z === null)
1540
1216
  try {
1541
1217
  new FormData(
@@ -1548,35 +1224,35 @@ function or() {
1548
1224
  }
1549
1225
  return Z;
1550
1226
  }
1551
- var lr = /* @__PURE__ */ new Set([
1227
+ var Xt = /* @__PURE__ */ new Set([
1552
1228
  "application/x-www-form-urlencoded",
1553
1229
  "multipart/form-data",
1554
1230
  "text/plain"
1555
1231
  ]);
1556
1232
  function ce(e) {
1557
- return e != null && !lr.has(e) ? (T(
1233
+ return e != null && !Xt.has(e) ? (_(
1558
1234
  !1,
1559
1235
  `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ee}"`
1560
1236
  ), null) : e;
1561
1237
  }
1562
- function ir(e, r) {
1238
+ function Kt(e, r) {
1563
1239
  let t, n, a, o, l;
1564
- if (tr(e)) {
1240
+ if (Vt(e)) {
1565
1241
  let i = e.getAttribute("action");
1566
1242
  n = i ? F(i, r) : null, t = e.getAttribute("method") || Q, a = ce(e.getAttribute("enctype")) || ee, o = new FormData(e);
1567
- } else if (er(e) || rr(e) && (e.type === "submit" || e.type === "image")) {
1243
+ } else if (Ht(e) || Bt(e) && (e.type === "submit" || e.type === "image")) {
1568
1244
  let i = e.form;
1569
1245
  if (i == null)
1570
1246
  throw new Error(
1571
1247
  'Cannot submit a <button> or <input type="submit"> without a <form>'
1572
1248
  );
1573
- let s = e.getAttribute("formaction") || i.getAttribute("action");
1574
- if (n = s ? F(s, r) : null, t = e.getAttribute("formmethod") || i.getAttribute("method") || Q, a = ce(e.getAttribute("formenctype")) || ce(i.getAttribute("enctype")) || ee, o = new FormData(i, e), !or()) {
1575
- let { name: d, type: f, value: m } = e;
1576
- if (f === "image") {
1577
- let p = d ? `${d}.` : "";
1249
+ let c = e.getAttribute("formaction") || i.getAttribute("action");
1250
+ if (n = c ? F(c, r) : null, t = e.getAttribute("formmethod") || i.getAttribute("method") || Q, a = ce(e.getAttribute("formenctype")) || ce(i.getAttribute("enctype")) || ee, o = new FormData(i, e), !qt()) {
1251
+ let { name: f, type: m, value: d } = e;
1252
+ if (m === "image") {
1253
+ let p = f ? `${f}.` : "";
1578
1254
  o.append(`${p}x`, "0"), o.append(`${p}y`, "0");
1579
- } else d && o.append(d, m);
1255
+ } else f && o.append(f, d);
1580
1256
  }
1581
1257
  } else {
1582
1258
  if (ae(e))
@@ -1588,11 +1264,11 @@ function ir(e, r) {
1588
1264
  return o && a === "text/plain" && (l = o, o = void 0), { action: n, method: t.toLowerCase(), encType: a, formData: o, body: l };
1589
1265
  }
1590
1266
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
1591
- function ve(e, r) {
1267
+ function xe(e, r) {
1592
1268
  if (e === !1 || e === null || typeof e > "u")
1593
1269
  throw new Error(r);
1594
1270
  }
1595
- function sr(e, r, t) {
1271
+ function Zt(e, r, t) {
1596
1272
  let n = typeof e == "string" ? new URL(
1597
1273
  e,
1598
1274
  // This can be called during the SSR flow via PrefetchPageLinksImpl so
@@ -1601,7 +1277,7 @@ function sr(e, r, t) {
1601
1277
  ) : e;
1602
1278
  return n.pathname === "/" ? n.pathname = `_root.${t}` : r && F(n.pathname, r) === "/" ? n.pathname = `${r.replace(/\/$/, "")}/_root.${t}` : n.pathname = `${n.pathname.replace(/\/$/, "")}.${t}`, n;
1603
1279
  }
1604
- async function ur(e, r) {
1280
+ async function Qt(e, r) {
1605
1281
  if (e.id in r)
1606
1282
  return r[e.id];
1607
1283
  try {
@@ -1618,60 +1294,60 @@ async function ur(e, r) {
1618
1294
  });
1619
1295
  }
1620
1296
  }
1621
- function cr(e) {
1297
+ function er(e) {
1622
1298
  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";
1623
1299
  }
1624
- async function dr(e, r, t) {
1300
+ async function tr(e, r, t) {
1625
1301
  let n = await Promise.all(
1626
1302
  e.map(async (a) => {
1627
1303
  let o = r.routes[a.route.id];
1628
1304
  if (o) {
1629
- let l = await ur(o, t);
1305
+ let l = await Qt(o, t);
1630
1306
  return l.links ? l.links() : [];
1631
1307
  }
1632
1308
  return [];
1633
1309
  })
1634
1310
  );
1635
- return gr(
1636
- n.flat(1).filter(cr).filter((a) => a.rel === "stylesheet" || a.rel === "preload").map(
1311
+ return or(
1312
+ n.flat(1).filter(er).filter((a) => a.rel === "stylesheet" || a.rel === "preload").map(
1637
1313
  (a) => a.rel === "stylesheet" ? { ...a, rel: "prefetch", as: "style" } : { ...a, rel: "prefetch" }
1638
1314
  )
1639
1315
  );
1640
1316
  }
1641
- function Fe(e, r, t, n, a, o) {
1642
- let l = (s, d) => t[d] ? s.route.id !== t[d].route.id : !0, i = (s, d) => (
1317
+ function $e(e, r, t, n, a, o) {
1318
+ let l = (c, f) => t[f] ? c.route.id !== t[f].route.id : !0, i = (c, f) => (
1643
1319
  // param change, /users/123 -> /users/456
1644
- t[d].pathname !== s.pathname || // splat param changed, which is not present in match.path
1320
+ t[f].pathname !== c.pathname || // splat param changed, which is not present in match.path
1645
1321
  // e.g. /files/images/avatar.jpg -> files/finances.xls
1646
- t[d].route.path?.endsWith("*") && t[d].params["*"] !== s.params["*"]
1322
+ t[f].route.path?.endsWith("*") && t[f].params["*"] !== c.params["*"]
1647
1323
  );
1648
1324
  return o === "assets" ? r.filter(
1649
- (s, d) => l(s, d) || i(s, d)
1650
- ) : o === "data" ? r.filter((s, d) => {
1651
- let f = n.routes[s.route.id];
1652
- if (!f || !f.hasLoader)
1325
+ (c, f) => l(c, f) || i(c, f)
1326
+ ) : o === "data" ? r.filter((c, f) => {
1327
+ let m = n.routes[c.route.id];
1328
+ if (!m || !m.hasLoader)
1653
1329
  return !1;
1654
- if (l(s, d) || i(s, d))
1330
+ if (l(c, f) || i(c, f))
1655
1331
  return !0;
1656
- if (s.route.shouldRevalidate) {
1657
- let m = s.route.shouldRevalidate({
1332
+ if (c.route.shouldRevalidate) {
1333
+ let d = c.route.shouldRevalidate({
1658
1334
  currentUrl: new URL(
1659
1335
  a.pathname + a.search + a.hash,
1660
1336
  window.origin
1661
1337
  ),
1662
1338
  currentParams: t[0]?.params || {},
1663
1339
  nextUrl: new URL(e, window.origin),
1664
- nextParams: s.params,
1340
+ nextParams: c.params,
1665
1341
  defaultShouldRevalidate: !0
1666
1342
  });
1667
- if (typeof m == "boolean")
1668
- return m;
1343
+ if (typeof d == "boolean")
1344
+ return d;
1669
1345
  }
1670
1346
  return !0;
1671
1347
  }) : [];
1672
1348
  }
1673
- function mr(e, r, { includeHydrateFallback: t } = {}) {
1674
- return fr(
1349
+ function rr(e, r, { includeHydrateFallback: t } = {}) {
1350
+ return nr(
1675
1351
  e.map((n) => {
1676
1352
  let a = r.routes[n.route.id];
1677
1353
  if (!a) return [];
@@ -1680,82 +1356,82 @@ function mr(e, r, { includeHydrateFallback: t } = {}) {
1680
1356
  }).flat(1)
1681
1357
  );
1682
1358
  }
1683
- function fr(e) {
1359
+ function nr(e) {
1684
1360
  return [...new Set(e)];
1685
1361
  }
1686
- function hr(e) {
1362
+ function ar(e) {
1687
1363
  let r = {}, t = Object.keys(e).sort();
1688
1364
  for (let n of t)
1689
1365
  r[n] = e[n];
1690
1366
  return r;
1691
1367
  }
1692
- function gr(e, r) {
1368
+ function or(e, r) {
1693
1369
  let t = /* @__PURE__ */ new Set();
1694
1370
  return new Set(r), e.reduce((n, a) => {
1695
- let o = JSON.stringify(hr(a));
1371
+ let o = JSON.stringify(ar(a));
1696
1372
  return t.has(o) || (t.add(o), n.push({ key: o, link: a })), n;
1697
1373
  }, []);
1698
1374
  }
1699
- function qe() {
1700
- let e = c.useContext(B);
1701
- return ve(
1375
+ function He() {
1376
+ let e = u.useContext(H);
1377
+ return xe(
1702
1378
  e,
1703
1379
  "You must render this element inside a <DataRouterContext.Provider> element"
1704
1380
  ), e;
1705
1381
  }
1706
- function pr() {
1707
- let e = c.useContext(re);
1708
- return ve(
1382
+ function lr() {
1383
+ let e = u.useContext(re);
1384
+ return xe(
1709
1385
  e,
1710
1386
  "You must render this element inside a <DataRouterStateContext.Provider> element"
1711
1387
  ), e;
1712
1388
  }
1713
- var ye = c.createContext(void 0);
1389
+ var ye = u.createContext(void 0);
1714
1390
  ye.displayName = "FrameworkContext";
1715
- function Ke() {
1716
- let e = c.useContext(ye);
1717
- return ve(
1391
+ function Ve() {
1392
+ let e = u.useContext(ye);
1393
+ return xe(
1718
1394
  e,
1719
1395
  "You must render this element inside a <HydratedRouter> element"
1720
1396
  ), e;
1721
1397
  }
1722
- function br(e, r) {
1723
- let t = c.useContext(ye), [n, a] = c.useState(!1), [o, l] = c.useState(!1), { onFocus: i, onBlur: s, onMouseEnter: d, onMouseLeave: f, onTouchStart: m } = r, p = c.useRef(null);
1724
- c.useEffect(() => {
1398
+ function ir(e, r) {
1399
+ let t = u.useContext(ye), [n, a] = u.useState(!1), [o, l] = u.useState(!1), { onFocus: i, onBlur: c, onMouseEnter: f, onMouseLeave: m, onTouchStart: d } = r, p = u.useRef(null);
1400
+ u.useEffect(() => {
1725
1401
  if (e === "render" && l(!0), e === "viewport") {
1726
- let C = (k) => {
1727
- k.forEach((g) => {
1728
- l(g.isIntersecting);
1402
+ let E = (v) => {
1403
+ v.forEach((b) => {
1404
+ l(b.isIntersecting);
1729
1405
  });
1730
- }, v = new IntersectionObserver(C, { threshold: 0.5 });
1731
- return p.current && v.observe(p.current), () => {
1732
- v.disconnect();
1406
+ }, w = new IntersectionObserver(E, { threshold: 0.5 });
1407
+ return p.current && w.observe(p.current), () => {
1408
+ w.disconnect();
1733
1409
  };
1734
1410
  }
1735
- }, [e]), c.useEffect(() => {
1411
+ }, [e]), u.useEffect(() => {
1736
1412
  if (n) {
1737
- let C = setTimeout(() => {
1413
+ let E = setTimeout(() => {
1738
1414
  l(!0);
1739
1415
  }, 100);
1740
1416
  return () => {
1741
- clearTimeout(C);
1417
+ clearTimeout(E);
1742
1418
  };
1743
1419
  }
1744
1420
  }, [n]);
1745
- let b = () => {
1421
+ let g = () => {
1746
1422
  a(!0);
1747
- }, x = () => {
1423
+ }, y = () => {
1748
1424
  a(!1), l(!1);
1749
1425
  };
1750
1426
  return t ? e !== "intent" ? [o, p, {}] : [
1751
1427
  o,
1752
1428
  p,
1753
1429
  {
1754
- onFocus: J(i, b),
1755
- onBlur: J(s, x),
1756
- onMouseEnter: J(d, b),
1757
- onMouseLeave: J(f, x),
1758
- onTouchStart: J(m, b)
1430
+ onFocus: J(i, g),
1431
+ onBlur: J(c, y),
1432
+ onMouseEnter: J(f, g),
1433
+ onMouseLeave: J(m, y),
1434
+ onTouchStart: J(d, g)
1759
1435
  }
1760
1436
  ] : [!1, p, {}];
1761
1437
  }
@@ -1764,18 +1440,18 @@ function J(e, r) {
1764
1440
  e && e(t), t.defaultPrevented || r(t);
1765
1441
  };
1766
1442
  }
1767
- function xr({ page: e, ...r }) {
1768
- let { router: t } = qe(), n = c.useMemo(
1769
- () => Ie(t.routes, e, t.basename),
1443
+ function sr({ page: e, ...r }) {
1444
+ let { router: t } = He(), n = u.useMemo(
1445
+ () => Ae(t.routes, e, t.basename),
1770
1446
  [t.routes, e, t.basename]
1771
1447
  );
1772
- return n ? /* @__PURE__ */ c.createElement(yr, { page: e, matches: n, ...r }) : null;
1448
+ return n ? /* @__PURE__ */ u.createElement(cr, { page: e, matches: n, ...r }) : null;
1773
1449
  }
1774
- function vr(e) {
1775
- let { manifest: r, routeModules: t } = Ke(), [n, a] = c.useState([]);
1776
- return c.useEffect(() => {
1450
+ function ur(e) {
1451
+ let { manifest: r, routeModules: t } = Ve(), [n, a] = u.useState([]);
1452
+ return u.useEffect(() => {
1777
1453
  let o = !1;
1778
- return dr(e, r, t).then(
1454
+ return tr(e, r, t).then(
1779
1455
  (l) => {
1780
1456
  o || a(l);
1781
1457
  }
@@ -1784,78 +1460,78 @@ function vr(e) {
1784
1460
  };
1785
1461
  }, [e, r, t]), n;
1786
1462
  }
1787
- function yr({
1463
+ function cr({
1788
1464
  page: e,
1789
1465
  matches: r,
1790
1466
  ...t
1791
1467
  }) {
1792
- let n = I(), { manifest: a, routeModules: o } = Ke(), { basename: l } = qe(), { loaderData: i, matches: s } = pr(), d = c.useMemo(
1793
- () => Fe(
1468
+ let n = D(), { manifest: a, routeModules: o } = Ve(), { basename: l } = He(), { loaderData: i, matches: c } = lr(), f = u.useMemo(
1469
+ () => $e(
1794
1470
  e,
1795
1471
  r,
1796
- s,
1472
+ c,
1797
1473
  a,
1798
1474
  n,
1799
1475
  "data"
1800
1476
  ),
1801
- [e, r, s, a, n]
1802
- ), f = c.useMemo(
1803
- () => Fe(
1477
+ [e, r, c, a, n]
1478
+ ), m = u.useMemo(
1479
+ () => $e(
1804
1480
  e,
1805
1481
  r,
1806
- s,
1482
+ c,
1807
1483
  a,
1808
1484
  n,
1809
1485
  "assets"
1810
1486
  ),
1811
- [e, r, s, a, n]
1812
- ), m = c.useMemo(() => {
1487
+ [e, r, c, a, n]
1488
+ ), d = u.useMemo(() => {
1813
1489
  if (e === n.pathname + n.search + n.hash)
1814
1490
  return [];
1815
- let x = /* @__PURE__ */ new Set(), C = !1;
1816
- if (r.forEach((k) => {
1817
- let g = a.routes[k.route.id];
1818
- !g || !g.hasLoader || (!d.some((w) => w.route.id === k.route.id) && k.route.id in i && o[k.route.id]?.shouldRevalidate || g.hasClientLoader ? C = !0 : x.add(k.route.id));
1819
- }), x.size === 0)
1491
+ let y = /* @__PURE__ */ new Set(), E = !1;
1492
+ if (r.forEach((v) => {
1493
+ let b = a.routes[v.route.id];
1494
+ !b || !b.hasLoader || (!f.some((k) => k.route.id === v.route.id) && v.route.id in i && o[v.route.id]?.shouldRevalidate || b.hasClientLoader ? E = !0 : y.add(v.route.id));
1495
+ }), y.size === 0)
1820
1496
  return [];
1821
- let v = sr(e, l, "data");
1822
- return C && x.size > 0 && v.searchParams.set(
1497
+ let w = Zt(e, l, "data");
1498
+ return E && y.size > 0 && w.searchParams.set(
1823
1499
  "_routes",
1824
- r.filter((k) => x.has(k.route.id)).map((k) => k.route.id).join(",")
1825
- ), [v.pathname + v.search];
1500
+ r.filter((v) => y.has(v.route.id)).map((v) => v.route.id).join(",")
1501
+ ), [w.pathname + w.search];
1826
1502
  }, [
1827
1503
  l,
1828
1504
  i,
1829
1505
  n,
1830
1506
  a,
1831
- d,
1507
+ f,
1832
1508
  r,
1833
1509
  e,
1834
1510
  o
1835
- ]), p = c.useMemo(
1836
- () => mr(f, a),
1837
- [f, a]
1838
- ), b = vr(f);
1839
- return /* @__PURE__ */ c.createElement(c.Fragment, null, m.map((x) => /* @__PURE__ */ c.createElement("link", { key: x, rel: "prefetch", as: "fetch", href: x, ...t })), p.map((x) => /* @__PURE__ */ c.createElement("link", { key: x, rel: "modulepreload", href: x, ...t })), b.map(({ key: x, link: C }) => (
1511
+ ]), p = u.useMemo(
1512
+ () => rr(m, a),
1513
+ [m, a]
1514
+ ), g = ur(m);
1515
+ return /* @__PURE__ */ u.createElement(u.Fragment, null, d.map((y) => /* @__PURE__ */ u.createElement("link", { key: y, rel: "prefetch", as: "fetch", href: y, ...t })), p.map((y) => /* @__PURE__ */ u.createElement("link", { key: y, rel: "modulepreload", href: y, ...t })), g.map(({ key: y, link: E }) => (
1840
1516
  // these don't spread `linkProps` because they are full link descriptors
1841
1517
  // already with their own props
1842
- /* @__PURE__ */ c.createElement("link", { key: x, nonce: t.nonce, ...C })
1518
+ /* @__PURE__ */ u.createElement("link", { key: y, nonce: t.nonce, ...E })
1843
1519
  )));
1844
1520
  }
1845
- function kr(...e) {
1521
+ function dr(...e) {
1846
1522
  return (r) => {
1847
1523
  e.forEach((t) => {
1848
1524
  typeof t == "function" ? t(r) : t != null && (t.current = r);
1849
1525
  });
1850
1526
  };
1851
1527
  }
1852
- var Xe = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
1528
+ var Be = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
1853
1529
  try {
1854
- Xe && (window.__reactRouterVersion = // @ts-expect-error
1530
+ Be && (window.__reactRouterVersion = // @ts-expect-error
1855
1531
  "7.9.6");
1856
1532
  } catch {
1857
1533
  }
1858
- var Ze = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ke = c.forwardRef(
1534
+ var Je = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ve = u.forwardRef(
1859
1535
  function({
1860
1536
  onClick: r,
1861
1537
  discover: t = "render",
@@ -1864,57 +1540,57 @@ var Ze = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ke = c.forwardRef(
1864
1540
  reloadDocument: o,
1865
1541
  replace: l,
1866
1542
  state: i,
1867
- target: s,
1868
- to: d,
1869
- preventScrollReset: f,
1870
- viewTransition: m,
1543
+ target: c,
1544
+ to: f,
1545
+ preventScrollReset: m,
1546
+ viewTransition: d,
1871
1547
  ...p
1872
- }, b) {
1873
- let { basename: x } = c.useContext($), C = typeof d == "string" && Ze.test(d), v, k = !1;
1874
- if (typeof d == "string" && C && (v = d, Xe))
1548
+ }, g) {
1549
+ let { basename: y } = u.useContext($), E = typeof f == "string" && Je.test(f), w, v = !1;
1550
+ if (typeof f == "string" && E && (w = f, Be))
1875
1551
  try {
1876
- let P = new URL(window.location.href), O = d.startsWith("//") ? new URL(P.protocol + d) : new URL(d), q = F(O.pathname, x);
1877
- O.origin === P.origin && q != null ? d = q + O.search + O.hash : k = !0;
1552
+ let j = new URL(window.location.href), U = f.startsWith("//") ? new URL(j.protocol + f) : new URL(f), q = F(U.pathname, y);
1553
+ U.origin === j.origin && q != null ? f = q + U.search + U.hash : v = !0;
1878
1554
  } catch {
1879
- T(
1555
+ _(
1880
1556
  !1,
1881
- `<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
1557
+ `<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
1882
1558
  );
1883
1559
  }
1884
- let g = Dt(d, { relative: a }), [w, _, L] = br(
1560
+ let b = Pt(f, { relative: a }), [k, O, T] = ir(
1885
1561
  n,
1886
1562
  p
1887
- ), M = Rr(d, {
1563
+ ), M = pr(f, {
1888
1564
  replace: l,
1889
1565
  state: i,
1890
- target: s,
1891
- preventScrollReset: f,
1566
+ target: c,
1567
+ preventScrollReset: m,
1892
1568
  relative: a,
1893
- viewTransition: m
1569
+ viewTransition: d
1894
1570
  });
1895
- function D(P) {
1896
- r && r(P), P.defaultPrevented || M(P);
1571
+ function I(j) {
1572
+ r && r(j), j.defaultPrevented || M(j);
1897
1573
  }
1898
1574
  let W = (
1899
1575
  // eslint-disable-next-line jsx-a11y/anchor-has-content
1900
- /* @__PURE__ */ c.createElement(
1576
+ /* @__PURE__ */ u.createElement(
1901
1577
  "a",
1902
1578
  {
1903
1579
  ...p,
1904
- ...L,
1905
- href: v || g,
1906
- onClick: k || o ? r : D,
1907
- ref: kr(b, _),
1908
- target: s,
1909
- "data-discover": !C && t === "render" ? "true" : void 0
1580
+ ...T,
1581
+ href: w || b,
1582
+ onClick: v || o ? r : I,
1583
+ ref: dr(g, O),
1584
+ target: c,
1585
+ "data-discover": !E && t === "render" ? "true" : void 0
1910
1586
  }
1911
1587
  )
1912
1588
  );
1913
- return w && !C ? /* @__PURE__ */ c.createElement(c.Fragment, null, W, /* @__PURE__ */ c.createElement(xr, { page: g })) : W;
1589
+ return k && !E ? /* @__PURE__ */ u.createElement(u.Fragment, null, W, /* @__PURE__ */ u.createElement(sr, { page: b })) : W;
1914
1590
  }
1915
1591
  );
1916
- ke.displayName = "Link";
1917
- var wr = c.forwardRef(
1592
+ ve.displayName = "Link";
1593
+ var fr = u.forwardRef(
1918
1594
  function({
1919
1595
  "aria-current": r = "page",
1920
1596
  caseSensitive: t = !1,
@@ -1923,43 +1599,43 @@ var wr = c.forwardRef(
1923
1599
  style: o,
1924
1600
  to: l,
1925
1601
  viewTransition: i,
1926
- children: s,
1927
- ...d
1928
- }, f) {
1929
- let m = G(l, { relative: d.relative }), p = I(), b = c.useContext(re), { navigator: x, basename: C } = c.useContext($), v = b != null && // Conditional usage is OK here because the usage of a data router is static
1602
+ children: c,
1603
+ ...f
1604
+ }, m) {
1605
+ let d = G(l, { relative: f.relative }), p = D(), g = u.useContext(re), { navigator: y, basename: E } = u.useContext($), w = g != null && // Conditional usage is OK here because the usage of a data router is static
1930
1606
  // eslint-disable-next-line react-hooks/rules-of-hooks
1931
- _r(m) && i === !0, k = x.encodeLocation ? x.encodeLocation(m).pathname : m.pathname, g = p.pathname, w = b && b.navigation && b.navigation.location ? b.navigation.location.pathname : null;
1932
- t || (g = g.toLowerCase(), w = w ? w.toLowerCase() : null, k = k.toLowerCase()), w && C && (w = F(w, C) || w);
1933
- const _ = k !== "/" && k.endsWith("/") ? k.length - 1 : k.length;
1934
- let L = g === k || !a && g.startsWith(k) && g.charAt(_) === "/", M = w != null && (w === k || !a && w.startsWith(k) && w.charAt(k.length) === "/"), D = {
1935
- isActive: L,
1607
+ vr(d) && i === !0, v = y.encodeLocation ? y.encodeLocation(d).pathname : d.pathname, b = p.pathname, k = g && g.navigation && g.navigation.location ? g.navigation.location.pathname : null;
1608
+ t || (b = b.toLowerCase(), k = k ? k.toLowerCase() : null, v = v.toLowerCase()), k && E && (k = F(k, E) || k);
1609
+ const O = v !== "/" && v.endsWith("/") ? v.length - 1 : v.length;
1610
+ let T = b === v || !a && b.startsWith(v) && b.charAt(O) === "/", M = k != null && (k === v || !a && k.startsWith(v) && k.charAt(v.length) === "/"), I = {
1611
+ isActive: T,
1936
1612
  isPending: M,
1937
- isTransitioning: v
1938
- }, W = L ? r : void 0, P;
1939
- typeof n == "function" ? P = n(D) : P = [
1613
+ isTransitioning: w
1614
+ }, W = T ? r : void 0, j;
1615
+ typeof n == "function" ? j = n(I) : j = [
1940
1616
  n,
1941
- L ? "active" : null,
1617
+ T ? "active" : null,
1942
1618
  M ? "pending" : null,
1943
- v ? "transitioning" : null
1619
+ w ? "transitioning" : null
1944
1620
  ].filter(Boolean).join(" ");
1945
- let O = typeof o == "function" ? o(D) : o;
1946
- return /* @__PURE__ */ c.createElement(
1947
- ke,
1621
+ let U = typeof o == "function" ? o(I) : o;
1622
+ return /* @__PURE__ */ u.createElement(
1623
+ ve,
1948
1624
  {
1949
- ...d,
1625
+ ...f,
1950
1626
  "aria-current": W,
1951
- className: P,
1952
- ref: f,
1953
- style: O,
1627
+ className: j,
1628
+ ref: m,
1629
+ style: U,
1954
1630
  to: l,
1955
1631
  viewTransition: i
1956
1632
  },
1957
- typeof s == "function" ? s(D) : s
1633
+ typeof c == "function" ? c(I) : c
1958
1634
  );
1959
1635
  }
1960
1636
  );
1961
- wr.displayName = "NavLink";
1962
- var Er = c.forwardRef(
1637
+ fr.displayName = "NavLink";
1638
+ var mr = u.forwardRef(
1963
1639
  ({
1964
1640
  discover: e = "render",
1965
1641
  fetcherKey: r,
@@ -1969,49 +1645,49 @@ var Er = c.forwardRef(
1969
1645
  state: o,
1970
1646
  method: l = Q,
1971
1647
  action: i,
1972
- onSubmit: s,
1973
- relative: d,
1974
- preventScrollReset: f,
1975
- viewTransition: m,
1648
+ onSubmit: c,
1649
+ relative: f,
1650
+ preventScrollReset: m,
1651
+ viewTransition: d,
1976
1652
  ...p
1977
- }, b) => {
1978
- let x = Sr(), C = Pr(i, { relative: d }), v = l.toLowerCase() === "get" ? "get" : "post", k = typeof i == "string" && Ze.test(i), g = (w) => {
1979
- if (s && s(w), w.defaultPrevented) return;
1980
- w.preventDefault();
1981
- let _ = w.nativeEvent.submitter, L = _?.getAttribute("formmethod") || l;
1982
- x(_ || w.currentTarget, {
1653
+ }, g) => {
1654
+ let y = xr(), E = yr(i, { relative: f }), w = l.toLowerCase() === "get" ? "get" : "post", v = typeof i == "string" && Je.test(i), b = (k) => {
1655
+ if (c && c(k), k.defaultPrevented) return;
1656
+ k.preventDefault();
1657
+ let O = k.nativeEvent.submitter, T = O?.getAttribute("formmethod") || l;
1658
+ y(O || k.currentTarget, {
1983
1659
  fetcherKey: r,
1984
- method: L,
1660
+ method: T,
1985
1661
  navigate: t,
1986
1662
  replace: a,
1987
1663
  state: o,
1988
- relative: d,
1989
- preventScrollReset: f,
1990
- viewTransition: m
1664
+ relative: f,
1665
+ preventScrollReset: m,
1666
+ viewTransition: d
1991
1667
  });
1992
1668
  };
1993
- return /* @__PURE__ */ c.createElement(
1669
+ return /* @__PURE__ */ u.createElement(
1994
1670
  "form",
1995
1671
  {
1996
- ref: b,
1997
- method: v,
1998
- action: C,
1999
- onSubmit: n ? s : g,
1672
+ ref: g,
1673
+ method: w,
1674
+ action: E,
1675
+ onSubmit: n ? c : b,
2000
1676
  ...p,
2001
- "data-discover": !k && e === "render" ? "true" : void 0
1677
+ "data-discover": !v && e === "render" ? "true" : void 0
2002
1678
  }
2003
1679
  );
2004
1680
  }
2005
1681
  );
2006
- Er.displayName = "Form";
2007
- function Cr(e) {
1682
+ mr.displayName = "Form";
1683
+ function hr(e) {
2008
1684
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
2009
1685
  }
2010
- function Qe(e) {
2011
- let r = c.useContext(B);
2012
- return S(r, Cr(e)), r;
1686
+ function Ge(e) {
1687
+ let r = u.useContext(H);
1688
+ return P(r, hr(e)), r;
2013
1689
  }
2014
- function Rr(e, {
1690
+ function pr(e, {
2015
1691
  target: r,
2016
1692
  replace: t,
2017
1693
  state: n,
@@ -2019,14 +1695,14 @@ function Rr(e, {
2019
1695
  relative: o,
2020
1696
  viewTransition: l
2021
1697
  } = {}) {
2022
- let i = It(), s = I(), d = G(e, { relative: o });
2023
- return c.useCallback(
2024
- (f) => {
2025
- if (ar(f, r)) {
2026
- f.preventDefault();
2027
- let m = t !== void 0 ? t : de(s) === de(d);
1698
+ let i = jt(), c = D(), f = G(e, { relative: o });
1699
+ return u.useCallback(
1700
+ (m) => {
1701
+ if (Gt(m, r)) {
1702
+ m.preventDefault();
1703
+ let d = t !== void 0 ? t : de(c) === de(f);
2028
1704
  i(e, {
2029
- replace: m,
1705
+ replace: d,
2030
1706
  state: n,
2031
1707
  preventScrollReset: a,
2032
1708
  relative: o,
@@ -2035,9 +1711,9 @@ function Rr(e, {
2035
1711
  }
2036
1712
  },
2037
1713
  [
2038
- s,
1714
+ c,
2039
1715
  i,
2040
- d,
1716
+ f,
2041
1717
  t,
2042
1718
  n,
2043
1719
  r,
@@ -2048,24 +1724,24 @@ function Rr(e, {
2048
1724
  ]
2049
1725
  );
2050
1726
  }
2051
- var Nr = 0, jr = () => `__${String(++Nr)}__`;
2052
- function Sr() {
2053
- let { router: e } = Qe(
1727
+ var gr = 0, br = () => `__${String(++gr)}__`;
1728
+ function xr() {
1729
+ let { router: e } = Ge(
2054
1730
  "useSubmit"
2055
1731
  /* UseSubmit */
2056
- ), { basename: r } = c.useContext($), t = Kt();
2057
- return c.useCallback(
1732
+ ), { basename: r } = u.useContext($), t = Mt();
1733
+ return u.useCallback(
2058
1734
  async (n, a = {}) => {
2059
- let { action: o, method: l, encType: i, formData: s, body: d } = ir(
1735
+ let { action: o, method: l, encType: i, formData: c, body: f } = Kt(
2060
1736
  n,
2061
1737
  r
2062
1738
  );
2063
1739
  if (a.navigate === !1) {
2064
- let f = a.fetcherKey || jr();
2065
- await e.fetch(f, t, a.action || o, {
1740
+ let m = a.fetcherKey || br();
1741
+ await e.fetch(m, t, a.action || o, {
2066
1742
  preventScrollReset: a.preventScrollReset,
2067
- formData: s,
2068
- body: d,
1743
+ formData: c,
1744
+ body: f,
2069
1745
  formMethod: a.method || l,
2070
1746
  formEncType: a.encType || i,
2071
1747
  flushSync: a.flushSync
@@ -2073,8 +1749,8 @@ function Sr() {
2073
1749
  } else
2074
1750
  await e.navigate(a.action || o, {
2075
1751
  preventScrollReset: a.preventScrollReset,
2076
- formData: s,
2077
- body: d,
1752
+ formData: c,
1753
+ body: f,
2078
1754
  formMethod: a.method || l,
2079
1755
  formEncType: a.encType || i,
2080
1756
  replace: a.replace,
@@ -2087,28 +1763,28 @@ function Sr() {
2087
1763
  [e, r, t]
2088
1764
  );
2089
1765
  }
2090
- function Pr(e, { relative: r } = {}) {
2091
- let { basename: t } = c.useContext($), n = c.useContext(A);
2092
- S(n, "useFormAction must be used inside a RouteContext");
2093
- let [a] = n.matches.slice(-1), o = { ...G(e || ".", { relative: r }) }, l = I();
1766
+ function yr(e, { relative: r } = {}) {
1767
+ let { basename: t } = u.useContext($), n = u.useContext(A);
1768
+ P(n, "useFormAction must be used inside a RouteContext");
1769
+ let [a] = n.matches.slice(-1), o = { ...G(e || ".", { relative: r }) }, l = D();
2094
1770
  if (e == null) {
2095
1771
  o.search = l.search;
2096
- let i = new URLSearchParams(o.search), s = i.getAll("index");
2097
- if (s.some((f) => f === "")) {
2098
- i.delete("index"), s.filter((m) => m).forEach((m) => i.append("index", m));
2099
- let f = i.toString();
2100
- o.search = f ? `?${f}` : "";
1772
+ let i = new URLSearchParams(o.search), c = i.getAll("index");
1773
+ if (c.some((m) => m === "")) {
1774
+ i.delete("index"), c.filter((d) => d).forEach((d) => i.append("index", d));
1775
+ let m = i.toString();
1776
+ o.search = m ? `?${m}` : "";
2101
1777
  }
2102
1778
  }
2103
- return (!e || e === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), t !== "/" && (o.pathname = o.pathname === "/" ? t : U([t, o.pathname])), de(o);
1779
+ return (!e || e === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), t !== "/" && (o.pathname = o.pathname === "/" ? t : L([t, o.pathname])), de(o);
2104
1780
  }
2105
- function _r(e, { relative: r } = {}) {
2106
- let t = c.useContext(Ye);
2107
- S(
1781
+ function vr(e, { relative: r } = {}) {
1782
+ let t = u.useContext(Me);
1783
+ P(
2108
1784
  t != null,
2109
1785
  "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
2110
1786
  );
2111
- let { basename: n } = Qe(
1787
+ let { basename: n } = Ge(
2112
1788
  "useViewTransitionState"
2113
1789
  /* useViewTransitionState */
2114
1790
  ), a = G(e, { relative: r });
@@ -2117,24 +1793,24 @@ function _r(e, { relative: r } = {}) {
2117
1793
  let o = F(t.currentLocation.pathname, n) || t.currentLocation.pathname, l = F(t.nextLocation.pathname, n) || t.nextLocation.pathname;
2118
1794
  return te(a.pathname, l) != null || te(a.pathname, o) != null;
2119
1795
  }
2120
- const Lr = {
1796
+ const wr = {
2121
1797
  primary: "text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-300 underline font-medium",
2122
1798
  secondary: "text-green-600 hover:text-green-800 dark:text-green-400 dark:hover:text-green-300 underline font-medium",
2123
1799
  subtle: "text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200 underline"
2124
- }, et = ({
1800
+ }, qe = ({
2125
1801
  to: e,
2126
1802
  children: r,
2127
1803
  className: t,
2128
1804
  variant: n = "primary"
2129
1805
  }) => /* @__PURE__ */ h.jsx(
2130
- ke,
1806
+ ve,
2131
1807
  {
2132
1808
  to: e,
2133
- className: E(Lr[n], t),
1809
+ className: R(wr[n], t),
2134
1810
  "aria-label": typeof r == "string" ? `Navigate to ${r}` : void 0,
2135
1811
  children: r
2136
1812
  }
2137
- ), Tr = {
1813
+ ), kr = {
2138
1814
  // Getting Started cluster
2139
1815
  gettingStarted: {
2140
1816
  documentation: "/document#getting-started",
@@ -2162,12 +1838,12 @@ const Lr = {
2162
1838
  nameService: "/document#name-service-subscription",
2163
1839
  troubleshooting: "/document#troubleshooting"
2164
1840
  }
2165
- }, Br = ({
1841
+ }, Tr = ({
2166
1842
  cluster: e,
2167
1843
  context: r = "",
2168
1844
  className: t
2169
1845
  }) => {
2170
- const n = Tr[e], a = {
1846
+ const n = kr[e], a = {
2171
1847
  gettingStarted: {
2172
1848
  documentation: "Learn how it works",
2173
1849
  connect: "Get started now",
@@ -2192,30 +1868,30 @@ const Lr = {
2192
1868
  troubleshooting: "Troubleshooting guide"
2193
1869
  }
2194
1870
  };
2195
- return /* @__PURE__ */ h.jsx("span", { className: E("text-sm text-gray-600 dark:text-gray-400", t), children: Object.entries(n).map(([o, l], i) => /* @__PURE__ */ h.jsxs(me.Fragment, { children: [
2196
- /* @__PURE__ */ h.jsx(et, { to: l, variant: "primary", children: a[e][o] }),
1871
+ return /* @__PURE__ */ h.jsx("span", { className: R("text-sm text-gray-600 dark:text-gray-400", t), children: Object.entries(n).map(([o, l], i) => /* @__PURE__ */ h.jsxs(fe.Fragment, { children: [
1872
+ /* @__PURE__ */ h.jsx(qe, { to: l, variant: "primary", children: a[e][o] }),
2197
1873
  i < Object.keys(n).length - 1 && " • "
2198
1874
  ] }, o)) });
2199
- }, Yr = ({
1875
+ }, Lr = ({
2200
1876
  title: e = "Related:",
2201
1877
  links: r,
2202
1878
  className: t
2203
1879
  }) => /* @__PURE__ */ h.jsxs(
2204
1880
  "div",
2205
1881
  {
2206
- className: E(
1882
+ className: R(
2207
1883
  "mt-4 p-3 bg-blue-50 dark:bg-blue-900/20 rounded-lg border border-blue-200 dark:border-blue-800",
2208
1884
  t
2209
1885
  ),
2210
1886
  children: [
2211
1887
  /* @__PURE__ */ h.jsx("span", { className: "text-sm font-medium text-blue-900 dark:text-blue-200 mr-2", children: e }),
2212
- r.map((n, a) => /* @__PURE__ */ h.jsxs(me.Fragment, { children: [
2213
- /* @__PURE__ */ h.jsx(et, { to: n.url, variant: n.variant || "primary", children: n.text }),
1888
+ r.map((n, a) => /* @__PURE__ */ h.jsxs(fe.Fragment, { children: [
1889
+ /* @__PURE__ */ h.jsx(qe, { to: n.url, variant: n.variant || "primary", children: n.text }),
2214
1890
  a < r.length - 1 && " • "
2215
1891
  ] }, a))
2216
1892
  ]
2217
1893
  }
2218
- ), Hr = (e, r) => ({
1894
+ ), $r = (e, r) => ({
2219
1895
  homepage: [
2220
1896
  { text: "How it works", url: "/document#getting-started" },
2221
1897
  { text: "User benefits", url: "/web3-users" },
@@ -2236,7 +1912,7 @@ const Lr = {
2236
1912
  { text: "Smart contracts", url: "/document#smart-contracts" },
2237
1913
  { text: "User benefits", url: "/web3-users" }
2238
1914
  ]
2239
- })[e] || [], Jr = ({
1915
+ })[e] || [], Ar = ({
2240
1916
  className: e,
2241
1917
  children: r,
2242
1918
  disabled: t = !1,
@@ -2244,7 +1920,7 @@ const Lr = {
2244
1920
  }) => /* @__PURE__ */ h.jsx(
2245
1921
  "div",
2246
1922
  {
2247
- className: E(
1923
+ className: R(
2248
1924
  "p-4 rounded-lg border transition-colors",
2249
1925
  "bg-white dark:bg-gray-900",
2250
1926
  "border-gray-200 dark:border-gray-700",
@@ -2258,7 +1934,7 @@ const Lr = {
2258
1934
  "aria-label": "UlandingUbuilder",
2259
1935
  children: r || "UlandingUbuilder Component"
2260
1936
  }
2261
- ), Gr = ({
1937
+ ), Or = ({
2262
1938
  className: e,
2263
1939
  children: r,
2264
1940
  disabled: t = !1,
@@ -2266,7 +1942,7 @@ const Lr = {
2266
1942
  }) => /* @__PURE__ */ h.jsx(
2267
1943
  "div",
2268
1944
  {
2269
- className: E(
1945
+ className: R(
2270
1946
  "p-4 rounded-lg border transition-colors",
2271
1947
  "bg-white dark:bg-gray-900",
2272
1948
  "border-gray-200 dark:border-gray-700",
@@ -2280,14 +1956,14 @@ const Lr = {
2280
1956
  "aria-label": "UnpsUsurvey",
2281
1957
  children: r || "UnpsUsurvey Component"
2282
1958
  }
2283
- ), qr = ({
1959
+ ), Ur = ({
2284
1960
  className: e,
2285
1961
  children: r,
2286
1962
  disabled: t
2287
1963
  }) => /* @__PURE__ */ h.jsx(
2288
1964
  "div",
2289
1965
  {
2290
- className: E(
1966
+ className: R(
2291
1967
  "p-4 rounded-lg border transition-colors",
2292
1968
  "bg-white dark:bg-gray-900",
2293
1969
  "border-gray-200 dark:border-gray-700",
@@ -2299,14 +1975,14 @@ const Lr = {
2299
1975
  "aria-label": "SalesReport",
2300
1976
  children: r || "SalesReport Component"
2301
1977
  }
2302
- ), Kr = ({
1978
+ ), Fr = ({
2303
1979
  className: e,
2304
1980
  children: r,
2305
1981
  disabled: t
2306
1982
  }) => /* @__PURE__ */ h.jsx(
2307
1983
  "div",
2308
1984
  {
2309
- className: E(
1985
+ className: R(
2310
1986
  "p-4 rounded-lg border transition-colors",
2311
1987
  "bg-white dark:bg-gray-900",
2312
1988
  "border-gray-200 dark:border-gray-700",
@@ -2318,29 +1994,7 @@ const Lr = {
2318
1994
  "aria-label": "SubscriberList",
2319
1995
  children: r || "SubscriberList Component"
2320
1996
  }
2321
- ), Xr = ({
2322
- className: e,
2323
- children: r,
2324
- disabled: t = !1,
2325
- onClick: n
2326
- }) => /* @__PURE__ */ h.jsx(
2327
- "div",
2328
- {
2329
- className: E(
2330
- "p-4 rounded-lg border transition-colors",
2331
- "bg-white dark:bg-gray-900",
2332
- "border-gray-200 dark:border-gray-700",
2333
- "text-gray-900 dark:text-white",
2334
- t && "opacity-50 cursor-not-allowed",
2335
- "hover:bg-gray-50 dark:hover:bg-gray-800",
2336
- e
2337
- ),
2338
- onClick: t ? void 0 : n,
2339
- role: "region",
2340
- "aria-label": "UsurveyUbuilder",
2341
- children: r || "UsurveyUbuilder Component"
2342
- }
2343
- ), Zr = ({
1997
+ ), Ir = ({
2344
1998
  className: e,
2345
1999
  children: r,
2346
2000
  disabled: t = !1,
@@ -2348,7 +2002,7 @@ const Lr = {
2348
2002
  }) => /* @__PURE__ */ h.jsx(
2349
2003
  "div",
2350
2004
  {
2351
- className: E(
2005
+ className: R(
2352
2006
  "p-4 rounded-lg border transition-colors",
2353
2007
  "bg-white dark:bg-gray-900",
2354
2008
  "border-gray-200 dark:border-gray-700",
@@ -2362,7 +2016,7 @@ const Lr = {
2362
2016
  "aria-label": "UtestimonialUslider",
2363
2017
  children: r || "UtestimonialUslider Component"
2364
2018
  }
2365
- ), Qr = ({
2019
+ ), Dr = ({
2366
2020
  title: e,
2367
2021
  description: r,
2368
2022
  useCases: t,
@@ -2381,43 +2035,43 @@ const Lr = {
2381
2035
  3: "grid-cols-1 md:grid-cols-2 lg:grid-cols-3",
2382
2036
  4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"
2383
2037
  };
2384
- return /* @__PURE__ */ h.jsx("section", { className: E(nt.section.gradient, a), children: /* @__PURE__ */ h.jsxs("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: [
2038
+ return /* @__PURE__ */ h.jsx("section", { className: R(Ze.section.gradient, a), children: /* @__PURE__ */ h.jsxs("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: [
2385
2039
  (e || r) && /* @__PURE__ */ h.jsxs("div", { className: "text-center mb-12", children: [
2386
2040
  e && /* @__PURE__ */ h.jsx("h2", { className: "text-3xl font-bold text-gray-900 dark:text-white mb-4", children: e }),
2387
2041
  r && /* @__PURE__ */ h.jsx("p", { className: "text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto", children: r })
2388
2042
  ] }),
2389
- /* @__PURE__ */ h.jsx("div", { className: E("grid gap-8", l[n]), children: t.map((i, s) => {
2390
- const d = i.color ? o[i.color] : o.blue;
2043
+ /* @__PURE__ */ h.jsx("div", { className: R("grid gap-8", l[n]), children: t.map((i, c) => {
2044
+ const f = i.color ? o[i.color] : o.blue;
2391
2045
  return /* @__PURE__ */ h.jsxs(
2392
2046
  "div",
2393
2047
  {
2394
2048
  className: "bg-white dark:bg-gray-800 rounded-xl p-6 border border-gray-200 dark:border-gray-700 hover:shadow-lg transition-shadow",
2395
2049
  children: [
2396
- /* @__PURE__ */ h.jsx("div", { className: E("flex-shrink-0 mb-4", d), children: i.icon }),
2050
+ /* @__PURE__ */ h.jsx("div", { className: R("flex-shrink-0 mb-4", f), children: i.icon }),
2397
2051
  /* @__PURE__ */ h.jsx("h3", { className: "text-xl font-semibold text-gray-900 dark:text-white mb-3", children: i.title }),
2398
2052
  /* @__PURE__ */ h.jsx("p", { className: "text-gray-600 dark:text-gray-300 mb-4", children: i.description }),
2399
2053
  i.examples && i.examples.length > 0 && /* @__PURE__ */ h.jsxs("div", { children: [
2400
2054
  /* @__PURE__ */ h.jsx("h4", { className: "text-sm font-semibold text-gray-700 dark:text-gray-300 mb-2", children: "Examples:" }),
2401
- /* @__PURE__ */ h.jsx("ul", { className: "space-y-1", children: i.examples.map((f, m) => /* @__PURE__ */ h.jsxs("li", { className: "flex items-start", children: [
2055
+ /* @__PURE__ */ h.jsx("ul", { className: "space-y-1", children: i.examples.map((m, d) => /* @__PURE__ */ h.jsxs("li", { className: "flex items-start", children: [
2402
2056
  /* @__PURE__ */ h.jsx(
2403
2057
  "div",
2404
2058
  {
2405
- className: E(
2059
+ className: R(
2406
2060
  "w-1.5 h-1.5 rounded-full mt-2 mr-2 flex-shrink-0",
2407
2061
  i.color ? `bg-${i.color}-500` : "bg-blue-500"
2408
2062
  )
2409
2063
  }
2410
2064
  ),
2411
- /* @__PURE__ */ h.jsx("span", { className: "text-sm text-gray-600 dark:text-gray-400", children: f })
2412
- ] }, m)) })
2065
+ /* @__PURE__ */ h.jsx("span", { className: "text-sm text-gray-600 dark:text-gray-400", children: m })
2066
+ ] }, d)) })
2413
2067
  ] })
2414
2068
  ]
2415
2069
  },
2416
- s
2070
+ c
2417
2071
  );
2418
2072
  }) })
2419
2073
  ] }) });
2420
- }, en = ({
2074
+ }, Mr = ({
2421
2075
  className: e,
2422
2076
  children: r,
2423
2077
  disabled: t = !1,
@@ -2425,7 +2079,7 @@ const Lr = {
2425
2079
  }) => /* @__PURE__ */ h.jsx(
2426
2080
  "div",
2427
2081
  {
2428
- className: E(
2082
+ className: R(
2429
2083
  "p-4 rounded-lg border transition-colors",
2430
2084
  "bg-white dark:bg-gray-900",
2431
2085
  "border-gray-200 dark:border-gray-700",
@@ -2441,25 +2095,20 @@ const Lr = {
2441
2095
  }
2442
2096
  );
2443
2097
  export {
2444
- Or as CrmDashboard,
2445
- Dr as FeatureGrid,
2446
- Mr as FeatureListItem,
2447
- zr as HeroBannerWithBadge,
2448
- et as InternalLink,
2449
- Yr as RelatedLinks,
2450
- qr as SalesReport,
2451
- Kr as SubscriberList,
2452
- Br as TopicClusterLinks,
2453
- Fr as UctaUbanner,
2454
- Wr as UfeatureUspotlight,
2455
- Vr as UfunnelUchart,
2456
- Jr as UlandingUbuilder,
2457
- Gr as UnpsUsurvey,
2458
- Qr as UseCaseGrid,
2459
- Xr as UsurveyUbuilder,
2460
- Zr as UtestimonialUslider,
2461
- en as UwelcomeUscreen,
2462
- Ue as createFeature,
2463
- Ir as createSecurityFeatures,
2464
- Hr as generateContextualLinks
2098
+ Sr as CrmDashboard,
2099
+ Pr as FeatureListItem,
2100
+ _r as HeroBannerWithBadge,
2101
+ qe as InternalLink,
2102
+ Lr as RelatedLinks,
2103
+ Ur as SalesReport,
2104
+ Fr as SubscriberList,
2105
+ Tr as TopicClusterLinks,
2106
+ Nr as UctaUbanner,
2107
+ jr as UfeatureUspotlight,
2108
+ Ar as UlandingUbuilder,
2109
+ Or as UnpsUsurvey,
2110
+ Dr as UseCaseGrid,
2111
+ Ir as UtestimonialUslider,
2112
+ Mr as UwelcomeUscreen,
2113
+ $r as generateContextualLinks
2465
2114
  };