energy-components 2.0.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion.es.js +8 -8
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/collapsable.es.js +1 -1
- package/dist/components/{collapsable.scss_vue_type_style_index_0_src_true_lang-B9_PYixd.js → collapsable.scss_vue_type_style_index_0_src_true_lang-BfTKaP_f.js} +1 -1
- package/dist/components/datepicker.es.js +323 -309
- package/dist/components/directAccess.es.js +30 -28
- package/dist/components/dragAndDrop.es.js +1 -1
- package/dist/components/dropdown.es.js +173 -159
- package/dist/components/fileUploadItem.es.js +1 -1
- package/dist/components/filterChip.es.js +1 -1
- package/dist/components/filterTag.es.js +1 -1
- package/dist/components/floating-ui.vue-DMBZhA6d.js +1153 -0
- package/dist/components/{icon-svg-Cx3PvOnQ.js → icon-svg-CW3eQRcp.js} +33 -3
- package/dist/components/iconList.es.js +1 -1
- package/dist/components/iconSvg.es.js +1 -1
- package/dist/components/index.es.js +2 -2
- package/dist/components/indicator.es.js +51 -51
- package/dist/components/infoBox.es.js +1 -1
- package/dist/components/link.es.js +8 -8
- package/dist/components/loader.es.js +3 -3
- package/dist/components/modal.es.js +1 -1
- package/dist/components/persistentToast.es.js +1 -1
- package/dist/components/popover.es.js +2 -2
- package/dist/components/popoverMenu.es.js +2 -2
- package/dist/components/progressBar.es.js +1 -1
- package/dist/components/quantitySelector.es.js +1 -1
- package/dist/components/radioButton.es.js +1 -1
- package/dist/components/selectionChip.es.js +1 -1
- package/dist/components/sidedrawer.es.js +1 -1
- package/dist/components/style/accordion.css +1 -1
- package/dist/components/style/breadcrumbs.css +1 -1
- package/dist/components/style/datepicker.css +1 -1
- package/dist/components/style/directAccess.css +1 -1
- package/dist/components/style/dropdown.css +1 -1
- package/dist/components/style/filterChip.css +1 -1
- package/dist/components/style/indicator.css +1 -1
- package/dist/components/style/link.css +1 -1
- package/dist/components/style/loader.css +1 -1
- package/dist/components/style/modal.css +1 -1
- package/dist/components/style/multiselect.css +1 -1
- package/dist/components/style/multiselectcontentwrapper.css +1 -1
- package/dist/components/style/selectionChip.css +1 -1
- package/dist/components/style/textField.css +1 -1
- package/dist/components/style/toggle.css +1 -1
- package/dist/components/style/tooltip.css +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/tabBar.es.js +1 -1
- package/dist/components/table.es.js +1 -1
- package/dist/components/tableRenderer.es.js +1 -1
- package/dist/components/tag.es.js +1 -1
- package/dist/components/textArea.es.js +1 -1
- package/dist/components/textField.es.js +204 -145
- package/dist/components/tooltip.es.js +129 -113
- package/dist/energy-components.css +1 -1
- package/dist/energy-components.es.js +4877 -4743
- package/dist/energy-components.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/src/components/feedback/indicator/indicator.vue.d.ts +4 -2
- package/dist/types/src/components/feedback/loader/loader.vue.d.ts +2 -2
- package/dist/types/src/components/input/datepicker/datepicker.vue.d.ts +25 -0
- package/dist/types/src/components/input/dropdown/dropdown.vue.d.ts +25 -0
- package/dist/types/src/components/input/text-field/text-field.vue.d.ts +64 -3
- package/dist/types/src/components/overlay/tooltip/tooltip.vue.d.ts +2 -2
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/llms/rdsdate-picker.md +1 -0
- package/llms/rdsdropdown.md +1 -0
- package/llms/rdsindicator.md +1 -1
- package/llms/rdsloader.md +1 -1
- package/llms/rdstext-field.md +5 -0
- package/llms/rdstooltip.md +1 -1
- package/package.json +3 -3
- package/dist/components/floating-ui.vue-i4U-1c0O.js +0 -1154
|
@@ -0,0 +1,1153 @@
|
|
|
1
|
+
import { computed as I, ref as ot, shallowRef as Yt, watch as ht, getCurrentScope as qt, onScopeDispose as Ut, shallowReadonly as J, unref as Kt } from "vue";
|
|
2
|
+
const X = Math.min, E = Math.max, ct = Math.round, st = Math.floor, W = (t) => ({
|
|
3
|
+
x: t,
|
|
4
|
+
y: t
|
|
5
|
+
}), Gt = {
|
|
6
|
+
left: "right",
|
|
7
|
+
right: "left",
|
|
8
|
+
bottom: "top",
|
|
9
|
+
top: "bottom"
|
|
10
|
+
};
|
|
11
|
+
function wt(t, e, n) {
|
|
12
|
+
return E(t, X(e, n));
|
|
13
|
+
}
|
|
14
|
+
function et(t, e) {
|
|
15
|
+
return typeof t == "function" ? t(e) : t;
|
|
16
|
+
}
|
|
17
|
+
function j(t) {
|
|
18
|
+
return t.split("-")[0];
|
|
19
|
+
}
|
|
20
|
+
function nt(t) {
|
|
21
|
+
return t.split("-")[1];
|
|
22
|
+
}
|
|
23
|
+
function Wt(t) {
|
|
24
|
+
return t === "x" ? "y" : "x";
|
|
25
|
+
}
|
|
26
|
+
function bt(t) {
|
|
27
|
+
return t === "y" ? "height" : "width";
|
|
28
|
+
}
|
|
29
|
+
function N(t) {
|
|
30
|
+
const e = t[0];
|
|
31
|
+
return e === "t" || e === "b" ? "y" : "x";
|
|
32
|
+
}
|
|
33
|
+
function Rt(t) {
|
|
34
|
+
return Wt(N(t));
|
|
35
|
+
}
|
|
36
|
+
function Jt(t, e, n) {
|
|
37
|
+
n === void 0 && (n = !1);
|
|
38
|
+
const o = nt(t), i = Rt(t), s = bt(i);
|
|
39
|
+
let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
40
|
+
return e.reference[s] > e.floating[s] && (r = lt(r)), [r, lt(r)];
|
|
41
|
+
}
|
|
42
|
+
function Qt(t) {
|
|
43
|
+
const e = lt(t);
|
|
44
|
+
return [xt(t), e, xt(e)];
|
|
45
|
+
}
|
|
46
|
+
function xt(t) {
|
|
47
|
+
return t.includes("start") ? t.replace("start", "end") : t.replace("end", "start");
|
|
48
|
+
}
|
|
49
|
+
const Et = ["left", "right"], Dt = ["right", "left"], Zt = ["top", "bottom"], te = ["bottom", "top"];
|
|
50
|
+
function ee(t, e, n) {
|
|
51
|
+
switch (t) {
|
|
52
|
+
case "top":
|
|
53
|
+
case "bottom":
|
|
54
|
+
return n ? e ? Dt : Et : e ? Et : Dt;
|
|
55
|
+
case "left":
|
|
56
|
+
case "right":
|
|
57
|
+
return e ? Zt : te;
|
|
58
|
+
default:
|
|
59
|
+
return [];
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function ne(t, e, n, o) {
|
|
63
|
+
const i = nt(t);
|
|
64
|
+
let s = ee(j(t), n === "start", o);
|
|
65
|
+
return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(xt)))), s;
|
|
66
|
+
}
|
|
67
|
+
function lt(t) {
|
|
68
|
+
const e = j(t);
|
|
69
|
+
return Gt[e] + t.slice(e.length);
|
|
70
|
+
}
|
|
71
|
+
function oe(t) {
|
|
72
|
+
return {
|
|
73
|
+
top: 0,
|
|
74
|
+
right: 0,
|
|
75
|
+
bottom: 0,
|
|
76
|
+
left: 0,
|
|
77
|
+
...t
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function kt(t) {
|
|
81
|
+
return typeof t != "number" ? oe(t) : {
|
|
82
|
+
top: t,
|
|
83
|
+
right: t,
|
|
84
|
+
bottom: t,
|
|
85
|
+
left: t
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function at(t) {
|
|
89
|
+
const {
|
|
90
|
+
x: e,
|
|
91
|
+
y: n,
|
|
92
|
+
width: o,
|
|
93
|
+
height: i
|
|
94
|
+
} = t;
|
|
95
|
+
return {
|
|
96
|
+
width: o,
|
|
97
|
+
height: i,
|
|
98
|
+
top: n,
|
|
99
|
+
left: e,
|
|
100
|
+
right: e + o,
|
|
101
|
+
bottom: n + i,
|
|
102
|
+
x: e,
|
|
103
|
+
y: n
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
function Lt(t, e, n) {
|
|
107
|
+
let {
|
|
108
|
+
reference: o,
|
|
109
|
+
floating: i
|
|
110
|
+
} = t;
|
|
111
|
+
const s = N(e), r = Rt(e), c = bt(r), f = j(e), u = s === "y", l = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, m = o[c] / 2 - i[c] / 2;
|
|
112
|
+
let a;
|
|
113
|
+
switch (f) {
|
|
114
|
+
case "top":
|
|
115
|
+
a = {
|
|
116
|
+
x: l,
|
|
117
|
+
y: o.y - i.height
|
|
118
|
+
};
|
|
119
|
+
break;
|
|
120
|
+
case "bottom":
|
|
121
|
+
a = {
|
|
122
|
+
x: l,
|
|
123
|
+
y: o.y + o.height
|
|
124
|
+
};
|
|
125
|
+
break;
|
|
126
|
+
case "right":
|
|
127
|
+
a = {
|
|
128
|
+
x: o.x + o.width,
|
|
129
|
+
y: d
|
|
130
|
+
};
|
|
131
|
+
break;
|
|
132
|
+
case "left":
|
|
133
|
+
a = {
|
|
134
|
+
x: o.x - i.width,
|
|
135
|
+
y: d
|
|
136
|
+
};
|
|
137
|
+
break;
|
|
138
|
+
default:
|
|
139
|
+
a = {
|
|
140
|
+
x: o.x,
|
|
141
|
+
y: o.y
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
switch (nt(e)) {
|
|
145
|
+
case "start":
|
|
146
|
+
a[r] -= m * (n && u ? -1 : 1);
|
|
147
|
+
break;
|
|
148
|
+
case "end":
|
|
149
|
+
a[r] += m * (n && u ? -1 : 1);
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
return a;
|
|
153
|
+
}
|
|
154
|
+
async function ie(t, e) {
|
|
155
|
+
var n;
|
|
156
|
+
e === void 0 && (e = {});
|
|
157
|
+
const {
|
|
158
|
+
x: o,
|
|
159
|
+
y: i,
|
|
160
|
+
platform: s,
|
|
161
|
+
rects: r,
|
|
162
|
+
elements: c,
|
|
163
|
+
strategy: f
|
|
164
|
+
} = t, {
|
|
165
|
+
boundary: u = "clippingAncestors",
|
|
166
|
+
rootBoundary: l = "viewport",
|
|
167
|
+
elementContext: d = "floating",
|
|
168
|
+
altBoundary: m = !1,
|
|
169
|
+
padding: a = 0
|
|
170
|
+
} = et(e, t), h = kt(a), w = c[m ? d === "floating" ? "reference" : "floating" : d], p = at(await s.getClippingRect({
|
|
171
|
+
element: (n = await (s.isElement == null ? void 0 : s.isElement(w))) == null || n ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
|
|
172
|
+
boundary: u,
|
|
173
|
+
rootBoundary: l,
|
|
174
|
+
strategy: f
|
|
175
|
+
})), x = d === "floating" ? {
|
|
176
|
+
x: o,
|
|
177
|
+
y: i,
|
|
178
|
+
width: r.floating.width,
|
|
179
|
+
height: r.floating.height
|
|
180
|
+
} : r.reference, y = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), b = await (s.isElement == null ? void 0 : s.isElement(y)) ? await (s.getScale == null ? void 0 : s.getScale(y)) || {
|
|
181
|
+
x: 1,
|
|
182
|
+
y: 1
|
|
183
|
+
} : {
|
|
184
|
+
x: 1,
|
|
185
|
+
y: 1
|
|
186
|
+
}, O = at(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
187
|
+
elements: c,
|
|
188
|
+
rect: x,
|
|
189
|
+
offsetParent: y,
|
|
190
|
+
strategy: f
|
|
191
|
+
}) : x);
|
|
192
|
+
return {
|
|
193
|
+
top: (p.top - O.top + h.top) / b.y,
|
|
194
|
+
bottom: (O.bottom - p.bottom + h.bottom) / b.y,
|
|
195
|
+
left: (p.left - O.left + h.left) / b.x,
|
|
196
|
+
right: (O.right - p.right + h.right) / b.x
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
const re = 50, se = async (t, e, n) => {
|
|
200
|
+
const {
|
|
201
|
+
placement: o = "bottom",
|
|
202
|
+
strategy: i = "absolute",
|
|
203
|
+
middleware: s = [],
|
|
204
|
+
platform: r
|
|
205
|
+
} = n, c = r.detectOverflow ? r : {
|
|
206
|
+
...r,
|
|
207
|
+
detectOverflow: ie
|
|
208
|
+
}, f = await (r.isRTL == null ? void 0 : r.isRTL(e));
|
|
209
|
+
let u = await r.getElementRects({
|
|
210
|
+
reference: t,
|
|
211
|
+
floating: e,
|
|
212
|
+
strategy: i
|
|
213
|
+
}), {
|
|
214
|
+
x: l,
|
|
215
|
+
y: d
|
|
216
|
+
} = Lt(u, o, f), m = o, a = 0;
|
|
217
|
+
const h = {};
|
|
218
|
+
for (let g = 0; g < s.length; g++) {
|
|
219
|
+
const w = s[g];
|
|
220
|
+
if (!w)
|
|
221
|
+
continue;
|
|
222
|
+
const {
|
|
223
|
+
name: p,
|
|
224
|
+
fn: x
|
|
225
|
+
} = w, {
|
|
226
|
+
x: y,
|
|
227
|
+
y: b,
|
|
228
|
+
data: O,
|
|
229
|
+
reset: R
|
|
230
|
+
} = await x({
|
|
231
|
+
x: l,
|
|
232
|
+
y: d,
|
|
233
|
+
initialPlacement: o,
|
|
234
|
+
placement: m,
|
|
235
|
+
strategy: i,
|
|
236
|
+
middlewareData: h,
|
|
237
|
+
rects: u,
|
|
238
|
+
platform: c,
|
|
239
|
+
elements: {
|
|
240
|
+
reference: t,
|
|
241
|
+
floating: e
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
l = y ?? l, d = b ?? d, h[p] = {
|
|
245
|
+
...h[p],
|
|
246
|
+
...O
|
|
247
|
+
}, R && a < re && (a++, typeof R == "object" && (R.placement && (m = R.placement), R.rects && (u = R.rects === !0 ? await r.getElementRects({
|
|
248
|
+
reference: t,
|
|
249
|
+
floating: e,
|
|
250
|
+
strategy: i
|
|
251
|
+
}) : R.rects), {
|
|
252
|
+
x: l,
|
|
253
|
+
y: d
|
|
254
|
+
} = Lt(u, m, f)), g = -1);
|
|
255
|
+
}
|
|
256
|
+
return {
|
|
257
|
+
x: l,
|
|
258
|
+
y: d,
|
|
259
|
+
placement: m,
|
|
260
|
+
strategy: i,
|
|
261
|
+
middlewareData: h
|
|
262
|
+
};
|
|
263
|
+
}, ce = (t) => ({
|
|
264
|
+
name: "arrow",
|
|
265
|
+
options: t,
|
|
266
|
+
async fn(e) {
|
|
267
|
+
const {
|
|
268
|
+
x: n,
|
|
269
|
+
y: o,
|
|
270
|
+
placement: i,
|
|
271
|
+
rects: s,
|
|
272
|
+
platform: r,
|
|
273
|
+
elements: c,
|
|
274
|
+
middlewareData: f
|
|
275
|
+
} = e, {
|
|
276
|
+
element: u,
|
|
277
|
+
padding: l = 0
|
|
278
|
+
} = et(t, e) || {};
|
|
279
|
+
if (u == null)
|
|
280
|
+
return {};
|
|
281
|
+
const d = kt(l), m = {
|
|
282
|
+
x: n,
|
|
283
|
+
y: o
|
|
284
|
+
}, a = Rt(i), h = bt(a), g = await r.getDimensions(u), w = a === "y", p = w ? "top" : "left", x = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", b = s.reference[h] + s.reference[a] - m[a] - s.floating[h], O = m[a] - s.reference[a], R = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(u));
|
|
285
|
+
let v = R ? R[y] : 0;
|
|
286
|
+
(!v || !await (r.isElement == null ? void 0 : r.isElement(R))) && (v = c.floating[y] || s.floating[h]);
|
|
287
|
+
const A = b / 2 - O / 2, S = v / 2 - g[h] / 2 - 1, L = X(d[p], S), B = X(d[x], S), V = L, H = v - g[h] - B, C = v / 2 - g[h] / 2 + A, q = wt(V, C, H), $ = !f.arrow && nt(i) != null && C !== q && s.reference[h] / 2 - (C < V ? L : B) - g[h] / 2 < 0, T = $ ? C < V ? C - V : C - H : 0;
|
|
288
|
+
return {
|
|
289
|
+
[a]: m[a] + T,
|
|
290
|
+
data: {
|
|
291
|
+
[a]: q,
|
|
292
|
+
centerOffset: C - q - T,
|
|
293
|
+
...$ && {
|
|
294
|
+
alignmentOffset: T
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
reset: $
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
}), le = function(t) {
|
|
301
|
+
return t === void 0 && (t = {}), {
|
|
302
|
+
name: "flip",
|
|
303
|
+
options: t,
|
|
304
|
+
async fn(e) {
|
|
305
|
+
var n, o;
|
|
306
|
+
const {
|
|
307
|
+
placement: i,
|
|
308
|
+
middlewareData: s,
|
|
309
|
+
rects: r,
|
|
310
|
+
initialPlacement: c,
|
|
311
|
+
platform: f,
|
|
312
|
+
elements: u
|
|
313
|
+
} = e, {
|
|
314
|
+
mainAxis: l = !0,
|
|
315
|
+
crossAxis: d = !0,
|
|
316
|
+
fallbackPlacements: m,
|
|
317
|
+
fallbackStrategy: a = "bestFit",
|
|
318
|
+
fallbackAxisSideDirection: h = "none",
|
|
319
|
+
flipAlignment: g = !0,
|
|
320
|
+
...w
|
|
321
|
+
} = et(t, e);
|
|
322
|
+
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
323
|
+
return {};
|
|
324
|
+
const p = j(i), x = N(c), y = j(c) === c, b = await (f.isRTL == null ? void 0 : f.isRTL(u.floating)), O = m || (y || !g ? [lt(c)] : Qt(c)), R = h !== "none";
|
|
325
|
+
!m && R && O.push(...ne(c, g, h, b));
|
|
326
|
+
const v = [c, ...O], A = await f.detectOverflow(e, w), S = [];
|
|
327
|
+
let L = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
328
|
+
if (l && S.push(A[p]), d) {
|
|
329
|
+
const C = Jt(i, r, b);
|
|
330
|
+
S.push(A[C[0]], A[C[1]]);
|
|
331
|
+
}
|
|
332
|
+
if (L = [...L, {
|
|
333
|
+
placement: i,
|
|
334
|
+
overflows: S
|
|
335
|
+
}], !S.every((C) => C <= 0)) {
|
|
336
|
+
var B, V;
|
|
337
|
+
const C = (((B = s.flip) == null ? void 0 : B.index) || 0) + 1, q = v[C];
|
|
338
|
+
if (q && (!(d === "alignment" ? x !== N(q) : !1) || // We leave the current main axis only if every placement on that axis
|
|
339
|
+
// overflows the main axis.
|
|
340
|
+
L.every((P) => N(P.placement) === x ? P.overflows[0] > 0 : !0)))
|
|
341
|
+
return {
|
|
342
|
+
data: {
|
|
343
|
+
index: C,
|
|
344
|
+
overflows: L
|
|
345
|
+
},
|
|
346
|
+
reset: {
|
|
347
|
+
placement: q
|
|
348
|
+
}
|
|
349
|
+
};
|
|
350
|
+
let $ = (V = L.filter((T) => T.overflows[0] <= 0).sort((T, P) => T.overflows[1] - P.overflows[1])[0]) == null ? void 0 : V.placement;
|
|
351
|
+
if (!$)
|
|
352
|
+
switch (a) {
|
|
353
|
+
case "bestFit": {
|
|
354
|
+
var H;
|
|
355
|
+
const T = (H = L.filter((P) => {
|
|
356
|
+
if (R) {
|
|
357
|
+
const z = N(P.placement);
|
|
358
|
+
return z === x || // Create a bias to the `y` side axis due to horizontal
|
|
359
|
+
// reading directions favoring greater width.
|
|
360
|
+
z === "y";
|
|
361
|
+
}
|
|
362
|
+
return !0;
|
|
363
|
+
}).map((P) => [P.placement, P.overflows.filter((z) => z > 0).reduce((z, jt) => z + jt, 0)]).sort((P, z) => P[1] - z[1])[0]) == null ? void 0 : H[0];
|
|
364
|
+
T && ($ = T);
|
|
365
|
+
break;
|
|
366
|
+
}
|
|
367
|
+
case "initialPlacement":
|
|
368
|
+
$ = c;
|
|
369
|
+
break;
|
|
370
|
+
}
|
|
371
|
+
if (i !== $)
|
|
372
|
+
return {
|
|
373
|
+
reset: {
|
|
374
|
+
placement: $
|
|
375
|
+
}
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
return {};
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
}, ae = /* @__PURE__ */ new Set(["left", "top"]);
|
|
382
|
+
async function fe(t, e) {
|
|
383
|
+
const {
|
|
384
|
+
placement: n,
|
|
385
|
+
platform: o,
|
|
386
|
+
elements: i
|
|
387
|
+
} = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = j(n), c = nt(n), f = N(n) === "y", u = ae.has(r) ? -1 : 1, l = s && f ? -1 : 1, d = et(e, t);
|
|
388
|
+
let {
|
|
389
|
+
mainAxis: m,
|
|
390
|
+
crossAxis: a,
|
|
391
|
+
alignmentAxis: h
|
|
392
|
+
} = typeof d == "number" ? {
|
|
393
|
+
mainAxis: d,
|
|
394
|
+
crossAxis: 0,
|
|
395
|
+
alignmentAxis: null
|
|
396
|
+
} : {
|
|
397
|
+
mainAxis: d.mainAxis || 0,
|
|
398
|
+
crossAxis: d.crossAxis || 0,
|
|
399
|
+
alignmentAxis: d.alignmentAxis
|
|
400
|
+
};
|
|
401
|
+
return c && typeof h == "number" && (a = c === "end" ? h * -1 : h), f ? {
|
|
402
|
+
x: a * l,
|
|
403
|
+
y: m * u
|
|
404
|
+
} : {
|
|
405
|
+
x: m * u,
|
|
406
|
+
y: a * l
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
const ue = function(t) {
|
|
410
|
+
return t === void 0 && (t = 0), {
|
|
411
|
+
name: "offset",
|
|
412
|
+
options: t,
|
|
413
|
+
async fn(e) {
|
|
414
|
+
var n, o;
|
|
415
|
+
const {
|
|
416
|
+
x: i,
|
|
417
|
+
y: s,
|
|
418
|
+
placement: r,
|
|
419
|
+
middlewareData: c
|
|
420
|
+
} = e, f = await fe(e, t);
|
|
421
|
+
return r === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
|
|
422
|
+
x: i + f.x,
|
|
423
|
+
y: s + f.y,
|
|
424
|
+
data: {
|
|
425
|
+
...f,
|
|
426
|
+
placement: r
|
|
427
|
+
}
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
};
|
|
431
|
+
}, de = function(t) {
|
|
432
|
+
return t === void 0 && (t = {}), {
|
|
433
|
+
name: "shift",
|
|
434
|
+
options: t,
|
|
435
|
+
async fn(e) {
|
|
436
|
+
const {
|
|
437
|
+
x: n,
|
|
438
|
+
y: o,
|
|
439
|
+
placement: i,
|
|
440
|
+
platform: s
|
|
441
|
+
} = e, {
|
|
442
|
+
mainAxis: r = !0,
|
|
443
|
+
crossAxis: c = !1,
|
|
444
|
+
limiter: f = {
|
|
445
|
+
fn: (p) => {
|
|
446
|
+
let {
|
|
447
|
+
x,
|
|
448
|
+
y
|
|
449
|
+
} = p;
|
|
450
|
+
return {
|
|
451
|
+
x,
|
|
452
|
+
y
|
|
453
|
+
};
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
...u
|
|
457
|
+
} = et(t, e), l = {
|
|
458
|
+
x: n,
|
|
459
|
+
y: o
|
|
460
|
+
}, d = await s.detectOverflow(e, u), m = N(j(i)), a = Wt(m);
|
|
461
|
+
let h = l[a], g = l[m];
|
|
462
|
+
if (r) {
|
|
463
|
+
const p = a === "y" ? "top" : "left", x = a === "y" ? "bottom" : "right", y = h + d[p], b = h - d[x];
|
|
464
|
+
h = wt(y, h, b);
|
|
465
|
+
}
|
|
466
|
+
if (c) {
|
|
467
|
+
const p = m === "y" ? "top" : "left", x = m === "y" ? "bottom" : "right", y = g + d[p], b = g - d[x];
|
|
468
|
+
g = wt(y, g, b);
|
|
469
|
+
}
|
|
470
|
+
const w = f.fn({
|
|
471
|
+
...e,
|
|
472
|
+
[a]: h,
|
|
473
|
+
[m]: g
|
|
474
|
+
});
|
|
475
|
+
return {
|
|
476
|
+
...w,
|
|
477
|
+
data: {
|
|
478
|
+
x: w.x - n,
|
|
479
|
+
y: w.y - o,
|
|
480
|
+
enabled: {
|
|
481
|
+
[a]: r,
|
|
482
|
+
[m]: c
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
};
|
|
488
|
+
}, me = function(t) {
|
|
489
|
+
return t === void 0 && (t = {}), {
|
|
490
|
+
name: "size",
|
|
491
|
+
options: t,
|
|
492
|
+
async fn(e) {
|
|
493
|
+
var n, o;
|
|
494
|
+
const {
|
|
495
|
+
placement: i,
|
|
496
|
+
rects: s,
|
|
497
|
+
platform: r,
|
|
498
|
+
elements: c
|
|
499
|
+
} = e, {
|
|
500
|
+
apply: f = () => {
|
|
501
|
+
},
|
|
502
|
+
...u
|
|
503
|
+
} = et(t, e), l = await r.detectOverflow(e, u), d = j(i), m = nt(i), a = N(i) === "y", {
|
|
504
|
+
width: h,
|
|
505
|
+
height: g
|
|
506
|
+
} = s.floating;
|
|
507
|
+
let w, p;
|
|
508
|
+
d === "top" || d === "bottom" ? (w = d, p = m === (await (r.isRTL == null ? void 0 : r.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (p = d, w = m === "end" ? "top" : "bottom");
|
|
509
|
+
const x = g - l.top - l.bottom, y = h - l.left - l.right, b = X(g - l[w], x), O = X(h - l[p], y), R = !e.middlewareData.shift;
|
|
510
|
+
let v = b, A = O;
|
|
511
|
+
if ((n = e.middlewareData.shift) != null && n.enabled.x && (A = y), (o = e.middlewareData.shift) != null && o.enabled.y && (v = x), R && !m) {
|
|
512
|
+
const L = E(l.left, 0), B = E(l.right, 0), V = E(l.top, 0), H = E(l.bottom, 0);
|
|
513
|
+
a ? A = h - 2 * (L !== 0 || B !== 0 ? L + B : E(l.left, l.right)) : v = g - 2 * (V !== 0 || H !== 0 ? V + H : E(l.top, l.bottom));
|
|
514
|
+
}
|
|
515
|
+
await f({
|
|
516
|
+
...e,
|
|
517
|
+
availableWidth: A,
|
|
518
|
+
availableHeight: v
|
|
519
|
+
});
|
|
520
|
+
const S = await r.getDimensions(c.floating);
|
|
521
|
+
return h !== S.width || g !== S.height ? {
|
|
522
|
+
reset: {
|
|
523
|
+
rects: !0
|
|
524
|
+
}
|
|
525
|
+
} : {};
|
|
526
|
+
}
|
|
527
|
+
};
|
|
528
|
+
};
|
|
529
|
+
function ft() {
|
|
530
|
+
return typeof window < "u";
|
|
531
|
+
}
|
|
532
|
+
function G(t) {
|
|
533
|
+
return Ot(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
534
|
+
}
|
|
535
|
+
function D(t) {
|
|
536
|
+
var e;
|
|
537
|
+
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
538
|
+
}
|
|
539
|
+
function k(t) {
|
|
540
|
+
var e;
|
|
541
|
+
return (e = (Ot(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
542
|
+
}
|
|
543
|
+
function Ot(t) {
|
|
544
|
+
return ft() ? t instanceof Node || t instanceof D(t).Node : !1;
|
|
545
|
+
}
|
|
546
|
+
function M(t) {
|
|
547
|
+
return ft() ? t instanceof Element || t instanceof D(t).Element : !1;
|
|
548
|
+
}
|
|
549
|
+
function _(t) {
|
|
550
|
+
return ft() ? t instanceof HTMLElement || t instanceof D(t).HTMLElement : !1;
|
|
551
|
+
}
|
|
552
|
+
function Tt(t) {
|
|
553
|
+
return !ft() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof D(t).ShadowRoot;
|
|
554
|
+
}
|
|
555
|
+
function rt(t) {
|
|
556
|
+
const {
|
|
557
|
+
overflow: e,
|
|
558
|
+
overflowX: n,
|
|
559
|
+
overflowY: o,
|
|
560
|
+
display: i
|
|
561
|
+
} = F(t);
|
|
562
|
+
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && i !== "inline" && i !== "contents";
|
|
563
|
+
}
|
|
564
|
+
function he(t) {
|
|
565
|
+
return /^(table|td|th)$/.test(G(t));
|
|
566
|
+
}
|
|
567
|
+
function ut(t) {
|
|
568
|
+
try {
|
|
569
|
+
if (t.matches(":popover-open"))
|
|
570
|
+
return !0;
|
|
571
|
+
} catch {
|
|
572
|
+
}
|
|
573
|
+
try {
|
|
574
|
+
return t.matches(":modal");
|
|
575
|
+
} catch {
|
|
576
|
+
return !1;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
const ge = /transform|translate|scale|rotate|perspective|filter/, pe = /paint|layout|strict|content/, U = (t) => !!t && t !== "none";
|
|
580
|
+
let gt;
|
|
581
|
+
function At(t) {
|
|
582
|
+
const e = M(t) ? F(t) : t;
|
|
583
|
+
return U(e.transform) || U(e.translate) || U(e.scale) || U(e.rotate) || U(e.perspective) || !Ct() && (U(e.backdropFilter) || U(e.filter)) || ge.test(e.willChange || "") || pe.test(e.contain || "");
|
|
584
|
+
}
|
|
585
|
+
function we(t) {
|
|
586
|
+
let e = Y(t);
|
|
587
|
+
for (; _(e) && !tt(e); ) {
|
|
588
|
+
if (At(e))
|
|
589
|
+
return e;
|
|
590
|
+
if (ut(e))
|
|
591
|
+
return null;
|
|
592
|
+
e = Y(e);
|
|
593
|
+
}
|
|
594
|
+
return null;
|
|
595
|
+
}
|
|
596
|
+
function Ct() {
|
|
597
|
+
return gt == null && (gt = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), gt;
|
|
598
|
+
}
|
|
599
|
+
function tt(t) {
|
|
600
|
+
return /^(html|body|#document)$/.test(G(t));
|
|
601
|
+
}
|
|
602
|
+
function F(t) {
|
|
603
|
+
return D(t).getComputedStyle(t);
|
|
604
|
+
}
|
|
605
|
+
function dt(t) {
|
|
606
|
+
return M(t) ? {
|
|
607
|
+
scrollLeft: t.scrollLeft,
|
|
608
|
+
scrollTop: t.scrollTop
|
|
609
|
+
} : {
|
|
610
|
+
scrollLeft: t.scrollX,
|
|
611
|
+
scrollTop: t.scrollY
|
|
612
|
+
};
|
|
613
|
+
}
|
|
614
|
+
function Y(t) {
|
|
615
|
+
if (G(t) === "html")
|
|
616
|
+
return t;
|
|
617
|
+
const e = (
|
|
618
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
619
|
+
t.assignedSlot || // DOM Element detected.
|
|
620
|
+
t.parentNode || // ShadowRoot detected.
|
|
621
|
+
Tt(t) && t.host || // Fallback.
|
|
622
|
+
k(t)
|
|
623
|
+
);
|
|
624
|
+
return Tt(e) ? e.host : e;
|
|
625
|
+
}
|
|
626
|
+
function $t(t) {
|
|
627
|
+
const e = Y(t);
|
|
628
|
+
return tt(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : _(e) && rt(e) ? e : $t(e);
|
|
629
|
+
}
|
|
630
|
+
function it(t, e, n) {
|
|
631
|
+
var o;
|
|
632
|
+
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
633
|
+
const i = $t(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = D(i);
|
|
634
|
+
if (s) {
|
|
635
|
+
const c = yt(r);
|
|
636
|
+
return e.concat(r, r.visualViewport || [], rt(i) ? i : [], c && n ? it(c) : []);
|
|
637
|
+
} else
|
|
638
|
+
return e.concat(i, it(i, [], n));
|
|
639
|
+
}
|
|
640
|
+
function yt(t) {
|
|
641
|
+
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
642
|
+
}
|
|
643
|
+
function Nt(t) {
|
|
644
|
+
const e = F(t);
|
|
645
|
+
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
646
|
+
const i = _(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, c = ct(n) !== s || ct(o) !== r;
|
|
647
|
+
return c && (n = s, o = r), {
|
|
648
|
+
width: n,
|
|
649
|
+
height: o,
|
|
650
|
+
$: c
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
function St(t) {
|
|
654
|
+
return M(t) ? t : t.contextElement;
|
|
655
|
+
}
|
|
656
|
+
function Z(t) {
|
|
657
|
+
const e = St(t);
|
|
658
|
+
if (!_(e))
|
|
659
|
+
return W(1);
|
|
660
|
+
const n = e.getBoundingClientRect(), {
|
|
661
|
+
width: o,
|
|
662
|
+
height: i,
|
|
663
|
+
$: s
|
|
664
|
+
} = Nt(e);
|
|
665
|
+
let r = (s ? ct(n.width) : n.width) / o, c = (s ? ct(n.height) : n.height) / i;
|
|
666
|
+
return (!r || !Number.isFinite(r)) && (r = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
667
|
+
x: r,
|
|
668
|
+
y: c
|
|
669
|
+
};
|
|
670
|
+
}
|
|
671
|
+
const xe = /* @__PURE__ */ W(0);
|
|
672
|
+
function _t(t) {
|
|
673
|
+
const e = D(t);
|
|
674
|
+
return !Ct() || !e.visualViewport ? xe : {
|
|
675
|
+
x: e.visualViewport.offsetLeft,
|
|
676
|
+
y: e.visualViewport.offsetTop
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
function ye(t, e, n) {
|
|
680
|
+
return e === void 0 && (e = !1), !n || e && n !== D(t) ? !1 : e;
|
|
681
|
+
}
|
|
682
|
+
function K(t, e, n, o) {
|
|
683
|
+
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
684
|
+
const i = t.getBoundingClientRect(), s = St(t);
|
|
685
|
+
let r = W(1);
|
|
686
|
+
e && (o ? M(o) && (r = Z(o)) : r = Z(t));
|
|
687
|
+
const c = ye(s, n, o) ? _t(s) : W(0);
|
|
688
|
+
let f = (i.left + c.x) / r.x, u = (i.top + c.y) / r.y, l = i.width / r.x, d = i.height / r.y;
|
|
689
|
+
if (s) {
|
|
690
|
+
const m = D(s), a = o && M(o) ? D(o) : o;
|
|
691
|
+
let h = m, g = yt(h);
|
|
692
|
+
for (; g && o && a !== h; ) {
|
|
693
|
+
const w = Z(g), p = g.getBoundingClientRect(), x = F(g), y = p.left + (g.clientLeft + parseFloat(x.paddingLeft)) * w.x, b = p.top + (g.clientTop + parseFloat(x.paddingTop)) * w.y;
|
|
694
|
+
f *= w.x, u *= w.y, l *= w.x, d *= w.y, f += y, u += b, h = D(g), g = yt(h);
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
return at({
|
|
698
|
+
width: l,
|
|
699
|
+
height: d,
|
|
700
|
+
x: f,
|
|
701
|
+
y: u
|
|
702
|
+
});
|
|
703
|
+
}
|
|
704
|
+
function mt(t, e) {
|
|
705
|
+
const n = dt(t).scrollLeft;
|
|
706
|
+
return e ? e.left + n : K(k(t)).left + n;
|
|
707
|
+
}
|
|
708
|
+
function Bt(t, e) {
|
|
709
|
+
const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - mt(t, n), i = n.top + e.scrollTop;
|
|
710
|
+
return {
|
|
711
|
+
x: o,
|
|
712
|
+
y: i
|
|
713
|
+
};
|
|
714
|
+
}
|
|
715
|
+
function ve(t) {
|
|
716
|
+
let {
|
|
717
|
+
elements: e,
|
|
718
|
+
rect: n,
|
|
719
|
+
offsetParent: o,
|
|
720
|
+
strategy: i
|
|
721
|
+
} = t;
|
|
722
|
+
const s = i === "fixed", r = k(o), c = e ? ut(e.floating) : !1;
|
|
723
|
+
if (o === r || c && s)
|
|
724
|
+
return n;
|
|
725
|
+
let f = {
|
|
726
|
+
scrollLeft: 0,
|
|
727
|
+
scrollTop: 0
|
|
728
|
+
}, u = W(1);
|
|
729
|
+
const l = W(0), d = _(o);
|
|
730
|
+
if ((d || !d && !s) && ((G(o) !== "body" || rt(r)) && (f = dt(o)), d)) {
|
|
731
|
+
const a = K(o);
|
|
732
|
+
u = Z(o), l.x = a.x + o.clientLeft, l.y = a.y + o.clientTop;
|
|
733
|
+
}
|
|
734
|
+
const m = r && !d && !s ? Bt(r, f) : W(0);
|
|
735
|
+
return {
|
|
736
|
+
width: n.width * u.x,
|
|
737
|
+
height: n.height * u.y,
|
|
738
|
+
x: n.x * u.x - f.scrollLeft * u.x + l.x + m.x,
|
|
739
|
+
y: n.y * u.y - f.scrollTop * u.y + l.y + m.y
|
|
740
|
+
};
|
|
741
|
+
}
|
|
742
|
+
function be(t) {
|
|
743
|
+
return Array.from(t.getClientRects());
|
|
744
|
+
}
|
|
745
|
+
function Re(t) {
|
|
746
|
+
const e = k(t), n = dt(t), o = t.ownerDocument.body, i = E(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = E(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
747
|
+
let r = -n.scrollLeft + mt(t);
|
|
748
|
+
const c = -n.scrollTop;
|
|
749
|
+
return F(o).direction === "rtl" && (r += E(e.clientWidth, o.clientWidth) - i), {
|
|
750
|
+
width: i,
|
|
751
|
+
height: s,
|
|
752
|
+
x: r,
|
|
753
|
+
y: c
|
|
754
|
+
};
|
|
755
|
+
}
|
|
756
|
+
const Pt = 25;
|
|
757
|
+
function Oe(t, e) {
|
|
758
|
+
const n = D(t), o = k(t), i = n.visualViewport;
|
|
759
|
+
let s = o.clientWidth, r = o.clientHeight, c = 0, f = 0;
|
|
760
|
+
if (i) {
|
|
761
|
+
s = i.width, r = i.height;
|
|
762
|
+
const l = Ct();
|
|
763
|
+
(!l || l && e === "fixed") && (c = i.offsetLeft, f = i.offsetTop);
|
|
764
|
+
}
|
|
765
|
+
const u = mt(o);
|
|
766
|
+
if (u <= 0) {
|
|
767
|
+
const l = o.ownerDocument, d = l.body, m = getComputedStyle(d), a = l.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, h = Math.abs(o.clientWidth - d.clientWidth - a);
|
|
768
|
+
h <= Pt && (s -= h);
|
|
769
|
+
} else u <= Pt && (s += u);
|
|
770
|
+
return {
|
|
771
|
+
width: s,
|
|
772
|
+
height: r,
|
|
773
|
+
x: c,
|
|
774
|
+
y: f
|
|
775
|
+
};
|
|
776
|
+
}
|
|
777
|
+
function Ae(t, e) {
|
|
778
|
+
const n = K(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = _(t) ? Z(t) : W(1), r = t.clientWidth * s.x, c = t.clientHeight * s.y, f = i * s.x, u = o * s.y;
|
|
779
|
+
return {
|
|
780
|
+
width: r,
|
|
781
|
+
height: c,
|
|
782
|
+
x: f,
|
|
783
|
+
y: u
|
|
784
|
+
};
|
|
785
|
+
}
|
|
786
|
+
function Mt(t, e, n) {
|
|
787
|
+
let o;
|
|
788
|
+
if (e === "viewport")
|
|
789
|
+
o = Oe(t, n);
|
|
790
|
+
else if (e === "document")
|
|
791
|
+
o = Re(k(t));
|
|
792
|
+
else if (M(e))
|
|
793
|
+
o = Ae(e, n);
|
|
794
|
+
else {
|
|
795
|
+
const i = _t(t);
|
|
796
|
+
o = {
|
|
797
|
+
x: e.x - i.x,
|
|
798
|
+
y: e.y - i.y,
|
|
799
|
+
width: e.width,
|
|
800
|
+
height: e.height
|
|
801
|
+
};
|
|
802
|
+
}
|
|
803
|
+
return at(o);
|
|
804
|
+
}
|
|
805
|
+
function Ht(t, e) {
|
|
806
|
+
const n = Y(t);
|
|
807
|
+
return n === e || !M(n) || tt(n) ? !1 : F(n).position === "fixed" || Ht(n, e);
|
|
808
|
+
}
|
|
809
|
+
function Ce(t, e) {
|
|
810
|
+
const n = e.get(t);
|
|
811
|
+
if (n)
|
|
812
|
+
return n;
|
|
813
|
+
let o = it(t, [], !1).filter((c) => M(c) && G(c) !== "body"), i = null;
|
|
814
|
+
const s = F(t).position === "fixed";
|
|
815
|
+
let r = s ? Y(t) : t;
|
|
816
|
+
for (; M(r) && !tt(r); ) {
|
|
817
|
+
const c = F(r), f = At(r);
|
|
818
|
+
!f && c.position === "fixed" && (i = null), (s ? !f && !i : !f && c.position === "static" && !!i && (i.position === "absolute" || i.position === "fixed") || rt(r) && !f && Ht(t, r)) ? o = o.filter((l) => l !== r) : i = c, r = Y(r);
|
|
819
|
+
}
|
|
820
|
+
return e.set(t, o), o;
|
|
821
|
+
}
|
|
822
|
+
function Se(t) {
|
|
823
|
+
let {
|
|
824
|
+
element: e,
|
|
825
|
+
boundary: n,
|
|
826
|
+
rootBoundary: o,
|
|
827
|
+
strategy: i
|
|
828
|
+
} = t;
|
|
829
|
+
const r = [...n === "clippingAncestors" ? ut(e) ? [] : Ce(e, this._c) : [].concat(n), o], c = Mt(e, r[0], i);
|
|
830
|
+
let f = c.top, u = c.right, l = c.bottom, d = c.left;
|
|
831
|
+
for (let m = 1; m < r.length; m++) {
|
|
832
|
+
const a = Mt(e, r[m], i);
|
|
833
|
+
f = E(a.top, f), u = X(a.right, u), l = X(a.bottom, l), d = E(a.left, d);
|
|
834
|
+
}
|
|
835
|
+
return {
|
|
836
|
+
width: u - d,
|
|
837
|
+
height: l - f,
|
|
838
|
+
x: d,
|
|
839
|
+
y: f
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
function Ee(t) {
|
|
843
|
+
const {
|
|
844
|
+
width: e,
|
|
845
|
+
height: n
|
|
846
|
+
} = Nt(t);
|
|
847
|
+
return {
|
|
848
|
+
width: e,
|
|
849
|
+
height: n
|
|
850
|
+
};
|
|
851
|
+
}
|
|
852
|
+
function De(t, e, n) {
|
|
853
|
+
const o = _(e), i = k(e), s = n === "fixed", r = K(t, !0, s, e);
|
|
854
|
+
let c = {
|
|
855
|
+
scrollLeft: 0,
|
|
856
|
+
scrollTop: 0
|
|
857
|
+
};
|
|
858
|
+
const f = W(0);
|
|
859
|
+
function u() {
|
|
860
|
+
f.x = mt(i);
|
|
861
|
+
}
|
|
862
|
+
if (o || !o && !s)
|
|
863
|
+
if ((G(e) !== "body" || rt(i)) && (c = dt(e)), o) {
|
|
864
|
+
const a = K(e, !0, s, e);
|
|
865
|
+
f.x = a.x + e.clientLeft, f.y = a.y + e.clientTop;
|
|
866
|
+
} else i && u();
|
|
867
|
+
s && !o && i && u();
|
|
868
|
+
const l = i && !o && !s ? Bt(i, c) : W(0), d = r.left + c.scrollLeft - f.x - l.x, m = r.top + c.scrollTop - f.y - l.y;
|
|
869
|
+
return {
|
|
870
|
+
x: d,
|
|
871
|
+
y: m,
|
|
872
|
+
width: r.width,
|
|
873
|
+
height: r.height
|
|
874
|
+
};
|
|
875
|
+
}
|
|
876
|
+
function pt(t) {
|
|
877
|
+
return F(t).position === "static";
|
|
878
|
+
}
|
|
879
|
+
function Ft(t, e) {
|
|
880
|
+
if (!_(t) || F(t).position === "fixed")
|
|
881
|
+
return null;
|
|
882
|
+
if (e)
|
|
883
|
+
return e(t);
|
|
884
|
+
let n = t.offsetParent;
|
|
885
|
+
return k(t) === n && (n = n.ownerDocument.body), n;
|
|
886
|
+
}
|
|
887
|
+
function zt(t, e) {
|
|
888
|
+
const n = D(t);
|
|
889
|
+
if (ut(t))
|
|
890
|
+
return n;
|
|
891
|
+
if (!_(t)) {
|
|
892
|
+
let i = Y(t);
|
|
893
|
+
for (; i && !tt(i); ) {
|
|
894
|
+
if (M(i) && !pt(i))
|
|
895
|
+
return i;
|
|
896
|
+
i = Y(i);
|
|
897
|
+
}
|
|
898
|
+
return n;
|
|
899
|
+
}
|
|
900
|
+
let o = Ft(t, e);
|
|
901
|
+
for (; o && he(o) && pt(o); )
|
|
902
|
+
o = Ft(o, e);
|
|
903
|
+
return o && tt(o) && pt(o) && !At(o) ? n : o || we(t) || n;
|
|
904
|
+
}
|
|
905
|
+
const Le = async function(t) {
|
|
906
|
+
const e = this.getOffsetParent || zt, n = this.getDimensions, o = await n(t.floating);
|
|
907
|
+
return {
|
|
908
|
+
reference: De(t.reference, await e(t.floating), t.strategy),
|
|
909
|
+
floating: {
|
|
910
|
+
x: 0,
|
|
911
|
+
y: 0,
|
|
912
|
+
width: o.width,
|
|
913
|
+
height: o.height
|
|
914
|
+
}
|
|
915
|
+
};
|
|
916
|
+
};
|
|
917
|
+
function Te(t) {
|
|
918
|
+
return F(t).direction === "rtl";
|
|
919
|
+
}
|
|
920
|
+
const Pe = {
|
|
921
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: ve,
|
|
922
|
+
getDocumentElement: k,
|
|
923
|
+
getClippingRect: Se,
|
|
924
|
+
getOffsetParent: zt,
|
|
925
|
+
getElementRects: Le,
|
|
926
|
+
getClientRects: be,
|
|
927
|
+
getDimensions: Ee,
|
|
928
|
+
getScale: Z,
|
|
929
|
+
isElement: M,
|
|
930
|
+
isRTL: Te
|
|
931
|
+
};
|
|
932
|
+
function It(t, e) {
|
|
933
|
+
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
934
|
+
}
|
|
935
|
+
function Me(t, e) {
|
|
936
|
+
let n = null, o;
|
|
937
|
+
const i = k(t);
|
|
938
|
+
function s() {
|
|
939
|
+
var c;
|
|
940
|
+
clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
|
|
941
|
+
}
|
|
942
|
+
function r(c, f) {
|
|
943
|
+
c === void 0 && (c = !1), f === void 0 && (f = 1), s();
|
|
944
|
+
const u = t.getBoundingClientRect(), {
|
|
945
|
+
left: l,
|
|
946
|
+
top: d,
|
|
947
|
+
width: m,
|
|
948
|
+
height: a
|
|
949
|
+
} = u;
|
|
950
|
+
if (c || e(), !m || !a)
|
|
951
|
+
return;
|
|
952
|
+
const h = st(d), g = st(i.clientWidth - (l + m)), w = st(i.clientHeight - (d + a)), p = st(l), y = {
|
|
953
|
+
rootMargin: -h + "px " + -g + "px " + -w + "px " + -p + "px",
|
|
954
|
+
threshold: E(0, X(1, f)) || 1
|
|
955
|
+
};
|
|
956
|
+
let b = !0;
|
|
957
|
+
function O(R) {
|
|
958
|
+
const v = R[0].intersectionRatio;
|
|
959
|
+
if (v !== f) {
|
|
960
|
+
if (!b)
|
|
961
|
+
return r();
|
|
962
|
+
v ? r(!1, v) : o = setTimeout(() => {
|
|
963
|
+
r(!1, 1e-7);
|
|
964
|
+
}, 1e3);
|
|
965
|
+
}
|
|
966
|
+
v === 1 && !It(u, t.getBoundingClientRect()) && r(), b = !1;
|
|
967
|
+
}
|
|
968
|
+
try {
|
|
969
|
+
n = new IntersectionObserver(O, {
|
|
970
|
+
...y,
|
|
971
|
+
// Handle <iframe>s
|
|
972
|
+
root: i.ownerDocument
|
|
973
|
+
});
|
|
974
|
+
} catch {
|
|
975
|
+
n = new IntersectionObserver(O, y);
|
|
976
|
+
}
|
|
977
|
+
n.observe(t);
|
|
978
|
+
}
|
|
979
|
+
return r(!0), s;
|
|
980
|
+
}
|
|
981
|
+
function $e(t, e, n, o) {
|
|
982
|
+
o === void 0 && (o = {});
|
|
983
|
+
const {
|
|
984
|
+
ancestorScroll: i = !0,
|
|
985
|
+
ancestorResize: s = !0,
|
|
986
|
+
elementResize: r = typeof ResizeObserver == "function",
|
|
987
|
+
layoutShift: c = typeof IntersectionObserver == "function",
|
|
988
|
+
animationFrame: f = !1
|
|
989
|
+
} = o, u = St(t), l = i || s ? [...u ? it(u) : [], ...e ? it(e) : []] : [];
|
|
990
|
+
l.forEach((p) => {
|
|
991
|
+
i && p.addEventListener("scroll", n, {
|
|
992
|
+
passive: !0
|
|
993
|
+
}), s && p.addEventListener("resize", n);
|
|
994
|
+
});
|
|
995
|
+
const d = u && c ? Me(u, n) : null;
|
|
996
|
+
let m = -1, a = null;
|
|
997
|
+
r && (a = new ResizeObserver((p) => {
|
|
998
|
+
let [x] = p;
|
|
999
|
+
x && x.target === u && a && e && (a.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
1000
|
+
var y;
|
|
1001
|
+
(y = a) == null || y.observe(e);
|
|
1002
|
+
})), n();
|
|
1003
|
+
}), u && !f && a.observe(u), e && a.observe(e));
|
|
1004
|
+
let h, g = f ? K(t) : null;
|
|
1005
|
+
f && w();
|
|
1006
|
+
function w() {
|
|
1007
|
+
const p = K(t);
|
|
1008
|
+
g && !It(g, p) && n(), g = p, h = requestAnimationFrame(w);
|
|
1009
|
+
}
|
|
1010
|
+
return n(), () => {
|
|
1011
|
+
var p;
|
|
1012
|
+
l.forEach((x) => {
|
|
1013
|
+
i && x.removeEventListener("scroll", n), s && x.removeEventListener("resize", n);
|
|
1014
|
+
}), d?.(), (p = a) == null || p.disconnect(), a = null, f && cancelAnimationFrame(h);
|
|
1015
|
+
};
|
|
1016
|
+
}
|
|
1017
|
+
const Ne = ue, _e = de, Be = le, He = me, Fe = ce, Ve = (t, e, n) => {
|
|
1018
|
+
const o = /* @__PURE__ */ new Map(), i = {
|
|
1019
|
+
platform: Pe,
|
|
1020
|
+
...n
|
|
1021
|
+
}, s = {
|
|
1022
|
+
...i.platform,
|
|
1023
|
+
_c: o
|
|
1024
|
+
};
|
|
1025
|
+
return se(t, e, {
|
|
1026
|
+
...i,
|
|
1027
|
+
platform: s
|
|
1028
|
+
});
|
|
1029
|
+
};
|
|
1030
|
+
function We(t) {
|
|
1031
|
+
return t != null && typeof t == "object" && "$el" in t;
|
|
1032
|
+
}
|
|
1033
|
+
function vt(t) {
|
|
1034
|
+
if (We(t)) {
|
|
1035
|
+
const e = t.$el;
|
|
1036
|
+
return Ot(e) && G(e) === "#comment" ? null : e;
|
|
1037
|
+
}
|
|
1038
|
+
return t;
|
|
1039
|
+
}
|
|
1040
|
+
function Q(t) {
|
|
1041
|
+
return typeof t == "function" ? t() : Kt(t);
|
|
1042
|
+
}
|
|
1043
|
+
function ze(t) {
|
|
1044
|
+
return {
|
|
1045
|
+
name: "arrow",
|
|
1046
|
+
options: t,
|
|
1047
|
+
fn(e) {
|
|
1048
|
+
const n = vt(Q(t.element));
|
|
1049
|
+
return n == null ? {} : Fe({
|
|
1050
|
+
element: n,
|
|
1051
|
+
padding: t.padding
|
|
1052
|
+
}).fn(e);
|
|
1053
|
+
}
|
|
1054
|
+
};
|
|
1055
|
+
}
|
|
1056
|
+
function Xt(t) {
|
|
1057
|
+
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1058
|
+
}
|
|
1059
|
+
function Vt(t, e) {
|
|
1060
|
+
const n = Xt(t);
|
|
1061
|
+
return Math.round(e * n) / n;
|
|
1062
|
+
}
|
|
1063
|
+
function Ie(t, e, n) {
|
|
1064
|
+
n === void 0 && (n = {});
|
|
1065
|
+
const o = n.whileElementsMounted, i = I(() => {
|
|
1066
|
+
var v;
|
|
1067
|
+
return (v = Q(n.open)) != null ? v : !0;
|
|
1068
|
+
}), s = I(() => Q(n.middleware)), r = I(() => {
|
|
1069
|
+
var v;
|
|
1070
|
+
return (v = Q(n.placement)) != null ? v : "bottom";
|
|
1071
|
+
}), c = I(() => {
|
|
1072
|
+
var v;
|
|
1073
|
+
return (v = Q(n.strategy)) != null ? v : "absolute";
|
|
1074
|
+
}), f = I(() => {
|
|
1075
|
+
var v;
|
|
1076
|
+
return (v = Q(n.transform)) != null ? v : !0;
|
|
1077
|
+
}), u = I(() => vt(t.value)), l = I(() => vt(e.value)), d = ot(0), m = ot(0), a = ot(c.value), h = ot(r.value), g = Yt({}), w = ot(!1), p = I(() => {
|
|
1078
|
+
const v = {
|
|
1079
|
+
position: a.value,
|
|
1080
|
+
left: "0",
|
|
1081
|
+
top: "0"
|
|
1082
|
+
};
|
|
1083
|
+
if (!l.value)
|
|
1084
|
+
return v;
|
|
1085
|
+
const A = Vt(l.value, d.value), S = Vt(l.value, m.value);
|
|
1086
|
+
return f.value ? {
|
|
1087
|
+
...v,
|
|
1088
|
+
transform: "translate(" + A + "px, " + S + "px)",
|
|
1089
|
+
...Xt(l.value) >= 1.5 && {
|
|
1090
|
+
willChange: "transform"
|
|
1091
|
+
}
|
|
1092
|
+
} : {
|
|
1093
|
+
position: a.value,
|
|
1094
|
+
left: A + "px",
|
|
1095
|
+
top: S + "px"
|
|
1096
|
+
};
|
|
1097
|
+
});
|
|
1098
|
+
let x;
|
|
1099
|
+
function y() {
|
|
1100
|
+
if (u.value == null || l.value == null)
|
|
1101
|
+
return;
|
|
1102
|
+
const v = i.value;
|
|
1103
|
+
Ve(u.value, l.value, {
|
|
1104
|
+
middleware: s.value,
|
|
1105
|
+
placement: r.value,
|
|
1106
|
+
strategy: c.value
|
|
1107
|
+
}).then((A) => {
|
|
1108
|
+
d.value = A.x, m.value = A.y, a.value = A.strategy, h.value = A.placement, g.value = A.middlewareData, w.value = v !== !1;
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1111
|
+
function b() {
|
|
1112
|
+
typeof x == "function" && (x(), x = void 0);
|
|
1113
|
+
}
|
|
1114
|
+
function O() {
|
|
1115
|
+
if (b(), o === void 0) {
|
|
1116
|
+
y();
|
|
1117
|
+
return;
|
|
1118
|
+
}
|
|
1119
|
+
if (u.value != null && l.value != null) {
|
|
1120
|
+
x = o(u.value, l.value, y);
|
|
1121
|
+
return;
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
function R() {
|
|
1125
|
+
i.value || (w.value = !1);
|
|
1126
|
+
}
|
|
1127
|
+
return ht([s, r, c, i], y, {
|
|
1128
|
+
flush: "sync"
|
|
1129
|
+
}), ht([u, l], O, {
|
|
1130
|
+
flush: "sync"
|
|
1131
|
+
}), ht(i, R, {
|
|
1132
|
+
flush: "sync"
|
|
1133
|
+
}), qt() && Ut(b), {
|
|
1134
|
+
x: J(d),
|
|
1135
|
+
y: J(m),
|
|
1136
|
+
strategy: J(a),
|
|
1137
|
+
placement: J(h),
|
|
1138
|
+
middlewareData: J(g),
|
|
1139
|
+
isPositioned: J(w),
|
|
1140
|
+
floatingStyles: p,
|
|
1141
|
+
update: y
|
|
1142
|
+
};
|
|
1143
|
+
}
|
|
1144
|
+
export {
|
|
1145
|
+
$e as a,
|
|
1146
|
+
He as b,
|
|
1147
|
+
ze as c,
|
|
1148
|
+
Ve as d,
|
|
1149
|
+
Be as f,
|
|
1150
|
+
Ne as o,
|
|
1151
|
+
_e as s,
|
|
1152
|
+
Ie as u
|
|
1153
|
+
};
|