@factorialco/f0-react 7.13.0 → 7.14.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/{ChatPdfThumbnail-CasoTzmS.js → ChatPdfThumbnail-C1UcYl1H.js} +1 -1
- package/dist/{ChatPostComposerDialog-CLk4RYiT.js → ChatPostComposerDialog-BtRvJU6I.js} +3 -3
- package/dist/{DocumentToolbar-oQ1B9uYt.js → DocumentToolbar-CV9lcCCY.js} +2 -2
- package/dist/{DocxViewer-VCoDg5wv.js → DocxViewer-rl6xFuWg.js} +2 -2
- package/dist/{F0AiProcessingOverlay-Cv4B3Za1.js → F0AiProcessingOverlay-DJxrxlhM.js} +1385 -1577
- package/dist/{F0CanvasPanel-D3xyeygU.js → F0CanvasPanel-Cd27SePP.js} +14097 -13831
- package/dist/{F0VideoPlayer-fLkttxV3.js → F0VideoPlayer-sGOAl4BZ.js} +19 -19
- package/dist/{MapProvider-CS2D1_u-.js → MapProvider-BJSTrUhF.js} +2 -2
- package/dist/{SheetViewer-CPwlJsIf.js → SheetViewer-sSCtCF-k.js} +2 -2
- package/dist/{TextViewer-DOCvTpB4.js → TextViewer-J0dGSrMy.js} +2 -2
- package/dist/{VolumeMuted-DKLKhxyd.js → VolumeMuted-UfTwt2zn.js} +6 -26
- package/dist/ai.d.ts +98 -1
- package/dist/ai.js +2 -2
- package/dist/component-status.js +2 -2
- package/dist/{experimental-BiVfnjJ8.js → experimental-Bp1BeeE5.js} +14383 -11213
- package/dist/experimental.d.ts +1294 -7
- package/dist/experimental.js +284 -240
- package/dist/f0.d.ts +98 -1
- package/dist/f0.js +11 -11
- package/dist/i18n-provider-defaults.d.ts +84 -0
- package/dist/i18n-provider-defaults.js +92 -0
- package/dist/{index-ngfMeMZd.js → index--lL16aZU.js} +4 -4
- package/dist/index-D37fIjbv.js +4 -0
- package/dist/{index-FtDheNrV.js → index-Dq-WsNBD.js} +2 -2
- package/dist/{pdfWorker-lezjTonm.js → pdfWorker-D4wyA0qi.js} +3 -3
- package/dist/styles.css +1 -1
- package/dist/{tooltip-CMBdJvJA.js → tooltip-BElsa4MF.js} +415 -407
- package/icons/app/Floating.d.ts +4 -0
- package/icons/app/Floating.d.ts.map +1 -0
- package/icons/app/Floating.js +5 -0
- package/icons/app/index.d.ts +4 -3
- package/icons/app/index.d.ts.map +1 -1
- package/icons/app/index.js +4 -3
- package/package.json +2 -2
- package/dist/index-KQQFyh9M.js +0 -4
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { jsx as O, Fragment as
|
|
1
|
+
import { jsx as O, Fragment as Sn, jsxs as On } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import { useLayoutEffect as
|
|
3
|
+
import { useLayoutEffect as Tn, useEffect as kn, useContext as Ln, createContext as Mn } from "react";
|
|
4
4
|
import * as Ct from "react-dom";
|
|
5
|
-
import
|
|
6
|
-
function
|
|
5
|
+
import Nn from "react-dom";
|
|
6
|
+
function Pt(e) {
|
|
7
7
|
var t, n, o = "";
|
|
8
8
|
if (typeof e == "string" || typeof e == "number") o += e;
|
|
9
9
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
10
10
|
var r = e.length;
|
|
11
|
-
for (t = 0; t < r; t++) e[t] && (n =
|
|
11
|
+
for (t = 0; t < r; t++) e[t] && (n = Pt(e[t])) && (o && (o += " "), o += n);
|
|
12
12
|
} else for (n in e) e[n] && (o && (o += " "), o += n);
|
|
13
13
|
return o;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
for (var e, t, n = 0, o = "", r = arguments.length; n < r; n++) (e = arguments[n]) && (t =
|
|
15
|
+
function Dn() {
|
|
16
|
+
for (var e, t, n = 0, o = "", r = arguments.length; n < r; n++) (e = arguments[n]) && (t = Pt(e)) && (o && (o += " "), o += t);
|
|
17
17
|
return o;
|
|
18
18
|
}
|
|
19
|
-
const Ye = "-",
|
|
20
|
-
const t =
|
|
19
|
+
const Ye = "-", _n = (e) => {
|
|
20
|
+
const t = zn(e), {
|
|
21
21
|
conflictingClassGroups: n,
|
|
22
22
|
conflictingClassGroupModifiers: o
|
|
23
23
|
} = e;
|
|
24
24
|
return {
|
|
25
25
|
getClassGroupId: (i) => {
|
|
26
26
|
const a = i.split(Ye);
|
|
27
|
-
return a[0] === "" && a.length !== 1 && a.shift(),
|
|
27
|
+
return a[0] === "" && a.length !== 1 && a.shift(), At(a, t) || In(i);
|
|
28
28
|
},
|
|
29
29
|
getConflictingClassGroupIds: (i, a) => {
|
|
30
30
|
const c = n[i] || [];
|
|
31
31
|
return a && o[i] ? [...c, ...o[i]] : c;
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
},
|
|
34
|
+
}, At = (e, t) => {
|
|
35
35
|
if (e.length === 0)
|
|
36
36
|
return t.classGroupId;
|
|
37
|
-
const n = e[0], o = t.nextPart.get(n), r = o ?
|
|
37
|
+
const n = e[0], o = t.nextPart.get(n), r = o ? At(e.slice(1), o) : void 0;
|
|
38
38
|
if (r)
|
|
39
39
|
return r;
|
|
40
40
|
if (t.validators.length === 0)
|
|
@@ -43,13 +43,13 @@ const Ye = "-", Mn = (e) => {
|
|
|
43
43
|
return t.validators.find(({
|
|
44
44
|
validator: i
|
|
45
45
|
}) => i(s))?.classGroupId;
|
|
46
|
-
}, it = /^\[(.+)\]$/,
|
|
46
|
+
}, it = /^\[(.+)\]$/, In = (e) => {
|
|
47
47
|
if (it.test(e)) {
|
|
48
48
|
const t = it.exec(e)[1], n = t?.substring(0, t.indexOf(":"));
|
|
49
49
|
if (n)
|
|
50
50
|
return "arbitrary.." + n;
|
|
51
51
|
}
|
|
52
|
-
},
|
|
52
|
+
}, zn = (e) => {
|
|
53
53
|
const {
|
|
54
54
|
theme: t,
|
|
55
55
|
prefix: n
|
|
@@ -57,7 +57,7 @@ const Ye = "-", Mn = (e) => {
|
|
|
57
57
|
nextPart: /* @__PURE__ */ new Map(),
|
|
58
58
|
validators: []
|
|
59
59
|
};
|
|
60
|
-
return
|
|
60
|
+
return Fn(Object.entries(e.classGroups), n).forEach(([s, i]) => {
|
|
61
61
|
We(i, o, s, t);
|
|
62
62
|
}), o;
|
|
63
63
|
}, We = (e, t, n, o) => {
|
|
@@ -68,7 +68,7 @@ const Ye = "-", Mn = (e) => {
|
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
70
|
if (typeof r == "function") {
|
|
71
|
-
if (
|
|
71
|
+
if ($n(r)) {
|
|
72
72
|
We(r(o), t, n, o);
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
@@ -90,10 +90,10 @@ const Ye = "-", Mn = (e) => {
|
|
|
90
90
|
validators: []
|
|
91
91
|
}), n = n.nextPart.get(o);
|
|
92
92
|
}), n;
|
|
93
|
-
},
|
|
93
|
+
}, $n = (e) => e.isThemeGetter, Fn = (e, t) => t ? e.map(([n, o]) => {
|
|
94
94
|
const r = o.map((s) => typeof s == "string" ? t + s : typeof s == "object" ? Object.fromEntries(Object.entries(s).map(([i, a]) => [t + i, a])) : s);
|
|
95
95
|
return [n, r];
|
|
96
|
-
}) : e,
|
|
96
|
+
}) : e, Wn = (e) => {
|
|
97
97
|
if (e < 1)
|
|
98
98
|
return {
|
|
99
99
|
get: () => {
|
|
@@ -117,7 +117,7 @@ const Ye = "-", Mn = (e) => {
|
|
|
117
117
|
n.has(s) ? n.set(s, i) : r(s, i);
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
|
-
},
|
|
120
|
+
}, Et = "!", Hn = (e) => {
|
|
121
121
|
const {
|
|
122
122
|
separator: t,
|
|
123
123
|
experimentalParseClassName: n
|
|
@@ -138,7 +138,7 @@ const Ye = "-", Mn = (e) => {
|
|
|
138
138
|
}
|
|
139
139
|
y === "[" ? l++ : y === "]" && l--;
|
|
140
140
|
}
|
|
141
|
-
const m = c.length === 0 ? a : a.substring(u), p = m.startsWith(
|
|
141
|
+
const m = c.length === 0 ? a : a.substring(u), p = m.startsWith(Et), g = p ? m.substring(1) : m, h = f && f > u ? f - u : void 0;
|
|
142
142
|
return {
|
|
143
143
|
modifiers: c,
|
|
144
144
|
hasImportantModifier: p,
|
|
@@ -150,7 +150,7 @@ const Ye = "-", Mn = (e) => {
|
|
|
150
150
|
className: a,
|
|
151
151
|
parseClassName: i
|
|
152
152
|
}) : i;
|
|
153
|
-
},
|
|
153
|
+
}, Bn = (e) => {
|
|
154
154
|
if (e.length <= 1)
|
|
155
155
|
return e;
|
|
156
156
|
const t = [];
|
|
@@ -158,16 +158,16 @@ const Ye = "-", Mn = (e) => {
|
|
|
158
158
|
return e.forEach((o) => {
|
|
159
159
|
o[0] === "[" ? (t.push(...n.sort(), o), n = []) : n.push(o);
|
|
160
160
|
}), t.push(...n.sort()), t;
|
|
161
|
-
},
|
|
162
|
-
cache:
|
|
163
|
-
parseClassName:
|
|
164
|
-
...
|
|
165
|
-
}),
|
|
161
|
+
}, Vn = (e) => ({
|
|
162
|
+
cache: Wn(e.cacheSize),
|
|
163
|
+
parseClassName: Hn(e),
|
|
164
|
+
..._n(e)
|
|
165
|
+
}), jn = /\s+/, Gn = (e, t) => {
|
|
166
166
|
const {
|
|
167
167
|
parseClassName: n,
|
|
168
168
|
getClassGroupId: o,
|
|
169
169
|
getConflictingClassGroupIds: r
|
|
170
|
-
} = t, s = [], i = e.trim().split(
|
|
170
|
+
} = t, s = [], i = e.trim().split(jn);
|
|
171
171
|
let a = "";
|
|
172
172
|
for (let c = i.length - 1; c >= 0; c -= 1) {
|
|
173
173
|
const l = i[c], {
|
|
@@ -188,20 +188,20 @@ const Ye = "-", Mn = (e) => {
|
|
|
188
188
|
}
|
|
189
189
|
g = !1;
|
|
190
190
|
}
|
|
191
|
-
const b =
|
|
191
|
+
const b = Bn(u).join(":"), y = f ? b + Et : b, w = y + h;
|
|
192
192
|
if (s.includes(w))
|
|
193
193
|
continue;
|
|
194
194
|
s.push(w);
|
|
195
195
|
const x = r(h, g);
|
|
196
196
|
for (let v = 0; v < x.length; ++v) {
|
|
197
|
-
const
|
|
198
|
-
s.push(y +
|
|
197
|
+
const P = x[v];
|
|
198
|
+
s.push(y + P);
|
|
199
199
|
}
|
|
200
200
|
a = l + (a.length > 0 ? " " + a : a);
|
|
201
201
|
}
|
|
202
202
|
return a;
|
|
203
203
|
};
|
|
204
|
-
function
|
|
204
|
+
function Un() {
|
|
205
205
|
let e = 0, t, n, o = "";
|
|
206
206
|
for (; e < arguments.length; )
|
|
207
207
|
(t = arguments[e++]) && (n = Rt(t)) && (o && (o += " "), o += n);
|
|
@@ -215,46 +215,46 @@ const Rt = (e) => {
|
|
|
215
215
|
e[o] && (t = Rt(e[o])) && (n && (n += " "), n += t);
|
|
216
216
|
return n;
|
|
217
217
|
};
|
|
218
|
-
function
|
|
218
|
+
function Yn(e, ...t) {
|
|
219
219
|
let n, o, r, s = i;
|
|
220
220
|
function i(c) {
|
|
221
221
|
const l = t.reduce((u, f) => f(u), e());
|
|
222
|
-
return n =
|
|
222
|
+
return n = Vn(l), o = n.cache.get, r = n.cache.set, s = a, a(c);
|
|
223
223
|
}
|
|
224
224
|
function a(c) {
|
|
225
225
|
const l = o(c);
|
|
226
226
|
if (l)
|
|
227
227
|
return l;
|
|
228
|
-
const u =
|
|
228
|
+
const u = Gn(c, n);
|
|
229
229
|
return r(c, u), u;
|
|
230
230
|
}
|
|
231
231
|
return function() {
|
|
232
|
-
return s(
|
|
232
|
+
return s(Un.apply(null, arguments));
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
235
|
const M = (e) => {
|
|
236
236
|
const t = (n) => n[e] || [];
|
|
237
237
|
return t.isThemeGetter = !0, t;
|
|
238
|
-
}, St = /^\[(?:([a-z-]+):)?(.+)\]$/i,
|
|
238
|
+
}, St = /^\[(?:([a-z-]+):)?(.+)\]$/i, Xn = /^\d+\/\d+$/, qn = /* @__PURE__ */ new Set(["px", "full", "screen"]), Kn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Zn = /\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$/, Jn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Qn = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, eo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, K = (e) => ce(e) || qn.has(e) || Xn.test(e), ee = (e) => fe(e, "length", co), ce = (e) => !!e && !Number.isNaN(Number(e)), ze = (e) => fe(e, "number", ce), he = (e) => !!e && Number.isInteger(Number(e)), to = (e) => e.endsWith("%") && ce(e.slice(0, -1)), E = (e) => St.test(e), te = (e) => Kn.test(e), no = /* @__PURE__ */ new Set(["length", "size", "percentage"]), oo = (e) => fe(e, no, Ot), ro = (e) => fe(e, "position", Ot), so = /* @__PURE__ */ new Set(["image", "url"]), io = (e) => fe(e, so, uo), ao = (e) => fe(e, "", lo), be = () => !0, fe = (e, t, n) => {
|
|
239
239
|
const o = St.exec(e);
|
|
240
240
|
return o ? o[1] ? typeof t == "string" ? o[1] === t : t.has(o[1]) : n(o[2]) : !1;
|
|
241
|
-
},
|
|
241
|
+
}, co = (e) => (
|
|
242
242
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
243
243
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
244
244
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
245
|
-
|
|
246
|
-
), Ot = () => !1,
|
|
247
|
-
const e = M("colors"), t = M("spacing"), n = M("blur"), o = M("brightness"), r = M("borderColor"), s = M("borderRadius"), i = M("borderSpacing"), a = M("borderWidth"), c = M("contrast"), l = M("grayscale"), u = M("hueRotate"), f = M("invert"), m = M("gap"), p = M("gradientColorStops"), g = M("gradientColorStopPositions"), h = M("inset"), b = M("margin"), y = M("opacity"), w = M("padding"), x = M("saturate"), v = M("scale"),
|
|
245
|
+
Zn.test(e) && !Jn.test(e)
|
|
246
|
+
), Ot = () => !1, lo = (e) => Qn.test(e), uo = (e) => eo.test(e), fo = () => {
|
|
247
|
+
const e = M("colors"), t = M("spacing"), n = M("blur"), o = M("brightness"), r = M("borderColor"), s = M("borderRadius"), i = M("borderSpacing"), a = M("borderWidth"), c = M("contrast"), l = M("grayscale"), u = M("hueRotate"), f = M("invert"), m = M("gap"), p = M("gradientColorStops"), g = M("gradientColorStopPositions"), h = M("inset"), b = M("margin"), y = M("opacity"), w = M("padding"), x = M("saturate"), v = M("scale"), P = M("sepia"), A = M("skew"), C = M("space"), L = M("translate"), z = () => ["auto", "contain", "none"], T = () => ["auto", "hidden", "clip", "visible", "scroll"], $ = () => ["auto", E, t], R = () => [E, t], D = () => ["", K, ee], k = () => ["auto", ce, E], F = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], N = () => ["solid", "dashed", "dotted", "double", "none"], _ = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], S = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], I = () => ["", "0", E], W = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], V = () => [ce, E];
|
|
248
248
|
return {
|
|
249
249
|
cacheSize: 500,
|
|
250
250
|
separator: ":",
|
|
251
251
|
theme: {
|
|
252
252
|
colors: [be],
|
|
253
253
|
spacing: [K, ee],
|
|
254
|
-
blur: ["none", "", te,
|
|
254
|
+
blur: ["none", "", te, E],
|
|
255
255
|
brightness: V(),
|
|
256
256
|
borderColor: [e],
|
|
257
|
-
borderRadius: ["none", "", "full", te,
|
|
257
|
+
borderRadius: ["none", "", "full", te, E],
|
|
258
258
|
borderSpacing: R(),
|
|
259
259
|
borderWidth: D(),
|
|
260
260
|
contrast: V(),
|
|
@@ -263,7 +263,7 @@ const M = (e) => {
|
|
|
263
263
|
invert: I(),
|
|
264
264
|
gap: R(),
|
|
265
265
|
gradientColorStops: [e],
|
|
266
|
-
gradientColorStopPositions: [
|
|
266
|
+
gradientColorStopPositions: [to, ee],
|
|
267
267
|
inset: $(),
|
|
268
268
|
margin: $(),
|
|
269
269
|
opacity: V(),
|
|
@@ -282,7 +282,7 @@ const M = (e) => {
|
|
|
282
282
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
283
283
|
*/
|
|
284
284
|
aspect: [{
|
|
285
|
-
aspect: ["auto", "square", "video",
|
|
285
|
+
aspect: ["auto", "square", "video", E]
|
|
286
286
|
}],
|
|
287
287
|
/**
|
|
288
288
|
* Container
|
|
@@ -367,7 +367,7 @@ const M = (e) => {
|
|
|
367
367
|
* @see https://tailwindcss.com/docs/object-position
|
|
368
368
|
*/
|
|
369
369
|
"object-position": [{
|
|
370
|
-
object: [...F(),
|
|
370
|
+
object: [...F(), E]
|
|
371
371
|
}],
|
|
372
372
|
/**
|
|
373
373
|
* Overflow
|
|
@@ -489,7 +489,7 @@ const M = (e) => {
|
|
|
489
489
|
* @see https://tailwindcss.com/docs/z-index
|
|
490
490
|
*/
|
|
491
491
|
z: [{
|
|
492
|
-
z: ["auto", he,
|
|
492
|
+
z: ["auto", he, E]
|
|
493
493
|
}],
|
|
494
494
|
// Flexbox and Grid
|
|
495
495
|
/**
|
|
@@ -518,7 +518,7 @@ const M = (e) => {
|
|
|
518
518
|
* @see https://tailwindcss.com/docs/flex
|
|
519
519
|
*/
|
|
520
520
|
flex: [{
|
|
521
|
-
flex: ["1", "auto", "initial", "none",
|
|
521
|
+
flex: ["1", "auto", "initial", "none", E]
|
|
522
522
|
}],
|
|
523
523
|
/**
|
|
524
524
|
* Flex Grow
|
|
@@ -539,7 +539,7 @@ const M = (e) => {
|
|
|
539
539
|
* @see https://tailwindcss.com/docs/order
|
|
540
540
|
*/
|
|
541
541
|
order: [{
|
|
542
|
-
order: ["first", "last", "none", he,
|
|
542
|
+
order: ["first", "last", "none", he, E]
|
|
543
543
|
}],
|
|
544
544
|
/**
|
|
545
545
|
* Grid Template Columns
|
|
@@ -554,8 +554,8 @@ const M = (e) => {
|
|
|
554
554
|
*/
|
|
555
555
|
"col-start-end": [{
|
|
556
556
|
col: ["auto", {
|
|
557
|
-
span: ["full", he,
|
|
558
|
-
},
|
|
557
|
+
span: ["full", he, E]
|
|
558
|
+
}, E]
|
|
559
559
|
}],
|
|
560
560
|
/**
|
|
561
561
|
* Grid Column Start
|
|
@@ -584,8 +584,8 @@ const M = (e) => {
|
|
|
584
584
|
*/
|
|
585
585
|
"row-start-end": [{
|
|
586
586
|
row: ["auto", {
|
|
587
|
-
span: [he,
|
|
588
|
-
},
|
|
587
|
+
span: [he, E]
|
|
588
|
+
}, E]
|
|
589
589
|
}],
|
|
590
590
|
/**
|
|
591
591
|
* Grid Row Start
|
|
@@ -613,14 +613,14 @@ const M = (e) => {
|
|
|
613
613
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
614
614
|
*/
|
|
615
615
|
"auto-cols": [{
|
|
616
|
-
"auto-cols": ["auto", "min", "max", "fr",
|
|
616
|
+
"auto-cols": ["auto", "min", "max", "fr", E]
|
|
617
617
|
}],
|
|
618
618
|
/**
|
|
619
619
|
* Grid Auto Rows
|
|
620
620
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
621
621
|
*/
|
|
622
622
|
"auto-rows": [{
|
|
623
|
-
"auto-rows": ["auto", "min", "max", "fr",
|
|
623
|
+
"auto-rows": ["auto", "min", "max", "fr", E]
|
|
624
624
|
}],
|
|
625
625
|
/**
|
|
626
626
|
* Gap
|
|
@@ -863,21 +863,21 @@ const M = (e) => {
|
|
|
863
863
|
* @see https://tailwindcss.com/docs/width
|
|
864
864
|
*/
|
|
865
865
|
w: [{
|
|
866
|
-
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw",
|
|
866
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", E, t]
|
|
867
867
|
}],
|
|
868
868
|
/**
|
|
869
869
|
* Min-Width
|
|
870
870
|
* @see https://tailwindcss.com/docs/min-width
|
|
871
871
|
*/
|
|
872
872
|
"min-w": [{
|
|
873
|
-
"min-w": [
|
|
873
|
+
"min-w": [E, t, "min", "max", "fit"]
|
|
874
874
|
}],
|
|
875
875
|
/**
|
|
876
876
|
* Max-Width
|
|
877
877
|
* @see https://tailwindcss.com/docs/max-width
|
|
878
878
|
*/
|
|
879
879
|
"max-w": [{
|
|
880
|
-
"max-w": [
|
|
880
|
+
"max-w": [E, t, "none", "full", "min", "max", "fit", "prose", {
|
|
881
881
|
screen: [te]
|
|
882
882
|
}, te]
|
|
883
883
|
}],
|
|
@@ -886,28 +886,28 @@ const M = (e) => {
|
|
|
886
886
|
* @see https://tailwindcss.com/docs/height
|
|
887
887
|
*/
|
|
888
888
|
h: [{
|
|
889
|
-
h: [
|
|
889
|
+
h: [E, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
890
890
|
}],
|
|
891
891
|
/**
|
|
892
892
|
* Min-Height
|
|
893
893
|
* @see https://tailwindcss.com/docs/min-height
|
|
894
894
|
*/
|
|
895
895
|
"min-h": [{
|
|
896
|
-
"min-h": [
|
|
896
|
+
"min-h": [E, t, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
897
897
|
}],
|
|
898
898
|
/**
|
|
899
899
|
* Max-Height
|
|
900
900
|
* @see https://tailwindcss.com/docs/max-height
|
|
901
901
|
*/
|
|
902
902
|
"max-h": [{
|
|
903
|
-
"max-h": [
|
|
903
|
+
"max-h": [E, t, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
904
904
|
}],
|
|
905
905
|
/**
|
|
906
906
|
* Size
|
|
907
907
|
* @see https://tailwindcss.com/docs/size
|
|
908
908
|
*/
|
|
909
909
|
size: [{
|
|
910
|
-
size: [
|
|
910
|
+
size: [E, t, "auto", "min", "max", "fit"]
|
|
911
911
|
}],
|
|
912
912
|
// Typography
|
|
913
913
|
/**
|
|
@@ -976,7 +976,7 @@ const M = (e) => {
|
|
|
976
976
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
977
977
|
*/
|
|
978
978
|
tracking: [{
|
|
979
|
-
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest",
|
|
979
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", E]
|
|
980
980
|
}],
|
|
981
981
|
/**
|
|
982
982
|
* Line Clamp
|
|
@@ -990,21 +990,21 @@ const M = (e) => {
|
|
|
990
990
|
* @see https://tailwindcss.com/docs/line-height
|
|
991
991
|
*/
|
|
992
992
|
leading: [{
|
|
993
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", K,
|
|
993
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", K, E]
|
|
994
994
|
}],
|
|
995
995
|
/**
|
|
996
996
|
* List Style Image
|
|
997
997
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
998
998
|
*/
|
|
999
999
|
"list-image": [{
|
|
1000
|
-
"list-image": ["none",
|
|
1000
|
+
"list-image": ["none", E]
|
|
1001
1001
|
}],
|
|
1002
1002
|
/**
|
|
1003
1003
|
* List Style Type
|
|
1004
1004
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1005
1005
|
*/
|
|
1006
1006
|
"list-style-type": [{
|
|
1007
|
-
list: ["none", "disc", "decimal",
|
|
1007
|
+
list: ["none", "disc", "decimal", E]
|
|
1008
1008
|
}],
|
|
1009
1009
|
/**
|
|
1010
1010
|
* List Style Position
|
|
@@ -1073,7 +1073,7 @@ const M = (e) => {
|
|
|
1073
1073
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1074
1074
|
*/
|
|
1075
1075
|
"underline-offset": [{
|
|
1076
|
-
"underline-offset": ["auto", K,
|
|
1076
|
+
"underline-offset": ["auto", K, E]
|
|
1077
1077
|
}],
|
|
1078
1078
|
/**
|
|
1079
1079
|
* Text Decoration Color
|
|
@@ -1111,7 +1111,7 @@ const M = (e) => {
|
|
|
1111
1111
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1112
1112
|
*/
|
|
1113
1113
|
"vertical-align": [{
|
|
1114
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1114
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", E]
|
|
1115
1115
|
}],
|
|
1116
1116
|
/**
|
|
1117
1117
|
* Whitespace
|
|
@@ -1139,7 +1139,7 @@ const M = (e) => {
|
|
|
1139
1139
|
* @see https://tailwindcss.com/docs/content
|
|
1140
1140
|
*/
|
|
1141
1141
|
content: [{
|
|
1142
|
-
content: ["none",
|
|
1142
|
+
content: ["none", E]
|
|
1143
1143
|
}],
|
|
1144
1144
|
// Backgrounds
|
|
1145
1145
|
/**
|
|
@@ -1176,7 +1176,7 @@ const M = (e) => {
|
|
|
1176
1176
|
* @see https://tailwindcss.com/docs/background-position
|
|
1177
1177
|
*/
|
|
1178
1178
|
"bg-position": [{
|
|
1179
|
-
bg: [...F(),
|
|
1179
|
+
bg: [...F(), ro]
|
|
1180
1180
|
}],
|
|
1181
1181
|
/**
|
|
1182
1182
|
* Background Repeat
|
|
@@ -1192,7 +1192,7 @@ const M = (e) => {
|
|
|
1192
1192
|
* @see https://tailwindcss.com/docs/background-size
|
|
1193
1193
|
*/
|
|
1194
1194
|
"bg-size": [{
|
|
1195
|
-
bg: ["auto", "cover", "contain",
|
|
1195
|
+
bg: ["auto", "cover", "contain", oo]
|
|
1196
1196
|
}],
|
|
1197
1197
|
/**
|
|
1198
1198
|
* Background Image
|
|
@@ -1201,7 +1201,7 @@ const M = (e) => {
|
|
|
1201
1201
|
"bg-image": [{
|
|
1202
1202
|
bg: ["none", {
|
|
1203
1203
|
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1204
|
-
},
|
|
1204
|
+
}, io]
|
|
1205
1205
|
}],
|
|
1206
1206
|
/**
|
|
1207
1207
|
* Background Color
|
|
@@ -1555,7 +1555,7 @@ const M = (e) => {
|
|
|
1555
1555
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1556
1556
|
*/
|
|
1557
1557
|
"outline-offset": [{
|
|
1558
|
-
"outline-offset": [K,
|
|
1558
|
+
"outline-offset": [K, E]
|
|
1559
1559
|
}],
|
|
1560
1560
|
/**
|
|
1561
1561
|
* Outline Width
|
|
@@ -1617,7 +1617,7 @@ const M = (e) => {
|
|
|
1617
1617
|
* @see https://tailwindcss.com/docs/box-shadow
|
|
1618
1618
|
*/
|
|
1619
1619
|
shadow: [{
|
|
1620
|
-
shadow: ["", "inner", "none", te,
|
|
1620
|
+
shadow: ["", "inner", "none", te, ao]
|
|
1621
1621
|
}],
|
|
1622
1622
|
/**
|
|
1623
1623
|
* Box Shadow Color
|
|
@@ -1682,7 +1682,7 @@ const M = (e) => {
|
|
|
1682
1682
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
1683
1683
|
*/
|
|
1684
1684
|
"drop-shadow": [{
|
|
1685
|
-
"drop-shadow": ["", "none", te,
|
|
1685
|
+
"drop-shadow": ["", "none", te, E]
|
|
1686
1686
|
}],
|
|
1687
1687
|
/**
|
|
1688
1688
|
* Grayscale
|
|
@@ -1717,7 +1717,7 @@ const M = (e) => {
|
|
|
1717
1717
|
* @see https://tailwindcss.com/docs/sepia
|
|
1718
1718
|
*/
|
|
1719
1719
|
sepia: [{
|
|
1720
|
-
sepia: [
|
|
1720
|
+
sepia: [P]
|
|
1721
1721
|
}],
|
|
1722
1722
|
/**
|
|
1723
1723
|
* Backdrop Filter
|
|
@@ -1788,7 +1788,7 @@ const M = (e) => {
|
|
|
1788
1788
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
1789
1789
|
*/
|
|
1790
1790
|
"backdrop-sepia": [{
|
|
1791
|
-
"backdrop-sepia": [
|
|
1791
|
+
"backdrop-sepia": [P]
|
|
1792
1792
|
}],
|
|
1793
1793
|
// Tables
|
|
1794
1794
|
/**
|
|
@@ -1839,7 +1839,7 @@ const M = (e) => {
|
|
|
1839
1839
|
* @see https://tailwindcss.com/docs/transition-property
|
|
1840
1840
|
*/
|
|
1841
1841
|
transition: [{
|
|
1842
|
-
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform",
|
|
1842
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", E]
|
|
1843
1843
|
}],
|
|
1844
1844
|
/**
|
|
1845
1845
|
* Transition Duration
|
|
@@ -1853,7 +1853,7 @@ const M = (e) => {
|
|
|
1853
1853
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
1854
1854
|
*/
|
|
1855
1855
|
ease: [{
|
|
1856
|
-
ease: ["linear", "in", "out", "in-out",
|
|
1856
|
+
ease: ["linear", "in", "out", "in-out", E]
|
|
1857
1857
|
}],
|
|
1858
1858
|
/**
|
|
1859
1859
|
* Transition Delay
|
|
@@ -1867,7 +1867,7 @@ const M = (e) => {
|
|
|
1867
1867
|
* @see https://tailwindcss.com/docs/animation
|
|
1868
1868
|
*/
|
|
1869
1869
|
animate: [{
|
|
1870
|
-
animate: ["none", "spin", "ping", "pulse", "bounce",
|
|
1870
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", E]
|
|
1871
1871
|
}],
|
|
1872
1872
|
// Transforms
|
|
1873
1873
|
/**
|
|
@@ -1903,7 +1903,7 @@ const M = (e) => {
|
|
|
1903
1903
|
* @see https://tailwindcss.com/docs/rotate
|
|
1904
1904
|
*/
|
|
1905
1905
|
rotate: [{
|
|
1906
|
-
rotate: [he,
|
|
1906
|
+
rotate: [he, E]
|
|
1907
1907
|
}],
|
|
1908
1908
|
/**
|
|
1909
1909
|
* Translate X
|
|
@@ -1924,21 +1924,21 @@ const M = (e) => {
|
|
|
1924
1924
|
* @see https://tailwindcss.com/docs/skew
|
|
1925
1925
|
*/
|
|
1926
1926
|
"skew-x": [{
|
|
1927
|
-
"skew-x": [
|
|
1927
|
+
"skew-x": [A]
|
|
1928
1928
|
}],
|
|
1929
1929
|
/**
|
|
1930
1930
|
* Skew Y
|
|
1931
1931
|
* @see https://tailwindcss.com/docs/skew
|
|
1932
1932
|
*/
|
|
1933
1933
|
"skew-y": [{
|
|
1934
|
-
"skew-y": [
|
|
1934
|
+
"skew-y": [A]
|
|
1935
1935
|
}],
|
|
1936
1936
|
/**
|
|
1937
1937
|
* Transform Origin
|
|
1938
1938
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
1939
1939
|
*/
|
|
1940
1940
|
"transform-origin": [{
|
|
1941
|
-
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left",
|
|
1941
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", E]
|
|
1942
1942
|
}],
|
|
1943
1943
|
// Interactivity
|
|
1944
1944
|
/**
|
|
@@ -1960,7 +1960,7 @@ const M = (e) => {
|
|
|
1960
1960
|
* @see https://tailwindcss.com/docs/cursor
|
|
1961
1961
|
*/
|
|
1962
1962
|
cursor: [{
|
|
1963
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
1963
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", E]
|
|
1964
1964
|
}],
|
|
1965
1965
|
/**
|
|
1966
1966
|
* Caret Color
|
|
@@ -2182,7 +2182,7 @@ const M = (e) => {
|
|
|
2182
2182
|
* @see https://tailwindcss.com/docs/will-change
|
|
2183
2183
|
*/
|
|
2184
2184
|
"will-change": [{
|
|
2185
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
2185
|
+
"will-change": ["auto", "scroll", "contents", "transform", E]
|
|
2186
2186
|
}],
|
|
2187
2187
|
// SVG
|
|
2188
2188
|
/**
|
|
@@ -2272,11 +2272,11 @@ const M = (e) => {
|
|
|
2272
2272
|
"font-size": ["leading"]
|
|
2273
2273
|
}
|
|
2274
2274
|
};
|
|
2275
|
-
},
|
|
2275
|
+
}, po = /* @__PURE__ */ Yn(fo);
|
|
2276
2276
|
function Tt(...e) {
|
|
2277
|
-
return
|
|
2277
|
+
return po(Dn(e));
|
|
2278
2278
|
}
|
|
2279
|
-
function
|
|
2279
|
+
function zs(e) {
|
|
2280
2280
|
return Tt(
|
|
2281
2281
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-f1-special-ring focus-visible:ring-offset-1",
|
|
2282
2282
|
e
|
|
@@ -2340,9 +2340,9 @@ function Lt(e, t = []) {
|
|
|
2340
2340
|
);
|
|
2341
2341
|
};
|
|
2342
2342
|
};
|
|
2343
|
-
return r.scopeName = e, [o,
|
|
2343
|
+
return r.scopeName = e, [o, mo(r, ...t)];
|
|
2344
2344
|
}
|
|
2345
|
-
function
|
|
2345
|
+
function mo(...e) {
|
|
2346
2346
|
const t = e[0];
|
|
2347
2347
|
if (e.length === 1) return t;
|
|
2348
2348
|
const n = () => {
|
|
@@ -2362,8 +2362,8 @@ function uo(...e) {
|
|
|
2362
2362
|
}
|
|
2363
2363
|
// @__NO_SIDE_EFFECTS__
|
|
2364
2364
|
function Mt(e) {
|
|
2365
|
-
const t = /* @__PURE__ */
|
|
2366
|
-
const { children: s, ...i } = o, a = d.Children.toArray(s), c = a.find(
|
|
2365
|
+
const t = /* @__PURE__ */ go(e), n = d.forwardRef((o, r) => {
|
|
2366
|
+
const { children: s, ...i } = o, a = d.Children.toArray(s), c = a.find(bo);
|
|
2367
2367
|
if (c) {
|
|
2368
2368
|
const l = c.props.children, u = a.map((f) => f === c ? d.Children.count(l) > 1 ? d.Children.only(null) : d.isValidElement(l) ? l.props.children : null : f);
|
|
2369
2369
|
return /* @__PURE__ */ O(t, { ...i, ref: r, children: d.isValidElement(l) ? d.cloneElement(l, void 0, u) : null });
|
|
@@ -2372,13 +2372,13 @@ function Mt(e) {
|
|
|
2372
2372
|
});
|
|
2373
2373
|
return n.displayName = `${e}.Slot`, n;
|
|
2374
2374
|
}
|
|
2375
|
-
var
|
|
2375
|
+
var $s = /* @__PURE__ */ Mt("Slot");
|
|
2376
2376
|
// @__NO_SIDE_EFFECTS__
|
|
2377
|
-
function
|
|
2377
|
+
function go(e) {
|
|
2378
2378
|
const t = d.forwardRef((n, o) => {
|
|
2379
2379
|
const { children: r, ...s } = n;
|
|
2380
2380
|
if (d.isValidElement(r)) {
|
|
2381
|
-
const i =
|
|
2381
|
+
const i = wo(r), a = yo(s, r.props);
|
|
2382
2382
|
return r.type !== d.Fragment && (a.ref = o ? kt(o, i) : i), d.cloneElement(r, a);
|
|
2383
2383
|
}
|
|
2384
2384
|
return d.Children.count(r) > 1 ? d.Children.only(null) : null;
|
|
@@ -2387,14 +2387,14 @@ function fo(e) {
|
|
|
2387
2387
|
}
|
|
2388
2388
|
var Nt = /* @__PURE__ */ Symbol("radix.slottable");
|
|
2389
2389
|
// @__NO_SIDE_EFFECTS__
|
|
2390
|
-
function
|
|
2391
|
-
const t = ({ children: n }) => /* @__PURE__ */ O(
|
|
2390
|
+
function ho(e) {
|
|
2391
|
+
const t = ({ children: n }) => /* @__PURE__ */ O(Sn, { children: n });
|
|
2392
2392
|
return t.displayName = `${e}.Slottable`, t.__radixId = Nt, t;
|
|
2393
2393
|
}
|
|
2394
|
-
function
|
|
2394
|
+
function bo(e) {
|
|
2395
2395
|
return d.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Nt;
|
|
2396
2396
|
}
|
|
2397
|
-
function
|
|
2397
|
+
function yo(e, t) {
|
|
2398
2398
|
const n = { ...t };
|
|
2399
2399
|
for (const o in t) {
|
|
2400
2400
|
const r = e[o], s = t[o];
|
|
@@ -2405,11 +2405,11 @@ function go(e, t) {
|
|
|
2405
2405
|
}
|
|
2406
2406
|
return { ...e, ...n };
|
|
2407
2407
|
}
|
|
2408
|
-
function
|
|
2408
|
+
function wo(e) {
|
|
2409
2409
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
2410
2410
|
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);
|
|
2411
2411
|
}
|
|
2412
|
-
var
|
|
2412
|
+
var vo = [
|
|
2413
2413
|
"a",
|
|
2414
2414
|
"button",
|
|
2415
2415
|
"div",
|
|
@@ -2427,14 +2427,14 @@ var bo = [
|
|
|
2427
2427
|
"span",
|
|
2428
2428
|
"svg",
|
|
2429
2429
|
"ul"
|
|
2430
|
-
], se =
|
|
2430
|
+
], se = vo.reduce((e, t) => {
|
|
2431
2431
|
const n = /* @__PURE__ */ Mt(`Primitive.${t}`), o = d.forwardRef((r, s) => {
|
|
2432
2432
|
const { asChild: i, ...a } = r, c = i ? n : t;
|
|
2433
2433
|
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ O(c, { ...a, ref: s });
|
|
2434
2434
|
});
|
|
2435
2435
|
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
2436
2436
|
}, {});
|
|
2437
|
-
function
|
|
2437
|
+
function xo(e, t) {
|
|
2438
2438
|
e && Ct.flushSync(() => e.dispatchEvent(t));
|
|
2439
2439
|
}
|
|
2440
2440
|
function ke(e) {
|
|
@@ -2443,7 +2443,7 @@ function ke(e) {
|
|
|
2443
2443
|
t.current = e;
|
|
2444
2444
|
}), d.useMemo(() => (...n) => t.current?.(...n), []);
|
|
2445
2445
|
}
|
|
2446
|
-
function
|
|
2446
|
+
function Co(e, t = globalThis?.document) {
|
|
2447
2447
|
const n = ke(e);
|
|
2448
2448
|
d.useEffect(() => {
|
|
2449
2449
|
const o = (r) => {
|
|
@@ -2452,7 +2452,7 @@ function wo(e, t = globalThis?.document) {
|
|
|
2452
2452
|
return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
|
|
2453
2453
|
}, [n, t]);
|
|
2454
2454
|
}
|
|
2455
|
-
var
|
|
2455
|
+
var Po = "DismissableLayer", He = "dismissableLayer.update", Ao = "dismissableLayer.pointerDownOutside", Eo = "dismissableLayer.focusOutside", lt, Dt = d.createContext({
|
|
2456
2456
|
layers: /* @__PURE__ */ new Set(),
|
|
2457
2457
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
2458
2458
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -2466,14 +2466,14 @@ var vo = "DismissableLayer", He = "dismissableLayer.update", xo = "dismissableLa
|
|
|
2466
2466
|
onInteractOutside: i,
|
|
2467
2467
|
onDismiss: a,
|
|
2468
2468
|
...c
|
|
2469
|
-
} = e, l = d.useContext(Dt), [u, f] = d.useState(null), m = u?.ownerDocument ?? globalThis?.document, [, p] = d.useState({}), g = ae(t, (C) => f(C)), h = Array.from(l.layers), [b] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(b), w = u ? h.indexOf(u) : -1, x = l.layersWithOutsidePointerEventsDisabled.size > 0, v = w >= y,
|
|
2469
|
+
} = e, l = d.useContext(Dt), [u, f] = d.useState(null), m = u?.ownerDocument ?? globalThis?.document, [, p] = d.useState({}), g = ae(t, (C) => f(C)), h = Array.from(l.layers), [b] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = h.indexOf(b), w = u ? h.indexOf(u) : -1, x = l.layersWithOutsidePointerEventsDisabled.size > 0, v = w >= y, P = Oo((C) => {
|
|
2470
2470
|
const L = C.target, z = [...l.branches].some((T) => T.contains(L));
|
|
2471
2471
|
!v || z || (r?.(C), i?.(C), C.defaultPrevented || a?.());
|
|
2472
|
-
}, m),
|
|
2472
|
+
}, m), A = To((C) => {
|
|
2473
2473
|
const L = C.target;
|
|
2474
2474
|
[...l.branches].some((T) => T.contains(L)) || (s?.(C), i?.(C), C.defaultPrevented || a?.());
|
|
2475
2475
|
}, m);
|
|
2476
|
-
return
|
|
2476
|
+
return Co((C) => {
|
|
2477
2477
|
w === l.layers.size - 1 && (o?.(C), !C.defaultPrevented && a && (C.preventDefault(), a()));
|
|
2478
2478
|
}, m), d.useEffect(() => {
|
|
2479
2479
|
if (u)
|
|
@@ -2494,18 +2494,18 @@ var vo = "DismissableLayer", He = "dismissableLayer.update", xo = "dismissableLa
|
|
|
2494
2494
|
pointerEvents: x ? v ? "auto" : "none" : void 0,
|
|
2495
2495
|
...e.style
|
|
2496
2496
|
},
|
|
2497
|
-
onFocusCapture: Z(e.onFocusCapture,
|
|
2498
|
-
onBlurCapture: Z(e.onBlurCapture,
|
|
2497
|
+
onFocusCapture: Z(e.onFocusCapture, A.onFocusCapture),
|
|
2498
|
+
onBlurCapture: Z(e.onBlurCapture, A.onBlurCapture),
|
|
2499
2499
|
onPointerDownCapture: Z(
|
|
2500
2500
|
e.onPointerDownCapture,
|
|
2501
|
-
|
|
2501
|
+
P.onPointerDownCapture
|
|
2502
2502
|
)
|
|
2503
2503
|
}
|
|
2504
2504
|
);
|
|
2505
2505
|
}
|
|
2506
2506
|
);
|
|
2507
|
-
_t.displayName =
|
|
2508
|
-
var
|
|
2507
|
+
_t.displayName = Po;
|
|
2508
|
+
var Ro = "DismissableLayerBranch", So = d.forwardRef((e, t) => {
|
|
2509
2509
|
const n = d.useContext(Dt), o = d.useRef(null), r = ae(t, o);
|
|
2510
2510
|
return d.useEffect(() => {
|
|
2511
2511
|
const s = o.current;
|
|
@@ -2515,8 +2515,8 @@ var Ao = "DismissableLayerBranch", Eo = d.forwardRef((e, t) => {
|
|
|
2515
2515
|
};
|
|
2516
2516
|
}, [n.branches]), /* @__PURE__ */ O(se.div, { ...e, ref: r });
|
|
2517
2517
|
});
|
|
2518
|
-
|
|
2519
|
-
function
|
|
2518
|
+
So.displayName = Ro;
|
|
2519
|
+
function Oo(e, t = globalThis?.document) {
|
|
2520
2520
|
const n = ke(e), o = d.useRef(!1), r = d.useRef(() => {
|
|
2521
2521
|
});
|
|
2522
2522
|
return d.useEffect(() => {
|
|
@@ -2524,7 +2524,7 @@ function Po(e, t = globalThis?.document) {
|
|
|
2524
2524
|
if (a.target && !o.current) {
|
|
2525
2525
|
let c = function() {
|
|
2526
2526
|
It(
|
|
2527
|
-
|
|
2527
|
+
Ao,
|
|
2528
2528
|
n,
|
|
2529
2529
|
l,
|
|
2530
2530
|
{ discrete: !0 }
|
|
@@ -2546,11 +2546,11 @@ function Po(e, t = globalThis?.document) {
|
|
|
2546
2546
|
onPointerDownCapture: () => o.current = !0
|
|
2547
2547
|
};
|
|
2548
2548
|
}
|
|
2549
|
-
function
|
|
2549
|
+
function To(e, t = globalThis?.document) {
|
|
2550
2550
|
const n = ke(e), o = d.useRef(!1);
|
|
2551
2551
|
return d.useEffect(() => {
|
|
2552
2552
|
const r = (s) => {
|
|
2553
|
-
s.target && !o.current && It(
|
|
2553
|
+
s.target && !o.current && It(Eo, n, { originalEvent: s }, {
|
|
2554
2554
|
discrete: !1
|
|
2555
2555
|
});
|
|
2556
2556
|
};
|
|
@@ -2566,26 +2566,26 @@ function ut() {
|
|
|
2566
2566
|
}
|
|
2567
2567
|
function It(e, t, n, { discrete: o }) {
|
|
2568
2568
|
const r = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
2569
|
-
t && r.addEventListener(e, t, { once: !0 }), o ?
|
|
2569
|
+
t && r.addEventListener(e, t, { once: !0 }), o ? xo(r, s) : r.dispatchEvent(s);
|
|
2570
2570
|
}
|
|
2571
2571
|
var ne = globalThis?.document ? d.useLayoutEffect : () => {
|
|
2572
|
-
},
|
|
2573
|
-
}),
|
|
2574
|
-
function
|
|
2575
|
-
const [t, n] = d.useState(
|
|
2572
|
+
}, ko = d[" useId ".trim().toString()] || (() => {
|
|
2573
|
+
}), Lo = 0;
|
|
2574
|
+
function Mo(e) {
|
|
2575
|
+
const [t, n] = d.useState(ko());
|
|
2576
2576
|
return ne(() => {
|
|
2577
|
-
n((o) => o ?? String(
|
|
2577
|
+
n((o) => o ?? String(Lo++));
|
|
2578
2578
|
}, [e]), t ? `radix-${t}` : "";
|
|
2579
2579
|
}
|
|
2580
|
-
const
|
|
2580
|
+
const No = ["top", "right", "bottom", "left"], oe = Math.min, H = Math.max, Re = Math.round, Pe = Math.floor, Y = (e) => ({
|
|
2581
2581
|
x: e,
|
|
2582
2582
|
y: e
|
|
2583
|
-
}),
|
|
2583
|
+
}), Do = {
|
|
2584
2584
|
left: "right",
|
|
2585
2585
|
right: "left",
|
|
2586
2586
|
bottom: "top",
|
|
2587
2587
|
top: "bottom"
|
|
2588
|
-
},
|
|
2588
|
+
}, _o = {
|
|
2589
2589
|
start: "end",
|
|
2590
2590
|
end: "start"
|
|
2591
2591
|
};
|
|
@@ -2607,48 +2607,48 @@ function Xe(e) {
|
|
|
2607
2607
|
function qe(e) {
|
|
2608
2608
|
return e === "y" ? "height" : "width";
|
|
2609
2609
|
}
|
|
2610
|
-
const
|
|
2610
|
+
const Io = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
2611
2611
|
function U(e) {
|
|
2612
|
-
return
|
|
2612
|
+
return Io.has(Q(e)) ? "y" : "x";
|
|
2613
2613
|
}
|
|
2614
2614
|
function Ke(e) {
|
|
2615
2615
|
return Xe(U(e));
|
|
2616
2616
|
}
|
|
2617
|
-
function
|
|
2617
|
+
function zo(e, t, n) {
|
|
2618
2618
|
n === void 0 && (n = !1);
|
|
2619
2619
|
const o = pe(e), r = Ke(e), s = qe(r);
|
|
2620
2620
|
let i = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
2621
2621
|
return t.reference[s] > t.floating[s] && (i = Se(i)), [i, Se(i)];
|
|
2622
2622
|
}
|
|
2623
|
-
function
|
|
2623
|
+
function $o(e) {
|
|
2624
2624
|
const t = Se(e);
|
|
2625
2625
|
return [Ve(e), t, Ve(t)];
|
|
2626
2626
|
}
|
|
2627
2627
|
function Ve(e) {
|
|
2628
|
-
return e.replace(/start|end/g, (t) =>
|
|
2628
|
+
return e.replace(/start|end/g, (t) => _o[t]);
|
|
2629
2629
|
}
|
|
2630
|
-
const dt = ["left", "right"], ft = ["right", "left"],
|
|
2631
|
-
function
|
|
2630
|
+
const dt = ["left", "right"], ft = ["right", "left"], Fo = ["top", "bottom"], Wo = ["bottom", "top"];
|
|
2631
|
+
function Ho(e, t, n) {
|
|
2632
2632
|
switch (e) {
|
|
2633
2633
|
case "top":
|
|
2634
2634
|
case "bottom":
|
|
2635
2635
|
return n ? t ? ft : dt : t ? dt : ft;
|
|
2636
2636
|
case "left":
|
|
2637
2637
|
case "right":
|
|
2638
|
-
return t ?
|
|
2638
|
+
return t ? Fo : Wo;
|
|
2639
2639
|
default:
|
|
2640
2640
|
return [];
|
|
2641
2641
|
}
|
|
2642
2642
|
}
|
|
2643
|
-
function
|
|
2643
|
+
function Bo(e, t, n, o) {
|
|
2644
2644
|
const r = pe(e);
|
|
2645
|
-
let s =
|
|
2645
|
+
let s = Ho(Q(e), n === "start", o);
|
|
2646
2646
|
return r && (s = s.map((i) => i + "-" + r), t && (s = s.concat(s.map(Ve)))), s;
|
|
2647
2647
|
}
|
|
2648
2648
|
function Se(e) {
|
|
2649
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
2649
|
+
return e.replace(/left|right|bottom|top/g, (t) => Do[t]);
|
|
2650
2650
|
}
|
|
2651
|
-
function
|
|
2651
|
+
function Vo(e) {
|
|
2652
2652
|
return {
|
|
2653
2653
|
top: 0,
|
|
2654
2654
|
right: 0,
|
|
@@ -2658,7 +2658,7 @@ function Wo(e) {
|
|
|
2658
2658
|
};
|
|
2659
2659
|
}
|
|
2660
2660
|
function zt(e) {
|
|
2661
|
-
return typeof e != "number" ?
|
|
2661
|
+
return typeof e != "number" ? Vo(e) : {
|
|
2662
2662
|
top: e,
|
|
2663
2663
|
right: e,
|
|
2664
2664
|
bottom: e,
|
|
@@ -2731,7 +2731,7 @@ function pt(e, t, n) {
|
|
|
2731
2731
|
}
|
|
2732
2732
|
return p;
|
|
2733
2733
|
}
|
|
2734
|
-
async function
|
|
2734
|
+
async function jo(e, t) {
|
|
2735
2735
|
var n;
|
|
2736
2736
|
t === void 0 && (t = {});
|
|
2737
2737
|
const {
|
|
@@ -2763,20 +2763,20 @@ async function Ho(e, t) {
|
|
|
2763
2763
|
} : {
|
|
2764
2764
|
x: 1,
|
|
2765
2765
|
y: 1
|
|
2766
|
-
},
|
|
2766
|
+
}, P = Oe(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
2767
2767
|
elements: a,
|
|
2768
2768
|
rect: w,
|
|
2769
2769
|
offsetParent: x,
|
|
2770
2770
|
strategy: c
|
|
2771
2771
|
}) : w);
|
|
2772
2772
|
return {
|
|
2773
|
-
top: (y.top -
|
|
2774
|
-
bottom: (
|
|
2775
|
-
left: (y.left -
|
|
2776
|
-
right: (
|
|
2773
|
+
top: (y.top - P.top + g.top) / v.y,
|
|
2774
|
+
bottom: (P.bottom - y.bottom + g.bottom) / v.y,
|
|
2775
|
+
left: (y.left - P.left + g.left) / v.x,
|
|
2776
|
+
right: (P.right - y.right + g.right) / v.x
|
|
2777
2777
|
};
|
|
2778
2778
|
}
|
|
2779
|
-
const
|
|
2779
|
+
const Go = async (e, t, n) => {
|
|
2780
2780
|
const {
|
|
2781
2781
|
placement: o = "bottom",
|
|
2782
2782
|
strategy: r = "absolute",
|
|
@@ -2799,8 +2799,8 @@ const Bo = async (e, t, n) => {
|
|
|
2799
2799
|
} = a[b], {
|
|
2800
2800
|
x,
|
|
2801
2801
|
y: v,
|
|
2802
|
-
data:
|
|
2803
|
-
reset:
|
|
2802
|
+
data: P,
|
|
2803
|
+
reset: A
|
|
2804
2804
|
} = await w({
|
|
2805
2805
|
x: u,
|
|
2806
2806
|
y: f,
|
|
@@ -2811,7 +2811,7 @@ const Bo = async (e, t, n) => {
|
|
|
2811
2811
|
rects: l,
|
|
2812
2812
|
platform: {
|
|
2813
2813
|
...i,
|
|
2814
|
-
detectOverflow: (h = i.detectOverflow) != null ? h :
|
|
2814
|
+
detectOverflow: (h = i.detectOverflow) != null ? h : jo
|
|
2815
2815
|
},
|
|
2816
2816
|
elements: {
|
|
2817
2817
|
reference: e,
|
|
@@ -2822,13 +2822,13 @@ const Bo = async (e, t, n) => {
|
|
|
2822
2822
|
...p,
|
|
2823
2823
|
[y]: {
|
|
2824
2824
|
...p[y],
|
|
2825
|
-
...
|
|
2825
|
+
...P
|
|
2826
2826
|
}
|
|
2827
|
-
},
|
|
2827
|
+
}, A && g <= 50 && (g++, typeof A == "object" && (A.placement && (m = A.placement), A.rects && (l = A.rects === !0 ? await i.getElementRects({
|
|
2828
2828
|
reference: e,
|
|
2829
2829
|
floating: t,
|
|
2830
2830
|
strategy: r
|
|
2831
|
-
}) :
|
|
2831
|
+
}) : A.rects), {
|
|
2832
2832
|
x: u,
|
|
2833
2833
|
y: f
|
|
2834
2834
|
} = pt(l, m, c)), b = -1);
|
|
@@ -2840,7 +2840,7 @@ const Bo = async (e, t, n) => {
|
|
|
2840
2840
|
strategy: r,
|
|
2841
2841
|
middlewareData: p
|
|
2842
2842
|
};
|
|
2843
|
-
},
|
|
2843
|
+
}, Uo = (e) => ({
|
|
2844
2844
|
name: "arrow",
|
|
2845
2845
|
options: e,
|
|
2846
2846
|
async fn(t) {
|
|
@@ -2861,10 +2861,10 @@ const Bo = async (e, t, n) => {
|
|
|
2861
2861
|
const f = zt(u), m = {
|
|
2862
2862
|
x: n,
|
|
2863
2863
|
y: o
|
|
2864
|
-
}, p = Ke(r), g = qe(p), h = await i.getDimensions(l), b = p === "y", y = b ? "top" : "left", w = b ? "bottom" : "right", x = b ? "clientHeight" : "clientWidth", v = s.reference[g] + s.reference[p] - m[p] - s.floating[g],
|
|
2865
|
-
let C =
|
|
2866
|
-
(!C || !await (i.isElement == null ? void 0 : i.isElement(
|
|
2867
|
-
const L = v / 2 -
|
|
2864
|
+
}, p = Ke(r), g = qe(p), h = await i.getDimensions(l), b = p === "y", y = b ? "top" : "left", w = b ? "bottom" : "right", x = b ? "clientHeight" : "clientWidth", v = s.reference[g] + s.reference[p] - m[p] - s.floating[g], P = m[p] - s.reference[p], A = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
|
|
2865
|
+
let C = A ? A[x] : 0;
|
|
2866
|
+
(!C || !await (i.isElement == null ? void 0 : i.isElement(A))) && (C = a.floating[x] || s.floating[g]);
|
|
2867
|
+
const L = v / 2 - P / 2, z = C / 2 - h[g] / 2 - 1, T = oe(f[y], z), $ = oe(f[w], z), R = T, D = C - h[g] - $, k = C / 2 - h[g] / 2 + L, F = Be(R, k, D), N = !c.arrow && pe(r) != null && k !== F && s.reference[g] / 2 - (k < R ? T : $) - h[g] / 2 < 0, _ = N ? k < R ? k - R : k - D : 0;
|
|
2868
2868
|
return {
|
|
2869
2869
|
[p]: m[p] + _,
|
|
2870
2870
|
data: {
|
|
@@ -2877,7 +2877,7 @@ const Bo = async (e, t, n) => {
|
|
|
2877
2877
|
reset: N
|
|
2878
2878
|
};
|
|
2879
2879
|
}
|
|
2880
|
-
}),
|
|
2880
|
+
}), Yo = function(e) {
|
|
2881
2881
|
return e === void 0 && (e = {}), {
|
|
2882
2882
|
name: "flip",
|
|
2883
2883
|
options: e,
|
|
@@ -2901,12 +2901,12 @@ const Bo = async (e, t, n) => {
|
|
|
2901
2901
|
} = J(e, t);
|
|
2902
2902
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
2903
2903
|
return {};
|
|
2904
|
-
const y = Q(r), w = U(a), x = Q(a) === a, v = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)),
|
|
2905
|
-
!m &&
|
|
2906
|
-
const C = [a, ...
|
|
2904
|
+
const y = Q(r), w = U(a), x = Q(a) === a, v = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), P = m || (x || !h ? [Se(a)] : $o(a)), A = g !== "none";
|
|
2905
|
+
!m && A && P.push(...Bo(a, h, g, v));
|
|
2906
|
+
const C = [a, ...P], L = await c.detectOverflow(t, b), z = [];
|
|
2907
2907
|
let T = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
2908
2908
|
if (u && z.push(L[y]), f) {
|
|
2909
|
-
const k =
|
|
2909
|
+
const k = zo(r, i, v);
|
|
2910
2910
|
z.push(L[k[0]], L[k[1]]);
|
|
2911
2911
|
}
|
|
2912
2912
|
if (T = [...T, {
|
|
@@ -2933,7 +2933,7 @@ const Bo = async (e, t, n) => {
|
|
|
2933
2933
|
case "bestFit": {
|
|
2934
2934
|
var D;
|
|
2935
2935
|
const _ = (D = T.filter((S) => {
|
|
2936
|
-
if (
|
|
2936
|
+
if (A) {
|
|
2937
2937
|
const I = U(S.placement);
|
|
2938
2938
|
return I === w || // Create a bias to the `y` side axis due to horizontal
|
|
2939
2939
|
// reading directions favoring greater width.
|
|
@@ -2968,9 +2968,9 @@ function mt(e, t) {
|
|
|
2968
2968
|
};
|
|
2969
2969
|
}
|
|
2970
2970
|
function gt(e) {
|
|
2971
|
-
return
|
|
2971
|
+
return No.some((t) => e[t] >= 0);
|
|
2972
2972
|
}
|
|
2973
|
-
const
|
|
2973
|
+
const Xo = function(e) {
|
|
2974
2974
|
return e === void 0 && (e = {}), {
|
|
2975
2975
|
name: "hide",
|
|
2976
2976
|
options: e,
|
|
@@ -3013,7 +3013,7 @@ const Go = function(e) {
|
|
|
3013
3013
|
}
|
|
3014
3014
|
};
|
|
3015
3015
|
}, $t = /* @__PURE__ */ new Set(["left", "top"]);
|
|
3016
|
-
async function
|
|
3016
|
+
async function qo(e, t) {
|
|
3017
3017
|
const {
|
|
3018
3018
|
placement: n,
|
|
3019
3019
|
platform: o,
|
|
@@ -3040,7 +3040,7 @@ async function Uo(e, t) {
|
|
|
3040
3040
|
y: p * u
|
|
3041
3041
|
};
|
|
3042
3042
|
}
|
|
3043
|
-
const
|
|
3043
|
+
const Ko = function(e) {
|
|
3044
3044
|
return e === void 0 && (e = 0), {
|
|
3045
3045
|
name: "offset",
|
|
3046
3046
|
options: e,
|
|
@@ -3051,7 +3051,7 @@ const Yo = function(e) {
|
|
|
3051
3051
|
y: s,
|
|
3052
3052
|
placement: i,
|
|
3053
3053
|
middlewareData: a
|
|
3054
|
-
} = t, c = await
|
|
3054
|
+
} = t, c = await qo(t, e);
|
|
3055
3055
|
return i === ((n = a.offset) == null ? void 0 : n.placement) && (o = a.arrow) != null && o.alignmentOffset ? {} : {
|
|
3056
3056
|
x: r + c.x,
|
|
3057
3057
|
y: s + c.y,
|
|
@@ -3062,7 +3062,7 @@ const Yo = function(e) {
|
|
|
3062
3062
|
};
|
|
3063
3063
|
}
|
|
3064
3064
|
};
|
|
3065
|
-
},
|
|
3065
|
+
}, Zo = function(e) {
|
|
3066
3066
|
return e === void 0 && (e = {}), {
|
|
3067
3067
|
name: "shift",
|
|
3068
3068
|
options: e,
|
|
@@ -3119,7 +3119,7 @@ const Yo = function(e) {
|
|
|
3119
3119
|
};
|
|
3120
3120
|
}
|
|
3121
3121
|
};
|
|
3122
|
-
},
|
|
3122
|
+
}, Jo = function(e) {
|
|
3123
3123
|
return e === void 0 && (e = {}), {
|
|
3124
3124
|
options: e,
|
|
3125
3125
|
fn(t) {
|
|
@@ -3147,13 +3147,13 @@ const Yo = function(e) {
|
|
|
3147
3147
|
...h
|
|
3148
3148
|
};
|
|
3149
3149
|
if (c) {
|
|
3150
|
-
const x = m === "y" ? "height" : "width", v = s.reference[m] - s.floating[x] + b.mainAxis,
|
|
3151
|
-
p < v ? p = v : p >
|
|
3150
|
+
const x = m === "y" ? "height" : "width", v = s.reference[m] - s.floating[x] + b.mainAxis, P = s.reference[m] + s.reference[x] - b.mainAxis;
|
|
3151
|
+
p < v ? p = v : p > P && (p = P);
|
|
3152
3152
|
}
|
|
3153
3153
|
if (l) {
|
|
3154
3154
|
var y, w;
|
|
3155
|
-
const x = m === "y" ? "width" : "height", v = $t.has(Q(r)),
|
|
3156
|
-
g <
|
|
3155
|
+
const x = m === "y" ? "width" : "height", v = $t.has(Q(r)), P = s.reference[f] - s.floating[x] + (v && ((y = i.offset) == null ? void 0 : y[f]) || 0) + (v ? 0 : b.crossAxis), A = s.reference[f] + s.reference[x] + (v ? 0 : ((w = i.offset) == null ? void 0 : w[f]) || 0) - (v ? b.crossAxis : 0);
|
|
3156
|
+
g < P ? g = P : g > A && (g = A);
|
|
3157
3157
|
}
|
|
3158
3158
|
return {
|
|
3159
3159
|
[m]: p,
|
|
@@ -3161,7 +3161,7 @@ const Yo = function(e) {
|
|
|
3161
3161
|
};
|
|
3162
3162
|
}
|
|
3163
3163
|
};
|
|
3164
|
-
},
|
|
3164
|
+
}, Qo = function(e) {
|
|
3165
3165
|
return e === void 0 && (e = {}), {
|
|
3166
3166
|
name: "size",
|
|
3167
3167
|
options: e,
|
|
@@ -3182,9 +3182,9 @@ const Yo = function(e) {
|
|
|
3182
3182
|
} = s.floating;
|
|
3183
3183
|
let b, y;
|
|
3184
3184
|
f === "top" || f === "bottom" ? (b = f, y = m === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (y = f, b = m === "end" ? "top" : "bottom");
|
|
3185
|
-
const w = h - u.top - u.bottom, x = g - u.left - u.right, v = oe(h - u[b], w),
|
|
3186
|
-
let C = v, L =
|
|
3187
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (L = x), (o = t.middlewareData.shift) != null && o.enabled.y && (C = w),
|
|
3185
|
+
const w = h - u.top - u.bottom, x = g - u.left - u.right, v = oe(h - u[b], w), P = oe(g - u[y], x), A = !t.middlewareData.shift;
|
|
3186
|
+
let C = v, L = P;
|
|
3187
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (L = x), (o = t.middlewareData.shift) != null && o.enabled.y && (C = w), A && !m) {
|
|
3188
3188
|
const T = H(u.left, 0), $ = H(u.right, 0), R = H(u.top, 0), D = H(u.bottom, 0);
|
|
3189
3189
|
p ? L = g - 2 * (T !== 0 || $ !== 0 ? T + $ : H(u.left, u.right)) : C = h - 2 * (R !== 0 || D !== 0 ? R + D : H(u.top, u.bottom));
|
|
3190
3190
|
}
|
|
@@ -3228,7 +3228,7 @@ function X(e) {
|
|
|
3228
3228
|
function ht(e) {
|
|
3229
3229
|
return !Le() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof B(e).ShadowRoot;
|
|
3230
3230
|
}
|
|
3231
|
-
const
|
|
3231
|
+
const er = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
3232
3232
|
function ve(e) {
|
|
3233
3233
|
const {
|
|
3234
3234
|
overflow: t,
|
|
@@ -3236,15 +3236,15 @@ function ve(e) {
|
|
|
3236
3236
|
overflowY: o,
|
|
3237
3237
|
display: r
|
|
3238
3238
|
} = G(e);
|
|
3239
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !
|
|
3239
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !er.has(r);
|
|
3240
3240
|
}
|
|
3241
|
-
const
|
|
3242
|
-
function
|
|
3243
|
-
return
|
|
3241
|
+
const tr = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
3242
|
+
function nr(e) {
|
|
3243
|
+
return tr.has(me(e));
|
|
3244
3244
|
}
|
|
3245
|
-
const
|
|
3245
|
+
const or = [":popover-open", ":modal"];
|
|
3246
3246
|
function Me(e) {
|
|
3247
|
-
return
|
|
3247
|
+
return or.some((t) => {
|
|
3248
3248
|
try {
|
|
3249
3249
|
return e.matches(t);
|
|
3250
3250
|
} catch {
|
|
@@ -3252,12 +3252,12 @@ function Me(e) {
|
|
|
3252
3252
|
}
|
|
3253
3253
|
});
|
|
3254
3254
|
}
|
|
3255
|
-
const
|
|
3255
|
+
const rr = ["transform", "translate", "scale", "rotate", "perspective"], sr = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ir = ["paint", "layout", "strict", "content"];
|
|
3256
3256
|
function Ze(e) {
|
|
3257
3257
|
const t = Je(), n = j(e) ? G(e) : e;
|
|
3258
|
-
return
|
|
3258
|
+
return rr.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || sr.some((o) => (n.willChange || "").includes(o)) || ir.some((o) => (n.contain || "").includes(o));
|
|
3259
3259
|
}
|
|
3260
|
-
function
|
|
3260
|
+
function ar(e) {
|
|
3261
3261
|
let t = re(e);
|
|
3262
3262
|
for (; X(t) && !ue(t); ) {
|
|
3263
3263
|
if (Ze(t))
|
|
@@ -3271,9 +3271,9 @@ function rr(e) {
|
|
|
3271
3271
|
function Je() {
|
|
3272
3272
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
3273
3273
|
}
|
|
3274
|
-
const
|
|
3274
|
+
const cr = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
3275
3275
|
function ue(e) {
|
|
3276
|
-
return
|
|
3276
|
+
return cr.has(me(e));
|
|
3277
3277
|
}
|
|
3278
3278
|
function G(e) {
|
|
3279
3279
|
return B(e).getComputedStyle(e);
|
|
@@ -3344,15 +3344,15 @@ function le(e) {
|
|
|
3344
3344
|
y: a
|
|
3345
3345
|
};
|
|
3346
3346
|
}
|
|
3347
|
-
const
|
|
3347
|
+
const lr = /* @__PURE__ */ Y(0);
|
|
3348
3348
|
function Bt(e) {
|
|
3349
3349
|
const t = B(e);
|
|
3350
|
-
return !Je() || !t.visualViewport ?
|
|
3350
|
+
return !Je() || !t.visualViewport ? lr : {
|
|
3351
3351
|
x: t.visualViewport.offsetLeft,
|
|
3352
3352
|
y: t.visualViewport.offsetTop
|
|
3353
3353
|
};
|
|
3354
3354
|
}
|
|
3355
|
-
function
|
|
3355
|
+
function ur(e, t, n) {
|
|
3356
3356
|
return t === void 0 && (t = !1), !n || t && n !== B(e) ? !1 : t;
|
|
3357
3357
|
}
|
|
3358
3358
|
function ie(e, t, n, o) {
|
|
@@ -3360,7 +3360,7 @@ function ie(e, t, n, o) {
|
|
|
3360
3360
|
const r = e.getBoundingClientRect(), s = Qe(e);
|
|
3361
3361
|
let i = Y(1);
|
|
3362
3362
|
t && (o ? j(o) && (i = le(o)) : i = le(e));
|
|
3363
|
-
const a =
|
|
3363
|
+
const a = ur(s, n, o) ? Bt(s) : Y(0);
|
|
3364
3364
|
let c = (r.left + a.x) / i.x, l = (r.top + a.y) / i.y, u = r.width / i.x, f = r.height / i.y;
|
|
3365
3365
|
if (s) {
|
|
3366
3366
|
const m = B(s), p = o && j(o) ? B(o) : o;
|
|
@@ -3388,7 +3388,7 @@ function Vt(e, t) {
|
|
|
3388
3388
|
y: r
|
|
3389
3389
|
};
|
|
3390
3390
|
}
|
|
3391
|
-
function
|
|
3391
|
+
function dr(e) {
|
|
3392
3392
|
let {
|
|
3393
3393
|
elements: t,
|
|
3394
3394
|
rect: n,
|
|
@@ -3415,10 +3415,10 @@ function cr(e) {
|
|
|
3415
3415
|
y: n.y * l.y - c.scrollTop * l.y + u.y + m.y
|
|
3416
3416
|
};
|
|
3417
3417
|
}
|
|
3418
|
-
function
|
|
3418
|
+
function fr(e) {
|
|
3419
3419
|
return Array.from(e.getClientRects());
|
|
3420
3420
|
}
|
|
3421
|
-
function
|
|
3421
|
+
function pr(e) {
|
|
3422
3422
|
const t = q(e), n = Ne(e), o = e.ownerDocument.body, r = H(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), s = H(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
3423
3423
|
let i = -n.scrollLeft + De(e);
|
|
3424
3424
|
const a = -n.scrollTop;
|
|
@@ -3430,7 +3430,7 @@ function ur(e) {
|
|
|
3430
3430
|
};
|
|
3431
3431
|
}
|
|
3432
3432
|
const bt = 25;
|
|
3433
|
-
function
|
|
3433
|
+
function mr(e, t) {
|
|
3434
3434
|
const n = B(e), o = q(e), r = n.visualViewport;
|
|
3435
3435
|
let s = o.clientWidth, i = o.clientHeight, a = 0, c = 0;
|
|
3436
3436
|
if (r) {
|
|
@@ -3450,8 +3450,8 @@ function dr(e, t) {
|
|
|
3450
3450
|
y: c
|
|
3451
3451
|
};
|
|
3452
3452
|
}
|
|
3453
|
-
const
|
|
3454
|
-
function
|
|
3453
|
+
const gr = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
3454
|
+
function hr(e, t) {
|
|
3455
3455
|
const n = ie(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, s = X(e) ? le(e) : Y(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, c = r * s.x, l = o * s.y;
|
|
3456
3456
|
return {
|
|
3457
3457
|
width: i,
|
|
@@ -3463,11 +3463,11 @@ function pr(e, t) {
|
|
|
3463
3463
|
function yt(e, t, n) {
|
|
3464
3464
|
let o;
|
|
3465
3465
|
if (t === "viewport")
|
|
3466
|
-
o =
|
|
3466
|
+
o = mr(e, n);
|
|
3467
3467
|
else if (t === "document")
|
|
3468
|
-
o =
|
|
3468
|
+
o = pr(q(e));
|
|
3469
3469
|
else if (j(t))
|
|
3470
|
-
o =
|
|
3470
|
+
o = hr(t, n);
|
|
3471
3471
|
else {
|
|
3472
3472
|
const r = Bt(e);
|
|
3473
3473
|
o = {
|
|
@@ -3483,7 +3483,7 @@ function jt(e, t) {
|
|
|
3483
3483
|
const n = re(e);
|
|
3484
3484
|
return n === t || !j(n) || ue(n) ? !1 : G(n).position === "fixed" || jt(n, t);
|
|
3485
3485
|
}
|
|
3486
|
-
function
|
|
3486
|
+
function br(e, t) {
|
|
3487
3487
|
const n = t.get(e);
|
|
3488
3488
|
if (n)
|
|
3489
3489
|
return n;
|
|
@@ -3492,18 +3492,18 @@ function mr(e, t) {
|
|
|
3492
3492
|
let i = s ? re(e) : e;
|
|
3493
3493
|
for (; j(i) && !ue(i); ) {
|
|
3494
3494
|
const a = G(i), c = Ze(i);
|
|
3495
|
-
!c && a.position === "fixed" && (r = null), (s ? !c && !r : !c && a.position === "static" && !!r &&
|
|
3495
|
+
!c && a.position === "fixed" && (r = null), (s ? !c && !r : !c && a.position === "static" && !!r && gr.has(r.position) || ve(i) && !c && jt(e, i)) ? o = o.filter((u) => u !== i) : r = a, i = re(i);
|
|
3496
3496
|
}
|
|
3497
3497
|
return t.set(e, o), o;
|
|
3498
3498
|
}
|
|
3499
|
-
function
|
|
3499
|
+
function yr(e) {
|
|
3500
3500
|
let {
|
|
3501
3501
|
element: t,
|
|
3502
3502
|
boundary: n,
|
|
3503
3503
|
rootBoundary: o,
|
|
3504
3504
|
strategy: r
|
|
3505
3505
|
} = e;
|
|
3506
|
-
const i = [...n === "clippingAncestors" ? Me(t) ? [] :
|
|
3506
|
+
const i = [...n === "clippingAncestors" ? Me(t) ? [] : br(t, this._c) : [].concat(n), o], a = i[0], c = i.reduce((l, u) => {
|
|
3507
3507
|
const f = yt(t, u, r);
|
|
3508
3508
|
return l.top = H(f.top, l.top), l.right = oe(f.right, l.right), l.bottom = oe(f.bottom, l.bottom), l.left = H(f.left, l.left), l;
|
|
3509
3509
|
}, yt(t, a, r));
|
|
@@ -3514,7 +3514,7 @@ function gr(e) {
|
|
|
3514
3514
|
y: c.top
|
|
3515
3515
|
};
|
|
3516
3516
|
}
|
|
3517
|
-
function
|
|
3517
|
+
function wr(e) {
|
|
3518
3518
|
const {
|
|
3519
3519
|
width: t,
|
|
3520
3520
|
height: n
|
|
@@ -3524,7 +3524,7 @@ function hr(e) {
|
|
|
3524
3524
|
height: n
|
|
3525
3525
|
};
|
|
3526
3526
|
}
|
|
3527
|
-
function
|
|
3527
|
+
function vr(e, t, n) {
|
|
3528
3528
|
const o = X(t), r = q(t), s = n === "fixed", i = ie(e, !0, s, t);
|
|
3529
3529
|
let a = {
|
|
3530
3530
|
scrollLeft: 0,
|
|
@@ -3573,14 +3573,14 @@ function Gt(e, t) {
|
|
|
3573
3573
|
return n;
|
|
3574
3574
|
}
|
|
3575
3575
|
let o = wt(e, t);
|
|
3576
|
-
for (; o &&
|
|
3576
|
+
for (; o && nr(o) && $e(o); )
|
|
3577
3577
|
o = wt(o, t);
|
|
3578
|
-
return o && ue(o) && $e(o) && !Ze(o) ? n : o ||
|
|
3578
|
+
return o && ue(o) && $e(o) && !Ze(o) ? n : o || ar(e) || n;
|
|
3579
3579
|
}
|
|
3580
|
-
const
|
|
3580
|
+
const xr = async function(e) {
|
|
3581
3581
|
const t = this.getOffsetParent || Gt, n = this.getDimensions, o = await n(e.floating);
|
|
3582
3582
|
return {
|
|
3583
|
-
reference:
|
|
3583
|
+
reference: vr(e.reference, await t(e.floating), e.strategy),
|
|
3584
3584
|
floating: {
|
|
3585
3585
|
x: 0,
|
|
3586
3586
|
y: 0,
|
|
@@ -3589,25 +3589,25 @@ const yr = async function(e) {
|
|
|
3589
3589
|
}
|
|
3590
3590
|
};
|
|
3591
3591
|
};
|
|
3592
|
-
function
|
|
3592
|
+
function Cr(e) {
|
|
3593
3593
|
return G(e).direction === "rtl";
|
|
3594
3594
|
}
|
|
3595
|
-
const
|
|
3596
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
3595
|
+
const Pr = {
|
|
3596
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: dr,
|
|
3597
3597
|
getDocumentElement: q,
|
|
3598
|
-
getClippingRect:
|
|
3598
|
+
getClippingRect: yr,
|
|
3599
3599
|
getOffsetParent: Gt,
|
|
3600
|
-
getElementRects:
|
|
3601
|
-
getClientRects:
|
|
3602
|
-
getDimensions:
|
|
3600
|
+
getElementRects: xr,
|
|
3601
|
+
getClientRects: fr,
|
|
3602
|
+
getDimensions: wr,
|
|
3603
3603
|
getScale: le,
|
|
3604
3604
|
isElement: j,
|
|
3605
|
-
isRTL:
|
|
3605
|
+
isRTL: Cr
|
|
3606
3606
|
};
|
|
3607
3607
|
function Ut(e, t) {
|
|
3608
3608
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
3609
3609
|
}
|
|
3610
|
-
function
|
|
3610
|
+
function Ar(e, t) {
|
|
3611
3611
|
let n = null, o;
|
|
3612
3612
|
const r = q(e);
|
|
3613
3613
|
function s() {
|
|
@@ -3624,13 +3624,13 @@ function xr(e, t) {
|
|
|
3624
3624
|
} = l;
|
|
3625
3625
|
if (a || t(), !m || !p)
|
|
3626
3626
|
return;
|
|
3627
|
-
const g =
|
|
3627
|
+
const g = Pe(f), h = Pe(r.clientWidth - (u + m)), b = Pe(r.clientHeight - (f + p)), y = Pe(u), x = {
|
|
3628
3628
|
rootMargin: -g + "px " + -h + "px " + -b + "px " + -y + "px",
|
|
3629
3629
|
threshold: H(0, oe(1, c)) || 1
|
|
3630
3630
|
};
|
|
3631
3631
|
let v = !0;
|
|
3632
|
-
function A
|
|
3633
|
-
const C =
|
|
3632
|
+
function P(A) {
|
|
3633
|
+
const C = A[0].intersectionRatio;
|
|
3634
3634
|
if (C !== c) {
|
|
3635
3635
|
if (!v)
|
|
3636
3636
|
return i();
|
|
@@ -3641,19 +3641,19 @@ function xr(e, t) {
|
|
|
3641
3641
|
C === 1 && !Ut(l, e.getBoundingClientRect()) && i(), v = !1;
|
|
3642
3642
|
}
|
|
3643
3643
|
try {
|
|
3644
|
-
n = new IntersectionObserver(
|
|
3644
|
+
n = new IntersectionObserver(P, {
|
|
3645
3645
|
...x,
|
|
3646
3646
|
// Handle <iframe>s
|
|
3647
3647
|
root: r.ownerDocument
|
|
3648
3648
|
});
|
|
3649
3649
|
} catch {
|
|
3650
|
-
n = new IntersectionObserver(
|
|
3650
|
+
n = new IntersectionObserver(P, x);
|
|
3651
3651
|
}
|
|
3652
3652
|
n.observe(e);
|
|
3653
3653
|
}
|
|
3654
3654
|
return i(!0), s;
|
|
3655
3655
|
}
|
|
3656
|
-
function
|
|
3656
|
+
function Er(e, t, n, o) {
|
|
3657
3657
|
o === void 0 && (o = {});
|
|
3658
3658
|
const {
|
|
3659
3659
|
ancestorScroll: r = !0,
|
|
@@ -3667,7 +3667,7 @@ function Cr(e, t, n, o) {
|
|
|
3667
3667
|
passive: !0
|
|
3668
3668
|
}), s && y.addEventListener("resize", n);
|
|
3669
3669
|
});
|
|
3670
|
-
const f = l && a ?
|
|
3670
|
+
const f = l && a ? Ar(l, n) : null;
|
|
3671
3671
|
let m = -1, p = null;
|
|
3672
3672
|
i && (p = new ResizeObserver((y) => {
|
|
3673
3673
|
let [w] = y;
|
|
@@ -3689,20 +3689,20 @@ function Cr(e, t, n, o) {
|
|
|
3689
3689
|
}), f?.(), (y = p) == null || y.disconnect(), p = null, c && cancelAnimationFrame(g);
|
|
3690
3690
|
};
|
|
3691
3691
|
}
|
|
3692
|
-
const
|
|
3692
|
+
const Rr = Ko, Sr = Zo, Or = Yo, Tr = Qo, kr = Xo, vt = Uo, Lr = Jo, Mr = (e, t, n) => {
|
|
3693
3693
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
3694
|
-
platform:
|
|
3694
|
+
platform: Pr,
|
|
3695
3695
|
...n
|
|
3696
3696
|
}, s = {
|
|
3697
3697
|
...r.platform,
|
|
3698
3698
|
_c: o
|
|
3699
3699
|
};
|
|
3700
|
-
return
|
|
3700
|
+
return Go(e, t, {
|
|
3701
3701
|
...r,
|
|
3702
3702
|
platform: s
|
|
3703
3703
|
});
|
|
3704
3704
|
};
|
|
3705
|
-
var
|
|
3705
|
+
var Ee = typeof document < "u" ? Tn : kn;
|
|
3706
3706
|
function Te(e, t) {
|
|
3707
3707
|
if (e === t)
|
|
3708
3708
|
return !0;
|
|
@@ -3742,11 +3742,11 @@ function xt(e, t) {
|
|
|
3742
3742
|
}
|
|
3743
3743
|
function Fe(e) {
|
|
3744
3744
|
const t = d.useRef(e);
|
|
3745
|
-
return
|
|
3745
|
+
return Ee(() => {
|
|
3746
3746
|
t.current = e;
|
|
3747
3747
|
}), t;
|
|
3748
3748
|
}
|
|
3749
|
-
function
|
|
3749
|
+
function Nr(e) {
|
|
3750
3750
|
e === void 0 && (e = {});
|
|
3751
3751
|
const {
|
|
3752
3752
|
placement: t = "bottom",
|
|
@@ -3770,18 +3770,18 @@ function kr(e) {
|
|
|
3770
3770
|
}), [m, p] = d.useState(o);
|
|
3771
3771
|
Te(m, o) || p(o);
|
|
3772
3772
|
const [g, h] = d.useState(null), [b, y] = d.useState(null), w = d.useCallback((S) => {
|
|
3773
|
-
S !==
|
|
3773
|
+
S !== A.current && (A.current = S, h(S));
|
|
3774
3774
|
}, []), x = d.useCallback((S) => {
|
|
3775
3775
|
S !== C.current && (C.current = S, y(S));
|
|
3776
|
-
}, []), v = s || g,
|
|
3777
|
-
if (!
|
|
3776
|
+
}, []), v = s || g, P = i || b, A = d.useRef(null), C = d.useRef(null), L = d.useRef(u), z = c != null, T = Fe(c), $ = Fe(r), R = Fe(l), D = d.useCallback(() => {
|
|
3777
|
+
if (!A.current || !C.current)
|
|
3778
3778
|
return;
|
|
3779
3779
|
const S = {
|
|
3780
3780
|
placement: t,
|
|
3781
3781
|
strategy: n,
|
|
3782
3782
|
middleware: m
|
|
3783
3783
|
};
|
|
3784
|
-
$.current && (S.platform = $.current),
|
|
3784
|
+
$.current && (S.platform = $.current), Mr(A.current, C.current, S).then((I) => {
|
|
3785
3785
|
const W = {
|
|
3786
3786
|
...I,
|
|
3787
3787
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -3795,31 +3795,31 @@ function kr(e) {
|
|
|
3795
3795
|
}));
|
|
3796
3796
|
});
|
|
3797
3797
|
}, [m, t, n, $, R]);
|
|
3798
|
-
|
|
3798
|
+
Ee(() => {
|
|
3799
3799
|
l === !1 && L.current.isPositioned && (L.current.isPositioned = !1, f((S) => ({
|
|
3800
3800
|
...S,
|
|
3801
3801
|
isPositioned: !1
|
|
3802
3802
|
})));
|
|
3803
3803
|
}, [l]);
|
|
3804
3804
|
const k = d.useRef(!1);
|
|
3805
|
-
|
|
3805
|
+
Ee(() => (k.current = !0, () => {
|
|
3806
3806
|
k.current = !1;
|
|
3807
|
-
}), []),
|
|
3808
|
-
if (v && (
|
|
3807
|
+
}), []), Ee(() => {
|
|
3808
|
+
if (v && (A.current = v), P && (C.current = P), v && P) {
|
|
3809
3809
|
if (T.current)
|
|
3810
|
-
return T.current(v,
|
|
3810
|
+
return T.current(v, P, D);
|
|
3811
3811
|
D();
|
|
3812
3812
|
}
|
|
3813
|
-
}, [v,
|
|
3813
|
+
}, [v, P, D, T, z]);
|
|
3814
3814
|
const F = d.useMemo(() => ({
|
|
3815
|
-
reference:
|
|
3815
|
+
reference: A,
|
|
3816
3816
|
floating: C,
|
|
3817
3817
|
setReference: w,
|
|
3818
3818
|
setFloating: x
|
|
3819
3819
|
}), [w, x]), N = d.useMemo(() => ({
|
|
3820
3820
|
reference: v,
|
|
3821
|
-
floating:
|
|
3822
|
-
}), [v,
|
|
3821
|
+
floating: P
|
|
3822
|
+
}), [v, P]), _ = d.useMemo(() => {
|
|
3823
3823
|
const S = {
|
|
3824
3824
|
position: n,
|
|
3825
3825
|
left: 0,
|
|
@@ -3848,7 +3848,7 @@ function kr(e) {
|
|
|
3848
3848
|
floatingStyles: _
|
|
3849
3849
|
}), [u, D, F, N, _]);
|
|
3850
3850
|
}
|
|
3851
|
-
const
|
|
3851
|
+
const Dr = (e) => {
|
|
3852
3852
|
function t(n) {
|
|
3853
3853
|
return {}.hasOwnProperty.call(n, "current");
|
|
3854
3854
|
}
|
|
@@ -3869,29 +3869,29 @@ const Lr = (e) => {
|
|
|
3869
3869
|
}).fn(n) : {};
|
|
3870
3870
|
}
|
|
3871
3871
|
};
|
|
3872
|
-
},
|
|
3873
|
-
...
|
|
3874
|
-
options: [e, t]
|
|
3875
|
-
}), Nr = (e, t) => ({
|
|
3876
|
-
...Er(e),
|
|
3877
|
-
options: [e, t]
|
|
3878
|
-
}), Dr = (e, t) => ({
|
|
3879
|
-
...Or(e),
|
|
3880
|
-
options: [e, t]
|
|
3881
|
-
}), _r = (e, t) => ({
|
|
3882
|
-
...Pr(e),
|
|
3872
|
+
}, _r = (e, t) => ({
|
|
3873
|
+
...Rr(e),
|
|
3883
3874
|
options: [e, t]
|
|
3884
3875
|
}), Ir = (e, t) => ({
|
|
3885
|
-
...
|
|
3876
|
+
...Sr(e),
|
|
3886
3877
|
options: [e, t]
|
|
3887
3878
|
}), zr = (e, t) => ({
|
|
3888
|
-
...
|
|
3879
|
+
...Lr(e),
|
|
3889
3880
|
options: [e, t]
|
|
3890
3881
|
}), $r = (e, t) => ({
|
|
3891
|
-
...
|
|
3882
|
+
...Or(e),
|
|
3883
|
+
options: [e, t]
|
|
3884
|
+
}), Fr = (e, t) => ({
|
|
3885
|
+
...Tr(e),
|
|
3886
|
+
options: [e, t]
|
|
3887
|
+
}), Wr = (e, t) => ({
|
|
3888
|
+
...kr(e),
|
|
3889
|
+
options: [e, t]
|
|
3890
|
+
}), Hr = (e, t) => ({
|
|
3891
|
+
...Dr(e),
|
|
3892
3892
|
options: [e, t]
|
|
3893
3893
|
});
|
|
3894
|
-
var
|
|
3894
|
+
var Br = "Arrow", Xt = d.forwardRef((e, t) => {
|
|
3895
3895
|
const { children: n, width: o = 10, height: r = 5, ...s } = e;
|
|
3896
3896
|
return /* @__PURE__ */ O(
|
|
3897
3897
|
se.svg,
|
|
@@ -3906,9 +3906,9 @@ var Fr = "Arrow", Xt = d.forwardRef((e, t) => {
|
|
|
3906
3906
|
}
|
|
3907
3907
|
);
|
|
3908
3908
|
});
|
|
3909
|
-
Xt.displayName =
|
|
3910
|
-
var
|
|
3911
|
-
function
|
|
3909
|
+
Xt.displayName = Br;
|
|
3910
|
+
var Vr = Xt;
|
|
3911
|
+
function jr(e) {
|
|
3912
3912
|
const [t, n] = d.useState(void 0);
|
|
3913
3913
|
return ne(() => {
|
|
3914
3914
|
if (e) {
|
|
@@ -3930,9 +3930,9 @@ function Hr(e) {
|
|
|
3930
3930
|
n(void 0);
|
|
3931
3931
|
}, [e]), t;
|
|
3932
3932
|
}
|
|
3933
|
-
var et = "Popper", [qt, Kt] = Lt(et), [
|
|
3933
|
+
var et = "Popper", [qt, Kt] = Lt(et), [Gr, Zt] = qt(et), Jt = (e) => {
|
|
3934
3934
|
const { __scopePopper: t, children: n } = e, [o, r] = d.useState(null);
|
|
3935
|
-
return /* @__PURE__ */ O(
|
|
3935
|
+
return /* @__PURE__ */ O(Gr, { scope: t, anchor: o, onAnchorChange: r, children: n });
|
|
3936
3936
|
};
|
|
3937
3937
|
Jt.displayName = et;
|
|
3938
3938
|
var Qt = "PopperAnchor", en = d.forwardRef(
|
|
@@ -3945,7 +3945,7 @@ var Qt = "PopperAnchor", en = d.forwardRef(
|
|
|
3945
3945
|
}
|
|
3946
3946
|
);
|
|
3947
3947
|
en.displayName = Qt;
|
|
3948
|
-
var tt = "PopperContent", [
|
|
3948
|
+
var tt = "PopperContent", [Ur, Yr] = qt(tt), tn = d.forwardRef(
|
|
3949
3949
|
(e, t) => {
|
|
3950
3950
|
const {
|
|
3951
3951
|
__scopePopper: n,
|
|
@@ -3962,48 +3962,48 @@ var tt = "PopperContent", [Vr, jr] = qt(tt), tn = d.forwardRef(
|
|
|
3962
3962
|
updatePositionStrategy: p = "optimized",
|
|
3963
3963
|
onPlaced: g,
|
|
3964
3964
|
...h
|
|
3965
|
-
} = e, b = Zt(tt, n), [y, w] = d.useState(null), x = ae(t, (ge) => w(ge)), [v,
|
|
3965
|
+
} = e, b = Zt(tt, n), [y, w] = d.useState(null), x = ae(t, (ge) => w(ge)), [v, P] = d.useState(null), A = jr(v), C = A?.width ?? 0, L = A?.height ?? 0, z = o + (s !== "center" ? "-" + s : ""), T = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, $ = Array.isArray(l) ? l : [l], R = $.length > 0, D = {
|
|
3966
3966
|
padding: T,
|
|
3967
|
-
boundary: $.filter(
|
|
3967
|
+
boundary: $.filter(qr),
|
|
3968
3968
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
3969
3969
|
altBoundary: R
|
|
3970
|
-
}, { refs: k, floatingStyles: F, placement: N, isPositioned: _, middlewareData: S } =
|
|
3970
|
+
}, { refs: k, floatingStyles: F, placement: N, isPositioned: _, middlewareData: S } = Nr({
|
|
3971
3971
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
3972
3972
|
strategy: "fixed",
|
|
3973
3973
|
placement: z,
|
|
3974
|
-
whileElementsMounted: (...ge) =>
|
|
3974
|
+
whileElementsMounted: (...ge) => Er(...ge, {
|
|
3975
3975
|
animationFrame: p === "always"
|
|
3976
3976
|
}),
|
|
3977
3977
|
elements: {
|
|
3978
3978
|
reference: b.anchor
|
|
3979
3979
|
},
|
|
3980
3980
|
middleware: [
|
|
3981
|
-
|
|
3982
|
-
c &&
|
|
3981
|
+
_r({ mainAxis: r + L, alignmentAxis: i }),
|
|
3982
|
+
c && Ir({
|
|
3983
3983
|
mainAxis: !0,
|
|
3984
3984
|
crossAxis: !1,
|
|
3985
|
-
limiter: f === "partial" ?
|
|
3985
|
+
limiter: f === "partial" ? zr() : void 0,
|
|
3986
3986
|
...D
|
|
3987
3987
|
}),
|
|
3988
|
-
c &&
|
|
3989
|
-
|
|
3988
|
+
c && $r({ ...D }),
|
|
3989
|
+
Fr({
|
|
3990
3990
|
...D,
|
|
3991
|
-
apply: ({ elements: ge, rects: st, availableWidth:
|
|
3992
|
-
const { width: En, height:
|
|
3993
|
-
Ce.setProperty("--radix-popper-available-width", `${
|
|
3991
|
+
apply: ({ elements: ge, rects: st, availableWidth: Pn, availableHeight: An }) => {
|
|
3992
|
+
const { width: En, height: Rn } = st.reference, Ce = ge.floating.style;
|
|
3993
|
+
Ce.setProperty("--radix-popper-available-width", `${Pn}px`), Ce.setProperty("--radix-popper-available-height", `${An}px`), Ce.setProperty("--radix-popper-anchor-width", `${En}px`), Ce.setProperty("--radix-popper-anchor-height", `${Rn}px`);
|
|
3994
3994
|
}
|
|
3995
3995
|
}),
|
|
3996
|
-
v &&
|
|
3997
|
-
|
|
3998
|
-
m &&
|
|
3996
|
+
v && Hr({ element: v, padding: a }),
|
|
3997
|
+
Kr({ arrowWidth: C, arrowHeight: L }),
|
|
3998
|
+
m && Wr({ strategy: "referenceHidden", ...D })
|
|
3999
3999
|
]
|
|
4000
4000
|
}), [I, W] = rn(N), V = ke(g);
|
|
4001
4001
|
ne(() => {
|
|
4002
4002
|
_ && V?.();
|
|
4003
4003
|
}, [_, V]);
|
|
4004
|
-
const
|
|
4004
|
+
const yn = S.arrow?.x, wn = S.arrow?.y, vn = S.arrow?.centerOffset !== 0, [xn, Cn] = d.useState();
|
|
4005
4005
|
return ne(() => {
|
|
4006
|
-
y &&
|
|
4006
|
+
y && Cn(window.getComputedStyle(y).zIndex);
|
|
4007
4007
|
}, [y]), /* @__PURE__ */ O(
|
|
4008
4008
|
"div",
|
|
4009
4009
|
{
|
|
@@ -4014,7 +4014,7 @@ var tt = "PopperContent", [Vr, jr] = qt(tt), tn = d.forwardRef(
|
|
|
4014
4014
|
transform: _ ? F.transform : "translate(0, -200%)",
|
|
4015
4015
|
// keep off the page when measuring
|
|
4016
4016
|
minWidth: "max-content",
|
|
4017
|
-
zIndex:
|
|
4017
|
+
zIndex: xn,
|
|
4018
4018
|
"--radix-popper-transform-origin": [
|
|
4019
4019
|
S.transformOrigin?.x,
|
|
4020
4020
|
S.transformOrigin?.y
|
|
@@ -4029,14 +4029,14 @@ var tt = "PopperContent", [Vr, jr] = qt(tt), tn = d.forwardRef(
|
|
|
4029
4029
|
},
|
|
4030
4030
|
dir: e.dir,
|
|
4031
4031
|
children: /* @__PURE__ */ O(
|
|
4032
|
-
|
|
4032
|
+
Ur,
|
|
4033
4033
|
{
|
|
4034
4034
|
scope: n,
|
|
4035
4035
|
placedSide: I,
|
|
4036
|
-
onArrowChange:
|
|
4037
|
-
arrowX:
|
|
4038
|
-
arrowY:
|
|
4039
|
-
shouldHideArrow:
|
|
4036
|
+
onArrowChange: P,
|
|
4037
|
+
arrowX: yn,
|
|
4038
|
+
arrowY: wn,
|
|
4039
|
+
shouldHideArrow: vn,
|
|
4040
4040
|
children: /* @__PURE__ */ O(
|
|
4041
4041
|
se.div,
|
|
4042
4042
|
{
|
|
@@ -4059,13 +4059,13 @@ var tt = "PopperContent", [Vr, jr] = qt(tt), tn = d.forwardRef(
|
|
|
4059
4059
|
}
|
|
4060
4060
|
);
|
|
4061
4061
|
tn.displayName = tt;
|
|
4062
|
-
var nn = "PopperArrow",
|
|
4062
|
+
var nn = "PopperArrow", Xr = {
|
|
4063
4063
|
top: "bottom",
|
|
4064
4064
|
right: "left",
|
|
4065
4065
|
bottom: "top",
|
|
4066
4066
|
left: "right"
|
|
4067
4067
|
}, on = d.forwardRef(function(t, n) {
|
|
4068
|
-
const { __scopePopper: o, ...r } = t, s =
|
|
4068
|
+
const { __scopePopper: o, ...r } = t, s = Yr(nn, o), i = Xr[s.placedSide];
|
|
4069
4069
|
return (
|
|
4070
4070
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
4071
4071
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -4094,7 +4094,7 @@ var nn = "PopperArrow", Gr = {
|
|
|
4094
4094
|
visibility: s.shouldHideArrow ? "hidden" : void 0
|
|
4095
4095
|
},
|
|
4096
4096
|
children: /* @__PURE__ */ O(
|
|
4097
|
-
|
|
4097
|
+
Vr,
|
|
4098
4098
|
{
|
|
4099
4099
|
...r,
|
|
4100
4100
|
ref: n,
|
|
@@ -4110,10 +4110,10 @@ var nn = "PopperArrow", Gr = {
|
|
|
4110
4110
|
);
|
|
4111
4111
|
});
|
|
4112
4112
|
on.displayName = nn;
|
|
4113
|
-
function
|
|
4113
|
+
function qr(e) {
|
|
4114
4114
|
return e !== null;
|
|
4115
4115
|
}
|
|
4116
|
-
var
|
|
4116
|
+
var Kr = (e) => ({
|
|
4117
4117
|
name: "transformOrigin",
|
|
4118
4118
|
options: e,
|
|
4119
4119
|
fn(t) {
|
|
@@ -4126,23 +4126,23 @@ function rn(e) {
|
|
|
4126
4126
|
const [t, n = "center"] = e.split("-");
|
|
4127
4127
|
return [t, n];
|
|
4128
4128
|
}
|
|
4129
|
-
var
|
|
4129
|
+
var Zr = Jt, Jr = en, Qr = tn, es = on, ts = "Portal", sn = d.forwardRef((e, t) => {
|
|
4130
4130
|
const { container: n, ...o } = e, [r, s] = d.useState(!1);
|
|
4131
4131
|
ne(() => s(!0), []);
|
|
4132
4132
|
const i = n || r && globalThis?.document?.body;
|
|
4133
|
-
return i ?
|
|
4133
|
+
return i ? Nn.createPortal(/* @__PURE__ */ O(se.div, { ...o, ref: t }), i) : null;
|
|
4134
4134
|
});
|
|
4135
|
-
sn.displayName =
|
|
4136
|
-
function
|
|
4135
|
+
sn.displayName = ts;
|
|
4136
|
+
function ns(e, t) {
|
|
4137
4137
|
return d.useReducer((n, o) => t[n][o] ?? n, e);
|
|
4138
4138
|
}
|
|
4139
4139
|
var nt = (e) => {
|
|
4140
|
-
const { present: t, children: n } = e, o =
|
|
4140
|
+
const { present: t, children: n } = e, o = os(t), r = typeof n == "function" ? n({ present: o.isPresent }) : d.Children.only(n), s = ae(o.ref, rs(r));
|
|
4141
4141
|
return typeof n == "function" || o.isPresent ? d.cloneElement(r, { ref: s }) : null;
|
|
4142
4142
|
};
|
|
4143
4143
|
nt.displayName = "Presence";
|
|
4144
|
-
function
|
|
4145
|
-
const [t, n] = d.useState(), o = d.useRef(null), r = d.useRef(e), s = d.useRef("none"), i = e ? "mounted" : "unmounted", [a, c] =
|
|
4144
|
+
function os(e) {
|
|
4145
|
+
const [t, n] = d.useState(), o = d.useRef(null), r = d.useRef(e), s = d.useRef("none"), i = e ? "mounted" : "unmounted", [a, c] = ns(i, {
|
|
4146
4146
|
mounted: {
|
|
4147
4147
|
UNMOUNT: "unmounted",
|
|
4148
4148
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -4156,19 +4156,19 @@ function es(e) {
|
|
|
4156
4156
|
}
|
|
4157
4157
|
});
|
|
4158
4158
|
return d.useEffect(() => {
|
|
4159
|
-
const l =
|
|
4159
|
+
const l = Ae(o.current);
|
|
4160
4160
|
s.current = a === "mounted" ? l : "none";
|
|
4161
4161
|
}, [a]), ne(() => {
|
|
4162
4162
|
const l = o.current, u = r.current;
|
|
4163
4163
|
if (u !== e) {
|
|
4164
|
-
const m = s.current, p =
|
|
4164
|
+
const m = s.current, p = Ae(l);
|
|
4165
4165
|
e ? c("MOUNT") : p === "none" || l?.display === "none" ? c("UNMOUNT") : c(u && m !== p ? "ANIMATION_OUT" : "UNMOUNT"), r.current = e;
|
|
4166
4166
|
}
|
|
4167
4167
|
}, [e, c]), ne(() => {
|
|
4168
4168
|
if (t) {
|
|
4169
4169
|
let l;
|
|
4170
4170
|
const u = t.ownerDocument.defaultView ?? window, f = (p) => {
|
|
4171
|
-
const h =
|
|
4171
|
+
const h = Ae(o.current).includes(CSS.escape(p.animationName));
|
|
4172
4172
|
if (p.target === t && h && (c("ANIMATION_END"), !r.current)) {
|
|
4173
4173
|
const b = t.style.animationFillMode;
|
|
4174
4174
|
t.style.animationFillMode = "forwards", l = u.setTimeout(() => {
|
|
@@ -4176,7 +4176,7 @@ function es(e) {
|
|
|
4176
4176
|
});
|
|
4177
4177
|
}
|
|
4178
4178
|
}, m = (p) => {
|
|
4179
|
-
p.target === t && (s.current =
|
|
4179
|
+
p.target === t && (s.current = Ae(o.current));
|
|
4180
4180
|
};
|
|
4181
4181
|
return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
|
|
4182
4182
|
u.clearTimeout(l), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
|
|
@@ -4190,22 +4190,22 @@ function es(e) {
|
|
|
4190
4190
|
}, [])
|
|
4191
4191
|
};
|
|
4192
4192
|
}
|
|
4193
|
-
function
|
|
4193
|
+
function Ae(e) {
|
|
4194
4194
|
return e?.animationName || "none";
|
|
4195
4195
|
}
|
|
4196
|
-
function
|
|
4196
|
+
function rs(e) {
|
|
4197
4197
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
4198
4198
|
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);
|
|
4199
4199
|
}
|
|
4200
|
-
var
|
|
4201
|
-
function
|
|
4200
|
+
var ss = d[" useInsertionEffect ".trim().toString()] || ne;
|
|
4201
|
+
function is({
|
|
4202
4202
|
prop: e,
|
|
4203
4203
|
defaultProp: t,
|
|
4204
4204
|
onChange: n = () => {
|
|
4205
4205
|
},
|
|
4206
4206
|
caller: o
|
|
4207
4207
|
}) {
|
|
4208
|
-
const [r, s, i] =
|
|
4208
|
+
const [r, s, i] = as({
|
|
4209
4209
|
defaultProp: t,
|
|
4210
4210
|
onChange: n
|
|
4211
4211
|
}), a = e !== void 0, c = a ? e : r;
|
|
@@ -4221,7 +4221,7 @@ function os({
|
|
|
4221
4221
|
const l = d.useCallback(
|
|
4222
4222
|
(u) => {
|
|
4223
4223
|
if (a) {
|
|
4224
|
-
const f =
|
|
4224
|
+
const f = cs(u) ? u(e) : u;
|
|
4225
4225
|
f !== e && i.current?.(f);
|
|
4226
4226
|
} else
|
|
4227
4227
|
s(u);
|
|
@@ -4230,21 +4230,21 @@ function os({
|
|
|
4230
4230
|
);
|
|
4231
4231
|
return [c, l];
|
|
4232
4232
|
}
|
|
4233
|
-
function
|
|
4233
|
+
function as({
|
|
4234
4234
|
defaultProp: e,
|
|
4235
4235
|
onChange: t
|
|
4236
4236
|
}) {
|
|
4237
4237
|
const [n, o] = d.useState(e), r = d.useRef(n), s = d.useRef(t);
|
|
4238
|
-
return
|
|
4238
|
+
return ss(() => {
|
|
4239
4239
|
s.current = t;
|
|
4240
4240
|
}, [t]), d.useEffect(() => {
|
|
4241
4241
|
r.current !== n && (s.current?.(n), r.current = n);
|
|
4242
4242
|
}, [n, r]), [n, o, s];
|
|
4243
4243
|
}
|
|
4244
|
-
function
|
|
4244
|
+
function cs(e) {
|
|
4245
4245
|
return typeof e == "function";
|
|
4246
4246
|
}
|
|
4247
|
-
var
|
|
4247
|
+
var ls = Object.freeze({
|
|
4248
4248
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
4249
4249
|
position: "absolute",
|
|
4250
4250
|
border: 0,
|
|
@@ -4256,23 +4256,23 @@ var is = Object.freeze({
|
|
|
4256
4256
|
clip: "rect(0, 0, 0, 0)",
|
|
4257
4257
|
whiteSpace: "nowrap",
|
|
4258
4258
|
wordWrap: "normal"
|
|
4259
|
-
}),
|
|
4259
|
+
}), us = "VisuallyHidden", an = d.forwardRef(
|
|
4260
4260
|
(e, t) => /* @__PURE__ */ O(
|
|
4261
4261
|
se.span,
|
|
4262
4262
|
{
|
|
4263
4263
|
...e,
|
|
4264
4264
|
ref: t,
|
|
4265
|
-
style: { ...
|
|
4265
|
+
style: { ...ls, ...e.style }
|
|
4266
4266
|
}
|
|
4267
4267
|
)
|
|
4268
4268
|
);
|
|
4269
|
-
an.displayName =
|
|
4270
|
-
var
|
|
4269
|
+
an.displayName = us;
|
|
4270
|
+
var ds = an, [_e] = Lt("Tooltip", [
|
|
4271
4271
|
Kt
|
|
4272
|
-
]), Ie = Kt(), cn = "TooltipProvider",
|
|
4272
|
+
]), Ie = Kt(), cn = "TooltipProvider", fs = 700, Ge = "tooltip.open", [ps, ot] = _e(cn), ln = (e) => {
|
|
4273
4273
|
const {
|
|
4274
4274
|
__scopeTooltip: t,
|
|
4275
|
-
delayDuration: n =
|
|
4275
|
+
delayDuration: n = fs,
|
|
4276
4276
|
skipDelayDuration: o = 300,
|
|
4277
4277
|
disableHoverableContent: r = !1,
|
|
4278
4278
|
children: s
|
|
@@ -4281,7 +4281,7 @@ var cs = an, [_e] = Lt("Tooltip", [
|
|
|
4281
4281
|
const l = c.current;
|
|
4282
4282
|
return () => window.clearTimeout(l);
|
|
4283
4283
|
}, []), /* @__PURE__ */ O(
|
|
4284
|
-
|
|
4284
|
+
ps,
|
|
4285
4285
|
{
|
|
4286
4286
|
scope: t,
|
|
4287
4287
|
isOpenDelayedRef: i,
|
|
@@ -4305,7 +4305,7 @@ var cs = an, [_e] = Lt("Tooltip", [
|
|
|
4305
4305
|
);
|
|
4306
4306
|
};
|
|
4307
4307
|
ln.displayName = cn;
|
|
4308
|
-
var we = "Tooltip", [
|
|
4308
|
+
var we = "Tooltip", [ms, xe] = _e(we), un = (e) => {
|
|
4309
4309
|
const {
|
|
4310
4310
|
__scopeTooltip: t,
|
|
4311
4311
|
children: n,
|
|
@@ -4314,7 +4314,7 @@ var we = "Tooltip", [ds, xe] = _e(we), un = (e) => {
|
|
|
4314
4314
|
onOpenChange: s,
|
|
4315
4315
|
disableHoverableContent: i,
|
|
4316
4316
|
delayDuration: a
|
|
4317
|
-
} = e, c = ot(we, e.__scopeTooltip), l = Ie(t), [u, f] = d.useState(null), m =
|
|
4317
|
+
} = e, c = ot(we, e.__scopeTooltip), l = Ie(t), [u, f] = d.useState(null), m = Mo(), p = d.useRef(0), g = i ?? c.disableHoverableContent, h = a ?? c.delayDuration, b = d.useRef(!1), [y, w] = is({
|
|
4318
4318
|
prop: o,
|
|
4319
4319
|
defaultProp: r ?? !1,
|
|
4320
4320
|
onChange: (C) => {
|
|
@@ -4323,17 +4323,17 @@ var we = "Tooltip", [ds, xe] = _e(we), un = (e) => {
|
|
|
4323
4323
|
caller: we
|
|
4324
4324
|
}), x = d.useMemo(() => y ? b.current ? "delayed-open" : "instant-open" : "closed", [y]), v = d.useCallback(() => {
|
|
4325
4325
|
window.clearTimeout(p.current), p.current = 0, b.current = !1, w(!0);
|
|
4326
|
-
}, [w]),
|
|
4326
|
+
}, [w]), P = d.useCallback(() => {
|
|
4327
4327
|
window.clearTimeout(p.current), p.current = 0, w(!1);
|
|
4328
|
-
}, [w]),
|
|
4328
|
+
}, [w]), A = d.useCallback(() => {
|
|
4329
4329
|
window.clearTimeout(p.current), p.current = window.setTimeout(() => {
|
|
4330
4330
|
b.current = !0, w(!0), p.current = 0;
|
|
4331
4331
|
}, h);
|
|
4332
4332
|
}, [h, w]);
|
|
4333
4333
|
return d.useEffect(() => () => {
|
|
4334
4334
|
p.current && (window.clearTimeout(p.current), p.current = 0);
|
|
4335
|
-
}, []), /* @__PURE__ */ O(
|
|
4336
|
-
|
|
4335
|
+
}, []), /* @__PURE__ */ O(Zr, { ...l, children: /* @__PURE__ */ O(
|
|
4336
|
+
ms,
|
|
4337
4337
|
{
|
|
4338
4338
|
scope: t,
|
|
4339
4339
|
contentId: m,
|
|
@@ -4342,13 +4342,13 @@ var we = "Tooltip", [ds, xe] = _e(we), un = (e) => {
|
|
|
4342
4342
|
trigger: u,
|
|
4343
4343
|
onTriggerChange: f,
|
|
4344
4344
|
onTriggerEnter: d.useCallback(() => {
|
|
4345
|
-
c.isOpenDelayedRef.current ?
|
|
4346
|
-
}, [c.isOpenDelayedRef,
|
|
4345
|
+
c.isOpenDelayedRef.current ? A() : v();
|
|
4346
|
+
}, [c.isOpenDelayedRef, A, v]),
|
|
4347
4347
|
onTriggerLeave: d.useCallback(() => {
|
|
4348
|
-
g ?
|
|
4349
|
-
}, [
|
|
4348
|
+
g ? P() : (window.clearTimeout(p.current), p.current = 0);
|
|
4349
|
+
}, [P, g]),
|
|
4350
4350
|
onOpen: v,
|
|
4351
|
-
onClose:
|
|
4351
|
+
onClose: P,
|
|
4352
4352
|
disableHoverableContent: g,
|
|
4353
4353
|
children: n
|
|
4354
4354
|
}
|
|
@@ -4358,7 +4358,7 @@ un.displayName = we;
|
|
|
4358
4358
|
var Ue = "TooltipTrigger", dn = d.forwardRef(
|
|
4359
4359
|
(e, t) => {
|
|
4360
4360
|
const { __scopeTooltip: n, ...o } = e, r = xe(Ue, n), s = ot(Ue, n), i = Ie(n), a = d.useRef(null), c = ae(t, a, r.onTriggerChange), l = d.useRef(!1), u = d.useRef(!1), f = d.useCallback(() => l.current = !1, []);
|
|
4361
|
-
return d.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ O(
|
|
4361
|
+
return d.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ O(Jr, { asChild: !0, ...i, children: /* @__PURE__ */ O(
|
|
4362
4362
|
se.button,
|
|
4363
4363
|
{
|
|
4364
4364
|
"aria-describedby": r.open ? r.contentId : void 0,
|
|
@@ -4384,25 +4384,25 @@ var Ue = "TooltipTrigger", dn = d.forwardRef(
|
|
|
4384
4384
|
}
|
|
4385
4385
|
);
|
|
4386
4386
|
dn.displayName = Ue;
|
|
4387
|
-
var rt = "TooltipPortal", [
|
|
4387
|
+
var rt = "TooltipPortal", [gs, hs] = _e(rt, {
|
|
4388
4388
|
forceMount: void 0
|
|
4389
4389
|
}), fn = (e) => {
|
|
4390
4390
|
const { __scopeTooltip: t, forceMount: n, children: o, container: r } = e, s = xe(rt, t);
|
|
4391
|
-
return /* @__PURE__ */ O(
|
|
4391
|
+
return /* @__PURE__ */ O(gs, { scope: t, forceMount: n, children: /* @__PURE__ */ O(nt, { present: n || s.open, children: /* @__PURE__ */ O(sn, { asChild: !0, container: r, children: o }) }) });
|
|
4392
4392
|
};
|
|
4393
4393
|
fn.displayName = rt;
|
|
4394
4394
|
var de = "TooltipContent", pn = d.forwardRef(
|
|
4395
4395
|
(e, t) => {
|
|
4396
|
-
const n =
|
|
4397
|
-
return /* @__PURE__ */ O(nt, { present: o || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ O(mn, { side: r, ...s, ref: t }) : /* @__PURE__ */ O(
|
|
4396
|
+
const n = hs(de, e.__scopeTooltip), { forceMount: o = n.forceMount, side: r = "top", ...s } = e, i = xe(de, e.__scopeTooltip);
|
|
4397
|
+
return /* @__PURE__ */ O(nt, { present: o || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ O(mn, { side: r, ...s, ref: t }) : /* @__PURE__ */ O(bs, { side: r, ...s, ref: t }) });
|
|
4398
4398
|
}
|
|
4399
|
-
),
|
|
4399
|
+
), bs = d.forwardRef((e, t) => {
|
|
4400
4400
|
const n = xe(de, e.__scopeTooltip), o = ot(de, e.__scopeTooltip), r = d.useRef(null), s = ae(t, r), [i, a] = d.useState(null), { trigger: c, onClose: l } = n, u = r.current, { onPointerInTransitChange: f } = o, m = d.useCallback(() => {
|
|
4401
4401
|
a(null), f(!1);
|
|
4402
4402
|
}, [f]), p = d.useCallback(
|
|
4403
4403
|
(g, h) => {
|
|
4404
|
-
const b = g.currentTarget, y = { x: g.clientX, y: g.clientY }, w =
|
|
4405
|
-
a(
|
|
4404
|
+
const b = g.currentTarget, y = { x: g.clientX, y: g.clientY }, w = Cs(y, b.getBoundingClientRect()), x = Ps(y, w), v = As(h.getBoundingClientRect()), P = Rs([...x, ...v]);
|
|
4405
|
+
a(P), f(!0);
|
|
4406
4406
|
},
|
|
4407
4407
|
[f]
|
|
4408
4408
|
);
|
|
@@ -4416,13 +4416,13 @@ var de = "TooltipContent", pn = d.forwardRef(
|
|
|
4416
4416
|
}, [c, u, p, m]), d.useEffect(() => {
|
|
4417
4417
|
if (i) {
|
|
4418
4418
|
const g = (h) => {
|
|
4419
|
-
const b = h.target, y = { x: h.clientX, y: h.clientY }, w = c?.contains(b) || u?.contains(b), x = !
|
|
4419
|
+
const b = h.target, y = { x: h.clientX, y: h.clientY }, w = c?.contains(b) || u?.contains(b), x = !Es(y, i);
|
|
4420
4420
|
w ? m() : x && (m(), l());
|
|
4421
4421
|
};
|
|
4422
4422
|
return document.addEventListener("pointermove", g), () => document.removeEventListener("pointermove", g);
|
|
4423
4423
|
}
|
|
4424
4424
|
}, [c, u, i, l, m]), /* @__PURE__ */ O(mn, { ...e, ref: s });
|
|
4425
|
-
}), [
|
|
4425
|
+
}), [ys, ws] = _e(we, { isInside: !1 }), vs = /* @__PURE__ */ ho("TooltipContent"), mn = d.forwardRef(
|
|
4426
4426
|
(e, t) => {
|
|
4427
4427
|
const {
|
|
4428
4428
|
__scopeTooltip: n,
|
|
@@ -4448,8 +4448,8 @@ var de = "TooltipContent", pn = d.forwardRef(
|
|
|
4448
4448
|
onPointerDownOutside: i,
|
|
4449
4449
|
onFocusOutside: (f) => f.preventDefault(),
|
|
4450
4450
|
onDismiss: u,
|
|
4451
|
-
children: /* @__PURE__ */
|
|
4452
|
-
|
|
4451
|
+
children: /* @__PURE__ */ On(
|
|
4452
|
+
Qr,
|
|
4453
4453
|
{
|
|
4454
4454
|
"data-state": c.stateAttribute,
|
|
4455
4455
|
...l,
|
|
@@ -4464,8 +4464,8 @@ var de = "TooltipContent", pn = d.forwardRef(
|
|
|
4464
4464
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
4465
4465
|
},
|
|
4466
4466
|
children: [
|
|
4467
|
-
/* @__PURE__ */ O(
|
|
4468
|
-
/* @__PURE__ */ O(
|
|
4467
|
+
/* @__PURE__ */ O(vs, { children: o }),
|
|
4468
|
+
/* @__PURE__ */ O(ys, { scope: n, isInside: !0, children: /* @__PURE__ */ O(ds, { id: c.contentId, role: "tooltip", children: r || o }) })
|
|
4469
4469
|
]
|
|
4470
4470
|
}
|
|
4471
4471
|
)
|
|
@@ -4474,17 +4474,17 @@ var de = "TooltipContent", pn = d.forwardRef(
|
|
|
4474
4474
|
}
|
|
4475
4475
|
);
|
|
4476
4476
|
pn.displayName = de;
|
|
4477
|
-
var gn = "TooltipArrow",
|
|
4477
|
+
var gn = "TooltipArrow", xs = d.forwardRef(
|
|
4478
4478
|
(e, t) => {
|
|
4479
4479
|
const { __scopeTooltip: n, ...o } = e, r = Ie(n);
|
|
4480
|
-
return
|
|
4480
|
+
return ws(
|
|
4481
4481
|
gn,
|
|
4482
4482
|
n
|
|
4483
|
-
).isInside ? null : /* @__PURE__ */ O(
|
|
4483
|
+
).isInside ? null : /* @__PURE__ */ O(es, { ...r, ...o, ref: t });
|
|
4484
4484
|
}
|
|
4485
4485
|
);
|
|
4486
|
-
|
|
4487
|
-
function
|
|
4486
|
+
xs.displayName = gn;
|
|
4487
|
+
function Cs(e, t) {
|
|
4488
4488
|
const n = Math.abs(t.top - e.y), o = Math.abs(t.bottom - e.y), r = Math.abs(t.right - e.x), s = Math.abs(t.left - e.x);
|
|
4489
4489
|
switch (Math.min(n, o, r, s)) {
|
|
4490
4490
|
case s:
|
|
@@ -4499,7 +4499,7 @@ function ws(e, t) {
|
|
|
4499
4499
|
throw new Error("unreachable");
|
|
4500
4500
|
}
|
|
4501
4501
|
}
|
|
4502
|
-
function
|
|
4502
|
+
function Ps(e, t, n = 5) {
|
|
4503
4503
|
const o = [];
|
|
4504
4504
|
switch (t) {
|
|
4505
4505
|
case "top":
|
|
@@ -4529,7 +4529,7 @@ function vs(e, t, n = 5) {
|
|
|
4529
4529
|
}
|
|
4530
4530
|
return o;
|
|
4531
4531
|
}
|
|
4532
|
-
function
|
|
4532
|
+
function As(e) {
|
|
4533
4533
|
const { top: t, right: n, bottom: o, left: r } = e;
|
|
4534
4534
|
return [
|
|
4535
4535
|
{ x: r, y: t },
|
|
@@ -4538,7 +4538,7 @@ function xs(e) {
|
|
|
4538
4538
|
{ x: r, y: o }
|
|
4539
4539
|
];
|
|
4540
4540
|
}
|
|
4541
|
-
function
|
|
4541
|
+
function Es(e, t) {
|
|
4542
4542
|
const { x: n, y: o } = e;
|
|
4543
4543
|
let r = !1;
|
|
4544
4544
|
for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
|
|
@@ -4547,11 +4547,11 @@ function Cs(e, t) {
|
|
|
4547
4547
|
}
|
|
4548
4548
|
return r;
|
|
4549
4549
|
}
|
|
4550
|
-
function
|
|
4550
|
+
function Rs(e) {
|
|
4551
4551
|
const t = e.slice();
|
|
4552
|
-
return t.sort((n, o) => n.x < o.x ? -1 : n.x > o.x ? 1 : n.y < o.y ? -1 : n.y > o.y ? 1 : 0),
|
|
4552
|
+
return t.sort((n, o) => n.x < o.x ? -1 : n.x > o.x ? 1 : n.y < o.y ? -1 : n.y > o.y ? 1 : 0), Ss(t);
|
|
4553
4553
|
}
|
|
4554
|
-
function
|
|
4554
|
+
function Ss(e) {
|
|
4555
4555
|
if (e.length <= 1) return e.slice();
|
|
4556
4556
|
const t = [];
|
|
4557
4557
|
for (let o = 0; o < e.length; o++) {
|
|
@@ -4576,56 +4576,64 @@ function Es(e) {
|
|
|
4576
4576
|
}
|
|
4577
4577
|
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);
|
|
4578
4578
|
}
|
|
4579
|
-
var
|
|
4580
|
-
const
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4579
|
+
var Os = ln, Ts = un, ks = dn, Ls = fn, hn = pn;
|
|
4580
|
+
const bn = Mn(null), Fs = ({
|
|
4581
|
+
container: e,
|
|
4582
|
+
children: t
|
|
4583
|
+
}) => /* @__PURE__ */ O(bn.Provider, { value: e, children: t }), Ms = () => Ln(bn), Ws = Os, Hs = Ts, Bs = ks, Ns = d.forwardRef(({ className: e, sideOffset: t = 4, ...n }, o) => {
|
|
4584
|
+
const r = Ms();
|
|
4585
|
+
return /* @__PURE__ */ O(Ls, { container: r ?? void 0, children: /* @__PURE__ */ O(
|
|
4586
|
+
hn,
|
|
4587
|
+
{
|
|
4588
|
+
ref: o,
|
|
4589
|
+
sideOffset: t,
|
|
4590
|
+
className: Tt(
|
|
4591
|
+
"z-50 overflow-hidden rounded bg-f1-background border border-solid border-f1-border-secondary dark p-2 leading-tight text-f1-foreground-inverse animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[side=bottom]:origin-top data-[side=top]:origin-bottom data-[side=left]:origin-right data-[side=right]:origin-left",
|
|
4592
|
+
"break-words",
|
|
4593
|
+
e
|
|
4594
|
+
),
|
|
4595
|
+
...n
|
|
4596
|
+
}
|
|
4597
|
+
) });
|
|
4598
|
+
});
|
|
4599
|
+
Ns.displayName = hn.displayName;
|
|
4594
4600
|
export {
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4601
|
+
Jr as A,
|
|
4602
|
+
Fr as B,
|
|
4603
|
+
Qr as C,
|
|
4598
4604
|
_t as D,
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4605
|
+
Hr as E,
|
|
4606
|
+
Wr as F,
|
|
4607
|
+
zr as G,
|
|
4608
|
+
Er as H,
|
|
4609
|
+
ne as I,
|
|
4610
|
+
Fs as P,
|
|
4611
|
+
Zr as R,
|
|
4612
|
+
$s as S,
|
|
4613
|
+
Ws as T,
|
|
4614
|
+
ls as V,
|
|
4615
|
+
Hs as a,
|
|
4616
|
+
Bs as b,
|
|
4617
|
+
Ns as c,
|
|
4610
4618
|
Tt as d,
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4619
|
+
Dn as e,
|
|
4620
|
+
zs as f,
|
|
4621
|
+
is as g,
|
|
4614
4622
|
Lt as h,
|
|
4615
4623
|
Z as i,
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4624
|
+
se as j,
|
|
4625
|
+
jr as k,
|
|
4626
|
+
Mt as l,
|
|
4627
|
+
ke as m,
|
|
4628
|
+
Mo as n,
|
|
4629
|
+
Kt as o,
|
|
4630
|
+
nt as p,
|
|
4631
|
+
sn as q,
|
|
4632
|
+
kt as r,
|
|
4633
|
+
xo as s,
|
|
4634
|
+
es as t,
|
|
4627
4635
|
ae as u,
|
|
4628
|
-
|
|
4636
|
+
Ms as v,
|
|
4629
4637
|
Nr as w,
|
|
4630
4638
|
_r as x,
|
|
4631
4639
|
Ir as y,
|