@knime/jsonforms 1.21.1 → 1.21.3
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/CHANGELOG.md +13 -0
- package/README.md +6 -0
- package/dist/{AnyOfTwinlist-UXM-U6hT.js → AnyOfTwinlist-By12blUM.js} +1 -1
- package/dist/{CheckboxControl-QBXVq5Tw.js → CheckboxControl--qMC4yqR.js} +1 -1
- package/dist/{CheckboxesControl-2pd974_e.js → CheckboxesControl-BsOG-QR8.js} +2 -2
- package/dist/{ColorControl-CDxRfPzc.js → ColorControl-BX93RNbV.js} +1 -1
- package/dist/{ColorPreviewControl-Cg99cain.js → ColorPreviewControl-CFVeFXBp.js} +5 -5
- package/dist/ComboBoxControl-M5HOJcy2.js +37 -0
- package/dist/{DateControl-DqNL8rlX.js → DateControl-PYVPxPvC.js} +1 -1
- package/dist/{DateTimeControl-apf8S1y2.js → DateTimeControl-_8d8iizh.js} +1 -1
- package/dist/{DateTimeFormatPickerControl-_4b5Jk3w.js → DateTimeFormatPickerControl-xRNNTLIl.js} +1 -1
- package/dist/{DateTimeFormatPickerWithTypeControl-B1jOpszt.js → DateTimeFormatPickerWithTypeControl-CZZBe3PC.js} +11 -11
- package/dist/{DropdownControl-CesCAa-A.js → DropdownControl-sGxFWX33.js} +2 -2
- package/dist/{ExecutorCoresControl-ILXk2Hk6.js → ExecutorCoresControl-6DB4hS8_.js} +2 -2
- package/dist/{ExecutorMemoryControl-De46Fxsm.js → ExecutorMemoryControl-xKHl7IXW.js} +2 -2
- package/dist/FileUploadControl-Bjgh9vSl.js +210 -0
- package/dist/{GridSelectionControl-CGspDoCC.js → GridSelectionControl-DslOwaNV.js} +17 -17
- package/dist/{HorizontalLayout-DPuI5hYY.js → HorizontalLayout-Dl9cC50s.js} +1 -1
- package/dist/{IntegerControl-BwGzlwkz.js → IntegerControl-DSzPJs4Z.js} +1 -1
- package/dist/{IntervalControl-BHeKHuWm.js → IntervalControl-DoWDLPMP.js} +12 -12
- package/dist/{LinkControl-D_0AKRJz.js → LinkControl-BuYI03b_.js} +3 -3
- package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-BHersnKa.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-DZ90-rk8.js} +5 -5
- package/dist/{ManualTwinlistControl-BMSgSIBJ.js → ManualTwinlistControl-mN3zJTMK.js} +3 -3
- package/dist/{MultiselectListBox-DpL-Z03B.js → MultiSelectListBoxControl-CnSublPM.js} +103 -78
- package/dist/{MultimodeTwinlistControl-DOJD7vUU.js → MultimodeTwinlistControl-CyZQ54SO.js} +1 -1
- package/dist/{MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-BzIvunuA.js → MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-C9JUTbz1.js} +3 -3
- package/dist/{NameFilter-B1LEenoh.js → NameFilter-C1u8qsYQ.js} +1 -1
- package/dist/{NumberControl-DVzhX3S9.js → NumberControl-qiTgXs6x.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-Bb4FK9RQ.js → NumberControlBase.vue_vue_type_script_setup_true_lang-Bs-H6e08.js} +2 -2
- package/dist/{OneOfDropdown-BFOyIhv6.js → OneOfDropdown-Dn6QM81-.js} +4 -4
- package/dist/{RadioButtonsWithDescriptionControl-oD8Zab-J.js → RadioButtonsWithDescriptionControl-1X9F9obn.js} +1 -1
- package/dist/{RadioControl-D6Wm5j7g.js → RadioControl-BdHtNPFC.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-CsEFu5wd.js → RadioControlBase.vue_vue_type_script_setup_true_lang-Cp22r9KZ.js} +2 -2
- package/dist/{ResourceControlBase-DRlen7vy.js → ResourceControlBase-CDpi3J6s.js} +2 -2
- package/dist/{RichTextControl-DPX_lxfc.js → RichTextControl-5o904Fvx.js} +2185 -2187
- package/dist/{SectionHeading-DIs2yBVY.js → SectionHeading-CrGc61FB.js} +1 -1
- package/dist/{SectionLayout-6ID4pFDm.js → SectionLayout-B9X7fzQ9.js} +3 -3
- package/dist/SettingsSubPanel-WzFrc-mQ.js +5 -0
- package/dist/{SettingsSubPanelLayout-bSgzF47m.js → SettingsSubPanelLayout-D8j0-HKD.js} +7 -7
- package/dist/{SimpleButtonControl-CpO-Xbws.js → SimpleButtonControl-BS6opqJW.js} +8 -8
- package/dist/{SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js → SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BuKsDBUW.js} +11510 -11132
- package/dist/{SimpleTwinlistControl-BMKo3T2E.js → SimpleTwinlistControl-RlnzOp0j.js} +2 -2
- package/dist/{SingleSelectControl-IDX5QUdR.js → SingleSelectControl-DPPwJUq3.js} +2 -2
- package/dist/{SingleSelectListBoxControl-CYGArF9u.js → SingleSelectListBoxControl-EMc8u2ik.js} +3 -3
- package/dist/SortListControl-Bw3K37ru.js +103 -0
- package/dist/{StyledListItem-DA8cbCw1.js → StyledListItem-Bli2itH-.js} +1 -1
- package/dist/{TeamAndSpacesControl-BThkHK2b.js → TeamAndSpacesControl-BlvUuAAA.js} +1 -1
- package/dist/{TeamResourceControl-CQgq2Bq5.js → TeamResourceControl-DuLmQ7gc.js} +2 -2
- package/dist/{TextAreaControl-ykGD_BnL.js → TextAreaControl-DtfB44mR.js} +1 -1
- package/dist/{TextControl-QTuQZi2l.js → TextControl-BlUQLMGo.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-C1Cs6NXf.js → TextControl.vue_vue_type_script_setup_true_lang-CBke-957.js} +2 -2
- package/dist/{TimeControl-W0VRENnH.js → TimeControl-DWzlpLX-.js} +1 -1
- package/dist/{TimePartInput-BHzqB1_B.js → TimePartInput-CRP2YYM0.js} +1 -1
- package/dist/{TimeframesControl-C12gkBRu.js → TimeframesControl-O_hzJcX5.js} +2 -2
- package/dist/{Tooltip-B0QEjsdY.js → Tooltip-C9vAa0Wb.js} +1 -1
- package/dist/{TwinlistControlBase.vue_vue_type_script_setup_true_lang-BlaFr27R.js → TwinlistControlBase.vue_vue_type_script_setup_true_lang-DtphbKhB.js} +2 -2
- package/dist/{TypedStringFilter-B-LUMedK.js → TypedStringFilter-ByeMPxR6.js} +1 -1
- package/dist/{ValueSwitch-BBO_VXIM.js → ValueSwitch-BV9qUd5x.js} +6 -6
- package/dist/{ValueSwitchControl-Jz7xZfY-.js → ValueSwitchControl-nW7WtSSM.js} +1 -1
- package/dist/{VerticalLayout-CGtB4d8F.js → VerticalLayout-C7_-yu_D.js} +2 -2
- package/dist/{VerticalLayoutBase-JY9q-FO2.js → VerticalLayoutBase-eODyPAoq.js} +1 -1
- package/dist/{ZonedDateTimeControl-BatkUEiY.js → ZonedDateTimeControl-DlrvZKe4.js} +2 -2
- package/dist/{_Uint8Array-Bbzs2Ov4.js → _Uint8Array-BESS0YjU.js} +14 -14
- package/dist/{_baseIteratee-pNDg46VS.js → _baseIteratee-BLvJX4uT.js} +9 -9
- package/dist/floating-ui.vue-Fx4CxKut.js +1057 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +113 -102
- package/dist/{localTimeUtils-B5XTvulp.js → localTimeUtils-Bl9xa5Jk.js} +1292 -1268
- package/dist/{popper-D54JdmBM.js → popper-iehk3xNV.js} +224 -210
- package/dist/src/renderers/defaultRenderers.d.ts +1 -930
- package/dist/src/renderers/sortListRenderer.d.ts +1 -930
- package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +2 -2
- package/dist/src/uiComponents/SortListControl.vue.d.ts +2 -918
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +3 -1
- package/dist/testing.js +2589 -2602
- package/dist/{toString-GoK24L1U.js → toString-DXFebvWA.js} +1 -1
- package/dist/{useBuiltinValidations-LGrGrHzT.js → useBuiltinValidations-ChnQzGRe.js} +1 -1
- package/dist/useDropdownNavigation-2Yhk7zes.js +821 -0
- package/dist/{usePossibleValues-ItF87hxE.js → usePossibleValues-B8es3DCW.js} +1 -1
- package/dist/{useUnknownValuesInTwinlist-B8gDSha9.js → useUnknownValuesInTwinlist-qv0kKHaD.js} +1 -1
- package/package.json +4 -4
- package/dist/Checkbox-DiIYr1i-.js +0 -75
- package/dist/ComboBoxControl-BoQyPwaV.js +0 -616
- package/dist/FileUploadControl-CFQSJwkd.js +0 -197
- package/dist/MultiSelectListBoxControl-DbJWOUtn.js +0 -31
- package/dist/SettingsSubPanel-BUVqvjIE.js +0 -5
- package/dist/SortListControl-LWMW3lAc.js +0 -389
- package/dist/_baseAssignValue-DV_dpE4l.js +0 -19
- package/dist/_baseEach-RTY-xHIc.js +0 -30
- package/dist/close-CwP2mh9x.js +0 -17
- package/dist/createMissingItem-B00Kg95q.js +0 -4
- package/dist/floating-ui.vue-Bk6u3tWN.js +0 -1060
- package/dist/navigator-e30QQMkl.js +0 -4
- package/dist/useDropdownNavigation-EOwf_fL0.js +0 -946
|
@@ -1,1060 +0,0 @@
|
|
|
1
|
-
import { computed as M, ref as K, shallowRef as jt, watch as ut, getCurrentScope as Yt, onScopeDispose as qt, shallowReadonly as j, unref as Ut } from "vue";
|
|
2
|
-
const tt = Math.min, $ = Math.max, et = Math.round, Z = Math.floor, T = (t) => ({
|
|
3
|
-
x: t,
|
|
4
|
-
y: t
|
|
5
|
-
}), Kt = {
|
|
6
|
-
left: "right",
|
|
7
|
-
right: "left",
|
|
8
|
-
bottom: "top",
|
|
9
|
-
top: "bottom"
|
|
10
|
-
};
|
|
11
|
-
function Ot(t, e, n) {
|
|
12
|
-
return $(t, tt(e, n));
|
|
13
|
-
}
|
|
14
|
-
function it(t, e) {
|
|
15
|
-
return typeof t == "function" ? t(e) : t;
|
|
16
|
-
}
|
|
17
|
-
function H(t) {
|
|
18
|
-
return t.split("-")[0];
|
|
19
|
-
}
|
|
20
|
-
function rt(t) {
|
|
21
|
-
return t.split("-")[1];
|
|
22
|
-
}
|
|
23
|
-
function Mt(t) {
|
|
24
|
-
return t === "x" ? "y" : "x";
|
|
25
|
-
}
|
|
26
|
-
function Vt(t) {
|
|
27
|
-
return t === "y" ? "height" : "width";
|
|
28
|
-
}
|
|
29
|
-
function V(t) {
|
|
30
|
-
const e = t[0];
|
|
31
|
-
return e === "t" || e === "b" ? "y" : "x";
|
|
32
|
-
}
|
|
33
|
-
function kt(t) {
|
|
34
|
-
return Mt(V(t));
|
|
35
|
-
}
|
|
36
|
-
function Gt(t, e, n) {
|
|
37
|
-
n === void 0 && (n = !1);
|
|
38
|
-
const o = rt(t), i = kt(t), s = Vt(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 = nt(r)), [r, nt(r)];
|
|
41
|
-
}
|
|
42
|
-
function Jt(t) {
|
|
43
|
-
const e = nt(t);
|
|
44
|
-
return [ht(t), e, ht(e)];
|
|
45
|
-
}
|
|
46
|
-
function ht(t) {
|
|
47
|
-
return t.includes("start") ? t.replace("start", "end") : t.replace("end", "start");
|
|
48
|
-
}
|
|
49
|
-
const At = ["left", "right"], Ct = ["right", "left"], Qt = ["top", "bottom"], Zt = ["bottom", "top"];
|
|
50
|
-
function te(t, e, n) {
|
|
51
|
-
switch (t) {
|
|
52
|
-
case "top":
|
|
53
|
-
case "bottom":
|
|
54
|
-
return n ? e ? Ct : At : e ? At : Ct;
|
|
55
|
-
case "left":
|
|
56
|
-
case "right":
|
|
57
|
-
return e ? Qt : Zt;
|
|
58
|
-
default:
|
|
59
|
-
return [];
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
function ee(t, e, n, o) {
|
|
63
|
-
const i = rt(t);
|
|
64
|
-
let s = te(H(t), n === "start", o);
|
|
65
|
-
return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(ht)))), s;
|
|
66
|
-
}
|
|
67
|
-
function nt(t) {
|
|
68
|
-
const e = H(t);
|
|
69
|
-
return Kt[e] + t.slice(e.length);
|
|
70
|
-
}
|
|
71
|
-
function ne(t) {
|
|
72
|
-
return {
|
|
73
|
-
top: 0,
|
|
74
|
-
right: 0,
|
|
75
|
-
bottom: 0,
|
|
76
|
-
left: 0,
|
|
77
|
-
...t
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
function oe(t) {
|
|
81
|
-
return typeof t != "number" ? ne(t) : {
|
|
82
|
-
top: t,
|
|
83
|
-
right: t,
|
|
84
|
-
bottom: t,
|
|
85
|
-
left: t
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
function ot(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 St(t, e, n) {
|
|
107
|
-
let {
|
|
108
|
-
reference: o,
|
|
109
|
-
floating: i
|
|
110
|
-
} = t;
|
|
111
|
-
const s = V(e), r = kt(e), c = Vt(r), l = H(e), a = s === "y", f = 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 u;
|
|
113
|
-
switch (l) {
|
|
114
|
-
case "top":
|
|
115
|
-
u = {
|
|
116
|
-
x: f,
|
|
117
|
-
y: o.y - i.height
|
|
118
|
-
};
|
|
119
|
-
break;
|
|
120
|
-
case "bottom":
|
|
121
|
-
u = {
|
|
122
|
-
x: f,
|
|
123
|
-
y: o.y + o.height
|
|
124
|
-
};
|
|
125
|
-
break;
|
|
126
|
-
case "right":
|
|
127
|
-
u = {
|
|
128
|
-
x: o.x + o.width,
|
|
129
|
-
y: d
|
|
130
|
-
};
|
|
131
|
-
break;
|
|
132
|
-
case "left":
|
|
133
|
-
u = {
|
|
134
|
-
x: o.x - i.width,
|
|
135
|
-
y: d
|
|
136
|
-
};
|
|
137
|
-
break;
|
|
138
|
-
default:
|
|
139
|
-
u = {
|
|
140
|
-
x: o.x,
|
|
141
|
-
y: o.y
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
switch (rt(e)) {
|
|
145
|
-
case "start":
|
|
146
|
-
u[r] -= m * (n && a ? -1 : 1);
|
|
147
|
-
break;
|
|
148
|
-
case "end":
|
|
149
|
-
u[r] += m * (n && a ? -1 : 1);
|
|
150
|
-
break;
|
|
151
|
-
}
|
|
152
|
-
return u;
|
|
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: l
|
|
164
|
-
} = t, {
|
|
165
|
-
boundary: a = "clippingAncestors",
|
|
166
|
-
rootBoundary: f = "viewport",
|
|
167
|
-
elementContext: d = "floating",
|
|
168
|
-
altBoundary: m = !1,
|
|
169
|
-
padding: u = 0
|
|
170
|
-
} = it(e, t), h = oe(u), y = c[m ? d === "floating" ? "reference" : "floating" : d], g = ot(await s.getClippingRect({
|
|
171
|
-
element: (n = await (s.isElement == null ? void 0 : s.isElement(y))) == null || n ? y : y.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
|
|
172
|
-
boundary: a,
|
|
173
|
-
rootBoundary: f,
|
|
174
|
-
strategy: l
|
|
175
|
-
})), w = d === "floating" ? {
|
|
176
|
-
x: o,
|
|
177
|
-
y: i,
|
|
178
|
-
width: r.floating.width,
|
|
179
|
-
height: r.floating.height
|
|
180
|
-
} : r.reference, x = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), b = await (s.isElement == null ? void 0 : s.isElement(x)) ? await (s.getScale == null ? void 0 : s.getScale(x)) || {
|
|
181
|
-
x: 1,
|
|
182
|
-
y: 1
|
|
183
|
-
} : {
|
|
184
|
-
x: 1,
|
|
185
|
-
y: 1
|
|
186
|
-
}, O = ot(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
187
|
-
elements: c,
|
|
188
|
-
rect: w,
|
|
189
|
-
offsetParent: x,
|
|
190
|
-
strategy: l
|
|
191
|
-
}) : w);
|
|
192
|
-
return {
|
|
193
|
-
top: (g.top - O.top + h.top) / b.y,
|
|
194
|
-
bottom: (O.bottom - g.bottom + h.bottom) / b.y,
|
|
195
|
-
left: (g.left - O.left + h.left) / b.x,
|
|
196
|
-
right: (O.right - g.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
|
-
}, l = await (r.isRTL == null ? void 0 : r.isRTL(e));
|
|
209
|
-
let a = await r.getElementRects({
|
|
210
|
-
reference: t,
|
|
211
|
-
floating: e,
|
|
212
|
-
strategy: i
|
|
213
|
-
}), {
|
|
214
|
-
x: f,
|
|
215
|
-
y: d
|
|
216
|
-
} = St(a, o, l), m = o, u = 0;
|
|
217
|
-
const h = {};
|
|
218
|
-
for (let p = 0; p < s.length; p++) {
|
|
219
|
-
const y = s[p];
|
|
220
|
-
if (!y)
|
|
221
|
-
continue;
|
|
222
|
-
const {
|
|
223
|
-
name: g,
|
|
224
|
-
fn: w
|
|
225
|
-
} = y, {
|
|
226
|
-
x,
|
|
227
|
-
y: b,
|
|
228
|
-
data: O,
|
|
229
|
-
reset: R
|
|
230
|
-
} = await w({
|
|
231
|
-
x: f,
|
|
232
|
-
y: d,
|
|
233
|
-
initialPlacement: o,
|
|
234
|
-
placement: m,
|
|
235
|
-
strategy: i,
|
|
236
|
-
middlewareData: h,
|
|
237
|
-
rects: a,
|
|
238
|
-
platform: c,
|
|
239
|
-
elements: {
|
|
240
|
-
reference: t,
|
|
241
|
-
floating: e
|
|
242
|
-
}
|
|
243
|
-
});
|
|
244
|
-
f = x ?? f, d = b ?? d, h[g] = {
|
|
245
|
-
...h[g],
|
|
246
|
-
...O
|
|
247
|
-
}, R && u < re && (u++, typeof R == "object" && (R.placement && (m = R.placement), R.rects && (a = R.rects === !0 ? await r.getElementRects({
|
|
248
|
-
reference: t,
|
|
249
|
-
floating: e,
|
|
250
|
-
strategy: i
|
|
251
|
-
}) : R.rects), {
|
|
252
|
-
x: f,
|
|
253
|
-
y: d
|
|
254
|
-
} = St(a, m, l)), p = -1);
|
|
255
|
-
}
|
|
256
|
-
return {
|
|
257
|
-
x: f,
|
|
258
|
-
y: d,
|
|
259
|
-
placement: m,
|
|
260
|
-
strategy: i,
|
|
261
|
-
middlewareData: h
|
|
262
|
-
};
|
|
263
|
-
}, ce = function(t) {
|
|
264
|
-
return t === void 0 && (t = {}), {
|
|
265
|
-
name: "flip",
|
|
266
|
-
options: t,
|
|
267
|
-
async fn(e) {
|
|
268
|
-
var n, o;
|
|
269
|
-
const {
|
|
270
|
-
placement: i,
|
|
271
|
-
middlewareData: s,
|
|
272
|
-
rects: r,
|
|
273
|
-
initialPlacement: c,
|
|
274
|
-
platform: l,
|
|
275
|
-
elements: a
|
|
276
|
-
} = e, {
|
|
277
|
-
mainAxis: f = !0,
|
|
278
|
-
crossAxis: d = !0,
|
|
279
|
-
fallbackPlacements: m,
|
|
280
|
-
fallbackStrategy: u = "bestFit",
|
|
281
|
-
fallbackAxisSideDirection: h = "none",
|
|
282
|
-
flipAlignment: p = !0,
|
|
283
|
-
...y
|
|
284
|
-
} = it(t, e);
|
|
285
|
-
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
286
|
-
return {};
|
|
287
|
-
const g = H(i), w = V(c), x = H(c) === c, b = await (l.isRTL == null ? void 0 : l.isRTL(a.floating)), O = m || (x || !p ? [nt(c)] : Jt(c)), R = h !== "none";
|
|
288
|
-
!m && R && O.push(...ee(c, p, h, b));
|
|
289
|
-
const v = [c, ...O], C = await l.detectOverflow(e, y), W = [];
|
|
290
|
-
let X = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
291
|
-
if (f && W.push(C[g]), d) {
|
|
292
|
-
const N = Gt(i, r, b);
|
|
293
|
-
W.push(C[N[0]], C[N[1]]);
|
|
294
|
-
}
|
|
295
|
-
if (X = [...X, {
|
|
296
|
-
placement: i,
|
|
297
|
-
overflows: W
|
|
298
|
-
}], !W.every((N) => N <= 0)) {
|
|
299
|
-
var vt, bt;
|
|
300
|
-
const N = (((vt = s.flip) == null ? void 0 : vt.index) || 0) + 1, ft = v[N];
|
|
301
|
-
if (ft && (!(d === "alignment" ? w !== V(ft) : !1) || // We leave the current main axis only if every placement on that axis
|
|
302
|
-
// overflows the main axis.
|
|
303
|
-
X.every((S) => V(S.placement) === w ? S.overflows[0] > 0 : !0)))
|
|
304
|
-
return {
|
|
305
|
-
data: {
|
|
306
|
-
index: N,
|
|
307
|
-
overflows: X
|
|
308
|
-
},
|
|
309
|
-
reset: {
|
|
310
|
-
placement: ft
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
|
-
let U = (bt = X.filter((B) => B.overflows[0] <= 0).sort((B, S) => B.overflows[1] - S.overflows[1])[0]) == null ? void 0 : bt.placement;
|
|
314
|
-
if (!U)
|
|
315
|
-
switch (u) {
|
|
316
|
-
case "bestFit": {
|
|
317
|
-
var Rt;
|
|
318
|
-
const B = (Rt = X.filter((S) => {
|
|
319
|
-
if (R) {
|
|
320
|
-
const F = V(S.placement);
|
|
321
|
-
return F === w || // Create a bias to the `y` side axis due to horizontal
|
|
322
|
-
// reading directions favoring greater width.
|
|
323
|
-
F === "y";
|
|
324
|
-
}
|
|
325
|
-
return !0;
|
|
326
|
-
}).map((S) => [S.placement, S.overflows.filter((F) => F > 0).reduce((F, Xt) => F + Xt, 0)]).sort((S, F) => S[1] - F[1])[0]) == null ? void 0 : Rt[0];
|
|
327
|
-
B && (U = B);
|
|
328
|
-
break;
|
|
329
|
-
}
|
|
330
|
-
case "initialPlacement":
|
|
331
|
-
U = c;
|
|
332
|
-
break;
|
|
333
|
-
}
|
|
334
|
-
if (i !== U)
|
|
335
|
-
return {
|
|
336
|
-
reset: {
|
|
337
|
-
placement: U
|
|
338
|
-
}
|
|
339
|
-
};
|
|
340
|
-
}
|
|
341
|
-
return {};
|
|
342
|
-
}
|
|
343
|
-
};
|
|
344
|
-
}, le = /* @__PURE__ */ new Set(["left", "top"]);
|
|
345
|
-
async function ae(t, e) {
|
|
346
|
-
const {
|
|
347
|
-
placement: n,
|
|
348
|
-
platform: o,
|
|
349
|
-
elements: i
|
|
350
|
-
} = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = H(n), c = rt(n), l = V(n) === "y", a = le.has(r) ? -1 : 1, f = s && l ? -1 : 1, d = it(e, t);
|
|
351
|
-
let {
|
|
352
|
-
mainAxis: m,
|
|
353
|
-
crossAxis: u,
|
|
354
|
-
alignmentAxis: h
|
|
355
|
-
} = typeof d == "number" ? {
|
|
356
|
-
mainAxis: d,
|
|
357
|
-
crossAxis: 0,
|
|
358
|
-
alignmentAxis: null
|
|
359
|
-
} : {
|
|
360
|
-
mainAxis: d.mainAxis || 0,
|
|
361
|
-
crossAxis: d.crossAxis || 0,
|
|
362
|
-
alignmentAxis: d.alignmentAxis
|
|
363
|
-
};
|
|
364
|
-
return c && typeof h == "number" && (u = c === "end" ? h * -1 : h), l ? {
|
|
365
|
-
x: u * f,
|
|
366
|
-
y: m * a
|
|
367
|
-
} : {
|
|
368
|
-
x: m * a,
|
|
369
|
-
y: u * f
|
|
370
|
-
};
|
|
371
|
-
}
|
|
372
|
-
const fe = function(t) {
|
|
373
|
-
return t === void 0 && (t = 0), {
|
|
374
|
-
name: "offset",
|
|
375
|
-
options: t,
|
|
376
|
-
async fn(e) {
|
|
377
|
-
var n, o;
|
|
378
|
-
const {
|
|
379
|
-
x: i,
|
|
380
|
-
y: s,
|
|
381
|
-
placement: r,
|
|
382
|
-
middlewareData: c
|
|
383
|
-
} = e, l = await ae(e, t);
|
|
384
|
-
return r === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
|
|
385
|
-
x: i + l.x,
|
|
386
|
-
y: s + l.y,
|
|
387
|
-
data: {
|
|
388
|
-
...l,
|
|
389
|
-
placement: r
|
|
390
|
-
}
|
|
391
|
-
};
|
|
392
|
-
}
|
|
393
|
-
};
|
|
394
|
-
}, ue = function(t) {
|
|
395
|
-
return t === void 0 && (t = {}), {
|
|
396
|
-
name: "shift",
|
|
397
|
-
options: t,
|
|
398
|
-
async fn(e) {
|
|
399
|
-
const {
|
|
400
|
-
x: n,
|
|
401
|
-
y: o,
|
|
402
|
-
placement: i,
|
|
403
|
-
platform: s
|
|
404
|
-
} = e, {
|
|
405
|
-
mainAxis: r = !0,
|
|
406
|
-
crossAxis: c = !1,
|
|
407
|
-
limiter: l = {
|
|
408
|
-
fn: (g) => {
|
|
409
|
-
let {
|
|
410
|
-
x: w,
|
|
411
|
-
y: x
|
|
412
|
-
} = g;
|
|
413
|
-
return {
|
|
414
|
-
x: w,
|
|
415
|
-
y: x
|
|
416
|
-
};
|
|
417
|
-
}
|
|
418
|
-
},
|
|
419
|
-
...a
|
|
420
|
-
} = it(t, e), f = {
|
|
421
|
-
x: n,
|
|
422
|
-
y: o
|
|
423
|
-
}, d = await s.detectOverflow(e, a), m = V(H(i)), u = Mt(m);
|
|
424
|
-
let h = f[u], p = f[m];
|
|
425
|
-
if (r) {
|
|
426
|
-
const g = u === "y" ? "top" : "left", w = u === "y" ? "bottom" : "right", x = h + d[g], b = h - d[w];
|
|
427
|
-
h = Ot(x, h, b);
|
|
428
|
-
}
|
|
429
|
-
if (c) {
|
|
430
|
-
const g = m === "y" ? "top" : "left", w = m === "y" ? "bottom" : "right", x = p + d[g], b = p - d[w];
|
|
431
|
-
p = Ot(x, p, b);
|
|
432
|
-
}
|
|
433
|
-
const y = l.fn({
|
|
434
|
-
...e,
|
|
435
|
-
[u]: h,
|
|
436
|
-
[m]: p
|
|
437
|
-
});
|
|
438
|
-
return {
|
|
439
|
-
...y,
|
|
440
|
-
data: {
|
|
441
|
-
x: y.x - n,
|
|
442
|
-
y: y.y - o,
|
|
443
|
-
enabled: {
|
|
444
|
-
[u]: r,
|
|
445
|
-
[m]: c
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
};
|
|
449
|
-
}
|
|
450
|
-
};
|
|
451
|
-
};
|
|
452
|
-
function st() {
|
|
453
|
-
return typeof window < "u";
|
|
454
|
-
}
|
|
455
|
-
function z(t) {
|
|
456
|
-
return pt(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
457
|
-
}
|
|
458
|
-
function A(t) {
|
|
459
|
-
var e;
|
|
460
|
-
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
461
|
-
}
|
|
462
|
-
function D(t) {
|
|
463
|
-
var e;
|
|
464
|
-
return (e = (pt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
465
|
-
}
|
|
466
|
-
function pt(t) {
|
|
467
|
-
return st() ? t instanceof Node || t instanceof A(t).Node : !1;
|
|
468
|
-
}
|
|
469
|
-
function E(t) {
|
|
470
|
-
return st() ? t instanceof Element || t instanceof A(t).Element : !1;
|
|
471
|
-
}
|
|
472
|
-
function P(t) {
|
|
473
|
-
return st() ? t instanceof HTMLElement || t instanceof A(t).HTMLElement : !1;
|
|
474
|
-
}
|
|
475
|
-
function Et(t) {
|
|
476
|
-
return !st() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof A(t).ShadowRoot;
|
|
477
|
-
}
|
|
478
|
-
function Q(t) {
|
|
479
|
-
const {
|
|
480
|
-
overflow: e,
|
|
481
|
-
overflowX: n,
|
|
482
|
-
overflowY: o,
|
|
483
|
-
display: i
|
|
484
|
-
} = L(t);
|
|
485
|
-
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && i !== "inline" && i !== "contents";
|
|
486
|
-
}
|
|
487
|
-
function de(t) {
|
|
488
|
-
return /^(table|td|th)$/.test(z(t));
|
|
489
|
-
}
|
|
490
|
-
function ct(t) {
|
|
491
|
-
try {
|
|
492
|
-
if (t.matches(":popover-open"))
|
|
493
|
-
return !0;
|
|
494
|
-
} catch {
|
|
495
|
-
}
|
|
496
|
-
try {
|
|
497
|
-
return t.matches(":modal");
|
|
498
|
-
} catch {
|
|
499
|
-
return !1;
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
const me = /transform|translate|scale|rotate|perspective|filter/, he = /paint|layout|strict|content/, _ = (t) => !!t && t !== "none";
|
|
503
|
-
let dt;
|
|
504
|
-
function wt(t) {
|
|
505
|
-
const e = E(t) ? L(t) : t;
|
|
506
|
-
return _(e.transform) || _(e.translate) || _(e.scale) || _(e.rotate) || _(e.perspective) || !yt() && (_(e.backdropFilter) || _(e.filter)) || me.test(e.willChange || "") || he.test(e.contain || "");
|
|
507
|
-
}
|
|
508
|
-
function ge(t) {
|
|
509
|
-
let e = k(t);
|
|
510
|
-
for (; P(e) && !q(e); ) {
|
|
511
|
-
if (wt(e))
|
|
512
|
-
return e;
|
|
513
|
-
if (ct(e))
|
|
514
|
-
return null;
|
|
515
|
-
e = k(e);
|
|
516
|
-
}
|
|
517
|
-
return null;
|
|
518
|
-
}
|
|
519
|
-
function yt() {
|
|
520
|
-
return dt == null && (dt = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), dt;
|
|
521
|
-
}
|
|
522
|
-
function q(t) {
|
|
523
|
-
return /^(html|body|#document)$/.test(z(t));
|
|
524
|
-
}
|
|
525
|
-
function L(t) {
|
|
526
|
-
return A(t).getComputedStyle(t);
|
|
527
|
-
}
|
|
528
|
-
function lt(t) {
|
|
529
|
-
return E(t) ? {
|
|
530
|
-
scrollLeft: t.scrollLeft,
|
|
531
|
-
scrollTop: t.scrollTop
|
|
532
|
-
} : {
|
|
533
|
-
scrollLeft: t.scrollX,
|
|
534
|
-
scrollTop: t.scrollY
|
|
535
|
-
};
|
|
536
|
-
}
|
|
537
|
-
function k(t) {
|
|
538
|
-
if (z(t) === "html")
|
|
539
|
-
return t;
|
|
540
|
-
const e = (
|
|
541
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
542
|
-
t.assignedSlot || // DOM Element detected.
|
|
543
|
-
t.parentNode || // ShadowRoot detected.
|
|
544
|
-
Et(t) && t.host || // Fallback.
|
|
545
|
-
D(t)
|
|
546
|
-
);
|
|
547
|
-
return Et(e) ? e.host : e;
|
|
548
|
-
}
|
|
549
|
-
function Wt(t) {
|
|
550
|
-
const e = k(t);
|
|
551
|
-
return q(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : P(e) && Q(e) ? e : Wt(e);
|
|
552
|
-
}
|
|
553
|
-
function J(t, e, n) {
|
|
554
|
-
var o;
|
|
555
|
-
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
556
|
-
const i = Wt(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = A(i);
|
|
557
|
-
if (s) {
|
|
558
|
-
const c = gt(r);
|
|
559
|
-
return e.concat(r, r.visualViewport || [], Q(i) ? i : [], c && n ? J(c) : []);
|
|
560
|
-
} else
|
|
561
|
-
return e.concat(i, J(i, [], n));
|
|
562
|
-
}
|
|
563
|
-
function gt(t) {
|
|
564
|
-
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
565
|
-
}
|
|
566
|
-
function Nt(t) {
|
|
567
|
-
const e = L(t);
|
|
568
|
-
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
569
|
-
const i = P(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, c = et(n) !== s || et(o) !== r;
|
|
570
|
-
return c && (n = s, o = r), {
|
|
571
|
-
width: n,
|
|
572
|
-
height: o,
|
|
573
|
-
$: c
|
|
574
|
-
};
|
|
575
|
-
}
|
|
576
|
-
function xt(t) {
|
|
577
|
-
return E(t) ? t : t.contextElement;
|
|
578
|
-
}
|
|
579
|
-
function Y(t) {
|
|
580
|
-
const e = xt(t);
|
|
581
|
-
if (!P(e))
|
|
582
|
-
return T(1);
|
|
583
|
-
const n = e.getBoundingClientRect(), {
|
|
584
|
-
width: o,
|
|
585
|
-
height: i,
|
|
586
|
-
$: s
|
|
587
|
-
} = Nt(e);
|
|
588
|
-
let r = (s ? et(n.width) : n.width) / o, c = (s ? et(n.height) : n.height) / i;
|
|
589
|
-
return (!r || !Number.isFinite(r)) && (r = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
590
|
-
x: r,
|
|
591
|
-
y: c
|
|
592
|
-
};
|
|
593
|
-
}
|
|
594
|
-
const pe = /* @__PURE__ */ T(0);
|
|
595
|
-
function Bt(t) {
|
|
596
|
-
const e = A(t);
|
|
597
|
-
return !yt() || !e.visualViewport ? pe : {
|
|
598
|
-
x: e.visualViewport.offsetLeft,
|
|
599
|
-
y: e.visualViewport.offsetTop
|
|
600
|
-
};
|
|
601
|
-
}
|
|
602
|
-
function we(t, e, n) {
|
|
603
|
-
return e === void 0 && (e = !1), !n || e && n !== A(t) ? !1 : e;
|
|
604
|
-
}
|
|
605
|
-
function I(t, e, n, o) {
|
|
606
|
-
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
607
|
-
const i = t.getBoundingClientRect(), s = xt(t);
|
|
608
|
-
let r = T(1);
|
|
609
|
-
e && (o ? E(o) && (r = Y(o)) : r = Y(t));
|
|
610
|
-
const c = we(s, n, o) ? Bt(s) : T(0);
|
|
611
|
-
let l = (i.left + c.x) / r.x, a = (i.top + c.y) / r.y, f = i.width / r.x, d = i.height / r.y;
|
|
612
|
-
if (s) {
|
|
613
|
-
const m = A(s), u = o && E(o) ? A(o) : o;
|
|
614
|
-
let h = m, p = gt(h);
|
|
615
|
-
for (; p && o && u !== h; ) {
|
|
616
|
-
const y = Y(p), g = p.getBoundingClientRect(), w = L(p), x = g.left + (p.clientLeft + parseFloat(w.paddingLeft)) * y.x, b = g.top + (p.clientTop + parseFloat(w.paddingTop)) * y.y;
|
|
617
|
-
l *= y.x, a *= y.y, f *= y.x, d *= y.y, l += x, a += b, h = A(p), p = gt(h);
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
return ot({
|
|
621
|
-
width: f,
|
|
622
|
-
height: d,
|
|
623
|
-
x: l,
|
|
624
|
-
y: a
|
|
625
|
-
});
|
|
626
|
-
}
|
|
627
|
-
function at(t, e) {
|
|
628
|
-
const n = lt(t).scrollLeft;
|
|
629
|
-
return e ? e.left + n : I(D(t)).left + n;
|
|
630
|
-
}
|
|
631
|
-
function _t(t, e) {
|
|
632
|
-
const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - at(t, n), i = n.top + e.scrollTop;
|
|
633
|
-
return {
|
|
634
|
-
x: o,
|
|
635
|
-
y: i
|
|
636
|
-
};
|
|
637
|
-
}
|
|
638
|
-
function ye(t) {
|
|
639
|
-
let {
|
|
640
|
-
elements: e,
|
|
641
|
-
rect: n,
|
|
642
|
-
offsetParent: o,
|
|
643
|
-
strategy: i
|
|
644
|
-
} = t;
|
|
645
|
-
const s = i === "fixed", r = D(o), c = e ? ct(e.floating) : !1;
|
|
646
|
-
if (o === r || c && s)
|
|
647
|
-
return n;
|
|
648
|
-
let l = {
|
|
649
|
-
scrollLeft: 0,
|
|
650
|
-
scrollTop: 0
|
|
651
|
-
}, a = T(1);
|
|
652
|
-
const f = T(0), d = P(o);
|
|
653
|
-
if ((d || !d && !s) && ((z(o) !== "body" || Q(r)) && (l = lt(o)), d)) {
|
|
654
|
-
const u = I(o);
|
|
655
|
-
a = Y(o), f.x = u.x + o.clientLeft, f.y = u.y + o.clientTop;
|
|
656
|
-
}
|
|
657
|
-
const m = r && !d && !s ? _t(r, l) : T(0);
|
|
658
|
-
return {
|
|
659
|
-
width: n.width * a.x,
|
|
660
|
-
height: n.height * a.y,
|
|
661
|
-
x: n.x * a.x - l.scrollLeft * a.x + f.x + m.x,
|
|
662
|
-
y: n.y * a.y - l.scrollTop * a.y + f.y + m.y
|
|
663
|
-
};
|
|
664
|
-
}
|
|
665
|
-
function xe(t) {
|
|
666
|
-
return Array.from(t.getClientRects());
|
|
667
|
-
}
|
|
668
|
-
function ve(t) {
|
|
669
|
-
const e = D(t), n = lt(t), o = t.ownerDocument.body, i = $(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = $(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
670
|
-
let r = -n.scrollLeft + at(t);
|
|
671
|
-
const c = -n.scrollTop;
|
|
672
|
-
return L(o).direction === "rtl" && (r += $(e.clientWidth, o.clientWidth) - i), {
|
|
673
|
-
width: i,
|
|
674
|
-
height: s,
|
|
675
|
-
x: r,
|
|
676
|
-
y: c
|
|
677
|
-
};
|
|
678
|
-
}
|
|
679
|
-
const Lt = 25;
|
|
680
|
-
function be(t, e) {
|
|
681
|
-
const n = A(t), o = D(t), i = n.visualViewport;
|
|
682
|
-
let s = o.clientWidth, r = o.clientHeight, c = 0, l = 0;
|
|
683
|
-
if (i) {
|
|
684
|
-
s = i.width, r = i.height;
|
|
685
|
-
const f = yt();
|
|
686
|
-
(!f || f && e === "fixed") && (c = i.offsetLeft, l = i.offsetTop);
|
|
687
|
-
}
|
|
688
|
-
const a = at(o);
|
|
689
|
-
if (a <= 0) {
|
|
690
|
-
const f = o.ownerDocument, d = f.body, m = getComputedStyle(d), u = f.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, h = Math.abs(o.clientWidth - d.clientWidth - u);
|
|
691
|
-
h <= Lt && (s -= h);
|
|
692
|
-
} else a <= Lt && (s += a);
|
|
693
|
-
return {
|
|
694
|
-
width: s,
|
|
695
|
-
height: r,
|
|
696
|
-
x: c,
|
|
697
|
-
y: l
|
|
698
|
-
};
|
|
699
|
-
}
|
|
700
|
-
function Re(t, e) {
|
|
701
|
-
const n = I(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = P(t) ? Y(t) : T(1), r = t.clientWidth * s.x, c = t.clientHeight * s.y, l = i * s.x, a = o * s.y;
|
|
702
|
-
return {
|
|
703
|
-
width: r,
|
|
704
|
-
height: c,
|
|
705
|
-
x: l,
|
|
706
|
-
y: a
|
|
707
|
-
};
|
|
708
|
-
}
|
|
709
|
-
function Tt(t, e, n) {
|
|
710
|
-
let o;
|
|
711
|
-
if (e === "viewport")
|
|
712
|
-
o = be(t, n);
|
|
713
|
-
else if (e === "document")
|
|
714
|
-
o = ve(D(t));
|
|
715
|
-
else if (E(e))
|
|
716
|
-
o = Re(e, n);
|
|
717
|
-
else {
|
|
718
|
-
const i = Bt(t);
|
|
719
|
-
o = {
|
|
720
|
-
x: e.x - i.x,
|
|
721
|
-
y: e.y - i.y,
|
|
722
|
-
width: e.width,
|
|
723
|
-
height: e.height
|
|
724
|
-
};
|
|
725
|
-
}
|
|
726
|
-
return ot(o);
|
|
727
|
-
}
|
|
728
|
-
function $t(t, e) {
|
|
729
|
-
const n = k(t);
|
|
730
|
-
return n === e || !E(n) || q(n) ? !1 : L(n).position === "fixed" || $t(n, e);
|
|
731
|
-
}
|
|
732
|
-
function Oe(t, e) {
|
|
733
|
-
const n = e.get(t);
|
|
734
|
-
if (n)
|
|
735
|
-
return n;
|
|
736
|
-
let o = J(t, [], !1).filter((c) => E(c) && z(c) !== "body"), i = null;
|
|
737
|
-
const s = L(t).position === "fixed";
|
|
738
|
-
let r = s ? k(t) : t;
|
|
739
|
-
for (; E(r) && !q(r); ) {
|
|
740
|
-
const c = L(r), l = wt(r);
|
|
741
|
-
!l && c.position === "fixed" && (i = null), (s ? !l && !i : !l && c.position === "static" && !!i && (i.position === "absolute" || i.position === "fixed") || Q(r) && !l && $t(t, r)) ? o = o.filter((f) => f !== r) : i = c, r = k(r);
|
|
742
|
-
}
|
|
743
|
-
return e.set(t, o), o;
|
|
744
|
-
}
|
|
745
|
-
function Ae(t) {
|
|
746
|
-
let {
|
|
747
|
-
element: e,
|
|
748
|
-
boundary: n,
|
|
749
|
-
rootBoundary: o,
|
|
750
|
-
strategy: i
|
|
751
|
-
} = t;
|
|
752
|
-
const r = [...n === "clippingAncestors" ? ct(e) ? [] : Oe(e, this._c) : [].concat(n), o], c = Tt(e, r[0], i);
|
|
753
|
-
let l = c.top, a = c.right, f = c.bottom, d = c.left;
|
|
754
|
-
for (let m = 1; m < r.length; m++) {
|
|
755
|
-
const u = Tt(e, r[m], i);
|
|
756
|
-
l = $(u.top, l), a = tt(u.right, a), f = tt(u.bottom, f), d = $(u.left, d);
|
|
757
|
-
}
|
|
758
|
-
return {
|
|
759
|
-
width: a - d,
|
|
760
|
-
height: f - l,
|
|
761
|
-
x: d,
|
|
762
|
-
y: l
|
|
763
|
-
};
|
|
764
|
-
}
|
|
765
|
-
function Ce(t) {
|
|
766
|
-
const {
|
|
767
|
-
width: e,
|
|
768
|
-
height: n
|
|
769
|
-
} = Nt(t);
|
|
770
|
-
return {
|
|
771
|
-
width: e,
|
|
772
|
-
height: n
|
|
773
|
-
};
|
|
774
|
-
}
|
|
775
|
-
function Se(t, e, n) {
|
|
776
|
-
const o = P(e), i = D(e), s = n === "fixed", r = I(t, !0, s, e);
|
|
777
|
-
let c = {
|
|
778
|
-
scrollLeft: 0,
|
|
779
|
-
scrollTop: 0
|
|
780
|
-
};
|
|
781
|
-
const l = T(0);
|
|
782
|
-
function a() {
|
|
783
|
-
l.x = at(i);
|
|
784
|
-
}
|
|
785
|
-
if (o || !o && !s)
|
|
786
|
-
if ((z(e) !== "body" || Q(i)) && (c = lt(e)), o) {
|
|
787
|
-
const u = I(e, !0, s, e);
|
|
788
|
-
l.x = u.x + e.clientLeft, l.y = u.y + e.clientTop;
|
|
789
|
-
} else i && a();
|
|
790
|
-
s && !o && i && a();
|
|
791
|
-
const f = i && !o && !s ? _t(i, c) : T(0), d = r.left + c.scrollLeft - l.x - f.x, m = r.top + c.scrollTop - l.y - f.y;
|
|
792
|
-
return {
|
|
793
|
-
x: d,
|
|
794
|
-
y: m,
|
|
795
|
-
width: r.width,
|
|
796
|
-
height: r.height
|
|
797
|
-
};
|
|
798
|
-
}
|
|
799
|
-
function mt(t) {
|
|
800
|
-
return L(t).position === "static";
|
|
801
|
-
}
|
|
802
|
-
function Dt(t, e) {
|
|
803
|
-
if (!P(t) || L(t).position === "fixed")
|
|
804
|
-
return null;
|
|
805
|
-
if (e)
|
|
806
|
-
return e(t);
|
|
807
|
-
let n = t.offsetParent;
|
|
808
|
-
return D(t) === n && (n = n.ownerDocument.body), n;
|
|
809
|
-
}
|
|
810
|
-
function Ht(t, e) {
|
|
811
|
-
const n = A(t);
|
|
812
|
-
if (ct(t))
|
|
813
|
-
return n;
|
|
814
|
-
if (!P(t)) {
|
|
815
|
-
let i = k(t);
|
|
816
|
-
for (; i && !q(i); ) {
|
|
817
|
-
if (E(i) && !mt(i))
|
|
818
|
-
return i;
|
|
819
|
-
i = k(i);
|
|
820
|
-
}
|
|
821
|
-
return n;
|
|
822
|
-
}
|
|
823
|
-
let o = Dt(t, e);
|
|
824
|
-
for (; o && de(o) && mt(o); )
|
|
825
|
-
o = Dt(o, e);
|
|
826
|
-
return o && q(o) && mt(o) && !wt(o) ? n : o || ge(t) || n;
|
|
827
|
-
}
|
|
828
|
-
const Ee = async function(t) {
|
|
829
|
-
const e = this.getOffsetParent || Ht, n = this.getDimensions, o = await n(t.floating);
|
|
830
|
-
return {
|
|
831
|
-
reference: Se(t.reference, await e(t.floating), t.strategy),
|
|
832
|
-
floating: {
|
|
833
|
-
x: 0,
|
|
834
|
-
y: 0,
|
|
835
|
-
width: o.width,
|
|
836
|
-
height: o.height
|
|
837
|
-
}
|
|
838
|
-
};
|
|
839
|
-
};
|
|
840
|
-
function Le(t) {
|
|
841
|
-
return L(t).direction === "rtl";
|
|
842
|
-
}
|
|
843
|
-
const Te = {
|
|
844
|
-
convertOffsetParentRelativeRectToViewportRelativeRect: ye,
|
|
845
|
-
getDocumentElement: D,
|
|
846
|
-
getClippingRect: Ae,
|
|
847
|
-
getOffsetParent: Ht,
|
|
848
|
-
getElementRects: Ee,
|
|
849
|
-
getClientRects: xe,
|
|
850
|
-
getDimensions: Ce,
|
|
851
|
-
getScale: Y,
|
|
852
|
-
isElement: E,
|
|
853
|
-
isRTL: Le
|
|
854
|
-
};
|
|
855
|
-
function It(t, e) {
|
|
856
|
-
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
857
|
-
}
|
|
858
|
-
function De(t, e) {
|
|
859
|
-
let n = null, o;
|
|
860
|
-
const i = D(t);
|
|
861
|
-
function s() {
|
|
862
|
-
var c;
|
|
863
|
-
clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
|
|
864
|
-
}
|
|
865
|
-
function r(c, l) {
|
|
866
|
-
c === void 0 && (c = !1), l === void 0 && (l = 1), s();
|
|
867
|
-
const a = t.getBoundingClientRect(), {
|
|
868
|
-
left: f,
|
|
869
|
-
top: d,
|
|
870
|
-
width: m,
|
|
871
|
-
height: u
|
|
872
|
-
} = a;
|
|
873
|
-
if (c || e(), !m || !u)
|
|
874
|
-
return;
|
|
875
|
-
const h = Z(d), p = Z(i.clientWidth - (f + m)), y = Z(i.clientHeight - (d + u)), g = Z(f), x = {
|
|
876
|
-
rootMargin: -h + "px " + -p + "px " + -y + "px " + -g + "px",
|
|
877
|
-
threshold: $(0, tt(1, l)) || 1
|
|
878
|
-
};
|
|
879
|
-
let b = !0;
|
|
880
|
-
function O(R) {
|
|
881
|
-
const v = R[0].intersectionRatio;
|
|
882
|
-
if (v !== l) {
|
|
883
|
-
if (!b)
|
|
884
|
-
return r();
|
|
885
|
-
v ? r(!1, v) : o = setTimeout(() => {
|
|
886
|
-
r(!1, 1e-7);
|
|
887
|
-
}, 1e3);
|
|
888
|
-
}
|
|
889
|
-
v === 1 && !It(a, t.getBoundingClientRect()) && r(), b = !1;
|
|
890
|
-
}
|
|
891
|
-
try {
|
|
892
|
-
n = new IntersectionObserver(O, {
|
|
893
|
-
...x,
|
|
894
|
-
// Handle <iframe>s
|
|
895
|
-
root: i.ownerDocument
|
|
896
|
-
});
|
|
897
|
-
} catch {
|
|
898
|
-
n = new IntersectionObserver(O, x);
|
|
899
|
-
}
|
|
900
|
-
n.observe(t);
|
|
901
|
-
}
|
|
902
|
-
return r(!0), s;
|
|
903
|
-
}
|
|
904
|
-
function Ve(t, e, n, o) {
|
|
905
|
-
o === void 0 && (o = {});
|
|
906
|
-
const {
|
|
907
|
-
ancestorScroll: i = !0,
|
|
908
|
-
ancestorResize: s = !0,
|
|
909
|
-
elementResize: r = typeof ResizeObserver == "function",
|
|
910
|
-
layoutShift: c = typeof IntersectionObserver == "function",
|
|
911
|
-
animationFrame: l = !1
|
|
912
|
-
} = o, a = xt(t), f = i || s ? [...a ? J(a) : [], ...e ? J(e) : []] : [];
|
|
913
|
-
f.forEach((g) => {
|
|
914
|
-
i && g.addEventListener("scroll", n, {
|
|
915
|
-
passive: !0
|
|
916
|
-
}), s && g.addEventListener("resize", n);
|
|
917
|
-
});
|
|
918
|
-
const d = a && c ? De(a, n) : null;
|
|
919
|
-
let m = -1, u = null;
|
|
920
|
-
r && (u = new ResizeObserver((g) => {
|
|
921
|
-
let [w] = g;
|
|
922
|
-
w && w.target === a && u && e && (u.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
923
|
-
var x;
|
|
924
|
-
(x = u) == null || x.observe(e);
|
|
925
|
-
})), n();
|
|
926
|
-
}), a && !l && u.observe(a), e && u.observe(e));
|
|
927
|
-
let h, p = l ? I(t) : null;
|
|
928
|
-
l && y();
|
|
929
|
-
function y() {
|
|
930
|
-
const g = I(t);
|
|
931
|
-
p && !It(p, g) && n(), p = g, h = requestAnimationFrame(y);
|
|
932
|
-
}
|
|
933
|
-
return n(), () => {
|
|
934
|
-
var g;
|
|
935
|
-
f.forEach((w) => {
|
|
936
|
-
i && w.removeEventListener("scroll", n), s && w.removeEventListener("resize", n);
|
|
937
|
-
}), d?.(), (g = u) == null || g.disconnect(), u = null, l && cancelAnimationFrame(h);
|
|
938
|
-
};
|
|
939
|
-
}
|
|
940
|
-
const ke = fe, We = ue, Ne = ce, Pe = (t, e, n) => {
|
|
941
|
-
const o = /* @__PURE__ */ new Map(), i = {
|
|
942
|
-
platform: Te,
|
|
943
|
-
...n
|
|
944
|
-
}, s = {
|
|
945
|
-
...i.platform,
|
|
946
|
-
_c: o
|
|
947
|
-
};
|
|
948
|
-
return se(t, e, {
|
|
949
|
-
...i,
|
|
950
|
-
platform: s
|
|
951
|
-
});
|
|
952
|
-
};
|
|
953
|
-
function Fe(t) {
|
|
954
|
-
return t != null && typeof t == "object" && "$el" in t;
|
|
955
|
-
}
|
|
956
|
-
function Pt(t) {
|
|
957
|
-
if (Fe(t)) {
|
|
958
|
-
const e = t.$el;
|
|
959
|
-
return pt(e) && z(e) === "#comment" ? null : e;
|
|
960
|
-
}
|
|
961
|
-
return t;
|
|
962
|
-
}
|
|
963
|
-
function G(t) {
|
|
964
|
-
return typeof t == "function" ? t() : Ut(t);
|
|
965
|
-
}
|
|
966
|
-
function zt(t) {
|
|
967
|
-
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
968
|
-
}
|
|
969
|
-
function Ft(t, e) {
|
|
970
|
-
const n = zt(t);
|
|
971
|
-
return Math.round(e * n) / n;
|
|
972
|
-
}
|
|
973
|
-
function Be(t, e, n) {
|
|
974
|
-
n === void 0 && (n = {});
|
|
975
|
-
const o = n.whileElementsMounted, i = M(() => {
|
|
976
|
-
var v;
|
|
977
|
-
return (v = G(n.open)) != null ? v : !0;
|
|
978
|
-
}), s = M(() => G(n.middleware)), r = M(() => {
|
|
979
|
-
var v;
|
|
980
|
-
return (v = G(n.placement)) != null ? v : "bottom";
|
|
981
|
-
}), c = M(() => {
|
|
982
|
-
var v;
|
|
983
|
-
return (v = G(n.strategy)) != null ? v : "absolute";
|
|
984
|
-
}), l = M(() => {
|
|
985
|
-
var v;
|
|
986
|
-
return (v = G(n.transform)) != null ? v : !0;
|
|
987
|
-
}), a = M(() => Pt(t.value)), f = M(() => Pt(e.value)), d = K(0), m = K(0), u = K(c.value), h = K(r.value), p = jt({}), y = K(!1), g = M(() => {
|
|
988
|
-
const v = {
|
|
989
|
-
position: u.value,
|
|
990
|
-
left: "0",
|
|
991
|
-
top: "0"
|
|
992
|
-
};
|
|
993
|
-
if (!f.value)
|
|
994
|
-
return v;
|
|
995
|
-
const C = Ft(f.value, d.value), W = Ft(f.value, m.value);
|
|
996
|
-
return l.value ? {
|
|
997
|
-
...v,
|
|
998
|
-
transform: "translate(" + C + "px, " + W + "px)",
|
|
999
|
-
...zt(f.value) >= 1.5 && {
|
|
1000
|
-
willChange: "transform"
|
|
1001
|
-
}
|
|
1002
|
-
} : {
|
|
1003
|
-
position: u.value,
|
|
1004
|
-
left: C + "px",
|
|
1005
|
-
top: W + "px"
|
|
1006
|
-
};
|
|
1007
|
-
});
|
|
1008
|
-
let w;
|
|
1009
|
-
function x() {
|
|
1010
|
-
if (a.value == null || f.value == null)
|
|
1011
|
-
return;
|
|
1012
|
-
const v = i.value;
|
|
1013
|
-
Pe(a.value, f.value, {
|
|
1014
|
-
middleware: s.value,
|
|
1015
|
-
placement: r.value,
|
|
1016
|
-
strategy: c.value
|
|
1017
|
-
}).then((C) => {
|
|
1018
|
-
d.value = C.x, m.value = C.y, u.value = C.strategy, h.value = C.placement, p.value = C.middlewareData, y.value = v !== !1;
|
|
1019
|
-
});
|
|
1020
|
-
}
|
|
1021
|
-
function b() {
|
|
1022
|
-
typeof w == "function" && (w(), w = void 0);
|
|
1023
|
-
}
|
|
1024
|
-
function O() {
|
|
1025
|
-
if (b(), o === void 0) {
|
|
1026
|
-
x();
|
|
1027
|
-
return;
|
|
1028
|
-
}
|
|
1029
|
-
if (a.value != null && f.value != null) {
|
|
1030
|
-
w = o(a.value, f.value, x);
|
|
1031
|
-
return;
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
function R() {
|
|
1035
|
-
i.value || (y.value = !1);
|
|
1036
|
-
}
|
|
1037
|
-
return ut([s, r, c, i], x, {
|
|
1038
|
-
flush: "sync"
|
|
1039
|
-
}), ut([a, f], O, {
|
|
1040
|
-
flush: "sync"
|
|
1041
|
-
}), ut(i, R, {
|
|
1042
|
-
flush: "sync"
|
|
1043
|
-
}), Yt() && qt(b), {
|
|
1044
|
-
x: j(d),
|
|
1045
|
-
y: j(m),
|
|
1046
|
-
strategy: j(u),
|
|
1047
|
-
placement: j(h),
|
|
1048
|
-
middlewareData: j(p),
|
|
1049
|
-
isPositioned: j(y),
|
|
1050
|
-
floatingStyles: g,
|
|
1051
|
-
update: x
|
|
1052
|
-
};
|
|
1053
|
-
}
|
|
1054
|
-
export {
|
|
1055
|
-
Ve as a,
|
|
1056
|
-
Ne as f,
|
|
1057
|
-
ke as o,
|
|
1058
|
-
We as s,
|
|
1059
|
-
Be as u
|
|
1060
|
-
};
|