@purpurds/tooltip 3.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,24 @@
1
+ {
2
+ "$schema": "https://developer.microsoft.com/json-schemas/rush/v5/rush-project.schema.json",
3
+ "disableBuildCacheForProject": false,
4
+ "operationSettings": [
5
+ {
6
+ "operationName": "build",
7
+ "outputFolderNames": [
8
+ "dist",
9
+ "types"
10
+ ]
11
+ },
12
+ {
13
+ "operationName": "ci:build",
14
+ "outputFolderNames": [
15
+ "dist",
16
+ "types"
17
+ ]
18
+ }
19
+ ],
20
+ "incrementalBuildIgnoredGlobs": [
21
+ "CHANGELOG.json",
22
+ "CHANGELOG.md"
23
+ ]
24
+ }
@@ -0,0 +1,398 @@
1
+ Name: @purpurds/button
2
+ Version: 3.0.1
3
+ License: AGPL-3.0-only
4
+ Private: false
5
+
6
+ ---
7
+
8
+ Name: @purpurds/icon
9
+ Version: 3.0.1
10
+ License: AGPL-3.0-only
11
+ Private: false
12
+
13
+ ---
14
+
15
+ Name: @purpurds/paragraph
16
+ Version: 3.0.1
17
+ License: AGPL-3.0-only
18
+ Private: false
19
+
20
+ ---
21
+
22
+ Name: @purpurds/tokens
23
+ Version: 3.0.1
24
+ License: AGPL-3.0-only
25
+ Private: false
26
+
27
+ ---
28
+
29
+ Name: @babel/runtime
30
+ Version: 7.23.5
31
+ License: MIT
32
+ Private: false
33
+ Description: babel's modular runtime helpers
34
+ Repository: https://github.com/babel/babel.git
35
+ Homepage: https://babel.dev/docs/en/next/babel-runtime
36
+ Author: The Babel Team (https://babel.dev/team)
37
+ License Copyright:
38
+ ===
39
+
40
+ MIT License
41
+
42
+ Copyright (c) 2014-present Sebastian McKenzie and other contributors
43
+
44
+ Permission is hereby granted, free of charge, to any person obtaining
45
+ a copy of this software and associated documentation files (the
46
+ "Software"), to deal in the Software without restriction, including
47
+ without limitation the rights to use, copy, modify, merge, publish,
48
+ distribute, sublicense, and/or sell copies of the Software, and to
49
+ permit persons to whom the Software is furnished to do so, subject to
50
+ the following conditions:
51
+
52
+ The above copyright notice and this permission notice shall be
53
+ included in all copies or substantial portions of the Software.
54
+
55
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
56
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
57
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
58
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
59
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
60
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
61
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
62
+
63
+
64
+ ---
65
+
66
+ Name: @radix-ui/primitive
67
+ Version: 1.0.1
68
+ License: MIT
69
+ Private: false
70
+ Repository: git+https://github.com/radix-ui/primitives.git
71
+ Homepage: https://radix-ui.com/primitives
72
+
73
+ ---
74
+
75
+ Name: @radix-ui/react-compose-refs
76
+ Version: 1.0.1
77
+ License: MIT
78
+ Private: false
79
+ Repository: git+https://github.com/radix-ui/primitives.git
80
+ Homepage: https://radix-ui.com/primitives
81
+
82
+ ---
83
+
84
+ Name: @radix-ui/react-context
85
+ Version: 1.0.1
86
+ License: MIT
87
+ Private: false
88
+ Repository: git+https://github.com/radix-ui/primitives.git
89
+ Homepage: https://radix-ui.com/primitives
90
+
91
+ ---
92
+
93
+ Name: @radix-ui/react-slot
94
+ Version: 1.0.2
95
+ License: MIT
96
+ Private: false
97
+ Repository: git+https://github.com/radix-ui/primitives.git
98
+ Homepage: https://radix-ui.com/primitives
99
+
100
+ ---
101
+
102
+ Name: @radix-ui/react-primitive
103
+ Version: 1.0.3
104
+ License: MIT
105
+ Private: false
106
+ Repository: git+https://github.com/radix-ui/primitives.git
107
+ Homepage: https://radix-ui.com/primitives
108
+
109
+ ---
110
+
111
+ Name: @radix-ui/react-use-callback-ref
112
+ Version: 1.0.1
113
+ License: MIT
114
+ Private: false
115
+ Repository: git+https://github.com/radix-ui/primitives.git
116
+ Homepage: https://radix-ui.com/primitives
117
+
118
+ ---
119
+
120
+ Name: @radix-ui/react-use-escape-keydown
121
+ Version: 1.0.3
122
+ License: MIT
123
+ Private: false
124
+ Repository: git+https://github.com/radix-ui/primitives.git
125
+ Homepage: https://radix-ui.com/primitives
126
+
127
+ ---
128
+
129
+ Name: @radix-ui/react-dismissable-layer
130
+ Version: 1.0.5
131
+ License: MIT
132
+ Private: false
133
+ Repository: git+https://github.com/radix-ui/primitives.git
134
+ Homepage: https://radix-ui.com/primitives
135
+
136
+ ---
137
+
138
+ Name: @radix-ui/react-use-layout-effect
139
+ Version: 1.0.1
140
+ License: MIT
141
+ Private: false
142
+ Repository: git+https://github.com/radix-ui/primitives.git
143
+ Homepage: https://radix-ui.com/primitives
144
+
145
+ ---
146
+
147
+ Name: @radix-ui/react-id
148
+ Version: 1.0.1
149
+ License: MIT
150
+ Private: false
151
+ Repository: git+https://github.com/radix-ui/primitives.git
152
+ Homepage: https://radix-ui.com/primitives
153
+
154
+ ---
155
+
156
+ Name: @floating-ui/utils
157
+ Version: 0.1.2
158
+ License: MIT
159
+ Private: false
160
+ Description: Utilities for Floating UI
161
+ Repository: https://github.com/floating-ui/floating-ui.git
162
+ Homepage: https://floating-ui.com
163
+ Author: atomiks
164
+ License Copyright:
165
+ ===
166
+
167
+ MIT License
168
+
169
+ Copyright (c) 2021-present Floating UI contributors
170
+
171
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
172
+ this software and associated documentation files (the "Software"), to deal in
173
+ the Software without restriction, including without limitation the rights to
174
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
175
+ the Software, and to permit persons to whom the Software is furnished to do so,
176
+ subject to the following conditions:
177
+
178
+ The above copyright notice and this permission notice shall be included in all
179
+ copies or substantial portions of the Software.
180
+
181
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
182
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
183
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
184
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
185
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
186
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
187
+
188
+
189
+ ---
190
+
191
+ Name: @floating-ui/core
192
+ Version: 1.4.1
193
+ License: MIT
194
+ Private: false
195
+ Description: Positioning library for floating elements: tooltips, popovers, dropdowns, and more
196
+ Repository: https://github.com/floating-ui/floating-ui.git
197
+ Homepage: https://floating-ui.com
198
+ Author: atomiks
199
+ License Copyright:
200
+ ===
201
+
202
+ MIT License
203
+
204
+ Copyright (c) 2021-present Floating UI contributors
205
+
206
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
207
+ this software and associated documentation files (the "Software"), to deal in
208
+ the Software without restriction, including without limitation the rights to
209
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
210
+ the Software, and to permit persons to whom the Software is furnished to do so,
211
+ subject to the following conditions:
212
+
213
+ The above copyright notice and this permission notice shall be included in all
214
+ copies or substantial portions of the Software.
215
+
216
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
217
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
218
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
219
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
220
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
221
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
222
+
223
+
224
+ ---
225
+
226
+ Name: @floating-ui/dom
227
+ Version: 1.5.2
228
+ License: MIT
229
+ Private: false
230
+ Description: Floating UI for the web
231
+ Repository: https://github.com/floating-ui/floating-ui.git
232
+ Homepage: https://floating-ui.com
233
+ Author: atomiks
234
+ License Copyright:
235
+ ===
236
+
237
+ MIT License
238
+
239
+ Copyright (c) 2021-present Floating UI contributors
240
+
241
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
242
+ this software and associated documentation files (the "Software"), to deal in
243
+ the Software without restriction, including without limitation the rights to
244
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
245
+ the Software, and to permit persons to whom the Software is furnished to do so,
246
+ subject to the following conditions:
247
+
248
+ The above copyright notice and this permission notice shall be included in all
249
+ copies or substantial portions of the Software.
250
+
251
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
252
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
253
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
254
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
255
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
256
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
257
+
258
+
259
+ ---
260
+
261
+ Name: @floating-ui/react-dom
262
+ Version: 2.0.2
263
+ License: MIT
264
+ Private: false
265
+ Description: Floating UI for React DOM
266
+ Repository: https://github.com/floating-ui/floating-ui.git
267
+ Homepage: https://floating-ui.com/docs/react-dom
268
+ Author: atomiks
269
+ License Copyright:
270
+ ===
271
+
272
+ MIT License
273
+
274
+ Copyright (c) 2021-present Floating UI contributors
275
+
276
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
277
+ this software and associated documentation files (the "Software"), to deal in
278
+ the Software without restriction, including without limitation the rights to
279
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
280
+ the Software, and to permit persons to whom the Software is furnished to do so,
281
+ subject to the following conditions:
282
+
283
+ The above copyright notice and this permission notice shall be included in all
284
+ copies or substantial portions of the Software.
285
+
286
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
287
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
288
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
289
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
290
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
291
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
292
+
293
+
294
+ ---
295
+
296
+ Name: @radix-ui/react-arrow
297
+ Version: 1.0.3
298
+ License: MIT
299
+ Private: false
300
+ Repository: git+https://github.com/radix-ui/primitives.git
301
+ Homepage: https://radix-ui.com/primitives
302
+
303
+ ---
304
+
305
+ Name: @radix-ui/react-use-size
306
+ Version: 1.0.1
307
+ License: MIT
308
+ Private: false
309
+ Repository: git+https://github.com/radix-ui/primitives.git
310
+ Homepage: https://radix-ui.com/primitives
311
+
312
+ ---
313
+
314
+ Name: @radix-ui/react-popper
315
+ Version: 1.1.3
316
+ License: MIT
317
+ Private: false
318
+ Repository: git+https://github.com/radix-ui/primitives.git
319
+ Homepage: https://radix-ui.com/primitives
320
+
321
+ ---
322
+
323
+ Name: @radix-ui/react-portal
324
+ Version: 1.0.4
325
+ License: MIT
326
+ Private: false
327
+ Repository: git+https://github.com/radix-ui/primitives.git
328
+ Homepage: https://radix-ui.com/primitives
329
+
330
+ ---
331
+
332
+ Name: @radix-ui/react-presence
333
+ Version: 1.0.1
334
+ License: MIT
335
+ Private: false
336
+ Repository: git+https://github.com/radix-ui/primitives.git
337
+ Homepage: https://radix-ui.com/primitives
338
+
339
+ ---
340
+
341
+ Name: @radix-ui/react-use-controllable-state
342
+ Version: 1.0.1
343
+ License: MIT
344
+ Private: false
345
+ Repository: git+https://github.com/radix-ui/primitives.git
346
+ Homepage: https://radix-ui.com/primitives
347
+
348
+ ---
349
+
350
+ Name: @radix-ui/react-visually-hidden
351
+ Version: 1.0.3
352
+ License: MIT
353
+ Private: false
354
+ Repository: git+https://github.com/radix-ui/primitives.git
355
+ Homepage: https://radix-ui.com/primitives
356
+
357
+ ---
358
+
359
+ Name: @radix-ui/react-tooltip
360
+ Version: 1.0.7
361
+ License: MIT
362
+ Private: false
363
+ Repository: git+https://github.com/radix-ui/primitives.git
364
+ Homepage: https://radix-ui.com/primitives
365
+
366
+ ---
367
+
368
+ Name: classnames
369
+ Version: 2.5.1
370
+ License: MIT
371
+ Private: false
372
+ Description: A simple utility for conditionally joining classNames together
373
+ Repository: git+https://github.com/JedWatson/classnames.git
374
+ Author: Jed Watson
375
+ License Copyright:
376
+ ===
377
+
378
+ The MIT License (MIT)
379
+
380
+ Copyright (c) 2018 Jed Watson
381
+
382
+ Permission is hereby granted, free of charge, to any person obtaining a copy
383
+ of this software and associated documentation files (the "Software"), to deal
384
+ in the Software without restriction, including without limitation the rights
385
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
386
+ copies of the Software, and to permit persons to whom the Software is
387
+ furnished to do so, subject to the following conditions:
388
+
389
+ The above copyright notice and this permission notice shall be included in all
390
+ copies or substantial portions of the Software.
391
+
392
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
393
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
394
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
395
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
396
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
397
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
398
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ ._purpur-tooltip_1dyp8_1{display:inline-block}._purpur-tooltip__content_1dyp8_4{box-sizing:border-box;max-width:calc(17rem * var(--purpur-rescale));border-radius:var(--purpur-border-radius-md);padding:var(--purpur-spacing-150);-webkit-user-select:none;user-select:none;animation-duration:var(--purpur-motion-duration-400);animation-timing-function:var(--purpur-motion-easing-ease-out);will-change:transform,opacity}._purpur-tooltip__content--primary_1dyp8_14{background-color:var(--purpur-color-background-tone-on-tone-primary)}._purpur-tooltip__content--primary-negative_1dyp8_17{background-color:var(--purpur-color-background-tone-on-tone-secondary)}._purpur-tooltip__content_1dyp8_4[data-state=delayed-open][data-side=top]{animation-name:_slideDownAndFade_1dyp8_1}._purpur-tooltip__content_1dyp8_4[data-state=delayed-open][data-side=right]{animation-name:_slideLeftAndFade_1dyp8_1}._purpur-tooltip__content_1dyp8_4[data-state=delayed-open][data-side=bottom]{animation-name:_slideUpAndFade_1dyp8_1}._purpur-tooltip__content_1dyp8_4[data-state=delayed-open][data-side=left]{animation-name:_slideRightAndFade_1dyp8_1}._purpur-tooltip__arrow--primary_1dyp8_32{fill:var(--purpur-color-background-tone-on-tone-primary)}._purpur-tooltip__arrow--primary-negative_1dyp8_35{fill:var(--purpur-color-background-tone-on-tone-secondary)}._purpur-tooltip__paragraph--primary_1dyp8_38{color:var(--purpur-color-text-tone-on-tone-primary)}._purpur-tooltip__paragraph--primary-negative_1dyp8_41{color:var(--purpur-color-text-tone-on-tone-secondary)}@keyframes _slideUpAndFade_1dyp8_1{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}@keyframes _slideRightAndFade_1dyp8_1{0%{opacity:0;transform:translate(-2px)}to{opacity:1;transform:translate(0)}}@keyframes _slideDownAndFade_1dyp8_1{0%{opacity:0;transform:translateY(-2px)}to{opacity:1;transform:translateY(0)}}@keyframes _slideLeftAndFade_1dyp8_1{0%{opacity:0;transform:translate(2px)}to{opacity:1;transform:translate(0)}}
@@ -0,0 +1,22 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react/jsx-runtime"),l=require("react"),Ne=require("react-dom");function yt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const D=yt(l),pn=yt(Ne),hn={PRIMARY:"primary",PRIMARY_NEGATIVE:"primary-negative",SECONDARY:"secondary",SECONDARY_NEGATIVE:"secondary-negative",EXPRESSIVE:"expressive",EXPRESSIVE_NEGATIVE:"expressive-negative"},nt={SM:"sm",MD:"md",LG:"lg"};function mn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bt={exports:{}};/*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o(a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(bt);var gn=bt.exports;const rt=mn(gn),vn="_rotate_7s2g1_1",yn="_dash_7s2g1_1",we={"purpur-spinner":"_purpur-spinner_7s2g1_1",rotate:vn,"purpur-spinner--xxs":"_purpur-spinner--xxs_7s2g1_4","purpur-spinner--xs":"_purpur-spinner--xs_7s2g1_8","purpur-spinner--sm":"_purpur-spinner--sm_7s2g1_12","purpur-spinner--md":"_purpur-spinner--md_7s2g1_16","purpur-spinner--lg":"_purpur-spinner--lg_7s2g1_20","purpur-spinner__circle":"_purpur-spinner__circle_7s2g1_24",dash:yn,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_7s2g1_33","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_7s2g1_36","purpur-spinner__circle--negative-disabled":"_purpur-spinner__circle--negative-disabled_7s2g1_39"},$e="purpur-spinner",bn={PRIMARY:"primary",DISABLED:"disabled",NEGATIVE:"negative",NEGATIVE_DISABLED:"negative-disabled"},xn={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg"},wn=({["data-testid"]:e,size:t=xn.SM,variant:n=bn.PRIMARY,...o})=>N.jsx("div",{className:rt([we[$e],we[`${$e}--${t}`]]),"data-testid":e,...o,children:N.jsx("svg",{viewBox:"0 0 50 50",children:N.jsx("circle",{className:rt(we[`${$e}__circle`],we[`${$e}__circle--${n}`]),cx:"25",cy:"25",r:"20"})})});function $n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xt={exports:{}};/*!
6
+ Copyright (c) 2018 Jed Watson.
7
+ Licensed under the MIT License (MIT), see
8
+ http://jedwatson.github.io/classnames
9
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o(a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(xt);var _n=xt.exports;const En=$n(_n),J={"purpur-button":"_purpur-button_1fna2_1","purpur-button--sm":"_purpur-button--sm_1fna2_33","purpur-button--icon-only":"_purpur-button--icon-only_1fna2_36","purpur-button--md":"_purpur-button--md_1fna2_39","purpur-button--lg":"_purpur-button--lg_1fna2_45","purpur-button--full-width":"_purpur-button--full-width_1fna2_51","purpur-button--primary":"_purpur-button--primary_1fna2_54","purpur-button--disabled":"_purpur-button--disabled_1fna2_58","purpur-button--primary-negative":"_purpur-button--primary-negative_1fna2_64","purpur-button--secondary":"_purpur-button--secondary_1fna2_76","purpur-button--secondary-negative":"_purpur-button--secondary-negative_1fna2_87","purpur-button--expressive":"_purpur-button--expressive_1fna2_98","purpur-button--expressive-negative":"_purpur-button--expressive-negative_1fna2_108","purpur-button--negative":"_purpur-button--negative_1fna2_120","purpur-button--destructive":"_purpur-button--destructive_1fna2_127","purpur-button--destructive-negative":"_purpur-button--destructive-negative_1fna2_137","purpur-button--tertiary-purple":"_purpur-button--tertiary-purple_1fna2_147","purpur-button--tertiary-purple-negative":"_purpur-button--tertiary-purple-negative_1fna2_160","purpur-button--text-negative":"_purpur-button--text-negative_1fna2_175","purpur-button--text":"_purpur-button--text_1fna2_175"},ot={...hn,DESTRUCTIVE:"destructive",DESTRUCTIVE_NEGATIVE:"destructive-negative",TERTIARY_PURPLE:"tertiary-purple",TERTIARY_PURPLE_NEGATVIE:"tertiary-purple-negative",TEXT:"text",TEXT_NEGATIVE:"text-negative"},Q="purpur-button",An=({children:e,className:t,["data-testid"]:n,disabled:o=!1,fullWidth:i=!1,iconOnly:r,loading:s=!1,onClick:a,size:c=nt.MD,variant:u,type:d="button",...f},h)=>{if(r&&u==="destructive")return null;const p=En([J[Q],J[`${Q}--${u}`],J[`${Q}--${c}`]],{[J[`${Q}--icon-only`]]:r,[J[`${Q}--negative`]]:u.endsWith("negative"),[J[`${Q}--full-width`]]:i,[J[`${Q}--disabled`]]:o||s},t),m=v=>{o||s?v.preventDefault():a&&a(v)},g=()=>u.endsWith("negative")?"negative-disabled":"disabled";return N.jsxs("button",{className:p,"data-testid":n,type:d,ref:h,"aria-disabled":f["aria-disabled"]||o||s,onClick:m,...f,children:[s&&N.jsx(wn,{size:c===nt.LG?"xs":"xxs",variant:g()})," ",e]})},wt=l.forwardRef(An);wt.displayName="Button";function Pn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $t={exports:{}};/*!
10
+ Copyright (c) 2018 Jed Watson.
11
+ Licensed under the MIT License (MIT), see
12
+ http://jedwatson.github.io/classnames
13
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o.call(this,a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,this&&this[a]||a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})($t);var On=$t.exports;const Cn=Pn(On),Tn={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},Rn={name:"info",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 8.18c0 .537.469.979 1.007.979.524 0 .993-.442.993-.98s-.469-.979-.993-.979c-.538 0-1.007.441-1.007.98Zm.152 1.958v6.897h1.696v-6.897h-1.696Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',keywords:["info"],category:"status"},_t=e=>N.jsx(In,{...e,svg:Rn});_t.displayName="IconInfo";const Sn=Cn.bind(Tn),it="purpur-icon",Dn="md",Nn=e=>e.filter(t=>Object.keys(t).length>=1).map(t=>`${t.name}="${t.value}"`).join(" "),Ln=({content:e="",title:t}={})=>{const n=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},t?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],o=t?`<title>${t}</title>`:"";return`<svg ${Nn(n)}>${o}${e}</svg>`},Mn=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim(),In=({["data-testid"]:e,svg:t,allyTitle:n,className:o="",size:i=Dn,...r})=>{const s=Ln({content:Mn(t.svg),title:n}),a=Sn(o,it,`${it}--${i}`);return N.jsx("span",{"aria-label":n,className:a,"data-testid":e,dangerouslySetInnerHTML:{__html:s},...r})};function kn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Et={exports:{}};/*!
14
+ Copyright (c) 2018 Jed Watson.
15
+ Licensed under the MIT License (MIT), see
16
+ http://jedwatson.github.io/classnames
17
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o(a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Et);var jn=Et.exports;const Fn=kn(jn),_e={"purpur-paragraph":"_purpur-paragraph_hwaj6_1","purpur-paragraph--disabled":"_purpur-paragraph--disabled_hwaj6_7","purpur-paragraph--hyphens":"_purpur-paragraph--hyphens_hwaj6_10","purpur-paragraph--paragraph-100":"_purpur-paragraph--paragraph-100_hwaj6_13","purpur-paragraph--paragraph-100-medium":"_purpur-paragraph--paragraph-100-medium_hwaj6_19","purpur-paragraph--paragraph-100-bold":"_purpur-paragraph--paragraph-100-bold_hwaj6_26","purpur-paragraph--paragraph-200":"_purpur-paragraph--paragraph-200_hwaj6_33","purpur-paragraph--preamble-100":"_purpur-paragraph--preamble-100_hwaj6_39","purpur-paragraph--preamble-200":"_purpur-paragraph--preamble-200_hwaj6_45","purpur-paragraph--additional-100":"_purpur-paragraph--additional-100_hwaj6_51","purpur-paragraph--additional-100-medium":"_purpur-paragraph--additional-100-medium_hwaj6_57","purpur-paragraph--overline-100":"_purpur-paragraph--overline-100_hwaj6_64","purpur-paragraph--overline-200":"_purpur-paragraph--overline-200_hwaj6_71"},At={PARAGRAPH100:"paragraph-100",PARAGRAPH100MEDIUM:"paragraph-100-medium",PARAGRAPH100BOLD:"paragraph-100-bold",PARAGRAPH200:"paragraph-200",PREAMBLE100:"preamble-100",PREAMBLE200:"preamble-200",ADDITIONAL100:"additional-100",ADDITIONAL100MEDIUM:"additional-100-medium",OVERLINE100:"overline-100",OVERLINE200:"overline-200"},Ee="purpur-paragraph",Hn=({["data-testid"]:e,children:t,className:n="",disabled:o,enableHyphenation:i=!1,variant:r=At.PARAGRAPH100,...s})=>{const a=Fn([n,_e[Ee],_e[`${Ee}--${r}`],{[_e[`${Ee}--hyphens`]]:i,[_e[`${Ee}--disabled`]]:o}]);return N.jsx("p",{...s,className:a,"data-testid":e,children:t})},Bn="400ms";function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},R.apply(this,arguments)}function B(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Vn(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Pt(...e){return t=>e.forEach(n=>Vn(n,t))}function ae(...e){return l.useCallback(Pt(...e),e)}function Ot(e,t=[]){let n=[];function o(r,s){const a=l.createContext(s),c=n.length;n=[...n,s];function u(f){const{scope:h,children:p,...m}=f,g=(h==null?void 0:h[e][c])||a,v=l.useMemo(()=>m,Object.values(m));return l.createElement(g.Provider,{value:v},p)}function d(f,h){const p=(h==null?void 0:h[e][c])||a,m=l.useContext(p);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${r}\``)}return u.displayName=r+"Provider",[u,d]}const i=()=>{const r=n.map(s=>l.createContext(s));return function(a){const c=(a==null?void 0:a[e])||r;return l.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return i.scopeName=e,[o,Wn(i,...t)]}function Wn(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(r){const s=o.reduce((a,{useScope:c,scopeName:u})=>{const f=c(r)[`__scope${u}`];return{...a,...f}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}const Ct=l.forwardRef((e,t)=>{const{children:n,...o}=e,i=l.Children.toArray(n),r=i.find(zn);if(r){const s=r.props.children,a=i.map(c=>c===r?l.Children.count(s)>1?l.Children.only(null):l.isValidElement(s)?s.props.children:null:c);return l.createElement(je,R({},o,{ref:t}),l.isValidElement(s)?l.cloneElement(s,void 0,a):null)}return l.createElement(je,R({},o,{ref:t}),n)});Ct.displayName="Slot";const je=l.forwardRef((e,t)=>{const{children:n,...o}=e;return l.isValidElement(n)?l.cloneElement(n,{...Un(o,n.props),ref:t?Pt(t,n.ref):n.ref}):l.Children.count(n)>1?l.Children.only(null):null});je.displayName="SlotClone";const Tt=({children:e})=>l.createElement(l.Fragment,null,e);function zn(e){return l.isValidElement(e)&&e.type===Tt}function Un(e,t){const n={...t};for(const o in t){const i=e[o],r=t[o];/^on[A-Z]/.test(o)?i&&r?n[o]=(...a)=>{r(...a),i(...a)}:i&&(n[o]=i):o==="style"?n[o]={...i,...r}:o==="className"&&(n[o]=[i,r].filter(Boolean).join(" "))}return{...e,...n}}const Gn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ne=Gn.reduce((e,t)=>{const n=l.forwardRef((o,i)=>{const{asChild:r,...s}=o,a=r?Ct:t;return l.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),l.createElement(a,R({},s,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Yn(e,t){e&&Ne.flushSync(()=>e.dispatchEvent(t))}function ce(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>{var o;return(o=t.current)===null||o===void 0?void 0:o.call(t,...n)},[])}function Xn(e,t=globalThis==null?void 0:globalThis.document){const n=ce(e);l.useEffect(()=>{const o=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",o),()=>t.removeEventListener("keydown",o)},[n,t])}const Fe="dismissableLayer.update",qn="dismissableLayer.pointerDownOutside",Kn="dismissableLayer.focusOutside";let st;const Zn=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Jn=l.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...u}=e,d=l.useContext(Zn),[f,h]=l.useState(null),p=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=l.useState({}),g=ae(t,E=>h(E)),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),w=f?v.indexOf(f):-1,$=d.layersWithOutsidePointerEventsDisabled.size>0,x=w>=b,_=Qn(E=>{const T=E.target,L=[...d.branches].some(C=>C.contains(T));!x||L||(r==null||r(E),a==null||a(E),E.defaultPrevented||c==null||c())},p),P=er(E=>{const T=E.target;[...d.branches].some(C=>C.contains(T))||(s==null||s(E),a==null||a(E),E.defaultPrevented||c==null||c())},p);return Xn(E=>{w===d.layers.size-1&&(i==null||i(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},p),l.useEffect(()=>{if(f)return o&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(st=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),at(),()=>{o&&d.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=st)}},[f,p,o,d]),l.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),at())},[f,d]),l.useEffect(()=>{const E=()=>m({});return document.addEventListener(Fe,E),()=>document.removeEventListener(Fe,E)},[]),l.createElement(ne.div,R({},u,{ref:g,style:{pointerEvents:$?x?"auto":"none":void 0,...e.style},onFocusCapture:B(e.onFocusCapture,P.onFocusCapture),onBlurCapture:B(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:B(e.onPointerDownCapture,_.onPointerDownCapture)}))});function Qn(e,t=globalThis==null?void 0:globalThis.document){const n=ce(e),o=l.useRef(!1),i=l.useRef(()=>{});return l.useEffect(()=>{const r=a=>{if(a.target&&!o.current){let u=function(){Rt(qn,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=u,t.addEventListener("click",i.current,{once:!0})):u()}else t.removeEventListener("click",i.current);o.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",r)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",r),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function er(e,t=globalThis==null?void 0:globalThis.document){const n=ce(e),o=l.useRef(!1);return l.useEffect(()=>{const i=r=>{r.target&&!o.current&&Rt(Kn,n,{originalEvent:r},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function at(){const e=new CustomEvent(Fe);document.dispatchEvent(e)}function Rt(e,t,n,{discrete:o}){const i=n.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?Yn(i,r):i.dispatchEvent(r)}const ie=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},tr=D.useId||(()=>{});let nr=0;function rr(e){const[t,n]=D.useState(tr());return ie(()=>{e||n(o=>o??String(nr++))},[e]),e||(t?`radix-${t}`:"")}const or=["top","right","bottom","left"],q=Math.min,I=Math.max,Te=Math.round,Ae=Math.floor,K=e=>({x:e,y:e}),ir={left:"right",right:"left",bottom:"top",top:"bottom"},sr={start:"end",end:"start"};function He(e,t,n){return I(e,q(t,n))}function V(e,t){return typeof e=="function"?e(t):e}function W(e){return e.split("-")[0]}function le(e){return e.split("-")[1]}function We(e){return e==="x"?"y":"x"}function ze(e){return e==="y"?"height":"width"}function ue(e){return["top","bottom"].includes(W(e))?"y":"x"}function Ue(e){return We(ue(e))}function ar(e,t,n){n===void 0&&(n=!1);const o=le(e),i=Ue(e),r=ze(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=Re(s)),[s,Re(s)]}function cr(e){const t=Re(e);return[Be(e),t,Be(t)]}function Be(e){return e.replace(/start|end/g,t=>sr[t])}function lr(e,t,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:o:t?o:i;case"left":case"right":return t?r:s;default:return[]}}function ur(e,t,n,o){const i=le(e);let r=lr(W(e),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),t&&(r=r.concat(r.map(Be)))),r}function Re(e){return e.replace(/left|right|bottom|top/g,t=>ir[t])}function fr(e){return{top:0,right:0,bottom:0,left:0,...e}}function St(e){return typeof e!="number"?fr(e):{top:e,right:e,bottom:e,left:e}}function Se(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ct(e,t,n){let{reference:o,floating:i}=e;const r=ue(t),s=Ue(t),a=ze(s),c=W(t),u=r==="y",d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,h=o[a]/2-i[a]/2;let p;switch(c){case"top":p={x:d,y:o.y-i.height};break;case"bottom":p={x:d,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:f};break;case"left":p={x:o.x-i.width,y:f};break;default:p={x:o.x,y:o.y}}switch(le(t)){case"start":p[s]-=h*(n&&u?-1:1);break;case"end":p[s]+=h*(n&&u?-1:1);break}return p}const dr=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,a=r.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=ct(u,o,c),h=o,p={},m=0;for(let g=0;g<a.length;g++){const{name:v,fn:y}=a[g],{x:b,y:w,data:$,reset:x}=await y({x:d,y:f,initialPlacement:o,placement:h,strategy:i,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});if(d=b??d,f=w??f,p={...p,[v]:{...p[v],...$}},x&&m<=50){m++,typeof x=="object"&&(x.placement&&(h=x.placement),x.rects&&(u=x.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:d,y:f}=ct(u,h,c)),g=-1;continue}}return{x:d,y:f,placement:h,strategy:i,middlewareData:p}};async function de(e,t){var n;t===void 0&&(t={});const{x:o,y:i,platform:r,rects:s,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=V(t,e),m=St(p),v=a[h?f==="floating"?"reference":"floating":f],y=Se(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(v)))==null||n?v:v.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),b=f==="floating"?{...s.floating,x:o,y:i}:s.reference,w=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a.floating)),$=await(r.isElement==null?void 0:r.isElement(w))?await(r.getScale==null?void 0:r.getScale(w))||{x:1,y:1}:{x:1,y:1},x=Se(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:w,strategy:c}):b);return{top:(y.top-x.top+m.top)/$.y,bottom:(x.bottom-y.bottom+m.bottom)/$.y,left:(y.left-x.left+m.left)/$.x,right:(x.right-y.right+m.right)/$.x}}const lt=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:r,platform:s,elements:a}=t,{element:c,padding:u=0}=V(e,t)||{};if(c==null)return{};const d=St(u),f={x:n,y:o},h=Ue(i),p=ze(h),m=await s.getDimensions(c),g=h==="y",v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=r.reference[p]+r.reference[h]-f[h]-r.floating[p],$=f[h]-r.reference[h],x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let _=x?x[b]:0;(!_||!await(s.isElement==null?void 0:s.isElement(x)))&&(_=a.floating[b]||r.floating[p]);const P=w/2-$/2,E=_/2-m[p]/2-1,T=q(d[v],E),L=q(d[y],E),C=T,M=_-m[p]-L,S=_/2-m[p]/2+P,O=He(C,S,M),A=le(i)!=null&&S!=O&&r.reference[p]/2-(S<C?T:L)-m[p]/2<0?S<C?C-S:M-S:0;return{[h]:f[h]-A,data:{[h]:O,centerOffset:S-O+A}}}}),pr=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:i,rects:r,initialPlacement:s,platform:a,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=V(e,t),v=W(o),y=W(s)===s,b=await(a.isRTL==null?void 0:a.isRTL(c.floating)),w=f||(y||!m?[Re(s)]:cr(s));!f&&p!=="none"&&w.push(...ur(s,m,p,b));const $=[s,...w],x=await de(t,g),_=[];let P=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&_.push(x[v]),d){const C=ar(o,r,b);_.push(x[C[0]],x[C[1]])}if(P=[...P,{placement:o,overflows:_}],!_.every(C=>C<=0)){var E,T;const C=(((E=i.flip)==null?void 0:E.index)||0)+1,M=$[C];if(M)return{data:{index:C,overflows:P},reset:{placement:M}};let S=(T=P.filter(O=>O.overflows[0]<=0).sort((O,j)=>O.overflows[1]-j.overflows[1])[0])==null?void 0:T.placement;if(!S)switch(h){case"bestFit":{var L;const O=(L=P.map(j=>[j.placement,j.overflows.filter(A=>A>0).reduce((A,G)=>A+G,0)]).sort((j,A)=>j[1]-A[1])[0])==null?void 0:L[0];O&&(S=O);break}case"initialPlacement":S=s;break}if(o!==S)return{reset:{placement:S}}}return{}}}};function ut(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ft(e){return or.some(t=>e[t]>=0)}const hr=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...i}=V(e,t);switch(o){case"referenceHidden":{const r=await de(t,{...i,elementContext:"reference"}),s=ut(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ft(s)}}}case"escaped":{const r=await de(t,{...i,altBoundary:!0}),s=ut(r,n.floating);return{data:{escapedOffsets:s,escaped:ft(s)}}}default:return{}}}}};async function mr(e,t){const{placement:n,platform:o,elements:i}=e,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=W(n),a=le(n),c=ue(n)==="y",u=["left","top"].includes(s)?-1:1,d=r&&c?-1:1,f=V(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof m=="number"&&(p=a==="end"?m*-1:m),c?{x:p*d,y:h*u}:{x:h*u,y:p*d}}const gr=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,i=await mr(t,e);return{x:n+i.x,y:o+i.y,data:i}}}},vr=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:y,y:b}=v;return{x:y,y:b}}},...c}=V(e,t),u={x:n,y:o},d=await de(t,c),f=ue(W(i)),h=We(f);let p=u[h],m=u[f];if(r){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",b=p+d[v],w=p-d[y];p=He(b,p,w)}if(s){const v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",b=m+d[v],w=m-d[y];m=He(b,m,w)}const g=a.fn({...t,[h]:p,[f]:m});return{...g,data:{x:g.x-n,y:g.y-o}}}}},yr=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=V(e,t),d={x:n,y:o},f=ue(i),h=We(f);let p=d[h],m=d[f];const g=V(a,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const w=h==="y"?"height":"width",$=r.reference[h]-r.floating[w]+v.mainAxis,x=r.reference[h]+r.reference[w]-v.mainAxis;p<$?p=$:p>x&&(p=x)}if(u){var y,b;const w=h==="y"?"width":"height",$=["top","left"].includes(W(i)),x=r.reference[f]-r.floating[w]+($&&((y=s.offset)==null?void 0:y[f])||0)+($?0:v.crossAxis),_=r.reference[f]+r.reference[w]+($?0:((b=s.offset)==null?void 0:b[f])||0)-($?v.crossAxis:0);m<x?m=x:m>_&&(m=_)}return{[h]:p,[f]:m}}}},br=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:i,elements:r}=t,{apply:s=()=>{},...a}=V(e,t),c=await de(t,a),u=W(n),d=le(n),f=ue(n)==="y",{width:h,height:p}=o.floating;let m,g;u==="top"||u==="bottom"?(m=u,g=d===(await(i.isRTL==null?void 0:i.isRTL(r.floating))?"start":"end")?"left":"right"):(g=u,m=d==="end"?"top":"bottom");const v=p-c[m],y=h-c[g],b=!t.middlewareData.shift;let w=v,$=y;if(f){const _=h-c.left-c.right;$=d||b?q(y,_):_}else{const _=p-c.top-c.bottom;w=d||b?q(v,_):_}if(b&&!d){const _=I(c.left,0),P=I(c.right,0),E=I(c.top,0),T=I(c.bottom,0);f?$=h-2*(_!==0||P!==0?_+P:I(c.left,c.right)):w=p-2*(E!==0||T!==0?E+T:I(c.top,c.bottom))}await s({...t,availableWidth:$,availableHeight:w});const x=await i.getDimensions(r.floating);return h!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}};function Z(e){return Dt(e)?(e.nodeName||"").toLowerCase():"#document"}function k(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function U(e){var t;return(t=(Dt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Dt(e){return e instanceof Node||e instanceof k(e).Node}function z(e){return e instanceof Element||e instanceof k(e).Element}function H(e){return e instanceof HTMLElement||e instanceof k(e).HTMLElement}function dt(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof k(e).ShadowRoot}function me(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=F(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function xr(e){return["table","td","th"].includes(Z(e))}function Ge(e){const t=Ye(),n=F(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function wr(e){let t=se(e);for(;H(t)&&!Le(t);){if(Ge(t))return t;t=se(t)}return null}function Ye(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Le(e){return["html","body","#document"].includes(Z(e))}function F(e){return k(e).getComputedStyle(e)}function Me(e){return z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function se(e){if(Z(e)==="html")return e;const t=e.assignedSlot||e.parentNode||dt(e)&&e.host||U(e);return dt(t)?t.host:t}function Nt(e){const t=se(e);return Le(t)?e.ownerDocument?e.ownerDocument.body:e.body:H(t)&&me(t)?t:Nt(t)}function pe(e,t){var n;t===void 0&&(t=[]);const o=Nt(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),r=k(o);return i?t.concat(r,r.visualViewport||[],me(o)?o:[],r.frameElement?pe(r.frameElement):[]):t.concat(o,pe(o))}function Lt(e){const t=F(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=H(e),r=i?e.offsetWidth:n,s=i?e.offsetHeight:o,a=Te(n)!==r||Te(o)!==s;return a&&(n=r,o=s),{width:n,height:o,$:a}}function Xe(e){return z(e)?e:e.contextElement}function oe(e){const t=Xe(e);if(!H(t))return K(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=Lt(t);let s=(r?Te(n.width):n.width)/o,a=(r?Te(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const $r=K(0);function Mt(e){const t=k(e);return!Ye()||!t.visualViewport?$r:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _r(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==k(e)?!1:t}function te(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=Xe(e);let s=K(1);t&&(o?z(o)&&(s=oe(o)):s=oe(e));const a=_r(r,n,o)?Mt(r):K(0);let c=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,d=i.width/s.x,f=i.height/s.y;if(r){const h=k(r),p=o&&z(o)?k(o):o;let m=h.frameElement;for(;m&&o&&p!==h;){const g=oe(m),v=m.getBoundingClientRect(),y=F(m),b=v.left+(m.clientLeft+parseFloat(y.paddingLeft))*g.x,w=v.top+(m.clientTop+parseFloat(y.paddingTop))*g.y;c*=g.x,u*=g.y,d*=g.x,f*=g.y,c+=b,u+=w,m=k(m).frameElement}}return Se({width:d,height:f,x:c,y:u})}function Er(e){let{rect:t,offsetParent:n,strategy:o}=e;const i=H(n),r=U(n);if(n===r)return t;let s={scrollLeft:0,scrollTop:0},a=K(1);const c=K(0);if((i||!i&&o!=="fixed")&&((Z(n)!=="body"||me(r))&&(s=Me(n)),H(n))){const u=te(n);a=oe(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+c.x,y:t.y*a.y-s.scrollTop*a.y+c.y}}function Ar(e){return Array.from(e.getClientRects())}function It(e){return te(U(e)).left+Me(e).scrollLeft}function Pr(e){const t=U(e),n=Me(e),o=e.ownerDocument.body,i=I(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=I(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+It(e);const a=-n.scrollTop;return F(o).direction==="rtl"&&(s+=I(t.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:a}}function Or(e,t){const n=k(e),o=U(e),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,a=0,c=0;if(i){r=i.width,s=i.height;const u=Ye();(!u||u&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:r,height:s,x:a,y:c}}function Cr(e,t){const n=te(e,!0,t==="fixed"),o=n.top+e.clientTop,i=n.left+e.clientLeft,r=H(e)?oe(e):K(1),s=e.clientWidth*r.x,a=e.clientHeight*r.y,c=i*r.x,u=o*r.y;return{width:s,height:a,x:c,y:u}}function pt(e,t,n){let o;if(t==="viewport")o=Or(e,n);else if(t==="document")o=Pr(U(e));else if(z(t))o=Cr(t,n);else{const i=Mt(e);o={...t,x:t.x-i.x,y:t.y-i.y}}return Se(o)}function kt(e,t){const n=se(e);return n===t||!z(n)||Le(n)?!1:F(n).position==="fixed"||kt(n,t)}function Tr(e,t){const n=t.get(e);if(n)return n;let o=pe(e).filter(a=>z(a)&&Z(a)!=="body"),i=null;const r=F(e).position==="fixed";let s=r?se(e):e;for(;z(s)&&!Le(s);){const a=F(s),c=Ge(s);!c&&a.position==="fixed"&&(i=null),(r?!c&&!i:!c&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||me(s)&&!c&&kt(e,s))?o=o.filter(d=>d!==s):i=a,s=se(s)}return t.set(e,o),o}function Rr(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const s=[...n==="clippingAncestors"?Tr(t,this._c):[].concat(n),o],a=s[0],c=s.reduce((u,d)=>{const f=pt(t,d,i);return u.top=I(f.top,u.top),u.right=q(f.right,u.right),u.bottom=q(f.bottom,u.bottom),u.left=I(f.left,u.left),u},pt(t,a,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Sr(e){return Lt(e)}function Dr(e,t,n){const o=H(t),i=U(t),r=n==="fixed",s=te(e,!0,r,t);let a={scrollLeft:0,scrollTop:0};const c=K(0);if(o||!o&&!r)if((Z(t)!=="body"||me(i))&&(a=Me(t)),o){const u=te(t,!0,r,t);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}else i&&(c.x=It(i));return{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function ht(e,t){return!H(e)||F(e).position==="fixed"?null:t?t(e):e.offsetParent}function jt(e,t){const n=k(e);if(!H(e))return n;let o=ht(e,t);for(;o&&xr(o)&&F(o).position==="static";)o=ht(o,t);return o&&(Z(o)==="html"||Z(o)==="body"&&F(o).position==="static"&&!Ge(o))?n:o||wr(e)||n}const Nr=async function(e){let{reference:t,floating:n,strategy:o}=e;const i=this.getOffsetParent||jt,r=this.getDimensions;return{reference:Dr(t,await i(n),o),floating:{x:0,y:0,...await r(n)}}};function Lr(e){return F(e).direction==="rtl"}const Mr={convertOffsetParentRelativeRectToViewportRelativeRect:Er,getDocumentElement:U,getClippingRect:Rr,getOffsetParent:jt,getElementRects:Nr,getClientRects:Ar,getDimensions:Sr,getScale:oe,isElement:z,isRTL:Lr};function Ir(e,t){let n=null,o;const i=U(e);function r(){clearTimeout(o),n&&n.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),r();const{left:u,top:d,width:f,height:h}=e.getBoundingClientRect();if(a||t(),!f||!h)return;const p=Ae(d),m=Ae(i.clientWidth-(u+f)),g=Ae(i.clientHeight-(d+h)),v=Ae(u),b={rootMargin:-p+"px "+-m+"px "+-g+"px "+-v+"px",threshold:I(0,q(1,c))||1};let w=!0;function $(x){const _=x[0].intersectionRatio;if(_!==c){if(!w)return s();_?s(!1,_):o=setTimeout(()=>{s(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver($,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver($,b)}n.observe(e)}return s(!0),r}function kr(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=Xe(e),d=i||r?[...u?pe(u):[],...pe(t)]:[];d.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),r&&y.addEventListener("resize",n)});const f=u&&a?Ir(u,n):null;let h=-1,p=null;s&&(p=new ResizeObserver(y=>{let[b]=y;b&&b.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{p&&p.observe(t)})),n()}),u&&!c&&p.observe(u),p.observe(t));let m,g=c?te(e):null;c&&v();function v(){const y=te(e);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&n(),g=y,m=requestAnimationFrame(v)}return n(),()=>{d.forEach(y=>{i&&y.removeEventListener("scroll",n),r&&y.removeEventListener("resize",n)}),f&&f(),p&&p.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const jr=(e,t,n)=>{const o=new Map,i={platform:Mr,...n},r={...i.platform,_c:o};return dr(e,t,{...i,platform:r})},Fr=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:i}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?lt({element:o.current,padding:i}).fn(n):{}:o?lt({element:o,padding:i}).fn(n):{}}}};var Ce=typeof document<"u"?l.useLayoutEffect:l.useEffect;function De(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(!De(e[o],t[o]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,i[o]))return!1;for(o=n;o--!==0;){const r=i[o];if(!(r==="_owner"&&e.$$typeof)&&!De(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function Ft(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mt(e,t){const n=Ft(e);return Math.round(t*n)/n}function gt(e){const t=D.useRef(e);return Ce(()=>{t.current=e}),t}function Hr(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:r,floating:s}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[d,f]=D.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=D.useState(o);De(h,o)||p(o);const[m,g]=D.useState(null),[v,y]=D.useState(null),b=D.useCallback(A=>{A!=_.current&&(_.current=A,g(A))},[g]),w=D.useCallback(A=>{A!==P.current&&(P.current=A,y(A))},[y]),$=r||m,x=s||v,_=D.useRef(null),P=D.useRef(null),E=D.useRef(d),T=gt(c),L=gt(i),C=D.useCallback(()=>{if(!_.current||!P.current)return;const A={placement:t,strategy:n,middleware:h};L.current&&(A.platform=L.current),jr(_.current,P.current,A).then(G=>{const Y={...G,isPositioned:!0};M.current&&!De(E.current,Y)&&(E.current=Y,pn.flushSync(()=>{f(Y)}))})},[h,t,n,L]);Ce(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(A=>({...A,isPositioned:!1})))},[u]);const M=D.useRef(!1);Ce(()=>(M.current=!0,()=>{M.current=!1}),[]),Ce(()=>{if($&&(_.current=$),x&&(P.current=x),$&&x){if(T.current)return T.current($,x,C);C()}},[$,x,C,T]);const S=D.useMemo(()=>({reference:_,floating:P,setReference:b,setFloating:w}),[b,w]),O=D.useMemo(()=>({reference:$,floating:x}),[$,x]),j=D.useMemo(()=>{const A={position:n,left:0,top:0};if(!O.floating)return A;const G=mt(O.floating,d.x),Y=mt(O.floating,d.y);return a?{...A,transform:"translate("+G+"px, "+Y+"px)",...Ft(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:Y}},[n,a,O.floating,d.x,d.y]);return D.useMemo(()=>({...d,update:C,refs:S,elements:O,floatingStyles:j}),[d,C,S,O,j])}const Br=l.forwardRef((e,t)=>{const{children:n,width:o=10,height:i=5,...r}=e;return l.createElement(ne.svg,R({},r,{ref:t,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:l.createElement("polygon",{points:"0,0 30,0 15,10"}))}),Vr=Br;function Wr(e){const[t,n]=l.useState(void 0);return ie(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const r=i[0];let s,a;if("borderBoxSize"in r){const c=r.borderBoxSize,u=Array.isArray(c)?c[0]:c;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}const Ht="Popper",[Bt,Vt]=Ot(Ht),[zr,Wt]=Bt(Ht),Ur=e=>{const{__scopePopper:t,children:n}=e,[o,i]=l.useState(null);return l.createElement(zr,{scope:t,anchor:o,onAnchorChange:i},n)},Gr="PopperAnchor",Yr=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...i}=e,r=Wt(Gr,n),s=l.useRef(null),a=ae(t,s);return l.useEffect(()=>{r.onAnchorChange((o==null?void 0:o.current)||s.current)}),o?null:l.createElement(ne.div,R({},i,{ref:a}))}),zt="PopperContent",[Xr,qr]=Bt(zt),Kr=l.forwardRef((e,t)=>{var n,o,i,r,s,a,c,u;const{__scopePopper:d,side:f="bottom",sideOffset:h=0,align:p="center",alignOffset:m=0,arrowPadding:g=0,avoidCollisions:v=!0,collisionBoundary:y=[],collisionPadding:b=0,sticky:w="partial",hideWhenDetached:$=!1,updatePositionStrategy:x="optimized",onPlaced:_,...P}=e,E=Wt(zt,d),[T,L]=l.useState(null),C=ae(t,fe=>L(fe)),[M,S]=l.useState(null),O=Wr(M),j=(n=O==null?void 0:O.width)!==null&&n!==void 0?n:0,A=(o=O==null?void 0:O.height)!==null&&o!==void 0?o:0,G=f+(p!=="center"?"-"+p:""),Y=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},Je=Array.isArray(y)?y:[y],Qt=Je.length>0,ve={padding:Y,boundary:Je.filter(eo),altBoundary:Qt},{refs:en,floatingStyles:Qe,placement:tn,isPositioned:ye,middlewareData:re}=Hr({strategy:"fixed",placement:G,whileElementsMounted:(...fe)=>kr(...fe,{animationFrame:x==="always"}),elements:{reference:E.anchor},middleware:[gr({mainAxis:h+A,alignmentAxis:m}),v&&vr({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?yr():void 0,...ve}),v&&pr({...ve}),br({...ve,apply:({elements:fe,rects:tt,availableWidth:ln,availableHeight:un})=>{const{width:fn,height:dn}=tt.reference,xe=fe.floating.style;xe.setProperty("--radix-popper-available-width",`${ln}px`),xe.setProperty("--radix-popper-available-height",`${un}px`),xe.setProperty("--radix-popper-anchor-width",`${fn}px`),xe.setProperty("--radix-popper-anchor-height",`${dn}px`)}}),M&&Fr({element:M,padding:g}),to({arrowWidth:j,arrowHeight:A}),$&&hr({strategy:"referenceHidden",...ve})]}),[et,nn]=Ut(tn),be=ce(_);ie(()=>{ye&&(be==null||be())},[ye,be]);const rn=(i=re.arrow)===null||i===void 0?void 0:i.x,on=(r=re.arrow)===null||r===void 0?void 0:r.y,sn=((s=re.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[an,cn]=l.useState();return ie(()=>{T&&cn(window.getComputedStyle(T).zIndex)},[T]),l.createElement("div",{ref:en.setFloating,"data-radix-popper-content-wrapper":"",style:{...Qe,transform:ye?Qe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:an,"--radix-popper-transform-origin":[(a=re.transformOrigin)===null||a===void 0?void 0:a.x,(c=re.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},l.createElement(Xr,{scope:d,placedSide:et,onArrowChange:S,arrowX:rn,arrowY:on,shouldHideArrow:sn},l.createElement(ne.div,R({"data-side":et,"data-align":nn},P,{ref:C,style:{...P.style,animation:ye?void 0:"none",opacity:(u=re.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))}),Zr="PopperArrow",Jr={top:"bottom",right:"left",bottom:"top",left:"right"},Qr=l.forwardRef(function(t,n){const{__scopePopper:o,...i}=t,r=qr(Zr,o),s=Jr[r.placedSide];return l.createElement("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0}},l.createElement(Vr,R({},i,{ref:n,style:{...i.style,display:"block"}})))});function eo(e){return e!==null}const to=e=>({name:"transformOrigin",options:e,fn(t){var n,o,i,r,s;const{placement:a,rects:c,middlewareData:u}=t,f=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,h=f?0:e.arrowWidth,p=f?0:e.arrowHeight,[m,g]=Ut(a),v={start:"0%",center:"50%",end:"100%"}[g],y=((o=(i=u.arrow)===null||i===void 0?void 0:i.x)!==null&&o!==void 0?o:0)+h/2,b=((r=(s=u.arrow)===null||s===void 0?void 0:s.y)!==null&&r!==void 0?r:0)+p/2;let w="",$="";return m==="bottom"?(w=f?v:`${y}px`,$=`${-p}px`):m==="top"?(w=f?v:`${y}px`,$=`${c.floating.height+p}px`):m==="right"?(w=`${-p}px`,$=f?v:`${b}px`):m==="left"&&(w=`${c.floating.width+p}px`,$=f?v:`${b}px`),{data:{x:w,y:$}}}});function Ut(e){const[t,n="center"]=e.split("-");return[t,n]}const no=Ur,ro=Yr,oo=Kr,io=Qr,so=l.forwardRef((e,t)=>{var n;const{container:o=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...i}=e;return o?Ne.createPortal(l.createElement(ne.div,R({},i,{ref:t})),o):null});function ao(e,t){return l.useReducer((n,o)=>{const i=t[n][o];return i??n},e)}const qe=e=>{const{present:t,children:n}=e,o=co(t),i=typeof n=="function"?n({present:o.isPresent}):l.Children.only(n),r=ae(o.ref,i.ref);return typeof n=="function"||o.isPresent?l.cloneElement(i,{ref:r}):null};qe.displayName="Presence";function co(e){const[t,n]=l.useState(),o=l.useRef({}),i=l.useRef(e),r=l.useRef("none"),s=e?"mounted":"unmounted",[a,c]=ao(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=Pe(o.current);r.current=a==="mounted"?u:"none"},[a]),ie(()=>{const u=o.current,d=i.current;if(d!==e){const h=r.current,p=Pe(u);e?c("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&h!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),ie(()=>{if(t){const u=f=>{const p=Pe(o.current).includes(f.animationName);f.target===t&&p&&Ne.flushSync(()=>c("ANIMATION_END"))},d=f=>{f.target===t&&(r.current=Pe(o.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:l.useCallback(u=>{u&&(o.current=getComputedStyle(u)),n(u)},[])}}function Pe(e){return(e==null?void 0:e.animationName)||"none"}function lo({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,i]=uo({defaultProp:t,onChange:n}),r=e!==void 0,s=r?e:o,a=ce(n),c=l.useCallback(u=>{if(r){const f=typeof u=="function"?u(e):u;f!==e&&a(f)}else i(u)},[r,e,i,a]);return[s,c]}function uo({defaultProp:e,onChange:t}){const n=l.useState(e),[o]=n,i=l.useRef(o),r=ce(t);return l.useEffect(()=>{i.current!==o&&(r(o),i.current=o)},[o,i,r]),n}const fo=l.forwardRef((e,t)=>l.createElement(ne.span,R({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),po=fo,[Ie,Ko]=Ot("Tooltip",[Vt]),ke=Vt(),ho="TooltipProvider",mo=700,Ve="tooltip.open",[go,Ke]=Ie(ho),vo=e=>{const{__scopeTooltip:t,delayDuration:n=mo,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:r}=e,[s,a]=l.useState(!0),c=l.useRef(!1),u=l.useRef(0);return l.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),l.createElement(go,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(u.current),a(!1)},[]),onClose:l.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a(!0),o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:l.useCallback(d=>{c.current=d},[]),disableHoverableContent:i},r)},Ze="Tooltip",[yo,ge]=Ie(Ze),bo=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:i=!1,onOpenChange:r,disableHoverableContent:s,delayDuration:a}=e,c=Ke(Ze,e.__scopeTooltip),u=ke(t),[d,f]=l.useState(null),h=rr(),p=l.useRef(0),m=s??c.disableHoverableContent,g=a??c.delayDuration,v=l.useRef(!1),[y=!1,b]=lo({prop:o,defaultProp:i,onChange:P=>{P?(c.onOpen(),document.dispatchEvent(new CustomEvent(Ve))):c.onClose(),r==null||r(P)}}),w=l.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),$=l.useCallback(()=>{window.clearTimeout(p.current),v.current=!1,b(!0)},[b]),x=l.useCallback(()=>{window.clearTimeout(p.current),b(!1)},[b]),_=l.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{v.current=!0,b(!0)},g)},[g,b]);return l.useEffect(()=>()=>window.clearTimeout(p.current),[]),l.createElement(no,u,l.createElement(yo,{scope:t,contentId:h,open:y,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayed?_():$()},[c.isOpenDelayed,_,$]),onTriggerLeave:l.useCallback(()=>{m?x():window.clearTimeout(p.current)},[x,m]),onOpen:$,onClose:x,disableHoverableContent:m},n))},vt="TooltipTrigger",xo=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,i=ge(vt,n),r=Ke(vt,n),s=ke(n),a=l.useRef(null),c=ae(t,a,i.onTriggerChange),u=l.useRef(!1),d=l.useRef(!1),f=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),l.createElement(ro,R({asChild:!0},s),l.createElement(ne.button,R({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{ref:c,onPointerMove:B(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!r.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:B(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:B(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:B(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:B(e.onBlur,i.onClose),onClick:B(e.onClick,i.onClose)})))}),Gt="TooltipPortal",[wo,$o]=Ie(Gt,{forceMount:void 0}),_o=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:i}=e,r=ge(Gt,t);return l.createElement(wo,{scope:t,forceMount:n},l.createElement(qe,{present:n||r.open},l.createElement(so,{asChild:!0,container:i},o)))},he="TooltipContent",Eo=l.forwardRef((e,t)=>{const n=$o(he,e.__scopeTooltip),{forceMount:o=n.forceMount,side:i="top",...r}=e,s=ge(he,e.__scopeTooltip);return l.createElement(qe,{present:o||s.open},s.disableHoverableContent?l.createElement(Yt,R({side:i},r,{ref:t})):l.createElement(Ao,R({side:i},r,{ref:t})))}),Ao=l.forwardRef((e,t)=>{const n=ge(he,e.__scopeTooltip),o=Ke(he,e.__scopeTooltip),i=l.useRef(null),r=ae(t,i),[s,a]=l.useState(null),{trigger:c,onClose:u}=n,d=i.current,{onPointerInTransitChange:f}=o,h=l.useCallback(()=>{a(null),f(!1)},[f]),p=l.useCallback((m,g)=>{const v=m.currentTarget,y={x:m.clientX,y:m.clientY},b=Ro(y,v.getBoundingClientRect()),w=So(y,b),$=Do(g.getBoundingClientRect()),x=Lo([...w,...$]);a(x),f(!0)},[f]);return l.useEffect(()=>()=>h(),[h]),l.useEffect(()=>{if(c&&d){const m=v=>p(v,d),g=v=>p(v,c);return c.addEventListener("pointerleave",m),d.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",m),d.removeEventListener("pointerleave",g)}}},[c,d,p,h]),l.useEffect(()=>{if(s){const m=g=>{const v=g.target,y={x:g.clientX,y:g.clientY},b=(c==null?void 0:c.contains(v))||(d==null?void 0:d.contains(v)),w=!No(y,s);b?h():w&&(h(),u())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,d,s,u,h]),l.createElement(Yt,R({},e,{ref:r}))}),[Po,Oo]=Ie(Ze,{isInside:!1}),Yt=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:r,onPointerDownOutside:s,...a}=e,c=ge(he,n),u=ke(n),{onClose:d}=c;return l.useEffect(()=>(document.addEventListener(Ve,d),()=>document.removeEventListener(Ve,d)),[d]),l.useEffect(()=>{if(c.trigger){const f=h=>{const p=h.target;p!=null&&p.contains(c.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,d]),l.createElement(Jn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:d},l.createElement(oo,R({"data-state":c.stateAttribute},u,a,{ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),l.createElement(Tt,null,o),l.createElement(Po,{scope:n,isInside:!0},l.createElement(po,{id:c.contentId,role:"tooltip"},i||o))))}),Co="TooltipArrow",To=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,i=ke(n);return Oo(Co,n).isInside?null:l.createElement(io,R({},i,o,{ref:t}))});function Ro(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),r=Math.abs(t.left-e.x);switch(Math.min(n,o,i,r)){case r:return"left";case i:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function So(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function Do(e){const{top:t,right:n,bottom:o,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:o},{x:i,y:o}]}function No(e,t){const{x:n,y:o}=e;let i=!1;for(let r=0,s=t.length-1;r<t.length;s=r++){const a=t[r].x,c=t[r].y,u=t[s].x,d=t[s].y;c>o!=d>o&&n<(u-a)*(o-c)/(d-c)+a&&(i=!i)}return i}function Lo(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),Mo(t)}function Mo(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const i=e[o];for(;t.length>=2;){const r=t[t.length-1],s=t[t.length-2];if((r.x-s.x)*(i.y-s.y)>=(r.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const i=e[o];for(;n.length>=2;){const r=n[n.length-1],s=n[n.length-2];if((r.x-s.x)*(i.y-s.y)>=(r.y-s.y)*(i.x-s.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const Io=vo,ko=bo,jo=xo,Fo=_o,Ho=Eo,Bo=To;function Vo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xt={exports:{}};/*!
18
+ Copyright (c) 2018 Jed Watson.
19
+ Licensed under the MIT License (MIT), see
20
+ http://jedwatson.github.io/classnames
21
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(r=i(r,o.call(this,a)))}return r}function o(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var s="";for(var a in r)t.call(r,a)&&r[a]&&(s=i(s,this&&this[a]||a));return s}function i(r,s){return s?r?r+" "+s:r+s:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Xt);var Wo=Xt.exports;const zo=Vo(Wo),Uo="_slideDownAndFade_1dyp8_1",Go="_slideLeftAndFade_1dyp8_1",Yo="_slideUpAndFade_1dyp8_1",Xo="_slideRightAndFade_1dyp8_1",ee={"purpur-tooltip":"_purpur-tooltip_1dyp8_1","purpur-tooltip__content":"_purpur-tooltip__content_1dyp8_4","purpur-tooltip__content--primary":"_purpur-tooltip__content--primary_1dyp8_14","purpur-tooltip__content--primary-negative":"_purpur-tooltip__content--primary-negative_1dyp8_17",slideDownAndFade:Uo,slideLeftAndFade:Go,slideUpAndFade:Yo,slideRightAndFade:Xo,"purpur-tooltip__arrow--primary":"_purpur-tooltip__arrow--primary_1dyp8_32","purpur-tooltip__arrow--primary-negative":"_purpur-tooltip__arrow--primary-negative_1dyp8_35","purpur-tooltip__paragraph--primary":"_purpur-tooltip__paragraph--primary_1dyp8_38","purpur-tooltip__paragraph--primary-negative":"_purpur-tooltip__paragraph--primary-negative_1dyp8_41"},Oe=zo.bind(ee),qt={PRIMARY:"primary",PRIMARY_NEGATIVE:"primary-negative"},Kt={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"},Zt={START:"start",CENTER:"center",END:"end"},qo={primary:ot.TERTIARY_PURPLE,"primary-negative":ot.TERTIARY_PURPLE_NEGATVIE},X="purpur-tooltip",Jt=l.forwardRef(({["data-testid"]:e,children:t,className:n,variant:o=qt.PRIMARY,position:i=Kt.TOP,align:r=Zt.CENTER,triggerAriaLabel:s="",triggerElement:a,...c},u)=>{const[d,f]=l.useState(!1),h=Oe([n,X,{[`${X}--${o}`]:o}]),p=N.jsx(wt,{ref:u,"aria-label":s,variant:qo[o],iconOnly:!0,"data-testid":`${e}-trigger-button`,children:N.jsx(_t,{size:"md"})});return N.jsx("div",{"data-testid":e,className:h,children:N.jsx(Io,{delayDuration:parseInt(Bn),children:N.jsxs(ko,{open:d,onOpenChange:f,...c,children:[N.jsx(jo,{asChild:!0,onClick:m=>{m.preventDefault(),f(!0)},children:l.Children.count(a)===0?p:a}),N.jsx(Fo,{children:N.jsxs(Ho,{side:i,align:r,className:Oe([ee[`${X}__content`],ee[`${X}__content--${o}`]]),sideOffset:-5,"data-testid":`${e}-content`,children:[typeof t=="string"?N.jsx(Hn,{className:Oe([ee[`${X}__paragraph`],ee[`${X}__paragraph--${o}`]]),variant:At.PARAGRAPH100,"data-testid":`${e}-paragraph`,children:t}):t,N.jsx(Bo,{className:Oe([ee[`${X}__arrow`],ee[`${X}__arrow--${o}`]])})]})})]})})})});Jt.displayName="Tooltip";exports.TOOLTIP_ALIGN=Zt;exports.TOOLTIP_POSITION=Kt;exports.TOOLTIP_VARIANT=qt;exports.Tooltip=Jt;
22
+ //# sourceMappingURL=tooltip.cjs.js.map