nve-designsystem 4.3.0 → 4.4.2
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/chunks/chunk.2PCBEMQZ.js +4 -4
- package/chunks/chunk.36O46B5H.js +2 -2
- package/chunks/chunk.4TUIT776.js +1 -1
- package/chunks/chunk.5JY5FUCG.js +325 -344
- package/chunks/chunk.5P45LHIX.js +2 -2
- package/chunks/chunk.6CTB5ZDJ.js +16 -4
- package/chunks/chunk.B4BZKR24.js +2 -2
- package/chunks/chunk.D5YQDJ7X.js +3 -3
- package/chunks/chunk.EA437WHD.js +1 -1
- package/chunks/chunk.GI7VDIWX.js +1 -1
- package/chunks/chunk.GMYPQTFK.js +1 -1
- package/chunks/chunk.HVTXQL7M.js +3 -3
- package/chunks/chunk.IKV4VH3T.js +3 -3
- package/chunks/chunk.IVVHNXMC.js +2 -2
- package/chunks/chunk.JHOXTQXA.js +3 -3
- package/chunks/chunk.JXOKFADN.js +3 -3
- package/chunks/chunk.K7JGTRV7.js +1 -1
- package/chunks/chunk.KPLQLAWP.js +3 -3
- package/chunks/chunk.LD4M4QGE.js +1 -1
- package/chunks/chunk.MSKEYBDI.js +3 -3
- package/chunks/chunk.NYIIDP5N.js +1 -1
- package/chunks/chunk.RWUUFNUL.js +2 -2
- package/chunks/chunk.SAPQLUO4.js +4 -4
- package/chunks/chunk.SI4ACBFK.js +1 -1
- package/chunks/chunk.TP2GB2HO.js +4 -4
- package/chunks/chunk.UDWRA64J.js +3 -3
- package/chunks/chunk.URTPIBTY.js +3 -3
- package/chunks/chunk.VESXC477.js +1 -1
- package/chunks/chunk.XA43ZQPC.js +3 -3
- package/chunks/chunk.XQ2OKYYA.js +3 -3
- package/chunks/chunk.XZNBUGX7.js +1 -1
- package/chunks/chunk.YHLNUJ7P.js +2 -2
- package/chunks/chunk.ZH2AND3P.js +8 -8
- package/chunks/chunk.ZL53POKZ.js +2 -2
- package/chunks/class-map.js +3 -3
- package/chunks/decorate.js +11 -11
- package/chunks/directive-helpers.js +3 -3
- package/chunks/if-defined.js +1 -1
- package/chunks/lit.js +88 -86
- package/chunks/live.js +8 -8
- package/chunks/nve-alert.component.js +9 -9
- package/chunks/nve-carousel-item.component.js +1 -1
- package/chunks/nve-checkbox-group.component.js +7 -7
- package/chunks/nve-label.component.js +1 -1
- package/chunks/nve-warning-level.component.js +4 -4
- package/chunks/ref.js +4 -4
- package/chunks/shoelace.js +771 -771
- package/chunks/static-html.js +4 -4
- package/chunks/unsafe-html.js +1 -1
- package/components/nve-accordion/nve-accordion.component.js +1 -1
- package/components/nve-badge/nve-badge.component.js +1 -1
- package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.component.js +1 -1
- package/components/nve-combobox/nve-combobox.component.js +1 -1
- package/components/nve-darkmode-switch/nve-darkmode-switch.component.js +3 -2
- package/components/nve-icon/nve-icon.component.js +1 -1
- package/components/nve-link-card/nve-link-card.component.js +6 -6
- package/components/nve-message-card/nve-message-card.component.js +1 -1
- package/components/nve-navigation-card/nve-navigation-card.component.js +8 -8
- package/components/nve-paragraph/nve-paragraph.component.js +1 -1
- package/components/nve-stepper/nve-step/nve-step.component.js +21 -21
- package/components/nve-stepper/nve-stepper-mobile.component.js +1 -1
- package/components/nve-stepper/nve-stepper.component.js +1 -1
- package/components/nve-switch/nve-switch.component.js +1 -1
- package/components/nve-tab/nve-tab.component.js +1 -1
- package/components/nve-tab-group/nve-tab-group.component.js +6 -6
- package/components/nve-tab-panel/nve-tab-panel.component.js +1 -1
- package/components/nve-tag/nve-tag.component.js +6 -6
- package/components/nve-textarea/nve-textarea.component.js +12 -12
- package/css/nve.css +54 -45
- package/css/nve_dark.css +16 -7
- package/css/rme.css +54 -45
- package/css/rme_dark.css +16 -7
- package/css/varsom.css +54 -45
- package/css/varsom_dark.css +16 -7
- package/custom-elements.json +1 -1
- package/nve-designsystem.d.ts +1 -1
- package/package.json +8 -5
package/chunks/chunk.5JY5FUCG.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as e, u as t } from "./lit.js";
|
|
2
2
|
import { o as n, r } from "./decorate.js";
|
|
3
3
|
import { a as i, i as a, n as o, r as s, t as c } from "./chunk.4TUIT776.js";
|
|
4
4
|
import { t as l } from "./class-map.js";
|
|
5
5
|
import { t as u } from "./chunk.6CTB5ZDJ.js";
|
|
6
|
-
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3KSWVBQ5.js
|
|
6
|
+
//#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3KSWVBQ5.js
|
|
7
7
|
var d = t`
|
|
8
8
|
:host {
|
|
9
9
|
--arrow-color: var(--sl-color-neutral-1000);
|
|
@@ -70,68 +70,67 @@ var d = t`
|
|
|
70
70
|
right: "left",
|
|
71
71
|
bottom: "top",
|
|
72
72
|
top: "bottom"
|
|
73
|
-
}, v = {
|
|
74
|
-
start: "end",
|
|
75
|
-
end: "start"
|
|
76
73
|
};
|
|
77
|
-
function
|
|
74
|
+
function v(e, t, n) {
|
|
78
75
|
return p(e, f(t, n));
|
|
79
76
|
}
|
|
80
|
-
function
|
|
77
|
+
function y(e, t) {
|
|
81
78
|
return typeof e == "function" ? e(t) : e;
|
|
82
79
|
}
|
|
83
|
-
function
|
|
80
|
+
function b(e) {
|
|
84
81
|
return e.split("-")[0];
|
|
85
82
|
}
|
|
86
|
-
function
|
|
83
|
+
function x(e) {
|
|
87
84
|
return e.split("-")[1];
|
|
88
85
|
}
|
|
89
|
-
function
|
|
86
|
+
function S(e) {
|
|
90
87
|
return e === "x" ? "y" : "x";
|
|
91
88
|
}
|
|
92
|
-
function
|
|
89
|
+
function C(e) {
|
|
93
90
|
return e === "y" ? "height" : "width";
|
|
94
91
|
}
|
|
95
|
-
function
|
|
96
|
-
|
|
92
|
+
function w(e) {
|
|
93
|
+
let t = e[0];
|
|
94
|
+
return t === "t" || t === "b" ? "y" : "x";
|
|
97
95
|
}
|
|
98
|
-
function
|
|
99
|
-
return
|
|
96
|
+
function T(e) {
|
|
97
|
+
return S(w(e));
|
|
100
98
|
}
|
|
101
99
|
function ee(e, t, n) {
|
|
102
100
|
n === void 0 && (n = !1);
|
|
103
|
-
let r =
|
|
101
|
+
let r = x(e), i = T(e), a = C(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
104
102
|
return t.reference[a] > t.floating[a] && (o = j(o)), [o, j(o)];
|
|
105
103
|
}
|
|
106
|
-
function
|
|
104
|
+
function te(e) {
|
|
107
105
|
let t = j(e);
|
|
108
106
|
return [
|
|
109
|
-
|
|
107
|
+
E(e),
|
|
110
108
|
t,
|
|
111
|
-
|
|
109
|
+
E(t)
|
|
112
110
|
];
|
|
113
111
|
}
|
|
114
|
-
function
|
|
115
|
-
return e.replace(
|
|
112
|
+
function E(e) {
|
|
113
|
+
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
116
114
|
}
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
var D = ["left", "right"], O = ["right", "left"], k = ["top", "bottom"], ne = ["bottom", "top"];
|
|
116
|
+
function re(e, t, n) {
|
|
119
117
|
switch (e) {
|
|
120
118
|
case "top":
|
|
121
|
-
case "bottom": return n ? t ?
|
|
119
|
+
case "bottom": return n ? t ? O : D : t ? D : O;
|
|
122
120
|
case "left":
|
|
123
|
-
case "right": return t ?
|
|
121
|
+
case "right": return t ? k : ne;
|
|
124
122
|
default: return [];
|
|
125
123
|
}
|
|
126
124
|
}
|
|
127
125
|
function A(e, t, n, r) {
|
|
128
|
-
let i =
|
|
129
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
126
|
+
let i = x(e), a = re(b(e), n === "start", r);
|
|
127
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(E)))), a;
|
|
130
128
|
}
|
|
131
129
|
function j(e) {
|
|
132
|
-
|
|
130
|
+
let t = b(e);
|
|
131
|
+
return _[t] + e.slice(t.length);
|
|
133
132
|
}
|
|
134
|
-
function
|
|
133
|
+
function M(e) {
|
|
135
134
|
return {
|
|
136
135
|
top: 0,
|
|
137
136
|
right: 0,
|
|
@@ -140,15 +139,15 @@ function te(e) {
|
|
|
140
139
|
...e
|
|
141
140
|
};
|
|
142
141
|
}
|
|
143
|
-
function
|
|
142
|
+
function ie(e) {
|
|
144
143
|
return typeof e == "number" ? {
|
|
145
144
|
top: e,
|
|
146
145
|
right: e,
|
|
147
146
|
bottom: e,
|
|
148
147
|
left: e
|
|
149
|
-
} :
|
|
148
|
+
} : M(e);
|
|
150
149
|
}
|
|
151
|
-
function
|
|
150
|
+
function N(e) {
|
|
152
151
|
let { x: t, y: n, width: r, height: i } = e;
|
|
153
152
|
return {
|
|
154
153
|
width: r,
|
|
@@ -162,9 +161,9 @@ function M(e) {
|
|
|
162
161
|
};
|
|
163
162
|
}
|
|
164
163
|
//#endregion
|
|
165
|
-
//#region node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
166
|
-
function
|
|
167
|
-
let { reference: r, floating: i } = e, a =
|
|
164
|
+
//#region .pnpm/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
165
|
+
function P(e, t, n) {
|
|
166
|
+
let { reference: r, floating: i } = e, a = w(t), o = T(t), s = C(o), c = b(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;
|
|
168
167
|
switch (c) {
|
|
169
168
|
case "top":
|
|
170
169
|
p = {
|
|
@@ -195,7 +194,7 @@ function re(e, t, n) {
|
|
|
195
194
|
y: r.y
|
|
196
195
|
};
|
|
197
196
|
}
|
|
198
|
-
switch (
|
|
197
|
+
switch (x(t)) {
|
|
199
198
|
case "start":
|
|
200
199
|
p[o] -= f * (n && l ? -1 : 1);
|
|
201
200
|
break;
|
|
@@ -205,130 +204,131 @@ function re(e, t, n) {
|
|
|
205
204
|
}
|
|
206
205
|
return p;
|
|
207
206
|
}
|
|
208
|
-
|
|
209
|
-
|
|
207
|
+
async function F(e, t) {
|
|
208
|
+
t === void 0 && (t = {});
|
|
209
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = y(t, e), p = ie(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = N(await i.getClippingRect({
|
|
210
|
+
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
211
|
+
boundary: c,
|
|
212
|
+
rootBoundary: l,
|
|
213
|
+
strategy: s
|
|
214
|
+
})), g = u === "floating" ? {
|
|
215
|
+
x: n,
|
|
216
|
+
y: r,
|
|
217
|
+
width: a.floating.width,
|
|
218
|
+
height: a.floating.height
|
|
219
|
+
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
220
|
+
x: 1,
|
|
221
|
+
y: 1
|
|
222
|
+
}, b = N(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
223
|
+
elements: o,
|
|
224
|
+
rect: g,
|
|
225
|
+
offsetParent: _,
|
|
226
|
+
strategy: s
|
|
227
|
+
}) : g);
|
|
228
|
+
return {
|
|
229
|
+
top: (h.top - b.top + p.top) / v.y,
|
|
230
|
+
bottom: (b.bottom - h.bottom + p.bottom) / v.y,
|
|
231
|
+
left: (h.left - b.left + p.left) / v.x,
|
|
232
|
+
right: (b.right - h.right + p.right) / v.x
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
var ae = 50, oe = async (e, t, n) => {
|
|
236
|
+
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
237
|
+
...o,
|
|
238
|
+
detectOverflow: F
|
|
239
|
+
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
210
240
|
reference: e,
|
|
211
241
|
floating: t,
|
|
212
242
|
strategy: i
|
|
213
|
-
}), { x: u, y: d } =
|
|
214
|
-
for (let n = 0; n <
|
|
215
|
-
let
|
|
243
|
+
}), { x: u, y: d } = P(l, r, c), f = r, p = 0, m = {};
|
|
244
|
+
for (let n = 0; n < a.length; n++) {
|
|
245
|
+
let h = a[n];
|
|
246
|
+
if (!h) continue;
|
|
247
|
+
let { name: g, fn: _ } = h, { x: v, y, data: b, reset: x } = await _({
|
|
216
248
|
x: u,
|
|
217
249
|
y: d,
|
|
218
250
|
initialPlacement: r,
|
|
219
251
|
placement: f,
|
|
220
252
|
strategy: i,
|
|
221
|
-
middlewareData:
|
|
253
|
+
middlewareData: m,
|
|
222
254
|
rects: l,
|
|
223
|
-
platform:
|
|
255
|
+
platform: s,
|
|
224
256
|
elements: {
|
|
225
257
|
reference: e,
|
|
226
258
|
floating: t
|
|
227
259
|
}
|
|
228
260
|
});
|
|
229
|
-
u =
|
|
230
|
-
...
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
...v
|
|
234
|
-
}
|
|
235
|
-
}, y && m <= 50 && (m++, typeof y == "object" && (y.placement && (f = y.placement), y.rects && (l = y.rects === !0 ? await o.getElementRects({
|
|
261
|
+
u = v ?? u, d = y ?? d, m[g] = {
|
|
262
|
+
...m[g],
|
|
263
|
+
...b
|
|
264
|
+
}, x && p < ae && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
236
265
|
reference: e,
|
|
237
266
|
floating: t,
|
|
238
267
|
strategy: i
|
|
239
|
-
}) :
|
|
268
|
+
}) : x.rects), {x: u, y: d} = P(l, f, c)), n = -1);
|
|
240
269
|
}
|
|
241
270
|
return {
|
|
242
271
|
x: u,
|
|
243
272
|
y: d,
|
|
244
273
|
placement: f,
|
|
245
274
|
strategy: i,
|
|
246
|
-
middlewareData:
|
|
275
|
+
middlewareData: m
|
|
247
276
|
};
|
|
248
|
-
}
|
|
249
|
-
async function P(e, t) {
|
|
250
|
-
t === void 0 && (t = {});
|
|
251
|
-
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = b(t, e), p = ne(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = M(await i.getClippingRect({
|
|
252
|
-
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
253
|
-
boundary: c,
|
|
254
|
-
rootBoundary: l,
|
|
255
|
-
strategy: s
|
|
256
|
-
})), g = u === "floating" ? {
|
|
257
|
-
x: n,
|
|
258
|
-
y: r,
|
|
259
|
-
width: a.floating.width,
|
|
260
|
-
height: a.floating.height
|
|
261
|
-
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
262
|
-
x: 1,
|
|
263
|
-
y: 1
|
|
264
|
-
}, y = M(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
265
|
-
elements: o,
|
|
266
|
-
rect: g,
|
|
267
|
-
offsetParent: _,
|
|
268
|
-
strategy: s
|
|
269
|
-
}) : g);
|
|
270
|
-
return {
|
|
271
|
-
top: (h.top - y.top + p.top) / v.y,
|
|
272
|
-
bottom: (y.bottom - h.bottom + p.bottom) / v.y,
|
|
273
|
-
left: (h.left - y.left + p.left) / v.x,
|
|
274
|
-
right: (y.right - h.right + p.right) / v.x
|
|
275
|
-
};
|
|
276
|
-
}
|
|
277
|
-
var F = (e) => ({
|
|
277
|
+
}, se = (e) => ({
|
|
278
278
|
name: "arrow",
|
|
279
279
|
options: e,
|
|
280
280
|
async fn(t) {
|
|
281
|
-
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } =
|
|
281
|
+
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = y(e, t) || {};
|
|
282
282
|
if (l == null) return {};
|
|
283
|
-
let d =
|
|
283
|
+
let d = ie(u), p = {
|
|
284
284
|
x: n,
|
|
285
285
|
y: r
|
|
286
|
-
}, m =
|
|
287
|
-
(!
|
|
288
|
-
let
|
|
286
|
+
}, m = T(i), h = C(m), g = await o.getDimensions(l), _ = m === "y", b = _ ? "top" : "left", S = _ ? "bottom" : "right", w = _ ? "clientHeight" : "clientWidth", ee = a.reference[h] + a.reference[m] - p[m] - a.floating[h], te = p[m] - a.reference[m], E = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), D = E ? E[w] : 0;
|
|
287
|
+
(!D || !await (o.isElement == null ? void 0 : o.isElement(E))) && (D = s.floating[w] || a.floating[h]);
|
|
288
|
+
let O = ee / 2 - te / 2, k = D / 2 - g[h] / 2 - 1, ne = f(d[b], k), re = f(d[S], k), A = ne, j = D - g[h] - re, M = D / 2 - g[h] / 2 + O, N = v(A, M, j), P = !c.arrow && x(i) != null && M !== N && a.reference[h] / 2 - (M < A ? ne : re) - g[h] / 2 < 0, F = P ? M < A ? M - A : M - j : 0;
|
|
289
289
|
return {
|
|
290
|
-
[m]: p[m] +
|
|
290
|
+
[m]: p[m] + F,
|
|
291
291
|
data: {
|
|
292
|
-
[m]:
|
|
293
|
-
centerOffset:
|
|
294
|
-
...
|
|
292
|
+
[m]: N,
|
|
293
|
+
centerOffset: M - N - F,
|
|
294
|
+
...P && { alignmentOffset: F }
|
|
295
295
|
},
|
|
296
|
-
reset:
|
|
296
|
+
reset: P
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
|
-
}),
|
|
299
|
+
}), ce = function(e) {
|
|
300
300
|
return e === void 0 && (e = {}), {
|
|
301
301
|
name: "flip",
|
|
302
302
|
options: e,
|
|
303
303
|
async fn(t) {
|
|
304
304
|
var n;
|
|
305
|
-
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } =
|
|
305
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = y(e, t);
|
|
306
306
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
307
|
-
let g =
|
|
308
|
-
!d && C && S.push(...A(o, m, p,
|
|
309
|
-
let
|
|
310
|
-
if (l &&
|
|
311
|
-
let e = ee(r, a,
|
|
312
|
-
|
|
307
|
+
let g = b(r), _ = w(o), v = b(o) === o, x = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), S = d || (v || !m ? [j(o)] : te(o)), C = p !== "none";
|
|
308
|
+
!d && C && S.push(...A(o, m, p, x));
|
|
309
|
+
let T = [o, ...S], E = await s.detectOverflow(t, h), D = [], O = i.flip?.overflows || [];
|
|
310
|
+
if (l && D.push(E[g]), u) {
|
|
311
|
+
let e = ee(r, a, x);
|
|
312
|
+
D.push(E[e[0]], E[e[1]]);
|
|
313
313
|
}
|
|
314
|
-
if (
|
|
314
|
+
if (O = [...O, {
|
|
315
315
|
placement: r,
|
|
316
|
-
overflows:
|
|
317
|
-
}], !
|
|
318
|
-
let e = (i.flip?.index || 0) + 1, t =
|
|
319
|
-
if (t && (!(u === "alignment" && _ !==
|
|
316
|
+
overflows: D
|
|
317
|
+
}], !D.every((e) => e <= 0)) {
|
|
318
|
+
let e = (i.flip?.index || 0) + 1, t = T[e];
|
|
319
|
+
if (t && (!(u === "alignment" && _ !== w(t)) || O.every((e) => w(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
|
|
320
320
|
data: {
|
|
321
321
|
index: e,
|
|
322
|
-
overflows:
|
|
322
|
+
overflows: O
|
|
323
323
|
},
|
|
324
324
|
reset: { placement: t }
|
|
325
325
|
};
|
|
326
|
-
let n =
|
|
326
|
+
let n = O.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
|
|
327
327
|
if (!n) switch (f) {
|
|
328
328
|
case "bestFit": {
|
|
329
|
-
let e =
|
|
329
|
+
let e = O.filter((e) => {
|
|
330
330
|
if (C) {
|
|
331
|
-
let t =
|
|
331
|
+
let t = w(e.placement);
|
|
332
332
|
return t === _ || t === "y";
|
|
333
333
|
}
|
|
334
334
|
return !0;
|
|
@@ -345,9 +345,9 @@ var F = (e) => ({
|
|
|
345
345
|
return {};
|
|
346
346
|
}
|
|
347
347
|
};
|
|
348
|
-
};
|
|
349
|
-
async function
|
|
350
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
348
|
+
}, le = /*#__PURE__*/ new Set(["left", "top"]);
|
|
349
|
+
async function ue(e, t) {
|
|
350
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = b(n), s = x(n), c = w(n) === "y", l = le.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = y(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
351
351
|
mainAxis: d,
|
|
352
352
|
crossAxis: 0,
|
|
353
353
|
alignmentAxis: null
|
|
@@ -364,13 +364,13 @@ async function ie(e, t) {
|
|
|
364
364
|
y: p * u
|
|
365
365
|
};
|
|
366
366
|
}
|
|
367
|
-
var
|
|
367
|
+
var de = function(e) {
|
|
368
368
|
return e === void 0 && (e = 0), {
|
|
369
369
|
name: "offset",
|
|
370
370
|
options: e,
|
|
371
371
|
async fn(t) {
|
|
372
372
|
var n;
|
|
373
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
373
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await ue(t, e);
|
|
374
374
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
375
375
|
x: r + s.x,
|
|
376
376
|
y: i + s.y,
|
|
@@ -381,163 +381,139 @@ var ae = function(e) {
|
|
|
381
381
|
};
|
|
382
382
|
}
|
|
383
383
|
};
|
|
384
|
-
},
|
|
384
|
+
}, fe = function(e) {
|
|
385
385
|
return e === void 0 && (e = {}), {
|
|
386
386
|
name: "shift",
|
|
387
387
|
options: e,
|
|
388
388
|
async fn(t) {
|
|
389
|
-
let { x: n, y: r, placement: i } = t, { mainAxis:
|
|
389
|
+
let { x: n, y: r, placement: i, platform: a } = t, { mainAxis: o = !0, crossAxis: s = !1, limiter: c = { fn: (e) => {
|
|
390
390
|
let { x: t, y: n } = e;
|
|
391
391
|
return {
|
|
392
392
|
x: t,
|
|
393
393
|
y: n
|
|
394
394
|
};
|
|
395
|
-
} }, ...
|
|
395
|
+
} }, ...l } = y(e, t), u = {
|
|
396
396
|
x: n,
|
|
397
397
|
y: r
|
|
398
|
-
},
|
|
399
|
-
if (a) {
|
|
400
|
-
let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = p + u[e], r = p - u[t];
|
|
401
|
-
p = y(n, p, r);
|
|
402
|
-
}
|
|
398
|
+
}, d = await a.detectOverflow(t, l), f = w(b(i)), p = S(f), m = u[p], h = u[f];
|
|
403
399
|
if (o) {
|
|
404
|
-
let e =
|
|
405
|
-
m =
|
|
400
|
+
let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
|
|
401
|
+
m = v(n, m, r);
|
|
406
402
|
}
|
|
407
|
-
|
|
403
|
+
if (s) {
|
|
404
|
+
let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
|
|
405
|
+
h = v(n, h, r);
|
|
406
|
+
}
|
|
407
|
+
let g = c.fn({
|
|
408
408
|
...t,
|
|
409
|
-
[
|
|
410
|
-
[
|
|
409
|
+
[p]: m,
|
|
410
|
+
[f]: h
|
|
411
411
|
});
|
|
412
412
|
return {
|
|
413
|
-
...
|
|
413
|
+
...g,
|
|
414
414
|
data: {
|
|
415
|
-
x:
|
|
416
|
-
y:
|
|
415
|
+
x: g.x - n,
|
|
416
|
+
y: g.y - r,
|
|
417
417
|
enabled: {
|
|
418
|
-
[
|
|
419
|
-
[
|
|
418
|
+
[p]: o,
|
|
419
|
+
[f]: s
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
422
|
};
|
|
423
423
|
}
|
|
424
424
|
};
|
|
425
|
-
},
|
|
425
|
+
}, pe = function(e) {
|
|
426
426
|
return e === void 0 && (e = {}), {
|
|
427
427
|
name: "size",
|
|
428
428
|
options: e,
|
|
429
429
|
async fn(t) {
|
|
430
430
|
var n, r;
|
|
431
|
-
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } =
|
|
432
|
-
d === "top" || d === "bottom" ? (v = d,
|
|
433
|
-
let C = _ - u.top - u.bottom,
|
|
434
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (
|
|
431
|
+
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = y(e, t), u = await o.detectOverflow(t, l), d = b(i), m = x(i), h = w(i) === "y", { width: g, height: _ } = a.floating, v, S;
|
|
432
|
+
d === "top" || d === "bottom" ? (v = d, S = m === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (S = d, v = m === "end" ? "top" : "bottom");
|
|
433
|
+
let C = _ - u.top - u.bottom, T = g - u.left - u.right, ee = f(_ - u[v], C), te = f(g - u[S], T), E = !t.middlewareData.shift, D = ee, O = te;
|
|
434
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (O = T), (r = t.middlewareData.shift) != null && r.enabled.y && (D = C), E && !m) {
|
|
435
435
|
let e = p(u.left, 0), t = p(u.right, 0), n = p(u.top, 0), r = p(u.bottom, 0);
|
|
436
|
-
h ?
|
|
436
|
+
h ? O = g - 2 * (e !== 0 || t !== 0 ? e + t : p(u.left, u.right)) : D = _ - 2 * (n !== 0 || r !== 0 ? n + r : p(u.top, u.bottom));
|
|
437
437
|
}
|
|
438
438
|
await c({
|
|
439
439
|
...t,
|
|
440
|
-
availableWidth:
|
|
441
|
-
availableHeight:
|
|
440
|
+
availableWidth: O,
|
|
441
|
+
availableHeight: D
|
|
442
442
|
});
|
|
443
|
-
let
|
|
444
|
-
return g !==
|
|
443
|
+
let k = await o.getDimensions(s.floating);
|
|
444
|
+
return g !== k.width || _ !== k.height ? { reset: { rects: !0 } } : {};
|
|
445
445
|
}
|
|
446
446
|
};
|
|
447
447
|
};
|
|
448
448
|
//#endregion
|
|
449
|
-
//#region node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
450
|
-
function
|
|
449
|
+
//#region .pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
450
|
+
function I() {
|
|
451
451
|
return typeof window < "u";
|
|
452
452
|
}
|
|
453
|
-
function
|
|
454
|
-
return
|
|
453
|
+
function L(e) {
|
|
454
|
+
return me(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function R(e) {
|
|
457
457
|
var t;
|
|
458
458
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
459
459
|
}
|
|
460
|
-
function
|
|
461
|
-
return ((
|
|
460
|
+
function z(e) {
|
|
461
|
+
return ((me(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
462
|
+
}
|
|
463
|
+
function me(e) {
|
|
464
|
+
return I() ? e instanceof Node || e instanceof R(e).Node : !1;
|
|
462
465
|
}
|
|
463
|
-
function
|
|
464
|
-
return
|
|
466
|
+
function B(e) {
|
|
467
|
+
return I() ? e instanceof Element || e instanceof R(e).Element : !1;
|
|
465
468
|
}
|
|
466
469
|
function V(e) {
|
|
467
|
-
return
|
|
468
|
-
}
|
|
469
|
-
function H(e) {
|
|
470
|
-
return L() ? e instanceof HTMLElement || e instanceof z(e).HTMLElement : !1;
|
|
470
|
+
return I() ? e instanceof HTMLElement || e instanceof R(e).HTMLElement : !1;
|
|
471
471
|
}
|
|
472
|
-
function
|
|
473
|
-
return !
|
|
472
|
+
function he(e) {
|
|
473
|
+
return !I() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof R(e).ShadowRoot;
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function H(e) {
|
|
476
476
|
let { overflow: t, overflowX: n, overflowY: r, display: i } = q(e);
|
|
477
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) &&
|
|
477
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
478
478
|
}
|
|
479
|
-
function
|
|
480
|
-
return
|
|
481
|
-
"table",
|
|
482
|
-
"td",
|
|
483
|
-
"th"
|
|
484
|
-
].includes(R(e));
|
|
479
|
+
function ge(e) {
|
|
480
|
+
return /^(table|td|th)$/.test(L(e));
|
|
485
481
|
}
|
|
486
|
-
function
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
482
|
+
function U(e) {
|
|
483
|
+
try {
|
|
484
|
+
if (e.matches(":popover-open")) return !0;
|
|
485
|
+
} catch {}
|
|
486
|
+
try {
|
|
487
|
+
return e.matches(":modal");
|
|
488
|
+
} catch {
|
|
489
|
+
return !1;
|
|
490
|
+
}
|
|
494
491
|
}
|
|
492
|
+
var _e = /transform|translate|scale|rotate|perspective|filter/, ve = /paint|layout|strict|content/, W = (e) => !!e && e !== "none", ye;
|
|
495
493
|
function G(e) {
|
|
496
|
-
let t =
|
|
497
|
-
return
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
"scale",
|
|
501
|
-
"rotate",
|
|
502
|
-
"perspective"
|
|
503
|
-
].some((e) => n[e] ? n[e] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || [
|
|
504
|
-
"transform",
|
|
505
|
-
"translate",
|
|
506
|
-
"scale",
|
|
507
|
-
"rotate",
|
|
508
|
-
"perspective",
|
|
509
|
-
"filter"
|
|
510
|
-
].some((e) => (n.willChange || "").includes(e)) || [
|
|
511
|
-
"paint",
|
|
512
|
-
"layout",
|
|
513
|
-
"strict",
|
|
514
|
-
"content"
|
|
515
|
-
].some((e) => (n.contain || "").includes(e));
|
|
516
|
-
}
|
|
517
|
-
function de(e) {
|
|
494
|
+
let t = B(e) ? q(e) : e;
|
|
495
|
+
return W(t.transform) || W(t.translate) || W(t.scale) || W(t.rotate) || W(t.perspective) || !xe() && (W(t.backdropFilter) || W(t.filter)) || _e.test(t.willChange || "") || ve.test(t.contain || "");
|
|
496
|
+
}
|
|
497
|
+
function be(e) {
|
|
518
498
|
let t = Y(e);
|
|
519
|
-
for (;
|
|
499
|
+
for (; V(t) && !K(t);) {
|
|
520
500
|
if (G(t)) return t;
|
|
521
|
-
if (
|
|
501
|
+
if (U(t)) return null;
|
|
522
502
|
t = Y(t);
|
|
523
503
|
}
|
|
524
504
|
return null;
|
|
525
505
|
}
|
|
526
|
-
function
|
|
527
|
-
return typeof CSS
|
|
506
|
+
function xe() {
|
|
507
|
+
return ye ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), ye;
|
|
528
508
|
}
|
|
529
509
|
function K(e) {
|
|
530
|
-
return
|
|
531
|
-
"html",
|
|
532
|
-
"body",
|
|
533
|
-
"#document"
|
|
534
|
-
].includes(R(e));
|
|
510
|
+
return /^(html|body|#document)$/.test(L(e));
|
|
535
511
|
}
|
|
536
512
|
function q(e) {
|
|
537
|
-
return
|
|
513
|
+
return R(e).getComputedStyle(e);
|
|
538
514
|
}
|
|
539
515
|
function J(e) {
|
|
540
|
-
return
|
|
516
|
+
return B(e) ? {
|
|
541
517
|
scrollLeft: e.scrollLeft,
|
|
542
518
|
scrollTop: e.scrollTop
|
|
543
519
|
} : {
|
|
@@ -546,102 +522,100 @@ function J(e) {
|
|
|
546
522
|
};
|
|
547
523
|
}
|
|
548
524
|
function Y(e) {
|
|
549
|
-
if (
|
|
550
|
-
let t = e.assignedSlot || e.parentNode ||
|
|
551
|
-
return
|
|
525
|
+
if (L(e) === "html") return e;
|
|
526
|
+
let t = e.assignedSlot || e.parentNode || he(e) && e.host || z(e);
|
|
527
|
+
return he(t) ? t.host : t;
|
|
552
528
|
}
|
|
553
|
-
function
|
|
529
|
+
function Se(e) {
|
|
554
530
|
let t = Y(e);
|
|
555
|
-
return K(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
|
531
|
+
return K(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : V(t) && H(t) ? t : Se(t);
|
|
556
532
|
}
|
|
557
533
|
function X(e, t, n) {
|
|
558
534
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
559
|
-
let r =
|
|
535
|
+
let r = Se(e), i = r === e.ownerDocument?.body, a = R(r);
|
|
560
536
|
if (i) {
|
|
561
|
-
let e =
|
|
562
|
-
return t.concat(a, a.visualViewport || [],
|
|
563
|
-
}
|
|
564
|
-
return t.concat(r, X(r, [], n));
|
|
537
|
+
let e = Ce(a);
|
|
538
|
+
return t.concat(a, a.visualViewport || [], H(r) ? r : [], e && n ? X(e) : []);
|
|
539
|
+
} else return t.concat(r, X(r, [], n));
|
|
565
540
|
}
|
|
566
|
-
function
|
|
541
|
+
function Ce(e) {
|
|
567
542
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
568
543
|
}
|
|
569
544
|
//#endregion
|
|
570
|
-
//#region node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
571
|
-
function
|
|
572
|
-
let t = q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i =
|
|
545
|
+
//#region .pnpm/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
546
|
+
function we(e) {
|
|
547
|
+
let t = q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = V(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = m(n) !== a || m(r) !== o;
|
|
573
548
|
return s && (n = a, r = o), {
|
|
574
549
|
width: n,
|
|
575
550
|
height: r,
|
|
576
551
|
$: s
|
|
577
552
|
};
|
|
578
553
|
}
|
|
579
|
-
function
|
|
580
|
-
return
|
|
554
|
+
function Te(e) {
|
|
555
|
+
return B(e) ? e : e.contextElement;
|
|
581
556
|
}
|
|
582
557
|
function Z(e) {
|
|
583
|
-
let t =
|
|
584
|
-
if (!
|
|
585
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } =
|
|
558
|
+
let t = Te(e);
|
|
559
|
+
if (!V(t)) return g(1);
|
|
560
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = we(t), o = (a ? m(n.width) : n.width) / r, s = (a ? m(n.height) : n.height) / i;
|
|
586
561
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
587
562
|
x: o,
|
|
588
563
|
y: s
|
|
589
564
|
};
|
|
590
565
|
}
|
|
591
|
-
var
|
|
592
|
-
function
|
|
593
|
-
let t =
|
|
594
|
-
return !
|
|
566
|
+
var Ee = /*#__PURE__*/ g(0);
|
|
567
|
+
function De(e) {
|
|
568
|
+
let t = R(e);
|
|
569
|
+
return !xe() || !t.visualViewport ? Ee : {
|
|
595
570
|
x: t.visualViewport.offsetLeft,
|
|
596
571
|
y: t.visualViewport.offsetTop
|
|
597
572
|
};
|
|
598
573
|
}
|
|
599
|
-
function
|
|
600
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
574
|
+
function Oe(e, t, n) {
|
|
575
|
+
return t === void 0 && (t = !1), !n || t && n !== R(e) ? !1 : t;
|
|
601
576
|
}
|
|
602
577
|
function Q(e, t, n, r) {
|
|
603
578
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
604
|
-
let i = e.getBoundingClientRect(), a =
|
|
605
|
-
t && (r ?
|
|
606
|
-
let s =
|
|
579
|
+
let i = e.getBoundingClientRect(), a = Te(e), o = g(1);
|
|
580
|
+
t && (r ? B(r) && (o = Z(r)) : o = Z(e));
|
|
581
|
+
let s = Oe(a, n, r) ? De(a) : g(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;
|
|
607
582
|
if (a) {
|
|
608
|
-
let e =
|
|
583
|
+
let e = R(a), t = r && B(r) ? R(r) : r, n = e, i = Ce(n);
|
|
609
584
|
for (; i && r && t !== n;) {
|
|
610
585
|
let e = Z(i), t = i.getBoundingClientRect(), r = q(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
611
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n =
|
|
586
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = R(i), i = Ce(n);
|
|
612
587
|
}
|
|
613
588
|
}
|
|
614
|
-
return
|
|
589
|
+
return N({
|
|
615
590
|
width: u,
|
|
616
591
|
height: d,
|
|
617
592
|
x: c,
|
|
618
593
|
y: l
|
|
619
594
|
});
|
|
620
595
|
}
|
|
621
|
-
function
|
|
596
|
+
function ke(e, t) {
|
|
622
597
|
let n = J(e).scrollLeft;
|
|
623
|
-
return t ? t.left + n : Q(
|
|
598
|
+
return t ? t.left + n : Q(z(e)).left + n;
|
|
624
599
|
}
|
|
625
|
-
function
|
|
626
|
-
|
|
627
|
-
let r = e.getBoundingClientRect();
|
|
600
|
+
function Ae(e, t) {
|
|
601
|
+
let n = e.getBoundingClientRect();
|
|
628
602
|
return {
|
|
629
|
-
x:
|
|
630
|
-
y:
|
|
603
|
+
x: n.left + t.scrollLeft - ke(e, n),
|
|
604
|
+
y: n.top + t.scrollTop
|
|
631
605
|
};
|
|
632
606
|
}
|
|
633
|
-
function
|
|
634
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o =
|
|
607
|
+
function je(e) {
|
|
608
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = z(r), s = t ? U(t.floating) : !1;
|
|
635
609
|
if (r === o || s && a) return n;
|
|
636
610
|
let c = {
|
|
637
611
|
scrollLeft: 0,
|
|
638
612
|
scrollTop: 0
|
|
639
|
-
}, l = g(1), u = g(0), d =
|
|
640
|
-
if ((d || !d && !a) && ((
|
|
613
|
+
}, l = g(1), u = g(0), d = V(r);
|
|
614
|
+
if ((d || !d && !a) && ((L(r) !== "body" || H(o)) && (c = J(r)), d)) {
|
|
641
615
|
let e = Q(r);
|
|
642
616
|
l = Z(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
643
617
|
}
|
|
644
|
-
let f = o && !d && !a ?
|
|
618
|
+
let f = o && !d && !a ? Ae(o, c) : g(0);
|
|
645
619
|
return {
|
|
646
620
|
width: n.width * l.x,
|
|
647
621
|
height: n.height * l.y,
|
|
@@ -649,11 +623,11 @@ function Se(e) {
|
|
|
649
623
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
650
624
|
};
|
|
651
625
|
}
|
|
652
|
-
function
|
|
626
|
+
function Me(e) {
|
|
653
627
|
return Array.from(e.getClientRects());
|
|
654
628
|
}
|
|
655
|
-
function
|
|
656
|
-
let t =
|
|
629
|
+
function Ne(e) {
|
|
630
|
+
let t = z(e), n = J(e), r = e.ownerDocument.body, i = p(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = p(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + ke(e), s = -n.scrollTop;
|
|
657
631
|
return q(r).direction === "rtl" && (o += p(t.clientWidth, r.clientWidth) - i), {
|
|
658
632
|
width: i,
|
|
659
633
|
height: a,
|
|
@@ -661,13 +635,19 @@ function we(e) {
|
|
|
661
635
|
y: s
|
|
662
636
|
};
|
|
663
637
|
}
|
|
664
|
-
|
|
665
|
-
|
|
638
|
+
var Pe = 25;
|
|
639
|
+
function Fe(e, t) {
|
|
640
|
+
let n = R(e), r = z(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
666
641
|
if (i) {
|
|
667
642
|
a = i.width, o = i.height;
|
|
668
|
-
let e =
|
|
643
|
+
let e = xe();
|
|
669
644
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
670
645
|
}
|
|
646
|
+
let l = ke(r);
|
|
647
|
+
if (l <= 0) {
|
|
648
|
+
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);
|
|
649
|
+
o <= Pe && (a -= o);
|
|
650
|
+
} else l <= Pe && (a += l);
|
|
671
651
|
return {
|
|
672
652
|
width: a,
|
|
673
653
|
height: o,
|
|
@@ -675,8 +655,8 @@ function Te(e, t) {
|
|
|
675
655
|
y: c
|
|
676
656
|
};
|
|
677
657
|
}
|
|
678
|
-
function
|
|
679
|
-
let n = Q(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a =
|
|
658
|
+
function Ie(e, t) {
|
|
659
|
+
let n = Q(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = V(e) ? Z(e) : g(1);
|
|
680
660
|
return {
|
|
681
661
|
width: e.clientWidth * a.x,
|
|
682
662
|
height: e.clientHeight * a.y,
|
|
@@ -684,13 +664,13 @@ function Ee(e, t) {
|
|
|
684
664
|
y: r * a.y
|
|
685
665
|
};
|
|
686
666
|
}
|
|
687
|
-
function
|
|
667
|
+
function Le(e, t, n) {
|
|
688
668
|
let r;
|
|
689
|
-
if (t === "viewport") r =
|
|
690
|
-
else if (t === "document") r =
|
|
691
|
-
else if (
|
|
669
|
+
if (t === "viewport") r = Fe(e, n);
|
|
670
|
+
else if (t === "document") r = Ne(z(e));
|
|
671
|
+
else if (B(t)) r = Ie(t, n);
|
|
692
672
|
else {
|
|
693
|
-
let n =
|
|
673
|
+
let n = De(e);
|
|
694
674
|
r = {
|
|
695
675
|
x: t.x - n.x,
|
|
696
676
|
y: t.y - n.y,
|
|
@@ -698,55 +678,56 @@ function De(e, t, n) {
|
|
|
698
678
|
height: t.height
|
|
699
679
|
};
|
|
700
680
|
}
|
|
701
|
-
return
|
|
681
|
+
return N(r);
|
|
702
682
|
}
|
|
703
|
-
function
|
|
683
|
+
function Re(e, t) {
|
|
704
684
|
let n = Y(e);
|
|
705
|
-
return n === t || !
|
|
685
|
+
return n === t || !B(n) || K(n) ? !1 : q(n).position === "fixed" || Re(n, t);
|
|
706
686
|
}
|
|
707
|
-
function
|
|
687
|
+
function ze(e, t) {
|
|
708
688
|
let n = t.get(e);
|
|
709
689
|
if (n) return n;
|
|
710
|
-
let r = X(e, [], !1).filter((e) =>
|
|
711
|
-
for (;
|
|
690
|
+
let r = X(e, [], !1).filter((e) => B(e) && L(e) !== "body"), i = null, a = q(e).position === "fixed", o = a ? Y(e) : e;
|
|
691
|
+
for (; B(o) && !K(o);) {
|
|
712
692
|
let t = q(o), n = G(o);
|
|
713
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i &&
|
|
693
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || H(o) && !n && Re(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Y(o);
|
|
714
694
|
}
|
|
715
695
|
return t.set(e, r), r;
|
|
716
696
|
}
|
|
717
|
-
function
|
|
718
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
697
|
+
function Be(e) {
|
|
698
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? U(t) ? [] : ze(t, this._c) : [].concat(n), r], o = Le(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
699
|
+
for (let e = 1; e < a.length; e++) {
|
|
700
|
+
let n = Le(t, a[e], i);
|
|
701
|
+
s = p(n.top, s), c = f(n.right, c), l = f(n.bottom, l), u = p(n.left, u);
|
|
702
|
+
}
|
|
722
703
|
return {
|
|
723
|
-
width:
|
|
724
|
-
height:
|
|
725
|
-
x:
|
|
726
|
-
y: s
|
|
704
|
+
width: c - u,
|
|
705
|
+
height: l - s,
|
|
706
|
+
x: u,
|
|
707
|
+
y: s
|
|
727
708
|
};
|
|
728
709
|
}
|
|
729
|
-
function
|
|
730
|
-
let { width: t, height: n } =
|
|
710
|
+
function Ve(e) {
|
|
711
|
+
let { width: t, height: n } = we(e);
|
|
731
712
|
return {
|
|
732
713
|
width: t,
|
|
733
714
|
height: n
|
|
734
715
|
};
|
|
735
716
|
}
|
|
736
|
-
function
|
|
737
|
-
let r =
|
|
717
|
+
function He(e, t, n) {
|
|
718
|
+
let r = V(t), i = z(t), a = n === "fixed", o = Q(e, !0, a, t), s = {
|
|
738
719
|
scrollLeft: 0,
|
|
739
720
|
scrollTop: 0
|
|
740
721
|
}, c = g(0);
|
|
741
722
|
function l() {
|
|
742
|
-
c.x =
|
|
723
|
+
c.x = ke(i);
|
|
743
724
|
}
|
|
744
|
-
if (r || !r && !a) if ((
|
|
725
|
+
if (r || !r && !a) if ((L(t) !== "body" || H(i)) && (s = J(t)), r) {
|
|
745
726
|
let e = Q(t, !0, a, t);
|
|
746
727
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
747
728
|
} else i && l();
|
|
748
729
|
a && !r && i && l();
|
|
749
|
-
let u = i && !r && !a ?
|
|
730
|
+
let u = i && !r && !a ? Ae(i, s) : g(0);
|
|
750
731
|
return {
|
|
751
732
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
752
733
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -754,34 +735,34 @@ function Me(e, t, n) {
|
|
|
754
735
|
height: o.height
|
|
755
736
|
};
|
|
756
737
|
}
|
|
757
|
-
function
|
|
738
|
+
function Ue(e) {
|
|
758
739
|
return q(e).position === "static";
|
|
759
740
|
}
|
|
760
|
-
function
|
|
761
|
-
if (!
|
|
741
|
+
function We(e, t) {
|
|
742
|
+
if (!V(e) || q(e).position === "fixed") return null;
|
|
762
743
|
if (t) return t(e);
|
|
763
744
|
let n = e.offsetParent;
|
|
764
|
-
return
|
|
745
|
+
return z(e) === n && (n = n.ownerDocument.body), n;
|
|
765
746
|
}
|
|
766
|
-
function
|
|
767
|
-
let n =
|
|
768
|
-
if (
|
|
769
|
-
if (!
|
|
747
|
+
function Ge(e, t) {
|
|
748
|
+
let n = R(e);
|
|
749
|
+
if (U(e)) return n;
|
|
750
|
+
if (!V(e)) {
|
|
770
751
|
let t = Y(e);
|
|
771
752
|
for (; t && !K(t);) {
|
|
772
|
-
if (
|
|
753
|
+
if (B(t) && !Ue(t)) return t;
|
|
773
754
|
t = Y(t);
|
|
774
755
|
}
|
|
775
756
|
return n;
|
|
776
757
|
}
|
|
777
|
-
let r =
|
|
778
|
-
for (; r &&
|
|
779
|
-
return r && K(r) &&
|
|
758
|
+
let r = We(e, t);
|
|
759
|
+
for (; r && ge(r) && Ue(r);) r = We(r, t);
|
|
760
|
+
return r && K(r) && Ue(r) && !G(r) ? n : r || be(e) || n;
|
|
780
761
|
}
|
|
781
|
-
var
|
|
782
|
-
let t = this.getOffsetParent ||
|
|
762
|
+
var Ke = async function(e) {
|
|
763
|
+
let t = this.getOffsetParent || Ge, n = this.getDimensions, r = await n(e.floating);
|
|
783
764
|
return {
|
|
784
|
-
reference:
|
|
765
|
+
reference: He(e.reference, await t(e.floating), e.strategy),
|
|
785
766
|
floating: {
|
|
786
767
|
x: 0,
|
|
787
768
|
y: 0,
|
|
@@ -790,26 +771,26 @@ var Ie = async function(e) {
|
|
|
790
771
|
}
|
|
791
772
|
};
|
|
792
773
|
};
|
|
793
|
-
function
|
|
774
|
+
function qe(e) {
|
|
794
775
|
return q(e).direction === "rtl";
|
|
795
776
|
}
|
|
796
|
-
var
|
|
797
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
798
|
-
getDocumentElement:
|
|
799
|
-
getClippingRect:
|
|
800
|
-
getOffsetParent:
|
|
801
|
-
getElementRects:
|
|
802
|
-
getClientRects:
|
|
803
|
-
getDimensions:
|
|
777
|
+
var Je = {
|
|
778
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: je,
|
|
779
|
+
getDocumentElement: z,
|
|
780
|
+
getClippingRect: Be,
|
|
781
|
+
getOffsetParent: Ge,
|
|
782
|
+
getElementRects: Ke,
|
|
783
|
+
getClientRects: Me,
|
|
784
|
+
getDimensions: Ve,
|
|
804
785
|
getScale: Z,
|
|
805
|
-
isElement:
|
|
806
|
-
isRTL:
|
|
786
|
+
isElement: B,
|
|
787
|
+
isRTL: qe
|
|
807
788
|
};
|
|
808
|
-
function
|
|
789
|
+
function Ye(e, t) {
|
|
809
790
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
810
791
|
}
|
|
811
|
-
function
|
|
812
|
-
let n = null, r, i =
|
|
792
|
+
function Xe(e, t) {
|
|
793
|
+
let n = null, r, i = z(e);
|
|
813
794
|
function a() {
|
|
814
795
|
var e;
|
|
815
796
|
clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
|
|
@@ -830,7 +811,7 @@ function Be(e, t) {
|
|
|
830
811
|
o(!1, 1e-7);
|
|
831
812
|
}, 1e3);
|
|
832
813
|
}
|
|
833
|
-
n === 1 && !
|
|
814
|
+
n === 1 && !Ye(l, e.getBoundingClientRect()) && o(), S = !1;
|
|
834
815
|
}
|
|
835
816
|
try {
|
|
836
817
|
n = new IntersectionObserver(C, {
|
|
@@ -844,25 +825,25 @@ function Be(e, t) {
|
|
|
844
825
|
}
|
|
845
826
|
return o(!0), a;
|
|
846
827
|
}
|
|
847
|
-
function
|
|
828
|
+
function Ze(e, t, n, r) {
|
|
848
829
|
r === void 0 && (r = {});
|
|
849
|
-
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l =
|
|
830
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Te(e), u = i || a ? [...l ? X(l) : [], ...t ? X(t) : []] : [];
|
|
850
831
|
u.forEach((e) => {
|
|
851
832
|
i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
|
|
852
833
|
});
|
|
853
|
-
let d = l && s ?
|
|
834
|
+
let d = l && s ? Xe(l, n) : null, f = -1, p = null;
|
|
854
835
|
o && (p = new ResizeObserver((e) => {
|
|
855
836
|
let [r] = e;
|
|
856
|
-
r && r.target === l && p && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
837
|
+
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
857
838
|
var e;
|
|
858
839
|
(e = p) == null || e.observe(t);
|
|
859
840
|
})), n();
|
|
860
|
-
}), l && !c && p.observe(l), p.observe(t));
|
|
841
|
+
}), l && !c && p.observe(l), t && p.observe(t));
|
|
861
842
|
let m, h = c ? Q(e) : null;
|
|
862
843
|
c && g();
|
|
863
844
|
function g() {
|
|
864
845
|
let t = Q(e);
|
|
865
|
-
h && !
|
|
846
|
+
h && !Ye(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
866
847
|
}
|
|
867
848
|
return n(), () => {
|
|
868
849
|
var e;
|
|
@@ -871,30 +852,30 @@ function Ve(e, t, n, r) {
|
|
|
871
852
|
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
872
853
|
};
|
|
873
854
|
}
|
|
874
|
-
var
|
|
855
|
+
var Qe = de, $e = fe, et = ce, tt = pe, nt = se, rt = (e, t, n) => {
|
|
875
856
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
876
|
-
platform:
|
|
857
|
+
platform: Je,
|
|
877
858
|
...n
|
|
878
859
|
}, a = {
|
|
879
860
|
...i.platform,
|
|
880
861
|
_c: r
|
|
881
862
|
};
|
|
882
|
-
return
|
|
863
|
+
return oe(e, t, {
|
|
883
864
|
...i,
|
|
884
865
|
platform: a
|
|
885
866
|
});
|
|
886
867
|
};
|
|
887
868
|
//#endregion
|
|
888
|
-
//#region node_modules/composed-offset-position/dist/composed-offset-position.browser.min.mjs
|
|
889
|
-
function
|
|
890
|
-
return
|
|
869
|
+
//#region .pnpm/composed-offset-position@0.0.6_@floating-ui+utils@0.2.11/node_modules/composed-offset-position/dist/composed-offset-position.browser.min.mjs
|
|
870
|
+
function it(e) {
|
|
871
|
+
return ot(e);
|
|
891
872
|
}
|
|
892
|
-
function
|
|
873
|
+
function at(e) {
|
|
893
874
|
return e.assignedSlot ? e.assignedSlot : e.parentNode instanceof ShadowRoot ? e.parentNode.host : e.parentNode;
|
|
894
875
|
}
|
|
895
|
-
function
|
|
896
|
-
for (let t = e; t; t =
|
|
897
|
-
for (let t =
|
|
876
|
+
function ot(e) {
|
|
877
|
+
for (let t = e; t; t = at(t)) if (t instanceof Element && getComputedStyle(t).display === "none") return null;
|
|
878
|
+
for (let t = at(e); t; t = at(t)) {
|
|
898
879
|
if (!(t instanceof Element)) continue;
|
|
899
880
|
let e = getComputedStyle(t);
|
|
900
881
|
if (e.display !== "contents" && (e.position !== "static" || G(e) || t.tagName === "BODY")) return t;
|
|
@@ -902,8 +883,8 @@ function Xe(e) {
|
|
|
902
883
|
return null;
|
|
903
884
|
}
|
|
904
885
|
//#endregion
|
|
905
|
-
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.5JY5FUCG.js
|
|
906
|
-
function
|
|
886
|
+
//#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.5JY5FUCG.js
|
|
887
|
+
function st(e) {
|
|
907
888
|
return typeof e == "object" && !!e && "getBoundingClientRect" in e && ("contextElement" in e ? e.contextElement instanceof Element : !0);
|
|
908
889
|
}
|
|
909
890
|
var $ = class extends c {
|
|
@@ -928,11 +909,11 @@ var $ = class extends c {
|
|
|
928
909
|
if (await this.stop(), this.anchor && typeof this.anchor == "string") {
|
|
929
910
|
let e = this.getRootNode();
|
|
930
911
|
this.anchorEl = e.getElementById(this.anchor);
|
|
931
|
-
} else this.anchor instanceof Element ||
|
|
912
|
+
} else this.anchor instanceof Element || st(this.anchor) ? this.anchorEl = this.anchor : this.anchorEl = this.querySelector("[slot=\"anchor\"]");
|
|
932
913
|
this.anchorEl instanceof HTMLSlotElement && (this.anchorEl = this.anchorEl.assignedElements({ flatten: !0 })[0]), this.anchorEl && this.active && this.start();
|
|
933
914
|
}
|
|
934
915
|
start() {
|
|
935
|
-
!this.anchorEl || !this.active || (this.cleanup =
|
|
916
|
+
!this.anchorEl || !this.active || (this.cleanup = Ze(this.anchorEl, this.popup, () => {
|
|
936
917
|
this.reposition();
|
|
937
918
|
}));
|
|
938
919
|
}
|
|
@@ -943,37 +924,37 @@ var $ = class extends c {
|
|
|
943
924
|
}
|
|
944
925
|
reposition() {
|
|
945
926
|
if (!this.active || !this.anchorEl) return;
|
|
946
|
-
let e = [
|
|
927
|
+
let e = [Qe({
|
|
947
928
|
mainAxis: this.distance,
|
|
948
929
|
crossAxis: this.skidding
|
|
949
930
|
})];
|
|
950
|
-
this.sync ? e.push(
|
|
931
|
+
this.sync ? e.push(tt({ apply: ({ rects: e }) => {
|
|
951
932
|
let t = this.sync === "width" || this.sync === "both", n = this.sync === "height" || this.sync === "both";
|
|
952
933
|
this.popup.style.width = t ? `${e.reference.width}px` : "", this.popup.style.height = n ? `${e.reference.height}px` : "";
|
|
953
|
-
} })) : (this.popup.style.width = "", this.popup.style.height = ""), this.flip && e.push(
|
|
934
|
+
} })) : (this.popup.style.width = "", this.popup.style.height = ""), this.flip && e.push(et({
|
|
954
935
|
boundary: this.flipBoundary,
|
|
955
936
|
fallbackPlacements: this.flipFallbackPlacements,
|
|
956
937
|
fallbackStrategy: this.flipFallbackStrategy === "best-fit" ? "bestFit" : "initialPlacement",
|
|
957
938
|
padding: this.flipPadding
|
|
958
|
-
})), this.shift && e.push(
|
|
939
|
+
})), this.shift && e.push($e({
|
|
959
940
|
boundary: this.shiftBoundary,
|
|
960
941
|
padding: this.shiftPadding
|
|
961
|
-
})), this.autoSize ? e.push(
|
|
942
|
+
})), this.autoSize ? e.push(tt({
|
|
962
943
|
boundary: this.autoSizeBoundary,
|
|
963
944
|
padding: this.autoSizePadding,
|
|
964
945
|
apply: ({ availableWidth: e, availableHeight: t }) => {
|
|
965
946
|
this.autoSize === "vertical" || this.autoSize === "both" ? this.style.setProperty("--auto-size-available-height", `${t}px`) : this.style.removeProperty("--auto-size-available-height"), this.autoSize === "horizontal" || this.autoSize === "both" ? this.style.setProperty("--auto-size-available-width", `${e}px`) : this.style.removeProperty("--auto-size-available-width");
|
|
966
947
|
}
|
|
967
|
-
})) : (this.style.removeProperty("--auto-size-available-width"), this.style.removeProperty("--auto-size-available-height")), this.arrow && e.push(
|
|
948
|
+
})) : (this.style.removeProperty("--auto-size-available-width"), this.style.removeProperty("--auto-size-available-height")), this.arrow && e.push(nt({
|
|
968
949
|
element: this.arrowEl,
|
|
969
950
|
padding: this.arrowPadding
|
|
970
951
|
}));
|
|
971
|
-
let t = this.strategy === "absolute" ? (e) =>
|
|
972
|
-
|
|
952
|
+
let t = this.strategy === "absolute" ? (e) => Je.getOffsetParent(e, it) : Je.getOffsetParent;
|
|
953
|
+
rt(this.anchorEl, this.popup, {
|
|
973
954
|
placement: this.placement,
|
|
974
955
|
middleware: e,
|
|
975
956
|
strategy: this.strategy,
|
|
976
|
-
platform: a(i({},
|
|
957
|
+
platform: a(i({}, Je), { getOffsetParent: t })
|
|
977
958
|
}).then(({ x: e, y: t, middlewareData: n, placement: r }) => {
|
|
978
959
|
let i = this.localize.dir() === "rtl", a = {
|
|
979
960
|
top: "bottom",
|