@8wave/ai-elements 0.98.0 → 0.99.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/README.md +24 -5
  2. package/{dist-vue/_chunks/PkStreamingMarkdown-DEhbK-3c.js → dist/_chunks/PkStreamingMarkdown-6Xx9n1ue.js} +379 -362
  3. package/dist/_chunks/PkStreamingMarkdown-6Xx9n1ue.js.map +1 -0
  4. package/dist/_chunks/{PkToolRequestGeolocation-BJ9NJZIg.js → PkToolRequestGeolocation-B73evGBg.js} +2 -2
  5. package/dist/_chunks/{PkToolRequestGeolocation-BJ9NJZIg.js.map → PkToolRequestGeolocation-B73evGBg.js.map} +1 -1
  6. package/dist/_chunks/{PkToolRequestOAuthConnection-DdvJ6n1K.js → PkToolRequestOAuthConnection-BWP5dsK_.js} +3 -3
  7. package/dist/_chunks/{PkToolRequestOAuthConnection-DdvJ6n1K.js.map → PkToolRequestOAuthConnection-BWP5dsK_.js.map} +1 -1
  8. package/dist/_chunks/{PkToolShowArtifact-BaGEr7O9.js → PkToolShowArtifact-bYYaMGxq.js} +7 -7
  9. package/dist/_chunks/{PkToolShowArtifact-BaGEr7O9.js.map → PkToolShowArtifact-bYYaMGxq.js.map} +1 -1
  10. package/dist/_chunks/{PkToolShowCalendarEvent-BYnhl2er.js → PkToolShowCalendarEvent-DdEWaTj-.js} +4 -4
  11. package/dist/_chunks/{PkToolShowCalendarEvent-BYnhl2er.js.map → PkToolShowCalendarEvent-DdEWaTj-.js.map} +1 -1
  12. package/dist/_chunks/{PkToolShowComparison-DahL5vHr.js → PkToolShowComparison-Dcar7HPW.js} +4 -4
  13. package/dist/_chunks/{PkToolShowComparison-DahL5vHr.js.map → PkToolShowComparison-Dcar7HPW.js.map} +1 -1
  14. package/dist/_chunks/{PkToolShowContactForm-upUNZtId.js → PkToolShowContactForm-DtjVW-n6.js} +13 -13
  15. package/dist/_chunks/{PkToolShowContactForm-upUNZtId.js.map → PkToolShowContactForm-DtjVW-n6.js.map} +1 -1
  16. package/dist/_chunks/{PkToolShowDiagram-Jq_4KWiK.js → PkToolShowDiagram-X35nsoIY.js} +8 -8
  17. package/dist/_chunks/{PkToolShowDiagram-Jq_4KWiK.js.map → PkToolShowDiagram-X35nsoIY.js.map} +1 -1
  18. package/dist/_chunks/{PkToolShowEmail-CtmpDS1B.js → PkToolShowEmail-jVoK8qEh.js} +4 -4
  19. package/dist/_chunks/{PkToolShowEmail-CtmpDS1B.js.map → PkToolShowEmail-jVoK8qEh.js.map} +1 -1
  20. package/dist/_chunks/{PkToolShowForm-BNV4Ja6g.js → PkToolShowForm-BP8asXtz.js} +123 -97
  21. package/dist/_chunks/PkToolShowForm-BP8asXtz.js.map +1 -0
  22. package/dist/_chunks/{PkToolShowImageGallery-mLq2p3aH.js → PkToolShowImageGallery-WQL3T4Hr.js} +2 -2
  23. package/dist/_chunks/{PkToolShowImageGallery-mLq2p3aH.js.map → PkToolShowImageGallery-WQL3T4Hr.js.map} +1 -1
  24. package/dist/_chunks/{PkToolShowLocation-SbgTbuGu.js → PkToolShowLocation-w2t7lKpb.js} +4 -4
  25. package/dist/_chunks/{PkToolShowLocation-SbgTbuGu.js.map → PkToolShowLocation-w2t7lKpb.js.map} +1 -1
  26. package/dist/_chunks/{PkToolShowMessage-CAVpDTzd.js → PkToolShowMessage-BPo7WPim.js} +4 -4
  27. package/dist/_chunks/{PkToolShowMessage-CAVpDTzd.js.map → PkToolShowMessage-BPo7WPim.js.map} +1 -1
  28. package/dist/_chunks/{PkToolShowProductList-puiPFItN.js → PkToolShowProductList-BbY4ni7Y.js} +2 -2
  29. package/dist/_chunks/{PkToolShowProductList-puiPFItN.js.map → PkToolShowProductList-BbY4ni7Y.js.map} +1 -1
  30. package/dist/_chunks/{PkToolShowQrCode-CctXvRyG.js → PkToolShowQrCode-CN0ms27N.js} +4 -4
  31. package/dist/_chunks/{PkToolShowQrCode-CctXvRyG.js.map → PkToolShowQrCode-CN0ms27N.js.map} +1 -1
  32. package/dist/_chunks/{PkToolShowSources-DwB6VXrK.js → PkToolShowSources-D2tBcx7n.js} +18 -18
  33. package/dist/_chunks/{PkToolShowSources-DwB6VXrK.js.map → PkToolShowSources-D2tBcx7n.js.map} +1 -1
  34. package/dist/_chunks/{PkToolShowSuggestedReply-QEcIhSxa.js → PkToolShowSuggestedReply-Cdh_elSh.js} +2 -2
  35. package/dist/_chunks/{PkToolShowSuggestedReply-QEcIhSxa.js.map → PkToolShowSuggestedReply-Cdh_elSh.js.map} +1 -1
  36. package/dist/_chunks/{PkToolShowVideo-DoLoI8_N.js → PkToolShowVideo-D3aU5FMO.js} +2 -2
  37. package/dist/_chunks/{PkToolShowVideo-DoLoI8_N.js.map → PkToolShowVideo-D3aU5FMO.js.map} +1 -1
  38. package/dist/_chunks/{PkToolShowWeather-C2rPCQ_K.js → PkToolShowWeather-CzanXIJp.js} +3 -3
  39. package/dist/_chunks/{PkToolShowWeather-C2rPCQ_K.js.map → PkToolShowWeather-CzanXIJp.js.map} +1 -1
  40. package/dist/_chunks/{PkToolShowWebPages-BBJYzF8V.js → PkToolShowWebPages-DkMJrWmT.js} +2 -2
  41. package/dist/_chunks/{PkToolShowWebPages-BBJYzF8V.js.map → PkToolShowWebPages-DkMJrWmT.js.map} +1 -1
  42. package/dist/_chunks/{VvCheckbox.es-D5d8k9yP.js → VvCheckbox.es-CRhIKQNR.js} +2 -2
  43. package/dist/_chunks/{VvCheckbox.es-D5d8k9yP.js.map → VvCheckbox.es-CRhIKQNR.js.map} +1 -1
  44. package/dist/_chunks/{VvCheckboxGroup.es-DVnsOjX0.js → VvCheckboxGroup.es-gOy2kM1Y.js} +5 -5
  45. package/dist/_chunks/{VvCheckboxGroup.es-DVnsOjX0.js.map → VvCheckboxGroup.es-gOy2kM1Y.js.map} +1 -1
  46. package/dist/_chunks/{VvCombobox.es-CFA-K-cQ.js → VvCombobox.es-BOwH3LmO.js} +9 -9
  47. package/dist/_chunks/VvCombobox.es-BOwH3LmO.js.map +1 -0
  48. package/dist/_chunks/{VvInputText.es-csEQ-bSG.js → VvInputText.es-D8nXroKO.js} +536 -513
  49. package/dist/_chunks/VvInputText.es-D8nXroKO.js.map +1 -0
  50. package/dist/_chunks/{VvRadio.es-BpymhC73.js → VvRadio.es-Djy5J33A.js} +2 -2
  51. package/dist/_chunks/{VvRadio.es-BpymhC73.js.map → VvRadio.es-Djy5J33A.js.map} +1 -1
  52. package/dist/_chunks/{VvRadioGroup.es-CSNzOJKx.js → VvRadioGroup.es-DQq3JYCR.js} +5 -5
  53. package/dist/_chunks/VvRadioGroup.es-DQq3JYCR.js.map +1 -0
  54. package/dist/_chunks/{VvSelect.es-CjKMd0nH.js → VvSelect.es-CE4x1ww0.js} +4 -4
  55. package/dist/_chunks/{VvSelect.es-CjKMd0nH.js.map → VvSelect.es-CE4x1ww0.js.map} +1 -1
  56. package/dist/_chunks/VvTextarea.es-BU2vqdEQ.js +1129 -0
  57. package/dist/_chunks/VvTextarea.es-BU2vqdEQ.js.map +1 -0
  58. package/dist/_chunks/{dist-BNET2z7b.js → dist-CvMCBce7.js} +39 -21
  59. package/dist/_chunks/dist-CvMCBce7.js.map +1 -0
  60. package/dist/_chunks/dot-prop-CObyt75F.js +141 -0
  61. package/dist/_chunks/dot-prop-CObyt75F.js.map +1 -0
  62. package/dist/_chunks/{floating-ui.vue-CIKvCpTA.js → floating-ui.vue-BacoFpVq.js} +278 -305
  63. package/dist/_chunks/floating-ui.vue-BacoFpVq.js.map +1 -0
  64. package/dist/_chunks/{index.es-u1dF1xg2.js → index.es-DpqfagWZ.js} +12 -12
  65. package/dist/_chunks/{index.es-u1dF1xg2.js.map → index.es-DpqfagWZ.js.map} +1 -1
  66. package/dist/_chunks/{index.es-BYny0uhz.js → index.es-_oXVRjHy.js} +2352 -2329
  67. package/dist/_chunks/index.es-_oXVRjHy.js.map +1 -0
  68. package/dist/ai-elements.es.js +4818 -5765
  69. package/dist/ai-elements.es.js.map +1 -1
  70. package/dist-vue/PkChatbot.js +1 -1
  71. package/dist-vue/PkChatbotAuth.js +1 -1
  72. package/dist-vue/PkChatbotEmptyState.js +1 -1
  73. package/dist-vue/PkChatbotFeedbackForm.js +1 -1
  74. package/dist-vue/PkChatbotInput.js +1 -1
  75. package/dist-vue/PkChatbotMessages.js +1 -1
  76. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  77. package/dist-vue/PkChatbotSteps.js +1 -1
  78. package/dist-vue/PkChatbotViewChat.js +1 -1
  79. package/dist-vue/PkChatbotViewConversations.js +1 -1
  80. package/dist-vue/PkChatbotViewFiles.js +1 -1
  81. package/dist-vue/PkChatbotViewProfile.js +1 -1
  82. package/dist-vue/_chunks/PkChatbot-Bf5uY3cO.js +236 -0
  83. package/dist-vue/_chunks/{PkChatbot-DHkhT0Jf.js.map → PkChatbot-Bf5uY3cO.js.map} +1 -1
  84. package/dist-vue/_chunks/{PkChatbotAuth-C_L2xWuD.js → PkChatbotAuth-BGn2MDYD.js} +2 -2
  85. package/dist-vue/_chunks/{PkChatbotAuth-C_L2xWuD.js.map → PkChatbotAuth-BGn2MDYD.js.map} +1 -1
  86. package/dist-vue/_chunks/{PkChatbotEmptyState-BGOC6vxr.js → PkChatbotEmptyState-CPqLqXek.js} +2 -2
  87. package/dist-vue/_chunks/{PkChatbotEmptyState-BGOC6vxr.js.map → PkChatbotEmptyState-CPqLqXek.js.map} +1 -1
  88. package/dist-vue/_chunks/{PkChatbotFeedbackForm-BSe40qlc.js → PkChatbotFeedbackForm-C_y__RH8.js} +2 -2
  89. package/dist-vue/_chunks/{PkChatbotFeedbackForm-BSe40qlc.js.map → PkChatbotFeedbackForm-C_y__RH8.js.map} +1 -1
  90. package/dist-vue/_chunks/{PkChatbotInput-DTazYlPd.js → PkChatbotInput-jvb0vuak.js} +2 -2
  91. package/dist-vue/_chunks/{PkChatbotInput-DTazYlPd.js.map → PkChatbotInput-jvb0vuak.js.map} +1 -1
  92. package/dist-vue/_chunks/PkChatbotMessages-B3G12zah.js +752 -0
  93. package/dist-vue/_chunks/PkChatbotMessages-B3G12zah.js.map +1 -0
  94. package/dist-vue/_chunks/{PkChatbotStepToolDetail-ldThv0t5.js → PkChatbotStepToolDetail-BVI72gyx.js} +2 -2
  95. package/dist-vue/_chunks/{PkChatbotStepToolDetail-ldThv0t5.js.map → PkChatbotStepToolDetail-BVI72gyx.js.map} +1 -1
  96. package/dist-vue/_chunks/PkChatbotSteps-BdU6YC_N.js +172 -0
  97. package/dist-vue/_chunks/{PkChatbotSteps-BpqdFhsG.js.map → PkChatbotSteps-BdU6YC_N.js.map} +1 -1
  98. package/dist-vue/_chunks/{PkChatbotViewChat-C08TsXiL.js → PkChatbotViewChat-c0Ecpzoc.js} +68 -68
  99. package/dist-vue/_chunks/PkChatbotViewChat-c0Ecpzoc.js.map +1 -0
  100. package/dist-vue/_chunks/{PkChatbotViewConversations-BQZi5kSC.js → PkChatbotViewConversations-BfhRCA_1.js} +2 -2
  101. package/dist-vue/_chunks/{PkChatbotViewConversations-BQZi5kSC.js.map → PkChatbotViewConversations-BfhRCA_1.js.map} +1 -1
  102. package/dist-vue/_chunks/{PkChatbotViewFiles-TLKE_tRw.js → PkChatbotViewFiles-BipRoidH.js} +2 -2
  103. package/dist-vue/_chunks/{PkChatbotViewFiles-TLKE_tRw.js.map → PkChatbotViewFiles-BipRoidH.js.map} +1 -1
  104. package/dist-vue/_chunks/{PkChatbotViewProfile-B6ANZY96.js → PkChatbotViewProfile-DuLwYpGZ.js} +2 -2
  105. package/dist-vue/_chunks/{PkChatbotViewProfile-B6ANZY96.js.map → PkChatbotViewProfile-DuLwYpGZ.js.map} +1 -1
  106. package/{dist/_chunks/PkStreamingMarkdown-Djw604Ny.js → dist-vue/_chunks/PkStreamingMarkdown-CjBMQ18U.js} +344 -347
  107. package/dist-vue/_chunks/PkStreamingMarkdown-CjBMQ18U.js.map +1 -0
  108. package/dist-vue/_chunks/{PkToolShowArtifact-CTBwt4DN.js → PkToolShowArtifact-COwSXmF4.js} +2 -2
  109. package/dist-vue/_chunks/{PkToolShowArtifact-CTBwt4DN.js.map → PkToolShowArtifact-COwSXmF4.js.map} +1 -1
  110. package/dist-vue/_chunks/{PkToolShowContactForm-B6-MsExL.js → PkToolShowContactForm-DRRtCCxB.js} +10 -10
  111. package/dist-vue/_chunks/{PkToolShowContactForm-B6-MsExL.js.map → PkToolShowContactForm-DRRtCCxB.js.map} +1 -1
  112. package/dist-vue/_chunks/{PkToolShowForm-C-mWyeka.js → PkToolShowForm-j7Ha-0X3.js} +128 -102
  113. package/dist-vue/_chunks/PkToolShowForm-j7Ha-0X3.js.map +1 -0
  114. package/dist-vue/_chunks/{PkToolShowSources-CFh-i60o.js → PkToolShowSources-BVLw4W5l.js} +43 -43
  115. package/dist-vue/_chunks/{PkToolShowSources-CFh-i60o.js.map → PkToolShowSources-BVLw4W5l.js.map} +1 -1
  116. package/dist-vue/_chunks/{createChatbotApiClient-BOBdBxmf.js → createChatbotApiClient-IH6wBh4s.js} +148 -160
  117. package/dist-vue/_chunks/createChatbotApiClient-IH6wBh4s.js.map +1 -0
  118. package/dist-vue/_chunks/{index.es-XfWQ82pb.js → index.es-Bk1O0p8N.js} +166 -156
  119. package/dist-vue/_chunks/index.es-Bk1O0p8N.js.map +1 -0
  120. package/dist-vue/_chunks/{useChatbotStore-BJ-EDmND.js → useChatbotStore-C3uKi2FS.js} +114 -106
  121. package/dist-vue/_chunks/useChatbotStore-C3uKi2FS.js.map +1 -0
  122. package/dist-vue/_chunks/{utils-BMa8jwJS.js → utils-Cru8TJxe.js} +48 -30
  123. package/dist-vue/_chunks/utils-Cru8TJxe.js.map +1 -0
  124. package/dist-vue/api.js +1 -1
  125. package/dist-vue/composables.js +3 -3
  126. package/dist-vue/index.js +3732 -3213
  127. package/dist-vue/index.js.map +1 -1
  128. package/dist-vue/locales.js +43 -7
  129. package/dist-vue/packages/components/src/PkCheckboxField.d.ts +45 -0
  130. package/dist-vue/packages/components/src/PkEditorRepeater.d.ts +2 -2
  131. package/dist-vue/packages/components/src/{chat/PkToolRequestConfirm.d.ts → PkOfflineScreen.d.ts} +10 -3
  132. package/dist-vue/packages/components/src/PkPwaNotices.d.ts +19 -0
  133. package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +18 -3
  134. package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +24 -2
  135. package/dist-vue/packages/components/src/chat/PkToolApprovalBadge.d.ts +4 -0
  136. package/dist-vue/packages/components/src/chat/PkToolApprovalCard.d.ts +35 -0
  137. package/dist-vue/packages/components/src/chat/PkToolApprovalPreviewMessage.d.ts +11 -0
  138. package/dist-vue/packages/components/src/chat/index.d.ts +2 -1
  139. package/dist-vue/packages/components/src/chat/toolApprovalPreviews.d.ts +12 -0
  140. package/dist-vue/packages/components/src/chat/toolComponentMap.d.ts +5 -3
  141. package/dist-vue/packages/components/src/chat/useChatScroll.d.ts +6 -0
  142. package/dist-vue/packages/components/src/chat/utils.d.ts +13 -0
  143. package/dist-vue/packages/components/src/index.d.ts +4 -1
  144. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +70 -1
  145. package/dist-vue/packages/composable/src/index.d.ts +1 -0
  146. package/dist-vue/packages/composable/src/useConnectivity.d.ts +28 -0
  147. package/dist-vue/packages/models/src/schema/Agent.d.ts +129 -0
  148. package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +30 -0
  149. package/dist-vue/packages/models/src/schema/SubAgent.d.ts +30 -0
  150. package/dist-vue/style.css +1 -1
  151. package/package.json +3 -3
  152. package/dist/_chunks/PkStreamingMarkdown-Djw604Ny.js.map +0 -1
  153. package/dist/_chunks/PkToolRequestConfirm-FQ9nDFXy.js +0 -48
  154. package/dist/_chunks/PkToolRequestConfirm-FQ9nDFXy.js.map +0 -1
  155. package/dist/_chunks/PkToolShowForm-BNV4Ja6g.js.map +0 -1
  156. package/dist/_chunks/VvCombobox.es-CFA-K-cQ.js.map +0 -1
  157. package/dist/_chunks/VvInputText.es-csEQ-bSG.js.map +0 -1
  158. package/dist/_chunks/VvRadioGroup.es-CSNzOJKx.js.map +0 -1
  159. package/dist/_chunks/VvTextarea.es-eEyRRpuT.js +0 -1109
  160. package/dist/_chunks/VvTextarea.es-eEyRRpuT.js.map +0 -1
  161. package/dist/_chunks/dist-BNET2z7b.js.map +0 -1
  162. package/dist/_chunks/dot-prop-BXrC9bAX.js +0 -131
  163. package/dist/_chunks/dot-prop-BXrC9bAX.js.map +0 -1
  164. package/dist/_chunks/floating-ui.vue-CIKvCpTA.js.map +0 -1
  165. package/dist/_chunks/index.es-BYny0uhz.js.map +0 -1
  166. package/dist-vue/_chunks/PkChatbot-DHkhT0Jf.js +0 -236
  167. package/dist-vue/_chunks/PkChatbotMessages-B4qfTNOJ.js +0 -630
  168. package/dist-vue/_chunks/PkChatbotMessages-B4qfTNOJ.js.map +0 -1
  169. package/dist-vue/_chunks/PkChatbotSteps-BpqdFhsG.js +0 -172
  170. package/dist-vue/_chunks/PkChatbotViewChat-C08TsXiL.js.map +0 -1
  171. package/dist-vue/_chunks/PkStreamingMarkdown-DEhbK-3c.js.map +0 -1
  172. package/dist-vue/_chunks/PkToolRequestConfirm-CQNa3seA.js +0 -48
  173. package/dist-vue/_chunks/PkToolRequestConfirm-CQNa3seA.js.map +0 -1
  174. package/dist-vue/_chunks/PkToolShowForm-C-mWyeka.js.map +0 -1
  175. package/dist-vue/_chunks/createChatbotApiClient-BOBdBxmf.js.map +0 -1
  176. package/dist-vue/_chunks/index.es-XfWQ82pb.js.map +0 -1
  177. package/dist-vue/_chunks/useChatbotStore-BJ-EDmND.js.map +0 -1
  178. package/dist-vue/_chunks/utils-BMa8jwJS.js.map +0 -1
