@kvell-group/ui 1.6.1 → 1.6.3

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/main.js CHANGED
@@ -1,42 +1,39 @@
1
- import { jsx as p, jsxs as z, Fragment as pt } from "react/jsx-runtime";
2
- import { useState as rt, useRef as W, useEffect as A, useLayoutEffect as Wr, createContext as Dt, useContext as $t, useMemo as zr, useCallback as Lt, useId as Yr, forwardRef as _ } from "react";
3
- import Gr from "react-dom";
4
- import './assets/main.css';const _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5
- __proto__: null
6
- }, Symbol.toStringTag, { value: "Module" }));
7
- function M(t) {
8
- return Object.keys(t);
9
- }
10
- function it(t) {
11
- return t && typeof t == "object" && !Array.isArray(t);
12
- }
13
- function vt(t, r) {
14
- const e = { ...t }, n = r;
15
- return it(t) && it(r) && Object.keys(r).forEach((a) => {
16
- it(n[a]) && a in t ? e[a] = vt(e[a], n[a]) : e[a] = n[a];
1
+ import { jsx as p, jsxs as z, Fragment as pr } from "react/jsx-runtime";
2
+ import { useState as tr, useRef as W, useEffect as A, useLayoutEffect as Wt, createContext as Dr, useContext as $r, useMemo as zt, useCallback as Lr, useId as Yt, forwardRef as _ } from "react";
3
+ import Gt from "react-dom";
4
+ import './assets/main.css';function M(r) {
5
+ return Object.keys(r);
6
+ }
7
+ function ir(r) {
8
+ return r && typeof r == "object" && !Array.isArray(r);
9
+ }
10
+ function vr(r, t) {
11
+ const e = { ...r }, n = t;
12
+ return ir(r) && ir(t) && Object.keys(t).forEach((a) => {
13
+ ir(n[a]) && a in r ? e[a] = vr(e[a], n[a]) : e[a] = n[a];
17
14
  }), e;
18
15
  }
19
- function Dr(t) {
20
- return t.replace(/[A-Z]/g, (r) => `-${r.toLowerCase()}`);
16
+ function Dt(r) {
17
+ return r.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`);
21
18
  }
22
- function Xr(t) {
23
- var r;
24
- return typeof t != "string" || !t.includes("var(--mantine-scale)") ? t : (r = t.match(/^calc\((.*?)\)$/)) == null ? void 0 : r[1].split("*")[0].trim();
19
+ function Xt(r) {
20
+ var t;
21
+ return typeof r != "string" || !r.includes("var(--mantine-scale)") ? r : (t = r.match(/^calc\((.*?)\)$/)) == null ? void 0 : t[1].split("*")[0].trim();
25
22
  }
26
- function Ur(t) {
27
- const r = Xr(t);
28
- return typeof r == "number" ? r : typeof r == "string" ? r.includes("calc") || r.includes("var") ? r : r.includes("px") ? Number(r.replace("px", "")) : r.includes("rem") ? Number(r.replace("rem", "")) * 16 : r.includes("em") ? Number(r.replace("em", "")) * 16 : Number(r) : NaN;
23
+ function Ut(r) {
24
+ const t = Xt(r);
25
+ return typeof t == "number" ? t : typeof t == "string" ? t.includes("calc") || t.includes("var") ? t : t.includes("px") ? Number(t.replace("px", "")) : t.includes("rem") ? Number(t.replace("rem", "")) * 16 : t.includes("em") ? Number(t.replace("em", "")) * 16 : Number(t) : NaN;
29
26
  }
30
- function st(t) {
31
- return t === "0rem" ? "0rem" : `calc(${t} * var(--mantine-scale))`;
27
+ function sr(r) {
28
+ return r === "0rem" ? "0rem" : `calc(${r} * var(--mantine-scale))`;
32
29
  }
33
- function Xt(t, { shouldScale: r = !1 } = {}) {
30
+ function Xr(r, { shouldScale: t = !1 } = {}) {
34
31
  function e(n) {
35
32
  if (n === 0 || n === "0")
36
- return `0${t}`;
33
+ return `0${r}`;
37
34
  if (typeof n == "number") {
38
- const a = `${n / 16}${t}`;
39
- return r ? st(a) : a;
35
+ const a = `${n / 16}${r}`;
36
+ return t ? sr(a) : a;
40
37
  }
41
38
  if (typeof n == "string") {
42
39
  if (n === "" || n.startsWith("calc(") || n.startsWith("clamp(") || n.includes("rgba("))
@@ -45,66 +42,66 @@ function Xt(t, { shouldScale: r = !1 } = {}) {
45
42
  return n.split(",").map((o) => e(o)).join(",");
46
43
  if (n.includes(" "))
47
44
  return n.split(" ").map((o) => e(o)).join(" ");
48
- if (n.includes(t))
49
- return r ? st(n) : n;
45
+ if (n.includes(r))
46
+ return t ? sr(n) : n;
50
47
  const a = n.replace("px", "");
51
48
  if (!Number.isNaN(Number(a))) {
52
- const o = `${Number(a) / 16}${t}`;
53
- return r ? st(o) : o;
49
+ const o = `${Number(a) / 16}${r}`;
50
+ return t ? sr(o) : o;
54
51
  }
55
52
  }
56
53
  return n;
57
54
  }
58
55
  return e;
59
56
  }
60
- const c = Xt("rem", { shouldScale: !0 }), Et = Xt("em");
61
- function St(t) {
62
- return Object.keys(t).reduce((r, e) => (t[e] !== void 0 && (r[e] = t[e]), r), {});
57
+ const c = Xr("rem", { shouldScale: !0 }), Er = Xr("em");
58
+ function Sr(r) {
59
+ return Object.keys(r).reduce((t, e) => (r[e] !== void 0 && (t[e] = r[e]), t), {});
63
60
  }
64
- function Ut(t) {
65
- if (typeof t == "number")
61
+ function Ur(r) {
62
+ if (typeof r == "number")
66
63
  return !0;
67
- if (typeof t == "string") {
68
- if (t.startsWith("calc(") || t.startsWith("var(") || t.includes(" ") && t.trim() !== "")
64
+ if (typeof r == "string") {
65
+ if (r.startsWith("calc(") || r.startsWith("var(") || r.includes(" ") && r.trim() !== "")
69
66
  return !0;
70
- const r = /^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;
71
- return t.trim().split(/\s+/).every((n) => r.test(n));
67
+ const t = /^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;
68
+ return r.trim().split(/\s+/).every((n) => t.test(n));
72
69
  }
73
70
  return !1;
74
71
  }
75
- function O(t, r = "size", e = !0) {
76
- if (t !== void 0)
77
- return Ut(t) ? e ? c(t) : t : `var(--${r}-${t})`;
72
+ function O(r, t = "size", e = !0) {
73
+ if (r !== void 0)
74
+ return Ur(r) ? e ? c(r) : r : `var(--${t}-${r})`;
78
75
  }
79
- function qt(t) {
80
- return t === void 0 ? "var(--mantine-radius-default)" : O(t, "mantine-radius");
76
+ function qr(r) {
77
+ return r === void 0 ? "var(--mantine-radius-default)" : O(r, "mantine-radius");
81
78
  }
82
- function nt(t) {
83
- return O(t, "mantine-font-size");
79
+ function nr(r) {
80
+ return O(r, "mantine-font-size");
84
81
  }
85
- function qr(t, r) {
82
+ function qt(r, t) {
86
83
  try {
87
- return t.addEventListener("change", r), () => t.removeEventListener("change", r);
84
+ return r.addEventListener("change", t), () => r.removeEventListener("change", t);
88
85
  } catch {
89
- return t.addListener(r), () => t.removeListener(r);
86
+ return r.addListener(t), () => r.removeListener(t);
90
87
  }
91
88
  }
92
- function Qr(t, r) {
93
- return typeof window < "u" && "matchMedia" in window ? window.matchMedia(t).matches : !1;
89
+ function Qt(r, t) {
90
+ return typeof window < "u" && "matchMedia" in window ? window.matchMedia(r).matches : !1;
94
91
  }
95
- function Kr(t, r, { getInitialValueInEffect: e } = {
92
+ function Kt(r, t, { getInitialValueInEffect: e } = {
96
93
  getInitialValueInEffect: !0
97
94
  }) {
98
- const [n, a] = rt(
99
- e ? r : Qr(t)
95
+ const [n, a] = tr(
96
+ e ? t : Qt(r)
100
97
  ), o = W(null);
101
98
  return A(() => {
102
99
  if ("matchMedia" in window)
103
- return o.current = window.matchMedia(t), a(o.current.matches), qr(o.current, (i) => a(i.matches));
104
- }, [t]), n;
100
+ return o.current = window.matchMedia(r), a(o.current.matches), qt(o.current, (i) => a(i.matches));
101
+ }, [r]), n;
105
102
  }
106
- const Qt = typeof document < "u" ? Wr : A;
107
- function Zr(t, r) {
103
+ const Qr = typeof document < "u" ? Wt : A;
104
+ function Zt(r, t) {
108
105
  const e = W(!1);
109
106
  A(
110
107
  () => () => {
@@ -113,50 +110,50 @@ function Zr(t, r) {
113
110
  []
114
111
  ), A(() => {
115
112
  if (e.current)
116
- return t();
113
+ return r();
117
114
  e.current = !0;
118
- }, r);
119
- }
120
- function Jr(t, r) {
121
- return Kr("(prefers-reduced-motion: reduce)", t, r);
122
- }
123
- function Kt(t) {
124
- var r, e, n = "";
125
- if (typeof t == "string" || typeof t == "number") n += t;
126
- else if (typeof t == "object") if (Array.isArray(t)) {
127
- var a = t.length;
128
- for (r = 0; r < a; r++) t[r] && (e = Kt(t[r])) && (n && (n += " "), n += e);
129
- } else for (e in t) t[e] && (n && (n += " "), n += e);
115
+ }, t);
116
+ }
117
+ function Jt(r, t) {
118
+ return Kt("(prefers-reduced-motion: reduce)", r, t);
119
+ }
120
+ function Kr(r) {
121
+ var t, e, n = "";
122
+ if (typeof r == "string" || typeof r == "number") n += r;
123
+ else if (typeof r == "object") if (Array.isArray(r)) {
124
+ var a = r.length;
125
+ for (t = 0; t < a; t++) r[t] && (e = Kr(r[t])) && (n && (n += " "), n += e);
126
+ } else for (e in r) r[e] && (n && (n += " "), n += e);
130
127
  return n;
131
128
  }
132
- function j() {
133
- for (var t, r, e = 0, n = "", a = arguments.length; e < a; e++) (t = arguments[e]) && (r = Kt(t)) && (n && (n += " "), n += r);
129
+ function B() {
130
+ for (var r, t, e = 0, n = "", a = arguments.length; e < a; e++) (r = arguments[e]) && (t = Kr(r)) && (n && (n += " "), n += t);
134
131
  return n;
135
132
  }
136
- const tn = {};
137
- function rn(t) {
138
- const r = {};
139
- return t.forEach((e) => {
133
+ const rn = {};
134
+ function tn(r) {
135
+ const t = {};
136
+ return r.forEach((e) => {
140
137
  Object.entries(e).forEach(([n, a]) => {
141
- r[n] ? r[n] = j(r[n], a) : r[n] = a;
138
+ t[n] ? t[n] = B(t[n], a) : t[n] = a;
142
139
  });
143
- }), r;
140
+ }), t;
144
141
  }
145
- function wt({ theme: t, classNames: r, props: e, stylesCtx: n }) {
146
- const o = (Array.isArray(r) ? r : [r]).map(
147
- (i) => typeof i == "function" ? i(t, e, n) : i || tn
142
+ function wr({ theme: r, classNames: t, props: e, stylesCtx: n }) {
143
+ const o = (Array.isArray(t) ? t : [t]).map(
144
+ (i) => typeof i == "function" ? i(r, e, n) : i || rn
148
145
  );
149
- return rn(o);
146
+ return tn(o);
150
147
  }
151
- function yt({ theme: t, styles: r, props: e, stylesCtx: n }) {
152
- return (Array.isArray(r) ? r : [r]).reduce((o, i) => typeof i == "function" ? { ...o, ...i(t, e, n) } : { ...o, ...i }, {});
148
+ function gr({ theme: r, styles: t, props: e, stylesCtx: n }) {
149
+ return (Array.isArray(t) ? t : [t]).reduce((o, i) => typeof i == "function" ? { ...o, ...i(r, e, n) } : { ...o, ...i }, {});
153
150
  }
154
- const Zt = Dt(null);
151
+ const Zr = Dr(null);
155
152
  function P() {
156
- const t = $t(Zt);
157
- if (!t)
153
+ const r = $r(Zr);
154
+ if (!r)
158
155
  throw new Error("[@mantine/core] MantineProvider was not found in tree");
159
- return t;
156
+ return r;
160
157
  }
161
158
  function nn() {
162
159
  return P().cssVariablesResolver;
@@ -164,7 +161,7 @@ function nn() {
164
161
  function en() {
165
162
  return P().classNamesPrefix;
166
163
  }
167
- function Ct() {
164
+ function Cr() {
168
165
  return P().getStyleNonce;
169
166
  }
170
167
  function on() {
@@ -174,24 +171,24 @@ function an() {
174
171
  return P().headless;
175
172
  }
176
173
  function sn() {
177
- var t;
178
- return (t = P().stylesTransform) == null ? void 0 : t.sx;
174
+ var r;
175
+ return (r = P().stylesTransform) == null ? void 0 : r.sx;
179
176
  }
180
177
  function cn() {
181
- var t;
182
- return (t = P().stylesTransform) == null ? void 0 : t.styles;
178
+ var r;
179
+ return (r = P().stylesTransform) == null ? void 0 : r.styles;
183
180
  }
184
181
  function ln() {
185
182
  return P().env || "default";
186
183
  }
187
- function dn(t) {
188
- return /^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t);
184
+ function dn(r) {
185
+ return /^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(r);
189
186
  }
190
- function fn(t) {
191
- let r = t.replace("#", "");
192
- if (r.length === 3) {
193
- const i = r.split("");
194
- r = [
187
+ function fn(r) {
188
+ let t = r.replace("#", "");
189
+ if (t.length === 3) {
190
+ const i = t.split("");
191
+ t = [
195
192
  i[0],
196
193
  i[0],
197
194
  i[1],
@@ -200,16 +197,16 @@ function fn(t) {
200
197
  i[2]
201
198
  ].join("");
202
199
  }
203
- if (r.length === 8) {
204
- const i = parseInt(r.slice(6, 8), 16) / 255;
200
+ if (t.length === 8) {
201
+ const i = parseInt(t.slice(6, 8), 16) / 255;
205
202
  return {
206
- r: parseInt(r.slice(0, 2), 16),
207
- g: parseInt(r.slice(2, 4), 16),
208
- b: parseInt(r.slice(4, 6), 16),
203
+ r: parseInt(t.slice(0, 2), 16),
204
+ g: parseInt(t.slice(2, 4), 16),
205
+ b: parseInt(t.slice(4, 6), 16),
209
206
  a: i
210
207
  };
211
208
  }
212
- const e = parseInt(r, 16), n = e >> 16 & 255, a = e >> 8 & 255, o = e & 255;
209
+ const e = parseInt(t, 16), n = e >> 16 & 255, a = e >> 8 & 255, o = e & 255;
213
210
  return {
214
211
  r: n,
215
212
  g: a,
@@ -217,12 +214,12 @@ function fn(t) {
217
214
  a: 1
218
215
  };
219
216
  }
220
- function un(t) {
221
- const [r, e, n, a] = t.replace(/[^0-9,./]/g, "").split(/[/,]/).map(Number);
222
- return { r, g: e, b: n, a: a || 1 };
217
+ function un(r) {
218
+ const [t, e, n, a] = r.replace(/[^0-9,./]/g, "").split(/[/,]/).map(Number);
219
+ return { r: t, g: e, b: n, a: a || 1 };
223
220
  }
224
- function mn(t) {
225
- const r = /^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i, e = t.match(r);
221
+ function mn(r) {
222
+ const t = /^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i, e = r.match(t);
226
223
  if (!e)
227
224
  return {
228
225
  r: 0,
@@ -231,150 +228,150 @@ function mn(t) {
231
228
  a: 1
232
229
  };
233
230
  const n = parseInt(e[1], 10), a = parseInt(e[2], 10) / 100, o = parseInt(e[3], 10) / 100, i = e[5] ? parseFloat(e[5]) : void 0, s = (1 - Math.abs(2 * o - 1)) * a, l = n / 60, d = s * (1 - Math.abs(l % 2 - 1)), u = o - s / 2;
234
- let f, m, y;
235
- return l >= 0 && l < 1 ? (f = s, m = d, y = 0) : l >= 1 && l < 2 ? (f = d, m = s, y = 0) : l >= 2 && l < 3 ? (f = 0, m = s, y = d) : l >= 3 && l < 4 ? (f = 0, m = d, y = s) : l >= 4 && l < 5 ? (f = d, m = 0, y = s) : (f = s, m = 0, y = d), {
231
+ let f, m, g;
232
+ return l >= 0 && l < 1 ? (f = s, m = d, g = 0) : l >= 1 && l < 2 ? (f = d, m = s, g = 0) : l >= 2 && l < 3 ? (f = 0, m = s, g = d) : l >= 3 && l < 4 ? (f = 0, m = d, g = s) : l >= 4 && l < 5 ? (f = d, m = 0, g = s) : (f = s, m = 0, g = d), {
236
233
  r: Math.round((f + u) * 255),
237
234
  g: Math.round((m + u) * 255),
238
- b: Math.round((y + u) * 255),
235
+ b: Math.round((g + u) * 255),
239
236
  a: i || 1
240
237
  };
241
238
  }
242
- function xt(t) {
243
- return dn(t) ? fn(t) : t.startsWith("rgb") ? un(t) : t.startsWith("hsl") ? mn(t) : {
239
+ function xr(r) {
240
+ return dn(r) ? fn(r) : r.startsWith("rgb") ? un(r) : r.startsWith("hsl") ? mn(r) : {
244
241
  r: 0,
245
242
  g: 0,
246
243
  b: 0,
247
244
  a: 1
248
245
  };
249
246
  }
250
- function Z(t, r) {
251
- if (t.startsWith("var("))
252
- return `color-mix(in srgb, ${t}, black ${r * 100}%)`;
253
- const { r: e, g: n, b: a, a: o } = xt(t), i = 1 - r, s = (l) => Math.round(l * i);
247
+ function Z(r, t) {
248
+ if (r.startsWith("var("))
249
+ return `color-mix(in srgb, ${r}, black ${t * 100}%)`;
250
+ const { r: e, g: n, b: a, a: o } = xr(r), i = 1 - t, s = (l) => Math.round(l * i);
254
251
  return `rgba(${s(e)}, ${s(n)}, ${s(a)}, ${o})`;
255
252
  }
256
- function U(t, r) {
257
- return typeof t.primaryShade == "number" ? t.primaryShade : r === "dark" ? t.primaryShade.dark : t.primaryShade.light;
253
+ function U(r, t) {
254
+ return typeof r.primaryShade == "number" ? r.primaryShade : t === "dark" ? r.primaryShade.dark : r.primaryShade.light;
258
255
  }
259
- function ct(t) {
260
- return t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4;
256
+ function cr(r) {
257
+ return r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4;
261
258
  }
262
- function pn(t) {
263
- const r = t.match(/oklch\((.*?)%\s/);
264
- return r ? parseFloat(r[1]) : null;
259
+ function pn(r) {
260
+ const t = r.match(/oklch\((.*?)%\s/);
261
+ return t ? parseFloat(t[1]) : null;
265
262
  }
266
- function yn(t) {
267
- if (t.startsWith("oklch("))
268
- return (pn(t) || 0) / 100;
269
- const { r, g: e, b: n } = xt(t), a = r / 255, o = e / 255, i = n / 255, s = ct(a), l = ct(o), d = ct(i);
263
+ function gn(r) {
264
+ if (r.startsWith("oklch("))
265
+ return (pn(r) || 0) / 100;
266
+ const { r: t, g: e, b: n } = xr(r), a = t / 255, o = e / 255, i = n / 255, s = cr(a), l = cr(o), d = cr(i);
270
267
  return 0.2126 * s + 0.7152 * l + 0.0722 * d;
271
268
  }
272
- function G(t, r = 0.179) {
273
- return t.startsWith("var(") ? !1 : yn(t) > r;
269
+ function G(r, t = 0.179) {
270
+ return r.startsWith("var(") ? !1 : gn(r) > t;
274
271
  }
275
272
  function q({
276
- color: t,
277
- theme: r,
273
+ color: r,
274
+ theme: t,
278
275
  colorScheme: e
279
276
  }) {
280
- if (typeof t != "string")
277
+ if (typeof r != "string")
281
278
  throw new Error(
282
- `[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof t}`
279
+ `[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof r}`
283
280
  );
284
- if (t === "bright")
281
+ if (r === "bright")
285
282
  return {
286
- color: t,
287
- value: e === "dark" ? r.white : r.black,
283
+ color: r,
284
+ value: e === "dark" ? t.white : t.black,
288
285
  shade: void 0,
289
286
  isThemeColor: !1,
290
287
  isLight: G(
291
- e === "dark" ? r.white : r.black,
292
- r.luminanceThreshold
288
+ e === "dark" ? t.white : t.black,
289
+ t.luminanceThreshold
293
290
  ),
294
291
  variable: "--mantine-color-bright"
295
292
  };
296
- if (t === "dimmed")
293
+ if (r === "dimmed")
297
294
  return {
298
- color: t,
299
- value: e === "dark" ? r.colors.dark[2] : r.colors.gray[7],
295
+ color: r,
296
+ value: e === "dark" ? t.colors.dark[2] : t.colors.gray[7],
300
297
  shade: void 0,
301
298
  isThemeColor: !1,
302
299
  isLight: G(
303
- e === "dark" ? r.colors.dark[2] : r.colors.gray[6],
304
- r.luminanceThreshold
300
+ e === "dark" ? t.colors.dark[2] : t.colors.gray[6],
301
+ t.luminanceThreshold
305
302
  ),
306
303
  variable: "--mantine-color-dimmed"
307
304
  };
308
- if (t === "white" || t === "black")
305
+ if (r === "white" || r === "black")
309
306
  return {
310
- color: t,
311
- value: t === "white" ? r.white : r.black,
307
+ color: r,
308
+ value: r === "white" ? t.white : t.black,
312
309
  shade: void 0,
313
310
  isThemeColor: !1,
314
311
  isLight: G(
315
- t === "white" ? r.white : r.black,
316
- r.luminanceThreshold
312
+ r === "white" ? t.white : t.black,
313
+ t.luminanceThreshold
317
314
  ),
318
- variable: `--mantine-color-${t}`
315
+ variable: `--mantine-color-${r}`
319
316
  };
320
- const [n, a] = t.split("."), o = a ? Number(a) : void 0, i = n in r.colors;
317
+ const [n, a] = r.split("."), o = a ? Number(a) : void 0, i = n in t.colors;
321
318
  if (i) {
322
- const s = o !== void 0 ? r.colors[n][o] : r.colors[n][U(r, e || "light")];
319
+ const s = o !== void 0 ? t.colors[n][o] : t.colors[n][U(t, e || "light")];
323
320
  return {
324
321
  color: n,
325
322
  value: s,
326
323
  shade: o,
327
324
  isThemeColor: i,
328
- isLight: G(s, r.luminanceThreshold),
325
+ isLight: G(s, t.luminanceThreshold),
329
326
  variable: a ? `--mantine-color-${n}-${o}` : `--mantine-color-${n}-filled`
330
327
  };
331
328
  }
332
329
  return {
333
- color: t,
334
- value: t,
330
+ color: r,
331
+ value: r,
335
332
  isThemeColor: i,
336
- isLight: G(t, r.luminanceThreshold),
333
+ isLight: G(r, t.luminanceThreshold),
337
334
  shade: o,
338
335
  variable: void 0
339
336
  };
340
337
  }
341
- function gt(t, r) {
342
- const e = q({ color: t || r.primaryColor, theme: r });
343
- return e.variable ? `var(${e.variable})` : t;
338
+ function yr(r, t) {
339
+ const e = q({ color: r || t.primaryColor, theme: t });
340
+ return e.variable ? `var(${e.variable})` : r;
344
341
  }
345
- function At(t, r) {
342
+ function Ar(r, t) {
346
343
  const e = {
347
- from: (t == null ? void 0 : t.from) || r.defaultGradient.from,
348
- to: (t == null ? void 0 : t.to) || r.defaultGradient.to,
349
- deg: (t == null ? void 0 : t.deg) ?? r.defaultGradient.deg ?? 0
350
- }, n = gt(e.from, r), a = gt(e.to, r);
344
+ from: (r == null ? void 0 : r.from) || t.defaultGradient.from,
345
+ to: (r == null ? void 0 : r.to) || t.defaultGradient.to,
346
+ deg: (r == null ? void 0 : r.deg) ?? t.defaultGradient.deg ?? 0
347
+ }, n = yr(e.from, t), a = yr(e.to, t);
351
348
  return `linear-gradient(${e.deg}deg, ${n} 0%, ${a} 100%)`;
352
349
  }
353
- function R(t, r) {
354
- if (typeof t != "string" || r > 1 || r < 0)
350
+ function R(r, t) {
351
+ if (typeof r != "string" || t > 1 || t < 0)
355
352
  return "rgba(0, 0, 0, 1)";
356
- if (t.startsWith("var(")) {
357
- const o = (1 - r) * 100;
358
- return `color-mix(in srgb, ${t}, transparent ${o}%)`;
353
+ if (r.startsWith("var(")) {
354
+ const o = (1 - t) * 100;
355
+ return `color-mix(in srgb, ${r}, transparent ${o}%)`;
359
356
  }
360
- if (t.startsWith("oklch"))
361
- return t.includes("/") ? t.replace(/\/\s*[\d.]+\s*\)/, `/ ${r})`) : t.replace(")", ` / ${r})`);
362
- const { r: e, g: n, b: a } = xt(t);
363
- return `rgba(${e}, ${n}, ${a}, ${r})`;
357
+ if (r.startsWith("oklch"))
358
+ return r.includes("/") ? r.replace(/\/\s*[\d.]+\s*\)/, `/ ${t})`) : r.replace(")", ` / ${t})`);
359
+ const { r: e, g: n, b: a } = xr(r);
360
+ return `rgba(${e}, ${n}, ${a}, ${t})`;
364
361
  }
365
- const V = R, gn = ({
366
- color: t,
367
- theme: r,
362
+ const j = R, yn = ({
363
+ color: r,
364
+ theme: t,
368
365
  variant: e,
369
366
  gradient: n,
370
367
  autoContrast: a
371
368
  }) => {
372
- const o = q({ color: t, theme: r }), i = typeof a == "boolean" ? a : r.autoContrast;
369
+ const o = q({ color: r, theme: t }), i = typeof a == "boolean" ? a : t.autoContrast;
373
370
  if (e === "filled") {
374
371
  const s = i && o.isLight ? "var(--mantine-color-black)" : "var(--mantine-color-white)";
375
372
  return o.isThemeColor ? o.shade === void 0 ? {
376
- background: `var(--mantine-color-${t}-filled)`,
377
- hover: `var(--mantine-color-${t}-filled-hover)`,
373
+ background: `var(--mantine-color-${r}-filled)`,
374
+ hover: `var(--mantine-color-${r}-filled-hover)`,
378
375
  color: s,
379
376
  border: `${c(1)} solid transparent`
380
377
  } : {
@@ -383,8 +380,8 @@ const V = R, gn = ({
383
380
  color: s,
384
381
  border: `${c(1)} solid transparent`
385
382
  } : {
386
- background: t,
387
- hover: Z(t, 0.1),
383
+ background: r,
384
+ hover: Z(r, 0.1),
388
385
  color: s,
389
386
  border: `${c(1)} solid transparent`
390
387
  };
@@ -393,12 +390,12 @@ const V = R, gn = ({
393
390
  if (o.isThemeColor) {
394
391
  if (o.shade === void 0)
395
392
  return {
396
- background: `var(--mantine-color-${t}-light)`,
397
- hover: `var(--mantine-color-${t}-light-hover)`,
398
- color: `var(--mantine-color-${t}-light-color)`,
393
+ background: `var(--mantine-color-${r}-light)`,
394
+ hover: `var(--mantine-color-${r}-light-hover)`,
395
+ color: `var(--mantine-color-${r}-light-color)`,
399
396
  border: `${c(1)} solid transparent`
400
397
  };
401
- const s = r.colors[o.color][o.shade];
398
+ const s = t.colors[o.color][o.shade];
402
399
  return {
403
400
  background: R(s, 0.1),
404
401
  hover: R(s, 0.12),
@@ -407,39 +404,39 @@ const V = R, gn = ({
407
404
  };
408
405
  }
409
406
  return {
410
- background: R(t, 0.1),
411
- hover: R(t, 0.12),
412
- color: t,
407
+ background: R(r, 0.1),
408
+ hover: R(r, 0.12),
409
+ color: r,
413
410
  border: `${c(1)} solid transparent`
414
411
  };
415
412
  }
416
413
  if (e === "outline")
417
414
  return o.isThemeColor ? o.shade === void 0 ? {
418
415
  background: "transparent",
419
- hover: `var(--mantine-color-${t}-outline-hover)`,
420
- color: `var(--mantine-color-${t}-outline)`,
421
- border: `${c(1)} solid var(--mantine-color-${t}-outline)`
416
+ hover: `var(--mantine-color-${r}-outline-hover)`,
417
+ color: `var(--mantine-color-${r}-outline)`,
418
+ border: `${c(1)} solid var(--mantine-color-${r}-outline)`
422
419
  } : {
423
420
  background: "transparent",
424
- hover: R(r.colors[o.color][o.shade], 0.05),
421
+ hover: R(t.colors[o.color][o.shade], 0.05),
425
422
  color: `var(--mantine-color-${o.color}-${o.shade})`,
426
423
  border: `${c(1)} solid var(--mantine-color-${o.color}-${o.shade})`
427
424
  } : {
428
425
  background: "transparent",
429
- hover: R(t, 0.05),
430
- color: t,
431
- border: `${c(1)} solid ${t}`
426
+ hover: R(r, 0.05),
427
+ color: r,
428
+ border: `${c(1)} solid ${r}`
432
429
  };
433
430
  if (e === "subtle") {
434
431
  if (o.isThemeColor) {
435
432
  if (o.shade === void 0)
436
433
  return {
437
434
  background: "transparent",
438
- hover: `var(--mantine-color-${t}-light-hover)`,
439
- color: `var(--mantine-color-${t}-light-color)`,
435
+ hover: `var(--mantine-color-${r}-light-hover)`,
436
+ color: `var(--mantine-color-${r}-light-color)`,
440
437
  border: `${c(1)} solid transparent`
441
438
  };
442
- const s = r.colors[o.color][o.shade];
439
+ const s = t.colors[o.color][o.shade];
443
440
  return {
444
441
  background: "transparent",
445
442
  hover: R(s, 0.12),
@@ -449,15 +446,15 @@ const V = R, gn = ({
449
446
  }
450
447
  return {
451
448
  background: "transparent",
452
- hover: R(t, 0.12),
453
- color: t,
449
+ hover: R(r, 0.12),
450
+ color: r,
454
451
  border: `${c(1)} solid transparent`
455
452
  };
456
453
  }
457
454
  return e === "transparent" ? o.isThemeColor ? o.shade === void 0 ? {
458
455
  background: "transparent",
459
456
  hover: "transparent",
460
- color: `var(--mantine-color-${t}-light-color)`,
457
+ color: `var(--mantine-color-${r}-light-color)`,
461
458
  border: `${c(1)} solid transparent`
462
459
  } : {
463
460
  background: "transparent",
@@ -467,26 +464,26 @@ const V = R, gn = ({
467
464
  } : {
468
465
  background: "transparent",
469
466
  hover: "transparent",
470
- color: t,
467
+ color: r,
471
468
  border: `${c(1)} solid transparent`
472
469
  } : e === "white" ? o.isThemeColor ? o.shade === void 0 ? {
473
470
  background: "var(--mantine-color-white)",
474
- hover: Z(r.white, 0.01),
475
- color: `var(--mantine-color-${t}-filled)`,
471
+ hover: Z(t.white, 0.01),
472
+ color: `var(--mantine-color-${r}-filled)`,
476
473
  border: `${c(1)} solid transparent`
477
474
  } : {
478
475
  background: "var(--mantine-color-white)",
479
- hover: Z(r.white, 0.01),
476
+ hover: Z(t.white, 0.01),
480
477
  color: `var(--mantine-color-${o.color}-${o.shade})`,
481
478
  border: `${c(1)} solid transparent`
482
479
  } : {
483
480
  background: "var(--mantine-color-white)",
484
- hover: Z(r.white, 0.01),
485
- color: t,
481
+ hover: Z(t.white, 0.01),
482
+ color: r,
486
483
  border: `${c(1)} solid transparent`
487
484
  } : e === "gradient" ? {
488
- background: At(n, r),
489
- hover: At(n, r),
485
+ background: Ar(n, t),
486
+ hover: Ar(n, t),
490
487
  color: "var(--mantine-color-white)",
491
488
  border: "none"
492
489
  } : e === "default" ? {
@@ -664,7 +661,7 @@ const V = R, gn = ({
664
661
  "#e8590c",
665
662
  "#d9480f"
666
663
  ]
667
- }, Ot = "-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji", kt = {
664
+ }, Or = "-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji", kr = {
668
665
  scale: 1,
669
666
  fontSmoothing: !0,
670
667
  focusRing: "auto",
@@ -673,10 +670,10 @@ const V = R, gn = ({
673
670
  colors: bn,
674
671
  primaryShade: { light: 6, dark: 8 },
675
672
  primaryColor: "blue",
676
- variantColorResolver: gn,
673
+ variantColorResolver: yn,
677
674
  autoContrast: !1,
678
675
  luminanceThreshold: 0.3,
679
- fontFamily: Ot,
676
+ fontFamily: Or,
680
677
  fontFamilyMonospace: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",
681
678
  respectReducedMotion: !1,
682
679
  cursorType: "default",
@@ -685,7 +682,7 @@ const V = R, gn = ({
685
682
  activeClassName: "mantine-active",
686
683
  focusClassName: "",
687
684
  headings: {
688
- fontFamily: Ot,
685
+ fontFamily: Or,
689
686
  fontWeight: "700",
690
687
  textWrap: "wrap",
691
688
  sizes: {
@@ -750,27 +747,27 @@ const V = R, gn = ({
750
747
  other: {},
751
748
  components: {}
752
749
  };
753
- function It(t) {
754
- return t === "auto" || t === "dark" || t === "light";
750
+ function Ir(r) {
751
+ return r === "auto" || r === "dark" || r === "light";
755
752
  }
756
753
  function hn({
757
- key: t = "mantine-color-scheme-value"
754
+ key: r = "mantine-color-scheme-value"
758
755
  } = {}) {
759
- let r;
756
+ let t;
760
757
  return {
761
758
  get: (e) => {
762
759
  if (typeof window > "u")
763
760
  return e;
764
761
  try {
765
- const n = window.localStorage.getItem(t);
766
- return It(n) ? n : e;
762
+ const n = window.localStorage.getItem(r);
763
+ return Ir(n) ? n : e;
767
764
  } catch {
768
765
  return e;
769
766
  }
770
767
  },
771
768
  set: (e) => {
772
769
  try {
773
- window.localStorage.setItem(t, e);
770
+ window.localStorage.setItem(r, e);
774
771
  } catch (n) {
775
772
  console.warn(
776
773
  "[@mantine/core] Local storage color scheme manager was unable to save color scheme.",
@@ -779,199 +776,199 @@ function hn({
779
776
  }
780
777
  },
781
778
  subscribe: (e) => {
782
- r = (n) => {
783
- n.storageArea === window.localStorage && n.key === t && It(n.newValue) && e(n.newValue);
784
- }, window.addEventListener("storage", r);
779
+ t = (n) => {
780
+ n.storageArea === window.localStorage && n.key === r && Ir(n.newValue) && e(n.newValue);
781
+ }, window.addEventListener("storage", t);
785
782
  },
786
783
  unsubscribe: () => {
787
- window.removeEventListener("storage", r);
784
+ window.removeEventListener("storage", t);
788
785
  },
789
786
  clear: () => {
790
- window.localStorage.removeItem(t);
787
+ window.localStorage.removeItem(r);
791
788
  }
792
789
  };
793
790
  }
794
- const $n = "[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color", jt = "[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";
795
- function lt(t) {
796
- return t < 0 || t > 9 ? !1 : parseInt(t.toString(), 10) === t;
791
+ const $n = "[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color", Br = "[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";
792
+ function lr(r) {
793
+ return r < 0 || r > 9 ? !1 : parseInt(r.toString(), 10) === r;
797
794
  }
798
- function Bt(t) {
799
- if (!(t.primaryColor in t.colors))
795
+ function Vr(r) {
796
+ if (!(r.primaryColor in r.colors))
800
797
  throw new Error($n);
801
- if (typeof t.primaryShade == "object" && (!lt(t.primaryShade.dark) || !lt(t.primaryShade.light)))
802
- throw new Error(jt);
803
- if (typeof t.primaryShade == "number" && !lt(t.primaryShade))
804
- throw new Error(jt);
798
+ if (typeof r.primaryShade == "object" && (!lr(r.primaryShade.dark) || !lr(r.primaryShade.light)))
799
+ throw new Error(Br);
800
+ if (typeof r.primaryShade == "number" && !lr(r.primaryShade))
801
+ throw new Error(Br);
805
802
  }
806
- function vn(t, r) {
803
+ function vn(r, t) {
807
804
  var n;
808
- if (!r)
809
- return Bt(t), t;
810
- const e = vt(t, r);
811
- return r.fontFamily && !((n = r.headings) != null && n.fontFamily) && (e.headings.fontFamily = r.fontFamily), Bt(e), e;
812
- }
813
- const Nt = Dt(null), Sn = () => $t(Nt) || kt;
814
- function B() {
815
- const t = $t(Nt);
816
805
  if (!t)
806
+ return Vr(r), r;
807
+ const e = vr(r, t);
808
+ return t.fontFamily && !((n = t.headings) != null && n.fontFamily) && (e.headings.fontFamily = t.fontFamily), Vr(e), e;
809
+ }
810
+ const Nr = Dr(null), Sn = () => $r(Nr) || kr;
811
+ function V() {
812
+ const r = $r(Nr);
813
+ if (!r)
817
814
  throw new Error(
818
815
  "@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app"
819
816
  );
820
- return t;
817
+ return r;
821
818
  }
822
- function Jt({
823
- theme: t,
824
- children: r,
819
+ function Jr({
820
+ theme: r,
821
+ children: t,
825
822
  inherit: e = !0
826
823
  }) {
827
- const n = Sn(), a = zr(
828
- () => vn(e ? n : kt, t),
829
- [t, n, e]
824
+ const n = Sn(), a = zt(
825
+ () => vn(e ? n : kr, r),
826
+ [r, n, e]
830
827
  );
831
- return /* @__PURE__ */ p(Nt.Provider, { value: a, children: r });
828
+ return /* @__PURE__ */ p(Nr.Provider, { value: a, children: t });
832
829
  }
833
- Jt.displayName = "@mantine/core/MantineThemeProvider";
830
+ Jr.displayName = "@mantine/core/MantineThemeProvider";
834
831
  function wn() {
835
- const t = B(), r = Ct(), e = M(t.breakpoints).reduce((n, a) => {
836
- const o = t.breakpoints[a].includes("px"), i = Ur(t.breakpoints[a]), s = o ? `${i - 0.1}px` : Et(i - 0.1), l = o ? `${i}px` : Et(i);
832
+ const r = V(), t = Cr(), e = M(r.breakpoints).reduce((n, a) => {
833
+ const o = r.breakpoints[a].includes("px"), i = Ut(r.breakpoints[a]), s = o ? `${i - 0.1}px` : Er(i - 0.1), l = o ? `${i}px` : Er(i);
837
834
  return `${n}@media (max-width: ${s}) {.mantine-visible-from-${a} {display: none !important;}}@media (min-width: ${l}) {.mantine-hidden-from-${a} {display: none !important;}}`;
838
835
  }, "");
839
836
  return /* @__PURE__ */ p(
840
837
  "style",
841
838
  {
842
839
  "data-mantine-styles": "classes",
843
- nonce: r == null ? void 0 : r(),
840
+ nonce: t == null ? void 0 : t(),
844
841
  dangerouslySetInnerHTML: { __html: e }
845
842
  }
846
843
  );
847
844
  }
848
- function dt(t) {
849
- return Object.entries(t).map(([r, e]) => `${r}: ${e};`).join("");
845
+ function dr(r) {
846
+ return Object.entries(r).map(([t, e]) => `${t}: ${e};`).join("");
850
847
  }
851
- function D(t, r) {
852
- return (Array.isArray(t) ? t : [t]).reduce((n, a) => `${a}{${n}}`, r);
848
+ function D(r, t) {
849
+ return (Array.isArray(r) ? r : [r]).reduce((n, a) => `${a}{${n}}`, t);
853
850
  }
854
- function Cn(t, r) {
855
- const e = dt(t.variables), n = e ? D(r, e) : "", a = dt(t.dark), o = dt(t.light), i = a ? D(r === ":host" ? `${r}([data-mantine-color-scheme="dark"])` : `${r}[data-mantine-color-scheme="dark"]`, a) : "", s = o ? D(r === ":host" ? `${r}([data-mantine-color-scheme="light"])` : `${r}[data-mantine-color-scheme="light"]`, o) : "";
851
+ function Cn(r, t) {
852
+ const e = dr(r.variables), n = e ? D(t, e) : "", a = dr(r.dark), o = dr(r.light), i = a ? D(t === ":host" ? `${t}([data-mantine-color-scheme="dark"])` : `${t}[data-mantine-color-scheme="dark"]`, a) : "", s = o ? D(t === ":host" ? `${t}([data-mantine-color-scheme="light"])` : `${t}[data-mantine-color-scheme="light"]`, o) : "";
856
853
  return `${n}${i}${s}`;
857
854
  }
858
- function xn({ color: t, theme: r, autoContrast: e }) {
859
- return r.autoContrast && q({ color: t || r.primaryColor, theme: r }).isLight ? "var(--mantine-color-black)" : "var(--mantine-color-white)";
855
+ function xn({ color: r, theme: t, autoContrast: e }) {
856
+ return t.autoContrast && q({ color: r || t.primaryColor, theme: t }).isLight ? "var(--mantine-color-black)" : "var(--mantine-color-white)";
860
857
  }
861
- function Vt(t, r) {
858
+ function jr(r, t) {
862
859
  return xn({
863
- color: t.colors[t.primaryColor][U(t, r)],
864
- theme: t,
860
+ color: r.colors[r.primaryColor][U(r, t)],
861
+ theme: r,
865
862
  autoContrast: null
866
863
  });
867
864
  }
868
865
  function J({
869
- theme: t,
870
- color: r,
866
+ theme: r,
867
+ color: t,
871
868
  colorScheme: e,
872
- name: n = r,
869
+ name: n = t,
873
870
  withColorValues: a = !0
874
871
  }) {
875
- if (!t.colors[r])
872
+ if (!r.colors[t])
876
873
  return {};
877
874
  if (e === "light") {
878
- const s = U(t, "light"), l = {
875
+ const s = U(r, "light"), l = {
879
876
  [`--mantine-color-${n}-text`]: `var(--mantine-color-${n}-filled)`,
880
877
  [`--mantine-color-${n}-filled`]: `var(--mantine-color-${n}-${s})`,
881
878
  [`--mantine-color-${n}-filled-hover`]: `var(--mantine-color-${n}-${s === 9 ? 8 : s + 1})`,
882
- [`--mantine-color-${n}-light`]: V(t.colors[r][s], 0.1),
883
- [`--mantine-color-${n}-light-hover`]: V(t.colors[r][s], 0.12),
879
+ [`--mantine-color-${n}-light`]: j(r.colors[t][s], 0.1),
880
+ [`--mantine-color-${n}-light-hover`]: j(r.colors[t][s], 0.12),
884
881
  [`--mantine-color-${n}-light-color`]: `var(--mantine-color-${n}-${s})`,
885
882
  [`--mantine-color-${n}-outline`]: `var(--mantine-color-${n}-${s})`,
886
- [`--mantine-color-${n}-outline-hover`]: V(t.colors[r][s], 0.05)
883
+ [`--mantine-color-${n}-outline-hover`]: j(r.colors[t][s], 0.05)
887
884
  };
888
885
  return a ? {
889
- [`--mantine-color-${n}-0`]: t.colors[r][0],
890
- [`--mantine-color-${n}-1`]: t.colors[r][1],
891
- [`--mantine-color-${n}-2`]: t.colors[r][2],
892
- [`--mantine-color-${n}-3`]: t.colors[r][3],
893
- [`--mantine-color-${n}-4`]: t.colors[r][4],
894
- [`--mantine-color-${n}-5`]: t.colors[r][5],
895
- [`--mantine-color-${n}-6`]: t.colors[r][6],
896
- [`--mantine-color-${n}-7`]: t.colors[r][7],
897
- [`--mantine-color-${n}-8`]: t.colors[r][8],
898
- [`--mantine-color-${n}-9`]: t.colors[r][9],
886
+ [`--mantine-color-${n}-0`]: r.colors[t][0],
887
+ [`--mantine-color-${n}-1`]: r.colors[t][1],
888
+ [`--mantine-color-${n}-2`]: r.colors[t][2],
889
+ [`--mantine-color-${n}-3`]: r.colors[t][3],
890
+ [`--mantine-color-${n}-4`]: r.colors[t][4],
891
+ [`--mantine-color-${n}-5`]: r.colors[t][5],
892
+ [`--mantine-color-${n}-6`]: r.colors[t][6],
893
+ [`--mantine-color-${n}-7`]: r.colors[t][7],
894
+ [`--mantine-color-${n}-8`]: r.colors[t][8],
895
+ [`--mantine-color-${n}-9`]: r.colors[t][9],
899
896
  ...l
900
897
  } : l;
901
898
  }
902
- const o = U(t, "dark"), i = {
899
+ const o = U(r, "dark"), i = {
903
900
  [`--mantine-color-${n}-text`]: `var(--mantine-color-${n}-4)`,
904
901
  [`--mantine-color-${n}-filled`]: `var(--mantine-color-${n}-${o})`,
905
902
  [`--mantine-color-${n}-filled-hover`]: `var(--mantine-color-${n}-${o === 9 ? 8 : o + 1})`,
906
- [`--mantine-color-${n}-light`]: V(
907
- t.colors[r][Math.max(0, o - 2)],
903
+ [`--mantine-color-${n}-light`]: j(
904
+ r.colors[t][Math.max(0, o - 2)],
908
905
  0.15
909
906
  ),
910
- [`--mantine-color-${n}-light-hover`]: V(
911
- t.colors[r][Math.max(0, o - 2)],
907
+ [`--mantine-color-${n}-light-hover`]: j(
908
+ r.colors[t][Math.max(0, o - 2)],
912
909
  0.2
913
910
  ),
914
911
  [`--mantine-color-${n}-light-color`]: `var(--mantine-color-${n}-${Math.max(o - 5, 0)})`,
915
912
  [`--mantine-color-${n}-outline`]: `var(--mantine-color-${n}-${Math.max(o - 4, 0)})`,
916
- [`--mantine-color-${n}-outline-hover`]: V(
917
- t.colors[r][Math.max(o - 4, 0)],
913
+ [`--mantine-color-${n}-outline-hover`]: j(
914
+ r.colors[t][Math.max(o - 4, 0)],
918
915
  0.05
919
916
  )
920
917
  };
921
918
  return a ? {
922
- [`--mantine-color-${n}-0`]: t.colors[r][0],
923
- [`--mantine-color-${n}-1`]: t.colors[r][1],
924
- [`--mantine-color-${n}-2`]: t.colors[r][2],
925
- [`--mantine-color-${n}-3`]: t.colors[r][3],
926
- [`--mantine-color-${n}-4`]: t.colors[r][4],
927
- [`--mantine-color-${n}-5`]: t.colors[r][5],
928
- [`--mantine-color-${n}-6`]: t.colors[r][6],
929
- [`--mantine-color-${n}-7`]: t.colors[r][7],
930
- [`--mantine-color-${n}-8`]: t.colors[r][8],
931
- [`--mantine-color-${n}-9`]: t.colors[r][9],
919
+ [`--mantine-color-${n}-0`]: r.colors[t][0],
920
+ [`--mantine-color-${n}-1`]: r.colors[t][1],
921
+ [`--mantine-color-${n}-2`]: r.colors[t][2],
922
+ [`--mantine-color-${n}-3`]: r.colors[t][3],
923
+ [`--mantine-color-${n}-4`]: r.colors[t][4],
924
+ [`--mantine-color-${n}-5`]: r.colors[t][5],
925
+ [`--mantine-color-${n}-6`]: r.colors[t][6],
926
+ [`--mantine-color-${n}-7`]: r.colors[t][7],
927
+ [`--mantine-color-${n}-8`]: r.colors[t][8],
928
+ [`--mantine-color-${n}-9`]: r.colors[t][9],
932
929
  ...i
933
930
  } : i;
934
931
  }
935
- function kn(t) {
936
- return !!t && typeof t == "object" && "mantine-virtual-color" in t;
932
+ function kn(r) {
933
+ return !!r && typeof r == "object" && "mantine-virtual-color" in r;
937
934
  }
938
- function F(t, r, e) {
939
- M(r).forEach(
940
- (n) => Object.assign(t, { [`--mantine-${e}-${n}`]: r[n] })
935
+ function F(r, t, e) {
936
+ M(t).forEach(
937
+ (n) => Object.assign(r, { [`--mantine-${e}-${n}`]: t[n] })
941
938
  );
942
939
  }
943
- const tr = (t) => {
944
- const r = U(t, "light"), e = t.defaultRadius in t.radius ? t.radius[t.defaultRadius] : c(t.defaultRadius), n = {
940
+ const rt = (r) => {
941
+ const t = U(r, "light"), e = r.defaultRadius in r.radius ? r.radius[r.defaultRadius] : c(r.defaultRadius), n = {
945
942
  variables: {
946
- "--mantine-scale": t.scale.toString(),
947
- "--mantine-cursor-type": t.cursorType,
943
+ "--mantine-scale": r.scale.toString(),
944
+ "--mantine-cursor-type": r.cursorType,
948
945
  "--mantine-color-scheme": "light dark",
949
- "--mantine-webkit-font-smoothing": t.fontSmoothing ? "antialiased" : "unset",
950
- "--mantine-moz-font-smoothing": t.fontSmoothing ? "grayscale" : "unset",
951
- "--mantine-color-white": t.white,
952
- "--mantine-color-black": t.black,
953
- "--mantine-line-height": t.lineHeights.md,
954
- "--mantine-font-family": t.fontFamily,
955
- "--mantine-font-family-monospace": t.fontFamilyMonospace,
956
- "--mantine-font-family-headings": t.headings.fontFamily,
957
- "--mantine-heading-font-weight": t.headings.fontWeight,
958
- "--mantine-heading-text-wrap": t.headings.textWrap,
946
+ "--mantine-webkit-font-smoothing": r.fontSmoothing ? "antialiased" : "unset",
947
+ "--mantine-moz-font-smoothing": r.fontSmoothing ? "grayscale" : "unset",
948
+ "--mantine-color-white": r.white,
949
+ "--mantine-color-black": r.black,
950
+ "--mantine-line-height": r.lineHeights.md,
951
+ "--mantine-font-family": r.fontFamily,
952
+ "--mantine-font-family-monospace": r.fontFamilyMonospace,
953
+ "--mantine-font-family-headings": r.headings.fontFamily,
954
+ "--mantine-heading-font-weight": r.headings.fontWeight,
955
+ "--mantine-heading-text-wrap": r.headings.textWrap,
959
956
  "--mantine-radius-default": e,
960
957
  // Primary colors
961
- "--mantine-primary-color-filled": `var(--mantine-color-${t.primaryColor}-filled)`,
962
- "--mantine-primary-color-filled-hover": `var(--mantine-color-${t.primaryColor}-filled-hover)`,
963
- "--mantine-primary-color-light": `var(--mantine-color-${t.primaryColor}-light)`,
964
- "--mantine-primary-color-light-hover": `var(--mantine-color-${t.primaryColor}-light-hover)`,
965
- "--mantine-primary-color-light-color": `var(--mantine-color-${t.primaryColor}-light-color)`
958
+ "--mantine-primary-color-filled": `var(--mantine-color-${r.primaryColor}-filled)`,
959
+ "--mantine-primary-color-filled-hover": `var(--mantine-color-${r.primaryColor}-filled-hover)`,
960
+ "--mantine-primary-color-light": `var(--mantine-color-${r.primaryColor}-light)`,
961
+ "--mantine-primary-color-light-hover": `var(--mantine-color-${r.primaryColor}-light-hover)`,
962
+ "--mantine-primary-color-light-color": `var(--mantine-color-${r.primaryColor}-light-color)`
966
963
  },
967
964
  light: {
968
- "--mantine-primary-color-contrast": Vt(t, "light"),
965
+ "--mantine-primary-color-contrast": jr(r, "light"),
969
966
  "--mantine-color-bright": "var(--mantine-color-black)",
970
- "--mantine-color-text": t.black,
971
- "--mantine-color-body": t.white,
967
+ "--mantine-color-text": r.black,
968
+ "--mantine-color-body": r.white,
972
969
  "--mantine-color-error": "var(--mantine-color-red-6)",
973
970
  "--mantine-color-placeholder": "var(--mantine-color-gray-5)",
974
- "--mantine-color-anchor": `var(--mantine-color-${t.primaryColor}-${r})`,
971
+ "--mantine-color-anchor": `var(--mantine-color-${r.primaryColor}-${t})`,
975
972
  "--mantine-color-default": "var(--mantine-color-white)",
976
973
  "--mantine-color-default-hover": "var(--mantine-color-gray-0)",
977
974
  "--mantine-color-default-color": "var(--mantine-color-black)",
@@ -979,13 +976,13 @@ const tr = (t) => {
979
976
  "--mantine-color-dimmed": "var(--mantine-color-gray-6)"
980
977
  },
981
978
  dark: {
982
- "--mantine-primary-color-contrast": Vt(t, "dark"),
979
+ "--mantine-primary-color-contrast": jr(r, "dark"),
983
980
  "--mantine-color-bright": "var(--mantine-color-white)",
984
981
  "--mantine-color-text": "var(--mantine-color-dark-0)",
985
982
  "--mantine-color-body": "var(--mantine-color-dark-7)",
986
983
  "--mantine-color-error": "var(--mantine-color-red-8)",
987
984
  "--mantine-color-placeholder": "var(--mantine-color-dark-3)",
988
- "--mantine-color-anchor": `var(--mantine-color-${t.primaryColor}-4)`,
985
+ "--mantine-color-anchor": `var(--mantine-color-${r.primaryColor}-4)`,
989
986
  "--mantine-color-default": "var(--mantine-color-dark-6)",
990
987
  "--mantine-color-default-hover": "var(--mantine-color-dark-5)",
991
988
  "--mantine-color-default-color": "var(--mantine-color-white)",
@@ -993,15 +990,15 @@ const tr = (t) => {
993
990
  "--mantine-color-dimmed": "var(--mantine-color-dark-2)"
994
991
  }
995
992
  };
996
- F(n.variables, t.breakpoints, "breakpoint"), F(n.variables, t.spacing, "spacing"), F(n.variables, t.fontSizes, "font-size"), F(n.variables, t.lineHeights, "line-height"), F(n.variables, t.shadows, "shadow"), F(n.variables, t.radius, "radius"), t.colors[t.primaryColor].forEach((o, i) => {
997
- n.variables[`--mantine-primary-color-${i}`] = `var(--mantine-color-${t.primaryColor}-${i})`;
998
- }), M(t.colors).forEach((o) => {
999
- const i = t.colors[o];
993
+ F(n.variables, r.breakpoints, "breakpoint"), F(n.variables, r.spacing, "spacing"), F(n.variables, r.fontSizes, "font-size"), F(n.variables, r.lineHeights, "line-height"), F(n.variables, r.shadows, "shadow"), F(n.variables, r.radius, "radius"), r.colors[r.primaryColor].forEach((o, i) => {
994
+ n.variables[`--mantine-primary-color-${i}`] = `var(--mantine-color-${r.primaryColor}-${i})`;
995
+ }), M(r.colors).forEach((o) => {
996
+ const i = r.colors[o];
1000
997
  if (kn(i)) {
1001
998
  Object.assign(
1002
999
  n.light,
1003
1000
  J({
1004
- theme: t,
1001
+ theme: r,
1005
1002
  name: i.name,
1006
1003
  color: i.light,
1007
1004
  colorScheme: "light",
@@ -1010,7 +1007,7 @@ const tr = (t) => {
1010
1007
  ), Object.assign(
1011
1008
  n.dark,
1012
1009
  J({
1013
- theme: t,
1010
+ theme: r,
1014
1011
  name: i.name,
1015
1012
  color: i.dark,
1016
1013
  colorScheme: "dark",
@@ -1024,7 +1021,7 @@ const tr = (t) => {
1024
1021
  }), Object.assign(
1025
1022
  n.light,
1026
1023
  J({
1027
- theme: t,
1024
+ theme: r,
1028
1025
  color: o,
1029
1026
  colorScheme: "light",
1030
1027
  withColorValues: !1
@@ -1032,87 +1029,87 @@ const tr = (t) => {
1032
1029
  ), Object.assign(
1033
1030
  n.dark,
1034
1031
  J({
1035
- theme: t,
1032
+ theme: r,
1036
1033
  color: o,
1037
1034
  colorScheme: "dark",
1038
1035
  withColorValues: !1
1039
1036
  })
1040
1037
  );
1041
1038
  });
1042
- const a = t.headings.sizes;
1039
+ const a = r.headings.sizes;
1043
1040
  return M(a).forEach((o) => {
1044
- n.variables[`--mantine-${o}-font-size`] = a[o].fontSize, n.variables[`--mantine-${o}-line-height`] = a[o].lineHeight, n.variables[`--mantine-${o}-font-weight`] = a[o].fontWeight || t.headings.fontWeight;
1041
+ n.variables[`--mantine-${o}-font-size`] = a[o].fontSize, n.variables[`--mantine-${o}-line-height`] = a[o].lineHeight, n.variables[`--mantine-${o}-font-weight`] = a[o].fontWeight || r.headings.fontWeight;
1045
1042
  }), n;
1046
1043
  };
1047
- function Nn({ theme: t, generator: r }) {
1048
- const e = tr(t), n = r == null ? void 0 : r(t);
1049
- return n ? vt(e, n) : e;
1044
+ function Nn({ theme: r, generator: t }) {
1045
+ const e = rt(r), n = t == null ? void 0 : t(r);
1046
+ return n ? vr(e, n) : e;
1050
1047
  }
1051
- const ft = tr(kt);
1052
- function Tn(t) {
1053
- const r = {
1048
+ const fr = rt(kr);
1049
+ function Tn(r) {
1050
+ const t = {
1054
1051
  variables: {},
1055
1052
  light: {},
1056
1053
  dark: {}
1057
1054
  };
1058
- return M(t.variables).forEach((e) => {
1059
- ft.variables[e] !== t.variables[e] && (r.variables[e] = t.variables[e]);
1060
- }), M(t.light).forEach((e) => {
1061
- ft.light[e] !== t.light[e] && (r.light[e] = t.light[e]);
1062
- }), M(t.dark).forEach((e) => {
1063
- ft.dark[e] !== t.dark[e] && (r.dark[e] = t.dark[e]);
1064
- }), r;
1065
- }
1066
- function Mn(t) {
1055
+ return M(r.variables).forEach((e) => {
1056
+ fr.variables[e] !== r.variables[e] && (t.variables[e] = r.variables[e]);
1057
+ }), M(r.light).forEach((e) => {
1058
+ fr.light[e] !== r.light[e] && (t.light[e] = r.light[e]);
1059
+ }), M(r.dark).forEach((e) => {
1060
+ fr.dark[e] !== r.dark[e] && (t.dark[e] = r.dark[e]);
1061
+ }), t;
1062
+ }
1063
+ function Mn(r) {
1067
1064
  return `
1068
- ${t}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }
1069
- ${t}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }
1065
+ ${r}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }
1066
+ ${r}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }
1070
1067
  `;
1071
1068
  }
1072
- function rr({
1073
- cssVariablesSelector: t,
1074
- deduplicateCssVariables: r
1069
+ function tt({
1070
+ cssVariablesSelector: r,
1071
+ deduplicateCssVariables: t
1075
1072
  }) {
1076
- const e = B(), n = Ct(), a = nn(), o = Nn({ theme: e, generator: a }), i = t === ":root" && r, s = i ? Tn(o) : o, l = Cn(s, t);
1073
+ const e = V(), n = Cr(), a = nn(), o = Nn({ theme: e, generator: a }), i = r === ":root" && t, s = i ? Tn(o) : o, l = Cn(s, r);
1077
1074
  return l ? /* @__PURE__ */ p(
1078
1075
  "style",
1079
1076
  {
1080
1077
  "data-mantine-styles": !0,
1081
1078
  nonce: n == null ? void 0 : n(),
1082
1079
  dangerouslySetInnerHTML: {
1083
- __html: `${l}${i ? "" : Mn(t)}`
1080
+ __html: `${l}${i ? "" : Mn(r)}`
1084
1081
  }
1085
1082
  }
1086
1083
  ) : null;
1087
1084
  }
1088
- rr.displayName = "@mantine/CssVariables";
1085
+ tt.displayName = "@mantine/CssVariables";
1089
1086
  function Rn() {
1090
- const t = console.error;
1091
- console.error = (...r) => {
1092
- r.length > 1 && typeof r[0] == "string" && r[0].toLowerCase().includes("extra attributes from the server") && typeof r[1] == "string" && r[1].toLowerCase().includes("data-mantine-color-scheme") || t(...r);
1087
+ const r = console.error;
1088
+ console.error = (...t) => {
1089
+ t.length > 1 && typeof t[0] == "string" && t[0].toLowerCase().includes("extra attributes from the server") && typeof t[1] == "string" && t[1].toLowerCase().includes("data-mantine-color-scheme") || r(...t);
1093
1090
  };
1094
1091
  }
1095
- function H(t, r) {
1092
+ function H(r, t) {
1096
1093
  var a, o;
1097
- const e = typeof window < "u" && "matchMedia" in window && ((a = window.matchMedia("(prefers-color-scheme: dark)")) == null ? void 0 : a.matches), n = t !== "auto" ? t : e ? "dark" : "light";
1098
- (o = r()) == null || o.setAttribute("data-mantine-color-scheme", n);
1094
+ const e = typeof window < "u" && "matchMedia" in window && ((a = window.matchMedia("(prefers-color-scheme: dark)")) == null ? void 0 : a.matches), n = r !== "auto" ? r : e ? "dark" : "light";
1095
+ (o = t()) == null || o.setAttribute("data-mantine-color-scheme", n);
1099
1096
  }
1100
1097
  function _n({
1101
- manager: t,
1102
- defaultColorScheme: r,
1098
+ manager: r,
1099
+ defaultColorScheme: t,
1103
1100
  getRootElement: e,
1104
1101
  forceColorScheme: n
1105
1102
  }) {
1106
- const a = W(null), [o, i] = rt(() => t.get(r)), s = n || o, l = Lt(
1103
+ const a = W(null), [o, i] = tr(() => r.get(t)), s = n || o, l = Lr(
1107
1104
  (u) => {
1108
- n || (H(u, e), i(u), t.set(u));
1105
+ n || (H(u, e), i(u), r.set(u));
1109
1106
  },
1110
- [t.set, s, n]
1111
- ), d = Lt(() => {
1112
- i(r), H(r, e), t.clear();
1113
- }, [t.clear, r]);
1114
- return A(() => (t.subscribe(l), t.unsubscribe), [t.subscribe, t.unsubscribe]), Qt(() => {
1115
- H(t.get(r), e);
1107
+ [r.set, s, n]
1108
+ ), d = Lr(() => {
1109
+ i(t), H(t, e), r.clear();
1110
+ }, [r.clear, t]);
1111
+ return A(() => (r.subscribe(l), r.unsubscribe), [r.subscribe, r.unsubscribe]), Qr(() => {
1112
+ H(r.get(t), e);
1116
1113
  }, []), A(() => {
1117
1114
  var f;
1118
1115
  if (n)
@@ -1129,18 +1126,18 @@ function _n({
1129
1126
  }, [o, n]), { colorScheme: s, setColorScheme: l, clearColorScheme: d };
1130
1127
  }
1131
1128
  function Pn({
1132
- respectReducedMotion: t,
1133
- getRootElement: r
1129
+ respectReducedMotion: r,
1130
+ getRootElement: t
1134
1131
  }) {
1135
- Qt(() => {
1132
+ Qr(() => {
1136
1133
  var e;
1137
- t && ((e = r()) == null || e.setAttribute("data-respect-reduced-motion", "true"));
1138
- }, [t]);
1134
+ r && ((e = t()) == null || e.setAttribute("data-respect-reduced-motion", "true"));
1135
+ }, [r]);
1139
1136
  }
1140
1137
  Rn();
1141
- function nr({
1142
- theme: t,
1143
- children: r,
1138
+ function nt({
1139
+ theme: r,
1140
+ children: t,
1144
1141
  getStyleNonce: e,
1145
1142
  withStaticClasses: n = !0,
1146
1143
  withGlobalClasses: a = !0,
@@ -1152,21 +1149,21 @@ function nr({
1152
1149
  defaultColorScheme: u = "light",
1153
1150
  getRootElement: f = () => document.documentElement,
1154
1151
  cssVariablesResolver: m,
1155
- forceColorScheme: y,
1156
- stylesTransform: g,
1152
+ forceColorScheme: g,
1153
+ stylesTransform: y,
1157
1154
  env: $
1158
1155
  }) {
1159
1156
  const { colorScheme: h, setColorScheme: C, clearColorScheme: x } = _n({
1160
1157
  defaultColorScheme: u,
1161
- forceColorScheme: y,
1158
+ forceColorScheme: g,
1162
1159
  manager: d,
1163
1160
  getRootElement: f
1164
1161
  });
1165
1162
  return Pn({
1166
- respectReducedMotion: (t == null ? void 0 : t.respectReducedMotion) || !1,
1163
+ respectReducedMotion: (r == null ? void 0 : r.respectReducedMotion) || !1,
1167
1164
  getRootElement: f
1168
1165
  }), /* @__PURE__ */ p(
1169
- Zt.Provider,
1166
+ Zr.Provider,
1170
1167
  {
1171
1168
  value: {
1172
1169
  colorScheme: h,
@@ -1178,102 +1175,102 @@ function nr({
1178
1175
  cssVariablesResolver: m,
1179
1176
  cssVariablesSelector: s,
1180
1177
  withStaticClasses: n,
1181
- stylesTransform: g,
1178
+ stylesTransform: y,
1182
1179
  env: $
1183
1180
  },
1184
- children: /* @__PURE__ */ z(Jt, { theme: t, children: [
1181
+ children: /* @__PURE__ */ z(Jr, { theme: r, children: [
1185
1182
  i && /* @__PURE__ */ p(
1186
- rr,
1183
+ tt,
1187
1184
  {
1188
1185
  cssVariablesSelector: s,
1189
1186
  deduplicateCssVariables: o
1190
1187
  }
1191
1188
  ),
1192
1189
  a && /* @__PURE__ */ p(wn, {}),
1193
- r
1190
+ t
1194
1191
  ] })
1195
1192
  }
1196
1193
  );
1197
1194
  }
1198
- nr.displayName = "@mantine/core/MantineProvider";
1195
+ nt.displayName = "@mantine/core/MantineProvider";
1199
1196
  const Ln = {
1200
1197
  always: "mantine-focus-always",
1201
1198
  auto: "mantine-focus-auto",
1202
1199
  never: "mantine-focus-never"
1203
1200
  };
1204
- function En({ theme: t, options: r, unstyled: e }) {
1205
- return j(
1206
- (r == null ? void 0 : r.focusable) && !e && (t.focusClassName || Ln[t.focusRing]),
1207
- (r == null ? void 0 : r.active) && !e && t.activeClassName
1201
+ function En({ theme: r, options: t, unstyled: e }) {
1202
+ return B(
1203
+ (t == null ? void 0 : t.focusable) && !e && (r.focusClassName || Ln[r.focusRing]),
1204
+ (t == null ? void 0 : t.active) && !e && r.activeClassName
1208
1205
  );
1209
1206
  }
1210
1207
  function An({
1211
- selector: t,
1212
- stylesCtx: r,
1208
+ selector: r,
1209
+ stylesCtx: t,
1213
1210
  options: e,
1214
1211
  props: n,
1215
1212
  theme: a
1216
1213
  }) {
1217
- return wt({
1214
+ return wr({
1218
1215
  theme: a,
1219
1216
  classNames: e == null ? void 0 : e.classNames,
1220
1217
  props: (e == null ? void 0 : e.props) || n,
1221
- stylesCtx: r
1222
- })[t];
1218
+ stylesCtx: t
1219
+ })[r];
1223
1220
  }
1224
- function Ft({
1225
- selector: t,
1226
- stylesCtx: r,
1221
+ function Fr({
1222
+ selector: r,
1223
+ stylesCtx: t,
1227
1224
  theme: e,
1228
1225
  classNames: n,
1229
1226
  props: a
1230
1227
  }) {
1231
- return wt({ theme: e, classNames: n, props: a, stylesCtx: r })[t];
1228
+ return wr({ theme: e, classNames: n, props: a, stylesCtx: t })[r];
1232
1229
  }
1233
- function On({ rootSelector: t, selector: r, className: e }) {
1234
- return t === r ? e : void 0;
1230
+ function On({ rootSelector: r, selector: t, className: e }) {
1231
+ return r === t ? e : void 0;
1235
1232
  }
1236
- function In({ selector: t, classes: r, unstyled: e }) {
1237
- return e ? void 0 : r[t];
1233
+ function In({ selector: r, classes: t, unstyled: e }) {
1234
+ return e ? void 0 : t[r];
1238
1235
  }
1239
- function jn({
1240
- themeName: t,
1241
- classNamesPrefix: r,
1236
+ function Bn({
1237
+ themeName: r,
1238
+ classNamesPrefix: t,
1242
1239
  selector: e,
1243
1240
  withStaticClass: n
1244
1241
  }) {
1245
- return n === !1 ? [] : t.map((a) => `${r}-${a}-${e}`);
1242
+ return n === !1 ? [] : r.map((a) => `${t}-${a}-${e}`);
1246
1243
  }
1247
- function Bn({
1248
- themeName: t,
1249
- theme: r,
1244
+ function Vn({
1245
+ themeName: r,
1246
+ theme: t,
1250
1247
  selector: e,
1251
1248
  props: n,
1252
1249
  stylesCtx: a
1253
1250
  }) {
1254
- return t.map(
1251
+ return r.map(
1255
1252
  (o) => {
1256
1253
  var i, s;
1257
- return (s = wt({
1258
- theme: r,
1259
- classNames: (i = r.components[o]) == null ? void 0 : i.classNames,
1254
+ return (s = wr({
1255
+ theme: t,
1256
+ classNames: (i = t.components[o]) == null ? void 0 : i.classNames,
1260
1257
  props: n,
1261
1258
  stylesCtx: a
1262
1259
  })) == null ? void 0 : s[e];
1263
1260
  }
1264
1261
  );
1265
1262
  }
1266
- function Vn({
1267
- options: t,
1268
- classes: r,
1263
+ function jn({
1264
+ options: r,
1265
+ classes: t,
1269
1266
  selector: e,
1270
1267
  unstyled: n
1271
1268
  }) {
1272
- return t != null && t.variant && !n ? r[`${e}--${t.variant}`] : void 0;
1269
+ return r != null && r.variant && !n ? t[`${e}--${r.variant}`] : void 0;
1273
1270
  }
1274
1271
  function Fn({
1275
- theme: t,
1276
- options: r,
1272
+ theme: r,
1273
+ options: t,
1277
1274
  themeName: e,
1278
1275
  selector: n,
1279
1276
  classNamesPrefix: a,
@@ -1285,60 +1282,60 @@ function Fn({
1285
1282
  props: u,
1286
1283
  stylesCtx: f,
1287
1284
  withStaticClasses: m,
1288
- headless: y,
1289
- transformedStyles: g
1285
+ headless: g,
1286
+ transformedStyles: y
1290
1287
  }) {
1291
- return j(
1292
- En({ theme: t, options: r, unstyled: s || y }),
1293
- Bn({ theme: t, themeName: e, selector: n, props: u, stylesCtx: f }),
1294
- Vn({ options: r, classes: i, selector: n, unstyled: s }),
1295
- Ft({ selector: n, stylesCtx: f, theme: t, classNames: o, props: u }),
1296
- Ft({ selector: n, stylesCtx: f, theme: t, classNames: g, props: u }),
1297
- An({ selector: n, stylesCtx: f, options: r, props: u, theme: t }),
1288
+ return B(
1289
+ En({ theme: r, options: t, unstyled: s || g }),
1290
+ Vn({ theme: r, themeName: e, selector: n, props: u, stylesCtx: f }),
1291
+ jn({ options: t, classes: i, selector: n, unstyled: s }),
1292
+ Fr({ selector: n, stylesCtx: f, theme: r, classNames: o, props: u }),
1293
+ Fr({ selector: n, stylesCtx: f, theme: r, classNames: y, props: u }),
1294
+ An({ selector: n, stylesCtx: f, options: t, props: u, theme: r }),
1298
1295
  On({ rootSelector: d, selector: n, className: l }),
1299
- In({ selector: n, classes: i, unstyled: s || y }),
1300
- m && !y && jn({
1296
+ In({ selector: n, classes: i, unstyled: s || g }),
1297
+ m && !g && Bn({
1301
1298
  themeName: e,
1302
1299
  classNamesPrefix: a,
1303
1300
  selector: n,
1304
- withStaticClass: r == null ? void 0 : r.withStaticClass
1301
+ withStaticClass: t == null ? void 0 : t.withStaticClass
1305
1302
  }),
1306
- r == null ? void 0 : r.className
1303
+ t == null ? void 0 : t.className
1307
1304
  );
1308
1305
  }
1309
1306
  function Hn({
1310
- theme: t,
1311
- themeName: r,
1307
+ theme: r,
1308
+ themeName: t,
1312
1309
  props: e,
1313
1310
  stylesCtx: n,
1314
1311
  selector: a
1315
1312
  }) {
1316
- return r.map(
1313
+ return t.map(
1317
1314
  (o) => {
1318
1315
  var i;
1319
- return yt({
1320
- theme: t,
1321
- styles: (i = t.components[o]) == null ? void 0 : i.styles,
1316
+ return gr({
1317
+ theme: r,
1318
+ styles: (i = r.components[o]) == null ? void 0 : i.styles,
1322
1319
  props: e,
1323
1320
  stylesCtx: n
1324
1321
  })[a];
1325
1322
  }
1326
1323
  ).reduce((o, i) => ({ ...o, ...i }), {});
1327
1324
  }
1328
- function bt({ style: t, theme: r }) {
1329
- return Array.isArray(t) ? [...t].reduce(
1330
- (e, n) => ({ ...e, ...bt({ style: n, theme: r }) }),
1325
+ function br({ style: r, theme: t }) {
1326
+ return Array.isArray(r) ? [...r].reduce(
1327
+ (e, n) => ({ ...e, ...br({ style: n, theme: t }) }),
1331
1328
  {}
1332
- ) : typeof t == "function" ? t(r) : t ?? {};
1329
+ ) : typeof r == "function" ? r(t) : r ?? {};
1333
1330
  }
1334
- function Wn(t) {
1335
- return t.reduce((r, e) => (e && Object.keys(e).forEach((n) => {
1336
- r[n] = { ...r[n], ...St(e[n]) };
1337
- }), r), {});
1331
+ function Wn(r) {
1332
+ return r.reduce((t, e) => (e && Object.keys(e).forEach((n) => {
1333
+ t[n] = { ...t[n], ...Sr(e[n]) };
1334
+ }), t), {});
1338
1335
  }
1339
1336
  function zn({
1340
- vars: t,
1341
- varsResolver: r,
1337
+ vars: r,
1338
+ varsResolver: t,
1342
1339
  theme: e,
1343
1340
  props: n,
1344
1341
  stylesCtx: a,
@@ -1348,17 +1345,17 @@ function zn({
1348
1345
  }) {
1349
1346
  var l;
1350
1347
  return (l = Wn([
1351
- s ? {} : r == null ? void 0 : r(e, n, a),
1348
+ s ? {} : t == null ? void 0 : t(e, n, a),
1352
1349
  ...i.map((d) => {
1353
1350
  var u, f, m;
1354
1351
  return (m = (f = (u = e.components) == null ? void 0 : u[d]) == null ? void 0 : f.vars) == null ? void 0 : m.call(f, e, n, a);
1355
1352
  }),
1356
- t == null ? void 0 : t(e, n, a)
1353
+ r == null ? void 0 : r(e, n, a)
1357
1354
  ])) == null ? void 0 : l[o];
1358
1355
  }
1359
1356
  function Yn({
1360
- theme: t,
1361
- themeName: r,
1357
+ theme: r,
1358
+ themeName: t,
1362
1359
  selector: e,
1363
1360
  options: n,
1364
1361
  props: a,
@@ -1372,26 +1369,26 @@ function Yn({
1372
1369
  withStylesTransform: m
1373
1370
  }) {
1374
1371
  return {
1375
- ...!m && Hn({ theme: t, themeName: r, props: a, stylesCtx: o, selector: e }),
1376
- ...!m && yt({ theme: t, styles: s, props: a, stylesCtx: o })[e],
1377
- ...!m && yt({ theme: t, styles: n == null ? void 0 : n.styles, props: (n == null ? void 0 : n.props) || a, stylesCtx: o })[e],
1378
- ...zn({ theme: t, props: a, stylesCtx: o, vars: d, varsResolver: u, selector: e, themeName: r, headless: f }),
1379
- ...i === e ? bt({ style: l, theme: t }) : null,
1380
- ...bt({ style: n == null ? void 0 : n.style, theme: t })
1372
+ ...!m && Hn({ theme: r, themeName: t, props: a, stylesCtx: o, selector: e }),
1373
+ ...!m && gr({ theme: r, styles: s, props: a, stylesCtx: o })[e],
1374
+ ...!m && gr({ theme: r, styles: n == null ? void 0 : n.styles, props: (n == null ? void 0 : n.props) || a, stylesCtx: o })[e],
1375
+ ...zn({ theme: r, props: a, stylesCtx: o, vars: d, varsResolver: u, selector: e, themeName: t, headless: f }),
1376
+ ...i === e ? br({ style: l, theme: r }) : null,
1377
+ ...br({ style: n == null ? void 0 : n.style, theme: r })
1381
1378
  };
1382
1379
  }
1383
- function Gn({ props: t, stylesCtx: r, themeName: e }) {
1380
+ function Gn({ props: r, stylesCtx: t, themeName: e }) {
1384
1381
  var i;
1385
- const n = B(), a = (i = cn()) == null ? void 0 : i();
1382
+ const n = V(), a = (i = cn()) == null ? void 0 : i();
1386
1383
  return {
1387
1384
  getTransformedStyles: (s) => a ? [
1388
1385
  ...s.map(
1389
- (d) => a(d, { props: t, theme: n, ctx: r })
1386
+ (d) => a(d, { props: r, theme: n, ctx: t })
1390
1387
  ),
1391
1388
  ...e.map(
1392
1389
  (d) => {
1393
1390
  var u;
1394
- return a((u = n.components[d]) == null ? void 0 : u.styles, { props: t, theme: n, ctx: r });
1391
+ return a((u = n.components[d]) == null ? void 0 : u.styles, { props: r, theme: n, ctx: t });
1395
1392
  }
1396
1393
  )
1397
1394
  ].filter(Boolean) : [],
@@ -1399,8 +1396,8 @@ function Gn({ props: t, stylesCtx: r, themeName: e }) {
1399
1396
  };
1400
1397
  }
1401
1398
  function Q({
1402
- name: t,
1403
- classes: r,
1399
+ name: r,
1400
+ classes: t,
1404
1401
  props: e,
1405
1402
  stylesCtx: n,
1406
1403
  className: a,
@@ -1412,7 +1409,7 @@ function Q({
1412
1409
  vars: u,
1413
1410
  varsResolver: f
1414
1411
  }) {
1415
- const m = B(), y = en(), g = on(), $ = an(), h = (Array.isArray(t) ? t : [t]).filter((v) => v), { withStylesTransform: C, getTransformedStyles: x } = Gn({
1412
+ const m = V(), g = en(), y = on(), $ = an(), h = (Array.isArray(r) ? r : [r]).filter((v) => v), { withStylesTransform: C, getTransformedStyles: x } = Gn({
1416
1413
  props: e,
1417
1414
  stylesCtx: n,
1418
1415
  themeName: h
@@ -1423,15 +1420,15 @@ function Q({
1423
1420
  options: w,
1424
1421
  themeName: h,
1425
1422
  selector: v,
1426
- classNamesPrefix: y,
1423
+ classNamesPrefix: g,
1427
1424
  classNames: l,
1428
- classes: r,
1425
+ classes: t,
1429
1426
  unstyled: s,
1430
1427
  className: a,
1431
1428
  rootSelector: i,
1432
1429
  props: e,
1433
1430
  stylesCtx: n,
1434
- withStaticClasses: g,
1431
+ withStaticClasses: y,
1435
1432
  headless: $,
1436
1433
  transformedStyles: x([w == null ? void 0 : w.styles, d])
1437
1434
  }),
@@ -1453,23 +1450,23 @@ function Q({
1453
1450
  });
1454
1451
  }
1455
1452
  const Dn = ({
1456
- defaultColorScheme: t,
1457
- localStorageKey: r,
1453
+ defaultColorScheme: r,
1454
+ localStorageKey: t,
1458
1455
  forceColorScheme: e
1459
1456
  }) => e ? `document.documentElement.setAttribute("data-mantine-color-scheme", '${e}');` : `try {
1460
- var _colorScheme = window.localStorage.getItem("${r}");
1461
- var colorScheme = _colorScheme === "light" || _colorScheme === "dark" || _colorScheme === "auto" ? _colorScheme : "${t}";
1457
+ var _colorScheme = window.localStorage.getItem("${t}");
1458
+ var colorScheme = _colorScheme === "light" || _colorScheme === "dark" || _colorScheme === "auto" ? _colorScheme : "${r}";
1462
1459
  var computedColorScheme = colorScheme !== "auto" ? colorScheme : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
1463
1460
  document.documentElement.setAttribute("data-mantine-color-scheme", computedColorScheme);
1464
1461
  } catch (e) {}
