ropav 0.0.10 → 0.0.11

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 (227) hide show
  1. package/README.md +6 -0
  2. package/dist/accordion.css +115 -111
  3. package/dist/accordion.js +60 -16
  4. package/dist/alert.css +110 -108
  5. package/dist/alert.js +48 -26
  6. package/dist/aspect-ratio.css +17 -15
  7. package/dist/aspect-ratio.js +20 -6
  8. package/dist/avatar.css +98 -96
  9. package/dist/avatar.js +27 -16
  10. package/dist/badge.css +95 -93
  11. package/dist/badge.js +29 -16
  12. package/dist/base.css +672 -671
  13. package/dist/button-group.css +39 -37
  14. package/dist/button-group.js +23 -12
  15. package/dist/button-link.css +160 -158
  16. package/dist/button-link.js +43 -24
  17. package/dist/button.css +160 -158
  18. package/dist/button.js +37 -19
  19. package/dist/card.css +109 -107
  20. package/dist/card.js +42 -17
  21. package/dist/checkbox.css +139 -137
  22. package/dist/checkbox.js +79 -28
  23. package/dist/collapse.css +29 -27
  24. package/dist/collapse.js +44 -10
  25. package/dist/color-input.css +137 -107
  26. package/dist/color-input.js +86 -17
  27. package/dist/color-picker.css +309 -303
  28. package/dist/color-picker.js +147 -54
  29. package/dist/color-picker2.js +9 -1
  30. package/dist/color-swatch.css +48 -46
  31. package/dist/color-swatch.js +15 -11
  32. package/dist/color-swatch2.js +4 -0
  33. package/dist/components/accordion/accordion-item.d.ts +13 -1
  34. package/dist/components/accordion/index.d.ts +2 -1
  35. package/dist/components/accordion/index.js +2 -2
  36. package/dist/components/accordion/types.d.ts +9 -4
  37. package/dist/components/alert/alert.d.ts +2 -2
  38. package/dist/components/alert/index.d.ts +2 -2
  39. package/dist/components/alert/index.js +2 -2
  40. package/dist/components/alert/types.d.ts +4 -1
  41. package/dist/components/aspect-ratio/index.d.ts +2 -1
  42. package/dist/components/aspect-ratio/index.js +2 -2
  43. package/dist/components/aspect-ratio/types.d.ts +4 -1
  44. package/dist/components/avatar/index.d.ts +2 -2
  45. package/dist/components/avatar/index.js +2 -2
  46. package/dist/components/avatar/types.d.ts +4 -1
  47. package/dist/components/badge/index.d.ts +2 -2
  48. package/dist/components/badge/index.js +2 -2
  49. package/dist/components/badge/types.d.ts +4 -1
  50. package/dist/components/button/index.d.ts +2 -1
  51. package/dist/components/button/index.js +2 -2
  52. package/dist/components/button/types.d.ts +4 -1
  53. package/dist/components/button-group/index.d.ts +2 -1
  54. package/dist/components/button-group/index.js +2 -2
  55. package/dist/components/button-group/types.d.ts +4 -1
  56. package/dist/components/button-link/index.d.ts +2 -1
  57. package/dist/components/button-link/index.js +2 -2
  58. package/dist/components/button-link/types.d.ts +4 -1
  59. package/dist/components/card/index.d.ts +2 -1
  60. package/dist/components/card/index.js +2 -2
  61. package/dist/components/card/types.d.ts +5 -1
  62. package/dist/components/checkbox/checkbox.d.ts +4 -1
  63. package/dist/components/checkbox/index.d.ts +2 -1
  64. package/dist/components/checkbox/index.js +2 -2
  65. package/dist/components/checkbox/types.d.ts +6 -1
  66. package/dist/components/checkbox/useCheckbox.d.ts +2 -0
  67. package/dist/components/collapse/collapse.d.ts +2 -2
  68. package/dist/components/collapse/index.d.ts +2 -1
  69. package/dist/components/collapse/index.js +2 -2
  70. package/dist/components/collapse/types.d.ts +9 -2
  71. package/dist/components/color-input/index.d.ts +2 -1
  72. package/dist/components/color-input/index.js +2 -2
  73. package/dist/components/color-input/types.d.ts +4 -1
  74. package/dist/components/color-picker/index.d.ts +2 -2
  75. package/dist/components/color-picker/index.js +2 -2
  76. package/dist/components/color-picker/types.d.ts +13 -1
  77. package/dist/components/color-swatch/index.d.ts +2 -1
  78. package/dist/components/color-swatch/index.js +2 -1
  79. package/dist/components/color-swatch/types.d.ts +4 -1
  80. package/dist/components/dropdown-menu/dropdown-menu-primitives.d.ts +724 -0
  81. package/dist/components/dropdown-menu/dropdown-menu.d.ts +3 -3
  82. package/dist/components/dropdown-menu/index.d.ts +53 -1
  83. package/dist/components/dropdown-menu/index.js +2 -2
  84. package/dist/components/dropdown-menu/types.d.ts +142 -6
  85. package/dist/components/dropdown-menu/useDropdownMenu.d.ts +11 -3
  86. package/dist/components/dropdown-menu/useDropdownMenuDisclosure.d.ts +5 -3
  87. package/dist/components/dropdown-menu/useDropdownMenuDom.d.ts +2 -1
  88. package/dist/components/dropdown-menu/useDropdownMenuInteractions.d.ts +4 -4
  89. package/dist/components/dropdown-menu/useDropdownMenuPortalPosition.d.ts +19 -0
  90. package/dist/components/dropdown-menu/useDropdownMenuRenderItems.d.ts +14 -2
  91. package/dist/components/field/index.d.ts +2 -1
  92. package/dist/components/field/index.js +2 -2
  93. package/dist/components/field/types.d.ts +4 -1
  94. package/dist/components/floating/index.d.ts +1 -0
  95. package/dist/components/floating/index.js +0 -0
  96. package/dist/components/floating/types.d.ts +31 -0
  97. package/dist/components/floating/useFloatingPosition.d.ts +38 -0
  98. package/dist/components/focus-trap/focus-trap.d.ts +31 -0
  99. package/dist/components/focus-trap/index.d.ts +4 -0
  100. package/dist/components/focus-trap/index.js +3 -0
  101. package/dist/components/focus-trap/types.d.ts +41 -0
  102. package/dist/components/focus-trap/useFocusTrap.d.ts +2 -0
  103. package/dist/components/icon-button/index.d.ts +2 -1
  104. package/dist/components/icon-button/index.js +2 -1
  105. package/dist/components/icon-button/types.d.ts +4 -1
  106. package/dist/components/input/index.d.ts +2 -1
  107. package/dist/components/input/index.js +2 -1
  108. package/dist/components/input/types.d.ts +4 -1
  109. package/dist/components/modal/index.d.ts +2 -1
  110. package/dist/components/modal/index.js +2 -2
  111. package/dist/components/modal/types.d.ts +8 -1
  112. package/dist/components/number-input/index.d.ts +2 -1
  113. package/dist/components/number-input/index.js +2 -2
  114. package/dist/components/number-input/types.d.ts +4 -1
  115. package/dist/components/overlay/index.d.ts +2 -1
  116. package/dist/components/overlay/index.js +2 -1
  117. package/dist/components/overlay/types.d.ts +4 -1
  118. package/dist/components/popover/index.d.ts +2 -2
  119. package/dist/components/popover/index.js +2 -2
  120. package/dist/components/popover/popover.d.ts +2 -2
  121. package/dist/components/popover/types.d.ts +20 -11
  122. package/dist/components/popover/usePopover.d.ts +9 -1
  123. package/dist/components/progress/index.d.ts +2 -2
  124. package/dist/components/progress/index.js +2 -2
  125. package/dist/components/progress/types.d.ts +4 -1
  126. package/dist/components/radio/index.d.ts +2 -1
  127. package/dist/components/radio/index.js +2 -2
  128. package/dist/components/radio/radio.d.ts +8 -3
  129. package/dist/components/radio/types.d.ts +20 -3
  130. package/dist/components/radio/useRadio.d.ts +9 -4
  131. package/dist/components/select/index.d.ts +2 -1
  132. package/dist/components/select/index.js +2 -2
  133. package/dist/components/select/types.d.ts +4 -1
  134. package/dist/components/select/useSelect.d.ts +2 -1
  135. package/dist/components/slider/index.d.ts +2 -2
  136. package/dist/components/slider/index.js +2 -2
  137. package/dist/components/slider/range-slider-tooltip.d.ts +3 -0
  138. package/dist/components/slider/range-slider.d.ts +4 -1
  139. package/dist/components/slider/slider.d.ts +4 -1
  140. package/dist/components/slider/sliderCore.d.ts +4 -4
  141. package/dist/components/slider/types.d.ts +12 -2
  142. package/dist/components/slider/useRangeSlider.d.ts +1 -1
  143. package/dist/components/slider/useSlider.d.ts +1 -1
  144. package/dist/components/switch/index.d.ts +2 -1
  145. package/dist/components/switch/index.js +2 -2
  146. package/dist/components/switch/switch.d.ts +4 -1
  147. package/dist/components/switch/types.d.ts +6 -1
  148. package/dist/components/switch/useSwitch.d.ts +2 -0
  149. package/dist/components/tabs/index.d.ts +2 -1
  150. package/dist/components/tabs/index.js +2 -2
  151. package/dist/components/tabs/types.d.ts +13 -4
  152. package/dist/components/teleport-provider/index.d.ts +2 -0
  153. package/dist/components/teleport-provider/index.js +2 -0
  154. package/dist/components/teleport-provider/teleport-provider.d.ts +21 -0
  155. package/dist/components/teleport-provider/types.d.ts +4 -0
  156. package/dist/components/teleport-provider/useTeleportTarget.d.ts +5 -0
  157. package/dist/components/textarea/index.d.ts +2 -1
  158. package/dist/components/textarea/index.js +2 -2
  159. package/dist/components/textarea/textarea.d.ts +4 -1
  160. package/dist/components/textarea/types.d.ts +6 -1
  161. package/dist/components/textarea/useTextarea.d.ts +1 -0
  162. package/dist/components/toast/index.d.ts +2 -2
  163. package/dist/components/toast/index.js +2 -2
  164. package/dist/components/toast/toast.d.ts +2 -2
  165. package/dist/components/toast/types.d.ts +10 -6
  166. package/dist/components/tooltip/index.d.ts +2 -1
  167. package/dist/components/tooltip/index.js +2 -1
  168. package/dist/components/tooltip/tooltip.d.ts +2 -2
  169. package/dist/components/tooltip/types.d.ts +13 -12
  170. package/dist/components/tooltip/useTooltip.d.ts +13 -3
  171. package/dist/dropdown-menu.css +191 -107
  172. package/dist/dropdown-menu.js +1582 -81
  173. package/dist/field.css +41 -39
  174. package/dist/field.js +40 -16
  175. package/dist/focus-trap.js +80 -0
  176. package/dist/icon-button.css +193 -189
  177. package/dist/icon-button.js +23 -18
  178. package/dist/icon-button2.js +8 -0
  179. package/dist/index.d.ts +4 -0
  180. package/dist/index.js +36 -32
  181. package/dist/input.css +122 -120
  182. package/dist/input.js +47 -34
  183. package/dist/input2.js +9 -0
  184. package/dist/legacy-unlayered.css +5461 -0
  185. package/dist/modal.css +129 -127
  186. package/dist/modal.js +160 -200
  187. package/dist/number-input.css +87 -85
  188. package/dist/number-input.js +61 -17
  189. package/dist/overlay.css +26 -24
  190. package/dist/overlay.js +17 -9
  191. package/dist/overlay2.js +4 -0
  192. package/dist/popover.css +140 -107
  193. package/dist/popover.js +288 -193
  194. package/dist/popover2.js +6 -1
  195. package/dist/progress.css +101 -99
  196. package/dist/progress.js +50 -28
  197. package/dist/radio.css +114 -105
  198. package/dist/radio.js +154 -56
  199. package/dist/select.css +244 -242
  200. package/dist/select.js +92 -47
  201. package/dist/slider.css +1109 -1031
  202. package/dist/slider.js +330 -163
  203. package/dist/styles-api.d.ts +22 -0
  204. package/dist/styles-api.js +49 -0
  205. package/dist/switch.css +120 -108
  206. package/dist/switch.js +89 -33
  207. package/dist/tabs.css +286 -278
  208. package/dist/tabs.js +60 -21
  209. package/dist/teleport-provider.js +15 -0
  210. package/dist/textarea.css +132 -130
  211. package/dist/textarea.js +69 -27
  212. package/dist/toast.css +229 -225
  213. package/dist/toast.js +102 -42
  214. package/dist/tooltip.css +137 -107
  215. package/dist/tooltip.js +180 -228
  216. package/dist/tooltip2.js +8 -0
  217. package/dist/useClickOutside.js +1 -1
  218. package/dist/useFloatingPosition.js +1284 -0
  219. package/dist/useFocusTrap.js +130 -0
  220. package/dist/useTeleportTarget.js +29 -0
  221. package/docs/public-styles-api.md +133 -0
  222. package/docs/public-tokens.md +545 -0
  223. package/package.json +29 -5
  224. package/src/styles/_tokens.scss +33 -28
  225. package/src/styles/_utilities.scss +11 -9
  226. package/src/styles/styles-manifest.json +4125 -0
  227. package/dist/rafScheduler.js +0 -34
