@purpurds/tooltip 5.13.0 → 5.15.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/.rush/temp/ci_build/@purpurds/tooltip/{68cfada0d6c1c4ff3a69473255472deba1c638b8.untar.log → 38e8b8070c12dc46cba4c8f6b163cf288ad2ccfe.untar.log} +2 -2
- package/.rush/temp/operation/ci_build/all.log +4 -4
- package/.rush/temp/operation/ci_build/state.json +1 -1
- package/.rush/temp/operation/test_unit/all.log +3 -3
- package/.rush/temp/operation/test_unit/state.json +1 -1
- package/.rush/temp/shrinkwrap-deps.json +329 -540
- package/dist/LICENSE.txt +9 -9
- package/dist/tooltip.cjs.js +6 -6
- package/dist/tooltip.cjs.js.map +1 -1
- package/dist/tooltip.d.ts +1 -1
- package/dist/tooltip.es.js +1125 -1044
- package/dist/tooltip.es.js.map +1 -1
- package/package.json +6 -6
package/dist/tooltip.es.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { jsxs as Ye, jsx as z } from "react/jsx-runtime";
|
|
2
|
+
import * as L from "react";
|
|
3
|
+
import { forwardRef as I, useCallback as j, createContext as Ge, useMemo as we, createElement as w, useContext as Et, Fragment as $n, Children as ie, isValidElement as Me, cloneElement as tt, useEffect as S, useRef as k, useState as U, useLayoutEffect as Tt, useReducer as wn } from "react";
|
|
4
|
+
import * as _n from "react-dom";
|
|
5
|
+
import Pn, { flushSync as St } from "react-dom";
|
|
6
|
+
const An = {
|
|
7
7
|
PRIMARY: "primary",
|
|
8
8
|
SECONDARY: "secondary",
|
|
9
9
|
EXPRESSIVE: "expressive"
|
|
10
|
-
},
|
|
10
|
+
}, On = {
|
|
11
11
|
SM: "sm",
|
|
12
12
|
MD: "md",
|
|
13
13
|
LG: "lg"
|
|
14
14
|
};
|
|
15
|
-
function
|
|
15
|
+
function Cn(e) {
|
|
16
16
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var Rt = { exports: {} };
|
|
19
19
|
/*!
|
|
20
20
|
Copyright (c) 2018 Jed Watson.
|
|
21
21
|
Licensed under the MIT License (MIT), see
|
|
@@ -26,8 +26,8 @@ var Ct = { exports: {} };
|
|
|
26
26
|
var t = {}.hasOwnProperty;
|
|
27
27
|
function n() {
|
|
28
28
|
for (var r = "", s = 0; s < arguments.length; s++) {
|
|
29
|
-
var
|
|
30
|
-
|
|
29
|
+
var c = arguments[s];
|
|
30
|
+
c && (r = i(r, o(c)));
|
|
31
31
|
}
|
|
32
32
|
return r;
|
|
33
33
|
}
|
|
@@ -41,8 +41,8 @@ var Ct = { exports: {} };
|
|
|
41
41
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
42
42
|
return r.toString();
|
|
43
43
|
var s = "";
|
|
44
|
-
for (var
|
|
45
|
-
t.call(r,
|
|
44
|
+
for (var c in r)
|
|
45
|
+
t.call(r, c) && r[c] && (s = i(s, c));
|
|
46
46
|
return s;
|
|
47
47
|
}
|
|
48
48
|
function i(r, s) {
|
|
@@ -50,44 +50,44 @@ var Ct = { exports: {} };
|
|
|
50
50
|
}
|
|
51
51
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
52
52
|
})();
|
|
53
|
-
})(
|
|
54
|
-
var
|
|
55
|
-
const
|
|
53
|
+
})(Rt);
|
|
54
|
+
var En = Rt.exports;
|
|
55
|
+
const ht = /* @__PURE__ */ Cn(En), Tn = "_rotate_1xozj_1", Sn = "_dash_1xozj_1", ye = {
|
|
56
56
|
"purpur-spinner": "_purpur-spinner_1xozj_1",
|
|
57
|
-
rotate:
|
|
57
|
+
rotate: Tn,
|
|
58
58
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
|
|
59
59
|
"purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
|
|
60
60
|
"purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
|
|
61
61
|
"purpur-spinner--md": "_purpur-spinner--md_1xozj_16",
|
|
62
62
|
"purpur-spinner--lg": "_purpur-spinner--lg_1xozj_20",
|
|
63
63
|
"purpur-spinner__circle": "_purpur-spinner__circle_1xozj_24",
|
|
64
|
-
dash:
|
|
64
|
+
dash: Sn,
|
|
65
65
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
|
|
66
66
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
|
|
67
|
-
},
|
|
67
|
+
}, xe = "purpur-spinner", Rn = {
|
|
68
68
|
XXS: "xxs",
|
|
69
69
|
XS: "xs",
|
|
70
70
|
SM: "sm",
|
|
71
71
|
MD: "md",
|
|
72
72
|
LG: "lg"
|
|
73
|
-
},
|
|
73
|
+
}, Dn = ({
|
|
74
74
|
["data-testid"]: e,
|
|
75
75
|
disabled: t = !1,
|
|
76
76
|
negative: n = !1,
|
|
77
|
-
size: o =
|
|
77
|
+
size: o = Rn.SM,
|
|
78
78
|
...i
|
|
79
|
-
}) => /* @__PURE__ */
|
|
79
|
+
}) => /* @__PURE__ */ z(
|
|
80
80
|
"div",
|
|
81
81
|
{
|
|
82
|
-
className:
|
|
82
|
+
className: ht([ye[xe], ye[`${xe}--${o}`]]),
|
|
83
83
|
"data-testid": e,
|
|
84
84
|
...i,
|
|
85
|
-
children: /* @__PURE__ */
|
|
85
|
+
children: /* @__PURE__ */ z("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ z(
|
|
86
86
|
"circle",
|
|
87
87
|
{
|
|
88
|
-
className:
|
|
89
|
-
[
|
|
90
|
-
[
|
|
88
|
+
className: ht(ye[`${xe}__circle`], {
|
|
89
|
+
[ye[`${xe}__circle--disabled`]]: t,
|
|
90
|
+
[ye[`${xe}__circle--negative`]]: n
|
|
91
91
|
}),
|
|
92
92
|
cx: "25",
|
|
93
93
|
cy: "25",
|
|
@@ -96,10 +96,10 @@ const ut = /* @__PURE__ */ Pn(On), An = "_rotate_1xozj_1", Cn = "_dash_1xozj_1",
|
|
|
96
96
|
) })
|
|
97
97
|
}
|
|
98
98
|
);
|
|
99
|
-
function
|
|
99
|
+
function Nn(e) {
|
|
100
100
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
101
101
|
}
|
|
102
|
-
var
|
|
102
|
+
var Dt = { exports: {} };
|
|
103
103
|
/*!
|
|
104
104
|
Copyright (c) 2018 Jed Watson.
|
|
105
105
|
Licensed under the MIT License (MIT), see
|
|
@@ -110,8 +110,8 @@ var Et = { exports: {} };
|
|
|
110
110
|
var t = {}.hasOwnProperty;
|
|
111
111
|
function n() {
|
|
112
112
|
for (var r = "", s = 0; s < arguments.length; s++) {
|
|
113
|
-
var
|
|
114
|
-
|
|
113
|
+
var c = arguments[s];
|
|
114
|
+
c && (r = i(r, o.call(this, c)));
|
|
115
115
|
}
|
|
116
116
|
return r;
|
|
117
117
|
}
|
|
@@ -125,8 +125,8 @@ var Et = { exports: {} };
|
|
|
125
125
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
126
126
|
return r.toString();
|
|
127
127
|
var s = "";
|
|
128
|
-
for (var
|
|
129
|
-
t.call(r,
|
|
128
|
+
for (var c in r)
|
|
129
|
+
t.call(r, c) && r[c] && (s = i(s, this && this[c] || c));
|
|
130
130
|
return s;
|
|
131
131
|
}
|
|
132
132
|
function i(r, s) {
|
|
@@ -134,9 +134,9 @@ var Et = { exports: {} };
|
|
|
134
134
|
}
|
|
135
135
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
136
136
|
})();
|
|
137
|
-
})(
|
|
138
|
-
var
|
|
139
|
-
const
|
|
137
|
+
})(Dt);
|
|
138
|
+
var Ln = Dt.exports;
|
|
139
|
+
const Mn = /* @__PURE__ */ Nn(Ln), kn = {
|
|
140
140
|
"purpur-button": "_purpur-button_1acxn_1",
|
|
141
141
|
"purpur-button--sm": "_purpur-button--sm_1acxn_33",
|
|
142
142
|
"purpur-button--icon-only": "_purpur-button--icon-only_1acxn_36",
|
|
@@ -157,12 +157,12 @@ const Dn = /* @__PURE__ */ Rn(Sn), Nn = {
|
|
|
157
157
|
"purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_1acxn_160",
|
|
158
158
|
"purpur-button--text-negative": "_purpur-button--text-negative_1acxn_175",
|
|
159
159
|
"purpur-button--text": "_purpur-button--text_1acxn_175"
|
|
160
|
-
},
|
|
161
|
-
...
|
|
160
|
+
}, In = {
|
|
161
|
+
...An,
|
|
162
162
|
DESTRUCTIVE: "destructive",
|
|
163
163
|
TERTIARY_PURPLE: "tertiary-purple",
|
|
164
164
|
TEXT: "text"
|
|
165
|
-
},
|
|
165
|
+
}, Fn = Mn.bind(kn), oe = "purpur-button", Hn = ({
|
|
166
166
|
children: e,
|
|
167
167
|
className: t,
|
|
168
168
|
["data-testid"]: n,
|
|
@@ -170,8 +170,8 @@ const Dn = /* @__PURE__ */ Rn(Sn), Nn = {
|
|
|
170
170
|
fullWidth: i = !1,
|
|
171
171
|
iconOnly: r,
|
|
172
172
|
loading: s = !1,
|
|
173
|
-
negative:
|
|
174
|
-
onClick:
|
|
173
|
+
negative: c = !1,
|
|
174
|
+
onClick: a,
|
|
175
175
|
size: l = "md",
|
|
176
176
|
variant: u,
|
|
177
177
|
type: d = "button",
|
|
@@ -179,45 +179,45 @@ const Dn = /* @__PURE__ */ Rn(Sn), Nn = {
|
|
|
179
179
|
}, f) => {
|
|
180
180
|
if (r && u === "destructive")
|
|
181
181
|
return null;
|
|
182
|
-
const h =
|
|
182
|
+
const h = Fn(
|
|
183
183
|
[
|
|
184
|
-
|
|
185
|
-
`${
|
|
186
|
-
`${
|
|
184
|
+
oe,
|
|
185
|
+
`${oe}--${c ? `${u}-negative` : u}`,
|
|
186
|
+
`${oe}--${l}`
|
|
187
187
|
],
|
|
188
188
|
{
|
|
189
|
-
[`${
|
|
190
|
-
[`${
|
|
191
|
-
[`${
|
|
192
|
-
[`${
|
|
189
|
+
[`${oe}--icon-only`]: r,
|
|
190
|
+
[`${oe}--negative`]: c,
|
|
191
|
+
[`${oe}--full-width`]: i,
|
|
192
|
+
[`${oe}--disabled`]: o || s
|
|
193
193
|
},
|
|
194
194
|
t
|
|
195
|
-
),
|
|
196
|
-
o || s ? v.preventDefault() :
|
|
197
|
-
},
|
|
198
|
-
return /* @__PURE__ */
|
|
195
|
+
), m = (v) => {
|
|
196
|
+
o || s ? v.preventDefault() : a && a(v);
|
|
197
|
+
}, g = !!p["aria-disabled"] || o || s;
|
|
198
|
+
return /* @__PURE__ */ Ye(
|
|
199
199
|
"button",
|
|
200
200
|
{
|
|
201
201
|
className: h,
|
|
202
202
|
"data-testid": n,
|
|
203
203
|
type: d,
|
|
204
204
|
ref: f,
|
|
205
|
-
"aria-disabled":
|
|
206
|
-
onClick:
|
|
205
|
+
"aria-disabled": g,
|
|
206
|
+
onClick: m,
|
|
207
207
|
...p,
|
|
208
208
|
children: [
|
|
209
|
-
s && /* @__PURE__ */
|
|
209
|
+
s && /* @__PURE__ */ z(Dn, { size: l === On.LG ? "xs" : "xxs", negative: c, disabled: g }),
|
|
210
210
|
" ",
|
|
211
211
|
e
|
|
212
212
|
]
|
|
213
213
|
}
|
|
214
214
|
);
|
|
215
|
-
},
|
|
216
|
-
|
|
217
|
-
function
|
|
215
|
+
}, Nt = I(Hn);
|
|
216
|
+
Nt.displayName = "Button";
|
|
217
|
+
function Bn(e) {
|
|
218
218
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
219
219
|
}
|
|
220
|
-
var
|
|
220
|
+
var Lt = { exports: {} };
|
|
221
221
|
/*!
|
|
222
222
|
Copyright (c) 2018 Jed Watson.
|
|
223
223
|
Licensed under the MIT License (MIT), see
|
|
@@ -228,8 +228,8 @@ var Rt = { exports: {} };
|
|
|
228
228
|
var t = {}.hasOwnProperty;
|
|
229
229
|
function n() {
|
|
230
230
|
for (var r = "", s = 0; s < arguments.length; s++) {
|
|
231
|
-
var
|
|
232
|
-
|
|
231
|
+
var c = arguments[s];
|
|
232
|
+
c && (r = i(r, o.call(this, c)));
|
|
233
233
|
}
|
|
234
234
|
return r;
|
|
235
235
|
}
|
|
@@ -243,8 +243,8 @@ var Rt = { exports: {} };
|
|
|
243
243
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
244
244
|
return r.toString();
|
|
245
245
|
var s = "";
|
|
246
|
-
for (var
|
|
247
|
-
t.call(r,
|
|
246
|
+
for (var c in r)
|
|
247
|
+
t.call(r, c) && r[c] && (s = i(s, this && this[c] || c));
|
|
248
248
|
return s;
|
|
249
249
|
}
|
|
250
250
|
function i(r, s) {
|
|
@@ -252,9 +252,9 @@ var Rt = { exports: {} };
|
|
|
252
252
|
}
|
|
253
253
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
254
254
|
})();
|
|
255
|
-
})(
|
|
256
|
-
var
|
|
257
|
-
const
|
|
255
|
+
})(Lt);
|
|
256
|
+
var zn = Lt.exports;
|
|
257
|
+
const jn = /* @__PURE__ */ Bn(zn), Wn = {
|
|
258
258
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
259
259
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
260
260
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -262,54 +262,54 @@ const Hn = /* @__PURE__ */ In(Fn), Bn = {
|
|
|
262
262
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
263
263
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
264
264
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
265
|
-
},
|
|
265
|
+
}, Un = {
|
|
266
266
|
name: "info",
|
|
267
267
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 8.18c0 .537.469.979 1.007.979.524 0 .993-.442.993-.98s-.469-.979-.993-.979c-.538 0-1.007.441-1.007.98Zm.152 1.958v6.897h1.696v-6.897h-1.696Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',
|
|
268
268
|
keywords: ["info"],
|
|
269
269
|
category: "status"
|
|
270
|
-
},
|
|
271
|
-
|
|
270
|
+
}, Mt = (e) => /* @__PURE__ */ z(
|
|
271
|
+
Kn,
|
|
272
272
|
{
|
|
273
273
|
...e,
|
|
274
|
-
svg:
|
|
274
|
+
svg: Un
|
|
275
275
|
}
|
|
276
276
|
);
|
|
277
|
-
|
|
278
|
-
const
|
|
277
|
+
Mt.displayName = "IconInfo";
|
|
278
|
+
const Vn = jn.bind(Wn), gt = "purpur-icon", Xn = "md", Yn = (e) => e.filter((t) => Object.keys(t).length >= 1).map((t) => `${t.name}="${t.value}"`).join(" "), Gn = ({ content: e = "", title: t } = {}) => {
|
|
279
279
|
const n = [
|
|
280
280
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
281
281
|
{ name: "fill", value: "currentColor" },
|
|
282
282
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
283
283
|
t ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
284
284
|
], o = t ? `<title>${t}</title>` : "";
|
|
285
|
-
return `<svg ${
|
|
286
|
-
},
|
|
285
|
+
return `<svg ${Yn(n)}>${o}${e}</svg>`;
|
|
286
|
+
}, qn = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Kn = ({
|
|
287
287
|
["data-testid"]: e,
|
|
288
288
|
svg: t,
|
|
289
289
|
allyTitle: n,
|
|
290
290
|
className: o,
|
|
291
|
-
size: i =
|
|
291
|
+
size: i = Xn,
|
|
292
292
|
...r
|
|
293
293
|
}) => {
|
|
294
|
-
const s =
|
|
295
|
-
content:
|
|
294
|
+
const s = Gn({
|
|
295
|
+
content: qn(t.svg),
|
|
296
296
|
title: n
|
|
297
|
-
}),
|
|
298
|
-
return /* @__PURE__ */
|
|
297
|
+
}), c = Vn(o, gt, `${gt}--${i}`);
|
|
298
|
+
return /* @__PURE__ */ z(
|
|
299
299
|
"span",
|
|
300
300
|
{
|
|
301
301
|
"aria-label": n,
|
|
302
|
-
className:
|
|
302
|
+
className: c,
|
|
303
303
|
"data-testid": e,
|
|
304
304
|
dangerouslySetInnerHTML: { __html: s },
|
|
305
305
|
...r
|
|
306
306
|
}
|
|
307
307
|
);
|
|
308
308
|
};
|
|
309
|
-
function
|
|
309
|
+
function Zn(e) {
|
|
310
310
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
311
311
|
}
|
|
312
|
-
var
|
|
312
|
+
var kt = { exports: {} };
|
|
313
313
|
/*!
|
|
314
314
|
Copyright (c) 2018 Jed Watson.
|
|
315
315
|
Licensed under the MIT License (MIT), see
|
|
@@ -320,8 +320,8 @@ var Dt = { exports: {} };
|
|
|
320
320
|
var t = {}.hasOwnProperty;
|
|
321
321
|
function n() {
|
|
322
322
|
for (var r = "", s = 0; s < arguments.length; s++) {
|
|
323
|
-
var
|
|
324
|
-
|
|
323
|
+
var c = arguments[s];
|
|
324
|
+
c && (r = i(r, o(c)));
|
|
325
325
|
}
|
|
326
326
|
return r;
|
|
327
327
|
}
|
|
@@ -335,8 +335,8 @@ var Dt = { exports: {} };
|
|
|
335
335
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
336
336
|
return r.toString();
|
|
337
337
|
var s = "";
|
|
338
|
-
for (var
|
|
339
|
-
t.call(r,
|
|
338
|
+
for (var c in r)
|
|
339
|
+
t.call(r, c) && r[c] && (s = i(s, c));
|
|
340
340
|
return s;
|
|
341
341
|
}
|
|
342
342
|
function i(r, s) {
|
|
@@ -344,9 +344,9 @@ var Dt = { exports: {} };
|
|
|
344
344
|
}
|
|
345
345
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
346
346
|
})();
|
|
347
|
-
})(
|
|
348
|
-
var
|
|
349
|
-
const
|
|
347
|
+
})(kt);
|
|
348
|
+
var Jn = kt.exports;
|
|
349
|
+
const Qn = /* @__PURE__ */ Zn(Jn), be = {
|
|
350
350
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
351
351
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
352
352
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -361,7 +361,7 @@ const Kn = /* @__PURE__ */ Yn(qn), ye = {
|
|
|
361
361
|
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
|
|
362
362
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
363
363
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
364
|
-
},
|
|
364
|
+
}, It = {
|
|
365
365
|
PARAGRAPH100: "paragraph-100",
|
|
366
366
|
PARAGRAPH100MEDIUM: "paragraph-100-medium",
|
|
367
367
|
PARAGRAPH100BOLD: "paragraph-100-bold",
|
|
@@ -372,75 +372,74 @@ const Kn = /* @__PURE__ */ Yn(qn), ye = {
|
|
|
372
372
|
ADDITIONAL100MEDIUM: "additional-100-medium",
|
|
373
373
|
OVERLINE100: "overline-100",
|
|
374
374
|
OVERLINE200: "overline-200"
|
|
375
|
-
},
|
|
375
|
+
}, $e = "purpur-paragraph", Ft = ({
|
|
376
376
|
["data-testid"]: e,
|
|
377
377
|
children: t,
|
|
378
378
|
className: n,
|
|
379
379
|
disabled: o,
|
|
380
380
|
enableHyphenation: i = !1,
|
|
381
381
|
negative: r = !1,
|
|
382
|
-
variant: s =
|
|
383
|
-
...
|
|
382
|
+
variant: s = It.PARAGRAPH100,
|
|
383
|
+
...c
|
|
384
384
|
}) => {
|
|
385
|
-
const
|
|
385
|
+
const a = Qn([
|
|
386
386
|
n,
|
|
387
|
-
|
|
388
|
-
|
|
387
|
+
be[$e],
|
|
388
|
+
be[`${$e}--${s}`],
|
|
389
389
|
{
|
|
390
|
-
[
|
|
391
|
-
[
|
|
392
|
-
[
|
|
390
|
+
[be[`${$e}--hyphens`]]: i,
|
|
391
|
+
[be[`${$e}--disabled`]]: o,
|
|
392
|
+
[be[`${$e}--negative`]]: r
|
|
393
393
|
}
|
|
394
394
|
]);
|
|
395
|
-
return /* @__PURE__ */
|
|
395
|
+
return /* @__PURE__ */ z("p", { ...c, className: a, "data-testid": e, children: t });
|
|
396
396
|
};
|
|
397
|
-
|
|
398
|
-
const
|
|
399
|
-
function
|
|
400
|
-
return
|
|
397
|
+
Ft.displayName = "Paragraph";
|
|
398
|
+
const er = "400ms";
|
|
399
|
+
function R() {
|
|
400
|
+
return R = Object.assign ? Object.assign.bind() : function(e) {
|
|
401
401
|
for (var t = 1; t < arguments.length; t++) {
|
|
402
402
|
var n = arguments[t];
|
|
403
|
-
for (var o in n)
|
|
404
|
-
Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
|
403
|
+
for (var o in n) ({}).hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
|
405
404
|
}
|
|
406
405
|
return e;
|
|
407
|
-
},
|
|
406
|
+
}, R.apply(null, arguments);
|
|
408
407
|
}
|
|
409
|
-
function
|
|
408
|
+
function Z(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
410
409
|
return function(i) {
|
|
411
410
|
if (e == null || e(i), n === !1 || !i.defaultPrevented) return t == null ? void 0 : t(i);
|
|
412
411
|
};
|
|
413
412
|
}
|
|
414
|
-
function
|
|
413
|
+
function tr(e, t) {
|
|
415
414
|
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
416
415
|
}
|
|
417
|
-
function
|
|
416
|
+
function Ht(...e) {
|
|
418
417
|
return (t) => e.forEach(
|
|
419
|
-
(n) =>
|
|
418
|
+
(n) => tr(n, t)
|
|
420
419
|
);
|
|
421
420
|
}
|
|
422
|
-
function
|
|
423
|
-
return
|
|
421
|
+
function pe(...e) {
|
|
422
|
+
return j(Ht(...e), e);
|
|
424
423
|
}
|
|
425
|
-
function
|
|
424
|
+
function Bt(e, t = []) {
|
|
426
425
|
let n = [];
|
|
427
426
|
function o(r, s) {
|
|
428
|
-
const
|
|
427
|
+
const c = /* @__PURE__ */ Ge(s), a = n.length;
|
|
429
428
|
n = [
|
|
430
429
|
...n,
|
|
431
430
|
s
|
|
432
431
|
];
|
|
433
432
|
function l(d) {
|
|
434
|
-
const { scope: p, children: f, ...h } = d,
|
|
433
|
+
const { scope: p, children: f, ...h } = d, m = (p == null ? void 0 : p[e][a]) || c, g = we(
|
|
435
434
|
() => h,
|
|
436
435
|
Object.values(h)
|
|
437
436
|
);
|
|
438
|
-
return /* @__PURE__ */
|
|
439
|
-
value:
|
|
437
|
+
return /* @__PURE__ */ w(m.Provider, {
|
|
438
|
+
value: g
|
|
440
439
|
}, f);
|
|
441
440
|
}
|
|
442
441
|
function u(d, p) {
|
|
443
|
-
const f = (p == null ? void 0 : p[e][
|
|
442
|
+
const f = (p == null ? void 0 : p[e][a]) || c, h = Et(f);
|
|
444
443
|
if (h) return h;
|
|
445
444
|
if (s !== void 0) return s;
|
|
446
445
|
throw new Error(`\`${d}\` must be used within \`${r}\``);
|
|
@@ -451,29 +450,29 @@ function kt(e, t = []) {
|
|
|
451
450
|
];
|
|
452
451
|
}
|
|
453
452
|
const i = () => {
|
|
454
|
-
const r = n.map((s) => /* @__PURE__ */
|
|
455
|
-
return function(
|
|
456
|
-
const
|
|
457
|
-
return
|
|
453
|
+
const r = n.map((s) => /* @__PURE__ */ Ge(s));
|
|
454
|
+
return function(c) {
|
|
455
|
+
const a = (c == null ? void 0 : c[e]) || r;
|
|
456
|
+
return we(
|
|
458
457
|
() => ({
|
|
459
458
|
[`__scope${e}`]: {
|
|
460
|
-
...
|
|
461
|
-
[e]:
|
|
459
|
+
...c,
|
|
460
|
+
[e]: a
|
|
462
461
|
}
|
|
463
462
|
}),
|
|
464
463
|
[
|
|
465
|
-
|
|
466
|
-
|
|
464
|
+
c,
|
|
465
|
+
a
|
|
467
466
|
]
|
|
468
467
|
);
|
|
469
468
|
};
|
|
470
469
|
};
|
|
471
470
|
return i.scopeName = e, [
|
|
472
471
|
o,
|
|
473
|
-
|
|
472
|
+
nr(i, ...t)
|
|
474
473
|
];
|
|
475
474
|
}
|
|
476
|
-
function
|
|
475
|
+
function nr(...e) {
|
|
477
476
|
const t = e[0];
|
|
478
477
|
if (e.length === 1) return t;
|
|
479
478
|
const n = () => {
|
|
@@ -484,14 +483,14 @@ function Qn(...e) {
|
|
|
484
483
|
})
|
|
485
484
|
);
|
|
486
485
|
return function(r) {
|
|
487
|
-
const s = o.reduce((
|
|
488
|
-
const d =
|
|
486
|
+
const s = o.reduce((c, { useScope: a, scopeName: l }) => {
|
|
487
|
+
const d = a(r)[`__scope${l}`];
|
|
489
488
|
return {
|
|
490
|
-
...
|
|
489
|
+
...c,
|
|
491
490
|
...d
|
|
492
491
|
};
|
|
493
492
|
}, {});
|
|
494
|
-
return
|
|
493
|
+
return we(
|
|
495
494
|
() => ({
|
|
496
495
|
[`__scope${t.scopeName}`]: s
|
|
497
496
|
}),
|
|
@@ -503,39 +502,39 @@ function Qn(...e) {
|
|
|
503
502
|
};
|
|
504
503
|
return n.scopeName = t.scopeName, n;
|
|
505
504
|
}
|
|
506
|
-
const
|
|
507
|
-
const { children: n, ...o } = e, i =
|
|
505
|
+
const zt = /* @__PURE__ */ I((e, t) => {
|
|
506
|
+
const { children: n, ...o } = e, i = ie.toArray(n), r = i.find(rr);
|
|
508
507
|
if (r) {
|
|
509
|
-
const s = r.props.children,
|
|
510
|
-
return /* @__PURE__ */
|
|
508
|
+
const s = r.props.children, c = i.map((a) => a === r ? ie.count(s) > 1 ? ie.only(null) : /* @__PURE__ */ Me(s) ? s.props.children : null : a);
|
|
509
|
+
return /* @__PURE__ */ w(qe, R({}, o, {
|
|
511
510
|
ref: t
|
|
512
|
-
}), /* @__PURE__ */
|
|
511
|
+
}), /* @__PURE__ */ Me(s) ? /* @__PURE__ */ tt(s, void 0, c) : null);
|
|
513
512
|
}
|
|
514
|
-
return /* @__PURE__ */
|
|
513
|
+
return /* @__PURE__ */ w(qe, R({}, o, {
|
|
515
514
|
ref: t
|
|
516
515
|
}), n);
|
|
517
516
|
});
|
|
518
|
-
|
|
519
|
-
const
|
|
517
|
+
zt.displayName = "Slot";
|
|
518
|
+
const qe = /* @__PURE__ */ I((e, t) => {
|
|
520
519
|
const { children: n, ...o } = e;
|
|
521
|
-
return /* @__PURE__ */
|
|
522
|
-
...
|
|
523
|
-
ref: t ?
|
|
524
|
-
}) :
|
|
520
|
+
return /* @__PURE__ */ Me(n) ? /* @__PURE__ */ tt(n, {
|
|
521
|
+
...or(o, n.props),
|
|
522
|
+
ref: t ? Ht(t, n.ref) : n.ref
|
|
523
|
+
}) : ie.count(n) > 1 ? ie.only(null) : null;
|
|
525
524
|
});
|
|
526
|
-
|
|
527
|
-
const
|
|
528
|
-
function
|
|
529
|
-
return /* @__PURE__ */
|
|
525
|
+
qe.displayName = "SlotClone";
|
|
526
|
+
const jt = ({ children: e }) => /* @__PURE__ */ w($n, null, e);
|
|
527
|
+
function rr(e) {
|
|
528
|
+
return /* @__PURE__ */ Me(e) && e.type === jt;
|
|
530
529
|
}
|
|
531
|
-
function
|
|
530
|
+
function or(e, t) {
|
|
532
531
|
const n = {
|
|
533
532
|
...t
|
|
534
533
|
};
|
|
535
534
|
for (const o in t) {
|
|
536
535
|
const i = e[o], r = t[o];
|
|
537
|
-
/^on[A-Z]/.test(o) ? i && r ? n[o] = (...
|
|
538
|
-
r(...
|
|
536
|
+
/^on[A-Z]/.test(o) ? i && r ? n[o] = (...c) => {
|
|
537
|
+
r(...c), i(...c);
|
|
539
538
|
} : i && (n[o] = i) : o === "style" ? n[o] = {
|
|
540
539
|
...i,
|
|
541
540
|
...r
|
|
@@ -549,7 +548,7 @@ function tr(e, t) {
|
|
|
549
548
|
...n
|
|
550
549
|
};
|
|
551
550
|
}
|
|
552
|
-
const
|
|
551
|
+
const ir = [
|
|
553
552
|
"a",
|
|
554
553
|
"button",
|
|
555
554
|
"div",
|
|
@@ -566,12 +565,12 @@ const nr = [
|
|
|
566
565
|
"span",
|
|
567
566
|
"svg",
|
|
568
567
|
"ul"
|
|
569
|
-
],
|
|
570
|
-
const n = /* @__PURE__ */
|
|
571
|
-
const { asChild: r, ...s } = o,
|
|
572
|
-
return
|
|
568
|
+
], ce = ir.reduce((e, t) => {
|
|
569
|
+
const n = /* @__PURE__ */ I((o, i) => {
|
|
570
|
+
const { asChild: r, ...s } = o, c = r ? zt : t;
|
|
571
|
+
return S(() => {
|
|
573
572
|
window[Symbol.for("radix-ui")] = !0;
|
|
574
|
-
}, []), /* @__PURE__ */
|
|
573
|
+
}, []), /* @__PURE__ */ w(c, R({}, s, {
|
|
575
574
|
ref: i
|
|
576
575
|
}));
|
|
577
576
|
});
|
|
@@ -580,16 +579,16 @@ const nr = [
|
|
|
580
579
|
[t]: n
|
|
581
580
|
};
|
|
582
581
|
}, {});
|
|
583
|
-
function
|
|
584
|
-
e &&
|
|
582
|
+
function sr(e, t) {
|
|
583
|
+
e && St(
|
|
585
584
|
() => e.dispatchEvent(t)
|
|
586
585
|
);
|
|
587
586
|
}
|
|
588
|
-
function
|
|
589
|
-
const t =
|
|
590
|
-
return
|
|
587
|
+
function he(e) {
|
|
588
|
+
const t = k(e);
|
|
589
|
+
return S(() => {
|
|
591
590
|
t.current = e;
|
|
592
|
-
}),
|
|
591
|
+
}), we(
|
|
593
592
|
() => (...n) => {
|
|
594
593
|
var o;
|
|
595
594
|
return (o = t.current) === null || o === void 0 ? void 0 : o.call(t, ...n);
|
|
@@ -597,9 +596,9 @@ function fe(e) {
|
|
|
597
596
|
[]
|
|
598
597
|
);
|
|
599
598
|
}
|
|
600
|
-
function
|
|
601
|
-
const n =
|
|
602
|
-
|
|
599
|
+
function cr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
600
|
+
const n = he(e);
|
|
601
|
+
S(() => {
|
|
603
602
|
const o = (i) => {
|
|
604
603
|
i.key === "Escape" && n(i);
|
|
605
604
|
};
|
|
@@ -609,80 +608,80 @@ function or(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
609
608
|
t
|
|
610
609
|
]);
|
|
611
610
|
}
|
|
612
|
-
const
|
|
613
|
-
let
|
|
614
|
-
const
|
|
611
|
+
const Ke = "dismissableLayer.update", ar = "dismissableLayer.pointerDownOutside", lr = "dismissableLayer.focusOutside";
|
|
612
|
+
let mt;
|
|
613
|
+
const ur = /* @__PURE__ */ Ge({
|
|
615
614
|
layers: /* @__PURE__ */ new Set(),
|
|
616
615
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
617
616
|
branches: /* @__PURE__ */ new Set()
|
|
618
|
-
}),
|
|
617
|
+
}), dr = /* @__PURE__ */ I((e, t) => {
|
|
619
618
|
var n;
|
|
620
|
-
const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: i, onPointerDownOutside: r, onFocusOutside: s, onInteractOutside:
|
|
619
|
+
const { disableOutsidePointerEvents: o = !1, onEscapeKeyDown: i, onPointerDownOutside: r, onFocusOutside: s, onInteractOutside: c, onDismiss: a, ...l } = e, u = Et(ur), [d, p] = U(null), f = (n = d == null ? void 0 : d.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, h] = U({}), m = pe(
|
|
621
620
|
t,
|
|
622
|
-
(
|
|
623
|
-
),
|
|
621
|
+
(_) => p(_)
|
|
622
|
+
), g = Array.from(u.layers), [v] = [
|
|
624
623
|
...u.layersWithOutsidePointerEventsDisabled
|
|
625
|
-
].slice(-1), y =
|
|
626
|
-
const
|
|
624
|
+
].slice(-1), y = g.indexOf(v), x = d ? g.indexOf(d) : -1, b = u.layersWithOutsidePointerEventsDisabled.size > 0, $ = x >= y, P = fr((_) => {
|
|
625
|
+
const E = _.target, T = [
|
|
627
626
|
...u.branches
|
|
628
627
|
].some(
|
|
629
|
-
(
|
|
628
|
+
(D) => D.contains(E)
|
|
630
629
|
);
|
|
631
|
-
|
|
632
|
-
}, f),
|
|
633
|
-
const
|
|
630
|
+
!$ || T || (r == null || r(_), c == null || c(_), _.defaultPrevented || a == null || a());
|
|
631
|
+
}, f), O = pr((_) => {
|
|
632
|
+
const E = _.target;
|
|
634
633
|
[
|
|
635
634
|
...u.branches
|
|
636
635
|
].some(
|
|
637
|
-
(
|
|
638
|
-
) || (s == null || s(
|
|
636
|
+
(D) => D.contains(E)
|
|
637
|
+
) || (s == null || s(_), c == null || c(_), _.defaultPrevented || a == null || a());
|
|
639
638
|
}, f);
|
|
640
|
-
return
|
|
641
|
-
|
|
642
|
-
}, f),
|
|
639
|
+
return cr((_) => {
|
|
640
|
+
x === u.layers.size - 1 && (i == null || i(_), !_.defaultPrevented && a && (_.preventDefault(), a()));
|
|
641
|
+
}, f), S(() => {
|
|
643
642
|
if (d)
|
|
644
|
-
return o && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
645
|
-
o && u.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents =
|
|
643
|
+
return o && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (mt = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(d)), u.layers.add(d), vt(), () => {
|
|
644
|
+
o && u.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = mt);
|
|
646
645
|
};
|
|
647
646
|
}, [
|
|
648
647
|
d,
|
|
649
648
|
f,
|
|
650
649
|
o,
|
|
651
650
|
u
|
|
652
|
-
]),
|
|
653
|
-
d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d),
|
|
651
|
+
]), S(() => () => {
|
|
652
|
+
d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), vt());
|
|
654
653
|
}, [
|
|
655
654
|
d,
|
|
656
655
|
u
|
|
657
|
-
]),
|
|
658
|
-
const
|
|
659
|
-
return document.addEventListener(
|
|
660
|
-
}, []), /* @__PURE__ */
|
|
661
|
-
ref:
|
|
656
|
+
]), S(() => {
|
|
657
|
+
const _ = () => h({});
|
|
658
|
+
return document.addEventListener(Ke, _), () => document.removeEventListener(Ke, _);
|
|
659
|
+
}, []), /* @__PURE__ */ w(ce.div, R({}, l, {
|
|
660
|
+
ref: m,
|
|
662
661
|
style: {
|
|
663
|
-
pointerEvents:
|
|
662
|
+
pointerEvents: b ? $ ? "auto" : "none" : void 0,
|
|
664
663
|
...e.style
|
|
665
664
|
},
|
|
666
|
-
onFocusCapture:
|
|
667
|
-
onBlurCapture:
|
|
668
|
-
onPointerDownCapture:
|
|
665
|
+
onFocusCapture: Z(e.onFocusCapture, O.onFocusCapture),
|
|
666
|
+
onBlurCapture: Z(e.onBlurCapture, O.onBlurCapture),
|
|
667
|
+
onPointerDownCapture: Z(e.onPointerDownCapture, P.onPointerDownCapture)
|
|
669
668
|
}));
|
|
670
669
|
});
|
|
671
|
-
function
|
|
672
|
-
const n =
|
|
670
|
+
function fr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
671
|
+
const n = he(e), o = k(!1), i = k(() => {
|
|
673
672
|
});
|
|
674
|
-
return
|
|
675
|
-
const r = (
|
|
676
|
-
if (
|
|
673
|
+
return S(() => {
|
|
674
|
+
const r = (c) => {
|
|
675
|
+
if (c.target && !o.current) {
|
|
677
676
|
let l = function() {
|
|
678
|
-
|
|
677
|
+
Wt(ar, n, a, {
|
|
679
678
|
discrete: !0
|
|
680
679
|
});
|
|
681
680
|
};
|
|
682
|
-
const
|
|
683
|
-
originalEvent:
|
|
681
|
+
const a = {
|
|
682
|
+
originalEvent: c
|
|
684
683
|
};
|
|
685
|
-
|
|
684
|
+
c.pointerType === "touch" ? (t.removeEventListener("click", i.current), i.current = l, t.addEventListener("click", i.current, {
|
|
686
685
|
once: !0
|
|
687
686
|
})) : l();
|
|
688
687
|
} else
|
|
@@ -702,11 +701,11 @@ function lr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
702
701
|
onPointerDownCapture: () => o.current = !0
|
|
703
702
|
};
|
|
704
703
|
}
|
|
705
|
-
function
|
|
706
|
-
const n =
|
|
707
|
-
return
|
|
704
|
+
function pr(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
705
|
+
const n = he(e), o = k(!1);
|
|
706
|
+
return S(() => {
|
|
708
707
|
const i = (r) => {
|
|
709
|
-
r.target && !o.current &&
|
|
708
|
+
r.target && !o.current && Wt(lr, n, {
|
|
710
709
|
originalEvent: r
|
|
711
710
|
}, {
|
|
712
711
|
discrete: !1
|
|
@@ -721,11 +720,11 @@ function ur(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
721
720
|
onBlurCapture: () => o.current = !1
|
|
722
721
|
};
|
|
723
722
|
}
|
|
724
|
-
function
|
|
725
|
-
const e = new CustomEvent(
|
|
723
|
+
function vt() {
|
|
724
|
+
const e = new CustomEvent(Ke);
|
|
726
725
|
document.dispatchEvent(e);
|
|
727
726
|
}
|
|
728
|
-
function
|
|
727
|
+
function Wt(e, t, n, { discrete: o }) {
|
|
729
728
|
const i = n.originalEvent.target, r = new CustomEvent(e, {
|
|
730
729
|
bubbles: !1,
|
|
731
730
|
cancelable: !0,
|
|
@@ -733,72 +732,72 @@ function Ht(e, t, n, { discrete: o }) {
|
|
|
733
732
|
});
|
|
734
733
|
t && i.addEventListener(e, t, {
|
|
735
734
|
once: !0
|
|
736
|
-
}), o ?
|
|
735
|
+
}), o ? sr(i, r) : i.dispatchEvent(r);
|
|
737
736
|
}
|
|
738
|
-
const
|
|
739
|
-
},
|
|
737
|
+
const de = globalThis != null && globalThis.document ? Tt : () => {
|
|
738
|
+
}, hr = L.useId || (() => {
|
|
740
739
|
});
|
|
741
|
-
let
|
|
742
|
-
function
|
|
743
|
-
const [t, n] =
|
|
744
|
-
return
|
|
740
|
+
let gr = 0;
|
|
741
|
+
function mr(e) {
|
|
742
|
+
const [t, n] = L.useState(hr());
|
|
743
|
+
return de(() => {
|
|
745
744
|
n(
|
|
746
|
-
(o) => o ?? String(
|
|
745
|
+
(o) => o ?? String(gr++)
|
|
747
746
|
);
|
|
748
747
|
}, [
|
|
749
748
|
e
|
|
750
749
|
]), t ? `radix-${t}` : "";
|
|
751
750
|
}
|
|
752
|
-
const
|
|
751
|
+
const vr = ["top", "right", "bottom", "left"], q = Math.min, W = Math.max, ke = Math.round, De = Math.floor, te = (e) => ({
|
|
753
752
|
x: e,
|
|
754
753
|
y: e
|
|
755
|
-
}),
|
|
754
|
+
}), yr = {
|
|
756
755
|
left: "right",
|
|
757
756
|
right: "left",
|
|
758
757
|
bottom: "top",
|
|
759
758
|
top: "bottom"
|
|
760
|
-
},
|
|
759
|
+
}, xr = {
|
|
761
760
|
start: "end",
|
|
762
761
|
end: "start"
|
|
763
762
|
};
|
|
764
|
-
function
|
|
765
|
-
return
|
|
763
|
+
function Ze(e, t, n) {
|
|
764
|
+
return W(e, q(t, n));
|
|
766
765
|
}
|
|
767
|
-
function
|
|
766
|
+
function J(e, t) {
|
|
768
767
|
return typeof e == "function" ? e(t) : e;
|
|
769
768
|
}
|
|
770
|
-
function
|
|
769
|
+
function Q(e) {
|
|
771
770
|
return e.split("-")[0];
|
|
772
771
|
}
|
|
773
|
-
function
|
|
772
|
+
function ge(e) {
|
|
774
773
|
return e.split("-")[1];
|
|
775
774
|
}
|
|
776
|
-
function
|
|
775
|
+
function nt(e) {
|
|
777
776
|
return e === "x" ? "y" : "x";
|
|
778
777
|
}
|
|
779
|
-
function
|
|
778
|
+
function rt(e) {
|
|
780
779
|
return e === "y" ? "height" : "width";
|
|
781
780
|
}
|
|
782
|
-
function
|
|
783
|
-
return ["top", "bottom"].includes(
|
|
781
|
+
function ne(e) {
|
|
782
|
+
return ["top", "bottom"].includes(Q(e)) ? "y" : "x";
|
|
784
783
|
}
|
|
785
|
-
function
|
|
786
|
-
return
|
|
784
|
+
function ot(e) {
|
|
785
|
+
return nt(ne(e));
|
|
787
786
|
}
|
|
788
|
-
function
|
|
787
|
+
function br(e, t, n) {
|
|
789
788
|
n === void 0 && (n = !1);
|
|
790
|
-
const o =
|
|
789
|
+
const o = ge(e), i = ot(e), r = rt(i);
|
|
791
790
|
let s = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
792
|
-
return t.reference[r] > t.floating[r] && (s =
|
|
791
|
+
return t.reference[r] > t.floating[r] && (s = Ie(s)), [s, Ie(s)];
|
|
793
792
|
}
|
|
794
|
-
function
|
|
795
|
-
const t =
|
|
796
|
-
return [
|
|
793
|
+
function $r(e) {
|
|
794
|
+
const t = Ie(e);
|
|
795
|
+
return [Je(e), t, Je(t)];
|
|
797
796
|
}
|
|
798
|
-
function
|
|
799
|
-
return e.replace(/start|end/g, (t) =>
|
|
797
|
+
function Je(e) {
|
|
798
|
+
return e.replace(/start|end/g, (t) => xr[t]);
|
|
800
799
|
}
|
|
801
|
-
function
|
|
800
|
+
function wr(e, t, n) {
|
|
802
801
|
const o = ["left", "right"], i = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
|
|
803
802
|
switch (e) {
|
|
804
803
|
case "top":
|
|
@@ -811,15 +810,15 @@ function xr(e, t, n) {
|
|
|
811
810
|
return [];
|
|
812
811
|
}
|
|
813
812
|
}
|
|
814
|
-
function
|
|
815
|
-
const i =
|
|
816
|
-
let r =
|
|
817
|
-
return i && (r = r.map((s) => s + "-" + i), t && (r = r.concat(r.map(
|
|
813
|
+
function _r(e, t, n, o) {
|
|
814
|
+
const i = ge(e);
|
|
815
|
+
let r = wr(Q(e), n === "start", o);
|
|
816
|
+
return i && (r = r.map((s) => s + "-" + i), t && (r = r.concat(r.map(Je)))), r;
|
|
818
817
|
}
|
|
819
|
-
function
|
|
820
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
818
|
+
function Ie(e) {
|
|
819
|
+
return e.replace(/left|right|bottom|top/g, (t) => yr[t]);
|
|
821
820
|
}
|
|
822
|
-
function
|
|
821
|
+
function Pr(e) {
|
|
823
822
|
return {
|
|
824
823
|
top: 0,
|
|
825
824
|
right: 0,
|
|
@@ -828,31 +827,40 @@ function $r(e) {
|
|
|
828
827
|
...e
|
|
829
828
|
};
|
|
830
829
|
}
|
|
831
|
-
function
|
|
832
|
-
return typeof e != "number" ?
|
|
830
|
+
function Ut(e) {
|
|
831
|
+
return typeof e != "number" ? Pr(e) : {
|
|
833
832
|
top: e,
|
|
834
833
|
right: e,
|
|
835
834
|
bottom: e,
|
|
836
835
|
left: e
|
|
837
836
|
};
|
|
838
837
|
}
|
|
839
|
-
function
|
|
838
|
+
function Fe(e) {
|
|
839
|
+
const {
|
|
840
|
+
x: t,
|
|
841
|
+
y: n,
|
|
842
|
+
width: o,
|
|
843
|
+
height: i
|
|
844
|
+
} = e;
|
|
840
845
|
return {
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
+
width: o,
|
|
847
|
+
height: i,
|
|
848
|
+
top: n,
|
|
849
|
+
left: t,
|
|
850
|
+
right: t + o,
|
|
851
|
+
bottom: n + i,
|
|
852
|
+
x: t,
|
|
853
|
+
y: n
|
|
846
854
|
};
|
|
847
855
|
}
|
|
848
|
-
function
|
|
856
|
+
function yt(e, t, n) {
|
|
849
857
|
let {
|
|
850
858
|
reference: o,
|
|
851
859
|
floating: i
|
|
852
860
|
} = e;
|
|
853
|
-
const r =
|
|
861
|
+
const r = ne(t), s = ot(t), c = rt(s), a = Q(t), l = r === "y", u = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, p = o[c] / 2 - i[c] / 2;
|
|
854
862
|
let f;
|
|
855
|
-
switch (
|
|
863
|
+
switch (a) {
|
|
856
864
|
case "top":
|
|
857
865
|
f = {
|
|
858
866
|
x: u,
|
|
@@ -883,7 +891,7 @@ function ht(e, t, n) {
|
|
|
883
891
|
y: o.y
|
|
884
892
|
};
|
|
885
893
|
}
|
|
886
|
-
switch (
|
|
894
|
+
switch (ge(t)) {
|
|
887
895
|
case "start":
|
|
888
896
|
f[s] -= p * (n && l ? -1 : 1);
|
|
889
897
|
break;
|
|
@@ -893,13 +901,13 @@ function ht(e, t, n) {
|
|
|
893
901
|
}
|
|
894
902
|
return f;
|
|
895
903
|
}
|
|
896
|
-
const
|
|
904
|
+
const Ar = async (e, t, n) => {
|
|
897
905
|
const {
|
|
898
906
|
placement: o = "bottom",
|
|
899
907
|
strategy: i = "absolute",
|
|
900
908
|
middleware: r = [],
|
|
901
909
|
platform: s
|
|
902
|
-
} = n,
|
|
910
|
+
} = n, c = r.filter(Boolean), a = await (s.isRTL == null ? void 0 : s.isRTL(t));
|
|
903
911
|
let l = await s.getElementRects({
|
|
904
912
|
reference: e,
|
|
905
913
|
floating: t,
|
|
@@ -907,16 +915,16 @@ const wr = async (e, t, n) => {
|
|
|
907
915
|
}), {
|
|
908
916
|
x: u,
|
|
909
917
|
y: d
|
|
910
|
-
} =
|
|
911
|
-
for (let
|
|
918
|
+
} = yt(l, o, a), p = o, f = {}, h = 0;
|
|
919
|
+
for (let m = 0; m < c.length; m++) {
|
|
912
920
|
const {
|
|
913
|
-
name:
|
|
921
|
+
name: g,
|
|
914
922
|
fn: v
|
|
915
|
-
} =
|
|
923
|
+
} = c[m], {
|
|
916
924
|
x: y,
|
|
917
|
-
y:
|
|
918
|
-
data:
|
|
919
|
-
reset:
|
|
925
|
+
y: x,
|
|
926
|
+
data: b,
|
|
927
|
+
reset: $
|
|
920
928
|
} = await v({
|
|
921
929
|
x: u,
|
|
922
930
|
y: d,
|
|
@@ -931,23 +939,20 @@ const wr = async (e, t, n) => {
|
|
|
931
939
|
floating: t
|
|
932
940
|
}
|
|
933
941
|
});
|
|
934
|
-
|
|
942
|
+
u = y ?? u, d = x ?? d, f = {
|
|
935
943
|
...f,
|
|
936
|
-
[
|
|
937
|
-
...f[
|
|
938
|
-
|
|
944
|
+
[g]: {
|
|
945
|
+
...f[g],
|
|
946
|
+
...b
|
|
939
947
|
}
|
|
940
|
-
},
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
} = ht(l, p, c)), g = -1;
|
|
949
|
-
continue;
|
|
950
|
-
}
|
|
948
|
+
}, $ && h <= 50 && (h++, typeof $ == "object" && ($.placement && (p = $.placement), $.rects && (l = $.rects === !0 ? await s.getElementRects({
|
|
949
|
+
reference: e,
|
|
950
|
+
floating: t,
|
|
951
|
+
strategy: i
|
|
952
|
+
}) : $.rects), {
|
|
953
|
+
x: u,
|
|
954
|
+
y: d
|
|
955
|
+
} = yt(l, p, a)), m = -1);
|
|
951
956
|
}
|
|
952
957
|
return {
|
|
953
958
|
x: u,
|
|
@@ -957,7 +962,7 @@ const wr = async (e, t, n) => {
|
|
|
957
962
|
middlewareData: f
|
|
958
963
|
};
|
|
959
964
|
};
|
|
960
|
-
async function
|
|
965
|
+
async function _e(e, t) {
|
|
961
966
|
var n;
|
|
962
967
|
t === void 0 && (t = {});
|
|
963
968
|
const {
|
|
@@ -965,42 +970,44 @@ async function $e(e, t) {
|
|
|
965
970
|
y: i,
|
|
966
971
|
platform: r,
|
|
967
972
|
rects: s,
|
|
968
|
-
elements:
|
|
969
|
-
strategy:
|
|
973
|
+
elements: c,
|
|
974
|
+
strategy: a
|
|
970
975
|
} = e, {
|
|
971
976
|
boundary: l = "clippingAncestors",
|
|
972
977
|
rootBoundary: u = "viewport",
|
|
973
978
|
elementContext: d = "floating",
|
|
974
979
|
altBoundary: p = !1,
|
|
975
980
|
padding: f = 0
|
|
976
|
-
} =
|
|
977
|
-
element: (n = await (r.isElement == null ? void 0 : r.isElement(
|
|
981
|
+
} = J(t, e), h = Ut(f), g = c[p ? d === "floating" ? "reference" : "floating" : d], v = Fe(await r.getClippingRect({
|
|
982
|
+
element: (n = await (r.isElement == null ? void 0 : r.isElement(g))) == null || n ? g : g.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(c.floating)),
|
|
978
983
|
boundary: l,
|
|
979
984
|
rootBoundary: u,
|
|
980
|
-
strategy:
|
|
985
|
+
strategy: a
|
|
981
986
|
})), y = d === "floating" ? {
|
|
982
|
-
...s.floating,
|
|
983
987
|
x: o,
|
|
984
|
-
y: i
|
|
985
|
-
|
|
988
|
+
y: i,
|
|
989
|
+
width: s.floating.width,
|
|
990
|
+
height: s.floating.height
|
|
991
|
+
} : s.reference, x = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c.floating)), b = await (r.isElement == null ? void 0 : r.isElement(x)) ? await (r.getScale == null ? void 0 : r.getScale(x)) || {
|
|
986
992
|
x: 1,
|
|
987
993
|
y: 1
|
|
988
994
|
} : {
|
|
989
995
|
x: 1,
|
|
990
996
|
y: 1
|
|
991
|
-
},
|
|
997
|
+
}, $ = Fe(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
998
|
+
elements: c,
|
|
992
999
|
rect: y,
|
|
993
|
-
offsetParent:
|
|
994
|
-
strategy:
|
|
1000
|
+
offsetParent: x,
|
|
1001
|
+
strategy: a
|
|
995
1002
|
}) : y);
|
|
996
1003
|
return {
|
|
997
|
-
top: (v.top -
|
|
998
|
-
bottom: (
|
|
999
|
-
left: (v.left -
|
|
1000
|
-
right: (
|
|
1004
|
+
top: (v.top - $.top + h.top) / b.y,
|
|
1005
|
+
bottom: ($.bottom - v.bottom + h.bottom) / b.y,
|
|
1006
|
+
left: (v.left - $.left + h.left) / b.x,
|
|
1007
|
+
right: ($.right - v.right + h.right) / b.x
|
|
1001
1008
|
};
|
|
1002
1009
|
}
|
|
1003
|
-
const
|
|
1010
|
+
const Or = (e) => ({
|
|
1004
1011
|
name: "arrow",
|
|
1005
1012
|
options: e,
|
|
1006
1013
|
async fn(t) {
|
|
@@ -1010,90 +1017,106 @@ const gt = (e) => ({
|
|
|
1010
1017
|
placement: i,
|
|
1011
1018
|
rects: r,
|
|
1012
1019
|
platform: s,
|
|
1013
|
-
elements:
|
|
1020
|
+
elements: c,
|
|
1021
|
+
middlewareData: a
|
|
1014
1022
|
} = t, {
|
|
1015
|
-
element:
|
|
1016
|
-
padding:
|
|
1017
|
-
} =
|
|
1018
|
-
if (
|
|
1023
|
+
element: l,
|
|
1024
|
+
padding: u = 0
|
|
1025
|
+
} = J(e, t) || {};
|
|
1026
|
+
if (l == null)
|
|
1019
1027
|
return {};
|
|
1020
|
-
const
|
|
1028
|
+
const d = Ut(u), p = {
|
|
1021
1029
|
x: n,
|
|
1022
1030
|
y: o
|
|
1023
|
-
},
|
|
1024
|
-
let
|
|
1025
|
-
(!
|
|
1026
|
-
const
|
|
1031
|
+
}, f = ot(i), h = rt(f), m = await s.getDimensions(l), g = f === "y", v = g ? "top" : "left", y = g ? "bottom" : "right", x = g ? "clientHeight" : "clientWidth", b = r.reference[h] + r.reference[f] - p[f] - r.floating[h], $ = p[f] - r.reference[f], P = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
|
|
1032
|
+
let O = P ? P[x] : 0;
|
|
1033
|
+
(!O || !await (s.isElement == null ? void 0 : s.isElement(P))) && (O = c.floating[x] || r.floating[h]);
|
|
1034
|
+
const _ = b / 2 - $ / 2, E = O / 2 - m[h] / 2 - 1, T = q(d[v], E), D = q(d[y], E), M = T, X = O - m[h] - D, C = O / 2 - m[h] / 2 + _, F = Ze(M, C, X), H = !a.arrow && ge(i) != null && C !== F && r.reference[h] / 2 - (C < M ? T : D) - m[h] / 2 < 0, A = H ? C < M ? C - M : C - X : 0;
|
|
1027
1035
|
return {
|
|
1028
|
-
[
|
|
1036
|
+
[f]: p[f] + A,
|
|
1029
1037
|
data: {
|
|
1030
|
-
[
|
|
1031
|
-
centerOffset:
|
|
1032
|
-
|
|
1038
|
+
[f]: F,
|
|
1039
|
+
centerOffset: C - F - A,
|
|
1040
|
+
...H && {
|
|
1041
|
+
alignmentOffset: A
|
|
1042
|
+
}
|
|
1043
|
+
},
|
|
1044
|
+
reset: H
|
|
1033
1045
|
};
|
|
1034
1046
|
}
|
|
1035
|
-
}),
|
|
1047
|
+
}), Cr = function(e) {
|
|
1036
1048
|
return e === void 0 && (e = {}), {
|
|
1037
1049
|
name: "flip",
|
|
1038
1050
|
options: e,
|
|
1039
1051
|
async fn(t) {
|
|
1040
|
-
var n;
|
|
1052
|
+
var n, o;
|
|
1041
1053
|
const {
|
|
1042
|
-
placement:
|
|
1043
|
-
middlewareData:
|
|
1044
|
-
rects:
|
|
1045
|
-
initialPlacement:
|
|
1054
|
+
placement: i,
|
|
1055
|
+
middlewareData: r,
|
|
1056
|
+
rects: s,
|
|
1057
|
+
initialPlacement: c,
|
|
1046
1058
|
platform: a,
|
|
1047
|
-
elements:
|
|
1059
|
+
elements: l
|
|
1048
1060
|
} = t, {
|
|
1049
|
-
mainAxis:
|
|
1050
|
-
crossAxis:
|
|
1051
|
-
fallbackPlacements:
|
|
1052
|
-
fallbackStrategy:
|
|
1053
|
-
fallbackAxisSideDirection:
|
|
1054
|
-
flipAlignment:
|
|
1061
|
+
mainAxis: u = !0,
|
|
1062
|
+
crossAxis: d = !0,
|
|
1063
|
+
fallbackPlacements: p,
|
|
1064
|
+
fallbackStrategy: f = "bestFit",
|
|
1065
|
+
fallbackAxisSideDirection: h = "none",
|
|
1066
|
+
flipAlignment: m = !0,
|
|
1055
1067
|
...g
|
|
1056
|
-
} =
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1068
|
+
} = J(e, t);
|
|
1069
|
+
if ((n = r.arrow) != null && n.alignmentOffset)
|
|
1070
|
+
return {};
|
|
1071
|
+
const v = Q(i), y = ne(c), x = Q(c) === c, b = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), $ = p || (x || !m ? [Ie(c)] : $r(c)), P = h !== "none";
|
|
1072
|
+
!p && P && $.push(..._r(c, m, h, b));
|
|
1073
|
+
const O = [c, ...$], _ = await _e(t, g), E = [];
|
|
1074
|
+
let T = ((o = r.flip) == null ? void 0 : o.overflows) || [];
|
|
1075
|
+
if (u && E.push(_[v]), d) {
|
|
1076
|
+
const C = br(i, s, b);
|
|
1077
|
+
E.push(_[C[0]], _[C[1]]);
|
|
1063
1078
|
}
|
|
1064
|
-
if (
|
|
1065
|
-
placement:
|
|
1066
|
-
overflows:
|
|
1067
|
-
}], !
|
|
1068
|
-
var
|
|
1069
|
-
const
|
|
1070
|
-
if (
|
|
1079
|
+
if (T = [...T, {
|
|
1080
|
+
placement: i,
|
|
1081
|
+
overflows: E
|
|
1082
|
+
}], !E.every((C) => C <= 0)) {
|
|
1083
|
+
var D, M;
|
|
1084
|
+
const C = (((D = r.flip) == null ? void 0 : D.index) || 0) + 1, F = O[C];
|
|
1085
|
+
if (F)
|
|
1071
1086
|
return {
|
|
1072
1087
|
data: {
|
|
1073
|
-
index:
|
|
1074
|
-
overflows:
|
|
1088
|
+
index: C,
|
|
1089
|
+
overflows: T
|
|
1075
1090
|
},
|
|
1076
1091
|
reset: {
|
|
1077
|
-
placement:
|
|
1092
|
+
placement: F
|
|
1078
1093
|
}
|
|
1079
1094
|
};
|
|
1080
|
-
let
|
|
1081
|
-
if (!
|
|
1082
|
-
switch (
|
|
1095
|
+
let H = (M = T.filter((A) => A.overflows[0] <= 0).sort((A, B) => A.overflows[1] - B.overflows[1])[0]) == null ? void 0 : M.placement;
|
|
1096
|
+
if (!H)
|
|
1097
|
+
switch (f) {
|
|
1083
1098
|
case "bestFit": {
|
|
1084
|
-
var
|
|
1085
|
-
const
|
|
1086
|
-
|
|
1099
|
+
var X;
|
|
1100
|
+
const A = (X = T.filter((B) => {
|
|
1101
|
+
if (P) {
|
|
1102
|
+
const N = ne(B.placement);
|
|
1103
|
+
return N === y || // Create a bias to the `y` side axis due to horizontal
|
|
1104
|
+
// reading directions favoring greater width.
|
|
1105
|
+
N === "y";
|
|
1106
|
+
}
|
|
1107
|
+
return !0;
|
|
1108
|
+
}).map((B) => [B.placement, B.overflows.filter((N) => N > 0).reduce((N, Ue) => N + Ue, 0)]).sort((B, N) => B[1] - N[1])[0]) == null ? void 0 : X[0];
|
|
1109
|
+
A && (H = A);
|
|
1087
1110
|
break;
|
|
1088
1111
|
}
|
|
1089
1112
|
case "initialPlacement":
|
|
1090
|
-
|
|
1113
|
+
H = c;
|
|
1091
1114
|
break;
|
|
1092
1115
|
}
|
|
1093
|
-
if (
|
|
1116
|
+
if (i !== H)
|
|
1094
1117
|
return {
|
|
1095
1118
|
reset: {
|
|
1096
|
-
placement:
|
|
1119
|
+
placement: H
|
|
1097
1120
|
}
|
|
1098
1121
|
};
|
|
1099
1122
|
}
|
|
@@ -1101,7 +1124,7 @@ const gt = (e) => ({
|
|
|
1101
1124
|
}
|
|
1102
1125
|
};
|
|
1103
1126
|
};
|
|
1104
|
-
function
|
|
1127
|
+
function xt(e, t) {
|
|
1105
1128
|
return {
|
|
1106
1129
|
top: e.top - t.height,
|
|
1107
1130
|
right: e.right - t.width,
|
|
@@ -1109,10 +1132,10 @@ function mt(e, t) {
|
|
|
1109
1132
|
left: e.left - t.width
|
|
1110
1133
|
};
|
|
1111
1134
|
}
|
|
1112
|
-
function
|
|
1113
|
-
return
|
|
1135
|
+
function bt(e) {
|
|
1136
|
+
return vr.some((t) => e[t] >= 0);
|
|
1114
1137
|
}
|
|
1115
|
-
const
|
|
1138
|
+
const Er = function(e) {
|
|
1116
1139
|
return e === void 0 && (e = {}), {
|
|
1117
1140
|
name: "hide",
|
|
1118
1141
|
options: e,
|
|
@@ -1122,29 +1145,29 @@ const Pr = function(e) {
|
|
|
1122
1145
|
} = t, {
|
|
1123
1146
|
strategy: o = "referenceHidden",
|
|
1124
1147
|
...i
|
|
1125
|
-
} =
|
|
1148
|
+
} = J(e, t);
|
|
1126
1149
|
switch (o) {
|
|
1127
1150
|
case "referenceHidden": {
|
|
1128
|
-
const r = await
|
|
1151
|
+
const r = await _e(t, {
|
|
1129
1152
|
...i,
|
|
1130
1153
|
elementContext: "reference"
|
|
1131
|
-
}), s =
|
|
1154
|
+
}), s = xt(r, n.reference);
|
|
1132
1155
|
return {
|
|
1133
1156
|
data: {
|
|
1134
1157
|
referenceHiddenOffsets: s,
|
|
1135
|
-
referenceHidden:
|
|
1158
|
+
referenceHidden: bt(s)
|
|
1136
1159
|
}
|
|
1137
1160
|
};
|
|
1138
1161
|
}
|
|
1139
1162
|
case "escaped": {
|
|
1140
|
-
const r = await
|
|
1163
|
+
const r = await _e(t, {
|
|
1141
1164
|
...i,
|
|
1142
1165
|
altBoundary: !0
|
|
1143
|
-
}), s =
|
|
1166
|
+
}), s = xt(r, n.floating);
|
|
1144
1167
|
return {
|
|
1145
1168
|
data: {
|
|
1146
1169
|
escapedOffsets: s,
|
|
1147
|
-
escaped:
|
|
1170
|
+
escaped: bt(s)
|
|
1148
1171
|
}
|
|
1149
1172
|
};
|
|
1150
1173
|
}
|
|
@@ -1154,12 +1177,12 @@ const Pr = function(e) {
|
|
|
1154
1177
|
}
|
|
1155
1178
|
};
|
|
1156
1179
|
};
|
|
1157
|
-
async function
|
|
1180
|
+
async function Tr(e, t) {
|
|
1158
1181
|
const {
|
|
1159
1182
|
placement: n,
|
|
1160
1183
|
platform: o,
|
|
1161
1184
|
elements: i
|
|
1162
|
-
} = e, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s =
|
|
1185
|
+
} = e, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = Q(n), c = ge(n), a = ne(n) === "y", l = ["left", "top"].includes(s) ? -1 : 1, u = r && a ? -1 : 1, d = J(t, e);
|
|
1163
1186
|
let {
|
|
1164
1187
|
mainAxis: p,
|
|
1165
1188
|
crossAxis: f,
|
|
@@ -1174,7 +1197,7 @@ async function Or(e, t) {
|
|
|
1174
1197
|
alignmentAxis: null,
|
|
1175
1198
|
...d
|
|
1176
1199
|
};
|
|
1177
|
-
return
|
|
1200
|
+
return c && typeof h == "number" && (f = c === "end" ? h * -1 : h), a ? {
|
|
1178
1201
|
x: f * u,
|
|
1179
1202
|
y: p * l
|
|
1180
1203
|
} : {
|
|
@@ -1182,23 +1205,29 @@ async function Or(e, t) {
|
|
|
1182
1205
|
y: f * u
|
|
1183
1206
|
};
|
|
1184
1207
|
}
|
|
1185
|
-
const
|
|
1208
|
+
const Sr = function(e) {
|
|
1186
1209
|
return e === void 0 && (e = 0), {
|
|
1187
1210
|
name: "offset",
|
|
1188
1211
|
options: e,
|
|
1189
1212
|
async fn(t) {
|
|
1213
|
+
var n, o;
|
|
1190
1214
|
const {
|
|
1191
|
-
x:
|
|
1192
|
-
y:
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1215
|
+
x: i,
|
|
1216
|
+
y: r,
|
|
1217
|
+
placement: s,
|
|
1218
|
+
middlewareData: c
|
|
1219
|
+
} = t, a = await Tr(t, e);
|
|
1220
|
+
return s === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
|
|
1221
|
+
x: i + a.x,
|
|
1222
|
+
y: r + a.y,
|
|
1223
|
+
data: {
|
|
1224
|
+
...a,
|
|
1225
|
+
placement: s
|
|
1226
|
+
}
|
|
1198
1227
|
};
|
|
1199
1228
|
}
|
|
1200
1229
|
};
|
|
1201
|
-
},
|
|
1230
|
+
}, Rr = function(e) {
|
|
1202
1231
|
return e === void 0 && (e = {}), {
|
|
1203
1232
|
name: "shift",
|
|
1204
1233
|
options: e,
|
|
@@ -1210,47 +1239,47 @@ const Ar = function(e) {
|
|
|
1210
1239
|
} = t, {
|
|
1211
1240
|
mainAxis: r = !0,
|
|
1212
1241
|
crossAxis: s = !1,
|
|
1213
|
-
limiter:
|
|
1214
|
-
fn: (
|
|
1242
|
+
limiter: c = {
|
|
1243
|
+
fn: (g) => {
|
|
1215
1244
|
let {
|
|
1216
1245
|
x: v,
|
|
1217
1246
|
y
|
|
1218
|
-
} =
|
|
1247
|
+
} = g;
|
|
1219
1248
|
return {
|
|
1220
1249
|
x: v,
|
|
1221
1250
|
y
|
|
1222
1251
|
};
|
|
1223
1252
|
}
|
|
1224
1253
|
},
|
|
1225
|
-
...
|
|
1226
|
-
} =
|
|
1254
|
+
...a
|
|
1255
|
+
} = J(e, t), l = {
|
|
1227
1256
|
x: n,
|
|
1228
1257
|
y: o
|
|
1229
|
-
}, u = await
|
|
1258
|
+
}, u = await _e(t, a), d = ne(Q(i)), p = nt(d);
|
|
1230
1259
|
let f = l[p], h = l[d];
|
|
1231
1260
|
if (r) {
|
|
1232
|
-
const
|
|
1233
|
-
f =
|
|
1261
|
+
const g = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", y = f + u[g], x = f - u[v];
|
|
1262
|
+
f = Ze(y, f, x);
|
|
1234
1263
|
}
|
|
1235
1264
|
if (s) {
|
|
1236
|
-
const
|
|
1237
|
-
h =
|
|
1265
|
+
const g = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", y = h + u[g], x = h - u[v];
|
|
1266
|
+
h = Ze(y, h, x);
|
|
1238
1267
|
}
|
|
1239
|
-
const
|
|
1268
|
+
const m = c.fn({
|
|
1240
1269
|
...t,
|
|
1241
1270
|
[p]: f,
|
|
1242
1271
|
[d]: h
|
|
1243
1272
|
});
|
|
1244
1273
|
return {
|
|
1245
|
-
...
|
|
1274
|
+
...m,
|
|
1246
1275
|
data: {
|
|
1247
|
-
x:
|
|
1248
|
-
y:
|
|
1276
|
+
x: m.x - n,
|
|
1277
|
+
y: m.y - o
|
|
1249
1278
|
}
|
|
1250
1279
|
};
|
|
1251
1280
|
}
|
|
1252
1281
|
};
|
|
1253
|
-
},
|
|
1282
|
+
}, Dr = function(e) {
|
|
1254
1283
|
return e === void 0 && (e = {}), {
|
|
1255
1284
|
options: e,
|
|
1256
1285
|
fn(t) {
|
|
@@ -1261,30 +1290,30 @@ const Ar = function(e) {
|
|
|
1261
1290
|
rects: r,
|
|
1262
1291
|
middlewareData: s
|
|
1263
1292
|
} = t, {
|
|
1264
|
-
offset:
|
|
1265
|
-
mainAxis:
|
|
1293
|
+
offset: c = 0,
|
|
1294
|
+
mainAxis: a = !0,
|
|
1266
1295
|
crossAxis: l = !0
|
|
1267
|
-
} =
|
|
1296
|
+
} = J(e, t), u = {
|
|
1268
1297
|
x: n,
|
|
1269
1298
|
y: o
|
|
1270
|
-
}, d =
|
|
1299
|
+
}, d = ne(i), p = nt(d);
|
|
1271
1300
|
let f = u[p], h = u[d];
|
|
1272
|
-
const
|
|
1273
|
-
mainAxis:
|
|
1301
|
+
const m = J(c, t), g = typeof m == "number" ? {
|
|
1302
|
+
mainAxis: m,
|
|
1274
1303
|
crossAxis: 0
|
|
1275
1304
|
} : {
|
|
1276
1305
|
mainAxis: 0,
|
|
1277
1306
|
crossAxis: 0,
|
|
1278
|
-
...
|
|
1307
|
+
...m
|
|
1279
1308
|
};
|
|
1280
|
-
if (
|
|
1281
|
-
const
|
|
1282
|
-
f <
|
|
1309
|
+
if (a) {
|
|
1310
|
+
const x = p === "y" ? "height" : "width", b = r.reference[p] - r.floating[x] + g.mainAxis, $ = r.reference[p] + r.reference[x] - g.mainAxis;
|
|
1311
|
+
f < b ? f = b : f > $ && (f = $);
|
|
1283
1312
|
}
|
|
1284
1313
|
if (l) {
|
|
1285
1314
|
var v, y;
|
|
1286
|
-
const
|
|
1287
|
-
h <
|
|
1315
|
+
const x = p === "y" ? "width" : "height", b = ["top", "left"].includes(Q(i)), $ = r.reference[d] - r.floating[x] + (b && ((v = s.offset) == null ? void 0 : v[d]) || 0) + (b ? 0 : g.crossAxis), P = r.reference[d] + r.reference[x] + (b ? 0 : ((y = s.offset) == null ? void 0 : y[d]) || 0) - (b ? g.crossAxis : 0);
|
|
1316
|
+
h < $ ? h = $ : h > P && (h = P);
|
|
1288
1317
|
}
|
|
1289
1318
|
return {
|
|
1290
1319
|
[p]: f,
|
|
@@ -1292,7 +1321,7 @@ const Ar = function(e) {
|
|
|
1292
1321
|
};
|
|
1293
1322
|
}
|
|
1294
1323
|
};
|
|
1295
|
-
},
|
|
1324
|
+
}, Nr = function(e) {
|
|
1296
1325
|
return e === void 0 && (e = {}), {
|
|
1297
1326
|
name: "size",
|
|
1298
1327
|
options: e,
|
|
@@ -1305,33 +1334,26 @@ const Ar = function(e) {
|
|
|
1305
1334
|
} = t, {
|
|
1306
1335
|
apply: s = () => {
|
|
1307
1336
|
},
|
|
1308
|
-
...
|
|
1309
|
-
} =
|
|
1337
|
+
...c
|
|
1338
|
+
} = J(e, t), a = await _e(t, c), l = Q(n), u = ge(n), d = ne(n) === "y", {
|
|
1310
1339
|
width: p,
|
|
1311
1340
|
height: f
|
|
1312
1341
|
} = o.floating;
|
|
1313
|
-
let h,
|
|
1314
|
-
l === "top" || l === "bottom" ? (h = l,
|
|
1315
|
-
const
|
|
1316
|
-
let
|
|
1317
|
-
if (d) {
|
|
1318
|
-
const
|
|
1319
|
-
|
|
1320
|
-
} else {
|
|
1321
|
-
const w = f - c.top - c.bottom;
|
|
1322
|
-
b = u || y ? Q(m, w) : w;
|
|
1323
|
-
}
|
|
1324
|
-
if (y && !u) {
|
|
1325
|
-
const w = B(c.left, 0), A = B(c.right, 0), P = B(c.top, 0), T = B(c.bottom, 0);
|
|
1326
|
-
d ? $ = p - 2 * (w !== 0 || A !== 0 ? w + A : B(c.left, c.right)) : b = f - 2 * (P !== 0 || T !== 0 ? P + T : B(c.top, c.bottom));
|
|
1342
|
+
let h, m;
|
|
1343
|
+
l === "top" || l === "bottom" ? (h = l, m = u === (await (i.isRTL == null ? void 0 : i.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (m = l, h = u === "end" ? "top" : "bottom");
|
|
1344
|
+
const g = f - a.top - a.bottom, v = p - a.left - a.right, y = q(f - a[h], g), x = q(p - a[m], v), b = !t.middlewareData.shift;
|
|
1345
|
+
let $ = y, P = x;
|
|
1346
|
+
if (d ? P = u || b ? q(x, v) : v : $ = u || b ? q(y, g) : g, b && !u) {
|
|
1347
|
+
const _ = W(a.left, 0), E = W(a.right, 0), T = W(a.top, 0), D = W(a.bottom, 0);
|
|
1348
|
+
d ? P = p - 2 * (_ !== 0 || E !== 0 ? _ + E : W(a.left, a.right)) : $ = f - 2 * (T !== 0 || D !== 0 ? T + D : W(a.top, a.bottom));
|
|
1327
1349
|
}
|
|
1328
1350
|
await s({
|
|
1329
1351
|
...t,
|
|
1330
|
-
availableWidth:
|
|
1331
|
-
availableHeight:
|
|
1352
|
+
availableWidth: P,
|
|
1353
|
+
availableHeight: $
|
|
1332
1354
|
});
|
|
1333
|
-
const
|
|
1334
|
-
return p !==
|
|
1355
|
+
const O = await i.getDimensions(r.floating);
|
|
1356
|
+
return p !== O.width || f !== O.height ? {
|
|
1335
1357
|
reset: {
|
|
1336
1358
|
rects: !0
|
|
1337
1359
|
}
|
|
@@ -1339,454 +1361,471 @@ const Ar = function(e) {
|
|
|
1339
1361
|
}
|
|
1340
1362
|
};
|
|
1341
1363
|
};
|
|
1342
|
-
function
|
|
1343
|
-
return
|
|
1364
|
+
function me(e) {
|
|
1365
|
+
return Vt(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1344
1366
|
}
|
|
1345
|
-
function
|
|
1367
|
+
function V(e) {
|
|
1346
1368
|
var t;
|
|
1347
1369
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1348
1370
|
}
|
|
1349
|
-
function
|
|
1371
|
+
function ee(e) {
|
|
1350
1372
|
var t;
|
|
1351
|
-
return (t = (
|
|
1373
|
+
return (t = (Vt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1352
1374
|
}
|
|
1353
|
-
function
|
|
1354
|
-
return e instanceof Node || e instanceof
|
|
1375
|
+
function Vt(e) {
|
|
1376
|
+
return e instanceof Node || e instanceof V(e).Node;
|
|
1355
1377
|
}
|
|
1356
|
-
function
|
|
1357
|
-
return e instanceof Element || e instanceof
|
|
1378
|
+
function Y(e) {
|
|
1379
|
+
return e instanceof Element || e instanceof V(e).Element;
|
|
1358
1380
|
}
|
|
1359
|
-
function
|
|
1360
|
-
return e instanceof HTMLElement || e instanceof
|
|
1381
|
+
function K(e) {
|
|
1382
|
+
return e instanceof HTMLElement || e instanceof V(e).HTMLElement;
|
|
1361
1383
|
}
|
|
1362
|
-
function
|
|
1363
|
-
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
1384
|
+
function $t(e) {
|
|
1385
|
+
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof V(e).ShadowRoot;
|
|
1364
1386
|
}
|
|
1365
|
-
function
|
|
1387
|
+
function Oe(e) {
|
|
1366
1388
|
const {
|
|
1367
1389
|
overflow: t,
|
|
1368
1390
|
overflowX: n,
|
|
1369
1391
|
overflowY: o,
|
|
1370
1392
|
display: i
|
|
1371
|
-
} =
|
|
1393
|
+
} = G(e);
|
|
1372
1394
|
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(i);
|
|
1373
1395
|
}
|
|
1374
|
-
function
|
|
1375
|
-
return ["table", "td", "th"].includes(
|
|
1396
|
+
function Lr(e) {
|
|
1397
|
+
return ["table", "td", "th"].includes(me(e));
|
|
1398
|
+
}
|
|
1399
|
+
function Be(e) {
|
|
1400
|
+
return [":popover-open", ":modal"].some((t) => {
|
|
1401
|
+
try {
|
|
1402
|
+
return e.matches(t);
|
|
1403
|
+
} catch {
|
|
1404
|
+
return !1;
|
|
1405
|
+
}
|
|
1406
|
+
});
|
|
1376
1407
|
}
|
|
1377
|
-
function
|
|
1378
|
-
const t =
|
|
1408
|
+
function it(e) {
|
|
1409
|
+
const t = st(), n = Y(e) ? G(e) : e;
|
|
1379
1410
|
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
|
|
1380
1411
|
}
|
|
1381
|
-
function
|
|
1382
|
-
let t =
|
|
1383
|
-
for (;
|
|
1384
|
-
if (
|
|
1412
|
+
function Mr(e) {
|
|
1413
|
+
let t = re(e);
|
|
1414
|
+
for (; K(t) && !fe(t); ) {
|
|
1415
|
+
if (it(t))
|
|
1385
1416
|
return t;
|
|
1386
|
-
|
|
1417
|
+
if (Be(t))
|
|
1418
|
+
return null;
|
|
1419
|
+
t = re(t);
|
|
1387
1420
|
}
|
|
1388
1421
|
return null;
|
|
1389
1422
|
}
|
|
1390
|
-
function
|
|
1423
|
+
function st() {
|
|
1391
1424
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1392
1425
|
}
|
|
1393
|
-
function
|
|
1394
|
-
return ["html", "body", "#document"].includes(
|
|
1426
|
+
function fe(e) {
|
|
1427
|
+
return ["html", "body", "#document"].includes(me(e));
|
|
1395
1428
|
}
|
|
1396
|
-
function
|
|
1397
|
-
return
|
|
1429
|
+
function G(e) {
|
|
1430
|
+
return V(e).getComputedStyle(e);
|
|
1398
1431
|
}
|
|
1399
|
-
function
|
|
1400
|
-
return
|
|
1432
|
+
function ze(e) {
|
|
1433
|
+
return Y(e) ? {
|
|
1401
1434
|
scrollLeft: e.scrollLeft,
|
|
1402
1435
|
scrollTop: e.scrollTop
|
|
1403
1436
|
} : {
|
|
1404
|
-
scrollLeft: e.
|
|
1405
|
-
scrollTop: e.
|
|
1437
|
+
scrollLeft: e.scrollX,
|
|
1438
|
+
scrollTop: e.scrollY
|
|
1406
1439
|
};
|
|
1407
1440
|
}
|
|
1408
|
-
function
|
|
1409
|
-
if (
|
|
1441
|
+
function re(e) {
|
|
1442
|
+
if (me(e) === "html")
|
|
1410
1443
|
return e;
|
|
1411
1444
|
const t = (
|
|
1412
1445
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
1413
1446
|
e.assignedSlot || // DOM Element detected.
|
|
1414
1447
|
e.parentNode || // ShadowRoot detected.
|
|
1415
|
-
|
|
1416
|
-
|
|
1448
|
+
$t(e) && e.host || // Fallback.
|
|
1449
|
+
ee(e)
|
|
1417
1450
|
);
|
|
1418
|
-
return
|
|
1451
|
+
return $t(t) ? t.host : t;
|
|
1419
1452
|
}
|
|
1420
|
-
function
|
|
1421
|
-
const t =
|
|
1422
|
-
return
|
|
1453
|
+
function Xt(e) {
|
|
1454
|
+
const t = re(e);
|
|
1455
|
+
return fe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : K(t) && Oe(t) ? t : Xt(t);
|
|
1423
1456
|
}
|
|
1424
|
-
function
|
|
1425
|
-
var
|
|
1426
|
-
t === void 0 && (t = []);
|
|
1427
|
-
const
|
|
1428
|
-
|
|
1457
|
+
function Pe(e, t, n) {
|
|
1458
|
+
var o;
|
|
1459
|
+
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1460
|
+
const i = Xt(e), r = i === ((o = e.ownerDocument) == null ? void 0 : o.body), s = V(i);
|
|
1461
|
+
if (r) {
|
|
1462
|
+
const c = Qe(s);
|
|
1463
|
+
return t.concat(s, s.visualViewport || [], Oe(i) ? i : [], c && n ? Pe(c) : []);
|
|
1464
|
+
}
|
|
1465
|
+
return t.concat(i, Pe(i, [], n));
|
|
1466
|
+
}
|
|
1467
|
+
function Qe(e) {
|
|
1468
|
+
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1429
1469
|
}
|
|
1430
|
-
function
|
|
1431
|
-
const t =
|
|
1470
|
+
function Yt(e) {
|
|
1471
|
+
const t = G(e);
|
|
1432
1472
|
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
1433
|
-
const i =
|
|
1434
|
-
return
|
|
1473
|
+
const i = K(e), r = i ? e.offsetWidth : n, s = i ? e.offsetHeight : o, c = ke(n) !== r || ke(o) !== s;
|
|
1474
|
+
return c && (n = r, o = s), {
|
|
1435
1475
|
width: n,
|
|
1436
1476
|
height: o,
|
|
1437
|
-
$:
|
|
1477
|
+
$: c
|
|
1438
1478
|
};
|
|
1439
1479
|
}
|
|
1440
|
-
function
|
|
1441
|
-
return
|
|
1480
|
+
function ct(e) {
|
|
1481
|
+
return Y(e) ? e : e.contextElement;
|
|
1442
1482
|
}
|
|
1443
|
-
function
|
|
1444
|
-
const t =
|
|
1445
|
-
if (!
|
|
1446
|
-
return
|
|
1483
|
+
function ue(e) {
|
|
1484
|
+
const t = ct(e);
|
|
1485
|
+
if (!K(t))
|
|
1486
|
+
return te(1);
|
|
1447
1487
|
const n = t.getBoundingClientRect(), {
|
|
1448
1488
|
width: o,
|
|
1449
1489
|
height: i,
|
|
1450
1490
|
$: r
|
|
1451
|
-
} =
|
|
1452
|
-
let s = (r ?
|
|
1453
|
-
return (!s || !Number.isFinite(s)) && (s = 1), (!
|
|
1491
|
+
} = Yt(t);
|
|
1492
|
+
let s = (r ? ke(n.width) : n.width) / o, c = (r ? ke(n.height) : n.height) / i;
|
|
1493
|
+
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
1454
1494
|
x: s,
|
|
1455
|
-
y:
|
|
1495
|
+
y: c
|
|
1456
1496
|
};
|
|
1457
1497
|
}
|
|
1458
|
-
const
|
|
1459
|
-
function
|
|
1460
|
-
const t =
|
|
1461
|
-
return !
|
|
1498
|
+
const kr = /* @__PURE__ */ te(0);
|
|
1499
|
+
function Gt(e) {
|
|
1500
|
+
const t = V(e);
|
|
1501
|
+
return !st() || !t.visualViewport ? kr : {
|
|
1462
1502
|
x: t.visualViewport.offsetLeft,
|
|
1463
1503
|
y: t.visualViewport.offsetTop
|
|
1464
1504
|
};
|
|
1465
1505
|
}
|
|
1466
|
-
function
|
|
1467
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
1506
|
+
function Ir(e, t, n) {
|
|
1507
|
+
return t === void 0 && (t = !1), !n || t && n !== V(e) ? !1 : t;
|
|
1468
1508
|
}
|
|
1469
|
-
function
|
|
1509
|
+
function se(e, t, n, o) {
|
|
1470
1510
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1471
|
-
const i = e.getBoundingClientRect(), r =
|
|
1472
|
-
let s =
|
|
1473
|
-
t && (o ?
|
|
1474
|
-
const
|
|
1475
|
-
let
|
|
1511
|
+
const i = e.getBoundingClientRect(), r = ct(e);
|
|
1512
|
+
let s = te(1);
|
|
1513
|
+
t && (o ? Y(o) && (s = ue(o)) : s = ue(e));
|
|
1514
|
+
const c = Ir(r, n, o) ? Gt(r) : te(0);
|
|
1515
|
+
let a = (i.left + c.x) / s.x, l = (i.top + c.y) / s.y, u = i.width / s.x, d = i.height / s.y;
|
|
1476
1516
|
if (r) {
|
|
1477
|
-
const p =
|
|
1478
|
-
let h = p
|
|
1479
|
-
for (;
|
|
1480
|
-
const g =
|
|
1481
|
-
|
|
1517
|
+
const p = V(r), f = o && Y(o) ? V(o) : o;
|
|
1518
|
+
let h = p, m = Qe(h);
|
|
1519
|
+
for (; m && o && f !== h; ) {
|
|
1520
|
+
const g = ue(m), v = m.getBoundingClientRect(), y = G(m), x = v.left + (m.clientLeft + parseFloat(y.paddingLeft)) * g.x, b = v.top + (m.clientTop + parseFloat(y.paddingTop)) * g.y;
|
|
1521
|
+
a *= g.x, l *= g.y, u *= g.x, d *= g.y, a += x, l += b, h = V(m), m = Qe(h);
|
|
1482
1522
|
}
|
|
1483
1523
|
}
|
|
1484
|
-
return
|
|
1524
|
+
return Fe({
|
|
1485
1525
|
width: u,
|
|
1486
1526
|
height: d,
|
|
1487
|
-
x:
|
|
1527
|
+
x: a,
|
|
1488
1528
|
y: l
|
|
1489
1529
|
});
|
|
1490
1530
|
}
|
|
1491
|
-
function
|
|
1531
|
+
function Fr(e) {
|
|
1492
1532
|
let {
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1533
|
+
elements: t,
|
|
1534
|
+
rect: n,
|
|
1535
|
+
offsetParent: o,
|
|
1536
|
+
strategy: i
|
|
1496
1537
|
} = e;
|
|
1497
|
-
const i =
|
|
1498
|
-
if (
|
|
1499
|
-
return
|
|
1500
|
-
let
|
|
1538
|
+
const r = i === "fixed", s = ee(o), c = t ? Be(t.floating) : !1;
|
|
1539
|
+
if (o === s || c && r)
|
|
1540
|
+
return n;
|
|
1541
|
+
let a = {
|
|
1501
1542
|
scrollLeft: 0,
|
|
1502
1543
|
scrollTop: 0
|
|
1503
|
-
},
|
|
1504
|
-
const
|
|
1505
|
-
if ((
|
|
1506
|
-
const
|
|
1507
|
-
|
|
1544
|
+
}, l = te(1);
|
|
1545
|
+
const u = te(0), d = K(o);
|
|
1546
|
+
if ((d || !d && !r) && ((me(o) !== "body" || Oe(s)) && (a = ze(o)), K(o))) {
|
|
1547
|
+
const p = se(o);
|
|
1548
|
+
l = ue(o), u.x = p.x + o.clientLeft, u.y = p.y + o.clientTop;
|
|
1508
1549
|
}
|
|
1509
1550
|
return {
|
|
1510
|
-
width:
|
|
1511
|
-
height:
|
|
1512
|
-
x:
|
|
1513
|
-
y:
|
|
1551
|
+
width: n.width * l.x,
|
|
1552
|
+
height: n.height * l.y,
|
|
1553
|
+
x: n.x * l.x - a.scrollLeft * l.x + u.x,
|
|
1554
|
+
y: n.y * l.y - a.scrollTop * l.y + u.y
|
|
1514
1555
|
};
|
|
1515
1556
|
}
|
|
1516
|
-
function
|
|
1557
|
+
function Hr(e) {
|
|
1517
1558
|
return Array.from(e.getClientRects());
|
|
1518
1559
|
}
|
|
1519
|
-
function
|
|
1520
|
-
return
|
|
1560
|
+
function qt(e) {
|
|
1561
|
+
return se(ee(e)).left + ze(e).scrollLeft;
|
|
1521
1562
|
}
|
|
1522
|
-
function
|
|
1523
|
-
const t =
|
|
1524
|
-
let s = -n.scrollLeft +
|
|
1525
|
-
const
|
|
1526
|
-
return
|
|
1563
|
+
function Br(e) {
|
|
1564
|
+
const t = ee(e), n = ze(e), o = e.ownerDocument.body, i = W(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), r = W(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
1565
|
+
let s = -n.scrollLeft + qt(e);
|
|
1566
|
+
const c = -n.scrollTop;
|
|
1567
|
+
return G(o).direction === "rtl" && (s += W(t.clientWidth, o.clientWidth) - i), {
|
|
1527
1568
|
width: i,
|
|
1528
1569
|
height: r,
|
|
1529
1570
|
x: s,
|
|
1530
|
-
y:
|
|
1571
|
+
y: c
|
|
1531
1572
|
};
|
|
1532
1573
|
}
|
|
1533
|
-
function
|
|
1534
|
-
const n =
|
|
1535
|
-
let r = o.clientWidth, s = o.clientHeight,
|
|
1574
|
+
function zr(e, t) {
|
|
1575
|
+
const n = V(e), o = ee(e), i = n.visualViewport;
|
|
1576
|
+
let r = o.clientWidth, s = o.clientHeight, c = 0, a = 0;
|
|
1536
1577
|
if (i) {
|
|
1537
1578
|
r = i.width, s = i.height;
|
|
1538
|
-
const l =
|
|
1539
|
-
(!l || l && t === "fixed") && (
|
|
1579
|
+
const l = st();
|
|
1580
|
+
(!l || l && t === "fixed") && (c = i.offsetLeft, a = i.offsetTop);
|
|
1540
1581
|
}
|
|
1541
1582
|
return {
|
|
1542
1583
|
width: r,
|
|
1543
1584
|
height: s,
|
|
1544
|
-
x:
|
|
1545
|
-
y:
|
|
1585
|
+
x: c,
|
|
1586
|
+
y: a
|
|
1546
1587
|
};
|
|
1547
1588
|
}
|
|
1548
|
-
function
|
|
1549
|
-
const n =
|
|
1589
|
+
function jr(e, t) {
|
|
1590
|
+
const n = se(e, !0, t === "fixed"), o = n.top + e.clientTop, i = n.left + e.clientLeft, r = K(e) ? ue(e) : te(1), s = e.clientWidth * r.x, c = e.clientHeight * r.y, a = i * r.x, l = o * r.y;
|
|
1550
1591
|
return {
|
|
1551
1592
|
width: s,
|
|
1552
|
-
height:
|
|
1553
|
-
x:
|
|
1593
|
+
height: c,
|
|
1594
|
+
x: a,
|
|
1554
1595
|
y: l
|
|
1555
1596
|
};
|
|
1556
1597
|
}
|
|
1557
|
-
function
|
|
1598
|
+
function wt(e, t, n) {
|
|
1558
1599
|
let o;
|
|
1559
1600
|
if (t === "viewport")
|
|
1560
|
-
o =
|
|
1601
|
+
o = zr(e, n);
|
|
1561
1602
|
else if (t === "document")
|
|
1562
|
-
o =
|
|
1563
|
-
else if (
|
|
1564
|
-
o =
|
|
1603
|
+
o = Br(ee(e));
|
|
1604
|
+
else if (Y(t))
|
|
1605
|
+
o = jr(t, n);
|
|
1565
1606
|
else {
|
|
1566
|
-
const i =
|
|
1607
|
+
const i = Gt(e);
|
|
1567
1608
|
o = {
|
|
1568
1609
|
...t,
|
|
1569
1610
|
x: t.x - i.x,
|
|
1570
1611
|
y: t.y - i.y
|
|
1571
1612
|
};
|
|
1572
1613
|
}
|
|
1573
|
-
return
|
|
1614
|
+
return Fe(o);
|
|
1574
1615
|
}
|
|
1575
|
-
function
|
|
1576
|
-
const n =
|
|
1577
|
-
return n === t || !
|
|
1616
|
+
function Kt(e, t) {
|
|
1617
|
+
const n = re(e);
|
|
1618
|
+
return n === t || !Y(n) || fe(n) ? !1 : G(n).position === "fixed" || Kt(n, t);
|
|
1578
1619
|
}
|
|
1579
|
-
function
|
|
1620
|
+
function Wr(e, t) {
|
|
1580
1621
|
const n = t.get(e);
|
|
1581
1622
|
if (n)
|
|
1582
1623
|
return n;
|
|
1583
|
-
let o =
|
|
1584
|
-
const r =
|
|
1585
|
-
let s = r ?
|
|
1586
|
-
for (;
|
|
1587
|
-
const
|
|
1588
|
-
!
|
|
1624
|
+
let o = Pe(e, [], !1).filter((c) => Y(c) && me(c) !== "body"), i = null;
|
|
1625
|
+
const r = G(e).position === "fixed";
|
|
1626
|
+
let s = r ? re(e) : e;
|
|
1627
|
+
for (; Y(s) && !fe(s); ) {
|
|
1628
|
+
const c = G(s), a = it(s);
|
|
1629
|
+
!a && c.position === "fixed" && (i = null), (r ? !a && !i : !a && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Oe(s) && !a && Kt(e, s)) ? o = o.filter((u) => u !== s) : i = c, s = re(s);
|
|
1589
1630
|
}
|
|
1590
1631
|
return t.set(e, o), o;
|
|
1591
1632
|
}
|
|
1592
|
-
function
|
|
1633
|
+
function Ur(e) {
|
|
1593
1634
|
let {
|
|
1594
1635
|
element: t,
|
|
1595
1636
|
boundary: n,
|
|
1596
1637
|
rootBoundary: o,
|
|
1597
1638
|
strategy: i
|
|
1598
1639
|
} = e;
|
|
1599
|
-
const s = [...n === "clippingAncestors" ?
|
|
1600
|
-
const d =
|
|
1601
|
-
return l.top =
|
|
1602
|
-
},
|
|
1640
|
+
const s = [...n === "clippingAncestors" ? Be(t) ? [] : Wr(t, this._c) : [].concat(n), o], c = s[0], a = s.reduce((l, u) => {
|
|
1641
|
+
const d = wt(t, u, i);
|
|
1642
|
+
return l.top = W(d.top, l.top), l.right = q(d.right, l.right), l.bottom = q(d.bottom, l.bottom), l.left = W(d.left, l.left), l;
|
|
1643
|
+
}, wt(t, c, i));
|
|
1603
1644
|
return {
|
|
1604
|
-
width:
|
|
1605
|
-
height:
|
|
1606
|
-
x:
|
|
1607
|
-
y:
|
|
1645
|
+
width: a.right - a.left,
|
|
1646
|
+
height: a.bottom - a.top,
|
|
1647
|
+
x: a.left,
|
|
1648
|
+
y: a.top
|
|
1608
1649
|
};
|
|
1609
1650
|
}
|
|
1610
|
-
function
|
|
1611
|
-
|
|
1651
|
+
function Vr(e) {
|
|
1652
|
+
const {
|
|
1653
|
+
width: t,
|
|
1654
|
+
height: n
|
|
1655
|
+
} = Yt(e);
|
|
1656
|
+
return {
|
|
1657
|
+
width: t,
|
|
1658
|
+
height: n
|
|
1659
|
+
};
|
|
1612
1660
|
}
|
|
1613
|
-
function
|
|
1614
|
-
const o =
|
|
1615
|
-
let
|
|
1661
|
+
function Xr(e, t, n) {
|
|
1662
|
+
const o = K(t), i = ee(t), r = n === "fixed", s = se(e, !0, r, t);
|
|
1663
|
+
let c = {
|
|
1616
1664
|
scrollLeft: 0,
|
|
1617
1665
|
scrollTop: 0
|
|
1618
1666
|
};
|
|
1619
|
-
const
|
|
1667
|
+
const a = te(0);
|
|
1620
1668
|
if (o || !o && !r)
|
|
1621
|
-
if ((
|
|
1622
|
-
const
|
|
1623
|
-
|
|
1624
|
-
} else i && (
|
|
1669
|
+
if ((me(t) !== "body" || Oe(i)) && (c = ze(t)), o) {
|
|
1670
|
+
const d = se(t, !0, r, t);
|
|
1671
|
+
a.x = d.x + t.clientLeft, a.y = d.y + t.clientTop;
|
|
1672
|
+
} else i && (a.x = qt(i));
|
|
1673
|
+
const l = s.left + c.scrollLeft - a.x, u = s.top + c.scrollTop - a.y;
|
|
1625
1674
|
return {
|
|
1626
|
-
x:
|
|
1627
|
-
y:
|
|
1675
|
+
x: l,
|
|
1676
|
+
y: u,
|
|
1628
1677
|
width: s.width,
|
|
1629
1678
|
height: s.height
|
|
1630
1679
|
};
|
|
1631
1680
|
}
|
|
1632
|
-
function
|
|
1633
|
-
return
|
|
1681
|
+
function Ve(e) {
|
|
1682
|
+
return G(e).position === "static";
|
|
1683
|
+
}
|
|
1684
|
+
function _t(e, t) {
|
|
1685
|
+
return !K(e) || G(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
|
|
1634
1686
|
}
|
|
1635
|
-
function
|
|
1636
|
-
const n =
|
|
1637
|
-
if (
|
|
1687
|
+
function Zt(e, t) {
|
|
1688
|
+
const n = V(e);
|
|
1689
|
+
if (Be(e))
|
|
1638
1690
|
return n;
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1691
|
+
if (!K(e)) {
|
|
1692
|
+
let i = re(e);
|
|
1693
|
+
for (; i && !fe(i); ) {
|
|
1694
|
+
if (Y(i) && !Ve(i))
|
|
1695
|
+
return i;
|
|
1696
|
+
i = re(i);
|
|
1697
|
+
}
|
|
1698
|
+
return n;
|
|
1699
|
+
}
|
|
1700
|
+
let o = _t(e, t);
|
|
1701
|
+
for (; o && Lr(o) && Ve(o); )
|
|
1702
|
+
o = _t(o, t);
|
|
1703
|
+
return o && fe(o) && Ve(o) && !it(o) ? n : o || Mr(e) || n;
|
|
1643
1704
|
}
|
|
1644
|
-
const
|
|
1645
|
-
|
|
1646
|
-
reference: t,
|
|
1647
|
-
floating: n,
|
|
1648
|
-
strategy: o
|
|
1649
|
-
} = e;
|
|
1650
|
-
const i = this.getOffsetParent || Xt, r = this.getDimensions;
|
|
1705
|
+
const Yr = async function(e) {
|
|
1706
|
+
const t = this.getOffsetParent || Zt, n = this.getDimensions, o = await n(e.floating);
|
|
1651
1707
|
return {
|
|
1652
|
-
reference:
|
|
1708
|
+
reference: Xr(e.reference, await t(e.floating), e.strategy),
|
|
1653
1709
|
floating: {
|
|
1654
1710
|
x: 0,
|
|
1655
1711
|
y: 0,
|
|
1656
|
-
|
|
1712
|
+
width: o.width,
|
|
1713
|
+
height: o.height
|
|
1657
1714
|
}
|
|
1658
1715
|
};
|
|
1659
1716
|
};
|
|
1660
|
-
function
|
|
1661
|
-
return
|
|
1662
|
-
}
|
|
1663
|
-
const
|
|
1664
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1665
|
-
getDocumentElement:
|
|
1666
|
-
getClippingRect:
|
|
1667
|
-
getOffsetParent:
|
|
1668
|
-
getElementRects:
|
|
1669
|
-
getClientRects:
|
|
1670
|
-
getDimensions:
|
|
1671
|
-
getScale:
|
|
1672
|
-
isElement:
|
|
1673
|
-
isRTL:
|
|
1717
|
+
function Gr(e) {
|
|
1718
|
+
return G(e).direction === "rtl";
|
|
1719
|
+
}
|
|
1720
|
+
const qr = {
|
|
1721
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Fr,
|
|
1722
|
+
getDocumentElement: ee,
|
|
1723
|
+
getClippingRect: Ur,
|
|
1724
|
+
getOffsetParent: Zt,
|
|
1725
|
+
getElementRects: Yr,
|
|
1726
|
+
getClientRects: Hr,
|
|
1727
|
+
getDimensions: Vr,
|
|
1728
|
+
getScale: ue,
|
|
1729
|
+
isElement: Y,
|
|
1730
|
+
isRTL: Gr
|
|
1674
1731
|
};
|
|
1675
|
-
function
|
|
1732
|
+
function Kr(e, t) {
|
|
1676
1733
|
let n = null, o;
|
|
1677
|
-
const i =
|
|
1734
|
+
const i = ee(e);
|
|
1678
1735
|
function r() {
|
|
1679
|
-
|
|
1736
|
+
var c;
|
|
1737
|
+
clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
|
|
1680
1738
|
}
|
|
1681
|
-
function s(
|
|
1682
|
-
|
|
1739
|
+
function s(c, a) {
|
|
1740
|
+
c === void 0 && (c = !1), a === void 0 && (a = 1), r();
|
|
1683
1741
|
const {
|
|
1684
1742
|
left: l,
|
|
1685
1743
|
top: u,
|
|
1686
1744
|
width: d,
|
|
1687
1745
|
height: p
|
|
1688
1746
|
} = e.getBoundingClientRect();
|
|
1689
|
-
if (
|
|
1747
|
+
if (c || t(), !d || !p)
|
|
1690
1748
|
return;
|
|
1691
|
-
const f =
|
|
1692
|
-
rootMargin: -f + "px " + -h + "px " + -
|
|
1693
|
-
threshold:
|
|
1749
|
+
const f = De(u), h = De(i.clientWidth - (l + d)), m = De(i.clientHeight - (u + p)), g = De(l), y = {
|
|
1750
|
+
rootMargin: -f + "px " + -h + "px " + -m + "px " + -g + "px",
|
|
1751
|
+
threshold: W(0, q(1, a)) || 1
|
|
1694
1752
|
};
|
|
1695
|
-
let
|
|
1696
|
-
function $
|
|
1697
|
-
const
|
|
1698
|
-
if (
|
|
1699
|
-
if (!
|
|
1753
|
+
let x = !0;
|
|
1754
|
+
function b($) {
|
|
1755
|
+
const P = $[0].intersectionRatio;
|
|
1756
|
+
if (P !== a) {
|
|
1757
|
+
if (!x)
|
|
1700
1758
|
return s();
|
|
1701
|
-
|
|
1759
|
+
P ? s(!1, P) : o = setTimeout(() => {
|
|
1702
1760
|
s(!1, 1e-7);
|
|
1703
|
-
},
|
|
1761
|
+
}, 1e3);
|
|
1704
1762
|
}
|
|
1705
|
-
|
|
1763
|
+
x = !1;
|
|
1706
1764
|
}
|
|
1707
1765
|
try {
|
|
1708
|
-
n = new IntersectionObserver(
|
|
1766
|
+
n = new IntersectionObserver(b, {
|
|
1709
1767
|
...y,
|
|
1710
1768
|
// Handle <iframe>s
|
|
1711
1769
|
root: i.ownerDocument
|
|
1712
1770
|
});
|
|
1713
1771
|
} catch {
|
|
1714
|
-
n = new IntersectionObserver(
|
|
1772
|
+
n = new IntersectionObserver(b, y);
|
|
1715
1773
|
}
|
|
1716
1774
|
n.observe(e);
|
|
1717
1775
|
}
|
|
1718
1776
|
return s(!0), r;
|
|
1719
1777
|
}
|
|
1720
|
-
function
|
|
1778
|
+
function Zr(e, t, n, o) {
|
|
1721
1779
|
o === void 0 && (o = {});
|
|
1722
1780
|
const {
|
|
1723
1781
|
ancestorScroll: i = !0,
|
|
1724
1782
|
ancestorResize: r = !0,
|
|
1725
1783
|
elementResize: s = typeof ResizeObserver == "function",
|
|
1726
|
-
layoutShift:
|
|
1727
|
-
animationFrame:
|
|
1728
|
-
} = o, l =
|
|
1784
|
+
layoutShift: c = typeof IntersectionObserver == "function",
|
|
1785
|
+
animationFrame: a = !1
|
|
1786
|
+
} = o, l = ct(e), u = i || r ? [...l ? Pe(l) : [], ...Pe(t)] : [];
|
|
1729
1787
|
u.forEach((v) => {
|
|
1730
1788
|
i && v.addEventListener("scroll", n, {
|
|
1731
1789
|
passive: !0
|
|
1732
1790
|
}), r && v.addEventListener("resize", n);
|
|
1733
1791
|
});
|
|
1734
|
-
const d = l &&
|
|
1792
|
+
const d = l && c ? Kr(l, n) : null;
|
|
1735
1793
|
let p = -1, f = null;
|
|
1736
1794
|
s && (f = new ResizeObserver((v) => {
|
|
1737
1795
|
let [y] = v;
|
|
1738
1796
|
y && y.target === l && f && (f.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
1739
|
-
|
|
1797
|
+
var x;
|
|
1798
|
+
(x = f) == null || x.observe(t);
|
|
1740
1799
|
})), n();
|
|
1741
|
-
}), l && !
|
|
1742
|
-
let h,
|
|
1743
|
-
|
|
1744
|
-
function
|
|
1745
|
-
const v =
|
|
1746
|
-
|
|
1800
|
+
}), l && !a && f.observe(l), f.observe(t));
|
|
1801
|
+
let h, m = a ? se(e) : null;
|
|
1802
|
+
a && g();
|
|
1803
|
+
function g() {
|
|
1804
|
+
const v = se(e);
|
|
1805
|
+
m && (v.x !== m.x || v.y !== m.y || v.width !== m.width || v.height !== m.height) && n(), m = v, h = requestAnimationFrame(g);
|
|
1747
1806
|
}
|
|
1748
1807
|
return n(), () => {
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1808
|
+
var v;
|
|
1809
|
+
u.forEach((y) => {
|
|
1810
|
+
i && y.removeEventListener("scroll", n), r && y.removeEventListener("resize", n);
|
|
1811
|
+
}), d == null || d(), (v = f) == null || v.disconnect(), f = null, a && cancelAnimationFrame(h);
|
|
1752
1812
|
};
|
|
1753
1813
|
}
|
|
1754
|
-
const
|
|
1814
|
+
const Jr = Sr, Qr = Rr, eo = Cr, to = Nr, no = Er, Pt = Or, ro = Dr, oo = (e, t, n) => {
|
|
1755
1815
|
const o = /* @__PURE__ */ new Map(), i = {
|
|
1756
|
-
platform:
|
|
1816
|
+
platform: qr,
|
|
1757
1817
|
...n
|
|
1758
1818
|
}, r = {
|
|
1759
1819
|
...i.platform,
|
|
1760
1820
|
_c: o
|
|
1761
1821
|
};
|
|
1762
|
-
return
|
|
1822
|
+
return Ar(e, t, {
|
|
1763
1823
|
...i,
|
|
1764
1824
|
platform: r
|
|
1765
1825
|
});
|
|
1766
|
-
}, qr = (e) => {
|
|
1767
|
-
function t(n) {
|
|
1768
|
-
return {}.hasOwnProperty.call(n, "current");
|
|
1769
|
-
}
|
|
1770
|
-
return {
|
|
1771
|
-
name: "arrow",
|
|
1772
|
-
options: e,
|
|
1773
|
-
fn(n) {
|
|
1774
|
-
const {
|
|
1775
|
-
element: o,
|
|
1776
|
-
padding: i
|
|
1777
|
-
} = typeof e == "function" ? e(n) : e;
|
|
1778
|
-
return o && t(o) ? o.current != null ? gt({
|
|
1779
|
-
element: o.current,
|
|
1780
|
-
padding: i
|
|
1781
|
-
}).fn(n) : {} : o ? gt({
|
|
1782
|
-
element: o,
|
|
1783
|
-
padding: i
|
|
1784
|
-
}).fn(n) : {};
|
|
1785
|
-
}
|
|
1786
|
-
};
|
|
1787
1826
|
};
|
|
1788
|
-
var
|
|
1789
|
-
function
|
|
1827
|
+
var Le = typeof document < "u" ? Tt : S;
|
|
1828
|
+
function He(e, t) {
|
|
1790
1829
|
if (e === t)
|
|
1791
1830
|
return !0;
|
|
1792
1831
|
if (typeof e != typeof t)
|
|
@@ -1796,9 +1835,9 @@ function Ie(e, t) {
|
|
|
1796
1835
|
let n, o, i;
|
|
1797
1836
|
if (e && t && typeof e == "object") {
|
|
1798
1837
|
if (Array.isArray(e)) {
|
|
1799
|
-
if (n = e.length, n
|
|
1838
|
+
if (n = e.length, n !== t.length) return !1;
|
|
1800
1839
|
for (o = n; o-- !== 0; )
|
|
1801
|
-
if (!
|
|
1840
|
+
if (!He(e[o], t[o]))
|
|
1802
1841
|
return !1;
|
|
1803
1842
|
return !0;
|
|
1804
1843
|
}
|
|
@@ -1809,27 +1848,27 @@ function Ie(e, t) {
|
|
|
1809
1848
|
return !1;
|
|
1810
1849
|
for (o = n; o-- !== 0; ) {
|
|
1811
1850
|
const r = i[o];
|
|
1812
|
-
if (!(r === "_owner" && e.$$typeof) && !
|
|
1851
|
+
if (!(r === "_owner" && e.$$typeof) && !He(e[r], t[r]))
|
|
1813
1852
|
return !1;
|
|
1814
1853
|
}
|
|
1815
1854
|
return !0;
|
|
1816
1855
|
}
|
|
1817
1856
|
return e !== e && t !== t;
|
|
1818
1857
|
}
|
|
1819
|
-
function
|
|
1858
|
+
function Jt(e) {
|
|
1820
1859
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1821
1860
|
}
|
|
1822
|
-
function
|
|
1823
|
-
const n =
|
|
1861
|
+
function At(e, t) {
|
|
1862
|
+
const n = Jt(e);
|
|
1824
1863
|
return Math.round(t * n) / n;
|
|
1825
1864
|
}
|
|
1826
|
-
function
|
|
1827
|
-
const t =
|
|
1828
|
-
return
|
|
1865
|
+
function Ot(e) {
|
|
1866
|
+
const t = L.useRef(e);
|
|
1867
|
+
return Le(() => {
|
|
1829
1868
|
t.current = e;
|
|
1830
1869
|
}), t;
|
|
1831
1870
|
}
|
|
1832
|
-
function
|
|
1871
|
+
function io(e) {
|
|
1833
1872
|
e === void 0 && (e = {});
|
|
1834
1873
|
const {
|
|
1835
1874
|
placement: t = "bottom",
|
|
@@ -1840,108 +1879,150 @@ function Kr(e) {
|
|
|
1840
1879
|
reference: r,
|
|
1841
1880
|
floating: s
|
|
1842
1881
|
} = {},
|
|
1843
|
-
transform:
|
|
1844
|
-
whileElementsMounted:
|
|
1882
|
+
transform: c = !0,
|
|
1883
|
+
whileElementsMounted: a,
|
|
1845
1884
|
open: l
|
|
1846
|
-
} = e, [u, d] =
|
|
1885
|
+
} = e, [u, d] = L.useState({
|
|
1847
1886
|
x: 0,
|
|
1848
1887
|
y: 0,
|
|
1849
1888
|
strategy: n,
|
|
1850
1889
|
placement: t,
|
|
1851
1890
|
middlewareData: {},
|
|
1852
1891
|
isPositioned: !1
|
|
1853
|
-
}), [p, f] =
|
|
1854
|
-
|
|
1855
|
-
const [h,
|
|
1856
|
-
|
|
1857
|
-
}, [
|
|
1858
|
-
|
|
1859
|
-
}, [
|
|
1860
|
-
if (!
|
|
1892
|
+
}), [p, f] = L.useState(o);
|
|
1893
|
+
He(p, o) || f(o);
|
|
1894
|
+
const [h, m] = L.useState(null), [g, v] = L.useState(null), y = L.useCallback((A) => {
|
|
1895
|
+
A !== P.current && (P.current = A, m(A));
|
|
1896
|
+
}, []), x = L.useCallback((A) => {
|
|
1897
|
+
A !== O.current && (O.current = A, v(A));
|
|
1898
|
+
}, []), b = r || h, $ = s || g, P = L.useRef(null), O = L.useRef(null), _ = L.useRef(u), E = a != null, T = Ot(a), D = Ot(i), M = L.useCallback(() => {
|
|
1899
|
+
if (!P.current || !O.current)
|
|
1861
1900
|
return;
|
|
1862
|
-
const
|
|
1901
|
+
const A = {
|
|
1863
1902
|
placement: t,
|
|
1864
1903
|
strategy: n,
|
|
1865
1904
|
middleware: p
|
|
1866
1905
|
};
|
|
1867
|
-
|
|
1868
|
-
const
|
|
1869
|
-
...
|
|
1906
|
+
D.current && (A.platform = D.current), oo(P.current, O.current, A).then((B) => {
|
|
1907
|
+
const N = {
|
|
1908
|
+
...B,
|
|
1870
1909
|
isPositioned: !0
|
|
1871
1910
|
};
|
|
1872
|
-
|
|
1873
|
-
d(
|
|
1911
|
+
X.current && !He(_.current, N) && (_.current = N, _n.flushSync(() => {
|
|
1912
|
+
d(N);
|
|
1874
1913
|
}));
|
|
1875
1914
|
});
|
|
1876
|
-
}, [p, t, n,
|
|
1877
|
-
|
|
1878
|
-
l === !1 &&
|
|
1879
|
-
...
|
|
1915
|
+
}, [p, t, n, D]);
|
|
1916
|
+
Le(() => {
|
|
1917
|
+
l === !1 && _.current.isPositioned && (_.current.isPositioned = !1, d((A) => ({
|
|
1918
|
+
...A,
|
|
1880
1919
|
isPositioned: !1
|
|
1881
1920
|
})));
|
|
1882
1921
|
}, [l]);
|
|
1883
|
-
const
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
}), []),
|
|
1887
|
-
if (
|
|
1922
|
+
const X = L.useRef(!1);
|
|
1923
|
+
Le(() => (X.current = !0, () => {
|
|
1924
|
+
X.current = !1;
|
|
1925
|
+
}), []), Le(() => {
|
|
1926
|
+
if (b && (P.current = b), $ && (O.current = $), b && $) {
|
|
1888
1927
|
if (T.current)
|
|
1889
|
-
return T.current($,
|
|
1890
|
-
|
|
1928
|
+
return T.current(b, $, M);
|
|
1929
|
+
M();
|
|
1891
1930
|
}
|
|
1892
|
-
}, [$,
|
|
1893
|
-
const
|
|
1894
|
-
reference:
|
|
1895
|
-
floating:
|
|
1931
|
+
}, [b, $, M, T, E]);
|
|
1932
|
+
const C = L.useMemo(() => ({
|
|
1933
|
+
reference: P,
|
|
1934
|
+
floating: O,
|
|
1896
1935
|
setReference: y,
|
|
1897
|
-
setFloating:
|
|
1898
|
-
}), [y,
|
|
1899
|
-
reference:
|
|
1900
|
-
floating:
|
|
1901
|
-
}), [
|
|
1902
|
-
const
|
|
1936
|
+
setFloating: x
|
|
1937
|
+
}), [y, x]), F = L.useMemo(() => ({
|
|
1938
|
+
reference: b,
|
|
1939
|
+
floating: $
|
|
1940
|
+
}), [b, $]), H = L.useMemo(() => {
|
|
1941
|
+
const A = {
|
|
1903
1942
|
position: n,
|
|
1904
1943
|
left: 0,
|
|
1905
1944
|
top: 0
|
|
1906
1945
|
};
|
|
1907
|
-
if (!
|
|
1908
|
-
return
|
|
1909
|
-
const
|
|
1910
|
-
return
|
|
1911
|
-
...
|
|
1912
|
-
transform: "translate(" +
|
|
1913
|
-
...
|
|
1946
|
+
if (!F.floating)
|
|
1947
|
+
return A;
|
|
1948
|
+
const B = At(F.floating, u.x), N = At(F.floating, u.y);
|
|
1949
|
+
return c ? {
|
|
1950
|
+
...A,
|
|
1951
|
+
transform: "translate(" + B + "px, " + N + "px)",
|
|
1952
|
+
...Jt(F.floating) >= 1.5 && {
|
|
1914
1953
|
willChange: "transform"
|
|
1915
1954
|
}
|
|
1916
1955
|
} : {
|
|
1917
1956
|
position: n,
|
|
1918
|
-
left:
|
|
1919
|
-
top:
|
|
1957
|
+
left: B,
|
|
1958
|
+
top: N
|
|
1920
1959
|
};
|
|
1921
|
-
}, [n,
|
|
1922
|
-
return
|
|
1960
|
+
}, [n, c, F.floating, u.x, u.y]);
|
|
1961
|
+
return L.useMemo(() => ({
|
|
1923
1962
|
...u,
|
|
1924
|
-
update:
|
|
1925
|
-
refs:
|
|
1926
|
-
elements:
|
|
1927
|
-
floatingStyles:
|
|
1928
|
-
}), [u,
|
|
1963
|
+
update: M,
|
|
1964
|
+
refs: C,
|
|
1965
|
+
elements: F,
|
|
1966
|
+
floatingStyles: H
|
|
1967
|
+
}), [u, M, C, F, H]);
|
|
1929
1968
|
}
|
|
1930
|
-
const
|
|
1969
|
+
const so = (e) => {
|
|
1970
|
+
function t(n) {
|
|
1971
|
+
return {}.hasOwnProperty.call(n, "current");
|
|
1972
|
+
}
|
|
1973
|
+
return {
|
|
1974
|
+
name: "arrow",
|
|
1975
|
+
options: e,
|
|
1976
|
+
fn(n) {
|
|
1977
|
+
const {
|
|
1978
|
+
element: o,
|
|
1979
|
+
padding: i
|
|
1980
|
+
} = typeof e == "function" ? e(n) : e;
|
|
1981
|
+
return o && t(o) ? o.current != null ? Pt({
|
|
1982
|
+
element: o.current,
|
|
1983
|
+
padding: i
|
|
1984
|
+
}).fn(n) : {} : o ? Pt({
|
|
1985
|
+
element: o,
|
|
1986
|
+
padding: i
|
|
1987
|
+
}).fn(n) : {};
|
|
1988
|
+
}
|
|
1989
|
+
};
|
|
1990
|
+
}, co = (e, t) => ({
|
|
1991
|
+
...Jr(e),
|
|
1992
|
+
options: [e, t]
|
|
1993
|
+
}), ao = (e, t) => ({
|
|
1994
|
+
...Qr(e),
|
|
1995
|
+
options: [e, t]
|
|
1996
|
+
}), lo = (e, t) => ({
|
|
1997
|
+
...ro(e),
|
|
1998
|
+
options: [e, t]
|
|
1999
|
+
}), uo = (e, t) => ({
|
|
2000
|
+
...eo(e),
|
|
2001
|
+
options: [e, t]
|
|
2002
|
+
}), fo = (e, t) => ({
|
|
2003
|
+
...to(e),
|
|
2004
|
+
options: [e, t]
|
|
2005
|
+
}), po = (e, t) => ({
|
|
2006
|
+
...no(e),
|
|
2007
|
+
options: [e, t]
|
|
2008
|
+
}), ho = (e, t) => ({
|
|
2009
|
+
...so(e),
|
|
2010
|
+
options: [e, t]
|
|
2011
|
+
}), go = /* @__PURE__ */ I((e, t) => {
|
|
1931
2012
|
const { children: n, width: o = 10, height: i = 5, ...r } = e;
|
|
1932
|
-
return /* @__PURE__ */
|
|
2013
|
+
return /* @__PURE__ */ w(ce.svg, R({}, r, {
|
|
1933
2014
|
ref: t,
|
|
1934
2015
|
width: o,
|
|
1935
2016
|
height: i,
|
|
1936
2017
|
viewBox: "0 0 30 10",
|
|
1937
2018
|
preserveAspectRatio: "none"
|
|
1938
|
-
}), e.asChild ? n : /* @__PURE__ */
|
|
2019
|
+
}), e.asChild ? n : /* @__PURE__ */ w("polygon", {
|
|
1939
2020
|
points: "0,0 30,0 15,10"
|
|
1940
2021
|
}));
|
|
1941
|
-
}),
|
|
1942
|
-
function
|
|
1943
|
-
const [t, n] =
|
|
1944
|
-
return
|
|
2022
|
+
}), mo = go;
|
|
2023
|
+
function vo(e) {
|
|
2024
|
+
const [t, n] = U(void 0);
|
|
2025
|
+
return de(() => {
|
|
1945
2026
|
if (e) {
|
|
1946
2027
|
n({
|
|
1947
2028
|
width: e.offsetWidth,
|
|
@@ -1950,15 +2031,15 @@ function Qr(e) {
|
|
|
1950
2031
|
const o = new ResizeObserver((i) => {
|
|
1951
2032
|
if (!Array.isArray(i) || !i.length) return;
|
|
1952
2033
|
const r = i[0];
|
|
1953
|
-
let s,
|
|
2034
|
+
let s, c;
|
|
1954
2035
|
if ("borderBoxSize" in r) {
|
|
1955
|
-
const
|
|
1956
|
-
s = l.inlineSize,
|
|
2036
|
+
const a = r.borderBoxSize, l = Array.isArray(a) ? a[0] : a;
|
|
2037
|
+
s = l.inlineSize, c = l.blockSize;
|
|
1957
2038
|
} else
|
|
1958
|
-
s = e.offsetWidth,
|
|
2039
|
+
s = e.offsetWidth, c = e.offsetHeight;
|
|
1959
2040
|
n({
|
|
1960
2041
|
width: s,
|
|
1961
|
-
height:
|
|
2042
|
+
height: c
|
|
1962
2043
|
});
|
|
1963
2044
|
});
|
|
1964
2045
|
return o.observe(e, {
|
|
@@ -1970,142 +2051,142 @@ function Qr(e) {
|
|
|
1970
2051
|
e
|
|
1971
2052
|
]), t;
|
|
1972
2053
|
}
|
|
1973
|
-
const
|
|
1974
|
-
const { __scopePopper: t, children: n } = e, [o, i] =
|
|
1975
|
-
return /* @__PURE__ */
|
|
2054
|
+
const Qt = "Popper", [en, tn] = Bt(Qt), [yo, nn] = en(Qt), xo = (e) => {
|
|
2055
|
+
const { __scopePopper: t, children: n } = e, [o, i] = U(null);
|
|
2056
|
+
return /* @__PURE__ */ w(yo, {
|
|
1976
2057
|
scope: t,
|
|
1977
2058
|
anchor: o,
|
|
1978
2059
|
onAnchorChange: i
|
|
1979
2060
|
}, n);
|
|
1980
|
-
},
|
|
1981
|
-
const { __scopePopper: n, virtualRef: o, ...i } = e, r =
|
|
1982
|
-
return
|
|
2061
|
+
}, bo = "PopperAnchor", $o = /* @__PURE__ */ I((e, t) => {
|
|
2062
|
+
const { __scopePopper: n, virtualRef: o, ...i } = e, r = nn(bo, n), s = k(null), c = pe(t, s);
|
|
2063
|
+
return S(() => {
|
|
1983
2064
|
r.onAnchorChange((o == null ? void 0 : o.current) || s.current);
|
|
1984
|
-
}), o ? null : /* @__PURE__ */
|
|
1985
|
-
ref:
|
|
2065
|
+
}), o ? null : /* @__PURE__ */ w(ce.div, R({}, i, {
|
|
2066
|
+
ref: c
|
|
1986
2067
|
}));
|
|
1987
|
-
}),
|
|
1988
|
-
var n, o, i, r, s,
|
|
1989
|
-
const { __scopePopper: u, side: d = "bottom", sideOffset: p = 0, align: f = "center", alignOffset: h = 0, arrowPadding:
|
|
2068
|
+
}), rn = "PopperContent", [wo, _o] = en(rn), Po = /* @__PURE__ */ I((e, t) => {
|
|
2069
|
+
var n, o, i, r, s, c, a, l;
|
|
2070
|
+
const { __scopePopper: u, side: d = "bottom", sideOffset: p = 0, align: f = "center", alignOffset: h = 0, arrowPadding: m = 0, avoidCollisions: g = !0, collisionBoundary: v = [], collisionPadding: y = 0, sticky: x = "partial", hideWhenDetached: b = !1, updatePositionStrategy: $ = "optimized", onPlaced: P, ...O } = e, _ = nn(rn, u), [E, T] = U(null), D = pe(
|
|
1990
2071
|
t,
|
|
1991
|
-
(
|
|
1992
|
-
), [
|
|
2072
|
+
(ve) => T(ve)
|
|
2073
|
+
), [M, X] = U(null), C = vo(M), F = (n = C == null ? void 0 : C.width) !== null && n !== void 0 ? n : 0, H = (o = C == null ? void 0 : C.height) !== null && o !== void 0 ? o : 0, A = d + (f !== "center" ? "-" + f : ""), B = typeof y == "number" ? y : {
|
|
1993
2074
|
top: 0,
|
|
1994
2075
|
right: 0,
|
|
1995
2076
|
bottom: 0,
|
|
1996
2077
|
left: 0,
|
|
1997
2078
|
...y
|
|
1998
|
-
},
|
|
2079
|
+
}, N = Array.isArray(v) ? v : [
|
|
1999
2080
|
v
|
|
2000
|
-
],
|
|
2001
|
-
padding:
|
|
2002
|
-
boundary:
|
|
2081
|
+
], Ue = N.length > 0, Ee = {
|
|
2082
|
+
padding: B,
|
|
2083
|
+
boundary: N.filter(Eo),
|
|
2003
2084
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2004
|
-
altBoundary:
|
|
2005
|
-
}, { refs:
|
|
2085
|
+
altBoundary: Ue
|
|
2086
|
+
}, { refs: ln, floatingStyles: dt, placement: un, isPositioned: Te, middlewareData: ae } = io({
|
|
2006
2087
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2007
2088
|
strategy: "fixed",
|
|
2008
|
-
placement:
|
|
2009
|
-
whileElementsMounted: (...
|
|
2010
|
-
animationFrame:
|
|
2089
|
+
placement: A,
|
|
2090
|
+
whileElementsMounted: (...ve) => Zr(...ve, {
|
|
2091
|
+
animationFrame: $ === "always"
|
|
2011
2092
|
}),
|
|
2012
2093
|
elements: {
|
|
2013
|
-
reference:
|
|
2094
|
+
reference: _.anchor
|
|
2014
2095
|
},
|
|
2015
2096
|
middleware: [
|
|
2016
|
-
|
|
2017
|
-
mainAxis: p +
|
|
2097
|
+
co({
|
|
2098
|
+
mainAxis: p + H,
|
|
2018
2099
|
alignmentAxis: h
|
|
2019
2100
|
}),
|
|
2020
|
-
|
|
2101
|
+
g && ao({
|
|
2021
2102
|
mainAxis: !0,
|
|
2022
2103
|
crossAxis: !1,
|
|
2023
|
-
limiter:
|
|
2024
|
-
...
|
|
2104
|
+
limiter: x === "partial" ? lo() : void 0,
|
|
2105
|
+
...Ee
|
|
2025
2106
|
}),
|
|
2026
|
-
|
|
2027
|
-
...
|
|
2107
|
+
g && uo({
|
|
2108
|
+
...Ee
|
|
2028
2109
|
}),
|
|
2029
|
-
|
|
2030
|
-
...
|
|
2031
|
-
apply: ({ elements:
|
|
2032
|
-
const { width:
|
|
2033
|
-
|
|
2110
|
+
fo({
|
|
2111
|
+
...Ee,
|
|
2112
|
+
apply: ({ elements: ve, rects: pt, availableWidth: vn, availableHeight: yn }) => {
|
|
2113
|
+
const { width: xn, height: bn } = pt.reference, Re = ve.floating.style;
|
|
2114
|
+
Re.setProperty("--radix-popper-available-width", `${vn}px`), Re.setProperty("--radix-popper-available-height", `${yn}px`), Re.setProperty("--radix-popper-anchor-width", `${xn}px`), Re.setProperty("--radix-popper-anchor-height", `${bn}px`);
|
|
2034
2115
|
}
|
|
2035
2116
|
}),
|
|
2036
|
-
|
|
2037
|
-
element:
|
|
2038
|
-
padding:
|
|
2117
|
+
M && ho({
|
|
2118
|
+
element: M,
|
|
2119
|
+
padding: m
|
|
2039
2120
|
}),
|
|
2040
|
-
|
|
2041
|
-
arrowWidth:
|
|
2042
|
-
arrowHeight:
|
|
2121
|
+
To({
|
|
2122
|
+
arrowWidth: F,
|
|
2123
|
+
arrowHeight: H
|
|
2043
2124
|
}),
|
|
2044
|
-
|
|
2125
|
+
b && po({
|
|
2045
2126
|
strategy: "referenceHidden",
|
|
2046
|
-
...
|
|
2127
|
+
...Ee
|
|
2047
2128
|
})
|
|
2048
2129
|
]
|
|
2049
|
-
}), [
|
|
2050
|
-
|
|
2051
|
-
|
|
2130
|
+
}), [ft, dn] = on(un), Se = he(P);
|
|
2131
|
+
de(() => {
|
|
2132
|
+
Te && (Se == null || Se());
|
|
2052
2133
|
}, [
|
|
2053
|
-
|
|
2054
|
-
|
|
2134
|
+
Te,
|
|
2135
|
+
Se
|
|
2055
2136
|
]);
|
|
2056
|
-
const
|
|
2057
|
-
return
|
|
2058
|
-
|
|
2137
|
+
const fn = (i = ae.arrow) === null || i === void 0 ? void 0 : i.x, pn = (r = ae.arrow) === null || r === void 0 ? void 0 : r.y, hn = ((s = ae.arrow) === null || s === void 0 ? void 0 : s.centerOffset) !== 0, [gn, mn] = U();
|
|
2138
|
+
return de(() => {
|
|
2139
|
+
E && mn(window.getComputedStyle(E).zIndex);
|
|
2059
2140
|
}, [
|
|
2060
|
-
|
|
2061
|
-
]), /* @__PURE__ */
|
|
2062
|
-
ref:
|
|
2141
|
+
E
|
|
2142
|
+
]), /* @__PURE__ */ w("div", {
|
|
2143
|
+
ref: ln.setFloating,
|
|
2063
2144
|
"data-radix-popper-content-wrapper": "",
|
|
2064
2145
|
style: {
|
|
2065
|
-
...
|
|
2066
|
-
transform:
|
|
2146
|
+
...dt,
|
|
2147
|
+
transform: Te ? dt.transform : "translate(0, -200%)",
|
|
2067
2148
|
// keep off the page when measuring
|
|
2068
2149
|
minWidth: "max-content",
|
|
2069
|
-
zIndex:
|
|
2150
|
+
zIndex: gn,
|
|
2070
2151
|
"--radix-popper-transform-origin": [
|
|
2071
|
-
(
|
|
2072
|
-
(
|
|
2152
|
+
(c = ae.transformOrigin) === null || c === void 0 ? void 0 : c.x,
|
|
2153
|
+
(a = ae.transformOrigin) === null || a === void 0 ? void 0 : a.y
|
|
2073
2154
|
].join(" ")
|
|
2074
2155
|
},
|
|
2075
2156
|
dir: e.dir
|
|
2076
|
-
}, /* @__PURE__ */
|
|
2157
|
+
}, /* @__PURE__ */ w(wo, {
|
|
2077
2158
|
scope: u,
|
|
2078
|
-
placedSide:
|
|
2079
|
-
onArrowChange:
|
|
2080
|
-
arrowX:
|
|
2081
|
-
arrowY:
|
|
2082
|
-
shouldHideArrow:
|
|
2083
|
-
}, /* @__PURE__ */
|
|
2084
|
-
"data-side":
|
|
2085
|
-
"data-align":
|
|
2086
|
-
},
|
|
2087
|
-
ref:
|
|
2159
|
+
placedSide: ft,
|
|
2160
|
+
onArrowChange: X,
|
|
2161
|
+
arrowX: fn,
|
|
2162
|
+
arrowY: pn,
|
|
2163
|
+
shouldHideArrow: hn
|
|
2164
|
+
}, /* @__PURE__ */ w(ce.div, R({
|
|
2165
|
+
"data-side": ft,
|
|
2166
|
+
"data-align": dn
|
|
2167
|
+
}, O, {
|
|
2168
|
+
ref: D,
|
|
2088
2169
|
style: {
|
|
2089
|
-
...
|
|
2170
|
+
...O.style,
|
|
2090
2171
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
2091
2172
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
2092
|
-
animation:
|
|
2173
|
+
animation: Te ? void 0 : "none",
|
|
2093
2174
|
// hide the content if using the hide middleware and should be hidden
|
|
2094
|
-
opacity: (l =
|
|
2175
|
+
opacity: (l = ae.hide) !== null && l !== void 0 && l.referenceHidden ? 0 : void 0
|
|
2095
2176
|
}
|
|
2096
2177
|
}))));
|
|
2097
|
-
}),
|
|
2178
|
+
}), Ao = "PopperArrow", Oo = {
|
|
2098
2179
|
top: "bottom",
|
|
2099
2180
|
right: "left",
|
|
2100
2181
|
bottom: "top",
|
|
2101
2182
|
left: "right"
|
|
2102
|
-
},
|
|
2103
|
-
const { __scopePopper: o, ...i } = t, r =
|
|
2183
|
+
}, Co = /* @__PURE__ */ I(function(t, n) {
|
|
2184
|
+
const { __scopePopper: o, ...i } = t, r = _o(Ao, o), s = Oo[r.placedSide];
|
|
2104
2185
|
return (
|
|
2105
2186
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
2106
2187
|
// doesn't report size as we'd expect on SVG elements.
|
|
2107
2188
|
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
2108
|
-
/* @__PURE__ */
|
|
2189
|
+
/* @__PURE__ */ w("span", {
|
|
2109
2190
|
ref: r.onArrowChange,
|
|
2110
2191
|
style: {
|
|
2111
2192
|
position: "absolute",
|
|
@@ -2126,7 +2207,7 @@ const qt = "Popper", [Kt, Zt] = kt(qt), [eo, Jt] = Kt(qt), to = (e) => {
|
|
|
2126
2207
|
}[r.placedSide],
|
|
2127
2208
|
visibility: r.shouldHideArrow ? "hidden" : void 0
|
|
2128
2209
|
}
|
|
2129
|
-
}, /* @__PURE__ */
|
|
2210
|
+
}, /* @__PURE__ */ w(mo, R({}, i, {
|
|
2130
2211
|
ref: n,
|
|
2131
2212
|
style: {
|
|
2132
2213
|
...i.style,
|
|
@@ -2136,59 +2217,59 @@ const qt = "Popper", [Kt, Zt] = kt(qt), [eo, Jt] = Kt(qt), to = (e) => {
|
|
|
2136
2217
|
})))
|
|
2137
2218
|
);
|
|
2138
2219
|
});
|
|
2139
|
-
function
|
|
2220
|
+
function Eo(e) {
|
|
2140
2221
|
return e !== null;
|
|
2141
2222
|
}
|
|
2142
|
-
const
|
|
2223
|
+
const To = (e) => ({
|
|
2143
2224
|
name: "transformOrigin",
|
|
2144
2225
|
options: e,
|
|
2145
2226
|
fn(t) {
|
|
2146
2227
|
var n, o, i, r, s;
|
|
2147
|
-
const { placement:
|
|
2228
|
+
const { placement: c, rects: a, middlewareData: l } = t, d = ((n = l.arrow) === null || n === void 0 ? void 0 : n.centerOffset) !== 0, p = d ? 0 : e.arrowWidth, f = d ? 0 : e.arrowHeight, [h, m] = on(c), g = {
|
|
2148
2229
|
start: "0%",
|
|
2149
2230
|
center: "50%",
|
|
2150
2231
|
end: "100%"
|
|
2151
|
-
}[
|
|
2152
|
-
let
|
|
2153
|
-
return h === "bottom" ? (
|
|
2232
|
+
}[m], v = ((o = (i = l.arrow) === null || i === void 0 ? void 0 : i.x) !== null && o !== void 0 ? o : 0) + p / 2, y = ((r = (s = l.arrow) === null || s === void 0 ? void 0 : s.y) !== null && r !== void 0 ? r : 0) + f / 2;
|
|
2233
|
+
let x = "", b = "";
|
|
2234
|
+
return h === "bottom" ? (x = d ? g : `${v}px`, b = `${-f}px`) : h === "top" ? (x = d ? g : `${v}px`, b = `${a.floating.height + f}px`) : h === "right" ? (x = `${-f}px`, b = d ? g : `${y}px`) : h === "left" && (x = `${a.floating.width + f}px`, b = d ? g : `${y}px`), {
|
|
2154
2235
|
data: {
|
|
2155
|
-
x
|
|
2156
|
-
y:
|
|
2236
|
+
x,
|
|
2237
|
+
y: b
|
|
2157
2238
|
}
|
|
2158
2239
|
};
|
|
2159
2240
|
}
|
|
2160
2241
|
});
|
|
2161
|
-
function
|
|
2242
|
+
function on(e) {
|
|
2162
2243
|
const [t, n = "center"] = e.split("-");
|
|
2163
2244
|
return [
|
|
2164
2245
|
t,
|
|
2165
2246
|
n
|
|
2166
2247
|
];
|
|
2167
2248
|
}
|
|
2168
|
-
const
|
|
2249
|
+
const So = xo, Ro = $o, Do = Po, No = Co, Lo = /* @__PURE__ */ I((e, t) => {
|
|
2169
2250
|
var n;
|
|
2170
2251
|
const { container: o = globalThis == null || (n = globalThis.document) === null || n === void 0 ? void 0 : n.body, ...i } = e;
|
|
2171
|
-
return o ? /* @__PURE__ */
|
|
2252
|
+
return o ? /* @__PURE__ */ Pn.createPortal(/* @__PURE__ */ w(ce.div, R({}, i, {
|
|
2172
2253
|
ref: t
|
|
2173
2254
|
})), o) : null;
|
|
2174
2255
|
});
|
|
2175
|
-
function
|
|
2176
|
-
return
|
|
2256
|
+
function Mo(e, t) {
|
|
2257
|
+
return wn((n, o) => {
|
|
2177
2258
|
const i = t[n][o];
|
|
2178
2259
|
return i ?? n;
|
|
2179
2260
|
}, e);
|
|
2180
2261
|
}
|
|
2181
|
-
const
|
|
2182
|
-
const { present: t, children: n } = e, o =
|
|
2262
|
+
const at = (e) => {
|
|
2263
|
+
const { present: t, children: n } = e, o = ko(t), i = typeof n == "function" ? n({
|
|
2183
2264
|
present: o.isPresent
|
|
2184
|
-
}) :
|
|
2185
|
-
return typeof n == "function" || o.isPresent ? /* @__PURE__ */
|
|
2265
|
+
}) : ie.only(n), r = pe(o.ref, i.ref);
|
|
2266
|
+
return typeof n == "function" || o.isPresent ? /* @__PURE__ */ tt(i, {
|
|
2186
2267
|
ref: r
|
|
2187
2268
|
}) : null;
|
|
2188
2269
|
};
|
|
2189
|
-
|
|
2190
|
-
function
|
|
2191
|
-
const [t, n] =
|
|
2270
|
+
at.displayName = "Presence";
|
|
2271
|
+
function ko(e) {
|
|
2272
|
+
const [t, n] = U(), o = k({}), i = k(e), r = k("none"), s = e ? "mounted" : "unmounted", [c, a] = Mo(s, {
|
|
2192
2273
|
mounted: {
|
|
2193
2274
|
UNMOUNT: "unmounted",
|
|
2194
2275
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -2201,75 +2282,75 @@ function xo(e) {
|
|
|
2201
2282
|
MOUNT: "mounted"
|
|
2202
2283
|
}
|
|
2203
2284
|
});
|
|
2204
|
-
return
|
|
2205
|
-
const l =
|
|
2206
|
-
r.current =
|
|
2285
|
+
return S(() => {
|
|
2286
|
+
const l = Ne(o.current);
|
|
2287
|
+
r.current = c === "mounted" ? l : "none";
|
|
2207
2288
|
}, [
|
|
2208
|
-
|
|
2209
|
-
]),
|
|
2289
|
+
c
|
|
2290
|
+
]), de(() => {
|
|
2210
2291
|
const l = o.current, u = i.current;
|
|
2211
2292
|
if (u !== e) {
|
|
2212
|
-
const p = r.current, f =
|
|
2213
|
-
e ?
|
|
2293
|
+
const p = r.current, f = Ne(l);
|
|
2294
|
+
e ? a("MOUNT") : f === "none" || (l == null ? void 0 : l.display) === "none" ? a("UNMOUNT") : a(u && p !== f ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
|
|
2214
2295
|
}
|
|
2215
2296
|
}, [
|
|
2216
2297
|
e,
|
|
2217
|
-
|
|
2218
|
-
]),
|
|
2298
|
+
a
|
|
2299
|
+
]), de(() => {
|
|
2219
2300
|
if (t) {
|
|
2220
2301
|
const l = (d) => {
|
|
2221
|
-
const f =
|
|
2222
|
-
d.target === t && f &&
|
|
2223
|
-
() =>
|
|
2302
|
+
const f = Ne(o.current).includes(d.animationName);
|
|
2303
|
+
d.target === t && f && St(
|
|
2304
|
+
() => a("ANIMATION_END")
|
|
2224
2305
|
);
|
|
2225
2306
|
}, u = (d) => {
|
|
2226
|
-
d.target === t && (r.current =
|
|
2307
|
+
d.target === t && (r.current = Ne(o.current));
|
|
2227
2308
|
};
|
|
2228
2309
|
return t.addEventListener("animationstart", u), t.addEventListener("animationcancel", l), t.addEventListener("animationend", l), () => {
|
|
2229
2310
|
t.removeEventListener("animationstart", u), t.removeEventListener("animationcancel", l), t.removeEventListener("animationend", l);
|
|
2230
2311
|
};
|
|
2231
2312
|
} else
|
|
2232
|
-
|
|
2313
|
+
a("ANIMATION_END");
|
|
2233
2314
|
}, [
|
|
2234
2315
|
t,
|
|
2235
|
-
|
|
2316
|
+
a
|
|
2236
2317
|
]), {
|
|
2237
2318
|
isPresent: [
|
|
2238
2319
|
"mounted",
|
|
2239
2320
|
"unmountSuspended"
|
|
2240
|
-
].includes(
|
|
2241
|
-
ref:
|
|
2321
|
+
].includes(c),
|
|
2322
|
+
ref: j((l) => {
|
|
2242
2323
|
l && (o.current = getComputedStyle(l)), n(l);
|
|
2243
2324
|
}, [])
|
|
2244
2325
|
};
|
|
2245
2326
|
}
|
|
2246
|
-
function
|
|
2327
|
+
function Ne(e) {
|
|
2247
2328
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
2248
2329
|
}
|
|
2249
|
-
function
|
|
2330
|
+
function Io({ prop: e, defaultProp: t, onChange: n = () => {
|
|
2250
2331
|
} }) {
|
|
2251
|
-
const [o, i] =
|
|
2332
|
+
const [o, i] = Fo({
|
|
2252
2333
|
defaultProp: t,
|
|
2253
2334
|
onChange: n
|
|
2254
|
-
}), r = e !== void 0, s = r ? e : o,
|
|
2335
|
+
}), r = e !== void 0, s = r ? e : o, c = he(n), a = j((l) => {
|
|
2255
2336
|
if (r) {
|
|
2256
2337
|
const d = typeof l == "function" ? l(e) : l;
|
|
2257
|
-
d !== e &&
|
|
2338
|
+
d !== e && c(d);
|
|
2258
2339
|
} else i(l);
|
|
2259
2340
|
}, [
|
|
2260
2341
|
r,
|
|
2261
2342
|
e,
|
|
2262
2343
|
i,
|
|
2263
|
-
|
|
2344
|
+
c
|
|
2264
2345
|
]);
|
|
2265
2346
|
return [
|
|
2266
2347
|
s,
|
|
2267
|
-
|
|
2348
|
+
a
|
|
2268
2349
|
];
|
|
2269
2350
|
}
|
|
2270
|
-
function
|
|
2271
|
-
const n =
|
|
2272
|
-
return
|
|
2351
|
+
function Fo({ defaultProp: e, onChange: t }) {
|
|
2352
|
+
const n = U(e), [o] = n, i = k(o), r = he(t);
|
|
2353
|
+
return S(() => {
|
|
2273
2354
|
i.current !== o && (r(o), i.current = o);
|
|
2274
2355
|
}, [
|
|
2275
2356
|
o,
|
|
@@ -2277,7 +2358,7 @@ function $o({ defaultProp: e, onChange: t }) {
|
|
|
2277
2358
|
r
|
|
2278
2359
|
]), n;
|
|
2279
2360
|
}
|
|
2280
|
-
const
|
|
2361
|
+
const Ho = /* @__PURE__ */ I((e, t) => /* @__PURE__ */ w(ce.span, R({}, e, {
|
|
2281
2362
|
ref: t,
|
|
2282
2363
|
style: {
|
|
2283
2364
|
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
@@ -2293,204 +2374,204 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ie.span, S({}, e, {
|
|
|
2293
2374
|
wordWrap: "normal",
|
|
2294
2375
|
...e.style
|
|
2295
2376
|
}
|
|
2296
|
-
}))),
|
|
2297
|
-
|
|
2298
|
-
]),
|
|
2299
|
-
const { __scopeTooltip: t, delayDuration: n =
|
|
2300
|
-
return
|
|
2377
|
+
}))), Bo = Ho, [je, Ti] = Bt("Tooltip", [
|
|
2378
|
+
tn
|
|
2379
|
+
]), We = tn(), zo = "TooltipProvider", jo = 700, et = "tooltip.open", [Wo, lt] = je(zo), Uo = (e) => {
|
|
2380
|
+
const { __scopeTooltip: t, delayDuration: n = jo, skipDelayDuration: o = 300, disableHoverableContent: i = !1, children: r } = e, [s, c] = U(!0), a = k(!1), l = k(0);
|
|
2381
|
+
return S(() => {
|
|
2301
2382
|
const u = l.current;
|
|
2302
2383
|
return () => window.clearTimeout(u);
|
|
2303
|
-
}, []), /* @__PURE__ */
|
|
2384
|
+
}, []), /* @__PURE__ */ w(Wo, {
|
|
2304
2385
|
scope: t,
|
|
2305
2386
|
isOpenDelayed: s,
|
|
2306
2387
|
delayDuration: n,
|
|
2307
|
-
onOpen:
|
|
2308
|
-
window.clearTimeout(l.current),
|
|
2388
|
+
onOpen: j(() => {
|
|
2389
|
+
window.clearTimeout(l.current), c(!1);
|
|
2309
2390
|
}, []),
|
|
2310
|
-
onClose:
|
|
2391
|
+
onClose: j(() => {
|
|
2311
2392
|
window.clearTimeout(l.current), l.current = window.setTimeout(
|
|
2312
|
-
() =>
|
|
2393
|
+
() => c(!0),
|
|
2313
2394
|
o
|
|
2314
2395
|
);
|
|
2315
2396
|
}, [
|
|
2316
2397
|
o
|
|
2317
2398
|
]),
|
|
2318
|
-
isPointerInTransitRef:
|
|
2319
|
-
onPointerInTransitChange:
|
|
2320
|
-
|
|
2399
|
+
isPointerInTransitRef: a,
|
|
2400
|
+
onPointerInTransitChange: j((u) => {
|
|
2401
|
+
a.current = u;
|
|
2321
2402
|
}, []),
|
|
2322
2403
|
disableHoverableContent: i
|
|
2323
2404
|
}, r);
|
|
2324
|
-
},
|
|
2325
|
-
const { __scopeTooltip: t, children: n, open: o, defaultOpen: i = !1, onOpenChange: r, disableHoverableContent: s, delayDuration:
|
|
2405
|
+
}, ut = "Tooltip", [Vo, Ce] = je(ut), Xo = (e) => {
|
|
2406
|
+
const { __scopeTooltip: t, children: n, open: o, defaultOpen: i = !1, onOpenChange: r, disableHoverableContent: s, delayDuration: c } = e, a = lt(ut, e.__scopeTooltip), l = We(t), [u, d] = U(null), p = mr(), f = k(0), h = s ?? a.disableHoverableContent, m = c ?? a.delayDuration, g = k(!1), [v = !1, y] = Io({
|
|
2326
2407
|
prop: o,
|
|
2327
2408
|
defaultProp: i,
|
|
2328
|
-
onChange: (
|
|
2329
|
-
|
|
2409
|
+
onChange: (O) => {
|
|
2410
|
+
O ? (a.onOpen(), document.dispatchEvent(new CustomEvent(et))) : a.onClose(), r == null || r(O);
|
|
2330
2411
|
}
|
|
2331
|
-
}),
|
|
2412
|
+
}), x = we(() => v ? g.current ? "delayed-open" : "instant-open" : "closed", [
|
|
2332
2413
|
v
|
|
2333
|
-
]),
|
|
2334
|
-
window.clearTimeout(f.current),
|
|
2414
|
+
]), b = j(() => {
|
|
2415
|
+
window.clearTimeout(f.current), g.current = !1, y(!0);
|
|
2335
2416
|
}, [
|
|
2336
2417
|
y
|
|
2337
|
-
]),
|
|
2418
|
+
]), $ = j(() => {
|
|
2338
2419
|
window.clearTimeout(f.current), y(!1);
|
|
2339
2420
|
}, [
|
|
2340
2421
|
y
|
|
2341
|
-
]),
|
|
2422
|
+
]), P = j(() => {
|
|
2342
2423
|
window.clearTimeout(f.current), f.current = window.setTimeout(() => {
|
|
2343
|
-
|
|
2344
|
-
},
|
|
2424
|
+
g.current = !0, y(!0);
|
|
2425
|
+
}, m);
|
|
2345
2426
|
}, [
|
|
2346
|
-
|
|
2427
|
+
m,
|
|
2347
2428
|
y
|
|
2348
2429
|
]);
|
|
2349
|
-
return
|
|
2430
|
+
return S(() => () => window.clearTimeout(f.current), []), /* @__PURE__ */ w(So, l, /* @__PURE__ */ w(Vo, {
|
|
2350
2431
|
scope: t,
|
|
2351
2432
|
contentId: p,
|
|
2352
2433
|
open: v,
|
|
2353
|
-
stateAttribute:
|
|
2434
|
+
stateAttribute: x,
|
|
2354
2435
|
trigger: u,
|
|
2355
2436
|
onTriggerChange: d,
|
|
2356
|
-
onTriggerEnter:
|
|
2357
|
-
|
|
2437
|
+
onTriggerEnter: j(() => {
|
|
2438
|
+
a.isOpenDelayed ? P() : b();
|
|
2358
2439
|
}, [
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2440
|
+
a.isOpenDelayed,
|
|
2441
|
+
P,
|
|
2442
|
+
b
|
|
2362
2443
|
]),
|
|
2363
|
-
onTriggerLeave:
|
|
2364
|
-
h ?
|
|
2444
|
+
onTriggerLeave: j(() => {
|
|
2445
|
+
h ? $() : window.clearTimeout(f.current);
|
|
2365
2446
|
}, [
|
|
2366
|
-
|
|
2447
|
+
$,
|
|
2367
2448
|
h
|
|
2368
2449
|
]),
|
|
2369
|
-
onOpen:
|
|
2370
|
-
onClose:
|
|
2450
|
+
onOpen: b,
|
|
2451
|
+
onClose: $,
|
|
2371
2452
|
disableHoverableContent: h
|
|
2372
2453
|
}, n));
|
|
2373
|
-
},
|
|
2374
|
-
const { __scopeTooltip: n, ...o } = e, i =
|
|
2454
|
+
}, Ct = "TooltipTrigger", Yo = /* @__PURE__ */ I((e, t) => {
|
|
2455
|
+
const { __scopeTooltip: n, ...o } = e, i = Ce(Ct, n), r = lt(Ct, n), s = We(n), c = k(null), a = pe(t, c, i.onTriggerChange), l = k(!1), u = k(!1), d = j(
|
|
2375
2456
|
() => l.current = !1,
|
|
2376
2457
|
[]
|
|
2377
2458
|
);
|
|
2378
|
-
return
|
|
2459
|
+
return S(() => () => document.removeEventListener("pointerup", d), [
|
|
2379
2460
|
d
|
|
2380
|
-
]), /* @__PURE__ */
|
|
2461
|
+
]), /* @__PURE__ */ w(Ro, R({
|
|
2381
2462
|
asChild: !0
|
|
2382
|
-
}, s), /* @__PURE__ */
|
|
2463
|
+
}, s), /* @__PURE__ */ w(ce.button, R({
|
|
2383
2464
|
// We purposefully avoid adding `type=button` here because tooltip triggers are also
|
|
2384
2465
|
// commonly anchors and the anchor `type` attribute signifies MIME type.
|
|
2385
2466
|
"aria-describedby": i.open ? i.contentId : void 0,
|
|
2386
2467
|
"data-state": i.stateAttribute
|
|
2387
2468
|
}, o, {
|
|
2388
|
-
ref:
|
|
2389
|
-
onPointerMove:
|
|
2469
|
+
ref: a,
|
|
2470
|
+
onPointerMove: Z(e.onPointerMove, (p) => {
|
|
2390
2471
|
p.pointerType !== "touch" && !u.current && !r.isPointerInTransitRef.current && (i.onTriggerEnter(), u.current = !0);
|
|
2391
2472
|
}),
|
|
2392
|
-
onPointerLeave:
|
|
2473
|
+
onPointerLeave: Z(e.onPointerLeave, () => {
|
|
2393
2474
|
i.onTriggerLeave(), u.current = !1;
|
|
2394
2475
|
}),
|
|
2395
|
-
onPointerDown:
|
|
2476
|
+
onPointerDown: Z(e.onPointerDown, () => {
|
|
2396
2477
|
l.current = !0, document.addEventListener("pointerup", d, {
|
|
2397
2478
|
once: !0
|
|
2398
2479
|
});
|
|
2399
2480
|
}),
|
|
2400
|
-
onFocus:
|
|
2481
|
+
onFocus: Z(e.onFocus, () => {
|
|
2401
2482
|
l.current || i.onOpen();
|
|
2402
2483
|
}),
|
|
2403
|
-
onBlur:
|
|
2404
|
-
onClick:
|
|
2484
|
+
onBlur: Z(e.onBlur, i.onClose),
|
|
2485
|
+
onClick: Z(e.onClick, i.onClose)
|
|
2405
2486
|
})));
|
|
2406
|
-
}),
|
|
2487
|
+
}), sn = "TooltipPortal", [Go, qo] = je(sn, {
|
|
2407
2488
|
forceMount: void 0
|
|
2408
|
-
}),
|
|
2409
|
-
const { __scopeTooltip: t, forceMount: n, children: o, container: i } = e, r =
|
|
2410
|
-
return /* @__PURE__ */
|
|
2489
|
+
}), Ko = (e) => {
|
|
2490
|
+
const { __scopeTooltip: t, forceMount: n, children: o, container: i } = e, r = Ce(sn, t);
|
|
2491
|
+
return /* @__PURE__ */ w(Go, {
|
|
2411
2492
|
scope: t,
|
|
2412
2493
|
forceMount: n
|
|
2413
|
-
}, /* @__PURE__ */
|
|
2494
|
+
}, /* @__PURE__ */ w(at, {
|
|
2414
2495
|
present: n || r.open
|
|
2415
|
-
}, /* @__PURE__ */
|
|
2496
|
+
}, /* @__PURE__ */ w(Lo, {
|
|
2416
2497
|
asChild: !0,
|
|
2417
2498
|
container: i
|
|
2418
2499
|
}, o)));
|
|
2419
|
-
},
|
|
2420
|
-
const n =
|
|
2421
|
-
return /* @__PURE__ */
|
|
2500
|
+
}, Ae = "TooltipContent", Zo = /* @__PURE__ */ I((e, t) => {
|
|
2501
|
+
const n = qo(Ae, e.__scopeTooltip), { forceMount: o = n.forceMount, side: i = "top", ...r } = e, s = Ce(Ae, e.__scopeTooltip);
|
|
2502
|
+
return /* @__PURE__ */ w(at, {
|
|
2422
2503
|
present: o || s.open
|
|
2423
|
-
}, s.disableHoverableContent ? /* @__PURE__ */
|
|
2504
|
+
}, s.disableHoverableContent ? /* @__PURE__ */ w(cn, R({
|
|
2424
2505
|
side: i
|
|
2425
2506
|
}, r, {
|
|
2426
2507
|
ref: t
|
|
2427
|
-
})) : /* @__PURE__ */
|
|
2508
|
+
})) : /* @__PURE__ */ w(Jo, R({
|
|
2428
2509
|
side: i
|
|
2429
2510
|
}, r, {
|
|
2430
2511
|
ref: t
|
|
2431
2512
|
})));
|
|
2432
|
-
}),
|
|
2433
|
-
const n =
|
|
2434
|
-
|
|
2513
|
+
}), Jo = /* @__PURE__ */ I((e, t) => {
|
|
2514
|
+
const n = Ce(Ae, e.__scopeTooltip), o = lt(Ae, e.__scopeTooltip), i = k(null), r = pe(t, i), [s, c] = U(null), { trigger: a, onClose: l } = n, u = i.current, { onPointerInTransitChange: d } = o, p = j(() => {
|
|
2515
|
+
c(null), d(!1);
|
|
2435
2516
|
}, [
|
|
2436
2517
|
d
|
|
2437
|
-
]), f =
|
|
2438
|
-
const
|
|
2518
|
+
]), f = j((h, m) => {
|
|
2519
|
+
const g = h.currentTarget, v = {
|
|
2439
2520
|
x: h.clientX,
|
|
2440
2521
|
y: h.clientY
|
|
2441
|
-
}, y =
|
|
2442
|
-
...
|
|
2443
|
-
|
|
2522
|
+
}, y = ri(v, g.getBoundingClientRect()), x = oi(v, y), b = ii(m.getBoundingClientRect()), $ = ci([
|
|
2523
|
+
...x,
|
|
2524
|
+
...b
|
|
2444
2525
|
]);
|
|
2445
|
-
|
|
2526
|
+
c($), d(!0);
|
|
2446
2527
|
}, [
|
|
2447
2528
|
d
|
|
2448
2529
|
]);
|
|
2449
|
-
return
|
|
2530
|
+
return S(() => () => p(), [
|
|
2450
2531
|
p
|
|
2451
|
-
]),
|
|
2452
|
-
if (
|
|
2453
|
-
const h = (
|
|
2454
|
-
return
|
|
2455
|
-
|
|
2532
|
+
]), S(() => {
|
|
2533
|
+
if (a && u) {
|
|
2534
|
+
const h = (g) => f(g, u), m = (g) => f(g, a);
|
|
2535
|
+
return a.addEventListener("pointerleave", h), u.addEventListener("pointerleave", m), () => {
|
|
2536
|
+
a.removeEventListener("pointerleave", h), u.removeEventListener("pointerleave", m);
|
|
2456
2537
|
};
|
|
2457
2538
|
}
|
|
2458
2539
|
}, [
|
|
2459
|
-
|
|
2540
|
+
a,
|
|
2460
2541
|
u,
|
|
2461
2542
|
f,
|
|
2462
2543
|
p
|
|
2463
|
-
]),
|
|
2544
|
+
]), S(() => {
|
|
2464
2545
|
if (s) {
|
|
2465
|
-
const h = (
|
|
2466
|
-
const
|
|
2467
|
-
x:
|
|
2468
|
-
y:
|
|
2469
|
-
}, y = (
|
|
2470
|
-
y ? p() :
|
|
2546
|
+
const h = (m) => {
|
|
2547
|
+
const g = m.target, v = {
|
|
2548
|
+
x: m.clientX,
|
|
2549
|
+
y: m.clientY
|
|
2550
|
+
}, y = (a == null ? void 0 : a.contains(g)) || (u == null ? void 0 : u.contains(g)), x = !si(v, s);
|
|
2551
|
+
y ? p() : x && (p(), l());
|
|
2471
2552
|
};
|
|
2472
2553
|
return document.addEventListener("pointermove", h), () => document.removeEventListener("pointermove", h);
|
|
2473
2554
|
}
|
|
2474
2555
|
}, [
|
|
2475
|
-
|
|
2556
|
+
a,
|
|
2476
2557
|
u,
|
|
2477
2558
|
s,
|
|
2478
2559
|
l,
|
|
2479
2560
|
p
|
|
2480
|
-
]), /* @__PURE__ */
|
|
2561
|
+
]), /* @__PURE__ */ w(cn, R({}, e, {
|
|
2481
2562
|
ref: r
|
|
2482
2563
|
}));
|
|
2483
|
-
}), [
|
|
2564
|
+
}), [Qo, ei] = je(ut, {
|
|
2484
2565
|
isInside: !1
|
|
2485
|
-
}),
|
|
2486
|
-
const { __scopeTooltip: n, children: o, "aria-label": i, onEscapeKeyDown: r, onPointerDownOutside: s, ...
|
|
2487
|
-
return
|
|
2566
|
+
}), cn = /* @__PURE__ */ I((e, t) => {
|
|
2567
|
+
const { __scopeTooltip: n, children: o, "aria-label": i, onEscapeKeyDown: r, onPointerDownOutside: s, ...c } = e, a = Ce(Ae, n), l = We(n), { onClose: u } = a;
|
|
2568
|
+
return S(() => (document.addEventListener(et, u), () => document.removeEventListener(et, u)), [
|
|
2488
2569
|
u
|
|
2489
|
-
]),
|
|
2490
|
-
if (
|
|
2570
|
+
]), S(() => {
|
|
2571
|
+
if (a.trigger) {
|
|
2491
2572
|
const d = (p) => {
|
|
2492
2573
|
const f = p.target;
|
|
2493
|
-
f != null && f.contains(
|
|
2574
|
+
f != null && f.contains(a.trigger) && u();
|
|
2494
2575
|
};
|
|
2495
2576
|
return window.addEventListener("scroll", d, {
|
|
2496
2577
|
capture: !0
|
|
@@ -2499,41 +2580,41 @@ const wo = /* @__PURE__ */ M((e, t) => /* @__PURE__ */ _(ie.span, S({}, e, {
|
|
|
2499
2580
|
});
|
|
2500
2581
|
}
|
|
2501
2582
|
}, [
|
|
2502
|
-
|
|
2583
|
+
a.trigger,
|
|
2503
2584
|
u
|
|
2504
|
-
]), /* @__PURE__ */
|
|
2585
|
+
]), /* @__PURE__ */ w(dr, {
|
|
2505
2586
|
asChild: !0,
|
|
2506
2587
|
disableOutsidePointerEvents: !1,
|
|
2507
2588
|
onEscapeKeyDown: r,
|
|
2508
2589
|
onPointerDownOutside: s,
|
|
2509
2590
|
onFocusOutside: (d) => d.preventDefault(),
|
|
2510
2591
|
onDismiss: u
|
|
2511
|
-
}, /* @__PURE__ */
|
|
2512
|
-
"data-state":
|
|
2513
|
-
}, l,
|
|
2592
|
+
}, /* @__PURE__ */ w(Do, R({
|
|
2593
|
+
"data-state": a.stateAttribute
|
|
2594
|
+
}, l, c, {
|
|
2514
2595
|
ref: t,
|
|
2515
2596
|
style: {
|
|
2516
|
-
...
|
|
2597
|
+
...c.style,
|
|
2517
2598
|
"--radix-tooltip-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
2518
2599
|
"--radix-tooltip-content-available-width": "var(--radix-popper-available-width)",
|
|
2519
2600
|
"--radix-tooltip-content-available-height": "var(--radix-popper-available-height)",
|
|
2520
2601
|
"--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
|
|
2521
2602
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
2522
2603
|
}
|
|
2523
|
-
}), /* @__PURE__ */
|
|
2604
|
+
}), /* @__PURE__ */ w(jt, null, o), /* @__PURE__ */ w(Qo, {
|
|
2524
2605
|
scope: n,
|
|
2525
2606
|
isInside: !0
|
|
2526
|
-
}, /* @__PURE__ */
|
|
2527
|
-
id:
|
|
2607
|
+
}, /* @__PURE__ */ w(Bo, {
|
|
2608
|
+
id: a.contentId,
|
|
2528
2609
|
role: "tooltip"
|
|
2529
2610
|
}, i || o))));
|
|
2530
|
-
}),
|
|
2531
|
-
const { __scopeTooltip: n, ...o } = e, i =
|
|
2532
|
-
return
|
|
2611
|
+
}), ti = "TooltipArrow", ni = /* @__PURE__ */ I((e, t) => {
|
|
2612
|
+
const { __scopeTooltip: n, ...o } = e, i = We(n);
|
|
2613
|
+
return ei(ti, n).isInside ? null : /* @__PURE__ */ w(No, R({}, i, o, {
|
|
2533
2614
|
ref: t
|
|
2534
2615
|
}));
|
|
2535
2616
|
});
|
|
2536
|
-
function
|
|
2617
|
+
function ri(e, t) {
|
|
2537
2618
|
const n = Math.abs(t.top - e.y), o = Math.abs(t.bottom - e.y), i = Math.abs(t.right - e.x), r = Math.abs(t.left - e.x);
|
|
2538
2619
|
switch (Math.min(n, o, i, r)) {
|
|
2539
2620
|
case r:
|
|
@@ -2548,7 +2629,7 @@ function Bo(e, t) {
|
|
|
2548
2629
|
throw new Error("unreachable");
|
|
2549
2630
|
}
|
|
2550
2631
|
}
|
|
2551
|
-
function
|
|
2632
|
+
function oi(e, t, n = 5) {
|
|
2552
2633
|
const o = [];
|
|
2553
2634
|
switch (t) {
|
|
2554
2635
|
case "top":
|
|
@@ -2590,7 +2671,7 @@ function jo(e, t, n = 5) {
|
|
|
2590
2671
|
}
|
|
2591
2672
|
return o;
|
|
2592
2673
|
}
|
|
2593
|
-
function
|
|
2674
|
+
function ii(e) {
|
|
2594
2675
|
const { top: t, right: n, bottom: o, left: i } = e;
|
|
2595
2676
|
return [
|
|
2596
2677
|
{
|
|
@@ -2611,20 +2692,20 @@ function zo(e) {
|
|
|
2611
2692
|
}
|
|
2612
2693
|
];
|
|
2613
2694
|
}
|
|
2614
|
-
function
|
|
2695
|
+
function si(e, t) {
|
|
2615
2696
|
const { x: n, y: o } = e;
|
|
2616
2697
|
let i = !1;
|
|
2617
2698
|
for (let r = 0, s = t.length - 1; r < t.length; s = r++) {
|
|
2618
|
-
const
|
|
2619
|
-
|
|
2699
|
+
const c = t[r].x, a = t[r].y, l = t[s].x, u = t[s].y;
|
|
2700
|
+
a > o != u > o && n < (l - c) * (o - a) / (u - a) + c && (i = !i);
|
|
2620
2701
|
}
|
|
2621
2702
|
return i;
|
|
2622
2703
|
}
|
|
2623
|
-
function
|
|
2704
|
+
function ci(e) {
|
|
2624
2705
|
const t = e.slice();
|
|
2625
|
-
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),
|
|
2706
|
+
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), ai(t);
|
|
2626
2707
|
}
|
|
2627
|
-
function
|
|
2708
|
+
function ai(e) {
|
|
2628
2709
|
if (e.length <= 1) return e.slice();
|
|
2629
2710
|
const t = [];
|
|
2630
2711
|
for (let o = 0; o < e.length; o++) {
|
|
@@ -2649,11 +2730,11 @@ function Vo(e) {
|
|
|
2649
2730
|
}
|
|
2650
2731
|
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);
|
|
2651
2732
|
}
|
|
2652
|
-
const
|
|
2653
|
-
function
|
|
2733
|
+
const li = Uo, ui = Xo, di = Yo, fi = Ko, pi = Zo, hi = ni;
|
|
2734
|
+
function gi(e) {
|
|
2654
2735
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2655
2736
|
}
|
|
2656
|
-
var
|
|
2737
|
+
var an = { exports: {} };
|
|
2657
2738
|
/*!
|
|
2658
2739
|
Copyright (c) 2018 Jed Watson.
|
|
2659
2740
|
Licensed under the MIT License (MIT), see
|
|
@@ -2664,8 +2745,8 @@ var rn = { exports: {} };
|
|
|
2664
2745
|
var t = {}.hasOwnProperty;
|
|
2665
2746
|
function n() {
|
|
2666
2747
|
for (var r = "", s = 0; s < arguments.length; s++) {
|
|
2667
|
-
var
|
|
2668
|
-
|
|
2748
|
+
var c = arguments[s];
|
|
2749
|
+
c && (r = i(r, o.call(this, c)));
|
|
2669
2750
|
}
|
|
2670
2751
|
return r;
|
|
2671
2752
|
}
|
|
@@ -2679,8 +2760,8 @@ var rn = { exports: {} };
|
|
|
2679
2760
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
2680
2761
|
return r.toString();
|
|
2681
2762
|
var s = "";
|
|
2682
|
-
for (var
|
|
2683
|
-
t.call(r,
|
|
2763
|
+
for (var c in r)
|
|
2764
|
+
t.call(r, c) && r[c] && (s = i(s, this && this[c] || c));
|
|
2684
2765
|
return s;
|
|
2685
2766
|
}
|
|
2686
2767
|
function i(r, s) {
|
|
@@ -2688,29 +2769,29 @@ var rn = { exports: {} };
|
|
|
2688
2769
|
}
|
|
2689
2770
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
2690
2771
|
})();
|
|
2691
|
-
})(
|
|
2692
|
-
var
|
|
2693
|
-
const
|
|
2772
|
+
})(an);
|
|
2773
|
+
var mi = an.exports;
|
|
2774
|
+
const vi = /* @__PURE__ */ gi(mi), yi = "_slideDownAndFade_fkagk_1", xi = "_slideLeftAndFade_fkagk_1", bi = "_slideUpAndFade_fkagk_1", $i = "_slideRightAndFade_fkagk_1", wi = {
|
|
2694
2775
|
"purpur-tooltip": "_purpur-tooltip_fkagk_1",
|
|
2695
2776
|
"purpur-tooltip__content": "_purpur-tooltip__content_fkagk_4",
|
|
2696
2777
|
"purpur-tooltip__content--primary": "_purpur-tooltip__content--primary_fkagk_14",
|
|
2697
2778
|
"purpur-tooltip__content--primary-negative": "_purpur-tooltip__content--primary-negative_fkagk_17",
|
|
2698
|
-
slideDownAndFade:
|
|
2699
|
-
slideLeftAndFade:
|
|
2700
|
-
slideUpAndFade:
|
|
2701
|
-
slideRightAndFade:
|
|
2779
|
+
slideDownAndFade: yi,
|
|
2780
|
+
slideLeftAndFade: xi,
|
|
2781
|
+
slideUpAndFade: bi,
|
|
2782
|
+
slideRightAndFade: $i,
|
|
2702
2783
|
"purpur-tooltip__arrow--primary": "_purpur-tooltip__arrow--primary_fkagk_32",
|
|
2703
2784
|
"purpur-tooltip__arrow--primary-negative": "_purpur-tooltip__arrow--primary-negative_fkagk_35"
|
|
2704
|
-
},
|
|
2785
|
+
}, Xe = vi.bind(wi), _i = {
|
|
2705
2786
|
TOP: "top",
|
|
2706
2787
|
BOTTOM: "bottom",
|
|
2707
2788
|
LEFT: "left",
|
|
2708
2789
|
RIGHT: "right"
|
|
2709
|
-
},
|
|
2790
|
+
}, Pi = {
|
|
2710
2791
|
START: "start",
|
|
2711
2792
|
CENTER: "center",
|
|
2712
2793
|
END: "end"
|
|
2713
|
-
},
|
|
2794
|
+
}, le = "purpur-tooltip", Ai = I(
|
|
2714
2795
|
({
|
|
2715
2796
|
["data-testid"]: e,
|
|
2716
2797
|
buttonSize: t = "md",
|
|
@@ -2718,68 +2799,68 @@ const ei = /* @__PURE__ */ Jo(Qo), ti = "_slideDownAndFade_fkagk_1", ni = "_slid
|
|
|
2718
2799
|
className: o,
|
|
2719
2800
|
contentClassName: i,
|
|
2720
2801
|
negative: r = !1,
|
|
2721
|
-
position: s =
|
|
2722
|
-
align:
|
|
2723
|
-
triggerAriaLabel:
|
|
2802
|
+
position: s = _i.TOP,
|
|
2803
|
+
align: c = Pi.CENTER,
|
|
2804
|
+
triggerAriaLabel: a = "",
|
|
2724
2805
|
triggerElement: l,
|
|
2725
2806
|
...u
|
|
2726
2807
|
}, d) => {
|
|
2727
|
-
const [p, f] =
|
|
2808
|
+
const [p, f] = U(!1), h = Xe([
|
|
2728
2809
|
o,
|
|
2729
|
-
|
|
2730
|
-
`${
|
|
2731
|
-
]),
|
|
2732
|
-
|
|
2810
|
+
le,
|
|
2811
|
+
`${le}--primary${r ? "-negative" : ""}`
|
|
2812
|
+
]), m = /* @__PURE__ */ z(
|
|
2813
|
+
Nt,
|
|
2733
2814
|
{
|
|
2734
2815
|
ref: d,
|
|
2735
|
-
"aria-label":
|
|
2736
|
-
variant:
|
|
2816
|
+
"aria-label": a,
|
|
2817
|
+
variant: In.TERTIARY_PURPLE,
|
|
2737
2818
|
negative: r,
|
|
2738
2819
|
iconOnly: !0,
|
|
2739
2820
|
"data-testid": `${e}-trigger-button`,
|
|
2740
2821
|
size: t,
|
|
2741
|
-
children: /* @__PURE__ */
|
|
2822
|
+
children: /* @__PURE__ */ z(Mt, { size: "md" })
|
|
2742
2823
|
}
|
|
2743
2824
|
);
|
|
2744
|
-
return /* @__PURE__ */
|
|
2745
|
-
/* @__PURE__ */
|
|
2746
|
-
|
|
2825
|
+
return /* @__PURE__ */ z("div", { "data-testid": e, className: h, children: /* @__PURE__ */ z(li, { delayDuration: parseInt(er), children: /* @__PURE__ */ Ye(ui, { open: p, onOpenChange: f, ...u, children: [
|
|
2826
|
+
/* @__PURE__ */ z(
|
|
2827
|
+
di,
|
|
2747
2828
|
{
|
|
2748
2829
|
asChild: !0,
|
|
2749
|
-
onClick: (
|
|
2750
|
-
|
|
2830
|
+
onClick: (g) => {
|
|
2831
|
+
g.preventDefault(), f(!0);
|
|
2751
2832
|
},
|
|
2752
|
-
children:
|
|
2833
|
+
children: ie.count(l) === 0 ? m : l
|
|
2753
2834
|
}
|
|
2754
2835
|
),
|
|
2755
|
-
/* @__PURE__ */
|
|
2756
|
-
|
|
2836
|
+
/* @__PURE__ */ z(fi, { children: /* @__PURE__ */ Ye(
|
|
2837
|
+
pi,
|
|
2757
2838
|
{
|
|
2758
2839
|
side: s,
|
|
2759
|
-
align:
|
|
2760
|
-
className:
|
|
2840
|
+
align: c,
|
|
2841
|
+
className: Xe([
|
|
2761
2842
|
i,
|
|
2762
|
-
`${
|
|
2763
|
-
`${
|
|
2843
|
+
`${le}__content`,
|
|
2844
|
+
`${le}__content--primary${r ? "-negative" : ""}`
|
|
2764
2845
|
]),
|
|
2765
2846
|
sideOffset: -5,
|
|
2766
2847
|
"data-testid": `${e}-content`,
|
|
2767
2848
|
children: [
|
|
2768
|
-
typeof n == "string" ? /* @__PURE__ */
|
|
2769
|
-
|
|
2849
|
+
typeof n == "string" ? /* @__PURE__ */ z(
|
|
2850
|
+
Ft,
|
|
2770
2851
|
{
|
|
2771
|
-
variant:
|
|
2852
|
+
variant: It.PARAGRAPH100,
|
|
2772
2853
|
negative: !r,
|
|
2773
2854
|
"data-testid": `${e}-paragraph`,
|
|
2774
2855
|
children: n
|
|
2775
2856
|
}
|
|
2776
2857
|
) : n,
|
|
2777
|
-
/* @__PURE__ */
|
|
2778
|
-
|
|
2858
|
+
/* @__PURE__ */ z(
|
|
2859
|
+
hi,
|
|
2779
2860
|
{
|
|
2780
|
-
className:
|
|
2781
|
-
`${
|
|
2782
|
-
`${
|
|
2861
|
+
className: Xe([
|
|
2862
|
+
`${le}__arrow`,
|
|
2863
|
+
`${le}__arrow--primary${r ? "-negative" : ""}`
|
|
2783
2864
|
])
|
|
2784
2865
|
}
|
|
2785
2866
|
)
|
|
@@ -2789,10 +2870,10 @@ const ei = /* @__PURE__ */ Jo(Qo), ti = "_slideDownAndFade_fkagk_1", ni = "_slid
|
|
|
2789
2870
|
] }) }) });
|
|
2790
2871
|
}
|
|
2791
2872
|
);
|
|
2792
|
-
|
|
2873
|
+
Ai.displayName = "Tooltip";
|
|
2793
2874
|
export {
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2875
|
+
Pi as TOOLTIP_ALIGN,
|
|
2876
|
+
_i as TOOLTIP_POSITION,
|
|
2877
|
+
Ai as Tooltip
|
|
2797
2878
|
};
|
|
2798
2879
|
//# sourceMappingURL=tooltip.es.js.map
|