mvframe 1.0.16 → 1.0.17
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/@ctrl.js +710 -0
- package/dist/@element-plus.js +659 -0
- package/dist/@floating-ui.js +997 -0
- package/dist/@sxzz.js +552 -0
- package/dist/@turf.js +1 -0
- package/dist/@visactor.js +55144 -0
- package/dist/@vue.js +30 -0
- package/dist/@vueuse.js +583 -0
- package/dist/Config.js +131 -109
- package/dist/async-validator.js +648 -0
- package/dist/composition.js +104 -96
- package/dist/css/cpt.css +1 -1
- package/dist/css/style.css +1 -1
- package/dist/cssfontparser.js +103 -0
- package/dist/d3-array.js +1 -0
- package/dist/d3-dsv.js +1 -0
- package/dist/d3-geo.js +1 -0
- package/dist/d3-hexbin.js +1 -0
- package/dist/d3-hierarchy.js +1 -0
- package/dist/dayjs.js +642 -0
- package/dist/element-plus.js +33909 -0
- package/dist/eventemitter3.js +113 -0
- package/dist/geobuf.js +1 -0
- package/dist/geojson-dissolve.js +1 -0
- package/dist/geojson-flatten.js +1 -0
- package/dist/geojson-linestring-dissolve.js +1 -0
- package/dist/gifuct-js.js +110 -0
- package/dist/ieee754.js +1 -0
- package/dist/index.js +15 -3007
- package/dist/js-binary-schema-parser.js +307 -0
- package/dist/lodash-es.js +1352 -0
- package/dist/lodash-unified.js +1 -0
- package/dist/lodash.js +597 -0
- package/dist/lottie-web.js +1 -0
- package/dist/maps.js +10 -0
- package/dist/memoize-one.js +36 -0
- package/dist/normalize-wheel-es.js +88 -0
- package/dist/pbf.js +1 -0
- package/dist/roughjs.js +1 -0
- package/dist/simple-statistics.js +1 -0
- package/dist/simplify-geojson.js +1 -0
- package/dist/simplify-geometry.js +1 -0
- package/dist/topojson-client.js +1 -0
- package/dist/topojson-server.js +1 -0
- package/dist/util.js +28 -26
- package/dist/vendor.js +5204 -0
- package/package.json +12 -4
- package/scripts/scaffold-app.js +70 -10
|
@@ -0,0 +1,997 @@
|
|
|
1
|
+
const Y = Math.min, z = Math.max, ot = Math.round, nt = Math.floor, P = (t) => ({
|
|
2
|
+
x: t,
|
|
3
|
+
y: t
|
|
4
|
+
}), $t = {
|
|
5
|
+
left: "right",
|
|
6
|
+
right: "left",
|
|
7
|
+
bottom: "top",
|
|
8
|
+
top: "bottom"
|
|
9
|
+
};
|
|
10
|
+
function dt(t, e, o) {
|
|
11
|
+
return z(t, Y(e, o));
|
|
12
|
+
}
|
|
13
|
+
function Z(t, e) {
|
|
14
|
+
return typeof t == "function" ? t(e) : t;
|
|
15
|
+
}
|
|
16
|
+
function I(t) {
|
|
17
|
+
return t.split("-")[0];
|
|
18
|
+
}
|
|
19
|
+
function tt(t) {
|
|
20
|
+
return t.split("-")[1];
|
|
21
|
+
}
|
|
22
|
+
function Et(t) {
|
|
23
|
+
return t === "x" ? "y" : "x";
|
|
24
|
+
}
|
|
25
|
+
function gt(t) {
|
|
26
|
+
return t === "y" ? "height" : "width";
|
|
27
|
+
}
|
|
28
|
+
function N(t) {
|
|
29
|
+
const e = t[0];
|
|
30
|
+
return e === "t" || e === "b" ? "y" : "x";
|
|
31
|
+
}
|
|
32
|
+
function pt(t) {
|
|
33
|
+
return Et(N(t));
|
|
34
|
+
}
|
|
35
|
+
function _t(t, e, o) {
|
|
36
|
+
o === void 0 && (o = !1);
|
|
37
|
+
const n = tt(t), i = pt(t), r = gt(i);
|
|
38
|
+
let s = i === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
39
|
+
return e.reference[r] > e.floating[r] && (s = it(s)), [s, it(s)];
|
|
40
|
+
}
|
|
41
|
+
function Ht(t) {
|
|
42
|
+
const e = it(t);
|
|
43
|
+
return [mt(t), e, mt(e)];
|
|
44
|
+
}
|
|
45
|
+
function mt(t) {
|
|
46
|
+
return t.includes("start") ? t.replace("start", "end") : t.replace("end", "start");
|
|
47
|
+
}
|
|
48
|
+
const vt = ["left", "right"], bt = ["right", "left"], zt = ["top", "bottom"], It = ["bottom", "top"];
|
|
49
|
+
function Xt(t, e, o) {
|
|
50
|
+
switch (t) {
|
|
51
|
+
case "top":
|
|
52
|
+
case "bottom":
|
|
53
|
+
return o ? e ? bt : vt : e ? vt : bt;
|
|
54
|
+
case "left":
|
|
55
|
+
case "right":
|
|
56
|
+
return e ? zt : It;
|
|
57
|
+
default:
|
|
58
|
+
return [];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function jt(t, e, o, n) {
|
|
62
|
+
const i = tt(t);
|
|
63
|
+
let r = Xt(I(t), o === "start", n);
|
|
64
|
+
return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(mt)))), r;
|
|
65
|
+
}
|
|
66
|
+
function it(t) {
|
|
67
|
+
const e = I(t);
|
|
68
|
+
return $t[e] + t.slice(e.length);
|
|
69
|
+
}
|
|
70
|
+
function Yt(t) {
|
|
71
|
+
return {
|
|
72
|
+
top: 0,
|
|
73
|
+
right: 0,
|
|
74
|
+
bottom: 0,
|
|
75
|
+
left: 0,
|
|
76
|
+
...t
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function Lt(t) {
|
|
80
|
+
return typeof t != "number" ? Yt(t) : {
|
|
81
|
+
top: t,
|
|
82
|
+
right: t,
|
|
83
|
+
bottom: t,
|
|
84
|
+
left: t
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
function st(t) {
|
|
88
|
+
const {
|
|
89
|
+
x: e,
|
|
90
|
+
y: o,
|
|
91
|
+
width: n,
|
|
92
|
+
height: i
|
|
93
|
+
} = t;
|
|
94
|
+
return {
|
|
95
|
+
width: n,
|
|
96
|
+
height: i,
|
|
97
|
+
top: o,
|
|
98
|
+
left: e,
|
|
99
|
+
right: e + n,
|
|
100
|
+
bottom: o + i,
|
|
101
|
+
x: e,
|
|
102
|
+
y: o
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
function Rt(t, e, o) {
|
|
106
|
+
let {
|
|
107
|
+
reference: n,
|
|
108
|
+
floating: i
|
|
109
|
+
} = t;
|
|
110
|
+
const r = N(e), s = pt(e), c = gt(s), l = I(e), a = r === "y", d = n.x + n.width / 2 - i.width / 2, u = n.y + n.height / 2 - i.height / 2, m = n[c] / 2 - i[c] / 2;
|
|
111
|
+
let f;
|
|
112
|
+
switch (l) {
|
|
113
|
+
case "top":
|
|
114
|
+
f = {
|
|
115
|
+
x: d,
|
|
116
|
+
y: n.y - i.height
|
|
117
|
+
};
|
|
118
|
+
break;
|
|
119
|
+
case "bottom":
|
|
120
|
+
f = {
|
|
121
|
+
x: d,
|
|
122
|
+
y: n.y + n.height
|
|
123
|
+
};
|
|
124
|
+
break;
|
|
125
|
+
case "right":
|
|
126
|
+
f = {
|
|
127
|
+
x: n.x + n.width,
|
|
128
|
+
y: u
|
|
129
|
+
};
|
|
130
|
+
break;
|
|
131
|
+
case "left":
|
|
132
|
+
f = {
|
|
133
|
+
x: n.x - i.width,
|
|
134
|
+
y: u
|
|
135
|
+
};
|
|
136
|
+
break;
|
|
137
|
+
default:
|
|
138
|
+
f = {
|
|
139
|
+
x: n.x,
|
|
140
|
+
y: n.y
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
switch (tt(e)) {
|
|
144
|
+
case "start":
|
|
145
|
+
f[s] -= m * (o && a ? -1 : 1);
|
|
146
|
+
break;
|
|
147
|
+
case "end":
|
|
148
|
+
f[s] += m * (o && a ? -1 : 1);
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
return f;
|
|
152
|
+
}
|
|
153
|
+
async function Tt(t, e) {
|
|
154
|
+
var o;
|
|
155
|
+
e === void 0 && (e = {});
|
|
156
|
+
const {
|
|
157
|
+
x: n,
|
|
158
|
+
y: i,
|
|
159
|
+
platform: r,
|
|
160
|
+
rects: s,
|
|
161
|
+
elements: c,
|
|
162
|
+
strategy: l
|
|
163
|
+
} = t, {
|
|
164
|
+
boundary: a = "clippingAncestors",
|
|
165
|
+
rootBoundary: d = "viewport",
|
|
166
|
+
elementContext: u = "floating",
|
|
167
|
+
altBoundary: m = !1,
|
|
168
|
+
padding: f = 0
|
|
169
|
+
} = Z(e, t), h = Lt(f), w = c[m ? u === "floating" ? "reference" : "floating" : u], p = st(await r.getClippingRect({
|
|
170
|
+
element: (o = await (r.isElement == null ? void 0 : r.isElement(w))) == null || o ? w : w.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(c.floating)),
|
|
171
|
+
boundary: a,
|
|
172
|
+
rootBoundary: d,
|
|
173
|
+
strategy: l
|
|
174
|
+
})), x = u === "floating" ? {
|
|
175
|
+
x: n,
|
|
176
|
+
y: i,
|
|
177
|
+
width: s.floating.width,
|
|
178
|
+
height: s.floating.height
|
|
179
|
+
} : s.reference, y = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c.floating)), v = await (r.isElement == null ? void 0 : r.isElement(y)) ? await (r.getScale == null ? void 0 : r.getScale(y)) || {
|
|
180
|
+
x: 1,
|
|
181
|
+
y: 1
|
|
182
|
+
} : {
|
|
183
|
+
x: 1,
|
|
184
|
+
y: 1
|
|
185
|
+
}, O = st(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
186
|
+
elements: c,
|
|
187
|
+
rect: x,
|
|
188
|
+
offsetParent: y,
|
|
189
|
+
strategy: l
|
|
190
|
+
}) : x);
|
|
191
|
+
return {
|
|
192
|
+
top: (p.top - O.top + h.top) / v.y,
|
|
193
|
+
bottom: (O.bottom - p.bottom + h.bottom) / v.y,
|
|
194
|
+
left: (p.left - O.left + h.left) / v.x,
|
|
195
|
+
right: (O.right - p.right + h.right) / v.x
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
const qt = 50, Ut = async (t, e, o) => {
|
|
199
|
+
const {
|
|
200
|
+
placement: n = "bottom",
|
|
201
|
+
strategy: i = "absolute",
|
|
202
|
+
middleware: r = [],
|
|
203
|
+
platform: s
|
|
204
|
+
} = o, c = s.detectOverflow ? s : {
|
|
205
|
+
...s,
|
|
206
|
+
detectOverflow: Tt
|
|
207
|
+
}, l = await (s.isRTL == null ? void 0 : s.isRTL(e));
|
|
208
|
+
let a = await s.getElementRects({
|
|
209
|
+
reference: t,
|
|
210
|
+
floating: e,
|
|
211
|
+
strategy: i
|
|
212
|
+
}), {
|
|
213
|
+
x: d,
|
|
214
|
+
y: u
|
|
215
|
+
} = Rt(a, n, l), m = n, f = 0;
|
|
216
|
+
const h = {};
|
|
217
|
+
for (let g = 0; g < r.length; g++) {
|
|
218
|
+
const w = r[g];
|
|
219
|
+
if (!w)
|
|
220
|
+
continue;
|
|
221
|
+
const {
|
|
222
|
+
name: p,
|
|
223
|
+
fn: x
|
|
224
|
+
} = w, {
|
|
225
|
+
x: y,
|
|
226
|
+
y: v,
|
|
227
|
+
data: O,
|
|
228
|
+
reset: b
|
|
229
|
+
} = await x({
|
|
230
|
+
x: d,
|
|
231
|
+
y: u,
|
|
232
|
+
initialPlacement: n,
|
|
233
|
+
placement: m,
|
|
234
|
+
strategy: i,
|
|
235
|
+
middlewareData: h,
|
|
236
|
+
rects: a,
|
|
237
|
+
platform: c,
|
|
238
|
+
elements: {
|
|
239
|
+
reference: t,
|
|
240
|
+
floating: e
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
d = y ?? d, u = v ?? u, h[p] = {
|
|
244
|
+
...h[p],
|
|
245
|
+
...O
|
|
246
|
+
}, b && f < qt && (f++, typeof b == "object" && (b.placement && (m = b.placement), b.rects && (a = b.rects === !0 ? await s.getElementRects({
|
|
247
|
+
reference: t,
|
|
248
|
+
floating: e,
|
|
249
|
+
strategy: i
|
|
250
|
+
}) : b.rects), {
|
|
251
|
+
x: d,
|
|
252
|
+
y: u
|
|
253
|
+
} = Rt(a, m, l)), g = -1);
|
|
254
|
+
}
|
|
255
|
+
return {
|
|
256
|
+
x: d,
|
|
257
|
+
y: u,
|
|
258
|
+
placement: m,
|
|
259
|
+
strategy: i,
|
|
260
|
+
middlewareData: h
|
|
261
|
+
};
|
|
262
|
+
}, Kt = (t) => ({
|
|
263
|
+
name: "arrow",
|
|
264
|
+
options: t,
|
|
265
|
+
async fn(e) {
|
|
266
|
+
const {
|
|
267
|
+
x: o,
|
|
268
|
+
y: n,
|
|
269
|
+
placement: i,
|
|
270
|
+
rects: r,
|
|
271
|
+
platform: s,
|
|
272
|
+
elements: c,
|
|
273
|
+
middlewareData: l
|
|
274
|
+
} = e, {
|
|
275
|
+
element: a,
|
|
276
|
+
padding: d = 0
|
|
277
|
+
} = Z(t, e) || {};
|
|
278
|
+
if (a == null)
|
|
279
|
+
return {};
|
|
280
|
+
const u = Lt(d), m = {
|
|
281
|
+
x: o,
|
|
282
|
+
y: n
|
|
283
|
+
}, f = pt(i), h = gt(f), g = await s.getDimensions(a), w = f === "y", p = w ? "top" : "left", x = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", v = r.reference[h] + r.reference[f] - m[f] - r.floating[h], O = m[f] - r.reference[f], b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a));
|
|
284
|
+
let C = b ? b[y] : 0;
|
|
285
|
+
(!C || !await (s.isElement == null ? void 0 : s.isElement(b))) && (C = c.floating[y] || r.floating[h]);
|
|
286
|
+
const K = v / 2 - O / 2, V = C / 2 - g[h] / 2 - 1, F = Y(u[p], V), G = Y(u[x], V), $ = F, J = C - g[h] - G, R = C / 2 - g[h] / 2 + K, _ = dt($, R, J), M = !l.arrow && tt(i) != null && R !== _ && r.reference[h] / 2 - (R < $ ? F : G) - g[h] / 2 < 0, S = M ? R < $ ? R - $ : R - J : 0;
|
|
287
|
+
return {
|
|
288
|
+
[f]: m[f] + S,
|
|
289
|
+
data: {
|
|
290
|
+
[f]: _,
|
|
291
|
+
centerOffset: R - _ - S,
|
|
292
|
+
...M && {
|
|
293
|
+
alignmentOffset: S
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
reset: M
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
}), Gt = function(t) {
|
|
300
|
+
return t === void 0 && (t = {}), {
|
|
301
|
+
name: "flip",
|
|
302
|
+
options: t,
|
|
303
|
+
async fn(e) {
|
|
304
|
+
var o, n;
|
|
305
|
+
const {
|
|
306
|
+
placement: i,
|
|
307
|
+
middlewareData: r,
|
|
308
|
+
rects: s,
|
|
309
|
+
initialPlacement: c,
|
|
310
|
+
platform: l,
|
|
311
|
+
elements: a
|
|
312
|
+
} = e, {
|
|
313
|
+
mainAxis: d = !0,
|
|
314
|
+
crossAxis: u = !0,
|
|
315
|
+
fallbackPlacements: m,
|
|
316
|
+
fallbackStrategy: f = "bestFit",
|
|
317
|
+
fallbackAxisSideDirection: h = "none",
|
|
318
|
+
flipAlignment: g = !0,
|
|
319
|
+
...w
|
|
320
|
+
} = Z(t, e);
|
|
321
|
+
if ((o = r.arrow) != null && o.alignmentOffset)
|
|
322
|
+
return {};
|
|
323
|
+
const p = I(i), x = N(c), y = I(c) === c, v = await (l.isRTL == null ? void 0 : l.isRTL(a.floating)), O = m || (y || !g ? [it(c)] : Ht(c)), b = h !== "none";
|
|
324
|
+
!m && b && O.push(...jt(c, g, h, v));
|
|
325
|
+
const C = [c, ...O], K = await l.detectOverflow(e, w), V = [];
|
|
326
|
+
let F = ((n = r.flip) == null ? void 0 : n.overflows) || [];
|
|
327
|
+
if (d && V.push(K[p]), u) {
|
|
328
|
+
const R = _t(i, s, v);
|
|
329
|
+
V.push(K[R[0]], K[R[1]]);
|
|
330
|
+
}
|
|
331
|
+
if (F = [...F, {
|
|
332
|
+
placement: i,
|
|
333
|
+
overflows: V
|
|
334
|
+
}], !V.every((R) => R <= 0)) {
|
|
335
|
+
var G, $;
|
|
336
|
+
const R = (((G = r.flip) == null ? void 0 : G.index) || 0) + 1, _ = C[R];
|
|
337
|
+
if (_ && (!(u === "alignment" ? x !== N(_) : !1) || // We leave the current main axis only if every placement on that axis
|
|
338
|
+
// overflows the main axis.
|
|
339
|
+
F.every((E) => N(E.placement) === x ? E.overflows[0] > 0 : !0)))
|
|
340
|
+
return {
|
|
341
|
+
data: {
|
|
342
|
+
index: R,
|
|
343
|
+
overflows: F
|
|
344
|
+
},
|
|
345
|
+
reset: {
|
|
346
|
+
placement: _
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
let M = ($ = F.filter((S) => S.overflows[0] <= 0).sort((S, E) => S.overflows[1] - E.overflows[1])[0]) == null ? void 0 : $.placement;
|
|
350
|
+
if (!M)
|
|
351
|
+
switch (f) {
|
|
352
|
+
case "bestFit": {
|
|
353
|
+
var J;
|
|
354
|
+
const S = (J = F.filter((E) => {
|
|
355
|
+
if (b) {
|
|
356
|
+
const k = N(E.placement);
|
|
357
|
+
return k === x || // Create a bias to the `y` side axis due to horizontal
|
|
358
|
+
// reading directions favoring greater width.
|
|
359
|
+
k === "y";
|
|
360
|
+
}
|
|
361
|
+
return !0;
|
|
362
|
+
}).map((E) => [E.placement, E.overflows.filter((k) => k > 0).reduce((k, Vt) => k + Vt, 0)]).sort((E, k) => E[1] - k[1])[0]) == null ? void 0 : J[0];
|
|
363
|
+
S && (M = S);
|
|
364
|
+
break;
|
|
365
|
+
}
|
|
366
|
+
case "initialPlacement":
|
|
367
|
+
M = c;
|
|
368
|
+
break;
|
|
369
|
+
}
|
|
370
|
+
if (i !== M)
|
|
371
|
+
return {
|
|
372
|
+
reset: {
|
|
373
|
+
placement: M
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
return {};
|
|
378
|
+
}
|
|
379
|
+
};
|
|
380
|
+
}, Jt = /* @__PURE__ */ new Set(["left", "top"]);
|
|
381
|
+
async function Qt(t, e) {
|
|
382
|
+
const {
|
|
383
|
+
placement: o,
|
|
384
|
+
platform: n,
|
|
385
|
+
elements: i
|
|
386
|
+
} = t, r = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), s = I(o), c = tt(o), l = N(o) === "y", a = Jt.has(s) ? -1 : 1, d = r && l ? -1 : 1, u = Z(e, t);
|
|
387
|
+
let {
|
|
388
|
+
mainAxis: m,
|
|
389
|
+
crossAxis: f,
|
|
390
|
+
alignmentAxis: h
|
|
391
|
+
} = typeof u == "number" ? {
|
|
392
|
+
mainAxis: u,
|
|
393
|
+
crossAxis: 0,
|
|
394
|
+
alignmentAxis: null
|
|
395
|
+
} : {
|
|
396
|
+
mainAxis: u.mainAxis || 0,
|
|
397
|
+
crossAxis: u.crossAxis || 0,
|
|
398
|
+
alignmentAxis: u.alignmentAxis
|
|
399
|
+
};
|
|
400
|
+
return c && typeof h == "number" && (f = c === "end" ? h * -1 : h), l ? {
|
|
401
|
+
x: f * d,
|
|
402
|
+
y: m * a
|
|
403
|
+
} : {
|
|
404
|
+
x: m * a,
|
|
405
|
+
y: f * d
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
const Zt = function(t) {
|
|
409
|
+
return t === void 0 && (t = 0), {
|
|
410
|
+
name: "offset",
|
|
411
|
+
options: t,
|
|
412
|
+
async fn(e) {
|
|
413
|
+
var o, n;
|
|
414
|
+
const {
|
|
415
|
+
x: i,
|
|
416
|
+
y: r,
|
|
417
|
+
placement: s,
|
|
418
|
+
middlewareData: c
|
|
419
|
+
} = e, l = await Qt(e, t);
|
|
420
|
+
return s === ((o = c.offset) == null ? void 0 : o.placement) && (n = c.arrow) != null && n.alignmentOffset ? {} : {
|
|
421
|
+
x: i + l.x,
|
|
422
|
+
y: r + l.y,
|
|
423
|
+
data: {
|
|
424
|
+
...l,
|
|
425
|
+
placement: s
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
};
|
|
430
|
+
}, te = function(t) {
|
|
431
|
+
return t === void 0 && (t = {}), {
|
|
432
|
+
name: "shift",
|
|
433
|
+
options: t,
|
|
434
|
+
async fn(e) {
|
|
435
|
+
const {
|
|
436
|
+
x: o,
|
|
437
|
+
y: n,
|
|
438
|
+
placement: i,
|
|
439
|
+
platform: r
|
|
440
|
+
} = e, {
|
|
441
|
+
mainAxis: s = !0,
|
|
442
|
+
crossAxis: c = !1,
|
|
443
|
+
limiter: l = {
|
|
444
|
+
fn: (p) => {
|
|
445
|
+
let {
|
|
446
|
+
x,
|
|
447
|
+
y
|
|
448
|
+
} = p;
|
|
449
|
+
return {
|
|
450
|
+
x,
|
|
451
|
+
y
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
...a
|
|
456
|
+
} = Z(t, e), d = {
|
|
457
|
+
x: o,
|
|
458
|
+
y: n
|
|
459
|
+
}, u = await r.detectOverflow(e, a), m = N(I(i)), f = Et(m);
|
|
460
|
+
let h = d[f], g = d[m];
|
|
461
|
+
if (s) {
|
|
462
|
+
const p = f === "y" ? "top" : "left", x = f === "y" ? "bottom" : "right", y = h + u[p], v = h - u[x];
|
|
463
|
+
h = dt(y, h, v);
|
|
464
|
+
}
|
|
465
|
+
if (c) {
|
|
466
|
+
const p = m === "y" ? "top" : "left", x = m === "y" ? "bottom" : "right", y = g + u[p], v = g - u[x];
|
|
467
|
+
g = dt(y, g, v);
|
|
468
|
+
}
|
|
469
|
+
const w = l.fn({
|
|
470
|
+
...e,
|
|
471
|
+
[f]: h,
|
|
472
|
+
[m]: g
|
|
473
|
+
});
|
|
474
|
+
return {
|
|
475
|
+
...w,
|
|
476
|
+
data: {
|
|
477
|
+
x: w.x - o,
|
|
478
|
+
y: w.y - n,
|
|
479
|
+
enabled: {
|
|
480
|
+
[f]: s,
|
|
481
|
+
[m]: c
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
function rt() {
|
|
489
|
+
return typeof window < "u";
|
|
490
|
+
}
|
|
491
|
+
function U(t) {
|
|
492
|
+
return Pt(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
493
|
+
}
|
|
494
|
+
function A(t) {
|
|
495
|
+
var e;
|
|
496
|
+
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
497
|
+
}
|
|
498
|
+
function D(t) {
|
|
499
|
+
var e;
|
|
500
|
+
return (e = (Pt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
501
|
+
}
|
|
502
|
+
function Pt(t) {
|
|
503
|
+
return rt() ? t instanceof Node || t instanceof A(t).Node : !1;
|
|
504
|
+
}
|
|
505
|
+
function L(t) {
|
|
506
|
+
return rt() ? t instanceof Element || t instanceof A(t).Element : !1;
|
|
507
|
+
}
|
|
508
|
+
function W(t) {
|
|
509
|
+
return rt() ? t instanceof HTMLElement || t instanceof A(t).HTMLElement : !1;
|
|
510
|
+
}
|
|
511
|
+
function Ot(t) {
|
|
512
|
+
return !rt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof A(t).ShadowRoot;
|
|
513
|
+
}
|
|
514
|
+
function et(t) {
|
|
515
|
+
const {
|
|
516
|
+
overflow: e,
|
|
517
|
+
overflowX: o,
|
|
518
|
+
overflowY: n,
|
|
519
|
+
display: i
|
|
520
|
+
} = T(t);
|
|
521
|
+
return /auto|scroll|overlay|hidden|clip/.test(e + n + o) && i !== "inline" && i !== "contents";
|
|
522
|
+
}
|
|
523
|
+
function ee(t) {
|
|
524
|
+
return /^(table|td|th)$/.test(U(t));
|
|
525
|
+
}
|
|
526
|
+
function ct(t) {
|
|
527
|
+
try {
|
|
528
|
+
if (t.matches(":popover-open"))
|
|
529
|
+
return !0;
|
|
530
|
+
} catch {
|
|
531
|
+
}
|
|
532
|
+
try {
|
|
533
|
+
return t.matches(":modal");
|
|
534
|
+
} catch {
|
|
535
|
+
return !1;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
const ne = /transform|translate|scale|rotate|perspective|filter/, oe = /paint|layout|strict|content/, H = (t) => !!t && t !== "none";
|
|
539
|
+
let at;
|
|
540
|
+
function wt(t) {
|
|
541
|
+
const e = L(t) ? T(t) : t;
|
|
542
|
+
return H(e.transform) || H(e.translate) || H(e.scale) || H(e.rotate) || H(e.perspective) || !xt() && (H(e.backdropFilter) || H(e.filter)) || ne.test(e.willChange || "") || oe.test(e.contain || "");
|
|
543
|
+
}
|
|
544
|
+
function ie(t) {
|
|
545
|
+
let e = B(t);
|
|
546
|
+
for (; W(e) && !q(e); ) {
|
|
547
|
+
if (wt(e))
|
|
548
|
+
return e;
|
|
549
|
+
if (ct(e))
|
|
550
|
+
return null;
|
|
551
|
+
e = B(e);
|
|
552
|
+
}
|
|
553
|
+
return null;
|
|
554
|
+
}
|
|
555
|
+
function xt() {
|
|
556
|
+
return at == null && (at = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), at;
|
|
557
|
+
}
|
|
558
|
+
function q(t) {
|
|
559
|
+
return /^(html|body|#document)$/.test(U(t));
|
|
560
|
+
}
|
|
561
|
+
function T(t) {
|
|
562
|
+
return A(t).getComputedStyle(t);
|
|
563
|
+
}
|
|
564
|
+
function lt(t) {
|
|
565
|
+
return L(t) ? {
|
|
566
|
+
scrollLeft: t.scrollLeft,
|
|
567
|
+
scrollTop: t.scrollTop
|
|
568
|
+
} : {
|
|
569
|
+
scrollLeft: t.scrollX,
|
|
570
|
+
scrollTop: t.scrollY
|
|
571
|
+
};
|
|
572
|
+
}
|
|
573
|
+
function B(t) {
|
|
574
|
+
if (U(t) === "html")
|
|
575
|
+
return t;
|
|
576
|
+
const e = (
|
|
577
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
578
|
+
t.assignedSlot || // DOM Element detected.
|
|
579
|
+
t.parentNode || // ShadowRoot detected.
|
|
580
|
+
Ot(t) && t.host || // Fallback.
|
|
581
|
+
D(t)
|
|
582
|
+
);
|
|
583
|
+
return Ot(e) ? e.host : e;
|
|
584
|
+
}
|
|
585
|
+
function Dt(t) {
|
|
586
|
+
const e = B(t);
|
|
587
|
+
return q(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : W(e) && et(e) ? e : Dt(e);
|
|
588
|
+
}
|
|
589
|
+
function Q(t, e, o) {
|
|
590
|
+
var n;
|
|
591
|
+
e === void 0 && (e = []), o === void 0 && (o = !0);
|
|
592
|
+
const i = Dt(t), r = i === ((n = t.ownerDocument) == null ? void 0 : n.body), s = A(i);
|
|
593
|
+
if (r) {
|
|
594
|
+
const c = ht(s);
|
|
595
|
+
return e.concat(s, s.visualViewport || [], et(i) ? i : [], c && o ? Q(c) : []);
|
|
596
|
+
} else
|
|
597
|
+
return e.concat(i, Q(i, [], o));
|
|
598
|
+
}
|
|
599
|
+
function ht(t) {
|
|
600
|
+
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
601
|
+
}
|
|
602
|
+
function Ft(t) {
|
|
603
|
+
const e = T(t);
|
|
604
|
+
let o = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
|
|
605
|
+
const i = W(t), r = i ? t.offsetWidth : o, s = i ? t.offsetHeight : n, c = ot(o) !== r || ot(n) !== s;
|
|
606
|
+
return c && (o = r, n = s), {
|
|
607
|
+
width: o,
|
|
608
|
+
height: n,
|
|
609
|
+
$: c
|
|
610
|
+
};
|
|
611
|
+
}
|
|
612
|
+
function yt(t) {
|
|
613
|
+
return L(t) ? t : t.contextElement;
|
|
614
|
+
}
|
|
615
|
+
function j(t) {
|
|
616
|
+
const e = yt(t);
|
|
617
|
+
if (!W(e))
|
|
618
|
+
return P(1);
|
|
619
|
+
const o = e.getBoundingClientRect(), {
|
|
620
|
+
width: n,
|
|
621
|
+
height: i,
|
|
622
|
+
$: r
|
|
623
|
+
} = Ft(e);
|
|
624
|
+
let s = (r ? ot(o.width) : o.width) / n, c = (r ? ot(o.height) : o.height) / i;
|
|
625
|
+
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
626
|
+
x: s,
|
|
627
|
+
y: c
|
|
628
|
+
};
|
|
629
|
+
}
|
|
630
|
+
const se = /* @__PURE__ */ P(0);
|
|
631
|
+
function Mt(t) {
|
|
632
|
+
const e = A(t);
|
|
633
|
+
return !xt() || !e.visualViewport ? se : {
|
|
634
|
+
x: e.visualViewport.offsetLeft,
|
|
635
|
+
y: e.visualViewport.offsetTop
|
|
636
|
+
};
|
|
637
|
+
}
|
|
638
|
+
function re(t, e, o) {
|
|
639
|
+
return e === void 0 && (e = !1), !o || e && o !== A(t) ? !1 : e;
|
|
640
|
+
}
|
|
641
|
+
function X(t, e, o, n) {
|
|
642
|
+
e === void 0 && (e = !1), o === void 0 && (o = !1);
|
|
643
|
+
const i = t.getBoundingClientRect(), r = yt(t);
|
|
644
|
+
let s = P(1);
|
|
645
|
+
e && (n ? L(n) && (s = j(n)) : s = j(t));
|
|
646
|
+
const c = re(r, o, n) ? Mt(r) : P(0);
|
|
647
|
+
let l = (i.left + c.x) / s.x, a = (i.top + c.y) / s.y, d = i.width / s.x, u = i.height / s.y;
|
|
648
|
+
if (r) {
|
|
649
|
+
const m = A(r), f = n && L(n) ? A(n) : n;
|
|
650
|
+
let h = m, g = ht(h);
|
|
651
|
+
for (; g && n && f !== h; ) {
|
|
652
|
+
const w = j(g), p = g.getBoundingClientRect(), x = T(g), y = p.left + (g.clientLeft + parseFloat(x.paddingLeft)) * w.x, v = p.top + (g.clientTop + parseFloat(x.paddingTop)) * w.y;
|
|
653
|
+
l *= w.x, a *= w.y, d *= w.x, u *= w.y, l += y, a += v, h = A(g), g = ht(h);
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
return st({
|
|
657
|
+
width: d,
|
|
658
|
+
height: u,
|
|
659
|
+
x: l,
|
|
660
|
+
y: a
|
|
661
|
+
});
|
|
662
|
+
}
|
|
663
|
+
function ft(t, e) {
|
|
664
|
+
const o = lt(t).scrollLeft;
|
|
665
|
+
return e ? e.left + o : X(D(t)).left + o;
|
|
666
|
+
}
|
|
667
|
+
function Wt(t, e) {
|
|
668
|
+
const o = t.getBoundingClientRect(), n = o.left + e.scrollLeft - ft(t, o), i = o.top + e.scrollTop;
|
|
669
|
+
return {
|
|
670
|
+
x: n,
|
|
671
|
+
y: i
|
|
672
|
+
};
|
|
673
|
+
}
|
|
674
|
+
function ce(t) {
|
|
675
|
+
let {
|
|
676
|
+
elements: e,
|
|
677
|
+
rect: o,
|
|
678
|
+
offsetParent: n,
|
|
679
|
+
strategy: i
|
|
680
|
+
} = t;
|
|
681
|
+
const r = i === "fixed", s = D(n), c = e ? ct(e.floating) : !1;
|
|
682
|
+
if (n === s || c && r)
|
|
683
|
+
return o;
|
|
684
|
+
let l = {
|
|
685
|
+
scrollLeft: 0,
|
|
686
|
+
scrollTop: 0
|
|
687
|
+
}, a = P(1);
|
|
688
|
+
const d = P(0), u = W(n);
|
|
689
|
+
if ((u || !u && !r) && ((U(n) !== "body" || et(s)) && (l = lt(n)), u)) {
|
|
690
|
+
const f = X(n);
|
|
691
|
+
a = j(n), d.x = f.x + n.clientLeft, d.y = f.y + n.clientTop;
|
|
692
|
+
}
|
|
693
|
+
const m = s && !u && !r ? Wt(s, l) : P(0);
|
|
694
|
+
return {
|
|
695
|
+
width: o.width * a.x,
|
|
696
|
+
height: o.height * a.y,
|
|
697
|
+
x: o.x * a.x - l.scrollLeft * a.x + d.x + m.x,
|
|
698
|
+
y: o.y * a.y - l.scrollTop * a.y + d.y + m.y
|
|
699
|
+
};
|
|
700
|
+
}
|
|
701
|
+
function le(t) {
|
|
702
|
+
return Array.from(t.getClientRects());
|
|
703
|
+
}
|
|
704
|
+
function fe(t) {
|
|
705
|
+
const e = D(t), o = lt(t), n = t.ownerDocument.body, i = z(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = z(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
706
|
+
let s = -o.scrollLeft + ft(t);
|
|
707
|
+
const c = -o.scrollTop;
|
|
708
|
+
return T(n).direction === "rtl" && (s += z(e.clientWidth, n.clientWidth) - i), {
|
|
709
|
+
width: i,
|
|
710
|
+
height: r,
|
|
711
|
+
x: s,
|
|
712
|
+
y: c
|
|
713
|
+
};
|
|
714
|
+
}
|
|
715
|
+
const At = 25;
|
|
716
|
+
function ae(t, e) {
|
|
717
|
+
const o = A(t), n = D(t), i = o.visualViewport;
|
|
718
|
+
let r = n.clientWidth, s = n.clientHeight, c = 0, l = 0;
|
|
719
|
+
if (i) {
|
|
720
|
+
r = i.width, s = i.height;
|
|
721
|
+
const d = xt();
|
|
722
|
+
(!d || d && e === "fixed") && (c = i.offsetLeft, l = i.offsetTop);
|
|
723
|
+
}
|
|
724
|
+
const a = ft(n);
|
|
725
|
+
if (a <= 0) {
|
|
726
|
+
const d = n.ownerDocument, u = d.body, m = getComputedStyle(u), f = d.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, h = Math.abs(n.clientWidth - u.clientWidth - f);
|
|
727
|
+
h <= At && (r -= h);
|
|
728
|
+
} else a <= At && (r += a);
|
|
729
|
+
return {
|
|
730
|
+
width: r,
|
|
731
|
+
height: s,
|
|
732
|
+
x: c,
|
|
733
|
+
y: l
|
|
734
|
+
};
|
|
735
|
+
}
|
|
736
|
+
function ue(t, e) {
|
|
737
|
+
const o = X(t, !0, e === "fixed"), n = o.top + t.clientTop, i = o.left + t.clientLeft, r = W(t) ? j(t) : P(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = i * r.x, a = n * r.y;
|
|
738
|
+
return {
|
|
739
|
+
width: s,
|
|
740
|
+
height: c,
|
|
741
|
+
x: l,
|
|
742
|
+
y: a
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
function Ct(t, e, o) {
|
|
746
|
+
let n;
|
|
747
|
+
if (e === "viewport")
|
|
748
|
+
n = ae(t, o);
|
|
749
|
+
else if (e === "document")
|
|
750
|
+
n = fe(D(t));
|
|
751
|
+
else if (L(e))
|
|
752
|
+
n = ue(e, o);
|
|
753
|
+
else {
|
|
754
|
+
const i = Mt(t);
|
|
755
|
+
n = {
|
|
756
|
+
x: e.x - i.x,
|
|
757
|
+
y: e.y - i.y,
|
|
758
|
+
width: e.width,
|
|
759
|
+
height: e.height
|
|
760
|
+
};
|
|
761
|
+
}
|
|
762
|
+
return st(n);
|
|
763
|
+
}
|
|
764
|
+
function kt(t, e) {
|
|
765
|
+
const o = B(t);
|
|
766
|
+
return o === e || !L(o) || q(o) ? !1 : T(o).position === "fixed" || kt(o, e);
|
|
767
|
+
}
|
|
768
|
+
function de(t, e) {
|
|
769
|
+
const o = e.get(t);
|
|
770
|
+
if (o)
|
|
771
|
+
return o;
|
|
772
|
+
let n = Q(t, [], !1).filter((c) => L(c) && U(c) !== "body"), i = null;
|
|
773
|
+
const r = T(t).position === "fixed";
|
|
774
|
+
let s = r ? B(t) : t;
|
|
775
|
+
for (; L(s) && !q(s); ) {
|
|
776
|
+
const c = T(s), l = wt(s);
|
|
777
|
+
!l && c.position === "fixed" && (i = null), (r ? !l && !i : !l && c.position === "static" && !!i && (i.position === "absolute" || i.position === "fixed") || et(s) && !l && kt(t, s)) ? n = n.filter((d) => d !== s) : i = c, s = B(s);
|
|
778
|
+
}
|
|
779
|
+
return e.set(t, n), n;
|
|
780
|
+
}
|
|
781
|
+
function me(t) {
|
|
782
|
+
let {
|
|
783
|
+
element: e,
|
|
784
|
+
boundary: o,
|
|
785
|
+
rootBoundary: n,
|
|
786
|
+
strategy: i
|
|
787
|
+
} = t;
|
|
788
|
+
const s = [...o === "clippingAncestors" ? ct(e) ? [] : de(e, this._c) : [].concat(o), n], c = Ct(e, s[0], i);
|
|
789
|
+
let l = c.top, a = c.right, d = c.bottom, u = c.left;
|
|
790
|
+
for (let m = 1; m < s.length; m++) {
|
|
791
|
+
const f = Ct(e, s[m], i);
|
|
792
|
+
l = z(f.top, l), a = Y(f.right, a), d = Y(f.bottom, d), u = z(f.left, u);
|
|
793
|
+
}
|
|
794
|
+
return {
|
|
795
|
+
width: a - u,
|
|
796
|
+
height: d - l,
|
|
797
|
+
x: u,
|
|
798
|
+
y: l
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
function he(t) {
|
|
802
|
+
const {
|
|
803
|
+
width: e,
|
|
804
|
+
height: o
|
|
805
|
+
} = Ft(t);
|
|
806
|
+
return {
|
|
807
|
+
width: e,
|
|
808
|
+
height: o
|
|
809
|
+
};
|
|
810
|
+
}
|
|
811
|
+
function ge(t, e, o) {
|
|
812
|
+
const n = W(e), i = D(e), r = o === "fixed", s = X(t, !0, r, e);
|
|
813
|
+
let c = {
|
|
814
|
+
scrollLeft: 0,
|
|
815
|
+
scrollTop: 0
|
|
816
|
+
};
|
|
817
|
+
const l = P(0);
|
|
818
|
+
function a() {
|
|
819
|
+
l.x = ft(i);
|
|
820
|
+
}
|
|
821
|
+
if (n || !n && !r)
|
|
822
|
+
if ((U(e) !== "body" || et(i)) && (c = lt(e)), n) {
|
|
823
|
+
const f = X(e, !0, r, e);
|
|
824
|
+
l.x = f.x + e.clientLeft, l.y = f.y + e.clientTop;
|
|
825
|
+
} else i && a();
|
|
826
|
+
r && !n && i && a();
|
|
827
|
+
const d = i && !n && !r ? Wt(i, c) : P(0), u = s.left + c.scrollLeft - l.x - d.x, m = s.top + c.scrollTop - l.y - d.y;
|
|
828
|
+
return {
|
|
829
|
+
x: u,
|
|
830
|
+
y: m,
|
|
831
|
+
width: s.width,
|
|
832
|
+
height: s.height
|
|
833
|
+
};
|
|
834
|
+
}
|
|
835
|
+
function ut(t) {
|
|
836
|
+
return T(t).position === "static";
|
|
837
|
+
}
|
|
838
|
+
function St(t, e) {
|
|
839
|
+
if (!W(t) || T(t).position === "fixed")
|
|
840
|
+
return null;
|
|
841
|
+
if (e)
|
|
842
|
+
return e(t);
|
|
843
|
+
let o = t.offsetParent;
|
|
844
|
+
return D(t) === o && (o = o.ownerDocument.body), o;
|
|
845
|
+
}
|
|
846
|
+
function Nt(t, e) {
|
|
847
|
+
const o = A(t);
|
|
848
|
+
if (ct(t))
|
|
849
|
+
return o;
|
|
850
|
+
if (!W(t)) {
|
|
851
|
+
let i = B(t);
|
|
852
|
+
for (; i && !q(i); ) {
|
|
853
|
+
if (L(i) && !ut(i))
|
|
854
|
+
return i;
|
|
855
|
+
i = B(i);
|
|
856
|
+
}
|
|
857
|
+
return o;
|
|
858
|
+
}
|
|
859
|
+
let n = St(t, e);
|
|
860
|
+
for (; n && ee(n) && ut(n); )
|
|
861
|
+
n = St(n, e);
|
|
862
|
+
return n && q(n) && ut(n) && !wt(n) ? o : n || ie(t) || o;
|
|
863
|
+
}
|
|
864
|
+
const pe = async function(t) {
|
|
865
|
+
const e = this.getOffsetParent || Nt, o = this.getDimensions, n = await o(t.floating);
|
|
866
|
+
return {
|
|
867
|
+
reference: ge(t.reference, await e(t.floating), t.strategy),
|
|
868
|
+
floating: {
|
|
869
|
+
x: 0,
|
|
870
|
+
y: 0,
|
|
871
|
+
width: n.width,
|
|
872
|
+
height: n.height
|
|
873
|
+
}
|
|
874
|
+
};
|
|
875
|
+
};
|
|
876
|
+
function we(t) {
|
|
877
|
+
return T(t).direction === "rtl";
|
|
878
|
+
}
|
|
879
|
+
const xe = {
|
|
880
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: ce,
|
|
881
|
+
getDocumentElement: D,
|
|
882
|
+
getClippingRect: me,
|
|
883
|
+
getOffsetParent: Nt,
|
|
884
|
+
getElementRects: pe,
|
|
885
|
+
getClientRects: le,
|
|
886
|
+
getDimensions: he,
|
|
887
|
+
getScale: j,
|
|
888
|
+
isElement: L,
|
|
889
|
+
isRTL: we
|
|
890
|
+
};
|
|
891
|
+
function Bt(t, e) {
|
|
892
|
+
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
893
|
+
}
|
|
894
|
+
function ye(t, e) {
|
|
895
|
+
let o = null, n;
|
|
896
|
+
const i = D(t);
|
|
897
|
+
function r() {
|
|
898
|
+
var c;
|
|
899
|
+
clearTimeout(n), (c = o) == null || c.disconnect(), o = null;
|
|
900
|
+
}
|
|
901
|
+
function s(c, l) {
|
|
902
|
+
c === void 0 && (c = !1), l === void 0 && (l = 1), r();
|
|
903
|
+
const a = t.getBoundingClientRect(), {
|
|
904
|
+
left: d,
|
|
905
|
+
top: u,
|
|
906
|
+
width: m,
|
|
907
|
+
height: f
|
|
908
|
+
} = a;
|
|
909
|
+
if (c || e(), !m || !f)
|
|
910
|
+
return;
|
|
911
|
+
const h = nt(u), g = nt(i.clientWidth - (d + m)), w = nt(i.clientHeight - (u + f)), p = nt(d), y = {
|
|
912
|
+
rootMargin: -h + "px " + -g + "px " + -w + "px " + -p + "px",
|
|
913
|
+
threshold: z(0, Y(1, l)) || 1
|
|
914
|
+
};
|
|
915
|
+
let v = !0;
|
|
916
|
+
function O(b) {
|
|
917
|
+
const C = b[0].intersectionRatio;
|
|
918
|
+
if (C !== l) {
|
|
919
|
+
if (!v)
|
|
920
|
+
return s();
|
|
921
|
+
C ? s(!1, C) : n = setTimeout(() => {
|
|
922
|
+
s(!1, 1e-7);
|
|
923
|
+
}, 1e3);
|
|
924
|
+
}
|
|
925
|
+
C === 1 && !Bt(a, t.getBoundingClientRect()) && s(), v = !1;
|
|
926
|
+
}
|
|
927
|
+
try {
|
|
928
|
+
o = new IntersectionObserver(O, {
|
|
929
|
+
...y,
|
|
930
|
+
// Handle <iframe>s
|
|
931
|
+
root: i.ownerDocument
|
|
932
|
+
});
|
|
933
|
+
} catch {
|
|
934
|
+
o = new IntersectionObserver(O, y);
|
|
935
|
+
}
|
|
936
|
+
o.observe(t);
|
|
937
|
+
}
|
|
938
|
+
return s(!0), r;
|
|
939
|
+
}
|
|
940
|
+
function ve(t, e, o, n) {
|
|
941
|
+
n === void 0 && (n = {});
|
|
942
|
+
const {
|
|
943
|
+
ancestorScroll: i = !0,
|
|
944
|
+
ancestorResize: r = !0,
|
|
945
|
+
elementResize: s = typeof ResizeObserver == "function",
|
|
946
|
+
layoutShift: c = typeof IntersectionObserver == "function",
|
|
947
|
+
animationFrame: l = !1
|
|
948
|
+
} = n, a = yt(t), d = i || r ? [...a ? Q(a) : [], ...e ? Q(e) : []] : [];
|
|
949
|
+
d.forEach((p) => {
|
|
950
|
+
i && p.addEventListener("scroll", o, {
|
|
951
|
+
passive: !0
|
|
952
|
+
}), r && p.addEventListener("resize", o);
|
|
953
|
+
});
|
|
954
|
+
const u = a && c ? ye(a, o) : null;
|
|
955
|
+
let m = -1, f = null;
|
|
956
|
+
s && (f = new ResizeObserver((p) => {
|
|
957
|
+
let [x] = p;
|
|
958
|
+
x && x.target === a && f && e && (f.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
959
|
+
var y;
|
|
960
|
+
(y = f) == null || y.observe(e);
|
|
961
|
+
})), o();
|
|
962
|
+
}), a && !l && f.observe(a), e && f.observe(e));
|
|
963
|
+
let h, g = l ? X(t) : null;
|
|
964
|
+
l && w();
|
|
965
|
+
function w() {
|
|
966
|
+
const p = X(t);
|
|
967
|
+
g && !Bt(g, p) && o(), g = p, h = requestAnimationFrame(w);
|
|
968
|
+
}
|
|
969
|
+
return o(), () => {
|
|
970
|
+
var p;
|
|
971
|
+
d.forEach((x) => {
|
|
972
|
+
i && x.removeEventListener("scroll", o), r && x.removeEventListener("resize", o);
|
|
973
|
+
}), u == null || u(), (p = f) == null || p.disconnect(), f = null, l && cancelAnimationFrame(h);
|
|
974
|
+
};
|
|
975
|
+
}
|
|
976
|
+
const be = Tt, Re = Zt, Oe = te, Ae = Gt, Ce = Kt, Se = (t, e, o) => {
|
|
977
|
+
const n = /* @__PURE__ */ new Map(), i = {
|
|
978
|
+
platform: xe,
|
|
979
|
+
...o
|
|
980
|
+
}, r = {
|
|
981
|
+
...i.platform,
|
|
982
|
+
_c: n
|
|
983
|
+
};
|
|
984
|
+
return Ut(t, e, {
|
|
985
|
+
...i,
|
|
986
|
+
platform: r
|
|
987
|
+
});
|
|
988
|
+
};
|
|
989
|
+
export {
|
|
990
|
+
Ce as a,
|
|
991
|
+
ve as b,
|
|
992
|
+
Se as c,
|
|
993
|
+
be as d,
|
|
994
|
+
Ae as f,
|
|
995
|
+
Re as o,
|
|
996
|
+
Oe as s
|
|
997
|
+
};
|