@@ -22,7 +22,7 @@ function u(e) {
22
22
  };
23
23
  }
24
24
  //#endregion
25
- //#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
25
+ //#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
26
26
  var d = [
27
27
  "top",
28
28
  "right",
@@ -78,42 +78,41 @@ function k(e) {
78
78
  function A(e) {
79
79
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
80
80
  }
81
- var j = ["left", "right"], M = ["right", "left"], ee = ["top", "bottom"], N = ["bottom", "top"];
82
- function te(e, t, n) {
81
+ var j = ["left", "right"], M = ["right", "left"], ee = ["top", "bottom"], te = ["bottom", "top"];
82
+ function N(e, t, n) {
83
83
  switch (e) {
84
84
  case "top":
85
85
  case "bottom": return n ? t ? M : j : t ? j : M;
86
86
  case "left":
87
- case "right": return t ? ee : N;
87
+ case "right": return t ? ee : te;
88
88
  default: return [];
89
89
  }
90
90
  }
91
91
  function P(e, t, n, r) {
92
- let i = C(e), a = te(S(e), n === "start", r);
92
+ let i = C(e), a = N(S(e), n === "start", r);
93
93
  return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(A)))), a;
94
94
  }
95
95
  function F(e) {
96
96
  let t = S(e);
97
97
  return y[t] + e.slice(t.length);
98
98
  }
