tttb 0.1.29
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/README.md +42 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/components/Button/index.js +6 -0
- package/dist/components/Button/index.vue.js +7 -0
- package/dist/components/Button/index.vue2.js +54 -0
- package/dist/components/Button/types.js +8 -0
- package/dist/components/Checkbox/index.js +6 -0
- package/dist/components/Checkbox/index.vue.js +7 -0
- package/dist/components/Checkbox/index.vue2.js +35 -0
- package/dist/components/Checkbox/types.js +7 -0
- package/dist/components/Collapse/index.js +6 -0
- package/dist/components/Collapse/index.vue.js +7 -0
- package/dist/components/Collapse/index.vue2.js +42 -0
- package/dist/components/Collapse/types.js +7 -0
- package/dist/components/CollapseItem/index.js +6 -0
- package/dist/components/CollapseItem/index.vue.js +7 -0
- package/dist/components/CollapseItem/index.vue2.js +80 -0
- package/dist/components/Dialog/DialogItem.vue.js +7 -0
- package/dist/components/Dialog/DialogItem.vue2.js +69 -0
- package/dist/components/Dialog/DialogPrompt.vue.js +7 -0
- package/dist/components/Dialog/DialogPrompt.vue2.js +63 -0
- package/dist/components/Dialog/index.js +6 -0
- package/dist/components/Dialog/index.vue.js +7 -0
- package/dist/components/Dialog/index.vue2.js +91 -0
- package/dist/components/Icon/index.js +6 -0
- package/dist/components/Icon/index.vue.js +45 -0
- package/dist/components/Icon/index.vue2.js +4 -0
- package/dist/components/Loading/index.js +6 -0
- package/dist/components/Loading/index.vue.js +7 -0
- package/dist/components/Loading/index.vue2.js +37 -0
- package/dist/components/Loading/types.js +7 -0
- package/dist/components/Message/index.js +6 -0
- package/dist/components/Message/index.vue.js +7 -0
- package/dist/components/Message/index.vue2.js +91 -0
- package/dist/components/Modal/index.js +6 -0
- package/dist/components/Modal/index.vue.js +7 -0
- package/dist/components/Modal/index.vue2.js +39 -0
- package/dist/components/Modal/types.js +7 -0
- package/dist/components/Nav/index.js +6 -0
- package/dist/components/Nav/index.vue.js +7 -0
- package/dist/components/Nav/index.vue2.js +95 -0
- package/dist/components/Pagination/index.js +6 -0
- package/dist/components/Pagination/index.vue.js +7 -0
- package/dist/components/Pagination/index.vue2.js +149 -0
- package/dist/components/Pagination/types.js +8 -0
- package/dist/components/Popconfirm/index.js +7 -0
- package/dist/components/Popconfirm/index.vue.js +92 -0
- package/dist/components/Popconfirm/index.vue3.js +5 -0
- package/dist/components/Popconfirm/types.js +14 -0
- package/dist/components/Popover/index.js +7 -0
- package/dist/components/Popover/index.vue.js +32 -0
- package/dist/components/Popover/index.vue3.js +5 -0
- package/dist/components/Progress/index.js +6 -0
- package/dist/components/Progress/index.vue.js +7 -0
- package/dist/components/Progress/index.vue2.js +38 -0
- package/dist/components/Progress/types.js +7 -0
- package/dist/components/RouterNav/index.js +6 -0
- package/dist/components/RouterNav/index.vue.js +33 -0
- package/dist/components/RouterNav/index.vue2.js +4 -0
- package/dist/components/Switch/index.js +6 -0
- package/dist/components/Switch/index.vue.js +7 -0
- package/dist/components/Switch/index.vue2.js +76 -0
- package/dist/components/Switch/types.js +6 -0
- package/dist/components/Table/index.js +6 -0
- package/dist/components/Table/index.vue.js +7 -0
- package/dist/components/Table/index.vue2.js +57 -0
- package/dist/components/Timer/index.js +6 -0
- package/dist/components/Timer/index.vue.js +31 -0
- package/dist/components/Timer/index.vue2.js +4 -0
- package/dist/components/Tooltip/TooltipContent.vue.js +33 -0
- package/dist/components/Tooltip/TooltipContent.vue2.js +4 -0
- package/dist/components/Tooltip/TooltipItem.vue.js +58 -0
- package/dist/components/Tooltip/TooltipItem.vue2.js +4 -0
- package/dist/components/Tooltip/TooltipLayer.vue.js +49 -0
- package/dist/components/Tooltip/TooltipLayer.vue2.js +4 -0
- package/dist/components/Tooltip/index.js +6 -0
- package/dist/components/Tooltip/index.vue.js +74 -0
- package/dist/components/Tooltip/index.vue2.js +4 -0
- package/dist/components/Tooltip/manager.js +105 -0
- package/dist/components/Tooltip/types.js +38 -0
- package/dist/components/Tooltip/useTooltip.js +43 -0
- package/dist/components/Warn/index.js +6 -0
- package/dist/components/Warn/index.vue.js +7 -0
- package/dist/components/Warn/index.vue2.js +21 -0
- package/dist/components/Warn/types.js +6 -0
- package/dist/components/Watermark/index.js +6 -0
- package/dist/components/Watermark/index.vue.js +7 -0
- package/dist/components/Watermark/index.vue2.js +54 -0
- package/dist/components/Watermark/types.js +10 -0
- package/dist/components/Watermark/useWatermarkBg.js +11 -0
- package/dist/components/helpers.js +25 -0
- package/dist/components.js +44 -0
- package/dist/directives/vBackTop.js +111 -0
- package/dist/directives/vDelayIn.js +41 -0
- package/dist/directives/vHoldPointer.js +112 -0
- package/dist/directives/vLazy.js +61 -0
- package/dist/directives/vLoading.js +49 -0
- package/dist/directives/vRipple.js +81 -0
- package/dist/directives/vSlideIn.js +39 -0
- package/dist/directives/vTextJump.js +50 -0
- package/dist/directives/vTooltip.js +55 -0
- package/dist/directives.js +20 -0
- package/dist/hooks/useAudio.js +112 -0
- package/dist/hooks/useElementScroll.js +30 -0
- package/dist/hooks/useGSAP.js +40 -0
- package/dist/hooks/useRefreshRate.js +26 -0
- package/dist/hooks/useWindowBackTop.js +86 -0
- package/dist/hooks.js +13 -0
- package/dist/icons/brands.js +592 -0
- package/dist/icons/regular.js +278 -0
- package/dist/icons/solid.js +2005 -0
- package/dist/index.js +135 -0
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.js +448 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +401 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -0
- package/dist/node_modules/.pnpm/@floating-ui_vue@1.1.11_vue@3.5.34_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.js +131 -0
- package/dist/node_modules/.pnpm/@fortawesome_fontawesome-svg-core@7.2.0/node_modules/@fortawesome/fontawesome-svg-core/index.js +3102 -0
- package/dist/node_modules/.pnpm/@fortawesome_free-brands-svg-icons@7.2.0/node_modules/@fortawesome/free-brands-svg-icons/index.js +3380 -0
- package/dist/node_modules/.pnpm/@fortawesome_free-regular-svg-icons@7.2.0/node_modules/@fortawesome/free-regular-svg-icons/index.js +1228 -0
- package/dist/node_modules/.pnpm/@fortawesome_free-solid-svg-icons@7.2.0/node_modules/@fortawesome/free-solid-svg-icons/index.js +9694 -0
- package/dist/node_modules/.pnpm/@fortawesome_vue-fontawesom_b85c0ed4b0a431cb59a463de76a3e522/node_modules/@fortawesome/vue-fontawesome/index.es.js +528 -0
- package/dist/node_modules/.pnpm/gsap@3.15.0/node_modules/gsap/CSSPlugin.js +424 -0
- package/dist/node_modules/.pnpm/gsap@3.15.0/node_modules/gsap/gsap-core.js +1652 -0
- package/dist/node_modules/.pnpm/gsap@3.15.0/node_modules/gsap/index.js +13 -0
- package/dist/tttb.css +1 -0
- package/dist/types/bundle.d.ts +10 -0
- package/dist/types/components/Button/index.d.ts +22 -0
- package/dist/types/components/Button/types.d.ts +12 -0
- package/dist/types/components/Checkbox/index.d.ts +29 -0
- package/dist/types/components/Checkbox/types.d.ts +8 -0
- package/dist/types/components/Collapse/index.d.ts +28 -0
- package/dist/types/components/Collapse/types.d.ts +16 -0
- package/dist/types/components/CollapseItem/index.d.ts +27 -0
- package/dist/types/components/CollapseItem/types.d.ts +6 -0
- package/dist/types/components/Dialog/DialogItem.d.ts +38 -0
- package/dist/types/components/Dialog/DialogPrompt.d.ts +16 -0
- package/dist/types/components/Dialog/index.d.ts +10 -0
- package/dist/types/components/Dialog/types.d.ts +58 -0
- package/dist/types/components/Icon/index.d.ts +3 -0
- package/dist/types/components/Icon/types.d.ts +2 -0
- package/dist/types/components/Loading/index.d.ts +6 -0
- package/dist/types/components/Loading/types.d.ts +8 -0
- package/dist/types/components/Message/index.d.ts +9 -0
- package/dist/types/components/Message/types.d.ts +13 -0
- package/dist/types/components/Modal/index.d.ts +21 -0
- package/dist/types/components/Modal/types.d.ts +11 -0
- package/dist/types/components/Nav/index.d.ts +7 -0
- package/dist/types/components/Nav/types.d.ts +15 -0
- package/dist/types/components/Pagination/index.d.ts +18 -0
- package/dist/types/components/Pagination/types.d.ts +16 -0
- package/dist/types/components/Popconfirm/index.d.ts +262 -0
- package/dist/types/components/Popconfirm/types.d.ts +27 -0
- package/dist/types/components/Popover/index.d.ts +150 -0
- package/dist/types/components/Progress/index.d.ts +21 -0
- package/dist/types/components/Progress/types.d.ts +9 -0
- package/dist/types/components/RouterNav/index.d.ts +2 -0
- package/dist/types/components/Switch/index.d.ts +13 -0
- package/dist/types/components/Switch/types.d.ts +6 -0
- package/dist/types/components/Table/index.d.ts +35 -0
- package/dist/types/components/Table/types.d.ts +4 -0
- package/dist/types/components/Timer/index.d.ts +6 -0
- package/dist/types/components/Tooltip/TooltipContent.d.ts +17 -0
- package/dist/types/components/Tooltip/TooltipItem.d.ts +45 -0
- package/dist/types/components/Tooltip/TooltipLayer.d.ts +2 -0
- package/dist/types/components/Tooltip/index.d.ts +42 -0
- package/dist/types/components/Tooltip/manager.d.ts +18 -0
- package/dist/types/components/Tooltip/types.d.ts +54 -0
- package/dist/types/components/Tooltip/useTooltip.d.ts +8 -0
- package/dist/types/components/Warn/index.d.ts +20 -0
- package/dist/types/components/Warn/types.d.ts +6 -0
- package/dist/types/components/Watermark/index.d.ts +28 -0
- package/dist/types/components/Watermark/types.d.ts +14 -0
- package/dist/types/components/Watermark/useWatermarkBg.d.ts +6 -0
- package/dist/types/components/helpers.d.ts +14 -0
- package/dist/types/components/index.d.ts +21 -0
- package/dist/types/directives/index.d.ts +9 -0
- package/dist/types/directives/vBackTop.d.ts +3 -0
- package/dist/types/directives/vDelayIn.d.ts +3 -0
- package/dist/types/directives/vHoldPointer.d.ts +3 -0
- package/dist/types/directives/vLazy.d.ts +3 -0
- package/dist/types/directives/vLoading.d.ts +3 -0
- package/dist/types/directives/vRipple.d.ts +3 -0
- package/dist/types/directives/vSlideIn.d.ts +3 -0
- package/dist/types/directives/vTextJump.d.ts +3 -0
- package/dist/types/directives/vTooltip.d.ts +7 -0
- package/dist/types/hooks/index.d.ts +5 -0
- package/dist/types/hooks/useAudio.d.ts +38 -0
- package/dist/types/hooks/useElementScroll.d.ts +32 -0
- package/dist/types/hooks/useGSAP.d.ts +34 -0
- package/dist/types/hooks/useRefreshRate.d.ts +5 -0
- package/dist/types/hooks/useWindowBackTop.d.ts +14 -0
- package/dist/types/icons/brands.d.ts +589 -0
- package/dist/types/icons/regular.d.ts +275 -0
- package/dist/types/icons/solid.d.ts +2002 -0
- package/dist/types/router/index.d.ts +2 -0
- package/dist/types/utils/chance.d.ts +7 -0
- package/dist/types/utils/copyToClipboard.d.ts +6 -0
- package/dist/types/utils/debounce.d.ts +16 -0
- package/dist/types/utils/deepClone.d.ts +6 -0
- package/dist/types/utils/deepEqual.d.ts +5 -0
- package/dist/types/utils/dialog.d.ts +12 -0
- package/dist/types/utils/getId.d.ts +6 -0
- package/dist/types/utils/getRandomColor.d.ts +4 -0
- package/dist/types/utils/getRandomInt.d.ts +6 -0
- package/dist/types/utils/getRandomStr.d.ts +6 -0
- package/dist/types/utils/index.d.ts +23 -0
- package/dist/types/utils/injectStyles.d.ts +9 -0
- package/dist/types/utils/isElementOverflow.d.ts +20 -0
- package/dist/types/utils/isEmpty.d.ts +6 -0
- package/dist/types/utils/isMobile.d.ts +6 -0
- package/dist/types/utils/isObject.d.ts +4 -0
- package/dist/types/utils/isPromise.d.ts +6 -0
- package/dist/types/utils/localStorage.d.ts +24 -0
- package/dist/types/utils/msg.d.ts +20 -0
- package/dist/types/utils/omit.d.ts +6 -0
- package/dist/types/utils/pick.d.ts +6 -0
- package/dist/types/utils/sessionStorage.d.ts +24 -0
- package/dist/types/utils/shuffleArray.d.ts +6 -0
- package/dist/types/utils/throttle.d.ts +9 -0
- package/dist/types/views/TestButton.d.ts +2 -0
- package/dist/types/views/TestCheckbox.d.ts +2 -0
- package/dist/types/views/TestCollapse.d.ts +2 -0
- package/dist/types/views/TestDialog.d.ts +2 -0
- package/dist/types/views/TestHome.d.ts +2 -0
- package/dist/types/views/TestIcon.d.ts +2 -0
- package/dist/types/views/TestMessage.d.ts +2 -0
- package/dist/types/views/TestModal.d.ts +2 -0
- package/dist/types/views/TestNav.d.ts +2 -0
- package/dist/types/views/TestPager.d.ts +2 -0
- package/dist/types/views/TestPopconfirm.d.ts +4 -0
- package/dist/types/views/TestProgress.d.ts +2 -0
- package/dist/types/views/TestSwitch.d.ts +2 -0
- package/dist/types/views/TestTable.d.ts +2 -0
- package/dist/types/views/TestTimer.d.ts +19 -0
- package/dist/types/views/TestTooltip.d.ts +2 -0
- package/dist/types/views/TestVLoading.d.ts +2 -0
- package/dist/types/views/TestWarn.d.ts +2 -0
- package/dist/types/views/TestWatermark.d.ts +2 -0
- package/dist/utils/chance.js +7 -0
- package/dist/utils/copyToClipboard.js +19 -0
- package/dist/utils/debounce.js +14 -0
- package/dist/utils/deepClone.js +17 -0
- package/dist/utils/deepEqual.js +40 -0
- package/dist/utils/dialog.js +47 -0
- package/dist/utils/getId.js +10 -0
- package/dist/utils/getRandomColor.js +4 -0
- package/dist/utils/getRandomInt.js +4 -0
- package/dist/utils/getRandomStr.js +5 -0
- package/dist/utils/injectStyles.js +24 -0
- package/dist/utils/isElementOverflow.js +22 -0
- package/dist/utils/isEmpty.js +4 -0
- package/dist/utils/isMobile.js +7 -0
- package/dist/utils/isObject.js +4 -0
- package/dist/utils/isPromise.js +7 -0
- package/dist/utils/localStorage.js +50 -0
- package/dist/utils/msg.js +24 -0
- package/dist/utils/omit.js +9 -0
- package/dist/utils/pick.js +9 -0
- package/dist/utils/sessionStorage.js +47 -0
- package/dist/utils/shuffleArray.js +10 -0
- package/dist/utils/throttle.js +11 -0
- package/dist/utils.js +50 -0
- package/package.json +102 -0
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
import { offset as st, flip as rt, shift as ct, hide as lt, arrow as ft, computePosition as ut } from "../../../../../@floating-ui_core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.js";
|
|
2
|
+
import { createCoords as m, rectToClientRect as J, round as A, max as E, min as V, floor as D } from "../../../../../@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";
|
|
3
|
+
import { getOverflowAncestors as z, isElement as v, getDocumentElement as b, getWindow as O, getFrameElement as U, getComputedStyle as R, isHTMLElement as T, isTopLayer as $, getParentNode as W, isLastTraversableNode as H, isTableElement as ht, isContainingBlock as Q, getContainingBlock as at, getNodeName as _, isOverflowElement as q, getNodeScroll as I, isWebKit as Y } from "../../../../../@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js";
|
|
4
|
+
function Z(t) {
|
|
5
|
+
const e = R(t);
|
|
6
|
+
let o = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
|
|
7
|
+
const i = T(t), r = i ? t.offsetWidth : o, s = i ? t.offsetHeight : n, c = A(o) !== r || A(n) !== s;
|
|
8
|
+
return c && (o = r, n = s), {
|
|
9
|
+
width: o,
|
|
10
|
+
height: n,
|
|
11
|
+
$: c
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
function X(t) {
|
|
15
|
+
return v(t) ? t : t.contextElement;
|
|
16
|
+
}
|
|
17
|
+
function F(t) {
|
|
18
|
+
const e = X(t);
|
|
19
|
+
if (!T(e))
|
|
20
|
+
return m(1);
|
|
21
|
+
const o = e.getBoundingClientRect(), {
|
|
22
|
+
width: n,
|
|
23
|
+
height: i,
|
|
24
|
+
$: r
|
|
25
|
+
} = Z(e);
|
|
26
|
+
let s = (r ? A(o.width) : o.width) / n, c = (r ? A(o.height) : o.height) / i;
|
|
27
|
+
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
28
|
+
x: s,
|
|
29
|
+
y: c
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
const dt = /* @__PURE__ */ m(0);
|
|
33
|
+
function tt(t) {
|
|
34
|
+
const e = O(t);
|
|
35
|
+
return !Y() || !e.visualViewport ? dt : {
|
|
36
|
+
x: e.visualViewport.offsetLeft,
|
|
37
|
+
y: e.visualViewport.offsetTop
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function gt(t, e, o) {
|
|
41
|
+
return e === void 0 && (e = !1), !o || e && o !== O(t) ? !1 : e;
|
|
42
|
+
}
|
|
43
|
+
function L(t, e, o, n) {
|
|
44
|
+
e === void 0 && (e = !1), o === void 0 && (o = !1);
|
|
45
|
+
const i = t.getBoundingClientRect(), r = X(t);
|
|
46
|
+
let s = m(1);
|
|
47
|
+
e && (n ? v(n) && (s = F(n)) : s = F(t));
|
|
48
|
+
const c = gt(r, o, n) ? tt(r) : m(0);
|
|
49
|
+
let l = (i.left + c.x) / s.x, f = (i.top + c.y) / s.y, u = i.width / s.x, a = i.height / s.y;
|
|
50
|
+
if (r) {
|
|
51
|
+
const d = O(r), h = n && v(n) ? O(n) : n;
|
|
52
|
+
let w = d, p = U(w);
|
|
53
|
+
for (; p && n && h !== w; ) {
|
|
54
|
+
const y = F(p), g = p.getBoundingClientRect(), x = R(p), C = g.left + (p.clientLeft + parseFloat(x.paddingLeft)) * y.x, S = g.top + (p.clientTop + parseFloat(x.paddingTop)) * y.y;
|
|
55
|
+
l *= y.x, f *= y.y, u *= y.x, a *= y.y, l += C, f += S, w = O(p), p = U(w);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return J({
|
|
59
|
+
width: u,
|
|
60
|
+
height: a,
|
|
61
|
+
x: l,
|
|
62
|
+
y: f
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
function M(t, e) {
|
|
66
|
+
const o = I(t).scrollLeft;
|
|
67
|
+
return e ? e.left + o : L(b(t)).left + o;
|
|
68
|
+
}
|
|
69
|
+
function et(t, e) {
|
|
70
|
+
const o = t.getBoundingClientRect(), n = o.left + e.scrollLeft - M(t, o), i = o.top + e.scrollTop;
|
|
71
|
+
return {
|
|
72
|
+
x: n,
|
|
73
|
+
y: i
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function pt(t) {
|
|
77
|
+
let {
|
|
78
|
+
elements: e,
|
|
79
|
+
rect: o,
|
|
80
|
+
offsetParent: n,
|
|
81
|
+
strategy: i
|
|
82
|
+
} = t;
|
|
83
|
+
const r = i === "fixed", s = b(n), c = e ? $(e.floating) : !1;
|
|
84
|
+
if (n === s || c && r)
|
|
85
|
+
return o;
|
|
86
|
+
let l = {
|
|
87
|
+
scrollLeft: 0,
|
|
88
|
+
scrollTop: 0
|
|
89
|
+
}, f = m(1);
|
|
90
|
+
const u = m(0), a = T(n);
|
|
91
|
+
if ((a || !a && !r) && ((_(n) !== "body" || q(s)) && (l = I(n)), a)) {
|
|
92
|
+
const h = L(n);
|
|
93
|
+
f = F(n), u.x = h.x + n.clientLeft, u.y = h.y + n.clientTop;
|
|
94
|
+
}
|
|
95
|
+
const d = s && !a && !r ? et(s, l) : m(0);
|
|
96
|
+
return {
|
|
97
|
+
width: o.width * f.x,
|
|
98
|
+
height: o.height * f.y,
|
|
99
|
+
x: o.x * f.x - l.scrollLeft * f.x + u.x + d.x,
|
|
100
|
+
y: o.y * f.y - l.scrollTop * f.y + u.y + d.y
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function wt(t) {
|
|
104
|
+
return Array.from(t.getClientRects());
|
|
105
|
+
}
|
|
106
|
+
function yt(t) {
|
|
107
|
+
const e = b(t), o = I(t), n = t.ownerDocument.body, i = E(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = E(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
108
|
+
let s = -o.scrollLeft + M(t);
|
|
109
|
+
const c = -o.scrollTop;
|
|
110
|
+
return R(n).direction === "rtl" && (s += E(e.clientWidth, n.clientWidth) - i), {
|
|
111
|
+
width: i,
|
|
112
|
+
height: r,
|
|
113
|
+
x: s,
|
|
114
|
+
y: c
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
const K = 25;
|
|
118
|
+
function mt(t, e) {
|
|
119
|
+
const o = O(t), n = b(t), i = o.visualViewport;
|
|
120
|
+
let r = n.clientWidth, s = n.clientHeight, c = 0, l = 0;
|
|
121
|
+
if (i) {
|
|
122
|
+
r = i.width, s = i.height;
|
|
123
|
+
const u = Y();
|
|
124
|
+
(!u || u && e === "fixed") && (c = i.offsetLeft, l = i.offsetTop);
|
|
125
|
+
}
|
|
126
|
+
const f = M(n);
|
|
127
|
+
if (f <= 0) {
|
|
128
|
+
const u = n.ownerDocument, a = u.body, d = getComputedStyle(a), h = u.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, w = Math.abs(n.clientWidth - a.clientWidth - h);
|
|
129
|
+
w <= K && (r -= w);
|
|
130
|
+
} else f <= K && (r += f);
|
|
131
|
+
return {
|
|
132
|
+
width: r,
|
|
133
|
+
height: s,
|
|
134
|
+
x: c,
|
|
135
|
+
y: l
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
function xt(t, e) {
|
|
139
|
+
const o = L(t, !0, e === "fixed"), n = o.top + t.clientTop, i = o.left + t.clientLeft, r = T(t) ? F(t) : m(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = i * r.x, f = n * r.y;
|
|
140
|
+
return {
|
|
141
|
+
width: s,
|
|
142
|
+
height: c,
|
|
143
|
+
x: l,
|
|
144
|
+
y: f
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
function j(t, e, o) {
|
|
148
|
+
let n;
|
|
149
|
+
if (e === "viewport")
|
|
150
|
+
n = mt(t, o);
|
|
151
|
+
else if (e === "document")
|
|
152
|
+
n = yt(b(t));
|
|
153
|
+
else if (v(e))
|
|
154
|
+
n = xt(e, o);
|
|
155
|
+
else {
|
|
156
|
+
const i = tt(t);
|
|
157
|
+
n = {
|
|
158
|
+
x: e.x - i.x,
|
|
159
|
+
y: e.y - i.y,
|
|
160
|
+
width: e.width,
|
|
161
|
+
height: e.height
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
return J(n);
|
|
165
|
+
}
|
|
166
|
+
function ot(t, e) {
|
|
167
|
+
const o = W(t);
|
|
168
|
+
return o === e || !v(o) || H(o) ? !1 : R(o).position === "fixed" || ot(o, e);
|
|
169
|
+
}
|
|
170
|
+
function vt(t, e) {
|
|
171
|
+
const o = e.get(t);
|
|
172
|
+
if (o)
|
|
173
|
+
return o;
|
|
174
|
+
let n = z(t, [], !1).filter((c) => v(c) && _(c) !== "body"), i = null;
|
|
175
|
+
const r = R(t).position === "fixed";
|
|
176
|
+
let s = r ? W(t) : t;
|
|
177
|
+
for (; v(s) && !H(s); ) {
|
|
178
|
+
const c = R(s), l = Q(s);
|
|
179
|
+
!l && c.position === "fixed" && (i = null), (r ? !l && !i : !l && c.position === "static" && !!i && (i.position === "absolute" || i.position === "fixed") || q(s) && !l && ot(t, s)) ? n = n.filter((u) => u !== s) : i = c, s = W(s);
|
|
180
|
+
}
|
|
181
|
+
return e.set(t, n), n;
|
|
182
|
+
}
|
|
183
|
+
function Rt(t) {
|
|
184
|
+
let {
|
|
185
|
+
element: e,
|
|
186
|
+
boundary: o,
|
|
187
|
+
rootBoundary: n,
|
|
188
|
+
strategy: i
|
|
189
|
+
} = t;
|
|
190
|
+
const s = [...o === "clippingAncestors" ? $(e) ? [] : vt(e, this._c) : [].concat(o), n], c = j(e, s[0], i);
|
|
191
|
+
let l = c.top, f = c.right, u = c.bottom, a = c.left;
|
|
192
|
+
for (let d = 1; d < s.length; d++) {
|
|
193
|
+
const h = j(e, s[d], i);
|
|
194
|
+
l = E(h.top, l), f = V(h.right, f), u = V(h.bottom, u), a = E(h.left, a);
|
|
195
|
+
}
|
|
196
|
+
return {
|
|
197
|
+
width: f - a,
|
|
198
|
+
height: u - l,
|
|
199
|
+
x: a,
|
|
200
|
+
y: l
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
function bt(t) {
|
|
204
|
+
const {
|
|
205
|
+
width: e,
|
|
206
|
+
height: o
|
|
207
|
+
} = Z(t);
|
|
208
|
+
return {
|
|
209
|
+
width: e,
|
|
210
|
+
height: o
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
function Ct(t, e, o) {
|
|
214
|
+
const n = T(e), i = b(e), r = o === "fixed", s = L(t, !0, r, e);
|
|
215
|
+
let c = {
|
|
216
|
+
scrollLeft: 0,
|
|
217
|
+
scrollTop: 0
|
|
218
|
+
};
|
|
219
|
+
const l = m(0);
|
|
220
|
+
function f() {
|
|
221
|
+
l.x = M(i);
|
|
222
|
+
}
|
|
223
|
+
if (n || !n && !r)
|
|
224
|
+
if ((_(e) !== "body" || q(i)) && (c = I(e)), n) {
|
|
225
|
+
const h = L(e, !0, r, e);
|
|
226
|
+
l.x = h.x + e.clientLeft, l.y = h.y + e.clientTop;
|
|
227
|
+
} else i && f();
|
|
228
|
+
r && !n && i && f();
|
|
229
|
+
const u = i && !n && !r ? et(i, c) : m(0), a = s.left + c.scrollLeft - l.x - u.x, d = s.top + c.scrollTop - l.y - u.y;
|
|
230
|
+
return {
|
|
231
|
+
x: a,
|
|
232
|
+
y: d,
|
|
233
|
+
width: s.width,
|
|
234
|
+
height: s.height
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
function N(t) {
|
|
238
|
+
return R(t).position === "static";
|
|
239
|
+
}
|
|
240
|
+
function G(t, e) {
|
|
241
|
+
if (!T(t) || R(t).position === "fixed")
|
|
242
|
+
return null;
|
|
243
|
+
if (e)
|
|
244
|
+
return e(t);
|
|
245
|
+
let o = t.offsetParent;
|
|
246
|
+
return b(t) === o && (o = o.ownerDocument.body), o;
|
|
247
|
+
}
|
|
248
|
+
function nt(t, e) {
|
|
249
|
+
const o = O(t);
|
|
250
|
+
if ($(t))
|
|
251
|
+
return o;
|
|
252
|
+
if (!T(t)) {
|
|
253
|
+
let i = W(t);
|
|
254
|
+
for (; i && !H(i); ) {
|
|
255
|
+
if (v(i) && !N(i))
|
|
256
|
+
return i;
|
|
257
|
+
i = W(i);
|
|
258
|
+
}
|
|
259
|
+
return o;
|
|
260
|
+
}
|
|
261
|
+
let n = G(t, e);
|
|
262
|
+
for (; n && ht(n) && N(n); )
|
|
263
|
+
n = G(n, e);
|
|
264
|
+
return n && H(n) && N(n) && !Q(n) ? o : n || at(t) || o;
|
|
265
|
+
}
|
|
266
|
+
const Ot = async function(t) {
|
|
267
|
+
const e = this.getOffsetParent || nt, o = this.getDimensions, n = await o(t.floating);
|
|
268
|
+
return {
|
|
269
|
+
reference: Ct(t.reference, await e(t.floating), t.strategy),
|
|
270
|
+
floating: {
|
|
271
|
+
x: 0,
|
|
272
|
+
y: 0,
|
|
273
|
+
width: n.width,
|
|
274
|
+
height: n.height
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
function Lt(t) {
|
|
279
|
+
return R(t).direction === "rtl";
|
|
280
|
+
}
|
|
281
|
+
const Tt = {
|
|
282
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: pt,
|
|
283
|
+
getDocumentElement: b,
|
|
284
|
+
getClippingRect: Rt,
|
|
285
|
+
getOffsetParent: nt,
|
|
286
|
+
getElementRects: Ot,
|
|
287
|
+
getClientRects: wt,
|
|
288
|
+
getDimensions: bt,
|
|
289
|
+
getScale: F,
|
|
290
|
+
isElement: v,
|
|
291
|
+
isRTL: Lt
|
|
292
|
+
};
|
|
293
|
+
function it(t, e) {
|
|
294
|
+
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
295
|
+
}
|
|
296
|
+
function Et(t, e) {
|
|
297
|
+
let o = null, n;
|
|
298
|
+
const i = b(t);
|
|
299
|
+
function r() {
|
|
300
|
+
var c;
|
|
301
|
+
clearTimeout(n), (c = o) == null || c.disconnect(), o = null;
|
|
302
|
+
}
|
|
303
|
+
function s(c, l) {
|
|
304
|
+
c === void 0 && (c = !1), l === void 0 && (l = 1), r();
|
|
305
|
+
const f = t.getBoundingClientRect(), {
|
|
306
|
+
left: u,
|
|
307
|
+
top: a,
|
|
308
|
+
width: d,
|
|
309
|
+
height: h
|
|
310
|
+
} = f;
|
|
311
|
+
if (c || e(), !d || !h)
|
|
312
|
+
return;
|
|
313
|
+
const w = D(a), p = D(i.clientWidth - (u + d)), y = D(i.clientHeight - (a + h)), g = D(u), C = {
|
|
314
|
+
rootMargin: -w + "px " + -p + "px " + -y + "px " + -g + "px",
|
|
315
|
+
threshold: E(0, V(1, l)) || 1
|
|
316
|
+
};
|
|
317
|
+
let S = !0;
|
|
318
|
+
function k(P) {
|
|
319
|
+
const B = P[0].intersectionRatio;
|
|
320
|
+
if (B !== l) {
|
|
321
|
+
if (!S)
|
|
322
|
+
return s();
|
|
323
|
+
B ? s(!1, B) : n = setTimeout(() => {
|
|
324
|
+
s(!1, 1e-7);
|
|
325
|
+
}, 1e3);
|
|
326
|
+
}
|
|
327
|
+
B === 1 && !it(f, t.getBoundingClientRect()) && s(), S = !1;
|
|
328
|
+
}
|
|
329
|
+
try {
|
|
330
|
+
o = new IntersectionObserver(k, {
|
|
331
|
+
...C,
|
|
332
|
+
// Handle <iframe>s
|
|
333
|
+
root: i.ownerDocument
|
|
334
|
+
});
|
|
335
|
+
} catch {
|
|
336
|
+
o = new IntersectionObserver(k, C);
|
|
337
|
+
}
|
|
338
|
+
o.observe(t);
|
|
339
|
+
}
|
|
340
|
+
return s(!0), r;
|
|
341
|
+
}
|
|
342
|
+
function Bt(t, e, o, n) {
|
|
343
|
+
n === void 0 && (n = {});
|
|
344
|
+
const {
|
|
345
|
+
ancestorScroll: i = !0,
|
|
346
|
+
ancestorResize: r = !0,
|
|
347
|
+
elementResize: s = typeof ResizeObserver == "function",
|
|
348
|
+
layoutShift: c = typeof IntersectionObserver == "function",
|
|
349
|
+
animationFrame: l = !1
|
|
350
|
+
} = n, f = X(t), u = i || r ? [...f ? z(f) : [], ...e ? z(e) : []] : [];
|
|
351
|
+
u.forEach((g) => {
|
|
352
|
+
i && g.addEventListener("scroll", o, {
|
|
353
|
+
passive: !0
|
|
354
|
+
}), r && g.addEventListener("resize", o);
|
|
355
|
+
});
|
|
356
|
+
const a = f && c ? Et(f, o) : null;
|
|
357
|
+
let d = -1, h = null;
|
|
358
|
+
s && (h = new ResizeObserver((g) => {
|
|
359
|
+
let [x] = g;
|
|
360
|
+
x && x.target === f && h && e && (h.unobserve(e), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
|
|
361
|
+
var C;
|
|
362
|
+
(C = h) == null || C.observe(e);
|
|
363
|
+
})), o();
|
|
364
|
+
}), f && !l && h.observe(f), e && h.observe(e));
|
|
365
|
+
let w, p = l ? L(t) : null;
|
|
366
|
+
l && y();
|
|
367
|
+
function y() {
|
|
368
|
+
const g = L(t);
|
|
369
|
+
p && !it(p, g) && o(), p = g, w = requestAnimationFrame(y);
|
|
370
|
+
}
|
|
371
|
+
return o(), () => {
|
|
372
|
+
var g;
|
|
373
|
+
u.forEach((x) => {
|
|
374
|
+
i && x.removeEventListener("scroll", o), r && x.removeEventListener("resize", o);
|
|
375
|
+
}), a?.(), (g = h) == null || g.disconnect(), h = null, l && cancelAnimationFrame(w);
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
const Dt = st, At = ct, Ht = rt, It = lt, Mt = ft, Nt = (t, e, o) => {
|
|
379
|
+
const n = /* @__PURE__ */ new Map(), i = {
|
|
380
|
+
platform: Tt,
|
|
381
|
+
...o
|
|
382
|
+
}, r = {
|
|
383
|
+
...i.platform,
|
|
384
|
+
_c: n
|
|
385
|
+
};
|
|
386
|
+
return ut(t, e, {
|
|
387
|
+
...i,
|
|
388
|
+
platform: r
|
|
389
|
+
});
|
|
390
|
+
};
|
|
391
|
+
export {
|
|
392
|
+
Mt as arrow,
|
|
393
|
+
Bt as autoUpdate,
|
|
394
|
+
Nt as computePosition,
|
|
395
|
+
Ht as flip,
|
|
396
|
+
z as getOverflowAncestors,
|
|
397
|
+
It as hide,
|
|
398
|
+
Dt as offset,
|
|
399
|
+
Tt as platform,
|
|
400
|
+
At as shift
|
|
401
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
function u() {
|
|
2
|
+
return typeof window < "u";
|
|
3
|
+
}
|
|
4
|
+
function a(t) {
|
|
5
|
+
return m(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
6
|
+
}
|
|
7
|
+
function i(t) {
|
|
8
|
+
var n;
|
|
9
|
+
return (t == null || (n = t.ownerDocument) == null ? void 0 : n.defaultView) || window;
|
|
10
|
+
}
|
|
11
|
+
function L(t) {
|
|
12
|
+
var n;
|
|
13
|
+
return (n = (m(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : n.documentElement;
|
|
14
|
+
}
|
|
15
|
+
function m(t) {
|
|
16
|
+
return u() ? t instanceof Node || t instanceof i(t).Node : !1;
|
|
17
|
+
}
|
|
18
|
+
function h(t) {
|
|
19
|
+
return u() ? t instanceof Element || t instanceof i(t).Element : !1;
|
|
20
|
+
}
|
|
21
|
+
function g(t) {
|
|
22
|
+
return u() ? t instanceof HTMLElement || t instanceof i(t).HTMLElement : !1;
|
|
23
|
+
}
|
|
24
|
+
function p(t) {
|
|
25
|
+
return !u() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof i(t).ShadowRoot;
|
|
26
|
+
}
|
|
27
|
+
function y(t) {
|
|
28
|
+
const {
|
|
29
|
+
overflow: n,
|
|
30
|
+
overflowX: r,
|
|
31
|
+
overflowY: c,
|
|
32
|
+
display: e
|
|
33
|
+
} = b(t);
|
|
34
|
+
return /auto|scroll|overlay|hidden|clip/.test(n + c + r) && e !== "inline" && e !== "contents";
|
|
35
|
+
}
|
|
36
|
+
function _(t) {
|
|
37
|
+
return /^(table|td|th)$/.test(a(t));
|
|
38
|
+
}
|
|
39
|
+
function T(t) {
|
|
40
|
+
try {
|
|
41
|
+
if (t.matches(":popover-open"))
|
|
42
|
+
return !0;
|
|
43
|
+
} catch {
|
|
44
|
+
}
|
|
45
|
+
try {
|
|
46
|
+
return t.matches(":modal");
|
|
47
|
+
} catch {
|
|
48
|
+
return !1;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
const v = /transform|translate|scale|rotate|perspective|filter/, C = /paint|layout|strict|content/, o = (t) => !!t && t !== "none";
|
|
52
|
+
let s;
|
|
53
|
+
function D(t) {
|
|
54
|
+
const n = h(t) ? b(t) : t;
|
|
55
|
+
return o(n.transform) || o(n.translate) || o(n.scale) || o(n.rotate) || o(n.perspective) || !R() && (o(n.backdropFilter) || o(n.filter)) || v.test(n.willChange || "") || C.test(n.contain || "");
|
|
56
|
+
}
|
|
57
|
+
function W(t) {
|
|
58
|
+
let n = f(t);
|
|
59
|
+
for (; g(n) && !N(n); ) {
|
|
60
|
+
if (D(n))
|
|
61
|
+
return n;
|
|
62
|
+
if (T(n))
|
|
63
|
+
return null;
|
|
64
|
+
n = f(n);
|
|
65
|
+
}
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
function R() {
|
|
69
|
+
return s == null && (s = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), s;
|
|
70
|
+
}
|
|
71
|
+
function N(t) {
|
|
72
|
+
return /^(html|body|#document)$/.test(a(t));
|
|
73
|
+
}
|
|
74
|
+
function b(t) {
|
|
75
|
+
return i(t).getComputedStyle(t);
|
|
76
|
+
}
|
|
77
|
+
function $(t) {
|
|
78
|
+
return h(t) ? {
|
|
79
|
+
scrollLeft: t.scrollLeft,
|
|
80
|
+
scrollTop: t.scrollTop
|
|
81
|
+
} : {
|
|
82
|
+
scrollLeft: t.scrollX,
|
|
83
|
+
scrollTop: t.scrollY
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function f(t) {
|
|
87
|
+
if (a(t) === "html")
|
|
88
|
+
return t;
|
|
89
|
+
const n = (
|
|
90
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
91
|
+
t.assignedSlot || // DOM Element detected.
|
|
92
|
+
t.parentNode || // ShadowRoot detected.
|
|
93
|
+
p(t) && t.host || // Fallback.
|
|
94
|
+
L(t)
|
|
95
|
+
);
|
|
96
|
+
return p(n) ? n.host : n;
|
|
97
|
+
}
|
|
98
|
+
function S(t) {
|
|
99
|
+
const n = f(t);
|
|
100
|
+
return N(n) ? t.ownerDocument ? t.ownerDocument.body : t.body : g(n) && y(n) ? n : S(n);
|
|
101
|
+
}
|
|
102
|
+
function w(t, n, r) {
|
|
103
|
+
var c;
|
|
104
|
+
n === void 0 && (n = []), r === void 0 && (r = !0);
|
|
105
|
+
const e = S(t), E = e === ((c = t.ownerDocument) == null ? void 0 : c.body), l = i(e);
|
|
106
|
+
if (E) {
|
|
107
|
+
const d = k(l);
|
|
108
|
+
return n.concat(l, l.visualViewport || [], y(e) ? e : [], d && r ? w(d) : []);
|
|
109
|
+
} else
|
|
110
|
+
return n.concat(e, w(e, [], r));
|
|
111
|
+
}
|
|
112
|
+
function k(t) {
|
|
113
|
+
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
114
|
+
}
|
|
115
|
+
export {
|
|
116
|
+
b as getComputedStyle,
|
|
117
|
+
W as getContainingBlock,
|
|
118
|
+
L as getDocumentElement,
|
|
119
|
+
k as getFrameElement,
|
|
120
|
+
S as getNearestOverflowAncestor,
|
|
121
|
+
a as getNodeName,
|
|
122
|
+
$ as getNodeScroll,
|
|
123
|
+
w as getOverflowAncestors,
|
|
124
|
+
f as getParentNode,
|
|
125
|
+
i as getWindow,
|
|
126
|
+
D as isContainingBlock,
|
|
127
|
+
h as isElement,
|
|
128
|
+
g as isHTMLElement,
|
|
129
|
+
N as isLastTraversableNode,
|
|
130
|
+
m as isNode,
|
|
131
|
+
y as isOverflowElement,
|
|
132
|
+
p as isShadowRoot,
|
|
133
|
+
_ as isTableElement,
|
|
134
|
+
T as isTopLayer,
|
|
135
|
+
R as isWebKit
|
|
136
|
+
};
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
const S = ["top", "right", "bottom", "left"], m = Math.min, h = Math.max, w = Math.round, C = Math.floor, j = (t) => ({
|
|
2
|
+
x: t,
|
|
3
|
+
y: t
|
|
4
|
+
}), p = {
|
|
5
|
+
left: "right",
|
|
6
|
+
right: "left",
|
|
7
|
+
bottom: "top",
|
|
8
|
+
top: "bottom"
|
|
9
|
+
};
|
|
10
|
+
function L(t, n, e) {
|
|
11
|
+
return h(t, m(n, e));
|
|
12
|
+
}
|
|
13
|
+
function E(t, n) {
|
|
14
|
+
return typeof t == "function" ? t(n) : t;
|
|
15
|
+
}
|
|
16
|
+
function g(t) {
|
|
17
|
+
return t.split("-")[0];
|
|
18
|
+
}
|
|
19
|
+
function a(t) {
|
|
20
|
+
return t.split("-")[1];
|
|
21
|
+
}
|
|
22
|
+
function x(t) {
|
|
23
|
+
return t === "x" ? "y" : "x";
|
|
24
|
+
}
|
|
25
|
+
function b(t) {
|
|
26
|
+
return t === "y" ? "height" : "width";
|
|
27
|
+
}
|
|
28
|
+
function d(t) {
|
|
29
|
+
const n = t[0];
|
|
30
|
+
return n === "t" || n === "b" ? "y" : "x";
|
|
31
|
+
}
|
|
32
|
+
function A(t) {
|
|
33
|
+
return x(d(t));
|
|
34
|
+
}
|
|
35
|
+
function R(t, n, e) {
|
|
36
|
+
e === void 0 && (e = !1);
|
|
37
|
+
const r = a(t), i = A(t), o = b(i);
|
|
38
|
+
let c = i === "x" ? r === (e ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
39
|
+
return n.reference[o] > n.floating[o] && (c = f(c)), [c, f(c)];
|
|
40
|
+
}
|
|
41
|
+
function T(t) {
|
|
42
|
+
const n = f(t);
|
|
43
|
+
return [s(t), n, s(n)];
|
|
44
|
+
}
|
|
45
|
+
function s(t) {
|
|
46
|
+
return t.includes("start") ? t.replace("start", "end") : t.replace("end", "start");
|
|
47
|
+
}
|
|
48
|
+
const u = ["left", "right"], l = ["right", "left"], P = ["top", "bottom"], y = ["bottom", "top"];
|
|
49
|
+
function O(t, n, e) {
|
|
50
|
+
switch (t) {
|
|
51
|
+
case "top":
|
|
52
|
+
case "bottom":
|
|
53
|
+
return e ? n ? l : u : n ? u : l;
|
|
54
|
+
case "left":
|
|
55
|
+
case "right":
|
|
56
|
+
return n ? P : y;
|
|
57
|
+
default:
|
|
58
|
+
return [];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function k(t, n, e, r) {
|
|
62
|
+
const i = a(t);
|
|
63
|
+
let o = O(g(t), e === "start", r);
|
|
64
|
+
return i && (o = o.map((c) => c + "-" + i), n && (o = o.concat(o.map(s)))), o;
|
|
65
|
+
}
|
|
66
|
+
function f(t) {
|
|
67
|
+
const n = g(t);
|
|
68
|
+
return p[n] + t.slice(n.length);
|
|
69
|
+
}
|
|
70
|
+
function M(t) {
|
|
71
|
+
return {
|
|
72
|
+
top: 0,
|
|
73
|
+
right: 0,
|
|
74
|
+
bottom: 0,
|
|
75
|
+
left: 0,
|
|
76
|
+
...t
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function q(t) {
|
|
80
|
+
return typeof t != "number" ? M(t) : {
|
|
81
|
+
top: t,
|
|
82
|
+
right: t,
|
|
83
|
+
bottom: t,
|
|
84
|
+
left: t
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
function z(t) {
|
|
88
|
+
const {
|
|
89
|
+
x: n,
|
|
90
|
+
y: e,
|
|
91
|
+
width: r,
|
|
92
|
+
height: i
|
|
93
|
+
} = t;
|
|
94
|
+
return {
|
|
95
|
+
width: r,
|
|
96
|
+
height: i,
|
|
97
|
+
top: e,
|
|
98
|
+
left: n,
|
|
99
|
+
right: n + r,
|
|
100
|
+
bottom: e + i,
|
|
101
|
+
x: n,
|
|
102
|
+
y: e
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
export {
|
|
106
|
+
L as clamp,
|
|
107
|
+
j as createCoords,
|
|
108
|
+
E as evaluate,
|
|
109
|
+
M as expandPaddingObject,
|
|
110
|
+
C as floor,
|
|
111
|
+
a as getAlignment,
|
|
112
|
+
A as getAlignmentAxis,
|
|
113
|
+
R as getAlignmentSides,
|
|
114
|
+
b as getAxisLength,
|
|
115
|
+
T as getExpandedPlacements,
|
|
116
|
+
s as getOppositeAlignmentPlacement,
|
|
117
|
+
x as getOppositeAxis,
|
|
118
|
+
k as getOppositeAxisPlacements,
|
|
119
|
+
f as getOppositePlacement,
|
|
120
|
+
q as getPaddingObject,
|
|
121
|
+
g as getSide,
|
|
122
|
+
d as getSideAxis,
|
|
123
|
+
h as max,
|
|
124
|
+
m as min,
|
|
125
|
+
z as rectToClientRect,
|
|
126
|
+
w as round,
|
|
127
|
+
S as sides
|
|
128
|
+
};
|