@pubinfo/devtools 2.2.0-beta.3 → 2.2.0-beta.4

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.
Files changed (38) hide show
  1. package/dist/client/assets/{Navbar-BqgjddHm.js → Navbar-3Cn9PFp9.js} +4 -3
  2. package/dist/client/assets/{PanelGrids-rTFcKhN6.js → PanelGrids-D-e1HMGu.js} +1 -1
  3. package/dist/client/assets/{SelectTabs-CkfoWIna.js → SelectTabs-BVqh8LZU.js} +2 -2
  4. package/dist/client/assets/{component-3CDh08Hf.js → component-B7OC6axd.js} +3 -3
  5. package/dist/client/assets/{core-CrqZ8qrs.js → core-DiI9pThV.js} +1 -2
  6. package/dist/client/assets/css-Cjj0epyT.js +2 -0
  7. package/dist/client/assets/html-CFrcqZWa.js +2 -0
  8. package/dist/client/assets/{html-B5Ny8iin.js → html-DWiEGJDI.js} +2 -2
  9. package/dist/client/assets/{import-CubThepE.js → import-C7KwSxxY.js} +3 -3
  10. package/dist/client/assets/index-BWYGlTlC.js +2528 -0
  11. package/dist/client/assets/{issue-0Wl4pqWV.js → issue-BSGRP6QK.js} +3 -3
  12. package/dist/client/assets/javascript-BJm8fXxP.js +2 -0
  13. package/dist/client/assets/json-Brw1dQFm.js +2 -0
  14. package/dist/client/assets/{pages-ZZlpyLnj.js → pages-CTRaZwAP.js} +5 -5
  15. package/dist/client/assets/preload-helper-DwCkpwrd.js +61 -0
  16. package/dist/client/assets/runtime-dom.esm-bundler-CEsf3eAe.js +719 -0
  17. package/dist/client/assets/{server-router-D1wHZTB0.js → server-router-C8joyG3R.js} +16 -15
  18. package/dist/client/assets/typescript-DIFxt4Fk.js +2 -0
  19. package/dist/client/assets/{vue-BvqQiUzU.js → vue-Aaycm_fY.js} +5 -5
  20. package/dist/client/assets/vue-router-CA-EVYVL.js +1907 -0
  21. package/dist/client/index.html +4 -1
  22. package/package.json +3 -3
  23. package/dist/client/assets/css-mRoPUXX2.js +0 -2
  24. package/dist/client/assets/html-g0uz4re7.js +0 -2
  25. package/dist/client/assets/index-DICgoWcH.js +0 -5208
  26. package/dist/client/assets/javascript-yBXmlTMV.js +0 -2
  27. package/dist/client/assets/json-CDHOIUIc.js +0 -2
  28. package/dist/client/assets/typescript-jte7_wp4.js +0 -2
  29. /package/dist/client/assets/{_plugin-vue_export-helper-Ctigiz3_.js → _plugin-vue_export-helper-CQkuo_9D.js} +0 -0
  30. /package/dist/client/assets/{css-3PrNsnPt.js → css-Bovntqw-.js} +0 -0
  31. /package/dist/client/assets/{engine-oniguruma-C1mOz3PQ.js → engine-oniguruma-BRR1aDSJ.js} +0 -0
  32. /package/dist/client/assets/{fetch-Bz1BNH1Z.js → fetch-YItqmMVJ.js} +0 -0
  33. /package/dist/client/assets/{javascript-D9OtNJpI.js → javascript-DlyTQa1O.js} +0 -0
  34. /package/dist/client/assets/{json-DFv6u-UA.js → json-BxC7veKF.js} +0 -0
  35. /package/dist/client/assets/{typescript-C6a_X60d.js → typescript-DOns-J1e.js} +0 -0
  36. /package/dist/client/assets/{vitesse-dark-Dd6LUkEf.js → vitesse-dark-B-kHMmlr.js} +0 -0
  37. /package/dist/client/assets/{vitesse-light-LEkeIfQx.js → vitesse-light-BUD2Pvc-.js} +0 -0
  38. /package/dist/client/assets/{wasm-bCjRd0-o.js → wasm-DEqiGDhb.js} +0 -0
