mimir-ui-kit 1.14.0 → 1.14.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. package/dist/DatePickerModal-BM0BgzTb.js +204 -0
  2. package/dist/{NavigationButtons-B8tMfqrg.js → NavigationButtons-DuOoqaPo.js} +20 -20
  3. package/dist/assets/Accordion.css +1 -0
  4. package/dist/assets/AccordionItem.css +1 -0
  5. package/dist/assets/Button.css +1 -1
  6. package/dist/assets/DatePickerModal.css +1 -0
  7. package/dist/assets/Drawer.css +1 -0
  8. package/dist/assets/Input.css +1 -1
  9. package/dist/assets/ListPhotos.css +1 -0
  10. package/dist/assets/MergedButton.css +1 -1
  11. package/dist/assets/OtpInput.css +1 -1
  12. package/dist/assets/Pagination.css +1 -0
  13. package/dist/assets/RadioGroup.css +1 -1
  14. package/dist/assets/SelectSearch.css +1 -0
  15. package/dist/assets/Slider.css +1 -1
  16. package/dist/assets/Switch.css +1 -0
  17. package/dist/assets/TabTrail.css +1 -0
  18. package/dist/assets/Tag.css +1 -0
  19. package/dist/assets/Timer.css +1 -0
  20. package/dist/assets/Uploader.css +1 -0
  21. package/dist/assets/UploaderPhotos.css +1 -0
  22. package/dist/assets/index.css +1 -1
  23. package/dist/bugs-CSBdWk0R.js +18 -0
  24. package/dist/components/Accordion/Accordion.d.ts +10 -0
  25. package/dist/components/Accordion/Accordion.js +176 -0
  26. package/dist/components/Accordion/AccordionItem/AccordionItem.d.ts +8 -0
  27. package/dist/components/Accordion/AccordionItem/AccordionItem.js +16 -0
  28. package/dist/components/Accordion/AccordionItem/index.d.ts +1 -0
  29. package/dist/components/Accordion/AccordionItem/index.js +4 -0
  30. package/dist/components/Accordion/constants.d.ts +8 -0
  31. package/dist/components/Accordion/constants.js +14 -0
  32. package/dist/components/Accordion/index.d.ts +3 -0
  33. package/dist/components/Accordion/index.js +8 -0
  34. package/dist/components/Button/Button.d.ts +0 -1
  35. package/dist/components/Button/Button.js +26 -25
  36. package/dist/components/Button/constants.d.ts +2 -1
  37. package/dist/components/Button/constants.js +1 -0
  38. package/dist/components/DatePicker/DatePicker.d.ts +44 -0
  39. package/dist/components/DatePicker/DatePicker.js +69 -0
  40. package/dist/components/DatePicker/DatePickerModal.d.ts +8 -0
  41. package/dist/components/DatePicker/DatePickerModal.js +9 -0
  42. package/dist/components/DatePicker/constants.d.ts +6 -0
  43. package/dist/components/DatePicker/constants.js +11 -0
  44. package/dist/components/DatePicker/index.d.ts +2 -0
  45. package/dist/components/DatePicker/index.js +4 -0
  46. package/dist/components/Drawer/Drawer.d.ts +38 -0
  47. package/dist/components/Drawer/Drawer.js +144 -0
  48. package/dist/components/Drawer/constants.d.ts +5 -0
  49. package/dist/components/Drawer/constants.js +9 -0
  50. package/dist/components/Drawer/index.d.ts +2 -0
  51. package/dist/components/Drawer/index.js +6 -0
  52. package/dist/components/Input/Input.d.ts +2 -2
  53. package/dist/components/Input/Input.js +17 -16
  54. package/dist/components/InputPassword/InputPassword.js +2 -2
  55. package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
  56. package/dist/components/ListPhotos/ListPhotos.d.ts +23 -0
  57. package/dist/components/ListPhotos/ListPhotos.js +33 -0
  58. package/dist/components/ListPhotos/constants.d.ts +3 -0
  59. package/dist/components/ListPhotos/constants.js +21 -0
  60. package/dist/components/ListPhotos/index.d.ts +2 -0
  61. package/dist/components/ListPhotos/index.js +4 -0
  62. package/dist/components/MergedButton/MergedButton.d.ts +1 -1
  63. package/dist/components/MergedButton/MergedButton.js +17 -19
  64. package/dist/components/OtpInput/OtpInput.js +6 -6
  65. package/dist/components/Pagination/Pagination.d.ts +42 -0
  66. package/dist/components/Pagination/Pagination.js +220 -0
  67. package/dist/components/Pagination/constants.d.ts +2 -0
  68. package/dist/components/Pagination/constants.js +6 -0
  69. package/dist/components/Pagination/index.d.ts +1 -0
  70. package/dist/components/Pagination/index.js +4 -0
  71. package/dist/components/Pagination/types.d.ts +0 -0
  72. package/dist/components/Pagination/types.js +1 -0
  73. package/dist/components/Portal/Portal.d.ts +7 -0
  74. package/dist/components/Portal/Portal.js +10 -0
  75. package/dist/components/Portal/index.d.ts +1 -0
  76. package/dist/components/Portal/index.js +4 -0
  77. package/dist/components/RadioGroup/RadioGroup.d.ts +18 -2
  78. package/dist/components/RadioGroup/RadioGroup.js +130 -1061
  79. package/dist/components/RadioGroup/index.d.ts +1 -1
  80. package/dist/components/SelectSearch/SelectSearch.d.ts +15 -0
  81. package/dist/components/SelectSearch/SelectSearch.js +3876 -0
  82. package/dist/components/SelectSearch/constants.d.ts +4 -0
  83. package/dist/components/SelectSearch/constants.js +8 -0
  84. package/dist/components/SelectSearch/index.d.ts +2 -0
  85. package/dist/components/SelectSearch/index.js +6 -0
  86. package/dist/components/Slider/NavigationButtons/NavigationButtons.js +1 -1
  87. package/dist/components/Slider/NavigationButtons/index.js +1 -1
  88. package/dist/components/Slider/Slider.js +10 -10
  89. package/dist/components/Switch/Switch.d.ts +294 -0
  90. package/dist/components/Switch/Switch.js +59 -0
  91. package/dist/components/Switch/index.d.ts +2 -0
  92. package/dist/components/Switch/index.js +4 -0
  93. package/dist/components/TabTrail/TabButtons/TabButtons.d.ts +8 -0
  94. package/dist/components/TabTrail/TabButtons/TabButtons.js +29 -0
  95. package/dist/components/TabTrail/TabButtons/constants.d.ts +8 -0
  96. package/dist/components/TabTrail/TabButtons/constants.js +14 -0
  97. package/dist/components/TabTrail/TabButtons/index.d.ts +1 -0
  98. package/dist/components/TabTrail/TabButtons/index.js +4 -0
  99. package/dist/components/TabTrail/TabTrail.d.ts +11 -0
  100. package/dist/components/TabTrail/TabTrail.js +282 -0
  101. package/dist/components/TabTrail/constants.d.ts +4 -0
  102. package/dist/components/TabTrail/constants.js +8 -0
  103. package/dist/components/TabTrail/index.d.ts +2 -0
  104. package/dist/components/TabTrail/index.js +6 -0
  105. package/dist/components/Tag/Tag.d.ts +20 -57
  106. package/dist/components/Tag/Tag.js +39 -84
  107. package/dist/components/Tag/constants.d.ts +5 -37
  108. package/dist/components/Tag/constants.js +13 -53
  109. package/dist/components/Tag/index.d.ts +2 -3
  110. package/dist/components/Tag/index.js +5 -6
  111. package/dist/components/Tag/types.d.ts +0 -6
  112. package/dist/components/Timer/Timer.d.ts +24 -0
  113. package/dist/components/Timer/Timer.js +29 -0
  114. package/dist/components/Timer/index.d.ts +1 -0
  115. package/dist/components/Timer/index.js +4 -0
  116. package/dist/components/Uploader/Uploader.d.ts +30 -0
  117. package/dist/components/Uploader/Uploader.js +90 -0
  118. package/dist/components/Uploader/constants.d.ts +5 -0
  119. package/dist/components/Uploader/constants.js +16 -0
  120. package/dist/components/Uploader/index.d.ts +2 -0
  121. package/dist/components/Uploader/index.js +4 -0
  122. package/dist/components/UploaderPhotos/UploaderPhotos.d.ts +29 -0
  123. package/dist/components/UploaderPhotos/UploaderPhotos.js +46 -0
  124. package/dist/components/UploaderPhotos/index.d.ts +2 -0
  125. package/dist/components/UploaderPhotos/index.js +4 -0
  126. package/dist/components/index.d.ts +16 -1
  127. package/dist/components/index.js +31 -0
  128. package/dist/focus-management-1rQPII7Z.js +77 -0
  129. package/dist/hidden-BuVoeHNy.js +13 -0
  130. package/dist/hooks/index.d.ts +3 -0
  131. package/dist/hooks/index.js +7 -1
  132. package/dist/hooks/useClickOutside/index.d.ts +1 -0
  133. package/dist/hooks/useClickOutside/index.js +4 -0
  134. package/dist/hooks/useClickOutside/useClickOutside.d.ts +7 -0
  135. package/dist/hooks/useClickOutside/useClickOutside.js +25 -0
  136. package/dist/hooks/useInterval/index.d.ts +1 -0
  137. package/dist/hooks/useInterval/index.js +4 -0
  138. package/dist/hooks/useInterval/useInterval.d.ts +1 -0
  139. package/dist/hooks/useInterval/useInterval.js +17 -0
  140. package/dist/hooks/useLockBodyScroll/index.d.ts +1 -0
  141. package/dist/hooks/useLockBodyScroll/index.js +4 -0
  142. package/dist/hooks/useLockBodyScroll/useLockBodyScroll.d.ts +6 -0
  143. package/dist/hooks/useLockBodyScroll/useLockBodyScroll.js +20 -0
  144. package/dist/hooks/useTimer/index.d.ts +18 -0
  145. package/dist/hooks/useTimer/index.js +83 -0
  146. package/dist/hooks/useTimer/useTimer.d.ts +18 -0
  147. package/dist/hooks/useTimer/useTimer.js +87 -0
  148. package/dist/hooks/useTimer/utils.d.ts +24 -0
  149. package/dist/hooks/useTimer/utils.js +88 -0
  150. package/dist/hooks/useWindowSize/index.d.ts +4 -0
  151. package/dist/hooks/useWindowSize/index.js +26 -0
  152. package/dist/icons/Icon.js +1 -1
  153. package/dist/icons/components/12px/Close12px.d.ts +4 -0
  154. package/dist/icons/components/12px/Close12px.js +18 -0
  155. package/dist/icons/components/index.d.ts +1 -0
  156. package/dist/icons/components/index.js +560 -559
  157. package/dist/{index-_ACzPKPw.js → index-Cxiikb7g.js} +561 -558
  158. package/dist/index.d.ts +1 -0
  159. package/dist/index.js +40 -1
  160. package/dist/keyboard-B256ZoM-.js +745 -0
  161. package/dist/label-C_5Syaoj.js +159 -0
  162. package/dist/open-closed-CbXq00et.js +93 -0
  163. package/dist/use-active-press-B6yeSopF.js +31 -0
  164. package/dist/use-by-comparator-BUO78DGe.js +16 -0
  165. package/dist/use-resolve-button-type-B6LE6gU3.js +19 -0
  166. package/dist/utils/UUID4.d.ts +1 -0
  167. package/dist/utils/UUID4.js +9 -0
  168. package/dist/utils/formating/Date.d.ts +1 -0
  169. package/dist/utils/formating/Date.js +26 -0
  170. package/dist/utils/formating/Month.d.ts +8 -0
  171. package/dist/utils/formating/Month.js +80 -0
  172. package/dist/utils/formating/Numbers.d.ts +6 -0
  173. package/dist/utils/formating/Numbers.js +8 -0
  174. package/dist/utils/index.d.ts +11 -0
  175. package/dist/utils/index.js +13 -0
  176. package/package.json +1 -1