1465
1462
  `;
1466
- function Pe({
1467
- defaultColorScheme: t = "light",
1468
- localStorageKey: r = "mantine-color-scheme-value",
1463
+ function _e({
1464
+ defaultColorScheme: r = "light",
1465
+ localStorageKey: t = "mantine-color-scheme-value",
1469
1466
  forceColorScheme: e,
1470
1467
  ...n
1471
1468
  }) {
1472
- const a = ["light", "dark", "auto"].includes(t) ? t : "light";
1469
+ const a = ["light", "dark", "auto"].includes(r) ? r : "light";
1473
1470
  return /* @__PURE__ */ p(
1474
1471
  "script",
1475
1472
  {
@@ -1478,48 +1475,48 @@ function Pe({
1478
1475
  dangerouslySetInnerHTML: {
1479
1476
  __html: Dn({
1480
1477
  defaultColorScheme: a,
1481
- localStorageKey: r,
1478
+ localStorageKey: t,
1482
1479
  forceColorScheme: e
1483
1480
  })
1484
1481
  }
1485
1482
  }
1486
1483
  );
1487
1484
  }
1488
- function I(t, r, e) {
1485
+ function I(r, t, e) {
1489
1486
  var i;
1490
- const n = B(), a = (i = n.components[t]) == null ? void 0 : i.defaultProps, o = typeof a == "function" ? a(n) : a;
1491
- return { ...r, ...o, ...St(e) };
1487
+ const n = V(), a = (i = n.components[r]) == null ? void 0 : i.defaultProps, o = typeof a == "function" ? a(n) : a;
1488
+ return { ...t, ...o, ...Sr(e) };
1492
1489
  }
1493
- const Le = {
1490
+ const Pe = {
1494
1491
  suppressHydrationWarning: !0,
1495
1492
  "data-mantine-color-scheme": "light"
1496
1493
  };
1497
- function ut(t) {
1498
- return M(t).reduce(
1499
- (r, e) => t[e] !== void 0 ? `${r}${Dr(e)}:${t[e]};` : r,
1494
+ function ur(r) {
1495
+ return M(r).reduce(
1496
+ (t, e) => r[e] !== void 0 ? `${t}${Dt(e)}:${r[e]};` : t,
1500
1497
  ""
1501
1498
  ).trim();
1502
1499
  }
1503
- function Xn({ selector: t, styles: r, media: e, container: n }) {
1504
- const a = r ? ut(r) : "", o = Array.isArray(e) ? e.map((s) => `@media${s.query}{${t}{${ut(s.styles)}}}`) : [], i = Array.isArray(n) ? n.map(
1505
- (s) => `@container ${s.query}{${t}{${ut(s.styles)}}}`
1500
+ function Xn({ selector: r, styles: t, media: e, container: n }) {
1501
+ const a = t ? ur(t) : "", o = Array.isArray(e) ? e.map((s) => `@media${s.query}{${r}{${ur(s.styles)}}}`) : [], i = Array.isArray(n) ? n.map(
1502
+ (s) => `@container ${s.query}{${r}{${ur(s.styles)}}}`
1506
1503
  ) : [];
1507
- return `${a ? `${t}{${a}}` : ""}${o.join("")}${i.join("")}`.trim();
1504
+ return `${a ? `${r}{${a}}` : ""}${o.join("")}${i.join("")}`.trim();
1508
1505
  }
1509
- function Un(t) {
1510
- const r = Ct();
1506
+ function Un(r) {
1507
+ const t = Cr();
1511
1508
  return /* @__PURE__ */ p(
1512
1509
  "style",
1513
1510
  {
1514
1511
  "data-mantine-styles": "inline",
1515
- nonce: r == null ? void 0 : r(),
1516
- dangerouslySetInnerHTML: { __html: Xn(t) }
1512
+ nonce: t == null ? void 0 : t(),
1513
+ dangerouslySetInnerHTML: { __html: Xn(r) }
1517
1514
  }
1518
1515
  );
1519
1516
  }
1520
- function qn(t) {
1517
+ function qn(r) {
1521
1518
  const {
1522
- m: r,
1519
+ m: t,
1523
1520
  mx: e,
1524
1521
  my: n,
1525
1522
  mt: a,
@@ -1531,8 +1528,8 @@ function qn(t) {
1531
1528
  p: u,
1532
1529
  px: f,
1533
1530
  py: m,
1534
- pt: y,
1535
- pb: g,
1531
+ pt: g,
1532
+ pb: y,
1536
1533
  pl: $,
1537
1534
  pr: h,
1538
1535
  pe: C,
@@ -1544,39 +1541,39 @@ function qn(t) {
1544
1541
  ff: k,
1545
1542
  fz: S,
1546
1543
  fw: E,
1547
- lts: ot,
1548
- ta: at,
1549
- lh: pr,
1550
- fs: yr,
1551
- tt: gr,
1552
- td: br,
1553
- w: hr,
1554
- miw: $r,
1555
- maw: vr,
1556
- h: Sr,
1557
- mih: wr,
1558
- mah: Cr,
1559
- bgsz: xr,
1560
- bgp: kr,
1561
- bgr: Nr,
1562
- bga: Tr,
1563
- pos: Mr,
1564
- top: Rr,
1565
- left: _r,
1566
- bottom: Pr,
1567
- right: Lr,
1568
- inset: Er,
1569
- display: Ar,
1570
- flex: Or,
1571
- hiddenFrom: Ir,
1572
- visibleFrom: jr,
1573
- lightHidden: Br,
1574
- darkHidden: Vr,
1575
- sx: Fr,
1576
- ...Hr
1577
- } = t;
1578
- return { styleProps: St({
1579
- m: r,
1544
+ lts: or,
1545
+ ta: ar,
1546
+ lh: pt,
1547
+ fs: gt,
1548
+ tt: yt,
1549
+ td: bt,
1550
+ w: ht,
1551
+ miw: $t,
1552
+ maw: vt,
1553
+ h: St,
1554
+ mih: wt,
1555
+ mah: Ct,
1556
+ bgsz: xt,
1557
+ bgp: kt,
1558
+ bgr: Nt,
1559
+ bga: Tt,
1560
+ pos: Mt,
1561
+ top: Rt,
1562
+ left: _t,
1563
+ bottom: Pt,
1564
+ right: Lt,
1565
+ inset: Et,
1566
+ display: At,
1567
+ flex: Ot,
1568
+ hiddenFrom: It,
1569
+ visibleFrom: Bt,
1570
+ lightHidden: Vt,
1571
+ darkHidden: jt,
1572
+ sx: Ft,
1573
+ ...Ht
1574
+ } = r;
1575
+ return { styleProps: Sr({
1576
+ m: t,
1580
1577
  mx: e,
1581
1578
  my: n,
1582
1579
  mt: a,
@@ -1588,8 +1585,8 @@ function qn(t) {
1588
1585
  p: u,
1589
1586
  px: f,
1590
1587
  py: m,
1591
- pt: y,
1592
- pb: g,
1588
+ pt: g,
1589
+ pb: y,
1593
1590
  pl: $,
1594
1591
  pr: h,
1595
1592
  pe: C,
@@ -1601,36 +1598,36 @@ function qn(t) {
1601
1598
  ff: k,
1602
1599
  fz: S,
1603
1600
  fw: E,
1604
- lts: ot,
1605
- ta: at,
1606
- lh: pr,
1607
- fs: yr,
1608
- tt: gr,
1609
- td: br,
1610
- w: hr,
1611
- miw: $r,
1612
- maw: vr,
1613
- h: Sr,
1614
- mih: wr,
1615
- mah: Cr,
1616
- bgsz: xr,
1617
- bgp: kr,
1618
- bgr: Nr,
1619
- bga: Tr,
1620
- pos: Mr,
1621
- top: Rr,
1622
- left: _r,
1623
- bottom: Pr,
1624
- right: Lr,
1625
- inset: Er,
1626
- display: Ar,
1627
- flex: Or,
1628
- hiddenFrom: Ir,
1629
- visibleFrom: jr,
1630
- lightHidden: Br,
1631
- darkHidden: Vr,
1632
- sx: Fr
1633
- }), rest: Hr };
1601
+ lts: or,
1602
+ ta: ar,
1603
+ lh: pt,
1604
+ fs: gt,
1605
+ tt: yt,
1606
+ td: bt,
1607
+ w: ht,
1608
+ miw: $t,
1609
+ maw: vt,
1610
+ h: St,
1611
+ mih: wt,
1612
+ mah: Ct,
1613
+ bgsz: xt,
1614
+ bgp: kt,
1615
+ bgr: Nt,
1616
+ bga: Tt,
1617
+ pos: Mt,
1618
+ top: Rt,
1619
+ left: _t,
1620
+ bottom: Pt,
1621
+ right: Lt,
1622
+ inset: Et,
1623
+ display: At,
1624
+ flex: Ot,
1625
+ hiddenFrom: It,
1626
+ visibleFrom: Bt,
1627
+ lightHidden: Vt,
1628
+ darkHidden: jt,
1629
+ sx: Ft
1630
+ }), rest: Ht };
1634
1631
  }
1635
1632
  const Qn = {
1636
1633
  m: { type: "spacing", property: "margin" },
@@ -1683,64 +1680,64 @@ const Qn = {
1683
1680
  display: { type: "identity", property: "display" },
1684
1681
  flex: { type: "identity", property: "flex" }
1685
1682
  };
1686
- function Tt(t, r) {
1687
- const e = q({ color: t, theme: r });
1683
+ function Tr(r, t) {
1684
+ const e = q({ color: r, theme: t });
1688
1685
  return e.color === "dimmed" ? "var(--mantine-color-dimmed)" : e.color === "bright" ? "var(--mantine-color-bright)" : e.variable ? `var(${e.variable})` : e.color;
1689
1686
  }
1690
- function Kn(t, r) {
1691
- const e = q({ color: t, theme: r });
1692
- return e.isThemeColor && e.shade === void 0 ? `var(--mantine-color-${e.color}-text)` : Tt(t, r);
1687
+ function Kn(r, t) {
1688
+ const e = q({ color: r, theme: t });
1689
+ return e.isThemeColor && e.shade === void 0 ? `var(--mantine-color-${e.color}-text)` : Tr(r, t);
1693
1690
  }
1694
- function Zn(t, r) {
1695
- if (typeof t == "number")
1696
- return c(t);
1697
- if (typeof t == "string") {
1698
- const [e, n, ...a] = t.split(" ").filter((i) => i.trim() !== "");
1691
+ function Zn(r, t) {
1692
+ if (typeof r == "number")
1693
+ return c(r);
1694
+ if (typeof r == "string") {
1695
+ const [e, n, ...a] = r.split(" ").filter((i) => i.trim() !== "");
1699
1696
  let o = `${c(e)}`;
1700
- return n && (o += ` ${n}`), a.length > 0 && (o += ` ${Tt(a.join(" "), r)}`), o.trim();
1697
+ return n && (o += ` ${n}`), a.length > 0 && (o += ` ${Tr(a.join(" "), t)}`), o.trim();
1701
1698
  }
1702
- return t;
1699
+ return r;
1703
1700
  }
1704
- const Ht = {
1701
+ const Hr = {
1705
1702
  text: "var(--mantine-font-family)",
1706
1703
  mono: "var(--mantine-font-family-monospace)",
1707
1704
  monospace: "var(--mantine-font-family-monospace)",
1708
1705
  heading: "var(--mantine-font-family-headings)",
1709
1706
  headings: "var(--mantine-font-family-headings)"
1710
1707
  };
1711
- function Jn(t) {
1712
- return typeof t == "string" && t in Ht ? Ht[t] : t;
1708
+ function Jn(r) {
1709
+ return typeof r == "string" && r in Hr ? Hr[r] : r;
1713
1710
  }
1714
- const te = ["h1", "h2", "h3", "h4", "h5", "h6"];
1715
- function re(t, r) {
1716
- return typeof t == "string" && t in r.fontSizes ? `var(--mantine-font-size-${t})` : typeof t == "string" && te.includes(t) ? `var(--mantine-${t}-font-size)` : typeof t == "number" || typeof t == "string" ? c(t) : t;
1711
+ const re = ["h1", "h2", "h3", "h4", "h5", "h6"];
1712
+ function te(r, t) {
1713
+ return typeof r == "string" && r in t.fontSizes ? `var(--mantine-font-size-${r})` : typeof r == "string" && re.includes(r) ? `var(--mantine-${r}-font-size)` : typeof r == "number" || typeof r == "string" ? c(r) : r;
1717
1714
  }
1718
- function ne(t) {
1719
- return t;
1715
+ function ne(r) {
1716
+ return r;
1720
1717
  }
1721
1718
  const ee = ["h1", "h2", "h3", "h4", "h5", "h6"];
1722
- function oe(t, r) {
1723
- return typeof t == "string" && t in r.lineHeights ? `var(--mantine-line-height-${t})` : typeof t == "string" && ee.includes(t) ? `var(--mantine-${t}-line-height)` : t;
1724
- }
1725
- function ae(t) {
1726
- return typeof t == "number" ? c(t) : t;
1727
- }
1728
- function ie(t, r) {
1729
- if (typeof t == "number")
1730
- return c(t);
1731
- if (typeof t == "string") {
1732
- const e = t.replace("-", "");
1733
- if (!(e in r.spacing))
1734
- return c(t);
1719
+ function oe(r, t) {
1720
+ return typeof r == "string" && r in t.lineHeights ? `var(--mantine-line-height-${r})` : typeof r == "string" && ee.includes(r) ? `var(--mantine-${r}-line-height)` : r;
1721
+ }
1722
+ function ae(r) {
1723
+ return typeof r == "number" ? c(r) : r;
1724
+ }
1725
+ function ie(r, t) {
1726
+ if (typeof r == "number")
1727
+ return c(r);
1728
+ if (typeof r == "string") {
1729
+ const e = r.replace("-", "");
1730
+ if (!(e in t.spacing))
1731
+ return c(r);
1735
1732
  const n = `--mantine-spacing-${e}`;
1736
- return t.startsWith("-") ? `calc(var(${n}) * -1)` : `var(${n})`;
1733
+ return r.startsWith("-") ? `calc(var(${n}) * -1)` : `var(${n})`;
1737
1734
  }
1738
- return t;
1735
+ return r;
1739
1736
  }
1740
- const mt = {
1741
- color: Tt,
1737
+ const mr = {
1738
+ color: Tr,
1742
1739
  textColor: Kn,
1743
- fontSize: re,
1740
+ fontSize: te,
1744
1741
  spacing: ie,
1745
1742
  identity: ne,
1746
1743
  size: ae,
@@ -1748,55 +1745,55 @@ const mt = {
1748
1745
  fontFamily: Jn,
1749
1746
  border: Zn
1750
1747
  };
1751
- function Wt(t) {
1752
- return t.replace("(min-width: ", "").replace("em)", "");
1748
+ function Wr(r) {
1749
+ return r.replace("(min-width: ", "").replace("em)", "");
1753
1750
  }
1754
1751
  function se({
1755
- media: t,
1756
- ...r
1752
+ media: r,
1753
+ ...t
1757
1754
  }) {
1758
- const n = Object.keys(t).sort((a, o) => Number(Wt(a)) - Number(Wt(o))).map((a) => ({ query: a, styles: t[a] }));
1759
- return { ...r, media: n };
1755
+ const n = Object.keys(r).sort((a, o) => Number(Wr(a)) - Number(Wr(o))).map((a) => ({ query: a, styles: r[a] }));
1756
+ return { ...t, media: n };
1760
1757
  }
1761
- function ce(t) {
1762
- if (typeof t != "object" || t === null)
1758
+ function ce(r) {
1759
+ if (typeof r != "object" || r === null)
1763
1760
  return !1;
1764
- const r = Object.keys(t);
1765
- return !(r.length === 1 && r[0] === "base");
1761
+ const t = Object.keys(r);
1762
+ return !(t.length === 1 && t[0] === "base");
1766
1763
  }
1767
- function le(t) {
1768
- return typeof t == "object" && t !== null ? "base" in t ? t.base : void 0 : t;
1764
+ function le(r) {
1765
+ return typeof r == "object" && r !== null ? "base" in r ? r.base : void 0 : r;
1769
1766
  }
1770
- function de(t) {
1771
- return typeof t == "object" && t !== null ? M(t).filter((r) => r !== "base") : [];
1767
+ function de(r) {
1768
+ return typeof r == "object" && r !== null ? M(r).filter((t) => t !== "base") : [];
1772
1769
  }
1773
- function fe(t, r) {
1774
- return typeof t == "object" && t !== null && r in t ? t[r] : t;
1770
+ function fe(r, t) {
1771
+ return typeof r == "object" && r !== null && t in r ? r[t] : r;
1775
1772
  }
1776
1773
  function ue({
1777
- styleProps: t,
1778
- data: r,
1774
+ styleProps: r,
1775
+ data: t,
1779
1776
  theme: e
1780
1777
  }) {
1781
1778
  return se(
1782
- M(t).reduce(
1779
+ M(r).reduce(
1783
1780
  (n, a) => {
1784
1781
  if (a === "hiddenFrom" || a === "visibleFrom" || a === "sx")
1785
1782
  return n;
1786
- const o = r[a], i = Array.isArray(o.property) ? o.property : [o.property], s = le(t[a]);
1787
- if (!ce(t[a]))
1783
+ const o = t[a], i = Array.isArray(o.property) ? o.property : [o.property], s = le(r[a]);
1784
+ if (!ce(r[a]))
1788
1785
  return i.forEach((d) => {
1789
- n.inlineStyles[d] = mt[o.type](s, e);
1786
+ n.inlineStyles[d] = mr[o.type](s, e);
1790
1787
  }), n;
1791
1788
  n.hasResponsiveStyles = !0;
1792
- const l = de(t[a]);
1789
+ const l = de(r[a]);
1793
1790
  return i.forEach((d) => {
1794
- s && (n.styles[d] = mt[o.type](s, e)), l.forEach((u) => {
1791
+ s && (n.styles[d] = mr[o.type](s, e)), l.forEach((u) => {
1795
1792
  const f = `(min-width: ${e.breakpoints[u]})`;
1796
1793
  n.media[f] = {
1797
1794
  ...n.media[f],
1798
- [d]: mt[o.type](
1799
- fe(t[a], u),
1795
+ [d]: mr[o.type](
1796
+ fe(r[a], u),
1800
1797
  e
1801
1798
  )
1802
1799
  };
@@ -1813,42 +1810,42 @@ function ue({
1813
1810
  );
1814
1811
  }
1815
1812
  function me() {
1816
- return `__m__-${Yr().replace(/:/g, "")}`;
1813
+ return `__m__-${Yt().replace(/:/g, "")}`;
1817
1814
  }
1818
- function er(t) {
1819
- return t.startsWith("data-") ? t : `data-${t}`;
1815
+ function et(r) {
1816
+ return r.startsWith("data-") ? r : `data-${r}`;
1820
1817
  }
1821
- function pe(t) {
1822
- return Object.keys(t).reduce((r, e) => {
1823
- const n = t[e];
1824
- return n === void 0 || n === "" || n === !1 || n === null || (r[er(e)] = t[e]), r;
1818
+ function pe(r) {
1819
+ return Object.keys(r).reduce((t, e) => {
1820
+ const n = r[e];
1821
+ return n === void 0 || n === "" || n === !1 || n === null || (t[et(e)] = r[e]), t;
1825
1822
  }, {});
1826
1823
  }
1827
- function or(t) {
1828
- return t ? typeof t == "string" ? { [er(t)]: !0 } : Array.isArray(t) ? [...t].reduce(
1829
- (r, e) => ({ ...r, ...or(e) }),
1824
+ function ot(r) {
1825
+ return r ? typeof r == "string" ? { [et(r)]: !0 } : Array.isArray(r) ? [...r].reduce(
1826
+ (t, e) => ({ ...t, ...ot(e) }),
1830
1827
  {}
1831
- ) : pe(t) : null;
1828
+ ) : pe(r) : null;
1832
1829
  }
1833
- function ht(t, r) {
1834
- return Array.isArray(t) ? [...t].reduce(
1835
- (e, n) => ({ ...e, ...ht(n, r) }),
1830
+ function hr(r, t) {
1831
+ return Array.isArray(r) ? [...r].reduce(
1832
+ (e, n) => ({ ...e, ...hr(n, t) }),
1836
1833
  {}
1837
- ) : typeof t == "function" ? t(r) : t ?? {};
1834
+ ) : typeof r == "function" ? r(t) : r ?? {};
1838
1835
  }
1839
- function ye({
1840
- theme: t,
1841
- style: r,
1836
+ function ge({
1837
+ theme: r,
1838
+ style: t,
1842
1839
  vars: e,
1843
1840
  styleProps: n
1844
1841
  }) {
1845
- const a = ht(r, t), o = ht(e, t);
1842
+ const a = hr(t, r), o = hr(e, r);
1846
1843
  return { ...a, ...o, ...n };
1847
1844
  }
1848
- const ar = _(
1845
+ const at = _(
1849
1846
  ({
1850
- component: t,
1851
- style: r,
1847
+ component: r,
1848
+ style: t,
1852
1849
  __vars: e,
1853
1850
  className: n,
1854
1851
  variant: a,
@@ -1860,22 +1857,22 @@ const ar = _(
1860
1857
  darkHidden: u,
1861
1858
  renderRoot: f,
1862
1859
  __size: m,
1863
- ...y
1864
- }, g) => {
1860
+ ...g
1861
+ }, y) => {
1865
1862
  var S;
1866
- const $ = B(), h = t || "div", { styleProps: C, rest: x } = qn(y), v = sn(), w = (S = v == null ? void 0 : v()) == null ? void 0 : S(C.sx), L = me(), b = ue({
1863
+ const $ = V(), h = r || "div", { styleProps: C, rest: x } = qn(g), v = sn(), w = (S = v == null ? void 0 : v()) == null ? void 0 : S(C.sx), L = me(), b = ue({
1867
1864
  styleProps: C,
1868
1865
  theme: $,
1869
1866
  data: Qn
1870
1867
  }), k = {
1871
- ref: g,
1872
- style: ye({
1868
+ ref: y,
1869
+ style: ge({
1873
1870
  theme: $,
1874
- style: r,
1871
+ style: t,
1875
1872
  vars: e,
1876
1873
  styleProps: b.inlineStyles
1877
1874
  }),
1878
- className: j(n, w, {
1875
+ className: B(n, w, {
1879
1876
  [L]: b.hasResponsiveStyles,
1880
1877
  "mantine-light-hidden": d,
1881
1878
  "mantine-dark-hidden": u,
@@ -1883,12 +1880,12 @@ const ar = _(
1883
1880
  [`mantine-visible-from-${l}`]: l
1884
1881
  }),
1885
1882
  "data-variant": a,
1886
- "data-size": Ut(i) ? void 0 : i || void 0,
1883
+ "data-size": Ur(i) ? void 0 : i || void 0,
1887
1884
  size: m,
1888
- ...or(o),
1885
+ ...ot(o),
1889
1886
  ...x
1890
1887
  };
1891
- return /* @__PURE__ */ z(pt, { children: [
1888
+ return /* @__PURE__ */ z(pr, { children: [
1892
1889
  b.hasResponsiveStyles && /* @__PURE__ */ p(
1893
1890
  Un,
1894
1891
  {
@@ -1901,31 +1898,31 @@ const ar = _(
1901
1898
  ] });
1902
1899
  }
1903
1900
  );
1904
- ar.displayName = "@mantine/core/Box";
1905
- const N = ar;
1906
- function ir(t) {
1907
- return t;
1908
- }
1909
- function Mt(t) {
1910
- const r = _(t);
1911
- return r.extend = ir, r.withProps = (e) => {
1912
- const n = _((a, o) => /* @__PURE__ */ p(r, { ...e, ...a, ref: o }));
1913
- return n.extend = r.extend, n.displayName = `WithProps(${r.displayName})`, n;
1914
- }, r;
1915
- }
1916
- function sr(t) {
1917
- const r = _(t);
1918
- return r.withProps = (e) => {
1919
- const n = _((a, o) => /* @__PURE__ */ p(r, { ...e, ...a, ref: o }));
1920
- return n.extend = r.extend, n.displayName = `WithProps(${r.displayName})`, n;
1921
- }, r.extend = ir, r;
1922
- }
1923
- var cr = { root: "m_87cf2631" };
1924
- const ge = {
1901
+ at.displayName = "@mantine/core/Box";
1902
+ const N = at;
1903
+ function it(r) {
1904
+ return r;
1905
+ }
1906
+ function Mr(r) {
1907
+ const t = _(r);
1908
+ return t.extend = it, t.withProps = (e) => {
1909
+ const n = _((a, o) => /* @__PURE__ */ p(t, { ...e, ...a, ref: o }));
1910
+ return n.extend = t.extend, n.displayName = `WithProps(${t.displayName})`, n;
1911
+ }, t;
1912
+ }
1913
+ function st(r) {
1914
+ const t = _(r);
1915
+ return t.withProps = (e) => {
1916
+ const n = _((a, o) => /* @__PURE__ */ p(t, { ...e, ...a, ref: o }));
1917
+ return n.extend = t.extend, n.displayName = `WithProps(${t.displayName})`, n;
1918
+ }, t.extend = it, t;
1919
+ }
1920
+ var ct = { root: "m_87cf2631" };
1921
+ const ye = {
1925
1922
  __staticSelector: "UnstyledButton"
1926
- }, Rt = sr(
1927
- (t, r) => {
1928
- const e = I("UnstyledButton", ge, t), {
1923
+ }, Rr = st(
1924
+ (r, t) => {
1925
+ const e = I("UnstyledButton", ye, r), {
1929
1926
  className: n,
1930
1927
  component: a = "button",
1931
1928
  __staticSelector: o,
@@ -1937,7 +1934,7 @@ const ge = {
1937
1934
  } = e, f = Q({
1938
1935
  name: o,
1939
1936
  props: e,
1940
- classes: cr,
1937
+ classes: ct,
1941
1938
  className: n,
1942
1939
  style: d,
1943
1940
  classNames: s,
@@ -1949,20 +1946,20 @@ const ge = {
1949
1946
  {
1950
1947
  ...f("root", { focusable: !0 }),
1951
1948
  component: a,
1952
- ref: r,
1949
+ ref: t,
1953
1950
  type: a === "button" ? "button" : void 0,
1954
1951
  ...u
1955
1952
  }
1956
1953
  );
1957
1954
  }
1958
1955
  );
1959
- Rt.classes = cr;
1960
- Rt.displayName = "@mantine/core/UnstyledButton";
1961
- const X = (t) => ({
1956
+ Rr.classes = ct;
1957
+ Rr.displayName = "@mantine/core/UnstyledButton";
1958
+ const X = (r) => ({
1962
1959
  in: { opacity: 1, transform: "scale(1)" },
1963
- out: { opacity: 0, transform: `scale(.9) translateY(${t === "bottom" ? 10 : -10}px)` },
1960
+ out: { opacity: 0, transform: `scale(.9) translateY(${r === "bottom" ? 10 : -10}px)` },
1964
1961
  transitionProperty: "transform, opacity"
1965
- }), tt = {
1962
+ }), rr = {
1966
1963
  fade: {
1967
1964
  in: { opacity: 1 },
1968
1965
  out: { opacity: 0 },
@@ -2074,7 +2071,7 @@ const X = (t) => ({
2074
2071
  ...X("top"),
2075
2072
  common: { transformOrigin: "top right" }
2076
2073
  }
2077
- }, zt = {
2074
+ }, zr = {
2078
2075
  entering: "in",
2079
2076
  entered: "in",
2080
2077
  exiting: "out",
@@ -2083,8 +2080,8 @@ const X = (t) => ({
2083
2080
  "pre-entering": "out"
2084
2081
  };
2085
2082
  function be({
2086
- transition: t,
2087
- state: r,
2083
+ transition: r,
2084
+ state: t,
2088
2085
  duration: e,
2089
2086
  timingFunction: n
2090
2087
  }) {
@@ -2094,21 +2091,21 @@ function be({
2094
2091
  transitionDuration: `${e}ms`,
2095
2092
  transitionTimingFunction: n
2096
2093
  };
2097
- return typeof t == "string" ? t in tt ? {
2098
- transitionProperty: tt[t].transitionProperty,
2094
+ return typeof r == "string" ? r in rr ? {
2095
+ transitionProperty: rr[r].transitionProperty,
2099
2096
  ...a,
2100
- ...tt[t].common,
2101
- ...tt[t][zt[r]]
2097
+ ...rr[r].common,
2098
+ ...rr[r][zr[t]]
2102
2099
  } : {} : {
2103
- transitionProperty: t.transitionProperty,
2100
+ transitionProperty: r.transitionProperty,
2104
2101
  ...a,
2105
- ...t.common,
2106
- ...t[zt[r]]
2102
+ ...r.common,
2103
+ ...r[zr[t]]
2107
2104
  };
2108
2105
  }
2109
2106
  function he({
2110
- duration: t,
2111
- exitDuration: r,
2107
+ duration: r,
2108
+ exitDuration: t,
2112
2109
  timingFunction: e,
2113
2110
  mounted: n,
2114
2111
  onEnter: a,
@@ -2118,12 +2115,12 @@ function he({
2118
2115
  enterDelay: l,
2119
2116
  exitDelay: d
2120
2117
  }) {
2121
- const u = B(), f = Jr(), m = u.respectReducedMotion ? f : !1, [y, g] = rt(m ? 0 : t), [$, h] = rt(n ? "entered" : "exited"), C = W(-1), x = W(-1), v = W(-1), w = (b) => {
2118
+ const u = V(), f = Jt(), m = u.respectReducedMotion ? f : !1, [g, y] = tr(m ? 0 : r), [$, h] = tr(n ? "entered" : "exited"), C = W(-1), x = W(-1), v = W(-1), w = (b) => {
2122
2119
  const k = b ? a : o, S = b ? i : s;
2123
2120
  window.clearTimeout(C.current);
2124
- const E = m ? 0 : b ? t : r;
2125
- g(E), E === 0 ? (typeof k == "function" && k(), typeof S == "function" && S(), h(b ? "entered" : "exited")) : v.current = requestAnimationFrame(() => {
2126
- Gr.flushSync(() => {
2121
+ const E = m ? 0 : b ? r : t;
2122
+ y(E), E === 0 ? (typeof k == "function" && k(), typeof S == "function" && S(), h(b ? "entered" : "exited")) : v.current = requestAnimationFrame(() => {
2123
+ Gt.flushSync(() => {
2127
2124
  h(b ? "pre-entering" : "pre-exiting");
2128
2125
  }), v.current = requestAnimationFrame(() => {
2129
2126
  typeof k == "function" && k(), h(b ? "entering" : "exiting"), C.current = window.setTimeout(() => {
@@ -2143,7 +2140,7 @@ function he({
2143
2140
  b ? l : d
2144
2141
  );
2145
2142
  };
2146
- return Zr(() => {
2143
+ return Zt(() => {
2147
2144
  L(n);
2148
2145
  }, [n]), A(
2149
2146
  () => () => {
@@ -2151,14 +2148,14 @@ function he({
2151
2148
  },
2152
2149
  []
2153
2150
  ), {
2154
- transitionDuration: y,
2151
+ transitionDuration: g,
2155
2152
  transitionStatus: $,
2156
2153
  transitionTimingFunction: e || "ease"
2157
2154
  };
2158
2155
  }
2159
- function lr({
2160
- keepMounted: t,
2161
- transition: r = "fade",
2156
+ function lt({
2157
+ keepMounted: r,
2158
+ transition: t = "fade",
2162
2159
  duration: e = 250,
2163
2160
  exitDuration: n = e,
2164
2161
  mounted: a,
@@ -2171,7 +2168,7 @@ function lr({
2171
2168
  enterDelay: f,
2172
2169
  exitDelay: m
2173
2170
  }) {
2174
- const y = ln(), { transitionDuration: g, transitionStatus: $, transitionTimingFunction: h } = he({
2171
+ const g = ln(), { transitionDuration: y, transitionStatus: $, transitionTimingFunction: h } = he({
2175
2172
  mounted: a,
2176
2173
  exitDuration: n,
2177
2174
  duration: e,
@@ -2183,45 +2180,45 @@ function lr({
2183
2180
  enterDelay: f,
2184
2181
  exitDelay: m
2185
2182
  });
2186
- return g === 0 || y === "test" ? a ? /* @__PURE__ */ p(pt, { children: o({}) }) : t ? o({ display: "none" }) : null : $ === "exited" ? t ? o({ display: "none" }) : null : /* @__PURE__ */ p(pt, { children: o(
2183
+ return y === 0 || g === "test" ? a ? /* @__PURE__ */ p(pr, { children: o({}) }) : r ? o({ display: "none" }) : null : $ === "exited" ? r ? o({ display: "none" }) : null : /* @__PURE__ */ p(pr, { children: o(
2187
2184
  be({
2188
- transition: r,
2189
- duration: g,
2185
+ transition: t,
2186
+ duration: y,
2190
2187
  state: $,
2191
2188
  timingFunction: h
2192
2189
  })
2193
2190
  ) });
2194
2191
  }
2195
- lr.displayName = "@mantine/core/Transition";
2192
+ lt.displayName = "@mantine/core/Transition";
2196
2193
  var T = { root: "m_5ae2e3c", barsLoader: "m_7a2bd4cd", bar: "m_870bb79", "bars-loader-animation": "m_5d2b3b9d", dotsLoader: "m_4e3f22d7", dot: "m_870c4af", "loader-dots-animation": "m_aac34a1", ovalLoader: "m_b34414df", "oval-loader-animation": "m_f8e89c4b" };
2197
- const dr = _(({ className: t, ...r }, e) => /* @__PURE__ */ z(N, { component: "span", className: j(T.barsLoader, t), ...r, ref: e, children: [
2194
+ const dt = _(({ className: r, ...t }, e) => /* @__PURE__ */ z(N, { component: "span", className: B(T.barsLoader, r), ...t, ref: e, children: [
2198
2195
  /* @__PURE__ */ p("span", { className: T.bar }),
2199
2196
  /* @__PURE__ */ p("span", { className: T.bar }),
2200
2197
  /* @__PURE__ */ p("span", { className: T.bar })
2201
2198
  ] }));
2202
- dr.displayName = "@mantine/core/Bars";
2203
- const fr = _(({ className: t, ...r }, e) => /* @__PURE__ */ z(N, { component: "span", className: j(T.dotsLoader, t), ...r, ref: e, children: [
2199
+ dt.displayName = "@mantine/core/Bars";
2200
+ const ft = _(({ className: r, ...t }, e) => /* @__PURE__ */ z(N, { component: "span", className: B(T.dotsLoader, r), ...t, ref: e, children: [
2204
2201
  /* @__PURE__ */ p("span", { className: T.dot }),
2205
2202
  /* @__PURE__ */ p("span", { className: T.dot }),
2206
2203
  /* @__PURE__ */ p("span", { className: T.dot })
2207
2204
  ] }));
2208
- fr.displayName = "@mantine/core/Dots";
2209
- const ur = _(({ className: t, ...r }, e) => /* @__PURE__ */ p(N, { component: "span", className: j(T.ovalLoader, t), ...r, ref: e }));
2210
- ur.displayName = "@mantine/core/Oval";
2211
- const mr = {
2212
- bars: dr,
2213
- oval: ur,
2214
- dots: fr
2205
+ ft.displayName = "@mantine/core/Dots";
2206
+ const ut = _(({ className: r, ...t }, e) => /* @__PURE__ */ p(N, { component: "span", className: B(T.ovalLoader, r), ...t, ref: e }));
2207
+ ut.displayName = "@mantine/core/Oval";
2208
+ const mt = {
2209
+ bars: dt,
2210
+ oval: ut,
2211
+ dots: ft
2215
2212
  }, $e = {
2216
- loaders: mr,
2213
+ loaders: mt,
2217
2214
  type: "oval"
2218
- }, ve = (t, { size: r, color: e }) => ({
2215
+ }, ve = (r, { size: t, color: e }) => ({
2219
2216
  root: {
2220
- "--loader-size": O(r, "loader-size"),
2221
- "--loader-color": e ? gt(e, t) : void 0
2217
+ "--loader-size": O(t, "loader-size"),
2218
+ "--loader-color": e ? yr(e, r) : void 0
2222
2219
  }
2223
- }), et = Mt((t, r) => {
2224
- const e = I("Loader", $e, t), {
2220
+ }), er = Mr((r, t) => {
2221
+ const e = I("Loader", $e, r), {
2225
2222
  size: n,
2226
2223
  color: a,
2227
2224
  type: o,
@@ -2232,8 +2229,8 @@ const mr = {
2232
2229
  styles: u,
2233
2230
  unstyled: f,
2234
2231
  loaders: m,
2235
- variant: y,
2236
- children: g,
2232
+ variant: g,
2233
+ children: y,
2237
2234
  ...$
2238
2235
  } = e, h = Q({
2239
2236
  name: "Loader",
@@ -2247,28 +2244,28 @@ const mr = {
2247
2244
  vars: i,
2248
2245
  varsResolver: ve
2249
2246
  });
2250
- return g ? /* @__PURE__ */ p(N, { ...h("root"), ref: r, ...$, children: g }) : /* @__PURE__ */ p(
2247
+ return y ? /* @__PURE__ */ p(N, { ...h("root"), ref: t, ...$, children: y }) : /* @__PURE__ */ p(
2251
2248
  N,
2252
2249
  {
2253
2250
  ...h("root"),
2254
- ref: r,
2251
+ ref: t,
2255
2252
  component: m[o],
2256
- variant: y,
2253
+ variant: g,
2257
2254
  size: n,
2258
2255
  ...$
2259
2256
  }
2260
2257
  );
2261
2258
  });
2262
- et.defaultLoaders = mr;
2263
- et.classes = T;
2264
- et.displayName = "@mantine/core/Loader";
2259
+ er.defaultLoaders = mt;
2260
+ er.classes = T;
2261
+ er.displayName = "@mantine/core/Loader";
2265
2262
  var Y = { root: "m_77c9d27d", inner: "m_80f1301b", label: "m_811560b9", section: "m_a74036a", loader: "m_a25b86ee", group: "m_80d6d844", groupSection: "m_70be2a01" };
2266
- const Yt = {
2263
+ const Yr = {
2267
2264
  orientation: "horizontal"
2268
- }, Se = (t, { borderWidth: r }) => ({
2269
- group: { "--button-border-width": c(r) }
2270
- }), _t = Mt((t, r) => {
2271
- const e = I("ButtonGroup", Yt, t), {
2265
+ }, Se = (r, { borderWidth: t }) => ({
2266
+ group: { "--button-border-width": c(t) }
2267
+ }), _r = Mr((r, t) => {
2268
+ const e = I("ButtonGroup", Yr, r), {
2272
2269
  className: n,
2273
2270
  style: a,
2274
2271
  classNames: o,
@@ -2279,8 +2276,8 @@ const Yt = {
2279
2276
  borderWidth: u,
2280
2277
  variant: f,
2281
2278
  mod: m,
2282
- ...y
2283
- } = I("ButtonGroup", Yt, t), g = Q({
2279
+ ...g
2280
+ } = I("ButtonGroup", Yr, r), y = Q({
2284
2281
  name: "ButtonGroup",
2285
2282
  props: e,
2286
2283
  classes: Y,
@@ -2296,21 +2293,21 @@ const Yt = {
2296
2293
  return /* @__PURE__ */ p(
2297
2294
  N,
2298
2295
  {
2299
- ...g("group"),
2300
- ref: r,
2296
+ ...y("group"),
2297
+ ref: t,
2301
2298
  variant: f,
2302
2299
  mod: [{ "data-orientation": l }, m],
2303
2300
  role: "group",
2304
- ...y
2301
+ ...g
2305
2302
  }
2306
2303
  );
2307
2304
  });
2308
- _t.classes = Y;
2309
- _t.displayName = "@mantine/core/ButtonGroup";
2310
- const Gt = {}, we = (t, { radius: r, color: e, gradient: n, variant: a, autoContrast: o, size: i }) => {
2311
- const s = t.variantColorResolver({
2312
- color: e || t.primaryColor,
2313
- theme: t,
2305
+ _r.classes = Y;
2306
+ _r.displayName = "@mantine/core/ButtonGroup";
2307
+ const Gr = {}, we = (r, { radius: t, color: e, gradient: n, variant: a, autoContrast: o, size: i }) => {
2308
+ const s = r.variantColorResolver({
2309
+ color: e || r.primaryColor,
2310
+ theme: r,
2314
2311
  gradient: n,
2315
2312
  variant: a || "filled",
2316
2313
  autoContrast: o
@@ -2319,15 +2316,15 @@ const Gt = {}, we = (t, { radius: r, color: e, gradient: n, variant: a, autoCont
2319
2316
  groupSection: {
2320
2317
  "--section-height": O(i, "section-height"),
2321
2318
  "--section-padding-x": O(i, "section-padding-x"),
2322
- "--section-fz": i != null && i.includes("compact") ? nt(i.replace("compact-", "")) : nt(i),
2323
- "--section-radius": r === void 0 ? void 0 : qt(r),
2319
+ "--section-fz": i != null && i.includes("compact") ? nr(i.replace("compact-", "")) : nr(i),
2320
+ "--section-radius": t === void 0 ? void 0 : qr(t),
2324
2321
  "--section-bg": e || a ? s.background : void 0,
2325
2322
  "--section-color": s.color,
2326
2323
  "--section-bd": e || a ? s.border : void 0
2327
2324
  }
2328
2325
  };
2329
- }, Pt = Mt((t, r) => {
2330
- const e = I("ButtonGroupSection", Gt, t), {
2326
+ }, Pr = Mr((r, t) => {
2327
+ const e = I("ButtonGroupSection", Gr, r), {
2331
2328
  className: n,
2332
2329
  style: a,
2333
2330
  classNames: o,
@@ -2338,8 +2335,8 @@ const Gt = {}, we = (t, { radius: r, color: e, gradient: n, variant: a, autoCont
2338
2335
  gradient: u,
2339
2336
  radius: f,
2340
2337
  autoContrast: m,
2341
- ...y
2342
- } = I("ButtonGroupSection", Gt, t), g = Q({
2338
+ ...g
2339
+ } = I("ButtonGroupSection", Gr, r), y = Q({
2343
2340
  name: "ButtonGroupSection",
2344
2341
  props: e,
2345
2342
  classes: Y,
@@ -2352,19 +2349,19 @@ const Gt = {}, we = (t, { radius: r, color: e, gradient: n, variant: a, autoCont
2352
2349
  varsResolver: we,
2353
2350
  rootSelector: "groupSection"
2354
2351
  });
2355
- return /* @__PURE__ */ p(N, { ...g("groupSection"), ref: r, variant: d, ...y });
2352
+ return /* @__PURE__ */ p(N, { ...y("groupSection"), ref: t, variant: d, ...g });
2356
2353
  });
2357
- Pt.classes = Y;
2358
- Pt.displayName = "@mantine/core/ButtonGroupSection";
2354
+ Pr.classes = Y;
2355
+ Pr.displayName = "@mantine/core/ButtonGroupSection";
2359
2356
  const Ce = {
2360
2357
  in: { opacity: 1, transform: `translate(-50%, calc(-50% + ${c(1)}))` },
2361
2358
  out: { opacity: 0, transform: "translate(-50%, -200%)" },
2362
2359
  common: { transformOrigin: "center" },
2363
2360
  transitionProperty: "transform, opacity"
2364
- }, xe = {}, ke = (t, { radius: r, color: e, gradient: n, variant: a, size: o, justify: i, autoContrast: s }) => {
2365
- const l = t.variantColorResolver({
2366
- color: e || t.primaryColor,
2367
- theme: t,
2361
+ }, xe = {}, ke = (r, { radius: t, color: e, gradient: n, variant: a, size: o, justify: i, autoContrast: s }) => {
2362
+ const l = r.variantColorResolver({
2363
+ color: e || r.primaryColor,
2364
+ theme: r,
2368
2365
  gradient: n,
2369
2366
  variant: a || "filled",
2370
2367
  autoContrast: s
@@ -2374,8 +2371,8 @@ const Ce = {
2374
2371
  "--button-justify": i,
2375
2372
  "--button-height": O(o, "button-height"),
2376
2373
  "--button-padding-x": O(o, "button-padding-x"),
2377
- "--button-fz": o != null && o.includes("compact") ? nt(o.replace("compact-", "")) : nt(o),
2378
- "--button-radius": r === void 0 ? void 0 : qt(r),
2374
+ "--button-fz": o != null && o.includes("compact") ? nr(o.replace("compact-", "")) : nr(o),
2375
+ "--button-radius": t === void 0 ? void 0 : qr(t),
2379
2376
  "--button-bg": e || a ? l.background : void 0,
2380
2377
  "--button-hover": e || a ? l.hover : void 0,
2381
2378
  "--button-color": l.color,
@@ -2383,8 +2380,8 @@ const Ce = {
2383
2380
  "--button-hover-color": e || a ? l.hoverColor : void 0
2384
2381
  }
2385
2382
  };
2386
- }, K = sr((t, r) => {
2387
- const e = I("Button", xe, t), {
2383
+ }, K = st((r, t) => {
2384
+ const e = I("Button", xe, r), {
2388
2385
  style: n,
2389
2386
  vars: a,
2390
2387
  className: o,
@@ -2395,8 +2392,8 @@ const Ce = {
2395
2392
  rightSection: u,
2396
2393
  fullWidth: f,
2397
2394
  variant: m,
2398
- radius: y,
2399
- loading: g,
2395
+ radius: g,
2396
+ loading: y,
2400
2397
  loaderProps: $,
2401
2398
  gradient: h,
2402
2399
  classNames: C,
@@ -2417,29 +2414,29 @@ const Ce = {
2417
2414
  unstyled: v,
2418
2415
  vars: a,
2419
2416
  varsResolver: ke
2420
- }), E = !!d, ot = !!u;
2417
+ }), E = !!d, or = !!u;
2421
2418
  return /* @__PURE__ */ z(
2422
- Rt,
2419
+ Rr,
2423
2420
  {
2424
- ref: r,
2425
- ...S("root", { active: !s && !g && !w }),
2421
+ ref: t,
2422
+ ...S("root", { active: !s && !y && !w }),
2426
2423
  unstyled: v,
2427
2424
  variant: m,
2428
- disabled: s || g,
2425
+ disabled: s || y,
2429
2426
  mod: [
2430
2427
  {
2431
2428
  disabled: s || w,
2432
- loading: g,
2429
+ loading: y,
2433
2430
  block: f,
2434
2431
  "with-left-section": E,
2435
- "with-right-section": ot
2432
+ "with-right-section": or
2436
2433
  },
2437
2434
  b
2438
2435
  ],
2439
2436
  ...k,
2440
2437
  children: [
2441
- /* @__PURE__ */ p(lr, { mounted: !!g, transition: Ce, duration: 150, children: (at) => /* @__PURE__ */ p(N, { component: "span", ...S("loader", { style: at }), "aria-hidden": !0, children: /* @__PURE__ */ p(
2442
- et,
2438
+ /* @__PURE__ */ p(lt, { mounted: !!y, transition: Ce, duration: 150, children: (ar) => /* @__PURE__ */ p(N, { component: "span", ...S("loader", { style: ar }), "aria-hidden": !0, children: /* @__PURE__ */ p(
2439
+ er,
2443
2440
  {
2444
2441
  color: "var(--button-color)",
2445
2442
  size: "calc(var(--button-height) / 1.8)",
@@ -2448,7 +2445,7 @@ const Ce = {
2448
2445
  ) }) }),
2449
2446
  /* @__PURE__ */ z("span", { ...S("inner"), children: [
2450
2447
  d && /* @__PURE__ */ p(N, { component: "span", ...S("section"), mod: { position: "left" }, children: d }),
2451
- /* @__PURE__ */ p(N, { component: "span", mod: { loading: g }, ...S("label"), children: l }),
2448
+ /* @__PURE__ */ p(N, { component: "span", mod: { loading: y }, ...S("label"), children: l }),
2452
2449
  u && /* @__PURE__ */ p(N, { component: "span", ...S("section"), mod: { position: "right" }, children: u })
2453
2450
  ] })
2454
2451
  ]
@@ -2457,16 +2454,15 @@ const Ce = {
2457
2454
  });
2458
2455
  K.classes = Y;
2459
2456
  K.displayName = "@mantine/core/Button";
2460
- K.Group = _t;
2461
- K.GroupSection = Pt;
2462
- function Ee({ children: t }) {
2463
- return /* @__PURE__ */ p(nr, { children: t });
2457
+ K.Group = _r;
2458
+ K.GroupSection = Pr;
2459
+ function Le({ children: r }) {
2460
+ return /* @__PURE__ */ p(nt, { children: r });
2464
2461
  }
2465
- const Ae = (t) => /* @__PURE__ */ p(K, { ...t });
2462
+ const Ee = (r) => /* @__PURE__ */ p(K, { ...r });
2466
2463
  export {
2467
- Pe as ColorSchemeScript,
2468
- Ee as MantineProvider,
2469
- Ae as TestButton,
2470
- _e as mantineDefaultStyles,
2471
- Le as mantineHtmlProps
2464
+ _e as ColorSchemeScript,
2465
+ Le as MantineProvider,
2466
+ Ee as TestButton,
2467
+ Pe as mantineHtmlProps
2472
2468
  };