@@ -0,0 +1,2528 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./pages-CTRaZwAP.js","./_plugin-vue_export-helper-CQkuo_9D.js","./preload-helper-DwCkpwrd.js","./runtime-core.esm-bundler-CsZVtwV7.js","./fetch-YItqmMVJ.js","./PanelGrids-D-e1HMGu.js","./pages-DQ8FtB9Y.css","./component-B7OC6axd.js","./Navbar-3Cn9PFp9.js","./runtime-dom.esm-bundler-CEsf3eAe.js","./vue-router-CA-EVYVL.js","./Navbar-D8ux538U.css","./SelectTabs-BVqh8LZU.js","./import-C7KwSxxY.js","./issue-BSGRP6QK.js","./issue-BHrGN1_d.css","./server-router-C8joyG3R.js","./server-router-B1AB70as.css"])))=>i.map(i=>d[i]);
2
+ import { C as nextTick, Ct as normalizeStyle, D as popScopeId, E as openBlock, M as resolveComponent, S as mergeProps, St as normalizeProps, V as withScopeId, Y as ref, a as Suspense, c as createBaseVNode, d as createElementBlock, g as defineComponent, h as createVNode, j as renderSlot, k as pushScopeId, l as createBlock, m as createTextVNode, r as Fragment, u as createCommentVNode, v as guardReactiveProps, wt as toDisplayString, xt as normalizeClass, y as h$2, z as withCtx } from "./runtime-core.esm-bundler-CsZVtwV7.js";
3
+ import { c as withKeys, n as createApp } from "./runtime-dom.esm-bundler-CEsf3eAe.js";
4
+ import { n as createRouter, r as createWebHashHistory } from "./vue-router-CA-EVYVL.js";
5
+ import { t as __vitePreload } from "./preload-helper-DwCkpwrd.js";
6
+ //#region \0vite/modulepreload-polyfill.js
7
+ (function polyfill() {
8
+ const relList = document.createElement("link").relList;
9
+ if (relList && relList.supports && relList.supports("modulepreload")) return;
10
+ for (const link of document.querySelectorAll("link[rel=\"modulepreload\"]")) processPreload(link);
11
+ new MutationObserver((mutations) => {
12
+ for (const mutation of mutations) {
13
+ if (mutation.type !== "childList") continue;
14
+ for (const node of mutation.addedNodes) if (node.tagName === "LINK" && node.rel === "modulepreload") processPreload(node);
15
+ }
16
+ }).observe(document, {
17
+ childList: true,
18
+ subtree: true
19
+ });
20
+ function getFetchOpts(link) {
21
+ const fetchOpts = {};
22
+ if (link.integrity) fetchOpts.integrity = link.integrity;
23
+ if (link.referrerPolicy) fetchOpts.referrerPolicy = link.referrerPolicy;
24
+ if (link.crossOrigin === "use-credentials") fetchOpts.credentials = "include";
25
+ else if (link.crossOrigin === "anonymous") fetchOpts.credentials = "omit";
26
+ else fetchOpts.credentials = "same-origin";
27
+ return fetchOpts;
28
+ }
29
+ function processPreload(link) {
30
+ if (link.ep) return;
31
+ link.ep = true;
32
+ const fetchOpts = getFetchOpts(link);
33
+ fetch(link.href, fetchOpts);
34
+ }
35
+ })();
36
+ //#endregion
37
+ //#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
38
+ /**
39
+ * Custom positioning reference element.
40
+ * @see https://floating-ui.com/docs/virtual-elements
41
+ */
42
+ var sides = [
43
+ "top",
44
+ "right",
45
+ "bottom",
46
+ "left"
47
+ ];
48
+ var alignments = ["start", "end"];
49
+ var placements = /* @__PURE__ */ sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
50
+ var min = Math.min;
51
+ var max = Math.max;
52
+ var oppositeSideMap = {
53
+ left: "right",
54
+ right: "left",
55
+ bottom: "top",
56
+ top: "bottom"
57
+ };
58
+ var oppositeAlignmentMap = {
59
+ start: "end",
60
+ end: "start"
61
+ };
62
+ function clamp(start, value, end) {
63
+ return max(start, min(value, end));
64
+ }
65
+ function evaluate(value, param) {
66
+ return typeof value === "function" ? value(param) : value;
67
+ }
68
+ function getSide(placement) {
69
+ return placement.split("-")[0];
70
+ }
71
+ function getAlignment(placement) {
72
+ return placement.split("-")[1];
73
+ }
74
+ function getOppositeAxis(axis) {
75
+ return axis === "x" ? "y" : "x";
76
+ }
77
+ function getAxisLength(axis) {
78
+ return axis === "y" ? "height" : "width";
79
+ }
80
+ var yAxisSides = /* @__PURE__ */ new Set(["top", "bottom"]);
81
+ function getSideAxis(placement) {
82
+ return yAxisSides.has(getSide(placement)) ? "y" : "x";
83
+ }
84
+ function getAlignmentAxis(placement) {
85
+ return getOppositeAxis(getSideAxis(placement));
86
+ }
87
+ function getAlignmentSides(placement, rects, rtl) {
88
+ if (rtl === void 0) rtl = false;
89
+ const alignment = getAlignment(placement);
90
+ const alignmentAxis = getAlignmentAxis(placement);
91
+ const length = getAxisLength(alignmentAxis);
92
+ let mainAlignmentSide = alignmentAxis === "x" ? alignment === (rtl ? "end" : "start") ? "right" : "left" : alignment === "start" ? "bottom" : "top";
93
+ if (rects.reference[length] > rects.floating[length]) mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
94
+ return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
95
+ }
96
+ function getExpandedPlacements(placement) {
97
+ const oppositePlacement = getOppositePlacement(placement);
98
+ return [
99
+ getOppositeAlignmentPlacement(placement),
100
+ oppositePlacement,
101
+ getOppositeAlignmentPlacement(oppositePlacement)
102
+ ];
103
+ }
104
+ function getOppositeAlignmentPlacement(placement) {
105
+ return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);
106
+ }
107
+ var lrPlacement = ["left", "right"];
108
+ var rlPlacement = ["right", "left"];
109
+ var tbPlacement = ["top", "bottom"];
110
+ var btPlacement = ["bottom", "top"];
111
+ function getSideList(side, isStart, rtl) {
112
+ switch (side) {
113
+ case "top":
114
+ case "bottom":
115
+ if (rtl) return isStart ? rlPlacement : lrPlacement;
116
+ return isStart ? lrPlacement : rlPlacement;
117
+ case "left":
118
+ case "right": return isStart ? tbPlacement : btPlacement;
119
+ default: return [];
120
+ }
121
+ }
122
+ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
123
+ const alignment = getAlignment(placement);
124
+ let list = getSideList(getSide(placement), direction === "start", rtl);
125
+ if (alignment) {
126
+ list = list.map((side) => side + "-" + alignment);
127
+ if (flipAlignment) list = list.concat(list.map(getOppositeAlignmentPlacement));
128
+ }
129
+ return list;
130
+ }
131
+ function getOppositePlacement(placement) {
132
+ return placement.replace(/left|right|bottom|top/g, (side) => oppositeSideMap[side]);
133
+ }
134
+ function expandPaddingObject(padding) {
135
+ return {
136
+ top: 0,
137
+ right: 0,
138
+ bottom: 0,
139
+ left: 0,
140
+ ...padding
141
+ };
142
+ }
143
+ function getPaddingObject(padding) {
144
+ return typeof padding !== "number" ? expandPaddingObject(padding) : {
145
+ top: padding,
146
+ right: padding,
147
+ bottom: padding,
148
+ left: padding
149
+ };
150
+ }
151
+ function rectToClientRect(rect) {
152
+ const { x, y, width, height } = rect;
153
+ return {
154
+ width,
155
+ height,
156
+ top: y,
157
+ left: x,
158
+ right: x + width,
159
+ bottom: y + height,
160
+ x,
161
+ y
162
+ };
163
+ }
164
+ //#endregion
165
+ //#region ../../node_modules/.pnpm/@floating-ui+core@1.7.2/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
166
+ function computeCoordsFromPlacement(_ref, placement, rtl) {
167
+ let { reference, floating } = _ref;
168
+ const sideAxis = getSideAxis(placement);
169
+ const alignmentAxis = getAlignmentAxis(placement);
170
+ const alignLength = getAxisLength(alignmentAxis);
171
+ const side = getSide(placement);
172
+ const isVertical = sideAxis === "y";
173
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
174
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
175
+ const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
176
+ let coords;
177
+ switch (side) {
178
+ case "top":
179
+ coords = {
180
+ x: commonX,
181
+ y: reference.y - floating.height
182
+ };
183
+ break;
184
+ case "bottom":
185
+ coords = {
186
+ x: commonX,
187
+ y: reference.y + reference.height
188
+ };
189
+ break;
190
+ case "right":
191
+ coords = {
192
+ x: reference.x + reference.width,
193
+ y: commonY
194
+ };
195
+ break;
196
+ case "left":
197
+ coords = {
198
+ x: reference.x - floating.width,
199
+ y: commonY
200
+ };
201
+ break;
202
+ default: coords = {
203
+ x: reference.x,
204
+ y: reference.y
205
+ };
206
+ }
207
+ switch (getAlignment(placement)) {
208
+ case "start":
209
+ coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
210
+ break;
211
+ case "end":
212
+ coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
213
+ break;
214
+ }
215
+ return coords;
216
+ }
217
+ /**
218
+ * Computes the `x` and `y` coordinates that will place the floating element
219
+ * next to a given reference element.
220
+ *
221
+ * This export does not have any `platform` interface logic. You will need to
222
+ * write one for the platform you are using Floating UI with.
223
+ */
224
+ var computePosition = async (reference, floating, config) => {
225
+ const { placement = "bottom", strategy = "absolute", middleware = [], platform } = config;
226
+ const validMiddleware = middleware.filter(Boolean);
227
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
228
+ let rects = await platform.getElementRects({
229
+ reference,
230
+ floating,
231
+ strategy
232
+ });
233
+ let { x, y } = computeCoordsFromPlacement(rects, placement, rtl);
234
+ let statefulPlacement = placement;
235
+ let middlewareData = {};
236
+ let resetCount = 0;
237
+ for (let i = 0; i < validMiddleware.length; i++) {
238
+ const { name, fn } = validMiddleware[i];
239
+ const { x: nextX, y: nextY, data, reset } = await fn({
240
+ x,
241
+ y,
242
+ initialPlacement: placement,
243
+ placement: statefulPlacement,
244
+ strategy,
245
+ middlewareData,
246
+ rects,
247
+ platform,
248
+ elements: {
249
+ reference,
250
+ floating
251
+ }
252
+ });
253
+ x = nextX != null ? nextX : x;
254
+ y = nextY != null ? nextY : y;
255
+ middlewareData = {
256
+ ...middlewareData,
257
+ [name]: {
258
+ ...middlewareData[name],
259
+ ...data
260
+ }
261
+ };
262
+ if (reset && resetCount <= 50) {
263
+ resetCount++;
264
+ if (typeof reset === "object") {
265
+ if (reset.placement) statefulPlacement = reset.placement;
266
+ if (reset.rects) rects = reset.rects === true ? await platform.getElementRects({
267
+ reference,
268
+ floating,
269
+ strategy
270
+ }) : reset.rects;
271
+ ({x, y} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
272
+ }
273
+ i = -1;
274
+ }
275
+ }
276
+ return {
277
+ x,
278
+ y,
279
+ placement: statefulPlacement,
280
+ strategy,
281
+ middlewareData
282
+ };
283
+ };
284
+ /**
285
+ * Resolves with an object of overflow side offsets that determine how much the
286
+ * element is overflowing a given clipping boundary on each side.
287
+ * - positive = overflowing the boundary by that number of pixels
288
+ * - negative = how many pixels left before it will overflow
289
+ * - 0 = lies flush with the boundary
290
+ * @see https://floating-ui.com/docs/detectOverflow
291
+ */
292
+ async function detectOverflow(state, options) {
293
+ var _await$platform$isEle;
294
+ if (options === void 0) options = {};
295
+ const { x, y, platform, rects, elements, strategy } = state;
296
+ const { boundary = "clippingAncestors", rootBoundary = "viewport", elementContext = "floating", altBoundary = false, padding = 0 } = evaluate(options, state);
297
+ const paddingObject = getPaddingObject(padding);
298
+ const element = elements[altBoundary ? elementContext === "floating" ? "reference" : "floating" : elementContext];
299
+ const clippingClientRect = rectToClientRect(await platform.getClippingRect({
300
+ element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating)),
301
+ boundary,
302
+ rootBoundary,
303
+ strategy
304
+ }));
305
+ const rect = elementContext === "floating" ? {
306
+ x,
307
+ y,
308
+ width: rects.floating.width,
309
+ height: rects.floating.height
310
+ } : rects.reference;
311
+ const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
312
+ const offsetScale = await (platform.isElement == null ? void 0 : platform.isElement(offsetParent)) ? await (platform.getScale == null ? void 0 : platform.getScale(offsetParent)) || {
313
+ x: 1,
314
+ y: 1
315
+ } : {
316
+ x: 1,
317
+ y: 1
318
+ };
319
+ const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
320
+ elements,
321
+ rect,
322
+ offsetParent,
323
+ strategy
324
+ }) : rect);
325
+ return {
326
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
327
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
328
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
329
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
330
+ };
331
+ }
332
+ /**
333
+ * Provides data to position an inner element of the floating element so that it
334
+ * appears centered to the reference element.
335
+ * @see https://floating-ui.com/docs/arrow
336
+ */
337
+ var arrow = (options) => ({
338
+ name: "arrow",
339
+ options,
340
+ async fn(state) {
341
+ const { x, y, placement, rects, platform, elements, middlewareData } = state;
342
+ const { element, padding = 0 } = evaluate(options, state) || {};
343
+ if (element == null) return {};
344
+ const paddingObject = getPaddingObject(padding);
345
+ const coords = {
346
+ x,
347
+ y
348
+ };
349
+ const axis = getAlignmentAxis(placement);
350
+ const length = getAxisLength(axis);
351
+ const arrowDimensions = await platform.getDimensions(element);
352
+ const isYAxis = axis === "y";
353
+ const minProp = isYAxis ? "top" : "left";
354
+ const maxProp = isYAxis ? "bottom" : "right";
355
+ const clientProp = isYAxis ? "clientHeight" : "clientWidth";
356
+ const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
357
+ const startDiff = coords[axis] - rects.reference[axis];
358
+ const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
359
+ let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
360
+ if (!clientSize || !await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent))) clientSize = elements.floating[clientProp] || rects.floating[length];
361
+ const centerToReference = endDiff / 2 - startDiff / 2;
362
+ const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
363
+ const minPadding = min(paddingObject[minProp], largestPossiblePadding);
364
+ const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
365
+ const min$1 = minPadding;
366
+ const max = clientSize - arrowDimensions[length] - maxPadding;
367
+ const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
368
+ const offset = clamp(min$1, center, max);
369
+ const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
370
+ const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
371
+ return {
372
+ [axis]: coords[axis] + alignmentOffset,
373
+ data: {
374
+ [axis]: offset,
375
+ centerOffset: center - offset - alignmentOffset,
376
+ ...shouldAddOffset && { alignmentOffset }
377
+ },
378
+ reset: shouldAddOffset
379
+ };
380
+ }
381
+ });
382
+ function getPlacementList(alignment, autoAlignment, allowedPlacements) {
383
+ return (alignment ? [...allowedPlacements.filter((placement) => getAlignment(placement) === alignment), ...allowedPlacements.filter((placement) => getAlignment(placement) !== alignment)] : allowedPlacements.filter((placement) => getSide(placement) === placement)).filter((placement) => {
384
+ if (alignment) return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
385
+ return true;
386
+ });
387
+ }
388
+ /**
389
+ * Optimizes the visibility of the floating element by choosing the placement
390
+ * that has the most space available automatically, without needing to specify a
391
+ * preferred placement. Alternative to `flip`.
392
+ * @see https://floating-ui.com/docs/autoPlacement
393
+ */
394
+ var autoPlacement = function(options) {
395
+ if (options === void 0) options = {};
396
+ return {
397
+ name: "autoPlacement",
398
+ options,
399
+ async fn(state) {
400
+ var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
401
+ const { rects, middlewareData, placement, platform, elements } = state;
402
+ const { crossAxis = false, alignment, allowedPlacements = placements, autoAlignment = true, ...detectOverflowOptions } = evaluate(options, state);
403
+ const placements$1 = alignment !== void 0 || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
404
+ const overflow = await detectOverflow(state, detectOverflowOptions);
405
+ const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
406
+ const currentPlacement = placements$1[currentIndex];
407
+ if (currentPlacement == null) return {};
408
+ const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
409
+ if (placement !== currentPlacement) return { reset: { placement: placements$1[0] } };
410
+ const currentOverflows = [
411
+ overflow[getSide(currentPlacement)],
412
+ overflow[alignmentSides[0]],
413
+ overflow[alignmentSides[1]]
414
+ ];
415
+ const allOverflows = [...((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || [], {
416
+ placement: currentPlacement,
417
+ overflows: currentOverflows
418
+ }];
419
+ const nextPlacement = placements$1[currentIndex + 1];
420
+ if (nextPlacement) return {
421
+ data: {
422
+ index: currentIndex + 1,
423
+ overflows: allOverflows
424
+ },
425
+ reset: { placement: nextPlacement }
426
+ };
427
+ const placementsSortedByMostSpace = allOverflows.map((d) => {
428
+ const alignment = getAlignment(d.placement);
429
+ return [
430
+ d.placement,
431
+ alignment && crossAxis ? d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) : d.overflows[0],
432
+ d.overflows
433
+ ];
434
+ }).sort((a, b) => a[1] - b[1]);
435
+ const resetPlacement = ((_placementsThatFitOnE = placementsSortedByMostSpace.filter((d) => d[2].slice(0, getAlignment(d[0]) ? 2 : 3).every((v) => v <= 0))[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
436
+ if (resetPlacement !== placement) return {
437
+ data: {
438
+ index: currentIndex + 1,
439
+ overflows: allOverflows
440
+ },
441
+ reset: { placement: resetPlacement }
442
+ };
443
+ return {};
444
+ }
445
+ };
446
+ };
447
+ /**
448
+ * Optimizes the visibility of the floating element by flipping the `placement`
449
+ * in order to keep it in view when the preferred placement(s) will overflow the
450
+ * clipping boundary. Alternative to `autoPlacement`.
451
+ * @see https://floating-ui.com/docs/flip
452
+ */
453
+ var flip = function(options) {
454
+ if (options === void 0) options = {};
455
+ return {
456
+ name: "flip",
457
+ options,
458
+ async fn(state) {
459
+ var _middlewareData$arrow, _middlewareData$flip;
460
+ const { placement, middlewareData, rects, initialPlacement, platform, elements } = state;
461
+ const { mainAxis: checkMainAxis = true, crossAxis: checkCrossAxis = true, fallbackPlacements: specifiedFallbackPlacements, fallbackStrategy = "bestFit", fallbackAxisSideDirection = "none", flipAlignment = true, ...detectOverflowOptions } = evaluate(options, state);
462
+ if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) return {};
463
+ const side = getSide(placement);
464
+ const initialSideAxis = getSideAxis(initialPlacement);
465
+ const isBasePlacement = getSide(initialPlacement) === initialPlacement;
466
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
467
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
468
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== "none";
469
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
470
+ const placements = [initialPlacement, ...fallbackPlacements];
471
+ const overflow = await detectOverflow(state, detectOverflowOptions);
472
+ const overflows = [];
473
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
474
+ if (checkMainAxis) overflows.push(overflow[side]);
475
+ if (checkCrossAxis) {
476
+ const sides = getAlignmentSides(placement, rects, rtl);
477
+ overflows.push(overflow[sides[0]], overflow[sides[1]]);
478
+ }
479
+ overflowsData = [...overflowsData, {
480
+ placement,
481
+ overflows
482
+ }];
483
+ if (!overflows.every((side) => side <= 0)) {
484
+ var _middlewareData$flip2, _overflowsData$filter;
485
+ const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
486
+ const nextPlacement = placements[nextIndex];
487
+ if (nextPlacement) {
488
+ if (!(checkCrossAxis === "alignment" ? initialSideAxis !== getSideAxis(nextPlacement) : false) || overflowsData.every((d) => d.overflows[0] > 0 && getSideAxis(d.placement) === initialSideAxis)) return {
489
+ data: {
490
+ index: nextIndex,
491
+ overflows: overflowsData
492
+ },
493
+ reset: { placement: nextPlacement }
494
+ };
495
+ }
496
+ let resetPlacement = (_overflowsData$filter = overflowsData.filter((d) => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
497
+ if (!resetPlacement) switch (fallbackStrategy) {
498
+ case "bestFit": {
499
+ var _overflowsData$filter2;
500
+ const placement = (_overflowsData$filter2 = overflowsData.filter((d) => {
501
+ if (hasFallbackAxisSideDirection) {
502
+ const currentSideAxis = getSideAxis(d.placement);
503
+ return currentSideAxis === initialSideAxis || currentSideAxis === "y";
504
+ }
505
+ return true;
506
+ }).map((d) => [d.placement, d.overflows.filter((overflow) => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
507
+ if (placement) resetPlacement = placement;
508
+ break;
509
+ }
510
+ case "initialPlacement":
511
+ resetPlacement = initialPlacement;
512
+ break;
513
+ }
514
+ if (placement !== resetPlacement) return { reset: { placement: resetPlacement } };
515
+ }
516
+ return {};
517
+ }
518
+ };
519
+ };
520
+ var originSides = /* @__PURE__ */ new Set(["left", "top"]);
521
+ async function convertValueToCoords(state, options) {
522
+ const { placement, platform, elements } = state;
523
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
524
+ const side = getSide(placement);
525
+ const alignment = getAlignment(placement);
526
+ const isVertical = getSideAxis(placement) === "y";
527
+ const mainAxisMulti = originSides.has(side) ? -1 : 1;
528
+ const crossAxisMulti = rtl && isVertical ? -1 : 1;
529
+ const rawValue = evaluate(options, state);
530
+ let { mainAxis, crossAxis, alignmentAxis } = typeof rawValue === "number" ? {
531
+ mainAxis: rawValue,
532
+ crossAxis: 0,
533
+ alignmentAxis: null
534
+ } : {
535
+ mainAxis: rawValue.mainAxis || 0,
536
+ crossAxis: rawValue.crossAxis || 0,
537
+ alignmentAxis: rawValue.alignmentAxis
538
+ };
539
+ if (alignment && typeof alignmentAxis === "number") crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
540
+ return isVertical ? {
541
+ x: crossAxis * crossAxisMulti,
542
+ y: mainAxis * mainAxisMulti
543
+ } : {
544
+ x: mainAxis * mainAxisMulti,
545
+ y: crossAxis * crossAxisMulti
546
+ };
547
+ }
548
+ /**
549
+ * Modifies the placement by translating the floating element along the
550
+ * specified axes.
551
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
552
+ * object may be passed.
553
+ * @see https://floating-ui.com/docs/offset
554
+ */
555
+ var offset = function(options) {
556
+ if (options === void 0) options = 0;
557
+ return {
558
+ name: "offset",
559
+ options,
560
+ async fn(state) {
561
+ var _middlewareData$offse, _middlewareData$arrow;
562
+ const { x, y, placement, middlewareData } = state;
563
+ const diffCoords = await convertValueToCoords(state, options);
564
+ if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) return {};
565
+ return {
566
+ x: x + diffCoords.x,
567
+ y: y + diffCoords.y,
568
+ data: {
569
+ ...diffCoords,
570
+ placement
571
+ }
572
+ };
573
+ }
574
+ };
575
+ };
576
+ /**
577
+ * Optimizes the visibility of the floating element by shifting it in order to
578
+ * keep it in view when it will overflow the clipping boundary.
579
+ * @see https://floating-ui.com/docs/shift
580
+ */
581
+ var shift = function(options) {
582
+ if (options === void 0) options = {};
583
+ return {
584
+ name: "shift",
585
+ options,
586
+ async fn(state) {
587
+ const { x, y, placement } = state;
588
+ const { mainAxis: checkMainAxis = true, crossAxis: checkCrossAxis = false, limiter = { fn: (_ref) => {
589
+ let { x, y } = _ref;
590
+ return {
591
+ x,
592
+ y
593
+ };
594
+ } }, ...detectOverflowOptions } = evaluate(options, state);
595
+ const coords = {
596
+ x,
597
+ y
598
+ };
599
+ const overflow = await detectOverflow(state, detectOverflowOptions);
600
+ const crossAxis = getSideAxis(getSide(placement));
601
+ const mainAxis = getOppositeAxis(crossAxis);
602
+ let mainAxisCoord = coords[mainAxis];
603
+ let crossAxisCoord = coords[crossAxis];
604
+ if (checkMainAxis) {
605
+ const minSide = mainAxis === "y" ? "top" : "left";
606
+ const maxSide = mainAxis === "y" ? "bottom" : "right";
607
+ const min = mainAxisCoord + overflow[minSide];
608
+ const max = mainAxisCoord - overflow[maxSide];
609
+ mainAxisCoord = clamp(min, mainAxisCoord, max);
610
+ }
611
+ if (checkCrossAxis) {
612
+ const minSide = crossAxis === "y" ? "top" : "left";
613
+ const maxSide = crossAxis === "y" ? "bottom" : "right";
614
+ const min = crossAxisCoord + overflow[minSide];
615
+ const max = crossAxisCoord - overflow[maxSide];
616
+ crossAxisCoord = clamp(min, crossAxisCoord, max);
617
+ }
618
+ const limitedCoords = limiter.fn({
619
+ ...state,
620
+ [mainAxis]: mainAxisCoord,
621
+ [crossAxis]: crossAxisCoord
622
+ });
623
+ return {
624
+ ...limitedCoords,
625
+ data: {
626
+ x: limitedCoords.x - x,
627
+ y: limitedCoords.y - y,
628
+ enabled: {
629
+ [mainAxis]: checkMainAxis,
630
+ [crossAxis]: checkCrossAxis
631
+ }
632
+ }
633
+ };
634
+ }
635
+ };
636
+ };
637
+ /**
638
+ * Provides data that allows you to change the size of the floating element —
639
+ * for instance, prevent it from overflowing the clipping boundary or match the
640
+ * width of the reference element.
641
+ * @see https://floating-ui.com/docs/size
642
+ */
643
+ var size = function(options) {
644
+ if (options === void 0) options = {};
645
+ return {
646
+ name: "size",
647
+ options,
648
+ async fn(state) {
649
+ var _state$middlewareData, _state$middlewareData2;
650
+ const { placement, rects, platform, elements } = state;
651
+ const { apply = () => {}, ...detectOverflowOptions } = evaluate(options, state);
652
+ const overflow = await detectOverflow(state, detectOverflowOptions);
653
+ const side = getSide(placement);
654
+ const alignment = getAlignment(placement);
655
+ const isYAxis = getSideAxis(placement) === "y";
656
+ const { width, height } = rects.floating;
657
+ let heightSide;
658
+ let widthSide;
659
+ if (side === "top" || side === "bottom") {
660
+ heightSide = side;
661
+ widthSide = alignment === (await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)) ? "start" : "end") ? "left" : "right";
662
+ } else {
663
+ widthSide = side;
664
+ heightSide = alignment === "end" ? "top" : "bottom";
665
+ }
666
+ const maximumClippingHeight = height - overflow.top - overflow.bottom;
667
+ const maximumClippingWidth = width - overflow.left - overflow.right;
668
+ const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
669
+ const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
670
+ const noShift = !state.middlewareData.shift;
671
+ let availableHeight = overflowAvailableHeight;
672
+ let availableWidth = overflowAvailableWidth;
673
+ if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) availableWidth = maximumClippingWidth;
674
+ if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) availableHeight = maximumClippingHeight;
675
+ if (noShift && !alignment) {
676
+ const xMin = max(overflow.left, 0);
677
+ const xMax = max(overflow.right, 0);
678
+ const yMin = max(overflow.top, 0);
679
+ const yMax = max(overflow.bottom, 0);
680
+ if (isYAxis) availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
681
+ else availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
682
+ }
683
+ await apply({
684
+ ...state,
685
+ availableWidth,
686
+ availableHeight
687
+ });
688
+ const nextDimensions = await platform.getDimensions(elements.floating);
689
+ if (width !== nextDimensions.width || height !== nextDimensions.height) return { reset: { rects: true } };
690
+ return {};
691
+ }
692
+ };
693
+ };
694
+ //#endregion
695
+ //#region ../../node_modules/.pnpm/@floating-ui+dom@1.1.1/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs
696
+ function n$1(t) {
697
+ var e;
698
+ return (null == (e = t.ownerDocument) ? void 0 : e.defaultView) || window;
699
+ }
700
+ function o(t) {
701
+ return n$1(t).getComputedStyle(t);
702
+ }
703
+ var i = Math.min, r = Math.max, l = Math.round;
704
+ function c$1(t) {
705
+ const e = o(t);
706
+ let n = parseFloat(e.width), i = parseFloat(e.height);
707
+ const r = t.offsetWidth, c = t.offsetHeight, s = l(n) !== r || l(i) !== c;
708
+ return s && (n = r, i = c), {
709
+ width: n,
710
+ height: i,
711
+ fallback: s
712
+ };
713
+ }
714
+ function s(t) {
715
+ return h$1(t) ? (t.nodeName || "").toLowerCase() : "";
716
+ }
717
+ var f;
718
+ function u() {
719
+ if (f) return f;
720
+ const t = navigator.userAgentData;
721
+ return t && Array.isArray(t.brands) ? (f = t.brands.map(((t) => t.brand + "/" + t.version)).join(" "), f) : navigator.userAgent;
722
+ }
723
+ function a(t) {
724
+ return t instanceof n$1(t).HTMLElement;
725
+ }
726
+ function d$1(t) {
727
+ return t instanceof n$1(t).Element;
728
+ }
729
+ function h$1(t) {
730
+ return t instanceof n$1(t).Node;
731
+ }
732
+ function p(t) {
733
+ if ("undefined" == typeof ShadowRoot) return !1;
734
+ return t instanceof n$1(t).ShadowRoot || t instanceof ShadowRoot;
735
+ }
736
+ function g$1(t) {
737
+ const { overflow: e, overflowX: n, overflowY: i, display: r } = o(t);
738
+ return /auto|scroll|overlay|hidden|clip/.test(e + i + n) && !["inline", "contents"].includes(r);
739
+ }
740
+ function m$1(t) {
741
+ return [
742
+ "table",
743
+ "td",
744
+ "th"
745
+ ].includes(s(t));
746
+ }
747
+ function y$1(t) {
748
+ const e = /firefox/i.test(u()), n = o(t), i = n.backdropFilter || n.WebkitBackdropFilter;
749
+ return "none" !== n.transform || "none" !== n.perspective || !!i && "none" !== i || e && "filter" === n.willChange || e && !!n.filter && "none" !== n.filter || ["transform", "perspective"].some(((t) => n.willChange.includes(t))) || [
750
+ "paint",
751
+ "layout",
752
+ "strict",
753
+ "content"
754
+ ].some(((t) => {
755
+ const e = n.contain;
756
+ return null != e && e.includes(t);
757
+ }));
758
+ }
759
+ function x$1() {
760
+ return !/^((?!chrome|android).)*safari/i.test(u());
761
+ }
762
+ function w(t) {
763
+ return [
764
+ "html",
765
+ "body",
766
+ "#document"
767
+ ].includes(s(t));
768
+ }
769
+ function v(t) {
770
+ return d$1(t) ? t : t.contextElement;
771
+ }
772
+ var b$1 = {
773
+ x: 1,
774
+ y: 1
775
+ };
776
+ function L(t) {
777
+ const e = v(t);
778
+ if (!a(e)) return b$1;
779
+ const n = e.getBoundingClientRect(), { width: o, height: i, fallback: r } = c$1(e);
780
+ let s = (r ? l(n.width) : n.width) / o, f = (r ? l(n.height) : n.height) / i;
781
+ return s && Number.isFinite(s) || (s = 1), f && Number.isFinite(f) || (f = 1), {
782
+ x: s,
783
+ y: f
784
+ };
785
+ }
786
+ function E$1(t, e, o, i) {
787
+ var r, l;
788
+ void 0 === e && (e = !1), void 0 === o && (o = !1);
789
+ const c = t.getBoundingClientRect(), s = v(t);
790
+ let f = b$1;
791
+ e && (i ? d$1(i) && (f = L(i)) : f = L(t));
792
+ const u = s ? n$1(s) : window, a = !x$1() && o;
793
+ let h = (c.left + (a && (null == (r = u.visualViewport) ? void 0 : r.offsetLeft) || 0)) / f.x, p = (c.top + (a && (null == (l = u.visualViewport) ? void 0 : l.offsetTop) || 0)) / f.y, g = c.width / f.x, m = c.height / f.y;
794
+ if (s) {
795
+ const t = n$1(s), e = i && d$1(i) ? n$1(i) : i;
796
+ let o = t.frameElement;
797
+ for (; o && i && e !== t;) {
798
+ const t = L(o), e = o.getBoundingClientRect(), i = getComputedStyle(o);
799
+ e.x += (o.clientLeft + parseFloat(i.paddingLeft)) * t.x, e.y += (o.clientTop + parseFloat(i.paddingTop)) * t.y, h *= t.x, p *= t.y, g *= t.x, m *= t.y, h += e.x, p += e.y, o = n$1(o).frameElement;
800
+ }
801
+ }
802
+ return {
803
+ width: g,
804
+ height: m,
805
+ top: p,
806
+ right: h + g,
807
+ bottom: p + m,
808
+ left: h,
809
+ x: h,
810
+ y: p
811
+ };
812
+ }
813
+ function R(t) {
814
+ return ((h$1(t) ? t.ownerDocument : t.document) || window.document).documentElement;
815
+ }
816
+ function T(t) {
817
+ return d$1(t) ? {
818
+ scrollLeft: t.scrollLeft,
819
+ scrollTop: t.scrollTop
820
+ } : {
821
+ scrollLeft: t.pageXOffset,
822
+ scrollTop: t.pageYOffset
823
+ };
824
+ }
825
+ function C$1(t) {
826
+ return E$1(R(t)).left + T(t).scrollLeft;
827
+ }
828
+ function F(t) {
829
+ if ("html" === s(t)) return t;
830
+ const e = t.assignedSlot || t.parentNode || p(t) && t.host || R(t);
831
+ return p(e) ? e.host : e;
832
+ }
833
+ function W(t) {
834
+ const e = F(t);
835
+ return w(e) ? e.ownerDocument.body : a(e) && g$1(e) ? e : W(e);
836
+ }
837
+ function D(t, e) {
838
+ var o;
839
+ void 0 === e && (e = []);
840
+ const i = W(t), r = i === (null == (o = t.ownerDocument) ? void 0 : o.body), l = n$1(i);
841
+ return r ? e.concat(l, l.visualViewport || [], g$1(i) ? i : []) : e.concat(i, D(i));
842
+ }
843
+ function S$1(e, i, l) {
844
+ return "viewport" === i ? rectToClientRect(function(t, e) {
845
+ const o = n$1(t), i = R(t), r = o.visualViewport;
846
+ let l = i.clientWidth, c = i.clientHeight, s = 0, f = 0;
847
+ if (r) {
848
+ l = r.width, c = r.height;
849
+ const t = x$1();
850
+ (t || !t && "fixed" === e) && (s = r.offsetLeft, f = r.offsetTop);
851
+ }
852
+ return {
853
+ width: l,
854
+ height: c,
855
+ x: s,
856
+ y: f
857
+ };
858
+ }(e, l)) : d$1(i) ? rectToClientRect(function(t, e) {
859
+ const n = E$1(t, !0, "fixed" === e), o = n.top + t.clientTop, i = n.left + t.clientLeft, r = a(t) ? L(t) : {
860
+ x: 1,
861
+ y: 1
862
+ };
863
+ return {
864
+ width: t.clientWidth * r.x,
865
+ height: t.clientHeight * r.y,
866
+ x: i * r.x,
867
+ y: o * r.y
868
+ };
869
+ }(i, l)) : rectToClientRect(function(t) {
870
+ const e = R(t), n = T(t), i = t.ownerDocument.body, l = r(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), c = r(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
871
+ let s = -n.scrollLeft + C$1(t);
872
+ const f = -n.scrollTop;
873
+ return "rtl" === o(i).direction && (s += r(e.clientWidth, i.clientWidth) - l), {
874
+ width: l,
875
+ height: c,
876
+ x: s,
877
+ y: f
878
+ };
879
+ }(R(e)));
880
+ }
881
+ function A(t) {
882
+ return a(t) && "fixed" !== o(t).position ? t.offsetParent : null;
883
+ }
884
+ function H$1(t) {
885
+ const e = n$1(t);
886
+ let i = A(t);
887
+ for (; i && m$1(i) && "static" === o(i).position;) i = A(i);
888
+ return i && ("html" === s(i) || "body" === s(i) && "static" === o(i).position && !y$1(i)) ? e : i || function(t) {
889
+ let e = F(t);
890
+ for (; a(e) && !w(e);) {
891
+ if (y$1(e)) return e;
892
+ e = F(e);
893
+ }
894
+ return null;
895
+ }(t) || e;
896
+ }
897
+ function O(t, e, n) {
898
+ const o = a(e), i = R(e), r = E$1(t, !0, "fixed" === n, e);
899
+ let l = {
900
+ scrollLeft: 0,
901
+ scrollTop: 0
902
+ };
903
+ const c = {
904
+ x: 0,
905
+ y: 0
906
+ };
907
+ if (o || !o && "fixed" !== n) if (("body" !== s(e) || g$1(i)) && (l = T(e)), a(e)) {
908
+ const t = E$1(e, !0);
909
+ c.x = t.x + e.clientLeft, c.y = t.y + e.clientTop;
910
+ } else i && (c.x = C$1(i));
911
+ return {
912
+ x: r.left + l.scrollLeft - c.x,
913
+ y: r.top + l.scrollTop - c.y,
914
+ width: r.width,
915
+ height: r.height
916
+ };
917
+ }
918
+ var P = {
919
+ getClippingRect: function(t) {
920
+ let { element: e, boundary: n, rootBoundary: l, strategy: c } = t;
921
+ const u = [..."clippingAncestors" === n ? function(t, e) {
922
+ const n = e.get(t);
923
+ if (n) return n;
924
+ let i = D(t).filter(((t) => d$1(t) && "body" !== s(t))), r = null;
925
+ const l = "fixed" === o(t).position;
926
+ let c = l ? F(t) : t;
927
+ for (; d$1(c) && !w(c);) {
928
+ const t = o(c), e = y$1(c);
929
+ (l ? e || r : e || "static" !== t.position || !r || !["absolute", "fixed"].includes(r.position)) ? r = t : i = i.filter(((t) => t !== c)), c = F(c);
930
+ }
931
+ return e.set(t, i), i;
932
+ }(e, this._c) : [].concat(n), l], a = u[0], h = u.reduce(((t, n) => {
933
+ const o = S$1(e, n, c);
934
+ return t.top = r(o.top, t.top), t.right = i(o.right, t.right), t.bottom = i(o.bottom, t.bottom), t.left = r(o.left, t.left), t;
935
+ }), S$1(e, a, c));
936
+ return {
937
+ width: h.right - h.left,
938
+ height: h.bottom - h.top,
939
+ x: h.left,
940
+ y: h.top
941
+ };
942
+ },
943
+ convertOffsetParentRelativeRectToViewportRelativeRect: function(t) {
944
+ let { rect: e, offsetParent: n, strategy: o } = t;
945
+ const i = a(n), r = R(n);
946
+ if (n === r) return e;
947
+ let l = {
948
+ scrollLeft: 0,
949
+ scrollTop: 0
950
+ }, c = {
951
+ x: 1,
952
+ y: 1
953
+ };
954
+ const f = {
955
+ x: 0,
956
+ y: 0
957
+ };
958
+ if ((i || !i && "fixed" !== o) && (("body" !== s(n) || g$1(r)) && (l = T(n)), a(n))) {
959
+ const t = E$1(n);
960
+ c = L(n), f.x = t.x + n.clientLeft, f.y = t.y + n.clientTop;
961
+ }
962
+ return {
963
+ width: e.width * c.x,
964
+ height: e.height * c.y,
965
+ x: e.x * c.x - l.scrollLeft * c.x + f.x,
966
+ y: e.y * c.y - l.scrollTop * c.y + f.y
967
+ };
968
+ },
969
+ isElement: d$1,
970
+ getDimensions: function(t) {
971
+ return a(t) ? c$1(t) : t.getBoundingClientRect();
972
+ },
973
+ getOffsetParent: H$1,
974
+ getDocumentElement: R,
975
+ getScale: L,
976
+ async getElementRects(t) {
977
+ let { reference: e, floating: n, strategy: o } = t;
978
+ const i = this.getOffsetParent || H$1, r = this.getDimensions;
979
+ return {
980
+ reference: O(e, await i(n), o),
981
+ floating: {
982
+ x: 0,
983
+ y: 0,
984
+ ...await r(n)
985
+ }
986
+ };
987
+ },
988
+ getClientRects: (t) => Array.from(t.getClientRects()),
989
+ isRTL: (t) => "rtl" === o(t).direction
990
+ };
991
+ var B$1 = (t, n, o) => {
992
+ const i = /* @__PURE__ */ new Map(), r = {
993
+ platform: P,
994
+ ...o
995
+ }, l = {
996
+ ...r.platform,
997
+ _c: i
998
+ };
999
+ return computePosition(t, n, {
1000
+ ...r,
1001
+ platform: l
1002
+ });
1003
+ };
1004
+ //#endregion
1005
+ //#region ../../node_modules/.pnpm/floating-vue@5.2.2_vue@3.5.28_typescript@5.9.3_/node_modules/floating-vue/dist/floating-vue.mjs
1006
+ function ye(e, t) {
1007
+ for (const o in t) Object.prototype.hasOwnProperty.call(t, o) && (typeof t[o] == "object" && e[o] ? ye(e[o], t[o]) : e[o] = t[o]);
1008
+ }
1009
+ var h = {
1010
+ disabled: !1,
1011
+ distance: 5,
1012
+ skidding: 0,
1013
+ container: "body",
1014
+ boundary: void 0,
1015
+ instantMove: !1,
1016
+ disposeTimeout: 150,
1017
+ popperTriggers: [],
1018
+ strategy: "absolute",
1019
+ preventOverflow: !0,
1020
+ flip: !0,
1021
+ shift: !0,
1022
+ overflowPadding: 0,
1023
+ arrowPadding: 0,
1024
+ arrowOverflow: !0,
1025
+ autoHideOnMousedown: !1,
1026
+ themes: {
1027
+ tooltip: {
1028
+ placement: "top",
1029
+ triggers: [
1030
+ "hover",
1031
+ "focus",
1032
+ "touch"
1033
+ ],
1034
+ hideTriggers: (e) => [...e, "click"],
1035
+ delay: {
1036
+ show: 200,
1037
+ hide: 0
1038
+ },
1039
+ handleResize: !1,
1040
+ html: !1,
1041
+ loadingContent: "..."
1042
+ },
1043
+ dropdown: {
1044
+ placement: "bottom",
1045
+ triggers: ["click"],
1046
+ delay: 0,
1047
+ handleResize: !0,
1048
+ autoHide: !0
1049
+ },
1050
+ menu: {
1051
+ $extend: "dropdown",
1052
+ triggers: ["hover", "focus"],
1053
+ popperTriggers: ["hover"],
1054
+ delay: {
1055
+ show: 0,
1056
+ hide: 400
1057
+ }
1058
+ }
1059
+ }
1060
+ };
1061
+ function S(e, t) {
1062
+ let o = h.themes[e] || {}, i;
1063
+ do
1064
+ i = o[t], typeof i > "u" ? o.$extend ? o = h.themes[o.$extend] || {} : (o = null, i = h[t]) : o = null;
1065
+ while (o);
1066
+ return i;
1067
+ }
1068
+ function Ze(e) {
1069
+ const t = [e];
1070
+ let o = h.themes[e] || {};
1071
+ do
1072
+ o.$extend && !o.$resetCss ? (t.push(o.$extend), o = h.themes[o.$extend] || {}) : o = null;
1073
+ while (o);
1074
+ return t.map((i) => `v-popper--theme-${i}`);
1075
+ }
1076
+ function re(e) {
1077
+ const t = [e];
1078
+ let o = h.themes[e] || {};
1079
+ do
1080
+ o.$extend ? (t.push(o.$extend), o = h.themes[o.$extend] || {}) : o = null;
1081
+ while (o);
1082
+ return t;
1083
+ }
1084
+ var $ = !1;
1085
+ if (typeof window < "u") {
1086
+ $ = !1;
1087
+ try {
1088
+ const e = Object.defineProperty({}, "passive", { get() {
1089
+ $ = !0;
1090
+ } });
1091
+ window.addEventListener("test", null, e);
1092
+ } catch {}
1093
+ }
1094
+ var _e = !1;
1095
+ typeof window < "u" && typeof navigator < "u" && (_e = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream);
1096
+ var Te = [
1097
+ "auto",
1098
+ "top",
1099
+ "bottom",
1100
+ "left",
1101
+ "right"
1102
+ ].reduce((e, t) => e.concat([
1103
+ t,
1104
+ `${t}-start`,
1105
+ `${t}-end`
1106
+ ]), []), pe = {
1107
+ hover: "mouseenter",
1108
+ focus: "focus",
1109
+ click: "click",
1110
+ touch: "touchstart",
1111
+ pointer: "pointerdown"
1112
+ }, ae = {
1113
+ hover: "mouseleave",
1114
+ focus: "blur",
1115
+ click: "click",
1116
+ touch: "touchend",
1117
+ pointer: "pointerup"
1118
+ };
1119
+ function de(e, t) {
1120
+ const o = e.indexOf(t);
1121
+ o !== -1 && e.splice(o, 1);
1122
+ }
1123
+ function G() {
1124
+ return new Promise((e) => requestAnimationFrame(() => {
1125
+ requestAnimationFrame(e);
1126
+ }));
1127
+ }
1128
+ var d = [];
1129
+ var g = null;
1130
+ var le = {};
1131
+ function he(e) {
1132
+ let t = le[e];
1133
+ return t || (t = le[e] = []), t;
1134
+ }
1135
+ var Y = function() {};
1136
+ typeof window < "u" && (Y = window.Element);
1137
+ function n(e) {
1138
+ return function(t) {
1139
+ return S(t.theme, e);
1140
+ };
1141
+ }
1142
+ var q = "__floating-vue__popper", Q = () => defineComponent({
1143
+ name: "VPopper",
1144
+ provide() {
1145
+ return { [q]: { parentPopper: this } };
1146
+ },
1147
+ inject: { [q]: { default: null } },
1148
+ props: {
1149
+ theme: {
1150
+ type: String,
1151
+ required: !0
1152
+ },
1153
+ targetNodes: {
1154
+ type: Function,
1155
+ required: !0
1156
+ },
1157
+ referenceNode: {
1158
+ type: Function,
1159
+ default: null
1160
+ },
1161
+ popperNode: {
1162
+ type: Function,
1163
+ required: !0
1164
+ },
1165
+ shown: {
1166
+ type: Boolean,
1167
+ default: !1
1168
+ },
1169
+ showGroup: {
1170
+ type: String,
1171
+ default: null
1172
+ },
1173
+ ariaId: { default: null },
1174
+ disabled: {
1175
+ type: Boolean,
1176
+ default: n("disabled")
1177
+ },
1178
+ positioningDisabled: {
1179
+ type: Boolean,
1180
+ default: n("positioningDisabled")
1181
+ },
1182
+ placement: {
1183
+ type: String,
1184
+ default: n("placement"),
1185
+ validator: (e) => Te.includes(e)
1186
+ },
1187
+ delay: {
1188
+ type: [
1189
+ String,
1190
+ Number,
1191
+ Object
1192
+ ],
1193
+ default: n("delay")
1194
+ },
1195
+ distance: {
1196
+ type: [Number, String],
1197
+ default: n("distance")
1198
+ },
1199
+ skidding: {
1200
+ type: [Number, String],
1201
+ default: n("skidding")
1202
+ },
1203
+ triggers: {
1204
+ type: Array,
1205
+ default: n("triggers")
1206
+ },
1207
+ showTriggers: {
1208
+ type: [Array, Function],
1209
+ default: n("showTriggers")
1210
+ },
1211
+ hideTriggers: {
1212
+ type: [Array, Function],
1213
+ default: n("hideTriggers")
1214
+ },
1215
+ popperTriggers: {
1216
+ type: Array,
1217
+ default: n("popperTriggers")
1218
+ },
1219
+ popperShowTriggers: {
1220
+ type: [Array, Function],
1221
+ default: n("popperShowTriggers")
1222
+ },
1223
+ popperHideTriggers: {
1224
+ type: [Array, Function],
1225
+ default: n("popperHideTriggers")
1226
+ },
1227
+ container: {
1228
+ type: [
1229
+ String,
1230
+ Object,
1231
+ Y,
1232
+ Boolean
1233
+ ],
1234
+ default: n("container")
1235
+ },
1236
+ boundary: {
1237
+ type: [String, Y],
1238
+ default: n("boundary")
1239
+ },
1240
+ strategy: {
1241
+ type: String,
1242
+ validator: (e) => ["absolute", "fixed"].includes(e),
1243
+ default: n("strategy")
1244
+ },
1245
+ autoHide: {
1246
+ type: [Boolean, Function],
1247
+ default: n("autoHide")
1248
+ },
1249
+ handleResize: {
1250
+ type: Boolean,
1251
+ default: n("handleResize")
1252
+ },
1253
+ instantMove: {
1254
+ type: Boolean,
1255
+ default: n("instantMove")
1256
+ },
1257
+ eagerMount: {
1258
+ type: Boolean,
1259
+ default: n("eagerMount")
1260
+ },
1261
+ popperClass: {
1262
+ type: [
1263
+ String,
1264
+ Array,
1265
+ Object
1266
+ ],
1267
+ default: n("popperClass")
1268
+ },
1269
+ computeTransformOrigin: {
1270
+ type: Boolean,
1271
+ default: n("computeTransformOrigin")
1272
+ },
1273
+ autoMinSize: {
1274
+ type: Boolean,
1275
+ default: n("autoMinSize")
1276
+ },
1277
+ autoSize: {
1278
+ type: [Boolean, String],
1279
+ default: n("autoSize")
1280
+ },
1281
+ autoMaxSize: {
1282
+ type: Boolean,
1283
+ default: n("autoMaxSize")
1284
+ },
1285
+ autoBoundaryMaxSize: {
1286
+ type: Boolean,
1287
+ default: n("autoBoundaryMaxSize")
1288
+ },
1289
+ preventOverflow: {
1290
+ type: Boolean,
1291
+ default: n("preventOverflow")
1292
+ },
1293
+ overflowPadding: {
1294
+ type: [Number, String],
1295
+ default: n("overflowPadding")
1296
+ },
1297
+ arrowPadding: {
1298
+ type: [Number, String],
1299
+ default: n("arrowPadding")
1300
+ },
1301
+ arrowOverflow: {
1302
+ type: Boolean,
1303
+ default: n("arrowOverflow")
1304
+ },
1305
+ flip: {
1306
+ type: Boolean,
1307
+ default: n("flip")
1308
+ },
1309
+ shift: {
1310
+ type: Boolean,
1311
+ default: n("shift")
1312
+ },
1313
+ shiftCrossAxis: {
1314
+ type: Boolean,
1315
+ default: n("shiftCrossAxis")
1316
+ },
1317
+ noAutoFocus: {
1318
+ type: Boolean,
1319
+ default: n("noAutoFocus")
1320
+ },
1321
+ disposeTimeout: {
1322
+ type: Number,
1323
+ default: n("disposeTimeout")
1324
+ }
1325
+ },
1326
+ emits: {
1327
+ show: () => !0,
1328
+ hide: () => !0,
1329
+ "update:shown": (e) => !0,
1330
+ "apply-show": () => !0,
1331
+ "apply-hide": () => !0,
1332
+ "close-group": () => !0,
1333
+ "close-directive": () => !0,
1334
+ "auto-hide": () => !0,
1335
+ resize: () => !0
1336
+ },
1337
+ data() {
1338
+ return {
1339
+ isShown: !1,
1340
+ isMounted: !1,
1341
+ skipTransition: !1,
1342
+ classes: {
1343
+ showFrom: !1,
1344
+ showTo: !1,
1345
+ hideFrom: !1,
1346
+ hideTo: !0
1347
+ },
1348
+ result: {
1349
+ x: 0,
1350
+ y: 0,
1351
+ placement: "",
1352
+ strategy: this.strategy,
1353
+ arrow: {
1354
+ x: 0,
1355
+ y: 0,
1356
+ centerOffset: 0
1357
+ },
1358
+ transformOrigin: null
1359
+ },
1360
+ randomId: `popper_${[Math.random(), Date.now()].map((e) => e.toString(36).substring(2, 10)).join("_")}`,
1361
+ shownChildren: /* @__PURE__ */ new Set(),
1362
+ lastAutoHide: !0,
1363
+ pendingHide: !1,
1364
+ containsGlobalTarget: !1,
1365
+ isDisposed: !0,
1366
+ mouseDownContains: !1
1367
+ };
1368
+ },
1369
+ computed: {
1370
+ popperId() {
1371
+ return this.ariaId != null ? this.ariaId : this.randomId;
1372
+ },
1373
+ shouldMountContent() {
1374
+ return this.eagerMount || this.isMounted;
1375
+ },
1376
+ slotData() {
1377
+ return {
1378
+ popperId: this.popperId,
1379
+ isShown: this.isShown,
1380
+ shouldMountContent: this.shouldMountContent,
1381
+ skipTransition: this.skipTransition,
1382
+ autoHide: typeof this.autoHide == "function" ? this.lastAutoHide : this.autoHide,
1383
+ show: this.show,
1384
+ hide: this.hide,
1385
+ handleResize: this.handleResize,
1386
+ onResize: this.onResize,
1387
+ classes: {
1388
+ ...this.classes,
1389
+ popperClass: this.popperClass
1390
+ },
1391
+ result: this.positioningDisabled ? null : this.result,
1392
+ attrs: this.$attrs
1393
+ };
1394
+ },
1395
+ parentPopper() {
1396
+ var e;
1397
+ return (e = this[q]) == null ? void 0 : e.parentPopper;
1398
+ },
1399
+ hasPopperShowTriggerHover() {
1400
+ var e, t;
1401
+ return ((e = this.popperTriggers) == null ? void 0 : e.includes("hover")) || ((t = this.popperShowTriggers) == null ? void 0 : t.includes("hover"));
1402
+ }
1403
+ },
1404
+ watch: {
1405
+ shown: "$_autoShowHide",
1406
+ disabled(e) {
1407
+ e ? this.dispose() : this.init();
1408
+ },
1409
+ async container() {
1410
+ this.isShown && (this.$_ensureTeleport(), await this.$_computePosition());
1411
+ },
1412
+ triggers: {
1413
+ handler: "$_refreshListeners",
1414
+ deep: !0
1415
+ },
1416
+ positioningDisabled: "$_refreshListeners",
1417
+ ...[
1418
+ "placement",
1419
+ "distance",
1420
+ "skidding",
1421
+ "boundary",
1422
+ "strategy",
1423
+ "overflowPadding",
1424
+ "arrowPadding",
1425
+ "preventOverflow",
1426
+ "shift",
1427
+ "shiftCrossAxis",
1428
+ "flip"
1429
+ ].reduce((e, t) => (e[t] = "$_computePosition", e), {})
1430
+ },
1431
+ created() {
1432
+ this.autoMinSize && console.warn("[floating-vue] `autoMinSize` option is deprecated. Use `autoSize=\"min\"` instead."), this.autoMaxSize && console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.");
1433
+ },
1434
+ mounted() {
1435
+ this.init(), this.$_detachPopperNode();
1436
+ },
1437
+ activated() {
1438
+ this.$_autoShowHide();
1439
+ },
1440
+ deactivated() {
1441
+ this.hide();
1442
+ },
1443
+ beforeUnmount() {
1444
+ this.dispose();
1445
+ },
1446
+ methods: {
1447
+ show({ event: e = null, skipDelay: t = !1, force: o = !1 } = {}) {
1448
+ var i, s;
1449
+ (i = this.parentPopper) != null && i.lockedChild && this.parentPopper.lockedChild !== this || (this.pendingHide = !1, (o || !this.disabled) && (((s = this.parentPopper) == null ? void 0 : s.lockedChild) === this && (this.parentPopper.lockedChild = null), this.$_scheduleShow(e, t), this.$emit("show"), this.$_showFrameLocked = !0, requestAnimationFrame(() => {
1450
+ this.$_showFrameLocked = !1;
1451
+ })), this.$emit("update:shown", !0));
1452
+ },
1453
+ hide({ event: e = null, skipDelay: t = !1 } = {}) {
1454
+ var o;
1455
+ if (!this.$_hideInProgress) {
1456
+ if (this.shownChildren.size > 0) {
1457
+ this.pendingHide = !0;
1458
+ return;
1459
+ }
1460
+ if (this.hasPopperShowTriggerHover && this.$_isAimingPopper()) {
1461
+ this.parentPopper && (this.parentPopper.lockedChild = this, clearTimeout(this.parentPopper.lockedChildTimer), this.parentPopper.lockedChildTimer = setTimeout(() => {
1462
+ this.parentPopper.lockedChild === this && (this.parentPopper.lockedChild.hide({ skipDelay: t }), this.parentPopper.lockedChild = null);
1463
+ }, 1e3));
1464
+ return;
1465
+ }
1466
+ ((o = this.parentPopper) == null ? void 0 : o.lockedChild) === this && (this.parentPopper.lockedChild = null), this.pendingHide = !1, this.$_scheduleHide(e, t), this.$emit("hide"), this.$emit("update:shown", !1);
1467
+ }
1468
+ },
1469
+ init() {
1470
+ var e;
1471
+ this.isDisposed && (this.isDisposed = !1, this.isMounted = !1, this.$_events = [], this.$_preventShow = !1, this.$_referenceNode = ((e = this.referenceNode) == null ? void 0 : e.call(this)) ?? this.$el, this.$_targetNodes = this.targetNodes().filter((t) => t.nodeType === t.ELEMENT_NODE), this.$_popperNode = this.popperNode(), this.$_innerNode = this.$_popperNode.querySelector(".v-popper__inner"), this.$_arrowNode = this.$_popperNode.querySelector(".v-popper__arrow-container"), this.$_swapTargetAttrs("title", "data-original-title"), this.$_detachPopperNode(), this.triggers.length && this.$_addEventListeners(), this.shown && this.show());
1472
+ },
1473
+ dispose() {
1474
+ this.isDisposed || (this.isDisposed = !0, this.$_removeEventListeners(), this.hide({ skipDelay: !0 }), this.$_detachPopperNode(), this.isMounted = !1, this.isShown = !1, this.$_updateParentShownChildren(!1), this.$_swapTargetAttrs("data-original-title", "title"));
1475
+ },
1476
+ async onResize() {
1477
+ this.isShown && (await this.$_computePosition(), this.$emit("resize"));
1478
+ },
1479
+ async $_computePosition() {
1480
+ if (this.isDisposed || this.positioningDisabled) return;
1481
+ const e = {
1482
+ strategy: this.strategy,
1483
+ middleware: []
1484
+ };
1485
+ (this.distance || this.skidding) && e.middleware.push(offset({
1486
+ mainAxis: this.distance,
1487
+ crossAxis: this.skidding
1488
+ }));
1489
+ const t = this.placement.startsWith("auto");
1490
+ if (t ? e.middleware.push(autoPlacement({ alignment: this.placement.split("-")[1] ?? "" })) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(shift({
1491
+ padding: this.overflowPadding,
1492
+ boundary: this.boundary,
1493
+ crossAxis: this.shiftCrossAxis
1494
+ })), !t && this.flip && e.middleware.push(flip({
1495
+ padding: this.overflowPadding,
1496
+ boundary: this.boundary
1497
+ }))), e.middleware.push(arrow({
1498
+ element: this.$_arrowNode,
1499
+ padding: this.arrowPadding
1500
+ })), this.arrowOverflow && e.middleware.push({
1501
+ name: "arrowOverflow",
1502
+ fn: ({ placement: i, rects: s, middlewareData: r }) => {
1503
+ let p;
1504
+ const { centerOffset: a } = r.arrow;
1505
+ return i.startsWith("top") || i.startsWith("bottom") ? p = Math.abs(a) > s.reference.width / 2 : p = Math.abs(a) > s.reference.height / 2, { data: { overflow: p } };
1506
+ }
1507
+ }), this.autoMinSize || this.autoSize) {
1508
+ const i = this.autoSize ? this.autoSize : this.autoMinSize ? "min" : null;
1509
+ e.middleware.push({
1510
+ name: "autoSize",
1511
+ fn: ({ rects: s, placement: r, middlewareData: p }) => {
1512
+ var u;
1513
+ if ((u = p.autoSize) != null && u.skip) return {};
1514
+ let a, l;
1515
+ return r.startsWith("top") || r.startsWith("bottom") ? a = s.reference.width : l = s.reference.height, this.$_innerNode.style[i === "min" ? "minWidth" : i === "max" ? "maxWidth" : "width"] = a != null ? `${a}px` : null, this.$_innerNode.style[i === "min" ? "minHeight" : i === "max" ? "maxHeight" : "height"] = l != null ? `${l}px` : null, {
1516
+ data: { skip: !0 },
1517
+ reset: { rects: !0 }
1518
+ };
1519
+ }
1520
+ });
1521
+ }
1522
+ (this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(size({
1523
+ boundary: this.boundary,
1524
+ padding: this.overflowPadding,
1525
+ apply: ({ availableWidth: i, availableHeight: s }) => {
1526
+ this.$_innerNode.style.maxWidth = i != null ? `${i}px` : null, this.$_innerNode.style.maxHeight = s != null ? `${s}px` : null;
1527
+ }
1528
+ })));
1529
+ const o = await B$1(this.$_referenceNode, this.$_popperNode, e);
1530
+ Object.assign(this.result, {
1531
+ x: o.x,
1532
+ y: o.y,
1533
+ placement: o.placement,
1534
+ strategy: o.strategy,
1535
+ arrow: {
1536
+ ...o.middlewareData.arrow,
1537
+ ...o.middlewareData.arrowOverflow
1538
+ }
1539
+ });
1540
+ },
1541
+ $_scheduleShow(e, t = !1) {
1542
+ if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer), g && this.instantMove && g.instantMove && g !== this.parentPopper) {
1543
+ g.$_applyHide(!0), this.$_applyShow(!0);
1544
+ return;
1545
+ }
1546
+ t ? this.$_applyShow() : this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
1547
+ },
1548
+ $_scheduleHide(e, t = !1) {
1549
+ if (this.shownChildren.size > 0) {
1550
+ this.pendingHide = !0;
1551
+ return;
1552
+ }
1553
+ this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, clearTimeout(this.$_scheduleTimer), this.isShown && (g = this), t ? this.$_applyHide() : this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
1554
+ },
1555
+ $_computeDelay(e) {
1556
+ const t = this.delay;
1557
+ return parseInt(t && t[e] || t || 0);
1558
+ },
1559
+ async $_applyShow(e = !1) {
1560
+ clearTimeout(this.$_disposeTimer), clearTimeout(this.$_scheduleTimer), this.skipTransition = e, !this.isShown && (this.$_ensureTeleport(), await G(), await this.$_computePosition(), await this.$_applyShowEffect(), this.positioningDisabled || this.$_registerEventListeners([...D(this.$_referenceNode), ...D(this.$_popperNode)], "scroll", () => {
1561
+ this.$_computePosition();
1562
+ }));
1563
+ },
1564
+ async $_applyShowEffect() {
1565
+ if (this.$_hideInProgress) return;
1566
+ if (this.computeTransformOrigin) {
1567
+ const t = this.$_referenceNode.getBoundingClientRect(), o = this.$_popperNode.querySelector(".v-popper__wrapper"), i = o.parentNode.getBoundingClientRect(), s = t.x + t.width / 2 - (i.left + o.offsetLeft), r = t.y + t.height / 2 - (i.top + o.offsetTop);
1568
+ this.result.transformOrigin = `${s}px ${r}px`;
1569
+ }
1570
+ this.isShown = !0, this.$_applyAttrsToTarget({
1571
+ "aria-describedby": this.popperId,
1572
+ "data-popper-shown": ""
1573
+ });
1574
+ const e = this.showGroup;
1575
+ if (e) {
1576
+ let t;
1577
+ for (let o = 0; o < d.length; o++) t = d[o], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
1578
+ }
1579
+ d.push(this), document.body.classList.add("v-popper--some-open");
1580
+ for (const t of re(this.theme)) he(t).push(this), document.body.classList.add(`v-popper--some-open--${t}`);
1581
+ this.$emit("apply-show"), this.classes.showFrom = !0, this.classes.showTo = !1, this.classes.hideFrom = !1, this.classes.hideTo = !1, await G(), this.classes.showFrom = !1, this.classes.showTo = !0, this.noAutoFocus || this.$_popperNode.focus();
1582
+ },
1583
+ async $_applyHide(e = !1) {
1584
+ if (this.shownChildren.size > 0) {
1585
+ this.pendingHide = !0, this.$_hideInProgress = !1;
1586
+ return;
1587
+ }
1588
+ if (clearTimeout(this.$_scheduleTimer), !this.isShown) return;
1589
+ this.skipTransition = e, de(d, this), d.length === 0 && document.body.classList.remove("v-popper--some-open");
1590
+ for (const o of re(this.theme)) {
1591
+ const i = he(o);
1592
+ de(i, this), i.length === 0 && document.body.classList.remove(`v-popper--some-open--${o}`);
1593
+ }
1594
+ g === this && (g = null), this.isShown = !1, this.$_applyAttrsToTarget({
1595
+ "aria-describedby": void 0,
1596
+ "data-popper-shown": void 0
1597
+ }), clearTimeout(this.$_disposeTimer);
1598
+ const t = this.disposeTimeout;
1599
+ t !== null && (this.$_disposeTimer = setTimeout(() => {
1600
+ this.$_popperNode && (this.$_detachPopperNode(), this.isMounted = !1);
1601
+ }, t)), this.$_removeEventListeners("scroll"), this.$emit("apply-hide"), this.classes.showFrom = !1, this.classes.showTo = !1, this.classes.hideFrom = !0, this.classes.hideTo = !1, await G(), this.classes.hideFrom = !1, this.classes.hideTo = !0;
1602
+ },
1603
+ $_autoShowHide() {
1604
+ this.shown ? this.show() : this.hide();
1605
+ },
1606
+ $_ensureTeleport() {
1607
+ if (this.isDisposed) return;
1608
+ let e = this.container;
1609
+ if (typeof e == "string" ? e = window.document.querySelector(e) : e === !1 && (e = this.$_targetNodes[0].parentNode), !e) throw new Error("No container for popover: " + this.container);
1610
+ e.appendChild(this.$_popperNode), this.isMounted = !0;
1611
+ },
1612
+ $_addEventListeners() {
1613
+ const e = (o) => {
1614
+ this.isShown && !this.$_hideInProgress || (o.usedByTooltip = !0, !this.$_preventShow && this.show({ event: o }));
1615
+ };
1616
+ this.$_registerTriggerListeners(this.$_targetNodes, pe, this.triggers, this.showTriggers, e), this.$_registerTriggerListeners([this.$_popperNode], pe, this.popperTriggers, this.popperShowTriggers, e);
1617
+ const t = (o) => {
1618
+ o.usedByTooltip || this.hide({ event: o });
1619
+ };
1620
+ this.$_registerTriggerListeners(this.$_targetNodes, ae, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], ae, this.popperTriggers, this.popperHideTriggers, t);
1621
+ },
1622
+ $_registerEventListeners(e, t, o) {
1623
+ this.$_events.push({
1624
+ targetNodes: e,
1625
+ eventType: t,
1626
+ handler: o
1627
+ }), e.forEach((i) => i.addEventListener(t, o, $ ? { passive: !0 } : void 0));
1628
+ },
1629
+ $_registerTriggerListeners(e, t, o, i, s) {
1630
+ let r = o;
1631
+ i != null && (r = typeof i == "function" ? i(r) : i), r.forEach((p) => {
1632
+ const a = t[p];
1633
+ a && this.$_registerEventListeners(e, a, s);
1634
+ });
1635
+ },
1636
+ $_removeEventListeners(e) {
1637
+ const t = [];
1638
+ this.$_events.forEach((o) => {
1639
+ const { targetNodes: i, eventType: s, handler: r } = o;
1640
+ !e || e === s ? i.forEach((p) => p.removeEventListener(s, r)) : t.push(o);
1641
+ }), this.$_events = t;
1642
+ },
1643
+ $_refreshListeners() {
1644
+ this.isDisposed || (this.$_removeEventListeners(), this.$_addEventListeners());
1645
+ },
1646
+ $_handleGlobalClose(e, t = !1) {
1647
+ this.$_showFrameLocked || (this.hide({ event: e }), e.closePopover ? this.$emit("close-directive") : this.$emit("auto-hide"), t && (this.$_preventShow = !0, setTimeout(() => {
1648
+ this.$_preventShow = !1;
1649
+ }, 300)));
1650
+ },
1651
+ $_detachPopperNode() {
1652
+ this.$_popperNode.parentNode && this.$_popperNode.parentNode.removeChild(this.$_popperNode);
1653
+ },
1654
+ $_swapTargetAttrs(e, t) {
1655
+ for (const o of this.$_targetNodes) {
1656
+ const i = o.getAttribute(e);
1657
+ i && (o.removeAttribute(e), o.setAttribute(t, i));
1658
+ }
1659
+ },
1660
+ $_applyAttrsToTarget(e) {
1661
+ for (const t of this.$_targetNodes) for (const o in e) {
1662
+ const i = e[o];
1663
+ i == null ? t.removeAttribute(o) : t.setAttribute(o, i);
1664
+ }
1665
+ },
1666
+ $_updateParentShownChildren(e) {
1667
+ let t = this.parentPopper;
1668
+ for (; t;) e ? t.shownChildren.add(this.randomId) : (t.shownChildren.delete(this.randomId), t.pendingHide && t.hide()), t = t.parentPopper;
1669
+ },
1670
+ $_isAimingPopper() {
1671
+ const e = this.$_referenceNode.getBoundingClientRect();
1672
+ if (y >= e.left && y <= e.right && _ >= e.top && _ <= e.bottom) {
1673
+ const t = this.$_popperNode.getBoundingClientRect(), o = y - c, i = _ - m, r = t.left + t.width / 2 - c + (t.top + t.height / 2) - m + t.width + t.height, p = c + o * r, a = m + i * r;
1674
+ return C(c, m, p, a, t.left, t.top, t.left, t.bottom) || C(c, m, p, a, t.left, t.top, t.right, t.top) || C(c, m, p, a, t.right, t.top, t.right, t.bottom) || C(c, m, p, a, t.left, t.bottom, t.right, t.bottom);
1675
+ }
1676
+ return !1;
1677
+ }
1678
+ },
1679
+ render() {
1680
+ return this.$slots.default(this.slotData);
1681
+ }
1682
+ });
1683
+ if (typeof document < "u" && typeof window < "u") {
1684
+ if (_e) {
1685
+ const e = $ ? {
1686
+ passive: !0,
1687
+ capture: !0
1688
+ } : !0;
1689
+ document.addEventListener("touchstart", (t) => ue(t, !0), e), document.addEventListener("touchend", (t) => fe(t, !0), e);
1690
+ } else window.addEventListener("mousedown", (e) => ue(e, !1), !0), window.addEventListener("click", (e) => fe(e, !1), !0);
1691
+ window.addEventListener("resize", tt);
1692
+ }
1693
+ function ue(e, t) {
1694
+ if (h.autoHideOnMousedown) Pe(e, t);
1695
+ else for (let o = 0; o < d.length; o++) {
1696
+ const i = d[o];
1697
+ try {
1698
+ i.mouseDownContains = i.popperNode().contains(e.target);
1699
+ } catch {}
1700
+ }
1701
+ }
1702
+ function fe(e, t) {
1703
+ h.autoHideOnMousedown || Pe(e, t);
1704
+ }
1705
+ function Pe(e, t) {
1706
+ const o = {};
1707
+ for (let i = d.length - 1; i >= 0; i--) {
1708
+ const s = d[i];
1709
+ try {
1710
+ const r = s.containsGlobalTarget = s.mouseDownContains || s.popperNode().contains(e.target);
1711
+ s.pendingHide = !1, requestAnimationFrame(() => {
1712
+ if (s.pendingHide = !1, !o[s.randomId] && ce(s, r, e)) {
1713
+ if (s.$_handleGlobalClose(e, t), !e.closeAllPopover && e.closePopover && r) {
1714
+ let a = s.parentPopper;
1715
+ for (; a;) o[a.randomId] = !0, a = a.parentPopper;
1716
+ return;
1717
+ }
1718
+ let p = s.parentPopper;
1719
+ for (; p && ce(p, p.containsGlobalTarget, e);) {
1720
+ p.$_handleGlobalClose(e, t);
1721
+ p = p.parentPopper;
1722
+ }
1723
+ }
1724
+ });
1725
+ } catch {}
1726
+ }
1727
+ }
1728
+ function ce(e, t, o) {
1729
+ return o.closeAllPopover || o.closePopover && t || et(e, o) && !t;
1730
+ }
1731
+ function et(e, t) {
1732
+ if (typeof e.autoHide == "function") {
1733
+ const o = e.autoHide(t);
1734
+ return e.lastAutoHide = o, o;
1735
+ }
1736
+ return e.autoHide;
1737
+ }
1738
+ function tt() {
1739
+ for (let e = 0; e < d.length; e++) d[e].$_computePosition();
1740
+ }
1741
+ var c = 0, m = 0, y = 0, _ = 0;
1742
+ typeof window < "u" && window.addEventListener("mousemove", (e) => {
1743
+ c = y, m = _, y = e.clientX, _ = e.clientY;
1744
+ }, $ ? { passive: !0 } : void 0);
1745
+ function C(e, t, o, i, s, r, p, a) {
1746
+ const l = ((p - s) * (t - r) - (a - r) * (e - s)) / ((a - r) * (o - e) - (p - s) * (i - t)), u = ((o - e) * (t - r) - (i - t) * (e - s)) / ((a - r) * (o - e) - (p - s) * (i - t));
1747
+ return l >= 0 && l <= 1 && u >= 0 && u <= 1;
1748
+ }
1749
+ var ot = { extends: Q() }, B = (e, t) => {
1750
+ const o = e.__vccOpts || e;
1751
+ for (const [i, s] of t) o[i] = s;
1752
+ return o;
1753
+ };
1754
+ function it(e, t, o, i, s, r) {
1755
+ return openBlock(), createElementBlock("div", {
1756
+ ref: "reference",
1757
+ class: normalizeClass(["v-popper", { "v-popper--shown": e.slotData.isShown }])
1758
+ }, [renderSlot(e.$slots, "default", normalizeProps(guardReactiveProps(e.slotData)))], 2);
1759
+ }
1760
+ var st = /* @__PURE__ */ B(ot, [["render", it]]);
1761
+ function nt() {
1762
+ var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
1763
+ if (t > 0) return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
1764
+ if (e.indexOf("Trident/") > 0) {
1765
+ var i = e.indexOf("rv:");
1766
+ return parseInt(e.substring(i + 3, e.indexOf(".", i)), 10);
1767
+ }
1768
+ var s = e.indexOf("Edge/");
1769
+ return s > 0 ? parseInt(e.substring(s + 5, e.indexOf(".", s)), 10) : -1;
1770
+ }
1771
+ var z;
1772
+ function X() {
1773
+ X.init || (X.init = !0, z = nt() !== -1);
1774
+ }
1775
+ var E = {
1776
+ name: "ResizeObserver",
1777
+ props: {
1778
+ emitOnMount: {
1779
+ type: Boolean,
1780
+ default: !1
1781
+ },
1782
+ ignoreWidth: {
1783
+ type: Boolean,
1784
+ default: !1
1785
+ },
1786
+ ignoreHeight: {
1787
+ type: Boolean,
1788
+ default: !1
1789
+ }
1790
+ },
1791
+ emits: ["notify"],
1792
+ mounted() {
1793
+ X(), nextTick(() => {
1794
+ this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
1795
+ });
1796
+ const e = document.createElement("object");
1797
+ this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", z && this.$el.appendChild(e), e.data = "about:blank", z || this.$el.appendChild(e);
1798
+ },
1799
+ beforeUnmount() {
1800
+ this.removeResizeHandlers();
1801
+ },
1802
+ methods: {
1803
+ compareAndNotify() {
1804
+ (!this.ignoreWidth && this._w !== this.$el.offsetWidth || !this.ignoreHeight && this._h !== this.$el.offsetHeight) && (this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitSize());
1805
+ },
1806
+ emitSize() {
1807
+ this.$emit("notify", {
1808
+ width: this._w,
1809
+ height: this._h
1810
+ });
1811
+ },
1812
+ addResizeHandlers() {
1813
+ this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
1814
+ },
1815
+ removeResizeHandlers() {
1816
+ this._resizeObject && this._resizeObject.onload && (!z && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
1817
+ }
1818
+ }
1819
+ };
1820
+ var rt = /* @__PURE__ */ withScopeId("data-v-b329ee4c");
1821
+ pushScopeId("data-v-b329ee4c");
1822
+ var pt = {
1823
+ class: "resize-observer",
1824
+ tabindex: "-1"
1825
+ };
1826
+ popScopeId();
1827
+ E.render = /* @__PURE__ */ rt((e, t, o, i, s, r) => (openBlock(), createBlock("div", pt)));
1828
+ E.__scopeId = "data-v-b329ee4c";
1829
+ E.__file = "src/components/ResizeObserver.vue";
1830
+ var Z = (e = "theme") => ({ computed: { themeClass() {
1831
+ return Ze(this[e]);
1832
+ } } }), dt = defineComponent({
1833
+ name: "VPopperContent",
1834
+ components: { ResizeObserver: E },
1835
+ mixins: [Z()],
1836
+ props: {
1837
+ popperId: String,
1838
+ theme: String,
1839
+ shown: Boolean,
1840
+ mounted: Boolean,
1841
+ skipTransition: Boolean,
1842
+ autoHide: Boolean,
1843
+ handleResize: Boolean,
1844
+ classes: Object,
1845
+ result: Object
1846
+ },
1847
+ emits: ["hide", "resize"],
1848
+ methods: { toPx(e) {
1849
+ return e != null && !isNaN(e) ? `${e}px` : null;
1850
+ } }
1851
+ }), lt = [
1852
+ "id",
1853
+ "aria-hidden",
1854
+ "tabindex",
1855
+ "data-popper-placement"
1856
+ ], ht = {
1857
+ ref: "inner",
1858
+ class: "v-popper__inner"
1859
+ }, ct = [/* @__PURE__ */ createBaseVNode("div", { class: "v-popper__arrow-outer" }, null, -1), /* @__PURE__ */ createBaseVNode("div", { class: "v-popper__arrow-inner" }, null, -1)];
1860
+ function mt(e, t, o, i, s, r) {
1861
+ const p = resolveComponent("ResizeObserver");
1862
+ return openBlock(), createElementBlock("div", {
1863
+ id: e.popperId,
1864
+ ref: "popover",
1865
+ class: normalizeClass(["v-popper__popper", [
1866
+ e.themeClass,
1867
+ e.classes.popperClass,
1868
+ {
1869
+ "v-popper__popper--shown": e.shown,
1870
+ "v-popper__popper--hidden": !e.shown,
1871
+ "v-popper__popper--show-from": e.classes.showFrom,
1872
+ "v-popper__popper--show-to": e.classes.showTo,
1873
+ "v-popper__popper--hide-from": e.classes.hideFrom,
1874
+ "v-popper__popper--hide-to": e.classes.hideTo,
1875
+ "v-popper__popper--skip-transition": e.skipTransition,
1876
+ "v-popper__popper--arrow-overflow": e.result && e.result.arrow.overflow,
1877
+ "v-popper__popper--no-positioning": !e.result
1878
+ }
1879
+ ]]),
1880
+ style: normalizeStyle(e.result ? {
1881
+ position: e.result.strategy,
1882
+ transform: `translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`
1883
+ } : void 0),
1884
+ "aria-hidden": e.shown ? "false" : "true",
1885
+ tabindex: e.autoHide ? 0 : void 0,
1886
+ "data-popper-placement": e.result ? e.result.placement : void 0,
1887
+ onKeyup: t[2] || (t[2] = withKeys((a) => e.autoHide && e.$emit("hide"), ["esc"]))
1888
+ }, [createBaseVNode("div", {
1889
+ class: "v-popper__backdrop",
1890
+ onClick: t[0] || (t[0] = (a) => e.autoHide && e.$emit("hide"))
1891
+ }), createBaseVNode("div", {
1892
+ class: "v-popper__wrapper",
1893
+ style: normalizeStyle(e.result ? { transformOrigin: e.result.transformOrigin } : void 0)
1894
+ }, [createBaseVNode("div", ht, [e.mounted ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createBaseVNode("div", null, [renderSlot(e.$slots, "default")]), e.handleResize ? (openBlock(), createBlock(p, {
1895
+ key: 0,
1896
+ onNotify: t[1] || (t[1] = (a) => e.$emit("resize", a))
1897
+ })) : createCommentVNode("", !0)], 64)) : createCommentVNode("", !0)], 512), createBaseVNode("div", {
1898
+ ref: "arrow",
1899
+ class: "v-popper__arrow-container",
1900
+ style: normalizeStyle(e.result ? {
1901
+ left: e.toPx(e.result.arrow.x),
1902
+ top: e.toPx(e.result.arrow.y)
1903
+ } : void 0)
1904
+ }, ct, 4)], 4)], 46, lt);
1905
+ }
1906
+ var ee = /* @__PURE__ */ B(dt, [["render", mt]]), te = { methods: {
1907
+ show(...e) {
1908
+ return this.$refs.popper.show(...e);
1909
+ },
1910
+ hide(...e) {
1911
+ return this.$refs.popper.hide(...e);
1912
+ },
1913
+ dispose(...e) {
1914
+ return this.$refs.popper.dispose(...e);
1915
+ },
1916
+ onResize(...e) {
1917
+ return this.$refs.popper.onResize(...e);
1918
+ }
1919
+ } };
1920
+ var K = function() {};
1921
+ typeof window < "u" && (K = window.Element);
1922
+ var gt = defineComponent({
1923
+ name: "VPopperWrapper",
1924
+ components: {
1925
+ Popper: st,
1926
+ PopperContent: ee
1927
+ },
1928
+ mixins: [te, Z("finalTheme")],
1929
+ props: {
1930
+ theme: {
1931
+ type: String,
1932
+ default: null
1933
+ },
1934
+ referenceNode: {
1935
+ type: Function,
1936
+ default: null
1937
+ },
1938
+ shown: {
1939
+ type: Boolean,
1940
+ default: !1
1941
+ },
1942
+ showGroup: {
1943
+ type: String,
1944
+ default: null
1945
+ },
1946
+ ariaId: { default: null },
1947
+ disabled: {
1948
+ type: Boolean,
1949
+ default: void 0
1950
+ },
1951
+ positioningDisabled: {
1952
+ type: Boolean,
1953
+ default: void 0
1954
+ },
1955
+ placement: {
1956
+ type: String,
1957
+ default: void 0
1958
+ },
1959
+ delay: {
1960
+ type: [
1961
+ String,
1962
+ Number,
1963
+ Object
1964
+ ],
1965
+ default: void 0
1966
+ },
1967
+ distance: {
1968
+ type: [Number, String],
1969
+ default: void 0
1970
+ },
1971
+ skidding: {
1972
+ type: [Number, String],
1973
+ default: void 0
1974
+ },
1975
+ triggers: {
1976
+ type: Array,
1977
+ default: void 0
1978
+ },
1979
+ showTriggers: {
1980
+ type: [Array, Function],
1981
+ default: void 0
1982
+ },
1983
+ hideTriggers: {
1984
+ type: [Array, Function],
1985
+ default: void 0
1986
+ },
1987
+ popperTriggers: {
1988
+ type: Array,
1989
+ default: void 0
1990
+ },
1991
+ popperShowTriggers: {
1992
+ type: [Array, Function],
1993
+ default: void 0
1994
+ },
1995
+ popperHideTriggers: {
1996
+ type: [Array, Function],
1997
+ default: void 0
1998
+ },
1999
+ container: {
2000
+ type: [
2001
+ String,
2002
+ Object,
2003
+ K,
2004
+ Boolean
2005
+ ],
2006
+ default: void 0
2007
+ },
2008
+ boundary: {
2009
+ type: [String, K],
2010
+ default: void 0
2011
+ },
2012
+ strategy: {
2013
+ type: String,
2014
+ default: void 0
2015
+ },
2016
+ autoHide: {
2017
+ type: [Boolean, Function],
2018
+ default: void 0
2019
+ },
2020
+ handleResize: {
2021
+ type: Boolean,
2022
+ default: void 0
2023
+ },
2024
+ instantMove: {
2025
+ type: Boolean,
2026
+ default: void 0
2027
+ },
2028
+ eagerMount: {
2029
+ type: Boolean,
2030
+ default: void 0
2031
+ },
2032
+ popperClass: {
2033
+ type: [
2034
+ String,
2035
+ Array,
2036
+ Object
2037
+ ],
2038
+ default: void 0
2039
+ },
2040
+ computeTransformOrigin: {
2041
+ type: Boolean,
2042
+ default: void 0
2043
+ },
2044
+ autoMinSize: {
2045
+ type: Boolean,
2046
+ default: void 0
2047
+ },
2048
+ autoSize: {
2049
+ type: [Boolean, String],
2050
+ default: void 0
2051
+ },
2052
+ autoMaxSize: {
2053
+ type: Boolean,
2054
+ default: void 0
2055
+ },
2056
+ autoBoundaryMaxSize: {
2057
+ type: Boolean,
2058
+ default: void 0
2059
+ },
2060
+ preventOverflow: {
2061
+ type: Boolean,
2062
+ default: void 0
2063
+ },
2064
+ overflowPadding: {
2065
+ type: [Number, String],
2066
+ default: void 0
2067
+ },
2068
+ arrowPadding: {
2069
+ type: [Number, String],
2070
+ default: void 0
2071
+ },
2072
+ arrowOverflow: {
2073
+ type: Boolean,
2074
+ default: void 0
2075
+ },
2076
+ flip: {
2077
+ type: Boolean,
2078
+ default: void 0
2079
+ },
2080
+ shift: {
2081
+ type: Boolean,
2082
+ default: void 0
2083
+ },
2084
+ shiftCrossAxis: {
2085
+ type: Boolean,
2086
+ default: void 0
2087
+ },
2088
+ noAutoFocus: {
2089
+ type: Boolean,
2090
+ default: void 0
2091
+ },
2092
+ disposeTimeout: {
2093
+ type: Number,
2094
+ default: void 0
2095
+ }
2096
+ },
2097
+ emits: {
2098
+ show: () => !0,
2099
+ hide: () => !0,
2100
+ "update:shown": (e) => !0,
2101
+ "apply-show": () => !0,
2102
+ "apply-hide": () => !0,
2103
+ "close-group": () => !0,
2104
+ "close-directive": () => !0,
2105
+ "auto-hide": () => !0,
2106
+ resize: () => !0
2107
+ },
2108
+ computed: { finalTheme() {
2109
+ return this.theme ?? this.$options.vPopperTheme;
2110
+ } },
2111
+ methods: { getTargetNodes() {
2112
+ return Array.from(this.$el.children).filter((e) => e !== this.$refs.popperContent.$el);
2113
+ } }
2114
+ });
2115
+ function wt(e, t, o, i, s, r) {
2116
+ const p = resolveComponent("PopperContent"), a = resolveComponent("Popper");
2117
+ return openBlock(), createBlock(a, mergeProps({ ref: "popper" }, e.$props, {
2118
+ theme: e.finalTheme,
2119
+ "target-nodes": e.getTargetNodes,
2120
+ "popper-node": () => e.$refs.popperContent.$el,
2121
+ class: [e.themeClass],
2122
+ onShow: t[0] || (t[0] = () => e.$emit("show")),
2123
+ onHide: t[1] || (t[1] = () => e.$emit("hide")),
2124
+ "onUpdate:shown": t[2] || (t[2] = (l) => e.$emit("update:shown", l)),
2125
+ onApplyShow: t[3] || (t[3] = () => e.$emit("apply-show")),
2126
+ onApplyHide: t[4] || (t[4] = () => e.$emit("apply-hide")),
2127
+ onCloseGroup: t[5] || (t[5] = () => e.$emit("close-group")),
2128
+ onCloseDirective: t[6] || (t[6] = () => e.$emit("close-directive")),
2129
+ onAutoHide: t[7] || (t[7] = () => e.$emit("auto-hide")),
2130
+ onResize: t[8] || (t[8] = () => e.$emit("resize"))
2131
+ }), {
2132
+ default: withCtx(({ popperId: l, isShown: u, shouldMountContent: L, skipTransition: D, autoHide: I, show: F, hide: v, handleResize: R, onResize: j, classes: V, result: Ee }) => [renderSlot(e.$slots, "default", {
2133
+ shown: u,
2134
+ show: F,
2135
+ hide: v
2136
+ }), createVNode(p, {
2137
+ ref: "popperContent",
2138
+ "popper-id": l,
2139
+ theme: e.finalTheme,
2140
+ shown: u,
2141
+ mounted: L,
2142
+ "skip-transition": D,
2143
+ "auto-hide": I,
2144
+ "handle-resize": R,
2145
+ classes: V,
2146
+ result: Ee,
2147
+ onHide: v,
2148
+ onResize: j
2149
+ }, {
2150
+ default: withCtx(() => [renderSlot(e.$slots, "popper", {
2151
+ shown: u,
2152
+ hide: v
2153
+ })]),
2154
+ _: 2
2155
+ }, 1032, [
2156
+ "popper-id",
2157
+ "theme",
2158
+ "shown",
2159
+ "mounted",
2160
+ "skip-transition",
2161
+ "auto-hide",
2162
+ "handle-resize",
2163
+ "classes",
2164
+ "result",
2165
+ "onHide",
2166
+ "onResize"
2167
+ ])]),
2168
+ _: 3
2169
+ }, 16, [
2170
+ "theme",
2171
+ "target-nodes",
2172
+ "popper-node",
2173
+ "class"
2174
+ ]);
2175
+ }
2176
+ var k = /* @__PURE__ */ B(gt, [["render", wt]]), Se = {
2177
+ ...k,
2178
+ name: "VDropdown",
2179
+ vPopperTheme: "dropdown"
2180
+ }, be = {
2181
+ ...k,
2182
+ name: "VMenu",
2183
+ vPopperTheme: "menu"
2184
+ }, Ce = {
2185
+ ...k,
2186
+ name: "VTooltip",
2187
+ vPopperTheme: "tooltip"
2188
+ }, $t = defineComponent({
2189
+ name: "VTooltipDirective",
2190
+ components: {
2191
+ Popper: Q(),
2192
+ PopperContent: ee
2193
+ },
2194
+ mixins: [te],
2195
+ inheritAttrs: !1,
2196
+ props: {
2197
+ theme: {
2198
+ type: String,
2199
+ default: "tooltip"
2200
+ },
2201
+ html: {
2202
+ type: Boolean,
2203
+ default: (e) => S(e.theme, "html")
2204
+ },
2205
+ content: {
2206
+ type: [
2207
+ String,
2208
+ Number,
2209
+ Function
2210
+ ],
2211
+ default: null
2212
+ },
2213
+ loadingContent: {
2214
+ type: String,
2215
+ default: (e) => S(e.theme, "loadingContent")
2216
+ },
2217
+ targetNodes: {
2218
+ type: Function,
2219
+ required: !0
2220
+ }
2221
+ },
2222
+ data() {
2223
+ return { asyncContent: null };
2224
+ },
2225
+ computed: {
2226
+ isContentAsync() {
2227
+ return typeof this.content == "function";
2228
+ },
2229
+ loading() {
2230
+ return this.isContentAsync && this.asyncContent == null;
2231
+ },
2232
+ finalContent() {
2233
+ return this.isContentAsync ? this.loading ? this.loadingContent : this.asyncContent : this.content;
2234
+ }
2235
+ },
2236
+ watch: {
2237
+ content: {
2238
+ handler() {
2239
+ this.fetchContent(!0);
2240
+ },
2241
+ immediate: !0
2242
+ },
2243
+ async finalContent() {
2244
+ await this.$nextTick(), this.$refs.popper.onResize();
2245
+ }
2246
+ },
2247
+ created() {
2248
+ this.$_fetchId = 0;
2249
+ },
2250
+ methods: {
2251
+ fetchContent(e) {
2252
+ if (typeof this.content == "function" && this.$_isShown && (e || !this.$_loading && this.asyncContent == null)) {
2253
+ this.asyncContent = null, this.$_loading = !0;
2254
+ const t = ++this.$_fetchId, o = this.content(this);
2255
+ o.then ? o.then((i) => this.onResult(t, i)) : this.onResult(t, o);
2256
+ }
2257
+ },
2258
+ onResult(e, t) {
2259
+ e === this.$_fetchId && (this.$_loading = !1, this.asyncContent = t);
2260
+ },
2261
+ onShow() {
2262
+ this.$_isShown = !0, this.fetchContent();
2263
+ },
2264
+ onHide() {
2265
+ this.$_isShown = !1;
2266
+ }
2267
+ }
2268
+ }), vt = ["innerHTML"], yt = ["textContent"];
2269
+ function _t(e, t, o, i, s, r) {
2270
+ const p = resolveComponent("PopperContent"), a = resolveComponent("Popper");
2271
+ return openBlock(), createBlock(a, mergeProps({ ref: "popper" }, e.$attrs, {
2272
+ theme: e.theme,
2273
+ "target-nodes": e.targetNodes,
2274
+ "popper-node": () => e.$refs.popperContent.$el,
2275
+ onApplyShow: e.onShow,
2276
+ onApplyHide: e.onHide
2277
+ }), {
2278
+ default: withCtx(({ popperId: l, isShown: u, shouldMountContent: L, skipTransition: D, autoHide: I, hide: F, handleResize: v, onResize: R, classes: j, result: V }) => [createVNode(p, {
2279
+ ref: "popperContent",
2280
+ class: normalizeClass({ "v-popper--tooltip-loading": e.loading }),
2281
+ "popper-id": l,
2282
+ theme: e.theme,
2283
+ shown: u,
2284
+ mounted: L,
2285
+ "skip-transition": D,
2286
+ "auto-hide": I,
2287
+ "handle-resize": v,
2288
+ classes: j,
2289
+ result: V,
2290
+ onHide: F,
2291
+ onResize: R
2292
+ }, {
2293
+ default: withCtx(() => [e.html ? (openBlock(), createElementBlock("div", {
2294
+ key: 0,
2295
+ innerHTML: e.finalContent
2296
+ }, null, 8, vt)) : (openBlock(), createElementBlock("div", {
2297
+ key: 1,
2298
+ textContent: toDisplayString(e.finalContent)
2299
+ }, null, 8, yt))]),
2300
+ _: 2
2301
+ }, 1032, [
2302
+ "class",
2303
+ "popper-id",
2304
+ "theme",
2305
+ "shown",
2306
+ "mounted",
2307
+ "skip-transition",
2308
+ "auto-hide",
2309
+ "handle-resize",
2310
+ "classes",
2311
+ "result",
2312
+ "onHide",
2313
+ "onResize"
2314
+ ])]),
2315
+ _: 1
2316
+ }, 16, [
2317
+ "theme",
2318
+ "target-nodes",
2319
+ "popper-node",
2320
+ "onApplyShow",
2321
+ "onApplyHide"
2322
+ ]);
2323
+ }
2324
+ var ze = /* @__PURE__ */ B($t, [["render", _t]]), Ae = "v-popper--has-tooltip";
2325
+ function Tt(e, t) {
2326
+ let o = e.placement;
2327
+ if (!o && t) for (const i of Te) t[i] && (o = i);
2328
+ return o || (o = S(e.theme || "tooltip", "placement")), o;
2329
+ }
2330
+ function Ne(e, t, o) {
2331
+ let i;
2332
+ const s = typeof t;
2333
+ return s === "string" ? i = { content: t } : t && s === "object" ? i = t : i = { content: !1 }, i.placement = Tt(i, o), i.targetNodes = () => [e], i.referenceNode = () => e, i;
2334
+ }
2335
+ var x, b, Pt = 0;
2336
+ function St() {
2337
+ if (x) return;
2338
+ b = ref([]), x = createApp({
2339
+ name: "VTooltipDirectiveApp",
2340
+ setup() {
2341
+ return { directives: b };
2342
+ },
2343
+ render() {
2344
+ return this.directives.map((t) => h$2(ze, {
2345
+ ...t.options,
2346
+ shown: t.shown || t.options.shown,
2347
+ key: t.id
2348
+ }));
2349
+ },
2350
+ devtools: { hide: !0 }
2351
+ });
2352
+ const e = document.createElement("div");
2353
+ document.body.appendChild(e), x.mount(e);
2354
+ }
2355
+ function bt(e, t, o) {
2356
+ St();
2357
+ const i = ref(Ne(e, t, o)), s = ref(!1), r = {
2358
+ id: Pt++,
2359
+ options: i,
2360
+ shown: s
2361
+ };
2362
+ return b.value.push(r), e.classList && e.classList.add(Ae), e.$_popper = {
2363
+ options: i,
2364
+ item: r,
2365
+ show() {
2366
+ s.value = !0;
2367
+ },
2368
+ hide() {
2369
+ s.value = !1;
2370
+ }
2371
+ };
2372
+ }
2373
+ function He(e) {
2374
+ if (e.$_popper) {
2375
+ const t = b.value.indexOf(e.$_popper.item);
2376
+ t !== -1 && b.value.splice(t, 1), delete e.$_popper, delete e.$_popperOldShown, delete e.$_popperMountTarget;
2377
+ }
2378
+ e.classList && e.classList.remove(Ae);
2379
+ }
2380
+ function me(e, { value: t, modifiers: o }) {
2381
+ const i = Ne(e, t, o);
2382
+ if (!i.content || S(i.theme || "tooltip", "disabled")) He(e);
2383
+ else {
2384
+ let s;
2385
+ e.$_popper ? (s = e.$_popper, s.options.value = i) : s = bt(e, t, o), typeof t.shown < "u" && t.shown !== e.$_popperOldShown && (e.$_popperOldShown = t.shown, t.shown ? s.show() : s.hide());
2386
+ }
2387
+ }
2388
+ var oe = {
2389
+ beforeMount: me,
2390
+ updated: me,
2391
+ beforeUnmount(e) {
2392
+ He(e);
2393
+ }
2394
+ };
2395
+ function ge(e) {
2396
+ e.addEventListener("mousedown", H), e.addEventListener("click", H), e.addEventListener("touchstart", Oe, $ ? { passive: !0 } : !1);
2397
+ }
2398
+ function we(e) {
2399
+ e.removeEventListener("mousedown", H), e.removeEventListener("click", H), e.removeEventListener("touchstart", Oe), e.removeEventListener("touchend", Me), e.removeEventListener("touchcancel", Be);
2400
+ }
2401
+ function H(e) {
2402
+ const t = e.currentTarget;
2403
+ e.closePopover = !t.$_vclosepopover_touch, e.closeAllPopover = t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all;
2404
+ }
2405
+ function Oe(e) {
2406
+ if (e.changedTouches.length === 1) {
2407
+ const t = e.currentTarget;
2408
+ t.$_vclosepopover_touch = !0;
2409
+ t.$_vclosepopover_touchPoint = e.changedTouches[0], t.addEventListener("touchend", Me), t.addEventListener("touchcancel", Be);
2410
+ }
2411
+ }
2412
+ function Me(e) {
2413
+ const t = e.currentTarget;
2414
+ if (t.$_vclosepopover_touch = !1, e.changedTouches.length === 1) {
2415
+ const o = e.changedTouches[0], i = t.$_vclosepopover_touchPoint;
2416
+ e.closePopover = Math.abs(o.screenY - i.screenY) < 20 && Math.abs(o.screenX - i.screenX) < 20, e.closeAllPopover = t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all;
2417
+ }
2418
+ }
2419
+ function Be(e) {
2420
+ const t = e.currentTarget;
2421
+ t.$_vclosepopover_touch = !1;
2422
+ }
2423
+ var ie = {
2424
+ beforeMount(e, { value: t, modifiers: o }) {
2425
+ e.$_closePopoverModifiers = o, (typeof t > "u" || t) && ge(e);
2426
+ },
2427
+ updated(e, { value: t, oldValue: o, modifiers: i }) {
2428
+ e.$_closePopoverModifiers = i, t !== o && (typeof t > "u" || t ? ge(e) : we(e));
2429
+ },
2430
+ beforeUnmount(e) {
2431
+ we(e);
2432
+ }
2433
+ };
2434
+ function Ct(e, t = {}) {
2435
+ e.$_vTooltipInstalled || (e.$_vTooltipInstalled = !0, ye(h, t), e.directive("tooltip", oe), e.directive("close-popper", ie), e.component("VTooltip", Ce), e.component("VDropdown", Se), e.component("VMenu", be));
2436
+ }
2437
+ var Gt = {
2438
+ version: "5.2.2",
2439
+ install: Ct,
2440
+ options: h
2441
+ };
2442
+ //#endregion
2443
+ //#region \0vue-router/auto-routes
2444
+ var routes = [
2445
+ {
2446
+ path: "/",
2447
+ name: "/",
2448
+ component: () => __vitePreload(() => import("./pages-CTRaZwAP.js"), __vite__mapDeps([0,1,2,3,4,5,6]), import.meta.url)
2449
+ },
2450
+ {
2451
+ path: "/component",
2452
+ name: "/component",
2453
+ component: () => __vitePreload(() => import("./component-B7OC6axd.js"), __vite__mapDeps([7,3,4,8,1,9,10,11,12]), import.meta.url)
2454
+ },
2455
+ {
2456
+ path: "/import",
2457
+ name: "/import",
2458
+ component: () => __vitePreload(() => import("./import-C7KwSxxY.js"), __vite__mapDeps([13,3,4,8,1,9,10,11,12]), import.meta.url)
2459
+ },
2460
+ {
2461
+ path: "/issue",
2462
+ name: "/issue",
2463
+ component: () => __vitePreload(() => import("./issue-BSGRP6QK.js"), __vite__mapDeps([14,1,3,9,5,15]), import.meta.url)
2464
+ },
2465
+ {
2466
+ path: "/server-router",
2467
+ name: "/server-router",
2468
+ component: () => __vitePreload(() => import("./server-router-C8joyG3R.js"), __vite__mapDeps([16,1,2,3,9,4,8,10,11,5,17]), import.meta.url)
2469
+ }
2470
+ ];
2471
+ //#endregion
2472
+ //#region src/client/@ui/Layout.vue?vue&type=script&setup=true&lang.ts
2473
+ var _hoisted_1$1 = { class: "w-full h-full of-auto!" };
2474
+ //#endregion
2475
+ //#region src/client/@ui/Layout.vue
2476
+ var Layout_default = /* @__PURE__ */ defineComponent({
2477
+ name: "Layout",
2478
+ __name: "Layout",
2479
+ setup(__props) {
2480
+ return (_ctx, _cache) => {
2481
+ return openBlock(), createElementBlock("div", _hoisted_1$1, [renderSlot(_ctx.$slots, "default")]);
2482
+ };
2483
+ }
2484
+ });
2485
+ //#endregion
2486
+ //#region src/client/App.vue?vue&type=script&setup=true&lang.ts
2487
+ var _hoisted_1 = { class: "h-screen w-screen grid grid-row-[min-content_1fr]" };
2488
+ //#endregion
2489
+ //#region src/client/App.vue
2490
+ var App_default = /* @__PURE__ */ defineComponent({
2491
+ name: "App",
2492
+ __name: "App",
2493
+ setup(__props) {
2494
+ return (_ctx, _cache) => {
2495
+ const _component_RouterView = resolveComponent("RouterView");
2496
+ const _component_Layout = Layout_default;
2497
+ return openBlock(), createElementBlock("main", _hoisted_1, [createVNode(_component_Layout, null, {
2498
+ default: withCtx(() => [(openBlock(), createBlock(Suspense, null, {
2499
+ fallback: withCtx(() => [..._cache[0] || (_cache[0] = [createTextVNode(" Loading... ", -1)])]),
2500
+ default: withCtx(() => [createVNode(_component_RouterView)]),
2501
+ _: 1
2502
+ }))]),
2503
+ _: 1
2504
+ })]);
2505
+ };
2506
+ }
2507
+ });
2508
+ //#endregion
2509
+ //#region src/client/main.ts
2510
+ /**
2511
+ * Devtools 客户端入口。
2512
+ *
2513
+ * - 使用 Hash 路由,避免与宿主应用 history 冲突。
2514
+ * - 以 Suspense 包裹 App,便于页面级异步组件加载。
2515
+ * - 仅在 devtools 的独立 iframe 中挂载,与宿主样式/状态隔离。
2516
+ */
2517
+ var app = createApp(() => h$2(Suspense, {}, {
2518
+ default: () => h$2(App_default),
2519
+ fallback: "Loading..."
2520
+ }));
2521
+ var router = createRouter({
2522
+ routes,
2523
+ history: createWebHashHistory()
2524
+ });
2525
+ app.use(router);
2526
+ app.use(Gt);
2527
+ app.mount("#app");
2528
+ //#endregion