@expofp/floorplan 3.10.1 → 3.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{Button-DdPvRBTh.js → Button-DmPeJZCN.js} +6 -6
- package/dist/browser/{CookieConsent-C39dYjaQ.js → CookieConsent-6-9q2wKV.js} +7 -7
- package/dist/browser/{Debug-B5r6LCAX.js → Debug-3bI5vwTv.js} +7 -7
- package/dist/browser/{Demo-Dbrjn3oi.js → Demo-qTtvWifi.js} +10 -10
- package/dist/browser/{Free-DUcGDkLZ.js → Free-CD_OvzMT.js} +10 -10
- package/dist/browser/{Gallery-CvO5_8hs.js → Gallery-D16-00mk.js} +10 -10
- package/dist/browser/{GpsLoader-Cybs-6Z0.js → GpsLoader-CMPI_EJr.js} +19 -19
- package/dist/browser/{KioskStore-Df_lwtgJ.js → KioskStore-KhqffTn9.js} +30 -30
- package/dist/browser/{MaplibreAdapter-BgOzaHlx.js → MaplibreAdapter-CxVjU49j.js} +749 -614
- package/dist/browser/{ModalContainer-DXVCm1fb.js → ModalContainer-RI1x2sgo.js} +11 -11
- package/dist/browser/{PermissionNotice-B0OJFFky.js → PermissionNotice-D8kO5oWK.js} +7 -7
- package/dist/browser/{SetKioskMode-BdOX40be.js → SetKioskMode-CVACOg2n.js} +11 -11
- package/dist/browser/ShowKiosk-9Cegzzmp.js +28 -0
- package/dist/browser/{TouchHand-RDWCILm_.js → TouchHand-Ep4vi1-O.js} +4 -4
- package/dist/browser/{ViewerMenuPanel-BlCzm_mm.js → ViewerMenuPanel-DjMPzBGY.js} +10 -10
- package/dist/browser/{add-debug-secret-listener-lYBneebf.js → add-debug-secret-listener-sVpxJOA4.js} +1 -1
- package/dist/browser/{boolean-editor-C_bdHxC2.js → boolean-editor-DbKheXB7.js} +45 -45
- package/dist/browser/{bootIntercom-Bf4CaruD.js → bootIntercom-BwUrDpiz.js} +2 -2
- package/dist/browser/{booth-by-xy-WnHwiopn.js → booth-by-xy-DRUiuOmc.js} +260 -245
- package/dist/browser/{browser-BGtGwkTn.js → browser-DfAAgCEL.js} +2 -2
- package/dist/browser/bundle.json +61 -61
- package/dist/browser/{classnames-DRy7JPyJ.js → classnames-DDqQQkCN.js} +2 -2
- package/dist/browser/{client-BE52OM0U.js → client-CZSclqZM.js} +10 -10
- package/dist/browser/{components-BfKSs6sY.js → components-Bjyqu35r.js} +1675 -1675
- package/dist/browser/{debug-overlay-mKmIzOYk.js → debug-overlay-CGt1pj-M.js} +355 -355
- package/dist/browser/{debug-ui-DLxMK2XU.js → debug-ui-D-D_vlp1.js} +6 -6
- package/dist/browser/{dist-eojWwYB5.js → dist-CL_uyaoa.js} +3 -3
- package/dist/browser/{dist-QsCYWHCu.js → dist-ONDtUhT2.js} +5 -5
- package/dist/browser/{dist-DSRSA5oz.js → dist-V33BDzLb.js} +64 -63
- package/dist/browser/{efp-debug-init-C5HgsgC2.js → efp-debug-init-DxEQuRHk.js} +2 -2
- package/dist/browser/{enum-editor-BqpFqXiM.js → enum-editor-DG92oZeF.js} +478 -478
- package/dist/browser/{es5-7bslpbjj.js → es5-BSWs3YWr.js} +2 -2
- package/dist/browser/{event-not-found-Bc1SpnKw.js → event-not-found-Z4wb-LNc.js} +1 -1
- package/dist/browser/{exports-CYJRF2aW.js → exports-BLV4-zfL.js} +449 -443
- package/dist/browser/{favicon-CRiidRYo.js → favicon-BQW1E3bU.js} +1 -1
- package/dist/browser/{fetch-retry.umd-Btwt1fg_.js → fetch-retry.umd-DC6Ql4P0.js} +2 -2
- package/dist/browser/{flex-ITkzmA3C.js → flex-B_4SOC_u.js} +7 -7
- package/dist/browser/{floorplan.loader-DJVlfwah.js → floorplan.loader-DoJ2VQu0.js} +1284 -1282
- package/dist/browser/{floorplan.ready-7KwBZy9I.js → floorplan.ready-B_BwJrtz.js} +282 -282
- package/dist/browser/{fuse-CcYz7YAl.js → fuse-z0Cnj-cM.js} +4 -4
- package/dist/browser/{i18n-CeVxHTr1.js → i18n-xEZCBKNV.js} +19 -20
- package/dist/browser/index.js +12 -12
- package/dist/browser/{index.module-CV2WVv52.js → index.module-DLdW0sj8.js} +4 -4
- package/dist/browser/{is-webview-BOqof5Uq.js → is-webview-DyfiukCX.js} +1 -1
- package/dist/browser/{jsx-runtime-BiSrB4Oo.js → jsx-runtime-DAN07kgB.js} +2 -2
- package/dist/browser/{lib-Dg9vXDVM.js → lib-BeWX12Ej.js} +4 -4
- package/dist/browser/{loadImage-VYhbBgH6.js → loadImage-CArumIxk.js} +4 -4
- package/dist/browser/{logDeviceInfo-B8Mi-9H5.js → logDeviceInfo-DWxMGiZR.js} +9 -9
- package/dist/browser/{main-D6ItQIYj.js → main-Bc1iznBR.js} +1 -1
- package/dist/browser/{mobx-Deoo_wpx.js → mobx-Dzavco9D.js} +4 -4
- package/dist/browser/{particles.min-BNwqgit-.js → particles.min-CHtISs00.js} +2 -2
- package/dist/browser/{prop-types-CuEYshV7.js → prop-types-BQxsUoxX.js} +2 -2
- package/dist/browser/{react-BMPhuMz9.js → react-Cu706Ph1.js} +2 -2
- package/dist/browser/{react-dom-DSdkXj0b.js → react-dom-DT1n8Muz.js} +3 -3
- package/dist/browser/{reset-all-settings-C2yTiJ1V.js → reset-all-settings-D2RthoP4.js} +7 -7
- package/dist/browser/{rolldown-runtime-I1EwXf_t.js → rolldown-runtime-DHef_8fH.js} +1 -1
- package/dist/browser/{settings-Dr8bs0FB.js → settings--Y0n4PSR.js} +2 -2
- package/dist/browser/{settings-item-DjfyQTQB.js → settings-item-Dv1G9gTh.js} +15 -15
- package/dist/browser/{store-CVdrQCza.js → store-C1iT-e-6.js} +5123 -5042
- package/dist/browser/{string-editor-3sN4j-ci.js → string-editor-BfNPvbRL.js} +22 -22
- package/dist/browser/{theme-BSTLt6eV.js → theme-byX3VrfS.js} +927 -930
- package/dist/browser/{ui-CiFfwrN8.js → ui-DJZFvwjb.js} +8 -8
- package/dist/browser/{useRenderTarget-DF7LdnYr.js → useRenderTarget-OQs5aKcF.js} +4 -4
- package/dist/esm/components/Map/drawing/config/config-booth-badge-eligibility.d.ts +28 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge-eligibility.js +1 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge.js +1 -1
- package/dist/esm/components/Maplibre/MaplibreAdapter.js +1 -1
- package/dist/esm/components/Maplibre/MaplibreWrapper.js +1 -1
- package/dist/esm/components/Maplibre/styles/mapbox-streets-bright.d.ts +3 -0
- package/dist/esm/components/Maplibre/styles/mapbox-streets-bright.js +16 -0
- package/dist/esm/components/Maplibre/styles/mapbox-streets.d.ts +3 -0
- package/dist/esm/components/Maplibre/styles/mapbox-streets.js +16 -0
- package/dist/esm/components/Maplibre/useCameraReactions.d.ts +4 -3
- package/dist/esm/components/Maplibre/useCameraReactions.js +1 -1
- package/dist/esm/components/Maplibre/utils/geo-config.d.ts +5 -8
- package/dist/esm/components/Maplibre/utils/geo-config.js +1 -1
- package/dist/esm/components/Maplibre/utils/map-helpers.js +1 -1
- package/dist/esm/components/Maplibre/utils/solver.d.ts +6 -7
- package/dist/esm/components/Maplibre/utils/solver.js +1 -1
- package/dist/esm/data/Flags.d.ts +4 -0
- package/dist/esm/data/svg.d.ts +2 -1
- package/dist/esm/data/svg.js +1 -1
- package/dist/esm/renderer/RendererService.d.ts +2 -1
- package/dist/esm/renderer/RendererService.js +1 -1
- package/dist/esm/store/LayerStore.d.ts +1 -0
- package/dist/esm/store/LayerStore.js +1 -1
- package/dist/esm/store/UIState.js +1 -1
- package/dist/esm/utils/gps.js +1 -1
- package/dist/esm/utils/planBearing.d.ts +14 -0
- package/dist/esm/utils/planBearing.js +1 -0
- package/dist/esm/utils/scene-bounds.d.ts +57 -0
- package/dist/esm/utils/scene-bounds.js +1 -0
- package/package.json +8 -8
- package/dist/browser/ShowKiosk-cvnSTpd2.js +0 -28
|
@@ -1,186 +1,29 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.11.0" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
6
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "79b39fdf-323b-4b9d-ac58-c9e7d1f5b025", e._sentryDebugIdIdentifier = "sentry-dbid-79b39fdf-323b-4b9d-ac58-c9e7d1f5b025");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { t } from "./react-
|
|
11
|
-
import { t as n } from "./jsx-runtime-
|
|
12
|
-
import { t as r } from "./react-dom-
|
|
13
|
-
import {
|
|
14
|
-
import { c as
|
|
15
|
-
import {
|
|
16
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-visually-hidden@1.2.3_@types+react-dom@19.2.3_@types+react@19.2.17__@ty_070bcfa32421a5876e7dcb93369fcbee/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
|
|
17
|
-
var b = /* @__PURE__ */ e(r(), 1), x = /* @__PURE__ */ e(t(), 1), S = n(), C = Object.freeze({
|
|
18
|
-
position: "absolute",
|
|
19
|
-
border: 0,
|
|
20
|
-
width: 1,
|
|
21
|
-
height: 1,
|
|
22
|
-
padding: 0,
|
|
23
|
-
margin: -1,
|
|
24
|
-
overflow: "hidden",
|
|
25
|
-
clip: "rect(0, 0, 0, 0)",
|
|
26
|
-
whiteSpace: "nowrap",
|
|
27
|
-
wordWrap: "normal"
|
|
28
|
-
}), w = "VisuallyHidden", T = x.forwardRef((e, t) => /* @__PURE__ */ (0, S.jsx)(_.span, {
|
|
29
|
-
...e,
|
|
30
|
-
ref: t,
|
|
31
|
-
style: {
|
|
32
|
-
...C,
|
|
33
|
-
...e.style
|
|
34
|
-
}
|
|
35
|
-
}));
|
|
36
|
-
T.displayName = w;
|
|
37
|
-
var E = T;
|
|
38
|
-
function D(e) {
|
|
39
|
-
let t = e + "CollectionProvider", [n, r] = h(t), [i, a] = n(t, {
|
|
40
|
-
collectionRef: { current: null },
|
|
41
|
-
itemMap: /* @__PURE__ */ new Map()
|
|
42
|
-
}), c = (e) => {
|
|
43
|
-
let { scope: t, children: n } = e, r = x.useRef(null), a = x.useRef(/* @__PURE__ */ new Map()).current;
|
|
44
|
-
return /* @__PURE__ */ (0, S.jsx)(i, {
|
|
45
|
-
scope: t,
|
|
46
|
-
itemMap: a,
|
|
47
|
-
collectionRef: r,
|
|
48
|
-
children: n
|
|
49
|
-
});
|
|
50
|
-
};
|
|
51
|
-
c.displayName = t;
|
|
52
|
-
let l = e + "CollectionSlot", u = s(l), d = x.forwardRef((e, t) => {
|
|
53
|
-
let { scope: n, children: r } = e;
|
|
54
|
-
return /* @__PURE__ */ (0, S.jsx)(u, {
|
|
55
|
-
ref: o(t, a(l, n).collectionRef),
|
|
56
|
-
children: r
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
d.displayName = l;
|
|
60
|
-
let f = e + "CollectionItemSlot", p = "data-radix-collection-item", m = s(f), g = x.forwardRef((e, t) => {
|
|
61
|
-
let { scope: n, children: r, ...i } = e, s = x.useRef(null), c = o(t, s), l = a(f, n);
|
|
62
|
-
return x.useEffect(() => (l.itemMap.set(s, {
|
|
63
|
-
ref: s,
|
|
64
|
-
...i
|
|
65
|
-
}), () => void l.itemMap.delete(s))), /* @__PURE__ */ (0, S.jsx)(m, {
|
|
66
|
-
[p]: "",
|
|
67
|
-
ref: c,
|
|
68
|
-
children: r
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
g.displayName = f;
|
|
72
|
-
function _(t) {
|
|
73
|
-
let n = a(e + "CollectionConsumer", t);
|
|
74
|
-
return x.useCallback(() => {
|
|
75
|
-
let e = n.collectionRef.current;
|
|
76
|
-
if (!e) return [];
|
|
77
|
-
let t = Array.from(e.querySelectorAll(`[${p}]`));
|
|
78
|
-
return Array.from(n.itemMap.values()).sort((e, n) => t.indexOf(e.ref.current) - t.indexOf(n.ref.current));
|
|
79
|
-
}, [n.collectionRef, n.itemMap]);
|
|
80
|
-
}
|
|
81
|
-
return [
|
|
82
|
-
{
|
|
83
|
-
Provider: c,
|
|
84
|
-
Slot: d,
|
|
85
|
-
ItemSlot: g
|
|
86
|
-
},
|
|
87
|
-
_,
|
|
88
|
-
r
|
|
89
|
-
];
|
|
90
|
-
}
|
|
91
|
-
//#endregion
|
|
92
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.5_@types+react-dom@19.2.3_@types+react@19.2.17__@types+rea_ed84e7f4276746b2c3b5c094541d596b/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
93
|
-
function O(e, t) {
|
|
94
|
-
return x.useReducer((e, n) => {
|
|
95
|
-
let r = t[e][n];
|
|
96
|
-
return r == null ? e : r;
|
|
97
|
-
}, e);
|
|
98
|
-
}
|
|
99
|
-
var k = (e) => {
|
|
100
|
-
let { present: t, children: n } = e, r = A(t), i = typeof n == "function" ? n({ present: r.isPresent }) : x.Children.only(n), a = o(r.ref, M(i));
|
|
101
|
-
return typeof n == "function" || r.isPresent ? x.cloneElement(i, { ref: a }) : null;
|
|
102
|
-
};
|
|
103
|
-
k.displayName = "Presence";
|
|
104
|
-
function A(e) {
|
|
105
|
-
let [t, n] = x.useState(), r = x.useRef(null), i = x.useRef(e), a = x.useRef("none"), [o, s] = O(e ? "mounted" : "unmounted", {
|
|
106
|
-
mounted: {
|
|
107
|
-
UNMOUNT: "unmounted",
|
|
108
|
-
ANIMATION_OUT: "unmountSuspended"
|
|
109
|
-
},
|
|
110
|
-
unmountSuspended: {
|
|
111
|
-
MOUNT: "mounted",
|
|
112
|
-
ANIMATION_END: "unmounted"
|
|
113
|
-
},
|
|
114
|
-
unmounted: { MOUNT: "mounted" }
|
|
115
|
-
});
|
|
116
|
-
return x.useEffect(() => {
|
|
117
|
-
let e = j(r.current);
|
|
118
|
-
a.current = o === "mounted" ? e : "none";
|
|
119
|
-
}, [o]), g(() => {
|
|
120
|
-
let t = r.current, n = i.current;
|
|
121
|
-
if (n !== e) {
|
|
122
|
-
let r = a.current, o = j(t);
|
|
123
|
-
e ? s("MOUNT") : o === "none" || (t == null ? void 0 : t.display) === "none" ? s("UNMOUNT") : s(n && r !== o ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
|
|
124
|
-
}
|
|
125
|
-
}, [e, s]), g(() => {
|
|
126
|
-
if (t) {
|
|
127
|
-
var e;
|
|
128
|
-
let n, o = (e = t.ownerDocument.defaultView) == null ? window : e, c = (e) => {
|
|
129
|
-
let a = j(r.current).includes(CSS.escape(e.animationName));
|
|
130
|
-
if (e.target === t && a && (s("ANIMATION_END"), !i.current)) {
|
|
131
|
-
let e = t.style.animationFillMode;
|
|
132
|
-
t.style.animationFillMode = "forwards", n = o.setTimeout(() => {
|
|
133
|
-
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = e);
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
}, l = (e) => {
|
|
137
|
-
e.target === t && (a.current = j(r.current));
|
|
138
|
-
};
|
|
139
|
-
return t.addEventListener("animationstart", l), t.addEventListener("animationcancel", c), t.addEventListener("animationend", c), () => {
|
|
140
|
-
o.clearTimeout(n), t.removeEventListener("animationstart", l), t.removeEventListener("animationcancel", c), t.removeEventListener("animationend", c);
|
|
141
|
-
};
|
|
142
|
-
} else s("ANIMATION_END");
|
|
143
|
-
}, [t, s]), {
|
|
144
|
-
isPresent: ["mounted", "unmountSuspended"].includes(o),
|
|
145
|
-
ref: x.useCallback((e) => {
|
|
146
|
-
r.current = e ? getComputedStyle(e) : null, n(e);
|
|
147
|
-
}, [])
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
function j(e) {
|
|
151
|
-
return (e == null ? void 0 : e.animationName) || "none";
|
|
152
|
-
}
|
|
153
|
-
function M(e) {
|
|
154
|
-
var t, n;
|
|
155
|
-
let r = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, i = r && "isReactWarning" in r && r.isReactWarning;
|
|
156
|
-
return i ? e.ref : (r = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, i = r && "isReactWarning" in r && r.isReactWarning, i ? e.props.ref : e.props.ref || e.ref);
|
|
157
|
-
}
|
|
158
|
-
//#endregion
|
|
9
|
+
import { r as e } from "./rolldown-runtime-DHef_8fH.js";
|
|
10
|
+
import { t } from "./react-Cu706Ph1.js";
|
|
11
|
+
import { t as n } from "./jsx-runtime-DAN07kgB.js";
|
|
12
|
+
import { t as r } from "./react-dom-DT1n8Muz.js";
|
|
13
|
+
import { t as i } from "./classnames-DDqQQkCN.js";
|
|
14
|
+
import { a, c as o, i as s, n as c, o as l, r as u, t as d } from "./dist-V33BDzLb.js";
|
|
15
|
+
import { C as f, E as p, O as m, T as h, _ as g, o as _, v, w as y } from "./flex-B_4SOC_u.js";
|
|
159
16
|
//#region ../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.2.17_react@19.2.7/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
160
|
-
var
|
|
161
|
-
function
|
|
162
|
-
let [t, n] = x.useState(
|
|
163
|
-
return
|
|
164
|
-
e || n((e) => e == null ? String(
|
|
17
|
+
var b = n(), x = /* @__PURE__ */ e(t(), 1), S = x.useId || (() => void 0), C = 0;
|
|
18
|
+
function w(e) {
|
|
19
|
+
let [t, n] = x.useState(S());
|
|
20
|
+
return a(() => {
|
|
21
|
+
e || n((e) => e == null ? String(C++) : e);
|
|
165
22
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
166
23
|
}
|
|
167
24
|
//#endregion
|
|
168
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-direction@1.1.1_@types+react@19.2.17_react@19.2.7/node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
169
|
-
var te = x.createContext(void 0), ne = (e) => {
|
|
170
|
-
let { dir: t, children: n } = e;
|
|
171
|
-
return /* @__PURE__ */ (0, S.jsx)(te.Provider, {
|
|
172
|
-
value: t,
|
|
173
|
-
children: n
|
|
174
|
-
});
|
|
175
|
-
};
|
|
176
|
-
function re(e) {
|
|
177
|
-
let t = x.useContext(te);
|
|
178
|
-
return e || t || "ltr";
|
|
179
|
-
}
|
|
180
|
-
var ie = ne;
|
|
181
|
-
//#endregion
|
|
182
25
|
//#region ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@19.2.17_react@19.2.7/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
183
|
-
function
|
|
26
|
+
function T(e) {
|
|
184
27
|
let t = x.useRef(e);
|
|
185
28
|
return x.useEffect(() => {
|
|
186
29
|
t.current = e;
|
|
@@ -191,11 +34,11 @@ function F(e) {
|
|
|
191
34
|
}
|
|
192
35
|
//#endregion
|
|
193
36
|
//#region ../../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.1_@types+react@19.2.17_react@19.2.7/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
|
|
194
|
-
function
|
|
37
|
+
function E(e, t = (() => {
|
|
195
38
|
var e;
|
|
196
39
|
return (e = globalThis) == null ? void 0 : e.document;
|
|
197
40
|
})()) {
|
|
198
|
-
let n =
|
|
41
|
+
let n = T(e);
|
|
199
42
|
x.useEffect(() => {
|
|
200
43
|
let e = (e) => {
|
|
201
44
|
e.key === "Escape" && n(e);
|
|
@@ -205,71 +48,71 @@ function ae(e, t = (() => {
|
|
|
205
48
|
}
|
|
206
49
|
//#endregion
|
|
207
50
|
//#region ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.11_@types+react-dom@19.2.3_@types+react@19.2.17___64f9d1145ba8ff7d3061acf98a5f69a9/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
208
|
-
var
|
|
51
|
+
var D = "DismissableLayer", O = "dismissableLayer.update", k = "dismissableLayer.pointerDownOutside", A = "dismissableLayer.focusOutside", j, M = x.createContext({
|
|
209
52
|
layers: /* @__PURE__ */ new Set(),
|
|
210
53
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
211
54
|
branches: /* @__PURE__ */ new Set()
|
|
212
|
-
}),
|
|
55
|
+
}), N = x.forwardRef((e, t) => {
|
|
213
56
|
var n, r;
|
|
214
|
-
let { disableOutsidePointerEvents: i = !1, onEscapeKeyDown: a, onPointerDownOutside:
|
|
215
|
-
let t = e.target, n = [...
|
|
216
|
-
!
|
|
217
|
-
},
|
|
57
|
+
let { disableOutsidePointerEvents: i = !1, onEscapeKeyDown: a, onPointerDownOutside: o, onFocusOutside: s, onInteractOutside: u, onDismiss: d, ...f } = e, p = x.useContext(M), [h, g] = x.useState(null), _ = (n = h == null ? void 0 : h.ownerDocument) == null ? (r = globalThis) == null ? void 0 : r.document : n, [, v] = x.useState({}), y = m(t, (e) => g(e)), S = Array.from(p.layers), [C] = [...p.layersWithOutsidePointerEventsDisabled].slice(-1), w = S.indexOf(C), T = h ? S.indexOf(h) : -1, D = p.layersWithOutsidePointerEventsDisabled.size > 0, k = T >= w, A = ne((e) => {
|
|
58
|
+
let t = e.target, n = [...p.branches].some((e) => e.contains(t));
|
|
59
|
+
!k || n || (o == null || o(e), u == null || u(e), e.defaultPrevented || d == null || d());
|
|
60
|
+
}, _), N = re((e) => {
|
|
218
61
|
let t = e.target;
|
|
219
|
-
[...
|
|
220
|
-
},
|
|
221
|
-
return
|
|
222
|
-
T ===
|
|
223
|
-
},
|
|
224
|
-
if (
|
|
225
|
-
i &&
|
|
62
|
+
[...p.branches].some((e) => e.contains(t)) || (s == null || s(e), u == null || u(e), e.defaultPrevented || d == null || d());
|
|
63
|
+
}, _);
|
|
64
|
+
return E((e) => {
|
|
65
|
+
T === p.layers.size - 1 && (a == null || a(e), !e.defaultPrevented && d && (e.preventDefault(), d()));
|
|
66
|
+
}, _), x.useEffect(() => {
|
|
67
|
+
if (h) return i && (p.layersWithOutsidePointerEventsDisabled.size === 0 && (j = _.body.style.pointerEvents, _.body.style.pointerEvents = "none"), p.layersWithOutsidePointerEventsDisabled.add(h)), p.layers.add(h), ie(), () => {
|
|
68
|
+
i && p.layersWithOutsidePointerEventsDisabled.size === 1 && (_.body.style.pointerEvents = j);
|
|
226
69
|
};
|
|
227
70
|
}, [
|
|
228
|
-
|
|
229
|
-
|
|
71
|
+
h,
|
|
72
|
+
_,
|
|
230
73
|
i,
|
|
231
|
-
|
|
74
|
+
p
|
|
232
75
|
]), x.useEffect(() => () => {
|
|
233
|
-
|
|
234
|
-
}, [
|
|
76
|
+
h && (p.layers.delete(h), p.layersWithOutsidePointerEventsDisabled.delete(h), ie());
|
|
77
|
+
}, [h, p]), x.useEffect(() => {
|
|
235
78
|
let e = () => v({});
|
|
236
|
-
return document.addEventListener(
|
|
237
|
-
}, []), /* @__PURE__ */ (0,
|
|
238
|
-
...
|
|
79
|
+
return document.addEventListener(O, e), () => document.removeEventListener(O, e);
|
|
80
|
+
}, []), /* @__PURE__ */ (0, b.jsx)(c.div, {
|
|
81
|
+
...f,
|
|
239
82
|
ref: y,
|
|
240
83
|
style: {
|
|
241
|
-
pointerEvents:
|
|
84
|
+
pointerEvents: D ? k ? "auto" : "none" : void 0,
|
|
242
85
|
...e.style
|
|
243
86
|
},
|
|
244
|
-
onFocusCapture:
|
|
245
|
-
onBlurCapture:
|
|
246
|
-
onPointerDownCapture:
|
|
87
|
+
onFocusCapture: l(e.onFocusCapture, N.onFocusCapture),
|
|
88
|
+
onBlurCapture: l(e.onBlurCapture, N.onBlurCapture),
|
|
89
|
+
onPointerDownCapture: l(e.onPointerDownCapture, A.onPointerDownCapture)
|
|
247
90
|
});
|
|
248
91
|
});
|
|
249
|
-
|
|
250
|
-
var
|
|
251
|
-
let n = x.useContext(
|
|
92
|
+
N.displayName = D;
|
|
93
|
+
var ee = "DismissableLayerBranch", te = x.forwardRef((e, t) => {
|
|
94
|
+
let n = x.useContext(M), r = x.useRef(null), i = m(t, r);
|
|
252
95
|
return x.useEffect(() => {
|
|
253
96
|
let e = r.current;
|
|
254
97
|
if (e) return n.branches.add(e), () => {
|
|
255
98
|
n.branches.delete(e);
|
|
256
99
|
};
|
|
257
|
-
}, [n.branches]), /* @__PURE__ */ (0,
|
|
100
|
+
}, [n.branches]), /* @__PURE__ */ (0, b.jsx)(c.div, {
|
|
258
101
|
...e,
|
|
259
102
|
ref: i
|
|
260
103
|
});
|
|
261
104
|
});
|
|
262
|
-
|
|
263
|
-
function
|
|
105
|
+
te.displayName = ee;
|
|
106
|
+
function ne(e, t = (() => {
|
|
264
107
|
var e;
|
|
265
108
|
return (e = globalThis) == null ? void 0 : e.document;
|
|
266
109
|
})()) {
|
|
267
|
-
let n =
|
|
110
|
+
let n = T(e), r = x.useRef(!1), i = x.useRef(() => {});
|
|
268
111
|
return x.useEffect(() => {
|
|
269
112
|
let e = (e) => {
|
|
270
113
|
if (e.target && !r.current) {
|
|
271
114
|
let r = function() {
|
|
272
|
-
|
|
115
|
+
ae(k, n, a, { discrete: !0 });
|
|
273
116
|
}, a = { originalEvent: e };
|
|
274
117
|
e.pointerType === "touch" ? (t.removeEventListener("click", i.current), i.current = r, t.addEventListener("click", i.current, { once: !0 })) : r();
|
|
275
118
|
} else t.removeEventListener("click", i.current);
|
|
@@ -282,14 +125,14 @@ function pe(e, t = (() => {
|
|
|
282
125
|
};
|
|
283
126
|
}, [t, n]), { onPointerDownCapture: () => r.current = !0 };
|
|
284
127
|
}
|
|
285
|
-
function
|
|
128
|
+
function re(e, t = (() => {
|
|
286
129
|
var e;
|
|
287
130
|
return (e = globalThis) == null ? void 0 : e.document;
|
|
288
131
|
})()) {
|
|
289
|
-
let n =
|
|
132
|
+
let n = T(e), r = x.useRef(!1);
|
|
290
133
|
return x.useEffect(() => {
|
|
291
134
|
let e = (e) => {
|
|
292
|
-
e.target && !r.current &&
|
|
135
|
+
e.target && !r.current && ae(A, n, { originalEvent: e }, { discrete: !1 });
|
|
293
136
|
};
|
|
294
137
|
return t.addEventListener("focusin", e), () => t.removeEventListener("focusin", e);
|
|
295
138
|
}, [t, n]), {
|
|
@@ -297,25 +140,25 @@ function me(e, t = (() => {
|
|
|
297
140
|
onBlurCapture: () => r.current = !1
|
|
298
141
|
};
|
|
299
142
|
}
|
|
300
|
-
function
|
|
301
|
-
let e = new CustomEvent(
|
|
143
|
+
function ie() {
|
|
144
|
+
let e = new CustomEvent(O);
|
|
302
145
|
document.dispatchEvent(e);
|
|
303
146
|
}
|
|
304
|
-
function
|
|
147
|
+
function ae(e, t, n, { discrete: r }) {
|
|
305
148
|
let i = n.originalEvent.target, a = new CustomEvent(e, {
|
|
306
149
|
bubbles: !1,
|
|
307
150
|
cancelable: !0,
|
|
308
151
|
detail: n
|
|
309
152
|
});
|
|
310
|
-
t && i.addEventListener(e, t, { once: !0 }), r ?
|
|
153
|
+
t && i.addEventListener(e, t, { once: !0 }), r ? u(i, a) : i.dispatchEvent(a);
|
|
311
154
|
}
|
|
312
155
|
//#endregion
|
|
313
156
|
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.7_@types+react-dom@19.2.3_@types+react@19.2.17__@types+_9536e4dbce45e384eb9c4dc8fa8df392/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
314
|
-
var
|
|
157
|
+
var oe = "focusScope.autoFocusOnMount", se = "focusScope.autoFocusOnUnmount", ce = {
|
|
315
158
|
bubbles: !1,
|
|
316
159
|
cancelable: !0
|
|
317
|
-
},
|
|
318
|
-
let { loop: n = !1, trapped: r = !1, onMountAutoFocus: i, onUnmountAutoFocus: a, ...
|
|
160
|
+
}, le = "FocusScope", ue = x.forwardRef((e, t) => {
|
|
161
|
+
let { loop: n = !1, trapped: r = !1, onMountAutoFocus: i, onUnmountAutoFocus: a, ...o } = e, [s, l] = x.useState(null), u = T(i), d = T(a), f = x.useRef(null), p = m(t, (e) => l(e)), h = x.useRef({
|
|
319
162
|
paused: !1,
|
|
320
163
|
pause() {
|
|
321
164
|
this.paused = !0;
|
|
@@ -327,19 +170,19 @@ var _e = "focusScope.autoFocusOnMount", ve = "focusScope.autoFocusOnUnmount", ye
|
|
|
327
170
|
x.useEffect(() => {
|
|
328
171
|
if (r) {
|
|
329
172
|
let e = function(e) {
|
|
330
|
-
if (
|
|
173
|
+
if (h.paused || !s) return;
|
|
331
174
|
let t = e.target;
|
|
332
|
-
|
|
175
|
+
s.contains(t) ? f.current = t : F(f.current, { select: !0 });
|
|
333
176
|
}, t = function(e) {
|
|
334
|
-
if (
|
|
177
|
+
if (h.paused || !s) return;
|
|
335
178
|
let t = e.relatedTarget;
|
|
336
|
-
t !== null && (
|
|
179
|
+
t !== null && (s.contains(t) || F(f.current, { select: !0 }));
|
|
337
180
|
}, n = function(e) {
|
|
338
|
-
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 &&
|
|
181
|
+
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && F(s);
|
|
339
182
|
};
|
|
340
183
|
document.addEventListener("focusin", e), document.addEventListener("focusout", t);
|
|
341
184
|
let r = new MutationObserver(n);
|
|
342
|
-
return
|
|
185
|
+
return s && r.observe(s, {
|
|
343
186
|
childList: !0,
|
|
344
187
|
subtree: !0
|
|
345
188
|
}), () => {
|
|
@@ -348,58 +191,58 @@ var _e = "focusScope.autoFocusOnMount", ve = "focusScope.autoFocusOnUnmount", ye
|
|
|
348
191
|
}
|
|
349
192
|
}, [
|
|
350
193
|
r,
|
|
351
|
-
|
|
352
|
-
|
|
194
|
+
s,
|
|
195
|
+
h.paused
|
|
353
196
|
]), x.useEffect(() => {
|
|
354
|
-
if (
|
|
355
|
-
|
|
197
|
+
if (s) {
|
|
198
|
+
ge.add(h);
|
|
356
199
|
let e = document.activeElement;
|
|
357
|
-
if (!
|
|
358
|
-
let t = new CustomEvent(
|
|
359
|
-
|
|
200
|
+
if (!s.contains(e)) {
|
|
201
|
+
let t = new CustomEvent(oe, ce);
|
|
202
|
+
s.addEventListener(oe, u), s.dispatchEvent(t), t.defaultPrevented || (de(ye(pe(s)), { select: !0 }), document.activeElement === e && F(s));
|
|
360
203
|
}
|
|
361
204
|
return () => {
|
|
362
|
-
|
|
363
|
-
let t = new CustomEvent(
|
|
364
|
-
|
|
205
|
+
s.removeEventListener(oe, u), setTimeout(() => {
|
|
206
|
+
let t = new CustomEvent(se, ce);
|
|
207
|
+
s.addEventListener(se, d), s.dispatchEvent(t), t.defaultPrevented || F(e == null ? document.body : e, { select: !0 }), s.removeEventListener(se, d), ge.remove(h);
|
|
365
208
|
}, 0);
|
|
366
209
|
};
|
|
367
210
|
}
|
|
368
211
|
}, [
|
|
369
|
-
|
|
212
|
+
s,
|
|
370
213
|
u,
|
|
371
214
|
d,
|
|
372
|
-
|
|
215
|
+
h
|
|
373
216
|
]);
|
|
374
|
-
let
|
|
375
|
-
if (!n && !r ||
|
|
217
|
+
let g = x.useCallback((e) => {
|
|
218
|
+
if (!n && !r || h.paused) return;
|
|
376
219
|
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, i = document.activeElement;
|
|
377
220
|
if (t && i) {
|
|
378
|
-
let t = e.currentTarget, [r, a] =
|
|
379
|
-
r && a ? !e.shiftKey && i === a ? (e.preventDefault(), n &&
|
|
221
|
+
let t = e.currentTarget, [r, a] = fe(t);
|
|
222
|
+
r && a ? !e.shiftKey && i === a ? (e.preventDefault(), n && F(r, { select: !0 })) : e.shiftKey && i === r && (e.preventDefault(), n && F(a, { select: !0 })) : i === t && e.preventDefault();
|
|
380
223
|
}
|
|
381
224
|
}, [
|
|
382
225
|
n,
|
|
383
226
|
r,
|
|
384
|
-
|
|
227
|
+
h.paused
|
|
385
228
|
]);
|
|
386
|
-
return /* @__PURE__ */ (0,
|
|
229
|
+
return /* @__PURE__ */ (0, b.jsx)(c.div, {
|
|
387
230
|
tabIndex: -1,
|
|
388
|
-
...
|
|
231
|
+
...o,
|
|
389
232
|
ref: p,
|
|
390
|
-
onKeyDown:
|
|
233
|
+
onKeyDown: g
|
|
391
234
|
});
|
|
392
235
|
});
|
|
393
|
-
|
|
394
|
-
function
|
|
236
|
+
ue.displayName = le;
|
|
237
|
+
function de(e, { select: t = !1 } = {}) {
|
|
395
238
|
let n = document.activeElement;
|
|
396
|
-
for (let r of e) if (
|
|
239
|
+
for (let r of e) if (F(r, { select: t }), document.activeElement !== n) return;
|
|
397
240
|
}
|
|
398
|
-
function
|
|
399
|
-
let t =
|
|
400
|
-
return [
|
|
241
|
+
function fe(e) {
|
|
242
|
+
let t = pe(e);
|
|
243
|
+
return [me(t, e), me(t.reverse(), e)];
|
|
401
244
|
}
|
|
402
|
-
function
|
|
245
|
+
function pe(e) {
|
|
403
246
|
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
404
247
|
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
405
248
|
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
@@ -407,10 +250,10 @@ function we(e) {
|
|
|
407
250
|
for (; n.nextNode();) t.push(n.currentNode);
|
|
408
251
|
return t;
|
|
409
252
|
}
|
|
410
|
-
function
|
|
411
|
-
for (let n of e) if (!
|
|
253
|
+
function me(e, t) {
|
|
254
|
+
for (let n of e) if (!P(n, { upTo: t })) return n;
|
|
412
255
|
}
|
|
413
|
-
function
|
|
256
|
+
function P(e, { upTo: t }) {
|
|
414
257
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
415
258
|
for (; e;) {
|
|
416
259
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -419,94 +262,161 @@ function Ee(e, { upTo: t }) {
|
|
|
419
262
|
}
|
|
420
263
|
return !1;
|
|
421
264
|
}
|
|
422
|
-
function
|
|
265
|
+
function he(e) {
|
|
423
266
|
return e instanceof HTMLInputElement && "select" in e;
|
|
424
267
|
}
|
|
425
|
-
function
|
|
268
|
+
function F(e, { select: t = !1 } = {}) {
|
|
426
269
|
if (e && e.focus) {
|
|
427
270
|
let n = document.activeElement;
|
|
428
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
271
|
+
e.focus({ preventScroll: !0 }), e !== n && he(e) && t && e.select();
|
|
429
272
|
}
|
|
430
273
|
}
|
|
431
|
-
var
|
|
432
|
-
function
|
|
274
|
+
var ge = _e();
|
|
275
|
+
function _e() {
|
|
433
276
|
let e = [];
|
|
434
277
|
return {
|
|
435
278
|
add(t) {
|
|
436
279
|
let n = e[0];
|
|
437
|
-
t !== n && (n == null || n.pause()), e =
|
|
280
|
+
t !== n && (n == null || n.pause()), e = ve(e, t), e.unshift(t);
|
|
438
281
|
},
|
|
439
282
|
remove(t) {
|
|
440
283
|
var n;
|
|
441
|
-
e =
|
|
284
|
+
e = ve(e, t), (n = e[0]) == null || n.resume();
|
|
442
285
|
}
|
|
443
286
|
};
|
|
444
287
|
}
|
|
445
|
-
function
|
|
288
|
+
function ve(e, t) {
|
|
446
289
|
let n = [...e], r = n.indexOf(t);
|
|
447
290
|
return r !== -1 && n.splice(r, 1), n;
|
|
448
291
|
}
|
|
449
|
-
function
|
|
292
|
+
function ye(e) {
|
|
450
293
|
return e.filter((e) => e.tagName !== "A");
|
|
451
294
|
}
|
|
452
295
|
//#endregion
|
|
453
296
|
//#region ../../node_modules/.pnpm/@radix-ui+react-portal@1.1.9_@types+react-dom@19.2.3_@types+react@19.2.17__@types+react_696fa31548f65c4c4adc974210616225/node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
454
|
-
var
|
|
297
|
+
var be = /* @__PURE__ */ e(r(), 1), xe = "Portal", Se = x.forwardRef((e, t) => {
|
|
455
298
|
var n;
|
|
456
|
-
let { container: r, ...i } = e, [
|
|
457
|
-
|
|
458
|
-
let
|
|
459
|
-
return
|
|
299
|
+
let { container: r, ...i } = e, [o, s] = x.useState(!1);
|
|
300
|
+
a(() => s(!0), []);
|
|
301
|
+
let l = r || o && ((n = globalThis) == null || (n = n.document) == null ? void 0 : n.body);
|
|
302
|
+
return l ? be.createPortal(/* @__PURE__ */ (0, b.jsx)(c.div, {
|
|
460
303
|
...i,
|
|
461
304
|
ref: t
|
|
462
|
-
}),
|
|
305
|
+
}), l) : null;
|
|
463
306
|
});
|
|
464
|
-
|
|
307
|
+
Se.displayName = xe;
|
|
308
|
+
//#endregion
|
|
309
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.5_@types+react-dom@19.2.3_@types+react@19.2.17__@types+rea_ed84e7f4276746b2c3b5c094541d596b/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
310
|
+
function Ce(e, t) {
|
|
311
|
+
return x.useReducer((e, n) => {
|
|
312
|
+
let r = t[e][n];
|
|
313
|
+
return r == null ? e : r;
|
|
314
|
+
}, e);
|
|
315
|
+
}
|
|
316
|
+
var we = (e) => {
|
|
317
|
+
let { present: t, children: n } = e, r = Te(t), i = typeof n == "function" ? n({ present: r.isPresent }) : x.Children.only(n), a = m(r.ref, De(i));
|
|
318
|
+
return typeof n == "function" || r.isPresent ? x.cloneElement(i, { ref: a }) : null;
|
|
319
|
+
};
|
|
320
|
+
we.displayName = "Presence";
|
|
321
|
+
function Te(e) {
|
|
322
|
+
let [t, n] = x.useState(), r = x.useRef(null), i = x.useRef(e), o = x.useRef("none"), [s, c] = Ce(e ? "mounted" : "unmounted", {
|
|
323
|
+
mounted: {
|
|
324
|
+
UNMOUNT: "unmounted",
|
|
325
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
326
|
+
},
|
|
327
|
+
unmountSuspended: {
|
|
328
|
+
MOUNT: "mounted",
|
|
329
|
+
ANIMATION_END: "unmounted"
|
|
330
|
+
},
|
|
331
|
+
unmounted: { MOUNT: "mounted" }
|
|
332
|
+
});
|
|
333
|
+
return x.useEffect(() => {
|
|
334
|
+
let e = Ee(r.current);
|
|
335
|
+
o.current = s === "mounted" ? e : "none";
|
|
336
|
+
}, [s]), a(() => {
|
|
337
|
+
let t = r.current, n = i.current;
|
|
338
|
+
if (n !== e) {
|
|
339
|
+
let r = o.current, a = Ee(t);
|
|
340
|
+
e ? c("MOUNT") : a === "none" || (t == null ? void 0 : t.display) === "none" ? c("UNMOUNT") : c(n && r !== a ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
|
|
341
|
+
}
|
|
342
|
+
}, [e, c]), a(() => {
|
|
343
|
+
if (t) {
|
|
344
|
+
var e;
|
|
345
|
+
let n, a = (e = t.ownerDocument.defaultView) == null ? window : e, s = (e) => {
|
|
346
|
+
let o = Ee(r.current).includes(CSS.escape(e.animationName));
|
|
347
|
+
if (e.target === t && o && (c("ANIMATION_END"), !i.current)) {
|
|
348
|
+
let e = t.style.animationFillMode;
|
|
349
|
+
t.style.animationFillMode = "forwards", n = a.setTimeout(() => {
|
|
350
|
+
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = e);
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
}, l = (e) => {
|
|
354
|
+
e.target === t && (o.current = Ee(r.current));
|
|
355
|
+
};
|
|
356
|
+
return t.addEventListener("animationstart", l), t.addEventListener("animationcancel", s), t.addEventListener("animationend", s), () => {
|
|
357
|
+
a.clearTimeout(n), t.removeEventListener("animationstart", l), t.removeEventListener("animationcancel", s), t.removeEventListener("animationend", s);
|
|
358
|
+
};
|
|
359
|
+
} else c("ANIMATION_END");
|
|
360
|
+
}, [t, c]), {
|
|
361
|
+
isPresent: ["mounted", "unmountSuspended"].includes(s),
|
|
362
|
+
ref: x.useCallback((e) => {
|
|
363
|
+
r.current = e ? getComputedStyle(e) : null, n(e);
|
|
364
|
+
}, [])
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
function Ee(e) {
|
|
368
|
+
return (e == null ? void 0 : e.animationName) || "none";
|
|
369
|
+
}
|
|
370
|
+
function De(e) {
|
|
371
|
+
var t, n;
|
|
372
|
+
let r = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, i = r && "isReactWarning" in r && r.isReactWarning;
|
|
373
|
+
return i ? e.ref : (r = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, i = r && "isReactWarning" in r && r.isReactWarning, i ? e.props.ref : e.props.ref || e.ref);
|
|
374
|
+
}
|
|
465
375
|
//#endregion
|
|
466
376
|
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.3_@types+react@19.2.17_react@19.2.7/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
467
|
-
var
|
|
468
|
-
function
|
|
377
|
+
var Oe = 0;
|
|
378
|
+
function ke() {
|
|
469
379
|
x.useEffect(() => {
|
|
470
380
|
var e, t;
|
|
471
381
|
let n = document.querySelectorAll("[data-radix-focus-guard]");
|
|
472
|
-
return document.body.insertAdjacentElement("afterbegin", (e = n[0]) == null ?
|
|
473
|
-
|
|
382
|
+
return document.body.insertAdjacentElement("afterbegin", (e = n[0]) == null ? Ae() : e), document.body.insertAdjacentElement("beforeend", (t = n[1]) == null ? Ae() : t), Oe++, () => {
|
|
383
|
+
Oe === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((e) => e.remove()), Oe--;
|
|
474
384
|
};
|
|
475
385
|
}, []);
|
|
476
386
|
}
|
|
477
|
-
function
|
|
387
|
+
function Ae() {
|
|
478
388
|
let e = document.createElement("span");
|
|
479
389
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
480
390
|
}
|
|
481
391
|
//#endregion
|
|
482
392
|
//#region ../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
|
|
483
|
-
var
|
|
484
|
-
return
|
|
393
|
+
var I = function() {
|
|
394
|
+
return I = Object.assign || function(e) {
|
|
485
395
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
486
396
|
return e;
|
|
487
|
-
},
|
|
397
|
+
}, I.apply(this, arguments);
|
|
488
398
|
};
|
|
489
|
-
function
|
|
399
|
+
function je(e, t) {
|
|
490
400
|
var n = {};
|
|
491
401
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
492
402
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
493
403
|
return n;
|
|
494
404
|
}
|
|
495
|
-
function
|
|
405
|
+
function Me(e, t, n) {
|
|
496
406
|
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
497
407
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
498
408
|
}
|
|
499
409
|
//#endregion
|
|
500
410
|
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.17_react@19.2.7/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
501
|
-
var
|
|
411
|
+
var Ne = "right-scroll-bar-position", Pe = "width-before-scroll-bar", Fe = "with-scroll-bars-hidden", Ie = "--removed-body-scroll-bar-size";
|
|
502
412
|
//#endregion
|
|
503
413
|
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.17_react@19.2.7/node_modules/use-callback-ref/dist/es2015/assignRef.js
|
|
504
|
-
function
|
|
414
|
+
function Le(e, t) {
|
|
505
415
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
506
416
|
}
|
|
507
417
|
//#endregion
|
|
508
418
|
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.17_react@19.2.7/node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
509
|
-
function
|
|
419
|
+
function Re(e, t) {
|
|
510
420
|
var n = (0, x.useState)(function() {
|
|
511
421
|
return {
|
|
512
422
|
value: e,
|
|
@@ -526,33 +436,33 @@ function We(e, t) {
|
|
|
526
436
|
}
|
|
527
437
|
//#endregion
|
|
528
438
|
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.17_react@19.2.7/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
529
|
-
var
|
|
530
|
-
function
|
|
531
|
-
var n =
|
|
439
|
+
var ze = typeof window < "u" ? x.useLayoutEffect : x.useEffect, Be = /* @__PURE__ */ new WeakMap();
|
|
440
|
+
function Ve(e, t) {
|
|
441
|
+
var n = Re(t || null, function(t) {
|
|
532
442
|
return e.forEach(function(e) {
|
|
533
|
-
return
|
|
443
|
+
return Le(e, t);
|
|
534
444
|
});
|
|
535
445
|
});
|
|
536
|
-
return
|
|
537
|
-
var t =
|
|
446
|
+
return ze(function() {
|
|
447
|
+
var t = Be.get(n);
|
|
538
448
|
if (t) {
|
|
539
449
|
var r = new Set(t), i = new Set(e), a = n.current;
|
|
540
450
|
r.forEach(function(e) {
|
|
541
|
-
i.has(e) ||
|
|
451
|
+
i.has(e) || Le(e, null);
|
|
542
452
|
}), i.forEach(function(e) {
|
|
543
|
-
r.has(e) ||
|
|
453
|
+
r.has(e) || Le(e, a);
|
|
544
454
|
});
|
|
545
455
|
}
|
|
546
|
-
|
|
456
|
+
Be.set(n, e);
|
|
547
457
|
}, [e]), n;
|
|
548
458
|
}
|
|
549
459
|
//#endregion
|
|
550
460
|
//#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.17_react@19.2.7/node_modules/use-sidecar/dist/es2015/medium.js
|
|
551
|
-
function
|
|
461
|
+
function He(e) {
|
|
552
462
|
return e;
|
|
553
463
|
}
|
|
554
|
-
function
|
|
555
|
-
t === void 0 && (t =
|
|
464
|
+
function Ue(e, t) {
|
|
465
|
+
t === void 0 && (t = He);
|
|
556
466
|
var n = [], r = !1;
|
|
557
467
|
return {
|
|
558
468
|
read: function() {
|
|
@@ -605,35 +515,35 @@ function Ye(e, t) {
|
|
|
605
515
|
}
|
|
606
516
|
};
|
|
607
517
|
}
|
|
608
|
-
function
|
|
518
|
+
function We(e) {
|
|
609
519
|
e === void 0 && (e = {});
|
|
610
|
-
var t =
|
|
611
|
-
return t.options =
|
|
520
|
+
var t = Ue(null);
|
|
521
|
+
return t.options = I({
|
|
612
522
|
async: !0,
|
|
613
523
|
ssr: !1
|
|
614
524
|
}, e), t;
|
|
615
525
|
}
|
|
616
526
|
//#endregion
|
|
617
527
|
//#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.17_react@19.2.7/node_modules/use-sidecar/dist/es2015/exports.js
|
|
618
|
-
var
|
|
619
|
-
var t = e.sideCar, n =
|
|
528
|
+
var Ge = function(e) {
|
|
529
|
+
var t = e.sideCar, n = je(e, ["sideCar"]);
|
|
620
530
|
if (!t) throw Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
621
531
|
var r = t.read();
|
|
622
532
|
if (!r) throw Error("Sidecar medium not found");
|
|
623
|
-
return x.createElement(r,
|
|
533
|
+
return x.createElement(r, I({}, n));
|
|
624
534
|
};
|
|
625
|
-
|
|
626
|
-
function
|
|
627
|
-
return e.useMedium(t),
|
|
535
|
+
Ge.isSideCarExport = !0;
|
|
536
|
+
function Ke(e, t) {
|
|
537
|
+
return e.useMedium(t), Ge;
|
|
628
538
|
}
|
|
629
539
|
//#endregion
|
|
630
540
|
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.17_react@19.2.7/node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
631
|
-
var
|
|
541
|
+
var qe = We(), Je = function() {}, Ye = x.forwardRef(function(e, t) {
|
|
632
542
|
var n = x.useRef(null), r = x.useState({
|
|
633
|
-
onScrollCapture:
|
|
634
|
-
onWheelCapture:
|
|
635
|
-
onTouchMoveCapture:
|
|
636
|
-
}), i = r[0], a = r[1], o = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, p = e.noRelative, m = e.noIsolation, h = e.inert, g = e.allowPinchZoom, _ = e.as, v = _ === void 0 ? "div" : _, y = e.gapMode, b =
|
|
543
|
+
onScrollCapture: Je,
|
|
544
|
+
onWheelCapture: Je,
|
|
545
|
+
onTouchMoveCapture: Je
|
|
546
|
+
}), i = r[0], a = r[1], o = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, f = e.sideCar, p = e.noRelative, m = e.noIsolation, h = e.inert, g = e.allowPinchZoom, _ = e.as, v = _ === void 0 ? "div" : _, y = e.gapMode, b = je(e, [
|
|
637
547
|
"forwardProps",
|
|
638
548
|
"children",
|
|
639
549
|
"className",
|
|
@@ -647,9 +557,9 @@ var $e = Xe(), et = function() {}, tt = x.forwardRef(function(e, t) {
|
|
|
647
557
|
"allowPinchZoom",
|
|
648
558
|
"as",
|
|
649
559
|
"gapMode"
|
|
650
|
-
]), S = f, C =
|
|
560
|
+
]), S = f, C = Ve([n, t]), w = I(I({}, b), i);
|
|
651
561
|
return x.createElement(x.Fragment, null, u && x.createElement(S, {
|
|
652
|
-
sideCar:
|
|
562
|
+
sideCar: qe,
|
|
653
563
|
removeScrollBar: l,
|
|
654
564
|
shards: d,
|
|
655
565
|
noRelative: p,
|
|
@@ -659,52 +569,52 @@ var $e = Xe(), et = function() {}, tt = x.forwardRef(function(e, t) {
|
|
|
659
569
|
allowPinchZoom: !!g,
|
|
660
570
|
lockRef: n,
|
|
661
571
|
gapMode: y
|
|
662
|
-
}), o ? x.cloneElement(x.Children.only(s),
|
|
572
|
+
}), o ? x.cloneElement(x.Children.only(s), I(I({}, w), { ref: C })) : x.createElement(v, I({}, w, {
|
|
663
573
|
className: c,
|
|
664
574
|
ref: C
|
|
665
575
|
}), s));
|
|
666
576
|
});
|
|
667
|
-
|
|
577
|
+
Ye.defaultProps = {
|
|
668
578
|
enabled: !0,
|
|
669
579
|
removeScrollBar: !0,
|
|
670
580
|
inert: !1
|
|
671
|
-
},
|
|
672
|
-
fullWidth:
|
|
673
|
-
zeroRight:
|
|
581
|
+
}, Ye.classNames = {
|
|
582
|
+
fullWidth: Pe,
|
|
583
|
+
zeroRight: Ne
|
|
674
584
|
};
|
|
675
585
|
//#endregion
|
|
676
586
|
//#region ../../node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
|
|
677
|
-
var
|
|
678
|
-
if (
|
|
587
|
+
var Xe, Ze = function() {
|
|
588
|
+
if (Xe) return Xe;
|
|
679
589
|
if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
|
|
680
590
|
};
|
|
681
591
|
//#endregion
|
|
682
592
|
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.17_react@19.2.7/node_modules/react-style-singleton/dist/es2015/singleton.js
|
|
683
|
-
function
|
|
593
|
+
function Qe() {
|
|
684
594
|
if (!document) return null;
|
|
685
595
|
var e = document.createElement("style");
|
|
686
596
|
e.type = "text/css";
|
|
687
|
-
var t =
|
|
597
|
+
var t = Ze();
|
|
688
598
|
return t && e.setAttribute("nonce", t), e;
|
|
689
599
|
}
|
|
690
|
-
function
|
|
600
|
+
function $e(e, t) {
|
|
691
601
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
692
602
|
}
|
|
693
|
-
function
|
|
603
|
+
function et(e) {
|
|
694
604
|
(document.head || document.getElementsByTagName("head")[0]).appendChild(e);
|
|
695
605
|
}
|
|
696
|
-
var
|
|
606
|
+
var tt = function() {
|
|
697
607
|
var e = 0, t = null;
|
|
698
608
|
return {
|
|
699
609
|
add: function(n) {
|
|
700
|
-
e == 0 && (t =
|
|
610
|
+
e == 0 && (t = Qe()) && ($e(t, n), et(t)), e++;
|
|
701
611
|
},
|
|
702
612
|
remove: function() {
|
|
703
613
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
704
614
|
}
|
|
705
615
|
};
|
|
706
|
-
},
|
|
707
|
-
var e =
|
|
616
|
+
}, nt = function() {
|
|
617
|
+
var e = tt();
|
|
708
618
|
return function(t, n) {
|
|
709
619
|
x.useEffect(function() {
|
|
710
620
|
return e.add(t), function() {
|
|
@@ -712,43 +622,43 @@ var st = function() {
|
|
|
712
622
|
};
|
|
713
623
|
}, [t && n]);
|
|
714
624
|
};
|
|
715
|
-
},
|
|
716
|
-
var e =
|
|
625
|
+
}, rt = function() {
|
|
626
|
+
var e = nt();
|
|
717
627
|
return function(t) {
|
|
718
628
|
var n = t.styles, r = t.dynamic;
|
|
719
629
|
return e(n, r), null;
|
|
720
630
|
};
|
|
721
|
-
},
|
|
631
|
+
}, it = {
|
|
722
632
|
left: 0,
|
|
723
633
|
top: 0,
|
|
724
634
|
right: 0,
|
|
725
635
|
gap: 0
|
|
726
|
-
},
|
|
636
|
+
}, at = function(e) {
|
|
727
637
|
return parseInt(e || "", 10) || 0;
|
|
728
|
-
},
|
|
638
|
+
}, ot = function(e) {
|
|
729
639
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
730
640
|
return [
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
641
|
+
at(n),
|
|
642
|
+
at(r),
|
|
643
|
+
at(i)
|
|
734
644
|
];
|
|
735
|
-
},
|
|
736
|
-
if (e === void 0 && (e = "margin"), typeof window > "u") return
|
|
737
|
-
var t =
|
|
645
|
+
}, st = function(e) {
|
|
646
|
+
if (e === void 0 && (e = "margin"), typeof window > "u") return it;
|
|
647
|
+
var t = ot(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
738
648
|
return {
|
|
739
649
|
left: t[0],
|
|
740
650
|
top: t[1],
|
|
741
651
|
right: t[2],
|
|
742
652
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
743
653
|
};
|
|
744
|
-
},
|
|
654
|
+
}, ct = rt(), lt = "data-scroll-locked", ut = function(e, t, n, r) {
|
|
745
655
|
var i = e.left, a = e.top, o = e.right, s = e.gap;
|
|
746
656
|
return n === void 0 && (n = "margin"), `
|
|
747
|
-
.${
|
|
657
|
+
.${Fe} {
|
|
748
658
|
overflow: hidden ${r};
|
|
749
659
|
padding-right: ${s}px ${r};
|
|
750
660
|
}
|
|
751
|
-
body[${
|
|
661
|
+
body[${lt}] {
|
|
752
662
|
overflow: hidden ${r};
|
|
753
663
|
overscroll-behavior: contain;
|
|
754
664
|
${[
|
|
@@ -765,122 +675,122 @@ var st = function() {
|
|
|
765
675
|
].filter(Boolean).join("")}
|
|
766
676
|
}
|
|
767
677
|
|
|
768
|
-
.${
|
|
678
|
+
.${Ne} {
|
|
769
679
|
right: ${s}px ${r};
|
|
770
680
|
}
|
|
771
681
|
|
|
772
|
-
.${
|
|
682
|
+
.${Pe} {
|
|
773
683
|
margin-right: ${s}px ${r};
|
|
774
684
|
}
|
|
775
685
|
|
|
776
|
-
.${
|
|
686
|
+
.${Ne} .${Ne} {
|
|
777
687
|
right: 0 ${r};
|
|
778
688
|
}
|
|
779
689
|
|
|
780
|
-
.${
|
|
690
|
+
.${Pe} .${Pe} {
|
|
781
691
|
margin-right: 0 ${r};
|
|
782
692
|
}
|
|
783
693
|
|
|
784
|
-
body[${
|
|
785
|
-
${
|
|
694
|
+
body[${lt}] {
|
|
695
|
+
${Ie}: ${s}px;
|
|
786
696
|
}
|
|
787
697
|
`;
|
|
788
|
-
},
|
|
698
|
+
}, dt = function() {
|
|
789
699
|
var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
|
|
790
700
|
return isFinite(e) ? e : 0;
|
|
791
|
-
},
|
|
701
|
+
}, ft = function() {
|
|
792
702
|
x.useEffect(function() {
|
|
793
|
-
return document.body.setAttribute(
|
|
794
|
-
var e =
|
|
795
|
-
e <= 0 ? document.body.removeAttribute(
|
|
703
|
+
return document.body.setAttribute(lt, (dt() + 1).toString()), function() {
|
|
704
|
+
var e = dt() - 1;
|
|
705
|
+
e <= 0 ? document.body.removeAttribute(lt) : document.body.setAttribute(lt, e.toString());
|
|
796
706
|
};
|
|
797
707
|
}, []);
|
|
798
|
-
},
|
|
708
|
+
}, pt = function(e) {
|
|
799
709
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, i = r === void 0 ? "margin" : r;
|
|
800
|
-
|
|
710
|
+
ft();
|
|
801
711
|
var a = x.useMemo(function() {
|
|
802
|
-
return
|
|
712
|
+
return st(i);
|
|
803
713
|
}, [i]);
|
|
804
|
-
return x.createElement(
|
|
805
|
-
},
|
|
714
|
+
return x.createElement(ct, { styles: ut(a, !t, i, n ? "" : "!important") });
|
|
715
|
+
}, mt = !1;
|
|
806
716
|
if (typeof window < "u") try {
|
|
807
|
-
var
|
|
808
|
-
return
|
|
717
|
+
var ht = Object.defineProperty({}, "passive", { get: function() {
|
|
718
|
+
return mt = !0, !0;
|
|
809
719
|
} });
|
|
810
|
-
window.addEventListener("test",
|
|
720
|
+
window.addEventListener("test", ht, ht), window.removeEventListener("test", ht, ht);
|
|
811
721
|
} catch {
|
|
812
|
-
|
|
722
|
+
mt = !1;
|
|
813
723
|
}
|
|
814
|
-
var
|
|
724
|
+
var L = mt ? { passive: !1 } : !1, gt = function(e) {
|
|
815
725
|
return e.tagName === "TEXTAREA";
|
|
816
|
-
},
|
|
726
|
+
}, _t = function(e, t) {
|
|
817
727
|
if (!(e instanceof Element)) return !1;
|
|
818
728
|
var n = window.getComputedStyle(e);
|
|
819
|
-
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !
|
|
820
|
-
},
|
|
821
|
-
return
|
|
822
|
-
},
|
|
823
|
-
return
|
|
824
|
-
},
|
|
729
|
+
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !gt(e) && n[t] === "visible");
|
|
730
|
+
}, vt = function(e) {
|
|
731
|
+
return _t(e, "overflowY");
|
|
732
|
+
}, yt = function(e) {
|
|
733
|
+
return _t(e, "overflowX");
|
|
734
|
+
}, bt = function(e, t) {
|
|
825
735
|
var n = t.ownerDocument, r = t;
|
|
826
736
|
do {
|
|
827
|
-
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host),
|
|
828
|
-
var i =
|
|
737
|
+
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), Ct(e, r)) {
|
|
738
|
+
var i = wt(e, r);
|
|
829
739
|
if (i[1] > i[2]) return !0;
|
|
830
740
|
}
|
|
831
741
|
r = r.parentNode;
|
|
832
742
|
} while (r && r !== n.body);
|
|
833
743
|
return !1;
|
|
834
|
-
},
|
|
744
|
+
}, xt = function(e) {
|
|
835
745
|
return [
|
|
836
746
|
e.scrollTop,
|
|
837
747
|
e.scrollHeight,
|
|
838
748
|
e.clientHeight
|
|
839
749
|
];
|
|
840
|
-
},
|
|
750
|
+
}, St = function(e) {
|
|
841
751
|
return [
|
|
842
752
|
e.scrollLeft,
|
|
843
753
|
e.scrollWidth,
|
|
844
754
|
e.clientWidth
|
|
845
755
|
];
|
|
846
|
-
},
|
|
847
|
-
return e === "v" ?
|
|
848
|
-
},
|
|
849
|
-
return e === "v" ?
|
|
850
|
-
},
|
|
756
|
+
}, Ct = function(e, t) {
|
|
757
|
+
return e === "v" ? vt(t) : yt(t);
|
|
758
|
+
}, wt = function(e, t) {
|
|
759
|
+
return e === "v" ? xt(t) : St(t);
|
|
760
|
+
}, Tt = function(e, t) {
|
|
851
761
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
852
|
-
},
|
|
853
|
-
var a =
|
|
762
|
+
}, Et = function(e, t, n, r, i) {
|
|
763
|
+
var a = Tt(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
|
|
854
764
|
do {
|
|
855
765
|
if (!s) break;
|
|
856
|
-
var p =
|
|
857
|
-
(m || h) &&
|
|
766
|
+
var p = wt(e, s), m = p[0], h = p[1] - p[2] - a * m;
|
|
767
|
+
(m || h) && Ct(e, s) && (d += h, f += m);
|
|
858
768
|
var g = s.parentNode;
|
|
859
769
|
s = g && g.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? g.host : g;
|
|
860
770
|
} while (!c && s !== document.body || c && (t.contains(s) || t === s));
|
|
861
771
|
return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
|
|
862
|
-
},
|
|
772
|
+
}, Dt = function(e) {
|
|
863
773
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
864
|
-
},
|
|
774
|
+
}, Ot = function(e) {
|
|
865
775
|
return [e.deltaX, e.deltaY];
|
|
866
|
-
},
|
|
776
|
+
}, kt = function(e) {
|
|
867
777
|
return e && "current" in e ? e.current : e;
|
|
868
|
-
},
|
|
778
|
+
}, At = function(e, t) {
|
|
869
779
|
return e[0] === t[0] && e[1] === t[1];
|
|
870
|
-
},
|
|
780
|
+
}, jt = function(e) {
|
|
871
781
|
return `
|
|
872
782
|
.block-interactivity-${e} {pointer-events: none;}
|
|
873
783
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
874
784
|
`;
|
|
875
|
-
},
|
|
876
|
-
function
|
|
877
|
-
var t = x.useRef([]), n = x.useRef([0, 0]), r = x.useRef(), i = x.useState(
|
|
785
|
+
}, Mt = 0, R = [];
|
|
786
|
+
function Nt(e) {
|
|
787
|
+
var t = x.useRef([]), n = x.useRef([0, 0]), r = x.useRef(), i = x.useState(Mt++)[0], a = x.useState(rt)[0], o = x.useRef(e);
|
|
878
788
|
x.useEffect(function() {
|
|
879
789
|
o.current = e;
|
|
880
790
|
}, [e]), x.useEffect(function() {
|
|
881
791
|
if (e.inert) {
|
|
882
792
|
document.body.classList.add(`block-interactivity-${i}`);
|
|
883
|
-
var t =
|
|
793
|
+
var t = Me([e.lockRef.current], (e.shards || []).map(kt), !0).filter(Boolean);
|
|
884
794
|
return t.forEach(function(e) {
|
|
885
795
|
return e.classList.add(`allow-interactivity-${i}`);
|
|
886
796
|
}), function() {
|
|
@@ -896,28 +806,28 @@ function Vt(e) {
|
|
|
896
806
|
]);
|
|
897
807
|
var s = x.useCallback(function(e, t) {
|
|
898
808
|
if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey) return !o.current.allowPinchZoom;
|
|
899
|
-
var i =
|
|
809
|
+
var i = Dt(e), a = n.current, s = "deltaX" in e ? e.deltaX : a[0] - i[0], c = "deltaY" in e ? e.deltaY : a[1] - i[1], l, u = e.target, d = Math.abs(s) > Math.abs(c) ? "h" : "v";
|
|
900
810
|
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
901
811
|
var f = window.getSelection(), p = f && f.anchorNode;
|
|
902
812
|
if (p && (p === u || p.contains(u))) return !1;
|
|
903
|
-
var m =
|
|
813
|
+
var m = bt(d, u);
|
|
904
814
|
if (!m) return !0;
|
|
905
|
-
if (m ? l = d : (l = d === "v" ? "h" : "v", m =
|
|
815
|
+
if (m ? l = d : (l = d === "v" ? "h" : "v", m = bt(d, u)), !m) return !1;
|
|
906
816
|
if (!r.current && "changedTouches" in e && (s || c) && (r.current = l), !l) return !0;
|
|
907
817
|
var h = r.current || l;
|
|
908
|
-
return
|
|
818
|
+
return Et(h, t, e, h === "h" ? s : c, !0);
|
|
909
819
|
}, []), c = x.useCallback(function(e) {
|
|
910
820
|
var n = e;
|
|
911
|
-
if (!(!
|
|
912
|
-
var r = "deltaY" in n ?
|
|
913
|
-
return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) &&
|
|
821
|
+
if (!(!R.length || R[R.length - 1] !== a)) {
|
|
822
|
+
var r = "deltaY" in n ? Ot(n) : Dt(n), i = t.current.filter(function(e) {
|
|
823
|
+
return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) && At(e.delta, r);
|
|
914
824
|
})[0];
|
|
915
825
|
if (i && i.should) {
|
|
916
826
|
n.cancelable && n.preventDefault();
|
|
917
827
|
return;
|
|
918
828
|
}
|
|
919
829
|
if (!i) {
|
|
920
|
-
var c = (o.current.shards || []).map(
|
|
830
|
+
var c = (o.current.shards || []).map(kt).filter(Boolean).filter(function(e) {
|
|
921
831
|
return e.contains(n.target);
|
|
922
832
|
});
|
|
923
833
|
(c.length > 0 ? s(n, c[0]) : !o.current.noIsolation) && n.cancelable && n.preventDefault();
|
|
@@ -929,7 +839,7 @@ function Vt(e) {
|
|
|
929
839
|
delta: n,
|
|
930
840
|
target: r,
|
|
931
841
|
should: i,
|
|
932
|
-
shadowParent:
|
|
842
|
+
shadowParent: Pt(r)
|
|
933
843
|
};
|
|
934
844
|
t.current.push(a), setTimeout(function() {
|
|
935
845
|
t.current = t.current.filter(function(e) {
|
|
@@ -937,60 +847,60 @@ function Vt(e) {
|
|
|
937
847
|
});
|
|
938
848
|
}, 1);
|
|
939
849
|
}, []), u = x.useCallback(function(e) {
|
|
940
|
-
n.current =
|
|
850
|
+
n.current = Dt(e), r.current = void 0;
|
|
941
851
|
}, []), d = x.useCallback(function(t) {
|
|
942
|
-
l(t.type,
|
|
852
|
+
l(t.type, Ot(t), t.target, s(t, e.lockRef.current));
|
|
943
853
|
}, []), f = x.useCallback(function(t) {
|
|
944
|
-
l(t.type,
|
|
854
|
+
l(t.type, Dt(t), t.target, s(t, e.lockRef.current));
|
|
945
855
|
}, []);
|
|
946
856
|
x.useEffect(function() {
|
|
947
|
-
return
|
|
857
|
+
return R.push(a), e.setCallbacks({
|
|
948
858
|
onScrollCapture: d,
|
|
949
859
|
onWheelCapture: d,
|
|
950
860
|
onTouchMoveCapture: f
|
|
951
|
-
}), document.addEventListener("wheel", c,
|
|
952
|
-
|
|
861
|
+
}), document.addEventListener("wheel", c, L), document.addEventListener("touchmove", c, L), document.addEventListener("touchstart", u, L), function() {
|
|
862
|
+
R = R.filter(function(e) {
|
|
953
863
|
return e !== a;
|
|
954
|
-
}), document.removeEventListener("wheel", c,
|
|
864
|
+
}), document.removeEventListener("wheel", c, L), document.removeEventListener("touchmove", c, L), document.removeEventListener("touchstart", u, L);
|
|
955
865
|
};
|
|
956
866
|
}, []);
|
|
957
867
|
var p = e.removeScrollBar, m = e.inert;
|
|
958
|
-
return x.createElement(x.Fragment, null, m ? x.createElement(a, { styles:
|
|
868
|
+
return x.createElement(x.Fragment, null, m ? x.createElement(a, { styles: jt(i) }) : null, p ? x.createElement(pt, {
|
|
959
869
|
noRelative: e.noRelative,
|
|
960
870
|
gapMode: e.gapMode
|
|
961
871
|
}) : null);
|
|
962
872
|
}
|
|
963
|
-
function
|
|
873
|
+
function Pt(e) {
|
|
964
874
|
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
965
875
|
return t;
|
|
966
876
|
}
|
|
967
877
|
//#endregion
|
|
968
878
|
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.17_react@19.2.7/node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
969
|
-
var
|
|
970
|
-
return x.createElement(
|
|
879
|
+
var Ft = Ke(qe, Nt), It = x.forwardRef(function(e, t) {
|
|
880
|
+
return x.createElement(Ye, I({}, e, {
|
|
971
881
|
ref: t,
|
|
972
|
-
sideCar:
|
|
882
|
+
sideCar: Ft
|
|
973
883
|
}));
|
|
974
884
|
});
|
|
975
|
-
|
|
885
|
+
It.classNames = Ye.classNames;
|
|
976
886
|
//#endregion
|
|
977
887
|
//#region ../../node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
|
|
978
|
-
var
|
|
888
|
+
var Lt = function(e) {
|
|
979
889
|
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
980
|
-
},
|
|
981
|
-
return e && (e.host ||
|
|
982
|
-
},
|
|
890
|
+
}, Rt = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), Bt = {}, Vt = 0, Ht = function(e) {
|
|
891
|
+
return e && (e.host || Ht(e.parentNode));
|
|
892
|
+
}, Ut = function(e, t) {
|
|
983
893
|
return t.map(function(t) {
|
|
984
894
|
if (e.contains(t)) return t;
|
|
985
|
-
var n =
|
|
895
|
+
var n = Ht(t);
|
|
986
896
|
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
987
897
|
}).filter(function(e) {
|
|
988
898
|
return !!e;
|
|
989
899
|
});
|
|
990
|
-
},
|
|
991
|
-
var i =
|
|
992
|
-
|
|
993
|
-
var a =
|
|
900
|
+
}, Wt = function(e, t, n, r) {
|
|
901
|
+
var i = Ut(t, Array.isArray(e) ? e : [e]);
|
|
902
|
+
Bt[n] || (Bt[n] = /* @__PURE__ */ new WeakMap());
|
|
903
|
+
var a = Bt[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
|
|
994
904
|
!e || s.has(e) || (s.add(e), l(e.parentNode));
|
|
995
905
|
};
|
|
996
906
|
i.forEach(l);
|
|
@@ -998,99 +908,166 @@ var Gt = function(e) {
|
|
|
998
908
|
!e || c.has(e) || Array.prototype.forEach.call(e.children, function(e) {
|
|
999
909
|
if (s.has(e)) u(e);
|
|
1000
910
|
else try {
|
|
1001
|
-
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (
|
|
1002
|
-
|
|
911
|
+
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (Rt.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
|
|
912
|
+
Rt.set(e, c), a.set(e, l), o.push(e), c === 1 && i && zt.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
|
|
1003
913
|
} catch (t) {
|
|
1004
914
|
console.error("aria-hidden: cannot operate on ", e, t);
|
|
1005
915
|
}
|
|
1006
916
|
});
|
|
1007
917
|
};
|
|
1008
|
-
return u(t), s.clear(),
|
|
918
|
+
return u(t), s.clear(), Vt++, function() {
|
|
1009
919
|
o.forEach(function(e) {
|
|
1010
|
-
var t =
|
|
1011
|
-
|
|
1012
|
-
}),
|
|
920
|
+
var t = Rt.get(e) - 1, i = a.get(e) - 1;
|
|
921
|
+
Rt.set(e, t), a.set(e, i), t || (zt.has(e) || e.removeAttribute(r), zt.delete(e)), i || e.removeAttribute(n);
|
|
922
|
+
}), Vt--, Vt || (Rt = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), Bt = {});
|
|
1013
923
|
};
|
|
1014
|
-
},
|
|
924
|
+
}, Gt = function(e, t, n) {
|
|
1015
925
|
n === void 0 && (n = "data-aria-hidden");
|
|
1016
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), i = t ||
|
|
1017
|
-
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))),
|
|
926
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), i = t || Lt(e);
|
|
927
|
+
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), Wt(r, i, n, "aria-hidden")) : function() {
|
|
1018
928
|
return null;
|
|
1019
929
|
};
|
|
1020
|
-
},
|
|
930
|
+
}, Kt = x.createContext(void 0), qt = (e) => {
|
|
931
|
+
let { dir: t, children: n } = e;
|
|
932
|
+
return /* @__PURE__ */ (0, b.jsx)(Kt.Provider, {
|
|
933
|
+
value: t,
|
|
934
|
+
children: n
|
|
935
|
+
});
|
|
936
|
+
};
|
|
937
|
+
function Jt(e) {
|
|
938
|
+
let t = x.useContext(Kt);
|
|
939
|
+
return e || t || "ltr";
|
|
940
|
+
}
|
|
941
|
+
var Yt = qt;
|
|
942
|
+
function Xt(e) {
|
|
943
|
+
let t = e + "CollectionProvider", [n, r] = o(t), [i, a] = n(t, {
|
|
944
|
+
collectionRef: { current: null },
|
|
945
|
+
itemMap: /* @__PURE__ */ new Map()
|
|
946
|
+
}), s = (e) => {
|
|
947
|
+
let { scope: t, children: n } = e, r = x.useRef(null), a = x.useRef(/* @__PURE__ */ new Map()).current;
|
|
948
|
+
return /* @__PURE__ */ (0, b.jsx)(i, {
|
|
949
|
+
scope: t,
|
|
950
|
+
itemMap: a,
|
|
951
|
+
collectionRef: r,
|
|
952
|
+
children: n
|
|
953
|
+
});
|
|
954
|
+
};
|
|
955
|
+
s.displayName = t;
|
|
956
|
+
let c = e + "CollectionSlot", l = h(c), u = x.forwardRef((e, t) => {
|
|
957
|
+
let { scope: n, children: r } = e;
|
|
958
|
+
return /* @__PURE__ */ (0, b.jsx)(l, {
|
|
959
|
+
ref: m(t, a(c, n).collectionRef),
|
|
960
|
+
children: r
|
|
961
|
+
});
|
|
962
|
+
});
|
|
963
|
+
u.displayName = c;
|
|
964
|
+
let d = e + "CollectionItemSlot", f = "data-radix-collection-item", p = h(d), g = x.forwardRef((e, t) => {
|
|
965
|
+
let { scope: n, children: r, ...i } = e, o = x.useRef(null), s = m(t, o), c = a(d, n);
|
|
966
|
+
return x.useEffect(() => (c.itemMap.set(o, {
|
|
967
|
+
ref: o,
|
|
968
|
+
...i
|
|
969
|
+
}), () => void c.itemMap.delete(o))), /* @__PURE__ */ (0, b.jsx)(p, {
|
|
970
|
+
[f]: "",
|
|
971
|
+
ref: s,
|
|
972
|
+
children: r
|
|
973
|
+
});
|
|
974
|
+
});
|
|
975
|
+
g.displayName = d;
|
|
976
|
+
function _(t) {
|
|
977
|
+
let n = a(e + "CollectionConsumer", t);
|
|
978
|
+
return x.useCallback(() => {
|
|
979
|
+
let e = n.collectionRef.current;
|
|
980
|
+
if (!e) return [];
|
|
981
|
+
let t = Array.from(e.querySelectorAll(`[${f}]`));
|
|
982
|
+
return Array.from(n.itemMap.values()).sort((e, n) => t.indexOf(e.ref.current) - t.indexOf(n.ref.current));
|
|
983
|
+
}, [n.collectionRef, n.itemMap]);
|
|
984
|
+
}
|
|
985
|
+
return [
|
|
986
|
+
{
|
|
987
|
+
Provider: s,
|
|
988
|
+
Slot: u,
|
|
989
|
+
ItemSlot: g
|
|
990
|
+
},
|
|
991
|
+
_,
|
|
992
|
+
r
|
|
993
|
+
];
|
|
994
|
+
}
|
|
995
|
+
//#endregion
|
|
996
|
+
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
997
|
+
var Zt = [
|
|
1021
998
|
"top",
|
|
1022
999
|
"right",
|
|
1023
1000
|
"bottom",
|
|
1024
1001
|
"left"
|
|
1025
|
-
],
|
|
1002
|
+
], z = Math.min, B = Math.max, Qt = Math.round, $t = Math.floor, V = (e) => ({
|
|
1026
1003
|
x: e,
|
|
1027
1004
|
y: e
|
|
1028
|
-
}),
|
|
1005
|
+
}), en = {
|
|
1029
1006
|
left: "right",
|
|
1030
1007
|
right: "left",
|
|
1031
1008
|
bottom: "top",
|
|
1032
1009
|
top: "bottom"
|
|
1033
1010
|
};
|
|
1034
|
-
function
|
|
1035
|
-
return
|
|
1011
|
+
function tn(e, t, n) {
|
|
1012
|
+
return B(e, z(t, n));
|
|
1036
1013
|
}
|
|
1037
|
-
function
|
|
1014
|
+
function H(e, t) {
|
|
1038
1015
|
return typeof e == "function" ? e(t) : e;
|
|
1039
1016
|
}
|
|
1040
|
-
function
|
|
1017
|
+
function U(e) {
|
|
1041
1018
|
return e.split("-")[0];
|
|
1042
1019
|
}
|
|
1043
|
-
function
|
|
1020
|
+
function nn(e) {
|
|
1044
1021
|
return e.split("-")[1];
|
|
1045
1022
|
}
|
|
1046
|
-
function
|
|
1023
|
+
function rn(e) {
|
|
1047
1024
|
return e === "x" ? "y" : "x";
|
|
1048
1025
|
}
|
|
1049
|
-
function
|
|
1026
|
+
function an(e) {
|
|
1050
1027
|
return e === "y" ? "height" : "width";
|
|
1051
1028
|
}
|
|
1052
|
-
function
|
|
1029
|
+
function W(e) {
|
|
1053
1030
|
let t = e[0];
|
|
1054
1031
|
return t === "t" || t === "b" ? "y" : "x";
|
|
1055
1032
|
}
|
|
1056
|
-
function
|
|
1057
|
-
return
|
|
1033
|
+
function on(e) {
|
|
1034
|
+
return rn(W(e));
|
|
1058
1035
|
}
|
|
1059
|
-
function
|
|
1036
|
+
function sn(e, t, n) {
|
|
1060
1037
|
n === void 0 && (n = !1);
|
|
1061
|
-
let r =
|
|
1062
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
1038
|
+
let r = nn(e), i = on(e), a = an(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
1039
|
+
return t.reference[a] > t.floating[a] && (o = gn(o)), [o, gn(o)];
|
|
1063
1040
|
}
|
|
1064
|
-
function
|
|
1065
|
-
let t =
|
|
1041
|
+
function cn(e) {
|
|
1042
|
+
let t = gn(e);
|
|
1066
1043
|
return [
|
|
1067
|
-
|
|
1044
|
+
ln(e),
|
|
1068
1045
|
t,
|
|
1069
|
-
|
|
1046
|
+
ln(t)
|
|
1070
1047
|
];
|
|
1071
1048
|
}
|
|
1072
|
-
function
|
|
1049
|
+
function ln(e) {
|
|
1073
1050
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
1074
1051
|
}
|
|
1075
|
-
var
|
|
1076
|
-
function
|
|
1052
|
+
var un = ["left", "right"], dn = ["right", "left"], fn = ["top", "bottom"], pn = ["bottom", "top"];
|
|
1053
|
+
function mn(e, t, n) {
|
|
1077
1054
|
switch (e) {
|
|
1078
1055
|
case "top":
|
|
1079
|
-
case "bottom": return n ? t ?
|
|
1056
|
+
case "bottom": return n ? t ? dn : un : t ? un : dn;
|
|
1080
1057
|
case "left":
|
|
1081
|
-
case "right": return t ?
|
|
1058
|
+
case "right": return t ? fn : pn;
|
|
1082
1059
|
default: return [];
|
|
1083
1060
|
}
|
|
1084
1061
|
}
|
|
1085
|
-
function
|
|
1086
|
-
let i =
|
|
1087
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
1062
|
+
function hn(e, t, n, r) {
|
|
1063
|
+
let i = nn(e), a = mn(U(e), n === "start", r);
|
|
1064
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(ln)))), a;
|
|
1088
1065
|
}
|
|
1089
|
-
function
|
|
1090
|
-
let t =
|
|
1091
|
-
return
|
|
1066
|
+
function gn(e) {
|
|
1067
|
+
let t = U(e);
|
|
1068
|
+
return en[t] + e.slice(t.length);
|
|
1092
1069
|
}
|
|
1093
|
-
function
|
|
1070
|
+
function _n(e) {
|
|
1094
1071
|
return {
|
|
1095
1072
|
top: 0,
|
|
1096
1073
|
right: 0,
|
|
@@ -1099,15 +1076,15 @@ function bn(e) {
|
|
|
1099
1076
|
...e
|
|
1100
1077
|
};
|
|
1101
1078
|
}
|
|
1102
|
-
function
|
|
1079
|
+
function vn(e) {
|
|
1103
1080
|
return typeof e == "number" ? {
|
|
1104
1081
|
top: e,
|
|
1105
1082
|
right: e,
|
|
1106
1083
|
bottom: e,
|
|
1107
1084
|
left: e
|
|
1108
|
-
} :
|
|
1085
|
+
} : _n(e);
|
|
1109
1086
|
}
|
|
1110
|
-
function
|
|
1087
|
+
function yn(e) {
|
|
1111
1088
|
let { x: t, y: n, width: r, height: i } = e;
|
|
1112
1089
|
return {
|
|
1113
1090
|
width: r,
|
|
@@ -1122,8 +1099,8 @@ function Sn(e) {
|
|
|
1122
1099
|
}
|
|
1123
1100
|
//#endregion
|
|
1124
1101
|
//#region ../../node_modules/.pnpm/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
1125
|
-
function
|
|
1126
|
-
let { reference: r, floating: i } = e, a =
|
|
1102
|
+
function bn(e, t, n) {
|
|
1103
|
+
let { reference: r, floating: i } = e, a = W(t), o = on(t), s = an(o), c = U(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
1127
1104
|
switch (c) {
|
|
1128
1105
|
case "top":
|
|
1129
1106
|
p = {
|
|
@@ -1154,7 +1131,7 @@ function Cn(e, t, n) {
|
|
|
1154
1131
|
y: r.y
|
|
1155
1132
|
};
|
|
1156
1133
|
}
|
|
1157
|
-
switch (
|
|
1134
|
+
switch (nn(t)) {
|
|
1158
1135
|
case "start":
|
|
1159
1136
|
p[o] -= f * (n && l ? -1 : 1);
|
|
1160
1137
|
break;
|
|
@@ -1164,10 +1141,10 @@ function Cn(e, t, n) {
|
|
|
1164
1141
|
}
|
|
1165
1142
|
return p;
|
|
1166
1143
|
}
|
|
1167
|
-
async function
|
|
1144
|
+
async function xn(e, t) {
|
|
1168
1145
|
var n;
|
|
1169
1146
|
t === void 0 && (t = {});
|
|
1170
|
-
let { x: r, y: i, platform: a, rects: o, elements: s, strategy: c } = e, { boundary: l = "clippingAncestors", rootBoundary: u = "viewport", elementContext: d = "floating", altBoundary: f = !1, padding: p = 0 } =
|
|
1147
|
+
let { x: r, y: i, platform: a, rects: o, elements: s, strategy: c } = e, { boundary: l = "clippingAncestors", rootBoundary: u = "viewport", elementContext: d = "floating", altBoundary: f = !1, padding: p = 0 } = H(t, e), m = vn(p), h = s[f ? d === "floating" ? "reference" : "floating" : d], g = yn(await a.getClippingRect({
|
|
1171
1148
|
element: (n = await (a.isElement == null ? void 0 : a.isElement(h))) == null || n ? h : h.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
|
|
1172
1149
|
boundary: l,
|
|
1173
1150
|
rootBoundary: u,
|
|
@@ -1180,7 +1157,7 @@ async function wn(e, t) {
|
|
|
1180
1157
|
} : o.reference, v = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(s.floating)), y = await (a.isElement == null ? void 0 : a.isElement(v)) && await (a.getScale == null ? void 0 : a.getScale(v)) || {
|
|
1181
1158
|
x: 1,
|
|
1182
1159
|
y: 1
|
|
1183
|
-
}, b =
|
|
1160
|
+
}, b = yn(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1184
1161
|
elements: s,
|
|
1185
1162
|
rect: _,
|
|
1186
1163
|
offsetParent: v,
|
|
@@ -1193,15 +1170,15 @@ async function wn(e, t) {
|
|
|
1193
1170
|
right: (b.right - g.right + m.right) / y.x
|
|
1194
1171
|
};
|
|
1195
1172
|
}
|
|
1196
|
-
var
|
|
1173
|
+
var Sn = 50, Cn = async (e, t, n) => {
|
|
1197
1174
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
1198
1175
|
...o,
|
|
1199
|
-
detectOverflow:
|
|
1176
|
+
detectOverflow: xn
|
|
1200
1177
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
1201
1178
|
reference: e,
|
|
1202
1179
|
floating: t,
|
|
1203
1180
|
strategy: i
|
|
1204
|
-
}), { x: u, y: d } =
|
|
1181
|
+
}), { x: u, y: d } = bn(l, r, c), f = r, p = 0, m = {};
|
|
1205
1182
|
for (let n = 0; n < a.length; n++) {
|
|
1206
1183
|
let h = a[n];
|
|
1207
1184
|
if (!h) continue;
|
|
@@ -1222,11 +1199,11 @@ var Tn = 50, En = async (e, t, n) => {
|
|
|
1222
1199
|
u = v == null ? u : v, d = y == null ? d : y, m[g] = {
|
|
1223
1200
|
...m[g],
|
|
1224
1201
|
...b
|
|
1225
|
-
}, x && p <
|
|
1202
|
+
}, x && p < Sn && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
1226
1203
|
reference: e,
|
|
1227
1204
|
floating: t,
|
|
1228
1205
|
strategy: i
|
|
1229
|
-
}) : x.rects), {x: u, y: d} =
|
|
1206
|
+
}) : x.rects), {x: u, y: d} = bn(l, f, c)), n = -1);
|
|
1230
1207
|
}
|
|
1231
1208
|
return {
|
|
1232
1209
|
x: u,
|
|
@@ -1235,18 +1212,18 @@ var Tn = 50, En = async (e, t, n) => {
|
|
|
1235
1212
|
strategy: i,
|
|
1236
1213
|
middlewareData: m
|
|
1237
1214
|
};
|
|
1238
|
-
},
|
|
1215
|
+
}, wn = (e) => ({
|
|
1239
1216
|
name: "arrow",
|
|
1240
1217
|
options: e,
|
|
1241
1218
|
async fn(t) {
|
|
1242
|
-
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } =
|
|
1219
|
+
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = H(e, t) || {};
|
|
1243
1220
|
if (l == null) return {};
|
|
1244
|
-
let d =
|
|
1221
|
+
let d = vn(u), f = {
|
|
1245
1222
|
x: n,
|
|
1246
1223
|
y: r
|
|
1247
|
-
}, p =
|
|
1224
|
+
}, p = on(i), m = an(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
1248
1225
|
(!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
|
|
1249
|
-
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E =
|
|
1226
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = z(d[_], T), D = z(d[v], T), O = E, k = C - h[m] - D, A = C / 2 - h[m] / 2 + w, j = tn(O, A, k), M = !c.arrow && nn(i) != null && A !== j && a.reference[m] / 2 - (A < O ? E : D) - h[m] / 2 < 0, N = M ? A < O ? A - O : A - k : 0;
|
|
1250
1227
|
return {
|
|
1251
1228
|
[p]: f[p] + N,
|
|
1252
1229
|
data: {
|
|
@@ -1257,19 +1234,19 @@ var Tn = 50, En = async (e, t, n) => {
|
|
|
1257
1234
|
reset: M
|
|
1258
1235
|
};
|
|
1259
1236
|
}
|
|
1260
|
-
}),
|
|
1237
|
+
}), Tn = function(e) {
|
|
1261
1238
|
return e === void 0 && (e = {}), {
|
|
1262
1239
|
name: "flip",
|
|
1263
1240
|
options: e,
|
|
1264
1241
|
async fn(t) {
|
|
1265
1242
|
var n, r;
|
|
1266
|
-
let { placement: i, middlewareData: a, rects: o, initialPlacement: s, platform: c, elements: l } = t, { mainAxis: u = !0, crossAxis: d = !0, fallbackPlacements: f, fallbackStrategy: p = "bestFit", fallbackAxisSideDirection: m = "none", flipAlignment: h = !0, ...g } =
|
|
1243
|
+
let { placement: i, middlewareData: a, rects: o, initialPlacement: s, platform: c, elements: l } = t, { mainAxis: u = !0, crossAxis: d = !0, fallbackPlacements: f, fallbackStrategy: p = "bestFit", fallbackAxisSideDirection: m = "none", flipAlignment: h = !0, ...g } = H(e, t);
|
|
1267
1244
|
if ((n = a.arrow) != null && n.alignmentOffset) return {};
|
|
1268
|
-
let _ =
|
|
1269
|
-
!f && S && x.push(...
|
|
1245
|
+
let _ = U(i), v = W(s), y = U(s) === s, b = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), x = f || (y || !h ? [gn(s)] : cn(s)), S = m !== "none";
|
|
1246
|
+
!f && S && x.push(...hn(s, h, m, b));
|
|
1270
1247
|
let C = [s, ...x], w = await c.detectOverflow(t, g), T = [], E = ((r = a.flip) == null ? void 0 : r.overflows) || [];
|
|
1271
1248
|
if (u && T.push(w[_]), d) {
|
|
1272
|
-
let e =
|
|
1249
|
+
let e = sn(i, o, b);
|
|
1273
1250
|
T.push(w[e[0]], w[e[1]]);
|
|
1274
1251
|
}
|
|
1275
1252
|
if (E = [...E, {
|
|
@@ -1278,7 +1255,7 @@ var Tn = 50, En = async (e, t, n) => {
|
|
|
1278
1255
|
}], !T.every((e) => e <= 0)) {
|
|
1279
1256
|
var D, O;
|
|
1280
1257
|
let e = (((D = a.flip) == null ? void 0 : D.index) || 0) + 1, t = C[e];
|
|
1281
|
-
if (t && (!(d === "alignment" && v !==
|
|
1258
|
+
if (t && (!(d === "alignment" && v !== W(t)) || E.every((e) => W(e.placement) === v ? e.overflows[0] > 0 : !0))) return {
|
|
1282
1259
|
data: {
|
|
1283
1260
|
index: e,
|
|
1284
1261
|
overflows: E
|
|
@@ -1291,7 +1268,7 @@ var Tn = 50, En = async (e, t, n) => {
|
|
|
1291
1268
|
var k;
|
|
1292
1269
|
let e = (k = E.filter((e) => {
|
|
1293
1270
|
if (S) {
|
|
1294
|
-
let t =
|
|
1271
|
+
let t = W(e.placement);
|
|
1295
1272
|
return t === v || t === "y";
|
|
1296
1273
|
}
|
|
1297
1274
|
return !0;
|
|
@@ -1309,7 +1286,7 @@ var Tn = 50, En = async (e, t, n) => {
|
|
|
1309
1286
|
}
|
|
1310
1287
|
};
|
|
1311
1288
|
};
|
|
1312
|
-
function
|
|
1289
|
+
function En(e, t) {
|
|
1313
1290
|
return {
|
|
1314
1291
|
top: e.top - t.height,
|
|
1315
1292
|
right: e.right - t.width,
|
|
@@ -1317,43 +1294,43 @@ function kn(e, t) {
|
|
|
1317
1294
|
left: e.left - t.width
|
|
1318
1295
|
};
|
|
1319
1296
|
}
|
|
1320
|
-
function
|
|
1321
|
-
return
|
|
1297
|
+
function Dn(e) {
|
|
1298
|
+
return Zt.some((t) => e[t] >= 0);
|
|
1322
1299
|
}
|
|
1323
|
-
var
|
|
1300
|
+
var On = function(e) {
|
|
1324
1301
|
return e === void 0 && (e = {}), {
|
|
1325
1302
|
name: "hide",
|
|
1326
1303
|
options: e,
|
|
1327
1304
|
async fn(t) {
|
|
1328
|
-
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } =
|
|
1305
|
+
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = H(e, t);
|
|
1329
1306
|
switch (i) {
|
|
1330
1307
|
case "referenceHidden": {
|
|
1331
|
-
let e =
|
|
1308
|
+
let e = En(await r.detectOverflow(t, {
|
|
1332
1309
|
...a,
|
|
1333
1310
|
elementContext: "reference"
|
|
1334
1311
|
}), n.reference);
|
|
1335
1312
|
return { data: {
|
|
1336
1313
|
referenceHiddenOffsets: e,
|
|
1337
|
-
referenceHidden:
|
|
1314
|
+
referenceHidden: Dn(e)
|
|
1338
1315
|
} };
|
|
1339
1316
|
}
|
|
1340
1317
|
case "escaped": {
|
|
1341
|
-
let e =
|
|
1318
|
+
let e = En(await r.detectOverflow(t, {
|
|
1342
1319
|
...a,
|
|
1343
1320
|
altBoundary: !0
|
|
1344
1321
|
}), n.floating);
|
|
1345
1322
|
return { data: {
|
|
1346
1323
|
escapedOffsets: e,
|
|
1347
|
-
escaped:
|
|
1324
|
+
escaped: Dn(e)
|
|
1348
1325
|
} };
|
|
1349
1326
|
}
|
|
1350
1327
|
default: return {};
|
|
1351
1328
|
}
|
|
1352
1329
|
}
|
|
1353
1330
|
};
|
|
1354
|
-
},
|
|
1355
|
-
async function
|
|
1356
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
1331
|
+
}, kn = /*#__PURE__*/ new Set(["left", "top"]);
|
|
1332
|
+
async function An(e, t) {
|
|
1333
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = U(n), s = nn(n), c = W(n) === "y", l = kn.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = H(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
1357
1334
|
mainAxis: d,
|
|
1358
1335
|
crossAxis: 0,
|
|
1359
1336
|
alignmentAxis: null
|
|
@@ -1370,13 +1347,13 @@ async function Nn(e, t) {
|
|
|
1370
1347
|
y: p * u
|
|
1371
1348
|
};
|
|
1372
1349
|
}
|
|
1373
|
-
var
|
|
1350
|
+
var jn = function(e) {
|
|
1374
1351
|
return e === void 0 && (e = 0), {
|
|
1375
1352
|
name: "offset",
|
|
1376
1353
|
options: e,
|
|
1377
1354
|
async fn(t) {
|
|
1378
1355
|
var n, r;
|
|
1379
|
-
let { x: i, y: a, placement: o, middlewareData: s } = t, c = await
|
|
1356
|
+
let { x: i, y: a, placement: o, middlewareData: s } = t, c = await An(t, e);
|
|
1380
1357
|
return o === ((n = s.offset) == null ? void 0 : n.placement) && (r = s.arrow) != null && r.alignmentOffset ? {} : {
|
|
1381
1358
|
x: i + c.x,
|
|
1382
1359
|
y: a + c.y,
|
|
@@ -1387,7 +1364,7 @@ var Pn = function(e) {
|
|
|
1387
1364
|
};
|
|
1388
1365
|
}
|
|
1389
1366
|
};
|
|
1390
|
-
},
|
|
1367
|
+
}, Mn = function(e) {
|
|
1391
1368
|
return e === void 0 && (e = {}), {
|
|
1392
1369
|
name: "shift",
|
|
1393
1370
|
options: e,
|
|
@@ -1398,17 +1375,17 @@ var Pn = function(e) {
|
|
|
1398
1375
|
x: t,
|
|
1399
1376
|
y: n
|
|
1400
1377
|
};
|
|
1401
|
-
} }, ...l } =
|
|
1378
|
+
} }, ...l } = H(e, t), u = {
|
|
1402
1379
|
x: n,
|
|
1403
1380
|
y: r
|
|
1404
|
-
}, d = await a.detectOverflow(t, l), f =
|
|
1381
|
+
}, d = await a.detectOverflow(t, l), f = W(U(i)), p = rn(f), m = u[p], h = u[f];
|
|
1405
1382
|
if (o) {
|
|
1406
1383
|
let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
|
|
1407
|
-
m =
|
|
1384
|
+
m = tn(n, m, r);
|
|
1408
1385
|
}
|
|
1409
1386
|
if (s) {
|
|
1410
1387
|
let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
|
|
1411
|
-
h =
|
|
1388
|
+
h = tn(n, h, r);
|
|
1412
1389
|
}
|
|
1413
1390
|
let g = c.fn({
|
|
1414
1391
|
...t,
|
|
@@ -1428,14 +1405,14 @@ var Pn = function(e) {
|
|
|
1428
1405
|
};
|
|
1429
1406
|
}
|
|
1430
1407
|
};
|
|
1431
|
-
},
|
|
1408
|
+
}, Nn = function(e) {
|
|
1432
1409
|
return e === void 0 && (e = {}), {
|
|
1433
1410
|
options: e,
|
|
1434
1411
|
fn(t) {
|
|
1435
|
-
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } =
|
|
1412
|
+
let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = H(e, t), u = {
|
|
1436
1413
|
x: n,
|
|
1437
1414
|
y: r
|
|
1438
|
-
}, d =
|
|
1415
|
+
}, d = W(i), f = rn(d), p = u[f], m = u[d], h = H(s, t), g = typeof h == "number" ? {
|
|
1439
1416
|
mainAxis: h,
|
|
1440
1417
|
crossAxis: 0
|
|
1441
1418
|
} : {
|
|
@@ -1449,7 +1426,7 @@ var Pn = function(e) {
|
|
|
1449
1426
|
}
|
|
1450
1427
|
if (l) {
|
|
1451
1428
|
var _, v;
|
|
1452
|
-
let e = f === "y" ? "width" : "height", t =
|
|
1429
|
+
let e = f === "y" ? "width" : "height", t = kn.has(U(i)), n = a.reference[d] - a.floating[e] + (t && ((_ = o.offset) == null ? void 0 : _[d]) || 0) + (t ? 0 : g.crossAxis), r = a.reference[d] + a.reference[e] + (t ? 0 : ((v = o.offset) == null ? void 0 : v[d]) || 0) - (t ? g.crossAxis : 0);
|
|
1453
1430
|
m < n ? m = n : m > r && (m = r);
|
|
1454
1431
|
}
|
|
1455
1432
|
return {
|
|
@@ -1458,18 +1435,18 @@ var Pn = function(e) {
|
|
|
1458
1435
|
};
|
|
1459
1436
|
}
|
|
1460
1437
|
};
|
|
1461
|
-
},
|
|
1438
|
+
}, Pn = function(e) {
|
|
1462
1439
|
return e === void 0 && (e = {}), {
|
|
1463
1440
|
name: "size",
|
|
1464
1441
|
options: e,
|
|
1465
1442
|
async fn(t) {
|
|
1466
1443
|
var n, r;
|
|
1467
|
-
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } =
|
|
1444
|
+
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = H(e, t), u = await o.detectOverflow(t, l), d = U(i), f = nn(i), p = W(i) === "y", { width: m, height: h } = a.floating, g, _;
|
|
1468
1445
|
d === "top" || d === "bottom" ? (g = d, _ = f === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, g = f === "end" ? "top" : "bottom");
|
|
1469
|
-
let v = h - u.top - u.bottom, y = m - u.left - u.right, b =
|
|
1446
|
+
let v = h - u.top - u.bottom, y = m - u.left - u.right, b = z(h - u[g], v), x = z(m - u[_], y), S = !t.middlewareData.shift, C = b, w = x;
|
|
1470
1447
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (w = y), (r = t.middlewareData.shift) != null && r.enabled.y && (C = v), S && !f) {
|
|
1471
|
-
let e =
|
|
1472
|
-
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t :
|
|
1448
|
+
let e = B(u.left, 0), t = B(u.right, 0), n = B(u.top, 0), r = B(u.bottom, 0);
|
|
1449
|
+
p ? w = m - 2 * (e !== 0 || t !== 0 ? e + t : B(u.left, u.right)) : C = h - 2 * (n !== 0 || r !== 0 ? n + r : B(u.top, u.bottom));
|
|
1473
1450
|
}
|
|
1474
1451
|
await c({
|
|
1475
1452
|
...t,
|
|
@@ -1483,40 +1460,40 @@ var Pn = function(e) {
|
|
|
1483
1460
|
};
|
|
1484
1461
|
//#endregion
|
|
1485
1462
|
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
1486
|
-
function
|
|
1463
|
+
function Fn() {
|
|
1487
1464
|
return typeof window < "u";
|
|
1488
1465
|
}
|
|
1489
|
-
function
|
|
1490
|
-
return
|
|
1466
|
+
function In(e) {
|
|
1467
|
+
return Ln(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1491
1468
|
}
|
|
1492
|
-
function
|
|
1469
|
+
function G(e) {
|
|
1493
1470
|
var t;
|
|
1494
1471
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1495
1472
|
}
|
|
1496
|
-
function
|
|
1473
|
+
function K(e) {
|
|
1497
1474
|
var t;
|
|
1498
|
-
return (t = (
|
|
1475
|
+
return (t = (Ln(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1499
1476
|
}
|
|
1500
|
-
function
|
|
1501
|
-
return
|
|
1477
|
+
function Ln(e) {
|
|
1478
|
+
return Fn() ? e instanceof Node || e instanceof G(e).Node : !1;
|
|
1479
|
+
}
|
|
1480
|
+
function q(e) {
|
|
1481
|
+
return Fn() ? e instanceof Element || e instanceof G(e).Element : !1;
|
|
1502
1482
|
}
|
|
1503
1483
|
function J(e) {
|
|
1504
|
-
return
|
|
1484
|
+
return Fn() ? e instanceof HTMLElement || e instanceof G(e).HTMLElement : !1;
|
|
1505
1485
|
}
|
|
1506
|
-
function
|
|
1507
|
-
return
|
|
1486
|
+
function Rn(e) {
|
|
1487
|
+
return !Fn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof G(e).ShadowRoot;
|
|
1508
1488
|
}
|
|
1509
|
-
function
|
|
1510
|
-
|
|
1511
|
-
}
|
|
1512
|
-
function Hn(e) {
|
|
1513
|
-
let { overflow: t, overflowX: n, overflowY: r, display: i } = Z(e);
|
|
1489
|
+
function zn(e) {
|
|
1490
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = X(e);
|
|
1514
1491
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
1515
1492
|
}
|
|
1516
|
-
function
|
|
1517
|
-
return /^(table|td|th)$/.test(
|
|
1493
|
+
function Bn(e) {
|
|
1494
|
+
return /^(table|td|th)$/.test(In(e));
|
|
1518
1495
|
}
|
|
1519
|
-
function
|
|
1496
|
+
function Vn(e) {
|
|
1520
1497
|
try {
|
|
1521
1498
|
if (e.matches(":popover-open")) return !0;
|
|
1522
1499
|
} catch {}
|
|
@@ -1526,31 +1503,31 @@ function Wn(e) {
|
|
|
1526
1503
|
return !1;
|
|
1527
1504
|
}
|
|
1528
1505
|
}
|
|
1529
|
-
var
|
|
1530
|
-
function
|
|
1531
|
-
let t =
|
|
1532
|
-
return
|
|
1533
|
-
}
|
|
1534
|
-
function
|
|
1535
|
-
let t =
|
|
1536
|
-
for (;
|
|
1537
|
-
if (
|
|
1538
|
-
if (
|
|
1539
|
-
t =
|
|
1506
|
+
var Hn = /transform|translate|scale|rotate|perspective|filter/, Un = /paint|layout|strict|content/, Y = (e) => !!e && e !== "none", Wn;
|
|
1507
|
+
function Gn(e) {
|
|
1508
|
+
let t = q(e) ? X(e) : e;
|
|
1509
|
+
return Y(t.transform) || Y(t.translate) || Y(t.scale) || Y(t.rotate) || Y(t.perspective) || !qn() && (Y(t.backdropFilter) || Y(t.filter)) || Hn.test(t.willChange || "") || Un.test(t.contain || "");
|
|
1510
|
+
}
|
|
1511
|
+
function Kn(e) {
|
|
1512
|
+
let t = Z(e);
|
|
1513
|
+
for (; J(t) && !Jn(t);) {
|
|
1514
|
+
if (Gn(t)) return t;
|
|
1515
|
+
if (Vn(t)) return null;
|
|
1516
|
+
t = Z(t);
|
|
1540
1517
|
}
|
|
1541
1518
|
return null;
|
|
1542
1519
|
}
|
|
1543
|
-
function
|
|
1544
|
-
return
|
|
1520
|
+
function qn() {
|
|
1521
|
+
return Wn == null && (Wn = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), Wn;
|
|
1545
1522
|
}
|
|
1546
|
-
function
|
|
1547
|
-
return /^(html|body|#document)$/.test(
|
|
1523
|
+
function Jn(e) {
|
|
1524
|
+
return /^(html|body|#document)$/.test(In(e));
|
|
1548
1525
|
}
|
|
1549
|
-
function
|
|
1550
|
-
return
|
|
1526
|
+
function X(e) {
|
|
1527
|
+
return G(e).getComputedStyle(e);
|
|
1551
1528
|
}
|
|
1552
|
-
function
|
|
1553
|
-
return
|
|
1529
|
+
function Yn(e) {
|
|
1530
|
+
return q(e) ? {
|
|
1554
1531
|
scrollLeft: e.scrollLeft,
|
|
1555
1532
|
scrollTop: e.scrollTop
|
|
1556
1533
|
} : {
|
|
@@ -1558,102 +1535,102 @@ function Qn(e) {
|
|
|
1558
1535
|
scrollTop: e.scrollY
|
|
1559
1536
|
};
|
|
1560
1537
|
}
|
|
1561
|
-
function
|
|
1562
|
-
if (
|
|
1563
|
-
let t = e.assignedSlot || e.parentNode ||
|
|
1564
|
-
return
|
|
1538
|
+
function Z(e) {
|
|
1539
|
+
if (In(e) === "html") return e;
|
|
1540
|
+
let t = e.assignedSlot || e.parentNode || Rn(e) && e.host || K(e);
|
|
1541
|
+
return Rn(t) ? t.host : t;
|
|
1565
1542
|
}
|
|
1566
|
-
function
|
|
1567
|
-
let t =
|
|
1568
|
-
return
|
|
1543
|
+
function Xn(e) {
|
|
1544
|
+
let t = Z(e);
|
|
1545
|
+
return Jn(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : J(t) && zn(t) ? t : Xn(t);
|
|
1569
1546
|
}
|
|
1570
|
-
function
|
|
1547
|
+
function Zn(e, t, n) {
|
|
1571
1548
|
var r;
|
|
1572
1549
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1573
|
-
let i =
|
|
1550
|
+
let i = Xn(e), a = i === ((r = e.ownerDocument) == null ? void 0 : r.body), o = G(i);
|
|
1574
1551
|
if (a) {
|
|
1575
|
-
let e =
|
|
1576
|
-
return t.concat(o, o.visualViewport || [],
|
|
1577
|
-
} else return t.concat(i,
|
|
1552
|
+
let e = Qn(o);
|
|
1553
|
+
return t.concat(o, o.visualViewport || [], zn(i) ? i : [], e && n ? Zn(e) : []);
|
|
1554
|
+
} else return t.concat(i, Zn(i, [], n));
|
|
1578
1555
|
}
|
|
1579
|
-
function
|
|
1556
|
+
function Qn(e) {
|
|
1580
1557
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1581
1558
|
}
|
|
1582
1559
|
//#endregion
|
|
1583
1560
|
//#region ../../node_modules/.pnpm/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
1584
|
-
function
|
|
1585
|
-
let t =
|
|
1561
|
+
function $n(e) {
|
|
1562
|
+
let t = X(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = J(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Qt(n) !== a || Qt(r) !== o;
|
|
1586
1563
|
return s && (n = a, r = o), {
|
|
1587
1564
|
width: n,
|
|
1588
1565
|
height: r,
|
|
1589
1566
|
$: s
|
|
1590
1567
|
};
|
|
1591
1568
|
}
|
|
1592
|
-
function
|
|
1593
|
-
return
|
|
1569
|
+
function er(e) {
|
|
1570
|
+
return q(e) ? e : e.contextElement;
|
|
1594
1571
|
}
|
|
1595
|
-
function
|
|
1596
|
-
let t =
|
|
1597
|
-
if (!
|
|
1598
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } =
|
|
1572
|
+
function tr(e) {
|
|
1573
|
+
let t = er(e);
|
|
1574
|
+
if (!J(t)) return V(1);
|
|
1575
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = $n(t), o = (a ? Qt(n.width) : n.width) / r, s = (a ? Qt(n.height) : n.height) / i;
|
|
1599
1576
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
1600
1577
|
x: o,
|
|
1601
1578
|
y: s
|
|
1602
1579
|
};
|
|
1603
1580
|
}
|
|
1604
|
-
var
|
|
1605
|
-
function
|
|
1606
|
-
let t =
|
|
1607
|
-
return !
|
|
1581
|
+
var nr = /*#__PURE__*/ V(0);
|
|
1582
|
+
function rr(e) {
|
|
1583
|
+
let t = G(e);
|
|
1584
|
+
return !qn() || !t.visualViewport ? nr : {
|
|
1608
1585
|
x: t.visualViewport.offsetLeft,
|
|
1609
1586
|
y: t.visualViewport.offsetTop
|
|
1610
1587
|
};
|
|
1611
1588
|
}
|
|
1612
|
-
function
|
|
1613
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
1589
|
+
function ir(e, t, n) {
|
|
1590
|
+
return t === void 0 && (t = !1), !n || t && n !== G(e) ? !1 : t;
|
|
1614
1591
|
}
|
|
1615
|
-
function
|
|
1592
|
+
function Q(e, t, n, r) {
|
|
1616
1593
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1617
|
-
let i = e.getBoundingClientRect(), a =
|
|
1618
|
-
t && (r ?
|
|
1619
|
-
let s =
|
|
1594
|
+
let i = e.getBoundingClientRect(), a = er(e), o = V(1);
|
|
1595
|
+
t && (r ? q(r) && (o = tr(r)) : o = tr(e));
|
|
1596
|
+
let s = ir(a, n, r) ? rr(a) : V(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
1620
1597
|
if (a) {
|
|
1621
|
-
let e =
|
|
1598
|
+
let e = G(a), t = r && q(r) ? G(r) : r, n = e, i = Qn(n);
|
|
1622
1599
|
for (; i && r && t !== n;) {
|
|
1623
|
-
let e =
|
|
1624
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n =
|
|
1600
|
+
let e = tr(i), t = i.getBoundingClientRect(), r = X(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
1601
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = G(i), i = Qn(n);
|
|
1625
1602
|
}
|
|
1626
1603
|
}
|
|
1627
|
-
return
|
|
1604
|
+
return yn({
|
|
1628
1605
|
width: u,
|
|
1629
1606
|
height: d,
|
|
1630
1607
|
x: c,
|
|
1631
1608
|
y: l
|
|
1632
1609
|
});
|
|
1633
1610
|
}
|
|
1634
|
-
function
|
|
1635
|
-
let n =
|
|
1636
|
-
return t ? t.left + n :
|
|
1611
|
+
function ar(e, t) {
|
|
1612
|
+
let n = Yn(e).scrollLeft;
|
|
1613
|
+
return t ? t.left + n : Q(K(e)).left + n;
|
|
1637
1614
|
}
|
|
1638
|
-
function
|
|
1615
|
+
function or(e, t) {
|
|
1639
1616
|
let n = e.getBoundingClientRect();
|
|
1640
1617
|
return {
|
|
1641
|
-
x: n.left + t.scrollLeft -
|
|
1618
|
+
x: n.left + t.scrollLeft - ar(e, n),
|
|
1642
1619
|
y: n.top + t.scrollTop
|
|
1643
1620
|
};
|
|
1644
1621
|
}
|
|
1645
|
-
function
|
|
1646
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o =
|
|
1622
|
+
function sr(e) {
|
|
1623
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = K(r), s = t ? Vn(t.floating) : !1;
|
|
1647
1624
|
if (r === o || s && a) return n;
|
|
1648
1625
|
let c = {
|
|
1649
1626
|
scrollLeft: 0,
|
|
1650
1627
|
scrollTop: 0
|
|
1651
|
-
}, l =
|
|
1652
|
-
if ((d || !d && !a) && ((
|
|
1653
|
-
let e =
|
|
1654
|
-
l =
|
|
1628
|
+
}, l = V(1), u = V(0), d = J(r);
|
|
1629
|
+
if ((d || !d && !a) && ((In(r) !== "body" || zn(o)) && (c = Yn(r)), d)) {
|
|
1630
|
+
let e = Q(r);
|
|
1631
|
+
l = tr(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
1655
1632
|
}
|
|
1656
|
-
let f = o && !d && !a ?
|
|
1633
|
+
let f = o && !d && !a ? or(o, c) : V(0);
|
|
1657
1634
|
return {
|
|
1658
1635
|
width: n.width * l.x,
|
|
1659
1636
|
height: n.height * l.y,
|
|
@@ -1661,31 +1638,31 @@ function dr(e) {
|
|
|
1661
1638
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
1662
1639
|
};
|
|
1663
1640
|
}
|
|
1664
|
-
function
|
|
1641
|
+
function cr(e) {
|
|
1665
1642
|
return Array.from(e.getClientRects());
|
|
1666
1643
|
}
|
|
1667
|
-
function
|
|
1668
|
-
let t =
|
|
1669
|
-
return
|
|
1644
|
+
function lr(e) {
|
|
1645
|
+
let t = K(e), n = Yn(e), r = e.ownerDocument.body, i = B(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = B(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + ar(e), s = -n.scrollTop;
|
|
1646
|
+
return X(r).direction === "rtl" && (o += B(t.clientWidth, r.clientWidth) - i), {
|
|
1670
1647
|
width: i,
|
|
1671
1648
|
height: a,
|
|
1672
1649
|
x: o,
|
|
1673
1650
|
y: s
|
|
1674
1651
|
};
|
|
1675
1652
|
}
|
|
1676
|
-
var
|
|
1677
|
-
function
|
|
1678
|
-
let n =
|
|
1653
|
+
var ur = 25;
|
|
1654
|
+
function dr(e, t) {
|
|
1655
|
+
let n = G(e), r = K(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
1679
1656
|
if (i) {
|
|
1680
1657
|
a = i.width, o = i.height;
|
|
1681
|
-
let e =
|
|
1658
|
+
let e = qn();
|
|
1682
1659
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
1683
1660
|
}
|
|
1684
|
-
let l =
|
|
1661
|
+
let l = ar(r);
|
|
1685
1662
|
if (l <= 0) {
|
|
1686
1663
|
let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
|
|
1687
|
-
o <=
|
|
1688
|
-
} else l <=
|
|
1664
|
+
o <= ur && (a -= o);
|
|
1665
|
+
} else l <= ur && (a += l);
|
|
1689
1666
|
return {
|
|
1690
1667
|
width: a,
|
|
1691
1668
|
height: o,
|
|
@@ -1693,8 +1670,8 @@ function hr(e, t) {
|
|
|
1693
1670
|
y: c
|
|
1694
1671
|
};
|
|
1695
1672
|
}
|
|
1696
|
-
function
|
|
1697
|
-
let n =
|
|
1673
|
+
function fr(e, t) {
|
|
1674
|
+
let n = Q(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = J(e) ? tr(e) : V(1);
|
|
1698
1675
|
return {
|
|
1699
1676
|
width: e.clientWidth * a.x,
|
|
1700
1677
|
height: e.clientHeight * a.y,
|
|
@@ -1702,13 +1679,13 @@ function gr(e, t) {
|
|
|
1702
1679
|
y: r * a.y
|
|
1703
1680
|
};
|
|
1704
1681
|
}
|
|
1705
|
-
function
|
|
1682
|
+
function pr(e, t, n) {
|
|
1706
1683
|
let r;
|
|
1707
|
-
if (t === "viewport") r =
|
|
1708
|
-
else if (t === "document") r =
|
|
1709
|
-
else if (
|
|
1684
|
+
if (t === "viewport") r = dr(e, n);
|
|
1685
|
+
else if (t === "document") r = lr(K(e));
|
|
1686
|
+
else if (q(t)) r = fr(t, n);
|
|
1710
1687
|
else {
|
|
1711
|
-
let n =
|
|
1688
|
+
let n = rr(e);
|
|
1712
1689
|
r = {
|
|
1713
1690
|
x: t.x - n.x,
|
|
1714
1691
|
y: t.y - n.y,
|
|
@@ -1716,27 +1693,27 @@ function _r(e, t, n) {
|
|
|
1716
1693
|
height: t.height
|
|
1717
1694
|
};
|
|
1718
1695
|
}
|
|
1719
|
-
return
|
|
1696
|
+
return yn(r);
|
|
1720
1697
|
}
|
|
1721
|
-
function
|
|
1722
|
-
let n =
|
|
1723
|
-
return n === t || !
|
|
1698
|
+
function mr(e, t) {
|
|
1699
|
+
let n = Z(e);
|
|
1700
|
+
return n === t || !q(n) || Jn(n) ? !1 : X(n).position === "fixed" || mr(n, t);
|
|
1724
1701
|
}
|
|
1725
|
-
function
|
|
1702
|
+
function hr(e, t) {
|
|
1726
1703
|
let n = t.get(e);
|
|
1727
1704
|
if (n) return n;
|
|
1728
|
-
let r =
|
|
1729
|
-
for (;
|
|
1730
|
-
let t =
|
|
1731
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") ||
|
|
1705
|
+
let r = Zn(e, [], !1).filter((e) => q(e) && In(e) !== "body"), i = null, a = X(e).position === "fixed", o = a ? Z(e) : e;
|
|
1706
|
+
for (; q(o) && !Jn(o);) {
|
|
1707
|
+
let t = X(o), n = Gn(o);
|
|
1708
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || zn(o) && !n && mr(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Z(o);
|
|
1732
1709
|
}
|
|
1733
1710
|
return t.set(e, r), r;
|
|
1734
1711
|
}
|
|
1735
|
-
function
|
|
1736
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
1712
|
+
function gr(e) {
|
|
1713
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Vn(t) ? [] : hr(t, this._c) : [].concat(n), r], o = pr(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
1737
1714
|
for (let e = 1; e < a.length; e++) {
|
|
1738
|
-
let n =
|
|
1739
|
-
s =
|
|
1715
|
+
let n = pr(t, a[e], i);
|
|
1716
|
+
s = B(n.top, s), c = z(n.right, c), l = z(n.bottom, l), u = B(n.left, u);
|
|
1740
1717
|
}
|
|
1741
1718
|
return {
|
|
1742
1719
|
width: c - u,
|
|
@@ -1745,27 +1722,27 @@ function br(e) {
|
|
|
1745
1722
|
y: s
|
|
1746
1723
|
};
|
|
1747
1724
|
}
|
|
1748
|
-
function
|
|
1749
|
-
let { width: t, height: n } =
|
|
1725
|
+
function _r(e) {
|
|
1726
|
+
let { width: t, height: n } = $n(e);
|
|
1750
1727
|
return {
|
|
1751
1728
|
width: t,
|
|
1752
1729
|
height: n
|
|
1753
1730
|
};
|
|
1754
1731
|
}
|
|
1755
|
-
function
|
|
1756
|
-
let r =
|
|
1732
|
+
function vr(e, t, n) {
|
|
1733
|
+
let r = J(t), i = K(t), a = n === "fixed", o = Q(e, !0, a, t), s = {
|
|
1757
1734
|
scrollLeft: 0,
|
|
1758
1735
|
scrollTop: 0
|
|
1759
|
-
}, c =
|
|
1736
|
+
}, c = V(0);
|
|
1760
1737
|
function l() {
|
|
1761
|
-
c.x =
|
|
1738
|
+
c.x = ar(i);
|
|
1762
1739
|
}
|
|
1763
|
-
if (r || !r && !a) if ((
|
|
1764
|
-
let e =
|
|
1740
|
+
if (r || !r && !a) if ((In(t) !== "body" || zn(i)) && (s = Yn(t)), r) {
|
|
1741
|
+
let e = Q(t, !0, a, t);
|
|
1765
1742
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
1766
1743
|
} else i && l();
|
|
1767
1744
|
a && !r && i && l();
|
|
1768
|
-
let u = i && !r && !a ?
|
|
1745
|
+
let u = i && !r && !a ? or(i, s) : V(0);
|
|
1769
1746
|
return {
|
|
1770
1747
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
1771
1748
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -1773,34 +1750,34 @@ function Sr(e, t, n) {
|
|
|
1773
1750
|
height: o.height
|
|
1774
1751
|
};
|
|
1775
1752
|
}
|
|
1776
|
-
function
|
|
1777
|
-
return
|
|
1753
|
+
function yr(e) {
|
|
1754
|
+
return X(e).position === "static";
|
|
1778
1755
|
}
|
|
1779
|
-
function
|
|
1780
|
-
if (!
|
|
1756
|
+
function br(e, t) {
|
|
1757
|
+
if (!J(e) || X(e).position === "fixed") return null;
|
|
1781
1758
|
if (t) return t(e);
|
|
1782
1759
|
let n = e.offsetParent;
|
|
1783
|
-
return
|
|
1784
|
-
}
|
|
1785
|
-
function
|
|
1786
|
-
let n =
|
|
1787
|
-
if (
|
|
1788
|
-
if (!
|
|
1789
|
-
let t =
|
|
1790
|
-
for (; t && !
|
|
1791
|
-
if (
|
|
1792
|
-
t =
|
|
1760
|
+
return K(e) === n && (n = n.ownerDocument.body), n;
|
|
1761
|
+
}
|
|
1762
|
+
function xr(e, t) {
|
|
1763
|
+
let n = G(e);
|
|
1764
|
+
if (Vn(e)) return n;
|
|
1765
|
+
if (!J(e)) {
|
|
1766
|
+
let t = Z(e);
|
|
1767
|
+
for (; t && !Jn(t);) {
|
|
1768
|
+
if (q(t) && !yr(t)) return t;
|
|
1769
|
+
t = Z(t);
|
|
1793
1770
|
}
|
|
1794
1771
|
return n;
|
|
1795
1772
|
}
|
|
1796
|
-
let r =
|
|
1797
|
-
for (; r &&
|
|
1798
|
-
return r &&
|
|
1773
|
+
let r = br(e, t);
|
|
1774
|
+
for (; r && Bn(r) && yr(r);) r = br(r, t);
|
|
1775
|
+
return r && Jn(r) && yr(r) && !Gn(r) ? n : r || Kn(e) || n;
|
|
1799
1776
|
}
|
|
1800
|
-
var
|
|
1801
|
-
let t = this.getOffsetParent ||
|
|
1777
|
+
var Sr = async function(e) {
|
|
1778
|
+
let t = this.getOffsetParent || xr, n = this.getDimensions, r = await n(e.floating);
|
|
1802
1779
|
return {
|
|
1803
|
-
reference:
|
|
1780
|
+
reference: vr(e.reference, await t(e.floating), e.strategy),
|
|
1804
1781
|
floating: {
|
|
1805
1782
|
x: 0,
|
|
1806
1783
|
y: 0,
|
|
@@ -1809,26 +1786,26 @@ var Er = async function(e) {
|
|
|
1809
1786
|
}
|
|
1810
1787
|
};
|
|
1811
1788
|
};
|
|
1812
|
-
function
|
|
1813
|
-
return
|
|
1814
|
-
}
|
|
1815
|
-
var
|
|
1816
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1817
|
-
getDocumentElement:
|
|
1818
|
-
getClippingRect:
|
|
1819
|
-
getOffsetParent:
|
|
1820
|
-
getElementRects:
|
|
1821
|
-
getClientRects:
|
|
1822
|
-
getDimensions:
|
|
1823
|
-
getScale:
|
|
1824
|
-
isElement:
|
|
1825
|
-
isRTL:
|
|
1789
|
+
function Cr(e) {
|
|
1790
|
+
return X(e).direction === "rtl";
|
|
1791
|
+
}
|
|
1792
|
+
var wr = {
|
|
1793
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: sr,
|
|
1794
|
+
getDocumentElement: K,
|
|
1795
|
+
getClippingRect: gr,
|
|
1796
|
+
getOffsetParent: xr,
|
|
1797
|
+
getElementRects: Sr,
|
|
1798
|
+
getClientRects: cr,
|
|
1799
|
+
getDimensions: _r,
|
|
1800
|
+
getScale: tr,
|
|
1801
|
+
isElement: q,
|
|
1802
|
+
isRTL: Cr
|
|
1826
1803
|
};
|
|
1827
|
-
function
|
|
1804
|
+
function Tr(e, t) {
|
|
1828
1805
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
1829
1806
|
}
|
|
1830
|
-
function
|
|
1831
|
-
let n = null, r, i =
|
|
1807
|
+
function Er(e, t) {
|
|
1808
|
+
let n = null, r, i = K(e);
|
|
1832
1809
|
function a() {
|
|
1833
1810
|
var e;
|
|
1834
1811
|
clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
|
|
@@ -1837,9 +1814,9 @@ function Ar(e, t) {
|
|
|
1837
1814
|
s === void 0 && (s = !1), c === void 0 && (c = 1), a();
|
|
1838
1815
|
let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
|
|
1839
1816
|
if (s || t(), !f || !p) return;
|
|
1840
|
-
let m =
|
|
1817
|
+
let m = $t(d), h = $t(i.clientWidth - (u + f)), g = $t(i.clientHeight - (d + p)), _ = $t(u), v = {
|
|
1841
1818
|
rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
|
|
1842
|
-
threshold:
|
|
1819
|
+
threshold: B(0, z(1, c)) || 1
|
|
1843
1820
|
}, y = !0;
|
|
1844
1821
|
function b(t) {
|
|
1845
1822
|
let n = t[0].intersectionRatio;
|
|
@@ -1849,7 +1826,7 @@ function Ar(e, t) {
|
|
|
1849
1826
|
o(!1, 1e-7);
|
|
1850
1827
|
}, 1e3);
|
|
1851
1828
|
}
|
|
1852
|
-
n === 1 && !
|
|
1829
|
+
n === 1 && !Tr(l, e.getBoundingClientRect()) && o(), y = !1;
|
|
1853
1830
|
}
|
|
1854
1831
|
try {
|
|
1855
1832
|
n = new IntersectionObserver(b, {
|
|
@@ -1863,13 +1840,13 @@ function Ar(e, t) {
|
|
|
1863
1840
|
}
|
|
1864
1841
|
return o(!0), a;
|
|
1865
1842
|
}
|
|
1866
|
-
function
|
|
1843
|
+
function Dr(e, t, n, r) {
|
|
1867
1844
|
r === void 0 && (r = {});
|
|
1868
|
-
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l =
|
|
1845
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = er(e), u = i || a ? [...l ? Zn(l) : [], ...t ? Zn(t) : []] : [];
|
|
1869
1846
|
u.forEach((e) => {
|
|
1870
1847
|
i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
|
|
1871
1848
|
});
|
|
1872
|
-
let d = l && s ?
|
|
1849
|
+
let d = l && s ? Er(l, n) : null, f = -1, p = null;
|
|
1873
1850
|
o && (p = new ResizeObserver((e) => {
|
|
1874
1851
|
let [r] = e;
|
|
1875
1852
|
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
@@ -1877,11 +1854,11 @@ function jr(e, t, n, r) {
|
|
|
1877
1854
|
(e = p) == null || e.observe(t);
|
|
1878
1855
|
})), n();
|
|
1879
1856
|
}), l && !c && p.observe(l), t && p.observe(t));
|
|
1880
|
-
let m, h = c ?
|
|
1857
|
+
let m, h = c ? Q(e) : null;
|
|
1881
1858
|
c && g();
|
|
1882
1859
|
function g() {
|
|
1883
|
-
let t =
|
|
1884
|
-
h && !
|
|
1860
|
+
let t = Q(e);
|
|
1861
|
+
h && !Tr(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
1885
1862
|
}
|
|
1886
1863
|
return n(), () => {
|
|
1887
1864
|
var e;
|
|
@@ -1890,20 +1867,20 @@ function jr(e, t, n, r) {
|
|
|
1890
1867
|
}), d == null || d(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
1891
1868
|
};
|
|
1892
1869
|
}
|
|
1893
|
-
var
|
|
1870
|
+
var Or = jn, kr = Mn, Ar = Tn, jr = Pn, Mr = On, Nr = wn, Pr = Nn, Fr = (e, t, n) => {
|
|
1894
1871
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
1895
|
-
platform:
|
|
1872
|
+
platform: wr,
|
|
1896
1873
|
...n
|
|
1897
1874
|
}, a = {
|
|
1898
1875
|
...i.platform,
|
|
1899
1876
|
_c: r
|
|
1900
1877
|
};
|
|
1901
|
-
return
|
|
1878
|
+
return Cn(e, t, {
|
|
1902
1879
|
...i,
|
|
1903
1880
|
platform: a
|
|
1904
1881
|
});
|
|
1905
|
-
},
|
|
1906
|
-
function
|
|
1882
|
+
}, Ir = typeof document < "u" ? x.useLayoutEffect : function() {};
|
|
1883
|
+
function Lr(e, t) {
|
|
1907
1884
|
if (e === t) return !0;
|
|
1908
1885
|
if (typeof e != typeof t) return !1;
|
|
1909
1886
|
if (typeof e == "function" && e.toString() === t.toString()) return !0;
|
|
@@ -1911,33 +1888,33 @@ function Vr(e, t) {
|
|
|
1911
1888
|
if (e && t && typeof e == "object") {
|
|
1912
1889
|
if (Array.isArray(e)) {
|
|
1913
1890
|
if (n = e.length, n !== t.length) return !1;
|
|
1914
|
-
for (r = n; r-- !== 0;) if (!
|
|
1891
|
+
for (r = n; r-- !== 0;) if (!Lr(e[r], t[r])) return !1;
|
|
1915
1892
|
return !0;
|
|
1916
1893
|
}
|
|
1917
1894
|
if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
|
|
1918
1895
|
for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
|
|
1919
1896
|
for (r = n; r-- !== 0;) {
|
|
1920
1897
|
let n = i[r];
|
|
1921
|
-
if (!(n === "_owner" && e.$$typeof) && !
|
|
1898
|
+
if (!(n === "_owner" && e.$$typeof) && !Lr(e[n], t[n])) return !1;
|
|
1922
1899
|
}
|
|
1923
1900
|
return !0;
|
|
1924
1901
|
}
|
|
1925
1902
|
return e !== e && t !== t;
|
|
1926
1903
|
}
|
|
1927
|
-
function
|
|
1904
|
+
function Rr(e) {
|
|
1928
1905
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1929
1906
|
}
|
|
1930
|
-
function
|
|
1931
|
-
let n =
|
|
1907
|
+
function zr(e, t) {
|
|
1908
|
+
let n = Rr(e);
|
|
1932
1909
|
return Math.round(t * n) / n;
|
|
1933
1910
|
}
|
|
1934
|
-
function
|
|
1911
|
+
function Br(e) {
|
|
1935
1912
|
let t = x.useRef(e);
|
|
1936
|
-
return
|
|
1913
|
+
return Ir(() => {
|
|
1937
1914
|
t.current = e;
|
|
1938
1915
|
}), t;
|
|
1939
1916
|
}
|
|
1940
|
-
function
|
|
1917
|
+
function Vr(e) {
|
|
1941
1918
|
e === void 0 && (e = {});
|
|
1942
1919
|
let { placement: t = "bottom", strategy: n = "absolute", middleware: r = [], platform: i, elements: { reference: a, floating: o } = {}, transform: s = !0, whileElementsMounted: c, open: l } = e, [u, d] = x.useState({
|
|
1943
1920
|
x: 0,
|
|
@@ -1947,24 +1924,24 @@ function Gr(e) {
|
|
|
1947
1924
|
middlewareData: {},
|
|
1948
1925
|
isPositioned: !1
|
|
1949
1926
|
}), [f, p] = x.useState(r);
|
|
1950
|
-
|
|
1927
|
+
Lr(f, r) || p(r);
|
|
1951
1928
|
let [m, h] = x.useState(null), [g, _] = x.useState(null), v = x.useCallback((e) => {
|
|
1952
|
-
e !==
|
|
1929
|
+
e !== C.current && (C.current = e, h(e));
|
|
1953
1930
|
}, []), y = x.useCallback((e) => {
|
|
1954
|
-
e !==
|
|
1955
|
-
}, []),
|
|
1956
|
-
if (!
|
|
1931
|
+
e !== w.current && (w.current = e, _(e));
|
|
1932
|
+
}, []), b = a || m, S = o || g, C = x.useRef(null), w = x.useRef(null), T = x.useRef(u), E = c != null, D = Br(c), O = Br(i), k = Br(l), A = x.useCallback(() => {
|
|
1933
|
+
if (!C.current || !w.current) return;
|
|
1957
1934
|
let e = {
|
|
1958
1935
|
placement: t,
|
|
1959
1936
|
strategy: n,
|
|
1960
1937
|
middleware: f
|
|
1961
1938
|
};
|
|
1962
|
-
|
|
1939
|
+
O.current && (e.platform = O.current), Fr(C.current, w.current, e).then((e) => {
|
|
1963
1940
|
let t = {
|
|
1964
1941
|
...e,
|
|
1965
|
-
isPositioned:
|
|
1942
|
+
isPositioned: k.current !== !1
|
|
1966
1943
|
};
|
|
1967
|
-
|
|
1944
|
+
j.current && !Lr(T.current, t) && (T.current = t, be.flushSync(() => {
|
|
1968
1945
|
d(t);
|
|
1969
1946
|
}));
|
|
1970
1947
|
});
|
|
@@ -1972,50 +1949,50 @@ function Gr(e) {
|
|
|
1972
1949
|
f,
|
|
1973
1950
|
t,
|
|
1974
1951
|
n,
|
|
1975
|
-
|
|
1976
|
-
|
|
1952
|
+
O,
|
|
1953
|
+
k
|
|
1977
1954
|
]);
|
|
1978
|
-
|
|
1979
|
-
l === !1 &&
|
|
1955
|
+
Ir(() => {
|
|
1956
|
+
l === !1 && T.current.isPositioned && (T.current.isPositioned = !1, d((e) => ({
|
|
1980
1957
|
...e,
|
|
1981
1958
|
isPositioned: !1
|
|
1982
1959
|
})));
|
|
1983
1960
|
}, [l]);
|
|
1984
|
-
let
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
}), []),
|
|
1988
|
-
if (
|
|
1989
|
-
if (
|
|
1990
|
-
|
|
1961
|
+
let j = x.useRef(!1);
|
|
1962
|
+
Ir(() => (j.current = !0, () => {
|
|
1963
|
+
j.current = !1;
|
|
1964
|
+
}), []), Ir(() => {
|
|
1965
|
+
if (b && (C.current = b), S && (w.current = S), b && S) {
|
|
1966
|
+
if (D.current) return D.current(b, S, A);
|
|
1967
|
+
A();
|
|
1991
1968
|
}
|
|
1992
1969
|
}, [
|
|
1970
|
+
b,
|
|
1993
1971
|
S,
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
D
|
|
1972
|
+
A,
|
|
1973
|
+
D,
|
|
1974
|
+
E
|
|
1998
1975
|
]);
|
|
1999
|
-
let
|
|
2000
|
-
reference:
|
|
2001
|
-
floating:
|
|
1976
|
+
let M = x.useMemo(() => ({
|
|
1977
|
+
reference: C,
|
|
1978
|
+
floating: w,
|
|
2002
1979
|
setReference: v,
|
|
2003
1980
|
setFloating: y
|
|
2004
|
-
}), [v, y]),
|
|
2005
|
-
reference:
|
|
2006
|
-
floating:
|
|
2007
|
-
}), [
|
|
1981
|
+
}), [v, y]), N = x.useMemo(() => ({
|
|
1982
|
+
reference: b,
|
|
1983
|
+
floating: S
|
|
1984
|
+
}), [b, S]), ee = x.useMemo(() => {
|
|
2008
1985
|
let e = {
|
|
2009
1986
|
position: n,
|
|
2010
1987
|
left: 0,
|
|
2011
1988
|
top: 0
|
|
2012
1989
|
};
|
|
2013
|
-
if (!
|
|
2014
|
-
let t =
|
|
1990
|
+
if (!N.floating) return e;
|
|
1991
|
+
let t = zr(N.floating, u.x), r = zr(N.floating, u.y);
|
|
2015
1992
|
return s ? {
|
|
2016
1993
|
...e,
|
|
2017
1994
|
transform: "translate(" + t + "px, " + r + "px)",
|
|
2018
|
-
...
|
|
1995
|
+
...Rr(N.floating) >= 1.5 && { willChange: "transform" }
|
|
2019
1996
|
} : {
|
|
2020
1997
|
position: n,
|
|
2021
1998
|
left: t,
|
|
@@ -2024,25 +2001,25 @@ function Gr(e) {
|
|
|
2024
2001
|
}, [
|
|
2025
2002
|
n,
|
|
2026
2003
|
s,
|
|
2027
|
-
|
|
2004
|
+
N.floating,
|
|
2028
2005
|
u.x,
|
|
2029
2006
|
u.y
|
|
2030
2007
|
]);
|
|
2031
2008
|
return x.useMemo(() => ({
|
|
2032
2009
|
...u,
|
|
2033
|
-
update:
|
|
2034
|
-
refs:
|
|
2035
|
-
elements:
|
|
2010
|
+
update: A,
|
|
2011
|
+
refs: M,
|
|
2012
|
+
elements: N,
|
|
2036
2013
|
floatingStyles: ee
|
|
2037
2014
|
}), [
|
|
2038
2015
|
u,
|
|
2039
|
-
|
|
2016
|
+
A,
|
|
2017
|
+
M,
|
|
2040
2018
|
N,
|
|
2041
|
-
P,
|
|
2042
2019
|
ee
|
|
2043
2020
|
]);
|
|
2044
2021
|
}
|
|
2045
|
-
var
|
|
2022
|
+
var Hr = (e) => {
|
|
2046
2023
|
function t(e) {
|
|
2047
2024
|
return {}.hasOwnProperty.call(e, "current");
|
|
2048
2025
|
}
|
|
@@ -2051,194 +2028,194 @@ var Kr = (e) => {
|
|
|
2051
2028
|
options: e,
|
|
2052
2029
|
fn(n) {
|
|
2053
2030
|
let { element: r, padding: i } = typeof e == "function" ? e(n) : e;
|
|
2054
|
-
return r && t(r) ? r.current == null ? {} :
|
|
2031
|
+
return r && t(r) ? r.current == null ? {} : Nr({
|
|
2055
2032
|
element: r.current,
|
|
2056
2033
|
padding: i
|
|
2057
|
-
}).fn(n) : r ?
|
|
2034
|
+
}).fn(n) : r ? Nr({
|
|
2058
2035
|
element: r,
|
|
2059
2036
|
padding: i
|
|
2060
2037
|
}).fn(n) : {};
|
|
2061
2038
|
}
|
|
2062
2039
|
};
|
|
2063
|
-
},
|
|
2064
|
-
let n =
|
|
2040
|
+
}, Ur = (e, t) => {
|
|
2041
|
+
let n = Or(e);
|
|
2065
2042
|
return {
|
|
2066
2043
|
name: n.name,
|
|
2067
2044
|
fn: n.fn,
|
|
2068
2045
|
options: [e, t]
|
|
2069
2046
|
};
|
|
2070
|
-
},
|
|
2071
|
-
let n =
|
|
2047
|
+
}, Wr = (e, t) => {
|
|
2048
|
+
let n = kr(e);
|
|
2072
2049
|
return {
|
|
2073
2050
|
name: n.name,
|
|
2074
2051
|
fn: n.fn,
|
|
2075
2052
|
options: [e, t]
|
|
2076
2053
|
};
|
|
2077
|
-
},
|
|
2078
|
-
fn:
|
|
2054
|
+
}, Gr = (e, t) => ({
|
|
2055
|
+
fn: Pr(e).fn,
|
|
2079
2056
|
options: [e, t]
|
|
2080
|
-
}),
|
|
2081
|
-
let n =
|
|
2057
|
+
}), Kr = (e, t) => {
|
|
2058
|
+
let n = Ar(e);
|
|
2082
2059
|
return {
|
|
2083
2060
|
name: n.name,
|
|
2084
2061
|
fn: n.fn,
|
|
2085
2062
|
options: [e, t]
|
|
2086
2063
|
};
|
|
2087
|
-
},
|
|
2088
|
-
let n =
|
|
2064
|
+
}, qr = (e, t) => {
|
|
2065
|
+
let n = jr(e);
|
|
2089
2066
|
return {
|
|
2090
2067
|
name: n.name,
|
|
2091
2068
|
fn: n.fn,
|
|
2092
2069
|
options: [e, t]
|
|
2093
2070
|
};
|
|
2094
|
-
},
|
|
2095
|
-
let n =
|
|
2071
|
+
}, Jr = (e, t) => {
|
|
2072
|
+
let n = Mr(e);
|
|
2096
2073
|
return {
|
|
2097
2074
|
name: n.name,
|
|
2098
2075
|
fn: n.fn,
|
|
2099
2076
|
options: [e, t]
|
|
2100
2077
|
};
|
|
2101
|
-
},
|
|
2102
|
-
let n =
|
|
2078
|
+
}, Yr = (e, t) => {
|
|
2079
|
+
let n = Hr(e);
|
|
2103
2080
|
return {
|
|
2104
2081
|
name: n.name,
|
|
2105
2082
|
fn: n.fn,
|
|
2106
2083
|
options: [e, t]
|
|
2107
2084
|
};
|
|
2108
|
-
},
|
|
2085
|
+
}, Xr = "Arrow", Zr = x.forwardRef((e, t) => {
|
|
2109
2086
|
let { children: n, width: r = 10, height: i = 5, ...a } = e;
|
|
2110
|
-
return /* @__PURE__ */ (0,
|
|
2087
|
+
return /* @__PURE__ */ (0, b.jsx)(c.svg, {
|
|
2111
2088
|
...a,
|
|
2112
2089
|
ref: t,
|
|
2113
2090
|
width: r,
|
|
2114
2091
|
height: i,
|
|
2115
2092
|
viewBox: "0 0 30 10",
|
|
2116
2093
|
preserveAspectRatio: "none",
|
|
2117
|
-
children: e.asChild ? n : /* @__PURE__ */ (0,
|
|
2094
|
+
children: e.asChild ? n : /* @__PURE__ */ (0, b.jsx)("polygon", { points: "0,0 30,0 15,10" })
|
|
2118
2095
|
});
|
|
2119
2096
|
});
|
|
2120
|
-
|
|
2121
|
-
var
|
|
2097
|
+
Zr.displayName = Xr;
|
|
2098
|
+
var Qr = Zr, $r = "Popper", [ei, ti] = o($r), [ni, ri] = ei($r), ii = (e) => {
|
|
2122
2099
|
let { __scopePopper: t, children: n } = e, [r, i] = x.useState(null);
|
|
2123
|
-
return /* @__PURE__ */ (0,
|
|
2100
|
+
return /* @__PURE__ */ (0, b.jsx)(ni, {
|
|
2124
2101
|
scope: t,
|
|
2125
2102
|
anchor: r,
|
|
2126
2103
|
onAnchorChange: i,
|
|
2127
2104
|
children: n
|
|
2128
2105
|
});
|
|
2129
2106
|
};
|
|
2130
|
-
|
|
2131
|
-
var
|
|
2132
|
-
let { __scopePopper: n, virtualRef: r, ...i } = e, a =
|
|
2107
|
+
ii.displayName = $r;
|
|
2108
|
+
var ai = "PopperAnchor", oi = x.forwardRef((e, t) => {
|
|
2109
|
+
let { __scopePopper: n, virtualRef: r, ...i } = e, a = ri(ai, n), o = x.useRef(null), s = m(t, o), l = x.useRef(null);
|
|
2133
2110
|
return x.useEffect(() => {
|
|
2134
2111
|
let e = l.current;
|
|
2135
|
-
l.current = (r == null ? void 0 : r.current) ||
|
|
2136
|
-
}), r ? null : /* @__PURE__ */ (0,
|
|
2112
|
+
l.current = (r == null ? void 0 : r.current) || o.current, e !== l.current && a.onAnchorChange(l.current);
|
|
2113
|
+
}), r ? null : /* @__PURE__ */ (0, b.jsx)(c.div, {
|
|
2137
2114
|
...i,
|
|
2138
|
-
ref:
|
|
2115
|
+
ref: s
|
|
2139
2116
|
});
|
|
2140
2117
|
});
|
|
2141
|
-
|
|
2142
|
-
var
|
|
2143
|
-
var n, r, i,
|
|
2144
|
-
let { __scopePopper:
|
|
2118
|
+
oi.displayName = ai;
|
|
2119
|
+
var si = "PopperContent", [ci, li] = ei(si), ui = x.forwardRef((e, t) => {
|
|
2120
|
+
var n, r, i, o, s, l, u, f;
|
|
2121
|
+
let { __scopePopper: p, side: h = "bottom", sideOffset: g = 0, align: _ = "center", alignOffset: v = 0, arrowPadding: y = 0, avoidCollisions: S = !0, collisionBoundary: C = [], collisionPadding: w = 0, sticky: E = "partial", hideWhenDetached: D = !1, updatePositionStrategy: O = "optimized", onPlaced: k, ...A } = e, j = ri(si, p), [M, N] = x.useState(null), ee = m(t, (e) => N(e)), [te, ne] = x.useState(null), re = d(te), ie = (n = re == null ? void 0 : re.width) == null ? 0 : n, ae = (r = re == null ? void 0 : re.height) == null ? 0 : r, oe = h + (_ === "center" ? "" : "-" + _), se = typeof w == "number" ? w : {
|
|
2145
2122
|
top: 0,
|
|
2146
2123
|
right: 0,
|
|
2147
2124
|
bottom: 0,
|
|
2148
2125
|
left: 0,
|
|
2149
2126
|
...w
|
|
2150
|
-
},
|
|
2151
|
-
padding:
|
|
2152
|
-
boundary:
|
|
2153
|
-
altBoundary:
|
|
2154
|
-
}, { refs:
|
|
2127
|
+
}, ce = Array.isArray(C) ? C : [C], le = ce.length > 0, ue = {
|
|
2128
|
+
padding: se,
|
|
2129
|
+
boundary: ce.filter(mi),
|
|
2130
|
+
altBoundary: le
|
|
2131
|
+
}, { refs: de, floatingStyles: fe, placement: pe, isPositioned: me, middlewareData: P } = Vr({
|
|
2155
2132
|
strategy: "fixed",
|
|
2156
|
-
placement:
|
|
2157
|
-
whileElementsMounted: (...e) =>
|
|
2158
|
-
elements: { reference:
|
|
2133
|
+
placement: oe,
|
|
2134
|
+
whileElementsMounted: (...e) => Dr(...e, { animationFrame: O === "always" }),
|
|
2135
|
+
elements: { reference: j.anchor },
|
|
2159
2136
|
middleware: [
|
|
2160
|
-
|
|
2161
|
-
mainAxis:
|
|
2162
|
-
alignmentAxis:
|
|
2137
|
+
Ur({
|
|
2138
|
+
mainAxis: g + ae,
|
|
2139
|
+
alignmentAxis: v
|
|
2163
2140
|
}),
|
|
2164
|
-
|
|
2141
|
+
S && Wr({
|
|
2165
2142
|
mainAxis: !0,
|
|
2166
2143
|
crossAxis: !1,
|
|
2167
|
-
limiter:
|
|
2168
|
-
...
|
|
2144
|
+
limiter: E === "partial" ? Gr() : void 0,
|
|
2145
|
+
...ue
|
|
2169
2146
|
}),
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
...
|
|
2147
|
+
S && Kr({ ...ue }),
|
|
2148
|
+
qr({
|
|
2149
|
+
...ue,
|
|
2173
2150
|
apply: ({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
2174
2151
|
let { width: i, height: a } = t.reference, o = e.floating.style;
|
|
2175
2152
|
o.setProperty("--radix-popper-available-width", `${n}px`), o.setProperty("--radix-popper-available-height", `${r}px`), o.setProperty("--radix-popper-anchor-width", `${i}px`), o.setProperty("--radix-popper-anchor-height", `${a}px`);
|
|
2176
2153
|
}
|
|
2177
2154
|
}),
|
|
2178
|
-
|
|
2179
|
-
element:
|
|
2155
|
+
te && Yr({
|
|
2156
|
+
element: te,
|
|
2180
2157
|
padding: y
|
|
2181
2158
|
}),
|
|
2182
|
-
|
|
2183
|
-
arrowWidth:
|
|
2184
|
-
arrowHeight:
|
|
2159
|
+
hi({
|
|
2160
|
+
arrowWidth: ie,
|
|
2161
|
+
arrowHeight: ae
|
|
2185
2162
|
}),
|
|
2186
|
-
|
|
2163
|
+
D && Jr({
|
|
2187
2164
|
strategy: "referenceHidden",
|
|
2188
|
-
...
|
|
2165
|
+
...ue
|
|
2189
2166
|
})
|
|
2190
2167
|
]
|
|
2191
|
-
}), [
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
}, [
|
|
2195
|
-
let
|
|
2196
|
-
return
|
|
2197
|
-
|
|
2198
|
-
}, [
|
|
2199
|
-
ref:
|
|
2168
|
+
}), [he, F] = gi(pe), ge = T(k);
|
|
2169
|
+
a(() => {
|
|
2170
|
+
me && (ge == null || ge());
|
|
2171
|
+
}, [me, ge]);
|
|
2172
|
+
let _e = (i = P.arrow) == null ? void 0 : i.x, ve = (o = P.arrow) == null ? void 0 : o.y, ye = ((s = P.arrow) == null ? void 0 : s.centerOffset) !== 0, [be, xe] = x.useState();
|
|
2173
|
+
return a(() => {
|
|
2174
|
+
M && xe(window.getComputedStyle(M).zIndex);
|
|
2175
|
+
}, [M]), /* @__PURE__ */ (0, b.jsx)("div", {
|
|
2176
|
+
ref: de.setFloating,
|
|
2200
2177
|
"data-radix-popper-content-wrapper": "",
|
|
2201
2178
|
style: {
|
|
2202
|
-
...
|
|
2203
|
-
transform:
|
|
2179
|
+
...fe,
|
|
2180
|
+
transform: me ? fe.transform : "translate(0, -200%)",
|
|
2204
2181
|
minWidth: "max-content",
|
|
2205
|
-
zIndex:
|
|
2206
|
-
"--radix-popper-transform-origin": [(
|
|
2207
|
-
...((
|
|
2182
|
+
zIndex: be,
|
|
2183
|
+
"--radix-popper-transform-origin": [(l = P.transformOrigin) == null ? void 0 : l.x, (u = P.transformOrigin) == null ? void 0 : u.y].join(" "),
|
|
2184
|
+
...((f = P.hide) == null ? void 0 : f.referenceHidden) && {
|
|
2208
2185
|
visibility: "hidden",
|
|
2209
2186
|
pointerEvents: "none"
|
|
2210
2187
|
}
|
|
2211
2188
|
},
|
|
2212
2189
|
dir: e.dir,
|
|
2213
|
-
children: /* @__PURE__ */ (0,
|
|
2214
|
-
scope:
|
|
2215
|
-
placedSide:
|
|
2216
|
-
onArrowChange:
|
|
2217
|
-
arrowX:
|
|
2218
|
-
arrowY:
|
|
2219
|
-
shouldHideArrow:
|
|
2220
|
-
children: /* @__PURE__ */ (0,
|
|
2221
|
-
"data-side":
|
|
2222
|
-
"data-align":
|
|
2223
|
-
...
|
|
2224
|
-
ref:
|
|
2190
|
+
children: /* @__PURE__ */ (0, b.jsx)(ci, {
|
|
2191
|
+
scope: p,
|
|
2192
|
+
placedSide: he,
|
|
2193
|
+
onArrowChange: ne,
|
|
2194
|
+
arrowX: _e,
|
|
2195
|
+
arrowY: ve,
|
|
2196
|
+
shouldHideArrow: ye,
|
|
2197
|
+
children: /* @__PURE__ */ (0, b.jsx)(c.div, {
|
|
2198
|
+
"data-side": he,
|
|
2199
|
+
"data-align": F,
|
|
2200
|
+
...A,
|
|
2201
|
+
ref: ee,
|
|
2225
2202
|
style: {
|
|
2226
|
-
...
|
|
2227
|
-
animation:
|
|
2203
|
+
...A.style,
|
|
2204
|
+
animation: me ? void 0 : "none"
|
|
2228
2205
|
}
|
|
2229
2206
|
})
|
|
2230
2207
|
})
|
|
2231
2208
|
});
|
|
2232
2209
|
});
|
|
2233
|
-
|
|
2234
|
-
var
|
|
2210
|
+
ui.displayName = si;
|
|
2211
|
+
var di = "PopperArrow", fi = {
|
|
2235
2212
|
top: "bottom",
|
|
2236
2213
|
right: "left",
|
|
2237
2214
|
bottom: "top",
|
|
2238
2215
|
left: "right"
|
|
2239
|
-
},
|
|
2240
|
-
let { __scopePopper: n, ...r } = e, i =
|
|
2241
|
-
return /* @__PURE__ */ (0,
|
|
2216
|
+
}, pi = x.forwardRef(function(e, t) {
|
|
2217
|
+
let { __scopePopper: n, ...r } = e, i = li(di, n), a = fi[i.placedSide];
|
|
2218
|
+
return /* @__PURE__ */ (0, b.jsx)("span", {
|
|
2242
2219
|
ref: i.onArrowChange,
|
|
2243
2220
|
style: {
|
|
2244
2221
|
position: "absolute",
|
|
@@ -2259,7 +2236,7 @@ var hi = "PopperArrow", gi = {
|
|
|
2259
2236
|
}[i.placedSide],
|
|
2260
2237
|
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
2261
2238
|
},
|
|
2262
|
-
children: /* @__PURE__ */ (0,
|
|
2239
|
+
children: /* @__PURE__ */ (0, b.jsx)(Qr, {
|
|
2263
2240
|
...r,
|
|
2264
2241
|
ref: t,
|
|
2265
2242
|
style: {
|
|
@@ -2269,16 +2246,16 @@ var hi = "PopperArrow", gi = {
|
|
|
2269
2246
|
})
|
|
2270
2247
|
});
|
|
2271
2248
|
});
|
|
2272
|
-
|
|
2273
|
-
function
|
|
2249
|
+
pi.displayName = di;
|
|
2250
|
+
function mi(e) {
|
|
2274
2251
|
return e !== null;
|
|
2275
2252
|
}
|
|
2276
|
-
var
|
|
2253
|
+
var hi = (e) => ({
|
|
2277
2254
|
name: "transformOrigin",
|
|
2278
2255
|
options: e,
|
|
2279
2256
|
fn(t) {
|
|
2280
2257
|
var n, r, i, a, o;
|
|
2281
|
-
let { placement: s, rects: c, middlewareData: l } = t, u = ((n = l.arrow) == null ? void 0 : n.centerOffset) !== 0, d = u ? 0 : e.arrowWidth, f = u ? 0 : e.arrowHeight, [p, m] =
|
|
2258
|
+
let { placement: s, rects: c, middlewareData: l } = t, u = ((n = l.arrow) == null ? void 0 : n.centerOffset) !== 0, d = u ? 0 : e.arrowWidth, f = u ? 0 : e.arrowHeight, [p, m] = gi(s), h = {
|
|
2282
2259
|
start: "0%",
|
|
2283
2260
|
center: "50%",
|
|
2284
2261
|
end: "100%"
|
|
@@ -2289,16 +2266,36 @@ var yi = (e) => ({
|
|
|
2289
2266
|
} };
|
|
2290
2267
|
}
|
|
2291
2268
|
});
|
|
2292
|
-
function
|
|
2269
|
+
function gi(e) {
|
|
2293
2270
|
let [t, n = "center"] = e.split("-");
|
|
2294
2271
|
return [t, n];
|
|
2295
2272
|
}
|
|
2296
|
-
var
|
|
2273
|
+
var _i = ii, vi = oi, yi = ui, bi = pi, xi = Object.freeze({
|
|
2274
|
+
position: "absolute",
|
|
2275
|
+
border: 0,
|
|
2276
|
+
width: 1,
|
|
2277
|
+
height: 1,
|
|
2278
|
+
padding: 0,
|
|
2279
|
+
margin: -1,
|
|
2280
|
+
overflow: "hidden",
|
|
2281
|
+
clip: "rect(0, 0, 0, 0)",
|
|
2282
|
+
whiteSpace: "nowrap",
|
|
2283
|
+
wordWrap: "normal"
|
|
2284
|
+
}), Si = "VisuallyHidden", Ci = x.forwardRef((e, t) => /* @__PURE__ */ (0, b.jsx)(c.span, {
|
|
2285
|
+
...e,
|
|
2286
|
+
ref: t,
|
|
2287
|
+
style: {
|
|
2288
|
+
...xi,
|
|
2289
|
+
...e.style
|
|
2290
|
+
}
|
|
2291
|
+
}));
|
|
2292
|
+
Ci.displayName = Si;
|
|
2293
|
+
var wi = Ci, [Ti, Ei] = o("Tooltip", [ti]), Di = ti(), Oi = "TooltipProvider", ki = 700, Ai = "tooltip.open", [ji, Mi] = Ti(Oi), Ni = (e) => {
|
|
2297
2294
|
let { __scopeTooltip: t, delayDuration: n = ki, skipDelayDuration: r = 300, disableHoverableContent: i = !1, children: a } = e, o = x.useRef(!0), s = x.useRef(!1), c = x.useRef(0);
|
|
2298
2295
|
return x.useEffect(() => {
|
|
2299
2296
|
let e = c.current;
|
|
2300
2297
|
return () => window.clearTimeout(e);
|
|
2301
|
-
}, []), /* @__PURE__ */ (0,
|
|
2298
|
+
}, []), /* @__PURE__ */ (0, b.jsx)(ji, {
|
|
2302
2299
|
scope: t,
|
|
2303
2300
|
isOpenDelayedRef: o,
|
|
2304
2301
|
delayDuration: n,
|
|
@@ -2318,45 +2315,45 @@ var xi = ci, Si = ui, Ci = mi, wi = _i, [Ti, Ei] = h("Tooltip", [ai]), Di = ai()
|
|
|
2318
2315
|
};
|
|
2319
2316
|
Ni.displayName = Oi;
|
|
2320
2317
|
var Pi = "Tooltip", [Fi, Ii] = Ti(Pi), Li = (e) => {
|
|
2321
|
-
let { __scopeTooltip: t, children: n, open: r, defaultOpen: i, onOpenChange: a, disableHoverableContent: o, delayDuration:
|
|
2318
|
+
let { __scopeTooltip: t, children: n, open: r, defaultOpen: i, onOpenChange: a, disableHoverableContent: o, delayDuration: c } = e, l = Mi(Pi, e.__scopeTooltip), u = Di(t), [d, f] = x.useState(null), p = w(), m = x.useRef(0), h = o == null ? l.disableHoverableContent : o, g = c == null ? l.delayDuration : c, _ = x.useRef(!1), [v, y] = s({
|
|
2322
2319
|
prop: r,
|
|
2323
2320
|
defaultProp: i == null ? !1 : i,
|
|
2324
2321
|
onChange: (e) => {
|
|
2325
|
-
e ? (
|
|
2322
|
+
e ? (l.onOpen(), document.dispatchEvent(new CustomEvent(Ai))) : l.onClose(), a == null || a(e);
|
|
2326
2323
|
},
|
|
2327
2324
|
caller: Pi
|
|
2328
|
-
}),
|
|
2329
|
-
window.clearTimeout(
|
|
2330
|
-
}, [y]), w = x.useCallback(() => {
|
|
2331
|
-
window.clearTimeout(p.current), p.current = 0, y(!1);
|
|
2325
|
+
}), S = x.useMemo(() => v ? _.current ? "delayed-open" : "instant-open" : "closed", [v]), C = x.useCallback(() => {
|
|
2326
|
+
window.clearTimeout(m.current), m.current = 0, _.current = !1, y(!0);
|
|
2332
2327
|
}, [y]), T = x.useCallback(() => {
|
|
2333
|
-
window.clearTimeout(
|
|
2334
|
-
|
|
2328
|
+
window.clearTimeout(m.current), m.current = 0, y(!1);
|
|
2329
|
+
}, [y]), E = x.useCallback(() => {
|
|
2330
|
+
window.clearTimeout(m.current), m.current = window.setTimeout(() => {
|
|
2331
|
+
_.current = !0, y(!0), m.current = 0;
|
|
2335
2332
|
}, g);
|
|
2336
2333
|
}, [g, y]);
|
|
2337
2334
|
return x.useEffect(() => () => {
|
|
2338
|
-
|
|
2339
|
-
}, []), /* @__PURE__ */ (0,
|
|
2340
|
-
...
|
|
2341
|
-
children: /* @__PURE__ */ (0,
|
|
2335
|
+
m.current && (window.clearTimeout(m.current), m.current = 0);
|
|
2336
|
+
}, []), /* @__PURE__ */ (0, b.jsx)(_i, {
|
|
2337
|
+
...u,
|
|
2338
|
+
children: /* @__PURE__ */ (0, b.jsx)(Fi, {
|
|
2342
2339
|
scope: t,
|
|
2343
|
-
contentId:
|
|
2340
|
+
contentId: p,
|
|
2344
2341
|
open: v,
|
|
2345
|
-
stateAttribute:
|
|
2346
|
-
trigger:
|
|
2347
|
-
onTriggerChange:
|
|
2342
|
+
stateAttribute: S,
|
|
2343
|
+
trigger: d,
|
|
2344
|
+
onTriggerChange: f,
|
|
2348
2345
|
onTriggerEnter: x.useCallback(() => {
|
|
2349
|
-
|
|
2346
|
+
l.isOpenDelayedRef.current ? E() : C();
|
|
2350
2347
|
}, [
|
|
2351
|
-
|
|
2352
|
-
|
|
2348
|
+
l.isOpenDelayedRef,
|
|
2349
|
+
E,
|
|
2353
2350
|
C
|
|
2354
2351
|
]),
|
|
2355
2352
|
onTriggerLeave: x.useCallback(() => {
|
|
2356
|
-
h ?
|
|
2357
|
-
}, [
|
|
2353
|
+
h ? T() : (window.clearTimeout(m.current), m.current = 0);
|
|
2354
|
+
}, [T, h]),
|
|
2358
2355
|
onOpen: C,
|
|
2359
|
-
onClose:
|
|
2356
|
+
onClose: T,
|
|
2360
2357
|
disableHoverableContent: h,
|
|
2361
2358
|
children: n
|
|
2362
2359
|
})
|
|
@@ -2364,41 +2361,41 @@ var Pi = "Tooltip", [Fi, Ii] = Ti(Pi), Li = (e) => {
|
|
|
2364
2361
|
};
|
|
2365
2362
|
Li.displayName = Pi;
|
|
2366
2363
|
var Ri = "TooltipTrigger", zi = x.forwardRef((e, t) => {
|
|
2367
|
-
let { __scopeTooltip: n, ...r } = e, i = Ii(Ri, n), a = Mi(Ri, n),
|
|
2368
|
-
return x.useEffect(() => () => document.removeEventListener("pointerup",
|
|
2364
|
+
let { __scopeTooltip: n, ...r } = e, i = Ii(Ri, n), a = Mi(Ri, n), o = Di(n), s = m(t, x.useRef(null), i.onTriggerChange), u = x.useRef(!1), d = x.useRef(!1), f = x.useCallback(() => u.current = !1, []);
|
|
2365
|
+
return x.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ (0, b.jsx)(vi, {
|
|
2369
2366
|
asChild: !0,
|
|
2370
|
-
...
|
|
2371
|
-
children: /* @__PURE__ */ (0,
|
|
2367
|
+
...o,
|
|
2368
|
+
children: /* @__PURE__ */ (0, b.jsx)(c.button, {
|
|
2372
2369
|
"aria-describedby": i.open ? i.contentId : void 0,
|
|
2373
2370
|
"data-state": i.stateAttribute,
|
|
2374
2371
|
...r,
|
|
2375
|
-
ref:
|
|
2376
|
-
onPointerMove:
|
|
2377
|
-
e.pointerType !== "touch" && !
|
|
2372
|
+
ref: s,
|
|
2373
|
+
onPointerMove: l(e.onPointerMove, (e) => {
|
|
2374
|
+
e.pointerType !== "touch" && !d.current && !a.isPointerInTransitRef.current && (i.onTriggerEnter(), d.current = !0);
|
|
2378
2375
|
}),
|
|
2379
|
-
onPointerLeave:
|
|
2380
|
-
i.onTriggerLeave(),
|
|
2376
|
+
onPointerLeave: l(e.onPointerLeave, () => {
|
|
2377
|
+
i.onTriggerLeave(), d.current = !1;
|
|
2381
2378
|
}),
|
|
2382
|
-
onPointerDown:
|
|
2383
|
-
i.open && i.onClose(),
|
|
2379
|
+
onPointerDown: l(e.onPointerDown, () => {
|
|
2380
|
+
i.open && i.onClose(), u.current = !0, document.addEventListener("pointerup", f, { once: !0 });
|
|
2384
2381
|
}),
|
|
2385
|
-
onFocus:
|
|
2386
|
-
|
|
2382
|
+
onFocus: l(e.onFocus, () => {
|
|
2383
|
+
u.current || i.onOpen();
|
|
2387
2384
|
}),
|
|
2388
|
-
onBlur:
|
|
2389
|
-
onClick:
|
|
2385
|
+
onBlur: l(e.onBlur, i.onClose),
|
|
2386
|
+
onClick: l(e.onClick, i.onClose)
|
|
2390
2387
|
})
|
|
2391
2388
|
});
|
|
2392
2389
|
});
|
|
2393
2390
|
zi.displayName = Ri;
|
|
2394
2391
|
var Bi = "TooltipPortal", [Vi, Hi] = Ti(Bi, { forceMount: void 0 }), Ui = (e) => {
|
|
2395
2392
|
let { __scopeTooltip: t, forceMount: n, children: r, container: i } = e, a = Ii(Bi, t);
|
|
2396
|
-
return /* @__PURE__ */ (0,
|
|
2393
|
+
return /* @__PURE__ */ (0, b.jsx)(Vi, {
|
|
2397
2394
|
scope: t,
|
|
2398
2395
|
forceMount: n,
|
|
2399
|
-
children: /* @__PURE__ */ (0,
|
|
2396
|
+
children: /* @__PURE__ */ (0, b.jsx)(we, {
|
|
2400
2397
|
present: n || a.open,
|
|
2401
|
-
children: /* @__PURE__ */ (0,
|
|
2398
|
+
children: /* @__PURE__ */ (0, b.jsx)(Se, {
|
|
2402
2399
|
asChild: !0,
|
|
2403
2400
|
container: i,
|
|
2404
2401
|
children: r
|
|
@@ -2409,62 +2406,62 @@ var Bi = "TooltipPortal", [Vi, Hi] = Ti(Bi, { forceMount: void 0 }), Ui = (e) =>
|
|
|
2409
2406
|
Ui.displayName = Bi;
|
|
2410
2407
|
var Wi = "TooltipContent", Gi = x.forwardRef((e, t) => {
|
|
2411
2408
|
let n = Hi(Wi, e.__scopeTooltip), { forceMount: r = n.forceMount, side: i = "top", ...a } = e, o = Ii(Wi, e.__scopeTooltip);
|
|
2412
|
-
return /* @__PURE__ */ (0,
|
|
2409
|
+
return /* @__PURE__ */ (0, b.jsx)(we, {
|
|
2413
2410
|
present: r || o.open,
|
|
2414
|
-
children: o.disableHoverableContent ? /* @__PURE__ */ (0,
|
|
2411
|
+
children: o.disableHoverableContent ? /* @__PURE__ */ (0, b.jsx)(Xi, {
|
|
2415
2412
|
side: i,
|
|
2416
2413
|
...a,
|
|
2417
2414
|
ref: t
|
|
2418
|
-
}) : /* @__PURE__ */ (0,
|
|
2415
|
+
}) : /* @__PURE__ */ (0, b.jsx)(Ki, {
|
|
2419
2416
|
side: i,
|
|
2420
2417
|
...a,
|
|
2421
2418
|
ref: t
|
|
2422
2419
|
})
|
|
2423
2420
|
});
|
|
2424
2421
|
}), Ki = x.forwardRef((e, t) => {
|
|
2425
|
-
let n = Ii(Wi, e.__scopeTooltip), r = Mi(Wi, e.__scopeTooltip), i = x.useRef(null), a =
|
|
2426
|
-
|
|
2427
|
-
}, [
|
|
2422
|
+
let n = Ii(Wi, e.__scopeTooltip), r = Mi(Wi, e.__scopeTooltip), i = x.useRef(null), a = m(t, i), [o, s] = x.useState(null), { trigger: c, onClose: l } = n, u = i.current, { onPointerInTransitChange: d } = r, f = x.useCallback(() => {
|
|
2423
|
+
s(null), d(!1);
|
|
2424
|
+
}, [d]), p = x.useCallback((e, t) => {
|
|
2428
2425
|
let n = e.currentTarget, r = {
|
|
2429
2426
|
x: e.clientX,
|
|
2430
2427
|
y: e.clientY
|
|
2431
2428
|
}, i = ea(r, $i(r, n.getBoundingClientRect())), a = ta(t.getBoundingClientRect());
|
|
2432
|
-
|
|
2433
|
-
}, [
|
|
2434
|
-
return x.useEffect(() => () =>
|
|
2435
|
-
if (
|
|
2436
|
-
let e = (e) =>
|
|
2437
|
-
return
|
|
2438
|
-
|
|
2429
|
+
s(ra([...i, ...a])), d(!0);
|
|
2430
|
+
}, [d]);
|
|
2431
|
+
return x.useEffect(() => () => f(), [f]), x.useEffect(() => {
|
|
2432
|
+
if (c && u) {
|
|
2433
|
+
let e = (e) => p(e, u), t = (e) => p(e, c);
|
|
2434
|
+
return c.addEventListener("pointerleave", e), u.addEventListener("pointerleave", t), () => {
|
|
2435
|
+
c.removeEventListener("pointerleave", e), u.removeEventListener("pointerleave", t);
|
|
2439
2436
|
};
|
|
2440
2437
|
}
|
|
2441
2438
|
}, [
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2439
|
+
c,
|
|
2440
|
+
u,
|
|
2441
|
+
p,
|
|
2442
|
+
f
|
|
2446
2443
|
]), x.useEffect(() => {
|
|
2447
|
-
if (
|
|
2444
|
+
if (o) {
|
|
2448
2445
|
let e = (e) => {
|
|
2449
2446
|
let t = e.target, n = {
|
|
2450
2447
|
x: e.clientX,
|
|
2451
2448
|
y: e.clientY
|
|
2452
|
-
}, r = (
|
|
2453
|
-
r ?
|
|
2449
|
+
}, r = (c == null ? void 0 : c.contains(t)) || (u == null ? void 0 : u.contains(t)), i = !na(n, o);
|
|
2450
|
+
r ? f() : i && (f(), l());
|
|
2454
2451
|
};
|
|
2455
2452
|
return document.addEventListener("pointermove", e), () => document.removeEventListener("pointermove", e);
|
|
2456
2453
|
}
|
|
2457
2454
|
}, [
|
|
2458
|
-
|
|
2459
|
-
d,
|
|
2460
|
-
s,
|
|
2455
|
+
c,
|
|
2461
2456
|
u,
|
|
2462
|
-
|
|
2463
|
-
|
|
2457
|
+
o,
|
|
2458
|
+
l,
|
|
2459
|
+
f
|
|
2460
|
+
]), /* @__PURE__ */ (0, b.jsx)(Xi, {
|
|
2464
2461
|
...e,
|
|
2465
2462
|
ref: a
|
|
2466
2463
|
});
|
|
2467
|
-
}), [qi, Ji] = Ti(Pi, { isInside: !1 }), Yi =
|
|
2464
|
+
}), [qi, Ji] = Ti(Pi, { isInside: !1 }), Yi = p("TooltipContent"), Xi = x.forwardRef((e, t) => {
|
|
2468
2465
|
let { __scopeTooltip: n, children: r, "aria-label": i, onEscapeKeyDown: a, onPointerDownOutside: o, ...s } = e, c = Ii(Wi, n), l = Di(n), { onClose: u } = c;
|
|
2469
2466
|
return x.useEffect(() => (document.addEventListener(Ai, u), () => document.removeEventListener(Ai, u)), [u]), x.useEffect(() => {
|
|
2470
2467
|
if (c.trigger) {
|
|
@@ -2474,14 +2471,14 @@ var Wi = "TooltipContent", Gi = x.forwardRef((e, t) => {
|
|
|
2474
2471
|
};
|
|
2475
2472
|
return window.addEventListener("scroll", e, { capture: !0 }), () => window.removeEventListener("scroll", e, { capture: !0 });
|
|
2476
2473
|
}
|
|
2477
|
-
}, [c.trigger, u]), /* @__PURE__ */ (0,
|
|
2474
|
+
}, [c.trigger, u]), /* @__PURE__ */ (0, b.jsx)(N, {
|
|
2478
2475
|
asChild: !0,
|
|
2479
2476
|
disableOutsidePointerEvents: !1,
|
|
2480
2477
|
onEscapeKeyDown: a,
|
|
2481
2478
|
onPointerDownOutside: o,
|
|
2482
2479
|
onFocusOutside: (e) => e.preventDefault(),
|
|
2483
2480
|
onDismiss: u,
|
|
2484
|
-
children: /* @__PURE__ */ (0,
|
|
2481
|
+
children: /* @__PURE__ */ (0, b.jsxs)(yi, {
|
|
2485
2482
|
"data-state": c.stateAttribute,
|
|
2486
2483
|
...l,
|
|
2487
2484
|
...s,
|
|
@@ -2494,10 +2491,10 @@ var Wi = "TooltipContent", Gi = x.forwardRef((e, t) => {
|
|
|
2494
2491
|
"--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
|
|
2495
2492
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
2496
2493
|
},
|
|
2497
|
-
children: [/* @__PURE__ */ (0,
|
|
2494
|
+
children: [/* @__PURE__ */ (0, b.jsx)(Yi, { children: r }), /* @__PURE__ */ (0, b.jsx)(qi, {
|
|
2498
2495
|
scope: n,
|
|
2499
2496
|
isInside: !0,
|
|
2500
|
-
children: /* @__PURE__ */ (0,
|
|
2497
|
+
children: /* @__PURE__ */ (0, b.jsx)(wi, {
|
|
2501
2498
|
id: c.contentId,
|
|
2502
2499
|
role: "tooltip",
|
|
2503
2500
|
children: i || r
|
|
@@ -2509,7 +2506,7 @@ var Wi = "TooltipContent", Gi = x.forwardRef((e, t) => {
|
|
|
2509
2506
|
Gi.displayName = Wi;
|
|
2510
2507
|
var Zi = "TooltipArrow", Qi = x.forwardRef((e, t) => {
|
|
2511
2508
|
let { __scopeTooltip: n, ...r } = e, i = Di(n);
|
|
2512
|
-
return Ji(Zi, n).isInside ? null : /* @__PURE__ */ (0,
|
|
2509
|
+
return Ji(Zi, n).isInside ? null : /* @__PURE__ */ (0, b.jsx)(bi, {
|
|
2513
2510
|
...i,
|
|
2514
2511
|
...r,
|
|
2515
2512
|
ref: t
|
|
@@ -2626,7 +2623,7 @@ function ia(e) {
|
|
|
2626
2623
|
}
|
|
2627
2624
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
2628
2625
|
}
|
|
2629
|
-
var aa = Ni, oa = /* @__PURE__ */ e(
|
|
2626
|
+
var aa = Ni, oa = /* @__PURE__ */ e(i());
|
|
2630
2627
|
function sa(e) {
|
|
2631
2628
|
switch (e) {
|
|
2632
2629
|
case "tomato":
|
|
@@ -2670,7 +2667,7 @@ var ca = [
|
|
|
2670
2667
|
"105%",
|
|
2671
2668
|
"110%"
|
|
2672
2669
|
], $ = {
|
|
2673
|
-
...
|
|
2670
|
+
...f,
|
|
2674
2671
|
hasBackground: {
|
|
2675
2672
|
type: "boolean",
|
|
2676
2673
|
default: !0
|
|
@@ -2682,12 +2679,12 @@ var ca = [
|
|
|
2682
2679
|
},
|
|
2683
2680
|
accentColor: {
|
|
2684
2681
|
type: "enum",
|
|
2685
|
-
values:
|
|
2682
|
+
values: v,
|
|
2686
2683
|
default: "indigo"
|
|
2687
2684
|
},
|
|
2688
2685
|
grayColor: {
|
|
2689
2686
|
type: "enum",
|
|
2690
|
-
values:
|
|
2687
|
+
values: g,
|
|
2691
2688
|
default: "auto"
|
|
2692
2689
|
},
|
|
2693
2690
|
panelBackground: {
|
|
@@ -2697,7 +2694,7 @@ var ca = [
|
|
|
2697
2694
|
},
|
|
2698
2695
|
radius: {
|
|
2699
2696
|
type: "enum",
|
|
2700
|
-
values:
|
|
2697
|
+
values: _,
|
|
2701
2698
|
default: "medium"
|
|
2702
2699
|
},
|
|
2703
2700
|
scaling: {
|
|
@@ -2711,7 +2708,7 @@ function pa() {
|
|
|
2711
2708
|
if (e === void 0) throw Error("`useThemeContext` must be used within a `Theme`");
|
|
2712
2709
|
return e;
|
|
2713
2710
|
}
|
|
2714
|
-
var ma = x.forwardRef((e, t) => x.useContext(fa) === void 0 ? x.createElement(aa, { delayDuration: 200 }, x.createElement(
|
|
2711
|
+
var ma = x.forwardRef((e, t) => x.useContext(fa) === void 0 ? x.createElement(aa, { delayDuration: 200 }, x.createElement(Yt, { dir: "ltr" }, x.createElement(ha, {
|
|
2715
2712
|
...e,
|
|
2716
2713
|
ref: t
|
|
2717
2714
|
}))) : x.createElement(ga, {
|
|
@@ -2753,30 +2750,30 @@ var ha = x.forwardRef((e, t) => {
|
|
|
2753
2750
|
ha.displayName = "ThemeRoot";
|
|
2754
2751
|
var ga = x.forwardRef((e, t) => {
|
|
2755
2752
|
var n, r, i, a, o, s;
|
|
2756
|
-
let c = x.useContext(fa), { asChild: l, isRoot: u, hasBackground:
|
|
2753
|
+
let c = x.useContext(fa), { asChild: l, isRoot: u, hasBackground: d, appearance: f = (n = c == null ? void 0 : c.appearance) == null ? $.appearance.default : n, accentColor: p = (r = c == null ? void 0 : c.accentColor) == null ? $.accentColor.default : r, grayColor: m = (i = c == null ? void 0 : c.resolvedGrayColor) == null ? $.grayColor.default : i, panelBackground: h = (a = c == null ? void 0 : c.panelBackground) == null ? $.panelBackground.default : a, radius: g = (o = c == null ? void 0 : c.radius) == null ? $.radius.default : o, scaling: _ = (s = c == null ? void 0 : c.scaling) == null ? $.scaling.default : s, onAppearanceChange: v = da, onAccentColorChange: b = da, onGrayColorChange: S = da, onPanelBackgroundChange: C = da, onRadiusChange: w = da, onScalingChange: T = da, ...E } = e, D = l ? y : "div", O = m === "auto" ? sa(p) : m, k = e.appearance === "light" || e.appearance === "dark", A = d === void 0 ? u || k : d;
|
|
2757
2754
|
return x.createElement(fa.Provider, { value: x.useMemo(() => ({
|
|
2758
|
-
appearance:
|
|
2759
|
-
accentColor:
|
|
2760
|
-
grayColor:
|
|
2755
|
+
appearance: f,
|
|
2756
|
+
accentColor: p,
|
|
2757
|
+
grayColor: m,
|
|
2761
2758
|
resolvedGrayColor: O,
|
|
2762
|
-
panelBackground:
|
|
2763
|
-
radius:
|
|
2764
|
-
scaling:
|
|
2765
|
-
onAppearanceChange:
|
|
2759
|
+
panelBackground: h,
|
|
2760
|
+
radius: g,
|
|
2761
|
+
scaling: _,
|
|
2762
|
+
onAppearanceChange: v,
|
|
2766
2763
|
onAccentColorChange: b,
|
|
2767
2764
|
onGrayColorChange: S,
|
|
2768
2765
|
onPanelBackgroundChange: C,
|
|
2769
2766
|
onRadiusChange: w,
|
|
2770
2767
|
onScalingChange: T
|
|
2771
2768
|
}), [
|
|
2769
|
+
f,
|
|
2772
2770
|
p,
|
|
2773
2771
|
m,
|
|
2774
|
-
h,
|
|
2775
2772
|
O,
|
|
2773
|
+
h,
|
|
2776
2774
|
g,
|
|
2777
2775
|
_,
|
|
2778
2776
|
v,
|
|
2779
|
-
y,
|
|
2780
2777
|
b,
|
|
2781
2778
|
S,
|
|
2782
2779
|
C,
|
|
@@ -2784,20 +2781,20 @@ var ga = x.forwardRef((e, t) => {
|
|
|
2784
2781
|
T
|
|
2785
2782
|
]) }, x.createElement(D, {
|
|
2786
2783
|
"data-is-root-theme": u ? "true" : "false",
|
|
2787
|
-
"data-accent-color":
|
|
2784
|
+
"data-accent-color": p,
|
|
2788
2785
|
"data-gray-color": O,
|
|
2789
2786
|
"data-has-background": A ? "true" : "false",
|
|
2790
|
-
"data-panel-background":
|
|
2791
|
-
"data-radius":
|
|
2792
|
-
"data-scaling":
|
|
2787
|
+
"data-panel-background": h,
|
|
2788
|
+
"data-radius": g,
|
|
2789
|
+
"data-scaling": _,
|
|
2793
2790
|
ref: t,
|
|
2794
2791
|
...E,
|
|
2795
2792
|
className: (0, oa.default)("radix-themes", {
|
|
2796
|
-
light:
|
|
2797
|
-
dark:
|
|
2793
|
+
light: f === "light",
|
|
2794
|
+
dark: f === "dark"
|
|
2798
2795
|
}, E.className)
|
|
2799
2796
|
}));
|
|
2800
2797
|
});
|
|
2801
2798
|
ga.displayName = "ThemeImpl";
|
|
2802
2799
|
//#endregion
|
|
2803
|
-
export {
|
|
2800
|
+
export { ue as _, vi as a, w as b, _i as c, Jt as d, Gt as f, Se as g, we as h, xi as i, ti as l, ke as m, ma as n, bi as o, It as p, wi as r, yi as s, pa as t, Xt as u, N as v, T as y };
|