@boxcustodia/library 0.2.3 → 0.2.4
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/index.d.ts +1 -1
- package/dist/index.es101.js +2 -2
- package/dist/index.es104.js +9 -4
- package/dist/index.es105.js +4 -14
- package/dist/index.es106.js +14 -5
- package/dist/index.es107.js +4 -56
- package/dist/index.es108.js +55 -222
- package/dist/index.es109.js +224 -11
- package/dist/index.es110.js +4 -4
- package/dist/index.es111.js +11 -41
- package/dist/index.es112.js +41 -11
- package/dist/index.es113.js +21 -33
- package/dist/index.es114.js +12 -21
- package/dist/index.es115.js +4 -5
- package/dist/index.es116.js +4 -3
- package/dist/index.es117.js +4 -5
- package/dist/index.es118.js +14 -14
- package/dist/index.es119.js +813 -55
- package/dist/index.es120.js +9 -822
- package/dist/index.es121.js +5 -3
- package/dist/index.es122.js +4 -11
- package/dist/index.es123.js +64 -4
- package/dist/index.es124.js +33 -13
- package/dist/index.es125.js +13 -33
- package/dist/index.es126.js +216 -13
- package/dist/index.es127.js +13 -8
- package/dist/index.es128.js +7 -215
- package/dist/index.es130.js +1 -1
- package/dist/index.es131.js +1 -1
- package/dist/index.es132.js +12 -9
- package/dist/index.es133.js +196 -204
- package/dist/index.es134.js +41 -10
- package/dist/index.es135.js +9 -12
- package/dist/index.es136.js +204 -196
- package/dist/index.es137.js +10 -41
- package/dist/index.es139.js +1 -1
- package/dist/index.es140.js +1 -1
- package/dist/index.es141.js +12 -6
- package/dist/index.es142.js +5 -63
- package/dist/index.es143.js +64 -10
- package/dist/index.es144.js +10 -124
- package/dist/index.es145.js +116 -126
- package/dist/index.es146.js +134 -13
- package/dist/index.es147.js +14 -33
- package/dist/index.es148.js +32 -14
- package/dist/index.es149.js +14 -8
- package/dist/index.es15.js +1 -1
- package/dist/index.es150.js +9 -50
- package/dist/index.es151.js +50 -6
- package/dist/index.es152.js +6 -2
- package/dist/index.es153.js +2 -44
- package/dist/index.es154.js +40 -646
- package/dist/index.es155.js +648 -11
- package/dist/index.es156.js +5 -5
- package/dist/index.es157.js +4 -4
- package/dist/index.es158.js +45 -3
- package/dist/index.es159.js +7 -45
- package/dist/index.es160.js +4 -8
- package/dist/index.es162.js +1 -1
- package/dist/index.es163.js +6 -118
- package/dist/index.es164.js +3 -35
- package/dist/index.es165.js +2054 -2
- package/dist/index.es166.js +118 -2
- package/dist/index.es167.js +33 -6
- package/dist/index.es168.js +4 -3
- package/dist/index.es169.js +2 -2054
- package/dist/index.es176.js +1 -1
- package/dist/index.es177.js +1 -1
- package/dist/index.es178.js +1 -1
- package/dist/index.es181.js +2 -2
- package/dist/index.es183.js +1 -1
- package/dist/index.es203.js +1 -1
- package/dist/index.es22.js +2 -2
- package/dist/index.es236.js +176 -19
- package/dist/index.es237.js +15 -3
- package/dist/index.es238.js +3 -32
- package/dist/index.es239.js +32 -12
- package/dist/index.es240.js +17 -177
- package/dist/index.es242.js +5 -5
- package/dist/index.es243.js +16 -18
- package/dist/index.es246.js +1 -1
- package/dist/index.es247.js +1 -1
- package/dist/index.es248.js +3 -3
- package/dist/index.es27.js +1 -1
- package/dist/index.es275.js +12 -12
- package/dist/index.es276.js +2 -2
- package/dist/index.es277.js +2 -2
- package/dist/index.es278.js +8 -8
- package/dist/index.es279.js +2 -2
- package/dist/index.es28.js +1 -1
- package/dist/index.es283.js +16 -15
- package/dist/index.es284.js +8 -3
- package/dist/index.es285.js +15 -16
- package/dist/index.es286.js +3 -8
- package/dist/index.es29.js +3 -3
- package/dist/index.es30.js +23 -23
- package/dist/index.es32.js +2 -2
- package/dist/index.es325.js +1 -1
- package/dist/index.es33.js +2 -2
- package/dist/index.es335.js +3 -3
- package/dist/index.es338.js +1 -1
- package/dist/index.es339.js +1 -1
- package/dist/index.es34.js +46 -35
- package/dist/index.es342.js +2 -2
- package/dist/index.es343.js +2 -2
- package/dist/index.es35.js +2 -2
- package/dist/index.es350.js +2 -29
- package/dist/index.es351.js +106 -5
- package/dist/index.es352.js +76 -2
- package/dist/index.es353.js +36 -107
- package/dist/index.es354.js +60 -73
- package/dist/index.es355.js +28 -30
- package/dist/index.es356.js +63 -61
- package/dist/index.es357.js +109 -30
- package/dist/index.es358.js +87 -59
- package/dist/index.es359.js +40 -110
- package/dist/index.es360.js +3 -94
- package/dist/index.es361.js +3 -43
- package/dist/index.es362.js +2 -2
- package/dist/index.es363.js +2 -2
- package/dist/index.es364.js +2 -2
- package/dist/index.es366.js +2 -2
- package/dist/index.es367.js +2 -2
- package/dist/index.es368.js +2 -2
- package/dist/index.es369.js +241 -4
- package/dist/index.es370.js +384 -4
- package/dist/index.es371.js +132 -204
- package/dist/index.es372.js +103 -334
- package/dist/index.es373.js +75 -102
- package/dist/index.es374.js +4 -153
- package/dist/index.es375.js +4 -142
- package/dist/index.es376.js +2 -2
- package/dist/index.es377.js +2 -2
- package/dist/index.es378.js +2 -2
- package/dist/index.es379.js +2 -2
- package/dist/index.es38.js +1 -1
- package/dist/index.es380.js +29 -2
- package/dist/index.es381.js +5 -2
- package/dist/index.es39.js +1 -1
- package/dist/index.es393.js +1 -1
- package/dist/index.es394.js +1 -1
- package/dist/index.es404.js +68 -2
- package/dist/index.es405.js +31 -47
- package/dist/index.es406.js +16 -83
- package/dist/index.es407.js +140 -13
- package/dist/index.es408.js +113 -340
- package/dist/index.es409.js +507 -63
- package/dist/index.es41.js +1 -1
- package/dist/index.es410.js +126 -10
- package/dist/index.es411.js +117 -510
- package/dist/index.es412.js +64 -116
- package/dist/index.es413.js +10 -125
- package/dist/index.es414.js +2 -68
- package/dist/index.es415.js +47 -31
- package/dist/index.es416.js +83 -16
- package/dist/index.es417.js +13 -140
- package/dist/index.es418.js +340 -113
- package/dist/index.es43.js +1 -1
- package/dist/index.es439.js +2 -2
- package/dist/index.es44.js +4 -4
- package/dist/index.es441.js +275 -3
- package/dist/index.es442.js +78 -105
- package/dist/index.es443.js +166 -2
- package/dist/index.es444.js +3 -2
- package/dist/index.es445.js +100 -268
- package/dist/index.es446.js +2 -80
- package/dist/index.es447.js +2 -166
- package/dist/index.es45.js +1 -1
- package/dist/index.es46.js +5 -5
- package/dist/index.es475.js +1 -1
- package/dist/index.es476.js +1 -1
- package/dist/index.es49.js +2 -2
- package/dist/index.es50.js +1 -1
- package/dist/index.es51.js +4 -4
- package/dist/index.es54.js +1 -1
- package/dist/index.es57.js +3 -3
- package/dist/index.es59.js +2 -2
- package/dist/index.es61.js +1 -1
- package/dist/index.es62.js +1 -1
- package/dist/index.es63.js +2 -2
- package/dist/index.es64.js +1 -1
- package/dist/index.es65.js +3 -3
- package/dist/index.es66.js +2 -2
- package/dist/index.es67.js +2 -2
- package/dist/index.es753.js +5 -5
- package/dist/index.es754.js +22 -14
- package/dist/index.es755.js +82 -59
- package/dist/index.es756.js +14 -22
- package/dist/index.es757.js +59 -82
- package/dist/index.es769.js +2 -8
- package/dist/index.es770.js +2 -56
- package/dist/index.es771.js +7 -18
- package/dist/index.es772.js +56 -2
- package/dist/index.es773.js +19 -2
- package/dist/index.es780.js +28 -28
- package/dist/index.es782.js +5 -5
- package/dist/index.es783.js +13 -17
- package/dist/index.es785.js +5 -11
- package/dist/index.es786.js +28 -28
- package/dist/index.es787.js +5 -5
- package/dist/index.es788.js +17 -13
- package/dist/index.es789.js +11 -5
- package/dist/index.es79.js +1 -1
- package/dist/index.es790.js +1 -1
- package/dist/index.es796.js +1 -1
- package/dist/index.es797.js +1 -1
- package/dist/index.es798.js +1 -1
- package/dist/index.es799.js +1 -1
- package/dist/index.es80.js +1 -1
- package/dist/index.es801.js +1 -1
- package/dist/index.es805.js +8 -10
- package/dist/index.es806.js +9 -7
- package/dist/index.es807.js +1 -1
- package/dist/index.es808.js +10 -8
- package/dist/index.es809.js +7 -9
- package/dist/index.es810.js +5 -5
- package/dist/index.es811.js +2 -2
- package/dist/index.es812.js +1 -1
- package/dist/index.es814.js +2 -2
- package/dist/index.es822.js +1 -1
- package/dist/index.es824.js +25 -38
- package/dist/index.es825.js +38 -25
- package/dist/index.es826.js +15 -64
- package/dist/index.es827.js +7 -11
- package/dist/index.es828.js +61 -38
- package/dist/index.es829.js +7 -54
- package/dist/index.es830.js +40 -16
- package/dist/index.es831.js +57 -17
- package/dist/index.es832.js +20 -7
- package/dist/index.es833.js +1 -1
- package/dist/index.es84.js +305 -33
- package/dist/index.es85.js +12 -46
- package/dist/index.es86.js +34 -29
- package/dist/index.es87.js +42 -26
- package/dist/index.es88.js +27 -304
- package/dist/index.es89.js +30 -12
- package/dist/index.es90.js +55 -9
- package/dist/index.es91.js +52 -52
- package/dist/index.es92.js +92 -55
- package/dist/index.es93.js +34 -87
- package/dist/index.es94.js +23 -36
- package/dist/index.es95.js +24 -18
- package/dist/index.es96.js +257 -28
- package/dist/index.es97.js +5 -5
- package/dist/index.es98.js +32 -258
- package/dist/index.es99.js +5 -5
- package/dist/style.css +8 -8
- package/package.json +1 -1
package/dist/index.es411.js
CHANGED
|
@@ -1,521 +1,128 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
let {
|
|
4
|
-
reference: s,
|
|
5
|
-
floating: r
|
|
6
|
-
} = t;
|
|
7
|
-
const n = V(e), o = K(e), m = U(o), a = F(e), g = n === "y", u = s.x + s.width / 2 - r.width / 2, l = s.y + s.height / 2 - r.height / 2, f = s[m] / 2 - r[m] / 2;
|
|
8
|
-
let i;
|
|
9
|
-
switch (a) {
|
|
10
|
-
case "top":
|
|
11
|
-
i = {
|
|
12
|
-
x: u,
|
|
13
|
-
y: s.y - r.height
|
|
14
|
-
};
|
|
15
|
-
break;
|
|
16
|
-
case "bottom":
|
|
17
|
-
i = {
|
|
18
|
-
x: u,
|
|
19
|
-
y: s.y + s.height
|
|
20
|
-
};
|
|
21
|
-
break;
|
|
22
|
-
case "right":
|
|
23
|
-
i = {
|
|
24
|
-
x: s.x + s.width,
|
|
25
|
-
y: l
|
|
26
|
-
};
|
|
27
|
-
break;
|
|
28
|
-
case "left":
|
|
29
|
-
i = {
|
|
30
|
-
x: s.x - r.width,
|
|
31
|
-
y: l
|
|
32
|
-
};
|
|
33
|
-
break;
|
|
34
|
-
default:
|
|
35
|
-
i = {
|
|
36
|
-
x: s.x,
|
|
37
|
-
y: s.y
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
switch (X(e)) {
|
|
41
|
-
case "start":
|
|
42
|
-
i[o] -= f * (d && g ? -1 : 1);
|
|
43
|
-
break;
|
|
44
|
-
case "end":
|
|
45
|
-
i[o] += f * (d && g ? -1 : 1);
|
|
46
|
-
break;
|
|
47
|
-
}
|
|
48
|
-
return i;
|
|
1
|
+
function l(n) {
|
|
2
|
+
return d(n) ? (n.nodeName || "").toLowerCase() : "#document";
|
|
49
3
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
y: p,
|
|
72
|
-
data: A,
|
|
73
|
-
reset: h
|
|
74
|
-
} = await y({
|
|
75
|
-
x: u,
|
|
76
|
-
y: l,
|
|
77
|
-
initialPlacement: s,
|
|
78
|
-
placement: f,
|
|
79
|
-
strategy: r,
|
|
80
|
-
middlewareData: i,
|
|
81
|
-
rects: g,
|
|
82
|
-
platform: o,
|
|
83
|
-
elements: {
|
|
84
|
-
reference: t,
|
|
85
|
-
floating: e
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
u = v ?? u, l = p ?? l, i = {
|
|
89
|
-
...i,
|
|
90
|
-
[x]: {
|
|
91
|
-
...i[x],
|
|
92
|
-
...A
|
|
93
|
-
}
|
|
94
|
-
}, h && c <= 50 && (c++, typeof h == "object" && (h.placement && (f = h.placement), h.rects && (g = h.rects === !0 ? await o.getElementRects({
|
|
95
|
-
reference: t,
|
|
96
|
-
floating: e,
|
|
97
|
-
strategy: r
|
|
98
|
-
}) : h.rects), {
|
|
99
|
-
x: u,
|
|
100
|
-
y: l
|
|
101
|
-
} = q(g, f, a)), w = -1);
|
|
102
|
-
}
|
|
103
|
-
return {
|
|
104
|
-
x: u,
|
|
105
|
-
y: l,
|
|
106
|
-
placement: f,
|
|
107
|
-
strategy: r,
|
|
108
|
-
middlewareData: i
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
async function z(t, e) {
|
|
112
|
-
var d;
|
|
113
|
-
e === void 0 && (e = {});
|
|
4
|
+
function c(n) {
|
|
5
|
+
var t;
|
|
6
|
+
return (n == null || (t = n.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
7
|
+
}
|
|
8
|
+
function S(n) {
|
|
9
|
+
var t;
|
|
10
|
+
return (t = (d(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : t.documentElement;
|
|
11
|
+
}
|
|
12
|
+
function d(n) {
|
|
13
|
+
return n instanceof Node || n instanceof c(n).Node;
|
|
14
|
+
}
|
|
15
|
+
function p(n) {
|
|
16
|
+
return n instanceof Element || n instanceof c(n).Element;
|
|
17
|
+
}
|
|
18
|
+
function m(n) {
|
|
19
|
+
return n instanceof HTMLElement || n instanceof c(n).HTMLElement;
|
|
20
|
+
}
|
|
21
|
+
function f(n) {
|
|
22
|
+
return typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof c(n).ShadowRoot;
|
|
23
|
+
}
|
|
24
|
+
function w(n) {
|
|
114
25
|
const {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
} = t, {
|
|
122
|
-
boundary: g = "clippingAncestors",
|
|
123
|
-
rootBoundary: u = "viewport",
|
|
124
|
-
elementContext: l = "floating",
|
|
125
|
-
altBoundary: f = !1,
|
|
126
|
-
padding: i = 0
|
|
127
|
-
} = D(e, t), c = N(i), x = m[f ? l === "floating" ? "reference" : "floating" : l], y = I(await n.getClippingRect({
|
|
128
|
-
element: (d = await (n.isElement == null ? void 0 : n.isElement(x))) == null || d ? x : x.contextElement || await (n.getDocumentElement == null ? void 0 : n.getDocumentElement(m.floating)),
|
|
129
|
-
boundary: g,
|
|
130
|
-
rootBoundary: u,
|
|
131
|
-
strategy: a
|
|
132
|
-
})), v = l === "floating" ? {
|
|
133
|
-
x: s,
|
|
134
|
-
y: r,
|
|
135
|
-
width: o.floating.width,
|
|
136
|
-
height: o.floating.height
|
|
137
|
-
} : o.reference, p = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(m.floating)), A = await (n.isElement == null ? void 0 : n.isElement(p)) ? await (n.getScale == null ? void 0 : n.getScale(p)) || {
|
|
138
|
-
x: 1,
|
|
139
|
-
y: 1
|
|
140
|
-
} : {
|
|
141
|
-
x: 1,
|
|
142
|
-
y: 1
|
|
143
|
-
}, h = I(n.convertOffsetParentRelativeRectToViewportRelativeRect ? await n.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
144
|
-
elements: m,
|
|
145
|
-
rect: v,
|
|
146
|
-
offsetParent: p,
|
|
147
|
-
strategy: a
|
|
148
|
-
}) : v);
|
|
149
|
-
return {
|
|
150
|
-
top: (y.top - h.top + c.top) / A.y,
|
|
151
|
-
bottom: (h.bottom - y.bottom + c.bottom) / A.y,
|
|
152
|
-
left: (y.left - h.left + c.left) / A.x,
|
|
153
|
-
right: (h.right - y.right + c.right) / A.x
|
|
154
|
-
};
|
|
26
|
+
overflow: t,
|
|
27
|
+
overflowX: e,
|
|
28
|
+
overflowY: o,
|
|
29
|
+
display: r
|
|
30
|
+
} = g(n);
|
|
31
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + o + e) && !["inline", "contents"].includes(r);
|
|
155
32
|
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
platform: o,
|
|
166
|
-
elements: m,
|
|
167
|
-
middlewareData: a
|
|
168
|
-
} = e, {
|
|
169
|
-
element: g,
|
|
170
|
-
padding: u = 0
|
|
171
|
-
} = D(t, e) || {};
|
|
172
|
-
if (g == null)
|
|
173
|
-
return {};
|
|
174
|
-
const l = N(u), f = {
|
|
175
|
-
x: d,
|
|
176
|
-
y: s
|
|
177
|
-
}, i = K(r), c = U(i), w = await o.getDimensions(g), x = i === "y", y = x ? "top" : "left", v = x ? "bottom" : "right", p = x ? "clientHeight" : "clientWidth", A = n.reference[c] + n.reference[i] - f[i] - n.floating[c], h = f[i] - n.reference[i], O = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(g));
|
|
178
|
-
let C = O ? O[p] : 0;
|
|
179
|
-
(!C || !await (o.isElement == null ? void 0 : o.isElement(O))) && (C = m.floating[p] || n.floating[c]);
|
|
180
|
-
const M = A / 2 - h / 2, R = C / 2 - w[c] / 2 - 1, P = W(l[y], R), E = W(l[v], R), H = P, Y = C - w[c] - E, b = C / 2 - w[c] / 2 + M, B = $(H, b, Y), k = !a.arrow && X(r) != null && b !== B && n.reference[c] / 2 - (b < H ? P : E) - w[c] / 2 < 0, S = k ? b < H ? b - H : b - Y : 0;
|
|
181
|
-
return {
|
|
182
|
-
[i]: f[i] + S,
|
|
183
|
-
data: {
|
|
184
|
-
[i]: B,
|
|
185
|
-
centerOffset: b - B - S,
|
|
186
|
-
...k && {
|
|
187
|
-
alignmentOffset: S
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
reset: k
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
}), le = function(t) {
|
|
194
|
-
return t === void 0 && (t = {}), {
|
|
195
|
-
name: "flip",
|
|
196
|
-
options: t,
|
|
197
|
-
async fn(e) {
|
|
198
|
-
var d, s;
|
|
199
|
-
const {
|
|
200
|
-
placement: r,
|
|
201
|
-
middlewareData: n,
|
|
202
|
-
rects: o,
|
|
203
|
-
initialPlacement: m,
|
|
204
|
-
platform: a,
|
|
205
|
-
elements: g
|
|
206
|
-
} = e, {
|
|
207
|
-
mainAxis: u = !0,
|
|
208
|
-
crossAxis: l = !0,
|
|
209
|
-
fallbackPlacements: f,
|
|
210
|
-
fallbackStrategy: i = "bestFit",
|
|
211
|
-
fallbackAxisSideDirection: c = "none",
|
|
212
|
-
flipAlignment: w = !0,
|
|
213
|
-
...x
|
|
214
|
-
} = D(t, e);
|
|
215
|
-
if ((d = n.arrow) != null && d.alignmentOffset)
|
|
216
|
-
return {};
|
|
217
|
-
const y = F(r), v = V(m), p = F(m) === m, A = await (a.isRTL == null ? void 0 : a.isRTL(g.floating)), h = f || (p || !w ? [_(m)] : ee(m)), O = c !== "none";
|
|
218
|
-
!f && O && h.push(...te(m, w, c, A));
|
|
219
|
-
const C = [m, ...h], M = await z(e, x), R = [];
|
|
220
|
-
let P = ((s = n.flip) == null ? void 0 : s.overflows) || [];
|
|
221
|
-
if (u && R.push(M[y]), l) {
|
|
222
|
-
const b = ne(r, o, A);
|
|
223
|
-
R.push(M[b[0]], M[b[1]]);
|
|
224
|
-
}
|
|
225
|
-
if (P = [...P, {
|
|
226
|
-
placement: r,
|
|
227
|
-
overflows: R
|
|
228
|
-
}], !R.every((b) => b <= 0)) {
|
|
229
|
-
var E, H;
|
|
230
|
-
const b = (((E = n.flip) == null ? void 0 : E.index) || 0) + 1, B = C[b];
|
|
231
|
-
if (B)
|
|
232
|
-
return {
|
|
233
|
-
data: {
|
|
234
|
-
index: b,
|
|
235
|
-
overflows: P
|
|
236
|
-
},
|
|
237
|
-
reset: {
|
|
238
|
-
placement: B
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
let k = (H = P.filter((S) => S.overflows[0] <= 0).sort((S, T) => S.overflows[1] - T.overflows[1])[0]) == null ? void 0 : H.placement;
|
|
242
|
-
if (!k)
|
|
243
|
-
switch (i) {
|
|
244
|
-
case "bestFit": {
|
|
245
|
-
var Y;
|
|
246
|
-
const S = (Y = P.filter((T) => {
|
|
247
|
-
if (O) {
|
|
248
|
-
const L = V(T.placement);
|
|
249
|
-
return L === v || // Create a bias to the `y` side axis due to horizontal
|
|
250
|
-
// reading directions favoring greater width.
|
|
251
|
-
L === "y";
|
|
252
|
-
}
|
|
253
|
-
return !0;
|
|
254
|
-
}).map((T) => [T.placement, T.overflows.filter((L) => L > 0).reduce((L, Z) => L + Z, 0)]).sort((T, L) => T[1] - L[1])[0]) == null ? void 0 : Y[0];
|
|
255
|
-
S && (k = S);
|
|
256
|
-
break;
|
|
257
|
-
}
|
|
258
|
-
case "initialPlacement":
|
|
259
|
-
k = m;
|
|
260
|
-
break;
|
|
261
|
-
}
|
|
262
|
-
if (r !== k)
|
|
263
|
-
return {
|
|
264
|
-
reset: {
|
|
265
|
-
placement: k
|
|
266
|
-
}
|
|
267
|
-
};
|
|
268
|
-
}
|
|
269
|
-
return {};
|
|
33
|
+
function L(n) {
|
|
34
|
+
return ["table", "td", "th"].includes(l(n));
|
|
35
|
+
}
|
|
36
|
+
function E(n) {
|
|
37
|
+
return [":popover-open", ":modal"].some((t) => {
|
|
38
|
+
try {
|
|
39
|
+
return n.matches(t);
|
|
40
|
+
} catch {
|
|
41
|
+
return !1;
|
|
270
42
|
}
|
|
271
|
-
};
|
|
272
|
-
};
|
|
273
|
-
function G(t, e) {
|
|
274
|
-
return {
|
|
275
|
-
top: t.top - e.height,
|
|
276
|
-
right: t.right - e.width,
|
|
277
|
-
bottom: t.bottom - e.height,
|
|
278
|
-
left: t.left - e.width
|
|
279
|
-
};
|
|
43
|
+
});
|
|
280
44
|
}
|
|
281
|
-
function
|
|
282
|
-
|
|
45
|
+
function N(n) {
|
|
46
|
+
const t = T(), e = p(n) ? g(n) : n;
|
|
47
|
+
return e.transform !== "none" || e.perspective !== "none" || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (e.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (e.contain || "").includes(o));
|
|
283
48
|
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
case "escaped": {
|
|
309
|
-
const n = await z(e, {
|
|
310
|
-
...r,
|
|
311
|
-
altBoundary: !0
|
|
312
|
-
}), o = G(n, d.floating);
|
|
313
|
-
return {
|
|
314
|
-
data: {
|
|
315
|
-
escapedOffsets: o,
|
|
316
|
-
escaped: J(o)
|
|
317
|
-
}
|
|
318
|
-
};
|
|
319
|
-
}
|
|
320
|
-
default:
|
|
321
|
-
return {};
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
};
|
|
325
|
-
};
|
|
326
|
-
async function se(t, e) {
|
|
327
|
-
const {
|
|
328
|
-
placement: d,
|
|
329
|
-
platform: s,
|
|
330
|
-
elements: r
|
|
331
|
-
} = t, n = await (s.isRTL == null ? void 0 : s.isRTL(r.floating)), o = F(d), m = X(d), a = V(d) === "y", g = ["left", "top"].includes(o) ? -1 : 1, u = n && a ? -1 : 1, l = D(e, t);
|
|
332
|
-
let {
|
|
333
|
-
mainAxis: f,
|
|
334
|
-
crossAxis: i,
|
|
335
|
-
alignmentAxis: c
|
|
336
|
-
} = typeof l == "number" ? {
|
|
337
|
-
mainAxis: l,
|
|
338
|
-
crossAxis: 0,
|
|
339
|
-
alignmentAxis: null
|
|
340
|
-
} : {
|
|
341
|
-
mainAxis: 0,
|
|
342
|
-
crossAxis: 0,
|
|
343
|
-
alignmentAxis: null,
|
|
344
|
-
...l
|
|
345
|
-
};
|
|
346
|
-
return m && typeof c == "number" && (i = m === "end" ? c * -1 : c), a ? {
|
|
347
|
-
x: i * u,
|
|
348
|
-
y: f * g
|
|
49
|
+
function D(n) {
|
|
50
|
+
let t = u(n);
|
|
51
|
+
for (; m(t) && !y(t); ) {
|
|
52
|
+
if (N(t))
|
|
53
|
+
return t;
|
|
54
|
+
if (E(t))
|
|
55
|
+
return null;
|
|
56
|
+
t = u(t);
|
|
57
|
+
}
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
function T() {
|
|
61
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
62
|
+
}
|
|
63
|
+
function y(n) {
|
|
64
|
+
return ["html", "body", "#document"].includes(l(n));
|
|
65
|
+
}
|
|
66
|
+
function g(n) {
|
|
67
|
+
return c(n).getComputedStyle(n);
|
|
68
|
+
}
|
|
69
|
+
function k(n) {
|
|
70
|
+
return p(n) ? {
|
|
71
|
+
scrollLeft: n.scrollLeft,
|
|
72
|
+
scrollTop: n.scrollTop
|
|
349
73
|
} : {
|
|
350
|
-
|
|
351
|
-
|
|
74
|
+
scrollLeft: n.scrollX,
|
|
75
|
+
scrollTop: n.scrollY
|
|
352
76
|
};
|
|
353
77
|
}
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
y: s,
|
|
384
|
-
placement: r
|
|
385
|
-
} = e, {
|
|
386
|
-
mainAxis: n = !0,
|
|
387
|
-
crossAxis: o = !1,
|
|
388
|
-
limiter: m = {
|
|
389
|
-
fn: (x) => {
|
|
390
|
-
let {
|
|
391
|
-
x: y,
|
|
392
|
-
y: v
|
|
393
|
-
} = x;
|
|
394
|
-
return {
|
|
395
|
-
x: y,
|
|
396
|
-
y: v
|
|
397
|
-
};
|
|
398
|
-
}
|
|
399
|
-
},
|
|
400
|
-
...a
|
|
401
|
-
} = D(t, e), g = {
|
|
402
|
-
x: d,
|
|
403
|
-
y: s
|
|
404
|
-
}, u = await z(e, a), l = V(F(r)), f = Q(l);
|
|
405
|
-
let i = g[f], c = g[l];
|
|
406
|
-
if (n) {
|
|
407
|
-
const x = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", v = i + u[x], p = i - u[y];
|
|
408
|
-
i = $(v, i, p);
|
|
409
|
-
}
|
|
410
|
-
if (o) {
|
|
411
|
-
const x = l === "y" ? "top" : "left", y = l === "y" ? "bottom" : "right", v = c + u[x], p = c - u[y];
|
|
412
|
-
c = $(v, c, p);
|
|
413
|
-
}
|
|
414
|
-
const w = m.fn({
|
|
415
|
-
...e,
|
|
416
|
-
[f]: i,
|
|
417
|
-
[l]: c
|
|
418
|
-
});
|
|
419
|
-
return {
|
|
420
|
-
...w,
|
|
421
|
-
data: {
|
|
422
|
-
x: w.x - d,
|
|
423
|
-
y: w.y - s
|
|
424
|
-
}
|
|
425
|
-
};
|
|
426
|
-
}
|
|
427
|
-
};
|
|
428
|
-
}, de = function(t) {
|
|
429
|
-
return t === void 0 && (t = {}), {
|
|
430
|
-
options: t,
|
|
431
|
-
fn(e) {
|
|
432
|
-
const {
|
|
433
|
-
x: d,
|
|
434
|
-
y: s,
|
|
435
|
-
placement: r,
|
|
436
|
-
rects: n,
|
|
437
|
-
middlewareData: o
|
|
438
|
-
} = e, {
|
|
439
|
-
offset: m = 0,
|
|
440
|
-
mainAxis: a = !0,
|
|
441
|
-
crossAxis: g = !0
|
|
442
|
-
} = D(t, e), u = {
|
|
443
|
-
x: d,
|
|
444
|
-
y: s
|
|
445
|
-
}, l = V(r), f = Q(l);
|
|
446
|
-
let i = u[f], c = u[l];
|
|
447
|
-
const w = D(m, e), x = typeof w == "number" ? {
|
|
448
|
-
mainAxis: w,
|
|
449
|
-
crossAxis: 0
|
|
450
|
-
} : {
|
|
451
|
-
mainAxis: 0,
|
|
452
|
-
crossAxis: 0,
|
|
453
|
-
...w
|
|
454
|
-
};
|
|
455
|
-
if (a) {
|
|
456
|
-
const p = f === "y" ? "height" : "width", A = n.reference[f] - n.floating[p] + x.mainAxis, h = n.reference[f] + n.reference[p] - x.mainAxis;
|
|
457
|
-
i < A ? i = A : i > h && (i = h);
|
|
458
|
-
}
|
|
459
|
-
if (g) {
|
|
460
|
-
var y, v;
|
|
461
|
-
const p = f === "y" ? "width" : "height", A = ["top", "left"].includes(F(r)), h = n.reference[l] - n.floating[p] + (A && ((y = o.offset) == null ? void 0 : y[l]) || 0) + (A ? 0 : x.crossAxis), O = n.reference[l] + n.reference[p] + (A ? 0 : ((v = o.offset) == null ? void 0 : v[l]) || 0) - (A ? x.crossAxis : 0);
|
|
462
|
-
c < h ? c = h : c > O && (c = O);
|
|
463
|
-
}
|
|
464
|
-
return {
|
|
465
|
-
[f]: i,
|
|
466
|
-
[l]: c
|
|
467
|
-
};
|
|
468
|
-
}
|
|
469
|
-
};
|
|
470
|
-
}, ue = function(t) {
|
|
471
|
-
return t === void 0 && (t = {}), {
|
|
472
|
-
name: "size",
|
|
473
|
-
options: t,
|
|
474
|
-
async fn(e) {
|
|
475
|
-
const {
|
|
476
|
-
placement: d,
|
|
477
|
-
rects: s,
|
|
478
|
-
platform: r,
|
|
479
|
-
elements: n
|
|
480
|
-
} = e, {
|
|
481
|
-
apply: o = () => {
|
|
482
|
-
},
|
|
483
|
-
...m
|
|
484
|
-
} = D(t, e), a = await z(e, m), g = F(d), u = X(d), l = V(d) === "y", {
|
|
485
|
-
width: f,
|
|
486
|
-
height: i
|
|
487
|
-
} = s.floating;
|
|
488
|
-
let c, w;
|
|
489
|
-
g === "top" || g === "bottom" ? (c = g, w = u === (await (r.isRTL == null ? void 0 : r.isRTL(n.floating)) ? "start" : "end") ? "left" : "right") : (w = g, c = u === "end" ? "top" : "bottom");
|
|
490
|
-
const x = i - a.top - a.bottom, y = f - a.left - a.right, v = W(i - a[c], x), p = W(f - a[w], y), A = !e.middlewareData.shift;
|
|
491
|
-
let h = v, O = p;
|
|
492
|
-
if (l ? O = u || A ? W(p, y) : y : h = u || A ? W(v, x) : x, A && !u) {
|
|
493
|
-
const M = j(a.left, 0), R = j(a.right, 0), P = j(a.top, 0), E = j(a.bottom, 0);
|
|
494
|
-
l ? O = f - 2 * (M !== 0 || R !== 0 ? M + R : j(a.left, a.right)) : h = i - 2 * (P !== 0 || E !== 0 ? P + E : j(a.top, a.bottom));
|
|
495
|
-
}
|
|
496
|
-
await o({
|
|
497
|
-
...e,
|
|
498
|
-
availableWidth: O,
|
|
499
|
-
availableHeight: h
|
|
500
|
-
});
|
|
501
|
-
const C = await r.getDimensions(n.floating);
|
|
502
|
-
return f !== C.width || i !== C.height ? {
|
|
503
|
-
reset: {
|
|
504
|
-
rects: !0
|
|
505
|
-
}
|
|
506
|
-
} : {};
|
|
507
|
-
}
|
|
508
|
-
};
|
|
509
|
-
};
|
|
78
|
+
function u(n) {
|
|
79
|
+
if (l(n) === "html")
|
|
80
|
+
return n;
|
|
81
|
+
const t = (
|
|
82
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
83
|
+
n.assignedSlot || // DOM Element detected.
|
|
84
|
+
n.parentNode || // ShadowRoot detected.
|
|
85
|
+
f(n) && n.host || // Fallback.
|
|
86
|
+
S(n)
|
|
87
|
+
);
|
|
88
|
+
return f(t) ? t.host : t;
|
|
89
|
+
}
|
|
90
|
+
function b(n) {
|
|
91
|
+
const t = u(n);
|
|
92
|
+
return y(t) ? n.ownerDocument ? n.ownerDocument.body : n.body : m(t) && w(t) ? t : b(t);
|
|
93
|
+
}
|
|
94
|
+
function a(n, t, e) {
|
|
95
|
+
var o;
|
|
96
|
+
t === void 0 && (t = []), e === void 0 && (e = !0);
|
|
97
|
+
const r = b(n), h = r === ((o = n.ownerDocument) == null ? void 0 : o.body), i = c(r);
|
|
98
|
+
if (h) {
|
|
99
|
+
const s = v(i);
|
|
100
|
+
return t.concat(i, i.visualViewport || [], w(r) ? r : [], s && e ? a(s) : []);
|
|
101
|
+
}
|
|
102
|
+
return t.concat(r, a(r, [], e));
|
|
103
|
+
}
|
|
104
|
+
function v(n) {
|
|
105
|
+
return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
|
|
106
|
+
}
|
|
510
107
|
export {
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
108
|
+
g as getComputedStyle,
|
|
109
|
+
D as getContainingBlock,
|
|
110
|
+
S as getDocumentElement,
|
|
111
|
+
v as getFrameElement,
|
|
112
|
+
b as getNearestOverflowAncestor,
|
|
113
|
+
l as getNodeName,
|
|
114
|
+
k as getNodeScroll,
|
|
115
|
+
a as getOverflowAncestors,
|
|
116
|
+
u as getParentNode,
|
|
117
|
+
c as getWindow,
|
|
118
|
+
N as isContainingBlock,
|
|
119
|
+
p as isElement,
|
|
120
|
+
m as isHTMLElement,
|
|
121
|
+
y as isLastTraversableNode,
|
|
122
|
+
d as isNode,
|
|
123
|
+
w as isOverflowElement,
|
|
124
|
+
f as isShadowRoot,
|
|
125
|
+
L as isTableElement,
|
|
126
|
+
E as isTopLayer,
|
|
127
|
+
T as isWebKit
|
|
521
128
|
};
|