@stihl-design-system/components 1.0.0-RC.31 → 1.0.0-RC.32
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/{accordion.DkwtJy--.js → accordion.HfUSDwQJ.js} +2 -2
- package/{actionlink.C7HzeIVa.js → actionbutton.kgd0E_xF.js} +4 -3
- package/{actionbutton.u1qp8oGC.js → actionlink.CwC42RWc.js} +4 -3
- package/assets/CustomReactSelect.DGIItWIh.css +1 -0
- package/assets/InputStepper.DvFJk1Mi.css +1 -0
- package/assets/Popover.CXyUaXiO.css +1 -0
- package/assets/Select.C1gWF32A.css +1 -0
- package/assets/Slider.Bidyhb-B.css +1 -0
- package/assets/Textarea.Dq4rH9Tg.css +1 -0
- package/assets/input.CUjGh-UM.css +1 -0
- package/assets/logo100years.CQrEg-Vo.css +1 -0
- package/assets/tooltip.Co1gWF_0.css +1 -0
- package/{banner.j9YpudOS.js → banner.o4Etkjjo.js} +1 -1
- package/{breadcrumb.BS-S3zUI.js → breadcrumb.BsQm0kUD.js} +3 -3
- package/{linkbutton.D2C4vykc.js → button.Dyy6ajX6.js} +5 -3
- package/buttonround.ChKWHzsv.js +96 -0
- package/{checkbox.BtlUvs0z.js → checkbox.BNnp4ztM.js} +3 -3
- package/{checkboxgroup.C5NgyyQF.js → checkboxgroup.BTVnKenc.js} +2 -2
- package/{chip.tVIG1ysH.js → chip.C7NstOHt.js} +4 -3
- package/chipgroup.Zo1-IOCn.js +210 -0
- package/chunks/{Accordion.C5V5IcM-.js → Accordion.CnqryAUu.js} +1 -1
- package/chunks/ActionButton.DdDesD7K.js +180 -0
- package/chunks/ActionLink.DqAsPYda.js +153 -0
- package/chunks/{Breadcrumb.BGzwzvh8.js → Breadcrumb.9KinNuyQ.js} +2 -2
- package/chunks/Button.Cf1CKq8N.js +142 -0
- package/chunks/{Checkbox.DxV7-F5W.js → Checkbox.CiwriItT.js} +2 -2
- package/chunks/{CheckboxGroup.Dy_6tiGk.js → CheckboxGroup.Cj68J6Ee.js} +2 -2
- package/chunks/Chip.BrbYu6i_.js +133 -0
- package/chunks/{CustomReactSelect.iE5iTdez.js → CustomReactSelect.Cqq70QC0.js} +152 -144
- package/chunks/{Dialog.B_2pKRnd.js → Dialog.Bv7k55He.js} +1 -1
- package/chunks/{Drawer.HFlBTcqN.js → Drawer.BVTvx276.js} +1 -1
- package/chunks/{Fieldset.CjIfmN_5.js → Fieldset.D7cLR5ze.js} +1 -1
- package/chunks/Header.um5MlziB.js +377 -0
- package/chunks/Icon.NSsVrYeq.js +231 -0
- package/chunks/{InputFile.DvOatDzg.js → InputFile.bVWWdePn.js} +4 -4
- package/chunks/{InputPassword.DC2POUc1.js → InputPassword.Da3hEKTc.js} +2 -2
- package/chunks/{InputSearch.B0aCuPRZ.js → InputSearch.GOYqFCcZ.js} +2 -2
- package/chunks/InputStepper.BuhPtfl-.js +268 -0
- package/chunks/LinkButton.59oNDwPU.js +132 -0
- package/chunks/MegaMenu._o3nNDAa.js +192 -0
- package/chunks/{NavigationTabList.dYFYTmWv.js → NavigationTabList.DuT7gzhj.js} +1 -1
- package/chunks/{NavigationTabs.ClpVGcl0.js → NavigationTabs.DspPFHPh.js} +1 -1
- package/chunks/{Notification.DIdIhGTQ.js → Notification.Pts2oh0R.js} +2 -2
- package/chunks/Popover.BRR8YZ-P.js +228 -0
- package/chunks/{RadioGroup.peTeMK45.js → RadioGroup.DeTz3c19.js} +1 -1
- package/chunks/Select.D2ehd4yN.js +162 -0
- package/chunks/{Slider.kyVr7BLk.js → Slider.84lkgq3W.js} +85 -85
- package/chunks/{SystemFeedback.B9f67mjJ.js → SystemFeedback.CyGbUCzT.js} +1 -1
- package/chunks/{Tabs.CkVL8Jw8.js → Tabs.C8ADTzJ0.js} +1 -1
- package/chunks/Textarea.Cw85sxHL.js +163 -0
- package/chunks/{Toast.DHo4pLH3.js → Toast.DG3WVvau.js} +2 -2
- package/chunks/battery-charge-0.DxlgEAto.js +10 -0
- package/chunks/battery-charge-100.D0Cax7dU.js +10 -0
- package/chunks/{battery.YCg9lYqC.js → battery.6Idoickg.js} +3 -3
- package/chunks/bluetooth-off.BzZCh4Q8.js +10 -0
- package/chunks/document-s.CoOp0kBK.js +10 -0
- package/chunks/floating-ui.dom.VgHc0h4l.js +989 -0
- package/chunks/floating-ui.react.DCyAzlZ4.js +2011 -0
- package/{combobox.Bk2ycofh.js → combobox.orZ3z8CB.js} +1 -1
- package/components/ActionButton/ActionButton.d.ts +2 -0
- package/components/Button/Button.d.ts +4 -0
- package/components/ChipGroup/Chip.d.ts +1 -0
- package/components/ChipGroup/ChipGroup.d.ts +4 -0
- package/components/ChipGroup/ChipGroup.utils.d.ts +9 -9
- package/components/Header/Header.d.ts +4 -5
- package/components/InputStepper/InputStepper.d.ts +6 -0
- package/components/InputStepper/InputStepper.utils.d.ts +1 -0
- package/components/LinkButton/LinkButton.d.ts +2 -0
- package/components/Logo100Years/Logo100Years.d.ts +1 -0
- package/components/Popover/Popover.d.ts +29 -7
- package/components/Popover/Popover.utils.d.ts +34 -3
- package/components/Tooltip/Tooltip.d.ts +40 -0
- package/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/components/Tooltip/Tooltip.utils.d.ts +70 -0
- package/components/Tooltip/Tooltip.utils.test.d.ts +1 -0
- package/components/TopBar/TopBar.d.ts +4 -4
- package/components/TopBar/TopBar.utils.d.ts +1 -1
- package/{customreactselect.Hnch9LGg.js → customreactselect.Np-RpzvU.js} +4 -4
- package/{dialog.7sWoqGwL.js → dialog.D4rcbW6A.js} +2 -2
- package/{drawer.DsF4KIPn.js → drawer.BCCB3Rkj.js} +2 -2
- package/{fieldset.DUFUMcT-.js → fieldset.ZLs9IGpE.js} +2 -2
- package/{filelist.nunJKxkv.js → filelist.BiKMKCyg.js} +3 -3
- package/{flag.D_iN8iD6.js → flag.72PONA83.js} +1 -1
- package/floatingactionbutton.B2YChsNU.js +87 -0
- package/{header.QpNjE3N-.js → header.DUbn3BZt.js} +1 -1
- package/{icon.vMQcEBnH.js → icon.CHVAZr5T.js} +1 -1
- package/index.es.js +112 -111
- package/input.DG20x6gh.js +203 -0
- package/{inputfile.DK8759wV.js → inputfile.Dc56lQ4t.js} +5 -5
- package/{inputpassword.rV_ZZw5F.js → inputpassword.znFHRLsI.js} +3 -3
- package/{inputsearch.CmhakTpa.js → inputsearch.B1G6rfVk.js} +3 -3
- package/{inputstepper.Y-YzUHhF.js → inputstepper.o6rdM_CW.js} +3 -3
- package/link.DbnvsD3j.js +81 -0
- package/{button.CPilCCUI.js → linkbutton.DU8Ih8ZF.js} +4 -4
- package/logo100years.BcB6_c-o.js +24 -0
- package/logo100years.d.ts +2 -0
- package/{megamenu.CdHrEeoh.js → megamenu.CPH8EeFF.js} +3 -3
- package/{navigationtablist.CVjh1k-b.js → navigationtablist.C0iwsAad.js} +2 -2
- package/{navigationtabs.BGfi9AG2.js → navigationtabs.JjJtbuUe.js} +2 -2
- package/{notification.Dn-FZWEL.js → notification.Ds_Q7ifk.js} +3 -3
- package/{optioncheckbox.D97W3zeW.js → optioncheckbox.DqfXuPdi.js} +1 -1
- package/package.json +2 -3
- package/partials/index.js +14 -14
- package/{popover.DXxm1oWI.js → popover.B72W0OvU.js} +4 -3
- package/{radiogroup.J8WpEEo8.js → radiogroup.C_3IcNBq.js} +2 -2
- package/{scroller.BiRLQg__.js → scroller.CQxmQU6U.js} +1 -1
- package/{select.DIzGPVx3.js → select.Ceyt-zvu.js} +3 -3
- package/{skiptocontent._F-d8y5b.js → skiptocontent.BSCde5hT.js} +1 -1
- package/{slider.DuJK0RdB.js → slider.Dq2dcziy.js} +2 -2
- package/{spinner.Dht6FspZ.js → spinner.BUjhjAvw.js} +1 -1
- package/{switch.B37S4vfP.js → switch.D7BCfyyZ.js} +2 -2
- package/{systemfeedback.C_2PhwKe.js → systemfeedback.CSdWOWuf.js} +2 -2
- package/{tablist.g_Nwu6GA.js → tablist.V7DBklhE.js} +3 -3
- package/{tabs.oh9-wHPp.js → tabs.DQNLPAEN.js} +2 -2
- package/{textarea.dQ12-oYB.js → textarea.CixKeQBp.js} +2 -2
- package/{toast.sMNbfKxi.js → toast.D8QprMCa.js} +3 -3
- package/{toastmanager.CVamaS5T.js → toastmanager.BSVjYsg9.js} +1 -1
- package/tooltip.CUCSRXd3.js +191 -0
- package/tooltip.d.ts +2 -0
- package/{topbar.Dhy_TL0U.js → topbar.CVhJy-Br.js} +3 -2
- package/types/icon-types.d.ts +1 -1
- package/types/prettier-plugin-organize-imports.d.ts +1 -0
- package/assets/CustomReactSelect.D0b1Hg1T.css +0 -1
- package/assets/InputStepper.Dth4qZN_.css +0 -1
- package/assets/Popover.BDTDsPAt.css +0 -1
- package/assets/Select.CYACicZ3.css +0 -1
- package/assets/Slider.DzwSjDPV.css +0 -1
- package/assets/Textarea.BXWhXpXx.css +0 -1
- package/assets/input.ONbL-_C1.css +0 -1
- package/buttonround.C426mO4d.js +0 -81
- package/chipgroup.CjIK0Z0x.js +0 -209
- package/chunks/ActionButton.B8zFwOrJ.js +0 -165
- package/chunks/ActionLink.IX6oRXU3.js +0 -138
- package/chunks/Button.B7xF1E19.js +0 -127
- package/chunks/Chip.31UfPwQF.js +0 -119
- package/chunks/Header.DqZRryB5.js +0 -366
- package/chunks/Icon.DGTYCv63.js +0 -231
- package/chunks/InputStepper.D_1YqlWl.js +0 -263
- package/chunks/LinkButton.DdTspmJz.js +0 -117
- package/chunks/MegaMenu.BY7eOnhj.js +0 -189
- package/chunks/Popover.NGetxKGg.js +0 -159
- package/chunks/Select.BDHLJ2ma.js +0 -162
- package/chunks/Textarea.ORkJUx-S.js +0 -163
- package/chunks/floating-ui.dom.C9TD1WpB.js +0 -950
- package/chunks/floating-ui.react.x0F9CYgn.js +0 -1637
- package/floatingactionbutton.DOH2k0gv.js +0 -72
- package/input.BKHOY118.js +0 -203
- package/link.D_FjTyoZ.js +0 -66
|
@@ -0,0 +1,989 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
function st() {
|
|
3
|
+
return typeof window < "u";
|
|
4
|
+
}
|
|
5
|
+
function X(t) {
|
|
6
|
+
return At(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
7
|
+
}
|
|
8
|
+
function R(t) {
|
|
9
|
+
var e;
|
|
10
|
+
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
11
|
+
}
|
|
12
|
+
function S(t) {
|
|
13
|
+
var e;
|
|
14
|
+
return (e = (At(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
15
|
+
}
|
|
16
|
+
function At(t) {
|
|
17
|
+
return st() ? t instanceof Node || t instanceof R(t).Node : !1;
|
|
18
|
+
}
|
|
19
|
+
function C(t) {
|
|
20
|
+
return st() ? t instanceof Element || t instanceof R(t).Element : !1;
|
|
21
|
+
}
|
|
22
|
+
function P(t) {
|
|
23
|
+
return st() ? t instanceof HTMLElement || t instanceof R(t).HTMLElement : !1;
|
|
24
|
+
}
|
|
25
|
+
function xt(t) {
|
|
26
|
+
return !st() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof R(t).ShadowRoot;
|
|
27
|
+
}
|
|
28
|
+
function Q(t) {
|
|
29
|
+
const {
|
|
30
|
+
overflow: e,
|
|
31
|
+
overflowX: n,
|
|
32
|
+
overflowY: o,
|
|
33
|
+
display: i
|
|
34
|
+
} = E(t);
|
|
35
|
+
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !["inline", "contents"].includes(i);
|
|
36
|
+
}
|
|
37
|
+
function Bt(t) {
|
|
38
|
+
return ["table", "td", "th"].includes(X(t));
|
|
39
|
+
}
|
|
40
|
+
function rt(t) {
|
|
41
|
+
return [":popover-open", ":modal"].some((e) => {
|
|
42
|
+
try {
|
|
43
|
+
return t.matches(e);
|
|
44
|
+
} catch {
|
|
45
|
+
return !1;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function dt(t) {
|
|
50
|
+
const e = mt(), n = C(t) ? E(t) : t;
|
|
51
|
+
return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
|
|
52
|
+
}
|
|
53
|
+
function Mt(t) {
|
|
54
|
+
let e = N(t);
|
|
55
|
+
for (; P(e) && !j(e); ) {
|
|
56
|
+
if (dt(e))
|
|
57
|
+
return e;
|
|
58
|
+
if (rt(e))
|
|
59
|
+
return null;
|
|
60
|
+
e = N(e);
|
|
61
|
+
}
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
function mt() {
|
|
65
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
66
|
+
}
|
|
67
|
+
function j(t) {
|
|
68
|
+
return ["html", "body", "#document"].includes(X(t));
|
|
69
|
+
}
|
|
70
|
+
function E(t) {
|
|
71
|
+
return R(t).getComputedStyle(t);
|
|
72
|
+
}
|
|
73
|
+
function ct(t) {
|
|
74
|
+
return C(t) ? {
|
|
75
|
+
scrollLeft: t.scrollLeft,
|
|
76
|
+
scrollTop: t.scrollTop
|
|
77
|
+
} : {
|
|
78
|
+
scrollLeft: t.scrollX,
|
|
79
|
+
scrollTop: t.scrollY
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function N(t) {
|
|
83
|
+
if (X(t) === "html")
|
|
84
|
+
return t;
|
|
85
|
+
const e = (
|
|
86
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
87
|
+
t.assignedSlot || // DOM Element detected.
|
|
88
|
+
t.parentNode || // ShadowRoot detected.
|
|
89
|
+
xt(t) && t.host || // Fallback.
|
|
90
|
+
S(t)
|
|
91
|
+
);
|
|
92
|
+
return xt(e) ? e.host : e;
|
|
93
|
+
}
|
|
94
|
+
function Rt(t) {
|
|
95
|
+
const e = N(t);
|
|
96
|
+
return j(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : P(e) && Q(e) ? e : Rt(e);
|
|
97
|
+
}
|
|
98
|
+
function J(t, e, n) {
|
|
99
|
+
var o;
|
|
100
|
+
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
101
|
+
const i = Rt(t), r = i === ((o = t.ownerDocument) == null ? void 0 : o.body), s = R(i);
|
|
102
|
+
if (r) {
|
|
103
|
+
const c = ft(s);
|
|
104
|
+
return e.concat(s, s.visualViewport || [], Q(i) ? i : [], c && n ? J(c) : []);
|
|
105
|
+
}
|
|
106
|
+
return e.concat(i, J(i, [], n));
|
|
107
|
+
}
|
|
108
|
+
function ft(t) {
|
|
109
|
+
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
110
|
+
}
|
|
111
|
+
const Y = Math.min, H = Math.max, nt = Math.round, et = Math.floor, L = (t) => ({
|
|
112
|
+
x: t,
|
|
113
|
+
y: t
|
|
114
|
+
}), Nt = {
|
|
115
|
+
left: "right",
|
|
116
|
+
right: "left",
|
|
117
|
+
bottom: "top",
|
|
118
|
+
top: "bottom"
|
|
119
|
+
}, Wt = {
|
|
120
|
+
start: "end",
|
|
121
|
+
end: "start"
|
|
122
|
+
};
|
|
123
|
+
function at(t, e, n) {
|
|
124
|
+
return H(t, Y(e, n));
|
|
125
|
+
}
|
|
126
|
+
function Z(t, e) {
|
|
127
|
+
return typeof t == "function" ? t(e) : t;
|
|
128
|
+
}
|
|
129
|
+
function $(t) {
|
|
130
|
+
return t.split("-")[0];
|
|
131
|
+
}
|
|
132
|
+
function tt(t) {
|
|
133
|
+
return t.split("-")[1];
|
|
134
|
+
}
|
|
135
|
+
function Ot(t) {
|
|
136
|
+
return t === "x" ? "y" : "x";
|
|
137
|
+
}
|
|
138
|
+
function gt(t) {
|
|
139
|
+
return t === "y" ? "height" : "width";
|
|
140
|
+
}
|
|
141
|
+
function q(t) {
|
|
142
|
+
return ["top", "bottom"].includes($(t)) ? "y" : "x";
|
|
143
|
+
}
|
|
144
|
+
function ht(t) {
|
|
145
|
+
return Ot(q(t));
|
|
146
|
+
}
|
|
147
|
+
function Vt(t, e, n) {
|
|
148
|
+
n === void 0 && (n = !1);
|
|
149
|
+
const o = tt(t), i = ht(t), r = gt(i);
|
|
150
|
+
let s = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
151
|
+
return e.reference[r] > e.floating[r] && (s = ot(s)), [s, ot(s)];
|
|
152
|
+
}
|
|
153
|
+
function Ht(t) {
|
|
154
|
+
const e = ot(t);
|
|
155
|
+
return [ut(t), e, ut(e)];
|
|
156
|
+
}
|
|
157
|
+
function ut(t) {
|
|
158
|
+
return t.replace(/start|end/g, (e) => Wt[e]);
|
|
159
|
+
}
|
|
160
|
+
function $t(t, e, n) {
|
|
161
|
+
const o = ["left", "right"], i = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
|
|
162
|
+
switch (t) {
|
|
163
|
+
case "top":
|
|
164
|
+
case "bottom":
|
|
165
|
+
return n ? e ? i : o : e ? o : i;
|
|
166
|
+
case "left":
|
|
167
|
+
case "right":
|
|
168
|
+
return e ? r : s;
|
|
169
|
+
default:
|
|
170
|
+
return [];
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
function zt(t, e, n, o) {
|
|
174
|
+
const i = tt(t);
|
|
175
|
+
let r = $t($(t), n === "start", o);
|
|
176
|
+
return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(ut)))), r;
|
|
177
|
+
}
|
|
178
|
+
function ot(t) {
|
|
179
|
+
return t.replace(/left|right|bottom|top/g, (e) => Nt[e]);
|
|
180
|
+
}
|
|
181
|
+
function _t(t) {
|
|
182
|
+
return {
|
|
183
|
+
top: 0,
|
|
184
|
+
right: 0,
|
|
185
|
+
bottom: 0,
|
|
186
|
+
left: 0,
|
|
187
|
+
...t
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
function Ct(t) {
|
|
191
|
+
return typeof t != "number" ? _t(t) : {
|
|
192
|
+
top: t,
|
|
193
|
+
right: t,
|
|
194
|
+
bottom: t,
|
|
195
|
+
left: t
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
function it(t) {
|
|
199
|
+
const {
|
|
200
|
+
x: e,
|
|
201
|
+
y: n,
|
|
202
|
+
width: o,
|
|
203
|
+
height: i
|
|
204
|
+
} = t;
|
|
205
|
+
return {
|
|
206
|
+
width: o,
|
|
207
|
+
height: i,
|
|
208
|
+
top: n,
|
|
209
|
+
left: e,
|
|
210
|
+
right: e + o,
|
|
211
|
+
bottom: n + i,
|
|
212
|
+
x: e,
|
|
213
|
+
y: n
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
function yt(t, e, n) {
|
|
217
|
+
let {
|
|
218
|
+
reference: o,
|
|
219
|
+
floating: i
|
|
220
|
+
} = t;
|
|
221
|
+
const r = q(e), s = ht(e), c = gt(s), l = $(e), f = r === "y", d = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, m = o[c] / 2 - i[c] / 2;
|
|
222
|
+
let a;
|
|
223
|
+
switch (l) {
|
|
224
|
+
case "top":
|
|
225
|
+
a = {
|
|
226
|
+
x: d,
|
|
227
|
+
y: o.y - i.height
|
|
228
|
+
};
|
|
229
|
+
break;
|
|
230
|
+
case "bottom":
|
|
231
|
+
a = {
|
|
232
|
+
x: d,
|
|
233
|
+
y: o.y + o.height
|
|
234
|
+
};
|
|
235
|
+
break;
|
|
236
|
+
case "right":
|
|
237
|
+
a = {
|
|
238
|
+
x: o.x + o.width,
|
|
239
|
+
y: u
|
|
240
|
+
};
|
|
241
|
+
break;
|
|
242
|
+
case "left":
|
|
243
|
+
a = {
|
|
244
|
+
x: o.x - i.width,
|
|
245
|
+
y: u
|
|
246
|
+
};
|
|
247
|
+
break;
|
|
248
|
+
default:
|
|
249
|
+
a = {
|
|
250
|
+
x: o.x,
|
|
251
|
+
y: o.y
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
switch (tt(e)) {
|
|
255
|
+
case "start":
|
|
256
|
+
a[s] -= m * (n && f ? -1 : 1);
|
|
257
|
+
break;
|
|
258
|
+
case "end":
|
|
259
|
+
a[s] += m * (n && f ? -1 : 1);
|
|
260
|
+
break;
|
|
261
|
+
}
|
|
262
|
+
return a;
|
|
263
|
+
}
|
|
264
|
+
const It = async (t, e, n) => {
|
|
265
|
+
const {
|
|
266
|
+
placement: o = "bottom",
|
|
267
|
+
strategy: i = "absolute",
|
|
268
|
+
middleware: r = [],
|
|
269
|
+
platform: s
|
|
270
|
+
} = n, c = r.filter(Boolean), l = await (s.isRTL == null ? void 0 : s.isRTL(e));
|
|
271
|
+
let f = await s.getElementRects({
|
|
272
|
+
reference: t,
|
|
273
|
+
floating: e,
|
|
274
|
+
strategy: i
|
|
275
|
+
}), {
|
|
276
|
+
x: d,
|
|
277
|
+
y: u
|
|
278
|
+
} = yt(f, o, l), m = o, a = {}, g = 0;
|
|
279
|
+
for (let h = 0; h < c.length; h++) {
|
|
280
|
+
const {
|
|
281
|
+
name: w,
|
|
282
|
+
fn: p
|
|
283
|
+
} = c[h], {
|
|
284
|
+
x,
|
|
285
|
+
y,
|
|
286
|
+
data: b,
|
|
287
|
+
reset: v
|
|
288
|
+
} = await p({
|
|
289
|
+
x: d,
|
|
290
|
+
y: u,
|
|
291
|
+
initialPlacement: o,
|
|
292
|
+
placement: m,
|
|
293
|
+
strategy: i,
|
|
294
|
+
middlewareData: a,
|
|
295
|
+
rects: f,
|
|
296
|
+
platform: s,
|
|
297
|
+
elements: {
|
|
298
|
+
reference: t,
|
|
299
|
+
floating: e
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
d = x ?? d, u = y ?? u, a = {
|
|
303
|
+
...a,
|
|
304
|
+
[w]: {
|
|
305
|
+
...a[w],
|
|
306
|
+
...b
|
|
307
|
+
}
|
|
308
|
+
}, v && g <= 50 && (g++, typeof v == "object" && (v.placement && (m = v.placement), v.rects && (f = v.rects === !0 ? await s.getElementRects({
|
|
309
|
+
reference: t,
|
|
310
|
+
floating: e,
|
|
311
|
+
strategy: i
|
|
312
|
+
}) : v.rects), {
|
|
313
|
+
x: d,
|
|
314
|
+
y: u
|
|
315
|
+
} = yt(f, m, l)), h = -1);
|
|
316
|
+
}
|
|
317
|
+
return {
|
|
318
|
+
x: d,
|
|
319
|
+
y: u,
|
|
320
|
+
placement: m,
|
|
321
|
+
strategy: i,
|
|
322
|
+
middlewareData: a
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
async function Et(t, e) {
|
|
326
|
+
var n;
|
|
327
|
+
e === void 0 && (e = {});
|
|
328
|
+
const {
|
|
329
|
+
x: o,
|
|
330
|
+
y: i,
|
|
331
|
+
platform: r,
|
|
332
|
+
rects: s,
|
|
333
|
+
elements: c,
|
|
334
|
+
strategy: l
|
|
335
|
+
} = t, {
|
|
336
|
+
boundary: f = "clippingAncestors",
|
|
337
|
+
rootBoundary: d = "viewport",
|
|
338
|
+
elementContext: u = "floating",
|
|
339
|
+
altBoundary: m = !1,
|
|
340
|
+
padding: a = 0
|
|
341
|
+
} = Z(e, t), g = Ct(a), w = c[m ? u === "floating" ? "reference" : "floating" : u], p = it(await r.getClippingRect({
|
|
342
|
+
element: (n = await (r.isElement == null ? void 0 : r.isElement(w))) == null || n ? w : w.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(c.floating)),
|
|
343
|
+
boundary: f,
|
|
344
|
+
rootBoundary: d,
|
|
345
|
+
strategy: l
|
|
346
|
+
})), x = u === "floating" ? {
|
|
347
|
+
x: o,
|
|
348
|
+
y: i,
|
|
349
|
+
width: s.floating.width,
|
|
350
|
+
height: s.floating.height
|
|
351
|
+
} : s.reference, y = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c.floating)), b = await (r.isElement == null ? void 0 : r.isElement(y)) ? await (r.getScale == null ? void 0 : r.getScale(y)) || {
|
|
352
|
+
x: 1,
|
|
353
|
+
y: 1
|
|
354
|
+
} : {
|
|
355
|
+
x: 1,
|
|
356
|
+
y: 1
|
|
357
|
+
}, v = it(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
358
|
+
elements: c,
|
|
359
|
+
rect: x,
|
|
360
|
+
offsetParent: y,
|
|
361
|
+
strategy: l
|
|
362
|
+
}) : x);
|
|
363
|
+
return {
|
|
364
|
+
top: (p.top - v.top + g.top) / b.y,
|
|
365
|
+
bottom: (v.bottom - p.bottom + g.bottom) / b.y,
|
|
366
|
+
left: (p.left - v.left + g.left) / b.x,
|
|
367
|
+
right: (v.right - p.right + g.right) / b.x
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
const jt = (t) => ({
|
|
371
|
+
name: "arrow",
|
|
372
|
+
options: t,
|
|
373
|
+
async fn(e) {
|
|
374
|
+
const {
|
|
375
|
+
x: n,
|
|
376
|
+
y: o,
|
|
377
|
+
placement: i,
|
|
378
|
+
rects: r,
|
|
379
|
+
platform: s,
|
|
380
|
+
elements: c,
|
|
381
|
+
middlewareData: l
|
|
382
|
+
} = e, {
|
|
383
|
+
element: f,
|
|
384
|
+
padding: d = 0
|
|
385
|
+
} = Z(t, e) || {};
|
|
386
|
+
if (f == null)
|
|
387
|
+
return {};
|
|
388
|
+
const u = Ct(d), m = {
|
|
389
|
+
x: n,
|
|
390
|
+
y: o
|
|
391
|
+
}, a = ht(i), g = gt(a), h = await s.getDimensions(f), w = a === "y", p = w ? "top" : "left", x = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", b = r.reference[g] + r.reference[a] - m[a] - r.floating[g], v = m[a] - r.reference[a], D = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(f));
|
|
392
|
+
let O = D ? D[y] : 0;
|
|
393
|
+
(!O || !await (s.isElement == null ? void 0 : s.isElement(D))) && (O = c.floating[y] || r.floating[g]);
|
|
394
|
+
const U = b / 2 - v / 2, W = O / 2 - h[g] / 2 - 1, F = Y(u[p], W), K = Y(u[x], W), V = F, G = O - h[g] - K, A = O / 2 - h[g] / 2 + U, _ = at(V, A, G), k = !l.arrow && tt(i) != null && A !== _ && r.reference[g] / 2 - (A < V ? F : K) - h[g] / 2 < 0, T = k ? A < V ? A - V : A - G : 0;
|
|
395
|
+
return {
|
|
396
|
+
[a]: m[a] + T,
|
|
397
|
+
data: {
|
|
398
|
+
[a]: _,
|
|
399
|
+
centerOffset: A - _ - T,
|
|
400
|
+
...k && {
|
|
401
|
+
alignmentOffset: T
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
reset: k
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
}), Yt = function(t) {
|
|
408
|
+
return t === void 0 && (t = {}), {
|
|
409
|
+
name: "flip",
|
|
410
|
+
options: t,
|
|
411
|
+
async fn(e) {
|
|
412
|
+
var n, o;
|
|
413
|
+
const {
|
|
414
|
+
placement: i,
|
|
415
|
+
middlewareData: r,
|
|
416
|
+
rects: s,
|
|
417
|
+
initialPlacement: c,
|
|
418
|
+
platform: l,
|
|
419
|
+
elements: f
|
|
420
|
+
} = e, {
|
|
421
|
+
mainAxis: d = !0,
|
|
422
|
+
crossAxis: u = !0,
|
|
423
|
+
fallbackPlacements: m,
|
|
424
|
+
fallbackStrategy: a = "bestFit",
|
|
425
|
+
fallbackAxisSideDirection: g = "none",
|
|
426
|
+
flipAlignment: h = !0,
|
|
427
|
+
...w
|
|
428
|
+
} = Z(t, e);
|
|
429
|
+
if ((n = r.arrow) != null && n.alignmentOffset)
|
|
430
|
+
return {};
|
|
431
|
+
const p = $(i), x = q(c), y = $(c) === c, b = await (l.isRTL == null ? void 0 : l.isRTL(f.floating)), v = m || (y || !h ? [ot(c)] : Ht(c)), D = g !== "none";
|
|
432
|
+
!m && D && v.push(...zt(c, h, g, b));
|
|
433
|
+
const O = [c, ...v], U = await Et(e, w), W = [];
|
|
434
|
+
let F = ((o = r.flip) == null ? void 0 : o.overflows) || [];
|
|
435
|
+
if (d && W.push(U[p]), u) {
|
|
436
|
+
const A = Vt(i, s, b);
|
|
437
|
+
W.push(U[A[0]], U[A[1]]);
|
|
438
|
+
}
|
|
439
|
+
if (F = [...F, {
|
|
440
|
+
placement: i,
|
|
441
|
+
overflows: W
|
|
442
|
+
}], !W.every((A) => A <= 0)) {
|
|
443
|
+
var K, V;
|
|
444
|
+
const A = (((K = r.flip) == null ? void 0 : K.index) || 0) + 1, _ = O[A];
|
|
445
|
+
if (_)
|
|
446
|
+
return {
|
|
447
|
+
data: {
|
|
448
|
+
index: A,
|
|
449
|
+
overflows: F
|
|
450
|
+
},
|
|
451
|
+
reset: {
|
|
452
|
+
placement: _
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
let k = (V = F.filter((T) => T.overflows[0] <= 0).sort((T, B) => T.overflows[1] - B.overflows[1])[0]) == null ? void 0 : V.placement;
|
|
456
|
+
if (!k)
|
|
457
|
+
switch (a) {
|
|
458
|
+
case "bestFit": {
|
|
459
|
+
var G;
|
|
460
|
+
const T = (G = F.filter((B) => {
|
|
461
|
+
if (D) {
|
|
462
|
+
const M = q(B.placement);
|
|
463
|
+
return M === x || // Create a bias to the `y` side axis due to horizontal
|
|
464
|
+
// reading directions favoring greater width.
|
|
465
|
+
M === "y";
|
|
466
|
+
}
|
|
467
|
+
return !0;
|
|
468
|
+
}).map((B) => [B.placement, B.overflows.filter((M) => M > 0).reduce((M, Ft) => M + Ft, 0)]).sort((B, M) => B[1] - M[1])[0]) == null ? void 0 : G[0];
|
|
469
|
+
T && (k = T);
|
|
470
|
+
break;
|
|
471
|
+
}
|
|
472
|
+
case "initialPlacement":
|
|
473
|
+
k = c;
|
|
474
|
+
break;
|
|
475
|
+
}
|
|
476
|
+
if (i !== k)
|
|
477
|
+
return {
|
|
478
|
+
reset: {
|
|
479
|
+
placement: k
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
return {};
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
async function qt(t, e) {
|
|
488
|
+
const {
|
|
489
|
+
placement: n,
|
|
490
|
+
platform: o,
|
|
491
|
+
elements: i
|
|
492
|
+
} = t, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = $(n), c = tt(n), l = q(n) === "y", f = ["left", "top"].includes(s) ? -1 : 1, d = r && l ? -1 : 1, u = Z(e, t);
|
|
493
|
+
let {
|
|
494
|
+
mainAxis: m,
|
|
495
|
+
crossAxis: a,
|
|
496
|
+
alignmentAxis: g
|
|
497
|
+
} = typeof u == "number" ? {
|
|
498
|
+
mainAxis: u,
|
|
499
|
+
crossAxis: 0,
|
|
500
|
+
alignmentAxis: null
|
|
501
|
+
} : {
|
|
502
|
+
mainAxis: u.mainAxis || 0,
|
|
503
|
+
crossAxis: u.crossAxis || 0,
|
|
504
|
+
alignmentAxis: u.alignmentAxis
|
|
505
|
+
};
|
|
506
|
+
return c && typeof g == "number" && (a = c === "end" ? g * -1 : g), l ? {
|
|
507
|
+
x: a * d,
|
|
508
|
+
y: m * f
|
|
509
|
+
} : {
|
|
510
|
+
x: m * f,
|
|
511
|
+
y: a * d
|
|
512
|
+
};
|
|
513
|
+
}
|
|
514
|
+
const Xt = function(t) {
|
|
515
|
+
return t === void 0 && (t = 0), {
|
|
516
|
+
name: "offset",
|
|
517
|
+
options: t,
|
|
518
|
+
async fn(e) {
|
|
519
|
+
var n, o;
|
|
520
|
+
const {
|
|
521
|
+
x: i,
|
|
522
|
+
y: r,
|
|
523
|
+
placement: s,
|
|
524
|
+
middlewareData: c
|
|
525
|
+
} = e, l = await qt(e, t);
|
|
526
|
+
return s === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
|
|
527
|
+
x: i + l.x,
|
|
528
|
+
y: r + l.y,
|
|
529
|
+
data: {
|
|
530
|
+
...l,
|
|
531
|
+
placement: s
|
|
532
|
+
}
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
};
|
|
536
|
+
}, Ut = function(t) {
|
|
537
|
+
return t === void 0 && (t = {}), {
|
|
538
|
+
name: "shift",
|
|
539
|
+
options: t,
|
|
540
|
+
async fn(e) {
|
|
541
|
+
const {
|
|
542
|
+
x: n,
|
|
543
|
+
y: o,
|
|
544
|
+
placement: i
|
|
545
|
+
} = e, {
|
|
546
|
+
mainAxis: r = !0,
|
|
547
|
+
crossAxis: s = !1,
|
|
548
|
+
limiter: c = {
|
|
549
|
+
fn: (w) => {
|
|
550
|
+
let {
|
|
551
|
+
x: p,
|
|
552
|
+
y: x
|
|
553
|
+
} = w;
|
|
554
|
+
return {
|
|
555
|
+
x: p,
|
|
556
|
+
y: x
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
...l
|
|
561
|
+
} = Z(t, e), f = {
|
|
562
|
+
x: n,
|
|
563
|
+
y: o
|
|
564
|
+
}, d = await Et(e, l), u = q($(i)), m = Ot(u);
|
|
565
|
+
let a = f[m], g = f[u];
|
|
566
|
+
if (r) {
|
|
567
|
+
const w = m === "y" ? "top" : "left", p = m === "y" ? "bottom" : "right", x = a + d[w], y = a - d[p];
|
|
568
|
+
a = at(x, a, y);
|
|
569
|
+
}
|
|
570
|
+
if (s) {
|
|
571
|
+
const w = u === "y" ? "top" : "left", p = u === "y" ? "bottom" : "right", x = g + d[w], y = g - d[p];
|
|
572
|
+
g = at(x, g, y);
|
|
573
|
+
}
|
|
574
|
+
const h = c.fn({
|
|
575
|
+
...e,
|
|
576
|
+
[m]: a,
|
|
577
|
+
[u]: g
|
|
578
|
+
});
|
|
579
|
+
return {
|
|
580
|
+
...h,
|
|
581
|
+
data: {
|
|
582
|
+
x: h.x - n,
|
|
583
|
+
y: h.y - o,
|
|
584
|
+
enabled: {
|
|
585
|
+
[m]: r,
|
|
586
|
+
[u]: s
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
function Tt(t) {
|
|
594
|
+
const e = E(t);
|
|
595
|
+
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
596
|
+
const i = P(t), r = i ? t.offsetWidth : n, s = i ? t.offsetHeight : o, c = nt(n) !== r || nt(o) !== s;
|
|
597
|
+
return c && (n = r, o = s), {
|
|
598
|
+
width: n,
|
|
599
|
+
height: o,
|
|
600
|
+
$: c
|
|
601
|
+
};
|
|
602
|
+
}
|
|
603
|
+
function pt(t) {
|
|
604
|
+
return C(t) ? t : t.contextElement;
|
|
605
|
+
}
|
|
606
|
+
function I(t) {
|
|
607
|
+
const e = pt(t);
|
|
608
|
+
if (!P(e))
|
|
609
|
+
return L(1);
|
|
610
|
+
const n = e.getBoundingClientRect(), {
|
|
611
|
+
width: o,
|
|
612
|
+
height: i,
|
|
613
|
+
$: r
|
|
614
|
+
} = Tt(e);
|
|
615
|
+
let s = (r ? nt(n.width) : n.width) / o, c = (r ? nt(n.height) : n.height) / i;
|
|
616
|
+
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
617
|
+
x: s,
|
|
618
|
+
y: c
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
const Kt = /* @__PURE__ */ L(0);
|
|
622
|
+
function Lt(t) {
|
|
623
|
+
const e = R(t);
|
|
624
|
+
return !mt() || !e.visualViewport ? Kt : {
|
|
625
|
+
x: e.visualViewport.offsetLeft,
|
|
626
|
+
y: e.visualViewport.offsetTop
|
|
627
|
+
};
|
|
628
|
+
}
|
|
629
|
+
function Gt(t, e, n) {
|
|
630
|
+
return e === void 0 && (e = !1), !n || e && n !== R(t) ? !1 : e;
|
|
631
|
+
}
|
|
632
|
+
function z(t, e, n, o) {
|
|
633
|
+
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
634
|
+
const i = t.getBoundingClientRect(), r = pt(t);
|
|
635
|
+
let s = L(1);
|
|
636
|
+
e && (o ? C(o) && (s = I(o)) : s = I(t));
|
|
637
|
+
const c = Gt(r, n, o) ? Lt(r) : L(0);
|
|
638
|
+
let l = (i.left + c.x) / s.x, f = (i.top + c.y) / s.y, d = i.width / s.x, u = i.height / s.y;
|
|
639
|
+
if (r) {
|
|
640
|
+
const m = R(r), a = o && C(o) ? R(o) : o;
|
|
641
|
+
let g = m, h = ft(g);
|
|
642
|
+
for (; h && o && a !== g; ) {
|
|
643
|
+
const w = I(h), p = h.getBoundingClientRect(), x = E(h), y = p.left + (h.clientLeft + parseFloat(x.paddingLeft)) * w.x, b = p.top + (h.clientTop + parseFloat(x.paddingTop)) * w.y;
|
|
644
|
+
l *= w.x, f *= w.y, d *= w.x, u *= w.y, l += y, f += b, g = R(h), h = ft(g);
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
return it({
|
|
648
|
+
width: d,
|
|
649
|
+
height: u,
|
|
650
|
+
x: l,
|
|
651
|
+
y: f
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
function wt(t, e) {
|
|
655
|
+
const n = ct(t).scrollLeft;
|
|
656
|
+
return e ? e.left + n : z(S(t)).left + n;
|
|
657
|
+
}
|
|
658
|
+
function Pt(t, e, n) {
|
|
659
|
+
n === void 0 && (n = !1);
|
|
660
|
+
const o = t.getBoundingClientRect(), i = o.left + e.scrollLeft - (n ? 0 : (
|
|
661
|
+
// RTL <body> scrollbar.
|
|
662
|
+
wt(t, o)
|
|
663
|
+
)), r = o.top + e.scrollTop;
|
|
664
|
+
return {
|
|
665
|
+
x: i,
|
|
666
|
+
y: r
|
|
667
|
+
};
|
|
668
|
+
}
|
|
669
|
+
function Jt(t) {
|
|
670
|
+
let {
|
|
671
|
+
elements: e,
|
|
672
|
+
rect: n,
|
|
673
|
+
offsetParent: o,
|
|
674
|
+
strategy: i
|
|
675
|
+
} = t;
|
|
676
|
+
const r = i === "fixed", s = S(o), c = e ? rt(e.floating) : !1;
|
|
677
|
+
if (o === s || c && r)
|
|
678
|
+
return n;
|
|
679
|
+
let l = {
|
|
680
|
+
scrollLeft: 0,
|
|
681
|
+
scrollTop: 0
|
|
682
|
+
}, f = L(1);
|
|
683
|
+
const d = L(0), u = P(o);
|
|
684
|
+
if ((u || !u && !r) && ((X(o) !== "body" || Q(s)) && (l = ct(o)), P(o))) {
|
|
685
|
+
const a = z(o);
|
|
686
|
+
f = I(o), d.x = a.x + o.clientLeft, d.y = a.y + o.clientTop;
|
|
687
|
+
}
|
|
688
|
+
const m = s && !u && !r ? Pt(s, l, !0) : L(0);
|
|
689
|
+
return {
|
|
690
|
+
width: n.width * f.x,
|
|
691
|
+
height: n.height * f.y,
|
|
692
|
+
x: n.x * f.x - l.scrollLeft * f.x + d.x + m.x,
|
|
693
|
+
y: n.y * f.y - l.scrollTop * f.y + d.y + m.y
|
|
694
|
+
};
|
|
695
|
+
}
|
|
696
|
+
function Qt(t) {
|
|
697
|
+
return Array.from(t.getClientRects());
|
|
698
|
+
}
|
|
699
|
+
function Zt(t) {
|
|
700
|
+
const e = S(t), n = ct(t), o = t.ownerDocument.body, i = H(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), r = H(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
701
|
+
let s = -n.scrollLeft + wt(t);
|
|
702
|
+
const c = -n.scrollTop;
|
|
703
|
+
return E(o).direction === "rtl" && (s += H(e.clientWidth, o.clientWidth) - i), {
|
|
704
|
+
width: i,
|
|
705
|
+
height: r,
|
|
706
|
+
x: s,
|
|
707
|
+
y: c
|
|
708
|
+
};
|
|
709
|
+
}
|
|
710
|
+
function te(t, e) {
|
|
711
|
+
const n = R(t), o = S(t), i = n.visualViewport;
|
|
712
|
+
let r = o.clientWidth, s = o.clientHeight, c = 0, l = 0;
|
|
713
|
+
if (i) {
|
|
714
|
+
r = i.width, s = i.height;
|
|
715
|
+
const f = mt();
|
|
716
|
+
(!f || f && e === "fixed") && (c = i.offsetLeft, l = i.offsetTop);
|
|
717
|
+
}
|
|
718
|
+
return {
|
|
719
|
+
width: r,
|
|
720
|
+
height: s,
|
|
721
|
+
x: c,
|
|
722
|
+
y: l
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
function ee(t, e) {
|
|
726
|
+
const n = z(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, r = P(t) ? I(t) : L(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = i * r.x, f = o * r.y;
|
|
727
|
+
return {
|
|
728
|
+
width: s,
|
|
729
|
+
height: c,
|
|
730
|
+
x: l,
|
|
731
|
+
y: f
|
|
732
|
+
};
|
|
733
|
+
}
|
|
734
|
+
function vt(t, e, n) {
|
|
735
|
+
let o;
|
|
736
|
+
if (e === "viewport")
|
|
737
|
+
o = te(t, n);
|
|
738
|
+
else if (e === "document")
|
|
739
|
+
o = Zt(S(t));
|
|
740
|
+
else if (C(e))
|
|
741
|
+
o = ee(e, n);
|
|
742
|
+
else {
|
|
743
|
+
const i = Lt(t);
|
|
744
|
+
o = {
|
|
745
|
+
x: e.x - i.x,
|
|
746
|
+
y: e.y - i.y,
|
|
747
|
+
width: e.width,
|
|
748
|
+
height: e.height
|
|
749
|
+
};
|
|
750
|
+
}
|
|
751
|
+
return it(o);
|
|
752
|
+
}
|
|
753
|
+
function St(t, e) {
|
|
754
|
+
const n = N(t);
|
|
755
|
+
return n === e || !C(n) || j(n) ? !1 : E(n).position === "fixed" || St(n, e);
|
|
756
|
+
}
|
|
757
|
+
function ne(t, e) {
|
|
758
|
+
const n = e.get(t);
|
|
759
|
+
if (n)
|
|
760
|
+
return n;
|
|
761
|
+
let o = J(t, [], !1).filter((c) => C(c) && X(c) !== "body"), i = null;
|
|
762
|
+
const r = E(t).position === "fixed";
|
|
763
|
+
let s = r ? N(t) : t;
|
|
764
|
+
for (; C(s) && !j(s); ) {
|
|
765
|
+
const c = E(s), l = dt(s);
|
|
766
|
+
!l && c.position === "fixed" && (i = null), (r ? !l && !i : !l && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Q(s) && !l && St(t, s)) ? o = o.filter((d) => d !== s) : i = c, s = N(s);
|
|
767
|
+
}
|
|
768
|
+
return e.set(t, o), o;
|
|
769
|
+
}
|
|
770
|
+
function oe(t) {
|
|
771
|
+
let {
|
|
772
|
+
element: e,
|
|
773
|
+
boundary: n,
|
|
774
|
+
rootBoundary: o,
|
|
775
|
+
strategy: i
|
|
776
|
+
} = t;
|
|
777
|
+
const s = [...n === "clippingAncestors" ? rt(e) ? [] : ne(e, this._c) : [].concat(n), o], c = s[0], l = s.reduce((f, d) => {
|
|
778
|
+
const u = vt(e, d, i);
|
|
779
|
+
return f.top = H(u.top, f.top), f.right = Y(u.right, f.right), f.bottom = Y(u.bottom, f.bottom), f.left = H(u.left, f.left), f;
|
|
780
|
+
}, vt(e, c, i));
|
|
781
|
+
return {
|
|
782
|
+
width: l.right - l.left,
|
|
783
|
+
height: l.bottom - l.top,
|
|
784
|
+
x: l.left,
|
|
785
|
+
y: l.top
|
|
786
|
+
};
|
|
787
|
+
}
|
|
788
|
+
function ie(t) {
|
|
789
|
+
const {
|
|
790
|
+
width: e,
|
|
791
|
+
height: n
|
|
792
|
+
} = Tt(t);
|
|
793
|
+
return {
|
|
794
|
+
width: e,
|
|
795
|
+
height: n
|
|
796
|
+
};
|
|
797
|
+
}
|
|
798
|
+
function se(t, e, n) {
|
|
799
|
+
const o = P(e), i = S(e), r = n === "fixed", s = z(t, !0, r, e);
|
|
800
|
+
let c = {
|
|
801
|
+
scrollLeft: 0,
|
|
802
|
+
scrollTop: 0
|
|
803
|
+
};
|
|
804
|
+
const l = L(0);
|
|
805
|
+
if (o || !o && !r)
|
|
806
|
+
if ((X(e) !== "body" || Q(i)) && (c = ct(e)), o) {
|
|
807
|
+
const m = z(e, !0, r, e);
|
|
808
|
+
l.x = m.x + e.clientLeft, l.y = m.y + e.clientTop;
|
|
809
|
+
} else i && (l.x = wt(i));
|
|
810
|
+
const f = i && !o && !r ? Pt(i, c) : L(0), d = s.left + c.scrollLeft - l.x - f.x, u = s.top + c.scrollTop - l.y - f.y;
|
|
811
|
+
return {
|
|
812
|
+
x: d,
|
|
813
|
+
y: u,
|
|
814
|
+
width: s.width,
|
|
815
|
+
height: s.height
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
function lt(t) {
|
|
819
|
+
return E(t).position === "static";
|
|
820
|
+
}
|
|
821
|
+
function bt(t, e) {
|
|
822
|
+
if (!P(t) || E(t).position === "fixed")
|
|
823
|
+
return null;
|
|
824
|
+
if (e)
|
|
825
|
+
return e(t);
|
|
826
|
+
let n = t.offsetParent;
|
|
827
|
+
return S(t) === n && (n = n.ownerDocument.body), n;
|
|
828
|
+
}
|
|
829
|
+
function Dt(t, e) {
|
|
830
|
+
const n = R(t);
|
|
831
|
+
if (rt(t))
|
|
832
|
+
return n;
|
|
833
|
+
if (!P(t)) {
|
|
834
|
+
let i = N(t);
|
|
835
|
+
for (; i && !j(i); ) {
|
|
836
|
+
if (C(i) && !lt(i))
|
|
837
|
+
return i;
|
|
838
|
+
i = N(i);
|
|
839
|
+
}
|
|
840
|
+
return n;
|
|
841
|
+
}
|
|
842
|
+
let o = bt(t, e);
|
|
843
|
+
for (; o && Bt(o) && lt(o); )
|
|
844
|
+
o = bt(o, e);
|
|
845
|
+
return o && j(o) && lt(o) && !dt(o) ? n : o || Mt(t) || n;
|
|
846
|
+
}
|
|
847
|
+
const re = async function(t) {
|
|
848
|
+
const e = this.getOffsetParent || Dt, n = this.getDimensions, o = await n(t.floating);
|
|
849
|
+
return {
|
|
850
|
+
reference: se(t.reference, await e(t.floating), t.strategy),
|
|
851
|
+
floating: {
|
|
852
|
+
x: 0,
|
|
853
|
+
y: 0,
|
|
854
|
+
width: o.width,
|
|
855
|
+
height: o.height
|
|
856
|
+
}
|
|
857
|
+
};
|
|
858
|
+
};
|
|
859
|
+
function ce(t) {
|
|
860
|
+
return E(t).direction === "rtl";
|
|
861
|
+
}
|
|
862
|
+
const le = {
|
|
863
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Jt,
|
|
864
|
+
getDocumentElement: S,
|
|
865
|
+
getClippingRect: oe,
|
|
866
|
+
getOffsetParent: Dt,
|
|
867
|
+
getElementRects: re,
|
|
868
|
+
getClientRects: Qt,
|
|
869
|
+
getDimensions: ie,
|
|
870
|
+
getScale: I,
|
|
871
|
+
isElement: C,
|
|
872
|
+
isRTL: ce
|
|
873
|
+
};
|
|
874
|
+
function kt(t, e) {
|
|
875
|
+
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
876
|
+
}
|
|
877
|
+
function fe(t, e) {
|
|
878
|
+
let n = null, o;
|
|
879
|
+
const i = S(t);
|
|
880
|
+
function r() {
|
|
881
|
+
var c;
|
|
882
|
+
clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
|
|
883
|
+
}
|
|
884
|
+
function s(c, l) {
|
|
885
|
+
c === void 0 && (c = !1), l === void 0 && (l = 1), r();
|
|
886
|
+
const f = t.getBoundingClientRect(), {
|
|
887
|
+
left: d,
|
|
888
|
+
top: u,
|
|
889
|
+
width: m,
|
|
890
|
+
height: a
|
|
891
|
+
} = f;
|
|
892
|
+
if (c || e(), !m || !a)
|
|
893
|
+
return;
|
|
894
|
+
const g = et(u), h = et(i.clientWidth - (d + m)), w = et(i.clientHeight - (u + a)), p = et(d), y = {
|
|
895
|
+
rootMargin: -g + "px " + -h + "px " + -w + "px " + -p + "px",
|
|
896
|
+
threshold: H(0, Y(1, l)) || 1
|
|
897
|
+
};
|
|
898
|
+
let b = !0;
|
|
899
|
+
function v(D) {
|
|
900
|
+
const O = D[0].intersectionRatio;
|
|
901
|
+
if (O !== l) {
|
|
902
|
+
if (!b)
|
|
903
|
+
return s();
|
|
904
|
+
O ? s(!1, O) : o = setTimeout(() => {
|
|
905
|
+
s(!1, 1e-7);
|
|
906
|
+
}, 1e3);
|
|
907
|
+
}
|
|
908
|
+
O === 1 && !kt(f, t.getBoundingClientRect()) && s(), b = !1;
|
|
909
|
+
}
|
|
910
|
+
try {
|
|
911
|
+
n = new IntersectionObserver(v, {
|
|
912
|
+
...y,
|
|
913
|
+
// Handle <iframe>s
|
|
914
|
+
root: i.ownerDocument
|
|
915
|
+
});
|
|
916
|
+
} catch {
|
|
917
|
+
n = new IntersectionObserver(v, y);
|
|
918
|
+
}
|
|
919
|
+
n.observe(t);
|
|
920
|
+
}
|
|
921
|
+
return s(!0), r;
|
|
922
|
+
}
|
|
923
|
+
function ae(t, e, n, o) {
|
|
924
|
+
o === void 0 && (o = {});
|
|
925
|
+
const {
|
|
926
|
+
ancestorScroll: i = !0,
|
|
927
|
+
ancestorResize: r = !0,
|
|
928
|
+
elementResize: s = typeof ResizeObserver == "function",
|
|
929
|
+
layoutShift: c = typeof IntersectionObserver == "function",
|
|
930
|
+
animationFrame: l = !1
|
|
931
|
+
} = o, f = pt(t), d = i || r ? [...f ? J(f) : [], ...J(e)] : [];
|
|
932
|
+
d.forEach((p) => {
|
|
933
|
+
i && p.addEventListener("scroll", n, {
|
|
934
|
+
passive: !0
|
|
935
|
+
}), r && p.addEventListener("resize", n);
|
|
936
|
+
});
|
|
937
|
+
const u = f && c ? fe(f, n) : null;
|
|
938
|
+
let m = -1, a = null;
|
|
939
|
+
s && (a = new ResizeObserver((p) => {
|
|
940
|
+
let [x] = p;
|
|
941
|
+
x && x.target === f && a && (a.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
942
|
+
var y;
|
|
943
|
+
(y = a) == null || y.observe(e);
|
|
944
|
+
})), n();
|
|
945
|
+
}), f && !l && a.observe(f), a.observe(e));
|
|
946
|
+
let g, h = l ? z(t) : null;
|
|
947
|
+
l && w();
|
|
948
|
+
function w() {
|
|
949
|
+
const p = z(t);
|
|
950
|
+
h && !kt(h, p) && n(), h = p, g = requestAnimationFrame(w);
|
|
951
|
+
}
|
|
952
|
+
return n(), () => {
|
|
953
|
+
var p;
|
|
954
|
+
d.forEach((x) => {
|
|
955
|
+
i && x.removeEventListener("scroll", n), r && x.removeEventListener("resize", n);
|
|
956
|
+
}), u == null || u(), (p = a) == null || p.disconnect(), a = null, l && cancelAnimationFrame(g);
|
|
957
|
+
};
|
|
958
|
+
}
|
|
959
|
+
const ue = Xt, de = Ut, me = Yt, ge = jt, he = (t, e, n) => {
|
|
960
|
+
const o = /* @__PURE__ */ new Map(), i = {
|
|
961
|
+
platform: le,
|
|
962
|
+
...n
|
|
963
|
+
}, r = {
|
|
964
|
+
...i.platform,
|
|
965
|
+
_c: o
|
|
966
|
+
};
|
|
967
|
+
return It(t, e, {
|
|
968
|
+
...i,
|
|
969
|
+
platform: r
|
|
970
|
+
});
|
|
971
|
+
};
|
|
972
|
+
export {
|
|
973
|
+
ae as a,
|
|
974
|
+
P as b,
|
|
975
|
+
he as c,
|
|
976
|
+
ge as d,
|
|
977
|
+
C as e,
|
|
978
|
+
me as f,
|
|
979
|
+
R as g,
|
|
980
|
+
J as h,
|
|
981
|
+
xt as i,
|
|
982
|
+
mt as j,
|
|
983
|
+
j as k,
|
|
984
|
+
N as l,
|
|
985
|
+
E as m,
|
|
986
|
+
X as n,
|
|
987
|
+
ue as o,
|
|
988
|
+
de as s
|
|
989
|
+
};
|