@knime/jsonforms 1.14.3 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/{AnyOfTwinlist-Cwxtyt0Q.js → AnyOfTwinlist-Co_sJAsc.js} +3 -3
- package/dist/{Button-BxuGKyL5.js → Button-Cqwayw73.js} +4 -4
- package/dist/CheckboxControl-C10_DX1N.js +40 -0
- package/dist/{Checkboxes-DIPjJhPO.js → Checkboxes-DWOxHiUX.js} +2 -2
- package/dist/{CheckboxesControl-5QlPmjwv.js → CheckboxesControl-BMRFgmO_.js} +7 -10
- package/dist/{ComboBoxControl-Dk02x7sN.js → ComboBoxControl-R0DlbAdT.js} +26 -29
- package/dist/{DateControl-CddCObVg.js → DateControl-DAGAM92B.js} +3 -3
- package/dist/DateTimeControl-DJhIb_U4.js +45 -0
- package/dist/{DateTimeFormatInput-bO1zHUyp.js → DateTimeFormatInput-BhLQzC-P.js} +74 -82
- package/dist/{DateTimeFormatPickerControl-Dq25_JV2.js → DateTimeFormatPickerControl-V7pxRYaW.js} +5 -8
- package/dist/{DateTimeFormatPickerWithTypeControl-DZib_x-B.js → DateTimeFormatPickerWithTypeControl-3fa75rGw.js} +6 -9
- package/dist/{DateTimeInput-CEYEV8dt.js → DateTimeInput-Cs0KqlOS.js} +4629 -4556
- package/dist/Dropdown-BEx-cvXH.js +608 -0
- package/dist/{DropdownControl-BNQKWzTT.js → DropdownControl-DEIA5VD4.js} +4 -4
- package/dist/{HorizontalLayout-6GwurgkR.js → HorizontalLayout-DCfhMNq4.js} +2 -2
- package/dist/{InputField-BYxW_-G3.js → InputField-OkFB9VHZ.js} +11 -11
- package/dist/{IntegerControl-DZIY-wb_.js → IntegerControl-Om8J7hch.js} +3 -3
- package/dist/{IntervalControl-Yts36_MI.js → IntervalControl-B7UbyyD-.js} +99 -100
- package/dist/{LoadingDropdown-Dw-0WQ8x.js → LoadingDropdown-CINkq_Sw.js} +6 -6
- package/dist/{ManualTwinlistControl-C3NnAug1.js → ManualTwinlistControl-BLTfr2gT.js} +24 -30
- package/dist/MultiSelectListBoxControl-j1TaFtQj.js +31 -0
- package/dist/{MultimodeTwinlistControl-B2Jven29.js → MultimodeTwinlistControl-BsFqHRFM.js} +97 -108
- package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-DGKMWtLi.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-2fVBipAl.js} +1 -1
- package/dist/{MultiselectListBox-CHvGxAhY.js → MultiselectListBox-CMTJnAWr.js} +18 -23
- package/dist/{NameFilter-D0hKO5Fr.js → NameFilter-d5k6rDVY.js} +3 -3
- package/dist/{NumberControl-DkeQT1iR.js → NumberControl-Kc3hvVef.js} +3 -3
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-BOCR1qXG.js +50 -0
- package/dist/{NumberInput-DJ38AGiR.js → NumberInput-BepS3tAK.js} +5 -5
- package/dist/{OneOfDropdown-NAgE-mPP.js → OneOfDropdown-CLwVXrbC.js} +10 -11
- package/dist/{RadioControl-DjrysNQ_.js → RadioControl-DpziR8nA.js} +4 -4
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DVIeg5W1.js +104 -0
- package/dist/{RichTextControl-CXY1ULxR.js → RichTextControl-CE6whfV5.js} +4524 -4079
- package/dist/SectionHeading-D7znCZXu.js +19 -0
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js +15431 -0
- package/dist/{SectionLayout-CJP4sYyB.js → SectionLayout-BhXDOzqB.js} +4 -4
- package/dist/SettingsSubPanel-x9uWGoiu.js +5 -0
- package/dist/{SettingsSubPanelLayout-YBNVPQOD.js → SettingsSubPanelLayout-BPHBM5n5.js} +12 -11
- package/dist/{SimpleButtonControl-ejyUwJdL.js → SimpleButtonControl-DfCSlgZS.js} +9 -9
- package/dist/SimpleTwinlistControl-CBalniCf.js +25 -0
- package/dist/{SingleSelectControl-B0JgDv7j.js → SingleSelectControl-DC4w0ata.js} +4 -4
- package/dist/{SingleSelectListBoxControl-ClQOxnxW.js → SingleSelectListBoxControl-CKj-p8jZ.js} +33 -36
- package/dist/{SortListControl-mvJofiWn.js → SortListControl-BIUyPjCi.js} +122 -120
- package/dist/{StyledListItem-BXz08pEQ.js → StyledListItem-D-HJWfo5.js} +3 -3
- package/dist/{TextAreaControl-S4aoqAv1.js → TextAreaControl-D28TQZEY.js} +23 -26
- package/dist/{TextControl-rJrjrBw8.js → TextControl-DUDBWcHy.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-Bf6GB1zX.js → TextControl.vue_vue_type_script_setup_true_lang-DpAd3yOu.js} +16 -19
- package/dist/TimeControl-HRooO_z3.js +36 -0
- package/dist/{TwinlistControlBase-D1l9t7Up.js → TwinlistControlBase-Brfh5pqZ.js} +5 -5
- package/dist/{TwinlistLoadingInfo-CQRx9cEu.js → TwinlistLoadingInfo-C4Tta00d.js} +150 -167
- package/dist/TypedStringFilter-CdvgPKhD.js +26 -0
- package/dist/{ValueSwitch-CUYV7v67.js → ValueSwitch-W4y1YvNM.js} +8 -8
- package/dist/{ValueSwitchControl-IP9SxrUs.js → ValueSwitchControl-BaXH8Cjx.js} +3 -3
- package/dist/{VerticalLayout-D2eQSYgv.js → VerticalLayout-ChAmRKNj.js} +5 -5
- package/dist/VerticalLayoutBase-DAk4vfH5.js +20 -0
- package/dist/ZonedDateTimeControl-Qb57KmMT.js +69 -0
- package/dist/{_baseEach-cjHvi5iT.js → _baseEach-DdH9cM67.js} +4 -4
- package/dist/{_baseIteratee-CIxt0KWU.js → _baseIteratee-BGt-t7Os.js} +27 -27
- package/dist/{_getTag-sLUyzSDj.js → _getTag-DAFySze4.js} +10 -10
- package/dist/{arrow-dropdown-DdgjzLAO.js → arrow-dropdown-BAFsD8Su.js} +2 -2
- package/dist/{arrow-next-CIOU5o42.js → arrow-next-BQVCxGb8.js} +2 -2
- package/dist/{close-BuY4mhXV.js → close-DGt8x-x_.js} +2 -2
- package/dist/floating-ui.vue-CDo9Kas1.js +1055 -0
- package/dist/{hotkeys-kwHHtFKz.js → hotkeys-rxnt4egK.js} +1 -1
- package/dist/index-CpKfM262.js +376 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +64 -67
- package/dist/{localTimeUtils-Dv-1R88J.js → localTimeUtils-NIKgHnIr.js} +179 -181
- package/dist/magic-string.es-BQ9KnLz-.js +659 -0
- package/dist/navigator-e30QQMkl.js +4 -0
- package/dist/popper-LGjf7Wza.js +905 -0
- package/dist/{reload-BVbCGubF.js → reload-DCdbNLa2.js} +2 -2
- package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +26 -22
- package/dist/src/higherOrderComponents/control/errorMessage/ErrorLine.vue.d.ts +3 -4
- package/dist/src/higherOrderComponents/control/errorMessage/ErrorMessages.vue.d.ts +16 -10
- package/dist/src/higherOrderComponents/control/errorMessage/withErrorMessage.d.ts +1 -1
- package/dist/src/higherOrderComponents/control/util.d.ts +7 -33
- package/dist/src/higherOrderComponents/layout/util.d.ts +1 -17
- package/dist/src/layoutComponents/Form.vue.d.ts +12 -4
- package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +1 -1
- package/dist/src/layoutComponents/SectionLayout.vue.d.ts +13 -5
- package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +1 -1
- package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +16 -9
- package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +13 -6
- package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +2 -2
- package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanelBackArrow.vue.d.ts +1 -1
- package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +2 -2
- package/dist/src/renderers/defaultRenderers.d.ts +966 -151
- package/dist/src/renderers/dropdownRenderer.d.ts +1 -1
- package/dist/src/renderers/fallbackRenderers.d.ts +8 -8
- package/dist/src/renderers/horizontalLayoutRenderer.d.ts +1 -1
- package/dist/src/renderers/sectionLayoutRenderer.d.ts +4 -4
- package/dist/src/renderers/simpleButtonRenderer.d.ts +7 -89
- package/dist/src/renderers/sortListRenderer.d.ts +853 -20
- package/dist/src/renderers/textMessageRenderer.d.ts +65 -1
- package/dist/src/renderers/textRenderer.d.ts +1 -1
- package/dist/src/renderers/verticalLayoutRenderer.d.ts +2 -2
- package/dist/src/renderers/zonedDateTimeRenderer.d.ts +1 -1
- package/dist/src/uiComponents/CheckboxControl.vue.d.ts +15 -6
- package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DateTimeFormatPickerWithTypeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/IntegerControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/IntervalControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/MultiSelectListBoxControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/NumberControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/NumberControlBase.vue.d.ts +5 -9
- package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +2 -1
- package/dist/src/uiComponents/RadioControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/RadioControlBase.vue.d.ts +4 -8
- package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +5 -129
- package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/SingleSelectListBoxControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/SortListControl.vue.d.ts +845 -12
- package/dist/src/uiComponents/TextAreaControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TextControl.vue.d.ts +203 -3
- package/dist/src/uiComponents/TextMessageControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/TimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/ZonedDateTimeControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/composables/useProvidedState.d.ts +1 -1
- package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +1 -1
- package/dist/src/uiComponents/richTextControl/DialogLinkModal.vue.d.ts +3 -1
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +230 -1
- package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +8 -15
- package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -1
- package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +5 -10
- package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +2 -1
- package/dist/{svgWithTitle-Cr3Pu3wr.js → svgWithTitle-CnTmPYAB.js} +4 -4
- package/dist/testUtils/component.d.ts +18 -18
- package/dist/testing.js +8688 -8655
- package/dist/{toString-C_MqBj3_.js → toString-BhubvA3m.js} +1 -1
- package/dist/{useBuiltinValidations-DP7OS71z.js → useBuiltinValidations-Boxrm71q.js} +1 -1
- package/dist/useDropdownNavigation-BfCXUheD.js +817 -0
- package/dist/usePossibleValues-DXuWWBh_.js +16 -0
- package/package.json +14 -14
- package/dist/CheckboxControl-Oe97HhY3.js +0 -40
- package/dist/DateTimeControl-DyXUJBHE.js +0 -54
- package/dist/Dropdown-CJj0CUA8.js +0 -604
- package/dist/MultiSelectListBoxControl-3Q41S4aA.js +0 -34
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-B9K5qEs3.js +0 -53
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-WaVJMdQq.js +0 -114
- package/dist/SectionHeading-BU1W5lDr.js +0 -19
- package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js +0 -14015
- package/dist/SettingsSubPanel-KxEyzlB6.js +0 -5
- package/dist/SimpleTwinlistControl-qXQxRI7h.js +0 -28
- package/dist/TimeControl-DfhE8yu9.js +0 -42
- package/dist/TypedStringFilter-C6JhWCCC.js +0 -29
- package/dist/VerticalLayoutBase-DRfHwc4t.js +0 -20
- package/dist/ZonedDateTimeControl-Bi8cV34A.js +0 -75
- package/dist/floating-ui.vue-B-MrqKCT.js +0 -1019
- package/dist/index-CoRworrE.js +0 -322
- package/dist/magic-string.es-D-aKzDFf.js +0 -858
- package/dist/navigator-D_R-txCf.js +0 -7
- package/dist/popper-CRR--9mA.js +0 -907
- package/dist/src/JsonFormsDialog.vue.d.ts +0 -46
- package/dist/useDropdownNavigation-7o7SRJSo.js +0 -781
- package/dist/usePossibleValues-lz0Rcu_N.js +0 -20
|
@@ -1,1019 +0,0 @@
|
|
|
1
|
-
import { computed as D, ref as Y, shallowRef as Bt, watch as st, getCurrentScope as Nt, onScopeDispose as Wt, shallowReadonly as $, unref as _t } from "vue";
|
|
2
|
-
const J = Math.min, k = Math.max, Q = Math.round, G = Math.floor, P = (t) => ({
|
|
3
|
-
x: t,
|
|
4
|
-
y: t
|
|
5
|
-
}), $t = {
|
|
6
|
-
left: "right",
|
|
7
|
-
right: "left",
|
|
8
|
-
bottom: "top",
|
|
9
|
-
top: "bottom"
|
|
10
|
-
}, Ht = {
|
|
11
|
-
start: "end",
|
|
12
|
-
end: "start"
|
|
13
|
-
};
|
|
14
|
-
function wt(t, e, n) {
|
|
15
|
-
return k(t, J(e, n));
|
|
16
|
-
}
|
|
17
|
-
function et(t, e) {
|
|
18
|
-
return typeof t == "function" ? t(e) : t;
|
|
19
|
-
}
|
|
20
|
-
function M(t) {
|
|
21
|
-
return t.split("-")[0];
|
|
22
|
-
}
|
|
23
|
-
function nt(t) {
|
|
24
|
-
return t.split("-")[1];
|
|
25
|
-
}
|
|
26
|
-
function Ot(t) {
|
|
27
|
-
return t === "x" ? "y" : "x";
|
|
28
|
-
}
|
|
29
|
-
function Ct(t) {
|
|
30
|
-
return t === "y" ? "height" : "width";
|
|
31
|
-
}
|
|
32
|
-
function ot(t) {
|
|
33
|
-
return ["top", "bottom"].includes(M(t)) ? "y" : "x";
|
|
34
|
-
}
|
|
35
|
-
function Et(t) {
|
|
36
|
-
return Ot(ot(t));
|
|
37
|
-
}
|
|
38
|
-
function zt(t, e, n) {
|
|
39
|
-
n === void 0 && (n = !1);
|
|
40
|
-
const o = nt(t), i = Et(t), s = Ct(i);
|
|
41
|
-
let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
42
|
-
return e.reference[s] > e.floating[s] && (r = Z(r)), [r, Z(r)];
|
|
43
|
-
}
|
|
44
|
-
function It(t) {
|
|
45
|
-
const e = Z(t);
|
|
46
|
-
return [ct(t), e, ct(e)];
|
|
47
|
-
}
|
|
48
|
-
function ct(t) {
|
|
49
|
-
return t.replace(/start|end/g, (e) => Ht[e]);
|
|
50
|
-
}
|
|
51
|
-
function jt(t, e, n) {
|
|
52
|
-
const o = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
|
|
53
|
-
switch (t) {
|
|
54
|
-
case "top":
|
|
55
|
-
case "bottom":
|
|
56
|
-
return n ? e ? i : o : e ? o : i;
|
|
57
|
-
case "left":
|
|
58
|
-
case "right":
|
|
59
|
-
return e ? s : r;
|
|
60
|
-
default:
|
|
61
|
-
return [];
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
function Xt(t, e, n, o) {
|
|
65
|
-
const i = nt(t);
|
|
66
|
-
let s = jt(M(t), n === "start", o);
|
|
67
|
-
return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(ct)))), s;
|
|
68
|
-
}
|
|
69
|
-
function Z(t) {
|
|
70
|
-
return t.replace(/left|right|bottom|top/g, (e) => $t[e]);
|
|
71
|
-
}
|
|
72
|
-
function Yt(t) {
|
|
73
|
-
return {
|
|
74
|
-
top: 0,
|
|
75
|
-
right: 0,
|
|
76
|
-
bottom: 0,
|
|
77
|
-
left: 0,
|
|
78
|
-
...t
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
function qt(t) {
|
|
82
|
-
return typeof t != "number" ? Yt(t) : {
|
|
83
|
-
top: t,
|
|
84
|
-
right: t,
|
|
85
|
-
bottom: t,
|
|
86
|
-
left: t
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
function tt(t) {
|
|
90
|
-
const {
|
|
91
|
-
x: e,
|
|
92
|
-
y: n,
|
|
93
|
-
width: o,
|
|
94
|
-
height: i
|
|
95
|
-
} = t;
|
|
96
|
-
return {
|
|
97
|
-
width: o,
|
|
98
|
-
height: i,
|
|
99
|
-
top: n,
|
|
100
|
-
left: e,
|
|
101
|
-
right: e + o,
|
|
102
|
-
bottom: n + i,
|
|
103
|
-
x: e,
|
|
104
|
-
y: n
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
function yt(t, e, n) {
|
|
108
|
-
let {
|
|
109
|
-
reference: o,
|
|
110
|
-
floating: i
|
|
111
|
-
} = t;
|
|
112
|
-
const s = ot(e), r = Et(e), l = Ct(r), f = M(e), c = s === "y", u = o.x + o.width / 2 - i.width / 2, a = o.y + o.height / 2 - i.height / 2, m = o[l] / 2 - i[l] / 2;
|
|
113
|
-
let d;
|
|
114
|
-
switch (f) {
|
|
115
|
-
case "top":
|
|
116
|
-
d = {
|
|
117
|
-
x: u,
|
|
118
|
-
y: o.y - i.height
|
|
119
|
-
};
|
|
120
|
-
break;
|
|
121
|
-
case "bottom":
|
|
122
|
-
d = {
|
|
123
|
-
x: u,
|
|
124
|
-
y: o.y + o.height
|
|
125
|
-
};
|
|
126
|
-
break;
|
|
127
|
-
case "right":
|
|
128
|
-
d = {
|
|
129
|
-
x: o.x + o.width,
|
|
130
|
-
y: a
|
|
131
|
-
};
|
|
132
|
-
break;
|
|
133
|
-
case "left":
|
|
134
|
-
d = {
|
|
135
|
-
x: o.x - i.width,
|
|
136
|
-
y: a
|
|
137
|
-
};
|
|
138
|
-
break;
|
|
139
|
-
default:
|
|
140
|
-
d = {
|
|
141
|
-
x: o.x,
|
|
142
|
-
y: o.y
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
switch (nt(e)) {
|
|
146
|
-
case "start":
|
|
147
|
-
d[r] -= m * (n && c ? -1 : 1);
|
|
148
|
-
break;
|
|
149
|
-
case "end":
|
|
150
|
-
d[r] += m * (n && c ? -1 : 1);
|
|
151
|
-
break;
|
|
152
|
-
}
|
|
153
|
-
return d;
|
|
154
|
-
}
|
|
155
|
-
const Ut = async (t, e, n) => {
|
|
156
|
-
const {
|
|
157
|
-
placement: o = "bottom",
|
|
158
|
-
strategy: i = "absolute",
|
|
159
|
-
middleware: s = [],
|
|
160
|
-
platform: r
|
|
161
|
-
} = n, l = s.filter(Boolean), f = await (r.isRTL == null ? void 0 : r.isRTL(e));
|
|
162
|
-
let c = await r.getElementRects({
|
|
163
|
-
reference: t,
|
|
164
|
-
floating: e,
|
|
165
|
-
strategy: i
|
|
166
|
-
}), {
|
|
167
|
-
x: u,
|
|
168
|
-
y: a
|
|
169
|
-
} = yt(c, o, f), m = o, d = {}, h = 0;
|
|
170
|
-
for (let g = 0; g < l.length; g++) {
|
|
171
|
-
const {
|
|
172
|
-
name: w,
|
|
173
|
-
fn: p
|
|
174
|
-
} = l[g], {
|
|
175
|
-
x: y,
|
|
176
|
-
y: x,
|
|
177
|
-
data: R,
|
|
178
|
-
reset: b
|
|
179
|
-
} = await p({
|
|
180
|
-
x: u,
|
|
181
|
-
y: a,
|
|
182
|
-
initialPlacement: o,
|
|
183
|
-
placement: m,
|
|
184
|
-
strategy: i,
|
|
185
|
-
middlewareData: d,
|
|
186
|
-
rects: c,
|
|
187
|
-
platform: r,
|
|
188
|
-
elements: {
|
|
189
|
-
reference: t,
|
|
190
|
-
floating: e
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
u = y ?? u, a = x ?? a, d = {
|
|
194
|
-
...d,
|
|
195
|
-
[w]: {
|
|
196
|
-
...d[w],
|
|
197
|
-
...R
|
|
198
|
-
}
|
|
199
|
-
}, b && h <= 50 && (h++, typeof b == "object" && (b.placement && (m = b.placement), b.rects && (c = b.rects === !0 ? await r.getElementRects({
|
|
200
|
-
reference: t,
|
|
201
|
-
floating: e,
|
|
202
|
-
strategy: i
|
|
203
|
-
}) : b.rects), {
|
|
204
|
-
x: u,
|
|
205
|
-
y: a
|
|
206
|
-
} = yt(c, m, f)), g = -1);
|
|
207
|
-
}
|
|
208
|
-
return {
|
|
209
|
-
x: u,
|
|
210
|
-
y: a,
|
|
211
|
-
placement: m,
|
|
212
|
-
strategy: i,
|
|
213
|
-
middlewareData: d
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
async function Lt(t, e) {
|
|
217
|
-
var n;
|
|
218
|
-
e === void 0 && (e = {});
|
|
219
|
-
const {
|
|
220
|
-
x: o,
|
|
221
|
-
y: i,
|
|
222
|
-
platform: s,
|
|
223
|
-
rects: r,
|
|
224
|
-
elements: l,
|
|
225
|
-
strategy: f
|
|
226
|
-
} = t, {
|
|
227
|
-
boundary: c = "clippingAncestors",
|
|
228
|
-
rootBoundary: u = "viewport",
|
|
229
|
-
elementContext: a = "floating",
|
|
230
|
-
altBoundary: m = !1,
|
|
231
|
-
padding: d = 0
|
|
232
|
-
} = et(e, t), h = qt(d), w = l[m ? a === "floating" ? "reference" : "floating" : a], p = tt(await s.getClippingRect({
|
|
233
|
-
element: (n = await (s.isElement == null ? void 0 : s.isElement(w))) == null || n ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(l.floating)),
|
|
234
|
-
boundary: c,
|
|
235
|
-
rootBoundary: u,
|
|
236
|
-
strategy: f
|
|
237
|
-
})), y = a === "floating" ? {
|
|
238
|
-
x: o,
|
|
239
|
-
y: i,
|
|
240
|
-
width: r.floating.width,
|
|
241
|
-
height: r.floating.height
|
|
242
|
-
} : r.reference, x = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l.floating)), R = await (s.isElement == null ? void 0 : s.isElement(x)) ? await (s.getScale == null ? void 0 : s.getScale(x)) || {
|
|
243
|
-
x: 1,
|
|
244
|
-
y: 1
|
|
245
|
-
} : {
|
|
246
|
-
x: 1,
|
|
247
|
-
y: 1
|
|
248
|
-
}, b = tt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
249
|
-
elements: l,
|
|
250
|
-
rect: y,
|
|
251
|
-
offsetParent: x,
|
|
252
|
-
strategy: f
|
|
253
|
-
}) : y);
|
|
254
|
-
return {
|
|
255
|
-
top: (p.top - b.top + h.top) / R.y,
|
|
256
|
-
bottom: (b.bottom - p.bottom + h.bottom) / R.y,
|
|
257
|
-
left: (p.left - b.left + h.left) / R.x,
|
|
258
|
-
right: (b.right - p.right + h.right) / R.x
|
|
259
|
-
};
|
|
260
|
-
}
|
|
261
|
-
const Kt = function(t) {
|
|
262
|
-
return t === void 0 && (t = {}), {
|
|
263
|
-
name: "flip",
|
|
264
|
-
options: t,
|
|
265
|
-
async fn(e) {
|
|
266
|
-
var n, o;
|
|
267
|
-
const {
|
|
268
|
-
placement: i,
|
|
269
|
-
middlewareData: s,
|
|
270
|
-
rects: r,
|
|
271
|
-
initialPlacement: l,
|
|
272
|
-
platform: f,
|
|
273
|
-
elements: c
|
|
274
|
-
} = e, {
|
|
275
|
-
mainAxis: u = !0,
|
|
276
|
-
crossAxis: a = !0,
|
|
277
|
-
fallbackPlacements: m,
|
|
278
|
-
fallbackStrategy: d = "bestFit",
|
|
279
|
-
fallbackAxisSideDirection: h = "none",
|
|
280
|
-
flipAlignment: g = !0,
|
|
281
|
-
...w
|
|
282
|
-
} = et(t, e);
|
|
283
|
-
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
284
|
-
return {};
|
|
285
|
-
const p = M(i), y = M(l) === l, x = await (f.isRTL == null ? void 0 : f.isRTL(c.floating)), R = m || (y || !g ? [Z(l)] : It(l));
|
|
286
|
-
!m && h !== "none" && R.push(...Xt(l, g, h, x));
|
|
287
|
-
const b = [l, ...R], T = await Lt(e, w), v = [];
|
|
288
|
-
let A = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
289
|
-
if (u && v.push(T[p]), a) {
|
|
290
|
-
const F = zt(i, r, x);
|
|
291
|
-
v.push(T[F[0]], T[F[1]]);
|
|
292
|
-
}
|
|
293
|
-
if (A = [...A, {
|
|
294
|
-
placement: i,
|
|
295
|
-
overflows: v
|
|
296
|
-
}], !v.every((F) => F <= 0)) {
|
|
297
|
-
var I, pt;
|
|
298
|
-
const F = (((I = s.flip) == null ? void 0 : I.index) || 0) + 1, gt = b[F];
|
|
299
|
-
if (gt)
|
|
300
|
-
return {
|
|
301
|
-
data: {
|
|
302
|
-
index: F,
|
|
303
|
-
overflows: A
|
|
304
|
-
},
|
|
305
|
-
reset: {
|
|
306
|
-
placement: gt
|
|
307
|
-
}
|
|
308
|
-
};
|
|
309
|
-
let j = (pt = A.filter((W) => W.overflows[0] <= 0).sort((W, _) => W.overflows[1] - _.overflows[1])[0]) == null ? void 0 : pt.placement;
|
|
310
|
-
if (!j)
|
|
311
|
-
switch (d) {
|
|
312
|
-
case "bestFit": {
|
|
313
|
-
var ht;
|
|
314
|
-
const W = (ht = A.map((_) => [_.placement, _.overflows.filter((X) => X > 0).reduce((X, Mt) => X + Mt, 0)]).sort((_, X) => _[1] - X[1])[0]) == null ? void 0 : ht[0];
|
|
315
|
-
W && (j = W);
|
|
316
|
-
break;
|
|
317
|
-
}
|
|
318
|
-
case "initialPlacement":
|
|
319
|
-
j = l;
|
|
320
|
-
break;
|
|
321
|
-
}
|
|
322
|
-
if (i !== j)
|
|
323
|
-
return {
|
|
324
|
-
reset: {
|
|
325
|
-
placement: j
|
|
326
|
-
}
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
return {};
|
|
330
|
-
}
|
|
331
|
-
};
|
|
332
|
-
};
|
|
333
|
-
async function Gt(t, e) {
|
|
334
|
-
const {
|
|
335
|
-
placement: n,
|
|
336
|
-
platform: o,
|
|
337
|
-
elements: i
|
|
338
|
-
} = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = M(n), l = nt(n), f = ot(n) === "y", c = ["left", "top"].includes(r) ? -1 : 1, u = s && f ? -1 : 1, a = et(e, t);
|
|
339
|
-
let {
|
|
340
|
-
mainAxis: m,
|
|
341
|
-
crossAxis: d,
|
|
342
|
-
alignmentAxis: h
|
|
343
|
-
} = typeof a == "number" ? {
|
|
344
|
-
mainAxis: a,
|
|
345
|
-
crossAxis: 0,
|
|
346
|
-
alignmentAxis: null
|
|
347
|
-
} : {
|
|
348
|
-
mainAxis: 0,
|
|
349
|
-
crossAxis: 0,
|
|
350
|
-
alignmentAxis: null,
|
|
351
|
-
...a
|
|
352
|
-
};
|
|
353
|
-
return l && typeof h == "number" && (d = l === "end" ? h * -1 : h), f ? {
|
|
354
|
-
x: d * u,
|
|
355
|
-
y: m * c
|
|
356
|
-
} : {
|
|
357
|
-
x: m * c,
|
|
358
|
-
y: d * u
|
|
359
|
-
};
|
|
360
|
-
}
|
|
361
|
-
const Jt = function(t) {
|
|
362
|
-
return t === void 0 && (t = 0), {
|
|
363
|
-
name: "offset",
|
|
364
|
-
options: t,
|
|
365
|
-
async fn(e) {
|
|
366
|
-
var n, o;
|
|
367
|
-
const {
|
|
368
|
-
x: i,
|
|
369
|
-
y: s,
|
|
370
|
-
placement: r,
|
|
371
|
-
middlewareData: l
|
|
372
|
-
} = e, f = await Gt(e, t);
|
|
373
|
-
return r === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
|
|
374
|
-
x: i + f.x,
|
|
375
|
-
y: s + f.y,
|
|
376
|
-
data: {
|
|
377
|
-
...f,
|
|
378
|
-
placement: r
|
|
379
|
-
}
|
|
380
|
-
};
|
|
381
|
-
}
|
|
382
|
-
};
|
|
383
|
-
}, Qt = function(t) {
|
|
384
|
-
return t === void 0 && (t = {}), {
|
|
385
|
-
name: "shift",
|
|
386
|
-
options: t,
|
|
387
|
-
async fn(e) {
|
|
388
|
-
const {
|
|
389
|
-
x: n,
|
|
390
|
-
y: o,
|
|
391
|
-
placement: i
|
|
392
|
-
} = e, {
|
|
393
|
-
mainAxis: s = !0,
|
|
394
|
-
crossAxis: r = !1,
|
|
395
|
-
limiter: l = {
|
|
396
|
-
fn: (w) => {
|
|
397
|
-
let {
|
|
398
|
-
x: p,
|
|
399
|
-
y
|
|
400
|
-
} = w;
|
|
401
|
-
return {
|
|
402
|
-
x: p,
|
|
403
|
-
y
|
|
404
|
-
};
|
|
405
|
-
}
|
|
406
|
-
},
|
|
407
|
-
...f
|
|
408
|
-
} = et(t, e), c = {
|
|
409
|
-
x: n,
|
|
410
|
-
y: o
|
|
411
|
-
}, u = await Lt(e, f), a = ot(M(i)), m = Ot(a);
|
|
412
|
-
let d = c[m], h = c[a];
|
|
413
|
-
if (s) {
|
|
414
|
-
const w = m === "y" ? "top" : "left", p = m === "y" ? "bottom" : "right", y = d + u[w], x = d - u[p];
|
|
415
|
-
d = wt(y, d, x);
|
|
416
|
-
}
|
|
417
|
-
if (r) {
|
|
418
|
-
const w = a === "y" ? "top" : "left", p = a === "y" ? "bottom" : "right", y = h + u[w], x = h - u[p];
|
|
419
|
-
h = wt(y, h, x);
|
|
420
|
-
}
|
|
421
|
-
const g = l.fn({
|
|
422
|
-
...e,
|
|
423
|
-
[m]: d,
|
|
424
|
-
[a]: h
|
|
425
|
-
});
|
|
426
|
-
return {
|
|
427
|
-
...g,
|
|
428
|
-
data: {
|
|
429
|
-
x: g.x - n,
|
|
430
|
-
y: g.y - o
|
|
431
|
-
}
|
|
432
|
-
};
|
|
433
|
-
}
|
|
434
|
-
};
|
|
435
|
-
};
|
|
436
|
-
function it() {
|
|
437
|
-
return typeof window < "u";
|
|
438
|
-
}
|
|
439
|
-
function N(t) {
|
|
440
|
-
return ft(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
441
|
-
}
|
|
442
|
-
function O(t) {
|
|
443
|
-
var e;
|
|
444
|
-
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
445
|
-
}
|
|
446
|
-
function S(t) {
|
|
447
|
-
var e;
|
|
448
|
-
return (e = (ft(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
449
|
-
}
|
|
450
|
-
function ft(t) {
|
|
451
|
-
return it() ? t instanceof Node || t instanceof O(t).Node : !1;
|
|
452
|
-
}
|
|
453
|
-
function C(t) {
|
|
454
|
-
return it() ? t instanceof Element || t instanceof O(t).Element : !1;
|
|
455
|
-
}
|
|
456
|
-
function L(t) {
|
|
457
|
-
return it() ? t instanceof HTMLElement || t instanceof O(t).HTMLElement : !1;
|
|
458
|
-
}
|
|
459
|
-
function xt(t) {
|
|
460
|
-
return !it() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof O(t).ShadowRoot;
|
|
461
|
-
}
|
|
462
|
-
function K(t) {
|
|
463
|
-
const {
|
|
464
|
-
overflow: e,
|
|
465
|
-
overflowX: n,
|
|
466
|
-
overflowY: o,
|
|
467
|
-
display: i
|
|
468
|
-
} = E(t);
|
|
469
|
-
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !["inline", "contents"].includes(i);
|
|
470
|
-
}
|
|
471
|
-
function Zt(t) {
|
|
472
|
-
return ["table", "td", "th"].includes(N(t));
|
|
473
|
-
}
|
|
474
|
-
function te(t) {
|
|
475
|
-
return [":popover-open", ":modal"].some((e) => {
|
|
476
|
-
try {
|
|
477
|
-
return t.matches(e);
|
|
478
|
-
} catch {
|
|
479
|
-
return !1;
|
|
480
|
-
}
|
|
481
|
-
});
|
|
482
|
-
}
|
|
483
|
-
function ut(t) {
|
|
484
|
-
const e = at(), n = C(t) ? E(t) : t;
|
|
485
|
-
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
|
|
486
|
-
}
|
|
487
|
-
function ee(t) {
|
|
488
|
-
let e = V(t);
|
|
489
|
-
for (; L(e) && !z(e); ) {
|
|
490
|
-
if (ut(e))
|
|
491
|
-
return e;
|
|
492
|
-
if (te(e))
|
|
493
|
-
return null;
|
|
494
|
-
e = V(e);
|
|
495
|
-
}
|
|
496
|
-
return null;
|
|
497
|
-
}
|
|
498
|
-
function at() {
|
|
499
|
-
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
500
|
-
}
|
|
501
|
-
function z(t) {
|
|
502
|
-
return ["html", "body", "#document"].includes(N(t));
|
|
503
|
-
}
|
|
504
|
-
function E(t) {
|
|
505
|
-
return O(t).getComputedStyle(t);
|
|
506
|
-
}
|
|
507
|
-
function rt(t) {
|
|
508
|
-
return C(t) ? {
|
|
509
|
-
scrollLeft: t.scrollLeft,
|
|
510
|
-
scrollTop: t.scrollTop
|
|
511
|
-
} : {
|
|
512
|
-
scrollLeft: t.scrollX,
|
|
513
|
-
scrollTop: t.scrollY
|
|
514
|
-
};
|
|
515
|
-
}
|
|
516
|
-
function V(t) {
|
|
517
|
-
if (N(t) === "html")
|
|
518
|
-
return t;
|
|
519
|
-
const e = (
|
|
520
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
521
|
-
t.assignedSlot || // DOM Element detected.
|
|
522
|
-
t.parentNode || // ShadowRoot detected.
|
|
523
|
-
xt(t) && t.host || // Fallback.
|
|
524
|
-
S(t)
|
|
525
|
-
);
|
|
526
|
-
return xt(e) ? e.host : e;
|
|
527
|
-
}
|
|
528
|
-
function Tt(t) {
|
|
529
|
-
const e = V(t);
|
|
530
|
-
return z(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : L(e) && K(e) ? e : Tt(e);
|
|
531
|
-
}
|
|
532
|
-
function U(t, e, n) {
|
|
533
|
-
var o;
|
|
534
|
-
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
535
|
-
const i = Tt(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = O(i);
|
|
536
|
-
if (s) {
|
|
537
|
-
const l = ne(r);
|
|
538
|
-
return e.concat(r, r.visualViewport || [], K(i) ? i : [], l && n ? U(l) : []);
|
|
539
|
-
}
|
|
540
|
-
return e.concat(i, U(i, [], n));
|
|
541
|
-
}
|
|
542
|
-
function ne(t) {
|
|
543
|
-
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
544
|
-
}
|
|
545
|
-
function St(t) {
|
|
546
|
-
const e = E(t);
|
|
547
|
-
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
548
|
-
const i = L(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, l = Q(n) !== s || Q(o) !== r;
|
|
549
|
-
return l && (n = s, o = r), {
|
|
550
|
-
width: n,
|
|
551
|
-
height: o,
|
|
552
|
-
$: l
|
|
553
|
-
};
|
|
554
|
-
}
|
|
555
|
-
function dt(t) {
|
|
556
|
-
return C(t) ? t : t.contextElement;
|
|
557
|
-
}
|
|
558
|
-
function H(t) {
|
|
559
|
-
const e = dt(t);
|
|
560
|
-
if (!L(e))
|
|
561
|
-
return P(1);
|
|
562
|
-
const n = e.getBoundingClientRect(), {
|
|
563
|
-
width: o,
|
|
564
|
-
height: i,
|
|
565
|
-
$: s
|
|
566
|
-
} = St(e);
|
|
567
|
-
let r = (s ? Q(n.width) : n.width) / o, l = (s ? Q(n.height) : n.height) / i;
|
|
568
|
-
return (!r || !Number.isFinite(r)) && (r = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
569
|
-
x: r,
|
|
570
|
-
y: l
|
|
571
|
-
};
|
|
572
|
-
}
|
|
573
|
-
const oe = /* @__PURE__ */ P(0);
|
|
574
|
-
function Dt(t) {
|
|
575
|
-
const e = O(t);
|
|
576
|
-
return !at() || !e.visualViewport ? oe : {
|
|
577
|
-
x: e.visualViewport.offsetLeft,
|
|
578
|
-
y: e.visualViewport.offsetTop
|
|
579
|
-
};
|
|
580
|
-
}
|
|
581
|
-
function ie(t, e, n) {
|
|
582
|
-
return e === void 0 && (e = !1), !n || e && n !== O(t) ? !1 : e;
|
|
583
|
-
}
|
|
584
|
-
function B(t, e, n, o) {
|
|
585
|
-
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
586
|
-
const i = t.getBoundingClientRect(), s = dt(t);
|
|
587
|
-
let r = P(1);
|
|
588
|
-
e && (o ? C(o) && (r = H(o)) : r = H(t));
|
|
589
|
-
const l = ie(s, n, o) ? Dt(s) : P(0);
|
|
590
|
-
let f = (i.left + l.x) / r.x, c = (i.top + l.y) / r.y, u = i.width / r.x, a = i.height / r.y;
|
|
591
|
-
if (s) {
|
|
592
|
-
const m = O(s), d = o && C(o) ? O(o) : o;
|
|
593
|
-
let h = m, g = h.frameElement;
|
|
594
|
-
for (; g && o && d !== h; ) {
|
|
595
|
-
const w = H(g), p = g.getBoundingClientRect(), y = E(g), x = p.left + (g.clientLeft + parseFloat(y.paddingLeft)) * w.x, R = p.top + (g.clientTop + parseFloat(y.paddingTop)) * w.y;
|
|
596
|
-
f *= w.x, c *= w.y, u *= w.x, a *= w.y, f += x, c += R, h = O(g), g = h.frameElement;
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
return tt({
|
|
600
|
-
width: u,
|
|
601
|
-
height: a,
|
|
602
|
-
x: f,
|
|
603
|
-
y: c
|
|
604
|
-
});
|
|
605
|
-
}
|
|
606
|
-
const re = [":popover-open", ":modal"];
|
|
607
|
-
function mt(t) {
|
|
608
|
-
return re.some((e) => {
|
|
609
|
-
try {
|
|
610
|
-
return t.matches(e);
|
|
611
|
-
} catch {
|
|
612
|
-
return !1;
|
|
613
|
-
}
|
|
614
|
-
});
|
|
615
|
-
}
|
|
616
|
-
function se(t) {
|
|
617
|
-
let {
|
|
618
|
-
elements: e,
|
|
619
|
-
rect: n,
|
|
620
|
-
offsetParent: o,
|
|
621
|
-
strategy: i
|
|
622
|
-
} = t;
|
|
623
|
-
const s = i === "fixed", r = S(o), l = e ? mt(e.floating) : !1;
|
|
624
|
-
if (o === r || l && s)
|
|
625
|
-
return n;
|
|
626
|
-
let f = {
|
|
627
|
-
scrollLeft: 0,
|
|
628
|
-
scrollTop: 0
|
|
629
|
-
}, c = P(1);
|
|
630
|
-
const u = P(0), a = L(o);
|
|
631
|
-
if ((a || !a && !s) && ((N(o) !== "body" || K(r)) && (f = rt(o)), L(o))) {
|
|
632
|
-
const m = B(o);
|
|
633
|
-
c = H(o), u.x = m.x + o.clientLeft, u.y = m.y + o.clientTop;
|
|
634
|
-
}
|
|
635
|
-
return {
|
|
636
|
-
width: n.width * c.x,
|
|
637
|
-
height: n.height * c.y,
|
|
638
|
-
x: n.x * c.x - f.scrollLeft * c.x + u.x,
|
|
639
|
-
y: n.y * c.y - f.scrollTop * c.y + u.y
|
|
640
|
-
};
|
|
641
|
-
}
|
|
642
|
-
function le(t) {
|
|
643
|
-
return Array.from(t.getClientRects());
|
|
644
|
-
}
|
|
645
|
-
function Pt(t) {
|
|
646
|
-
return B(S(t)).left + rt(t).scrollLeft;
|
|
647
|
-
}
|
|
648
|
-
function ce(t) {
|
|
649
|
-
const e = S(t), n = rt(t), o = t.ownerDocument.body, i = k(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = k(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
650
|
-
let r = -n.scrollLeft + Pt(t);
|
|
651
|
-
const l = -n.scrollTop;
|
|
652
|
-
return E(o).direction === "rtl" && (r += k(e.clientWidth, o.clientWidth) - i), {
|
|
653
|
-
width: i,
|
|
654
|
-
height: s,
|
|
655
|
-
x: r,
|
|
656
|
-
y: l
|
|
657
|
-
};
|
|
658
|
-
}
|
|
659
|
-
function fe(t, e) {
|
|
660
|
-
const n = O(t), o = S(t), i = n.visualViewport;
|
|
661
|
-
let s = o.clientWidth, r = o.clientHeight, l = 0, f = 0;
|
|
662
|
-
if (i) {
|
|
663
|
-
s = i.width, r = i.height;
|
|
664
|
-
const c = at();
|
|
665
|
-
(!c || c && e === "fixed") && (l = i.offsetLeft, f = i.offsetTop);
|
|
666
|
-
}
|
|
667
|
-
return {
|
|
668
|
-
width: s,
|
|
669
|
-
height: r,
|
|
670
|
-
x: l,
|
|
671
|
-
y: f
|
|
672
|
-
};
|
|
673
|
-
}
|
|
674
|
-
function ue(t, e) {
|
|
675
|
-
const n = B(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = L(t) ? H(t) : P(1), r = t.clientWidth * s.x, l = t.clientHeight * s.y, f = i * s.x, c = o * s.y;
|
|
676
|
-
return {
|
|
677
|
-
width: r,
|
|
678
|
-
height: l,
|
|
679
|
-
x: f,
|
|
680
|
-
y: c
|
|
681
|
-
};
|
|
682
|
-
}
|
|
683
|
-
function vt(t, e, n) {
|
|
684
|
-
let o;
|
|
685
|
-
if (e === "viewport")
|
|
686
|
-
o = fe(t, n);
|
|
687
|
-
else if (e === "document")
|
|
688
|
-
o = ce(S(t));
|
|
689
|
-
else if (C(e))
|
|
690
|
-
o = ue(e, n);
|
|
691
|
-
else {
|
|
692
|
-
const i = Dt(t);
|
|
693
|
-
o = {
|
|
694
|
-
...e,
|
|
695
|
-
x: e.x - i.x,
|
|
696
|
-
y: e.y - i.y
|
|
697
|
-
};
|
|
698
|
-
}
|
|
699
|
-
return tt(o);
|
|
700
|
-
}
|
|
701
|
-
function Vt(t, e) {
|
|
702
|
-
const n = V(t);
|
|
703
|
-
return n === e || !C(n) || z(n) ? !1 : E(n).position === "fixed" || Vt(n, e);
|
|
704
|
-
}
|
|
705
|
-
function ae(t, e) {
|
|
706
|
-
const n = e.get(t);
|
|
707
|
-
if (n)
|
|
708
|
-
return n;
|
|
709
|
-
let o = U(t, [], !1).filter((l) => C(l) && N(l) !== "body"), i = null;
|
|
710
|
-
const s = E(t).position === "fixed";
|
|
711
|
-
let r = s ? V(t) : t;
|
|
712
|
-
for (; C(r) && !z(r); ) {
|
|
713
|
-
const l = E(r), f = ut(r);
|
|
714
|
-
!f && l.position === "fixed" && (i = null), (s ? !f && !i : !f && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || K(r) && !f && Vt(t, r)) ? o = o.filter((u) => u !== r) : i = l, r = V(r);
|
|
715
|
-
}
|
|
716
|
-
return e.set(t, o), o;
|
|
717
|
-
}
|
|
718
|
-
function de(t) {
|
|
719
|
-
let {
|
|
720
|
-
element: e,
|
|
721
|
-
boundary: n,
|
|
722
|
-
rootBoundary: o,
|
|
723
|
-
strategy: i
|
|
724
|
-
} = t;
|
|
725
|
-
const r = [...n === "clippingAncestors" ? mt(e) ? [] : ae(e, this._c) : [].concat(n), o], l = r[0], f = r.reduce((c, u) => {
|
|
726
|
-
const a = vt(e, u, i);
|
|
727
|
-
return c.top = k(a.top, c.top), c.right = J(a.right, c.right), c.bottom = J(a.bottom, c.bottom), c.left = k(a.left, c.left), c;
|
|
728
|
-
}, vt(e, l, i));
|
|
729
|
-
return {
|
|
730
|
-
width: f.right - f.left,
|
|
731
|
-
height: f.bottom - f.top,
|
|
732
|
-
x: f.left,
|
|
733
|
-
y: f.top
|
|
734
|
-
};
|
|
735
|
-
}
|
|
736
|
-
function me(t) {
|
|
737
|
-
const {
|
|
738
|
-
width: e,
|
|
739
|
-
height: n
|
|
740
|
-
} = St(t);
|
|
741
|
-
return {
|
|
742
|
-
width: e,
|
|
743
|
-
height: n
|
|
744
|
-
};
|
|
745
|
-
}
|
|
746
|
-
function pe(t, e, n) {
|
|
747
|
-
const o = L(e), i = S(e), s = n === "fixed", r = B(t, !0, s, e);
|
|
748
|
-
let l = {
|
|
749
|
-
scrollLeft: 0,
|
|
750
|
-
scrollTop: 0
|
|
751
|
-
};
|
|
752
|
-
const f = P(0);
|
|
753
|
-
if (o || !o && !s)
|
|
754
|
-
if ((N(e) !== "body" || K(i)) && (l = rt(e)), o) {
|
|
755
|
-
const a = B(e, !0, s, e);
|
|
756
|
-
f.x = a.x + e.clientLeft, f.y = a.y + e.clientTop;
|
|
757
|
-
} else i && (f.x = Pt(i));
|
|
758
|
-
const c = r.left + l.scrollLeft - f.x, u = r.top + l.scrollTop - f.y;
|
|
759
|
-
return {
|
|
760
|
-
x: c,
|
|
761
|
-
y: u,
|
|
762
|
-
width: r.width,
|
|
763
|
-
height: r.height
|
|
764
|
-
};
|
|
765
|
-
}
|
|
766
|
-
function lt(t) {
|
|
767
|
-
return E(t).position === "static";
|
|
768
|
-
}
|
|
769
|
-
function bt(t, e) {
|
|
770
|
-
return !L(t) || E(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
|
|
771
|
-
}
|
|
772
|
-
function Ft(t, e) {
|
|
773
|
-
const n = O(t);
|
|
774
|
-
if (mt(t))
|
|
775
|
-
return n;
|
|
776
|
-
if (!L(t)) {
|
|
777
|
-
let i = V(t);
|
|
778
|
-
for (; i && !z(i); ) {
|
|
779
|
-
if (C(i) && !lt(i))
|
|
780
|
-
return i;
|
|
781
|
-
i = V(i);
|
|
782
|
-
}
|
|
783
|
-
return n;
|
|
784
|
-
}
|
|
785
|
-
let o = bt(t, e);
|
|
786
|
-
for (; o && Zt(o) && lt(o); )
|
|
787
|
-
o = bt(o, e);
|
|
788
|
-
return o && z(o) && lt(o) && !ut(o) ? n : o || ee(t) || n;
|
|
789
|
-
}
|
|
790
|
-
const he = async function(t) {
|
|
791
|
-
const e = this.getOffsetParent || Ft, n = this.getDimensions, o = await n(t.floating);
|
|
792
|
-
return {
|
|
793
|
-
reference: pe(t.reference, await e(t.floating), t.strategy),
|
|
794
|
-
floating: {
|
|
795
|
-
x: 0,
|
|
796
|
-
y: 0,
|
|
797
|
-
width: o.width,
|
|
798
|
-
height: o.height
|
|
799
|
-
}
|
|
800
|
-
};
|
|
801
|
-
};
|
|
802
|
-
function ge(t) {
|
|
803
|
-
return E(t).direction === "rtl";
|
|
804
|
-
}
|
|
805
|
-
const we = {
|
|
806
|
-
convertOffsetParentRelativeRectToViewportRelativeRect: se,
|
|
807
|
-
getDocumentElement: S,
|
|
808
|
-
getClippingRect: de,
|
|
809
|
-
getOffsetParent: Ft,
|
|
810
|
-
getElementRects: he,
|
|
811
|
-
getClientRects: le,
|
|
812
|
-
getDimensions: me,
|
|
813
|
-
getScale: H,
|
|
814
|
-
isElement: C,
|
|
815
|
-
isRTL: ge
|
|
816
|
-
};
|
|
817
|
-
function ye(t, e) {
|
|
818
|
-
let n = null, o;
|
|
819
|
-
const i = S(t);
|
|
820
|
-
function s() {
|
|
821
|
-
var l;
|
|
822
|
-
clearTimeout(o), (l = n) == null || l.disconnect(), n = null;
|
|
823
|
-
}
|
|
824
|
-
function r(l, f) {
|
|
825
|
-
l === void 0 && (l = !1), f === void 0 && (f = 1), s();
|
|
826
|
-
const {
|
|
827
|
-
left: c,
|
|
828
|
-
top: u,
|
|
829
|
-
width: a,
|
|
830
|
-
height: m
|
|
831
|
-
} = t.getBoundingClientRect();
|
|
832
|
-
if (l || e(), !a || !m)
|
|
833
|
-
return;
|
|
834
|
-
const d = G(u), h = G(i.clientWidth - (c + a)), g = G(i.clientHeight - (u + m)), w = G(c), y = {
|
|
835
|
-
rootMargin: -d + "px " + -h + "px " + -g + "px " + -w + "px",
|
|
836
|
-
threshold: k(0, J(1, f)) || 1
|
|
837
|
-
};
|
|
838
|
-
let x = !0;
|
|
839
|
-
function R(b) {
|
|
840
|
-
const T = b[0].intersectionRatio;
|
|
841
|
-
if (T !== f) {
|
|
842
|
-
if (!x)
|
|
843
|
-
return r();
|
|
844
|
-
T ? r(!1, T) : o = setTimeout(() => {
|
|
845
|
-
r(!1, 1e-7);
|
|
846
|
-
}, 1e3);
|
|
847
|
-
}
|
|
848
|
-
x = !1;
|
|
849
|
-
}
|
|
850
|
-
try {
|
|
851
|
-
n = new IntersectionObserver(R, {
|
|
852
|
-
...y,
|
|
853
|
-
// Handle <iframe>s
|
|
854
|
-
root: i.ownerDocument
|
|
855
|
-
});
|
|
856
|
-
} catch {
|
|
857
|
-
n = new IntersectionObserver(R, y);
|
|
858
|
-
}
|
|
859
|
-
n.observe(t);
|
|
860
|
-
}
|
|
861
|
-
return r(!0), s;
|
|
862
|
-
}
|
|
863
|
-
function Re(t, e, n, o) {
|
|
864
|
-
o === void 0 && (o = {});
|
|
865
|
-
const {
|
|
866
|
-
ancestorScroll: i = !0,
|
|
867
|
-
ancestorResize: s = !0,
|
|
868
|
-
elementResize: r = typeof ResizeObserver == "function",
|
|
869
|
-
layoutShift: l = typeof IntersectionObserver == "function",
|
|
870
|
-
animationFrame: f = !1
|
|
871
|
-
} = o, c = dt(t), u = i || s ? [...c ? U(c) : [], ...U(e)] : [];
|
|
872
|
-
u.forEach((p) => {
|
|
873
|
-
i && p.addEventListener("scroll", n, {
|
|
874
|
-
passive: !0
|
|
875
|
-
}), s && p.addEventListener("resize", n);
|
|
876
|
-
});
|
|
877
|
-
const a = c && l ? ye(c, n) : null;
|
|
878
|
-
let m = -1, d = null;
|
|
879
|
-
r && (d = new ResizeObserver((p) => {
|
|
880
|
-
let [y] = p;
|
|
881
|
-
y && y.target === c && d && (d.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
882
|
-
var x;
|
|
883
|
-
(x = d) == null || x.observe(e);
|
|
884
|
-
})), n();
|
|
885
|
-
}), c && !f && d.observe(c), d.observe(e));
|
|
886
|
-
let h, g = f ? B(t) : null;
|
|
887
|
-
f && w();
|
|
888
|
-
function w() {
|
|
889
|
-
const p = B(t);
|
|
890
|
-
g && (p.x !== g.x || p.y !== g.y || p.width !== g.width || p.height !== g.height) && n(), g = p, h = requestAnimationFrame(w);
|
|
891
|
-
}
|
|
892
|
-
return n(), () => {
|
|
893
|
-
var p;
|
|
894
|
-
u.forEach((y) => {
|
|
895
|
-
i && y.removeEventListener("scroll", n), s && y.removeEventListener("resize", n);
|
|
896
|
-
}), a == null || a(), (p = d) == null || p.disconnect(), d = null, f && cancelAnimationFrame(h);
|
|
897
|
-
};
|
|
898
|
-
}
|
|
899
|
-
const Ae = Jt, Oe = Qt, Ce = Kt, xe = (t, e, n) => {
|
|
900
|
-
const o = /* @__PURE__ */ new Map(), i = {
|
|
901
|
-
platform: we,
|
|
902
|
-
...n
|
|
903
|
-
}, s = {
|
|
904
|
-
...i.platform,
|
|
905
|
-
_c: o
|
|
906
|
-
};
|
|
907
|
-
return Ut(t, e, {
|
|
908
|
-
...i,
|
|
909
|
-
platform: s
|
|
910
|
-
});
|
|
911
|
-
};
|
|
912
|
-
function ve(t) {
|
|
913
|
-
return t != null && typeof t == "object" && "$el" in t;
|
|
914
|
-
}
|
|
915
|
-
function Rt(t) {
|
|
916
|
-
if (ve(t)) {
|
|
917
|
-
const e = t.$el;
|
|
918
|
-
return ft(e) && N(e) === "#comment" ? null : e;
|
|
919
|
-
}
|
|
920
|
-
return t;
|
|
921
|
-
}
|
|
922
|
-
function q(t) {
|
|
923
|
-
return typeof t == "function" ? t() : _t(t);
|
|
924
|
-
}
|
|
925
|
-
function kt(t) {
|
|
926
|
-
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
927
|
-
}
|
|
928
|
-
function At(t, e) {
|
|
929
|
-
const n = kt(t);
|
|
930
|
-
return Math.round(e * n) / n;
|
|
931
|
-
}
|
|
932
|
-
function Ee(t, e, n) {
|
|
933
|
-
n === void 0 && (n = {});
|
|
934
|
-
const o = n.whileElementsMounted, i = D(() => {
|
|
935
|
-
var v;
|
|
936
|
-
return (v = q(n.open)) != null ? v : !0;
|
|
937
|
-
}), s = D(() => q(n.middleware)), r = D(() => {
|
|
938
|
-
var v;
|
|
939
|
-
return (v = q(n.placement)) != null ? v : "bottom";
|
|
940
|
-
}), l = D(() => {
|
|
941
|
-
var v;
|
|
942
|
-
return (v = q(n.strategy)) != null ? v : "absolute";
|
|
943
|
-
}), f = D(() => {
|
|
944
|
-
var v;
|
|
945
|
-
return (v = q(n.transform)) != null ? v : !0;
|
|
946
|
-
}), c = D(() => Rt(t.value)), u = D(() => Rt(e.value)), a = Y(0), m = Y(0), d = Y(l.value), h = Y(r.value), g = Bt({}), w = Y(!1), p = D(() => {
|
|
947
|
-
const v = {
|
|
948
|
-
position: d.value,
|
|
949
|
-
left: "0",
|
|
950
|
-
top: "0"
|
|
951
|
-
};
|
|
952
|
-
if (!u.value)
|
|
953
|
-
return v;
|
|
954
|
-
const A = At(u.value, a.value), I = At(u.value, m.value);
|
|
955
|
-
return f.value ? {
|
|
956
|
-
...v,
|
|
957
|
-
transform: "translate(" + A + "px, " + I + "px)",
|
|
958
|
-
...kt(u.value) >= 1.5 && {
|
|
959
|
-
willChange: "transform"
|
|
960
|
-
}
|
|
961
|
-
} : {
|
|
962
|
-
position: d.value,
|
|
963
|
-
left: A + "px",
|
|
964
|
-
top: I + "px"
|
|
965
|
-
};
|
|
966
|
-
});
|
|
967
|
-
let y;
|
|
968
|
-
function x() {
|
|
969
|
-
if (c.value == null || u.value == null)
|
|
970
|
-
return;
|
|
971
|
-
const v = i.value;
|
|
972
|
-
xe(c.value, u.value, {
|
|
973
|
-
middleware: s.value,
|
|
974
|
-
placement: r.value,
|
|
975
|
-
strategy: l.value
|
|
976
|
-
}).then((A) => {
|
|
977
|
-
a.value = A.x, m.value = A.y, d.value = A.strategy, h.value = A.placement, g.value = A.middlewareData, w.value = v !== !1;
|
|
978
|
-
});
|
|
979
|
-
}
|
|
980
|
-
function R() {
|
|
981
|
-
typeof y == "function" && (y(), y = void 0);
|
|
982
|
-
}
|
|
983
|
-
function b() {
|
|
984
|
-
if (R(), o === void 0) {
|
|
985
|
-
x();
|
|
986
|
-
return;
|
|
987
|
-
}
|
|
988
|
-
if (c.value != null && u.value != null) {
|
|
989
|
-
y = o(c.value, u.value, x);
|
|
990
|
-
return;
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
function T() {
|
|
994
|
-
i.value || (w.value = !1);
|
|
995
|
-
}
|
|
996
|
-
return st([s, r, l, i], x, {
|
|
997
|
-
flush: "sync"
|
|
998
|
-
}), st([c, u], b, {
|
|
999
|
-
flush: "sync"
|
|
1000
|
-
}), st(i, T, {
|
|
1001
|
-
flush: "sync"
|
|
1002
|
-
}), Nt() && Wt(R), {
|
|
1003
|
-
x: $(a),
|
|
1004
|
-
y: $(m),
|
|
1005
|
-
strategy: $(d),
|
|
1006
|
-
placement: $(h),
|
|
1007
|
-
middlewareData: $(g),
|
|
1008
|
-
isPositioned: $(w),
|
|
1009
|
-
floatingStyles: p,
|
|
1010
|
-
update: x
|
|
1011
|
-
};
|
|
1012
|
-
}
|
|
1013
|
-
export {
|
|
1014
|
-
Re as a,
|
|
1015
|
-
Ce as f,
|
|
1016
|
-
Ae as o,
|
|
1017
|
-
Oe as s,
|
|
1018
|
-
Ee as u
|
|
1019
|
-
};
|