@cypress-design/vue-runresults 1.0.0

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.
@@ -0,0 +1,1971 @@
1
+ import { defineComponent as re, h as F, computed as Ft, createBlock as ke, openBlock as J, unref as be, ref as S, onBeforeMount as Vt, watch as gt, createElementBlock as zt, onMounted as Ut, mergeProps as Wt, withKeys as qt, renderSlot as kt, createCommentVNode as Qt, Teleport as Zt, createElementVNode as K, normalizeClass as he, normalizeStyle as yt } from "vue";
2
+ import { compileVueIconProperties as Gt, IconStatusFlaky as Yt, IconGeneralSparkleSingleSmall as Jt } from "@cypress-design/vue-icon";
3
+ import { getComponentAttributes as Kt } from "@cypress-design/icon-registry";
4
+ const en = {
5
+ running: {
6
+ // <tw-keep strokeColor="indigo-400" />
7
+ color: "indigo-400",
8
+ use: "Runs, specs, groups, test results",
9
+ variants: ["outline"],
10
+ // <tw-keep fillColor="gray-100" />
11
+ secondaryColor: "gray-100"
12
+ },
13
+ failing: {
14
+ // <tw-keep strokeColor="red-400" />
15
+ color: "red-400",
16
+ use: "Runs, specs, groups, test results",
17
+ variants: ["outline"],
18
+ // <tw-keep fillColor="gray-100" />
19
+ secondaryColor: "gray-100"
20
+ },
21
+ passed: {
22
+ // <tw-keep strokeColor="jade-400" />
23
+ color: "jade-400",
24
+ use: "Runs, specs, groups, test results",
25
+ link: "https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests#Passed",
26
+ variants: ["outline", "simple", "solid"]
27
+ },
28
+ failed: {
29
+ // <tw-keep strokeColor="red-400" />
30
+ color: "red-400",
31
+ use: "Runs, specs, groups, test results",
32
+ link: "https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests#Failed",
33
+ variants: ["outline", "simple", "solid"]
34
+ },
35
+ unclaimed: {
36
+ // <tw-keep strokeColor="gray-100" />
37
+ color: "gray-100",
38
+ use: "Specs",
39
+ variants: ["outline"]
40
+ },
41
+ placeholder: {
42
+ // <tw-keep strokeColor="gray-300" />
43
+ color: "gray-300",
44
+ use: "Placeholder",
45
+ variants: ["solid"]
46
+ },
47
+ cancelled: {
48
+ // <tw-keep strokeColor="gray-300" />
49
+ color: "gray-300",
50
+ use: "Runs, specs, groups, test results",
51
+ variants: ["outline", "solid"]
52
+ },
53
+ noTests: {
54
+ // <tw-keep strokeColor="orange-400" />
55
+ color: "orange-400",
56
+ use: "Runs, specs, groups",
57
+ variants: ["outline", "solid"]
58
+ },
59
+ errored: {
60
+ // <tw-keep strokeColor="orange-400" />
61
+ color: "orange-400",
62
+ use: "Runs, specs, groups, test results",
63
+ variants: ["outline", "solid"]
64
+ },
65
+ timedOut: {
66
+ // <tw-keep strokeColor="orange-400" />
67
+ color: "orange-400",
68
+ use: "Runs, specs, groups, test results",
69
+ variants: ["outline", "solid"]
70
+ },
71
+ overLimit: {
72
+ // <tw-keep strokeColor="orange-400" />
73
+ color: "orange-400",
74
+ use: "Runs, specs, groups",
75
+ link: "https://docs.cypress.io/faq/questions/dashboard-faq#What-happens-once-I-reach-the-test-results-limit",
76
+ variants: ["outline", "solid"]
77
+ },
78
+ skipped: {
79
+ // <tw-keep strokeColor="gray-400" />
80
+ color: "gray-400",
81
+ use: "Test results",
82
+ link: "https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests#Skipped",
83
+ variants: ["outline"]
84
+ },
85
+ pending: {
86
+ // <tw-keep strokeColor="gray-300" />
87
+ color: "gray-300",
88
+ use: "Test results",
89
+ link: "https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests#Pending",
90
+ variants: ["outline"]
91
+ }
92
+ }, vt = en, tn = {
93
+ name: "statusCancelledOutlineX16",
94
+ data: '<path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 8h4m-2 6A6 6 0 1 1 8 2a6 6 0 0 1 0 12Z" class="icon-dark"/>'
95
+ }, nn = {
96
+ name: "statusCancelledOutlineX24",
97
+ data: '<path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8 12h8m-4 9a9 9 0 1 1 0-18 9 9 0 0 1 0 18Z" class="icon-dark"/>'
98
+ }, Ee = {
99
+ name: "statusCancelledSimpleX4",
100
+ data: '<circle cx="2" cy="2" r="1.5" stroke="currentColor" class="icon-dark"/>'
101
+ }, Me = {
102
+ name: "statusCancelledSimpleX8",
103
+ data: '<path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M1 4h6" class="icon-dark"/>'
104
+ }, je = {
105
+ name: "statusCancelledSolidX12",
106
+ data: '<path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M2 6h8" class="icon-dark"/>'
107
+ }, At = {
108
+ name: "statusCancelledSolidX16",
109
+ data: '<path fill="#afb3c7" fill-rule="evenodd" d="M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8m4-1a1 1 0 0 0 0 2h6a1 1 0 1 0 0-2z" clip-rule="evenodd"/>'
110
+ }, Tt = {
111
+ name: "statusCancelledSolidX24",
112
+ data: '<path fill="#afb3c7" fill-rule="evenodd" d="M2 12c0 5.523 4.477 10 10 10s10-4.477 10-10S17.523 2 12 2 2 6.477 2 12m6-1a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2z" clip-rule="evenodd"/>'
113
+ }, ge = {
114
+ name: "statusErroredOutlineX16",
115
+ data: '<path fill="currentColor" fill-rule="evenodd" d="M2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8m6-8a8 8 0 1 0 0 16A8 8 0 0 0 8 0m1 5a1 1 0 0 0-2 0v3a1 1 0 0 0 2 0zm-1 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2" class="icon-dark" clip-rule="evenodd"/>'
116
+ }, ze = {
117
+ name: "statusErroredOutlineX24",
118
+ data: '<circle cx="12" cy="12" r="9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="icon-dark"/><path fill="currentColor" fill-rule="evenodd" d="M12 7a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V8a1 1 0 0 1 1-1" class="icon-dark" clip-rule="evenodd"/><path fill="currentColor" d="M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0" class="icon-dark"/>'
119
+ }, E = {
120
+ name: "statusErroredSimpleX4",
121
+ data: '<circle cx="2" cy="2" r="2" fill="currentColor" class="icon-dark"/>'
122
+ }, M = {
123
+ name: "statusErroredSimpleX8",
124
+ data: '<path fill="currentColor" fill-rule="evenodd" d="M4 0a1 1 0 0 1 1 1v3a1 1 0 0 1-2 0V1a1 1 0 0 1 1-1" class="icon-dark" clip-rule="evenodd"/><path fill="currentColor" d="M5 7a1 1 0 1 1-2 0 1 1 0 0 1 2 0" class="icon-dark"/>'
125
+ }, j = {
126
+ name: "statusErroredSolidX12",
127
+ data: '<path fill="currentColor" fill-rule="evenodd" d="M6 1a1 1 0 0 1 1 1v5a1 1 0 0 1-2 0V2a1 1 0 0 1 1-1" class="icon-dark" clip-rule="evenodd"/><path fill="currentColor" d="M7 10a1 1 0 1 1-2 0 1 1 0 0 1 2 0" class="icon-dark"/>'
128
+ }, W = {
129
+ name: "statusErroredSolidX16",
130
+ data: '<path fill="currentColor" fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14M9 5a1 1 0 0 0-2 0v3a1 1 0 0 0 2 0zm-1 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2" class="icon-dark" clip-rule="evenodd"/>'
131
+ }, q = {
132
+ name: "statusErroredSolidX24",
133
+ data: '<path fill="currentColor" fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10m1-14a1 1 0 1 0-2 0v5a1 1 0 1 0 2 0zm-1 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2" class="icon-dark" clip-rule="evenodd"/>'
134
+ }, on = {
135
+ name: "statusFailedOutlineX16",
136
+ data: '<path fill="currentColor" d="M6.707 5.293a1 1 0 0 0-1.414 1.414zm2.586 5.414a1 1 0 0 0 1.414-1.414zm1.414-4a1 1 0 0 0-1.414-1.414zM5.293 9.293a1 1 0 0 0 1.414 1.414zM13 8a5 5 0 0 1-5 5v2a7 7 0 0 0 7-7zm-5 5a5 5 0 0 1-5-5H1a7 7 0 0 0 7 7zM3 8a5 5 0 0 1 5-5V1a7 7 0 0 0-7 7zm5-5a5 5 0 0 1 5 5h2a7 7 0 0 0-7-7zM5.293 6.707l2 2 1.414-1.414-2-2zm2 2 2 2 1.414-1.414-2-2zm2-3.414-2 2 1.414 1.414 2-2zm-2 2-2 2 1.414 1.414 2-2z" class="icon-dark"/>'
137
+ }, sn = {
138
+ name: "statusFailedOutlineX24",
139
+ data: '<path fill="currentColor" d="M9.707 8.293a1 1 0 0 0-1.414 1.414zm4.586 7.414a1 1 0 0 0 1.414-1.414zm1.414-6a1 1 0 0 0-1.414-1.414zm-7.414 4.586a1 1 0 1 0 1.414 1.414zm0-4.586 3 3 1.414-1.414-3-3zm3 3 3 3 1.414-1.414-3-3zm3-4.414-3 3 1.414 1.414 3-3zm-3 3-3 3 1.414 1.414 3-3zM20 12a8 8 0 0 1-8 8v2c5.523 0 10-4.477 10-10zm-8 8a8 8 0 0 1-8-8H2c0 5.523 4.477 10 10 10zm-8-8a8 8 0 0 1 8-8V2C6.477 2 2 6.477 2 12zm8-8a8 8 0 0 1 8 8h2c0-5.523-4.477-10-10-10z" class="icon-dark"/>'
140
+ }, Xe = {
141
+ name: "statusFailedSimpleX12",
142
+ data: '<path fill="currentColor" d="M3.707 2.293a1 1 0 0 0-1.414 1.414zm4.586 7.414a1 1 0 0 0 1.414-1.414zm1.414-6a1 1 0 0 0-1.414-1.414zM2.293 8.293a1 1 0 0 0 1.414 1.414zm0-4.586 6 6 1.414-1.414-6-6zm6-1.414-6 6 1.414 1.414 6-6z" class="icon-dark"/>'
143
+ }, an = {
144
+ name: "statusFailedSimpleX16",
145
+ data: '<path fill="currentColor" d="M4.707 3.293a1 1 0 0 0-1.414 1.414zm6.586 9.414a1 1 0 0 0 1.414-1.414zm1.414-8a1 1 0 0 0-1.414-1.414zm-9.414 6.586a1 1 0 1 0 1.414 1.414zm0-6.586 4 4 1.414-1.414-4-4zm4 4 4 4 1.414-1.414-4-4zm4-5.414-4 4 1.414 1.414 4-4zm-4 4-4 4 1.414 1.414 4-4z" class="icon-dark"/>'
146
+ }, rn = {
147
+ name: "statusFailedSimpleX24",
148
+ data: '<path fill="currentColor" d="M6.707 5.293a1 1 0 0 0-1.414 1.414zm10.586 13.414a1 1 0 0 0 1.414-1.414zm1.414-12a1 1 0 0 0-1.414-1.414zM5.293 17.293a1 1 0 1 0 1.414 1.414zm0-10.586 6 6 1.414-1.414-6-6zm6 6 6 6 1.414-1.414-6-6zm6-7.414-6 6 1.414 1.414 6-6zm-6 6-6 6 1.414 1.414 6-6z" class="icon-dark"/>'
149
+ }, $e = {
150
+ name: "statusFailedSimpleX4",
151
+ data: '<circle cx="2" cy="2" r="2" fill="currentColor" class="icon-dark"/>'
152
+ }, Le = {
153
+ name: "statusFailedSimpleX8",
154
+ data: '<path fill="currentColor" d="M2.707 1.293a1 1 0 0 0-1.414 1.414zm2.586 5.414a1 1 0 0 0 1.414-1.414zm1.414-4a1 1 0 0 0-1.414-1.414zM1.293 5.293a1 1 0 0 0 1.414 1.414zm0-2.586 4 4 1.414-1.414-4-4zm4-1.414-4 4 1.414 1.414 4-4z" class="icon-dark"/>'
155
+ }, ln = {
156
+ name: "statusFailedSolidX16",
157
+ data: '<circle cx="8" cy="8" r="7" fill="currentColor" class="icon-dark"/><path fill="#fff" d="M6.707 5.293a1 1 0 0 0-1.414 1.414zm2.586 5.414a1 1 0 0 0 1.414-1.414zm1.414-4a1 1 0 0 0-1.414-1.414zM5.293 9.293a1 1 0 0 0 1.414 1.414zm0-2.586 4 4 1.414-1.414-4-4zm4-1.414-4 4 1.414 1.414 4-4z"/>'
158
+ }, cn = {
159
+ name: "statusFailedSolidX24",
160
+ data: '<path fill="currentColor" fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10M9.707 8.293a1 1 0 0 0-1.414 1.414L10.586 12l-2.293 2.293a1 1 0 1 0 1.414 1.414L12 13.414l2.293 2.293a1 1 0 0 0 1.414-1.414L13.414 12l2.293-2.293a1 1 0 0 0-1.414-1.414L12 10.586z" class="icon-dark" clip-rule="evenodd"/>'
161
+ }, Re = {
162
+ name: "statusFailingOutlineX16",
163
+ data: '<path fill="currentColor" d="M6.707 5.293a1 1 0 0 0-1.414 1.414zm2.586 5.414a1 1 0 0 0 1.414-1.414zm1.414-4a1 1 0 0 0-1.414-1.414zM5.293 9.293a1 1 0 0 0 1.414 1.414zm0-2.586 4 4 1.414-1.414-4-4zm4-1.414-4 4 1.414 1.414 4-4z" class="icon-dark"/><circle cx="8" cy="8" r="6" stroke="#e1e3ed" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="icon-light"/><circle cx="8" cy="8" r="6" stroke="currentColor" stroke-dasharray="10 28" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="icon-dark"><animate attributeName="stroke-dashoffset" dur="1s" repeatCount="indefinite" values="36.6;0"/></circle>'
164
+ }, Pe = {
165
+ name: "statusFailingOutlineX24",
166
+ data: '<path fill="currentColor" d="M9.707 8.293a1 1 0 0 0-1.414 1.414zm4.586 7.414a1 1 0 0 0 1.414-1.414zm1.414-6a1 1 0 0 0-1.414-1.414zm-7.414 4.586a1 1 0 1 0 1.414 1.414zm0-4.586 3 3 1.414-1.414-3-3zm3 3 3 3 1.414-1.414-3-3zm3-4.414-3 3 1.414 1.414 3-3zm-3 3-3 3 1.414 1.414 3-3zM20 12" class="icon-dark"/><circle cx="12" cy="12" r="9" stroke="#e1e3ed" stroke-width="2" class="icon-light"/><circle cx="12" cy="12" r="9" stroke="currentColor" stroke-dasharray="15 42" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="icon-dark"><animate attributeName="stroke-dashoffset" dur="1s" repeatCount="indefinite" values="57;0"/></circle>'
167
+ }, dn = {
168
+ name: "statusPassedOutlineX16",
169
+ data: '<circle cx="8" cy="8" r="6" stroke="currentColor" stroke-width="2" class="icon-dark"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m10 6-2.5 4L6 8.5" class="icon-dark"/>'
170
+ }, un = {
171
+ name: "statusPassedOutlineX24",
172
+ data: '<path fill="currentColor" fill-rule="evenodd" d="M4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0m8-10C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m3.864 7.504a1 1 0 0 0-1.728-1.008l-2.846 4.88-1.583-1.583a1 1 0 0 0-1.414 1.414l2.5 2.5a1 1 0 0 0 1.57-.203z" class="icon-dark" clip-rule="evenodd"/>'
173
+ }, De = {
174
+ name: "statusPassedSimpleX12",
175
+ data: '<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3 5 9 3 6.5" class="icon-dark"/>'
176
+ }, fn = {
177
+ name: "statusPassedSimpleX16",
178
+ data: '<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 8.667 7.333 12 12 4" class="icon-dark"/>'
179
+ }, pn = {
180
+ name: "statusPassedSimpleX24",
181
+ data: '<path fill="currentColor" fill-rule="evenodd" d="M15.504 8.136a1 1 0 0 1 .36 1.368l-3.5 6a1 1 0 0 1-1.571.203l-2.5-2.5a1 1 0 1 1 1.414-1.414l1.583 1.583 2.846-4.88a1 1 0 0 1 1.368-.36" class="icon-dark" clip-rule="evenodd"/>'
182
+ }, Be = {
183
+ name: "statusPassedSimpleX4",
184
+ data: '<circle cx="2" cy="2" r="2" fill="currentColor" class="icon-dark"/>'
185
+ }, He = {
186
+ name: "statusPassedSimpleX8",
187
+ data: '<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 2 3.5 6 2 4.5" class="icon-dark"/>'
188
+ }, mn = {
189
+ name: "statusPassedSolidX16",
190
+ data: '<circle cx="8" cy="8" r="7" fill="currentColor" class="icon-dark"/><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m10 6-2.5 4L6 8.5"/>'
191
+ }, hn = {
192
+ name: "statusPassedSolidX24",
193
+ data: '<path fill="currentColor" fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10m3.864-12.496a1 1 0 0 0-1.728-1.008l-2.846 4.88-1.583-1.583a1 1 0 0 0-1.414 1.414l2.5 2.5a1 1 0 0 0 1.57-.203z" class="icon-dark" clip-rule="evenodd"/>'
194
+ }, _e = {
195
+ name: "statusPendingOutlineX12",
196
+ data: '<path stroke="currentColor" stroke-width="2" d="M4.47 2.305a4 4 0 1 0 3.061 0" class="icon-dark"/>'
197
+ }, Ne = {
198
+ name: "statusPendingOutlineX16",
199
+ data: '<path stroke="currentColor" stroke-width="2" d="M5.706 2.46a5.998 5.998 0 1 0 4.59 0" class="icon-dark"/>'
200
+ }, Ve = {
201
+ name: "statusPendingOutlineX24",
202
+ data: '<path stroke="currentColor" stroke-width="2" d="M8.555 3.685a8.999 8.999 0 1 0 6.887 0" class="icon-dark"/>'
203
+ }, Ue = {
204
+ name: "statusPendingSimpleX4",
205
+ data: '<circle cx="2" cy="2" r="1.5" stroke="currentColor" class="icon-dark"/>'
206
+ }, We = {
207
+ name: "statusPendingSimpleX8",
208
+ data: '<path stroke="currentColor" stroke-width="2" d="M2.852 1.228a3 3 0 1 0 2.296 0" class="icon-dark"/>'
209
+ }, qe = {
210
+ name: "statusPlaceholderSimpleX4",
211
+ data: '<circle cx="2" cy="2" r="2" fill="currentColor" class="icon-dark"/>'
212
+ }, Qe = {
213
+ name: "statusPlaceholderSimpleX8",
214
+ data: '<circle cx="4" cy="4" r="3" fill="currentColor" class="icon-dark"/>'
215
+ }, Ze = {
216
+ name: "statusPlaceholderSolidX12",
217
+ data: '<circle cx="6" cy="6" r="5" fill="currentColor" class="icon-dark"/>'
218
+ }, Ge = {
219
+ name: "statusPlaceholderSolidX16",
220
+ data: '<circle cx="8" cy="8" r="7" fill="currentColor" class="icon-dark"/>'
221
+ }, Ye = {
222
+ name: "statusPlaceholderSolidX24",
223
+ data: '<circle cx="12" cy="12" r="10" fill="currentColor" class="icon-dark"/>'
224
+ }, Je = {
225
+ name: "statusQueuedOutlineX12",
226
+ data: '<circle cx="6" cy="6" r="4" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="icon-dark"/>'
227
+ }, Ke = {
228
+ name: "statusQueuedOutlineX16",
229
+ data: '<circle cx="8" cy="8" r="6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="icon-dark"/>'
230
+ }, et = {
231
+ name: "statusQueuedOutlineX24",
232
+ data: '<circle cx="12" cy="12" r="9" stroke="currentColor" stroke-width="2" class="icon-dark"/>'
233
+ }, tt = {
234
+ name: "statusQueuedSimpleX4",
235
+ data: '<circle cx="2" cy="2" r="1.5" stroke="currentColor" class="icon-dark"/>'
236
+ }, nt = {
237
+ name: "statusQueuedSimpleX8",
238
+ data: '<circle cx="4" cy="4" r="3" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="icon-dark"/>'
239
+ }, ne = {
240
+ name: "statusRunningOutlineX12",
241
+ data: '<circle cx="6" cy="6" r="4" stroke="#e1e3ed" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="icon-light"/><circle cx="6" cy="6" r="4" stroke="currentColor" stroke-dasharray="5 20" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="icon-dark"><animate attributeName="stroke-dashoffset" dur="1s" repeatCount="indefinite" values="25;0"/></circle>'
242
+ }, ot = {
243
+ name: "statusRunningOutlineX16",
244
+ data: '<circle cx="8" cy="8" r="6" stroke="#e1e3ed" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="icon-light"/><circle cx="8" cy="8" r="6" stroke="currentColor" stroke-dasharray="10 28" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="icon-dark"><animate attributeName="stroke-dashoffset" dur="1s" repeatCount="indefinite" values="36.6;0"/></circle>'
245
+ }, it = {
246
+ name: "statusRunningOutlineX24",
247
+ data: '<circle cx="12" cy="12" r="9" stroke="#e1e3ed" stroke-width="2" class="icon-light"/><circle cx="12" cy="12" r="9" stroke="currentColor" stroke-dasharray="15 42" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="icon-dark"><animate attributeName="stroke-dashoffset" dur="1s" repeatCount="indefinite" values="57;0"/></circle>'
248
+ }, oe = {
249
+ name: "statusRunningSimpleX4",
250
+ data: '<circle cx="2" cy="2" r="1.5" fill="#c5c9fd" stroke="currentColor" class="icon-dark-stroke icon-light-fill"><animate attributeName="stroke-width" dur="1.5s" repeatCount="indefinite" values="2;1;2"/><animate attributeName="r" dur="1.5s" repeatCount="indefinite" values="1;1.5;1"/></circle>'
251
+ }, ie = {
252
+ name: "statusRunningSimpleX8",
253
+ data: '<circle cx="4" cy="4" r="3" stroke="#e1e3ed" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="icon-light"/><circle cx="4" cy="4" r="3" stroke="currentColor" stroke-dasharray="5 14" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="icon-dark"><animate attributeName="stroke-dashoffset" dur="1s" repeatCount="indefinite" values="18.3;0"/></circle>'
254
+ }, st = {
255
+ name: "statusSkippedOutlineX12",
256
+ data: '<path stroke="currentColor" stroke-width="2" d="M3.172 8.828a4 4 0 0 0 5.656-5.656M3.172 8.828a4 4 0 0 1 5.656-5.656M3.172 8.828l5.656-5.656" class="icon-dark"/>'
257
+ }, at = {
258
+ name: "statusSkippedOutlineX16",
259
+ data: '<path stroke="currentColor" stroke-width="2" d="M3.757 12.243a6 6 0 1 0 8.486-8.486m-8.486 8.486a6 6 0 1 1 8.486-8.486m-8.486 8.486 8.486-8.486" class="icon-dark"/>'
260
+ }, rt = {
261
+ name: "statusSkippedOutlineX24",
262
+ data: '<path stroke="currentColor" stroke-width="2" d="M5.636 18.364A9 9 0 0 0 18.364 5.636M5.636 18.364A9 9 0 0 1 18.364 5.636M5.636 18.364 18.364 5.636" class="icon-dark"/>'
263
+ }, lt = {
264
+ name: "statusSkippedSimpleX4",
265
+ data: '<circle cx="2" cy="2" r="1.5" stroke="currentColor" class="icon-dark"/>'
266
+ }, ct = {
267
+ name: "statusSkippedSimpleX8",
268
+ data: '<path stroke="currentColor" stroke-width="2" d="M1.879 6.121A3 3 0 0 0 6.12 1.88M1.88 6.12A3 3 0 1 1 6.12 1.88M1.88 6.12 6.12 1.88" class="icon-dark"/>'
269
+ };
270
+ var gn = typeof global == "object" && global && global.Object === Object && global, zn = typeof self == "object" && self && self.Object === Object && self, kn = gn || zn || Function("return this")(), se = kn.Symbol;
271
+ se && se.toStringTag;
272
+ se && se.toStringTag;
273
+ var It = se ? se.prototype : void 0;
274
+ It && It.toString;
275
+ const y = {
276
+ jade: {
277
+ 50: "#E4FBF2",
278
+ 100: "#C2F1DE",
279
+ 200: "#A3E7CB",
280
+ 300: "#69D3A7",
281
+ 400: "#1FA971",
282
+ 500: "#00814D",
283
+ 600: "#005F39",
284
+ 700: "#00442A",
285
+ 800: "#003220",
286
+ 900: "#00291B",
287
+ 1e3: "#00261A"
288
+ },
289
+ red: {
290
+ 50: "#FBEFF1",
291
+ 100: "#FAD9DF",
292
+ 200: "#F8C4CD",
293
+ 300: "#F59AA9",
294
+ 400: "#E45770",
295
+ 500: "#C62B49",
296
+ 600: "#9F1331",
297
+ 700: "#7A0723",
298
+ 800: "#5E021B",
299
+ 900: "#4F0018",
300
+ 1e3: "#490018"
301
+ },
302
+ orange: {
303
+ 50: "#F5F4D7",
304
+ 100: "#F3ECB3",
305
+ 200: "#F1E08F",
306
+ 300: "#EDBB4A",
307
+ 400: "#DB7903",
308
+ 500: "#BD5800",
309
+ 600: "#963F00",
310
+ 700: "#702C00",
311
+ 800: "#521F00",
312
+ 900: "#411800",
313
+ 1e3: "#391500"
314
+ },
315
+ indigo: {
316
+ 50: "#F0F1FF",
317
+ 100: "#DADDFE",
318
+ 200: "#C5C9FD",
319
+ 300: "#9AA2FC",
320
+ 400: "#6470F3",
321
+ 500: "#4956E3",
322
+ 600: "#3A46CC",
323
+ 700: "#2F3AB0",
324
+ 800: "#252E8F",
325
+ 900: "#1C236D",
326
+ 1e3: "#151A50"
327
+ },
328
+ gray: {
329
+ 25: "#FAFAFC",
330
+ 50: "#F3F4FA",
331
+ 100: "#E1E3ED",
332
+ 200: "#D0D2E0",
333
+ 300: "#BFC2D4",
334
+ 400: "#AFB3C7",
335
+ 500: "#9095AD",
336
+ 600: "#747994",
337
+ 700: "#5A5F7A",
338
+ 800: "#434861",
339
+ 900: "#2E3247",
340
+ 950: "#25283C",
341
+ 1e3: "#1B1E2E"
342
+ }
343
+ };
344
+ Object.assign(Object.assign({}, y.indigo), { DEFAULT: y.indigo[500] }), Object.assign(Object.assign({}, y.indigo), { DEFAULT: y.indigo[50] }), Object.assign(Object.assign({}, y.red), { DEFAULT: y.red[400] }), Object.assign(Object.assign({}, y.red), { DEFAULT: y.red[500] }), Object.assign(Object.assign({}, y.indigo), { DEFAULT: y.indigo[500] }), Object.assign(Object.assign({}, y.orange), { DEFAULT: y.orange[500] }), Object.assign(Object.assign({}, y.orange), { DEFAULT: y.orange[400] }), Object.assign(Object.assign({}, y.jade), { DEFAULT: y.jade[400] }), Object.assign(Object.assign({}, y.jade), { DEFAULT: y.jade[300] }), Object.assign(Object.assign({}, y.jade), { DEFAULT: y.jade[500] }), Object.assign(Object.assign({}, y.gray), { DEFAULT: y.gray[600] });
345
+ const yn = {
346
+ running: {
347
+ size4Icon: oe,
348
+ size8Icon: ie,
349
+ size12Icon: ne,
350
+ size16Icon: ot,
351
+ size24Icon: it
352
+ },
353
+ failing: {
354
+ size4Icon: oe,
355
+ size8Icon: ie,
356
+ size12Icon: ne,
357
+ size16Icon: Re,
358
+ size24Icon: Pe
359
+ },
360
+ passed: {
361
+ size4Icon: Be,
362
+ size8Icon: He,
363
+ size12Icon: De,
364
+ size16Icon: dn,
365
+ size24Icon: un
366
+ },
367
+ failed: {
368
+ size4Icon: $e,
369
+ size8Icon: Le,
370
+ size12Icon: Xe,
371
+ size16Icon: on,
372
+ size24Icon: sn
373
+ },
374
+ unclaimed: {
375
+ size4Icon: tt,
376
+ size8Icon: nt,
377
+ size12Icon: Je,
378
+ size16Icon: Ke,
379
+ size24Icon: et
380
+ },
381
+ placeholder: {
382
+ size4Icon: qe,
383
+ size8Icon: Qe,
384
+ size12Icon: Ze,
385
+ size16Icon: Ge,
386
+ size24Icon: Ye
387
+ },
388
+ cancelled: {
389
+ size4Icon: Ee,
390
+ size8Icon: Me,
391
+ size12Icon: je,
392
+ size16Icon: tn,
393
+ size24Icon: nn
394
+ },
395
+ noTests: {
396
+ size4Icon: E,
397
+ size8Icon: M,
398
+ size12Icon: j,
399
+ size16Icon: ge,
400
+ size24Icon: ze
401
+ },
402
+ errored: {
403
+ size4Icon: E,
404
+ size8Icon: M,
405
+ size12Icon: j,
406
+ size16Icon: ge,
407
+ size24Icon: ze
408
+ },
409
+ timedOut: {
410
+ size4Icon: E,
411
+ size8Icon: M,
412
+ size12Icon: j,
413
+ size16Icon: ge,
414
+ size24Icon: ze
415
+ },
416
+ overLimit: {
417
+ size4Icon: E,
418
+ size8Icon: M,
419
+ size12Icon: j,
420
+ size16Icon: ge,
421
+ size24Icon: ze
422
+ },
423
+ skipped: {
424
+ size4Icon: lt,
425
+ size8Icon: ct,
426
+ size12Icon: st,
427
+ size16Icon: at,
428
+ size24Icon: rt
429
+ },
430
+ pending: {
431
+ size4Icon: Ue,
432
+ size8Icon: We,
433
+ size12Icon: _e,
434
+ size16Icon: Ne,
435
+ size24Icon: Ve
436
+ }
437
+ };
438
+ var vn = /* @__PURE__ */ Object.freeze({
439
+ __proto__: null,
440
+ statuses: yn
441
+ });
442
+ const In = {
443
+ running: {
444
+ size4Icon: oe,
445
+ size8Icon: ie,
446
+ size12Icon: ne,
447
+ size16Icon: ot,
448
+ size24Icon: it
449
+ },
450
+ failing: {
451
+ size4Icon: oe,
452
+ size8Icon: ie,
453
+ size12Icon: ne,
454
+ size16Icon: Re,
455
+ size24Icon: Pe
456
+ },
457
+ passed: {
458
+ size4Icon: Be,
459
+ size8Icon: He,
460
+ size12Icon: De,
461
+ size16Icon: fn,
462
+ size24Icon: pn
463
+ },
464
+ failed: {
465
+ size4Icon: $e,
466
+ size8Icon: Le,
467
+ size12Icon: Xe,
468
+ size16Icon: an,
469
+ size24Icon: rn
470
+ },
471
+ unclaimed: {
472
+ size4Icon: tt,
473
+ size8Icon: nt,
474
+ size12Icon: Je,
475
+ size16Icon: Ke,
476
+ size24Icon: et
477
+ },
478
+ placeholder: {
479
+ size4Icon: qe,
480
+ size8Icon: Qe,
481
+ size12Icon: Ze,
482
+ size16Icon: Ge,
483
+ size24Icon: Ye
484
+ },
485
+ cancelled: {
486
+ size4Icon: Ee,
487
+ size8Icon: Me,
488
+ size12Icon: je,
489
+ size16Icon: At,
490
+ size24Icon: Tt
491
+ },
492
+ noTests: {
493
+ size4Icon: E,
494
+ size8Icon: M,
495
+ size12Icon: j,
496
+ size16Icon: W,
497
+ size24Icon: q
498
+ },
499
+ errored: {
500
+ size4Icon: E,
501
+ size8Icon: M,
502
+ size12Icon: j,
503
+ size16Icon: W,
504
+ size24Icon: q
505
+ },
506
+ timedOut: {
507
+ size4Icon: E,
508
+ size8Icon: M,
509
+ size12Icon: j,
510
+ size16Icon: W,
511
+ size24Icon: q
512
+ },
513
+ overLimit: {
514
+ size4Icon: E,
515
+ size8Icon: M,
516
+ size12Icon: j,
517
+ size16Icon: W,
518
+ size24Icon: q
519
+ },
520
+ skipped: {
521
+ size4Icon: lt,
522
+ size8Icon: ct,
523
+ size12Icon: st,
524
+ size16Icon: at,
525
+ size24Icon: rt
526
+ },
527
+ pending: {
528
+ size4Icon: Ue,
529
+ size8Icon: We,
530
+ size12Icon: _e,
531
+ size16Icon: Ne,
532
+ size24Icon: Ve
533
+ }
534
+ };
535
+ var xn = /* @__PURE__ */ Object.freeze({
536
+ __proto__: null,
537
+ statuses: In
538
+ });
539
+ const wn = {
540
+ running: {
541
+ size4Icon: oe,
542
+ size8Icon: ie,
543
+ size12Icon: ne,
544
+ size16Icon: ot,
545
+ size24Icon: it
546
+ },
547
+ failing: {
548
+ size4Icon: oe,
549
+ size8Icon: ie,
550
+ size12Icon: ne,
551
+ size16Icon: Re,
552
+ size24Icon: Pe
553
+ },
554
+ passed: {
555
+ size4Icon: Be,
556
+ size8Icon: He,
557
+ size12Icon: De,
558
+ size16Icon: mn,
559
+ size24Icon: hn
560
+ },
561
+ failed: {
562
+ size4Icon: $e,
563
+ size8Icon: Le,
564
+ size12Icon: Xe,
565
+ size16Icon: ln,
566
+ size24Icon: cn
567
+ },
568
+ unclaimed: {
569
+ size4Icon: tt,
570
+ size8Icon: nt,
571
+ size12Icon: Je,
572
+ size16Icon: Ke,
573
+ size24Icon: et
574
+ },
575
+ placeholder: {
576
+ size4Icon: qe,
577
+ size8Icon: Qe,
578
+ size12Icon: Ze,
579
+ size16Icon: Ge,
580
+ size24Icon: Ye
581
+ },
582
+ cancelled: {
583
+ size4Icon: Ee,
584
+ size8Icon: Me,
585
+ size12Icon: je,
586
+ size16Icon: At,
587
+ size24Icon: Tt
588
+ },
589
+ noTests: {
590
+ size4Icon: E,
591
+ size8Icon: M,
592
+ size12Icon: j,
593
+ size16Icon: W,
594
+ size24Icon: q
595
+ },
596
+ errored: {
597
+ size4Icon: E,
598
+ size8Icon: M,
599
+ size12Icon: j,
600
+ size16Icon: W,
601
+ size24Icon: q
602
+ },
603
+ timedOut: {
604
+ size4Icon: E,
605
+ size8Icon: M,
606
+ size12Icon: j,
607
+ size16Icon: W,
608
+ size24Icon: q
609
+ },
610
+ overLimit: {
611
+ size4Icon: E,
612
+ size8Icon: M,
613
+ size12Icon: j,
614
+ size16Icon: W,
615
+ size24Icon: q
616
+ },
617
+ skipped: {
618
+ size4Icon: lt,
619
+ size8Icon: ct,
620
+ size12Icon: st,
621
+ size16Icon: at,
622
+ size24Icon: rt
623
+ },
624
+ pending: {
625
+ size4Icon: Ue,
626
+ size8Icon: We,
627
+ size12Icon: _e,
628
+ size16Icon: Ne,
629
+ size24Icon: Ve
630
+ }
631
+ };
632
+ var bn = /* @__PURE__ */ Object.freeze({
633
+ __proto__: null,
634
+ statuses: wn
635
+ });
636
+ const dt = (e, t) => {
637
+ const o = Ft(() => {
638
+ const { statuses: n, variantName: s } = t, { status: i, size: a, ...r } = e, l = i ? n[i] : n.placeholder, c = i ? vt[i] : vt.placeholder, { data: f } = l[`size${a}Icon`], u = ["inline-block"], { compiledClasses: p } = Kt({
639
+ size: a,
640
+ availableSizes: [a],
641
+ strokeColor: c.color,
642
+ fillColor: c.secondaryColor
643
+ });
644
+ return {
645
+ name: `status_${i}_${a}_${s}`,
646
+ compiledClasses: [...p, ...u],
647
+ size: a,
648
+ body: f,
649
+ ...r
650
+ };
651
+ });
652
+ return Gt(o);
653
+ }, Cn = re({
654
+ props: ["size", "status"],
655
+ setup(e) {
656
+ const { componentProps: t } = dt(e, {
657
+ variantName: "outline",
658
+ statuses: vn.statuses
659
+ });
660
+ return () => F("svg", t.value);
661
+ }
662
+ }), Sn = re({
663
+ props: ["size", "status"],
664
+ setup(e) {
665
+ const { componentProps: t } = dt(e, {
666
+ variantName: "simple",
667
+ statuses: xn.statuses
668
+ });
669
+ return () => F("svg", t.value);
670
+ }
671
+ }), On = re({
672
+ props: ["size", "status"],
673
+ setup(e) {
674
+ const { componentProps: t } = dt(e, {
675
+ variantName: "solid",
676
+ statuses: bn.statuses
677
+ });
678
+ return () => F("svg", t.value);
679
+ }
680
+ }), Fn = /* @__PURE__ */ re({
681
+ __name: "StatusIcon",
682
+ props: {
683
+ size: { default: "24" },
684
+ status: { default: "placeholder" },
685
+ variant: { default: "simple" }
686
+ },
687
+ setup(e) {
688
+ return (t, o) => t.variant === "outline" ? (J(), ke(be(Cn), {
689
+ key: 0,
690
+ size: t.size,
691
+ status: t.status
692
+ }, null, 8, ["size", "status"])) : t.variant === "simple" ? (J(), ke(be(Sn), {
693
+ key: 1,
694
+ size: t.size,
695
+ status: t.status
696
+ }, null, 8, ["size", "status"])) : (J(), ke(be(On), {
697
+ key: 2,
698
+ size: t.size,
699
+ status: t.status
700
+ }, null, 8, ["size", "status"]));
701
+ }
702
+ }), de = Math.min, ee = Math.max, ye = Math.round, Q = (e) => ({
703
+ x: e,
704
+ y: e
705
+ }), An = {
706
+ left: "right",
707
+ right: "left",
708
+ bottom: "top",
709
+ top: "bottom"
710
+ }, Tn = {
711
+ start: "end",
712
+ end: "start"
713
+ };
714
+ function Oe(e, t, o) {
715
+ return ee(e, de(t, o));
716
+ }
717
+ function fe(e, t) {
718
+ return typeof e == "function" ? e(t) : e;
719
+ }
720
+ function Y(e) {
721
+ return e.split("-")[0];
722
+ }
723
+ function pe(e) {
724
+ return e.split("-")[1];
725
+ }
726
+ function Et(e) {
727
+ return e === "x" ? "y" : "x";
728
+ }
729
+ function ut(e) {
730
+ return e === "y" ? "height" : "width";
731
+ }
732
+ function xe(e) {
733
+ return ["top", "bottom"].includes(Y(e)) ? "y" : "x";
734
+ }
735
+ function ft(e) {
736
+ return Et(xe(e));
737
+ }
738
+ function En(e, t, o) {
739
+ o === void 0 && (o = !1);
740
+ const n = pe(e), s = ft(e), i = ut(s);
741
+ let a = s === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
742
+ return t.reference[i] > t.floating[i] && (a = ve(a)), [a, ve(a)];
743
+ }
744
+ function Mn(e) {
745
+ const t = ve(e);
746
+ return [Fe(e), t, Fe(t)];
747
+ }
748
+ function Fe(e) {
749
+ return e.replace(/start|end/g, (t) => Tn[t]);
750
+ }
751
+ function jn(e, t, o) {
752
+ const n = ["left", "right"], s = ["right", "left"], i = ["top", "bottom"], a = ["bottom", "top"];
753
+ switch (e) {
754
+ case "top":
755
+ case "bottom":
756
+ return o ? t ? s : n : t ? n : s;
757
+ case "left":
758
+ case "right":
759
+ return t ? i : a;
760
+ default:
761
+ return [];
762
+ }
763
+ }
764
+ function Xn(e, t, o, n) {
765
+ const s = pe(e);
766
+ let i = jn(Y(e), o === "start", n);
767
+ return s && (i = i.map((a) => a + "-" + s), t && (i = i.concat(i.map(Fe)))), i;
768
+ }
769
+ function ve(e) {
770
+ return e.replace(/left|right|bottom|top/g, (t) => An[t]);
771
+ }
772
+ function $n(e) {
773
+ return {
774
+ top: 0,
775
+ right: 0,
776
+ bottom: 0,
777
+ left: 0,
778
+ ...e
779
+ };
780
+ }
781
+ function Mt(e) {
782
+ return typeof e != "number" ? $n(e) : {
783
+ top: e,
784
+ right: e,
785
+ bottom: e,
786
+ left: e
787
+ };
788
+ }
789
+ function Ie(e) {
790
+ return {
791
+ ...e,
792
+ top: e.y,
793
+ left: e.x,
794
+ right: e.x + e.width,
795
+ bottom: e.y + e.height
796
+ };
797
+ }
798
+ function xt(e, t, o) {
799
+ let {
800
+ reference: n,
801
+ floating: s
802
+ } = e;
803
+ const i = xe(t), a = ft(t), r = ut(a), l = Y(t), c = i === "y", f = n.x + n.width / 2 - s.width / 2, u = n.y + n.height / 2 - s.height / 2, p = n[r] / 2 - s[r] / 2;
804
+ let d;
805
+ switch (l) {
806
+ case "top":
807
+ d = {
808
+ x: f,
809
+ y: n.y - s.height
810
+ };
811
+ break;
812
+ case "bottom":
813
+ d = {
814
+ x: f,
815
+ y: n.y + n.height
816
+ };
817
+ break;
818
+ case "right":
819
+ d = {
820
+ x: n.x + n.width,
821
+ y: u
822
+ };
823
+ break;
824
+ case "left":
825
+ d = {
826
+ x: n.x - s.width,
827
+ y: u
828
+ };
829
+ break;
830
+ default:
831
+ d = {
832
+ x: n.x,
833
+ y: n.y
834
+ };
835
+ }
836
+ switch (pe(t)) {
837
+ case "start":
838
+ d[a] -= p * (o && c ? -1 : 1);
839
+ break;
840
+ case "end":
841
+ d[a] += p * (o && c ? -1 : 1);
842
+ break;
843
+ }
844
+ return d;
845
+ }
846
+ const Ln = async (e, t, o) => {
847
+ const {
848
+ placement: n = "bottom",
849
+ strategy: s = "absolute",
850
+ middleware: i = [],
851
+ platform: a
852
+ } = o, r = i.filter(Boolean), l = await (a.isRTL == null ? void 0 : a.isRTL(t));
853
+ let c = await a.getElementRects({
854
+ reference: e,
855
+ floating: t,
856
+ strategy: s
857
+ }), {
858
+ x: f,
859
+ y: u
860
+ } = xt(c, n, l), p = n, d = {}, m = 0;
861
+ for (let h = 0; h < r.length; h++) {
862
+ const {
863
+ name: g,
864
+ fn: v
865
+ } = r[h], {
866
+ x: I,
867
+ y: x,
868
+ data: w,
869
+ reset: b
870
+ } = await v({
871
+ x: f,
872
+ y: u,
873
+ initialPlacement: n,
874
+ placement: p,
875
+ strategy: s,
876
+ middlewareData: d,
877
+ rects: c,
878
+ platform: a,
879
+ elements: {
880
+ reference: e,
881
+ floating: t
882
+ }
883
+ });
884
+ f = I ?? f, u = x ?? u, d = {
885
+ ...d,
886
+ [g]: {
887
+ ...d[g],
888
+ ...w
889
+ }
890
+ }, b && m <= 50 && (m++, typeof b == "object" && (b.placement && (p = b.placement), b.rects && (c = b.rects === !0 ? await a.getElementRects({
891
+ reference: e,
892
+ floating: t,
893
+ strategy: s
894
+ }) : b.rects), {
895
+ x: f,
896
+ y: u
897
+ } = xt(c, p, l)), h = -1);
898
+ }
899
+ return {
900
+ x: f,
901
+ y: u,
902
+ placement: p,
903
+ strategy: s,
904
+ middlewareData: d
905
+ };
906
+ };
907
+ async function jt(e, t) {
908
+ var o;
909
+ t === void 0 && (t = {});
910
+ const {
911
+ x: n,
912
+ y: s,
913
+ platform: i,
914
+ rects: a,
915
+ elements: r,
916
+ strategy: l
917
+ } = e, {
918
+ boundary: c = "clippingAncestors",
919
+ rootBoundary: f = "viewport",
920
+ elementContext: u = "floating",
921
+ altBoundary: p = !1,
922
+ padding: d = 0
923
+ } = fe(t, e), m = Mt(d), h = r[p ? u === "floating" ? "reference" : "floating" : u], g = Ie(await i.getClippingRect({
924
+ element: (o = await (i.isElement == null ? void 0 : i.isElement(h))) == null || o ? h : h.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(r.floating)),
925
+ boundary: c,
926
+ rootBoundary: f,
927
+ strategy: l
928
+ })), v = u === "floating" ? {
929
+ ...a.floating,
930
+ x: n,
931
+ y: s
932
+ } : a.reference, I = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(r.floating)), x = await (i.isElement == null ? void 0 : i.isElement(I)) ? await (i.getScale == null ? void 0 : i.getScale(I)) || {
933
+ x: 1,
934
+ y: 1
935
+ } : {
936
+ x: 1,
937
+ y: 1
938
+ }, w = Ie(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
939
+ elements: r,
940
+ rect: v,
941
+ offsetParent: I,
942
+ strategy: l
943
+ }) : v);
944
+ return {
945
+ top: (g.top - w.top + m.top) / x.y,
946
+ bottom: (w.bottom - g.bottom + m.bottom) / x.y,
947
+ left: (g.left - w.left + m.left) / x.x,
948
+ right: (w.right - g.right + m.right) / x.x
949
+ };
950
+ }
951
+ const Rn = (e) => ({
952
+ name: "arrow",
953
+ options: e,
954
+ async fn(t) {
955
+ const {
956
+ x: o,
957
+ y: n,
958
+ placement: s,
959
+ rects: i,
960
+ platform: a,
961
+ elements: r,
962
+ middlewareData: l
963
+ } = t, {
964
+ element: c,
965
+ padding: f = 0
966
+ } = fe(e, t) || {};
967
+ if (c == null)
968
+ return {};
969
+ const u = Mt(f), p = {
970
+ x: o,
971
+ y: n
972
+ }, d = ft(s), m = ut(d), h = await a.getDimensions(c), g = d === "y", v = g ? "top" : "left", I = g ? "bottom" : "right", x = g ? "clientHeight" : "clientWidth", w = i.reference[m] + i.reference[d] - p[d] - i.floating[m], b = p[d] - i.reference[d], z = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c));
973
+ let k = z ? z[x] : 0;
974
+ (!k || !await (a.isElement == null ? void 0 : a.isElement(z))) && (k = r.floating[x] || i.floating[m]);
975
+ const C = w / 2 - b / 2, R = k / 2 - h[m] / 2 - 1, P = de(u[v], R), $ = de(u[I], R), O = P, ce = k - h[m] - $, A = k / 2 - h[m] / 2 + C, D = Oe(O, A, ce), B = !l.arrow && pe(s) != null && A !== D && i.reference[m] / 2 - (A < O ? P : $) - h[m] / 2 < 0, V = B ? A < O ? A - O : A - ce : 0;
976
+ return {
977
+ [d]: p[d] + V,
978
+ data: {
979
+ [d]: D,
980
+ centerOffset: A - D - V,
981
+ ...B && {
982
+ alignmentOffset: V
983
+ }
984
+ },
985
+ reset: B
986
+ };
987
+ }
988
+ }), Pn = function(e) {
989
+ return e === void 0 && (e = {}), {
990
+ name: "flip",
991
+ options: e,
992
+ async fn(t) {
993
+ var o, n;
994
+ const {
995
+ placement: s,
996
+ middlewareData: i,
997
+ rects: a,
998
+ initialPlacement: r,
999
+ platform: l,
1000
+ elements: c
1001
+ } = t, {
1002
+ mainAxis: f = !0,
1003
+ crossAxis: u = !0,
1004
+ fallbackPlacements: p,
1005
+ fallbackStrategy: d = "bestFit",
1006
+ fallbackAxisSideDirection: m = "none",
1007
+ flipAlignment: h = !0,
1008
+ ...g
1009
+ } = fe(e, t);
1010
+ if ((o = i.arrow) != null && o.alignmentOffset)
1011
+ return {};
1012
+ const v = Y(s), I = Y(r) === r, x = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), w = p || (I || !h ? [ve(r)] : Mn(r));
1013
+ !p && m !== "none" && w.push(...Xn(r, h, m, x));
1014
+ const b = [r, ...w], z = await jt(t, g), k = [];
1015
+ let C = ((n = i.flip) == null ? void 0 : n.overflows) || [];
1016
+ if (f && k.push(z[v]), u) {
1017
+ const O = En(s, a, x);
1018
+ k.push(z[O[0]], z[O[1]]);
1019
+ }
1020
+ if (C = [...C, {
1021
+ placement: s,
1022
+ overflows: k
1023
+ }], !k.every((O) => O <= 0)) {
1024
+ var R, P;
1025
+ const O = (((R = i.flip) == null ? void 0 : R.index) || 0) + 1, ce = b[O];
1026
+ if (ce)
1027
+ return {
1028
+ data: {
1029
+ index: O,
1030
+ overflows: C
1031
+ },
1032
+ reset: {
1033
+ placement: ce
1034
+ }
1035
+ };
1036
+ let A = (P = C.filter((D) => D.overflows[0] <= 0).sort((D, B) => D.overflows[1] - B.overflows[1])[0]) == null ? void 0 : P.placement;
1037
+ if (!A)
1038
+ switch (d) {
1039
+ case "bestFit": {
1040
+ var $;
1041
+ const D = ($ = C.map((B) => [B.placement, B.overflows.filter((V) => V > 0).reduce((V, Nt) => V + Nt, 0)]).sort((B, V) => B[1] - V[1])[0]) == null ? void 0 : $[0];
1042
+ D && (A = D);
1043
+ break;
1044
+ }
1045
+ case "initialPlacement":
1046
+ A = r;
1047
+ break;
1048
+ }
1049
+ if (s !== A)
1050
+ return {
1051
+ reset: {
1052
+ placement: A
1053
+ }
1054
+ };
1055
+ }
1056
+ return {};
1057
+ }
1058
+ };
1059
+ };
1060
+ async function Dn(e, t) {
1061
+ const {
1062
+ placement: o,
1063
+ platform: n,
1064
+ elements: s
1065
+ } = e, i = await (n.isRTL == null ? void 0 : n.isRTL(s.floating)), a = Y(o), r = pe(o), l = xe(o) === "y", c = ["left", "top"].includes(a) ? -1 : 1, f = i && l ? -1 : 1, u = fe(t, e);
1066
+ let {
1067
+ mainAxis: p,
1068
+ crossAxis: d,
1069
+ alignmentAxis: m
1070
+ } = typeof u == "number" ? {
1071
+ mainAxis: u,
1072
+ crossAxis: 0,
1073
+ alignmentAxis: null
1074
+ } : {
1075
+ mainAxis: 0,
1076
+ crossAxis: 0,
1077
+ alignmentAxis: null,
1078
+ ...u
1079
+ };
1080
+ return r && typeof m == "number" && (d = r === "end" ? m * -1 : m), l ? {
1081
+ x: d * f,
1082
+ y: p * c
1083
+ } : {
1084
+ x: p * c,
1085
+ y: d * f
1086
+ };
1087
+ }
1088
+ const Bn = function(e) {
1089
+ return e === void 0 && (e = 0), {
1090
+ name: "offset",
1091
+ options: e,
1092
+ async fn(t) {
1093
+ var o, n;
1094
+ const {
1095
+ x: s,
1096
+ y: i,
1097
+ placement: a,
1098
+ middlewareData: r
1099
+ } = t, l = await Dn(t, e);
1100
+ return a === ((o = r.offset) == null ? void 0 : o.placement) && (n = r.arrow) != null && n.alignmentOffset ? {} : {
1101
+ x: s + l.x,
1102
+ y: i + l.y,
1103
+ data: {
1104
+ ...l,
1105
+ placement: a
1106
+ }
1107
+ };
1108
+ }
1109
+ };
1110
+ }, Hn = function(e) {
1111
+ return e === void 0 && (e = {}), {
1112
+ name: "shift",
1113
+ options: e,
1114
+ async fn(t) {
1115
+ const {
1116
+ x: o,
1117
+ y: n,
1118
+ placement: s
1119
+ } = t, {
1120
+ mainAxis: i = !0,
1121
+ crossAxis: a = !1,
1122
+ limiter: r = {
1123
+ fn: (g) => {
1124
+ let {
1125
+ x: v,
1126
+ y: I
1127
+ } = g;
1128
+ return {
1129
+ x: v,
1130
+ y: I
1131
+ };
1132
+ }
1133
+ },
1134
+ ...l
1135
+ } = fe(e, t), c = {
1136
+ x: o,
1137
+ y: n
1138
+ }, f = await jt(t, l), u = xe(Y(s)), p = Et(u);
1139
+ let d = c[p], m = c[u];
1140
+ if (i) {
1141
+ const g = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", I = d + f[g], x = d - f[v];
1142
+ d = Oe(I, d, x);
1143
+ }
1144
+ if (a) {
1145
+ const g = u === "y" ? "top" : "left", v = u === "y" ? "bottom" : "right", I = m + f[g], x = m - f[v];
1146
+ m = Oe(I, m, x);
1147
+ }
1148
+ const h = r.fn({
1149
+ ...t,
1150
+ [p]: d,
1151
+ [u]: m
1152
+ });
1153
+ return {
1154
+ ...h,
1155
+ data: {
1156
+ x: h.x - o,
1157
+ y: h.y - n
1158
+ }
1159
+ };
1160
+ }
1161
+ };
1162
+ };
1163
+ function le(e) {
1164
+ return Xt(e) ? (e.nodeName || "").toLowerCase() : "#document";
1165
+ }
1166
+ function T(e) {
1167
+ var t;
1168
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1169
+ }
1170
+ function G(e) {
1171
+ var t;
1172
+ return (t = (Xt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1173
+ }
1174
+ function Xt(e) {
1175
+ return e instanceof Node || e instanceof T(e).Node;
1176
+ }
1177
+ function _(e) {
1178
+ return e instanceof Element || e instanceof T(e).Element;
1179
+ }
1180
+ function N(e) {
1181
+ return e instanceof HTMLElement || e instanceof T(e).HTMLElement;
1182
+ }
1183
+ function wt(e) {
1184
+ return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof T(e).ShadowRoot;
1185
+ }
1186
+ function me(e) {
1187
+ const {
1188
+ overflow: t,
1189
+ overflowX: o,
1190
+ overflowY: n,
1191
+ display: s
1192
+ } = L(e);
1193
+ return /auto|scroll|overlay|hidden|clip/.test(t + n + o) && !["inline", "contents"].includes(s);
1194
+ }
1195
+ function _n(e) {
1196
+ return ["table", "td", "th"].includes(le(e));
1197
+ }
1198
+ function pt(e) {
1199
+ const t = mt(), o = L(e);
1200
+ return o.transform !== "none" || o.perspective !== "none" || (o.containerType ? o.containerType !== "normal" : !1) || !t && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !t && (o.filter ? o.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((n) => (o.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (o.contain || "").includes(n));
1201
+ }
1202
+ function Nn(e) {
1203
+ let t = Z(e);
1204
+ for (; N(t) && !ae(t); ) {
1205
+ if (pt(t))
1206
+ return t;
1207
+ t = Z(t);
1208
+ }
1209
+ return null;
1210
+ }
1211
+ function mt() {
1212
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1213
+ }
1214
+ function ae(e) {
1215
+ return ["html", "body", "#document"].includes(le(e));
1216
+ }
1217
+ function L(e) {
1218
+ return T(e).getComputedStyle(e);
1219
+ }
1220
+ function we(e) {
1221
+ return _(e) ? {
1222
+ scrollLeft: e.scrollLeft,
1223
+ scrollTop: e.scrollTop
1224
+ } : {
1225
+ scrollLeft: e.pageXOffset,
1226
+ scrollTop: e.pageYOffset
1227
+ };
1228
+ }
1229
+ function Z(e) {
1230
+ if (le(e) === "html")
1231
+ return e;
1232
+ const t = (
1233
+ // Step into the shadow DOM of the parent of a slotted node.
1234
+ e.assignedSlot || // DOM Element detected.
1235
+ e.parentNode || // ShadowRoot detected.
1236
+ wt(e) && e.host || // Fallback.
1237
+ G(e)
1238
+ );
1239
+ return wt(t) ? t.host : t;
1240
+ }
1241
+ function $t(e) {
1242
+ const t = Z(e);
1243
+ return ae(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : N(t) && me(t) ? t : $t(t);
1244
+ }
1245
+ function Ae(e, t, o) {
1246
+ var n;
1247
+ t === void 0 && (t = []), o === void 0 && (o = !0);
1248
+ const s = $t(e), i = s === ((n = e.ownerDocument) == null ? void 0 : n.body), a = T(s);
1249
+ return i ? t.concat(a, a.visualViewport || [], me(s) ? s : [], a.frameElement && o ? Ae(a.frameElement) : []) : t.concat(s, Ae(s, [], o));
1250
+ }
1251
+ function Lt(e) {
1252
+ const t = L(e);
1253
+ let o = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
1254
+ const s = N(e), i = s ? e.offsetWidth : o, a = s ? e.offsetHeight : n, r = ye(o) !== i || ye(n) !== a;
1255
+ return r && (o = i, n = a), {
1256
+ width: o,
1257
+ height: n,
1258
+ $: r
1259
+ };
1260
+ }
1261
+ function Rt(e) {
1262
+ return _(e) ? e : e.contextElement;
1263
+ }
1264
+ function te(e) {
1265
+ const t = Rt(e);
1266
+ if (!N(t))
1267
+ return Q(1);
1268
+ const o = t.getBoundingClientRect(), {
1269
+ width: n,
1270
+ height: s,
1271
+ $: i
1272
+ } = Lt(t);
1273
+ let a = (i ? ye(o.width) : o.width) / n, r = (i ? ye(o.height) : o.height) / s;
1274
+ return (!a || !Number.isFinite(a)) && (a = 1), (!r || !Number.isFinite(r)) && (r = 1), {
1275
+ x: a,
1276
+ y: r
1277
+ };
1278
+ }
1279
+ const Vn = /* @__PURE__ */ Q(0);
1280
+ function Pt(e) {
1281
+ const t = T(e);
1282
+ return !mt() || !t.visualViewport ? Vn : {
1283
+ x: t.visualViewport.offsetLeft,
1284
+ y: t.visualViewport.offsetTop
1285
+ };
1286
+ }
1287
+ function Un(e, t, o) {
1288
+ return t === void 0 && (t = !1), !o || t && o !== T(e) ? !1 : t;
1289
+ }
1290
+ function ue(e, t, o, n) {
1291
+ t === void 0 && (t = !1), o === void 0 && (o = !1);
1292
+ const s = e.getBoundingClientRect(), i = Rt(e);
1293
+ let a = Q(1);
1294
+ t && (n ? _(n) && (a = te(n)) : a = te(e));
1295
+ const r = Un(i, o, n) ? Pt(i) : Q(0);
1296
+ let l = (s.left + r.x) / a.x, c = (s.top + r.y) / a.y, f = s.width / a.x, u = s.height / a.y;
1297
+ if (i) {
1298
+ const p = T(i), d = n && _(n) ? T(n) : n;
1299
+ let m = p, h = m.frameElement;
1300
+ for (; h && n && d !== m; ) {
1301
+ const g = te(h), v = h.getBoundingClientRect(), I = L(h), x = v.left + (h.clientLeft + parseFloat(I.paddingLeft)) * g.x, w = v.top + (h.clientTop + parseFloat(I.paddingTop)) * g.y;
1302
+ l *= g.x, c *= g.y, f *= g.x, u *= g.y, l += x, c += w, m = T(h), h = m.frameElement;
1303
+ }
1304
+ }
1305
+ return Ie({
1306
+ width: f,
1307
+ height: u,
1308
+ x: l,
1309
+ y: c
1310
+ });
1311
+ }
1312
+ const Wn = [":popover-open", ":modal"];
1313
+ function ht(e) {
1314
+ return Wn.some((t) => {
1315
+ try {
1316
+ return e.matches(t);
1317
+ } catch {
1318
+ return !1;
1319
+ }
1320
+ });
1321
+ }
1322
+ function qn(e) {
1323
+ let {
1324
+ elements: t,
1325
+ rect: o,
1326
+ offsetParent: n,
1327
+ strategy: s
1328
+ } = e;
1329
+ const i = s === "fixed", a = G(n), r = t ? ht(t.floating) : !1;
1330
+ if (n === a || r && i)
1331
+ return o;
1332
+ let l = {
1333
+ scrollLeft: 0,
1334
+ scrollTop: 0
1335
+ }, c = Q(1);
1336
+ const f = Q(0), u = N(n);
1337
+ if ((u || !u && !i) && ((le(n) !== "body" || me(a)) && (l = we(n)), N(n))) {
1338
+ const p = ue(n);
1339
+ c = te(n), f.x = p.x + n.clientLeft, f.y = p.y + n.clientTop;
1340
+ }
1341
+ return {
1342
+ width: o.width * c.x,
1343
+ height: o.height * c.y,
1344
+ x: o.x * c.x - l.scrollLeft * c.x + f.x,
1345
+ y: o.y * c.y - l.scrollTop * c.y + f.y
1346
+ };
1347
+ }
1348
+ function Qn(e) {
1349
+ return Array.from(e.getClientRects());
1350
+ }
1351
+ function Dt(e) {
1352
+ return ue(G(e)).left + we(e).scrollLeft;
1353
+ }
1354
+ function Zn(e) {
1355
+ const t = G(e), o = we(e), n = e.ownerDocument.body, s = ee(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), i = ee(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
1356
+ let a = -o.scrollLeft + Dt(e);
1357
+ const r = -o.scrollTop;
1358
+ return L(n).direction === "rtl" && (a += ee(t.clientWidth, n.clientWidth) - s), {
1359
+ width: s,
1360
+ height: i,
1361
+ x: a,
1362
+ y: r
1363
+ };
1364
+ }
1365
+ function Gn(e, t) {
1366
+ const o = T(e), n = G(e), s = o.visualViewport;
1367
+ let i = n.clientWidth, a = n.clientHeight, r = 0, l = 0;
1368
+ if (s) {
1369
+ i = s.width, a = s.height;
1370
+ const c = mt();
1371
+ (!c || c && t === "fixed") && (r = s.offsetLeft, l = s.offsetTop);
1372
+ }
1373
+ return {
1374
+ width: i,
1375
+ height: a,
1376
+ x: r,
1377
+ y: l
1378
+ };
1379
+ }
1380
+ function Yn(e, t) {
1381
+ const o = ue(e, !0, t === "fixed"), n = o.top + e.clientTop, s = o.left + e.clientLeft, i = N(e) ? te(e) : Q(1), a = e.clientWidth * i.x, r = e.clientHeight * i.y, l = s * i.x, c = n * i.y;
1382
+ return {
1383
+ width: a,
1384
+ height: r,
1385
+ x: l,
1386
+ y: c
1387
+ };
1388
+ }
1389
+ function bt(e, t, o) {
1390
+ let n;
1391
+ if (t === "viewport")
1392
+ n = Gn(e, o);
1393
+ else if (t === "document")
1394
+ n = Zn(G(e));
1395
+ else if (_(t))
1396
+ n = Yn(t, o);
1397
+ else {
1398
+ const s = Pt(e);
1399
+ n = {
1400
+ ...t,
1401
+ x: t.x - s.x,
1402
+ y: t.y - s.y
1403
+ };
1404
+ }
1405
+ return Ie(n);
1406
+ }
1407
+ function Bt(e, t) {
1408
+ const o = Z(e);
1409
+ return o === t || !_(o) || ae(o) ? !1 : L(o).position === "fixed" || Bt(o, t);
1410
+ }
1411
+ function Jn(e, t) {
1412
+ const o = t.get(e);
1413
+ if (o)
1414
+ return o;
1415
+ let n = Ae(e, [], !1).filter((r) => _(r) && le(r) !== "body"), s = null;
1416
+ const i = L(e).position === "fixed";
1417
+ let a = i ? Z(e) : e;
1418
+ for (; _(a) && !ae(a); ) {
1419
+ const r = L(a), l = pt(a);
1420
+ !l && r.position === "fixed" && (s = null), (i ? !l && !s : !l && r.position === "static" && s && ["absolute", "fixed"].includes(s.position) || me(a) && !l && Bt(e, a)) ? n = n.filter((c) => c !== a) : s = r, a = Z(a);
1421
+ }
1422
+ return t.set(e, n), n;
1423
+ }
1424
+ function Kn(e) {
1425
+ let {
1426
+ element: t,
1427
+ boundary: o,
1428
+ rootBoundary: n,
1429
+ strategy: s
1430
+ } = e;
1431
+ const i = [...o === "clippingAncestors" ? ht(t) ? [] : Jn(t, this._c) : [].concat(o), n], a = i[0], r = i.reduce((l, c) => {
1432
+ const f = bt(t, c, s);
1433
+ return l.top = ee(f.top, l.top), l.right = de(f.right, l.right), l.bottom = de(f.bottom, l.bottom), l.left = ee(f.left, l.left), l;
1434
+ }, bt(t, a, s));
1435
+ return {
1436
+ width: r.right - r.left,
1437
+ height: r.bottom - r.top,
1438
+ x: r.left,
1439
+ y: r.top
1440
+ };
1441
+ }
1442
+ function eo(e) {
1443
+ const {
1444
+ width: t,
1445
+ height: o
1446
+ } = Lt(e);
1447
+ return {
1448
+ width: t,
1449
+ height: o
1450
+ };
1451
+ }
1452
+ function to(e, t, o) {
1453
+ const n = N(t), s = G(t), i = o === "fixed", a = ue(e, !0, i, t);
1454
+ let r = {
1455
+ scrollLeft: 0,
1456
+ scrollTop: 0
1457
+ };
1458
+ const l = Q(0);
1459
+ if (n || !n && !i)
1460
+ if ((le(t) !== "body" || me(s)) && (r = we(t)), n) {
1461
+ const u = ue(t, !0, i, t);
1462
+ l.x = u.x + t.clientLeft, l.y = u.y + t.clientTop;
1463
+ } else s && (l.x = Dt(s));
1464
+ const c = a.left + r.scrollLeft - l.x, f = a.top + r.scrollTop - l.y;
1465
+ return {
1466
+ x: c,
1467
+ y: f,
1468
+ width: a.width,
1469
+ height: a.height
1470
+ };
1471
+ }
1472
+ function Ce(e) {
1473
+ return L(e).position === "static";
1474
+ }
1475
+ function Ct(e, t) {
1476
+ return !N(e) || L(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
1477
+ }
1478
+ function Ht(e, t) {
1479
+ const o = T(e);
1480
+ if (ht(e))
1481
+ return o;
1482
+ if (!N(e)) {
1483
+ let s = Z(e);
1484
+ for (; s && !ae(s); ) {
1485
+ if (_(s) && !Ce(s))
1486
+ return s;
1487
+ s = Z(s);
1488
+ }
1489
+ return o;
1490
+ }
1491
+ let n = Ct(e, t);
1492
+ for (; n && _n(n) && Ce(n); )
1493
+ n = Ct(n, t);
1494
+ return n && ae(n) && Ce(n) && !pt(n) ? o : n || Nn(e) || o;
1495
+ }
1496
+ const no = async function(e) {
1497
+ const t = this.getOffsetParent || Ht, o = this.getDimensions, n = await o(e.floating);
1498
+ return {
1499
+ reference: to(e.reference, await t(e.floating), e.strategy),
1500
+ floating: {
1501
+ x: 0,
1502
+ y: 0,
1503
+ width: n.width,
1504
+ height: n.height
1505
+ }
1506
+ };
1507
+ };
1508
+ function oo(e) {
1509
+ return L(e).direction === "rtl";
1510
+ }
1511
+ const io = {
1512
+ convertOffsetParentRelativeRectToViewportRelativeRect: qn,
1513
+ getDocumentElement: G,
1514
+ getClippingRect: Kn,
1515
+ getOffsetParent: Ht,
1516
+ getElementRects: no,
1517
+ getClientRects: Qn,
1518
+ getDimensions: eo,
1519
+ getScale: te,
1520
+ isElement: _,
1521
+ isRTL: oo
1522
+ }, so = Bn, ao = Hn, ro = Pn, lo = Rn, co = (e, t, o) => {
1523
+ const n = /* @__PURE__ */ new Map(), s = {
1524
+ platform: io,
1525
+ ...o
1526
+ }, i = {
1527
+ ...s.platform,
1528
+ _c: n
1529
+ };
1530
+ return Ln(e, t, {
1531
+ ...s,
1532
+ platform: i
1533
+ });
1534
+ }, uo = /* @__PURE__ */ K("rect", {
1535
+ x: "0",
1536
+ y: "-4",
1537
+ width: "48",
1538
+ height: "8",
1539
+ "stroke-width": "0",
1540
+ "stroke-color": "red"
1541
+ }, null, -1), fo = /* @__PURE__ */ K("path", {
1542
+ d: "M 0 3 C 12 3 18 18 24 18 C 30 18 36 3 48 3",
1543
+ "stroke-width": "2"
1544
+ }, null, -1), po = [
1545
+ uo,
1546
+ fo
1547
+ ], mo = /* @__PURE__ */ K("span", { class: "sr-only" }, "Tooltip: ", -1), ho = /* @__PURE__ */ re({
1548
+ __name: "Tooltip",
1549
+ props: {
1550
+ placement: {},
1551
+ color: { default: "light" },
1552
+ disabled: { type: Boolean },
1553
+ interactive: { type: Boolean },
1554
+ forcePlacement: { type: Boolean },
1555
+ open: { type: Boolean },
1556
+ arrowPadding: { default: 24 },
1557
+ shiftOptions: { default: () => ({ padding: 16 }) },
1558
+ offsetOptions: { default: 16 }
1559
+ },
1560
+ setup(e) {
1561
+ const t = e, o = S(null), n = S(null), s = S(null), i = S(null), a = S(0), r = S(0), l = S(0), c = S(0), f = S(0), u = S("left"), p = S("top"), d = S(!1), m = S(void 0), h = S(t.placement), g = S(!1), v = S(!1), I = {
1562
+ bottom: 180,
1563
+ left: 270,
1564
+ top: 0,
1565
+ right: 90
1566
+ };
1567
+ Vt(async () => {
1568
+ await x();
1569
+ });
1570
+ async function x() {
1571
+ let z = document.getElementById("portal-target");
1572
+ z || (z = document.createElement("div"), z.id = "portal-target", z.style.position = "absolute", z.style.top = "0", z.style.left = "0", z.style.zIndex = "10000", document.body.appendChild(z)), o.value = z;
1573
+ }
1574
+ const w = Ft(() => {
1575
+ switch (t.color) {
1576
+ case "light":
1577
+ return {
1578
+ svg: "stroke-none fill-white",
1579
+ block: "text-gray-900 border-transparent",
1580
+ background: "bg-white"
1581
+ };
1582
+ case "dark":
1583
+ return {
1584
+ svg: "stroke-none fill-gray-900",
1585
+ block: "text-white border-transparent",
1586
+ background: "bg-gray-900"
1587
+ };
1588
+ default:
1589
+ return {};
1590
+ }
1591
+ });
1592
+ gt(
1593
+ () => t.interactive,
1594
+ () => {
1595
+ g.value && b();
1596
+ }
1597
+ );
1598
+ async function b() {
1599
+ if (t.disabled || !n.value || !s.value || !i.value)
1600
+ return;
1601
+ const {
1602
+ x: z,
1603
+ y: k,
1604
+ placement: C,
1605
+ middlewareData: { arrow: { x: R, y: P } = {} }
1606
+ } = await co(n.value, s.value, {
1607
+ placement: t.placement,
1608
+ middleware: [
1609
+ t.forcePlacement ? {
1610
+ name: "no-flip",
1611
+ fn: (O) => O
1612
+ } : ro(),
1613
+ so(t.offsetOptions),
1614
+ lo({ element: i.value, padding: t.arrowPadding }),
1615
+ ao(t.shiftOptions)
1616
+ ]
1617
+ }), $ = C.split("-")[0];
1618
+ a.value = z, r.value = k, f.value = I[$], m.value = $ === "bottom" || t.color === "dark" ? "drop-shadow(0 1px 1px rgba(225, 227, 237, .3))" : "drop-shadow(0 1px 1px rgba(225, 227, 237, .8))", R && P ? (l.value = R, c.value = P, u.value = "left", p.value = "top") : R ? (l.value = R, c.value = t.interactive ? 6 : -10, u.value = "left", p.value = $ === "top" ? "bottom" : "top") : P && (c.value = P + 4, l.value = t.interactive ? 0 : -16, u.value = $ === "left" ? "right" : "left", p.value = "top"), d.value = !0, h.value = $, g.value = !0;
1619
+ }
1620
+ return Ut(() => {
1621
+ gt(
1622
+ () => [
1623
+ t.open,
1624
+ t.disabled,
1625
+ t.arrowPadding,
1626
+ t.placement,
1627
+ t.forcePlacement,
1628
+ t.shiftOptions,
1629
+ t.offsetOptions
1630
+ ],
1631
+ () => {
1632
+ t.open && !t.disabled ? b() : g.value = !1;
1633
+ },
1634
+ { immediate: !0 }
1635
+ );
1636
+ }), (z, k) => (J(), zt("div", Wt(z.$attrs, {
1637
+ ref_key: "reference",
1638
+ ref: n,
1639
+ onMouseover: k[2] || (k[2] = (C) => !z.disabled && !z.open && b()),
1640
+ onFocus: k[3] || (k[3] = (C) => !z.disabled && !z.open && b()),
1641
+ onBlur: k[4] || (k[4] = (C) => !z.open && (g.value = !1)),
1642
+ onMouseout: k[5] || (k[5] = (C) => !z.open && (g.value = !1)),
1643
+ onKeydown: k[6] || (k[6] = qt((C) => !z.open && (g.value = !1), ["escape"]))
1644
+ }), [
1645
+ kt(z.$slots, "default"),
1646
+ z.disabled ? Qt("", !0) : (J(), ke(Zt, {
1647
+ key: 0,
1648
+ to: "#portal-target"
1649
+ }, [
1650
+ K("div", {
1651
+ ref_key: "tooltip",
1652
+ ref: s,
1653
+ role: "tooltip",
1654
+ style: yt(
1655
+ d.value ? `top:${r.value}px!important;left:${a.value}px!important;` : void 0
1656
+ ),
1657
+ class: he(["absolute", [
1658
+ {
1659
+ invisible: !g.value && d.value && !(v.value && t.interactive) && !z.open,
1660
+ "-top-[10000px] invisible": !d.value
1661
+ },
1662
+ t.interactive ? "p-[16px]" : void 0
1663
+ ]]),
1664
+ onMouseover: k[0] || (k[0] = (C) => !z.open && (v.value = !0)),
1665
+ onMouseout: k[1] || (k[1] = (C) => !z.open && (v.value = !1))
1666
+ }, [
1667
+ K("div", {
1668
+ class: he(["border rounded shadow-tooltip", [w.value.background, w.value.block]])
1669
+ }, [
1670
+ (J(), zt("svg", {
1671
+ ref_key: "arrowRef",
1672
+ ref: i,
1673
+ viewBox: "0 0 48 24",
1674
+ width: "24",
1675
+ height: "12",
1676
+ class: he(["absolute z-10", w.value.svg]),
1677
+ style: yt(`
1678
+ transform: rotate(${f.value}deg);
1679
+ filter: ${m.value};
1680
+ ${p.value}:${c.value}px!important;
1681
+ ${u.value}:${l.value}px!important;`),
1682
+ fill: "none"
1683
+ }, po, 6)),
1684
+ K("div", {
1685
+ class: he(["rounded text-[16px] leading-[24px] min-w-[160px] text-center p-[8px] relative z-20", w.value.background])
1686
+ }, [
1687
+ mo,
1688
+ kt(z.$slots, "popper")
1689
+ ], 2)
1690
+ ], 2)
1691
+ ], 38)
1692
+ ]))
1693
+ ], 16));
1694
+ }
1695
+ }), U = {
1696
+ // Outer wrapper. `inline-flex` so the component shrinks to content width.
1697
+ container: "inline-flex pointer-events-auto",
1698
+ // The <ul> pill itself. Theme overrides border and text colors via CssTheme.
1699
+ list: "flex items-center text-[14px] leading-[24px] font-medium list-none border rounded-[4px]",
1700
+ // Each <li> stat.
1701
+ item: "h-full whitespace-nowrap flex items-center",
1702
+ // Inner <a> wrapper for linked stats.
1703
+ link: "flex items-center h-full w-full px-[6px] no-underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-indigo-500 focus-visible:outline-offset-0",
1704
+ // Inner <span> wrapper for unlinked stats.
1705
+ unlinked: "flex items-center h-full w-full px-[6px]",
1706
+ // Icon margin matches source `svg { margin: 0 4px }`.
1707
+ icon: "mx-[4px]",
1708
+ // Flaky icon override — drop the yellow background rect (first path in the
1709
+ // SVG). Matches the source SCSS's `.flakyIcon svg path:first-child { fill:
1710
+ // transparent !important }`. Scoped to this component; the shared
1711
+ // IconStatusFlaky is unchanged.
1712
+ iconFlaky: "mx-[4px] [&_path:first-child]:fill-transparent",
1713
+ // Self-healed icon override — `IconGeneralSparkleSingleSmall` only ships
1714
+ // a `["16"]` variant in the icon registry, but the rest of the stats
1715
+ // render at 12px. The icon component IS an <svg>, so `w-3 h-3` on the
1716
+ // className overrides the icon's intrinsic `width`/`height` attributes
1717
+ // via CSS and pins the rendered size to 12 × 12 — visual consistency
1718
+ // without depending on a 12px icon variant that doesn't exist.
1719
+ iconSelfHealed: "mx-[4px] w-3 h-3",
1720
+ // Separator after the last leading <li>. Border color comes from CssTheme.
1721
+ separatorAfter: "after:content-[''] after:border-r after:h-3 after:mx-1 after:self-center"
1722
+ }, Se = {
1723
+ light: {
1724
+ list: "bg-white text-gray-700 border-gray-100",
1725
+ link: "text-gray-700 hover:bg-gray-50 focus-visible:bg-gray-50",
1726
+ separator: "after:border-gray-100"
1727
+ },
1728
+ dark: {
1729
+ list: "bg-gray-1000 text-gray-400 border-gray-800",
1730
+ link: "text-gray-300 hover:bg-gray-900 focus-visible:bg-gray-900",
1731
+ separator: "after:border-gray-800"
1732
+ }
1733
+ }, St = {
1734
+ light: "dark",
1735
+ dark: "light"
1736
+ };
1737
+ function go(e) {
1738
+ return e === "flaky" ? "top-start" : "top-end";
1739
+ }
1740
+ function Te(e) {
1741
+ return e === "selfHealed" ? "self-healed" : e;
1742
+ }
1743
+ function zo(e) {
1744
+ return e.charAt(0).toUpperCase() + e.slice(1);
1745
+ }
1746
+ function _t(e) {
1747
+ return e === 1 ? "This test both passed and failed when retried within a run" : `${e} tests both passed and failed when retried within a run`;
1748
+ }
1749
+ function ko(e, t, o) {
1750
+ if (e === "flaky")
1751
+ return o ? "View flaky tests" : _t(t);
1752
+ const n = Te(e);
1753
+ return o ? `View ${n} tests` : `${zo(n)} tests`;
1754
+ }
1755
+ function H(e) {
1756
+ return e ?? 0;
1757
+ }
1758
+ function X(e, t) {
1759
+ return t || H(e) > 0;
1760
+ }
1761
+ function yo(e) {
1762
+ const t = H(e.flaky) > 0, o = !!e.showSelfHealed;
1763
+ if (!t && !o)
1764
+ return null;
1765
+ const n = !!e.expanded;
1766
+ return X(e.passed, n) || X(e.failed, n) || X(e.skipped, n) || X(e.pending, n) ? o ? "selfHealed" : "flaky" : null;
1767
+ }
1768
+ function vo(e) {
1769
+ const t = !!e.expanded;
1770
+ return H(e.flaky) > 0 || !!e.showSelfHealed || X(e.passed, t) || X(e.failed, t) || X(e.skipped, t) || X(e.pending, t);
1771
+ }
1772
+ const Ot = "cy-runresults-tooltip-style";
1773
+ if (typeof document < "u" && !document.getElementById(Ot)) {
1774
+ const e = document.createElement("style");
1775
+ e.id = Ot;
1776
+ const t = " font-size: 14px; line-height: 20px; min-width: 0; white-space: nowrap; ";
1777
+ e.textContent = "[role='tooltip']:has(.cy-runresults-tooltip-dark) > div { color: #bfc2d4; }[role='tooltip']:has(.cy-runresults-tooltip-dark) > div > div:last-child {" + t + "}[role='tooltip']:has(.cy-runresults-tooltip-light) > div { color: #5a5f7a; }[role='tooltip']:has(.cy-runresults-tooltip-light) > div > div:last-child {" + t + "}", document.head.appendChild(e);
1778
+ }
1779
+ const bo = re({
1780
+ name: "RunResults",
1781
+ inheritAttrs: !1,
1782
+ props: {
1783
+ // Number-or-null props use the [Number, null] array form so Vue's
1784
+ // runtime validator accepts `null` without emitting a dev-mode type
1785
+ // warning. The bare `Number` constructor only matches numbers; the
1786
+ // PropType cast is TypeScript-only.
1787
+ passed: { type: [Number, null], required: !0 },
1788
+ failed: { type: [Number, null], required: !0 },
1789
+ skipped: {
1790
+ type: [Number, null],
1791
+ required: !0
1792
+ },
1793
+ pending: {
1794
+ type: [Number, null],
1795
+ required: !0
1796
+ },
1797
+ flaky: { type: [Number, null], default: null },
1798
+ selfHealed: {
1799
+ type: [Number, null],
1800
+ default: null
1801
+ },
1802
+ showSelfHealed: { type: Boolean, default: !1 },
1803
+ theme: { type: String, default: "light" },
1804
+ expanded: { type: Boolean, default: !1 },
1805
+ links: {
1806
+ type: Object,
1807
+ default: () => ({})
1808
+ },
1809
+ renderLink: {
1810
+ type: Function,
1811
+ default: null
1812
+ },
1813
+ showTooltip: { type: Boolean, default: !0 },
1814
+ className: { type: String, default: void 0 }
1815
+ },
1816
+ setup(e, { attrs: t }) {
1817
+ function o(...i) {
1818
+ return i.filter(Boolean).join(" ");
1819
+ }
1820
+ function n(i) {
1821
+ const a = Te(i);
1822
+ return i === "flaky" ? F(Yt, {
1823
+ size: "12",
1824
+ "data-cy": "status-icon-flaky",
1825
+ class: U.iconFlaky
1826
+ }) : i === "selfHealed" ? F(Jt, {
1827
+ strokeColor: "jade-400",
1828
+ fillColor: "jade-50",
1829
+ "data-cy": "status-icon-self-healed",
1830
+ class: U.iconSelfHealed
1831
+ }) : F(Fn, {
1832
+ size: "12",
1833
+ status: i,
1834
+ "data-cy": `status-icon-${a}`,
1835
+ class: U.icon
1836
+ });
1837
+ }
1838
+ function s(i, a, r, l) {
1839
+ const c = Te(i), u = ko(i, a, !!r), p = [n(i), F("span", String(a))];
1840
+ let d;
1841
+ if (r ? e.renderLink ? d = e.renderLink(r, p) : d = F(
1842
+ "a",
1843
+ {
1844
+ href: r,
1845
+ "aria-label": u,
1846
+ "data-cy": `link-${c}`,
1847
+ class: o(U.link, Se[e.theme].link)
1848
+ },
1849
+ p
1850
+ ) : d = F("span", { class: U.unlinked }, p), e.showTooltip) {
1851
+ const m = i === "flaky" ? _t(a) : u, h = d;
1852
+ d = F(
1853
+ ho,
1854
+ {
1855
+ placement: go(i),
1856
+ color: St[e.theme]
1857
+ },
1858
+ {
1859
+ default: () => h,
1860
+ // Marker class — picked up by the injected <style> above to apply
1861
+ // RunResults-only tooltip overrides per tooltip color variant.
1862
+ popper: () => F(
1863
+ "span",
1864
+ {
1865
+ class: `cy-runresults-tooltip-${St[e.theme]}`
1866
+ },
1867
+ m
1868
+ )
1869
+ }
1870
+ );
1871
+ }
1872
+ return F(
1873
+ "li",
1874
+ {
1875
+ "data-cy": `total-${c}`,
1876
+ class: o(
1877
+ U.item,
1878
+ l && U.separatorAfter,
1879
+ l && Se[e.theme].separator
1880
+ )
1881
+ },
1882
+ [d]
1883
+ );
1884
+ }
1885
+ return () => {
1886
+ var f, u, p, d, m, h;
1887
+ const i = {
1888
+ passed: e.passed,
1889
+ failed: e.failed,
1890
+ skipped: e.skipped,
1891
+ pending: e.pending,
1892
+ flaky: e.flaky,
1893
+ selfHealed: e.selfHealed,
1894
+ showSelfHealed: e.showSelfHealed,
1895
+ expanded: e.expanded
1896
+ };
1897
+ if (!vo(i)) return null;
1898
+ const a = yo(i), r = H(e.flaky) > 0, l = !!e.showSelfHealed, c = [];
1899
+ return r && c.push(
1900
+ s(
1901
+ "flaky",
1902
+ H(e.flaky),
1903
+ (f = e.links) == null ? void 0 : f.flaky,
1904
+ a === "flaky"
1905
+ )
1906
+ ), l && c.push(
1907
+ s(
1908
+ "selfHealed",
1909
+ H(e.selfHealed),
1910
+ (u = e.links) == null ? void 0 : u.selfHealed,
1911
+ a === "selfHealed"
1912
+ )
1913
+ ), X(e.skipped, e.expanded) && c.push(
1914
+ s(
1915
+ "skipped",
1916
+ H(e.skipped),
1917
+ (p = e.links) == null ? void 0 : p.skipped,
1918
+ !1
1919
+ )
1920
+ ), X(e.pending, e.expanded) && c.push(
1921
+ s(
1922
+ "pending",
1923
+ H(e.pending),
1924
+ (d = e.links) == null ? void 0 : d.pending,
1925
+ !1
1926
+ )
1927
+ ), X(e.passed, e.expanded) && c.push(
1928
+ s(
1929
+ "passed",
1930
+ H(e.passed),
1931
+ (m = e.links) == null ? void 0 : m.passed,
1932
+ !1
1933
+ )
1934
+ ), X(e.failed, e.expanded) && c.push(
1935
+ s(
1936
+ "failed",
1937
+ H(e.failed),
1938
+ (h = e.links) == null ? void 0 : h.failed,
1939
+ !1
1940
+ )
1941
+ ), F(
1942
+ "div",
1943
+ {
1944
+ ...t,
1945
+ "data-cy": "run-results",
1946
+ // Pass an array directly so Vue's runtime normalizes fallthrough
1947
+ // `attrs.class` whether it arrives as a string, array, or object
1948
+ // (e.g. parent uses `:class="['a','b']"` or `:class="{ a: true }"`).
1949
+ // joinClasses(...) would stringify an array via `.join(' ')` on a
1950
+ // single truthy element → invalid `"a,b"` token.
1951
+ class: [U.container, e.className, t.class]
1952
+ },
1953
+ [
1954
+ F(
1955
+ "ul",
1956
+ {
1957
+ class: o(U.list, Se[e.theme].list)
1958
+ },
1959
+ c
1960
+ )
1961
+ ]
1962
+ );
1963
+ };
1964
+ }
1965
+ });
1966
+ export {
1967
+ bo as default
1968
+ };
1969
+ //# sourceMappingURL=index.es.mjs.map
1970
+
1971
+ /* <wind-keep class="container filter"> */