99
- function I(e) {
99
+ function ne(e) {
100
100
  return {
101
- top: 0,
102
- right: 0,
103
- bottom: 0,
104
- left: 0,
105
- ...e
101
+ top: e.top ?? 0,
102
+ right: e.right ?? 0,
103
+ bottom: e.bottom ?? 0,
104
+ left: e.left ?? 0
106
105
  };
107
106
  }
108
- function ne(e) {
107
+ function re(e) {
109
108
  return typeof e == "number" ? {
110
109
  top: e,
111
110
  right: e,
112
111
  bottom: e,
113
112
  left: e
114
- } : I(e);
113
+ } : ne(e);
115
114
  }
116
- function L(e) {
115
+ function I(e) {
117
116
  let { x: t, y: n, width: r, height: i } = e;
118
117
  return {
119
118
  width: r,
@@ -127,8 +126,8 @@ function L(e) {
127
126
  };
128
127
  }
129
128
  //#endregion
130
- //#region ../../node_modules/.pnpm/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
131
- function re(e, t, n) {
129
+ //#region ../../node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
130
+ function ie(e, t, n) {
132
131
  let { reference: r, floating: i } = e, a = E(t), o = D(t), s = T(o), c = S(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
133
132
  switch (c) {
134
133
  case "top":
@@ -160,19 +159,12 @@ function re(e, t, n) {
160
159
  y: r.y
161
160
  };
162
161
  }
163
- switch (C(t)) {
164
- case "start":
165
- p[o] -= f * (n && l ? -1 : 1);
166
- break;
167
- case "end":
168
- p[o] += f * (n && l ? -1 : 1);
169
- break;
170
- }
171
- return p;
162
+ let m = C(t);
163
+ return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
172
164
  }
173
- async function ie(e, t) {
165
+ async function ae(e, t) {
174
166
  t === void 0 && (t = {});
175
- let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = x(t, e), p = ne(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = L(await i.getClippingRect({
167
+ let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = x(t, e), p = re(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = I(await i.getClippingRect({
176
168
  element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
177
169
  boundary: c,
178
170
  rootBoundary: l,
@@ -185,7 +177,7 @@ async function ie(e, t) {
185
177
  } : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
186
178
  x: 1,
187
179
  y: 1
188
- }, y = L(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
180
+ }, y = I(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
189
181
  elements: o,
190
182
  rect: g,
191
183
  offsetParent: _,
@@ -198,15 +190,15 @@ async function ie(e, t) {
198
190
  right: (y.right - h.right + p.right) / v.x
199
191
  };
200
192
  }
201
- var ae = 50, oe = async (e, t, n) => {
193
+ var oe = 50, se = async (e, t, n) => {
202
194
  let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
203
195
  ...o,
204
- detectOverflow: ie
196
+ detectOverflow: ae
205
197
  }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
206
198
  reference: e,
207
199
  floating: t,
208
200
  strategy: i
209
- }), { x: u, y: d } = re(l, r, c), f = r, p = 0, m = {};
201
+ }), { x: u, y: d } = ie(l, r, c), f = r, p = 0, m = {};
210
202
  for (let n = 0; n < a.length; n++) {
211
203
  let h = a[n];
212
204
  if (!h) continue;
@@ -227,11 +219,11 @@ var ae = 50, oe = async (e, t, n) => {
227
219
  u = v ?? u, d = y ?? d, m[g] = {
228
220
  ...m[g],
229
221
  ...b
230
- }, x && p < ae && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
222
+ }, x && p < oe && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
231
223
  reference: e,
232
224
  floating: t,
233
225
  strategy: i
234
- }) : x.rects), {x: u, y: d} = re(l, f, c)), n = -1);
226
+ }) : x.rects), {x: u, y: d} = ie(l, f, c)), n = -1);
235
227
  }
236
228
  return {
237
229
  x: u,
@@ -240,52 +232,51 @@ var ae = 50, oe = async (e, t, n) => {
240
232
  strategy: i,
241
233
  middlewareData: m
242
234
  };
243
- }, se = (e) => ({
235
+ }, ce = (e) => ({
244
236
  name: "arrow",
245
237
  options: e,
246
238
  async fn(t) {
247
239
  let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = x(e, t) || {};
248
240
  if (l == null) return {};
249
- let d = ne(u), f = {
241
+ let d = re(u), f = {
250
242
  x: n,
251
243
  y: r
252
244
  }, p = D(i), h = T(p), g = await o.getDimensions(l), _ = p === "y", v = _ ? "top" : "left", y = _ ? "bottom" : "right", S = _ ? "clientHeight" : "clientWidth", w = a.reference[h] + a.reference[p] - f[p] - a.floating[h], E = f[p] - a.reference[p], O = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), k = O ? O[S] : 0;
253
245
  (!k || !await (o.isElement == null ? void 0 : o.isElement(O))) && (k = s.floating[S] || a.floating[h]);
254
- let A = w / 2 - E / 2, j = k / 2 - g[h] / 2 - 1, M = m(d[v], j), ee = m(d[y], j), N = M, te = k - g[h] - ee, P = k / 2 - g[h] / 2 + A, F = b(N, P, te), I = !c.arrow && C(i) != null && P !== F && a.reference[h] / 2 - (P < N ? M : ee) - g[h] / 2 < 0, L = I ? P < N ? P - N : P - te : 0;
246
+ let A = w / 2 - E / 2, j = k / 2 - g[h] / 2 - 1, M = m(d[v], j), ee = m(d[y], j), te = k - g[h] - ee, N = k / 2 - g[h] / 2 + A, P = b(M, N, te), F = !c.arrow && C(i) != null && N !== P && a.reference[h] / 2 - (N < M ? M : ee) - g[h] / 2 < 0, ne = F ? N < M ? N - M : N - te : 0;
255
247
  return {
256
- [p]: f[p] + L,
248
+ [p]: f[p] + ne,
257
249
  data: {
258
- [p]: F,
259
- centerOffset: P - F - L,
260
- ...I && { alignmentOffset: L }
250
+ [p]: P,
251
+ centerOffset: N - P - ne,
252
+ ...F && { alignmentOffset: ne }
261
253
  },
262
- reset: I
254
+ reset: F
263
255
  };
264
256
  }
265
257
  });
266
- function ce(e, t, n) {
258
+ function le(e, t, n) {
267
259
  return (e ? [...n.filter((t) => C(t) === e), ...n.filter((t) => C(t) !== e)] : n.filter((e) => S(e) === e)).filter((n) => !e || C(n) === e || (t ? A(n) !== n : !1));
268
260
  }
269
- var le = function(e) {
261
+ var ue = function(e) {
270
262
  return e === void 0 && (e = {}), {
271
263
  name: "autoPlacement",
272
264
  options: e,
273
265
  async fn(t) {
274
- let { rects: n, middlewareData: r, placement: i, platform: a, elements: o } = t, { crossAxis: s = !1, alignment: c, allowedPlacements: l = p, autoAlignment: u = !0, ...d } = x(e, t), f = c !== void 0 || l === p ? ce(c || null, u, l) : l, m = await a.detectOverflow(t, d), h = r.autoPlacement?.index || 0, g = f[h];
275
- if (g == null) return {};
276
- let _ = O(g, n, await (a.isRTL == null ? void 0 : a.isRTL(o.floating)));
277
- if (i !== g) return { reset: { placement: f[0] } };
278
- let v = [
279
- m[S(g)],
280
- m[_[0]],
281
- m[_[1]]
266
+ let { rects: n, middlewareData: r, placement: i, platform: a, elements: o } = t, { crossAxis: s = !1, alignment: c, allowedPlacements: l = p, autoAlignment: u = !0, ...d } = x(e, t), f = c !== void 0 || l === p ? le(c || null, u, l) : l, m = r.autoPlacement?.index || 0, h = f[m];
267
+ if (h == null) return {};
268
+ if (i !== h) return { reset: { placement: f[0] } };
269
+ let g = await a.detectOverflow(t, d), _ = O(h, n, await (a.isRTL == null ? void 0 : a.isRTL(o.floating))), v = [
270
+ g[S(h)],
271
+ g[_[0]],
272
+ g[_[1]]
282
273
  ], y = [...r.autoPlacement?.overflows || [], {
283
- placement: g,
274
+ placement: h,
284
275
  overflows: v
285
- }], b = f[h + 1];
276
+ }], b = f[m + 1];
286
277
  if (b) return {
287
278
  data: {
288
- index: h + 1,
279
+ index: m + 1,
289
280
  overflows: y
290
281
  },
291
282
  reset: { placement: b }
@@ -300,14 +291,14 @@ var le = function(e) {
300
291
  }).sort((e, t) => e[1] - t[1]), T = w.filter((e) => e[2].slice(0, C(e[0]) ? 2 : 3).every((e) => e <= 0))[0]?.[0] || w[0][0];
301
292
  return T === i ? {} : {
302
293
  data: {
303
- index: h + 1,
294
+ index: m + 1,
304
295
  overflows: y
305
296
  },
306
297
  reset: { placement: T }
307
298
  };
308
299
  }
309
300
  };
310
- }, ue = function(e) {
301
+ }, de = function(e) {
311
302
  return e === void 0 && (e = {}), {
312
303
  name: "flip",
313
304
  options: e,
@@ -356,9 +347,9 @@ var le = function(e) {
356
347
  return {};
357
348
  }
358
349
  };
359
- }, de = /*#__PURE__*/ new Set(["left", "top"]);
360
- async function fe(e, t) {
361
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = S(n), s = C(n), c = E(n) === "y", l = de.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = x(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
350
+ }, fe = /*#__PURE__*/ new Set(["left", "top"]);
351
+ async function pe(e, t) {
352
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = S(n), s = C(n), c = E(n) === "y", l = fe.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = x(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
362
353
  mainAxis: d,
363
354
  crossAxis: 0,
364
355
  alignmentAxis: null
@@ -375,13 +366,13 @@ async function fe(e, t) {
375
366
  y: p * u
376
367
  };
377
368
  }
378
- var pe = function(e) {
369
+ var me = function(e) {
379
370
  return e === void 0 && (e = 0), {
380
371
  name: "offset",
381
372
  options: e,
382
373
  async fn(t) {
383
374
  var n;
384
- let { x: r, y: i, placement: a, middlewareData: o } = t, s = await fe(t, e);
375
+ let { x: r, y: i, placement: a, middlewareData: o } = t, s = await pe(t, e);
385
376
  return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
386
377
  x: r + s.x,
387
378
  y: i + s.y,
@@ -392,7 +383,7 @@ var pe = function(e) {
392
383
  };
393
384
  }
394
385
  };
395
- }, me = function(e) {
386
+ }, he = function(e) {
396
387
  return e === void 0 && (e = {}), {
397
388
  name: "shift",
398
389
  options: e,
@@ -406,25 +397,18 @@ var pe = function(e) {
406
397
  } }, ...l } = x(e, t), u = {
407
398
  x: n,
408
399
  y: r
409
- }, d = await a.detectOverflow(t, l), f = E(S(i)), p = w(f), m = u[p], h = u[f];
410
- if (o) {
411
- let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
412
- m = b(n, m, r);
413
- }
414
- if (s) {
415
- let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
416
- h = b(n, h, r);
417
- }
418
- let g = c.fn({
400
+ }, d = await a.detectOverflow(t, l), f = E(i), p = w(f), m = u[p], h = u[f], g = (e, t) => b(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
401
+ o && (m = g(p, m)), s && (h = g(f, h));
402
+ let _ = c.fn({
419
403
  ...t,
420
404
  [p]: m,
421
405
  [f]: h
422
406
  });
423
407
  return {
424
- ...g,
408
+ ..._,
425
409
  data: {
426
- x: g.x - n,
427
- y: g.y - r,
410
+ x: _.x - n,
411
+ y: _.y - r,
428
412
  enabled: {
429
413
  [p]: o,
430
414
  [f]: s
@@ -433,64 +417,59 @@ var pe = function(e) {
433
417
  };
434
418
  }
435
419
  };
436
- }, he = function(e) {
420
+ }, ge = function(e) {
437
421
  return e === void 0 && (e = {}), {
438
422
  name: "size",
439
423
  options: e,
440
424
  async fn(t) {
441
- var n, r;
442
- let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = x(e, t), u = await o.detectOverflow(t, l), d = S(i), f = C(i), p = E(i) === "y", { width: g, height: _ } = a.floating, v, y;
443
- d === "top" || d === "bottom" ? (v = d, y = f === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (y = d, v = f === "end" ? "top" : "bottom");
444
- let b = _ - u.top - u.bottom, w = g - u.left - u.right, T = m(_ - u[v], b), D = m(g - u[y], w), O = !t.middlewareData.shift, k = T, A = D;
445
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (A = w), (r = t.middlewareData.shift) != null && r.enabled.y && (k = b), O && !f) {
446
- let e = h(u.left, 0), t = h(u.right, 0), n = h(u.top, 0), r = h(u.bottom, 0);
447
- p ? A = g - 2 * (e !== 0 || t !== 0 ? e + t : h(u.left, u.right)) : k = _ - 2 * (n !== 0 || r !== 0 ? n + r : h(u.top, u.bottom));
448
- }
449
- await c({
425
+ let { placement: n, rects: r, platform: i, elements: a } = t, { apply: o = () => {}, ...s } = x(e, t), c = await i.detectOverflow(t, s), l = S(n), u = C(n), d = E(n) === "y", { width: f, height: p } = r.floating, g, _;
426
+ l === "top" || l === "bottom" ? (g = l, _ = u === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (_ = l, g = u === "end" ? "top" : "bottom");
427
+ let v = p - c.top - c.bottom, y = f - c.left - c.right, b = m(p - c[g], v), w = m(f - c[_], y), T = t.middlewareData.shift, D = !T, O = b, k = w;
428
+ T != null && T.enabled.x && (k = y), T != null && T.enabled.y && (O = v), D && !u && (d ? k = f - 2 * h(c.left, c.right) : O = p - 2 * h(c.top, c.bottom)), await o({
450
429
  ...t,
451
- availableWidth: A,
452
- availableHeight: k
430
+ availableWidth: k,
431
+ availableHeight: O
453
432
  });
454
- let j = await o.getDimensions(s.floating);
455
- return g !== j.width || _ !== j.height ? { reset: { rects: !0 } } : {};
433
+ let A = await i.getDimensions(a.floating);
434
+ return f !== A.width || p !== A.height ? { reset: { rects: !0 } } : {};
456
435
  }
457
436
  };
458
437
  };
459
438
  //#endregion
460
- //#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
461
- function R() {
439
+ //#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
440
+ function L() {
462
441
  return typeof window < "u";
463
442
  }
464
- function z(e) {
465
- return ge(e) ? (e.nodeName || "").toLowerCase() : "#document";
443
+ function R(e) {
444
+ return _e(e) ? (e.nodeName || "").toLowerCase() : "#document";
466
445
  }
467
- function B(e) {
446
+ function z(e) {
468
447
  var t;
469
448
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
470
449
  }
471
- function V(e) {
472
- return ((ge(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
450
+ function B(e) {
451
+ return ((_e(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
473
452
  }
474
- function ge(e) {
475
- return R() ? e instanceof Node || e instanceof B(e).Node : !1;
453
+ function _e(e) {
454
+ return L() ? e instanceof Node || e instanceof z(e).Node : !1;
476
455
  }
477
- function H(e) {
478
- return R() ? e instanceof Element || e instanceof B(e).Element : !1;
456
+ function V(e) {
457
+ return L() ? e instanceof Element || e instanceof z(e).Element : !1;
479
458
  }
480
- function U(e) {
481
- return R() ? e instanceof HTMLElement || e instanceof B(e).HTMLElement : !1;
459
+ function H(e) {
460
+ return L() ? e instanceof HTMLElement || e instanceof z(e).HTMLElement : !1;
482
461
  }
483
- function _e(e) {
484
- return !R() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof B(e).ShadowRoot;
462
+ function ve(e) {
463
+ return !L() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof z(e).ShadowRoot;
485
464
  }
486
- function W(e) {
487
- let { overflow: t, overflowX: n, overflowY: r, display: i } = J(e);
465
+ function U(e) {
466
+ let { overflow: t, overflowX: n, overflowY: r, display: i } = q(e);
488
467
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
489
468
  }
490
- function ve(e) {
491
- return /^(table|td|th)$/.test(z(e));
469
+ function ye(e) {
470
+ return /^(table|td|th)$/.test(R(e));
492
471
  }
493
- function G(e) {
472
+ function W(e) {
494
473
  try {
495
474
  if (e.matches(":popover-open")) return !0;
496
475
  } catch {}
@@ -500,31 +479,31 @@ function G(e) {
500
479
  return !1;
501
480
  }
502
481
  }
503
- var ye = /transform|translate|scale|rotate|perspective|filter/, be = /paint|layout|strict|content/, K = (e) => !!e && e !== "none", xe;
504
- function Se(e) {
505
- let t = H(e) ? J(e) : e;
506
- return K(t.transform) || K(t.translate) || K(t.scale) || K(t.rotate) || K(t.perspective) || !we() && (K(t.backdropFilter) || K(t.filter)) || ye.test(t.willChange || "") || be.test(t.contain || "");
507
- }
482
+ var be = /transform|translate|scale|rotate|perspective|filter/, xe = /paint|layout|strict|content/, G = (e) => !!e && e !== "none", Se;
508
483
  function Ce(e) {
509
- let t = X(e);
510
- for (; U(t) && !q(t);) {
511
- if (Se(t)) return t;
512
- if (G(t)) return null;
513
- t = X(t);
484
+ let t = V(e) ? q(e) : e;
485
+ return G(t.transform) || G(t.translate) || G(t.scale) || G(t.rotate) || G(t.perspective) || !Te() && (G(t.backdropFilter) || G(t.filter)) || be.test(t.willChange || "") || xe.test(t.contain || "");
486
+ }
487
+ function we(e) {
488
+ let t = Y(e);
489
+ for (; H(t) && !K(t);) {
490
+ if (Ce(t)) return t;
491
+ if (W(t)) return null;
492
+ t = Y(t);
514
493
  }
515
494
  return null;
516
495
  }
517
- function we() {
518
- return xe ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), xe;
496
+ function Te() {
497
+ return Se ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Se;
498
+ }
499
+ function K(e) {
500
+ return /^(html|body|#document)$/.test(R(e));
519
501
  }
520
502
  function q(e) {
521
- return /^(html|body|#document)$/.test(z(e));
503
+ return z(e).getComputedStyle(e);
522
504
  }
523
505
  function J(e) {
524
- return B(e).getComputedStyle(e);
525
- }
526
- function Y(e) {
527
- return H(e) ? {
506
+ return V(e) ? {
528
507
  scrollLeft: e.scrollLeft,
529
508
  scrollTop: e.scrollTop
530
509
  } : {
@@ -532,99 +511,99 @@ function Y(e) {
532
511
  scrollTop: e.scrollY
533
512
  };
534
513
  }
535
- function X(e) {
536
- if (z(e) === "html") return e;
537
- let t = e.assignedSlot || e.parentNode || _e(e) && e.host || V(e);
538
- return _e(t) ? t.host : t;
514
+ function Y(e) {
515
+ if (R(e) === "html") return e;
516
+ let t = e.assignedSlot || e.parentNode || ve(e) && e.host || B(e);
517
+ return ve(t) ? t.host : t;
539
518
  }
540
- function Te(e) {
541
- let t = X(e);
542
- return q(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : U(t) && W(t) ? t : Te(t);
519
+ function Ee(e) {
520
+ let t = Y(e);
521
+ return K(t) ? (e.ownerDocument || e).body : H(t) && U(t) ? t : Ee(t);
543
522
  }
544
- function Z(e, t, n) {
523
+ function X(e, t, n) {
545
524
  t === void 0 && (t = []), n === void 0 && (n = !0);
546
- let r = Te(e), i = r === e.ownerDocument?.body, a = B(r);
525
+ let r = Ee(e), i = r === e.ownerDocument?.body, a = z(r);
547
526
  if (i) {
548
- let e = Ee(a);
549
- return t.concat(a, a.visualViewport || [], W(r) ? r : [], e && n ? Z(e) : []);
550
- } else return t.concat(r, Z(r, [], n));
527
+ let e = De(a);
528
+ return t.concat(a, a.visualViewport || [], U(r) ? r : [], e && n ? X(e) : []);
529
+ } else return t.concat(r, X(r, [], n));
551
530
  }
552
- function Ee(e) {
531
+ function De(e) {
553
532
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
554
533
  }
555
534
  //#endregion
556
- //#region ../../node_modules/.pnpm/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
557
- function De(e) {
558
- let t = J(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = U(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = g(n) !== a || g(r) !== o;
535
+ //#region ../../node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
536
+ function Oe(e) {
537
+ let t = q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = H(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = g(n) !== a || g(r) !== o;
559
538
  return s && (n = a, r = o), {
560
539
  width: n,
561
540
  height: r,
562
541
  $: s
563
542
  };
564
543
  }
565
- function Oe(e) {
566
- return H(e) ? e : e.contextElement;
544
+ function ke(e) {
545
+ return V(e) ? e : e.contextElement;
567
546
  }
568
- function Q(e) {
569
- let t = Oe(e);
570
- if (!U(t)) return v(1);
571
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = De(t), o = (a ? g(n.width) : n.width) / r, s = (a ? g(n.height) : n.height) / i;
547
+ function Z(e) {
548
+ let t = ke(e);
549
+ if (!H(t)) return v(1);
550
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Oe(t), o = (a ? g(n.width) : n.width) / r, s = (a ? g(n.height) : n.height) / i;
572
551
  return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
573
552
  x: o,
574
553
  y: s
575
554
  };
576
555
  }
577
- var ke = /*#__PURE__*/ v(0);
578
- function Ae(e) {
579
- let t = B(e);
580
- return !we() || !t.visualViewport ? ke : {
556
+ var Ae = /*#__PURE__*/ v(0);
557
+ function je(e) {
558
+ let t = z(e);
559
+ return !Te() || !t.visualViewport ? Ae : {
581
560
  x: t.visualViewport.offsetLeft,
582
561
  y: t.visualViewport.offsetTop
583
562
  };
584
563
  }
585
- function je(e, t, n) {
586
- return t === void 0 && (t = !1), !n || t && n !== B(e) ? !1 : t;
564
+ function Me(e, t, n) {
565
+ return t === void 0 && (t = !1), !!n && t && n === z(e);
587
566
  }
588
- function $(e, t, n, r) {
567
+ function Q(e, t, n, r) {
589
568
  t === void 0 && (t = !1), n === void 0 && (n = !1);
590
- let i = e.getBoundingClientRect(), a = Oe(e), o = v(1);
591
- t && (r ? H(r) && (o = Q(r)) : o = Q(e));
592
- let s = je(a, n, r) ? Ae(a) : v(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
593
- if (a) {
594
- let e = B(a), t = r && H(r) ? B(r) : r, n = e, i = Ee(n);
595
- for (; i && r && t !== n;) {
596
- let e = Q(i), t = i.getBoundingClientRect(), r = J(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
597
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = B(i), i = Ee(n);
569
+ let i = e.getBoundingClientRect(), a = ke(e), o = v(1);
570
+ t && (r ? V(r) && (o = Z(r)) : o = Z(e));
571
+ let s = Me(a, n, r) ? je(a) : v(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
572
+ if (a && r) {
573
+ let e = z(a), t = V(r) ? z(r) : r, n = e, i = De(n);
574
+ for (; i && t !== n;) {
575
+ let e = Z(i), t = i.getBoundingClientRect(), r = q(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
576
+ c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = z(i), i = De(n);
598
577
  }
599
578
  }
600
- return L({
579
+ return I({
601
580
  width: u,
602
581
  height: d,
603
582
  x: c,
604
583
  y: l
605
584
  });
606
585
  }
607
- function Me(e, t) {
608
- let n = Y(e).scrollLeft;
609
- return t ? t.left + n : $(V(e)).left + n;
586
+ function $(e, t) {
587
+ let n = J(e).scrollLeft;
588
+ return t ? t.left + n : Q(B(e)).left + n;
610
589
  }
611
590
  function Ne(e, t) {
612
591
  let n = e.getBoundingClientRect();
613
592
  return {
614
- x: n.left + t.scrollLeft - Me(e, n),
593
+ x: n.left + t.scrollLeft - $(e, n),
615
594
  y: n.top + t.scrollTop
616
595
  };
617
596
  }
618
597
  function Pe(e) {
619
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = V(r), s = t ? G(t.floating) : !1;
598
+ let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = B(r), s = t ? W(t.floating) : !1;
620
599
  if (r === o || s && a) return n;
621
600
  let c = {
622
601
  scrollLeft: 0,
623
602
  scrollTop: 0
624
- }, l = v(1), u = v(0), d = U(r);
625
- if ((d || !d && !a) && ((z(r) !== "body" || W(o)) && (c = Y(r)), d)) {
626
- let e = $(r);
627
- l = Q(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
603
+ }, l = v(1), u = v(0), d = H(r);
604
+ if ((d || !a) && ((R(r) !== "body" || U(o)) && (c = J(r)), d)) {
605
+ let e = Q(r);
606
+ l = Z(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
628
607
  }
629
608
  let f = o && !d && !a ? Ne(o, c) : v(0);
630
609
  return {
@@ -635,39 +614,38 @@ function Pe(e) {
635
614
  };
636
615
  }
637
616
  function Fe(e) {
638
- return Array.from(e.getClientRects());
617
+ return e.getClientRects ? Array.from(e.getClientRects()) : [];
639
618
  }
640
619
  function Ie(e) {
641
- let t = V(e), n = Y(e), r = e.ownerDocument.body, i = h(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = h(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Me(e), s = -n.scrollTop;
642
- return J(r).direction === "rtl" && (o += h(t.clientWidth, r.clientWidth) - i), {
643
- width: i,
644
- height: a,
645
- x: o,
646
- y: s
620
+ let t = J(e), n = e.ownerDocument.body, r = h(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = h(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + $(e), o = -t.scrollTop;
621
+ return q(n).direction === "rtl" && (a += h(e.clientWidth, n.clientWidth) - r), {
622
+ width: r,
623
+ height: i,
624
+ x: a,
625
+ y: o
647
626
  };
648
627
  }
649
628
  var Le = 25;
650
- function Re(e, t) {
651
- let n = B(e), r = V(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
652
- if (i) {
653
- a = i.width, o = i.height;
654
- let e = we();
655
- (!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
629
+ function Re(e, t, n) {
630
+ n === void 0 && (n = "viewport");
631
+ let r = n === "layoutViewport", i = z(e), a = B(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
632
+ if (o) {
633
+ let e = !Te() || t === "fixed";
634
+ r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
635
+ }
636
+ if ($(a) <= 0) {
637
+ let e = a.ownerDocument, t = e.body, n = getComputedStyle(t), r = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, i = Math.abs(a.clientWidth - t.clientWidth - r), o = getComputedStyle(a).scrollbarGutter === "stable both-edges" ? i / 2 : i;
638
+ o <= Le && (s -= o);
656
639
  }
657
- let l = Me(r);
658
- if (l <= 0) {
659
- let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
660
- o <= Le && (a -= o);
661
- } else l <= Le && (a += l);
662
640
  return {
663
- width: a,
664
- height: o,
665
- x: s,
666
- y: c
641
+ width: s,
642
+ height: c,
643
+ x: l,
644
+ y: u
667
645
  };
668
646
  }
669
647
  function ze(e, t) {
670
- let n = $(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = U(e) ? Q(e) : v(1);
648
+ let n = Q(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Z(e);
671
649
  return {
672
650
  width: e.clientWidth * a.x,
673
651
  height: e.clientHeight * a.y,
@@ -677,11 +655,11 @@ function ze(e, t) {
677
655
  }
678
656
  function Be(e, t, n) {
679
657
  let r;
680
- if (t === "viewport") r = Re(e, n);
681
- else if (t === "document") r = Ie(V(e));
682
- else if (H(t)) r = ze(t, n);
658
+ if (t === "viewport" || t === "layoutViewport") r = Re(e, n, t);
659
+ else if (t === "document") r = Ie(B(e));
660
+ else if (V(t)) r = ze(t, n);
683
661
  else {
684
- let n = Ae(e);
662
+ let n = je(e);
685
663
  r = {
686
664
  x: t.x - n.x,
687
665
  y: t.y - n.y,
@@ -689,24 +667,20 @@ function Be(e, t, n) {
689
667
  height: t.height
690
668
  };
691
669
  }
692
- return L(r);
670
+ return I(r);
693
671
  }
694
672
  function Ve(e, t) {
695
- let n = X(e);
696
- return n === t || !H(n) || q(n) ? !1 : J(n).position === "fixed" || Ve(n, t);
697
- }
698
- function He(e, t) {
699
673
  let n = t.get(e);
700
674
  if (n) return n;
701
- let r = Z(e, [], !1).filter((e) => H(e) && z(e) !== "body"), i = null, a = J(e).position === "fixed", o = a ? X(e) : e;
702
- for (; H(o) && !q(o);) {
703
- let t = J(o), n = Se(o);
704
- !n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || W(o) && !n && Ve(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = X(o);
675
+ let r = X(e, [], !1).filter((e) => V(e) && R(e) !== "body"), i = null, a = q(e).position === "fixed", o = a ? Y(e) : e;
676
+ for (; V(o) && !K(o);) {
677
+ let e = q(o), t = Ce(o), n = i ? i.position : a ? "fixed" : "";
678
+ !t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = Y(o);
705
679
  }
706
680
  return t.set(e, r), r;
707
681
  }
708
- function Ue(e) {
709
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? G(t) ? [] : He(t, this._c) : [].concat(n), r], o = Be(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
682
+ function He(e) {
683
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? W(t) ? [] : Ve(t, this._c) : [].concat(n), r], o = Be(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
710
684
  for (let e = 1; e < a.length; e++) {
711
685
  let n = Be(t, a[e], i);
712
686
  s = h(n.top, s), c = m(n.right, c), l = m(n.bottom, l), u = h(n.left, u);
@@ -718,62 +692,59 @@ function Ue(e) {
718
692
  y: s
719
693
  };
720
694
  }
721
- function We(e) {
722
- let { width: t, height: n } = De(e);
695
+ function Ue(e) {
696
+ let { width: t, height: n } = Oe(e);
723
697
  return {
724
698
  width: t,
725
699
  height: n
726
700
  };
727
701
  }
728
- function Ge(e, t, n) {
729
- let r = U(t), i = V(t), a = n === "fixed", o = $(e, !0, a, t), s = {
702
+ function We(e, t, n) {
703
+ let r = H(t), i = B(t), a = n === "fixed", o = Q(e, !0, a, t), s = {
730
704
  scrollLeft: 0,
731
705
  scrollTop: 0
732
706
  }, c = v(0);
733
- function l() {
734
- c.x = Me(i);
735
- }
736
- if (r || !r && !a) if ((z(t) !== "body" || W(i)) && (s = Y(t)), r) {
737
- let e = $(t, !0, a, t);
707
+ if ((r || !a) && ((R(t) !== "body" || U(i)) && (s = J(t)), r)) {
708
+ let e = Q(t, !0, a, t);
738
709
  c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
739
- } else i && l();
740
- a && !r && i && l();
741
- let u = i && !r && !a ? Ne(i, s) : v(0);
710
+ }
711
+ !r && i && (c.x = $(i));
712
+ let l = i && !r && !a ? Ne(i, s) : v(0);
742
713
  return {
743
- x: o.left + s.scrollLeft - c.x - u.x,
744
- y: o.top + s.scrollTop - c.y - u.y,
714
+ x: o.left + s.scrollLeft - c.x - l.x,
715
+ y: o.top + s.scrollTop - c.y - l.y,
745
716
  width: o.width,
746
717
  height: o.height
747
718
  };
748
719
  }
749
- function Ke(e) {
750
- return J(e).position === "static";
720
+ function Ge(e) {
721
+ return q(e).position === "static";
751
722
  }
752
- function qe(e, t) {
753
- if (!U(e) || J(e).position === "fixed") return null;
723
+ function Ke(e, t) {
724
+ if (!H(e) || q(e).position === "fixed") return null;
754
725
  if (t) return t(e);
755
726
  let n = e.offsetParent;
756
- return V(e) === n && (n = n.ownerDocument.body), n;
757
- }
758
- function Je(e, t) {
759
- let n = B(e);
760
- if (G(e)) return n;
761
- if (!U(e)) {
762
- let t = X(e);
763
- for (; t && !q(t);) {
764
- if (H(t) && !Ke(t)) return t;
765
- t = X(t);
727
+ return B(e) === n && (n = n.ownerDocument.body), n;
728
+ }
729
+ function qe(e, t) {
730
+ let n = z(e);
731
+ if (W(e)) return n;
732
+ if (!H(e)) {
733
+ let t = Y(e);
734
+ for (; t && !K(t);) {
735
+ if (V(t) && !Ge(t)) return t;
736
+ t = Y(t);
766
737
  }
767
738
  return n;
768
739
  }
769
- let r = qe(e, t);
770
- for (; r && ve(r) && Ke(r);) r = qe(r, t);
771
- return r && q(r) && Ke(r) && !Se(r) ? n : r || Ce(e) || n;
740
+ let r = Ke(e, t);
741
+ for (; r && ye(r) && Ge(r);) r = Ke(r, t);
742
+ return r && K(r) && Ge(r) && !Ce(r) ? n : r || we(e) || n;
772
743
  }
773
- var Ye = async function(e) {
774
- let t = this.getOffsetParent || Je, n = this.getDimensions, r = await n(e.floating);
744
+ var Je = async function(e) {
745
+ let t = this.getOffsetParent || qe, n = this.getDimensions, r = await n(e.floating);
775
746
  return {
776
- reference: Ge(e.reference, await t(e.floating), e.strategy),
747
+ reference: We(e.reference, await t(e.floating), e.strategy),
777
748
  floating: {
778
749
  x: 0,
779
750
  y: 0,
@@ -782,67 +753,71 @@ var Ye = async function(e) {
782
753
  }
783
754
  };
784
755
  };
785
- function Xe(e) {
786
- return J(e).direction === "rtl";
756
+ function Ye(e) {
757
+ return q(e).direction === "rtl";
787
758
  }
788
- var Ze = {
759
+ var Xe = {
789
760
  convertOffsetParentRelativeRectToViewportRelativeRect: Pe,
790
- getDocumentElement: V,
791
- getClippingRect: Ue,
792
- getOffsetParent: Je,
793
- getElementRects: Ye,
761
+ getDocumentElement: B,
762
+ getClippingRect: He,
763
+ getOffsetParent: qe,
764
+ getElementRects: Je,
794
765
  getClientRects: Fe,
795
- getDimensions: We,
796
- getScale: Q,
797
- isElement: H,
798
- isRTL: Xe
766
+ getDimensions: Ue,
767
+ getScale: Z,
768
+ isElement: V,
769
+ isRTL: Ye
799
770
  };
800
- function Qe(e, t) {
771
+ function Ze(e, t) {
801
772
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
802
773
  }
803
- function $e(e, t) {
804
- let n = null, r, i = V(e);
805
- function a() {
774
+ function Qe(e, t, n) {
775
+ let r = null, i, a = B(e);
776
+ function o() {
806
777
  var e;
807
- clearTimeout(r), (e = n) == null || e.disconnect(), n = null;
778
+ clearTimeout(i), (e = r) == null || e.disconnect(), r = null;
808
779
  }
809
- function o(s, c) {
810
- s === void 0 && (s = !1), c === void 0 && (c = 1), a();
780
+ function s(n, c) {
781
+ n === void 0 && (n = !1), c === void 0 && (c = 1), o();
811
782
  let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
812
- if (s || t(), !f || !p) return;
813
- let g = _(d), v = _(i.clientWidth - (u + f)), y = _(i.clientHeight - (d + p)), b = _(u), x = {
783
+ if (n || t(), !f || !p) return;
784
+ let g = _(d), v = _(a.clientWidth - (u + f)), y = _(a.clientHeight - (d + p)), b = _(u), x = {
814
785
  rootMargin: -g + "px " + -v + "px " + -y + "px " + -b + "px",
815
786
  threshold: h(0, m(1, c)) || 1
816
787
  }, S = !0;
817
788
  function C(t) {
818
789
  let n = t[0].intersectionRatio;
790
+ if (!Ze(l, e.getBoundingClientRect())) return s();
819
791
  if (n !== c) {
820
- if (!S) return o();
821
- n ? o(!1, n) : r = setTimeout(() => {
822
- o(!1, 1e-7);
792
+ if (!S) return s();
793
+ n ? s(!1, n) : i = setTimeout(() => {
794
+ s(!1, 1e-7);
823
795
  }, 1e3);
824
796
  }
825
- n === 1 && !Qe(l, e.getBoundingClientRect()) && o(), S = !1;
797
+ S = !1;
826
798
  }
827
799
  try {
828
- n = new IntersectionObserver(C, {
800
+ r = new IntersectionObserver(C, {
829
801
  ...x,
830
- root: i.ownerDocument
802
+ root: a.ownerDocument
831
803
  });
832
804
  } catch {
833
- n = new IntersectionObserver(C, x);
805
+ r = new IntersectionObserver(C, x);
834
806
  }
835
- n.observe(e);
807
+ r.observe(e);
836
808
  }
837
- return o(!0), a;
809
+ let c = z(e), l = () => s(n);
810
+ return c.addEventListener("resize", l), s(!0), () => {
811
+ c.removeEventListener("resize", l), o();
812
+ };
838
813
  }
839
- function et(e, t, n, r) {
814
+ function $e(e, t, n, r) {
840
815
  r === void 0 && (r = {});
841
- let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Oe(e), u = i || a ? [...l ? Z(l) : [], ...t ? Z(t) : []] : [];
816
+ let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = ke(e), u = i || a ? [...l ? X(l) : [], ...t ? X(t) : []] : [];
842
817
  u.forEach((e) => {
843
- i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
818
+ i && e.addEventListener("scroll", n), a && e.addEventListener("resize", n);
844
819
  });
845
- let d = l && s ? $e(l, n) : null, f = -1, p = null;
820
+ let d = l && s ? Qe(l, n, a) : null, f = -1, p = null;
846
821
  o && (p = new ResizeObserver((e) => {
847
822
  let [r] = e;
848
823
  r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
@@ -850,11 +825,11 @@ function et(e, t, n, r) {
850
825
  (e = p) == null || e.observe(t);
851
826
  })), n();
852
827
  }), l && !c && p.observe(l), t && p.observe(t));
853
- let m, h = c ? $(e) : null;
828
+ let m, h = c ? Q(e) : null;
854
829
  c && g();
855
830
  function g() {
856
- let t = $(e);
857
- h && !Qe(h, t) && n(), h = t, m = requestAnimationFrame(g);
831
+ let t = Q(e);
832
+ h && !Ze(h, t) && n(), h = t, m = requestAnimationFrame(g);
858
833
  }
859
834
  return n(), () => {
860
835
  var e;
@@ -863,66 +838,64 @@ function et(e, t, n, r) {
863
838
  }), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
864
839
  };
865
840
  }
866
- var tt = pe, nt = le, rt = me, it = ue, at = he, ot = se, st = (e, t, n) => {
867
- let r = /* @__PURE__ */ new Map(), i = {
868
- platform: Ze,
869
- ...n
870
- }, a = {
841
+ var et = me, tt = ue, nt = he, rt = de, it = ge, at = ce, ot = (e, t, n) => {
842
+ let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
843
+ ...Xe,
871
844
  ...i.platform,
872
845
  _c: r
873
846
  };
874
- return oe(e, t, {
847
+ return se(e, t, {
875
848
  ...i,
876
849
  platform: a
877
850
  });
878
851
  };
879
852
  //#endregion
880
- //#region ../../node_modules/.pnpm/@floating-ui+vue@2.0.0_vue@3.5.40_typescript@6.0.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
853
+ //#region ../../node_modules/.pnpm/@floating-ui+vue@2.0.1_vue@3.5.40_typescript@6.0.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
881
854
  n(), e();
882
- function ct(e) {
855
+ function st(e) {
883
856
  return typeof e == "object" && !!e && "$el" in e;
884
857
  }
885
- function lt(e) {
886
- if (ct(e)) {
858
+ function ct(e) {
859
+ if (st(e)) {
887
860
  let t = e.$el;
888
- return ge(t) && z(t) === "#comment" ? null : t;
861
+ return _e(t) && R(t) === "#comment" ? null : t;
889
862
  }
890
863
  return e;
891
864
  }
892
- function ut(e) {
865
+ function lt(e) {
893
866
  return {
894
867
  name: "arrow",
895
868
  options: e,
896
869
  fn(t) {
897
- let n = lt(r(e.element));
898
- return n == null ? {} : ot({
870
+ let n = ct(r(e.element));
871
+ return n == null ? {} : at({
899
872
  element: n,
900
873
  padding: e.padding
901
874
  }).fn(t);
902
875
  }
903
876
  };
904
877
  }
905
- function dt(e) {
878
+ function ut(e) {
906
879
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
907
880
  }
908
- function ft(e, t) {
909
- let n = dt(e);
881
+ function dt(e, t) {
882
+ let n = ut(e);
910
883
  return Math.round(t * n) / n;
911
884
  }
912
- function pt(e, n, u) {
885
+ function ft(e, n, u) {
913
886
  u === void 0 && (u = {});
914
- let d = u.whileElementsMounted, f = a(() => r(u.open) ?? !0), p = a(() => r(u.middleware)), m = a(() => r(u.placement) ?? "bottom"), h = a(() => r(u.strategy) ?? "absolute"), g = a(() => r(u.transform) ?? !0), _ = a(() => lt(e.value)), v = a(() => lt(n.value)), y = l(0), b = l(0), x = l(h.value), S = l(m.value), C = o({}), w = l(!1), T = a(() => {
887
+ let d = u.whileElementsMounted, f = a(() => r(u.open) ?? !0), p = a(() => r(u.middleware)), m = a(() => r(u.placement) ?? "bottom"), h = a(() => r(u.strategy) ?? "absolute"), g = a(() => r(u.transform) ?? !0), _ = a(() => ct(e.value)), v = a(() => ct(n.value)), y = l(0), b = l(0), x = l(h.value), S = l(m.value), C = o({}), w = l(!1), T = a(() => {
915
888
  let e = {
916
889
  position: x.value,
917
890
  left: "0",
918
891
  top: "0"
919
892
  };
920
893
  if (!v.value) return e;
921
- let t = ft(v.value, y.value), n = ft(v.value, b.value);
894
+ let t = dt(v.value, y.value), n = dt(v.value, b.value);
922
895
  return g.value ? {
923
896
  ...e,
924
897
  transform: "translate(" + t + "px, " + n + "px)",
925
- ...dt(v.value) >= 1.5 && { willChange: "transform" }
898
+ ...ut(v.value) >= 1.5 && { willChange: "transform" }
926
899
  } : {
927
900
  position: x.value,
928
901
  left: t + "px",
@@ -932,7 +905,7 @@ function pt(e, n, u) {
932
905
  function D() {
933
906
  if (_.value == null || v.value == null) return;
934
907
  let e = f.value;
935
- st(_.value, v.value, {
908
+ ot(_.value, v.value, {
936
909
  middleware: p.value,
937
910
  placement: m.value,
938
911
  strategy: h.value
@@ -973,6 +946,6 @@ function pt(e, n, u) {
973
946
  };
974
947
  }
975
948
  //#endregion
976
- export { it as a, at as c, et as i, u as l, pt as n, tt as o, nt as r, rt as s, ut as t };
949
+ export { rt as a, it as c, $e as i, u as l, ft as n, et as o, tt as r, nt as s, lt as t };
977
950
 
978
- //# sourceMappingURL=floating-ui.vue-CIKvCpTA.js.map
951
+ //# sourceMappingURL=floating-ui.vue-BacoFpVq.js.map