@@ -0,0 +1,1284 @@
1
+ import { computed, isRef, nextTick, onBeforeUnmount, onMounted, ref, shallowRef, watch } from "vue";
2
+ //#region node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
3
+ var min = Math.min;
4
+ var max = Math.max;
5
+ var round = Math.round;
6
+ var floor = Math.floor;
7
+ var createCoords = (v) => ({
8
+ x: v,
9
+ y: v
10
+ });
11
+ var oppositeSideMap = {
12
+ left: "right",
13
+ right: "left",
14
+ bottom: "top",
15
+ top: "bottom"
16
+ };
17
+ function clamp(start, value, end) {
18
+ return max(start, min(value, end));
19
+ }
20
+ function evaluate(value, param) {
21
+ return typeof value === "function" ? value(param) : value;
22
+ }
23
+ function getSide(placement) {
24
+ return placement.split("-")[0];
25
+ }
26
+ function getAlignment(placement) {
27
+ return placement.split("-")[1];
28
+ }
29
+ function getOppositeAxis(axis) {
30
+ return axis === "x" ? "y" : "x";
31
+ }
32
+ function getAxisLength(axis) {
33
+ return axis === "y" ? "height" : "width";
34
+ }
35
+ function getSideAxis(placement) {
36
+ const firstChar = placement[0];
37
+ return firstChar === "t" || firstChar === "b" ? "y" : "x";
38
+ }
39
+ function getAlignmentAxis(placement) {
40
+ return getOppositeAxis(getSideAxis(placement));
41
+ }
42
+ function getAlignmentSides(placement, rects, rtl) {
43
+ if (rtl === void 0) rtl = false;
44
+ const alignment = getAlignment(placement);
45
+ const alignmentAxis = getAlignmentAxis(placement);
46
+ const length = getAxisLength(alignmentAxis);
47
+ let mainAlignmentSide = alignmentAxis === "x" ? alignment === (rtl ? "end" : "start") ? "right" : "left" : alignment === "start" ? "bottom" : "top";
48
+ if (rects.reference[length] > rects.floating[length]) mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
49
+ return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
50
+ }
51
+ function getExpandedPlacements(placement) {
52
+ const oppositePlacement = getOppositePlacement(placement);
53
+ return [
54
+ getOppositeAlignmentPlacement(placement),
55
+ oppositePlacement,
56
+ getOppositeAlignmentPlacement(oppositePlacement)
57
+ ];
58
+ }
59
+ function getOppositeAlignmentPlacement(placement) {
60
+ return placement.includes("start") ? placement.replace("start", "end") : placement.replace("end", "start");
61
+ }
62
+ var lrPlacement = ["left", "right"];
63
+ var rlPlacement = ["right", "left"];
64
+ var tbPlacement = ["top", "bottom"];
65
+ var btPlacement = ["bottom", "top"];
66
+ function getSideList(side, isStart, rtl) {
67
+ switch (side) {
68
+ case "top":
69
+ case "bottom":
70
+ if (rtl) return isStart ? rlPlacement : lrPlacement;
71
+ return isStart ? lrPlacement : rlPlacement;
72
+ case "left":
73
+ case "right": return isStart ? tbPlacement : btPlacement;
74
+ default: return [];
75
+ }
76
+ }
77
+ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
78
+ const alignment = getAlignment(placement);
79
+ let list = getSideList(getSide(placement), direction === "start", rtl);
80
+ if (alignment) {
81
+ list = list.map((side) => side + "-" + alignment);
82
+ if (flipAlignment) list = list.concat(list.map(getOppositeAlignmentPlacement));
83
+ }
84
+ return list;
85
+ }
86
+ function getOppositePlacement(placement) {
87
+ const side = getSide(placement);
88
+ return oppositeSideMap[side] + placement.slice(side.length);
89
+ }
90
+ function expandPaddingObject(padding) {
91
+ var _padding$top, _padding$right, _padding$bottom, _padding$left;
92
+ return {
93
+ top: (_padding$top = padding.top) != null ? _padding$top : 0,
94
+ right: (_padding$right = padding.right) != null ? _padding$right : 0,
95
+ bottom: (_padding$bottom = padding.bottom) != null ? _padding$bottom : 0,
96
+ left: (_padding$left = padding.left) != null ? _padding$left : 0
97
+ };
98
+ }
99
+ function getPaddingObject(padding) {
100
+ return typeof padding !== "number" ? expandPaddingObject(padding) : {
101
+ top: padding,
102
+ right: padding,
103
+ bottom: padding,
104
+ left: padding
105
+ };
106
+ }
107
+ function rectToClientRect(rect) {
108
+ const { x, y, width, height } = rect;
109
+ return {
110
+ width,
111
+ height,
112
+ top: y,
113
+ left: x,
114
+ right: x + width,
115
+ bottom: y + height,
116
+ x,
117
+ y
118
+ };
119
+ }
120
+ //#endregion
121
+ //#region node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
122
+ function computeCoordsFromPlacement(_ref, placement, rtl) {
123
+ let { reference, floating } = _ref;
124
+ const sideAxis = getSideAxis(placement);
125
+ const alignmentAxis = getAlignmentAxis(placement);
126
+ const alignLength = getAxisLength(alignmentAxis);
127
+ const side = getSide(placement);
128
+ const isVertical = sideAxis === "y";
129
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
130
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
131
+ const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
132
+ let coords;
133
+ switch (side) {
134
+ case "top":
135
+ coords = {
136
+ x: commonX,
137
+ y: reference.y - floating.height
138
+ };
139
+ break;
140
+ case "bottom":
141
+ coords = {
142
+ x: commonX,
143
+ y: reference.y + reference.height
144
+ };
145
+ break;
146
+ case "right":
147
+ coords = {
148
+ x: reference.x + reference.width,
149
+ y: commonY
150
+ };
151
+ break;
152
+ case "left":
153
+ coords = {
154
+ x: reference.x - floating.width,
155
+ y: commonY
156
+ };
157
+ break;
158
+ default: coords = {
159
+ x: reference.x,
160
+ y: reference.y
161
+ };
162
+ }
163
+ const alignment = getAlignment(placement);
164
+ if (alignment) coords[alignmentAxis] += commonAlign * (alignment === "end" ? 1 : -1) * (rtl && isVertical ? -1 : 1);
165
+ return coords;
166
+ }
167
+ /**
168
+ * Resolves with an object of overflow side offsets that determine how much the
169
+ * element is overflowing a given clipping boundary on each side.
170
+ * - positive = overflowing the boundary by that number of pixels
171
+ * - negative = how many pixels left before it will overflow
172
+ * - 0 = lies flush with the boundary
173
+ * @see https://floating-ui.com/docs/detectOverflow
174
+ */
175
+ async function detectOverflow(state, options) {
176
+ var _await$platform$isEle;
177
+ if (options === void 0) options = {};
178
+ const { x, y, platform, rects, elements, strategy } = state;
179
+ const { boundary = "clippingAncestors", rootBoundary = "viewport", elementContext = "floating", altBoundary = false, padding = 0 } = evaluate(options, state);
180
+ const paddingObject = getPaddingObject(padding);
181
+ const element = elements[altBoundary ? elementContext === "floating" ? "reference" : "floating" : elementContext];
182
+ const clippingClientRect = rectToClientRect(await platform.getClippingRect({
183
+ 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)),
184
+ boundary,
185
+ rootBoundary,
186
+ strategy
187
+ }));
188
+ const rect = elementContext === "floating" ? {
189
+ x,
190
+ y,
191
+ width: rects.floating.width,
192
+ height: rects.floating.height
193
+ } : rects.reference;
194
+ const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
195
+ const offsetScale = await (platform.isElement == null ? void 0 : platform.isElement(offsetParent)) && await (platform.getScale == null ? void 0 : platform.getScale(offsetParent)) || {
196
+ x: 1,
197
+ y: 1
198
+ };
199
+ const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
200
+ elements,
201
+ rect,
202
+ offsetParent,
203
+ strategy
204
+ }) : rect);
205
+ return {
206
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
207
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
208
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
209
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
210
+ };
211
+ }
212
+ var MAX_RESET_COUNT = 50;
213
+ /**
214
+ * Computes the `x` and `y` coordinates that will place the floating element
215
+ * next to a given reference element.
216
+ *
217
+ * This export does not have any `platform` interface logic. You will need to
218
+ * write one for the platform you are using Floating UI with.
219
+ */
220
+ var computePosition$1 = async (reference, floating, config) => {
221
+ const { placement = "bottom", strategy = "absolute", middleware = [], platform } = config;
222
+ const platformWithDetectOverflow = platform.detectOverflow ? platform : {
223
+ ...platform,
224
+ detectOverflow
225
+ };
226
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
227
+ let rects = await platform.getElementRects({
228
+ reference,
229
+ floating,
230
+ strategy
231
+ });
232
+ let { x, y } = computeCoordsFromPlacement(rects, placement, rtl);
233
+ let statefulPlacement = placement;
234
+ let resetCount = 0;
235
+ const middlewareData = {};
236
+ for (let i = 0; i < middleware.length; i++) {
237
+ const currentMiddleware = middleware[i];
238
+ if (!currentMiddleware) continue;
239
+ const { name, fn } = currentMiddleware;
240
+ const { x: nextX, y: nextY, data, reset } = await fn({
241
+ x,
242
+ y,
243
+ initialPlacement: placement,
244
+ placement: statefulPlacement,
245
+ strategy,
246
+ middlewareData,
247
+ rects,
248
+ platform: platformWithDetectOverflow,
249
+ elements: {
250
+ reference,
251
+ floating
252
+ }
253
+ });
254
+ x = nextX != null ? nextX : x;
255
+ y = nextY != null ? nextY : y;
256
+ middlewareData[name] = {
257
+ ...middlewareData[name],
258
+ ...data
259
+ };
260
+ if (reset && resetCount < MAX_RESET_COUNT) {
261
+ resetCount++;
262
+ if (typeof reset === "object") {
263
+ if (reset.placement) statefulPlacement = reset.placement;
264
+ if (reset.rects) rects = reset.rects === true ? await platform.getElementRects({
265
+ reference,
266
+ floating,
267
+ strategy
268
+ }) : reset.rects;
269
+ ({x, y} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
270
+ }
271
+ i = -1;
272
+ }
273
+ }
274
+ return {
275
+ x,
276
+ y,
277
+ placement: statefulPlacement,
278
+ strategy,
279
+ middlewareData
280
+ };
281
+ };
282
+ /**
283
+ * Provides data to position an inner element of the floating element so that it
284
+ * appears centered to the reference element.
285
+ * @see https://floating-ui.com/docs/arrow
286
+ */
287
+ var arrow$1 = (options) => ({
288
+ name: "arrow",
289
+ options,
290
+ async fn(state) {
291
+ const { x, y, placement, rects, platform, elements, middlewareData } = state;
292
+ const { element, padding = 0 } = evaluate(options, state) || {};
293
+ if (element == null) return {};
294
+ const paddingObject = getPaddingObject(padding);
295
+ const coords = {
296
+ x,
297
+ y
298
+ };
299
+ const axis = getAlignmentAxis(placement);
300
+ const length = getAxisLength(axis);
301
+ const arrowDimensions = await platform.getDimensions(element);
302
+ const isYAxis = axis === "y";
303
+ const minProp = isYAxis ? "top" : "left";
304
+ const maxProp = isYAxis ? "bottom" : "right";
305
+ const clientProp = isYAxis ? "clientHeight" : "clientWidth";
306
+ const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
307
+ const startDiff = coords[axis] - rects.reference[axis];
308
+ const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
309
+ let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
310
+ if (!clientSize || !await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent))) clientSize = elements.floating[clientProp] || rects.floating[length];
311
+ const centerToReference = endDiff / 2 - startDiff / 2;
312
+ const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
313
+ const minPadding = min(paddingObject[minProp], largestPossiblePadding);
314
+ const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
315
+ const max = clientSize - arrowDimensions[length] - maxPadding;
316
+ const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
317
+ const offset = clamp(minPadding, center, max);
318
+ const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < minPadding ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
319
+ const alignmentOffset = shouldAddOffset ? center < minPadding ? center - minPadding : center - max : 0;
320
+ return {
321
+ [axis]: coords[axis] + alignmentOffset,
322
+ data: {
323
+ [axis]: offset,
324
+ centerOffset: center - offset - alignmentOffset,
325
+ ...shouldAddOffset && { alignmentOffset }
326
+ },
327
+ reset: shouldAddOffset
328
+ };
329
+ }
330
+ });
331
+ /**
332
+ * Optimizes the visibility of the floating element by flipping the `placement`
333
+ * in order to keep it in view when the preferred placement(s) will overflow the
334
+ * clipping boundary. Alternative to `autoPlacement`.
335
+ * @see https://floating-ui.com/docs/flip
336
+ */
337
+ var flip$1 = function(options) {
338
+ if (options === void 0) options = {};
339
+ return {
340
+ name: "flip",
341
+ options,
342
+ async fn(state) {
343
+ var _middlewareData$arrow, _middlewareData$flip;
344
+ const { placement, middlewareData, rects, initialPlacement, platform, elements } = state;
345
+ const { mainAxis: checkMainAxis = true, crossAxis: checkCrossAxis = true, fallbackPlacements: specifiedFallbackPlacements, fallbackStrategy = "bestFit", fallbackAxisSideDirection = "none", flipAlignment = true, ...detectOverflowOptions } = evaluate(options, state);
346
+ if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) return {};
347
+ const side = getSide(placement);
348
+ const initialSideAxis = getSideAxis(initialPlacement);
349
+ const isBasePlacement = getSide(initialPlacement) === initialPlacement;
350
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
351
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
352
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== "none";
353
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
354
+ const placements = [initialPlacement, ...fallbackPlacements];
355
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
356
+ const overflows = [];
357
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
358
+ if (checkMainAxis) overflows.push(overflow[side]);
359
+ if (checkCrossAxis) {
360
+ const sides = getAlignmentSides(placement, rects, rtl);
361
+ overflows.push(overflow[sides[0]], overflow[sides[1]]);
362
+ }
363
+ overflowsData = [...overflowsData, {
364
+ placement,
365
+ overflows
366
+ }];
367
+ if (!overflows.every((side) => side <= 0)) {
368
+ var _middlewareData$flip2, _overflowsData$filter;
369
+ const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
370
+ const nextPlacement = placements[nextIndex];
371
+ if (nextPlacement) {
372
+ if (!(checkCrossAxis === "alignment" ? initialSideAxis !== getSideAxis(nextPlacement) : false) || overflowsData.every((d) => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) return {
373
+ data: {
374
+ index: nextIndex,
375
+ overflows: overflowsData
376
+ },
377
+ reset: { placement: nextPlacement }
378
+ };
379
+ }
380
+ 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;
381
+ if (!resetPlacement) switch (fallbackStrategy) {
382
+ case "bestFit": {
383
+ var _overflowsData$filter2;
384
+ const placement = (_overflowsData$filter2 = overflowsData.filter((d) => {
385
+ if (hasFallbackAxisSideDirection) {
386
+ const currentSideAxis = getSideAxis(d.placement);
387
+ return currentSideAxis === initialSideAxis || currentSideAxis === "y";
388
+ }
389
+ return true;
390
+ }).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];
391
+ if (placement) resetPlacement = placement;
392
+ break;
393
+ }
394
+ case "initialPlacement":
395
+ resetPlacement = initialPlacement;
396
+ break;
397
+ }
398
+ if (placement !== resetPlacement) return { reset: { placement: resetPlacement } };
399
+ }
400
+ return {};
401
+ }
402
+ };
403
+ };
404
+ var originSides = /*#__PURE__*/ new Set(["left", "top"]);
405
+ async function convertValueToCoords(state, options) {
406
+ const { placement, platform, elements } = state;
407
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
408
+ const side = getSide(placement);
409
+ const alignment = getAlignment(placement);
410
+ const isVertical = getSideAxis(placement) === "y";
411
+ const mainAxisMulti = originSides.has(side) ? -1 : 1;
412
+ const crossAxisMulti = rtl && isVertical ? -1 : 1;
413
+ const rawValue = evaluate(options, state);
414
+ let { mainAxis, crossAxis, alignmentAxis } = typeof rawValue === "number" ? {
415
+ mainAxis: rawValue,
416
+ crossAxis: 0,
417
+ alignmentAxis: null
418
+ } : {
419
+ mainAxis: rawValue.mainAxis || 0,
420
+ crossAxis: rawValue.crossAxis || 0,
421
+ alignmentAxis: rawValue.alignmentAxis
422
+ };
423
+ if (alignment && typeof alignmentAxis === "number") crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
424
+ return isVertical ? {
425
+ x: crossAxis * crossAxisMulti,
426
+ y: mainAxis * mainAxisMulti
427
+ } : {
428
+ x: mainAxis * mainAxisMulti,
429
+ y: crossAxis * crossAxisMulti
430
+ };
431
+ }
432
+ /**
433
+ * Modifies the placement by translating the floating element along the
434
+ * specified axes.
435
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
436
+ * object may be passed.
437
+ * @see https://floating-ui.com/docs/offset
438
+ */
439
+ var offset$1 = function(options) {
440
+ if (options === void 0) options = 0;
441
+ return {
442
+ name: "offset",
443
+ options,
444
+ async fn(state) {
445
+ var _middlewareData$offse, _middlewareData$arrow;
446
+ const { x, y, placement, middlewareData } = state;
447
+ const diffCoords = await convertValueToCoords(state, options);
448
+ if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) return {};
449
+ return {
450
+ x: x + diffCoords.x,
451
+ y: y + diffCoords.y,
452
+ data: {
453
+ ...diffCoords,
454
+ placement
455
+ }
456
+ };
457
+ }
458
+ };
459
+ };
460
+ /**
461
+ * Optimizes the visibility of the floating element by shifting it in order to
462
+ * keep it in view when it will overflow the clipping boundary.
463
+ * @see https://floating-ui.com/docs/shift
464
+ */
465
+ var shift$1 = function(options) {
466
+ if (options === void 0) options = {};
467
+ return {
468
+ name: "shift",
469
+ options,
470
+ async fn(state) {
471
+ const { x, y, placement, platform } = state;
472
+ const { mainAxis: checkMainAxis = true, crossAxis: checkCrossAxis = false, limiter = { fn: (_ref) => {
473
+ let { x, y } = _ref;
474
+ return {
475
+ x,
476
+ y
477
+ };
478
+ } }, ...detectOverflowOptions } = evaluate(options, state);
479
+ const coords = {
480
+ x,
481
+ y
482
+ };
483
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
484
+ const crossAxis = getSideAxis(placement);
485
+ const mainAxis = getOppositeAxis(crossAxis);
486
+ let mainAxisCoord = coords[mainAxis];
487
+ let crossAxisCoord = coords[crossAxis];
488
+ const clampCoord = (axis, coord) => clamp(coord + overflow[axis === "y" ? "top" : "left"], coord, coord - overflow[axis === "y" ? "bottom" : "right"]);
489
+ if (checkMainAxis) mainAxisCoord = clampCoord(mainAxis, mainAxisCoord);
490
+ if (checkCrossAxis) crossAxisCoord = clampCoord(crossAxis, crossAxisCoord);
491
+ const limitedCoords = limiter.fn({
492
+ ...state,
493
+ [mainAxis]: mainAxisCoord,
494
+ [crossAxis]: crossAxisCoord
495
+ });
496
+ return {
497
+ ...limitedCoords,
498
+ data: {
499
+ x: limitedCoords.x - x,
500
+ y: limitedCoords.y - y,
501
+ enabled: {
502
+ [mainAxis]: checkMainAxis,
503
+ [crossAxis]: checkCrossAxis
504
+ }
505
+ }
506
+ };
507
+ }
508
+ };
509
+ };
510
+ //#endregion
511
+ //#region node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
512
+ function hasWindow() {
513
+ return typeof window !== "undefined";
514
+ }
515
+ function getNodeName(node) {
516
+ if (isNode(node)) return (node.nodeName || "").toLowerCase();
517
+ return "#document";
518
+ }
519
+ function getWindow(node) {
520
+ var _node$ownerDocument;
521
+ return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
522
+ }
523
+ function getDocumentElement(node) {
524
+ var _ref;
525
+ return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
526
+ }
527
+ function isNode(value) {
528
+ if (!hasWindow()) return false;
529
+ return value instanceof Node || value instanceof getWindow(value).Node;
530
+ }
531
+ function isElement(value) {
532
+ if (!hasWindow()) return false;
533
+ return value instanceof Element || value instanceof getWindow(value).Element;
534
+ }
535
+ function isHTMLElement(value) {
536
+ if (!hasWindow()) return false;
537
+ return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
538
+ }
539
+ function isShadowRoot(value) {
540
+ if (!hasWindow() || typeof ShadowRoot === "undefined") return false;
541
+ return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
542
+ }
543
+ function isOverflowElement(element) {
544
+ const { overflow, overflowX, overflowY, display } = getComputedStyle$1(element);
545
+ return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== "inline" && display !== "contents";
546
+ }
547
+ function isTableElement(element) {
548
+ return /^(table|td|th)$/.test(getNodeName(element));
549
+ }
550
+ function isTopLayer(element) {
551
+ try {
552
+ if (element.matches(":popover-open")) return true;
553
+ } catch (_e) {}
554
+ try {
555
+ return element.matches(":modal");
556
+ } catch (_e) {
557
+ return false;
558
+ }
559
+ }
560
+ var willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
561
+ var containRe = /paint|layout|strict|content/;
562
+ var isNotNone = (value) => !!value && value !== "none";
563
+ var isWebKitValue;
564
+ function isContainingBlock(elementOrCss) {
565
+ const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
566
+ return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || "") || containRe.test(css.contain || "");
567
+ }
568
+ function getContainingBlock(element) {
569
+ let currentNode = getParentNode(element);
570
+ while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
571
+ if (isContainingBlock(currentNode)) return currentNode;
572
+ else if (isTopLayer(currentNode)) return null;
573
+ currentNode = getParentNode(currentNode);
574
+ }
575
+ return null;
576
+ }
577
+ function isWebKit() {
578
+ if (isWebKitValue == null) isWebKitValue = typeof CSS !== "undefined" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none");
579
+ return isWebKitValue;
580
+ }
581
+ function isLastTraversableNode(node) {
582
+ return /^(html|body|#document)$/.test(getNodeName(node));
583
+ }
584
+ function getComputedStyle$1(element) {
585
+ return getWindow(element).getComputedStyle(element);
586
+ }
587
+ function getNodeScroll(element) {
588
+ if (isElement(element)) return {
589
+ scrollLeft: element.scrollLeft,
590
+ scrollTop: element.scrollTop
591
+ };
592
+ return {
593
+ scrollLeft: element.scrollX,
594
+ scrollTop: element.scrollY
595
+ };
596
+ }
597
+ function getParentNode(node) {
598
+ if (getNodeName(node) === "html") return node;
599
+ const result = node.assignedSlot || node.parentNode || isShadowRoot(node) && node.host || getDocumentElement(node);
600
+ return isShadowRoot(result) ? result.host : result;
601
+ }
602
+ function getNearestOverflowAncestor(node) {
603
+ const parentNode = getParentNode(node);
604
+ if (isLastTraversableNode(parentNode)) return (node.ownerDocument || node).body;
605
+ if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) return parentNode;
606
+ return getNearestOverflowAncestor(parentNode);
607
+ }
608
+ function getOverflowAncestors(node, list, traverseIframes) {
609
+ var _node$ownerDocument2;
610
+ if (list === void 0) list = [];
611
+ if (traverseIframes === void 0) traverseIframes = true;
612
+ const scrollableAncestor = getNearestOverflowAncestor(node);
613
+ const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
614
+ const win = getWindow(scrollableAncestor);
615
+ if (isBody) {
616
+ const frameElement = getFrameElement(win);
617
+ return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
618
+ } else return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
619
+ }
620
+ function getFrameElement(win) {
621
+ return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
622
+ }
623
+ //#endregion
624
+ //#region node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
625
+ function getCssDimensions(element) {
626
+ const css = getComputedStyle$1(element);
627
+ let width = parseFloat(css.width) || 0;
628
+ let height = parseFloat(css.height) || 0;
629
+ const hasOffset = isHTMLElement(element);
630
+ const offsetWidth = hasOffset ? element.offsetWidth : width;
631
+ const offsetHeight = hasOffset ? element.offsetHeight : height;
632
+ const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
633
+ if (shouldFallback) {
634
+ width = offsetWidth;
635
+ height = offsetHeight;
636
+ }
637
+ return {
638
+ width,
639
+ height,
640
+ $: shouldFallback
641
+ };
642
+ }
643
+ function unwrapElement(element) {
644
+ return !isElement(element) ? element.contextElement : element;
645
+ }
646
+ function getScale(element) {
647
+ const domElement = unwrapElement(element);
648
+ if (!isHTMLElement(domElement)) return createCoords(1);
649
+ const rect = domElement.getBoundingClientRect();
650
+ const { width, height, $ } = getCssDimensions(domElement);
651
+ let x = ($ ? round(rect.width) : rect.width) / width;
652
+ let y = ($ ? round(rect.height) : rect.height) / height;
653
+ if (!x || !Number.isFinite(x)) x = 1;
654
+ if (!y || !Number.isFinite(y)) y = 1;
655
+ return {
656
+ x,
657
+ y
658
+ };
659
+ }
660
+ var noOffsets = /*#__PURE__*/ createCoords(0);
661
+ function getVisualOffsets(element) {
662
+ const win = getWindow(element);
663
+ if (!isWebKit() || !win.visualViewport) return noOffsets;
664
+ return {
665
+ x: win.visualViewport.offsetLeft,
666
+ y: win.visualViewport.offsetTop
667
+ };
668
+ }
669
+ function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
670
+ if (isFixed === void 0) isFixed = false;
671
+ return !!floatingOffsetParent && isFixed && floatingOffsetParent === getWindow(element);
672
+ }
673
+ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
674
+ if (includeScale === void 0) includeScale = false;
675
+ if (isFixedStrategy === void 0) isFixedStrategy = false;
676
+ const clientRect = element.getBoundingClientRect();
677
+ const domElement = unwrapElement(element);
678
+ let scale = createCoords(1);
679
+ if (includeScale) if (offsetParent) {
680
+ if (isElement(offsetParent)) scale = getScale(offsetParent);
681
+ } else scale = getScale(element);
682
+ const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
683
+ let x = (clientRect.left + visualOffsets.x) / scale.x;
684
+ let y = (clientRect.top + visualOffsets.y) / scale.y;
685
+ let width = clientRect.width / scale.x;
686
+ let height = clientRect.height / scale.y;
687
+ if (domElement && offsetParent) {
688
+ const win = getWindow(domElement);
689
+ const offsetWin = isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
690
+ let currentWin = win;
691
+ let currentIFrame = getFrameElement(currentWin);
692
+ while (currentIFrame && offsetWin !== currentWin) {
693
+ const iframeScale = getScale(currentIFrame);
694
+ const iframeRect = currentIFrame.getBoundingClientRect();
695
+ const css = getComputedStyle$1(currentIFrame);
696
+ const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
697
+ const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
698
+ x *= iframeScale.x;
699
+ y *= iframeScale.y;
700
+ width *= iframeScale.x;
701
+ height *= iframeScale.y;
702
+ x += left;
703
+ y += top;
704
+ currentWin = getWindow(currentIFrame);
705
+ currentIFrame = getFrameElement(currentWin);
706
+ }
707
+ }
708
+ return rectToClientRect({
709
+ width,
710
+ height,
711
+ x,
712
+ y
713
+ });
714
+ }
715
+ function getWindowScrollBarX(element, rect) {
716
+ const leftScroll = getNodeScroll(element).scrollLeft;
717
+ if (!rect) return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
718
+ return rect.left + leftScroll;
719
+ }
720
+ function getHTMLOffset(documentElement, scroll) {
721
+ const htmlRect = documentElement.getBoundingClientRect();
722
+ return {
723
+ x: htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect),
724
+ y: htmlRect.top + scroll.scrollTop
725
+ };
726
+ }
727
+ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
728
+ let { elements, rect, offsetParent, strategy } = _ref;
729
+ const isFixed = strategy === "fixed";
730
+ const documentElement = getDocumentElement(offsetParent);
731
+ const topLayer = elements ? isTopLayer(elements.floating) : false;
732
+ if (offsetParent === documentElement || topLayer && isFixed) return rect;
733
+ let scroll = {
734
+ scrollLeft: 0,
735
+ scrollTop: 0
736
+ };
737
+ let scale = createCoords(1);
738
+ const offsets = createCoords(0);
739
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
740
+ if (isOffsetParentAnElement || !isFixed) {
741
+ if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) scroll = getNodeScroll(offsetParent);
742
+ if (isOffsetParentAnElement) {
743
+ const offsetRect = getBoundingClientRect(offsetParent);
744
+ scale = getScale(offsetParent);
745
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
746
+ offsets.y = offsetRect.y + offsetParent.clientTop;
747
+ }
748
+ }
749
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
750
+ return {
751
+ width: rect.width * scale.x,
752
+ height: rect.height * scale.y,
753
+ x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
754
+ y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
755
+ };
756
+ }
757
+ function getClientRects(element) {
758
+ return element.getClientRects ? Array.from(element.getClientRects()) : [];
759
+ }
760
+ function getDocumentRect(html) {
761
+ const scroll = getNodeScroll(html);
762
+ const body = html.ownerDocument.body;
763
+ const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
764
+ const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
765
+ let x = -scroll.scrollLeft + getWindowScrollBarX(html);
766
+ const y = -scroll.scrollTop;
767
+ if (getComputedStyle$1(body).direction === "rtl") x += max(html.clientWidth, body.clientWidth) - width;
768
+ return {
769
+ width,
770
+ height,
771
+ x,
772
+ y
773
+ };
774
+ }
775
+ var SCROLLBAR_MAX = 25;
776
+ function getViewportRect(element, strategy, rootBoundary) {
777
+ if (rootBoundary === void 0) rootBoundary = "viewport";
778
+ const isLayoutViewport = rootBoundary === "layoutViewport";
779
+ const win = getWindow(element);
780
+ const html = getDocumentElement(element);
781
+ const visualViewport = win.visualViewport;
782
+ let width = html.clientWidth;
783
+ let height = html.clientHeight;
784
+ let x = 0;
785
+ let y = 0;
786
+ if (visualViewport) {
787
+ const layoutRelativeClientCoords = !isWebKit() || strategy === "fixed";
788
+ if (isLayoutViewport) {
789
+ if (!layoutRelativeClientCoords) {
790
+ x = -visualViewport.offsetLeft;
791
+ y = -visualViewport.offsetTop;
792
+ }
793
+ } else {
794
+ width = visualViewport.width;
795
+ height = visualViewport.height;
796
+ if (layoutRelativeClientCoords) {
797
+ x = visualViewport.offsetLeft;
798
+ y = visualViewport.offsetTop;
799
+ }
800
+ }
801
+ }
802
+ if (getWindowScrollBarX(html) <= 0) {
803
+ const doc = html.ownerDocument;
804
+ const body = doc.body;
805
+ const bodyStyles = getComputedStyle(body);
806
+ const bodyMarginInline = doc.compatMode === "CSS1Compat" ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
807
+ const reservedWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
808
+ const gutter = getComputedStyle(html).scrollbarGutter === "stable both-edges" ? reservedWidth / 2 : reservedWidth;
809
+ if (gutter <= SCROLLBAR_MAX) width -= gutter;
810
+ }
811
+ return {
812
+ width,
813
+ height,
814
+ x,
815
+ y
816
+ };
817
+ }
818
+ function getInnerBoundingClientRect(element, strategy) {
819
+ const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
820
+ const top = clientRect.top + element.clientTop;
821
+ const left = clientRect.left + element.clientLeft;
822
+ const scale = getScale(element);
823
+ return {
824
+ width: element.clientWidth * scale.x,
825
+ height: element.clientHeight * scale.y,
826
+ x: left * scale.x,
827
+ y: top * scale.y
828
+ };
829
+ }
830
+ function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
831
+ let rect;
832
+ if (clippingAncestor === "viewport" || clippingAncestor === "layoutViewport") rect = getViewportRect(element, strategy, clippingAncestor);
833
+ else if (clippingAncestor === "document") rect = getDocumentRect(getDocumentElement(element));
834
+ else if (isElement(clippingAncestor)) rect = getInnerBoundingClientRect(clippingAncestor, strategy);
835
+ else {
836
+ const visualOffsets = getVisualOffsets(element);
837
+ rect = {
838
+ x: clippingAncestor.x - visualOffsets.x,
839
+ y: clippingAncestor.y - visualOffsets.y,
840
+ width: clippingAncestor.width,
841
+ height: clippingAncestor.height
842
+ };
843
+ }
844
+ return rectToClientRect(rect);
845
+ }
846
+ function getClippingElementAncestors(element, cache) {
847
+ const cachedResult = cache.get(element);
848
+ if (cachedResult) return cachedResult;
849
+ let result = getOverflowAncestors(element, [], false).filter((el) => isElement(el) && getNodeName(el) !== "body");
850
+ let lastKeptComputedStyle = null;
851
+ const elementIsFixed = getComputedStyle$1(element).position === "fixed";
852
+ let currentNode = elementIsFixed ? getParentNode(element) : element;
853
+ while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
854
+ const computedStyle = getComputedStyle$1(currentNode);
855
+ const currentNodeIsContaining = isContainingBlock(currentNode);
856
+ const lastPosition = lastKeptComputedStyle ? lastKeptComputedStyle.position : elementIsFixed ? "fixed" : "";
857
+ if (!currentNodeIsContaining && (lastPosition === "fixed" || lastPosition === "absolute" && computedStyle.position === "static")) result = result.filter((ancestor) => ancestor !== currentNode);
858
+ else lastKeptComputedStyle = computedStyle;
859
+ currentNode = getParentNode(currentNode);
860
+ }
861
+ cache.set(element, result);
862
+ return result;
863
+ }
864
+ function getClippingRect(_ref) {
865
+ let { element, boundary, rootBoundary, strategy } = _ref;
866
+ const clippingAncestors = [...boundary === "clippingAncestors" ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary), rootBoundary];
867
+ const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
868
+ let top = firstRect.top;
869
+ let right = firstRect.right;
870
+ let bottom = firstRect.bottom;
871
+ let left = firstRect.left;
872
+ for (let i = 1; i < clippingAncestors.length; i++) {
873
+ const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);
874
+ top = max(rect.top, top);
875
+ right = min(rect.right, right);
876
+ bottom = min(rect.bottom, bottom);
877
+ left = max(rect.left, left);
878
+ }
879
+ return {
880
+ width: right - left,
881
+ height: bottom - top,
882
+ x: left,
883
+ y: top
884
+ };
885
+ }
886
+ function getDimensions(element) {
887
+ const { width, height } = getCssDimensions(element);
888
+ return {
889
+ width,
890
+ height
891
+ };
892
+ }
893
+ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
894
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
895
+ const documentElement = getDocumentElement(offsetParent);
896
+ const isFixed = strategy === "fixed";
897
+ const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
898
+ let scroll = {
899
+ scrollLeft: 0,
900
+ scrollTop: 0
901
+ };
902
+ const offsets = createCoords(0);
903
+ if (isOffsetParentAnElement || !isFixed) {
904
+ if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) scroll = getNodeScroll(offsetParent);
905
+ if (isOffsetParentAnElement) {
906
+ const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
907
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
908
+ offsets.y = offsetRect.y + offsetParent.clientTop;
909
+ }
910
+ }
911
+ if (!isOffsetParentAnElement && documentElement) offsets.x = getWindowScrollBarX(documentElement);
912
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
913
+ return {
914
+ x: rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x,
915
+ y: rect.top + scroll.scrollTop - offsets.y - htmlOffset.y,
916
+ width: rect.width,
917
+ height: rect.height
918
+ };
919
+ }
920
+ function isStaticPositioned(element) {
921
+ return getComputedStyle$1(element).position === "static";
922
+ }
923
+ function getTrueOffsetParent(element, polyfill) {
924
+ if (!isHTMLElement(element) || getComputedStyle$1(element).position === "fixed") return null;
925
+ if (polyfill) return polyfill(element);
926
+ let rawOffsetParent = element.offsetParent;
927
+ if (getDocumentElement(element) === rawOffsetParent) rawOffsetParent = rawOffsetParent.ownerDocument.body;
928
+ return rawOffsetParent;
929
+ }
930
+ function getOffsetParent(element, polyfill) {
931
+ const win = getWindow(element);
932
+ if (isTopLayer(element)) return win;
933
+ if (!isHTMLElement(element)) {
934
+ let svgOffsetParent = getParentNode(element);
935
+ while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
936
+ if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) return svgOffsetParent;
937
+ svgOffsetParent = getParentNode(svgOffsetParent);
938
+ }
939
+ return win;
940
+ }
941
+ let offsetParent = getTrueOffsetParent(element, polyfill);
942
+ while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) offsetParent = getTrueOffsetParent(offsetParent, polyfill);
943
+ if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) return win;
944
+ return offsetParent || getContainingBlock(element) || win;
945
+ }
946
+ var getElementRects = async function(data) {
947
+ const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
948
+ const getDimensionsFn = this.getDimensions;
949
+ const floatingDimensions = await getDimensionsFn(data.floating);
950
+ return {
951
+ reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
952
+ floating: {
953
+ x: 0,
954
+ y: 0,
955
+ width: floatingDimensions.width,
956
+ height: floatingDimensions.height
957
+ }
958
+ };
959
+ };
960
+ function isRTL(element) {
961
+ return getComputedStyle$1(element).direction === "rtl";
962
+ }
963
+ var platform = {
964
+ convertOffsetParentRelativeRectToViewportRelativeRect,
965
+ getDocumentElement,
966
+ getClippingRect,
967
+ getOffsetParent,
968
+ getElementRects,
969
+ getClientRects,
970
+ getDimensions,
971
+ getScale,
972
+ isElement,
973
+ isRTL
974
+ };
975
+ function rectsAreEqual(a, b) {
976
+ return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
977
+ }
978
+ function observeMove(element, onMove, ancestorResize) {
979
+ let io = null;
980
+ let timeoutId;
981
+ const root = getDocumentElement(element);
982
+ function cleanup() {
983
+ var _io;
984
+ clearTimeout(timeoutId);
985
+ (_io = io) == null || _io.disconnect();
986
+ io = null;
987
+ }
988
+ function refresh(skip, threshold) {
989
+ if (skip === void 0) skip = false;
990
+ if (threshold === void 0) threshold = 1;
991
+ cleanup();
992
+ const elementRectForRootMargin = element.getBoundingClientRect();
993
+ const { left, top, width, height } = elementRectForRootMargin;
994
+ if (!skip) onMove();
995
+ if (!width || !height) return;
996
+ const insetTop = floor(top);
997
+ const insetRight = floor(root.clientWidth - (left + width));
998
+ const insetBottom = floor(root.clientHeight - (top + height));
999
+ const insetLeft = floor(left);
1000
+ const options = {
1001
+ rootMargin: -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px",
1002
+ threshold: max(0, min(1, threshold)) || 1
1003
+ };
1004
+ let isFirstUpdate = true;
1005
+ function handleObserve(entries) {
1006
+ const ratio = entries[0].intersectionRatio;
1007
+ if (!rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) return refresh();
1008
+ if (ratio !== threshold) {
1009
+ if (!isFirstUpdate) return refresh();
1010
+ if (!ratio) timeoutId = setTimeout(() => {
1011
+ refresh(false, 1e-7);
1012
+ }, 1e3);
1013
+ else refresh(false, ratio);
1014
+ }
1015
+ isFirstUpdate = false;
1016
+ }
1017
+ try {
1018
+ io = new IntersectionObserver(handleObserve, {
1019
+ ...options,
1020
+ root: root.ownerDocument
1021
+ });
1022
+ } catch (_e) {
1023
+ io = new IntersectionObserver(handleObserve, options);
1024
+ }
1025
+ io.observe(element);
1026
+ }
1027
+ const win = getWindow(element);
1028
+ const handleResize = () => refresh(ancestorResize);
1029
+ win.addEventListener("resize", handleResize);
1030
+ refresh(true);
1031
+ return () => {
1032
+ win.removeEventListener("resize", handleResize);
1033
+ cleanup();
1034
+ };
1035
+ }
1036
+ /**
1037
+ * Automatically updates the position of the floating element when necessary.
1038
+ * Should only be called when the floating element is mounted on the DOM or
1039
+ * visible on the screen.
1040
+ * @returns cleanup function that should be invoked when the floating element is
1041
+ * removed from the DOM or hidden from the screen.
1042
+ * @see https://floating-ui.com/docs/autoUpdate
1043
+ */
1044
+ function autoUpdate(reference, floating, update, options) {
1045
+ if (options === void 0) options = {};
1046
+ const { ancestorScroll = true, ancestorResize = true, elementResize = typeof ResizeObserver === "function", layoutShift = typeof IntersectionObserver === "function", animationFrame = false } = options;
1047
+ const referenceEl = unwrapElement(reference);
1048
+ const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...floating ? getOverflowAncestors(floating) : []] : [];
1049
+ ancestors.forEach((ancestor) => {
1050
+ ancestorScroll && ancestor.addEventListener("scroll", update);
1051
+ ancestorResize && ancestor.addEventListener("resize", update);
1052
+ });
1053
+ const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update, ancestorResize) : null;
1054
+ let reobserveFrame = -1;
1055
+ let resizeObserver = null;
1056
+ if (elementResize) {
1057
+ resizeObserver = new ResizeObserver((_ref) => {
1058
+ let [firstEntry] = _ref;
1059
+ if (firstEntry && firstEntry.target === referenceEl && resizeObserver && floating) {
1060
+ resizeObserver.unobserve(floating);
1061
+ cancelAnimationFrame(reobserveFrame);
1062
+ reobserveFrame = requestAnimationFrame(() => {
1063
+ var _resizeObserver;
1064
+ (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
1065
+ });
1066
+ }
1067
+ update();
1068
+ });
1069
+ if (referenceEl && !animationFrame) resizeObserver.observe(referenceEl);
1070
+ if (floating) resizeObserver.observe(floating);
1071
+ }
1072
+ let frameId;
1073
+ let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
1074
+ if (animationFrame) frameLoop();
1075
+ function frameLoop() {
1076
+ const nextRefRect = getBoundingClientRect(reference);
1077
+ if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) update();
1078
+ prevRefRect = nextRefRect;
1079
+ frameId = requestAnimationFrame(frameLoop);
1080
+ }
1081
+ update();
1082
+ return () => {
1083
+ var _resizeObserver2;
1084
+ ancestors.forEach((ancestor) => {
1085
+ ancestorScroll && ancestor.removeEventListener("scroll", update);
1086
+ ancestorResize && ancestor.removeEventListener("resize", update);
1087
+ });
1088
+ cleanupIo?.();
1089
+ (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
1090
+ resizeObserver = null;
1091
+ if (animationFrame) cancelAnimationFrame(frameId);
1092
+ };
1093
+ }
1094
+ /**
1095
+ * Modifies the placement by translating the floating element along the
1096
+ * specified axes.
1097
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
1098
+ * object may be passed.
1099
+ * @see https://floating-ui.com/docs/offset
1100
+ */
1101
+ var offset = offset$1;
1102
+ /**
1103
+ * Optimizes the visibility of the floating element by shifting it in order to
1104
+ * keep it in view when it will overflow the clipping boundary.
1105
+ * @see https://floating-ui.com/docs/shift
1106
+ */
1107
+ var shift = shift$1;
1108
+ /**
1109
+ * Optimizes the visibility of the floating element by flipping the `placement`
1110
+ * in order to keep it in view when the preferred placement(s) will overflow the
1111
+ * clipping boundary. Alternative to `autoPlacement`.
1112
+ * @see https://floating-ui.com/docs/flip
1113
+ */
1114
+ var flip = flip$1;
1115
+ /**
1116
+ * Provides data to position an inner element of the floating element so that it
1117
+ * appears centered to the reference element.
1118
+ * @see https://floating-ui.com/docs/arrow
1119
+ */
1120
+ var arrow = arrow$1;
1121
+ /**
1122
+ * Computes the `x` and `y` coordinates that will place the floating element
1123
+ * next to a given reference element.
1124
+ */
1125
+ var computePosition = (reference, floating, options) => {
1126
+ const cache = /* @__PURE__ */ new Map();
1127
+ const mergedOptions = options != null ? options : {};
1128
+ const platformWithCache = {
1129
+ ...platform,
1130
+ ...mergedOptions.platform,
1131
+ _c: cache
1132
+ };
1133
+ return computePosition$1(reference, floating, {
1134
+ ...mergedOptions,
1135
+ platform: platformWithCache
1136
+ });
1137
+ };
1138
+ //#endregion
1139
+ //#region src/components/floating/useFloatingPosition.ts
1140
+ var DEFAULT_ARROW_PADDING = 4;
1141
+ function readFloatingTarget(target) {
1142
+ return isRef(target) ? target.value : target;
1143
+ }
1144
+ function isVirtualReference(value) {
1145
+ if (value == null || typeof value !== "object") return false;
1146
+ return "getBoundingClientRect" in value && typeof value.getBoundingClientRect === "function";
1147
+ }
1148
+ function isElementReference(value) {
1149
+ return typeof Element !== "undefined" && value instanceof Element;
1150
+ }
1151
+ function resolveFloatingTarget(target) {
1152
+ if (!target) return null;
1153
+ if (typeof target !== "string") return isVirtualReference(target) ? target : null;
1154
+ if (typeof document === "undefined") return null;
1155
+ try {
1156
+ return document.querySelector(target);
1157
+ } catch {
1158
+ return null;
1159
+ }
1160
+ }
1161
+ function useFloatingTarget(getTarget, fallback) {
1162
+ const resolvedTarget = shallowRef(null);
1163
+ const isExplicitTarget = computed(() => {
1164
+ const target = readFloatingTarget(getTarget());
1165
+ return target != null && target !== "";
1166
+ });
1167
+ const reference = computed(() => isExplicitTarget.value ? resolvedTarget.value : fallback.value);
1168
+ function syncTarget() {
1169
+ resolvedTarget.value = isExplicitTarget.value ? resolveFloatingTarget(readFloatingTarget(getTarget())) : null;
1170
+ }
1171
+ watch(() => readFloatingTarget(getTarget()), syncTarget, { flush: "post" });
1172
+ onMounted(syncTarget);
1173
+ return {
1174
+ isExplicitTarget,
1175
+ reference,
1176
+ resolvedTarget,
1177
+ syncTarget
1178
+ };
1179
+ }
1180
+ function useFloatingPosition(options) {
1181
+ const actualPlacement = ref(options.placement());
1182
+ const isPositioned = ref(false);
1183
+ const floatingStyle = ref(getHiddenStyle());
1184
+ const arrowStyle = ref();
1185
+ let cleanup;
1186
+ let generation = 0;
1187
+ let request = 0;
1188
+ function getHiddenStyle() {
1189
+ return {
1190
+ position: options.strategy(),
1191
+ top: "0",
1192
+ left: "0",
1193
+ visibility: "hidden"
1194
+ };
1195
+ }
1196
+ function resetPosition() {
1197
+ actualPlacement.value = options.placement();
1198
+ isPositioned.value = false;
1199
+ floatingStyle.value = getHiddenStyle();
1200
+ arrowStyle.value = void 0;
1201
+ }
1202
+ function stop() {
1203
+ cleanup?.();
1204
+ cleanup = void 0;
1205
+ generation += 1;
1206
+ request += 1;
1207
+ }
1208
+ function getMiddleware() {
1209
+ const middleware = [offset(options.offset() ?? 8)];
1210
+ const padding = options.collisionPadding();
1211
+ if (options.flip()) middleware.push(flip({ padding }));
1212
+ if (options.shift()) middleware.push(shift({ padding }));
1213
+ if (options.arrowEnabled() && options.arrow?.value) middleware.push(arrow({
1214
+ element: options.arrow.value,
1215
+ padding: DEFAULT_ARROW_PADDING
1216
+ }));
1217
+ return middleware;
1218
+ }
1219
+ async function update() {
1220
+ const reference = options.reference.value;
1221
+ const floating = options.floating.value;
1222
+ if (!reference || !floating || !options.open.value) return;
1223
+ const currentGeneration = generation;
1224
+ const currentRequest = ++request;
1225
+ const result = await computePosition(reference, floating, {
1226
+ placement: options.placement(),
1227
+ strategy: options.strategy(),
1228
+ middleware: getMiddleware()
1229
+ });
1230
+ if (currentGeneration !== generation || currentRequest !== request || !options.open.value) return;
1231
+ actualPlacement.value = result.placement;
1232
+ floatingStyle.value = {
1233
+ position: result.strategy,
1234
+ top: `${result.y}px`,
1235
+ left: `${result.x}px`
1236
+ };
1237
+ const arrowData = result.middlewareData.arrow;
1238
+ arrowStyle.value = arrowData ? {
1239
+ left: arrowData.x == null ? void 0 : `${arrowData.x}px`,
1240
+ top: arrowData.y == null ? void 0 : `${arrowData.y}px`
1241
+ } : void 0;
1242
+ isPositioned.value = true;
1243
+ }
1244
+ function start() {
1245
+ stop();
1246
+ resetPosition();
1247
+ if (!options.open.value) return;
1248
+ nextTick(() => {
1249
+ const reference = options.reference.value;
1250
+ const floating = options.floating.value;
1251
+ if (!reference || !floating || !options.open.value) return;
1252
+ cleanup = autoUpdate(reference, floating, () => void update());
1253
+ });
1254
+ }
1255
+ watch([
1256
+ options.open,
1257
+ options.reference,
1258
+ options.floating,
1259
+ () => options.arrow?.value,
1260
+ options.placement,
1261
+ options.strategy,
1262
+ options.offset,
1263
+ options.flip,
1264
+ options.shift,
1265
+ options.collisionPadding,
1266
+ options.arrowEnabled,
1267
+ () => options.restartKey?.()
1268
+ ], start, {
1269
+ flush: "post",
1270
+ immediate: true
1271
+ });
1272
+ onBeforeUnmount(stop);
1273
+ return {
1274
+ actualPlacement,
1275
+ arrowStyle,
1276
+ floatingStyle,
1277
+ isPositioned,
1278
+ start,
1279
+ stop,
1280
+ update
1281
+ };
1282
+ }
1283
+ //#endregion
1284
+ export { useFloatingPosition as n, useFloatingTarget as r, isElementReference as t };