@aindy/ui-kit 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/_core.d.ts +3 -0
- package/dist/api/_core.test.d.ts +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +837 -814
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as x, jsxs as B, Fragment as
|
|
1
|
+
import { jsx as x, jsxs as B, Fragment as Ir } from "react/jsx-runtime";
|
|
2
2
|
import * as f from "react";
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { Outlet as
|
|
5
|
-
import * as
|
|
6
|
-
function
|
|
3
|
+
import { createContext as En, useContext as An, useState as Z, useMemo as rt, useEffect as _e, useRef as Rt, useLayoutEffect as Lr, useCallback as ot } from "react";
|
|
4
|
+
import { Outlet as Rn, NavLink as Dr, useLocation as Mr, Navigate as Yt } from "react-router-dom";
|
|
5
|
+
import * as Cn from "react-dom";
|
|
6
|
+
function Va(e) {
|
|
7
7
|
return Array.isArray(e) ? e : e == null ? [] : [];
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Xt(e, t) {
|
|
10
10
|
return Array.isArray(e) ? e.map(t) : (console.warn("safeMap prevented crash. Value:", e), []);
|
|
11
11
|
}
|
|
12
|
-
const
|
|
12
|
+
const Kt = "".replace(/\/$/, ""), _t = "token", $t = "aindy_token", Sn = globalThis.__AINDY_APP_VERSION_OVERRIDE__ || "2.1.0", zr = /* @__PURE__ */ new Set([
|
|
13
13
|
"agents",
|
|
14
14
|
"allowed_auto_grant_tools",
|
|
15
15
|
"allowed_capabilities",
|
|
@@ -46,35 +46,54 @@ const Xt = "".replace(/\/$/, ""), _t = "token", $t = "aindy_token", Rn = globalT
|
|
|
46
46
|
"timeline",
|
|
47
47
|
"tools"
|
|
48
48
|
]);
|
|
49
|
-
class
|
|
49
|
+
class J extends Error {
|
|
50
50
|
constructor(t, n, r) {
|
|
51
51
|
super(n), this.name = "ApiError", this.status = t, this.body = r;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Ba(e, t) {
|
|
55
55
|
return function(...n) {
|
|
56
56
|
return t(...n).catch((r) => {
|
|
57
|
-
throw r instanceof
|
|
57
|
+
throw r instanceof J && (r.domain = e), r;
|
|
58
58
|
});
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
+
const Ur = "X-AINDY-Envelope", Tn = /* @__PURE__ */ Symbol.for("aindy.ui-kit.envelope.resolved");
|
|
62
|
+
let qt = !1;
|
|
63
|
+
function Jt(e, t) {
|
|
64
|
+
return e !== null && typeof e == "object" && Object.defineProperty(e, Tn, { value: t, enumerable: !1, configurable: !0 }), e;
|
|
65
|
+
}
|
|
66
|
+
function Fr(e) {
|
|
67
|
+
if (e && typeof e == "object") {
|
|
68
|
+
if ("error" in e && e.error)
|
|
69
|
+
throw new J(200, e.error, e);
|
|
70
|
+
return e.data !== void 0 ? e.data : null;
|
|
71
|
+
}
|
|
72
|
+
return e;
|
|
73
|
+
}
|
|
74
|
+
function On(e, t) {
|
|
75
|
+
const n = e.headers?.get?.(Ur);
|
|
76
|
+
return n ? (qt = !0, Jt(Fr(t), n)) : qt ? Jt(t, null) : t;
|
|
77
|
+
}
|
|
61
78
|
function Ce(e) {
|
|
79
|
+
if (e !== null && typeof e == "object" && Tn in e)
|
|
80
|
+
return e;
|
|
62
81
|
if (e && typeof e == "object" && "data" in e) {
|
|
63
82
|
if ("error" in e && e.error)
|
|
64
|
-
throw new
|
|
83
|
+
throw new J(200, e.error, e);
|
|
65
84
|
return e.data !== void 0 ? e.data : e;
|
|
66
85
|
}
|
|
67
86
|
return e;
|
|
68
87
|
}
|
|
69
88
|
function He(e) {
|
|
70
89
|
if (Array.isArray(e))
|
|
71
|
-
return
|
|
90
|
+
return Xt(e, (n) => He(n));
|
|
72
91
|
if (!e || typeof e != "object")
|
|
73
92
|
return e;
|
|
74
93
|
const t = {};
|
|
75
94
|
for (const [n, r] of Object.entries(e)) {
|
|
76
|
-
if (
|
|
77
|
-
t[n] = Array.isArray(r) ?
|
|
95
|
+
if (zr.has(n)) {
|
|
96
|
+
t[n] = Array.isArray(r) ? Xt(r, (o) => He(o)) : [];
|
|
78
97
|
continue;
|
|
79
98
|
}
|
|
80
99
|
t[n] = He(r);
|
|
@@ -90,19 +109,19 @@ function Je(e) {
|
|
|
90
109
|
function Ge() {
|
|
91
110
|
localStorage.removeItem(_t), localStorage.removeItem($t);
|
|
92
111
|
}
|
|
93
|
-
function
|
|
94
|
-
return /^https?:\/\//i.test(e) ? e :
|
|
112
|
+
function Gr(e) {
|
|
113
|
+
return /^https?:\/\//i.test(e) ? e : Kt ? `${Kt}${e}` : e;
|
|
95
114
|
}
|
|
96
|
-
function
|
|
115
|
+
function kn() {
|
|
97
116
|
typeof window > "u" || typeof window.dispatchEvent != "function" || window.dispatchEvent(new CustomEvent("aindy:session-expired"));
|
|
98
117
|
}
|
|
99
|
-
function
|
|
118
|
+
function Nn(e) {
|
|
100
119
|
typeof window > "u" || typeof window.dispatchEvent != "function" || window.dispatchEvent(
|
|
101
120
|
new CustomEvent("aindy:version-warning", { detail: { message: e } })
|
|
102
121
|
);
|
|
103
122
|
}
|
|
104
123
|
async function ie(e, t = {}) {
|
|
105
|
-
const n =
|
|
124
|
+
const n = Gr(e), r = ge(), o = new AbortController(), { _isRetry: s = !1, ...i } = t, a = typeof window < "u" ? setTimeout(() => o.abort(), 3e4) : null;
|
|
106
125
|
i.signal && (i.signal.aborted ? o.abort() : i.signal.addEventListener("abort", () => o.abort(), { once: !0 }));
|
|
107
126
|
try {
|
|
108
127
|
const l = await fetch(n, {
|
|
@@ -110,42 +129,44 @@ async function ie(e, t = {}) {
|
|
|
110
129
|
signal: o.signal,
|
|
111
130
|
headers: {
|
|
112
131
|
"Content-Type": "application/json",
|
|
113
|
-
"X-Client-Version":
|
|
132
|
+
"X-Client-Version": Sn,
|
|
114
133
|
...r ? { Authorization: `Bearer ${r}` } : {},
|
|
115
134
|
...i.headers || {}
|
|
116
135
|
}
|
|
117
136
|
}), c = l.headers?.get?.("X-Version-Warning");
|
|
118
|
-
if (c && typeof window < "u" && (console.warn("[API Version Warning]", c),
|
|
119
|
-
const
|
|
120
|
-
if (
|
|
121
|
-
return await new Promise((p) => setTimeout(p,
|
|
137
|
+
if (c && typeof window < "u" && (console.warn("[API Version Warning]", c), Nn(c)), l.status === 503) {
|
|
138
|
+
const m = parseInt(l.headers.get("Retry-After") || "0", 10);
|
|
139
|
+
if (m > 0 && m <= 60 && !s)
|
|
140
|
+
return await new Promise((p) => setTimeout(p, m * 1e3)), ie(e, { ...i, _isRetry: !0 });
|
|
122
141
|
}
|
|
123
142
|
if (!l.ok) {
|
|
124
|
-
const
|
|
143
|
+
const m = await l.text(), p = new J(
|
|
125
144
|
l.status,
|
|
126
|
-
`API Error (${l.status}): ${
|
|
127
|
-
|
|
145
|
+
`API Error (${l.status}): ${m}`,
|
|
146
|
+
m
|
|
128
147
|
);
|
|
129
|
-
throw l.status === 401 &&
|
|
148
|
+
throw l.status === 401 && kn(), p;
|
|
130
149
|
}
|
|
131
150
|
const u = await l.text();
|
|
151
|
+
let d;
|
|
132
152
|
try {
|
|
133
|
-
|
|
153
|
+
d = He(JSON.parse(u));
|
|
134
154
|
} catch {
|
|
135
155
|
return u;
|
|
136
156
|
}
|
|
157
|
+
return On(l, d);
|
|
137
158
|
} catch (l) {
|
|
138
|
-
throw l?.name === "AbortError" ? new
|
|
159
|
+
throw l?.name === "AbortError" ? new J(408, "Request timed out after 30 seconds.", null) : l instanceof TypeError && !l.status ? new J(0, "Network error. Check your connection.", null) : l;
|
|
139
160
|
} finally {
|
|
140
161
|
a && clearTimeout(a);
|
|
141
162
|
}
|
|
142
163
|
}
|
|
143
|
-
function
|
|
164
|
+
function Wr(e, t = {}) {
|
|
144
165
|
return ie(e, {
|
|
145
166
|
...t
|
|
146
167
|
});
|
|
147
168
|
}
|
|
148
|
-
function
|
|
169
|
+
function ja(e, t = {}) {
|
|
149
170
|
const n = ge();
|
|
150
171
|
let r = !1;
|
|
151
172
|
if (n)
|
|
@@ -155,11 +176,11 @@ function Fa(e, t = {}) {
|
|
|
155
176
|
} catch {
|
|
156
177
|
r = !1;
|
|
157
178
|
}
|
|
158
|
-
return r ?
|
|
159
|
-
new
|
|
179
|
+
return r ? Wr(e, t) : Promise.reject(
|
|
180
|
+
new J(403, "Admin privileges required for this operation.", null)
|
|
160
181
|
);
|
|
161
182
|
}
|
|
162
|
-
async function
|
|
183
|
+
async function Pn(e, t = {}) {
|
|
163
184
|
const n = ge(), r = new AbortController(), { _isRetry: o = !1, ...s } = t, i = typeof window < "u" ? setTimeout(() => r.abort(), 3e4) : null;
|
|
164
185
|
s.signal && (s.signal.aborted ? r.abort() : s.signal.addEventListener("abort", () => r.abort(), { once: !0 }));
|
|
165
186
|
try {
|
|
@@ -168,42 +189,44 @@ async function Tn(e, t = {}) {
|
|
|
168
189
|
signal: r.signal,
|
|
169
190
|
headers: {
|
|
170
191
|
"Content-Type": "application/json",
|
|
171
|
-
"X-Client-Version":
|
|
192
|
+
"X-Client-Version": Sn,
|
|
172
193
|
...n ? { Authorization: `Bearer ${n}` } : {},
|
|
173
194
|
...s.headers || {}
|
|
174
195
|
}
|
|
175
196
|
}), l = a.headers?.get?.("X-Version-Warning");
|
|
176
|
-
if (l && typeof window < "u" && (console.warn("[API Version Warning]", l),
|
|
177
|
-
const
|
|
178
|
-
if (
|
|
179
|
-
return await new Promise((
|
|
197
|
+
if (l && typeof window < "u" && (console.warn("[API Version Warning]", l), Nn(l)), a.status === 503) {
|
|
198
|
+
const d = parseInt(a.headers.get("Retry-After") || "0", 10);
|
|
199
|
+
if (d > 0 && d <= 60 && !o)
|
|
200
|
+
return await new Promise((m) => setTimeout(m, d * 1e3)), Pn(e, { ...s, _isRetry: !0 });
|
|
180
201
|
}
|
|
181
202
|
if (!a.ok) {
|
|
182
|
-
const
|
|
203
|
+
const d = await a.text(), m = new J(
|
|
183
204
|
a.status,
|
|
184
|
-
`API Error (${a.status}): ${
|
|
185
|
-
|
|
205
|
+
`API Error (${a.status}): ${d}`,
|
|
206
|
+
d
|
|
186
207
|
);
|
|
187
|
-
throw a.status === 401 &&
|
|
208
|
+
throw a.status === 401 && kn(), m;
|
|
188
209
|
}
|
|
189
210
|
const c = await a.text();
|
|
211
|
+
let u;
|
|
190
212
|
try {
|
|
191
|
-
|
|
213
|
+
u = He(JSON.parse(c));
|
|
192
214
|
} catch {
|
|
193
215
|
return c;
|
|
194
216
|
}
|
|
217
|
+
return On(a, u);
|
|
195
218
|
} catch (a) {
|
|
196
|
-
throw a?.name === "AbortError" ? new
|
|
219
|
+
throw a?.name === "AbortError" ? new J(408, "Request timed out after 30 seconds.", null) : a instanceof TypeError && !a.status ? new J(0, "Network error. Check your connection.", null) : a;
|
|
197
220
|
} finally {
|
|
198
221
|
i && clearTimeout(i);
|
|
199
222
|
}
|
|
200
223
|
}
|
|
201
|
-
function
|
|
202
|
-
return
|
|
224
|
+
function Ya(e, t = {}) {
|
|
225
|
+
return Pn(e, {
|
|
203
226
|
...t
|
|
204
227
|
});
|
|
205
228
|
}
|
|
206
|
-
const h = "", z = `${h}/apps`, ne = `${h}/platform`,
|
|
229
|
+
const h = "", z = `${h}/apps`, ne = `${h}/platform`, Xa = Object.freeze({
|
|
207
230
|
// OPER-DEFER-001 CLOSED 2026-06-15 — /platform/flows/strategies is served by the runtime
|
|
208
231
|
// (AINDY/routes/platform/flows_router.py). Flag kept for NavLink parity; now true.
|
|
209
232
|
OPERATOR_FLOW_STRATEGIES: !0,
|
|
@@ -215,7 +238,7 @@ const h = "", z = `${h}/apps`, ne = `${h}/platform`, Wa = Object.freeze({
|
|
|
215
238
|
// RIPPLE-ROUTES-001 — load-trace issues GET /rippletrace/{id} (bare monolith path,
|
|
216
239
|
// no /platform prefix, unserved runtime-only); full viewer is monolith pending integration
|
|
217
240
|
RIPPLETRACE_VIEWER: !1
|
|
218
|
-
}),
|
|
241
|
+
}), Hr = Object.freeze({
|
|
219
242
|
LOGIN: `${h}/auth/login`,
|
|
220
243
|
REGISTER: `${h}/auth/register`,
|
|
221
244
|
LOGOUT: `${h}/auth/logout`,
|
|
@@ -225,19 +248,19 @@ const h = "", z = `${h}/apps`, ne = `${h}/platform`, Wa = Object.freeze({
|
|
|
225
248
|
PASSWORD_CHANGE: `${h}/auth/password/change`,
|
|
226
249
|
PASSWORD_FORGOT: `${h}/auth/password/forgot`,
|
|
227
250
|
PASSWORD_RESET: `${h}/auth/password/reset`
|
|
228
|
-
}),
|
|
251
|
+
}), Vr = Object.freeze({
|
|
229
252
|
LIST: `${h}/tasks/list`,
|
|
230
253
|
CREATE: `${h}/tasks/create`,
|
|
231
254
|
COMPLETE: `${h}/tasks/complete`,
|
|
232
255
|
START: `${h}/tasks/start`
|
|
233
|
-
}),
|
|
256
|
+
}), Br = Object.freeze({
|
|
234
257
|
ANALYZE: `${h}/arm/analyze`,
|
|
235
258
|
GENERATE: `${h}/arm/generate`,
|
|
236
259
|
LOGS: `${h}/arm/logs`,
|
|
237
260
|
CONFIG: `${h}/arm/config`,
|
|
238
261
|
METRICS: `${h}/arm/metrics`,
|
|
239
262
|
CONFIG_SUGGESTIONS: `${h}/arm/config/suggest`
|
|
240
|
-
}),
|
|
263
|
+
}), jr = Object.freeze({
|
|
241
264
|
CREATE_RUN: `${z}/agent/run`,
|
|
242
265
|
RUNS: `${z}/agent/runs`,
|
|
243
266
|
RUN: (e) => `${z}/agent/runs/${e}`,
|
|
@@ -250,7 +273,7 @@ const h = "", z = `${h}/apps`, ne = `${h}/platform`, Wa = Object.freeze({
|
|
|
250
273
|
TOOLS: `${z}/agent/tools`,
|
|
251
274
|
TRUST: `${z}/agent/trust`,
|
|
252
275
|
SUGGESTIONS: `${z}/agent/suggestions`
|
|
253
|
-
}),
|
|
276
|
+
}), Yr = Object.freeze({
|
|
254
277
|
LINKEDIN_MANUAL: `${h}/analytics/linkedin/manual`,
|
|
255
278
|
MASTERPLAN_SUMMARY: (e) => `${h}/analytics/masterplan/${e}/summary`,
|
|
256
279
|
CALCULATE_TWR: `${h}/calculate_twr`,
|
|
@@ -271,16 +294,16 @@ const h = "", z = `${h}/apps`, ne = `${h}/platform`, Wa = Object.freeze({
|
|
|
271
294
|
SCORES_RECALCULATE: `${h}/scores/me/recalculate`,
|
|
272
295
|
SCORES_HISTORY: `${h}/scores/me/history`,
|
|
273
296
|
SCORES_FEEDBACK: `${h}/scores/feedback`
|
|
274
|
-
}),
|
|
297
|
+
}), Xr = Object.freeze({
|
|
275
298
|
ORDERS: `${h}/freelance/orders`,
|
|
276
299
|
FEEDBACK: `${h}/freelance/feedback`,
|
|
277
300
|
METRICS_LATEST: `${h}/freelance/metrics/latest`
|
|
278
|
-
}),
|
|
301
|
+
}), Kr = Object.freeze({
|
|
279
302
|
BOOT: `${h}/identity/boot`,
|
|
280
303
|
PROFILE: `${h}/identity/`,
|
|
281
304
|
EVOLUTION: `${h}/identity/evolution`,
|
|
282
305
|
CONTEXT: `${h}/identity/context`
|
|
283
|
-
}),
|
|
306
|
+
}), qr = Object.freeze({
|
|
284
307
|
GENESIS_SESSION: `${h}/genesis/session`,
|
|
285
308
|
GENESIS_MESSAGE: `${h}/genesis/message`,
|
|
286
309
|
GENESIS_SESSION_BY_ID: (e) => `${h}/genesis/session/${e}`,
|
|
@@ -293,7 +316,7 @@ const h = "", z = `${h}/apps`, ne = `${h}/platform`, Wa = Object.freeze({
|
|
|
293
316
|
PLAN_ACTIVATE: (e) => `${h}/masterplans/${e}/activate`,
|
|
294
317
|
PLAN_ANCHOR: (e) => `${h}/masterplans/${e}/anchor`,
|
|
295
318
|
PLAN_PROJECTION: (e) => `${h}/masterplans/${e}/projection`
|
|
296
|
-
}),
|
|
319
|
+
}), Jr = Object.freeze({
|
|
297
320
|
AGENTS: `${z}/memory/agents`,
|
|
298
321
|
AGENT_RECALL: (e) => `${z}/memory/agents/${e}/recall`,
|
|
299
322
|
FEDERATED_RECALL: `${z}/memory/federated/recall`,
|
|
@@ -306,7 +329,7 @@ const h = "", z = `${h}/apps`, ne = `${h}/platform`, Wa = Object.freeze({
|
|
|
306
329
|
NODE_HISTORY: (e) => `${z}/memory/nodes/${e}/history`,
|
|
307
330
|
NODE_SHARE: (e) => `${z}/memory/nodes/${e}/share`,
|
|
308
331
|
METRICS_DASHBOARD: `${z}/memory/metrics/dashboard`
|
|
309
|
-
}),
|
|
332
|
+
}), Zr = Object.freeze({
|
|
310
333
|
RESEARCH_QUERY: `${h}/research/query`,
|
|
311
334
|
HISTORY: `${h}/search/history`,
|
|
312
335
|
HISTORY_ITEM: (e) => `${h}/search/history/${e}`,
|
|
@@ -314,14 +337,14 @@ const h = "", z = `${h}/apps`, ne = `${h}/platform`, Wa = Object.freeze({
|
|
|
314
337
|
ANALYZE_SEO: `${h}/analyze_seo/`,
|
|
315
338
|
GENERATE_META: `${h}/generate_meta/`,
|
|
316
339
|
SUGGEST_IMPROVEMENTS: `${h}/suggest_improvements/`
|
|
317
|
-
}),
|
|
340
|
+
}), Qr = Object.freeze({
|
|
318
341
|
PROFILE_BY_USERNAME: (e) => `${h}/social/profile/${e}`,
|
|
319
342
|
PROFILE: `${h}/social/profile`,
|
|
320
343
|
FEED: `${h}/social/feed`,
|
|
321
344
|
POST: `${h}/social/post`,
|
|
322
345
|
ANALYTICS: `${h}/social/analytics`,
|
|
323
346
|
INTERACT: (e) => `${h}/social/posts/${e}/interact`
|
|
324
|
-
}),
|
|
347
|
+
}), eo = Object.freeze({
|
|
325
348
|
DROP_POINTS: `${h}/rippletrace/drop_points`,
|
|
326
349
|
PINGS: `${h}/rippletrace/pings`,
|
|
327
350
|
RECENT: `${h}/rippletrace/recent`,
|
|
@@ -348,7 +371,7 @@ const h = "", z = `${h}/apps`, ne = `${h}/platform`, Wa = Object.freeze({
|
|
|
348
371
|
MATCH_STRATEGIES: (e) => `${h}/rippletrace/strategies/match/${encodeURIComponent(e)}`,
|
|
349
372
|
EVENT_DOWNSTREAM: (e) => `${h}/rippletrace/event/${encodeURIComponent(e)}/downstream`,
|
|
350
373
|
EVENT_UPSTREAM: (e) => `${h}/rippletrace/event/${encodeURIComponent(e)}/upstream`
|
|
351
|
-
}),
|
|
374
|
+
}), to = Object.freeze({
|
|
352
375
|
// ── Live: all resolve in current runtime OpenAPI ──────────────────────────
|
|
353
376
|
FLOW_RUNS: `${ne}/flows/runs`,
|
|
354
377
|
FLOW_RUN: (e) => `${ne}/flows/runs/${e}`,
|
|
@@ -374,7 +397,7 @@ const h = "", z = `${h}/apps`, ne = `${h}/platform`, Wa = Object.freeze({
|
|
|
374
397
|
// SCHED-001 / SCHED-002 / SCHED-003 — returns 500 in platform-only profile
|
|
375
398
|
SCHEDULER_STATUS: `${ne}/observability/scheduler/status`
|
|
376
399
|
// FEATURE_FLAGS.OPERATOR_SCHEDULER_STATUS
|
|
377
|
-
}),
|
|
400
|
+
}), no = Object.freeze({
|
|
378
401
|
DASHBOARD_OVERVIEW: `${h}/dashboard/overview`,
|
|
379
402
|
// monolith-only
|
|
380
403
|
HEALTH_DETAILS: `${h}/health/details`,
|
|
@@ -394,40 +417,40 @@ const h = "", z = `${h}/apps`, ne = `${h}/platform`, Wa = Object.freeze({
|
|
|
394
417
|
VERSION: `${h}/api/version`
|
|
395
418
|
// runtime: served
|
|
396
419
|
}), ye = Object.freeze({
|
|
397
|
-
AUTH:
|
|
398
|
-
TASKS:
|
|
399
|
-
ARM:
|
|
400
|
-
AGENT:
|
|
401
|
-
ANALYTICS:
|
|
402
|
-
FREELANCE:
|
|
403
|
-
IDENTITY:
|
|
404
|
-
MASTERPLAN:
|
|
405
|
-
MEMORY:
|
|
406
|
-
SEARCH:
|
|
407
|
-
SOCIAL:
|
|
408
|
-
RIPPLETRACE:
|
|
409
|
-
OPERATOR:
|
|
410
|
-
PLATFORM:
|
|
420
|
+
AUTH: Hr,
|
|
421
|
+
TASKS: Vr,
|
|
422
|
+
ARM: Br,
|
|
423
|
+
AGENT: jr,
|
|
424
|
+
ANALYTICS: Yr,
|
|
425
|
+
FREELANCE: Xr,
|
|
426
|
+
IDENTITY: Kr,
|
|
427
|
+
MASTERPLAN: qr,
|
|
428
|
+
MEMORY: Jr,
|
|
429
|
+
SEARCH: Zr,
|
|
430
|
+
SOCIAL: Qr,
|
|
431
|
+
RIPPLETRACE: eo,
|
|
432
|
+
OPERATOR: to,
|
|
433
|
+
PLATFORM: no
|
|
411
434
|
});
|
|
412
|
-
function
|
|
435
|
+
function ro(e) {
|
|
413
436
|
return ie(ye.AUTH.LOGIN, {
|
|
414
437
|
method: "POST",
|
|
415
438
|
body: JSON.stringify(e)
|
|
416
439
|
}).then(Ce);
|
|
417
440
|
}
|
|
418
|
-
function
|
|
441
|
+
function oo(e) {
|
|
419
442
|
return ie(ye.AUTH.REGISTER, {
|
|
420
443
|
method: "POST",
|
|
421
444
|
body: JSON.stringify(e)
|
|
422
445
|
}).then(Ce);
|
|
423
446
|
}
|
|
424
|
-
function
|
|
447
|
+
function so(e) {
|
|
425
448
|
return ie(ye.AUTH.VERIFY_EMAIL, {
|
|
426
449
|
method: "POST",
|
|
427
450
|
body: JSON.stringify({ token: e })
|
|
428
451
|
}).then(Ce);
|
|
429
452
|
}
|
|
430
|
-
function
|
|
453
|
+
function io(e, t, n = ge()) {
|
|
431
454
|
return ie(ye.AUTH.PASSWORD_CHANGE, {
|
|
432
455
|
method: "POST",
|
|
433
456
|
headers: n ? { Authorization: `Bearer ${n}` } : {},
|
|
@@ -437,32 +460,32 @@ function eo(e, t, n = ge()) {
|
|
|
437
460
|
})
|
|
438
461
|
}).then(Ce);
|
|
439
462
|
}
|
|
440
|
-
function
|
|
463
|
+
function Ka(e) {
|
|
441
464
|
return ie(ye.AUTH.PASSWORD_FORGOT, {
|
|
442
465
|
method: "POST",
|
|
443
466
|
body: JSON.stringify({ email: e })
|
|
444
467
|
}).then(Ce);
|
|
445
468
|
}
|
|
446
|
-
function
|
|
469
|
+
function qa(e, t) {
|
|
447
470
|
return ie(ye.AUTH.PASSWORD_RESET, {
|
|
448
471
|
method: "POST",
|
|
449
472
|
body: JSON.stringify({ token: e, new_password: t })
|
|
450
473
|
}).then(Ce);
|
|
451
474
|
}
|
|
452
|
-
function
|
|
475
|
+
function ao(e = ge()) {
|
|
453
476
|
return ie(ye.AUTH.LOGOUT, {
|
|
454
477
|
method: "POST",
|
|
455
478
|
headers: e ? { Authorization: `Bearer ${e}` } : {}
|
|
456
479
|
}).catch(() => null);
|
|
457
480
|
}
|
|
458
|
-
function
|
|
481
|
+
function lo(e = ge()) {
|
|
459
482
|
return ie(ye.IDENTITY.BOOT, {
|
|
460
483
|
method: "GET",
|
|
461
484
|
headers: e ? { Authorization: `Bearer ${e}` } : {}
|
|
462
485
|
}).then(Ce);
|
|
463
486
|
}
|
|
464
|
-
const
|
|
465
|
-
function
|
|
487
|
+
const _n = En(null);
|
|
488
|
+
function $n(e) {
|
|
466
489
|
if (!e)
|
|
467
490
|
return null;
|
|
468
491
|
try {
|
|
@@ -473,15 +496,15 @@ function kn(e) {
|
|
|
473
496
|
}
|
|
474
497
|
}
|
|
475
498
|
function wt(e) {
|
|
476
|
-
const t =
|
|
499
|
+
const t = $n(e);
|
|
477
500
|
return !t || typeof t.exp != "number" ? !1 : Date.now() / 1e3 > t.exp - 30;
|
|
478
501
|
}
|
|
479
|
-
function
|
|
480
|
-
const [t, n] =
|
|
502
|
+
function Ja({ children: e }) {
|
|
503
|
+
const [t, n] = Z(() => {
|
|
481
504
|
const d = ge();
|
|
482
505
|
return d && wt(d) ? (Ge(), null) : d || null;
|
|
483
506
|
}), r = rt(() => {
|
|
484
|
-
const d =
|
|
507
|
+
const d = $n(t);
|
|
485
508
|
return d ? {
|
|
486
509
|
...d,
|
|
487
510
|
is_admin: d?.is_admin === !0
|
|
@@ -507,24 +530,24 @@ function Ba({ children: e }) {
|
|
|
507
530
|
};
|
|
508
531
|
return window.addEventListener("aindy:session-expired", d), () => window.removeEventListener("aindy:session-expired", d);
|
|
509
532
|
}, []);
|
|
510
|
-
const s = async (d,
|
|
511
|
-
const g = (await
|
|
533
|
+
const s = async (d, m) => {
|
|
534
|
+
const g = (await ro({ email: d, password: m }))?.access_token;
|
|
512
535
|
if (!g)
|
|
513
536
|
throw new Error("Authentication did not return an access token.");
|
|
514
537
|
return Je(g), n(g), g;
|
|
515
|
-
}, i = async (d,
|
|
516
|
-
const b = (await
|
|
538
|
+
}, i = async (d, m, p = null) => {
|
|
539
|
+
const b = (await oo({ email: d, password: m, username: p }))?.access_token;
|
|
517
540
|
return b ? (Je(b), n(b), { verificationSent: !1, token: b }) : { verificationSent: !0, token: null };
|
|
518
541
|
}, a = async (d) => {
|
|
519
|
-
const
|
|
520
|
-
if (!
|
|
542
|
+
const p = (await so(d))?.access_token;
|
|
543
|
+
if (!p)
|
|
521
544
|
throw new Error("Verification did not return an access token.");
|
|
522
|
-
return Je(
|
|
523
|
-
}, l = async (d,
|
|
524
|
-
const g = (await
|
|
545
|
+
return Je(p), n(p), p;
|
|
546
|
+
}, l = async (d, m) => {
|
|
547
|
+
const g = (await io(d, m))?.access_token;
|
|
525
548
|
return g && (Je(g), n(g)), g ?? null;
|
|
526
549
|
}, c = () => {
|
|
527
|
-
|
|
550
|
+
ao(), Ge(), n(null);
|
|
528
551
|
}, u = rt(
|
|
529
552
|
() => ({
|
|
530
553
|
token: t,
|
|
@@ -540,15 +563,15 @@ function Ba({ children: e }) {
|
|
|
540
563
|
}),
|
|
541
564
|
[t, r, o]
|
|
542
565
|
);
|
|
543
|
-
return /* @__PURE__ */ x(
|
|
566
|
+
return /* @__PURE__ */ x(_n.Provider, { value: u, children: e });
|
|
544
567
|
}
|
|
545
568
|
function It() {
|
|
546
|
-
const e =
|
|
569
|
+
const e = An(_n);
|
|
547
570
|
if (!e)
|
|
548
571
|
throw new Error("useAuth must be used within AuthProvider.");
|
|
549
572
|
return e;
|
|
550
573
|
}
|
|
551
|
-
const
|
|
574
|
+
const In = En(null), Pe = {
|
|
552
575
|
user_id: null,
|
|
553
576
|
memory: [],
|
|
554
577
|
runs: [],
|
|
@@ -571,15 +594,15 @@ const Nn = xn(null), Pe = {
|
|
|
571
594
|
active_flows: 0
|
|
572
595
|
}
|
|
573
596
|
};
|
|
574
|
-
function
|
|
575
|
-
const { token: n, logout: r } = It(), [o, s] =
|
|
576
|
-
s(Pe), c(!1), d(""),
|
|
597
|
+
function Za({ children: e, skipBoot: t = !1 }) {
|
|
598
|
+
const { token: n, logout: r } = It(), [o, s] = Z(Pe), [i, a] = Z(!1), [l, c] = Z(!1), [u, d] = Z(""), m = Rt(null), p = () => {
|
|
599
|
+
s(Pe), c(!1), d(""), m.current = null;
|
|
577
600
|
}, g = async (w = n) => {
|
|
578
601
|
if (!w)
|
|
579
|
-
return
|
|
602
|
+
return p(), Pe;
|
|
580
603
|
a(!0), d("");
|
|
581
604
|
try {
|
|
582
|
-
const y = await
|
|
605
|
+
const y = await lo(w);
|
|
583
606
|
return s({
|
|
584
607
|
...Pe,
|
|
585
608
|
...y,
|
|
@@ -595,10 +618,10 @@ function ja({ children: e, skipBoot: t = !1 }) {
|
|
|
595
618
|
...Pe.system_state,
|
|
596
619
|
...y?.system_state || {}
|
|
597
620
|
}
|
|
598
|
-
}), c(!0),
|
|
621
|
+
}), c(!0), m.current = w, y;
|
|
599
622
|
} catch (y) {
|
|
600
623
|
const E = y instanceof Error ? y.message : "Failed to boot identity context.";
|
|
601
|
-
throw d(E), c(!1), y instanceof
|
|
624
|
+
throw d(E), c(!1), y instanceof J && y.status === 401 && r(), y;
|
|
602
625
|
} finally {
|
|
603
626
|
a(!1);
|
|
604
627
|
}
|
|
@@ -606,24 +629,24 @@ function ja({ children: e, skipBoot: t = !1 }) {
|
|
|
606
629
|
_e(() => {
|
|
607
630
|
if (t) {
|
|
608
631
|
if (!n) {
|
|
609
|
-
|
|
632
|
+
p();
|
|
610
633
|
return;
|
|
611
634
|
}
|
|
612
|
-
c(!0), d(""),
|
|
635
|
+
c(!0), d(""), m.current = n;
|
|
613
636
|
return;
|
|
614
637
|
}
|
|
615
638
|
if (!n) {
|
|
616
|
-
|
|
639
|
+
p();
|
|
617
640
|
return;
|
|
618
641
|
}
|
|
619
|
-
|
|
642
|
+
m.current === n && l || g(n).catch(() => {
|
|
620
643
|
});
|
|
621
644
|
}, [n, l, t]);
|
|
622
645
|
const b = rt(
|
|
623
646
|
() => ({
|
|
624
647
|
system: o,
|
|
625
648
|
setSystem: s,
|
|
626
|
-
clearSystem:
|
|
649
|
+
clearSystem: p,
|
|
627
650
|
bootSystem: g,
|
|
628
651
|
booting: i,
|
|
629
652
|
booted: l,
|
|
@@ -631,15 +654,15 @@ function ja({ children: e, skipBoot: t = !1 }) {
|
|
|
631
654
|
}),
|
|
632
655
|
[o, i, l, u]
|
|
633
656
|
);
|
|
634
|
-
return /* @__PURE__ */ x(
|
|
657
|
+
return /* @__PURE__ */ x(In.Provider, { value: b, children: e });
|
|
635
658
|
}
|
|
636
|
-
function
|
|
637
|
-
const e =
|
|
659
|
+
function co() {
|
|
660
|
+
const e = An(In);
|
|
638
661
|
if (!e)
|
|
639
662
|
throw new Error("useSystem must be used within SystemProvider.");
|
|
640
663
|
return e;
|
|
641
664
|
}
|
|
642
|
-
const
|
|
665
|
+
const uo = "/platform", fo = (e) => `${uo}${e}`, mo = [
|
|
643
666
|
{
|
|
644
667
|
title: "PLATFORM",
|
|
645
668
|
adminOnly: !0,
|
|
@@ -703,7 +726,7 @@ const oo = "/platform", so = (e) => `${oo}${e}`, io = [
|
|
|
703
726
|
]
|
|
704
727
|
}
|
|
705
728
|
];
|
|
706
|
-
function
|
|
729
|
+
function po({ to: e, label: t, onNavigate: n, external: r = !1 }) {
|
|
707
730
|
const o = [
|
|
708
731
|
"block rounded-2xl border px-3 py-2 text-sm transition-colors",
|
|
709
732
|
"border-zinc-800/60 bg-zinc-950/40 text-zinc-400 hover:border-zinc-700 hover:bg-zinc-900/70 hover:text-zinc-100"
|
|
@@ -713,7 +736,7 @@ function ao({ to: e, label: t, onNavigate: n, external: r = !1 }) {
|
|
|
713
736
|
return /* @__PURE__ */ x(
|
|
714
737
|
"a",
|
|
715
738
|
{
|
|
716
|
-
href:
|
|
739
|
+
href: fo(e),
|
|
717
740
|
onClick: n,
|
|
718
741
|
target: "_self",
|
|
719
742
|
className: [
|
|
@@ -725,7 +748,7 @@ function ao({ to: e, label: t, onNavigate: n, external: r = !1 }) {
|
|
|
725
748
|
);
|
|
726
749
|
}
|
|
727
750
|
return /* @__PURE__ */ x(
|
|
728
|
-
|
|
751
|
+
Dr,
|
|
729
752
|
{
|
|
730
753
|
to: e,
|
|
731
754
|
onClick: n,
|
|
@@ -737,9 +760,9 @@ function ao({ to: e, label: t, onNavigate: n, external: r = !1 }) {
|
|
|
737
760
|
}
|
|
738
761
|
);
|
|
739
762
|
}
|
|
740
|
-
function
|
|
741
|
-
const { isAdmin: e, logout: t, user: n } = It(), { system: r } =
|
|
742
|
-
() =>
|
|
763
|
+
function Qa() {
|
|
764
|
+
const { isAdmin: e, logout: t, user: n } = It(), { system: r } = co(), [o, s] = Z(!1), i = r?.runtime?.boot_mode === "runtime-only", a = rt(
|
|
765
|
+
() => mo.filter((l) => !l.adminOnly || e).filter((l) => !i || l.runtimeOnlySafe !== !1).map((l) => ({
|
|
743
766
|
...l,
|
|
744
767
|
title: l.title === "RUNTIME" && !i ? "IDENTITY" : l.title,
|
|
745
768
|
links: l.links.filter((c) => !i || c.runtimeOnlySafe !== !1)
|
|
@@ -775,7 +798,7 @@ function Ya() {
|
|
|
775
798
|
/* @__PURE__ */ x("nav", { className: "flex-1 space-y-6 overflow-y-auto px-4 py-5 custom-scrollbar", children: a.map((l) => /* @__PURE__ */ B("div", { children: [
|
|
776
799
|
/* @__PURE__ */ x("p", { className: "mb-3 px-2 text-[10px] font-bold uppercase tracking-[0.3em] text-zinc-600", children: l.title }),
|
|
777
800
|
/* @__PURE__ */ x("div", { className: "space-y-2", children: l.links.map((c) => /* @__PURE__ */ x(
|
|
778
|
-
|
|
801
|
+
po,
|
|
779
802
|
{
|
|
780
803
|
to: c.to,
|
|
781
804
|
label: c.label,
|
|
@@ -829,15 +852,15 @@ function Ya() {
|
|
|
829
852
|
)
|
|
830
853
|
] })
|
|
831
854
|
] }) }),
|
|
832
|
-
/* @__PURE__ */ x("main", { className: "flex-1 overflow-y-auto px-4 py-6 sm:px-6 lg:px-8", children: /* @__PURE__ */ x("div", { className: "min-h-full rounded-[28px] border border-zinc-800/60 bg-zinc-950/40 p-4 shadow-2xl shadow-black/20 sm:p-6 lg:p-8", children: /* @__PURE__ */ x(
|
|
855
|
+
/* @__PURE__ */ x("main", { className: "flex-1 overflow-y-auto px-4 py-6 sm:px-6 lg:px-8", children: /* @__PURE__ */ x("div", { className: "min-h-full rounded-[28px] border border-zinc-800/60 bg-zinc-950/40 p-4 shadow-2xl shadow-black/20 sm:p-6 lg:p-8", children: /* @__PURE__ */ x(Rn, {}) }) })
|
|
833
856
|
] })
|
|
834
857
|
] });
|
|
835
858
|
}
|
|
836
|
-
function
|
|
837
|
-
const t =
|
|
838
|
-
return r ? e && !n ? /* @__PURE__ */ x(Yt, { to: "/dashboard", replace: !0 }) : /* @__PURE__ */ x(
|
|
859
|
+
function el({ requireAdmin: e = !1 }) {
|
|
860
|
+
const t = Mr(), { isAdmin: n, isAuthenticated: r } = It();
|
|
861
|
+
return r ? e && !n ? /* @__PURE__ */ x(Yt, { to: "/dashboard", replace: !0 }) : /* @__PURE__ */ x(Rn, {}) : /* @__PURE__ */ x(Yt, { to: "/login", replace: !0, state: { from: t } });
|
|
839
862
|
}
|
|
840
|
-
const
|
|
863
|
+
const go = {
|
|
841
864
|
major_mismatch: {
|
|
842
865
|
bg: "#b91c1c",
|
|
843
866
|
label: "Incompatible version",
|
|
@@ -863,8 +886,8 @@ const lo = {
|
|
|
863
886
|
dismissable: !0
|
|
864
887
|
}
|
|
865
888
|
};
|
|
866
|
-
function
|
|
867
|
-
const o =
|
|
889
|
+
function tl({ status: e, apiVersion: t, clientVersion: n, onDismiss: r }) {
|
|
890
|
+
const o = go[e];
|
|
868
891
|
return o ? /* @__PURE__ */ B(
|
|
869
892
|
"div",
|
|
870
893
|
{
|
|
@@ -927,18 +950,18 @@ function Xa({ status: e, apiVersion: t, clientVersion: n, onDismiss: r }) {
|
|
|
927
950
|
}
|
|
928
951
|
) : null;
|
|
929
952
|
}
|
|
930
|
-
const
|
|
953
|
+
const Zt = {
|
|
931
954
|
error: "border-red-500/30 bg-red-950/80 text-red-200",
|
|
932
955
|
success: "border-emerald-500/30 bg-emerald-950/80 text-emerald-200",
|
|
933
956
|
info: "border-zinc-600/30 bg-zinc-900/90 text-zinc-200"
|
|
934
957
|
};
|
|
935
|
-
function
|
|
958
|
+
function nl({ toast: e, onDismiss: t }) {
|
|
936
959
|
return e ? /* @__PURE__ */ B(
|
|
937
960
|
"div",
|
|
938
961
|
{
|
|
939
962
|
role: "alert",
|
|
940
963
|
"aria-live": "assertive",
|
|
941
|
-
className: `fixed bottom-6 right-6 z-50 max-w-sm rounded-xl border px-4 py-3 text-sm shadow-xl backdrop-blur-sm ${
|
|
964
|
+
className: `fixed bottom-6 right-6 z-50 max-w-sm rounded-xl border px-4 py-3 text-sm shadow-xl backdrop-blur-sm ${Zt[e.type] || Zt.error}`,
|
|
942
965
|
children: [
|
|
943
966
|
/* @__PURE__ */ x("span", { children: e.message }),
|
|
944
967
|
/* @__PURE__ */ x(
|
|
@@ -954,7 +977,7 @@ function qa({ toast: e, onDismiss: t }) {
|
|
|
954
977
|
}
|
|
955
978
|
) : null;
|
|
956
979
|
}
|
|
957
|
-
function
|
|
980
|
+
function rl({ lines: e = 3, label: t }) {
|
|
958
981
|
const n = ["w-full", "w-3/4", "w-1/2"];
|
|
959
982
|
return /* @__PURE__ */ B("div", { className: "rounded-2xl border border-zinc-800/50 bg-zinc-950/50 p-6", children: [
|
|
960
983
|
/* @__PURE__ */ x("div", { className: "space-y-3", children: Array.from({ length: e }, (r, o) => /* @__PURE__ */ x(
|
|
@@ -968,7 +991,7 @@ function Ja({ lines: e = 3, label: t }) {
|
|
|
968
991
|
t ? /* @__PURE__ */ x("p", { className: "mt-4 text-center text-xs text-zinc-500", children: t }) : null
|
|
969
992
|
] });
|
|
970
993
|
}
|
|
971
|
-
function
|
|
994
|
+
function ol({ error: e, domain: t, onRetry: n }) {
|
|
972
995
|
if (!e)
|
|
973
996
|
return null;
|
|
974
997
|
const r = e?.status ?? "unknown", o = t || e?.domain || "server";
|
|
@@ -986,13 +1009,13 @@ function Za({ error: e, domain: t, onRetry: n }) {
|
|
|
986
1009
|
) : null
|
|
987
1010
|
] });
|
|
988
1011
|
}
|
|
989
|
-
function
|
|
990
|
-
const [t, n] =
|
|
1012
|
+
function sl(e) {
|
|
1013
|
+
const [t, n] = Z(!1);
|
|
991
1014
|
return _e(() => {
|
|
992
1015
|
e || n(!0);
|
|
993
1016
|
}, [e]), t;
|
|
994
1017
|
}
|
|
995
|
-
function
|
|
1018
|
+
function il() {
|
|
996
1019
|
return /* @__PURE__ */ x(
|
|
997
1020
|
"div",
|
|
998
1021
|
{
|
|
@@ -1005,13 +1028,13 @@ function el() {
|
|
|
1005
1028
|
}
|
|
1006
1029
|
);
|
|
1007
1030
|
}
|
|
1008
|
-
function
|
|
1031
|
+
function al({ message: e, hint: t }) {
|
|
1009
1032
|
return /* @__PURE__ */ B("div", { className: "flex flex-col items-center justify-center rounded-2xl border border-zinc-800/30 bg-zinc-950/30 p-8 text-center", children: [
|
|
1010
1033
|
/* @__PURE__ */ x("p", { className: "text-sm text-zinc-400", children: e }),
|
|
1011
1034
|
t ? /* @__PURE__ */ x("p", { className: "mt-1 text-xs text-zinc-600", children: t }) : null
|
|
1012
1035
|
] });
|
|
1013
1036
|
}
|
|
1014
|
-
function
|
|
1037
|
+
function Qt(e, t) {
|
|
1015
1038
|
if (typeof e == "function")
|
|
1016
1039
|
return e(t);
|
|
1017
1040
|
e != null && (e.current = t);
|
|
@@ -1020,14 +1043,14 @@ function Lt(...e) {
|
|
|
1020
1043
|
return (t) => {
|
|
1021
1044
|
let n = !1;
|
|
1022
1045
|
const r = e.map((o) => {
|
|
1023
|
-
const s =
|
|
1046
|
+
const s = Qt(o, t);
|
|
1024
1047
|
return !n && typeof s == "function" && (n = !0), s;
|
|
1025
1048
|
});
|
|
1026
1049
|
if (n)
|
|
1027
1050
|
return () => {
|
|
1028
1051
|
for (let o = 0; o < r.length; o++) {
|
|
1029
1052
|
const s = r[o];
|
|
1030
|
-
typeof s == "function" ? s() :
|
|
1053
|
+
typeof s == "function" ? s() : Qt(e[o], null);
|
|
1031
1054
|
}
|
|
1032
1055
|
};
|
|
1033
1056
|
};
|
|
@@ -1035,19 +1058,19 @@ function Lt(...e) {
|
|
|
1035
1058
|
function Se(...e) {
|
|
1036
1059
|
return f.useCallback(Lt(...e), e);
|
|
1037
1060
|
}
|
|
1038
|
-
var
|
|
1039
|
-
function
|
|
1061
|
+
var ho = /* @__PURE__ */ Symbol.for("react.lazy"), st = f[" use ".trim().toString()];
|
|
1062
|
+
function bo(e) {
|
|
1040
1063
|
return typeof e == "object" && e !== null && "then" in e;
|
|
1041
1064
|
}
|
|
1042
|
-
function
|
|
1043
|
-
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof ===
|
|
1065
|
+
function Ln(e) {
|
|
1066
|
+
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === ho && "_payload" in e && bo(e._payload);
|
|
1044
1067
|
}
|
|
1045
1068
|
// @__NO_SIDE_EFFECTS__
|
|
1046
|
-
function
|
|
1047
|
-
const t = /* @__PURE__ */
|
|
1069
|
+
function yo(e) {
|
|
1070
|
+
const t = /* @__PURE__ */ xo(e), n = f.forwardRef((r, o) => {
|
|
1048
1071
|
let { children: s, ...i } = r;
|
|
1049
|
-
|
|
1050
|
-
const a = f.Children.toArray(s), l = a.find(
|
|
1072
|
+
Ln(s) && typeof st == "function" && (s = st(s._payload));
|
|
1073
|
+
const a = f.Children.toArray(s), l = a.find(Eo);
|
|
1051
1074
|
if (l) {
|
|
1052
1075
|
const c = l.props.children, u = a.map((d) => d === l ? f.Children.count(c) > 1 ? f.Children.only(null) : f.isValidElement(c) ? c.props.children : null : d);
|
|
1053
1076
|
return /* @__PURE__ */ x(t, { ...i, ref: o, children: f.isValidElement(c) ? f.cloneElement(c, void 0, u) : null });
|
|
@@ -1056,24 +1079,24 @@ function fo(e) {
|
|
|
1056
1079
|
});
|
|
1057
1080
|
return n.displayName = `${e}.Slot`, n;
|
|
1058
1081
|
}
|
|
1059
|
-
var
|
|
1082
|
+
var wo = /* @__PURE__ */ yo("Slot");
|
|
1060
1083
|
// @__NO_SIDE_EFFECTS__
|
|
1061
|
-
function
|
|
1084
|
+
function xo(e) {
|
|
1062
1085
|
const t = f.forwardRef((n, r) => {
|
|
1063
1086
|
let { children: o, ...s } = n;
|
|
1064
|
-
if (
|
|
1065
|
-
const i =
|
|
1087
|
+
if (Ln(o) && typeof st == "function" && (o = st(o._payload)), f.isValidElement(o)) {
|
|
1088
|
+
const i = Ro(o), a = Ao(s, o.props);
|
|
1066
1089
|
return o.type !== f.Fragment && (a.ref = r ? Lt(r, i) : i), f.cloneElement(o, a);
|
|
1067
1090
|
}
|
|
1068
1091
|
return f.Children.count(o) > 1 ? f.Children.only(null) : null;
|
|
1069
1092
|
});
|
|
1070
1093
|
return t.displayName = `${e}.SlotClone`, t;
|
|
1071
1094
|
}
|
|
1072
|
-
var
|
|
1073
|
-
function
|
|
1074
|
-
return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
1095
|
+
var vo = /* @__PURE__ */ Symbol("radix.slottable");
|
|
1096
|
+
function Eo(e) {
|
|
1097
|
+
return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === vo;
|
|
1075
1098
|
}
|
|
1076
|
-
function
|
|
1099
|
+
function Ao(e, t) {
|
|
1077
1100
|
const n = { ...t };
|
|
1078
1101
|
for (const r in t) {
|
|
1079
1102
|
const o = e[r], s = t[r];
|
|
@@ -1084,37 +1107,37 @@ function bo(e, t) {
|
|
|
1084
1107
|
}
|
|
1085
1108
|
return { ...e, ...n };
|
|
1086
1109
|
}
|
|
1087
|
-
function
|
|
1110
|
+
function Ro(e) {
|
|
1088
1111
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
1089
1112
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
1090
1113
|
}
|
|
1091
|
-
function
|
|
1114
|
+
function Dn(e) {
|
|
1092
1115
|
var t, n, r = "";
|
|
1093
1116
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
1094
1117
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
1095
1118
|
var o = e.length;
|
|
1096
|
-
for (t = 0; t < o; t++) e[t] && (n =
|
|
1119
|
+
for (t = 0; t < o; t++) e[t] && (n = Dn(e[t])) && (r && (r += " "), r += n);
|
|
1097
1120
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
1098
1121
|
return r;
|
|
1099
1122
|
}
|
|
1100
|
-
function
|
|
1101
|
-
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t =
|
|
1123
|
+
function Mn() {
|
|
1124
|
+
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = Dn(e)) && (r && (r += " "), r += t);
|
|
1102
1125
|
return r;
|
|
1103
1126
|
}
|
|
1104
|
-
const
|
|
1127
|
+
const en = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, tn = Mn, Co = (e, t) => (n) => {
|
|
1105
1128
|
var r;
|
|
1106
|
-
if (t?.variants == null) return
|
|
1129
|
+
if (t?.variants == null) return tn(e, n?.class, n?.className);
|
|
1107
1130
|
const { variants: o, defaultVariants: s } = t, i = Object.keys(o).map((c) => {
|
|
1108
1131
|
const u = n?.[c], d = s?.[c];
|
|
1109
1132
|
if (u === null) return null;
|
|
1110
|
-
const
|
|
1111
|
-
return o[c][
|
|
1133
|
+
const m = en(u) || en(d);
|
|
1134
|
+
return o[c][m];
|
|
1112
1135
|
}), a = n && Object.entries(n).reduce((c, u) => {
|
|
1113
|
-
let [d,
|
|
1114
|
-
return
|
|
1136
|
+
let [d, m] = u;
|
|
1137
|
+
return m === void 0 || (c[d] = m), c;
|
|
1115
1138
|
}, {}), l = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((c, u) => {
|
|
1116
|
-
let { class: d, className:
|
|
1117
|
-
return Object.entries(
|
|
1139
|
+
let { class: d, className: m, ...p } = u;
|
|
1140
|
+
return Object.entries(p).every((g) => {
|
|
1118
1141
|
let [b, w] = g;
|
|
1119
1142
|
return Array.isArray(w) ? w.includes({
|
|
1120
1143
|
...s,
|
|
@@ -1126,50 +1149,50 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
1126
1149
|
}) ? [
|
|
1127
1150
|
...c,
|
|
1128
1151
|
d,
|
|
1129
|
-
|
|
1152
|
+
m
|
|
1130
1153
|
] : c;
|
|
1131
1154
|
}, []);
|
|
1132
|
-
return
|
|
1133
|
-
},
|
|
1155
|
+
return tn(e, i, l, n?.class, n?.className);
|
|
1156
|
+
}, So = (e, t) => {
|
|
1134
1157
|
const n = new Array(e.length + t.length);
|
|
1135
1158
|
for (let r = 0; r < e.length; r++)
|
|
1136
1159
|
n[r] = e[r];
|
|
1137
1160
|
for (let r = 0; r < t.length; r++)
|
|
1138
1161
|
n[e.length + r] = t[r];
|
|
1139
1162
|
return n;
|
|
1140
|
-
},
|
|
1163
|
+
}, To = (e, t) => ({
|
|
1141
1164
|
classGroupId: e,
|
|
1142
1165
|
validator: t
|
|
1143
|
-
}),
|
|
1166
|
+
}), zn = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
1144
1167
|
nextPart: e,
|
|
1145
1168
|
validators: t,
|
|
1146
1169
|
classGroupId: n
|
|
1147
|
-
}), it = "-",
|
|
1148
|
-
const t =
|
|
1170
|
+
}), it = "-", nn = [], Oo = "arbitrary..", ko = (e) => {
|
|
1171
|
+
const t = Po(e), {
|
|
1149
1172
|
conflictingClassGroups: n,
|
|
1150
1173
|
conflictingClassGroupModifiers: r
|
|
1151
1174
|
} = e;
|
|
1152
1175
|
return {
|
|
1153
1176
|
getClassGroupId: (i) => {
|
|
1154
1177
|
if (i.startsWith("[") && i.endsWith("]"))
|
|
1155
|
-
return
|
|
1178
|
+
return No(i);
|
|
1156
1179
|
const a = i.split(it), l = a[0] === "" && a.length > 1 ? 1 : 0;
|
|
1157
|
-
return
|
|
1180
|
+
return Un(a, l, t);
|
|
1158
1181
|
},
|
|
1159
1182
|
getConflictingClassGroupIds: (i, a) => {
|
|
1160
1183
|
if (a) {
|
|
1161
1184
|
const l = r[i], c = n[i];
|
|
1162
|
-
return l ? c ?
|
|
1185
|
+
return l ? c ? So(c, l) : l : c || nn;
|
|
1163
1186
|
}
|
|
1164
|
-
return n[i] ||
|
|
1187
|
+
return n[i] || nn;
|
|
1165
1188
|
}
|
|
1166
1189
|
};
|
|
1167
|
-
},
|
|
1190
|
+
}, Un = (e, t, n) => {
|
|
1168
1191
|
if (e.length - t === 0)
|
|
1169
1192
|
return n.classGroupId;
|
|
1170
1193
|
const o = e[t], s = n.nextPart.get(o);
|
|
1171
1194
|
if (s) {
|
|
1172
|
-
const c =
|
|
1195
|
+
const c = Un(e, t + 1, s);
|
|
1173
1196
|
if (c) return c;
|
|
1174
1197
|
}
|
|
1175
1198
|
const i = n.validators;
|
|
@@ -1181,63 +1204,63 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
1181
1204
|
if (u.validator(a))
|
|
1182
1205
|
return u.classGroupId;
|
|
1183
1206
|
}
|
|
1184
|
-
},
|
|
1207
|
+
}, No = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
1185
1208
|
const t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
|
|
1186
|
-
return r ?
|
|
1187
|
-
})(),
|
|
1209
|
+
return r ? Oo + r : void 0;
|
|
1210
|
+
})(), Po = (e) => {
|
|
1188
1211
|
const {
|
|
1189
1212
|
theme: t,
|
|
1190
1213
|
classGroups: n
|
|
1191
1214
|
} = e;
|
|
1192
|
-
return
|
|
1193
|
-
},
|
|
1194
|
-
const n =
|
|
1215
|
+
return _o(n, t);
|
|
1216
|
+
}, _o = (e, t) => {
|
|
1217
|
+
const n = zn();
|
|
1195
1218
|
for (const r in e) {
|
|
1196
1219
|
const o = e[r];
|
|
1197
|
-
|
|
1220
|
+
Dt(o, n, r, t);
|
|
1198
1221
|
}
|
|
1199
1222
|
return n;
|
|
1200
|
-
},
|
|
1223
|
+
}, Dt = (e, t, n, r) => {
|
|
1201
1224
|
const o = e.length;
|
|
1202
1225
|
for (let s = 0; s < o; s++) {
|
|
1203
1226
|
const i = e[s];
|
|
1204
|
-
|
|
1227
|
+
$o(i, t, n, r);
|
|
1205
1228
|
}
|
|
1206
|
-
},
|
|
1229
|
+
}, $o = (e, t, n, r) => {
|
|
1207
1230
|
if (typeof e == "string") {
|
|
1208
|
-
|
|
1231
|
+
Io(e, t, n);
|
|
1209
1232
|
return;
|
|
1210
1233
|
}
|
|
1211
1234
|
if (typeof e == "function") {
|
|
1212
|
-
|
|
1235
|
+
Lo(e, t, n, r);
|
|
1213
1236
|
return;
|
|
1214
1237
|
}
|
|
1215
|
-
|
|
1216
|
-
},
|
|
1217
|
-
const r = e === "" ? t :
|
|
1238
|
+
Do(e, t, n, r);
|
|
1239
|
+
}, Io = (e, t, n) => {
|
|
1240
|
+
const r = e === "" ? t : Fn(t, e);
|
|
1218
1241
|
r.classGroupId = n;
|
|
1219
|
-
},
|
|
1220
|
-
if (
|
|
1221
|
-
|
|
1242
|
+
}, Lo = (e, t, n, r) => {
|
|
1243
|
+
if (Mo(e)) {
|
|
1244
|
+
Dt(e(r), t, n, r);
|
|
1222
1245
|
return;
|
|
1223
1246
|
}
|
|
1224
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
1225
|
-
},
|
|
1247
|
+
t.validators === null && (t.validators = []), t.validators.push(To(n, e));
|
|
1248
|
+
}, Do = (e, t, n, r) => {
|
|
1226
1249
|
const o = Object.entries(e), s = o.length;
|
|
1227
1250
|
for (let i = 0; i < s; i++) {
|
|
1228
1251
|
const [a, l] = o[i];
|
|
1229
|
-
|
|
1252
|
+
Dt(l, Fn(t, a), n, r);
|
|
1230
1253
|
}
|
|
1231
|
-
},
|
|
1254
|
+
}, Fn = (e, t) => {
|
|
1232
1255
|
let n = e;
|
|
1233
1256
|
const r = t.split(it), o = r.length;
|
|
1234
1257
|
for (let s = 0; s < o; s++) {
|
|
1235
1258
|
const i = r[s];
|
|
1236
1259
|
let a = n.nextPart.get(i);
|
|
1237
|
-
a || (a =
|
|
1260
|
+
a || (a = zn(), n.nextPart.set(i, a)), n = a;
|
|
1238
1261
|
}
|
|
1239
1262
|
return n;
|
|
1240
|
-
},
|
|
1263
|
+
}, Mo = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, zo = (e) => {
|
|
1241
1264
|
if (e < 1)
|
|
1242
1265
|
return {
|
|
1243
1266
|
get: () => {
|
|
@@ -1261,13 +1284,13 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
1261
1284
|
s in n ? n[s] = i : o(s, i);
|
|
1262
1285
|
}
|
|
1263
1286
|
};
|
|
1264
|
-
}, Ct = "!",
|
|
1287
|
+
}, Ct = "!", rn = ":", Uo = [], on = (e, t, n, r, o) => ({
|
|
1265
1288
|
modifiers: e,
|
|
1266
1289
|
hasImportantModifier: t,
|
|
1267
1290
|
baseClassName: n,
|
|
1268
1291
|
maybePostfixModifierPosition: r,
|
|
1269
1292
|
isExternal: o
|
|
1270
|
-
}),
|
|
1293
|
+
}), Fo = (e) => {
|
|
1271
1294
|
const {
|
|
1272
1295
|
prefix: t,
|
|
1273
1296
|
experimentalParseClassName: n
|
|
@@ -1279,7 +1302,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
1279
1302
|
for (let b = 0; b < u; b++) {
|
|
1280
1303
|
const w = o[b];
|
|
1281
1304
|
if (i === 0 && a === 0) {
|
|
1282
|
-
if (w ===
|
|
1305
|
+
if (w === rn) {
|
|
1283
1306
|
s.push(o.slice(l, b)), l = b + 1;
|
|
1284
1307
|
continue;
|
|
1285
1308
|
}
|
|
@@ -1291,20 +1314,20 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
1291
1314
|
w === "[" ? i++ : w === "]" ? i-- : w === "(" ? a++ : w === ")" && a--;
|
|
1292
1315
|
}
|
|
1293
1316
|
const d = s.length === 0 ? o : o.slice(l);
|
|
1294
|
-
let
|
|
1295
|
-
d.endsWith(Ct) ? (
|
|
1317
|
+
let m = d, p = !1;
|
|
1318
|
+
d.endsWith(Ct) ? (m = d.slice(0, -1), p = !0) : (
|
|
1296
1319
|
/**
|
|
1297
1320
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
1298
1321
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
1299
1322
|
*/
|
|
1300
|
-
d.startsWith(Ct) && (
|
|
1323
|
+
d.startsWith(Ct) && (m = d.slice(1), p = !0)
|
|
1301
1324
|
);
|
|
1302
1325
|
const g = c && c > l ? c - l : void 0;
|
|
1303
|
-
return
|
|
1326
|
+
return on(s, p, m, g);
|
|
1304
1327
|
};
|
|
1305
1328
|
if (t) {
|
|
1306
|
-
const o = t +
|
|
1307
|
-
r = (i) => i.startsWith(o) ? s(i.slice(o.length)) :
|
|
1329
|
+
const o = t + rn, s = r;
|
|
1330
|
+
r = (i) => i.startsWith(o) ? s(i.slice(o.length)) : on(Uo, !1, i, void 0, !0);
|
|
1308
1331
|
}
|
|
1309
1332
|
if (n) {
|
|
1310
1333
|
const o = r;
|
|
@@ -1314,7 +1337,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
1314
1337
|
});
|
|
1315
1338
|
}
|
|
1316
1339
|
return r;
|
|
1317
|
-
},
|
|
1340
|
+
}, Go = (e) => {
|
|
1318
1341
|
const t = /* @__PURE__ */ new Map();
|
|
1319
1342
|
return e.orderSensitiveModifiers.forEach((n, r) => {
|
|
1320
1343
|
t.set(n, 1e6 + r);
|
|
@@ -1327,36 +1350,36 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
1327
1350
|
}
|
|
1328
1351
|
return o.length > 0 && (o.sort(), r.push(...o)), r;
|
|
1329
1352
|
};
|
|
1330
|
-
},
|
|
1331
|
-
cache:
|
|
1332
|
-
parseClassName:
|
|
1333
|
-
sortModifiers:
|
|
1334
|
-
postfixLookupClassGroupIds:
|
|
1335
|
-
...
|
|
1336
|
-
}),
|
|
1353
|
+
}, Wo = (e) => ({
|
|
1354
|
+
cache: zo(e.cacheSize),
|
|
1355
|
+
parseClassName: Fo(e),
|
|
1356
|
+
sortModifiers: Go(e),
|
|
1357
|
+
postfixLookupClassGroupIds: Ho(e),
|
|
1358
|
+
...ko(e)
|
|
1359
|
+
}), Ho = (e) => {
|
|
1337
1360
|
const t = /* @__PURE__ */ Object.create(null), n = e.postfixLookupClassGroups;
|
|
1338
1361
|
if (n)
|
|
1339
1362
|
for (let r = 0; r < n.length; r++)
|
|
1340
1363
|
t[n[r]] = !0;
|
|
1341
1364
|
return t;
|
|
1342
|
-
},
|
|
1365
|
+
}, Vo = /\s+/, Bo = (e, t) => {
|
|
1343
1366
|
const {
|
|
1344
1367
|
parseClassName: n,
|
|
1345
1368
|
getClassGroupId: r,
|
|
1346
1369
|
getConflictingClassGroupIds: o,
|
|
1347
1370
|
sortModifiers: s,
|
|
1348
1371
|
postfixLookupClassGroupIds: i
|
|
1349
|
-
} = t, a = [], l = e.trim().split(
|
|
1372
|
+
} = t, a = [], l = e.trim().split(Vo);
|
|
1350
1373
|
let c = "";
|
|
1351
1374
|
for (let u = l.length - 1; u >= 0; u -= 1) {
|
|
1352
1375
|
const d = l[u], {
|
|
1353
|
-
isExternal:
|
|
1354
|
-
modifiers:
|
|
1376
|
+
isExternal: m,
|
|
1377
|
+
modifiers: p,
|
|
1355
1378
|
hasImportantModifier: g,
|
|
1356
1379
|
baseClassName: b,
|
|
1357
1380
|
maybePostfixModifierPosition: w
|
|
1358
1381
|
} = n(d);
|
|
1359
|
-
if (
|
|
1382
|
+
if (m) {
|
|
1360
1383
|
c = d + (c.length > 0 ? " " + c : c);
|
|
1361
1384
|
continue;
|
|
1362
1385
|
}
|
|
@@ -1379,7 +1402,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
1379
1402
|
}
|
|
1380
1403
|
y = !1;
|
|
1381
1404
|
}
|
|
1382
|
-
const O =
|
|
1405
|
+
const O = p.length === 0 ? "" : p.length === 1 ? p[0] : s(p).join(":"), S = g ? O + Ct : O, k = S + E;
|
|
1383
1406
|
if (a.indexOf(k) > -1)
|
|
1384
1407
|
continue;
|
|
1385
1408
|
a.push(k);
|
|
@@ -1391,47 +1414,47 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
1391
1414
|
c = d + (c.length > 0 ? " " + c : c);
|
|
1392
1415
|
}
|
|
1393
1416
|
return c;
|
|
1394
|
-
},
|
|
1417
|
+
}, jo = (...e) => {
|
|
1395
1418
|
let t = 0, n, r, o = "";
|
|
1396
1419
|
for (; t < e.length; )
|
|
1397
|
-
(n = e[t++]) && (r =
|
|
1420
|
+
(n = e[t++]) && (r = Gn(n)) && (o && (o += " "), o += r);
|
|
1398
1421
|
return o;
|
|
1399
|
-
},
|
|
1422
|
+
}, Gn = (e) => {
|
|
1400
1423
|
if (typeof e == "string")
|
|
1401
1424
|
return e;
|
|
1402
1425
|
let t, n = "";
|
|
1403
1426
|
for (let r = 0; r < e.length; r++)
|
|
1404
|
-
e[r] && (t =
|
|
1427
|
+
e[r] && (t = Gn(e[r])) && (n && (n += " "), n += t);
|
|
1405
1428
|
return n;
|
|
1406
|
-
},
|
|
1429
|
+
}, Yo = (e, ...t) => {
|
|
1407
1430
|
let n, r, o, s;
|
|
1408
1431
|
const i = (l) => {
|
|
1409
1432
|
const c = t.reduce((u, d) => d(u), e());
|
|
1410
|
-
return n =
|
|
1433
|
+
return n = Wo(c), r = n.cache.get, o = n.cache.set, s = a, a(l);
|
|
1411
1434
|
}, a = (l) => {
|
|
1412
1435
|
const c = r(l);
|
|
1413
1436
|
if (c)
|
|
1414
1437
|
return c;
|
|
1415
|
-
const u =
|
|
1438
|
+
const u = Bo(l, n);
|
|
1416
1439
|
return o(l, u), u;
|
|
1417
1440
|
};
|
|
1418
|
-
return s = i, (...l) => s(
|
|
1419
|
-
},
|
|
1420
|
-
const t = (n) => n[e] ||
|
|
1441
|
+
return s = i, (...l) => s(jo(...l));
|
|
1442
|
+
}, Xo = [], V = (e) => {
|
|
1443
|
+
const t = (n) => n[e] || Xo;
|
|
1421
1444
|
return t.isThemeGetter = !0, t;
|
|
1422
|
-
},
|
|
1445
|
+
}, Wn = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Hn = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ko = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, qo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Jo = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Zo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Qo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, es = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, pe = (e) => Ko.test(e), P = (e) => !!e && !Number.isNaN(Number(e)), re = (e) => !!e && Number.isInteger(Number(e)), xt = (e) => e.endsWith("%") && P(e.slice(0, -1)), le = (e) => qo.test(e), Vn = () => !0, ts = (e) => (
|
|
1423
1446
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1424
1447
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1425
1448
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1426
|
-
|
|
1427
|
-
),
|
|
1428
|
-
const r =
|
|
1449
|
+
Jo.test(e) && !Zo.test(e)
|
|
1450
|
+
), Mt = () => !1, ns = (e) => Qo.test(e), rs = (e) => es.test(e), os = (e) => !A(e) && !R(e), ss = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), is = (e) => we(e, Yn, Mt), A = (e) => Wn.test(e), ve = (e) => we(e, Xn, ts), sn = (e) => we(e, ps, P), as = (e) => we(e, qn, Vn), ls = (e) => we(e, Kn, Mt), an = (e) => we(e, Bn, Mt), cs = (e) => we(e, jn, rs), Ze = (e) => we(e, Jn, ns), R = (e) => Hn.test(e), We = (e) => Te(e, Xn), ds = (e) => Te(e, Kn), ln = (e) => Te(e, Bn), us = (e) => Te(e, Yn), fs = (e) => Te(e, jn), Qe = (e) => Te(e, Jn, !0), ms = (e) => Te(e, qn, !0), we = (e, t, n) => {
|
|
1451
|
+
const r = Wn.exec(e);
|
|
1429
1452
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
1430
1453
|
}, Te = (e, t, n = !1) => {
|
|
1431
|
-
const r =
|
|
1454
|
+
const r = Hn.exec(e);
|
|
1432
1455
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
1433
|
-
},
|
|
1434
|
-
const e = V("color"), t = V("font"), n = V("text"), r = V("font-weight"), o = V("tracking"), s = V("leading"), i = V("breakpoint"), a = V("container"), l = V("spacing"), c = V("radius"), u = V("shadow"), d = V("inset-shadow"),
|
|
1456
|
+
}, Bn = (e) => e === "position" || e === "percentage", jn = (e) => e === "image" || e === "url", Yn = (e) => e === "length" || e === "size" || e === "bg-size", Xn = (e) => e === "length", ps = (e) => e === "number", Kn = (e) => e === "family-name", qn = (e) => e === "number" || e === "weight", Jn = (e) => e === "shadow", gs = () => {
|
|
1457
|
+
const e = V("color"), t = V("font"), n = V("text"), r = V("font-weight"), o = V("tracking"), s = V("leading"), i = V("breakpoint"), a = V("container"), l = V("spacing"), c = V("radius"), u = V("shadow"), d = V("inset-shadow"), m = V("text-shadow"), p = V("drop-shadow"), g = V("blur"), b = V("perspective"), w = V("aspect"), y = V("ease"), E = V("animate"), O = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [
|
|
1435
1458
|
"center",
|
|
1436
1459
|
"top",
|
|
1437
1460
|
"bottom",
|
|
@@ -1449,13 +1472,13 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
1449
1472
|
"bottom-left",
|
|
1450
1473
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1451
1474
|
"left-bottom"
|
|
1452
|
-
], k = () => [...S(), R, A], N = () => ["auto", "hidden", "clip", "visible", "scroll"], T = () => ["auto", "contain", "none"], v = () => [R, A, l], $ = () => [pe, "full", "auto", ...v()],
|
|
1475
|
+
], k = () => [...S(), R, A], N = () => ["auto", "hidden", "clip", "visible", "scroll"], T = () => ["auto", "contain", "none"], v = () => [R, A, l], $ = () => [pe, "full", "auto", ...v()], D = () => [re, "none", "subgrid", R, A], j = () => ["auto", {
|
|
1453
1476
|
span: ["full", re, R, A]
|
|
1454
|
-
}, re, R, A], F = () => [re, "auto", R, A], U = () => ["auto", "min", "max", "fr", R, A],
|
|
1477
|
+
}, re, R, A], F = () => [re, "auto", R, A], U = () => ["auto", "min", "max", "fr", R, A], M = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], G = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], I = () => ["auto", ...v()], L = () => [pe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...v()], _ = () => [pe, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...v()], W = () => [pe, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...v()], C = () => [e, R, A], ze = () => [...S(), ln, an, {
|
|
1455
1478
|
position: [R, A]
|
|
1456
1479
|
}], Ye = () => ["no-repeat", {
|
|
1457
1480
|
repeat: ["", "x", "y", "space", "round"]
|
|
1458
|
-
}],
|
|
1481
|
+
}], Xe = () => ["auto", "cover", "contain", us, is, {
|
|
1459
1482
|
size: [R, A]
|
|
1460
1483
|
}], Ue = () => [xt, We, ve], Y = () => [
|
|
1461
1484
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -1465,7 +1488,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
1465
1488
|
c,
|
|
1466
1489
|
R,
|
|
1467
1490
|
A
|
|
1468
|
-
],
|
|
1491
|
+
], X = () => ["", P, We, ve], te = () => ["solid", "dashed", "dotted", "double"], Fe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], H = () => [P, xt, ln, an], Ke = () => [
|
|
1469
1492
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1470
1493
|
"",
|
|
1471
1494
|
"none",
|
|
@@ -1480,11 +1503,11 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
1480
1503
|
aspect: ["video"],
|
|
1481
1504
|
blur: [le],
|
|
1482
1505
|
breakpoint: [le],
|
|
1483
|
-
color: [
|
|
1506
|
+
color: [Vn],
|
|
1484
1507
|
container: [le],
|
|
1485
1508
|
"drop-shadow": [le],
|
|
1486
1509
|
ease: ["in", "out", "in-out"],
|
|
1487
|
-
font: [
|
|
1510
|
+
font: [os],
|
|
1488
1511
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
1489
1512
|
"inset-shadow": [le],
|
|
1490
1513
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -1524,7 +1547,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
1524
1547
|
* Container Name
|
|
1525
1548
|
* @see https://tailwindcss.com/docs/responsive-design#named-containers
|
|
1526
1549
|
*/
|
|
1527
|
-
"container-named": [
|
|
1550
|
+
"container-named": [ss],
|
|
1528
1551
|
/**
|
|
1529
1552
|
* Columns
|
|
1530
1553
|
* @see https://tailwindcss.com/docs/columns
|
|
@@ -1815,7 +1838,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
1815
1838
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
1816
1839
|
*/
|
|
1817
1840
|
"grid-cols": [{
|
|
1818
|
-
"grid-cols":
|
|
1841
|
+
"grid-cols": D()
|
|
1819
1842
|
}],
|
|
1820
1843
|
/**
|
|
1821
1844
|
* Grid Column Start / End
|
|
@@ -1843,7 +1866,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
1843
1866
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
1844
1867
|
*/
|
|
1845
1868
|
"grid-rows": [{
|
|
1846
|
-
"grid-rows":
|
|
1869
|
+
"grid-rows": D()
|
|
1847
1870
|
}],
|
|
1848
1871
|
/**
|
|
1849
1872
|
* Grid Row Start / End
|
|
@@ -1913,7 +1936,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
1913
1936
|
* @see https://tailwindcss.com/docs/justify-content
|
|
1914
1937
|
*/
|
|
1915
1938
|
"justify-content": [{
|
|
1916
|
-
justify: [...
|
|
1939
|
+
justify: [...M(), "normal"]
|
|
1917
1940
|
}],
|
|
1918
1941
|
/**
|
|
1919
1942
|
* Justify Items
|
|
@@ -1934,7 +1957,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
1934
1957
|
* @see https://tailwindcss.com/docs/align-content
|
|
1935
1958
|
*/
|
|
1936
1959
|
"align-content": [{
|
|
1937
|
-
content: ["normal", ...
|
|
1960
|
+
content: ["normal", ...M()]
|
|
1938
1961
|
}],
|
|
1939
1962
|
/**
|
|
1940
1963
|
* Align Items
|
|
@@ -1959,7 +1982,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
1959
1982
|
* @see https://tailwindcss.com/docs/place-content
|
|
1960
1983
|
*/
|
|
1961
1984
|
"place-content": [{
|
|
1962
|
-
"place-content":
|
|
1985
|
+
"place-content": M()
|
|
1963
1986
|
}],
|
|
1964
1987
|
/**
|
|
1965
1988
|
* Place Items
|
|
@@ -2290,7 +2313,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
2290
2313
|
* @see https://tailwindcss.com/docs/font-weight
|
|
2291
2314
|
*/
|
|
2292
2315
|
"font-weight": [{
|
|
2293
|
-
font: [r,
|
|
2316
|
+
font: [r, ms, as]
|
|
2294
2317
|
}],
|
|
2295
2318
|
/**
|
|
2296
2319
|
* Font Stretch
|
|
@@ -2304,7 +2327,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
2304
2327
|
* @see https://tailwindcss.com/docs/font-family
|
|
2305
2328
|
*/
|
|
2306
2329
|
"font-family": [{
|
|
2307
|
-
font: [
|
|
2330
|
+
font: [ds, ls, t]
|
|
2308
2331
|
}],
|
|
2309
2332
|
/**
|
|
2310
2333
|
* Font Feature Settings
|
|
@@ -2355,7 +2378,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
2355
2378
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
2356
2379
|
*/
|
|
2357
2380
|
"line-clamp": [{
|
|
2358
|
-
"line-clamp": [P, "none", R,
|
|
2381
|
+
"line-clamp": [P, "none", R, sn]
|
|
2359
2382
|
}],
|
|
2360
2383
|
/**
|
|
2361
2384
|
* Line Height
|
|
@@ -2560,7 +2583,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
2560
2583
|
* @see https://tailwindcss.com/docs/background-size
|
|
2561
2584
|
*/
|
|
2562
2585
|
"bg-size": [{
|
|
2563
|
-
bg:
|
|
2586
|
+
bg: Xe()
|
|
2564
2587
|
}],
|
|
2565
2588
|
/**
|
|
2566
2589
|
* Background Image
|
|
@@ -2573,7 +2596,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
2573
2596
|
}, re, R, A],
|
|
2574
2597
|
radial: ["", R, A],
|
|
2575
2598
|
conic: [re, R, A]
|
|
2576
|
-
},
|
|
2599
|
+
}, fs, cs]
|
|
2577
2600
|
}],
|
|
2578
2601
|
/**
|
|
2579
2602
|
* Background Color
|
|
@@ -2737,84 +2760,84 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
2737
2760
|
* @see https://tailwindcss.com/docs/border-width
|
|
2738
2761
|
*/
|
|
2739
2762
|
"border-w": [{
|
|
2740
|
-
border:
|
|
2763
|
+
border: X()
|
|
2741
2764
|
}],
|
|
2742
2765
|
/**
|
|
2743
2766
|
* Border Width Inline
|
|
2744
2767
|
* @see https://tailwindcss.com/docs/border-width
|
|
2745
2768
|
*/
|
|
2746
2769
|
"border-w-x": [{
|
|
2747
|
-
"border-x":
|
|
2770
|
+
"border-x": X()
|
|
2748
2771
|
}],
|
|
2749
2772
|
/**
|
|
2750
2773
|
* Border Width Block
|
|
2751
2774
|
* @see https://tailwindcss.com/docs/border-width
|
|
2752
2775
|
*/
|
|
2753
2776
|
"border-w-y": [{
|
|
2754
|
-
"border-y":
|
|
2777
|
+
"border-y": X()
|
|
2755
2778
|
}],
|
|
2756
2779
|
/**
|
|
2757
2780
|
* Border Width Inline Start
|
|
2758
2781
|
* @see https://tailwindcss.com/docs/border-width
|
|
2759
2782
|
*/
|
|
2760
2783
|
"border-w-s": [{
|
|
2761
|
-
"border-s":
|
|
2784
|
+
"border-s": X()
|
|
2762
2785
|
}],
|
|
2763
2786
|
/**
|
|
2764
2787
|
* Border Width Inline End
|
|
2765
2788
|
* @see https://tailwindcss.com/docs/border-width
|
|
2766
2789
|
*/
|
|
2767
2790
|
"border-w-e": [{
|
|
2768
|
-
"border-e":
|
|
2791
|
+
"border-e": X()
|
|
2769
2792
|
}],
|
|
2770
2793
|
/**
|
|
2771
2794
|
* Border Width Block Start
|
|
2772
2795
|
* @see https://tailwindcss.com/docs/border-width
|
|
2773
2796
|
*/
|
|
2774
2797
|
"border-w-bs": [{
|
|
2775
|
-
"border-bs":
|
|
2798
|
+
"border-bs": X()
|
|
2776
2799
|
}],
|
|
2777
2800
|
/**
|
|
2778
2801
|
* Border Width Block End
|
|
2779
2802
|
* @see https://tailwindcss.com/docs/border-width
|
|
2780
2803
|
*/
|
|
2781
2804
|
"border-w-be": [{
|
|
2782
|
-
"border-be":
|
|
2805
|
+
"border-be": X()
|
|
2783
2806
|
}],
|
|
2784
2807
|
/**
|
|
2785
2808
|
* Border Width Top
|
|
2786
2809
|
* @see https://tailwindcss.com/docs/border-width
|
|
2787
2810
|
*/
|
|
2788
2811
|
"border-w-t": [{
|
|
2789
|
-
"border-t":
|
|
2812
|
+
"border-t": X()
|
|
2790
2813
|
}],
|
|
2791
2814
|
/**
|
|
2792
2815
|
* Border Width Right
|
|
2793
2816
|
* @see https://tailwindcss.com/docs/border-width
|
|
2794
2817
|
*/
|
|
2795
2818
|
"border-w-r": [{
|
|
2796
|
-
"border-r":
|
|
2819
|
+
"border-r": X()
|
|
2797
2820
|
}],
|
|
2798
2821
|
/**
|
|
2799
2822
|
* Border Width Bottom
|
|
2800
2823
|
* @see https://tailwindcss.com/docs/border-width
|
|
2801
2824
|
*/
|
|
2802
2825
|
"border-w-b": [{
|
|
2803
|
-
"border-b":
|
|
2826
|
+
"border-b": X()
|
|
2804
2827
|
}],
|
|
2805
2828
|
/**
|
|
2806
2829
|
* Border Width Left
|
|
2807
2830
|
* @see https://tailwindcss.com/docs/border-width
|
|
2808
2831
|
*/
|
|
2809
2832
|
"border-w-l": [{
|
|
2810
|
-
"border-l":
|
|
2833
|
+
"border-l": X()
|
|
2811
2834
|
}],
|
|
2812
2835
|
/**
|
|
2813
2836
|
* Divide Width X
|
|
2814
2837
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2815
2838
|
*/
|
|
2816
2839
|
"divide-x": [{
|
|
2817
|
-
"divide-x":
|
|
2840
|
+
"divide-x": X()
|
|
2818
2841
|
}],
|
|
2819
2842
|
/**
|
|
2820
2843
|
* Divide Width X Reverse
|
|
@@ -2826,7 +2849,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
2826
2849
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2827
2850
|
*/
|
|
2828
2851
|
"divide-y": [{
|
|
2829
|
-
"divide-y":
|
|
2852
|
+
"divide-y": X()
|
|
2830
2853
|
}],
|
|
2831
2854
|
/**
|
|
2832
2855
|
* Divide Width Y Reverse
|
|
@@ -3002,7 +3025,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
3002
3025
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
3003
3026
|
*/
|
|
3004
3027
|
"ring-w": [{
|
|
3005
|
-
ring:
|
|
3028
|
+
ring: X()
|
|
3006
3029
|
}],
|
|
3007
3030
|
/**
|
|
3008
3031
|
* Ring Width Inset
|
|
@@ -3041,7 +3064,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
3041
3064
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
3042
3065
|
*/
|
|
3043
3066
|
"inset-ring-w": [{
|
|
3044
|
-
"inset-ring":
|
|
3067
|
+
"inset-ring": X()
|
|
3045
3068
|
}],
|
|
3046
3069
|
/**
|
|
3047
3070
|
* Inset Ring Color
|
|
@@ -3055,7 +3078,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
3055
3078
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
3056
3079
|
*/
|
|
3057
3080
|
"text-shadow": [{
|
|
3058
|
-
"text-shadow": ["none",
|
|
3081
|
+
"text-shadow": ["none", m, Qe, Ze]
|
|
3059
3082
|
}],
|
|
3060
3083
|
/**
|
|
3061
3084
|
* Text Shadow Color
|
|
@@ -3265,7 +3288,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
3265
3288
|
* @see https://tailwindcss.com/docs/mask-size
|
|
3266
3289
|
*/
|
|
3267
3290
|
"mask-size": [{
|
|
3268
|
-
mask:
|
|
3291
|
+
mask: Xe()
|
|
3269
3292
|
}],
|
|
3270
3293
|
/**
|
|
3271
3294
|
* Mask Type
|
|
@@ -3302,7 +3325,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
3302
3325
|
* @see https://tailwindcss.com/docs/blur
|
|
3303
3326
|
*/
|
|
3304
3327
|
blur: [{
|
|
3305
|
-
blur:
|
|
3328
|
+
blur: Ke()
|
|
3306
3329
|
}],
|
|
3307
3330
|
/**
|
|
3308
3331
|
* Brightness
|
|
@@ -3327,7 +3350,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
3327
3350
|
// Deprecated since Tailwind CSS v4.0.0
|
|
3328
3351
|
"",
|
|
3329
3352
|
"none",
|
|
3330
|
-
|
|
3353
|
+
p,
|
|
3331
3354
|
Qe,
|
|
3332
3355
|
Ze
|
|
3333
3356
|
]
|
|
@@ -3392,7 +3415,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
3392
3415
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
3393
3416
|
*/
|
|
3394
3417
|
"backdrop-blur": [{
|
|
3395
|
-
"backdrop-blur":
|
|
3418
|
+
"backdrop-blur": Ke()
|
|
3396
3419
|
}],
|
|
3397
3420
|
/**
|
|
3398
3421
|
* Backdrop Brightness
|
|
@@ -4038,7 +4061,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
4038
4061
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
4039
4062
|
*/
|
|
4040
4063
|
"stroke-w": [{
|
|
4041
|
-
stroke: [P, We, ve,
|
|
4064
|
+
stroke: [P, We, ve, sn]
|
|
4042
4065
|
}],
|
|
4043
4066
|
/**
|
|
4044
4067
|
* Stroke
|
|
@@ -4115,11 +4138,11 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, w
|
|
|
4115
4138
|
postfixLookupClassGroups: ["container-type"],
|
|
4116
4139
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
4117
4140
|
};
|
|
4118
|
-
},
|
|
4141
|
+
}, hs = /* @__PURE__ */ Yo(gs);
|
|
4119
4142
|
function xe(...e) {
|
|
4120
|
-
return
|
|
4143
|
+
return hs(Mn(e));
|
|
4121
4144
|
}
|
|
4122
|
-
const
|
|
4145
|
+
const bs = Co(
|
|
4123
4146
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
4124
4147
|
{
|
|
4125
4148
|
variants: {
|
|
@@ -4143,16 +4166,16 @@ const us = wo(
|
|
|
4143
4166
|
size: "default"
|
|
4144
4167
|
}
|
|
4145
4168
|
}
|
|
4146
|
-
),
|
|
4147
|
-
r ?
|
|
4169
|
+
), ys = f.forwardRef(({ className: e, variant: t, size: n, asChild: r = !1, ...o }, s) => /* @__PURE__ */ x(
|
|
4170
|
+
r ? wo : "button",
|
|
4148
4171
|
{
|
|
4149
|
-
className: xe(
|
|
4172
|
+
className: xe(bs({ variant: t, size: n, className: e })),
|
|
4150
4173
|
ref: s,
|
|
4151
4174
|
...o
|
|
4152
4175
|
}
|
|
4153
4176
|
));
|
|
4154
|
-
|
|
4155
|
-
const
|
|
4177
|
+
ys.displayName = "Button";
|
|
4178
|
+
const ws = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
4156
4179
|
"div",
|
|
4157
4180
|
{
|
|
4158
4181
|
ref: n,
|
|
@@ -4160,8 +4183,8 @@ const ms = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
|
4160
4183
|
...t
|
|
4161
4184
|
}
|
|
4162
4185
|
));
|
|
4163
|
-
|
|
4164
|
-
const
|
|
4186
|
+
ws.displayName = "Card";
|
|
4187
|
+
const xs = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
4165
4188
|
"div",
|
|
4166
4189
|
{
|
|
4167
4190
|
ref: n,
|
|
@@ -4169,8 +4192,8 @@ const ps = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
|
4169
4192
|
...t
|
|
4170
4193
|
}
|
|
4171
4194
|
));
|
|
4172
|
-
|
|
4173
|
-
const
|
|
4195
|
+
xs.displayName = "CardHeader";
|
|
4196
|
+
const vs = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
4174
4197
|
"div",
|
|
4175
4198
|
{
|
|
4176
4199
|
ref: n,
|
|
@@ -4178,8 +4201,8 @@ const gs = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
|
4178
4201
|
...t
|
|
4179
4202
|
}
|
|
4180
4203
|
));
|
|
4181
|
-
|
|
4182
|
-
const
|
|
4204
|
+
vs.displayName = "CardTitle";
|
|
4205
|
+
const Es = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
4183
4206
|
"div",
|
|
4184
4207
|
{
|
|
4185
4208
|
ref: n,
|
|
@@ -4187,10 +4210,10 @@ const hs = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
|
4187
4210
|
...t
|
|
4188
4211
|
}
|
|
4189
4212
|
));
|
|
4190
|
-
|
|
4191
|
-
const
|
|
4192
|
-
|
|
4193
|
-
const
|
|
4213
|
+
Es.displayName = "CardDescription";
|
|
4214
|
+
const As = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ x("div", { ref: n, className: xe("p-6 pt-0", e), ...t }));
|
|
4215
|
+
As.displayName = "CardContent";
|
|
4216
|
+
const Rs = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
4194
4217
|
"div",
|
|
4195
4218
|
{
|
|
4196
4219
|
ref: n,
|
|
@@ -4198,25 +4221,25 @@ const ys = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
|
4198
4221
|
...t
|
|
4199
4222
|
}
|
|
4200
4223
|
));
|
|
4201
|
-
|
|
4224
|
+
Rs.displayName = "CardFooter";
|
|
4202
4225
|
function ce(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
4203
4226
|
return function(o) {
|
|
4204
4227
|
if (e?.(o), n === !1 || !o.defaultPrevented)
|
|
4205
4228
|
return t?.(o);
|
|
4206
4229
|
};
|
|
4207
4230
|
}
|
|
4208
|
-
function
|
|
4231
|
+
function Zn(e, t = []) {
|
|
4209
4232
|
let n = [];
|
|
4210
4233
|
function r(s, i) {
|
|
4211
4234
|
const a = f.createContext(i), l = n.length;
|
|
4212
4235
|
n = [...n, i];
|
|
4213
4236
|
const c = (d) => {
|
|
4214
|
-
const { scope:
|
|
4215
|
-
return /* @__PURE__ */ x(b.Provider, { value: w, children:
|
|
4237
|
+
const { scope: m, children: p, ...g } = d, b = m?.[e]?.[l] || a, w = f.useMemo(() => g, Object.values(g));
|
|
4238
|
+
return /* @__PURE__ */ x(b.Provider, { value: w, children: p });
|
|
4216
4239
|
};
|
|
4217
4240
|
c.displayName = s + "Provider";
|
|
4218
|
-
function u(d,
|
|
4219
|
-
const
|
|
4241
|
+
function u(d, m) {
|
|
4242
|
+
const p = m?.[e]?.[l] || a, g = f.useContext(p);
|
|
4220
4243
|
if (g) return g;
|
|
4221
4244
|
if (i !== void 0) return i;
|
|
4222
4245
|
throw new Error(`\`${d}\` must be used within \`${s}\``);
|
|
@@ -4233,9 +4256,9 @@ function Kn(e, t = []) {
|
|
|
4233
4256
|
);
|
|
4234
4257
|
};
|
|
4235
4258
|
};
|
|
4236
|
-
return o.scopeName = e, [r,
|
|
4259
|
+
return o.scopeName = e, [r, Cs(o, ...t)];
|
|
4237
4260
|
}
|
|
4238
|
-
function
|
|
4261
|
+
function Cs(...e) {
|
|
4239
4262
|
const t = e[0];
|
|
4240
4263
|
if (e.length === 1) return t;
|
|
4241
4264
|
const n = () => {
|
|
@@ -4254,9 +4277,9 @@ function ws(...e) {
|
|
|
4254
4277
|
return n.scopeName = t.scopeName, n;
|
|
4255
4278
|
}
|
|
4256
4279
|
// @__NO_SIDE_EFFECTS__
|
|
4257
|
-
function
|
|
4258
|
-
const t = /* @__PURE__ */
|
|
4259
|
-
const { children: s, ...i } = r, a = f.Children.toArray(s), l = a.find(
|
|
4280
|
+
function Ss(e) {
|
|
4281
|
+
const t = /* @__PURE__ */ Ts(e), n = f.forwardRef((r, o) => {
|
|
4282
|
+
const { children: s, ...i } = r, a = f.Children.toArray(s), l = a.find(ks);
|
|
4260
4283
|
if (l) {
|
|
4261
4284
|
const c = l.props.children, u = a.map((d) => d === l ? f.Children.count(c) > 1 ? f.Children.only(null) : f.isValidElement(c) ? c.props.children : null : d);
|
|
4262
4285
|
return /* @__PURE__ */ x(t, { ...i, ref: o, children: f.isValidElement(c) ? f.cloneElement(c, void 0, u) : null });
|
|
@@ -4266,22 +4289,22 @@ function xs(e) {
|
|
|
4266
4289
|
return n.displayName = `${e}.Slot`, n;
|
|
4267
4290
|
}
|
|
4268
4291
|
// @__NO_SIDE_EFFECTS__
|
|
4269
|
-
function
|
|
4292
|
+
function Ts(e) {
|
|
4270
4293
|
const t = f.forwardRef((n, r) => {
|
|
4271
4294
|
const { children: o, ...s } = n;
|
|
4272
4295
|
if (f.isValidElement(o)) {
|
|
4273
|
-
const i =
|
|
4296
|
+
const i = Ps(o), a = Ns(s, o.props);
|
|
4274
4297
|
return o.type !== f.Fragment && (a.ref = r ? Lt(r, i) : i), f.cloneElement(o, a);
|
|
4275
4298
|
}
|
|
4276
4299
|
return f.Children.count(o) > 1 ? f.Children.only(null) : null;
|
|
4277
4300
|
});
|
|
4278
4301
|
return t.displayName = `${e}.SlotClone`, t;
|
|
4279
4302
|
}
|
|
4280
|
-
var
|
|
4281
|
-
function
|
|
4282
|
-
return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
4303
|
+
var Os = /* @__PURE__ */ Symbol("radix.slottable");
|
|
4304
|
+
function ks(e) {
|
|
4305
|
+
return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Os;
|
|
4283
4306
|
}
|
|
4284
|
-
function
|
|
4307
|
+
function Ns(e, t) {
|
|
4285
4308
|
const n = { ...t };
|
|
4286
4309
|
for (const r in t) {
|
|
4287
4310
|
const o = e[r], s = t[r];
|
|
@@ -4292,11 +4315,11 @@ function Rs(e, t) {
|
|
|
4292
4315
|
}
|
|
4293
4316
|
return { ...e, ...n };
|
|
4294
4317
|
}
|
|
4295
|
-
function
|
|
4318
|
+
function Ps(e) {
|
|
4296
4319
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
4297
4320
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
4298
4321
|
}
|
|
4299
|
-
var
|
|
4322
|
+
var _s = [
|
|
4300
4323
|
"a",
|
|
4301
4324
|
"button",
|
|
4302
4325
|
"div",
|
|
@@ -4314,15 +4337,15 @@ var Ss = [
|
|
|
4314
4337
|
"span",
|
|
4315
4338
|
"svg",
|
|
4316
4339
|
"ul"
|
|
4317
|
-
], Oe =
|
|
4318
|
-
const n = /* @__PURE__ */
|
|
4340
|
+
], Oe = _s.reduce((e, t) => {
|
|
4341
|
+
const n = /* @__PURE__ */ Ss(`Primitive.${t}`), r = f.forwardRef((o, s) => {
|
|
4319
4342
|
const { asChild: i, ...a } = o, l = i ? n : t;
|
|
4320
4343
|
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ x(l, { ...a, ref: s });
|
|
4321
4344
|
});
|
|
4322
4345
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
4323
4346
|
}, {});
|
|
4324
|
-
function
|
|
4325
|
-
e &&
|
|
4347
|
+
function $s(e, t) {
|
|
4348
|
+
e && Cn.flushSync(() => e.dispatchEvent(t));
|
|
4326
4349
|
}
|
|
4327
4350
|
function ut(e) {
|
|
4328
4351
|
const t = f.useRef(e);
|
|
@@ -4330,7 +4353,7 @@ function ut(e) {
|
|
|
4330
4353
|
t.current = e;
|
|
4331
4354
|
}), f.useMemo(() => (...n) => t.current?.(...n), []);
|
|
4332
4355
|
}
|
|
4333
|
-
function
|
|
4356
|
+
function Is(e, t = globalThis?.document) {
|
|
4334
4357
|
const n = ut(e);
|
|
4335
4358
|
f.useEffect(() => {
|
|
4336
4359
|
const r = (o) => {
|
|
@@ -4339,11 +4362,11 @@ function Os(e, t = globalThis?.document) {
|
|
|
4339
4362
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
4340
4363
|
}, [n, t]);
|
|
4341
4364
|
}
|
|
4342
|
-
var
|
|
4365
|
+
var Ls = "DismissableLayer", St = "dismissableLayer.update", Ds = "dismissableLayer.pointerDownOutside", Ms = "dismissableLayer.focusOutside", cn, Qn = f.createContext({
|
|
4343
4366
|
layers: /* @__PURE__ */ new Set(),
|
|
4344
4367
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
4345
4368
|
branches: /* @__PURE__ */ new Set()
|
|
4346
|
-
}),
|
|
4369
|
+
}), er = f.forwardRef(
|
|
4347
4370
|
(e, t) => {
|
|
4348
4371
|
const {
|
|
4349
4372
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -4353,24 +4376,24 @@ var ks = "DismissableLayer", St = "dismissableLayer.update", Ns = "dismissableLa
|
|
|
4353
4376
|
onInteractOutside: i,
|
|
4354
4377
|
onDismiss: a,
|
|
4355
4378
|
...l
|
|
4356
|
-
} = e, c = f.useContext(
|
|
4357
|
-
const v = T.target, $ = [...c.branches].some((
|
|
4379
|
+
} = e, c = f.useContext(Qn), [u, d] = f.useState(null), m = u?.ownerDocument ?? globalThis?.document, [, p] = f.useState({}), g = Se(t, (T) => d(T)), b = Array.from(c.layers), [w] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), y = b.indexOf(w), E = u ? b.indexOf(u) : -1, O = c.layersWithOutsidePointerEventsDisabled.size > 0, S = E >= y, k = Fs((T) => {
|
|
4380
|
+
const v = T.target, $ = [...c.branches].some((D) => D.contains(v));
|
|
4358
4381
|
!S || $ || (o?.(T), i?.(T), T.defaultPrevented || a?.());
|
|
4359
|
-
},
|
|
4382
|
+
}, m), N = Gs((T) => {
|
|
4360
4383
|
const v = T.target;
|
|
4361
|
-
[...c.branches].some((
|
|
4362
|
-
},
|
|
4363
|
-
return
|
|
4384
|
+
[...c.branches].some((D) => D.contains(v)) || (s?.(T), i?.(T), T.defaultPrevented || a?.());
|
|
4385
|
+
}, m);
|
|
4386
|
+
return Is((T) => {
|
|
4364
4387
|
E === c.layers.size - 1 && (r?.(T), !T.defaultPrevented && a && (T.preventDefault(), a()));
|
|
4365
|
-
},
|
|
4388
|
+
}, m), f.useEffect(() => {
|
|
4366
4389
|
if (u)
|
|
4367
|
-
return n && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
4368
|
-
n && c.layersWithOutsidePointerEventsDisabled.size === 1 && (
|
|
4390
|
+
return n && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (cn = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(u)), c.layers.add(u), dn(), () => {
|
|
4391
|
+
n && c.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = cn);
|
|
4369
4392
|
};
|
|
4370
|
-
}, [u,
|
|
4371
|
-
u && (c.layers.delete(u), c.layersWithOutsidePointerEventsDisabled.delete(u),
|
|
4393
|
+
}, [u, m, n, c]), f.useEffect(() => () => {
|
|
4394
|
+
u && (c.layers.delete(u), c.layersWithOutsidePointerEventsDisabled.delete(u), dn());
|
|
4372
4395
|
}, [u, c]), f.useEffect(() => {
|
|
4373
|
-
const T = () =>
|
|
4396
|
+
const T = () => p({});
|
|
4374
4397
|
return document.addEventListener(St, T), () => document.removeEventListener(St, T);
|
|
4375
4398
|
}, []), /* @__PURE__ */ x(
|
|
4376
4399
|
Oe.div,
|
|
@@ -4391,9 +4414,9 @@ var ks = "DismissableLayer", St = "dismissableLayer.update", Ns = "dismissableLa
|
|
|
4391
4414
|
);
|
|
4392
4415
|
}
|
|
4393
4416
|
);
|
|
4394
|
-
|
|
4395
|
-
var
|
|
4396
|
-
const n = f.useContext(
|
|
4417
|
+
er.displayName = Ls;
|
|
4418
|
+
var zs = "DismissableLayerBranch", Us = f.forwardRef((e, t) => {
|
|
4419
|
+
const n = f.useContext(Qn), r = f.useRef(null), o = Se(t, r);
|
|
4397
4420
|
return f.useEffect(() => {
|
|
4398
4421
|
const s = r.current;
|
|
4399
4422
|
if (s)
|
|
@@ -4402,16 +4425,16 @@ var _s = "DismissableLayerBranch", $s = f.forwardRef((e, t) => {
|
|
|
4402
4425
|
};
|
|
4403
4426
|
}, [n.branches]), /* @__PURE__ */ x(Oe.div, { ...e, ref: o });
|
|
4404
4427
|
});
|
|
4405
|
-
|
|
4406
|
-
function
|
|
4428
|
+
Us.displayName = zs;
|
|
4429
|
+
function Fs(e, t = globalThis?.document) {
|
|
4407
4430
|
const n = ut(e), r = f.useRef(!1), o = f.useRef(() => {
|
|
4408
4431
|
});
|
|
4409
4432
|
return f.useEffect(() => {
|
|
4410
4433
|
const s = (a) => {
|
|
4411
4434
|
if (a.target && !r.current) {
|
|
4412
4435
|
let l = function() {
|
|
4413
|
-
|
|
4414
|
-
|
|
4436
|
+
tr(
|
|
4437
|
+
Ds,
|
|
4415
4438
|
n,
|
|
4416
4439
|
c,
|
|
4417
4440
|
{ discrete: !0 }
|
|
@@ -4433,11 +4456,11 @@ function Is(e, t = globalThis?.document) {
|
|
|
4433
4456
|
onPointerDownCapture: () => r.current = !0
|
|
4434
4457
|
};
|
|
4435
4458
|
}
|
|
4436
|
-
function
|
|
4459
|
+
function Gs(e, t = globalThis?.document) {
|
|
4437
4460
|
const n = ut(e), r = f.useRef(!1);
|
|
4438
4461
|
return f.useEffect(() => {
|
|
4439
4462
|
const o = (s) => {
|
|
4440
|
-
s.target && !r.current &&
|
|
4463
|
+
s.target && !r.current && tr(Ms, n, { originalEvent: s }, {
|
|
4441
4464
|
discrete: !1
|
|
4442
4465
|
});
|
|
4443
4466
|
};
|
|
@@ -4447,34 +4470,34 @@ function Ls(e, t = globalThis?.document) {
|
|
|
4447
4470
|
onBlurCapture: () => r.current = !1
|
|
4448
4471
|
};
|
|
4449
4472
|
}
|
|
4450
|
-
function
|
|
4473
|
+
function dn() {
|
|
4451
4474
|
const e = new CustomEvent(St);
|
|
4452
4475
|
document.dispatchEvent(e);
|
|
4453
4476
|
}
|
|
4454
|
-
function
|
|
4477
|
+
function tr(e, t, n, { discrete: r }) {
|
|
4455
4478
|
const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
4456
|
-
t && o.addEventListener(e, t, { once: !0 }), r ?
|
|
4479
|
+
t && o.addEventListener(e, t, { once: !0 }), r ? $s(o, s) : o.dispatchEvent(s);
|
|
4457
4480
|
}
|
|
4458
4481
|
var Ae = globalThis?.document ? f.useLayoutEffect : () => {
|
|
4459
|
-
},
|
|
4460
|
-
}),
|
|
4461
|
-
function
|
|
4462
|
-
const [t, n] = f.useState(
|
|
4482
|
+
}, Ws = f[" useId ".trim().toString()] || (() => {
|
|
4483
|
+
}), Hs = 0;
|
|
4484
|
+
function Vs(e) {
|
|
4485
|
+
const [t, n] = f.useState(Ws());
|
|
4463
4486
|
return Ae(() => {
|
|
4464
|
-
n((r) => r ?? String(
|
|
4487
|
+
n((r) => r ?? String(Hs++));
|
|
4465
4488
|
}, [e]), t ? `radix-${t}` : "";
|
|
4466
4489
|
}
|
|
4467
|
-
const
|
|
4490
|
+
const Bs = ["top", "right", "bottom", "left"], he = Math.min, K = Math.max, at = Math.round, et = Math.floor, se = (e) => ({
|
|
4468
4491
|
x: e,
|
|
4469
4492
|
y: e
|
|
4470
|
-
}),
|
|
4493
|
+
}), js = {
|
|
4471
4494
|
left: "right",
|
|
4472
4495
|
right: "left",
|
|
4473
4496
|
bottom: "top",
|
|
4474
4497
|
top: "bottom"
|
|
4475
4498
|
};
|
|
4476
4499
|
function Tt(e, t, n) {
|
|
4477
|
-
return
|
|
4500
|
+
return K(e, he(t, n));
|
|
4478
4501
|
}
|
|
4479
4502
|
function de(e, t) {
|
|
4480
4503
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -4482,7 +4505,7 @@ function de(e, t) {
|
|
|
4482
4505
|
function ue(e) {
|
|
4483
4506
|
return e.split("-")[0];
|
|
4484
4507
|
}
|
|
4485
|
-
function
|
|
4508
|
+
function De(e) {
|
|
4486
4509
|
return e.split("-")[1];
|
|
4487
4510
|
}
|
|
4488
4511
|
function zt(e) {
|
|
@@ -4498,42 +4521,42 @@ function oe(e) {
|
|
|
4498
4521
|
function Ft(e) {
|
|
4499
4522
|
return zt(oe(e));
|
|
4500
4523
|
}
|
|
4501
|
-
function
|
|
4524
|
+
function Ys(e, t, n) {
|
|
4502
4525
|
n === void 0 && (n = !1);
|
|
4503
|
-
const r =
|
|
4526
|
+
const r = De(e), o = Ft(e), s = Ut(o);
|
|
4504
4527
|
let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
4505
4528
|
return t.reference[s] > t.floating[s] && (i = lt(i)), [i, lt(i)];
|
|
4506
4529
|
}
|
|
4507
|
-
function
|
|
4530
|
+
function Xs(e) {
|
|
4508
4531
|
const t = lt(e);
|
|
4509
4532
|
return [Ot(e), t, Ot(t)];
|
|
4510
4533
|
}
|
|
4511
4534
|
function Ot(e) {
|
|
4512
4535
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
4513
4536
|
}
|
|
4514
|
-
const
|
|
4515
|
-
function
|
|
4537
|
+
const un = ["left", "right"], fn = ["right", "left"], Ks = ["top", "bottom"], qs = ["bottom", "top"];
|
|
4538
|
+
function Js(e, t, n) {
|
|
4516
4539
|
switch (e) {
|
|
4517
4540
|
case "top":
|
|
4518
4541
|
case "bottom":
|
|
4519
|
-
return n ? t ?
|
|
4542
|
+
return n ? t ? fn : un : t ? un : fn;
|
|
4520
4543
|
case "left":
|
|
4521
4544
|
case "right":
|
|
4522
|
-
return t ?
|
|
4545
|
+
return t ? Ks : qs;
|
|
4523
4546
|
default:
|
|
4524
4547
|
return [];
|
|
4525
4548
|
}
|
|
4526
4549
|
}
|
|
4527
|
-
function
|
|
4528
|
-
const o =
|
|
4529
|
-
let s =
|
|
4550
|
+
function Zs(e, t, n, r) {
|
|
4551
|
+
const o = De(e);
|
|
4552
|
+
let s = Js(ue(e), n === "start", r);
|
|
4530
4553
|
return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(Ot)))), s;
|
|
4531
4554
|
}
|
|
4532
4555
|
function lt(e) {
|
|
4533
4556
|
const t = ue(e);
|
|
4534
|
-
return
|
|
4557
|
+
return js[t] + e.slice(t.length);
|
|
4535
4558
|
}
|
|
4536
|
-
function
|
|
4559
|
+
function Qs(e) {
|
|
4537
4560
|
return {
|
|
4538
4561
|
top: 0,
|
|
4539
4562
|
right: 0,
|
|
@@ -4542,8 +4565,8 @@ function Ys(e) {
|
|
|
4542
4565
|
...e
|
|
4543
4566
|
};
|
|
4544
4567
|
}
|
|
4545
|
-
function
|
|
4546
|
-
return typeof e != "number" ?
|
|
4568
|
+
function nr(e) {
|
|
4569
|
+
return typeof e != "number" ? Qs(e) : {
|
|
4547
4570
|
top: e,
|
|
4548
4571
|
right: e,
|
|
4549
4572
|
bottom: e,
|
|
@@ -4568,55 +4591,55 @@ function ct(e) {
|
|
|
4568
4591
|
y: n
|
|
4569
4592
|
};
|
|
4570
4593
|
}
|
|
4571
|
-
function
|
|
4594
|
+
function mn(e, t, n) {
|
|
4572
4595
|
let {
|
|
4573
4596
|
reference: r,
|
|
4574
4597
|
floating: o
|
|
4575
4598
|
} = e;
|
|
4576
|
-
const s = oe(t), i = Ft(t), a = Ut(i), l = ue(t), c = s === "y", u = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2,
|
|
4577
|
-
let
|
|
4599
|
+
const s = oe(t), i = Ft(t), a = Ut(i), l = ue(t), c = s === "y", u = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, m = r[a] / 2 - o[a] / 2;
|
|
4600
|
+
let p;
|
|
4578
4601
|
switch (l) {
|
|
4579
4602
|
case "top":
|
|
4580
|
-
|
|
4603
|
+
p = {
|
|
4581
4604
|
x: u,
|
|
4582
4605
|
y: r.y - o.height
|
|
4583
4606
|
};
|
|
4584
4607
|
break;
|
|
4585
4608
|
case "bottom":
|
|
4586
|
-
|
|
4609
|
+
p = {
|
|
4587
4610
|
x: u,
|
|
4588
4611
|
y: r.y + r.height
|
|
4589
4612
|
};
|
|
4590
4613
|
break;
|
|
4591
4614
|
case "right":
|
|
4592
|
-
|
|
4615
|
+
p = {
|
|
4593
4616
|
x: r.x + r.width,
|
|
4594
4617
|
y: d
|
|
4595
4618
|
};
|
|
4596
4619
|
break;
|
|
4597
4620
|
case "left":
|
|
4598
|
-
|
|
4621
|
+
p = {
|
|
4599
4622
|
x: r.x - o.width,
|
|
4600
4623
|
y: d
|
|
4601
4624
|
};
|
|
4602
4625
|
break;
|
|
4603
4626
|
default:
|
|
4604
|
-
|
|
4627
|
+
p = {
|
|
4605
4628
|
x: r.x,
|
|
4606
4629
|
y: r.y
|
|
4607
4630
|
};
|
|
4608
4631
|
}
|
|
4609
|
-
switch (
|
|
4632
|
+
switch (De(t)) {
|
|
4610
4633
|
case "start":
|
|
4611
|
-
|
|
4634
|
+
p[i] -= m * (n && c ? -1 : 1);
|
|
4612
4635
|
break;
|
|
4613
4636
|
case "end":
|
|
4614
|
-
|
|
4637
|
+
p[i] += m * (n && c ? -1 : 1);
|
|
4615
4638
|
break;
|
|
4616
4639
|
}
|
|
4617
|
-
return
|
|
4640
|
+
return p;
|
|
4618
4641
|
}
|
|
4619
|
-
async function
|
|
4642
|
+
async function ei(e, t) {
|
|
4620
4643
|
var n;
|
|
4621
4644
|
t === void 0 && (t = {});
|
|
4622
4645
|
const {
|
|
@@ -4630,9 +4653,9 @@ async function Ks(e, t) {
|
|
|
4630
4653
|
boundary: c = "clippingAncestors",
|
|
4631
4654
|
rootBoundary: u = "viewport",
|
|
4632
4655
|
elementContext: d = "floating",
|
|
4633
|
-
altBoundary:
|
|
4634
|
-
padding:
|
|
4635
|
-
} = de(t, e), g =
|
|
4656
|
+
altBoundary: m = !1,
|
|
4657
|
+
padding: p = 0
|
|
4658
|
+
} = de(t, e), g = nr(p), w = a[m ? d === "floating" ? "reference" : "floating" : d], y = ct(await s.getClippingRect({
|
|
4636
4659
|
element: (n = await (s.isElement == null ? void 0 : s.isElement(w))) == null || n ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)),
|
|
4637
4660
|
boundary: c,
|
|
4638
4661
|
rootBoundary: u,
|
|
@@ -4661,7 +4684,7 @@ async function Ks(e, t) {
|
|
|
4661
4684
|
right: (k.right - y.right + g.right) / S.x
|
|
4662
4685
|
};
|
|
4663
4686
|
}
|
|
4664
|
-
const
|
|
4687
|
+
const ti = 50, ni = async (e, t, n) => {
|
|
4665
4688
|
const {
|
|
4666
4689
|
placement: r = "bottom",
|
|
4667
4690
|
strategy: o = "absolute",
|
|
@@ -4669,7 +4692,7 @@ const Xs = 50, qs = async (e, t, n) => {
|
|
|
4669
4692
|
platform: i
|
|
4670
4693
|
} = n, a = i.detectOverflow ? i : {
|
|
4671
4694
|
...i,
|
|
4672
|
-
detectOverflow:
|
|
4695
|
+
detectOverflow: ei
|
|
4673
4696
|
}, l = await (i.isRTL == null ? void 0 : i.isRTL(t));
|
|
4674
4697
|
let c = await i.getElementRects({
|
|
4675
4698
|
reference: e,
|
|
@@ -4678,7 +4701,7 @@ const Xs = 50, qs = async (e, t, n) => {
|
|
|
4678
4701
|
}), {
|
|
4679
4702
|
x: u,
|
|
4680
4703
|
y: d
|
|
4681
|
-
} =
|
|
4704
|
+
} = mn(c, r, l), m = r, p = 0;
|
|
4682
4705
|
const g = {};
|
|
4683
4706
|
for (let b = 0; b < s.length; b++) {
|
|
4684
4707
|
const w = s[b];
|
|
@@ -4696,7 +4719,7 @@ const Xs = 50, qs = async (e, t, n) => {
|
|
|
4696
4719
|
x: u,
|
|
4697
4720
|
y: d,
|
|
4698
4721
|
initialPlacement: r,
|
|
4699
|
-
placement:
|
|
4722
|
+
placement: m,
|
|
4700
4723
|
strategy: o,
|
|
4701
4724
|
middlewareData: g,
|
|
4702
4725
|
rects: c,
|
|
@@ -4709,23 +4732,23 @@ const Xs = 50, qs = async (e, t, n) => {
|
|
|
4709
4732
|
u = O ?? u, d = S ?? d, g[y] = {
|
|
4710
4733
|
...g[y],
|
|
4711
4734
|
...k
|
|
4712
|
-
}, N &&
|
|
4735
|
+
}, N && p < ti && (p++, typeof N == "object" && (N.placement && (m = N.placement), N.rects && (c = N.rects === !0 ? await i.getElementRects({
|
|
4713
4736
|
reference: e,
|
|
4714
4737
|
floating: t,
|
|
4715
4738
|
strategy: o
|
|
4716
4739
|
}) : N.rects), {
|
|
4717
4740
|
x: u,
|
|
4718
4741
|
y: d
|
|
4719
|
-
} =
|
|
4742
|
+
} = mn(c, m, l)), b = -1);
|
|
4720
4743
|
}
|
|
4721
4744
|
return {
|
|
4722
4745
|
x: u,
|
|
4723
4746
|
y: d,
|
|
4724
|
-
placement:
|
|
4747
|
+
placement: m,
|
|
4725
4748
|
strategy: o,
|
|
4726
4749
|
middlewareData: g
|
|
4727
4750
|
};
|
|
4728
|
-
},
|
|
4751
|
+
}, ri = (e) => ({
|
|
4729
4752
|
name: "arrow",
|
|
4730
4753
|
options: e,
|
|
4731
4754
|
async fn(t) {
|
|
@@ -4743,18 +4766,18 @@ const Xs = 50, qs = async (e, t, n) => {
|
|
|
4743
4766
|
} = de(e, t) || {};
|
|
4744
4767
|
if (c == null)
|
|
4745
4768
|
return {};
|
|
4746
|
-
const d =
|
|
4769
|
+
const d = nr(u), m = {
|
|
4747
4770
|
x: n,
|
|
4748
4771
|
y: r
|
|
4749
|
-
},
|
|
4772
|
+
}, p = Ft(o), g = Ut(p), b = await i.getDimensions(c), w = p === "y", y = w ? "top" : "left", E = w ? "bottom" : "right", O = w ? "clientHeight" : "clientWidth", S = s.reference[g] + s.reference[p] - m[p] - s.floating[g], k = m[p] - s.reference[p], N = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c));
|
|
4750
4773
|
let T = N ? N[O] : 0;
|
|
4751
4774
|
(!T || !await (i.isElement == null ? void 0 : i.isElement(N))) && (T = a.floating[O] || s.floating[g]);
|
|
4752
|
-
const v = S / 2 - k / 2, $ = T / 2 - b[g] / 2 - 1,
|
|
4775
|
+
const v = S / 2 - k / 2, $ = T / 2 - b[g] / 2 - 1, D = he(d[y], $), j = he(d[E], $), F = D, U = T - b[g] - j, M = T / 2 - b[g] / 2 + v, G = Tt(F, M, U), I = !l.arrow && De(o) != null && M !== G && s.reference[g] / 2 - (M < F ? D : j) - b[g] / 2 < 0, L = I ? M < F ? M - F : M - U : 0;
|
|
4753
4776
|
return {
|
|
4754
|
-
[
|
|
4777
|
+
[p]: m[p] + L,
|
|
4755
4778
|
data: {
|
|
4756
|
-
[
|
|
4757
|
-
centerOffset:
|
|
4779
|
+
[p]: G,
|
|
4780
|
+
centerOffset: M - G - L,
|
|
4758
4781
|
...I && {
|
|
4759
4782
|
alignmentOffset: L
|
|
4760
4783
|
}
|
|
@@ -4762,7 +4785,7 @@ const Xs = 50, qs = async (e, t, n) => {
|
|
|
4762
4785
|
reset: I
|
|
4763
4786
|
};
|
|
4764
4787
|
}
|
|
4765
|
-
}),
|
|
4788
|
+
}), oi = function(e) {
|
|
4766
4789
|
return e === void 0 && (e = {}), {
|
|
4767
4790
|
name: "flip",
|
|
4768
4791
|
options: e,
|
|
@@ -4778,46 +4801,46 @@ const Xs = 50, qs = async (e, t, n) => {
|
|
|
4778
4801
|
} = t, {
|
|
4779
4802
|
mainAxis: u = !0,
|
|
4780
4803
|
crossAxis: d = !0,
|
|
4781
|
-
fallbackPlacements:
|
|
4782
|
-
fallbackStrategy:
|
|
4804
|
+
fallbackPlacements: m,
|
|
4805
|
+
fallbackStrategy: p = "bestFit",
|
|
4783
4806
|
fallbackAxisSideDirection: g = "none",
|
|
4784
4807
|
flipAlignment: b = !0,
|
|
4785
4808
|
...w
|
|
4786
4809
|
} = de(e, t);
|
|
4787
4810
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
4788
4811
|
return {};
|
|
4789
|
-
const y = ue(o), E = oe(a), O = ue(a) === a, S = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), k =
|
|
4790
|
-
!
|
|
4812
|
+
const y = ue(o), E = oe(a), O = ue(a) === a, S = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), k = m || (O || !b ? [lt(a)] : Xs(a)), N = g !== "none";
|
|
4813
|
+
!m && N && k.push(...Zs(a, b, g, S));
|
|
4791
4814
|
const T = [a, ...k], v = await l.detectOverflow(t, w), $ = [];
|
|
4792
|
-
let
|
|
4815
|
+
let D = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
4793
4816
|
if (u && $.push(v[y]), d) {
|
|
4794
|
-
const
|
|
4795
|
-
$.push(v[
|
|
4817
|
+
const M = Ys(o, i, S);
|
|
4818
|
+
$.push(v[M[0]], v[M[1]]);
|
|
4796
4819
|
}
|
|
4797
|
-
if (
|
|
4820
|
+
if (D = [...D, {
|
|
4798
4821
|
placement: o,
|
|
4799
4822
|
overflows: $
|
|
4800
|
-
}], !$.every((
|
|
4823
|
+
}], !$.every((M) => M <= 0)) {
|
|
4801
4824
|
var j, F;
|
|
4802
|
-
const
|
|
4825
|
+
const M = (((j = s.flip) == null ? void 0 : j.index) || 0) + 1, G = T[M];
|
|
4803
4826
|
if (G && (!(d === "alignment" ? E !== oe(G) : !1) || // We leave the current main axis only if every placement on that axis
|
|
4804
4827
|
// overflows the main axis.
|
|
4805
|
-
|
|
4828
|
+
D.every((_) => oe(_.placement) === E ? _.overflows[0] > 0 : !0)))
|
|
4806
4829
|
return {
|
|
4807
4830
|
data: {
|
|
4808
|
-
index:
|
|
4809
|
-
overflows:
|
|
4831
|
+
index: M,
|
|
4832
|
+
overflows: D
|
|
4810
4833
|
},
|
|
4811
4834
|
reset: {
|
|
4812
4835
|
placement: G
|
|
4813
4836
|
}
|
|
4814
4837
|
};
|
|
4815
|
-
let I = (F =
|
|
4838
|
+
let I = (F = D.filter((L) => L.overflows[0] <= 0).sort((L, _) => L.overflows[1] - _.overflows[1])[0]) == null ? void 0 : F.placement;
|
|
4816
4839
|
if (!I)
|
|
4817
|
-
switch (
|
|
4840
|
+
switch (p) {
|
|
4818
4841
|
case "bestFit": {
|
|
4819
4842
|
var U;
|
|
4820
|
-
const L = (U =
|
|
4843
|
+
const L = (U = D.filter((_) => {
|
|
4821
4844
|
if (N) {
|
|
4822
4845
|
const W = oe(_.placement);
|
|
4823
4846
|
return W === E || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -4844,7 +4867,7 @@ const Xs = 50, qs = async (e, t, n) => {
|
|
|
4844
4867
|
}
|
|
4845
4868
|
};
|
|
4846
4869
|
};
|
|
4847
|
-
function
|
|
4870
|
+
function pn(e, t) {
|
|
4848
4871
|
return {
|
|
4849
4872
|
top: e.top - t.height,
|
|
4850
4873
|
right: e.right - t.width,
|
|
@@ -4852,10 +4875,10 @@ function fn(e, t) {
|
|
|
4852
4875
|
left: e.left - t.width
|
|
4853
4876
|
};
|
|
4854
4877
|
}
|
|
4855
|
-
function
|
|
4856
|
-
return
|
|
4878
|
+
function gn(e) {
|
|
4879
|
+
return Bs.some((t) => e[t] >= 0);
|
|
4857
4880
|
}
|
|
4858
|
-
const
|
|
4881
|
+
const si = function(e) {
|
|
4859
4882
|
return e === void 0 && (e = {}), {
|
|
4860
4883
|
name: "hide",
|
|
4861
4884
|
options: e,
|
|
@@ -4872,11 +4895,11 @@ const Qs = function(e) {
|
|
|
4872
4895
|
const i = await r.detectOverflow(t, {
|
|
4873
4896
|
...s,
|
|
4874
4897
|
elementContext: "reference"
|
|
4875
|
-
}), a =
|
|
4898
|
+
}), a = pn(i, n.reference);
|
|
4876
4899
|
return {
|
|
4877
4900
|
data: {
|
|
4878
4901
|
referenceHiddenOffsets: a,
|
|
4879
|
-
referenceHidden:
|
|
4902
|
+
referenceHidden: gn(a)
|
|
4880
4903
|
}
|
|
4881
4904
|
};
|
|
4882
4905
|
}
|
|
@@ -4884,11 +4907,11 @@ const Qs = function(e) {
|
|
|
4884
4907
|
const i = await r.detectOverflow(t, {
|
|
4885
4908
|
...s,
|
|
4886
4909
|
altBoundary: !0
|
|
4887
|
-
}), a =
|
|
4910
|
+
}), a = pn(i, n.floating);
|
|
4888
4911
|
return {
|
|
4889
4912
|
data: {
|
|
4890
4913
|
escapedOffsets: a,
|
|
4891
|
-
escaped:
|
|
4914
|
+
escaped: gn(a)
|
|
4892
4915
|
}
|
|
4893
4916
|
};
|
|
4894
4917
|
}
|
|
@@ -4897,16 +4920,16 @@ const Qs = function(e) {
|
|
|
4897
4920
|
}
|
|
4898
4921
|
}
|
|
4899
4922
|
};
|
|
4900
|
-
},
|
|
4901
|
-
async function
|
|
4923
|
+
}, rr = /* @__PURE__ */ new Set(["left", "top"]);
|
|
4924
|
+
async function ii(e, t) {
|
|
4902
4925
|
const {
|
|
4903
4926
|
placement: n,
|
|
4904
4927
|
platform: r,
|
|
4905
4928
|
elements: o
|
|
4906
|
-
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = ue(n), a =
|
|
4929
|
+
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = ue(n), a = De(n), l = oe(n) === "y", c = rr.has(i) ? -1 : 1, u = s && l ? -1 : 1, d = de(t, e);
|
|
4907
4930
|
let {
|
|
4908
|
-
mainAxis:
|
|
4909
|
-
crossAxis:
|
|
4931
|
+
mainAxis: m,
|
|
4932
|
+
crossAxis: p,
|
|
4910
4933
|
alignmentAxis: g
|
|
4911
4934
|
} = typeof d == "number" ? {
|
|
4912
4935
|
mainAxis: d,
|
|
@@ -4917,15 +4940,15 @@ async function ei(e, t) {
|
|
|
4917
4940
|
crossAxis: d.crossAxis || 0,
|
|
4918
4941
|
alignmentAxis: d.alignmentAxis
|
|
4919
4942
|
};
|
|
4920
|
-
return a && typeof g == "number" && (
|
|
4921
|
-
x:
|
|
4922
|
-
y:
|
|
4943
|
+
return a && typeof g == "number" && (p = a === "end" ? g * -1 : g), l ? {
|
|
4944
|
+
x: p * u,
|
|
4945
|
+
y: m * c
|
|
4923
4946
|
} : {
|
|
4924
|
-
x:
|
|
4925
|
-
y:
|
|
4947
|
+
x: m * c,
|
|
4948
|
+
y: p * u
|
|
4926
4949
|
};
|
|
4927
4950
|
}
|
|
4928
|
-
const
|
|
4951
|
+
const ai = function(e) {
|
|
4929
4952
|
return e === void 0 && (e = 0), {
|
|
4930
4953
|
name: "offset",
|
|
4931
4954
|
options: e,
|
|
@@ -4936,7 +4959,7 @@ const ti = function(e) {
|
|
|
4936
4959
|
y: s,
|
|
4937
4960
|
placement: i,
|
|
4938
4961
|
middlewareData: a
|
|
4939
|
-
} = t, l = await
|
|
4962
|
+
} = t, l = await ii(t, e);
|
|
4940
4963
|
return i === ((n = a.offset) == null ? void 0 : n.placement) && (r = a.arrow) != null && r.alignmentOffset ? {} : {
|
|
4941
4964
|
x: o + l.x,
|
|
4942
4965
|
y: s + l.y,
|
|
@@ -4947,7 +4970,7 @@ const ti = function(e) {
|
|
|
4947
4970
|
};
|
|
4948
4971
|
}
|
|
4949
4972
|
};
|
|
4950
|
-
},
|
|
4973
|
+
}, li = function(e) {
|
|
4951
4974
|
return e === void 0 && (e = {}), {
|
|
4952
4975
|
name: "shift",
|
|
4953
4976
|
options: e,
|
|
@@ -4976,20 +4999,20 @@ const ti = function(e) {
|
|
|
4976
4999
|
} = de(e, t), u = {
|
|
4977
5000
|
x: n,
|
|
4978
5001
|
y: r
|
|
4979
|
-
}, d = await s.detectOverflow(t, c),
|
|
4980
|
-
let g = u[
|
|
5002
|
+
}, d = await s.detectOverflow(t, c), m = oe(ue(o)), p = zt(m);
|
|
5003
|
+
let g = u[p], b = u[m];
|
|
4981
5004
|
if (i) {
|
|
4982
|
-
const y =
|
|
5005
|
+
const y = p === "y" ? "top" : "left", E = p === "y" ? "bottom" : "right", O = g + d[y], S = g - d[E];
|
|
4983
5006
|
g = Tt(O, g, S);
|
|
4984
5007
|
}
|
|
4985
5008
|
if (a) {
|
|
4986
|
-
const y =
|
|
5009
|
+
const y = m === "y" ? "top" : "left", E = m === "y" ? "bottom" : "right", O = b + d[y], S = b - d[E];
|
|
4987
5010
|
b = Tt(O, b, S);
|
|
4988
5011
|
}
|
|
4989
5012
|
const w = l.fn({
|
|
4990
5013
|
...t,
|
|
4991
|
-
[
|
|
4992
|
-
[
|
|
5014
|
+
[p]: g,
|
|
5015
|
+
[m]: b
|
|
4993
5016
|
});
|
|
4994
5017
|
return {
|
|
4995
5018
|
...w,
|
|
@@ -4997,14 +5020,14 @@ const ti = function(e) {
|
|
|
4997
5020
|
x: w.x - n,
|
|
4998
5021
|
y: w.y - r,
|
|
4999
5022
|
enabled: {
|
|
5000
|
-
[
|
|
5001
|
-
[
|
|
5023
|
+
[p]: i,
|
|
5024
|
+
[m]: a
|
|
5002
5025
|
}
|
|
5003
5026
|
}
|
|
5004
5027
|
};
|
|
5005
5028
|
}
|
|
5006
5029
|
};
|
|
5007
|
-
},
|
|
5030
|
+
}, ci = function(e) {
|
|
5008
5031
|
return e === void 0 && (e = {}), {
|
|
5009
5032
|
options: e,
|
|
5010
5033
|
fn(t) {
|
|
@@ -5021,8 +5044,8 @@ const ti = function(e) {
|
|
|
5021
5044
|
} = de(e, t), u = {
|
|
5022
5045
|
x: n,
|
|
5023
5046
|
y: r
|
|
5024
|
-
}, d = oe(o),
|
|
5025
|
-
let
|
|
5047
|
+
}, d = oe(o), m = zt(d);
|
|
5048
|
+
let p = u[m], g = u[d];
|
|
5026
5049
|
const b = de(a, t), w = typeof b == "number" ? {
|
|
5027
5050
|
mainAxis: b,
|
|
5028
5051
|
crossAxis: 0
|
|
@@ -5032,21 +5055,21 @@ const ti = function(e) {
|
|
|
5032
5055
|
...b
|
|
5033
5056
|
};
|
|
5034
5057
|
if (l) {
|
|
5035
|
-
const O =
|
|
5036
|
-
|
|
5058
|
+
const O = m === "y" ? "height" : "width", S = s.reference[m] - s.floating[O] + w.mainAxis, k = s.reference[m] + s.reference[O] - w.mainAxis;
|
|
5059
|
+
p < S ? p = S : p > k && (p = k);
|
|
5037
5060
|
}
|
|
5038
5061
|
if (c) {
|
|
5039
5062
|
var y, E;
|
|
5040
|
-
const O =
|
|
5063
|
+
const O = m === "y" ? "width" : "height", S = rr.has(ue(o)), k = s.reference[d] - s.floating[O] + (S && ((y = i.offset) == null ? void 0 : y[d]) || 0) + (S ? 0 : w.crossAxis), N = s.reference[d] + s.reference[O] + (S ? 0 : ((E = i.offset) == null ? void 0 : E[d]) || 0) - (S ? w.crossAxis : 0);
|
|
5041
5064
|
g < k ? g = k : g > N && (g = N);
|
|
5042
5065
|
}
|
|
5043
5066
|
return {
|
|
5044
|
-
[
|
|
5067
|
+
[m]: p,
|
|
5045
5068
|
[d]: g
|
|
5046
5069
|
};
|
|
5047
5070
|
}
|
|
5048
5071
|
};
|
|
5049
|
-
},
|
|
5072
|
+
}, di = function(e) {
|
|
5050
5073
|
return e === void 0 && (e = {}), {
|
|
5051
5074
|
name: "size",
|
|
5052
5075
|
options: e,
|
|
@@ -5061,17 +5084,17 @@ const ti = function(e) {
|
|
|
5061
5084
|
apply: l = () => {
|
|
5062
5085
|
},
|
|
5063
5086
|
...c
|
|
5064
|
-
} = de(e, t), u = await i.detectOverflow(t, c), d = ue(o),
|
|
5087
|
+
} = de(e, t), u = await i.detectOverflow(t, c), d = ue(o), m = De(o), p = oe(o) === "y", {
|
|
5065
5088
|
width: g,
|
|
5066
5089
|
height: b
|
|
5067
5090
|
} = s.floating;
|
|
5068
5091
|
let w, y;
|
|
5069
|
-
d === "top" || d === "bottom" ? (w = d, y =
|
|
5092
|
+
d === "top" || d === "bottom" ? (w = d, y = m === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (y = d, w = m === "end" ? "top" : "bottom");
|
|
5070
5093
|
const E = b - u.top - u.bottom, O = g - u.left - u.right, S = he(b - u[w], E), k = he(g - u[y], O), N = !t.middlewareData.shift;
|
|
5071
5094
|
let T = S, v = k;
|
|
5072
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (v = O), (r = t.middlewareData.shift) != null && r.enabled.y && (T = E), N && !
|
|
5073
|
-
const
|
|
5074
|
-
|
|
5095
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (v = O), (r = t.middlewareData.shift) != null && r.enabled.y && (T = E), N && !m) {
|
|
5096
|
+
const D = K(u.left, 0), j = K(u.right, 0), F = K(u.top, 0), U = K(u.bottom, 0);
|
|
5097
|
+
p ? v = g - 2 * (D !== 0 || j !== 0 ? D + j : K(u.left, u.right)) : T = b - 2 * (F !== 0 || U !== 0 ? F + U : K(u.top, u.bottom));
|
|
5075
5098
|
}
|
|
5076
5099
|
await l({
|
|
5077
5100
|
...t,
|
|
@@ -5090,8 +5113,8 @@ const ti = function(e) {
|
|
|
5090
5113
|
function ft() {
|
|
5091
5114
|
return typeof window < "u";
|
|
5092
5115
|
}
|
|
5093
|
-
function
|
|
5094
|
-
return
|
|
5116
|
+
function Me(e) {
|
|
5117
|
+
return or(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
5095
5118
|
}
|
|
5096
5119
|
function q(e) {
|
|
5097
5120
|
var t;
|
|
@@ -5099,9 +5122,9 @@ function q(e) {
|
|
|
5099
5122
|
}
|
|
5100
5123
|
function ae(e) {
|
|
5101
5124
|
var t;
|
|
5102
|
-
return (t = (
|
|
5125
|
+
return (t = (or(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
5103
5126
|
}
|
|
5104
|
-
function
|
|
5127
|
+
function or(e) {
|
|
5105
5128
|
return ft() ? e instanceof Node || e instanceof q(e).Node : !1;
|
|
5106
5129
|
}
|
|
5107
5130
|
function Q(e) {
|
|
@@ -5110,7 +5133,7 @@ function Q(e) {
|
|
|
5110
5133
|
function fe(e) {
|
|
5111
5134
|
return ft() ? e instanceof HTMLElement || e instanceof q(e).HTMLElement : !1;
|
|
5112
5135
|
}
|
|
5113
|
-
function
|
|
5136
|
+
function hn(e) {
|
|
5114
5137
|
return !ft() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
|
|
5115
5138
|
}
|
|
5116
5139
|
function je(e) {
|
|
@@ -5122,8 +5145,8 @@ function je(e) {
|
|
|
5122
5145
|
} = ee(e);
|
|
5123
5146
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && o !== "inline" && o !== "contents";
|
|
5124
5147
|
}
|
|
5125
|
-
function
|
|
5126
|
-
return /^(table|td|th)$/.test(
|
|
5148
|
+
function ui(e) {
|
|
5149
|
+
return /^(table|td|th)$/.test(Me(e));
|
|
5127
5150
|
}
|
|
5128
5151
|
function mt(e) {
|
|
5129
5152
|
try {
|
|
@@ -5137,13 +5160,13 @@ function mt(e) {
|
|
|
5137
5160
|
return !1;
|
|
5138
5161
|
}
|
|
5139
5162
|
}
|
|
5140
|
-
const
|
|
5163
|
+
const fi = /transform|translate|scale|rotate|perspective|filter/, mi = /paint|layout|strict|content/, Ee = (e) => !!e && e !== "none";
|
|
5141
5164
|
let vt;
|
|
5142
5165
|
function Gt(e) {
|
|
5143
5166
|
const t = Q(e) ? ee(e) : e;
|
|
5144
|
-
return Ee(t.transform) || Ee(t.translate) || Ee(t.scale) || Ee(t.rotate) || Ee(t.perspective) || !Wt() && (Ee(t.backdropFilter) || Ee(t.filter)) ||
|
|
5167
|
+
return Ee(t.transform) || Ee(t.translate) || Ee(t.scale) || Ee(t.rotate) || Ee(t.perspective) || !Wt() && (Ee(t.backdropFilter) || Ee(t.filter)) || fi.test(t.willChange || "") || mi.test(t.contain || "");
|
|
5145
5168
|
}
|
|
5146
|
-
function
|
|
5169
|
+
function pi(e) {
|
|
5147
5170
|
let t = be(e);
|
|
5148
5171
|
for (; fe(t) && !Ie(t); ) {
|
|
5149
5172
|
if (Gt(t))
|
|
@@ -5158,7 +5181,7 @@ function Wt() {
|
|
|
5158
5181
|
return vt == null && (vt = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), vt;
|
|
5159
5182
|
}
|
|
5160
5183
|
function Ie(e) {
|
|
5161
|
-
return /^(html|body|#document)$/.test(
|
|
5184
|
+
return /^(html|body|#document)$/.test(Me(e));
|
|
5162
5185
|
}
|
|
5163
5186
|
function ee(e) {
|
|
5164
5187
|
return q(e).getComputedStyle(e);
|
|
@@ -5173,25 +5196,25 @@ function pt(e) {
|
|
|
5173
5196
|
};
|
|
5174
5197
|
}
|
|
5175
5198
|
function be(e) {
|
|
5176
|
-
if (
|
|
5199
|
+
if (Me(e) === "html")
|
|
5177
5200
|
return e;
|
|
5178
5201
|
const t = (
|
|
5179
5202
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
5180
5203
|
e.assignedSlot || // DOM Element detected.
|
|
5181
5204
|
e.parentNode || // ShadowRoot detected.
|
|
5182
|
-
|
|
5205
|
+
hn(e) && e.host || // Fallback.
|
|
5183
5206
|
ae(e)
|
|
5184
5207
|
);
|
|
5185
|
-
return
|
|
5208
|
+
return hn(t) ? t.host : t;
|
|
5186
5209
|
}
|
|
5187
|
-
function
|
|
5210
|
+
function sr(e) {
|
|
5188
5211
|
const t = be(e);
|
|
5189
|
-
return Ie(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : fe(t) && je(t) ? t :
|
|
5212
|
+
return Ie(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : fe(t) && je(t) ? t : sr(t);
|
|
5190
5213
|
}
|
|
5191
5214
|
function Ve(e, t, n) {
|
|
5192
5215
|
var r;
|
|
5193
5216
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
5194
|
-
const o =
|
|
5217
|
+
const o = sr(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = q(o);
|
|
5195
5218
|
if (s) {
|
|
5196
5219
|
const a = kt(i);
|
|
5197
5220
|
return t.concat(i, i.visualViewport || [], je(o) ? o : [], a && n ? Ve(a) : []);
|
|
@@ -5201,7 +5224,7 @@ function Ve(e, t, n) {
|
|
|
5201
5224
|
function kt(e) {
|
|
5202
5225
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
5203
5226
|
}
|
|
5204
|
-
function
|
|
5227
|
+
function ir(e) {
|
|
5205
5228
|
const t = ee(e);
|
|
5206
5229
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
5207
5230
|
const o = fe(e), s = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, a = at(n) !== s || at(r) !== i;
|
|
@@ -5222,22 +5245,22 @@ function $e(e) {
|
|
|
5222
5245
|
width: r,
|
|
5223
5246
|
height: o,
|
|
5224
5247
|
$: s
|
|
5225
|
-
} =
|
|
5248
|
+
} = ir(t);
|
|
5226
5249
|
let i = (s ? at(n.width) : n.width) / r, a = (s ? at(n.height) : n.height) / o;
|
|
5227
5250
|
return (!i || !Number.isFinite(i)) && (i = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
5228
5251
|
x: i,
|
|
5229
5252
|
y: a
|
|
5230
5253
|
};
|
|
5231
5254
|
}
|
|
5232
|
-
const
|
|
5233
|
-
function
|
|
5255
|
+
const gi = /* @__PURE__ */ se(0);
|
|
5256
|
+
function ar(e) {
|
|
5234
5257
|
const t = q(e);
|
|
5235
|
-
return !Wt() || !t.visualViewport ?
|
|
5258
|
+
return !Wt() || !t.visualViewport ? gi : {
|
|
5236
5259
|
x: t.visualViewport.offsetLeft,
|
|
5237
5260
|
y: t.visualViewport.offsetTop
|
|
5238
5261
|
};
|
|
5239
5262
|
}
|
|
5240
|
-
function
|
|
5263
|
+
function hi(e, t, n) {
|
|
5241
5264
|
return t === void 0 && (t = !1), !n || t && n !== q(e) ? !1 : t;
|
|
5242
5265
|
}
|
|
5243
5266
|
function Re(e, t, n, r) {
|
|
@@ -5245,12 +5268,12 @@ function Re(e, t, n, r) {
|
|
|
5245
5268
|
const o = e.getBoundingClientRect(), s = Ht(e);
|
|
5246
5269
|
let i = se(1);
|
|
5247
5270
|
t && (r ? Q(r) && (i = $e(r)) : i = $e(e));
|
|
5248
|
-
const a =
|
|
5271
|
+
const a = hi(s, n, r) ? ar(s) : se(0);
|
|
5249
5272
|
let l = (o.left + a.x) / i.x, c = (o.top + a.y) / i.y, u = o.width / i.x, d = o.height / i.y;
|
|
5250
5273
|
if (s) {
|
|
5251
|
-
const
|
|
5252
|
-
let g =
|
|
5253
|
-
for (; b && r &&
|
|
5274
|
+
const m = q(s), p = r && Q(r) ? q(r) : r;
|
|
5275
|
+
let g = m, b = kt(g);
|
|
5276
|
+
for (; b && r && p !== g; ) {
|
|
5254
5277
|
const w = $e(b), y = b.getBoundingClientRect(), E = ee(b), O = y.left + (b.clientLeft + parseFloat(E.paddingLeft)) * w.x, S = y.top + (b.clientTop + parseFloat(E.paddingTop)) * w.y;
|
|
5255
5278
|
l *= w.x, c *= w.y, u *= w.x, d *= w.y, l += O, c += S, g = q(b), b = kt(g);
|
|
5256
5279
|
}
|
|
@@ -5266,14 +5289,14 @@ function gt(e, t) {
|
|
|
5266
5289
|
const n = pt(e).scrollLeft;
|
|
5267
5290
|
return t ? t.left + n : Re(ae(e)).left + n;
|
|
5268
5291
|
}
|
|
5269
|
-
function
|
|
5292
|
+
function lr(e, t) {
|
|
5270
5293
|
const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - gt(e, n), o = n.top + t.scrollTop;
|
|
5271
5294
|
return {
|
|
5272
5295
|
x: r,
|
|
5273
5296
|
y: o
|
|
5274
5297
|
};
|
|
5275
5298
|
}
|
|
5276
|
-
function
|
|
5299
|
+
function bi(e) {
|
|
5277
5300
|
let {
|
|
5278
5301
|
elements: t,
|
|
5279
5302
|
rect: n,
|
|
@@ -5288,34 +5311,34 @@ function ui(e) {
|
|
|
5288
5311
|
scrollTop: 0
|
|
5289
5312
|
}, c = se(1);
|
|
5290
5313
|
const u = se(0), d = fe(r);
|
|
5291
|
-
if ((d || !d && !s) && ((
|
|
5292
|
-
const
|
|
5293
|
-
c = $e(r), u.x =
|
|
5314
|
+
if ((d || !d && !s) && ((Me(r) !== "body" || je(i)) && (l = pt(r)), d)) {
|
|
5315
|
+
const p = Re(r);
|
|
5316
|
+
c = $e(r), u.x = p.x + r.clientLeft, u.y = p.y + r.clientTop;
|
|
5294
5317
|
}
|
|
5295
|
-
const
|
|
5318
|
+
const m = i && !d && !s ? lr(i, l) : se(0);
|
|
5296
5319
|
return {
|
|
5297
5320
|
width: n.width * c.x,
|
|
5298
5321
|
height: n.height * c.y,
|
|
5299
|
-
x: n.x * c.x - l.scrollLeft * c.x + u.x +
|
|
5300
|
-
y: n.y * c.y - l.scrollTop * c.y + u.y +
|
|
5322
|
+
x: n.x * c.x - l.scrollLeft * c.x + u.x + m.x,
|
|
5323
|
+
y: n.y * c.y - l.scrollTop * c.y + u.y + m.y
|
|
5301
5324
|
};
|
|
5302
5325
|
}
|
|
5303
|
-
function
|
|
5326
|
+
function yi(e) {
|
|
5304
5327
|
return Array.from(e.getClientRects());
|
|
5305
5328
|
}
|
|
5306
|
-
function
|
|
5307
|
-
const t = ae(e), n = pt(e), r = e.ownerDocument.body, o =
|
|
5329
|
+
function wi(e) {
|
|
5330
|
+
const t = ae(e), n = pt(e), r = e.ownerDocument.body, o = K(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = K(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
5308
5331
|
let i = -n.scrollLeft + gt(e);
|
|
5309
5332
|
const a = -n.scrollTop;
|
|
5310
|
-
return ee(r).direction === "rtl" && (i +=
|
|
5333
|
+
return ee(r).direction === "rtl" && (i += K(t.clientWidth, r.clientWidth) - o), {
|
|
5311
5334
|
width: o,
|
|
5312
5335
|
height: s,
|
|
5313
5336
|
x: i,
|
|
5314
5337
|
y: a
|
|
5315
5338
|
};
|
|
5316
5339
|
}
|
|
5317
|
-
const
|
|
5318
|
-
function
|
|
5340
|
+
const bn = 25;
|
|
5341
|
+
function xi(e, t) {
|
|
5319
5342
|
const n = q(e), r = ae(e), o = n.visualViewport;
|
|
5320
5343
|
let s = r.clientWidth, i = r.clientHeight, a = 0, l = 0;
|
|
5321
5344
|
if (o) {
|
|
@@ -5325,9 +5348,9 @@ function pi(e, t) {
|
|
|
5325
5348
|
}
|
|
5326
5349
|
const c = gt(r);
|
|
5327
5350
|
if (c <= 0) {
|
|
5328
|
-
const u = r.ownerDocument, d = u.body,
|
|
5329
|
-
g <=
|
|
5330
|
-
} else c <=
|
|
5351
|
+
const u = r.ownerDocument, d = u.body, m = getComputedStyle(d), p = u.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, g = Math.abs(r.clientWidth - d.clientWidth - p);
|
|
5352
|
+
g <= bn && (s -= g);
|
|
5353
|
+
} else c <= bn && (s += c);
|
|
5331
5354
|
return {
|
|
5332
5355
|
width: s,
|
|
5333
5356
|
height: i,
|
|
@@ -5335,7 +5358,7 @@ function pi(e, t) {
|
|
|
5335
5358
|
y: l
|
|
5336
5359
|
};
|
|
5337
5360
|
}
|
|
5338
|
-
function
|
|
5361
|
+
function vi(e, t) {
|
|
5339
5362
|
const n = Re(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = fe(e) ? $e(e) : se(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, l = o * s.x, c = r * s.y;
|
|
5340
5363
|
return {
|
|
5341
5364
|
width: i,
|
|
@@ -5344,16 +5367,16 @@ function gi(e, t) {
|
|
|
5344
5367
|
y: c
|
|
5345
5368
|
};
|
|
5346
5369
|
}
|
|
5347
|
-
function
|
|
5370
|
+
function yn(e, t, n) {
|
|
5348
5371
|
let r;
|
|
5349
5372
|
if (t === "viewport")
|
|
5350
|
-
r =
|
|
5373
|
+
r = xi(e, n);
|
|
5351
5374
|
else if (t === "document")
|
|
5352
|
-
r =
|
|
5375
|
+
r = wi(ae(e));
|
|
5353
5376
|
else if (Q(t))
|
|
5354
|
-
r =
|
|
5377
|
+
r = vi(t, n);
|
|
5355
5378
|
else {
|
|
5356
|
-
const o =
|
|
5379
|
+
const o = ar(e);
|
|
5357
5380
|
r = {
|
|
5358
5381
|
x: t.x - o.x,
|
|
5359
5382
|
y: t.y - o.y,
|
|
@@ -5363,35 +5386,35 @@ function hn(e, t, n) {
|
|
|
5363
5386
|
}
|
|
5364
5387
|
return ct(r);
|
|
5365
5388
|
}
|
|
5366
|
-
function
|
|
5389
|
+
function cr(e, t) {
|
|
5367
5390
|
const n = be(e);
|
|
5368
|
-
return n === t || !Q(n) || Ie(n) ? !1 : ee(n).position === "fixed" ||
|
|
5391
|
+
return n === t || !Q(n) || Ie(n) ? !1 : ee(n).position === "fixed" || cr(n, t);
|
|
5369
5392
|
}
|
|
5370
|
-
function
|
|
5393
|
+
function Ei(e, t) {
|
|
5371
5394
|
const n = t.get(e);
|
|
5372
5395
|
if (n)
|
|
5373
5396
|
return n;
|
|
5374
|
-
let r = Ve(e, [], !1).filter((a) => Q(a) &&
|
|
5397
|
+
let r = Ve(e, [], !1).filter((a) => Q(a) && Me(a) !== "body"), o = null;
|
|
5375
5398
|
const s = ee(e).position === "fixed";
|
|
5376
5399
|
let i = s ? be(e) : e;
|
|
5377
5400
|
for (; Q(i) && !Ie(i); ) {
|
|
5378
5401
|
const a = ee(i), l = Gt(i);
|
|
5379
|
-
!l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || je(i) && !l &&
|
|
5402
|
+
!l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || je(i) && !l && cr(e, i)) ? r = r.filter((u) => u !== i) : o = a, i = be(i);
|
|
5380
5403
|
}
|
|
5381
5404
|
return t.set(e, r), r;
|
|
5382
5405
|
}
|
|
5383
|
-
function
|
|
5406
|
+
function Ai(e) {
|
|
5384
5407
|
let {
|
|
5385
5408
|
element: t,
|
|
5386
5409
|
boundary: n,
|
|
5387
5410
|
rootBoundary: r,
|
|
5388
5411
|
strategy: o
|
|
5389
5412
|
} = e;
|
|
5390
|
-
const i = [...n === "clippingAncestors" ? mt(t) ? [] :
|
|
5413
|
+
const i = [...n === "clippingAncestors" ? mt(t) ? [] : Ei(t, this._c) : [].concat(n), r], a = yn(t, i[0], o);
|
|
5391
5414
|
let l = a.top, c = a.right, u = a.bottom, d = a.left;
|
|
5392
|
-
for (let
|
|
5393
|
-
const
|
|
5394
|
-
l =
|
|
5415
|
+
for (let m = 1; m < i.length; m++) {
|
|
5416
|
+
const p = yn(t, i[m], o);
|
|
5417
|
+
l = K(p.top, l), c = he(p.right, c), u = he(p.bottom, u), d = K(p.left, d);
|
|
5395
5418
|
}
|
|
5396
5419
|
return {
|
|
5397
5420
|
width: c - d,
|
|
@@ -5400,17 +5423,17 @@ function bi(e) {
|
|
|
5400
5423
|
y: l
|
|
5401
5424
|
};
|
|
5402
5425
|
}
|
|
5403
|
-
function
|
|
5426
|
+
function Ri(e) {
|
|
5404
5427
|
const {
|
|
5405
5428
|
width: t,
|
|
5406
5429
|
height: n
|
|
5407
|
-
} =
|
|
5430
|
+
} = ir(e);
|
|
5408
5431
|
return {
|
|
5409
5432
|
width: t,
|
|
5410
5433
|
height: n
|
|
5411
5434
|
};
|
|
5412
5435
|
}
|
|
5413
|
-
function
|
|
5436
|
+
function Ci(e, t, n) {
|
|
5414
5437
|
const r = fe(t), o = ae(t), s = n === "fixed", i = Re(e, !0, s, t);
|
|
5415
5438
|
let a = {
|
|
5416
5439
|
scrollLeft: 0,
|
|
@@ -5421,15 +5444,15 @@ function wi(e, t, n) {
|
|
|
5421
5444
|
l.x = gt(o);
|
|
5422
5445
|
}
|
|
5423
5446
|
if (r || !r && !s)
|
|
5424
|
-
if ((
|
|
5425
|
-
const
|
|
5426
|
-
l.x =
|
|
5447
|
+
if ((Me(t) !== "body" || je(o)) && (a = pt(t)), r) {
|
|
5448
|
+
const p = Re(t, !0, s, t);
|
|
5449
|
+
l.x = p.x + t.clientLeft, l.y = p.y + t.clientTop;
|
|
5427
5450
|
} else o && c();
|
|
5428
5451
|
s && !r && o && c();
|
|
5429
|
-
const u = o && !r && !s ?
|
|
5452
|
+
const u = o && !r && !s ? lr(o, a) : se(0), d = i.left + a.scrollLeft - l.x - u.x, m = i.top + a.scrollTop - l.y - u.y;
|
|
5430
5453
|
return {
|
|
5431
5454
|
x: d,
|
|
5432
|
-
y:
|
|
5455
|
+
y: m,
|
|
5433
5456
|
width: i.width,
|
|
5434
5457
|
height: i.height
|
|
5435
5458
|
};
|
|
@@ -5437,7 +5460,7 @@ function wi(e, t, n) {
|
|
|
5437
5460
|
function Et(e) {
|
|
5438
5461
|
return ee(e).position === "static";
|
|
5439
5462
|
}
|
|
5440
|
-
function
|
|
5463
|
+
function wn(e, t) {
|
|
5441
5464
|
if (!fe(e) || ee(e).position === "fixed")
|
|
5442
5465
|
return null;
|
|
5443
5466
|
if (t)
|
|
@@ -5445,7 +5468,7 @@ function bn(e, t) {
|
|
|
5445
5468
|
let n = e.offsetParent;
|
|
5446
5469
|
return ae(e) === n && (n = n.ownerDocument.body), n;
|
|
5447
5470
|
}
|
|
5448
|
-
function
|
|
5471
|
+
function dr(e, t) {
|
|
5449
5472
|
const n = q(e);
|
|
5450
5473
|
if (mt(e))
|
|
5451
5474
|
return n;
|
|
@@ -5458,15 +5481,15 @@ function ir(e, t) {
|
|
|
5458
5481
|
}
|
|
5459
5482
|
return n;
|
|
5460
5483
|
}
|
|
5461
|
-
let r =
|
|
5462
|
-
for (; r &&
|
|
5463
|
-
r =
|
|
5464
|
-
return r && Ie(r) && Et(r) && !Gt(r) ? n : r ||
|
|
5484
|
+
let r = wn(e, t);
|
|
5485
|
+
for (; r && ui(r) && Et(r); )
|
|
5486
|
+
r = wn(r, t);
|
|
5487
|
+
return r && Ie(r) && Et(r) && !Gt(r) ? n : r || pi(e) || n;
|
|
5465
5488
|
}
|
|
5466
|
-
const
|
|
5467
|
-
const t = this.getOffsetParent ||
|
|
5489
|
+
const Si = async function(e) {
|
|
5490
|
+
const t = this.getOffsetParent || dr, n = this.getDimensions, r = await n(e.floating);
|
|
5468
5491
|
return {
|
|
5469
|
-
reference:
|
|
5492
|
+
reference: Ci(e.reference, await t(e.floating), e.strategy),
|
|
5470
5493
|
floating: {
|
|
5471
5494
|
x: 0,
|
|
5472
5495
|
y: 0,
|
|
@@ -5475,25 +5498,25 @@ const xi = async function(e) {
|
|
|
5475
5498
|
}
|
|
5476
5499
|
};
|
|
5477
5500
|
};
|
|
5478
|
-
function
|
|
5501
|
+
function Ti(e) {
|
|
5479
5502
|
return ee(e).direction === "rtl";
|
|
5480
5503
|
}
|
|
5481
|
-
const
|
|
5482
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
5504
|
+
const Oi = {
|
|
5505
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: bi,
|
|
5483
5506
|
getDocumentElement: ae,
|
|
5484
|
-
getClippingRect:
|
|
5485
|
-
getOffsetParent:
|
|
5486
|
-
getElementRects:
|
|
5487
|
-
getClientRects:
|
|
5488
|
-
getDimensions:
|
|
5507
|
+
getClippingRect: Ai,
|
|
5508
|
+
getOffsetParent: dr,
|
|
5509
|
+
getElementRects: Si,
|
|
5510
|
+
getClientRects: yi,
|
|
5511
|
+
getDimensions: Ri,
|
|
5489
5512
|
getScale: $e,
|
|
5490
5513
|
isElement: Q,
|
|
5491
|
-
isRTL:
|
|
5514
|
+
isRTL: Ti
|
|
5492
5515
|
};
|
|
5493
|
-
function
|
|
5516
|
+
function ur(e, t) {
|
|
5494
5517
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
5495
5518
|
}
|
|
5496
|
-
function
|
|
5519
|
+
function ki(e, t) {
|
|
5497
5520
|
let n = null, r;
|
|
5498
5521
|
const o = ae(e);
|
|
5499
5522
|
function s() {
|
|
@@ -5505,14 +5528,14 @@ function Ai(e, t) {
|
|
|
5505
5528
|
const c = e.getBoundingClientRect(), {
|
|
5506
5529
|
left: u,
|
|
5507
5530
|
top: d,
|
|
5508
|
-
width:
|
|
5509
|
-
height:
|
|
5531
|
+
width: m,
|
|
5532
|
+
height: p
|
|
5510
5533
|
} = c;
|
|
5511
|
-
if (a || t(), !
|
|
5534
|
+
if (a || t(), !m || !p)
|
|
5512
5535
|
return;
|
|
5513
|
-
const g = et(d), b = et(o.clientWidth - (u +
|
|
5536
|
+
const g = et(d), b = et(o.clientWidth - (u + m)), w = et(o.clientHeight - (d + p)), y = et(u), O = {
|
|
5514
5537
|
rootMargin: -g + "px " + -b + "px " + -w + "px " + -y + "px",
|
|
5515
|
-
threshold:
|
|
5538
|
+
threshold: K(0, he(1, l)) || 1
|
|
5516
5539
|
};
|
|
5517
5540
|
let S = !0;
|
|
5518
5541
|
function k(N) {
|
|
@@ -5524,7 +5547,7 @@ function Ai(e, t) {
|
|
|
5524
5547
|
i(!1, 1e-7);
|
|
5525
5548
|
}, 1e3);
|
|
5526
5549
|
}
|
|
5527
|
-
T === 1 && !
|
|
5550
|
+
T === 1 && !ur(c, e.getBoundingClientRect()) && i(), S = !1;
|
|
5528
5551
|
}
|
|
5529
5552
|
try {
|
|
5530
5553
|
n = new IntersectionObserver(k, {
|
|
@@ -5539,7 +5562,7 @@ function Ai(e, t) {
|
|
|
5539
5562
|
}
|
|
5540
5563
|
return i(!0), s;
|
|
5541
5564
|
}
|
|
5542
|
-
function
|
|
5565
|
+
function Ni(e, t, n, r) {
|
|
5543
5566
|
r === void 0 && (r = {});
|
|
5544
5567
|
const {
|
|
5545
5568
|
ancestorScroll: o = !0,
|
|
@@ -5553,43 +5576,43 @@ function Ri(e, t, n, r) {
|
|
|
5553
5576
|
passive: !0
|
|
5554
5577
|
}), s && y.addEventListener("resize", n);
|
|
5555
5578
|
});
|
|
5556
|
-
const d = c && a ?
|
|
5557
|
-
let
|
|
5558
|
-
i && (
|
|
5579
|
+
const d = c && a ? ki(c, n) : null;
|
|
5580
|
+
let m = -1, p = null;
|
|
5581
|
+
i && (p = new ResizeObserver((y) => {
|
|
5559
5582
|
let [E] = y;
|
|
5560
|
-
E && E.target === c &&
|
|
5583
|
+
E && E.target === c && p && t && (p.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
5561
5584
|
var O;
|
|
5562
|
-
(O =
|
|
5585
|
+
(O = p) == null || O.observe(t);
|
|
5563
5586
|
})), n();
|
|
5564
|
-
}), c && !l &&
|
|
5587
|
+
}), c && !l && p.observe(c), t && p.observe(t));
|
|
5565
5588
|
let g, b = l ? Re(e) : null;
|
|
5566
5589
|
l && w();
|
|
5567
5590
|
function w() {
|
|
5568
5591
|
const y = Re(e);
|
|
5569
|
-
b && !
|
|
5592
|
+
b && !ur(b, y) && n(), b = y, g = requestAnimationFrame(w);
|
|
5570
5593
|
}
|
|
5571
5594
|
return n(), () => {
|
|
5572
5595
|
var y;
|
|
5573
5596
|
u.forEach((E) => {
|
|
5574
5597
|
o && E.removeEventListener("scroll", n), s && E.removeEventListener("resize", n);
|
|
5575
|
-
}), d?.(), (y =
|
|
5598
|
+
}), d?.(), (y = p) == null || y.disconnect(), p = null, l && cancelAnimationFrame(g);
|
|
5576
5599
|
};
|
|
5577
5600
|
}
|
|
5578
|
-
const
|
|
5601
|
+
const Pi = ai, _i = li, $i = oi, Ii = di, Li = si, xn = ri, Di = ci, Mi = (e, t, n) => {
|
|
5579
5602
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
5580
|
-
platform:
|
|
5603
|
+
platform: Oi,
|
|
5581
5604
|
...n
|
|
5582
5605
|
}, s = {
|
|
5583
5606
|
...o.platform,
|
|
5584
5607
|
_c: r
|
|
5585
5608
|
};
|
|
5586
|
-
return
|
|
5609
|
+
return ni(e, t, {
|
|
5587
5610
|
...o,
|
|
5588
5611
|
platform: s
|
|
5589
5612
|
});
|
|
5590
5613
|
};
|
|
5591
|
-
var
|
|
5592
|
-
}, nt =
|
|
5614
|
+
var zi = typeof document < "u", Ui = function() {
|
|
5615
|
+
}, nt = zi ? Lr : Ui;
|
|
5593
5616
|
function dt(e, t) {
|
|
5594
5617
|
if (e === t)
|
|
5595
5618
|
return !0;
|
|
@@ -5620,11 +5643,11 @@ function dt(e, t) {
|
|
|
5620
5643
|
}
|
|
5621
5644
|
return e !== e && t !== t;
|
|
5622
5645
|
}
|
|
5623
|
-
function
|
|
5646
|
+
function fr(e) {
|
|
5624
5647
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
5625
5648
|
}
|
|
5626
|
-
function
|
|
5627
|
-
const n =
|
|
5649
|
+
function vn(e, t) {
|
|
5650
|
+
const n = fr(e);
|
|
5628
5651
|
return Math.round(t * n) / n;
|
|
5629
5652
|
}
|
|
5630
5653
|
function At(e) {
|
|
@@ -5633,7 +5656,7 @@ function At(e) {
|
|
|
5633
5656
|
t.current = e;
|
|
5634
5657
|
}), t;
|
|
5635
5658
|
}
|
|
5636
|
-
function
|
|
5659
|
+
function Fi(e) {
|
|
5637
5660
|
e === void 0 && (e = {});
|
|
5638
5661
|
const {
|
|
5639
5662
|
placement: t = "bottom",
|
|
@@ -5654,21 +5677,21 @@ function Ii(e) {
|
|
|
5654
5677
|
placement: t,
|
|
5655
5678
|
middlewareData: {},
|
|
5656
5679
|
isPositioned: !1
|
|
5657
|
-
}), [
|
|
5658
|
-
dt(
|
|
5680
|
+
}), [m, p] = f.useState(r);
|
|
5681
|
+
dt(m, r) || p(r);
|
|
5659
5682
|
const [g, b] = f.useState(null), [w, y] = f.useState(null), E = f.useCallback((_) => {
|
|
5660
5683
|
_ !== N.current && (N.current = _, b(_));
|
|
5661
5684
|
}, []), O = f.useCallback((_) => {
|
|
5662
5685
|
_ !== T.current && (T.current = _, y(_));
|
|
5663
|
-
}, []), S = s || g, k = i || w, N = f.useRef(null), T = f.useRef(null), v = f.useRef(u), $ = l != null,
|
|
5686
|
+
}, []), S = s || g, k = i || w, N = f.useRef(null), T = f.useRef(null), v = f.useRef(u), $ = l != null, D = At(l), j = At(o), F = At(c), U = f.useCallback(() => {
|
|
5664
5687
|
if (!N.current || !T.current)
|
|
5665
5688
|
return;
|
|
5666
5689
|
const _ = {
|
|
5667
5690
|
placement: t,
|
|
5668
5691
|
strategy: n,
|
|
5669
|
-
middleware:
|
|
5692
|
+
middleware: m
|
|
5670
5693
|
};
|
|
5671
|
-
j.current && (_.platform = j.current),
|
|
5694
|
+
j.current && (_.platform = j.current), Mi(N.current, T.current, _).then((W) => {
|
|
5672
5695
|
const C = {
|
|
5673
5696
|
...W,
|
|
5674
5697
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -5677,27 +5700,27 @@ function Ii(e) {
|
|
|
5677
5700
|
// setting it to `true` when `open === false` (must be specified).
|
|
5678
5701
|
isPositioned: F.current !== !1
|
|
5679
5702
|
};
|
|
5680
|
-
|
|
5703
|
+
M.current && !dt(v.current, C) && (v.current = C, Cn.flushSync(() => {
|
|
5681
5704
|
d(C);
|
|
5682
5705
|
}));
|
|
5683
5706
|
});
|
|
5684
|
-
}, [
|
|
5707
|
+
}, [m, t, n, j, F]);
|
|
5685
5708
|
nt(() => {
|
|
5686
5709
|
c === !1 && v.current.isPositioned && (v.current.isPositioned = !1, d((_) => ({
|
|
5687
5710
|
..._,
|
|
5688
5711
|
isPositioned: !1
|
|
5689
5712
|
})));
|
|
5690
5713
|
}, [c]);
|
|
5691
|
-
const
|
|
5692
|
-
nt(() => (
|
|
5693
|
-
|
|
5714
|
+
const M = f.useRef(!1);
|
|
5715
|
+
nt(() => (M.current = !0, () => {
|
|
5716
|
+
M.current = !1;
|
|
5694
5717
|
}), []), nt(() => {
|
|
5695
5718
|
if (S && (N.current = S), k && (T.current = k), S && k) {
|
|
5696
|
-
if (
|
|
5697
|
-
return
|
|
5719
|
+
if (D.current)
|
|
5720
|
+
return D.current(S, k, U);
|
|
5698
5721
|
U();
|
|
5699
5722
|
}
|
|
5700
|
-
}, [S, k, U,
|
|
5723
|
+
}, [S, k, U, D, $]);
|
|
5701
5724
|
const G = f.useMemo(() => ({
|
|
5702
5725
|
reference: N,
|
|
5703
5726
|
floating: T,
|
|
@@ -5714,11 +5737,11 @@ function Ii(e) {
|
|
|
5714
5737
|
};
|
|
5715
5738
|
if (!I.floating)
|
|
5716
5739
|
return _;
|
|
5717
|
-
const W =
|
|
5740
|
+
const W = vn(I.floating, u.x), C = vn(I.floating, u.y);
|
|
5718
5741
|
return a ? {
|
|
5719
5742
|
..._,
|
|
5720
5743
|
transform: "translate(" + W + "px, " + C + "px)",
|
|
5721
|
-
...
|
|
5744
|
+
...fr(I.floating) >= 1.5 && {
|
|
5722
5745
|
willChange: "transform"
|
|
5723
5746
|
}
|
|
5724
5747
|
} : {
|
|
@@ -5735,7 +5758,7 @@ function Ii(e) {
|
|
|
5735
5758
|
floatingStyles: L
|
|
5736
5759
|
}), [u, U, G, I, L]);
|
|
5737
5760
|
}
|
|
5738
|
-
const
|
|
5761
|
+
const Gi = (e) => {
|
|
5739
5762
|
function t(n) {
|
|
5740
5763
|
return {}.hasOwnProperty.call(n, "current");
|
|
5741
5764
|
}
|
|
@@ -5747,62 +5770,62 @@ const Li = (e) => {
|
|
|
5747
5770
|
element: r,
|
|
5748
5771
|
padding: o
|
|
5749
5772
|
} = typeof e == "function" ? e(n) : e;
|
|
5750
|
-
return r && t(r) ? r.current != null ?
|
|
5773
|
+
return r && t(r) ? r.current != null ? xn({
|
|
5751
5774
|
element: r.current,
|
|
5752
5775
|
padding: o
|
|
5753
|
-
}).fn(n) : {} : r ?
|
|
5776
|
+
}).fn(n) : {} : r ? xn({
|
|
5754
5777
|
element: r,
|
|
5755
5778
|
padding: o
|
|
5756
5779
|
}).fn(n) : {};
|
|
5757
5780
|
}
|
|
5758
5781
|
};
|
|
5759
|
-
},
|
|
5760
|
-
const n =
|
|
5782
|
+
}, Wi = (e, t) => {
|
|
5783
|
+
const n = Pi(e);
|
|
5761
5784
|
return {
|
|
5762
5785
|
name: n.name,
|
|
5763
5786
|
fn: n.fn,
|
|
5764
5787
|
options: [e, t]
|
|
5765
5788
|
};
|
|
5766
|
-
},
|
|
5767
|
-
const n =
|
|
5789
|
+
}, Hi = (e, t) => {
|
|
5790
|
+
const n = _i(e);
|
|
5768
5791
|
return {
|
|
5769
5792
|
name: n.name,
|
|
5770
5793
|
fn: n.fn,
|
|
5771
5794
|
options: [e, t]
|
|
5772
5795
|
};
|
|
5773
|
-
},
|
|
5774
|
-
fn:
|
|
5796
|
+
}, Vi = (e, t) => ({
|
|
5797
|
+
fn: Di(e).fn,
|
|
5775
5798
|
options: [e, t]
|
|
5776
|
-
}),
|
|
5777
|
-
const n =
|
|
5799
|
+
}), Bi = (e, t) => {
|
|
5800
|
+
const n = $i(e);
|
|
5778
5801
|
return {
|
|
5779
5802
|
name: n.name,
|
|
5780
5803
|
fn: n.fn,
|
|
5781
5804
|
options: [e, t]
|
|
5782
5805
|
};
|
|
5783
|
-
},
|
|
5784
|
-
const n =
|
|
5806
|
+
}, ji = (e, t) => {
|
|
5807
|
+
const n = Ii(e);
|
|
5785
5808
|
return {
|
|
5786
5809
|
name: n.name,
|
|
5787
5810
|
fn: n.fn,
|
|
5788
5811
|
options: [e, t]
|
|
5789
5812
|
};
|
|
5790
|
-
},
|
|
5791
|
-
const n =
|
|
5813
|
+
}, Yi = (e, t) => {
|
|
5814
|
+
const n = Li(e);
|
|
5792
5815
|
return {
|
|
5793
5816
|
name: n.name,
|
|
5794
5817
|
fn: n.fn,
|
|
5795
5818
|
options: [e, t]
|
|
5796
5819
|
};
|
|
5797
|
-
},
|
|
5798
|
-
const n =
|
|
5820
|
+
}, Xi = (e, t) => {
|
|
5821
|
+
const n = Gi(e);
|
|
5799
5822
|
return {
|
|
5800
5823
|
name: n.name,
|
|
5801
5824
|
fn: n.fn,
|
|
5802
5825
|
options: [e, t]
|
|
5803
5826
|
};
|
|
5804
5827
|
};
|
|
5805
|
-
var
|
|
5828
|
+
var Ki = "Arrow", mr = f.forwardRef((e, t) => {
|
|
5806
5829
|
const { children: n, width: r = 10, height: o = 5, ...s } = e;
|
|
5807
5830
|
return /* @__PURE__ */ x(
|
|
5808
5831
|
Oe.svg,
|
|
@@ -5817,9 +5840,9 @@ var Hi = "Arrow", cr = f.forwardRef((e, t) => {
|
|
|
5817
5840
|
}
|
|
5818
5841
|
);
|
|
5819
5842
|
});
|
|
5820
|
-
|
|
5821
|
-
var
|
|
5822
|
-
function
|
|
5843
|
+
mr.displayName = Ki;
|
|
5844
|
+
var qi = mr;
|
|
5845
|
+
function Ji(e) {
|
|
5823
5846
|
const [t, n] = f.useState(void 0);
|
|
5824
5847
|
return Ae(() => {
|
|
5825
5848
|
if (e) {
|
|
@@ -5841,22 +5864,22 @@ function Bi(e) {
|
|
|
5841
5864
|
n(void 0);
|
|
5842
5865
|
}, [e]), t;
|
|
5843
5866
|
}
|
|
5844
|
-
var Vt = "Popper", [
|
|
5867
|
+
var Vt = "Popper", [pr, gr] = Zn(Vt), [Zi, hr] = pr(Vt), br = (e) => {
|
|
5845
5868
|
const { __scopePopper: t, children: n } = e, [r, o] = f.useState(null);
|
|
5846
|
-
return /* @__PURE__ */ x(
|
|
5869
|
+
return /* @__PURE__ */ x(Zi, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
5847
5870
|
};
|
|
5848
|
-
|
|
5849
|
-
var
|
|
5871
|
+
br.displayName = Vt;
|
|
5872
|
+
var yr = "PopperAnchor", wr = f.forwardRef(
|
|
5850
5873
|
(e, t) => {
|
|
5851
|
-
const { __scopePopper: n, virtualRef: r, ...o } = e, s =
|
|
5874
|
+
const { __scopePopper: n, virtualRef: r, ...o } = e, s = hr(yr, n), i = f.useRef(null), a = Se(t, i), l = f.useRef(null);
|
|
5852
5875
|
return f.useEffect(() => {
|
|
5853
5876
|
const c = l.current;
|
|
5854
5877
|
l.current = r?.current || i.current, c !== l.current && s.onAnchorChange(l.current);
|
|
5855
5878
|
}), r ? null : /* @__PURE__ */ x(Oe.div, { ...o, ref: a });
|
|
5856
5879
|
}
|
|
5857
5880
|
);
|
|
5858
|
-
|
|
5859
|
-
var Bt = "PopperContent", [
|
|
5881
|
+
wr.displayName = yr;
|
|
5882
|
+
var Bt = "PopperContent", [Qi, ea] = pr(Bt), xr = f.forwardRef(
|
|
5860
5883
|
(e, t) => {
|
|
5861
5884
|
const {
|
|
5862
5885
|
__scopePopper: n,
|
|
@@ -5869,56 +5892,56 @@ var Bt = "PopperContent", [Yi, Ki] = dr(Bt), hr = f.forwardRef(
|
|
|
5869
5892
|
collisionBoundary: c = [],
|
|
5870
5893
|
collisionPadding: u = 0,
|
|
5871
5894
|
sticky: d = "partial",
|
|
5872
|
-
hideWhenDetached:
|
|
5873
|
-
updatePositionStrategy:
|
|
5895
|
+
hideWhenDetached: m = !1,
|
|
5896
|
+
updatePositionStrategy: p = "optimized",
|
|
5874
5897
|
onPlaced: g,
|
|
5875
5898
|
...b
|
|
5876
|
-
} = e, w =
|
|
5877
|
-
padding:
|
|
5878
|
-
boundary: j.filter(
|
|
5899
|
+
} = e, w = hr(Bt, n), [y, E] = f.useState(null), O = Se(t, (te) => E(te)), [S, k] = f.useState(null), N = Ji(S), T = N?.width ?? 0, v = N?.height ?? 0, $ = r + (s !== "center" ? "-" + s : ""), D = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, j = Array.isArray(c) ? c : [c], F = j.length > 0, U = {
|
|
5900
|
+
padding: D,
|
|
5901
|
+
boundary: j.filter(na),
|
|
5879
5902
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
5880
5903
|
altBoundary: F
|
|
5881
|
-
}, { refs:
|
|
5904
|
+
}, { refs: M, floatingStyles: G, placement: I, isPositioned: L, middlewareData: _ } = Fi({
|
|
5882
5905
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
5883
5906
|
strategy: "fixed",
|
|
5884
5907
|
placement: $,
|
|
5885
|
-
whileElementsMounted: (...te) =>
|
|
5886
|
-
animationFrame:
|
|
5908
|
+
whileElementsMounted: (...te) => Ni(...te, {
|
|
5909
|
+
animationFrame: p === "always"
|
|
5887
5910
|
}),
|
|
5888
5911
|
elements: {
|
|
5889
5912
|
reference: w.anchor
|
|
5890
5913
|
},
|
|
5891
5914
|
middleware: [
|
|
5892
|
-
|
|
5893
|
-
l &&
|
|
5915
|
+
Wi({ mainAxis: o + v, alignmentAxis: i }),
|
|
5916
|
+
l && Hi({
|
|
5894
5917
|
mainAxis: !0,
|
|
5895
5918
|
crossAxis: !1,
|
|
5896
|
-
limiter: d === "partial" ?
|
|
5919
|
+
limiter: d === "partial" ? Vi() : void 0,
|
|
5897
5920
|
...U
|
|
5898
5921
|
}),
|
|
5899
|
-
l &&
|
|
5900
|
-
|
|
5922
|
+
l && Bi({ ...U }),
|
|
5923
|
+
ji({
|
|
5901
5924
|
...U,
|
|
5902
|
-
apply: ({ elements: te, rects: Fe, availableWidth: H, availableHeight:
|
|
5925
|
+
apply: ({ elements: te, rects: Fe, availableWidth: H, availableHeight: Ke }) => {
|
|
5903
5926
|
const { width: ke, height: Ne } = Fe.reference, me = te.floating.style;
|
|
5904
|
-
me.setProperty("--radix-popper-available-width", `${H}px`), me.setProperty("--radix-popper-available-height", `${
|
|
5927
|
+
me.setProperty("--radix-popper-available-width", `${H}px`), me.setProperty("--radix-popper-available-height", `${Ke}px`), me.setProperty("--radix-popper-anchor-width", `${ke}px`), me.setProperty("--radix-popper-anchor-height", `${Ne}px`);
|
|
5905
5928
|
}
|
|
5906
5929
|
}),
|
|
5907
|
-
S &&
|
|
5908
|
-
|
|
5909
|
-
|
|
5930
|
+
S && Xi({ element: S, padding: a }),
|
|
5931
|
+
ra({ arrowWidth: T, arrowHeight: v }),
|
|
5932
|
+
m && Yi({ strategy: "referenceHidden", ...U })
|
|
5910
5933
|
]
|
|
5911
|
-
}), [W, C] =
|
|
5934
|
+
}), [W, C] = Ar(I), ze = ut(g);
|
|
5912
5935
|
Ae(() => {
|
|
5913
5936
|
L && ze?.();
|
|
5914
5937
|
}, [L, ze]);
|
|
5915
|
-
const Ye = _.arrow?.x,
|
|
5938
|
+
const Ye = _.arrow?.x, Xe = _.arrow?.y, Ue = _.arrow?.centerOffset !== 0, [Y, X] = f.useState();
|
|
5916
5939
|
return Ae(() => {
|
|
5917
|
-
y &&
|
|
5940
|
+
y && X(window.getComputedStyle(y).zIndex);
|
|
5918
5941
|
}, [y]), /* @__PURE__ */ x(
|
|
5919
5942
|
"div",
|
|
5920
5943
|
{
|
|
5921
|
-
ref:
|
|
5944
|
+
ref: M.setFloating,
|
|
5922
5945
|
"data-radix-popper-content-wrapper": "",
|
|
5923
5946
|
style: {
|
|
5924
5947
|
...G,
|
|
@@ -5940,13 +5963,13 @@ var Bt = "PopperContent", [Yi, Ki] = dr(Bt), hr = f.forwardRef(
|
|
|
5940
5963
|
},
|
|
5941
5964
|
dir: e.dir,
|
|
5942
5965
|
children: /* @__PURE__ */ x(
|
|
5943
|
-
|
|
5966
|
+
Qi,
|
|
5944
5967
|
{
|
|
5945
5968
|
scope: n,
|
|
5946
5969
|
placedSide: W,
|
|
5947
5970
|
onArrowChange: k,
|
|
5948
5971
|
arrowX: Ye,
|
|
5949
|
-
arrowY:
|
|
5972
|
+
arrowY: Xe,
|
|
5950
5973
|
shouldHideArrow: Ue,
|
|
5951
5974
|
children: /* @__PURE__ */ x(
|
|
5952
5975
|
Oe.div,
|
|
@@ -5969,14 +5992,14 @@ var Bt = "PopperContent", [Yi, Ki] = dr(Bt), hr = f.forwardRef(
|
|
|
5969
5992
|
);
|
|
5970
5993
|
}
|
|
5971
5994
|
);
|
|
5972
|
-
|
|
5973
|
-
var
|
|
5995
|
+
xr.displayName = Bt;
|
|
5996
|
+
var vr = "PopperArrow", ta = {
|
|
5974
5997
|
top: "bottom",
|
|
5975
5998
|
right: "left",
|
|
5976
5999
|
bottom: "top",
|
|
5977
6000
|
left: "right"
|
|
5978
|
-
},
|
|
5979
|
-
const { __scopePopper: r, ...o } = t, s =
|
|
6001
|
+
}, Er = f.forwardRef(function(t, n) {
|
|
6002
|
+
const { __scopePopper: r, ...o } = t, s = ea(vr, r), i = ta[s.placedSide];
|
|
5980
6003
|
return (
|
|
5981
6004
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
5982
6005
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -6005,7 +6028,7 @@ var br = "PopperArrow", Xi = {
|
|
|
6005
6028
|
visibility: s.shouldHideArrow ? "hidden" : void 0
|
|
6006
6029
|
},
|
|
6007
6030
|
children: /* @__PURE__ */ x(
|
|
6008
|
-
|
|
6031
|
+
qi,
|
|
6009
6032
|
{
|
|
6010
6033
|
...o,
|
|
6011
6034
|
ref: n,
|
|
@@ -6020,34 +6043,34 @@ var br = "PopperArrow", Xi = {
|
|
|
6020
6043
|
)
|
|
6021
6044
|
);
|
|
6022
6045
|
});
|
|
6023
|
-
|
|
6024
|
-
function
|
|
6046
|
+
Er.displayName = vr;
|
|
6047
|
+
function na(e) {
|
|
6025
6048
|
return e !== null;
|
|
6026
6049
|
}
|
|
6027
|
-
var
|
|
6050
|
+
var ra = (e) => ({
|
|
6028
6051
|
name: "transformOrigin",
|
|
6029
6052
|
options: e,
|
|
6030
6053
|
fn(t) {
|
|
6031
|
-
const { placement: n, rects: r, middlewareData: o } = t, i = o.arrow?.centerOffset !== 0, a = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [c, u] =
|
|
6054
|
+
const { placement: n, rects: r, middlewareData: o } = t, i = o.arrow?.centerOffset !== 0, a = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [c, u] = Ar(n), d = { start: "0%", center: "50%", end: "100%" }[u], m = (o.arrow?.x ?? 0) + a / 2, p = (o.arrow?.y ?? 0) + l / 2;
|
|
6032
6055
|
let g = "", b = "";
|
|
6033
|
-
return c === "bottom" ? (g = i ? d : `${
|
|
6056
|
+
return c === "bottom" ? (g = i ? d : `${m}px`, b = `${-l}px`) : c === "top" ? (g = i ? d : `${m}px`, b = `${r.floating.height + l}px`) : c === "right" ? (g = `${-l}px`, b = i ? d : `${p}px`) : c === "left" && (g = `${r.floating.width + l}px`, b = i ? d : `${p}px`), { data: { x: g, y: b } };
|
|
6034
6057
|
}
|
|
6035
6058
|
});
|
|
6036
|
-
function
|
|
6059
|
+
function Ar(e) {
|
|
6037
6060
|
const [t, n = "center"] = e.split("-");
|
|
6038
6061
|
return [t, n];
|
|
6039
6062
|
}
|
|
6040
|
-
var
|
|
6041
|
-
function
|
|
6063
|
+
var oa = br, sa = wr, ia = xr, aa = Er;
|
|
6064
|
+
function la(e, t) {
|
|
6042
6065
|
return f.useReducer((n, r) => t[n][r] ?? n, e);
|
|
6043
6066
|
}
|
|
6044
|
-
var
|
|
6045
|
-
const { present: t, children: n } = e, r =
|
|
6067
|
+
var Rr = (e) => {
|
|
6068
|
+
const { present: t, children: n } = e, r = ca(t), o = typeof n == "function" ? n({ present: r.isPresent }) : f.Children.only(n), s = Se(r.ref, da(o));
|
|
6046
6069
|
return typeof n == "function" || r.isPresent ? f.cloneElement(o, { ref: s }) : null;
|
|
6047
6070
|
};
|
|
6048
|
-
|
|
6049
|
-
function
|
|
6050
|
-
const [t, n] = f.useState(), r = f.useRef(null), o = f.useRef(e), s = f.useRef("none"), i = e ? "mounted" : "unmounted", [a, l] =
|
|
6071
|
+
Rr.displayName = "Presence";
|
|
6072
|
+
function ca(e) {
|
|
6073
|
+
const [t, n] = f.useState(), r = f.useRef(null), o = f.useRef(e), s = f.useRef("none"), i = e ? "mounted" : "unmounted", [a, l] = la(i, {
|
|
6051
6074
|
mounted: {
|
|
6052
6075
|
UNMOUNT: "unmounted",
|
|
6053
6076
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -6066,25 +6089,25 @@ function ra(e) {
|
|
|
6066
6089
|
}, [a]), Ae(() => {
|
|
6067
6090
|
const c = r.current, u = o.current;
|
|
6068
6091
|
if (u !== e) {
|
|
6069
|
-
const
|
|
6070
|
-
e ? l("MOUNT") :
|
|
6092
|
+
const m = s.current, p = tt(c);
|
|
6093
|
+
e ? l("MOUNT") : p === "none" || c?.display === "none" ? l("UNMOUNT") : l(u && m !== p ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
6071
6094
|
}
|
|
6072
6095
|
}, [e, l]), Ae(() => {
|
|
6073
6096
|
if (t) {
|
|
6074
6097
|
let c;
|
|
6075
|
-
const u = t.ownerDocument.defaultView ?? window, d = (
|
|
6076
|
-
const b = tt(r.current).includes(CSS.escape(
|
|
6077
|
-
if (
|
|
6098
|
+
const u = t.ownerDocument.defaultView ?? window, d = (p) => {
|
|
6099
|
+
const b = tt(r.current).includes(CSS.escape(p.animationName));
|
|
6100
|
+
if (p.target === t && b && (l("ANIMATION_END"), !o.current)) {
|
|
6078
6101
|
const w = t.style.animationFillMode;
|
|
6079
6102
|
t.style.animationFillMode = "forwards", c = u.setTimeout(() => {
|
|
6080
6103
|
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = w);
|
|
6081
6104
|
});
|
|
6082
6105
|
}
|
|
6083
|
-
},
|
|
6084
|
-
|
|
6106
|
+
}, m = (p) => {
|
|
6107
|
+
p.target === t && (s.current = tt(r.current));
|
|
6085
6108
|
};
|
|
6086
|
-
return t.addEventListener("animationstart",
|
|
6087
|
-
u.clearTimeout(c), t.removeEventListener("animationstart",
|
|
6109
|
+
return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", d), t.addEventListener("animationend", d), () => {
|
|
6110
|
+
u.clearTimeout(c), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", d), t.removeEventListener("animationend", d);
|
|
6088
6111
|
};
|
|
6089
6112
|
} else
|
|
6090
6113
|
l("ANIMATION_END");
|
|
@@ -6098,25 +6121,25 @@ function ra(e) {
|
|
|
6098
6121
|
function tt(e) {
|
|
6099
6122
|
return e?.animationName || "none";
|
|
6100
6123
|
}
|
|
6101
|
-
function
|
|
6124
|
+
function da(e) {
|
|
6102
6125
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
6103
6126
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
6104
6127
|
}
|
|
6105
|
-
var
|
|
6128
|
+
var ua = /* @__PURE__ */ Symbol("radix.slottable");
|
|
6106
6129
|
// @__NO_SIDE_EFFECTS__
|
|
6107
|
-
function
|
|
6108
|
-
const t = ({ children: n }) => /* @__PURE__ */ x(
|
|
6109
|
-
return t.displayName = `${e}.Slottable`, t.__radixId =
|
|
6130
|
+
function fa(e) {
|
|
6131
|
+
const t = ({ children: n }) => /* @__PURE__ */ x(Ir, { children: n });
|
|
6132
|
+
return t.displayName = `${e}.Slottable`, t.__radixId = ua, t;
|
|
6110
6133
|
}
|
|
6111
|
-
var
|
|
6112
|
-
function
|
|
6134
|
+
var ma = f[" useInsertionEffect ".trim().toString()] || Ae;
|
|
6135
|
+
function pa({
|
|
6113
6136
|
prop: e,
|
|
6114
6137
|
defaultProp: t,
|
|
6115
6138
|
onChange: n = () => {
|
|
6116
6139
|
},
|
|
6117
6140
|
caller: r
|
|
6118
6141
|
}) {
|
|
6119
|
-
const [o, s, i] =
|
|
6142
|
+
const [o, s, i] = ga({
|
|
6120
6143
|
defaultProp: t,
|
|
6121
6144
|
onChange: n
|
|
6122
6145
|
}), a = e !== void 0, l = a ? e : o;
|
|
@@ -6132,7 +6155,7 @@ function la({
|
|
|
6132
6155
|
const c = f.useCallback(
|
|
6133
6156
|
(u) => {
|
|
6134
6157
|
if (a) {
|
|
6135
|
-
const d =
|
|
6158
|
+
const d = ha(u) ? u(e) : u;
|
|
6136
6159
|
d !== e && i.current?.(d);
|
|
6137
6160
|
} else
|
|
6138
6161
|
s(u);
|
|
@@ -6141,21 +6164,21 @@ function la({
|
|
|
6141
6164
|
);
|
|
6142
6165
|
return [l, c];
|
|
6143
6166
|
}
|
|
6144
|
-
function
|
|
6167
|
+
function ga({
|
|
6145
6168
|
defaultProp: e,
|
|
6146
6169
|
onChange: t
|
|
6147
6170
|
}) {
|
|
6148
6171
|
const [n, r] = f.useState(e), o = f.useRef(n), s = f.useRef(t);
|
|
6149
|
-
return
|
|
6172
|
+
return ma(() => {
|
|
6150
6173
|
s.current = t;
|
|
6151
6174
|
}, [t]), f.useEffect(() => {
|
|
6152
6175
|
o.current !== n && (s.current?.(n), o.current = n);
|
|
6153
6176
|
}, [n, o]), [n, r, s];
|
|
6154
6177
|
}
|
|
6155
|
-
function
|
|
6178
|
+
function ha(e) {
|
|
6156
6179
|
return typeof e == "function";
|
|
6157
6180
|
}
|
|
6158
|
-
var
|
|
6181
|
+
var ba = Object.freeze({
|
|
6159
6182
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
6160
6183
|
position: "absolute",
|
|
6161
6184
|
border: 0,
|
|
@@ -6167,23 +6190,23 @@ var ua = Object.freeze({
|
|
|
6167
6190
|
clip: "rect(0, 0, 0, 0)",
|
|
6168
6191
|
whiteSpace: "nowrap",
|
|
6169
6192
|
wordWrap: "normal"
|
|
6170
|
-
}),
|
|
6193
|
+
}), ya = "VisuallyHidden", Cr = f.forwardRef(
|
|
6171
6194
|
(e, t) => /* @__PURE__ */ x(
|
|
6172
6195
|
Oe.span,
|
|
6173
6196
|
{
|
|
6174
6197
|
...e,
|
|
6175
6198
|
ref: t,
|
|
6176
|
-
style: { ...
|
|
6199
|
+
style: { ...ba, ...e.style }
|
|
6177
6200
|
}
|
|
6178
6201
|
)
|
|
6179
6202
|
);
|
|
6180
|
-
|
|
6181
|
-
var
|
|
6182
|
-
|
|
6183
|
-
]), bt =
|
|
6203
|
+
Cr.displayName = ya;
|
|
6204
|
+
var wa = Cr, [ht] = Zn("Tooltip", [
|
|
6205
|
+
gr
|
|
6206
|
+
]), bt = gr(), Sr = "TooltipProvider", xa = 700, Nt = "tooltip.open", [va, jt] = ht(Sr), Tr = (e) => {
|
|
6184
6207
|
const {
|
|
6185
6208
|
__scopeTooltip: t,
|
|
6186
|
-
delayDuration: n =
|
|
6209
|
+
delayDuration: n = xa,
|
|
6187
6210
|
skipDelayDuration: r = 300,
|
|
6188
6211
|
disableHoverableContent: o = !1,
|
|
6189
6212
|
children: s
|
|
@@ -6192,7 +6215,7 @@ var ma = vr, [ht] = Kn("Tooltip", [
|
|
|
6192
6215
|
const c = l.current;
|
|
6193
6216
|
return () => window.clearTimeout(c);
|
|
6194
6217
|
}, []), /* @__PURE__ */ x(
|
|
6195
|
-
|
|
6218
|
+
va,
|
|
6196
6219
|
{
|
|
6197
6220
|
scope: t,
|
|
6198
6221
|
isOpenDelayedRef: i,
|
|
@@ -6215,8 +6238,8 @@ var ma = vr, [ht] = Kn("Tooltip", [
|
|
|
6215
6238
|
}
|
|
6216
6239
|
);
|
|
6217
6240
|
};
|
|
6218
|
-
|
|
6219
|
-
var Be = "Tooltip", [
|
|
6241
|
+
Tr.displayName = Sr;
|
|
6242
|
+
var Be = "Tooltip", [Ea, yt] = ht(Be), Or = (e) => {
|
|
6220
6243
|
const {
|
|
6221
6244
|
__scopeTooltip: t,
|
|
6222
6245
|
children: n,
|
|
@@ -6225,7 +6248,7 @@ var Be = "Tooltip", [ha, yt] = ht(Be), Rr = (e) => {
|
|
|
6225
6248
|
onOpenChange: s,
|
|
6226
6249
|
disableHoverableContent: i,
|
|
6227
6250
|
delayDuration: a
|
|
6228
|
-
} = e, l = jt(Be, e.__scopeTooltip), c = bt(t), [u, d] = f.useState(null),
|
|
6251
|
+
} = e, l = jt(Be, e.__scopeTooltip), c = bt(t), [u, d] = f.useState(null), m = Vs(), p = f.useRef(0), g = i ?? l.disableHoverableContent, b = a ?? l.delayDuration, w = f.useRef(!1), [y, E] = pa({
|
|
6229
6252
|
prop: r,
|
|
6230
6253
|
defaultProp: o ?? !1,
|
|
6231
6254
|
onChange: (T) => {
|
|
@@ -6233,21 +6256,21 @@ var Be = "Tooltip", [ha, yt] = ht(Be), Rr = (e) => {
|
|
|
6233
6256
|
},
|
|
6234
6257
|
caller: Be
|
|
6235
6258
|
}), O = f.useMemo(() => y ? w.current ? "delayed-open" : "instant-open" : "closed", [y]), S = f.useCallback(() => {
|
|
6236
|
-
window.clearTimeout(
|
|
6259
|
+
window.clearTimeout(p.current), p.current = 0, w.current = !1, E(!0);
|
|
6237
6260
|
}, [E]), k = f.useCallback(() => {
|
|
6238
|
-
window.clearTimeout(
|
|
6261
|
+
window.clearTimeout(p.current), p.current = 0, E(!1);
|
|
6239
6262
|
}, [E]), N = f.useCallback(() => {
|
|
6240
|
-
window.clearTimeout(
|
|
6241
|
-
w.current = !0, E(!0),
|
|
6263
|
+
window.clearTimeout(p.current), p.current = window.setTimeout(() => {
|
|
6264
|
+
w.current = !0, E(!0), p.current = 0;
|
|
6242
6265
|
}, b);
|
|
6243
6266
|
}, [b, E]);
|
|
6244
6267
|
return f.useEffect(() => () => {
|
|
6245
|
-
|
|
6246
|
-
}, []), /* @__PURE__ */ x(
|
|
6247
|
-
|
|
6268
|
+
p.current && (window.clearTimeout(p.current), p.current = 0);
|
|
6269
|
+
}, []), /* @__PURE__ */ x(oa, { ...c, children: /* @__PURE__ */ x(
|
|
6270
|
+
Ea,
|
|
6248
6271
|
{
|
|
6249
6272
|
scope: t,
|
|
6250
|
-
contentId:
|
|
6273
|
+
contentId: m,
|
|
6251
6274
|
open: y,
|
|
6252
6275
|
stateAttribute: O,
|
|
6253
6276
|
trigger: u,
|
|
@@ -6256,7 +6279,7 @@ var Be = "Tooltip", [ha, yt] = ht(Be), Rr = (e) => {
|
|
|
6256
6279
|
l.isOpenDelayedRef.current ? N() : S();
|
|
6257
6280
|
}, [l.isOpenDelayedRef, N, S]),
|
|
6258
6281
|
onTriggerLeave: f.useCallback(() => {
|
|
6259
|
-
g ? k() : (window.clearTimeout(
|
|
6282
|
+
g ? k() : (window.clearTimeout(p.current), p.current = 0);
|
|
6260
6283
|
}, [k, g]),
|
|
6261
6284
|
onOpen: S,
|
|
6262
6285
|
onClose: k,
|
|
@@ -6265,19 +6288,19 @@ var Be = "Tooltip", [ha, yt] = ht(Be), Rr = (e) => {
|
|
|
6265
6288
|
}
|
|
6266
6289
|
) });
|
|
6267
6290
|
};
|
|
6268
|
-
|
|
6269
|
-
var Pt = "TooltipTrigger",
|
|
6291
|
+
Or.displayName = Be;
|
|
6292
|
+
var Pt = "TooltipTrigger", kr = f.forwardRef(
|
|
6270
6293
|
(e, t) => {
|
|
6271
6294
|
const { __scopeTooltip: n, ...r } = e, o = yt(Pt, n), s = jt(Pt, n), i = bt(n), a = f.useRef(null), l = Se(t, a, o.onTriggerChange), c = f.useRef(!1), u = f.useRef(!1), d = f.useCallback(() => c.current = !1, []);
|
|
6272
|
-
return f.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ x(
|
|
6295
|
+
return f.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ x(sa, { asChild: !0, ...i, children: /* @__PURE__ */ x(
|
|
6273
6296
|
Oe.button,
|
|
6274
6297
|
{
|
|
6275
6298
|
"aria-describedby": o.open ? o.contentId : void 0,
|
|
6276
6299
|
"data-state": o.stateAttribute,
|
|
6277
6300
|
...r,
|
|
6278
6301
|
ref: l,
|
|
6279
|
-
onPointerMove: ce(e.onPointerMove, (
|
|
6280
|
-
|
|
6302
|
+
onPointerMove: ce(e.onPointerMove, (m) => {
|
|
6303
|
+
m.pointerType !== "touch" && !u.current && !s.isPointerInTransitRef.current && (o.onTriggerEnter(), u.current = !0);
|
|
6281
6304
|
}),
|
|
6282
6305
|
onPointerLeave: ce(e.onPointerLeave, () => {
|
|
6283
6306
|
o.onTriggerLeave(), u.current = !1;
|
|
@@ -6294,41 +6317,41 @@ var Pt = "TooltipTrigger", Cr = f.forwardRef(
|
|
|
6294
6317
|
) });
|
|
6295
6318
|
}
|
|
6296
6319
|
);
|
|
6297
|
-
|
|
6298
|
-
var
|
|
6320
|
+
kr.displayName = Pt;
|
|
6321
|
+
var Aa = "TooltipPortal", [ll, Ra] = ht(Aa, {
|
|
6299
6322
|
forceMount: void 0
|
|
6300
|
-
}), Le = "TooltipContent",
|
|
6323
|
+
}), Le = "TooltipContent", Nr = f.forwardRef(
|
|
6301
6324
|
(e, t) => {
|
|
6302
|
-
const n =
|
|
6303
|
-
return /* @__PURE__ */ x(
|
|
6325
|
+
const n = Ra(Le, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, i = yt(Le, e.__scopeTooltip);
|
|
6326
|
+
return /* @__PURE__ */ x(Rr, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ x(Pr, { side: o, ...s, ref: t }) : /* @__PURE__ */ x(Ca, { side: o, ...s, ref: t }) });
|
|
6304
6327
|
}
|
|
6305
|
-
),
|
|
6306
|
-
const n = yt(Le, e.__scopeTooltip), r = jt(Le, e.__scopeTooltip), o = f.useRef(null), s = Se(t, o), [i, a] = f.useState(null), { trigger: l, onClose: c } = n, u = o.current, { onPointerInTransitChange: d } = r,
|
|
6328
|
+
), Ca = f.forwardRef((e, t) => {
|
|
6329
|
+
const n = yt(Le, e.__scopeTooltip), r = jt(Le, e.__scopeTooltip), o = f.useRef(null), s = Se(t, o), [i, a] = f.useState(null), { trigger: l, onClose: c } = n, u = o.current, { onPointerInTransitChange: d } = r, m = f.useCallback(() => {
|
|
6307
6330
|
a(null), d(!1);
|
|
6308
|
-
}, [d]),
|
|
6331
|
+
}, [d]), p = f.useCallback(
|
|
6309
6332
|
(g, b) => {
|
|
6310
|
-
const w = g.currentTarget, y = { x: g.clientX, y: g.clientY }, E =
|
|
6333
|
+
const w = g.currentTarget, y = { x: g.clientX, y: g.clientY }, E = Na(y, w.getBoundingClientRect()), O = Pa(y, E), S = _a(b.getBoundingClientRect()), k = Ia([...O, ...S]);
|
|
6311
6334
|
a(k), d(!0);
|
|
6312
6335
|
},
|
|
6313
6336
|
[d]
|
|
6314
6337
|
);
|
|
6315
|
-
return f.useEffect(() => () =>
|
|
6338
|
+
return f.useEffect(() => () => m(), [m]), f.useEffect(() => {
|
|
6316
6339
|
if (l && u) {
|
|
6317
|
-
const g = (w) =>
|
|
6340
|
+
const g = (w) => p(w, u), b = (w) => p(w, l);
|
|
6318
6341
|
return l.addEventListener("pointerleave", g), u.addEventListener("pointerleave", b), () => {
|
|
6319
6342
|
l.removeEventListener("pointerleave", g), u.removeEventListener("pointerleave", b);
|
|
6320
6343
|
};
|
|
6321
6344
|
}
|
|
6322
|
-
}, [l, u,
|
|
6345
|
+
}, [l, u, p, m]), f.useEffect(() => {
|
|
6323
6346
|
if (i) {
|
|
6324
6347
|
const g = (b) => {
|
|
6325
|
-
const w = b.target, y = { x: b.clientX, y: b.clientY }, E = l?.contains(w) || u?.contains(w), O =
|
|
6326
|
-
E ?
|
|
6348
|
+
const w = b.target, y = { x: b.clientX, y: b.clientY }, E = l?.contains(w) || u?.contains(w), O = !$a(y, i);
|
|
6349
|
+
E ? m() : O && (m(), c());
|
|
6327
6350
|
};
|
|
6328
6351
|
return document.addEventListener("pointermove", g), () => document.removeEventListener("pointermove", g);
|
|
6329
6352
|
}
|
|
6330
|
-
}, [l, u, i, c,
|
|
6331
|
-
}), [
|
|
6353
|
+
}, [l, u, i, c, m]), /* @__PURE__ */ x(Pr, { ...e, ref: s });
|
|
6354
|
+
}), [Sa, Ta] = ht(Be, { isInside: !1 }), Oa = /* @__PURE__ */ fa("TooltipContent"), Pr = f.forwardRef(
|
|
6332
6355
|
(e, t) => {
|
|
6333
6356
|
const {
|
|
6334
6357
|
__scopeTooltip: n,
|
|
@@ -6340,13 +6363,13 @@ var ba = "TooltipPortal", [nl, ya] = ht(ba, {
|
|
|
6340
6363
|
} = e, l = yt(Le, n), c = bt(n), { onClose: u } = l;
|
|
6341
6364
|
return f.useEffect(() => (document.addEventListener(Nt, u), () => document.removeEventListener(Nt, u)), [u]), f.useEffect(() => {
|
|
6342
6365
|
if (l.trigger) {
|
|
6343
|
-
const d = (
|
|
6344
|
-
|
|
6366
|
+
const d = (m) => {
|
|
6367
|
+
m.target?.contains(l.trigger) && u();
|
|
6345
6368
|
};
|
|
6346
6369
|
return window.addEventListener("scroll", d, { capture: !0 }), () => window.removeEventListener("scroll", d, { capture: !0 });
|
|
6347
6370
|
}
|
|
6348
6371
|
}, [l.trigger, u]), /* @__PURE__ */ x(
|
|
6349
|
-
|
|
6372
|
+
er,
|
|
6350
6373
|
{
|
|
6351
6374
|
asChild: !0,
|
|
6352
6375
|
disableOutsidePointerEvents: !1,
|
|
@@ -6355,7 +6378,7 @@ var ba = "TooltipPortal", [nl, ya] = ht(ba, {
|
|
|
6355
6378
|
onFocusOutside: (d) => d.preventDefault(),
|
|
6356
6379
|
onDismiss: u,
|
|
6357
6380
|
children: /* @__PURE__ */ B(
|
|
6358
|
-
|
|
6381
|
+
ia,
|
|
6359
6382
|
{
|
|
6360
6383
|
"data-state": l.stateAttribute,
|
|
6361
6384
|
...c,
|
|
@@ -6370,8 +6393,8 @@ var ba = "TooltipPortal", [nl, ya] = ht(ba, {
|
|
|
6370
6393
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
6371
6394
|
},
|
|
6372
6395
|
children: [
|
|
6373
|
-
/* @__PURE__ */ x(
|
|
6374
|
-
/* @__PURE__ */ x(
|
|
6396
|
+
/* @__PURE__ */ x(Oa, { children: r }),
|
|
6397
|
+
/* @__PURE__ */ x(Sa, { scope: n, isInside: !0, children: /* @__PURE__ */ x(wa, { id: l.contentId, role: "tooltip", children: o || r }) })
|
|
6375
6398
|
]
|
|
6376
6399
|
}
|
|
6377
6400
|
)
|
|
@@ -6379,18 +6402,18 @@ var ba = "TooltipPortal", [nl, ya] = ht(ba, {
|
|
|
6379
6402
|
);
|
|
6380
6403
|
}
|
|
6381
6404
|
);
|
|
6382
|
-
|
|
6383
|
-
var
|
|
6405
|
+
Nr.displayName = Le;
|
|
6406
|
+
var _r = "TooltipArrow", ka = f.forwardRef(
|
|
6384
6407
|
(e, t) => {
|
|
6385
6408
|
const { __scopeTooltip: n, ...r } = e, o = bt(n);
|
|
6386
|
-
return
|
|
6387
|
-
|
|
6409
|
+
return Ta(
|
|
6410
|
+
_r,
|
|
6388
6411
|
n
|
|
6389
|
-
).isInside ? null : /* @__PURE__ */ x(
|
|
6412
|
+
).isInside ? null : /* @__PURE__ */ x(aa, { ...o, ...r, ref: t });
|
|
6390
6413
|
}
|
|
6391
6414
|
);
|
|
6392
|
-
|
|
6393
|
-
function
|
|
6415
|
+
ka.displayName = _r;
|
|
6416
|
+
function Na(e, t) {
|
|
6394
6417
|
const n = Math.abs(t.top - e.y), r = Math.abs(t.bottom - e.y), o = Math.abs(t.right - e.x), s = Math.abs(t.left - e.x);
|
|
6395
6418
|
switch (Math.min(n, r, o, s)) {
|
|
6396
6419
|
case s:
|
|
@@ -6405,7 +6428,7 @@ function Ra(e, t) {
|
|
|
6405
6428
|
throw new Error("unreachable");
|
|
6406
6429
|
}
|
|
6407
6430
|
}
|
|
6408
|
-
function
|
|
6431
|
+
function Pa(e, t, n = 5) {
|
|
6409
6432
|
const r = [];
|
|
6410
6433
|
switch (t) {
|
|
6411
6434
|
case "top":
|
|
@@ -6435,7 +6458,7 @@ function Ca(e, t, n = 5) {
|
|
|
6435
6458
|
}
|
|
6436
6459
|
return r;
|
|
6437
6460
|
}
|
|
6438
|
-
function
|
|
6461
|
+
function _a(e) {
|
|
6439
6462
|
const { top: t, right: n, bottom: r, left: o } = e;
|
|
6440
6463
|
return [
|
|
6441
6464
|
{ x: o, y: t },
|
|
@@ -6444,20 +6467,20 @@ function Sa(e) {
|
|
|
6444
6467
|
{ x: o, y: r }
|
|
6445
6468
|
];
|
|
6446
6469
|
}
|
|
6447
|
-
function
|
|
6470
|
+
function $a(e, t) {
|
|
6448
6471
|
const { x: n, y: r } = e;
|
|
6449
6472
|
let o = !1;
|
|
6450
6473
|
for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
|
|
6451
|
-
const a = t[s], l = t[i], c = a.x, u = a.y, d = l.x,
|
|
6452
|
-
u > r !=
|
|
6474
|
+
const a = t[s], l = t[i], c = a.x, u = a.y, d = l.x, m = l.y;
|
|
6475
|
+
u > r != m > r && n < (d - c) * (r - u) / (m - u) + c && (o = !o);
|
|
6453
6476
|
}
|
|
6454
6477
|
return o;
|
|
6455
6478
|
}
|
|
6456
|
-
function
|
|
6479
|
+
function Ia(e) {
|
|
6457
6480
|
const t = e.slice();
|
|
6458
|
-
return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0),
|
|
6481
|
+
return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0), La(t);
|
|
6459
6482
|
}
|
|
6460
|
-
function
|
|
6483
|
+
function La(e) {
|
|
6461
6484
|
if (e.length <= 1) return e.slice();
|
|
6462
6485
|
const t = [];
|
|
6463
6486
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -6482,9 +6505,9 @@ function ka(e) {
|
|
|
6482
6505
|
}
|
|
6483
6506
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
6484
6507
|
}
|
|
6485
|
-
var
|
|
6486
|
-
const
|
|
6487
|
-
|
|
6508
|
+
var Da = Tr, Ma = Or, za = kr, $r = Nr;
|
|
6509
|
+
const cl = Da, dl = Ma, ul = za, Ua = f.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ x(
|
|
6510
|
+
$r,
|
|
6488
6511
|
{
|
|
6489
6512
|
ref: r,
|
|
6490
6513
|
sideOffset: t,
|
|
@@ -6495,9 +6518,9 @@ const rl = Na, ol = Pa, sl = _a, $a = f.forwardRef(({ className: e, sideOffset:
|
|
|
6495
6518
|
...n
|
|
6496
6519
|
}
|
|
6497
6520
|
));
|
|
6498
|
-
|
|
6499
|
-
const
|
|
6500
|
-
function
|
|
6521
|
+
Ua.displayName = $r.displayName;
|
|
6522
|
+
const fl = "agent-approval-count-changed";
|
|
6523
|
+
function Fa(e, t) {
|
|
6501
6524
|
if (e.length > 0) {
|
|
6502
6525
|
const n = e[e.length - 1];
|
|
6503
6526
|
if (n && typeof n == "object" && !Array.isArray(n))
|
|
@@ -6508,94 +6531,94 @@ function Ia(e, t) {
|
|
|
6508
6531
|
}
|
|
6509
6532
|
return [...e, { signal: t }];
|
|
6510
6533
|
}
|
|
6511
|
-
function
|
|
6512
|
-
const { domain: n = "server", onSuccess: r, onError: o } = t, [s, i] =
|
|
6534
|
+
function ml(e, t = {}) {
|
|
6535
|
+
const { domain: n = "server", onSuccess: r, onError: o } = t, [s, i] = Z(!1), [a, l] = Z(null), [c, u] = Z(null), d = Rt(!0), m = Rt(null);
|
|
6513
6536
|
_e(() => (d.current = !0, () => {
|
|
6514
|
-
d.current = !1,
|
|
6537
|
+
d.current = !1, m.current && m.current.abort();
|
|
6515
6538
|
}), []);
|
|
6516
|
-
const
|
|
6539
|
+
const p = ot(() => {
|
|
6517
6540
|
d.current && (l(null), u(null));
|
|
6518
6541
|
}, []), g = ot(async (...b) => {
|
|
6519
|
-
|
|
6542
|
+
m.current && m.current.abort();
|
|
6520
6543
|
const w = new AbortController();
|
|
6521
|
-
|
|
6544
|
+
m.current = w, d.current && (i(!0), l(null));
|
|
6522
6545
|
try {
|
|
6523
|
-
const y = await e(...
|
|
6546
|
+
const y = await e(...Fa(b, w.signal));
|
|
6524
6547
|
return !d.current || w.signal.aborted ? null : (u(y), r?.(y), y);
|
|
6525
6548
|
} catch (y) {
|
|
6526
6549
|
if (!d.current || w.signal.aborted)
|
|
6527
6550
|
return null;
|
|
6528
|
-
if (y instanceof
|
|
6551
|
+
if (y instanceof J) {
|
|
6529
6552
|
if (y.domain = n, y.status === 401)
|
|
6530
6553
|
return null;
|
|
6531
6554
|
y.status === 408 && (y.message = `${n} timed out. Check your connection and try again.`);
|
|
6532
6555
|
}
|
|
6533
6556
|
return l(y), o?.(y), null;
|
|
6534
6557
|
} finally {
|
|
6535
|
-
|
|
6558
|
+
m.current === w && (m.current = null), d.current && !w.signal.aborted && i(!1);
|
|
6536
6559
|
}
|
|
6537
6560
|
}, [e, n, o, r]);
|
|
6538
|
-
return { loading: s, error: a, data: c, execute: g, reset:
|
|
6561
|
+
return { loading: s, error: a, data: c, execute: g, reset: p };
|
|
6539
6562
|
}
|
|
6540
|
-
function
|
|
6541
|
-
const [e, t] =
|
|
6563
|
+
function pl() {
|
|
6564
|
+
const [e, t] = Z(null), n = ot((o, s = "error") => {
|
|
6542
6565
|
t({ message: String(o), type: s }), setTimeout(() => t(null), 4e3);
|
|
6543
6566
|
}, []), r = ot(() => t(null), []);
|
|
6544
6567
|
return { toast: e, showToast: n, clearToast: r };
|
|
6545
6568
|
}
|
|
6546
6569
|
export {
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6570
|
+
Kt as API_BASE,
|
|
6571
|
+
fl as APPROVAL_EVENT,
|
|
6572
|
+
il as AdminAccessRequired,
|
|
6573
|
+
J as ApiError,
|
|
6574
|
+
Qa as AppShell,
|
|
6575
|
+
Ja as AuthProvider,
|
|
6576
|
+
ys as Button,
|
|
6577
|
+
ws as Card,
|
|
6578
|
+
As as CardContent,
|
|
6579
|
+
Es as CardDescription,
|
|
6580
|
+
Rs as CardFooter,
|
|
6581
|
+
xs as CardHeader,
|
|
6582
|
+
vs as CardTitle,
|
|
6583
|
+
ol as DomainError,
|
|
6584
|
+
al as EmptyState,
|
|
6585
|
+
Xa as FEATURE_FLAGS,
|
|
6586
|
+
rl as LoadingPanel,
|
|
6587
|
+
el as ProtectedRoute,
|
|
6565
6588
|
ye as ROUTES,
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6589
|
+
Za as SystemProvider,
|
|
6590
|
+
nl as Toast,
|
|
6591
|
+
dl as Tooltip,
|
|
6592
|
+
Ua as TooltipContent,
|
|
6593
|
+
cl as TooltipProvider,
|
|
6594
|
+
ul as TooltipTrigger,
|
|
6595
|
+
tl as VersionMismatchBanner,
|
|
6596
|
+
ja as adminRequest,
|
|
6597
|
+
Wr as authRequest,
|
|
6598
|
+
Ya as authRequestExternal,
|
|
6599
|
+
lo as bootIdentity,
|
|
6600
|
+
Gr as buildApiUrl,
|
|
6601
|
+
bs as buttonVariants,
|
|
6602
|
+
io as changePassword,
|
|
6580
6603
|
Ge as clearStoredToken,
|
|
6581
6604
|
xe as cn,
|
|
6582
|
-
|
|
6605
|
+
Ka as forgotPassword,
|
|
6583
6606
|
ge as getStoredToken,
|
|
6584
|
-
|
|
6585
|
-
|
|
6607
|
+
ro as loginUser,
|
|
6608
|
+
oo as registerUser,
|
|
6586
6609
|
ie as request,
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6610
|
+
Pn as requestAbsolute,
|
|
6611
|
+
qa as resetPassword,
|
|
6612
|
+
Va as safeArray,
|
|
6613
|
+
Xt as safeMap,
|
|
6591
6614
|
Je as setStoredToken,
|
|
6592
|
-
|
|
6615
|
+
Ba as taggedRequest,
|
|
6593
6616
|
Ce as unwrapEnvelope,
|
|
6594
|
-
|
|
6595
|
-
|
|
6617
|
+
sl as useAdminApiGuard,
|
|
6618
|
+
ml as useApiCall,
|
|
6596
6619
|
It as useAuth,
|
|
6597
|
-
|
|
6598
|
-
|
|
6599
|
-
|
|
6620
|
+
co as useSystem,
|
|
6621
|
+
pl as useToast,
|
|
6622
|
+
so as verifyEmail
|
|
6600
6623
|
};
|
|
6601
6624
|
//# sourceMappingURL=index.js.map
|