@knime/scripting-editor 0.0.127 → 0.0.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AnyOfTwinlist-C0gjxeQW-C5wsbDLK.js → AnyOfTwinlist-Chx0nmt3-DPMbiVZd.js} +5 -4
- package/dist/{ArrayLayout-U4hs5LA_.js → ArrayLayout-C2-4wxkT.js} +39 -39
- package/dist/{ButtonControl-B8WGWs_m.js → ButtonControl-Dga3IomB.js} +26 -26
- package/dist/CheckboxControl-B8b1Di4k-CEkOsWEu.js +40 -0
- package/dist/CheckboxesControl-DWUnPGdN-BOSX_stf.js +42 -0
- package/dist/CodeEditorControl-CN4ltMvy.js +133 -0
- package/dist/{ColorControl-DeSwgyjS-BW1FBjqa.js → ColorControl-ByE5ku7u-C12pZ0rg.js} +10 -8
- package/dist/ColorPreviewControl-XiKZ4jfn-CLIjX6M_.js +89 -0
- package/dist/ComboBoxControl-zSceYlyZ-BgpAi7q9.js +42 -0
- package/dist/{ConfigurationNodeNotSupported-Bg2W0ik5.js → ConfigurationNodeNotSupported-B27grebd.js} +3 -3
- package/dist/ControlWithSubParameters-ROJGaqDF.js +63 -0
- package/dist/CredentialsControl-B6jczlBv.js +33 -0
- package/dist/CredentialsControlBase-CdNdAngd.js +96 -0
- package/dist/DateControl-BBGpEVpr-yZP_TZnE.js +44 -0
- package/dist/DateTimeControl-CymOURq5-Ca0mT1HW.js +89 -0
- package/dist/DateTimeFormatPickerControl-Bx19jwpr-Bd0xBs4D.js +37 -0
- package/dist/DateTimeFormatPickerWithTypeControl-Byo_0cTq-C0ZfMqtp.js +598 -0
- package/dist/{DialogFileExplorer-Bi0DVFut.js → DialogFileExplorer-BmT2YlVn.js} +2 -2
- package/dist/{DirtyTrackerRenderer-CDcL-lwX.js → DirtyTrackerRenderer-BG451zZD.js} +10 -10
- package/dist/DropdownControl-C6ffVYyf-hy0i8nDV.js +32 -0
- package/dist/DynamicInputControl-W23Zexge.js +6 -0
- package/dist/ExecutorCoresControl-D9FZ-g9O-Dws9IhAs.js +51 -0
- package/dist/ExecutorMemoryControl-__P80Lkb-DxQZ2IuA.js +44 -0
- package/dist/{FileChooserControl-BR84kEXy.js → FileChooserControl-BBbay7zU.js} +4 -3
- package/dist/{FileChooserControlBase-1oayQJzv.js → FileChooserControlBase-DpYYK3eE.js} +147 -143
- package/dist/{FileChooserControlForMultiFile-ChQtkmps.js → FileChooserControlForMultiFile-6NLYZKbt.js} +5 -4
- package/dist/FileUploadControl-DWs4PhOj-BvByW-Tq.js +545 -0
- package/dist/GridSelectionControl-WcJ4y6Fs-BoxSk0VG.js +117 -0
- package/dist/{HorizontalLayout-DwdPdBTW-w5bjgNga.js → HorizontalLayout-ByB5A7X3-BURAMMFG.js} +5 -5
- package/dist/{IntegerControl-D8OzxbRA-D9mR5ahj.js → IntegerControl-aveswmbr-50_b6vGY.js} +5 -4
- package/dist/IntervalControl-B4Eqs1Jf-CiB2D52B.js +51 -0
- package/dist/{LabeledGroup-BzXUTco4.js → LabeledGroup-BONZ_GLo.js} +3 -3
- package/dist/LegacyCredentialsControl-DaIrvNBd.js +88 -0
- package/dist/{LinkControl-BvBBTFCs-DojlONSA.js → LinkControl-DD56lOiw-CDy6OBu8.js} +10 -10
- package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-BLSG6Lpo-CtYj2B6v.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-CscatDmg-BaroyBA0.js} +1 -1
- package/dist/ManualTwinlistControl-DBZ5RZgW-BV5qOGau.js +77 -0
- package/dist/MultiFileChooserControl-cyndOpF7.js +341 -0
- package/dist/{MultiRuleWrapper-TvQw5Kaj.js → MultiRuleWrapper-Db-W_o1f.js} +1 -1
- package/dist/{MultiSelectListBoxControl-nmvLP18g-feO16jJ4.js → MultiSelectListBoxControl-BMsPvxGQ-5ua-fVR8.js} +10 -9
- package/dist/{MultimodeTwinlistControl-yCdeWH2E-DG6GXu0l.js → MultimodeTwinlistControl-thO1be1r-8kc-JSH1.js} +64 -62
- package/dist/{NameFilter-D1TMJydD-Db00pnR3.js → NameFilter-DBMVmZmk-DnB-5f39.js} +7 -6
- package/dist/{NumberControl-uLMOLEbg-B_H33dGY.js → NumberControl-BPVO5l6t--nrQcx4m.js} +8 -7
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-CR61f6d6-Df5EPyns.js +54 -0
- package/dist/OneOfDropdown-DBG8ZcpV-cZs_ptrT.js +36 -0
- package/dist/{RadioButtonsWithDescriptionControl-5M_6G7Qk-BHHWv0Y0.js → RadioButtonsWithDescriptionControl-BsqMTEB5-COGPhNPs.js} +17 -17
- package/dist/RadioControl-ClJmr0EQ-BzjoXaZ3.js +21 -0
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-Bm4EUEvw-Cabfycg_.js +64 -0
- package/dist/ResourceControlBase-CeXYJeR1-DSmxhV0s.js +113 -0
- package/dist/{RichTextControl-D9QD2_uO-OY669heQ.js → RichTextControl-DvYkBpzH-CtMZq2re.js} +7876 -6699
- package/dist/{SectionLayout-DY27pAtG-BIZg0kiA.js → SectionLayout-CwRO3UXc-d5rFpCRN.js} +5 -5
- package/dist/SettingsSubPanelLayout-CV6y2bcX-OzpF07vB.js +64 -0
- package/dist/{SimpleTwinlistControl-P4KEYOq0-97VRLEr4.js → SimpleTwinlistControl-BSON5VYy-BaAaU86G.js} +7 -6
- package/dist/SingleSelectControl-BSqORMYm-CBP_mVGB.js +58 -0
- package/dist/{SingleSelectListBoxControl-oMWH0vEE-Ewf1HUGa.js → SingleSelectListBoxControl-CFdKzbOK-CruT9yt-.js} +14 -13
- package/dist/{SortListControl-4v3T2j_9-BkTlN-H5.js → SortListControl-DZIHeQmn-CKRyT1hN.js} +41 -39
- package/dist/{StringFileChooserControl-BVH5iHNM.js → StringFileChooserControl-Br8gZTku.js} +33 -30
- package/dist/{StyledListItem-D3LSfgGV-B9rTS8WT.js → StyledListItem--sgmJ3W_-Bo6f-_9B.js} +1 -1
- package/dist/{TeamAndSpacesControl-CH5ImByy-aTqgKpBn.js → TeamAndSpacesControl-DiMyDT-5-Br-Lq0ki.js} +21 -20
- package/dist/TeamResourceControl-Bag_dwA1-PdtnhxEi.js +44 -0
- package/dist/{TextAreaControl-CrsZSU_f-CNj59YPm.js → TextAreaControl-B52P0DAa-McfOgZWn.js} +10 -8
- package/dist/TextControl-52n-sttB-DssWw4KP.js +50962 -0
- package/dist/TimeControl-Cu12_qpz-CK1bxhya.js +71 -0
- package/dist/TimeframesControl-DhdC8OS1-DYseJbBV.js +352 -0
- package/dist/TwinlistControlBase.vue_vue_type_script_setup_true_lang-t1I2qxJz-DU6yd1RM.js +45 -0
- package/dist/{TypedStringFilter-ry7fTUTx-CCJRabai.js → TypedStringFilter-zJOICQei-B-5z8atp.js} +7 -6
- package/dist/{ValueSwitchControl-aVx7pUi9-7kuEbp3H.js → ValueSwitchControl-CEVWJH7z-DzuxqLvy.js} +7 -6
- package/dist/{VennDiagramLayout-D8s5yYbT.js → VennDiagramLayout-DyTZ5EJ9.js} +24 -24
- package/dist/{VerticalLayout-Bv-LJOZ0-BTrnMnQu.js → VerticalLayout-D_13xb_m-BfU1M3IE.js} +7 -7
- package/dist/ZonedDateTimeControl-C-vO6fC1-XngmuFqW.js +82 -0
- package/dist/{ai-bar-DLr5A9ZW.js → ai-bar-DDtzX23v.js} +775 -732
- package/dist/classApi-CHpAZrj3-BptMrhKH.js +3328 -0
- package/dist/collection-BBXRVj4b-DhO8c3tP.js +22 -0
- package/dist/collection-BBXRVj4b-DzRZ2FYd-COyFmQqa.js +22 -0
- package/dist/collection-BBXRVj4b-grENCIdl.js +22 -0
- package/dist/main.js +9977 -13304
- package/dist/parameters.js +1 -1
- package/dist/plainDateTimeUtils-CR0UhpkD-DU-LM4_V.js +52 -0
- package/dist/src/components/ScriptingEditor.vue.d.ts +6 -4
- package/dist/src/components/SettingsPage.vue.d.ts +5 -4
- package/dist/src/scripting-service.d.ts +1 -1
- package/dist/useDropdownNavigation-CdrbT-CQ-Dxb_y1Fq.js +2003 -0
- package/dist/{useFileChooserBackend-Bs7hx7xH.js → useFileChooserBackend-CLdJ1RU1.js} +6 -6
- package/dist/usePlainDateTimeBatch-Bd2G-GY9-DO2Zu0Mj.js +34 -0
- package/dist/{usePossibleValues-B-W6u-1T-DcglK6MY.js → usePossibleValues-DiYOmnZW-CaSLjdK-.js} +4 -4
- package/package.json +3 -3
- package/dist/CheckboxControl-CS6iXHnF-DLCN_obF.js +0 -38
- package/dist/CheckboxesControl-CPKIkyWt-BgPFZcJW.js +0 -40
- package/dist/CodeEditorControl-DM7k0B2q.js +0 -103
- package/dist/ColorPreviewControl-CntI0nTL-qVTX4e1m.js +0 -89
- package/dist/ComboBoxControl-DBYnBkC4-1oOLCCms.js +0 -40
- package/dist/ControlWithSubParameters-DgJhqCMe.js +0 -80
- package/dist/CredentialsControl-CuHgBJQY.js +0 -32
- package/dist/CredentialsControlBase-14mA9Xg5.js +0 -96
- package/dist/DateControl-Cx_CwvNB-Cnu4FwAv.js +0 -35
- package/dist/DateTimeControl-BJsDzufC-BLhNM1JR.js +0 -56
- package/dist/DateTimeFormatPickerControl-C80v1qfK-0bjg1c9X.js +0 -35
- package/dist/DateTimeFormatPickerWithTypeControl-Dt-FKtYV-x-IJKc_b.js +0 -475
- package/dist/DropdownControl-D_BnA4-1-BWnnlfiI.js +0 -30
- package/dist/DynamicInputControl-u5VOv3zx.js +0 -6
- package/dist/ExecutorCoresControl-BnglyGMR-CagN3N5j.js +0 -56
- package/dist/ExecutorMemoryControl-CRATGs9C-Dsj7vG41.js +0 -50
- package/dist/FileUploadControl-D42rjpJg-DIoT6HeI.js +0 -221
- package/dist/GridSelectionControl-BJk8-yiM-CvDVlby0.js +0 -116
- package/dist/IntervalControl-Drljrv-b-WpTsaCtp.js +0 -751
- package/dist/LegacyCredentialsControl-C5OmuHPe.js +0 -87
- package/dist/ManualTwinlistControl-By0Hur_m-zZbz98JO.js +0 -75
- package/dist/MultiFileChooserControl-BDBYwcSY.js +0 -401
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-VVQDBYw7-FEqHVnFo.js +0 -52
- package/dist/OneOfDropdown-CDwwxb3h-DAK0CMDe.js +0 -34
- package/dist/RadioControl-C73s-icb-DSF6WESw.js +0 -24
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BScekfhl-oNoT_40f.js +0 -60
- package/dist/ResourceControlBase-Bqq1PAX_-5gNwtS9Y.js +0 -183
- package/dist/SettingsSubPanelLayout-82gMWhpv-DwWBU76p.js +0 -70
- package/dist/SingleSelectControl-C_ZKkV5m-nfkmmDbp.js +0 -56
- package/dist/TeamResourceControl-BFMuyWnk-DvcyxCqW.js +0 -47
- package/dist/TextControl-B0ag-3Pv-nwKlVRtp.js +0 -54671
- package/dist/TimeControl-Bt5OcjBc-KiaYQH-m.js +0 -41
- package/dist/TimePartInput-CvwAzDuY-CuNpUUqj.js +0 -253
- package/dist/TimeframesControl-BE3LFgyl-hQJ_5QVJ.js +0 -94
- package/dist/Tooltip-UlemzxdS-Dfhzj7no.js +0 -24
- package/dist/TwinlistControlBase.vue_vue_type_script_setup_true_lang-B5lCsIOD-KqyVUaZj.js +0 -42
- package/dist/ValueSwitch-BXaDBm2C-Ba93O_aZ.js +0 -130
- package/dist/ZonedDateTimeControl-6MUvXzd3-B1B9FPa7.js +0 -72
- package/dist/_Uint8Array-C_ozLuQF-DBc0hZkr.js +0 -349
- package/dist/arrow-dropdown-DMFBPPcK-uCJYJfqE.js +0 -17
- package/dist/arrow-next-BQULX8HT-DDsCfA5A.js +0 -17
- package/dist/floating-ui.vue-Fx4CxKut-DAsMxBCU.js +0 -1057
- package/dist/isArray-WzO_os3q-ClnPWjBY.js +0 -4
- package/dist/localTimeUtils-DBMwKtLh-CTshgG3l.js +0 -12470
- package/dist/src/lsp/completion.d.ts +0 -7
- package/dist/src/lsp/connection.d.ts +0 -56
- package/dist/src/lsp/diagnostics.d.ts +0 -4
- package/dist/src/lsp/doc-sync.d.ts +0 -5
- package/dist/src/lsp/hover.d.ts +0 -5
- package/dist/src/lsp/knime-io.d.ts +0 -22
- package/dist/src/lsp/mapping-utils.d.ts +0 -8
- package/dist/src/lsp/signature-help.d.ts +0 -5
- package/dist/toString-C-CNeuJl-jseUiiTM.js +0 -949
- package/dist/useDropdownNavigation-2Yhk7zes-75raAHpT.js +0 -821
- /package/dist/{useUnknownValuesInTwinlist-BbwGcno5-D2ve7iXH.js → useUnknownValuesInTwinlist-BhhirtmX-D2ve7iXH.js} +0 -0
|
@@ -1,1057 +0,0 @@
|
|
|
1
|
-
import { computed as B, ref as J, shallowRef as jt, shallowReadonly as j, watch as ut, getCurrentScope as qt, onScopeDispose as Yt, unref as Gt } from "vue";
|
|
2
|
-
const U = Math.min, N = Math.max, tt = Math.round, Z = Math.floor, A = (t) => ({
|
|
3
|
-
x: t,
|
|
4
|
-
y: t
|
|
5
|
-
}), Jt = {
|
|
6
|
-
left: "right",
|
|
7
|
-
right: "left",
|
|
8
|
-
bottom: "top",
|
|
9
|
-
top: "bottom"
|
|
10
|
-
}, Kt = {
|
|
11
|
-
start: "end",
|
|
12
|
-
end: "start"
|
|
13
|
-
};
|
|
14
|
-
function bt(t, e, n) {
|
|
15
|
-
return N(t, U(e, n));
|
|
16
|
-
}
|
|
17
|
-
function ot(t, e) {
|
|
18
|
-
return typeof t == "function" ? t(e) : t;
|
|
19
|
-
}
|
|
20
|
-
function z(t) {
|
|
21
|
-
return t.split("-")[0];
|
|
22
|
-
}
|
|
23
|
-
function it(t) {
|
|
24
|
-
return t.split("-")[1];
|
|
25
|
-
}
|
|
26
|
-
function kt(t) {
|
|
27
|
-
return t === "x" ? "y" : "x";
|
|
28
|
-
}
|
|
29
|
-
function Ft(t) {
|
|
30
|
-
return t === "y" ? "height" : "width";
|
|
31
|
-
}
|
|
32
|
-
const Qt = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
33
|
-
function M(t) {
|
|
34
|
-
return Qt.has(z(t)) ? "y" : "x";
|
|
35
|
-
}
|
|
36
|
-
function Ot(t) {
|
|
37
|
-
return kt(M(t));
|
|
38
|
-
}
|
|
39
|
-
function Xt(t, e, n) {
|
|
40
|
-
n === void 0 && (n = !1);
|
|
41
|
-
const o = it(t), i = Ot(t), r = Ft(i);
|
|
42
|
-
let l = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
43
|
-
return e.reference[r] > e.floating[r] && (l = et(l)), [l, et(l)];
|
|
44
|
-
}
|
|
45
|
-
function Zt(t) {
|
|
46
|
-
const e = et(t);
|
|
47
|
-
return [dt(t), e, dt(e)];
|
|
48
|
-
}
|
|
49
|
-
function dt(t) {
|
|
50
|
-
return t.replace(/start|end/g, (e) => Kt[e]);
|
|
51
|
-
}
|
|
52
|
-
const Rt = ["left", "right"], Lt = ["right", "left"], Ut = ["top", "bottom"], te = ["bottom", "top"];
|
|
53
|
-
function ee(t, e, n) {
|
|
54
|
-
switch (t) {
|
|
55
|
-
case "top":
|
|
56
|
-
case "bottom":
|
|
57
|
-
return n ? e ? Lt : Rt : e ? Rt : Lt;
|
|
58
|
-
case "left":
|
|
59
|
-
case "right":
|
|
60
|
-
return e ? Ut : te;
|
|
61
|
-
default:
|
|
62
|
-
return [];
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
function ne(t, e, n, o) {
|
|
66
|
-
const i = it(t);
|
|
67
|
-
let r = ee(z(t), n === "start", o);
|
|
68
|
-
return i && (r = r.map((l) => l + "-" + i), e && (r = r.concat(r.map(dt)))), r;
|
|
69
|
-
}
|
|
70
|
-
function et(t) {
|
|
71
|
-
return t.replace(/left|right|bottom|top/g, (e) => Jt[e]);
|
|
72
|
-
}
|
|
73
|
-
function oe(t) {
|
|
74
|
-
return {
|
|
75
|
-
top: 0,
|
|
76
|
-
right: 0,
|
|
77
|
-
bottom: 0,
|
|
78
|
-
left: 0,
|
|
79
|
-
...t
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
function ie(t) {
|
|
83
|
-
return typeof t != "number" ? oe(t) : {
|
|
84
|
-
top: t,
|
|
85
|
-
right: t,
|
|
86
|
-
bottom: t,
|
|
87
|
-
left: t
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
function nt(t) {
|
|
91
|
-
const {
|
|
92
|
-
x: e,
|
|
93
|
-
y: n,
|
|
94
|
-
width: o,
|
|
95
|
-
height: i
|
|
96
|
-
} = t;
|
|
97
|
-
return {
|
|
98
|
-
width: o,
|
|
99
|
-
height: i,
|
|
100
|
-
top: n,
|
|
101
|
-
left: e,
|
|
102
|
-
right: e + o,
|
|
103
|
-
bottom: n + i,
|
|
104
|
-
x: e,
|
|
105
|
-
y: n
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
function Tt(t, e, n) {
|
|
109
|
-
let {
|
|
110
|
-
reference: o,
|
|
111
|
-
floating: i
|
|
112
|
-
} = t;
|
|
113
|
-
const r = M(e), l = Ot(e), s = Ft(l), a = z(e), c = r === "y", u = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, h = o[s] / 2 - i[s] / 2;
|
|
114
|
-
let f;
|
|
115
|
-
switch (a) {
|
|
116
|
-
case "top":
|
|
117
|
-
f = {
|
|
118
|
-
x: u,
|
|
119
|
-
y: o.y - i.height
|
|
120
|
-
};
|
|
121
|
-
break;
|
|
122
|
-
case "bottom":
|
|
123
|
-
f = {
|
|
124
|
-
x: u,
|
|
125
|
-
y: o.y + o.height
|
|
126
|
-
};
|
|
127
|
-
break;
|
|
128
|
-
case "right":
|
|
129
|
-
f = {
|
|
130
|
-
x: o.x + o.width,
|
|
131
|
-
y: d
|
|
132
|
-
};
|
|
133
|
-
break;
|
|
134
|
-
case "left":
|
|
135
|
-
f = {
|
|
136
|
-
x: o.x - i.width,
|
|
137
|
-
y: d
|
|
138
|
-
};
|
|
139
|
-
break;
|
|
140
|
-
default:
|
|
141
|
-
f = {
|
|
142
|
-
x: o.x,
|
|
143
|
-
y: o.y
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
switch (it(e)) {
|
|
147
|
-
case "start":
|
|
148
|
-
f[l] -= h * (n && c ? -1 : 1);
|
|
149
|
-
break;
|
|
150
|
-
case "end":
|
|
151
|
-
f[l] += h * (n && c ? -1 : 1);
|
|
152
|
-
break;
|
|
153
|
-
}
|
|
154
|
-
return f;
|
|
155
|
-
}
|
|
156
|
-
const re = async (t, e, n) => {
|
|
157
|
-
const {
|
|
158
|
-
placement: o = "bottom",
|
|
159
|
-
strategy: i = "absolute",
|
|
160
|
-
middleware: r = [],
|
|
161
|
-
platform: l
|
|
162
|
-
} = n, s = r.filter(Boolean), a = await (l.isRTL == null ? void 0 : l.isRTL(e));
|
|
163
|
-
let c = await l.getElementRects({
|
|
164
|
-
reference: t,
|
|
165
|
-
floating: e,
|
|
166
|
-
strategy: i
|
|
167
|
-
}), {
|
|
168
|
-
x: u,
|
|
169
|
-
y: d
|
|
170
|
-
} = Tt(c, o, a), h = o, f = {}, m = 0;
|
|
171
|
-
for (let p = 0; p < s.length; p++) {
|
|
172
|
-
const {
|
|
173
|
-
name: y,
|
|
174
|
-
fn: w
|
|
175
|
-
} = s[p], {
|
|
176
|
-
x: g,
|
|
177
|
-
y: v,
|
|
178
|
-
data: b,
|
|
179
|
-
reset: R
|
|
180
|
-
} = await w({
|
|
181
|
-
x: u,
|
|
182
|
-
y: d,
|
|
183
|
-
initialPlacement: o,
|
|
184
|
-
placement: h,
|
|
185
|
-
strategy: i,
|
|
186
|
-
middlewareData: f,
|
|
187
|
-
rects: c,
|
|
188
|
-
platform: l,
|
|
189
|
-
elements: {
|
|
190
|
-
reference: t,
|
|
191
|
-
floating: e
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
u = g ?? u, d = v ?? d, f = {
|
|
195
|
-
...f,
|
|
196
|
-
[y]: {
|
|
197
|
-
...f[y],
|
|
198
|
-
...b
|
|
199
|
-
}
|
|
200
|
-
}, R && m <= 50 && (m++, typeof R == "object" && (R.placement && (h = R.placement), R.rects && (c = R.rects === !0 ? await l.getElementRects({
|
|
201
|
-
reference: t,
|
|
202
|
-
floating: e,
|
|
203
|
-
strategy: i
|
|
204
|
-
}) : R.rects), {
|
|
205
|
-
x: u,
|
|
206
|
-
y: d
|
|
207
|
-
} = Tt(c, h, a)), p = -1);
|
|
208
|
-
}
|
|
209
|
-
return {
|
|
210
|
-
x: u,
|
|
211
|
-
y: d,
|
|
212
|
-
placement: h,
|
|
213
|
-
strategy: i,
|
|
214
|
-
middlewareData: f
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
async function Bt(t, e) {
|
|
218
|
-
var n;
|
|
219
|
-
e === void 0 && (e = {});
|
|
220
|
-
const {
|
|
221
|
-
x: o,
|
|
222
|
-
y: i,
|
|
223
|
-
platform: r,
|
|
224
|
-
rects: l,
|
|
225
|
-
elements: s,
|
|
226
|
-
strategy: a
|
|
227
|
-
} = t, {
|
|
228
|
-
boundary: c = "clippingAncestors",
|
|
229
|
-
rootBoundary: u = "viewport",
|
|
230
|
-
elementContext: d = "floating",
|
|
231
|
-
altBoundary: h = !1,
|
|
232
|
-
padding: f = 0
|
|
233
|
-
} = ot(e, t), m = ie(f), p = s[h ? d === "floating" ? "reference" : "floating" : d], y = nt(await r.getClippingRect({
|
|
234
|
-
element: (n = await (r.isElement == null ? void 0 : r.isElement(p))) == null || n ? p : p.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(s.floating)),
|
|
235
|
-
boundary: c,
|
|
236
|
-
rootBoundary: u,
|
|
237
|
-
strategy: a
|
|
238
|
-
})), w = d === "floating" ? {
|
|
239
|
-
x: o,
|
|
240
|
-
y: i,
|
|
241
|
-
width: l.floating.width,
|
|
242
|
-
height: l.floating.height
|
|
243
|
-
} : l.reference, g = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(s.floating)), v = await (r.isElement == null ? void 0 : r.isElement(g)) ? await (r.getScale == null ? void 0 : r.getScale(g)) || {
|
|
244
|
-
x: 1,
|
|
245
|
-
y: 1
|
|
246
|
-
} : {
|
|
247
|
-
x: 1,
|
|
248
|
-
y: 1
|
|
249
|
-
}, b = nt(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
250
|
-
elements: s,
|
|
251
|
-
rect: w,
|
|
252
|
-
offsetParent: g,
|
|
253
|
-
strategy: a
|
|
254
|
-
}) : w);
|
|
255
|
-
return {
|
|
256
|
-
top: (y.top - b.top + m.top) / v.y,
|
|
257
|
-
bottom: (b.bottom - y.bottom + m.bottom) / v.y,
|
|
258
|
-
left: (y.left - b.left + m.left) / v.x,
|
|
259
|
-
right: (b.right - y.right + m.right) / v.x
|
|
260
|
-
};
|
|
261
|
-
}
|
|
262
|
-
const le = function(t) {
|
|
263
|
-
return t === void 0 && (t = {}), {
|
|
264
|
-
name: "flip",
|
|
265
|
-
options: t,
|
|
266
|
-
async fn(e) {
|
|
267
|
-
var n, o;
|
|
268
|
-
const {
|
|
269
|
-
placement: i,
|
|
270
|
-
middlewareData: r,
|
|
271
|
-
rects: l,
|
|
272
|
-
initialPlacement: s,
|
|
273
|
-
platform: a,
|
|
274
|
-
elements: c
|
|
275
|
-
} = e, {
|
|
276
|
-
mainAxis: u = !0,
|
|
277
|
-
crossAxis: d = !0,
|
|
278
|
-
fallbackPlacements: h,
|
|
279
|
-
fallbackStrategy: f = "bestFit",
|
|
280
|
-
fallbackAxisSideDirection: m = "none",
|
|
281
|
-
flipAlignment: p = !0,
|
|
282
|
-
...y
|
|
283
|
-
} = ot(t, e);
|
|
284
|
-
if ((n = r.arrow) != null && n.alignmentOffset)
|
|
285
|
-
return {};
|
|
286
|
-
const w = z(i), g = M(s), v = z(s) === s, b = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), R = h || (v || !p ? [et(s)] : Zt(s)), P = m !== "none";
|
|
287
|
-
!h && P && R.push(...ne(s, p, m, b));
|
|
288
|
-
const x = [s, ...R], T = await Bt(e, y), W = [];
|
|
289
|
-
let _ = ((o = r.flip) == null ? void 0 : o.overflows) || [];
|
|
290
|
-
if (u && W.push(T[w]), d) {
|
|
291
|
-
const V = Xt(i, l, b);
|
|
292
|
-
W.push(T[V[0]], T[V[1]]);
|
|
293
|
-
}
|
|
294
|
-
if (_ = [..._, {
|
|
295
|
-
placement: i,
|
|
296
|
-
overflows: W
|
|
297
|
-
}], !W.every((V) => V <= 0)) {
|
|
298
|
-
var wt, vt;
|
|
299
|
-
const V = (((wt = r.flip) == null ? void 0 : wt.index) || 0) + 1, ct = x[V];
|
|
300
|
-
if (ct && (!(d === "alignment" && g !== M(ct)) || // We leave the current main axis only if every placement on that axis
|
|
301
|
-
// overflows the main axis.
|
|
302
|
-
_.every((k) => M(k.placement) === g ? k.overflows[0] > 0 : !0)))
|
|
303
|
-
return {
|
|
304
|
-
data: {
|
|
305
|
-
index: V,
|
|
306
|
-
overflows: _
|
|
307
|
-
},
|
|
308
|
-
reset: {
|
|
309
|
-
placement: ct
|
|
310
|
-
}
|
|
311
|
-
};
|
|
312
|
-
let G = (vt = _.filter((k) => k.overflows[0] <= 0).sort((k, F) => k.overflows[1] - F.overflows[1])[0]) == null ? void 0 : vt.placement;
|
|
313
|
-
if (!G)
|
|
314
|
-
switch (f) {
|
|
315
|
-
case "bestFit": {
|
|
316
|
-
var xt;
|
|
317
|
-
const k = (xt = _.filter((F) => {
|
|
318
|
-
if (P) {
|
|
319
|
-
const O = M(F.placement);
|
|
320
|
-
return O === g || // Create a bias to the `y` side axis due to horizontal
|
|
321
|
-
// reading directions favoring greater width.
|
|
322
|
-
O === "y";
|
|
323
|
-
}
|
|
324
|
-
return !0;
|
|
325
|
-
}).map((F) => [F.placement, F.overflows.filter((O) => O > 0).reduce((O, _t) => O + _t, 0)]).sort((F, O) => F[1] - O[1])[0]) == null ? void 0 : xt[0];
|
|
326
|
-
k && (G = k);
|
|
327
|
-
break;
|
|
328
|
-
}
|
|
329
|
-
case "initialPlacement":
|
|
330
|
-
G = s;
|
|
331
|
-
break;
|
|
332
|
-
}
|
|
333
|
-
if (i !== G)
|
|
334
|
-
return {
|
|
335
|
-
reset: {
|
|
336
|
-
placement: G
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
return {};
|
|
341
|
-
}
|
|
342
|
-
};
|
|
343
|
-
}, se = /* @__PURE__ */ new Set(["left", "top"]);
|
|
344
|
-
async function ae(t, e) {
|
|
345
|
-
const {
|
|
346
|
-
placement: n,
|
|
347
|
-
platform: o,
|
|
348
|
-
elements: i
|
|
349
|
-
} = t, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), l = z(n), s = it(n), a = M(n) === "y", c = se.has(l) ? -1 : 1, u = r && a ? -1 : 1, d = ot(e, t);
|
|
350
|
-
let {
|
|
351
|
-
mainAxis: h,
|
|
352
|
-
crossAxis: f,
|
|
353
|
-
alignmentAxis: m
|
|
354
|
-
} = typeof d == "number" ? {
|
|
355
|
-
mainAxis: d,
|
|
356
|
-
crossAxis: 0,
|
|
357
|
-
alignmentAxis: null
|
|
358
|
-
} : {
|
|
359
|
-
mainAxis: d.mainAxis || 0,
|
|
360
|
-
crossAxis: d.crossAxis || 0,
|
|
361
|
-
alignmentAxis: d.alignmentAxis
|
|
362
|
-
};
|
|
363
|
-
return s && typeof m == "number" && (f = s === "end" ? m * -1 : m), a ? {
|
|
364
|
-
x: f * u,
|
|
365
|
-
y: h * c
|
|
366
|
-
} : {
|
|
367
|
-
x: h * c,
|
|
368
|
-
y: f * u
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
const ce = function(t) {
|
|
372
|
-
return t === void 0 && (t = 0), {
|
|
373
|
-
name: "offset",
|
|
374
|
-
options: t,
|
|
375
|
-
async fn(e) {
|
|
376
|
-
var n, o;
|
|
377
|
-
const {
|
|
378
|
-
x: i,
|
|
379
|
-
y: r,
|
|
380
|
-
placement: l,
|
|
381
|
-
middlewareData: s
|
|
382
|
-
} = e, a = await ae(e, t);
|
|
383
|
-
return l === ((n = s.offset) == null ? void 0 : n.placement) && (o = s.arrow) != null && o.alignmentOffset ? {} : {
|
|
384
|
-
x: i + a.x,
|
|
385
|
-
y: r + a.y,
|
|
386
|
-
data: {
|
|
387
|
-
...a,
|
|
388
|
-
placement: l
|
|
389
|
-
}
|
|
390
|
-
};
|
|
391
|
-
}
|
|
392
|
-
};
|
|
393
|
-
}, ue = function(t) {
|
|
394
|
-
return t === void 0 && (t = {}), {
|
|
395
|
-
name: "shift",
|
|
396
|
-
options: t,
|
|
397
|
-
async fn(e) {
|
|
398
|
-
const {
|
|
399
|
-
x: n,
|
|
400
|
-
y: o,
|
|
401
|
-
placement: i
|
|
402
|
-
} = e, {
|
|
403
|
-
mainAxis: r = !0,
|
|
404
|
-
crossAxis: l = !1,
|
|
405
|
-
limiter: s = {
|
|
406
|
-
fn: (y) => {
|
|
407
|
-
let {
|
|
408
|
-
x: w,
|
|
409
|
-
y: g
|
|
410
|
-
} = y;
|
|
411
|
-
return {
|
|
412
|
-
x: w,
|
|
413
|
-
y: g
|
|
414
|
-
};
|
|
415
|
-
}
|
|
416
|
-
},
|
|
417
|
-
...a
|
|
418
|
-
} = ot(t, e), c = {
|
|
419
|
-
x: n,
|
|
420
|
-
y: o
|
|
421
|
-
}, u = await Bt(e, a), d = M(z(i)), h = kt(d);
|
|
422
|
-
let f = c[h], m = c[d];
|
|
423
|
-
if (r) {
|
|
424
|
-
const y = h === "y" ? "top" : "left", w = h === "y" ? "bottom" : "right", g = f + u[y], v = f - u[w];
|
|
425
|
-
f = bt(g, f, v);
|
|
426
|
-
}
|
|
427
|
-
if (l) {
|
|
428
|
-
const y = d === "y" ? "top" : "left", w = d === "y" ? "bottom" : "right", g = m + u[y], v = m - u[w];
|
|
429
|
-
m = bt(g, m, v);
|
|
430
|
-
}
|
|
431
|
-
const p = s.fn({
|
|
432
|
-
...e,
|
|
433
|
-
[h]: f,
|
|
434
|
-
[d]: m
|
|
435
|
-
});
|
|
436
|
-
return {
|
|
437
|
-
...p,
|
|
438
|
-
data: {
|
|
439
|
-
x: p.x - n,
|
|
440
|
-
y: p.y - o,
|
|
441
|
-
enabled: {
|
|
442
|
-
[h]: r,
|
|
443
|
-
[d]: l
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
};
|
|
447
|
-
}
|
|
448
|
-
};
|
|
449
|
-
};
|
|
450
|
-
function rt() {
|
|
451
|
-
return typeof window < "u";
|
|
452
|
-
}
|
|
453
|
-
function I(t) {
|
|
454
|
-
return mt(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
455
|
-
}
|
|
456
|
-
function L(t) {
|
|
457
|
-
var e;
|
|
458
|
-
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
459
|
-
}
|
|
460
|
-
function C(t) {
|
|
461
|
-
var e;
|
|
462
|
-
return (e = (mt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
463
|
-
}
|
|
464
|
-
function mt(t) {
|
|
465
|
-
return rt() ? t instanceof Node || t instanceof L(t).Node : !1;
|
|
466
|
-
}
|
|
467
|
-
function S(t) {
|
|
468
|
-
return rt() ? t instanceof Element || t instanceof L(t).Element : !1;
|
|
469
|
-
}
|
|
470
|
-
function D(t) {
|
|
471
|
-
return rt() ? t instanceof HTMLElement || t instanceof L(t).HTMLElement : !1;
|
|
472
|
-
}
|
|
473
|
-
function St(t) {
|
|
474
|
-
return !rt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof L(t).ShadowRoot;
|
|
475
|
-
}
|
|
476
|
-
const fe = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
477
|
-
function X(t) {
|
|
478
|
-
const {
|
|
479
|
-
overflow: e,
|
|
480
|
-
overflowX: n,
|
|
481
|
-
overflowY: o,
|
|
482
|
-
display: i
|
|
483
|
-
} = E(t);
|
|
484
|
-
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !fe.has(i);
|
|
485
|
-
}
|
|
486
|
-
const de = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
487
|
-
function he(t) {
|
|
488
|
-
return de.has(I(t));
|
|
489
|
-
}
|
|
490
|
-
const me = [":popover-open", ":modal"];
|
|
491
|
-
function lt(t) {
|
|
492
|
-
return me.some((e) => {
|
|
493
|
-
try {
|
|
494
|
-
return t.matches(e);
|
|
495
|
-
} catch {
|
|
496
|
-
return !1;
|
|
497
|
-
}
|
|
498
|
-
});
|
|
499
|
-
}
|
|
500
|
-
const pe = ["transform", "translate", "scale", "rotate", "perspective"], ge = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ye = ["paint", "layout", "strict", "content"];
|
|
501
|
-
function pt(t) {
|
|
502
|
-
const e = gt(), n = S(t) ? E(t) : t;
|
|
503
|
-
return pe.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) || ge.some((o) => (n.willChange || "").includes(o)) || ye.some((o) => (n.contain || "").includes(o));
|
|
504
|
-
}
|
|
505
|
-
function we(t) {
|
|
506
|
-
let e = H(t);
|
|
507
|
-
for (; D(e) && !Y(e); ) {
|
|
508
|
-
if (pt(e))
|
|
509
|
-
return e;
|
|
510
|
-
if (lt(e))
|
|
511
|
-
return null;
|
|
512
|
-
e = H(e);
|
|
513
|
-
}
|
|
514
|
-
return null;
|
|
515
|
-
}
|
|
516
|
-
function gt() {
|
|
517
|
-
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
518
|
-
}
|
|
519
|
-
const ve = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
520
|
-
function Y(t) {
|
|
521
|
-
return ve.has(I(t));
|
|
522
|
-
}
|
|
523
|
-
function E(t) {
|
|
524
|
-
return L(t).getComputedStyle(t);
|
|
525
|
-
}
|
|
526
|
-
function st(t) {
|
|
527
|
-
return S(t) ? {
|
|
528
|
-
scrollLeft: t.scrollLeft,
|
|
529
|
-
scrollTop: t.scrollTop
|
|
530
|
-
} : {
|
|
531
|
-
scrollLeft: t.scrollX,
|
|
532
|
-
scrollTop: t.scrollY
|
|
533
|
-
};
|
|
534
|
-
}
|
|
535
|
-
function H(t) {
|
|
536
|
-
if (I(t) === "html")
|
|
537
|
-
return t;
|
|
538
|
-
const e = (
|
|
539
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
540
|
-
t.assignedSlot || // DOM Element detected.
|
|
541
|
-
t.parentNode || // ShadowRoot detected.
|
|
542
|
-
St(t) && t.host || // Fallback.
|
|
543
|
-
C(t)
|
|
544
|
-
);
|
|
545
|
-
return St(e) ? e.host : e;
|
|
546
|
-
}
|
|
547
|
-
function Mt(t) {
|
|
548
|
-
const e = H(t);
|
|
549
|
-
return Y(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : D(e) && X(e) ? e : Mt(e);
|
|
550
|
-
}
|
|
551
|
-
function Q(t, e, n) {
|
|
552
|
-
var o;
|
|
553
|
-
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
554
|
-
const i = Mt(t), r = i === ((o = t.ownerDocument) == null ? void 0 : o.body), l = L(i);
|
|
555
|
-
if (r) {
|
|
556
|
-
const s = ht(l);
|
|
557
|
-
return e.concat(l, l.visualViewport || [], X(i) ? i : [], s && n ? Q(s) : []);
|
|
558
|
-
}
|
|
559
|
-
return e.concat(i, Q(i, [], n));
|
|
560
|
-
}
|
|
561
|
-
function ht(t) {
|
|
562
|
-
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
563
|
-
}
|
|
564
|
-
function Ht(t) {
|
|
565
|
-
const e = E(t);
|
|
566
|
-
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
567
|
-
const i = D(t), r = i ? t.offsetWidth : n, l = i ? t.offsetHeight : o, s = tt(n) !== r || tt(o) !== l;
|
|
568
|
-
return s && (n = r, o = l), {
|
|
569
|
-
width: n,
|
|
570
|
-
height: o,
|
|
571
|
-
$: s
|
|
572
|
-
};
|
|
573
|
-
}
|
|
574
|
-
function yt(t) {
|
|
575
|
-
return S(t) ? t : t.contextElement;
|
|
576
|
-
}
|
|
577
|
-
function q(t) {
|
|
578
|
-
const e = yt(t);
|
|
579
|
-
if (!D(e))
|
|
580
|
-
return A(1);
|
|
581
|
-
const n = e.getBoundingClientRect(), {
|
|
582
|
-
width: o,
|
|
583
|
-
height: i,
|
|
584
|
-
$: r
|
|
585
|
-
} = Ht(e);
|
|
586
|
-
let l = (r ? tt(n.width) : n.width) / o, s = (r ? tt(n.height) : n.height) / i;
|
|
587
|
-
return (!l || !Number.isFinite(l)) && (l = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
588
|
-
x: l,
|
|
589
|
-
y: s
|
|
590
|
-
};
|
|
591
|
-
}
|
|
592
|
-
const xe = /* @__PURE__ */ A(0);
|
|
593
|
-
function Wt(t) {
|
|
594
|
-
const e = L(t);
|
|
595
|
-
return !gt() || !e.visualViewport ? xe : {
|
|
596
|
-
x: e.visualViewport.offsetLeft,
|
|
597
|
-
y: e.visualViewport.offsetTop
|
|
598
|
-
};
|
|
599
|
-
}
|
|
600
|
-
function be(t, e, n) {
|
|
601
|
-
return e === void 0 && (e = !1), !n || e && n !== L(t) ? !1 : e;
|
|
602
|
-
}
|
|
603
|
-
function $(t, e, n, o) {
|
|
604
|
-
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
605
|
-
const i = t.getBoundingClientRect(), r = yt(t);
|
|
606
|
-
let l = A(1);
|
|
607
|
-
e && (o ? S(o) && (l = q(o)) : l = q(t));
|
|
608
|
-
const s = be(r, n, o) ? Wt(r) : A(0);
|
|
609
|
-
let a = (i.left + s.x) / l.x, c = (i.top + s.y) / l.y, u = i.width / l.x, d = i.height / l.y;
|
|
610
|
-
if (r) {
|
|
611
|
-
const h = L(r), f = o && S(o) ? L(o) : o;
|
|
612
|
-
let m = h, p = ht(m);
|
|
613
|
-
for (; p && o && f !== m; ) {
|
|
614
|
-
const y = q(p), w = p.getBoundingClientRect(), g = E(p), v = w.left + (p.clientLeft + parseFloat(g.paddingLeft)) * y.x, b = w.top + (p.clientTop + parseFloat(g.paddingTop)) * y.y;
|
|
615
|
-
a *= y.x, c *= y.y, u *= y.x, d *= y.y, a += v, c += b, m = L(p), p = ht(m);
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
return nt({
|
|
619
|
-
width: u,
|
|
620
|
-
height: d,
|
|
621
|
-
x: a,
|
|
622
|
-
y: c
|
|
623
|
-
});
|
|
624
|
-
}
|
|
625
|
-
function at(t, e) {
|
|
626
|
-
const n = st(t).scrollLeft;
|
|
627
|
-
return e ? e.left + n : $(C(t)).left + n;
|
|
628
|
-
}
|
|
629
|
-
function Vt(t, e) {
|
|
630
|
-
const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - at(t, n), i = n.top + e.scrollTop;
|
|
631
|
-
return {
|
|
632
|
-
x: o,
|
|
633
|
-
y: i
|
|
634
|
-
};
|
|
635
|
-
}
|
|
636
|
-
function Re(t) {
|
|
637
|
-
let {
|
|
638
|
-
elements: e,
|
|
639
|
-
rect: n,
|
|
640
|
-
offsetParent: o,
|
|
641
|
-
strategy: i
|
|
642
|
-
} = t;
|
|
643
|
-
const r = i === "fixed", l = C(o), s = e ? lt(e.floating) : !1;
|
|
644
|
-
if (o === l || s && r)
|
|
645
|
-
return n;
|
|
646
|
-
let a = {
|
|
647
|
-
scrollLeft: 0,
|
|
648
|
-
scrollTop: 0
|
|
649
|
-
}, c = A(1);
|
|
650
|
-
const u = A(0), d = D(o);
|
|
651
|
-
if ((d || !d && !r) && ((I(o) !== "body" || X(l)) && (a = st(o)), D(o))) {
|
|
652
|
-
const f = $(o);
|
|
653
|
-
c = q(o), u.x = f.x + o.clientLeft, u.y = f.y + o.clientTop;
|
|
654
|
-
}
|
|
655
|
-
const h = l && !d && !r ? Vt(l, a) : A(0);
|
|
656
|
-
return {
|
|
657
|
-
width: n.width * c.x,
|
|
658
|
-
height: n.height * c.y,
|
|
659
|
-
x: n.x * c.x - a.scrollLeft * c.x + u.x + h.x,
|
|
660
|
-
y: n.y * c.y - a.scrollTop * c.y + u.y + h.y
|
|
661
|
-
};
|
|
662
|
-
}
|
|
663
|
-
function Le(t) {
|
|
664
|
-
return Array.from(t.getClientRects());
|
|
665
|
-
}
|
|
666
|
-
function Te(t) {
|
|
667
|
-
const e = C(t), n = st(t), o = t.ownerDocument.body, i = N(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), r = N(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
668
|
-
let l = -n.scrollLeft + at(t);
|
|
669
|
-
const s = -n.scrollTop;
|
|
670
|
-
return E(o).direction === "rtl" && (l += N(e.clientWidth, o.clientWidth) - i), {
|
|
671
|
-
width: i,
|
|
672
|
-
height: r,
|
|
673
|
-
x: l,
|
|
674
|
-
y: s
|
|
675
|
-
};
|
|
676
|
-
}
|
|
677
|
-
const Et = 25;
|
|
678
|
-
function Se(t, e) {
|
|
679
|
-
const n = L(t), o = C(t), i = n.visualViewport;
|
|
680
|
-
let r = o.clientWidth, l = o.clientHeight, s = 0, a = 0;
|
|
681
|
-
if (i) {
|
|
682
|
-
r = i.width, l = i.height;
|
|
683
|
-
const u = gt();
|
|
684
|
-
(!u || u && e === "fixed") && (s = i.offsetLeft, a = i.offsetTop);
|
|
685
|
-
}
|
|
686
|
-
const c = at(o);
|
|
687
|
-
if (c <= 0) {
|
|
688
|
-
const u = o.ownerDocument, d = u.body, h = getComputedStyle(d), f = u.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, m = Math.abs(o.clientWidth - d.clientWidth - f);
|
|
689
|
-
m <= Et && (r -= m);
|
|
690
|
-
} else c <= Et && (r += c);
|
|
691
|
-
return {
|
|
692
|
-
width: r,
|
|
693
|
-
height: l,
|
|
694
|
-
x: s,
|
|
695
|
-
y: a
|
|
696
|
-
};
|
|
697
|
-
}
|
|
698
|
-
const Ee = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
699
|
-
function Ae(t, e) {
|
|
700
|
-
const n = $(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, r = D(t) ? q(t) : A(1), l = t.clientWidth * r.x, s = t.clientHeight * r.y, a = i * r.x, c = o * r.y;
|
|
701
|
-
return {
|
|
702
|
-
width: l,
|
|
703
|
-
height: s,
|
|
704
|
-
x: a,
|
|
705
|
-
y: c
|
|
706
|
-
};
|
|
707
|
-
}
|
|
708
|
-
function At(t, e, n) {
|
|
709
|
-
let o;
|
|
710
|
-
if (e === "viewport")
|
|
711
|
-
o = Se(t, n);
|
|
712
|
-
else if (e === "document")
|
|
713
|
-
o = Te(C(t));
|
|
714
|
-
else if (S(e))
|
|
715
|
-
o = Ae(e, n);
|
|
716
|
-
else {
|
|
717
|
-
const i = Wt(t);
|
|
718
|
-
o = {
|
|
719
|
-
x: e.x - i.x,
|
|
720
|
-
y: e.y - i.y,
|
|
721
|
-
width: e.width,
|
|
722
|
-
height: e.height
|
|
723
|
-
};
|
|
724
|
-
}
|
|
725
|
-
return nt(o);
|
|
726
|
-
}
|
|
727
|
-
function Nt(t, e) {
|
|
728
|
-
const n = H(t);
|
|
729
|
-
return n === e || !S(n) || Y(n) ? !1 : E(n).position === "fixed" || Nt(n, e);
|
|
730
|
-
}
|
|
731
|
-
function De(t, e) {
|
|
732
|
-
const n = e.get(t);
|
|
733
|
-
if (n)
|
|
734
|
-
return n;
|
|
735
|
-
let o = Q(t, [], !1).filter((s) => S(s) && I(s) !== "body"), i = null;
|
|
736
|
-
const r = E(t).position === "fixed";
|
|
737
|
-
let l = r ? H(t) : t;
|
|
738
|
-
for (; S(l) && !Y(l); ) {
|
|
739
|
-
const s = E(l), a = pt(l);
|
|
740
|
-
!a && s.position === "fixed" && (i = null), (r ? !a && !i : !a && s.position === "static" && i && Ee.has(i.position) || X(l) && !a && Nt(t, l)) ? o = o.filter((c) => c !== l) : i = s, l = H(l);
|
|
741
|
-
}
|
|
742
|
-
return e.set(t, o), o;
|
|
743
|
-
}
|
|
744
|
-
function Ce(t) {
|
|
745
|
-
let {
|
|
746
|
-
element: e,
|
|
747
|
-
boundary: n,
|
|
748
|
-
rootBoundary: o,
|
|
749
|
-
strategy: i
|
|
750
|
-
} = t;
|
|
751
|
-
const r = [...n === "clippingAncestors" ? lt(e) ? [] : De(e, this._c) : [].concat(n), o], l = r[0], s = r.reduce((a, c) => {
|
|
752
|
-
const u = At(e, c, i);
|
|
753
|
-
return a.top = N(u.top, a.top), a.right = U(u.right, a.right), a.bottom = U(u.bottom, a.bottom), a.left = N(u.left, a.left), a;
|
|
754
|
-
}, At(e, l, i));
|
|
755
|
-
return {
|
|
756
|
-
width: s.right - s.left,
|
|
757
|
-
height: s.bottom - s.top,
|
|
758
|
-
x: s.left,
|
|
759
|
-
y: s.top
|
|
760
|
-
};
|
|
761
|
-
}
|
|
762
|
-
function Pe(t) {
|
|
763
|
-
const {
|
|
764
|
-
width: e,
|
|
765
|
-
height: n
|
|
766
|
-
} = Ht(t);
|
|
767
|
-
return {
|
|
768
|
-
width: e,
|
|
769
|
-
height: n
|
|
770
|
-
};
|
|
771
|
-
}
|
|
772
|
-
function ke(t, e, n) {
|
|
773
|
-
const o = D(e), i = C(e), r = n === "fixed", l = $(t, !0, r, e);
|
|
774
|
-
let s = {
|
|
775
|
-
scrollLeft: 0,
|
|
776
|
-
scrollTop: 0
|
|
777
|
-
};
|
|
778
|
-
const a = A(0);
|
|
779
|
-
function c() {
|
|
780
|
-
a.x = at(i);
|
|
781
|
-
}
|
|
782
|
-
if (o || !o && !r)
|
|
783
|
-
if ((I(e) !== "body" || X(i)) && (s = st(e)), o) {
|
|
784
|
-
const f = $(e, !0, r, e);
|
|
785
|
-
a.x = f.x + e.clientLeft, a.y = f.y + e.clientTop;
|
|
786
|
-
} else i && c();
|
|
787
|
-
r && !o && i && c();
|
|
788
|
-
const u = i && !o && !r ? Vt(i, s) : A(0), d = l.left + s.scrollLeft - a.x - u.x, h = l.top + s.scrollTop - a.y - u.y;
|
|
789
|
-
return {
|
|
790
|
-
x: d,
|
|
791
|
-
y: h,
|
|
792
|
-
width: l.width,
|
|
793
|
-
height: l.height
|
|
794
|
-
};
|
|
795
|
-
}
|
|
796
|
-
function ft(t) {
|
|
797
|
-
return E(t).position === "static";
|
|
798
|
-
}
|
|
799
|
-
function Dt(t, e) {
|
|
800
|
-
if (!D(t) || E(t).position === "fixed")
|
|
801
|
-
return null;
|
|
802
|
-
if (e)
|
|
803
|
-
return e(t);
|
|
804
|
-
let n = t.offsetParent;
|
|
805
|
-
return C(t) === n && (n = n.ownerDocument.body), n;
|
|
806
|
-
}
|
|
807
|
-
function zt(t, e) {
|
|
808
|
-
const n = L(t);
|
|
809
|
-
if (lt(t))
|
|
810
|
-
return n;
|
|
811
|
-
if (!D(t)) {
|
|
812
|
-
let i = H(t);
|
|
813
|
-
for (; i && !Y(i); ) {
|
|
814
|
-
if (S(i) && !ft(i))
|
|
815
|
-
return i;
|
|
816
|
-
i = H(i);
|
|
817
|
-
}
|
|
818
|
-
return n;
|
|
819
|
-
}
|
|
820
|
-
let o = Dt(t, e);
|
|
821
|
-
for (; o && he(o) && ft(o); )
|
|
822
|
-
o = Dt(o, e);
|
|
823
|
-
return o && Y(o) && ft(o) && !pt(o) ? n : o || we(t) || n;
|
|
824
|
-
}
|
|
825
|
-
const Fe = async function(t) {
|
|
826
|
-
const e = this.getOffsetParent || zt, n = this.getDimensions, o = await n(t.floating);
|
|
827
|
-
return {
|
|
828
|
-
reference: ke(t.reference, await e(t.floating), t.strategy),
|
|
829
|
-
floating: {
|
|
830
|
-
x: 0,
|
|
831
|
-
y: 0,
|
|
832
|
-
width: o.width,
|
|
833
|
-
height: o.height
|
|
834
|
-
}
|
|
835
|
-
};
|
|
836
|
-
};
|
|
837
|
-
function Oe(t) {
|
|
838
|
-
return E(t).direction === "rtl";
|
|
839
|
-
}
|
|
840
|
-
const Be = {
|
|
841
|
-
convertOffsetParentRelativeRectToViewportRelativeRect: Re,
|
|
842
|
-
getDocumentElement: C,
|
|
843
|
-
getClippingRect: Ce,
|
|
844
|
-
getOffsetParent: zt,
|
|
845
|
-
getElementRects: Fe,
|
|
846
|
-
getClientRects: Le,
|
|
847
|
-
getDimensions: Pe,
|
|
848
|
-
getScale: q,
|
|
849
|
-
isElement: S,
|
|
850
|
-
isRTL: Oe
|
|
851
|
-
};
|
|
852
|
-
function $t(t, e) {
|
|
853
|
-
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
854
|
-
}
|
|
855
|
-
function Me(t, e) {
|
|
856
|
-
let n = null, o;
|
|
857
|
-
const i = C(t);
|
|
858
|
-
function r() {
|
|
859
|
-
var s;
|
|
860
|
-
clearTimeout(o), (s = n) == null || s.disconnect(), n = null;
|
|
861
|
-
}
|
|
862
|
-
function l(s, a) {
|
|
863
|
-
s === void 0 && (s = !1), a === void 0 && (a = 1), r();
|
|
864
|
-
const c = t.getBoundingClientRect(), {
|
|
865
|
-
left: u,
|
|
866
|
-
top: d,
|
|
867
|
-
width: h,
|
|
868
|
-
height: f
|
|
869
|
-
} = c;
|
|
870
|
-
if (s || e(), !h || !f)
|
|
871
|
-
return;
|
|
872
|
-
const m = Z(d), p = Z(i.clientWidth - (u + h)), y = Z(i.clientHeight - (d + f)), w = Z(u), g = {
|
|
873
|
-
rootMargin: -m + "px " + -p + "px " + -y + "px " + -w + "px",
|
|
874
|
-
threshold: N(0, U(1, a)) || 1
|
|
875
|
-
};
|
|
876
|
-
let v = !0;
|
|
877
|
-
function b(R) {
|
|
878
|
-
const P = R[0].intersectionRatio;
|
|
879
|
-
if (P !== a) {
|
|
880
|
-
if (!v)
|
|
881
|
-
return l();
|
|
882
|
-
P ? l(!1, P) : o = setTimeout(() => {
|
|
883
|
-
l(!1, 1e-7);
|
|
884
|
-
}, 1e3);
|
|
885
|
-
}
|
|
886
|
-
P === 1 && !$t(c, t.getBoundingClientRect()) && l(), v = !1;
|
|
887
|
-
}
|
|
888
|
-
try {
|
|
889
|
-
n = new IntersectionObserver(b, {
|
|
890
|
-
...g,
|
|
891
|
-
// Handle <iframe>s
|
|
892
|
-
root: i.ownerDocument
|
|
893
|
-
});
|
|
894
|
-
} catch {
|
|
895
|
-
n = new IntersectionObserver(b, g);
|
|
896
|
-
}
|
|
897
|
-
n.observe(t);
|
|
898
|
-
}
|
|
899
|
-
return l(!0), r;
|
|
900
|
-
}
|
|
901
|
-
function Ne(t, e, n, o) {
|
|
902
|
-
o === void 0 && (o = {});
|
|
903
|
-
const {
|
|
904
|
-
ancestorScroll: i = !0,
|
|
905
|
-
ancestorResize: r = !0,
|
|
906
|
-
elementResize: l = typeof ResizeObserver == "function",
|
|
907
|
-
layoutShift: s = typeof IntersectionObserver == "function",
|
|
908
|
-
animationFrame: a = !1
|
|
909
|
-
} = o, c = yt(t), u = i || r ? [...c ? Q(c) : [], ...Q(e)] : [];
|
|
910
|
-
u.forEach((w) => {
|
|
911
|
-
i && w.addEventListener("scroll", n, {
|
|
912
|
-
passive: !0
|
|
913
|
-
}), r && w.addEventListener("resize", n);
|
|
914
|
-
});
|
|
915
|
-
const d = c && s ? Me(c, n) : null;
|
|
916
|
-
let h = -1, f = null;
|
|
917
|
-
l && (f = new ResizeObserver((w) => {
|
|
918
|
-
let [g] = w;
|
|
919
|
-
g && g.target === c && f && (f.unobserve(e), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
|
|
920
|
-
var v;
|
|
921
|
-
(v = f) == null || v.observe(e);
|
|
922
|
-
})), n();
|
|
923
|
-
}), c && !a && f.observe(c), f.observe(e));
|
|
924
|
-
let m, p = a ? $(t) : null;
|
|
925
|
-
a && y();
|
|
926
|
-
function y() {
|
|
927
|
-
const w = $(t);
|
|
928
|
-
p && !$t(p, w) && n(), p = w, m = requestAnimationFrame(y);
|
|
929
|
-
}
|
|
930
|
-
return n(), () => {
|
|
931
|
-
var w;
|
|
932
|
-
u.forEach((g) => {
|
|
933
|
-
i && g.removeEventListener("scroll", n), r && g.removeEventListener("resize", n);
|
|
934
|
-
}), d == null || d(), (w = f) == null || w.disconnect(), f = null, a && cancelAnimationFrame(m);
|
|
935
|
-
};
|
|
936
|
-
}
|
|
937
|
-
const ze = ce, $e = ue, Ie = le, He = (t, e, n) => {
|
|
938
|
-
const o = /* @__PURE__ */ new Map(), i = {
|
|
939
|
-
platform: Be,
|
|
940
|
-
...n
|
|
941
|
-
}, r = {
|
|
942
|
-
...i.platform,
|
|
943
|
-
_c: o
|
|
944
|
-
};
|
|
945
|
-
return re(t, e, {
|
|
946
|
-
...i,
|
|
947
|
-
platform: r
|
|
948
|
-
});
|
|
949
|
-
};
|
|
950
|
-
function We(t) {
|
|
951
|
-
return t != null && typeof t == "object" && "$el" in t;
|
|
952
|
-
}
|
|
953
|
-
function Ct(t) {
|
|
954
|
-
if (We(t)) {
|
|
955
|
-
const e = t.$el;
|
|
956
|
-
return mt(e) && I(e) === "#comment" ? null : e;
|
|
957
|
-
}
|
|
958
|
-
return t;
|
|
959
|
-
}
|
|
960
|
-
function K(t) {
|
|
961
|
-
return typeof t == "function" ? t() : Gt(t);
|
|
962
|
-
}
|
|
963
|
-
function It(t) {
|
|
964
|
-
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
965
|
-
}
|
|
966
|
-
function Pt(t, e) {
|
|
967
|
-
const n = It(t);
|
|
968
|
-
return Math.round(e * n) / n;
|
|
969
|
-
}
|
|
970
|
-
function _e(t, e, n) {
|
|
971
|
-
n === void 0 && (n = {});
|
|
972
|
-
const o = n.whileElementsMounted, i = B(() => {
|
|
973
|
-
var x;
|
|
974
|
-
return (x = K(n.open)) != null ? x : !0;
|
|
975
|
-
}), r = B(() => K(n.middleware)), l = B(() => {
|
|
976
|
-
var x;
|
|
977
|
-
return (x = K(n.placement)) != null ? x : "bottom";
|
|
978
|
-
}), s = B(() => {
|
|
979
|
-
var x;
|
|
980
|
-
return (x = K(n.strategy)) != null ? x : "absolute";
|
|
981
|
-
}), a = B(() => {
|
|
982
|
-
var x;
|
|
983
|
-
return (x = K(n.transform)) != null ? x : !0;
|
|
984
|
-
}), c = B(() => Ct(t.value)), u = B(() => Ct(e.value)), d = J(0), h = J(0), f = J(s.value), m = J(l.value), p = jt({}), y = J(!1), w = B(() => {
|
|
985
|
-
const x = {
|
|
986
|
-
position: f.value,
|
|
987
|
-
left: "0",
|
|
988
|
-
top: "0"
|
|
989
|
-
};
|
|
990
|
-
if (!u.value)
|
|
991
|
-
return x;
|
|
992
|
-
const T = Pt(u.value, d.value), W = Pt(u.value, h.value);
|
|
993
|
-
return a.value ? {
|
|
994
|
-
...x,
|
|
995
|
-
transform: "translate(" + T + "px, " + W + "px)",
|
|
996
|
-
...It(u.value) >= 1.5 && {
|
|
997
|
-
willChange: "transform"
|
|
998
|
-
}
|
|
999
|
-
} : {
|
|
1000
|
-
position: f.value,
|
|
1001
|
-
left: T + "px",
|
|
1002
|
-
top: W + "px"
|
|
1003
|
-
};
|
|
1004
|
-
});
|
|
1005
|
-
let g;
|
|
1006
|
-
function v() {
|
|
1007
|
-
if (c.value == null || u.value == null)
|
|
1008
|
-
return;
|
|
1009
|
-
const x = i.value;
|
|
1010
|
-
He(c.value, u.value, {
|
|
1011
|
-
middleware: r.value,
|
|
1012
|
-
placement: l.value,
|
|
1013
|
-
strategy: s.value
|
|
1014
|
-
}).then((T) => {
|
|
1015
|
-
d.value = T.x, h.value = T.y, f.value = T.strategy, m.value = T.placement, p.value = T.middlewareData, y.value = x !== !1;
|
|
1016
|
-
});
|
|
1017
|
-
}
|
|
1018
|
-
function b() {
|
|
1019
|
-
typeof g == "function" && (g(), g = void 0);
|
|
1020
|
-
}
|
|
1021
|
-
function R() {
|
|
1022
|
-
if (b(), o === void 0) {
|
|
1023
|
-
v();
|
|
1024
|
-
return;
|
|
1025
|
-
}
|
|
1026
|
-
if (c.value != null && u.value != null) {
|
|
1027
|
-
g = o(c.value, u.value, v);
|
|
1028
|
-
return;
|
|
1029
|
-
}
|
|
1030
|
-
}
|
|
1031
|
-
function P() {
|
|
1032
|
-
i.value || (y.value = !1);
|
|
1033
|
-
}
|
|
1034
|
-
return ut([r, l, s, i], v, {
|
|
1035
|
-
flush: "sync"
|
|
1036
|
-
}), ut([c, u], R, {
|
|
1037
|
-
flush: "sync"
|
|
1038
|
-
}), ut(i, P, {
|
|
1039
|
-
flush: "sync"
|
|
1040
|
-
}), qt() && Yt(b), {
|
|
1041
|
-
x: j(d),
|
|
1042
|
-
y: j(h),
|
|
1043
|
-
strategy: j(f),
|
|
1044
|
-
placement: j(m),
|
|
1045
|
-
middlewareData: j(p),
|
|
1046
|
-
isPositioned: j(y),
|
|
1047
|
-
floatingStyles: w,
|
|
1048
|
-
update: v
|
|
1049
|
-
};
|
|
1050
|
-
}
|
|
1051
|
-
export {
|
|
1052
|
-
ze as $,
|
|
1053
|
-
$e as H,
|
|
1054
|
-
Ie as I,
|
|
1055
|
-
Ne as _,
|
|
1056
|
-
_e as z
|
|
1057
|
-
};
|