@blofin/blofin-ui 0.7.57 → 0.7.58
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/Badge.es.js +23 -20
- package/dist/Button.es.js +126 -123
- package/dist/Calendar.d.ts +1 -0
- package/dist/Calendar.es.js +210 -0
- package/dist/Checkbox.d.ts +1 -0
- package/dist/Checkbox.es.js +138 -0
- package/dist/CssDropdown.d.ts +1 -0
- package/dist/CssDropdown.es.js +38 -0
- package/dist/DatePickerRange.d.ts +1 -0
- package/dist/DatePickerRange.es.js +410 -0
- package/dist/DateTimePicker.d.ts +1 -0
- package/dist/DateTimePicker.es.js +519 -0
- package/dist/Dialog.es.js +180 -9
- package/dist/Divider.es.js +11 -8
- package/dist/Drawer.es.js +43 -49
- package/dist/Dropdown.d.ts +1 -0
- package/dist/Dropdown.es.js +134 -0
- package/dist/Empty.d.ts +1 -0
- package/dist/Empty.es.js +11 -0
- package/dist/LabelTextField.d.ts +1 -0
- package/dist/LabelTextField.es.js +100 -0
- package/dist/MonthPicker.d.ts +1 -0
- package/dist/MonthPicker.es.js +16 -0
- package/dist/MultiSelect.d.ts +1 -0
- package/dist/MultiSelect.es.js +425 -0
- package/dist/Notification.d.ts +1 -0
- package/dist/Notification.es.js +12 -0
- package/dist/Pagination.d.ts +1 -0
- package/dist/Pagination.es.js +219 -0
- package/dist/Picker.d.ts +1 -0
- package/dist/Picker.es.js +224 -0
- package/dist/Popover.d.ts +1 -0
- package/dist/Popover.es.js +107 -0
- package/dist/Popup.d.ts +1 -0
- package/dist/Popup.es.js +62 -0
- package/dist/ProTable-7a07d8b6.js +565 -0
- package/dist/ProTable.es.js +9 -5
- package/dist/RadioButton.d.ts +1 -0
- package/dist/RadioButton.es.js +152 -0
- package/dist/Select.d.ts +1 -0
- package/dist/Select.es.js +316 -0
- package/dist/Slider.es.js +141 -139
- package/dist/Sort.d.ts +1 -0
- package/dist/Sort.es.js +146 -0
- package/dist/Sortable.d.ts +1 -0
- package/dist/Sortable.es.js +39 -0
- package/dist/Switch.d.ts +1 -0
- package/dist/Switch.es.js +64 -0
- package/dist/Tab.d.ts +1 -0
- package/dist/Tab.es.js +101 -0
- package/dist/Table.d.ts +1 -0
- package/dist/Table.es.js +359 -0
- package/dist/TextField.d.ts +1 -0
- package/dist/TextField.es.js +64 -0
- package/dist/TextSelect.d.ts +1 -0
- package/dist/TextSelect.es.js +17 -0
- package/dist/Textarea.d.ts +1 -0
- package/dist/Textarea.es.js +106 -0
- package/dist/Toast.d.ts +1 -0
- package/dist/Toast.es.js +12 -0
- package/dist/Tooltip.d.ts +1 -0
- package/dist/Tooltip.es.js +144 -0
- package/dist/Typography.d.ts +1 -0
- package/dist/Typography.es.js +74 -0
- package/dist/_commonjsHelpers-1d52fb73.js +9 -0
- package/dist/arrow-down-011b02c7.js +6 -0
- package/dist/arrow-down-l-line-97e4fe24.js +6 -0
- package/dist/arrow-fill-70becd96.js +6 -0
- package/dist/arrow-right-l-line-87881b4d.js +7 -0
- package/dist/blofin.css +1 -1
- package/dist/{close-c67ec245.js → close-0df24351.js} +1 -0
- package/dist/close-bg-6d2211ef.js +6 -0
- package/dist/clsx.m-e965ef18.js +22 -0
- package/dist/components/Alert/Alert.d.ts +3 -3
- package/dist/components/Alert/styles.d.ts +2 -2
- package/dist/components/Badge/Badge.d.ts +2 -2
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Button/Loading/index.d.ts +2 -2
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/styles.d.ts +1 -1
- package/dist/components/Checkbox/styles.d.ts +1 -1
- package/dist/components/CssDropdown/CssDropdown.d.ts +3 -3
- package/dist/components/CssDropdown/index.d.ts +2 -0
- package/dist/components/DatePickerRange/index.d.ts +4 -0
- package/dist/components/DatePickerRange/styles.d.ts +0 -1
- package/dist/components/DateTimePicker/ScrollableList.d.ts +1 -1
- package/dist/components/DateTimePicker/index.d.ts +4 -0
- package/dist/components/Dialog/Dialog.d.ts +5 -2
- package/dist/components/Dialog/index.d.ts +4 -2
- package/dist/components/Dialog/styles.d.ts +2 -2
- package/dist/components/Drawer/Drawer.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +2 -2
- package/dist/components/Dropdown/index.d.ts +2 -0
- package/dist/components/Empty/Empty.d.ts +5 -0
- package/dist/components/Empty/index.d.ts +2 -5
- package/dist/components/LabelTextField/LabelTextField.d.ts +6 -6
- package/dist/components/MonthPicker/MonthPicker.d.ts +17 -0
- package/dist/components/MonthPicker/index.d.ts +2 -17
- package/dist/components/MultiSelect/MultiSelect.d.ts +4 -4
- package/dist/components/MultiSelect/index.d.ts +2 -0
- package/dist/components/Notification/Notification.d.ts +1 -1
- package/dist/components/Notification/index.d.ts +2 -0
- package/dist/components/Pagination/PageOptions.d.ts +1 -1
- package/dist/components/Pagination/Pagination.d.ts +2 -2
- package/dist/components/Pagination/index.d.ts +3 -0
- package/dist/components/Picker/Picker.d.ts +10 -0
- package/dist/components/Picker/hooks/usePickerMethod.d.ts +1 -1
- package/dist/components/Picker/index.d.ts +2 -10
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/Popover/index.d.ts +5 -0
- package/dist/components/Popup/Popup.d.ts +15 -0
- package/dist/components/Popup/index.d.ts +4 -15
- package/dist/components/RadioButton/RadioButton.d.ts +4 -4
- package/dist/components/RadioButton/styles.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +6 -9
- package/dist/components/Slider/Slider.d.ts +2 -2
- package/dist/components/Sort/SortButton.d.ts +5 -5
- package/dist/components/Sort/SortGroup.d.ts +4 -4
- package/dist/components/Sort/index.d.ts +5 -0
- package/dist/components/Sortable/SortItem.d.ts +4 -4
- package/dist/components/Sortable/Sortable.d.ts +11 -0
- package/dist/components/Sortable/index.d.ts +3 -11
- package/dist/components/Switch/Switch.d.ts +2 -2
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch/styles.d.ts +3 -3
- package/dist/components/Tab/Tab.d.ts +2 -2
- package/dist/components/Tab/index.d.ts +4 -0
- package/dist/components/Tab/styles.d.ts +1 -1
- package/dist/components/Table/Pagination/index.d.ts +2 -2
- package/dist/components/Table/Table.d.ts +2 -2
- package/dist/components/Table/Tbody/index.d.ts +3 -3
- package/dist/components/Table/Thead/index.d.ts +3 -3
- package/dist/components/Table/context.d.ts +3 -3
- package/dist/components/Table/hooks/useStickyOffset.d.ts +2 -2
- package/dist/components/Table/index.d.ts +3 -3
- package/dist/components/Table/interface.d.ts +4 -4
- package/dist/components/TextField/TextField.d.ts +4 -4
- package/dist/components/TextField/index.d.ts +2 -0
- package/dist/components/TextSelect/TextSelect.d.ts +8 -8
- package/dist/components/TextSelect/index.d.ts +2 -0
- package/dist/components/Textarea/Textarea.d.ts +15 -0
- package/dist/components/Textarea/index.d.ts +2 -15
- package/dist/components/Toast/Toast.d.ts +2 -13
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/Toast/styles.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +4 -5
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/Typography/Typography.d.ts +2 -2
- package/dist/components/Typography/index.d.ts +4 -0
- package/dist/components/Typography/styles.d.ts +1 -1
- package/dist/enum-0398044b.js +17 -0
- package/dist/helper-221987f8.js +7 -0
- package/dist/hooks/useLatest.d.ts +1 -1
- package/dist/hooks/useNotification.d.ts +5 -7
- package/dist/hooks/useToast.d.ts +1 -1
- package/dist/{index-0f855a91.js → index-0230b5a9.js} +5 -4
- package/dist/{index-c17e103a.js → index-02f669c4.js} +2 -1
- package/dist/{index-6fc4d1f4.js → index-03169373.js} +12 -25
- package/dist/{index-4ccb3e9c.js → index-03513979.js} +11 -24
- package/dist/{index-d5de8c20.js → index-03d6aef0.js} +13 -26
- package/dist/{index-a132ac63.js → index-06d0f2f7.js} +13 -26
- package/dist/{index-64f4d194.js → index-06ef2e10.js} +11 -24
- package/dist/{index-55a7fad3.js → index-08a64465.js} +11 -24
- package/dist/{index-659243c0.js → index-094d2a65.js} +19 -32
- package/dist/{index-e3570fb6.js → index-11268759.js} +18 -31
- package/dist/{index-0ab7162c.js → index-117d018c.js} +22 -35
- package/dist/{index-2e69928d.js → index-12d32536.js} +13 -26
- package/dist/{index-3c7614e3.js → index-141cec17.js} +14 -27
- package/dist/{index-207ff1e4.js → index-19d177fe.js} +16 -29
- package/dist/{index-cd93af19.js → index-1b2a64df.js} +26 -39
- package/dist/{index-b42b7f2a.js → index-2334248a.js} +9 -22
- package/dist/index-293f8244.js +49 -0
- package/dist/{index-d907bed0.js → index-29d37c73.js} +52 -65
- package/dist/{index-0228f85e.js → index-2ae0474b.js} +24 -37
- package/dist/{index-7f2a6d68.js → index-360aaaac.js} +28 -41
- package/dist/{index-789ea179.js → index-3ee2bafa.js} +15 -28
- package/dist/index-40023d52.js +5322 -0
- package/dist/{index-15cca5fd.js → index-40710f09.js} +17 -30
- package/dist/index-4528ba11.js +49 -0
- package/dist/{index-2ee3d9fd.js → index-4bc493f0.js} +4 -17
- package/dist/{index-2acdfe81.js → index-4c6ad36c.js} +32 -45
- package/dist/{index-f27785e7.js → index-4d780cf4.js} +22 -35
- package/dist/{index-87b93a08.js → index-4df0c3e4.js} +16 -29
- package/dist/{index-122d1ca2.js → index-4f94900a.js} +19 -32
- package/dist/{index-693a21bb.js → index-4f94d7fa.js} +22 -35
- package/dist/{index-1810cc68.js → index-57a163fd.js} +11 -24
- package/dist/index-596c785d.js +50 -0
- package/dist/{index-94ca2048.js → index-5beeed26.js} +23 -36
- package/dist/{index-54cbdaa4.js → index-5e6ffc2f.js} +2 -1
- package/dist/{index-9c669079.js → index-5fb7b3bc.js} +12 -25
- package/dist/{index-d914889d.js → index-60fe7f16.js} +13 -26
- package/dist/{index-7dfec241.js → index-63a66f13.js} +30 -43
- package/dist/index-67554651.js +49 -0
- package/dist/{index-b69e64e6.js → index-67678963.js} +22 -35
- package/dist/{index-523acf7a.js → index-6856be22.js} +21 -34
- package/dist/{index-0be486a6.js → index-6e969585.js} +27 -40
- package/dist/{index-cb3b96c6.js → index-6f728206.js} +9 -22
- package/dist/{index-2add17c1.js → index-6f963c6a.js} +20 -33
- package/dist/{index-a5251ade.js → index-73bfc020.js} +31 -44
- package/dist/{index-721120f3.js → index-75190b99.js} +7 -20
- package/dist/{index-70099dad.js → index-770e5f53.js} +12 -25
- package/dist/{index-f0b0c5fc.js → index-79e7317f.js} +12 -25
- package/dist/{index-312ee80f.js → index-7bb9ffdf.js} +3 -2
- package/dist/{index-013c5769.js → index-7cf9b111.js} +18 -31
- package/dist/{index-8d34dc76.js → index-7edb6aec.js} +19 -32
- package/dist/{index-0fa20e69.js → index-80cc70e4.js} +26 -39
- package/dist/{index-24112094.js → index-8585c2f3.js} +23 -36
- package/dist/{index-c1206eaf.js → index-898678dc.js} +21 -34
- package/dist/{index-fd4e070b.js → index-8aa9b1be.js} +24 -37
- package/dist/index-9349bf2d.js +345 -0
- package/dist/{index-dc3cd1ef.js → index-954d3973.js} +13 -26
- package/dist/{index-f5df4eec.js → index-956b36a6.js} +37 -50
- package/dist/{index-31004470.js → index-9c73c442.js} +45 -58
- package/dist/{index-887b08f6.js → index-9e5efc0a.js} +29 -42
- package/dist/{index-584c1de8.js → index-a6fa33ce.js} +13 -26
- package/dist/{index-2c3346b8.js → index-a89abb42.js} +4 -17
- package/dist/{index-0333ccf9.js → index-b0da3dfd.js} +14 -27
- package/dist/{index-fcb10f63.js → index-b103ed31.js} +12 -25
- package/dist/{index-9c3f8d80.js → index-b54ef52a.js} +16 -29
- package/dist/index-b7027a1d.js +1295 -0
- package/dist/{index-81a64a31.js → index-b7941b97.js} +8 -21
- package/dist/{index-b8e94395.js → index-c1381bca.js} +20 -33
- package/dist/index-c57db938.js +37 -0
- package/dist/{index-051b64c8.js → index-c6371af1.js} +10 -23
- package/dist/{index-a9c0f025.js → index-c69f6dfc.js} +19 -32
- package/dist/{index-e1f19bc5.js → index-cb1218d8.js} +10 -23
- package/dist/{index-c1b82aa9.js → index-cbc0d36b.js} +13 -26
- package/dist/{index-3b42042f.js → index-cc1cd309.js} +13 -26
- package/dist/{index-abb9f006.js → index-ceae4147.js} +12 -25
- package/dist/{index-b4116538.js → index-cfee583b.js} +21 -34
- package/dist/{index-7b28ddea.js → index-d2f2742e.js} +10 -23
- package/dist/{index-00d6276c.js → index-d3419554.js} +15 -28
- package/dist/{index-30f61bdc.js → index-d81e15f3.js} +19 -32
- package/dist/{index-40958da3.js → index-d86842c8.js} +17 -30
- package/dist/{index-46e4bfa3.js → index-e169373b.js} +10 -23
- package/dist/{index-aa5e48ef.js → index-e1a6a03d.js} +9 -22
- package/dist/{index-a45e1710.js → index-e2b960e4.js} +23 -36
- package/dist/{index-5648e9fa.js → index-e8fb69e0.js} +21 -34
- package/dist/{index-3b632a87.js → index-e98ef24f.js} +14 -27
- package/dist/{index-c6a5236d.js → index-e9a1ff7f.js} +4 -17
- package/dist/index-eea69add.js +71 -0
- package/dist/{index-9864c94e.js → index-ef31f5f8.js} +2 -1
- package/dist/{index-2e09190f.js → index-f1726c63.js} +11 -24
- package/dist/{index-d15a69b6.js → index-f40f45fb.js} +13 -26
- package/dist/{index-88d32101.js → index-f64eddcc.js} +16 -29
- package/dist/{index-44ed585d.js → index-f7c4ae83.js} +22 -35
- package/dist/{index-44b988bb.js → index-fda88eb4.js} +23 -36
- package/dist/{index-c58b598e.js → index-fdffd6e6.js} +14 -27
- package/dist/index.d.ts +36 -48
- package/dist/index.es.js +223 -53
- package/dist/index.esm-71578db5.js +1198 -0
- package/dist/index.module-1d7bbdf8.js +7 -0
- package/dist/index.module-86edc823.js +15 -0
- package/dist/index.module-b4239ff5.js +9 -0
- package/dist/index.module-fb41ba3b.js +39 -0
- package/dist/locales-776f0072.js +440 -0
- package/dist/provider/NoticeProvider.d.ts +1 -1
- package/dist/provider/ThemeProvider.d.ts +7 -3
- package/dist/provider/useTheme.d.ts +1 -1
- package/dist/search-b79a3be5.js +6 -0
- package/dist/sortable.esm-1c13d908.js +2896 -0
- package/dist/sortable.esm-8d31c120.js +1275 -0
- package/dist/styles-85a9fe64.js +136 -0
- package/dist/types/component.d.ts +1 -1
- package/dist/useAlign-916ed3be.js +44 -0
- package/dist/useDelayEvent-f577f6a3.js +1082 -0
- package/dist/useTheme-0688f238.js +16 -0
- package/dist/utils/helper.d.ts +1 -1
- package/dist/{utils-19b44377.js → utils-071abd68.js} +2 -1
- package/package.json +1 -1
- package/dist/Form.d.ts +0 -1
- package/dist/Form.es.js +0 -752
- package/dist/ProTable-079d6c86.js +0 -3443
- package/dist/components/Form/Control.d.ts +0 -13
- package/dist/components/Form/Form.d.ts +0 -4
- package/dist/components/Form/FormItem.d.ts +0 -4
- package/dist/components/Form/FormLabel.d.ts +0 -4
- package/dist/components/Form/context.d.ts +0 -6
- package/dist/components/Form/index.d.ts +0 -8
- package/dist/components/Form/interface.d.ts +0 -48
- package/dist/components/Form/store.d.ts +0 -16
- package/dist/components/Form/styles/item.d.ts +0 -5
- package/dist/components/Form/useForm.d.ts +0 -3
- package/dist/index-0b47cbae.js +0 -173
- package/dist/index-14c3a4d7.js +0 -62
- package/dist/index-6ffbeca8.js +0 -65
- package/dist/index-7be8731d.js +0 -62
- package/dist/index-b5974e22.js +0 -62
- package/dist/index-e102400f.js +0 -11706
- package/dist/index-fb1f3ef1.js +0 -63
- package/dist/isObjectLike-1b8bbac2.js +0 -44
- package/dist/jsx-runtime-82a9ddf6.js +0 -646
|
@@ -0,0 +1,1082 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as G from "react";
|
|
3
|
+
import { useState as et, useEffect as tt, useRef as yt } from "react";
|
|
4
|
+
import * as gt from "react-dom";
|
|
5
|
+
import { g as wt } from "./_commonjsHelpers-1d52fb73.js";
|
|
6
|
+
const Lr = () => {
|
|
7
|
+
const [e, t] = et(!1);
|
|
8
|
+
return tt(() => {
|
|
9
|
+
t(!0);
|
|
10
|
+
}, []), {
|
|
11
|
+
isClient: e
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
var Ne = function(t) {
|
|
15
|
+
return t.reduce(function(r, n) {
|
|
16
|
+
var a = n[0], o = n[1];
|
|
17
|
+
return r[a] = o, r;
|
|
18
|
+
}, {});
|
|
19
|
+
}, Ue = typeof window < "u" && window.document && window.document.createElement ? G.useLayoutEffect : G.useEffect, j = "top", T = "bottom", L = "right", B = "left", De = "auto", ue = [j, T, L, B], Z = "start", se = "end", bt = "clippingParents", rt = "viewport", ae = "popper", xt = "reference", ze = /* @__PURE__ */ ue.reduce(function(e, t) {
|
|
20
|
+
return e.concat([t + "-" + Z, t + "-" + se]);
|
|
21
|
+
}, []), nt = /* @__PURE__ */ [].concat(ue, [De]).reduce(function(e, t) {
|
|
22
|
+
return e.concat([t, t + "-" + Z, t + "-" + se]);
|
|
23
|
+
}, []), Ot = "beforeRead", Et = "read", At = "afterRead", Pt = "beforeMain", St = "main", Dt = "afterMain", Rt = "beforeWrite", jt = "write", Bt = "afterWrite", Ct = [Ot, Et, At, Pt, St, Dt, Rt, jt, Bt];
|
|
24
|
+
function F(e) {
|
|
25
|
+
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
26
|
+
}
|
|
27
|
+
function $(e) {
|
|
28
|
+
if (e == null)
|
|
29
|
+
return window;
|
|
30
|
+
if (e.toString() !== "[object Window]") {
|
|
31
|
+
var t = e.ownerDocument;
|
|
32
|
+
return t && t.defaultView || window;
|
|
33
|
+
}
|
|
34
|
+
return e;
|
|
35
|
+
}
|
|
36
|
+
function K(e) {
|
|
37
|
+
var t = $(e).Element;
|
|
38
|
+
return e instanceof t || e instanceof Element;
|
|
39
|
+
}
|
|
40
|
+
function M(e) {
|
|
41
|
+
var t = $(e).HTMLElement;
|
|
42
|
+
return e instanceof t || e instanceof HTMLElement;
|
|
43
|
+
}
|
|
44
|
+
function Re(e) {
|
|
45
|
+
if (typeof ShadowRoot > "u")
|
|
46
|
+
return !1;
|
|
47
|
+
var t = $(e).ShadowRoot;
|
|
48
|
+
return e instanceof t || e instanceof ShadowRoot;
|
|
49
|
+
}
|
|
50
|
+
function $t(e) {
|
|
51
|
+
var t = e.state;
|
|
52
|
+
Object.keys(t.elements).forEach(function(r) {
|
|
53
|
+
var n = t.styles[r] || {}, a = t.attributes[r] || {}, o = t.elements[r];
|
|
54
|
+
!M(o) || !F(o) || (Object.assign(o.style, n), Object.keys(a).forEach(function(u) {
|
|
55
|
+
var s = a[u];
|
|
56
|
+
s === !1 ? o.removeAttribute(u) : o.setAttribute(u, s === !0 ? "" : s);
|
|
57
|
+
}));
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function Mt(e) {
|
|
61
|
+
var t = e.state, r = {
|
|
62
|
+
popper: {
|
|
63
|
+
position: t.options.strategy,
|
|
64
|
+
left: "0",
|
|
65
|
+
top: "0",
|
|
66
|
+
margin: "0"
|
|
67
|
+
},
|
|
68
|
+
arrow: {
|
|
69
|
+
position: "absolute"
|
|
70
|
+
},
|
|
71
|
+
reference: {}
|
|
72
|
+
};
|
|
73
|
+
return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() {
|
|
74
|
+
Object.keys(t.elements).forEach(function(n) {
|
|
75
|
+
var a = t.elements[n], o = t.attributes[n] || {}, u = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), s = u.reduce(function(i, c) {
|
|
76
|
+
return i[c] = "", i;
|
|
77
|
+
}, {});
|
|
78
|
+
!M(a) || !F(a) || (Object.assign(a.style, s), Object.keys(o).forEach(function(i) {
|
|
79
|
+
a.removeAttribute(i);
|
|
80
|
+
}));
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
const Tt = {
|
|
85
|
+
name: "applyStyles",
|
|
86
|
+
enabled: !0,
|
|
87
|
+
phase: "write",
|
|
88
|
+
fn: $t,
|
|
89
|
+
effect: Mt,
|
|
90
|
+
requires: ["computeStyles"]
|
|
91
|
+
};
|
|
92
|
+
function H(e) {
|
|
93
|
+
return e.split("-")[0];
|
|
94
|
+
}
|
|
95
|
+
var J = Math.max, we = Math.min, _ = Math.round;
|
|
96
|
+
function Pe() {
|
|
97
|
+
var e = navigator.userAgentData;
|
|
98
|
+
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
|
|
99
|
+
return t.brand + "/" + t.version;
|
|
100
|
+
}).join(" ") : navigator.userAgent;
|
|
101
|
+
}
|
|
102
|
+
function at() {
|
|
103
|
+
return !/^((?!chrome|android).)*safari/i.test(Pe());
|
|
104
|
+
}
|
|
105
|
+
function ee(e, t, r) {
|
|
106
|
+
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
107
|
+
var n = e.getBoundingClientRect(), a = 1, o = 1;
|
|
108
|
+
t && M(e) && (a = e.offsetWidth > 0 && _(n.width) / e.offsetWidth || 1, o = e.offsetHeight > 0 && _(n.height) / e.offsetHeight || 1);
|
|
109
|
+
var u = K(e) ? $(e) : window, s = u.visualViewport, i = !at() && r, c = (n.left + (i && s ? s.offsetLeft : 0)) / a, f = (n.top + (i && s ? s.offsetTop : 0)) / o, l = n.width / a, m = n.height / o;
|
|
110
|
+
return {
|
|
111
|
+
width: l,
|
|
112
|
+
height: m,
|
|
113
|
+
top: f,
|
|
114
|
+
right: c + l,
|
|
115
|
+
bottom: f + m,
|
|
116
|
+
left: c,
|
|
117
|
+
x: c,
|
|
118
|
+
y: f
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
function je(e) {
|
|
122
|
+
var t = ee(e), r = e.offsetWidth, n = e.offsetHeight;
|
|
123
|
+
return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
|
|
124
|
+
x: e.offsetLeft,
|
|
125
|
+
y: e.offsetTop,
|
|
126
|
+
width: r,
|
|
127
|
+
height: n
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
function ot(e, t) {
|
|
131
|
+
var r = t.getRootNode && t.getRootNode();
|
|
132
|
+
if (e.contains(t))
|
|
133
|
+
return !0;
|
|
134
|
+
if (r && Re(r)) {
|
|
135
|
+
var n = t;
|
|
136
|
+
do {
|
|
137
|
+
if (n && e.isSameNode(n))
|
|
138
|
+
return !0;
|
|
139
|
+
n = n.parentNode || n.host;
|
|
140
|
+
} while (n);
|
|
141
|
+
}
|
|
142
|
+
return !1;
|
|
143
|
+
}
|
|
144
|
+
function V(e) {
|
|
145
|
+
return $(e).getComputedStyle(e);
|
|
146
|
+
}
|
|
147
|
+
function Lt(e) {
|
|
148
|
+
return ["table", "td", "th"].indexOf(F(e)) >= 0;
|
|
149
|
+
}
|
|
150
|
+
function I(e) {
|
|
151
|
+
return ((K(e) ? e.ownerDocument : (
|
|
152
|
+
// $FlowFixMe[prop-missing]
|
|
153
|
+
e.document
|
|
154
|
+
)) || window.document).documentElement;
|
|
155
|
+
}
|
|
156
|
+
function be(e) {
|
|
157
|
+
return F(e) === "html" ? e : (
|
|
158
|
+
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
159
|
+
// $FlowFixMe[incompatible-return]
|
|
160
|
+
// $FlowFixMe[prop-missing]
|
|
161
|
+
e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
162
|
+
e.parentNode || // DOM Element detected
|
|
163
|
+
(Re(e) ? e.host : null) || // ShadowRoot detected
|
|
164
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
165
|
+
I(e)
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
function Xe(e) {
|
|
169
|
+
return !M(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
170
|
+
V(e).position === "fixed" ? null : e.offsetParent;
|
|
171
|
+
}
|
|
172
|
+
function kt(e) {
|
|
173
|
+
var t = /firefox/i.test(Pe()), r = /Trident/i.test(Pe());
|
|
174
|
+
if (r && M(e)) {
|
|
175
|
+
var n = V(e);
|
|
176
|
+
if (n.position === "fixed")
|
|
177
|
+
return null;
|
|
178
|
+
}
|
|
179
|
+
var a = be(e);
|
|
180
|
+
for (Re(a) && (a = a.host); M(a) && ["html", "body"].indexOf(F(a)) < 0; ) {
|
|
181
|
+
var o = V(a);
|
|
182
|
+
if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || t && o.willChange === "filter" || t && o.filter && o.filter !== "none")
|
|
183
|
+
return a;
|
|
184
|
+
a = a.parentNode;
|
|
185
|
+
}
|
|
186
|
+
return null;
|
|
187
|
+
}
|
|
188
|
+
function ce(e) {
|
|
189
|
+
for (var t = $(e), r = Xe(e); r && Lt(r) && V(r).position === "static"; )
|
|
190
|
+
r = Xe(r);
|
|
191
|
+
return r && (F(r) === "html" || F(r) === "body" && V(r).position === "static") ? t : r || kt(e) || t;
|
|
192
|
+
}
|
|
193
|
+
function Be(e) {
|
|
194
|
+
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
195
|
+
}
|
|
196
|
+
function oe(e, t, r) {
|
|
197
|
+
return J(e, we(t, r));
|
|
198
|
+
}
|
|
199
|
+
function Wt(e, t, r) {
|
|
200
|
+
var n = oe(e, t, r);
|
|
201
|
+
return n > r ? r : n;
|
|
202
|
+
}
|
|
203
|
+
function it() {
|
|
204
|
+
return {
|
|
205
|
+
top: 0,
|
|
206
|
+
right: 0,
|
|
207
|
+
bottom: 0,
|
|
208
|
+
left: 0
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
function st(e) {
|
|
212
|
+
return Object.assign({}, it(), e);
|
|
213
|
+
}
|
|
214
|
+
function ft(e, t) {
|
|
215
|
+
return t.reduce(function(r, n) {
|
|
216
|
+
return r[n] = e, r;
|
|
217
|
+
}, {});
|
|
218
|
+
}
|
|
219
|
+
var Ht = function(t, r) {
|
|
220
|
+
return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
|
|
221
|
+
placement: r.placement
|
|
222
|
+
})) : t, st(typeof t != "number" ? t : ft(t, ue));
|
|
223
|
+
};
|
|
224
|
+
function Ft(e) {
|
|
225
|
+
var t, r = e.state, n = e.name, a = e.options, o = r.elements.arrow, u = r.modifiersData.popperOffsets, s = H(r.placement), i = Be(s), c = [B, L].indexOf(s) >= 0, f = c ? "height" : "width";
|
|
226
|
+
if (!(!o || !u)) {
|
|
227
|
+
var l = Ht(a.padding, r), m = je(o), p = i === "y" ? j : B, y = i === "y" ? T : L, h = r.rects.reference[f] + r.rects.reference[i] - u[i] - r.rects.popper[f], v = u[i] - r.rects.reference[i], b = ce(o), O = b ? i === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, E = h / 2 - v / 2, d = l[p], g = O - m[f] - l[y], w = O / 2 - m[f] / 2 + E, x = oe(d, w, g), S = i;
|
|
228
|
+
r.modifiersData[n] = (t = {}, t[S] = x, t.centerOffset = x - w, t);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
function Vt(e) {
|
|
232
|
+
var t = e.state, r = e.options, n = r.element, a = n === void 0 ? "[data-popper-arrow]" : n;
|
|
233
|
+
a != null && (typeof a == "string" && (a = t.elements.popper.querySelector(a), !a) || ot(t.elements.popper, a) && (t.elements.arrow = a));
|
|
234
|
+
}
|
|
235
|
+
const qt = {
|
|
236
|
+
name: "arrow",
|
|
237
|
+
enabled: !0,
|
|
238
|
+
phase: "main",
|
|
239
|
+
fn: Ft,
|
|
240
|
+
effect: Vt,
|
|
241
|
+
requires: ["popperOffsets"],
|
|
242
|
+
requiresIfExists: ["preventOverflow"]
|
|
243
|
+
};
|
|
244
|
+
function te(e) {
|
|
245
|
+
return e.split("-")[1];
|
|
246
|
+
}
|
|
247
|
+
var It = {
|
|
248
|
+
top: "auto",
|
|
249
|
+
right: "auto",
|
|
250
|
+
bottom: "auto",
|
|
251
|
+
left: "auto"
|
|
252
|
+
};
|
|
253
|
+
function Nt(e, t) {
|
|
254
|
+
var r = e.x, n = e.y, a = t.devicePixelRatio || 1;
|
|
255
|
+
return {
|
|
256
|
+
x: _(r * a) / a || 0,
|
|
257
|
+
y: _(n * a) / a || 0
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
function Ye(e) {
|
|
261
|
+
var t, r = e.popper, n = e.popperRect, a = e.placement, o = e.variation, u = e.offsets, s = e.position, i = e.gpuAcceleration, c = e.adaptive, f = e.roundOffsets, l = e.isFixed, m = u.x, p = m === void 0 ? 0 : m, y = u.y, h = y === void 0 ? 0 : y, v = typeof f == "function" ? f({
|
|
262
|
+
x: p,
|
|
263
|
+
y: h
|
|
264
|
+
}) : {
|
|
265
|
+
x: p,
|
|
266
|
+
y: h
|
|
267
|
+
};
|
|
268
|
+
p = v.x, h = v.y;
|
|
269
|
+
var b = u.hasOwnProperty("x"), O = u.hasOwnProperty("y"), E = B, d = j, g = window;
|
|
270
|
+
if (c) {
|
|
271
|
+
var w = ce(r), x = "clientHeight", S = "clientWidth";
|
|
272
|
+
if (w === $(r) && (w = I(r), V(w).position !== "static" && s === "absolute" && (x = "scrollHeight", S = "scrollWidth")), w = w, a === j || (a === B || a === L) && o === se) {
|
|
273
|
+
d = T;
|
|
274
|
+
var P = l && w === g && g.visualViewport ? g.visualViewport.height : (
|
|
275
|
+
// $FlowFixMe[prop-missing]
|
|
276
|
+
w[x]
|
|
277
|
+
);
|
|
278
|
+
h -= P - n.height, h *= i ? 1 : -1;
|
|
279
|
+
}
|
|
280
|
+
if (a === B || (a === j || a === T) && o === se) {
|
|
281
|
+
E = L;
|
|
282
|
+
var A = l && w === g && g.visualViewport ? g.visualViewport.width : (
|
|
283
|
+
// $FlowFixMe[prop-missing]
|
|
284
|
+
w[S]
|
|
285
|
+
);
|
|
286
|
+
p -= A - n.width, p *= i ? 1 : -1;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
var D = Object.assign({
|
|
290
|
+
position: s
|
|
291
|
+
}, c && It), k = f === !0 ? Nt({
|
|
292
|
+
x: p,
|
|
293
|
+
y: h
|
|
294
|
+
}, $(r)) : {
|
|
295
|
+
x: p,
|
|
296
|
+
y: h
|
|
297
|
+
};
|
|
298
|
+
if (p = k.x, h = k.y, i) {
|
|
299
|
+
var R;
|
|
300
|
+
return Object.assign({}, D, (R = {}, R[d] = O ? "0" : "", R[E] = b ? "0" : "", R.transform = (g.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + h + "px)" : "translate3d(" + p + "px, " + h + "px, 0)", R));
|
|
301
|
+
}
|
|
302
|
+
return Object.assign({}, D, (t = {}, t[d] = O ? h + "px" : "", t[E] = b ? p + "px" : "", t.transform = "", t));
|
|
303
|
+
}
|
|
304
|
+
function Ut(e) {
|
|
305
|
+
var t = e.state, r = e.options, n = r.gpuAcceleration, a = n === void 0 ? !0 : n, o = r.adaptive, u = o === void 0 ? !0 : o, s = r.roundOffsets, i = s === void 0 ? !0 : s, c = {
|
|
306
|
+
placement: H(t.placement),
|
|
307
|
+
variation: te(t.placement),
|
|
308
|
+
popper: t.elements.popper,
|
|
309
|
+
popperRect: t.rects.popper,
|
|
310
|
+
gpuAcceleration: a,
|
|
311
|
+
isFixed: t.options.strategy === "fixed"
|
|
312
|
+
};
|
|
313
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Ye(Object.assign({}, c, {
|
|
314
|
+
offsets: t.modifiersData.popperOffsets,
|
|
315
|
+
position: t.options.strategy,
|
|
316
|
+
adaptive: u,
|
|
317
|
+
roundOffsets: i
|
|
318
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Ye(Object.assign({}, c, {
|
|
319
|
+
offsets: t.modifiersData.arrow,
|
|
320
|
+
position: "absolute",
|
|
321
|
+
adaptive: !1,
|
|
322
|
+
roundOffsets: i
|
|
323
|
+
})))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
324
|
+
"data-popper-placement": t.placement
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
const zt = {
|
|
328
|
+
name: "computeStyles",
|
|
329
|
+
enabled: !0,
|
|
330
|
+
phase: "beforeWrite",
|
|
331
|
+
fn: Ut,
|
|
332
|
+
data: {}
|
|
333
|
+
};
|
|
334
|
+
var he = {
|
|
335
|
+
passive: !0
|
|
336
|
+
};
|
|
337
|
+
function Xt(e) {
|
|
338
|
+
var t = e.state, r = e.instance, n = e.options, a = n.scroll, o = a === void 0 ? !0 : a, u = n.resize, s = u === void 0 ? !0 : u, i = $(t.elements.popper), c = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
339
|
+
return o && c.forEach(function(f) {
|
|
340
|
+
f.addEventListener("scroll", r.update, he);
|
|
341
|
+
}), s && i.addEventListener("resize", r.update, he), function() {
|
|
342
|
+
o && c.forEach(function(f) {
|
|
343
|
+
f.removeEventListener("scroll", r.update, he);
|
|
344
|
+
}), s && i.removeEventListener("resize", r.update, he);
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
const Yt = {
|
|
348
|
+
name: "eventListeners",
|
|
349
|
+
enabled: !0,
|
|
350
|
+
phase: "write",
|
|
351
|
+
fn: function() {
|
|
352
|
+
},
|
|
353
|
+
effect: Xt,
|
|
354
|
+
data: {}
|
|
355
|
+
};
|
|
356
|
+
var Gt = {
|
|
357
|
+
left: "right",
|
|
358
|
+
right: "left",
|
|
359
|
+
bottom: "top",
|
|
360
|
+
top: "bottom"
|
|
361
|
+
};
|
|
362
|
+
function ye(e) {
|
|
363
|
+
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
364
|
+
return Gt[t];
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
var Jt = {
|
|
368
|
+
start: "end",
|
|
369
|
+
end: "start"
|
|
370
|
+
};
|
|
371
|
+
function Ge(e) {
|
|
372
|
+
return e.replace(/start|end/g, function(t) {
|
|
373
|
+
return Jt[t];
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
function Ce(e) {
|
|
377
|
+
var t = $(e), r = t.pageXOffset, n = t.pageYOffset;
|
|
378
|
+
return {
|
|
379
|
+
scrollLeft: r,
|
|
380
|
+
scrollTop: n
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
function $e(e) {
|
|
384
|
+
return ee(I(e)).left + Ce(e).scrollLeft;
|
|
385
|
+
}
|
|
386
|
+
function Kt(e, t) {
|
|
387
|
+
var r = $(e), n = I(e), a = r.visualViewport, o = n.clientWidth, u = n.clientHeight, s = 0, i = 0;
|
|
388
|
+
if (a) {
|
|
389
|
+
o = a.width, u = a.height;
|
|
390
|
+
var c = at();
|
|
391
|
+
(c || !c && t === "fixed") && (s = a.offsetLeft, i = a.offsetTop);
|
|
392
|
+
}
|
|
393
|
+
return {
|
|
394
|
+
width: o,
|
|
395
|
+
height: u,
|
|
396
|
+
x: s + $e(e),
|
|
397
|
+
y: i
|
|
398
|
+
};
|
|
399
|
+
}
|
|
400
|
+
function Qt(e) {
|
|
401
|
+
var t, r = I(e), n = Ce(e), a = (t = e.ownerDocument) == null ? void 0 : t.body, o = J(r.scrollWidth, r.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), u = J(r.scrollHeight, r.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), s = -n.scrollLeft + $e(e), i = -n.scrollTop;
|
|
402
|
+
return V(a || r).direction === "rtl" && (s += J(r.clientWidth, a ? a.clientWidth : 0) - o), {
|
|
403
|
+
width: o,
|
|
404
|
+
height: u,
|
|
405
|
+
x: s,
|
|
406
|
+
y: i
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
function Me(e) {
|
|
410
|
+
var t = V(e), r = t.overflow, n = t.overflowX, a = t.overflowY;
|
|
411
|
+
return /auto|scroll|overlay|hidden/.test(r + a + n);
|
|
412
|
+
}
|
|
413
|
+
function ut(e) {
|
|
414
|
+
return ["html", "body", "#document"].indexOf(F(e)) >= 0 ? e.ownerDocument.body : M(e) && Me(e) ? e : ut(be(e));
|
|
415
|
+
}
|
|
416
|
+
function ie(e, t) {
|
|
417
|
+
var r;
|
|
418
|
+
t === void 0 && (t = []);
|
|
419
|
+
var n = ut(e), a = n === ((r = e.ownerDocument) == null ? void 0 : r.body), o = $(n), u = a ? [o].concat(o.visualViewport || [], Me(n) ? n : []) : n, s = t.concat(u);
|
|
420
|
+
return a ? s : (
|
|
421
|
+
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
422
|
+
s.concat(ie(be(u)))
|
|
423
|
+
);
|
|
424
|
+
}
|
|
425
|
+
function Se(e) {
|
|
426
|
+
return Object.assign({}, e, {
|
|
427
|
+
left: e.x,
|
|
428
|
+
top: e.y,
|
|
429
|
+
right: e.x + e.width,
|
|
430
|
+
bottom: e.y + e.height
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
function Zt(e, t) {
|
|
434
|
+
var r = ee(e, !1, t === "fixed");
|
|
435
|
+
return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
|
|
436
|
+
}
|
|
437
|
+
function Je(e, t, r) {
|
|
438
|
+
return t === rt ? Se(Kt(e, r)) : K(t) ? Zt(t, r) : Se(Qt(I(e)));
|
|
439
|
+
}
|
|
440
|
+
function _t(e) {
|
|
441
|
+
var t = ie(be(e)), r = ["absolute", "fixed"].indexOf(V(e).position) >= 0, n = r && M(e) ? ce(e) : e;
|
|
442
|
+
return K(n) ? t.filter(function(a) {
|
|
443
|
+
return K(a) && ot(a, n) && F(a) !== "body";
|
|
444
|
+
}) : [];
|
|
445
|
+
}
|
|
446
|
+
function er(e, t, r, n) {
|
|
447
|
+
var a = t === "clippingParents" ? _t(e) : [].concat(t), o = [].concat(a, [r]), u = o[0], s = o.reduce(function(i, c) {
|
|
448
|
+
var f = Je(e, c, n);
|
|
449
|
+
return i.top = J(f.top, i.top), i.right = we(f.right, i.right), i.bottom = we(f.bottom, i.bottom), i.left = J(f.left, i.left), i;
|
|
450
|
+
}, Je(e, u, n));
|
|
451
|
+
return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
|
|
452
|
+
}
|
|
453
|
+
function ct(e) {
|
|
454
|
+
var t = e.reference, r = e.element, n = e.placement, a = n ? H(n) : null, o = n ? te(n) : null, u = t.x + t.width / 2 - r.width / 2, s = t.y + t.height / 2 - r.height / 2, i;
|
|
455
|
+
switch (a) {
|
|
456
|
+
case j:
|
|
457
|
+
i = {
|
|
458
|
+
x: u,
|
|
459
|
+
y: t.y - r.height
|
|
460
|
+
};
|
|
461
|
+
break;
|
|
462
|
+
case T:
|
|
463
|
+
i = {
|
|
464
|
+
x: u,
|
|
465
|
+
y: t.y + t.height
|
|
466
|
+
};
|
|
467
|
+
break;
|
|
468
|
+
case L:
|
|
469
|
+
i = {
|
|
470
|
+
x: t.x + t.width,
|
|
471
|
+
y: s
|
|
472
|
+
};
|
|
473
|
+
break;
|
|
474
|
+
case B:
|
|
475
|
+
i = {
|
|
476
|
+
x: t.x - r.width,
|
|
477
|
+
y: s
|
|
478
|
+
};
|
|
479
|
+
break;
|
|
480
|
+
default:
|
|
481
|
+
i = {
|
|
482
|
+
x: t.x,
|
|
483
|
+
y: t.y
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
var c = a ? Be(a) : null;
|
|
487
|
+
if (c != null) {
|
|
488
|
+
var f = c === "y" ? "height" : "width";
|
|
489
|
+
switch (o) {
|
|
490
|
+
case Z:
|
|
491
|
+
i[c] = i[c] - (t[f] / 2 - r[f] / 2);
|
|
492
|
+
break;
|
|
493
|
+
case se:
|
|
494
|
+
i[c] = i[c] + (t[f] / 2 - r[f] / 2);
|
|
495
|
+
break;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
return i;
|
|
499
|
+
}
|
|
500
|
+
function fe(e, t) {
|
|
501
|
+
t === void 0 && (t = {});
|
|
502
|
+
var r = t, n = r.placement, a = n === void 0 ? e.placement : n, o = r.strategy, u = o === void 0 ? e.strategy : o, s = r.boundary, i = s === void 0 ? bt : s, c = r.rootBoundary, f = c === void 0 ? rt : c, l = r.elementContext, m = l === void 0 ? ae : l, p = r.altBoundary, y = p === void 0 ? !1 : p, h = r.padding, v = h === void 0 ? 0 : h, b = st(typeof v != "number" ? v : ft(v, ue)), O = m === ae ? xt : ae, E = e.rects.popper, d = e.elements[y ? O : m], g = er(K(d) ? d : d.contextElement || I(e.elements.popper), i, f, u), w = ee(e.elements.reference), x = ct({
|
|
503
|
+
reference: w,
|
|
504
|
+
element: E,
|
|
505
|
+
strategy: "absolute",
|
|
506
|
+
placement: a
|
|
507
|
+
}), S = Se(Object.assign({}, E, x)), P = m === ae ? S : w, A = {
|
|
508
|
+
top: g.top - P.top + b.top,
|
|
509
|
+
bottom: P.bottom - g.bottom + b.bottom,
|
|
510
|
+
left: g.left - P.left + b.left,
|
|
511
|
+
right: P.right - g.right + b.right
|
|
512
|
+
}, D = e.modifiersData.offset;
|
|
513
|
+
if (m === ae && D) {
|
|
514
|
+
var k = D[a];
|
|
515
|
+
Object.keys(A).forEach(function(R) {
|
|
516
|
+
var N = [L, T].indexOf(R) >= 0 ? 1 : -1, U = [j, T].indexOf(R) >= 0 ? "y" : "x";
|
|
517
|
+
A[R] += k[U] * N;
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
return A;
|
|
521
|
+
}
|
|
522
|
+
function tr(e, t) {
|
|
523
|
+
t === void 0 && (t = {});
|
|
524
|
+
var r = t, n = r.placement, a = r.boundary, o = r.rootBoundary, u = r.padding, s = r.flipVariations, i = r.allowedAutoPlacements, c = i === void 0 ? nt : i, f = te(n), l = f ? s ? ze : ze.filter(function(y) {
|
|
525
|
+
return te(y) === f;
|
|
526
|
+
}) : ue, m = l.filter(function(y) {
|
|
527
|
+
return c.indexOf(y) >= 0;
|
|
528
|
+
});
|
|
529
|
+
m.length === 0 && (m = l);
|
|
530
|
+
var p = m.reduce(function(y, h) {
|
|
531
|
+
return y[h] = fe(e, {
|
|
532
|
+
placement: h,
|
|
533
|
+
boundary: a,
|
|
534
|
+
rootBoundary: o,
|
|
535
|
+
padding: u
|
|
536
|
+
})[H(h)], y;
|
|
537
|
+
}, {});
|
|
538
|
+
return Object.keys(p).sort(function(y, h) {
|
|
539
|
+
return p[y] - p[h];
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
function rr(e) {
|
|
543
|
+
if (H(e) === De)
|
|
544
|
+
return [];
|
|
545
|
+
var t = ye(e);
|
|
546
|
+
return [Ge(e), t, Ge(t)];
|
|
547
|
+
}
|
|
548
|
+
function nr(e) {
|
|
549
|
+
var t = e.state, r = e.options, n = e.name;
|
|
550
|
+
if (!t.modifiersData[n]._skip) {
|
|
551
|
+
for (var a = r.mainAxis, o = a === void 0 ? !0 : a, u = r.altAxis, s = u === void 0 ? !0 : u, i = r.fallbackPlacements, c = r.padding, f = r.boundary, l = r.rootBoundary, m = r.altBoundary, p = r.flipVariations, y = p === void 0 ? !0 : p, h = r.allowedAutoPlacements, v = t.options.placement, b = H(v), O = b === v, E = i || (O || !y ? [ye(v)] : rr(v)), d = [v].concat(E).reduce(function(Q, q) {
|
|
552
|
+
return Q.concat(H(q) === De ? tr(t, {
|
|
553
|
+
placement: q,
|
|
554
|
+
boundary: f,
|
|
555
|
+
rootBoundary: l,
|
|
556
|
+
padding: c,
|
|
557
|
+
flipVariations: y,
|
|
558
|
+
allowedAutoPlacements: h
|
|
559
|
+
}) : q);
|
|
560
|
+
}, []), g = t.rects.reference, w = t.rects.popper, x = /* @__PURE__ */ new Map(), S = !0, P = d[0], A = 0; A < d.length; A++) {
|
|
561
|
+
var D = d[A], k = H(D), R = te(D) === Z, N = [j, T].indexOf(k) >= 0, U = N ? "width" : "height", C = fe(t, {
|
|
562
|
+
placement: D,
|
|
563
|
+
boundary: f,
|
|
564
|
+
rootBoundary: l,
|
|
565
|
+
altBoundary: m,
|
|
566
|
+
padding: c
|
|
567
|
+
}), W = N ? R ? L : B : R ? T : j;
|
|
568
|
+
g[U] > w[U] && (W = ye(W));
|
|
569
|
+
var pe = ye(W), z = [];
|
|
570
|
+
if (o && z.push(C[k] <= 0), s && z.push(C[W] <= 0, C[pe] <= 0), z.every(function(Q) {
|
|
571
|
+
return Q;
|
|
572
|
+
})) {
|
|
573
|
+
P = D, S = !1;
|
|
574
|
+
break;
|
|
575
|
+
}
|
|
576
|
+
x.set(D, z);
|
|
577
|
+
}
|
|
578
|
+
if (S)
|
|
579
|
+
for (var le = y ? 3 : 1, xe = function(q) {
|
|
580
|
+
var ne = d.find(function(de) {
|
|
581
|
+
var X = x.get(de);
|
|
582
|
+
if (X)
|
|
583
|
+
return X.slice(0, q).every(function(Oe) {
|
|
584
|
+
return Oe;
|
|
585
|
+
});
|
|
586
|
+
});
|
|
587
|
+
if (ne)
|
|
588
|
+
return P = ne, "break";
|
|
589
|
+
}, re = le; re > 0; re--) {
|
|
590
|
+
var ve = xe(re);
|
|
591
|
+
if (ve === "break")
|
|
592
|
+
break;
|
|
593
|
+
}
|
|
594
|
+
t.placement !== P && (t.modifiersData[n]._skip = !0, t.placement = P, t.reset = !0);
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
const ar = {
|
|
598
|
+
name: "flip",
|
|
599
|
+
enabled: !0,
|
|
600
|
+
phase: "main",
|
|
601
|
+
fn: nr,
|
|
602
|
+
requiresIfExists: ["offset"],
|
|
603
|
+
data: {
|
|
604
|
+
_skip: !1
|
|
605
|
+
}
|
|
606
|
+
};
|
|
607
|
+
function Ke(e, t, r) {
|
|
608
|
+
return r === void 0 && (r = {
|
|
609
|
+
x: 0,
|
|
610
|
+
y: 0
|
|
611
|
+
}), {
|
|
612
|
+
top: e.top - t.height - r.y,
|
|
613
|
+
right: e.right - t.width + r.x,
|
|
614
|
+
bottom: e.bottom - t.height + r.y,
|
|
615
|
+
left: e.left - t.width - r.x
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
function Qe(e) {
|
|
619
|
+
return [j, L, T, B].some(function(t) {
|
|
620
|
+
return e[t] >= 0;
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
function or(e) {
|
|
624
|
+
var t = e.state, r = e.name, n = t.rects.reference, a = t.rects.popper, o = t.modifiersData.preventOverflow, u = fe(t, {
|
|
625
|
+
elementContext: "reference"
|
|
626
|
+
}), s = fe(t, {
|
|
627
|
+
altBoundary: !0
|
|
628
|
+
}), i = Ke(u, n), c = Ke(s, a, o), f = Qe(i), l = Qe(c);
|
|
629
|
+
t.modifiersData[r] = {
|
|
630
|
+
referenceClippingOffsets: i,
|
|
631
|
+
popperEscapeOffsets: c,
|
|
632
|
+
isReferenceHidden: f,
|
|
633
|
+
hasPopperEscaped: l
|
|
634
|
+
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
635
|
+
"data-popper-reference-hidden": f,
|
|
636
|
+
"data-popper-escaped": l
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
const ir = {
|
|
640
|
+
name: "hide",
|
|
641
|
+
enabled: !0,
|
|
642
|
+
phase: "main",
|
|
643
|
+
requiresIfExists: ["preventOverflow"],
|
|
644
|
+
fn: or
|
|
645
|
+
};
|
|
646
|
+
function sr(e, t, r) {
|
|
647
|
+
var n = H(e), a = [B, j].indexOf(n) >= 0 ? -1 : 1, o = typeof r == "function" ? r(Object.assign({}, t, {
|
|
648
|
+
placement: e
|
|
649
|
+
})) : r, u = o[0], s = o[1];
|
|
650
|
+
return u = u || 0, s = (s || 0) * a, [B, L].indexOf(n) >= 0 ? {
|
|
651
|
+
x: s,
|
|
652
|
+
y: u
|
|
653
|
+
} : {
|
|
654
|
+
x: u,
|
|
655
|
+
y: s
|
|
656
|
+
};
|
|
657
|
+
}
|
|
658
|
+
function fr(e) {
|
|
659
|
+
var t = e.state, r = e.options, n = e.name, a = r.offset, o = a === void 0 ? [0, 0] : a, u = nt.reduce(function(f, l) {
|
|
660
|
+
return f[l] = sr(l, t.rects, o), f;
|
|
661
|
+
}, {}), s = u[t.placement], i = s.x, c = s.y;
|
|
662
|
+
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += i, t.modifiersData.popperOffsets.y += c), t.modifiersData[n] = u;
|
|
663
|
+
}
|
|
664
|
+
const ur = {
|
|
665
|
+
name: "offset",
|
|
666
|
+
enabled: !0,
|
|
667
|
+
phase: "main",
|
|
668
|
+
requires: ["popperOffsets"],
|
|
669
|
+
fn: fr
|
|
670
|
+
};
|
|
671
|
+
function cr(e) {
|
|
672
|
+
var t = e.state, r = e.name;
|
|
673
|
+
t.modifiersData[r] = ct({
|
|
674
|
+
reference: t.rects.reference,
|
|
675
|
+
element: t.rects.popper,
|
|
676
|
+
strategy: "absolute",
|
|
677
|
+
placement: t.placement
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
const pr = {
|
|
681
|
+
name: "popperOffsets",
|
|
682
|
+
enabled: !0,
|
|
683
|
+
phase: "read",
|
|
684
|
+
fn: cr,
|
|
685
|
+
data: {}
|
|
686
|
+
};
|
|
687
|
+
function lr(e) {
|
|
688
|
+
return e === "x" ? "y" : "x";
|
|
689
|
+
}
|
|
690
|
+
function vr(e) {
|
|
691
|
+
var t = e.state, r = e.options, n = e.name, a = r.mainAxis, o = a === void 0 ? !0 : a, u = r.altAxis, s = u === void 0 ? !1 : u, i = r.boundary, c = r.rootBoundary, f = r.altBoundary, l = r.padding, m = r.tether, p = m === void 0 ? !0 : m, y = r.tetherOffset, h = y === void 0 ? 0 : y, v = fe(t, {
|
|
692
|
+
boundary: i,
|
|
693
|
+
rootBoundary: c,
|
|
694
|
+
padding: l,
|
|
695
|
+
altBoundary: f
|
|
696
|
+
}), b = H(t.placement), O = te(t.placement), E = !O, d = Be(b), g = lr(d), w = t.modifiersData.popperOffsets, x = t.rects.reference, S = t.rects.popper, P = typeof h == "function" ? h(Object.assign({}, t.rects, {
|
|
697
|
+
placement: t.placement
|
|
698
|
+
})) : h, A = typeof P == "number" ? {
|
|
699
|
+
mainAxis: P,
|
|
700
|
+
altAxis: P
|
|
701
|
+
} : Object.assign({
|
|
702
|
+
mainAxis: 0,
|
|
703
|
+
altAxis: 0
|
|
704
|
+
}, P), D = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, k = {
|
|
705
|
+
x: 0,
|
|
706
|
+
y: 0
|
|
707
|
+
};
|
|
708
|
+
if (w) {
|
|
709
|
+
if (o) {
|
|
710
|
+
var R, N = d === "y" ? j : B, U = d === "y" ? T : L, C = d === "y" ? "height" : "width", W = w[d], pe = W + v[N], z = W - v[U], le = p ? -S[C] / 2 : 0, xe = O === Z ? x[C] : S[C], re = O === Z ? -S[C] : -x[C], ve = t.elements.arrow, Q = p && ve ? je(ve) : {
|
|
711
|
+
width: 0,
|
|
712
|
+
height: 0
|
|
713
|
+
}, q = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : it(), ne = q[N], de = q[U], X = oe(0, x[C], Q[C]), Oe = E ? x[C] / 2 - le - X - ne - A.mainAxis : xe - X - ne - A.mainAxis, pt = E ? -x[C] / 2 + le + X + de + A.mainAxis : re + X + de + A.mainAxis, Ee = t.elements.arrow && ce(t.elements.arrow), lt = Ee ? d === "y" ? Ee.clientTop || 0 : Ee.clientLeft || 0 : 0, Te = (R = D == null ? void 0 : D[d]) != null ? R : 0, vt = W + Oe - Te - lt, dt = W + pt - Te, Le = oe(p ? we(pe, vt) : pe, W, p ? J(z, dt) : z);
|
|
714
|
+
w[d] = Le, k[d] = Le - W;
|
|
715
|
+
}
|
|
716
|
+
if (s) {
|
|
717
|
+
var ke, mt = d === "x" ? j : B, ht = d === "x" ? T : L, Y = w[g], me = g === "y" ? "height" : "width", We = Y + v[mt], He = Y - v[ht], Ae = [j, B].indexOf(b) !== -1, Fe = (ke = D == null ? void 0 : D[g]) != null ? ke : 0, Ve = Ae ? We : Y - x[me] - S[me] - Fe + A.altAxis, qe = Ae ? Y + x[me] + S[me] - Fe - A.altAxis : He, Ie = p && Ae ? Wt(Ve, Y, qe) : oe(p ? Ve : We, Y, p ? qe : He);
|
|
718
|
+
w[g] = Ie, k[g] = Ie - Y;
|
|
719
|
+
}
|
|
720
|
+
t.modifiersData[n] = k;
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
const dr = {
|
|
724
|
+
name: "preventOverflow",
|
|
725
|
+
enabled: !0,
|
|
726
|
+
phase: "main",
|
|
727
|
+
fn: vr,
|
|
728
|
+
requiresIfExists: ["offset"]
|
|
729
|
+
};
|
|
730
|
+
function mr(e) {
|
|
731
|
+
return {
|
|
732
|
+
scrollLeft: e.scrollLeft,
|
|
733
|
+
scrollTop: e.scrollTop
|
|
734
|
+
};
|
|
735
|
+
}
|
|
736
|
+
function hr(e) {
|
|
737
|
+
return e === $(e) || !M(e) ? Ce(e) : mr(e);
|
|
738
|
+
}
|
|
739
|
+
function yr(e) {
|
|
740
|
+
var t = e.getBoundingClientRect(), r = _(t.width) / e.offsetWidth || 1, n = _(t.height) / e.offsetHeight || 1;
|
|
741
|
+
return r !== 1 || n !== 1;
|
|
742
|
+
}
|
|
743
|
+
function gr(e, t, r) {
|
|
744
|
+
r === void 0 && (r = !1);
|
|
745
|
+
var n = M(t), a = M(t) && yr(t), o = I(t), u = ee(e, a, r), s = {
|
|
746
|
+
scrollLeft: 0,
|
|
747
|
+
scrollTop: 0
|
|
748
|
+
}, i = {
|
|
749
|
+
x: 0,
|
|
750
|
+
y: 0
|
|
751
|
+
};
|
|
752
|
+
return (n || !n && !r) && ((F(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
753
|
+
Me(o)) && (s = hr(t)), M(t) ? (i = ee(t, !0), i.x += t.clientLeft, i.y += t.clientTop) : o && (i.x = $e(o))), {
|
|
754
|
+
x: u.left + s.scrollLeft - i.x,
|
|
755
|
+
y: u.top + s.scrollTop - i.y,
|
|
756
|
+
width: u.width,
|
|
757
|
+
height: u.height
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
function wr(e) {
|
|
761
|
+
var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
|
|
762
|
+
e.forEach(function(o) {
|
|
763
|
+
t.set(o.name, o);
|
|
764
|
+
});
|
|
765
|
+
function a(o) {
|
|
766
|
+
r.add(o.name);
|
|
767
|
+
var u = [].concat(o.requires || [], o.requiresIfExists || []);
|
|
768
|
+
u.forEach(function(s) {
|
|
769
|
+
if (!r.has(s)) {
|
|
770
|
+
var i = t.get(s);
|
|
771
|
+
i && a(i);
|
|
772
|
+
}
|
|
773
|
+
}), n.push(o);
|
|
774
|
+
}
|
|
775
|
+
return e.forEach(function(o) {
|
|
776
|
+
r.has(o.name) || a(o);
|
|
777
|
+
}), n;
|
|
778
|
+
}
|
|
779
|
+
function br(e) {
|
|
780
|
+
var t = wr(e);
|
|
781
|
+
return Ct.reduce(function(r, n) {
|
|
782
|
+
return r.concat(t.filter(function(a) {
|
|
783
|
+
return a.phase === n;
|
|
784
|
+
}));
|
|
785
|
+
}, []);
|
|
786
|
+
}
|
|
787
|
+
function xr(e) {
|
|
788
|
+
var t;
|
|
789
|
+
return function() {
|
|
790
|
+
return t || (t = new Promise(function(r) {
|
|
791
|
+
Promise.resolve().then(function() {
|
|
792
|
+
t = void 0, r(e());
|
|
793
|
+
});
|
|
794
|
+
})), t;
|
|
795
|
+
};
|
|
796
|
+
}
|
|
797
|
+
function Or(e) {
|
|
798
|
+
var t = e.reduce(function(r, n) {
|
|
799
|
+
var a = r[n.name];
|
|
800
|
+
return r[n.name] = a ? Object.assign({}, a, n, {
|
|
801
|
+
options: Object.assign({}, a.options, n.options),
|
|
802
|
+
data: Object.assign({}, a.data, n.data)
|
|
803
|
+
}) : n, r;
|
|
804
|
+
}, {});
|
|
805
|
+
return Object.keys(t).map(function(r) {
|
|
806
|
+
return t[r];
|
|
807
|
+
});
|
|
808
|
+
}
|
|
809
|
+
var Ze = {
|
|
810
|
+
placement: "bottom",
|
|
811
|
+
modifiers: [],
|
|
812
|
+
strategy: "absolute"
|
|
813
|
+
};
|
|
814
|
+
function _e() {
|
|
815
|
+
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
816
|
+
t[r] = arguments[r];
|
|
817
|
+
return !t.some(function(n) {
|
|
818
|
+
return !(n && typeof n.getBoundingClientRect == "function");
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
function Er(e) {
|
|
822
|
+
e === void 0 && (e = {});
|
|
823
|
+
var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, a = t.defaultOptions, o = a === void 0 ? Ze : a;
|
|
824
|
+
return function(s, i, c) {
|
|
825
|
+
c === void 0 && (c = o);
|
|
826
|
+
var f = {
|
|
827
|
+
placement: "bottom",
|
|
828
|
+
orderedModifiers: [],
|
|
829
|
+
options: Object.assign({}, Ze, o),
|
|
830
|
+
modifiersData: {},
|
|
831
|
+
elements: {
|
|
832
|
+
reference: s,
|
|
833
|
+
popper: i
|
|
834
|
+
},
|
|
835
|
+
attributes: {},
|
|
836
|
+
styles: {}
|
|
837
|
+
}, l = [], m = !1, p = {
|
|
838
|
+
state: f,
|
|
839
|
+
setOptions: function(b) {
|
|
840
|
+
var O = typeof b == "function" ? b(f.options) : b;
|
|
841
|
+
h(), f.options = Object.assign({}, o, f.options, O), f.scrollParents = {
|
|
842
|
+
reference: K(s) ? ie(s) : s.contextElement ? ie(s.contextElement) : [],
|
|
843
|
+
popper: ie(i)
|
|
844
|
+
};
|
|
845
|
+
var E = br(Or([].concat(n, f.options.modifiers)));
|
|
846
|
+
return f.orderedModifiers = E.filter(function(d) {
|
|
847
|
+
return d.enabled;
|
|
848
|
+
}), y(), p.update();
|
|
849
|
+
},
|
|
850
|
+
// Sync update – it will always be executed, even if not necessary. This
|
|
851
|
+
// is useful for low frequency updates where sync behavior simplifies the
|
|
852
|
+
// logic.
|
|
853
|
+
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
854
|
+
// prefer the async Popper#update method
|
|
855
|
+
forceUpdate: function() {
|
|
856
|
+
if (!m) {
|
|
857
|
+
var b = f.elements, O = b.reference, E = b.popper;
|
|
858
|
+
if (_e(O, E)) {
|
|
859
|
+
f.rects = {
|
|
860
|
+
reference: gr(O, ce(E), f.options.strategy === "fixed"),
|
|
861
|
+
popper: je(E)
|
|
862
|
+
}, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach(function(A) {
|
|
863
|
+
return f.modifiersData[A.name] = Object.assign({}, A.data);
|
|
864
|
+
});
|
|
865
|
+
for (var d = 0; d < f.orderedModifiers.length; d++) {
|
|
866
|
+
if (f.reset === !0) {
|
|
867
|
+
f.reset = !1, d = -1;
|
|
868
|
+
continue;
|
|
869
|
+
}
|
|
870
|
+
var g = f.orderedModifiers[d], w = g.fn, x = g.options, S = x === void 0 ? {} : x, P = g.name;
|
|
871
|
+
typeof w == "function" && (f = w({
|
|
872
|
+
state: f,
|
|
873
|
+
options: S,
|
|
874
|
+
name: P,
|
|
875
|
+
instance: p
|
|
876
|
+
}) || f);
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
},
|
|
881
|
+
// Async and optimistically optimized update – it will not be executed if
|
|
882
|
+
// not necessary (debounced to run at most once-per-tick)
|
|
883
|
+
update: xr(function() {
|
|
884
|
+
return new Promise(function(v) {
|
|
885
|
+
p.forceUpdate(), v(f);
|
|
886
|
+
});
|
|
887
|
+
}),
|
|
888
|
+
destroy: function() {
|
|
889
|
+
h(), m = !0;
|
|
890
|
+
}
|
|
891
|
+
};
|
|
892
|
+
if (!_e(s, i))
|
|
893
|
+
return p;
|
|
894
|
+
p.setOptions(c).then(function(v) {
|
|
895
|
+
!m && c.onFirstUpdate && c.onFirstUpdate(v);
|
|
896
|
+
});
|
|
897
|
+
function y() {
|
|
898
|
+
f.orderedModifiers.forEach(function(v) {
|
|
899
|
+
var b = v.name, O = v.options, E = O === void 0 ? {} : O, d = v.effect;
|
|
900
|
+
if (typeof d == "function") {
|
|
901
|
+
var g = d({
|
|
902
|
+
state: f,
|
|
903
|
+
name: b,
|
|
904
|
+
instance: p,
|
|
905
|
+
options: E
|
|
906
|
+
}), w = function() {
|
|
907
|
+
};
|
|
908
|
+
l.push(g || w);
|
|
909
|
+
}
|
|
910
|
+
});
|
|
911
|
+
}
|
|
912
|
+
function h() {
|
|
913
|
+
l.forEach(function(v) {
|
|
914
|
+
return v();
|
|
915
|
+
}), l = [];
|
|
916
|
+
}
|
|
917
|
+
return p;
|
|
918
|
+
};
|
|
919
|
+
}
|
|
920
|
+
var Ar = [Yt, pr, zt, Tt, ur, ar, dr, qt, ir], Pr = /* @__PURE__ */ Er({
|
|
921
|
+
defaultModifiers: Ar
|
|
922
|
+
}), Sr = typeof Element < "u", Dr = typeof Map == "function", Rr = typeof Set == "function", jr = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
923
|
+
function ge(e, t) {
|
|
924
|
+
if (e === t)
|
|
925
|
+
return !0;
|
|
926
|
+
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
927
|
+
if (e.constructor !== t.constructor)
|
|
928
|
+
return !1;
|
|
929
|
+
var r, n, a;
|
|
930
|
+
if (Array.isArray(e)) {
|
|
931
|
+
if (r = e.length, r != t.length)
|
|
932
|
+
return !1;
|
|
933
|
+
for (n = r; n-- !== 0; )
|
|
934
|
+
if (!ge(e[n], t[n]))
|
|
935
|
+
return !1;
|
|
936
|
+
return !0;
|
|
937
|
+
}
|
|
938
|
+
var o;
|
|
939
|
+
if (Dr && e instanceof Map && t instanceof Map) {
|
|
940
|
+
if (e.size !== t.size)
|
|
941
|
+
return !1;
|
|
942
|
+
for (o = e.entries(); !(n = o.next()).done; )
|
|
943
|
+
if (!t.has(n.value[0]))
|
|
944
|
+
return !1;
|
|
945
|
+
for (o = e.entries(); !(n = o.next()).done; )
|
|
946
|
+
if (!ge(n.value[1], t.get(n.value[0])))
|
|
947
|
+
return !1;
|
|
948
|
+
return !0;
|
|
949
|
+
}
|
|
950
|
+
if (Rr && e instanceof Set && t instanceof Set) {
|
|
951
|
+
if (e.size !== t.size)
|
|
952
|
+
return !1;
|
|
953
|
+
for (o = e.entries(); !(n = o.next()).done; )
|
|
954
|
+
if (!t.has(n.value[0]))
|
|
955
|
+
return !1;
|
|
956
|
+
return !0;
|
|
957
|
+
}
|
|
958
|
+
if (jr && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
|
|
959
|
+
if (r = e.length, r != t.length)
|
|
960
|
+
return !1;
|
|
961
|
+
for (n = r; n-- !== 0; )
|
|
962
|
+
if (e[n] !== t[n])
|
|
963
|
+
return !1;
|
|
964
|
+
return !0;
|
|
965
|
+
}
|
|
966
|
+
if (e.constructor === RegExp)
|
|
967
|
+
return e.source === t.source && e.flags === t.flags;
|
|
968
|
+
if (e.valueOf !== Object.prototype.valueOf && typeof e.valueOf == "function" && typeof t.valueOf == "function")
|
|
969
|
+
return e.valueOf() === t.valueOf();
|
|
970
|
+
if (e.toString !== Object.prototype.toString && typeof e.toString == "function" && typeof t.toString == "function")
|
|
971
|
+
return e.toString() === t.toString();
|
|
972
|
+
if (a = Object.keys(e), r = a.length, r !== Object.keys(t).length)
|
|
973
|
+
return !1;
|
|
974
|
+
for (n = r; n-- !== 0; )
|
|
975
|
+
if (!Object.prototype.hasOwnProperty.call(t, a[n]))
|
|
976
|
+
return !1;
|
|
977
|
+
if (Sr && e instanceof Element)
|
|
978
|
+
return !1;
|
|
979
|
+
for (n = r; n-- !== 0; )
|
|
980
|
+
if (!((a[n] === "_owner" || a[n] === "__v" || a[n] === "__o") && e.$$typeof) && !ge(e[a[n]], t[a[n]]))
|
|
981
|
+
return !1;
|
|
982
|
+
return !0;
|
|
983
|
+
}
|
|
984
|
+
return e !== e && t !== t;
|
|
985
|
+
}
|
|
986
|
+
var Br = function(t, r) {
|
|
987
|
+
try {
|
|
988
|
+
return ge(t, r);
|
|
989
|
+
} catch (n) {
|
|
990
|
+
if ((n.message || "").match(/stack|recursion/i))
|
|
991
|
+
return console.warn("react-fast-compare cannot handle circular refs"), !1;
|
|
992
|
+
throw n;
|
|
993
|
+
}
|
|
994
|
+
};
|
|
995
|
+
const Cr = /* @__PURE__ */ wt(Br);
|
|
996
|
+
var $r = [], kr = function(t, r, n) {
|
|
997
|
+
n === void 0 && (n = {});
|
|
998
|
+
var a = G.useRef(null), o = {
|
|
999
|
+
onFirstUpdate: n.onFirstUpdate,
|
|
1000
|
+
placement: n.placement || "bottom",
|
|
1001
|
+
strategy: n.strategy || "absolute",
|
|
1002
|
+
modifiers: n.modifiers || $r
|
|
1003
|
+
}, u = G.useState({
|
|
1004
|
+
styles: {
|
|
1005
|
+
popper: {
|
|
1006
|
+
position: o.strategy,
|
|
1007
|
+
left: "0",
|
|
1008
|
+
top: "0"
|
|
1009
|
+
},
|
|
1010
|
+
arrow: {
|
|
1011
|
+
position: "absolute"
|
|
1012
|
+
}
|
|
1013
|
+
},
|
|
1014
|
+
attributes: {}
|
|
1015
|
+
}), s = u[0], i = u[1], c = G.useMemo(function() {
|
|
1016
|
+
return {
|
|
1017
|
+
name: "updateState",
|
|
1018
|
+
enabled: !0,
|
|
1019
|
+
phase: "write",
|
|
1020
|
+
fn: function(p) {
|
|
1021
|
+
var y = p.state, h = Object.keys(y.elements);
|
|
1022
|
+
gt.flushSync(function() {
|
|
1023
|
+
i({
|
|
1024
|
+
styles: Ne(h.map(function(v) {
|
|
1025
|
+
return [v, y.styles[v] || {}];
|
|
1026
|
+
})),
|
|
1027
|
+
attributes: Ne(h.map(function(v) {
|
|
1028
|
+
return [v, y.attributes[v]];
|
|
1029
|
+
}))
|
|
1030
|
+
});
|
|
1031
|
+
});
|
|
1032
|
+
},
|
|
1033
|
+
requires: ["computeStyles"]
|
|
1034
|
+
};
|
|
1035
|
+
}, []), f = G.useMemo(function() {
|
|
1036
|
+
var m = {
|
|
1037
|
+
onFirstUpdate: o.onFirstUpdate,
|
|
1038
|
+
placement: o.placement,
|
|
1039
|
+
strategy: o.strategy,
|
|
1040
|
+
modifiers: [].concat(o.modifiers, [c, {
|
|
1041
|
+
name: "applyStyles",
|
|
1042
|
+
enabled: !1
|
|
1043
|
+
}])
|
|
1044
|
+
};
|
|
1045
|
+
return Cr(a.current, m) ? a.current || m : (a.current = m, m);
|
|
1046
|
+
}, [o.onFirstUpdate, o.placement, o.strategy, o.modifiers, c]), l = G.useRef();
|
|
1047
|
+
return Ue(function() {
|
|
1048
|
+
l.current && l.current.setOptions(f);
|
|
1049
|
+
}, [f]), Ue(function() {
|
|
1050
|
+
if (!(t == null || r == null)) {
|
|
1051
|
+
var m = n.createPopper || Pr, p = m(t, r, f);
|
|
1052
|
+
return l.current = p, function() {
|
|
1053
|
+
p.destroy(), l.current = null;
|
|
1054
|
+
};
|
|
1055
|
+
}
|
|
1056
|
+
}, [t, r, n.createPopper]), {
|
|
1057
|
+
state: l.current ? l.current.state : null,
|
|
1058
|
+
styles: s.styles,
|
|
1059
|
+
attributes: s.attributes,
|
|
1060
|
+
update: l.current ? l.current.update : null,
|
|
1061
|
+
forceUpdate: l.current ? l.current.forceUpdate : null
|
|
1062
|
+
};
|
|
1063
|
+
};
|
|
1064
|
+
const Wr = (e, t, r = !0, n = !1) => {
|
|
1065
|
+
const [a, o] = et(e), u = yt(null), s = (i) => {
|
|
1066
|
+
if (!r) {
|
|
1067
|
+
o(i);
|
|
1068
|
+
return;
|
|
1069
|
+
}
|
|
1070
|
+
u.current && clearTimeout(u.current), i && !n || !i && n ? o(i) : u.current = setTimeout(() => {
|
|
1071
|
+
o(i);
|
|
1072
|
+
}, t);
|
|
1073
|
+
};
|
|
1074
|
+
return tt(() => () => {
|
|
1075
|
+
u.current && clearTimeout(u.current);
|
|
1076
|
+
}, []), [a, s];
|
|
1077
|
+
};
|
|
1078
|
+
export {
|
|
1079
|
+
Lr as a,
|
|
1080
|
+
kr as b,
|
|
1081
|
+
Wr as u
|
|
1082
|
+
};
|