@@ -0,0 +1,745 @@
1
+ import React__default, { useRef, useCallback, useEffect, useState, useMemo, useLayoutEffect, forwardRef, Fragment, isValidElement, cloneElement, createElement } from "react";
2
+ const $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document !== "undefined" ? React__default.useLayoutEffect : () => {
3
+ };
4
+ function $8ae05eaa5c114e9c$export$7f54fc3180508a52(fn) {
5
+ const ref = useRef(null);
6
+ $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
7
+ ref.current = fn;
8
+ }, [
9
+ fn
10
+ ]);
11
+ return useCallback((...args) => {
12
+ const f = ref.current;
13
+ return f === null || f === void 0 ? void 0 : f(...args);
14
+ }, []);
15
+ }
16
+ const $431fbd86ca7dc216$export$b204af158042fbac = (el) => {
17
+ var _el_ownerDocument;
18
+ return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
19
+ };
20
+ const $431fbd86ca7dc216$export$f21a1ffae260145a = (el) => {
21
+ if (el && "window" in el && el.window === el) return el;
22
+ const doc = $431fbd86ca7dc216$export$b204af158042fbac(el);
23
+ return doc.defaultView || window;
24
+ };
25
+ function $c87311424ea30a05$var$testUserAgent(re) {
26
+ var _window_navigator_userAgentData;
27
+ if (typeof window === "undefined" || window.navigator == null) return false;
28
+ return ((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands.some((brand) => re.test(brand.brand))) || re.test(window.navigator.userAgent);
29
+ }
30
+ function $c87311424ea30a05$var$testPlatform(re) {
31
+ var _window_navigator_userAgentData;
32
+ return typeof window !== "undefined" && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;
33
+ }
34
+ function $c87311424ea30a05$export$9ac100e40613ea10() {
35
+ return $c87311424ea30a05$var$testPlatform(/^Mac/i);
36
+ }
37
+ function $c87311424ea30a05$export$a11b0059900ceec8() {
38
+ return $c87311424ea30a05$var$testUserAgent(/Android/i);
39
+ }
40
+ function $6a7db85432448f7f$export$60278871457622de(event) {
41
+ if (event.mozInputSource === 0 && event.isTrusted) return true;
42
+ if ($c87311424ea30a05$export$a11b0059900ceec8() && event.pointerType) return event.type === "click" && event.buttons === 1;
43
+ return event.detail === 0 && !event.pointerType;
44
+ }
45
+ class $8a9cb279dc87e130$export$905e7fc544a71f36 {
46
+ isDefaultPrevented() {
47
+ return this.nativeEvent.defaultPrevented;
48
+ }
49
+ preventDefault() {
50
+ this.defaultPrevented = true;
51
+ this.nativeEvent.preventDefault();
52
+ }
53
+ stopPropagation() {
54
+ this.nativeEvent.stopPropagation();
55
+ this.isPropagationStopped = () => true;
56
+ }
57
+ isPropagationStopped() {
58
+ return false;
59
+ }
60
+ persist() {
61
+ }
62
+ constructor(type, nativeEvent) {
63
+ this.nativeEvent = nativeEvent;
64
+ this.target = nativeEvent.target;
65
+ this.currentTarget = nativeEvent.currentTarget;
66
+ this.relatedTarget = nativeEvent.relatedTarget;
67
+ this.bubbles = nativeEvent.bubbles;
68
+ this.cancelable = nativeEvent.cancelable;
69
+ this.defaultPrevented = nativeEvent.defaultPrevented;
70
+ this.eventPhase = nativeEvent.eventPhase;
71
+ this.isTrusted = nativeEvent.isTrusted;
72
+ this.timeStamp = nativeEvent.timeStamp;
73
+ this.type = type;
74
+ }
75
+ }
76
+ function $8a9cb279dc87e130$export$715c682d09d639cc(onBlur) {
77
+ let stateRef = useRef({
78
+ isFocused: false,
79
+ observer: null
80
+ });
81
+ $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
82
+ const state = stateRef.current;
83
+ return () => {
84
+ if (state.observer) {
85
+ state.observer.disconnect();
86
+ state.observer = null;
87
+ }
88
+ };
89
+ }, []);
90
+ let dispatchBlur = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
91
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
92
+ });
93
+ return useCallback((e) => {
94
+ if (e.target instanceof HTMLButtonElement || e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement || e.target instanceof HTMLSelectElement) {
95
+ stateRef.current.isFocused = true;
96
+ let target = e.target;
97
+ let onBlurHandler = (e2) => {
98
+ stateRef.current.isFocused = false;
99
+ if (target.disabled)
100
+ dispatchBlur(new $8a9cb279dc87e130$export$905e7fc544a71f36("blur", e2));
101
+ if (stateRef.current.observer) {
102
+ stateRef.current.observer.disconnect();
103
+ stateRef.current.observer = null;
104
+ }
105
+ };
106
+ target.addEventListener("focusout", onBlurHandler, {
107
+ once: true
108
+ });
109
+ stateRef.current.observer = new MutationObserver(() => {
110
+ if (stateRef.current.isFocused && target.disabled) {
111
+ var _stateRef_current_observer;
112
+ (_stateRef_current_observer = stateRef.current.observer) === null || _stateRef_current_observer === void 0 ? void 0 : _stateRef_current_observer.disconnect();
113
+ let relatedTargetEl = target === document.activeElement ? null : document.activeElement;
114
+ target.dispatchEvent(new FocusEvent("blur", {
115
+ relatedTarget: relatedTargetEl
116
+ }));
117
+ target.dispatchEvent(new FocusEvent("focusout", {
118
+ bubbles: true,
119
+ relatedTarget: relatedTargetEl
120
+ }));
121
+ }
122
+ });
123
+ stateRef.current.observer.observe(target, {
124
+ attributes: true,
125
+ attributeFilter: [
126
+ "disabled"
127
+ ]
128
+ });
129
+ }
130
+ }, [
131
+ dispatchBlur
132
+ ]);
133
+ }
134
+ function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {
135
+ let { isDisabled, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange } = props;
136
+ const onBlur = useCallback((e) => {
137
+ if (e.target === e.currentTarget) {
138
+ if (onBlurProp) onBlurProp(e);
139
+ if (onFocusChange) onFocusChange(false);
140
+ return true;
141
+ }
142
+ }, [
143
+ onBlurProp,
144
+ onFocusChange
145
+ ]);
146
+ const onSyntheticFocus = $8a9cb279dc87e130$export$715c682d09d639cc(onBlur);
147
+ const onFocus = useCallback((e) => {
148
+ const ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(e.target);
149
+ if (e.target === e.currentTarget && ownerDocument.activeElement === e.target) {
150
+ if (onFocusProp) onFocusProp(e);
151
+ if (onFocusChange) onFocusChange(true);
152
+ onSyntheticFocus(e);
153
+ }
154
+ }, [
155
+ onFocusChange,
156
+ onFocusProp,
157
+ onSyntheticFocus
158
+ ]);
159
+ return {
160
+ focusProps: {
161
+ onFocus: !isDisabled && (onFocusProp || onFocusChange || onBlurProp) ? onFocus : void 0,
162
+ onBlur: !isDisabled && (onBlurProp || onFocusChange) ? onBlur : void 0
163
+ }
164
+ };
165
+ }
166
+ let $507fabe10e71c6fb$var$currentModality = null;
167
+ let $507fabe10e71c6fb$var$changeHandlers = /* @__PURE__ */ new Set();
168
+ let $507fabe10e71c6fb$export$d90243b58daecda7 = /* @__PURE__ */ new Map();
169
+ let $507fabe10e71c6fb$var$hasEventBeforeFocus = false;
170
+ let $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;
171
+ const $507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS = {
172
+ Tab: true,
173
+ Escape: true
174
+ };
175
+ function $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {
176
+ for (let handler of $507fabe10e71c6fb$var$changeHandlers) handler(modality, e);
177
+ }
178
+ function $507fabe10e71c6fb$var$isValidKey(e) {
179
+ return !(e.metaKey || !$c87311424ea30a05$export$9ac100e40613ea10() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
180
+ }
181
+ function $507fabe10e71c6fb$var$handleKeyboardEvent(e) {
182
+ $507fabe10e71c6fb$var$hasEventBeforeFocus = true;
183
+ if ($507fabe10e71c6fb$var$isValidKey(e)) {
184
+ $507fabe10e71c6fb$var$currentModality = "keyboard";
185
+ $507fabe10e71c6fb$var$triggerChangeHandlers("keyboard", e);
186
+ }
187
+ }
188
+ function $507fabe10e71c6fb$var$handlePointerEvent(e) {
189
+ $507fabe10e71c6fb$var$currentModality = "pointer";
190
+ if (e.type === "mousedown" || e.type === "pointerdown") {
191
+ $507fabe10e71c6fb$var$hasEventBeforeFocus = true;
192
+ $507fabe10e71c6fb$var$triggerChangeHandlers("pointer", e);
193
+ }
194
+ }
195
+ function $507fabe10e71c6fb$var$handleClickEvent(e) {
196
+ if ($6a7db85432448f7f$export$60278871457622de(e)) {
197
+ $507fabe10e71c6fb$var$hasEventBeforeFocus = true;
198
+ $507fabe10e71c6fb$var$currentModality = "virtual";
199
+ }
200
+ }
201
+ function $507fabe10e71c6fb$var$handleFocusEvent(e) {
202
+ if (e.target === window || e.target === document) return;
203
+ if (!$507fabe10e71c6fb$var$hasEventBeforeFocus && !$507fabe10e71c6fb$var$hasBlurredWindowRecently) {
204
+ $507fabe10e71c6fb$var$currentModality = "virtual";
205
+ $507fabe10e71c6fb$var$triggerChangeHandlers("virtual", e);
206
+ }
207
+ $507fabe10e71c6fb$var$hasEventBeforeFocus = false;
208
+ $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;
209
+ }
210
+ function $507fabe10e71c6fb$var$handleWindowBlur() {
211
+ $507fabe10e71c6fb$var$hasEventBeforeFocus = false;
212
+ $507fabe10e71c6fb$var$hasBlurredWindowRecently = true;
213
+ }
214
+ function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {
215
+ if (typeof window === "undefined" || $507fabe10e71c6fb$export$d90243b58daecda7.get($431fbd86ca7dc216$export$f21a1ffae260145a(element))) return;
216
+ const windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element);
217
+ const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element);
218
+ let focus = windowObject.HTMLElement.prototype.focus;
219
+ windowObject.HTMLElement.prototype.focus = function() {
220
+ $507fabe10e71c6fb$var$hasEventBeforeFocus = true;
221
+ focus.apply(this, arguments);
222
+ };
223
+ documentObject.addEventListener("keydown", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
224
+ documentObject.addEventListener("keyup", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
225
+ documentObject.addEventListener("click", $507fabe10e71c6fb$var$handleClickEvent, true);
226
+ windowObject.addEventListener("focus", $507fabe10e71c6fb$var$handleFocusEvent, true);
227
+ windowObject.addEventListener("blur", $507fabe10e71c6fb$var$handleWindowBlur, false);
228
+ if (typeof PointerEvent !== "undefined") {
229
+ documentObject.addEventListener("pointerdown", $507fabe10e71c6fb$var$handlePointerEvent, true);
230
+ documentObject.addEventListener("pointermove", $507fabe10e71c6fb$var$handlePointerEvent, true);
231
+ documentObject.addEventListener("pointerup", $507fabe10e71c6fb$var$handlePointerEvent, true);
232
+ } else {
233
+ documentObject.addEventListener("mousedown", $507fabe10e71c6fb$var$handlePointerEvent, true);
234
+ documentObject.addEventListener("mousemove", $507fabe10e71c6fb$var$handlePointerEvent, true);
235
+ documentObject.addEventListener("mouseup", $507fabe10e71c6fb$var$handlePointerEvent, true);
236
+ }
237
+ windowObject.addEventListener("beforeunload", () => {
238
+ $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element);
239
+ }, {
240
+ once: true
241
+ });
242
+ $507fabe10e71c6fb$export$d90243b58daecda7.set(windowObject, {
243
+ focus
244
+ });
245
+ }
246
+ const $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener) => {
247
+ const windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element);
248
+ const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element);
249
+ if (loadListener) documentObject.removeEventListener("DOMContentLoaded", loadListener);
250
+ if (!$507fabe10e71c6fb$export$d90243b58daecda7.has(windowObject)) return;
251
+ windowObject.HTMLElement.prototype.focus = $507fabe10e71c6fb$export$d90243b58daecda7.get(windowObject).focus;
252
+ documentObject.removeEventListener("keydown", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
253
+ documentObject.removeEventListener("keyup", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
254
+ documentObject.removeEventListener("click", $507fabe10e71c6fb$var$handleClickEvent, true);
255
+ windowObject.removeEventListener("focus", $507fabe10e71c6fb$var$handleFocusEvent, true);
256
+ windowObject.removeEventListener("blur", $507fabe10e71c6fb$var$handleWindowBlur, false);
257
+ if (typeof PointerEvent !== "undefined") {
258
+ documentObject.removeEventListener("pointerdown", $507fabe10e71c6fb$var$handlePointerEvent, true);
259
+ documentObject.removeEventListener("pointermove", $507fabe10e71c6fb$var$handlePointerEvent, true);
260
+ documentObject.removeEventListener("pointerup", $507fabe10e71c6fb$var$handlePointerEvent, true);
261
+ } else {
262
+ documentObject.removeEventListener("mousedown", $507fabe10e71c6fb$var$handlePointerEvent, true);
263
+ documentObject.removeEventListener("mousemove", $507fabe10e71c6fb$var$handlePointerEvent, true);
264
+ documentObject.removeEventListener("mouseup", $507fabe10e71c6fb$var$handlePointerEvent, true);
265
+ }
266
+ $507fabe10e71c6fb$export$d90243b58daecda7.delete(windowObject);
267
+ };
268
+ function $507fabe10e71c6fb$export$2f1888112f558a7d(element) {
269
+ const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element);
270
+ let loadListener;
271
+ if (documentObject.readyState !== "loading") $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);
272
+ else {
273
+ loadListener = () => {
274
+ $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);
275
+ };
276
+ documentObject.addEventListener("DOMContentLoaded", loadListener);
277
+ }
278
+ return () => $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element, loadListener);
279
+ }
280
+ if (typeof document !== "undefined") $507fabe10e71c6fb$export$2f1888112f558a7d();
281
+ function $507fabe10e71c6fb$export$b9b3dfddab17db27() {
282
+ return $507fabe10e71c6fb$var$currentModality !== "pointer";
283
+ }
284
+ const $507fabe10e71c6fb$var$nonTextInputTypes = /* @__PURE__ */ new Set([
285
+ "checkbox",
286
+ "radio",
287
+ "range",
288
+ "color",
289
+ "file",
290
+ "image",
291
+ "button",
292
+ "submit",
293
+ "reset"
294
+ ]);
295
+ function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {
296
+ var _e_target;
297
+ const IHTMLInputElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;
298
+ const IHTMLTextAreaElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;
299
+ const IHTMLElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;
300
+ const IKeyboardEvent = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;
301
+ isTextInput = isTextInput || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(e === null || e === void 0 ? void 0 : (_e_target = e.target) === null || _e_target === void 0 ? void 0 : _e_target.type) || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLTextAreaElement || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLElement && (e === null || e === void 0 ? void 0 : e.target.isContentEditable);
302
+ return !(isTextInput && modality === "keyboard" && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);
303
+ }
304
+ function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {
305
+ $507fabe10e71c6fb$var$setupGlobalFocusEvents();
306
+ useEffect(() => {
307
+ let handler = (modality, e) => {
308
+ if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(opts === null || opts === void 0 ? void 0 : opts.isTextInput), modality, e)) return;
309
+ fn($507fabe10e71c6fb$export$b9b3dfddab17db27());
310
+ };
311
+ $507fabe10e71c6fb$var$changeHandlers.add(handler);
312
+ return () => {
313
+ $507fabe10e71c6fb$var$changeHandlers.delete(handler);
314
+ };
315
+ }, deps);
316
+ }
317
+ function $9ab94262bd0047c7$export$420e68273165f4ec(props) {
318
+ let { isDisabled, onBlurWithin, onFocusWithin, onFocusWithinChange } = props;
319
+ let state = useRef({
320
+ isFocusWithin: false
321
+ });
322
+ let onBlur = useCallback((e) => {
323
+ if (state.current.isFocusWithin && !e.currentTarget.contains(e.relatedTarget)) {
324
+ state.current.isFocusWithin = false;
325
+ if (onBlurWithin) onBlurWithin(e);
326
+ if (onFocusWithinChange) onFocusWithinChange(false);
327
+ }
328
+ }, [
329
+ onBlurWithin,
330
+ onFocusWithinChange,
331
+ state
332
+ ]);
333
+ let onSyntheticFocus = $8a9cb279dc87e130$export$715c682d09d639cc(onBlur);
334
+ let onFocus = useCallback((e) => {
335
+ if (!state.current.isFocusWithin && document.activeElement === e.target) {
336
+ if (onFocusWithin) onFocusWithin(e);
337
+ if (onFocusWithinChange) onFocusWithinChange(true);
338
+ state.current.isFocusWithin = true;
339
+ onSyntheticFocus(e);
340
+ }
341
+ }, [
342
+ onFocusWithin,
343
+ onFocusWithinChange,
344
+ onSyntheticFocus
345
+ ]);
346
+ if (isDisabled) return {
347
+ focusWithinProps: {
348
+ // These should not have been null, that would conflict in mergeProps
349
+ onFocus: void 0,
350
+ onBlur: void 0
351
+ }
352
+ };
353
+ return {
354
+ focusWithinProps: {
355
+ onFocus,
356
+ onBlur
357
+ }
358
+ };
359
+ }
360
+ let $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = false;
361
+ let $6179b936705e76d3$var$hoverCount = 0;
362
+ function $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents() {
363
+ $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = true;
364
+ setTimeout(() => {
365
+ $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = false;
366
+ }, 50);
367
+ }
368
+ function $6179b936705e76d3$var$handleGlobalPointerEvent(e) {
369
+ if (e.pointerType === "touch") $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents();
370
+ }
371
+ function $6179b936705e76d3$var$setupGlobalTouchEvents() {
372
+ if (typeof document === "undefined") return;
373
+ if (typeof PointerEvent !== "undefined") document.addEventListener("pointerup", $6179b936705e76d3$var$handleGlobalPointerEvent);
374
+ else document.addEventListener("touchend", $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents);
375
+ $6179b936705e76d3$var$hoverCount++;
376
+ return () => {
377
+ $6179b936705e76d3$var$hoverCount--;
378
+ if ($6179b936705e76d3$var$hoverCount > 0) return;
379
+ if (typeof PointerEvent !== "undefined") document.removeEventListener("pointerup", $6179b936705e76d3$var$handleGlobalPointerEvent);
380
+ else document.removeEventListener("touchend", $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents);
381
+ };
382
+ }
383
+ function $6179b936705e76d3$export$ae780daf29e6d456(props) {
384
+ let { onHoverStart, onHoverChange, onHoverEnd, isDisabled } = props;
385
+ let [isHovered, setHovered] = useState(false);
386
+ let state = useRef({
387
+ isHovered: false,
388
+ ignoreEmulatedMouseEvents: false,
389
+ pointerType: "",
390
+ target: null
391
+ }).current;
392
+ useEffect($6179b936705e76d3$var$setupGlobalTouchEvents, []);
393
+ let { hoverProps, triggerHoverEnd } = useMemo(() => {
394
+ let triggerHoverStart = (event, pointerType) => {
395
+ state.pointerType = pointerType;
396
+ if (isDisabled || pointerType === "touch" || state.isHovered || !event.currentTarget.contains(event.target)) return;
397
+ state.isHovered = true;
398
+ let target = event.currentTarget;
399
+ state.target = target;
400
+ if (onHoverStart) onHoverStart({
401
+ type: "hoverstart",
402
+ target,
403
+ pointerType
404
+ });
405
+ if (onHoverChange) onHoverChange(true);
406
+ setHovered(true);
407
+ };
408
+ let triggerHoverEnd2 = (event, pointerType) => {
409
+ state.pointerType = "";
410
+ state.target = null;
411
+ if (pointerType === "touch" || !state.isHovered) return;
412
+ state.isHovered = false;
413
+ let target = event.currentTarget;
414
+ if (onHoverEnd) onHoverEnd({
415
+ type: "hoverend",
416
+ target,
417
+ pointerType
418
+ });
419
+ if (onHoverChange) onHoverChange(false);
420
+ setHovered(false);
421
+ };
422
+ let hoverProps2 = {};
423
+ if (typeof PointerEvent !== "undefined") {
424
+ hoverProps2.onPointerEnter = (e) => {
425
+ if ($6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents && e.pointerType === "mouse") return;
426
+ triggerHoverStart(e, e.pointerType);
427
+ };
428
+ hoverProps2.onPointerLeave = (e) => {
429
+ if (!isDisabled && e.currentTarget.contains(e.target)) triggerHoverEnd2(e, e.pointerType);
430
+ };
431
+ } else {
432
+ hoverProps2.onTouchStart = () => {
433
+ state.ignoreEmulatedMouseEvents = true;
434
+ };
435
+ hoverProps2.onMouseEnter = (e) => {
436
+ if (!state.ignoreEmulatedMouseEvents && !$6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents) triggerHoverStart(e, "mouse");
437
+ state.ignoreEmulatedMouseEvents = false;
438
+ };
439
+ hoverProps2.onMouseLeave = (e) => {
440
+ if (!isDisabled && e.currentTarget.contains(e.target)) triggerHoverEnd2(e, "mouse");
441
+ };
442
+ }
443
+ return {
444
+ hoverProps: hoverProps2,
445
+ triggerHoverEnd: triggerHoverEnd2
446
+ };
447
+ }, [
448
+ onHoverStart,
449
+ onHoverChange,
450
+ onHoverEnd,
451
+ isDisabled,
452
+ state
453
+ ]);
454
+ useEffect(() => {
455
+ if (isDisabled) triggerHoverEnd({
456
+ currentTarget: state.target
457
+ }, state.pointerType);
458
+ }, [
459
+ isDisabled
460
+ ]);
461
+ return {
462
+ hoverProps,
463
+ isHovered
464
+ };
465
+ }
466
+ function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
467
+ let { autoFocus = false, isTextInput, within } = props;
468
+ let state = useRef({
469
+ isFocused: false,
470
+ isFocusVisible: autoFocus || $507fabe10e71c6fb$export$b9b3dfddab17db27()
471
+ });
472
+ let [isFocused, setFocused] = useState(false);
473
+ let [isFocusVisibleState, setFocusVisible] = useState(() => state.current.isFocused && state.current.isFocusVisible);
474
+ let updateState = useCallback(() => setFocusVisible(state.current.isFocused && state.current.isFocusVisible), []);
475
+ let onFocusChange = useCallback((isFocused2) => {
476
+ state.current.isFocused = isFocused2;
477
+ setFocused(isFocused2);
478
+ updateState();
479
+ }, [
480
+ updateState
481
+ ]);
482
+ $507fabe10e71c6fb$export$ec71b4b83ac08ec3((isFocusVisible) => {
483
+ state.current.isFocusVisible = isFocusVisible;
484
+ updateState();
485
+ }, [], {
486
+ isTextInput
487
+ });
488
+ let { focusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6({
489
+ isDisabled: within,
490
+ onFocusChange
491
+ });
492
+ let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
493
+ isDisabled: !within,
494
+ onFocusWithinChange: onFocusChange
495
+ });
496
+ return {
497
+ isFocused,
498
+ isFocusVisible: isFocusVisibleState,
499
+ focusProps: within ? focusWithinProps : focusProps
500
+ };
501
+ }
502
+ var i = Object.defineProperty;
503
+ var d = (t2, e, n2) => e in t2 ? i(t2, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t2[e] = n2;
504
+ var r = (t2, e, n2) => (d(t2, typeof e != "symbol" ? e + "" : e, n2), n2);
505
+ let o$3 = class o {
506
+ constructor() {
507
+ r(this, "current", this.detect());
508
+ r(this, "handoffState", "pending");
509
+ r(this, "currentId", 0);
510
+ }
511
+ set(e) {
512
+ this.current !== e && (this.handoffState = "pending", this.currentId = 0, this.current = e);
513
+ }
514
+ reset() {
515
+ this.set(this.detect());
516
+ }
517
+ nextId() {
518
+ return ++this.currentId;
519
+ }
520
+ get isServer() {
521
+ return this.current === "server";
522
+ }
523
+ get isClient() {
524
+ return this.current === "client";
525
+ }
526
+ detect() {
527
+ return typeof window == "undefined" || typeof document == "undefined" ? "server" : "client";
528
+ }
529
+ handoff() {
530
+ this.handoffState === "pending" && (this.handoffState = "complete");
531
+ }
532
+ get isHandoffComplete() {
533
+ return this.handoffState === "complete";
534
+ }
535
+ };
536
+ let s$1 = new o$3();
537
+ function u$2(r2) {
538
+ return s$1.isServer ? null : r2 instanceof Node ? r2.ownerDocument : r2 != null && r2.hasOwnProperty("current") && r2.current instanceof Node ? r2.current.ownerDocument : document;
539
+ }
540
+ function t$1(e) {
541
+ typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((o3) => setTimeout(() => {
542
+ throw o3;
543
+ }));
544
+ }
545
+ function o$2() {
546
+ let n2 = [], r2 = { addEventListener(e, t2, s2, a) {
547
+ return e.addEventListener(t2, s2, a), r2.add(() => e.removeEventListener(t2, s2, a));
548
+ }, requestAnimationFrame(...e) {
549
+ let t2 = requestAnimationFrame(...e);
550
+ return r2.add(() => cancelAnimationFrame(t2));
551
+ }, nextFrame(...e) {
552
+ return r2.requestAnimationFrame(() => r2.requestAnimationFrame(...e));
553
+ }, setTimeout(...e) {
554
+ let t2 = setTimeout(...e);
555
+ return r2.add(() => clearTimeout(t2));
556
+ }, microTask(...e) {
557
+ let t2 = { current: true };
558
+ return t$1(() => {
559
+ t2.current && e[0]();
560
+ }), r2.add(() => {
561
+ t2.current = false;
562
+ });
563
+ }, style(e, t2, s2) {
564
+ let a = e.style.getPropertyValue(t2);
565
+ return Object.assign(e.style, { [t2]: s2 }), this.add(() => {
566
+ Object.assign(e.style, { [t2]: a });
567
+ });
568
+ }, group(e) {
569
+ let t2 = o$2();
570
+ return e(t2), this.add(() => t2.dispose());
571
+ }, add(e) {
572
+ return n2.includes(e) || n2.push(e), () => {
573
+ let t2 = n2.indexOf(e);
574
+ if (t2 >= 0) for (let s2 of n2.splice(t2, 1)) s2();
575
+ };
576
+ }, dispose() {
577
+ for (let e of n2.splice(0)) e();
578
+ } };
579
+ return r2;
580
+ }
581
+ function p() {
582
+ let [e] = useState(o$2);
583
+ return useEffect(() => () => e.dispose(), [e]), e;
584
+ }
585
+ let n = (e, t2) => {
586
+ s$1.isServer ? useEffect(e, t2) : useLayoutEffect(e, t2);
587
+ };
588
+ function s(e) {
589
+ let r2 = useRef(e);
590
+ return n(() => {
591
+ r2.current = e;
592
+ }, [e]), r2;
593
+ }
594
+ let o$1 = function(t2) {
595
+ let e = s(t2);
596
+ return React__default.useCallback((...r2) => e.current(...r2), [e]);
597
+ };
598
+ function t(...r2) {
599
+ return Array.from(new Set(r2.flatMap((n2) => typeof n2 == "string" ? n2.split(" ") : []))).filter(Boolean).join(" ");
600
+ }
601
+ function u$1(r2, n2, ...a) {
602
+ if (r2 in n2) {
603
+ let e = n2[r2];
604
+ return typeof e == "function" ? e(...a) : e;
605
+ }
606
+ let t2 = new Error(`Tried to handle "${r2}" but there is no handler defined. Only defined handlers are: ${Object.keys(n2).map((e) => `"${e}"`).join(", ")}.`);
607
+ throw Error.captureStackTrace && Error.captureStackTrace(t2, u$1), t2;
608
+ }
609
+ var M = ((a) => (a[a.None = 0] = "None", a[a.RenderStrategy = 1] = "RenderStrategy", a[a.Static = 2] = "Static", a))(M || {}), O = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(O || {});
610
+ function H({ ourProps: r2, theirProps: n2, slot: e, defaultTag: a, features: s2, visible: t2 = true, name: l, mergeRefs: i2 }) {
611
+ i2 = i2 != null ? i2 : A;
612
+ let o3 = N(n2, r2);
613
+ if (t2) return b(o3, e, a, l, i2);
614
+ let y2 = s2 != null ? s2 : 0;
615
+ if (y2 & 2) {
616
+ let { static: f = false, ...u2 } = o3;
617
+ if (f) return b(u2, e, a, l, i2);
618
+ }
619
+ if (y2 & 1) {
620
+ let { unmount: f = true, ...u2 } = o3;
621
+ return u$1(f ? 0 : 1, { [0]() {
622
+ return null;
623
+ }, [1]() {
624
+ return b({ ...u2, hidden: true, style: { display: "none" } }, e, a, l, i2);
625
+ } });
626
+ }
627
+ return b(o3, e, a, l, i2);
628
+ }
629
+ function b(r2, n2 = {}, e, a, s2) {
630
+ let { as: t$12 = e, children: l, refName: i2 = "ref", ...o3 } = h(r2, ["unmount", "static"]), y2 = r2.ref !== void 0 ? { [i2]: r2.ref } : {}, f = typeof l == "function" ? l(n2) : l;
631
+ "className" in o3 && o3.className && typeof o3.className == "function" && (o3.className = o3.className(n2)), o3["aria-labelledby"] && o3["aria-labelledby"] === o3.id && (o3["aria-labelledby"] = void 0);
632
+ let u2 = {};
633
+ if (n2) {
634
+ let d2 = false, p2 = [];
635
+ for (let [c, T2] of Object.entries(n2)) typeof T2 == "boolean" && (d2 = true), T2 === true && p2.push(c.replace(/([A-Z])/g, (g) => `-${g.toLowerCase()}`));
636
+ if (d2) {
637
+ u2["data-headlessui-state"] = p2.join(" ");
638
+ for (let c of p2) u2[`data-${c}`] = "";
639
+ }
640
+ }
641
+ if (t$12 === Fragment && (Object.keys(m(o3)).length > 0 || Object.keys(m(u2)).length > 0)) if (!isValidElement(f) || Array.isArray(f) && f.length > 1) {
642
+ if (Object.keys(m(o3)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${a} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(m(o3)).concat(Object.keys(m(u2))).map((d2) => ` - ${d2}`).join(`
643
+ `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((d2) => ` - ${d2}`).join(`
644
+ `)].join(`
645
+ `));
646
+ } else {
647
+ let d2 = f.props, p2 = d2 == null ? void 0 : d2.className, c = typeof p2 == "function" ? (...F) => t(p2(...F), o3.className) : t(p2, o3.className), T2 = c ? { className: c } : {}, g = N(f.props, m(h(o3, ["ref"])));
648
+ for (let F in u2) F in g && delete u2[F];
649
+ return cloneElement(f, Object.assign({}, g, u2, y2, { ref: s2(f.ref, y2.ref) }, T2));
650
+ }
651
+ return createElement(t$12, Object.assign({}, h(o3, ["ref"]), t$12 !== Fragment && y2, t$12 !== Fragment && u2), f);
652
+ }
653
+ function I() {
654
+ let r2 = useRef([]), n2 = useCallback((e) => {
655
+ for (let a of r2.current) a != null && (typeof a == "function" ? a(e) : a.current = e);
656
+ }, []);
657
+ return (...e) => {
658
+ if (!e.every((a) => a == null)) return r2.current = e, n2;
659
+ };
660
+ }
661
+ function A(...r2) {
662
+ return r2.every((n2) => n2 == null) ? void 0 : (n2) => {
663
+ for (let e of r2) e != null && (typeof e == "function" ? e(n2) : e.current = n2);
664
+ };
665
+ }
666
+ function N(...r2) {
667
+ if (r2.length === 0) return {};
668
+ if (r2.length === 1) return r2[0];
669
+ let n2 = {}, e = {};
670
+ for (let s2 of r2) for (let t2 in s2) t2.startsWith("on") && typeof s2[t2] == "function" ? (e[t2] != null || (e[t2] = []), e[t2].push(s2[t2])) : n2[t2] = s2[t2];
671
+ if (n2.disabled || n2["aria-disabled"]) for (let s2 in e) /^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(s2) && (e[s2] = [(t2) => {
672
+ var l;
673
+ return (l = t2 == null ? void 0 : t2.preventDefault) == null ? void 0 : l.call(t2);
674
+ }]);
675
+ for (let s2 in e) Object.assign(n2, { [s2](t2, ...l) {
676
+ let i2 = e[s2];
677
+ for (let o3 of i2) {
678
+ if ((t2 instanceof Event || (t2 == null ? void 0 : t2.nativeEvent) instanceof Event) && t2.defaultPrevented) return;
679
+ o3(t2, ...l);
680
+ }
681
+ } });
682
+ return n2;
683
+ }
684
+ function D(...r2) {
685
+ if (r2.length === 0) return {};
686
+ if (r2.length === 1) return r2[0];
687
+ let n2 = {}, e = {};
688
+ for (let s2 of r2) for (let t2 in s2) t2.startsWith("on") && typeof s2[t2] == "function" ? (e[t2] != null || (e[t2] = []), e[t2].push(s2[t2])) : n2[t2] = s2[t2];
689
+ for (let s2 in e) Object.assign(n2, { [s2](...t2) {
690
+ let l = e[s2];
691
+ for (let i2 of l) i2 == null || i2(...t2);
692
+ } });
693
+ return n2;
694
+ }
695
+ function W(r2) {
696
+ var n2;
697
+ return Object.assign(forwardRef(r2), { displayName: (n2 = r2.displayName) != null ? n2 : r2.name });
698
+ }
699
+ function m(r2) {
700
+ let n2 = Object.assign({}, r2);
701
+ for (let e in n2) n2[e] === void 0 && delete n2[e];
702
+ return n2;
703
+ }
704
+ function h(r2, n2 = []) {
705
+ let e = Object.assign({}, r2);
706
+ for (let a of n2) a in e && delete e[a];
707
+ return e;
708
+ }
709
+ let u = Symbol();
710
+ function T(t2, n2 = true) {
711
+ return Object.assign(t2, { [u]: n2 });
712
+ }
713
+ function y(...t2) {
714
+ let n2 = useRef(t2);
715
+ useEffect(() => {
716
+ n2.current = t2;
717
+ }, [t2]);
718
+ let c = o$1((e) => {
719
+ for (let o3 of n2.current) o3 != null && (typeof o3 == "function" ? o3(e) : o3.current = e);
720
+ });
721
+ return t2.every((e) => e == null || (e == null ? void 0 : e[u])) ? void 0 : c;
722
+ }
723
+ var o2 = ((r2) => (r2.Space = " ", r2.Enter = "Enter", r2.Escape = "Escape", r2.Backspace = "Backspace", r2.Delete = "Delete", r2.ArrowLeft = "ArrowLeft", r2.ArrowUp = "ArrowUp", r2.ArrowRight = "ArrowRight", r2.ArrowDown = "ArrowDown", r2.Home = "Home", r2.End = "End", r2.PageUp = "PageUp", r2.PageDown = "PageDown", r2.Tab = "Tab", r2))(o2 || {});
724
+ export {
725
+ $f7dceffc5ad7768b$export$4e328f61c538687f as $,
726
+ D,
727
+ H,
728
+ I,
729
+ M,
730
+ T,
731
+ W,
732
+ u$1 as a,
733
+ $6179b936705e76d3$export$ae780daf29e6d456 as b,
734
+ o2 as c,
735
+ o$2 as d,
736
+ s$1 as e,
737
+ m,
738
+ n,
739
+ o$1 as o,
740
+ p,
741
+ s,
742
+ t$1 as t,
743
+ u$2 as u,
744
+ y
745
+ };