welcome-ui 1.0.0-beta.8 → 7.0.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/dist/{AXB53BZF-DCqNWRx3.mjs → AXB53BZF-CGoc4K3d.mjs} +3 -3
  2. package/dist/{AXB53BZF-CAQ85RSy.js → AXB53BZF-KWM2jKTz.js} +1 -1
  3. package/dist/Accordion.js +3 -3
  4. package/dist/Accordion.mjs +11 -11
  5. package/dist/Alert.js +4 -4
  6. package/dist/Alert.mjs +29 -29
  7. package/dist/AspectRatio.js +1 -1
  8. package/dist/AspectRatio.mjs +5 -5
  9. package/dist/Avatar.js +3 -3
  10. package/dist/Avatar.mjs +8 -8
  11. package/dist/{BYC7LY2E-BE1a2svb.js → BYC7LY2E-BkAEL2VD.js} +1 -1
  12. package/dist/{BYC7LY2E-BNqcw1O8.mjs → BYC7LY2E-CVjUW1dr.mjs} +4 -4
  13. package/dist/Badge.js +1 -1
  14. package/dist/Badge.mjs +5 -5
  15. package/dist/Breadcrumb.js +54 -1
  16. package/dist/Breadcrumb.mjs +438 -8
  17. package/dist/Button.js +4 -4
  18. package/dist/Button.mjs +10 -10
  19. package/dist/ButtonGroup.js +1 -1
  20. package/dist/ButtonGroup.mjs +5 -5
  21. package/dist/Card.js +2 -2
  22. package/dist/Card.mjs +4 -4
  23. package/dist/Checkbox.js +1 -1
  24. package/dist/Checkbox.mjs +1 -1
  25. package/dist/ClearButton.js +3 -3
  26. package/dist/ClearButton.mjs +10 -10
  27. package/dist/CloseButton.js +2 -2
  28. package/dist/CloseButton.mjs +6 -6
  29. package/dist/CustomInput-BCCxIle7.mjs +7826 -0
  30. package/dist/CustomInput-CDNZy-pz.js +1070 -0
  31. package/dist/DatePicker.js +1 -1
  32. package/dist/DatePicker.mjs +1 -1
  33. package/dist/DateTimePicker.js +1 -1
  34. package/dist/DateTimePicker.mjs +15 -15
  35. package/dist/DateTimePickerCommon.js +1 -1
  36. package/dist/DateTimePickerCommon.mjs +1 -1
  37. package/dist/Drawer.js +64 -1
  38. package/dist/Drawer.mjs +266 -10
  39. package/dist/DropdownMenu.js +1 -1
  40. package/dist/DropdownMenu.mjs +9 -9
  41. package/dist/Field.js +2 -2
  42. package/dist/Field.mjs +10 -10
  43. package/dist/FieldGroup.js +1 -1
  44. package/dist/FieldGroup.mjs +8 -8
  45. package/dist/FileDrop.js +46 -1
  46. package/dist/FileDrop.mjs +2324 -8
  47. package/dist/FileUpload.js +2 -2
  48. package/dist/FileUpload.mjs +10 -10
  49. package/dist/Hint.js +1 -1
  50. package/dist/Hint.mjs +6 -6
  51. package/dist/{ITI7HKP4-Couz1Z73.mjs → ITI7HKP4-BONrZ9Pq.mjs} +3 -3
  52. package/dist/Icon.js +1 -1
  53. package/dist/Icon.mjs +5 -5
  54. package/dist/{index.js → Icons.js} +6 -23
  55. package/dist/{index.mjs → Icons.mjs} +1346 -3475
  56. package/dist/{IconFont.js → IconsFont.js} +1 -1
  57. package/dist/{IconFont.mjs → IconsFont.mjs} +2 -2
  58. package/dist/InputText.js +3 -3
  59. package/dist/InputText.mjs +14 -14
  60. package/dist/{JC64G2H7-HxATiU-t.mjs → JC64G2H7-Dey-8h60.mjs} +4 -4
  61. package/dist/{JC64G2H7-VmOGyhc1.js → JC64G2H7-YkBMNrtl.js} +1 -1
  62. package/dist/{KUU7WJ55-bC4FU_j7.mjs → KUU7WJ55-3sP-w1F1.mjs} +13 -13
  63. package/dist/{LVA2YJMS-Dm5ieEMw.mjs → LVA2YJMS-qFC9J-lt.mjs} +18 -18
  64. package/dist/Label.js +35 -1
  65. package/dist/Label.mjs +76 -7
  66. package/dist/Link.js +2 -2
  67. package/dist/Link.mjs +9 -9
  68. package/dist/Loader.js +3 -3
  69. package/dist/Loader.mjs +9 -9
  70. package/dist/Logo.js +3 -1
  71. package/dist/Logo.mjs +45 -5
  72. package/dist/{MTZPJQMC-D0pYOjc_.js → MTZPJQMC-5Xg78Uyy.js} +1 -1
  73. package/dist/MTZPJQMC-C0Xe_WK4.mjs +13 -0
  74. package/dist/Modal.js +5 -5
  75. package/dist/Modal.mjs +14 -14
  76. package/dist/{NLEBE274-FThuwZH_.mjs → NLEBE274-C94QU78N.mjs} +19 -19
  77. package/dist/{P2CTZE2T-5jxBu6ix.mjs → P2CTZE2T-YPes1GXe.mjs} +28 -28
  78. package/dist/{P4IRICAX-C0oIr4wI.mjs → P4IRICAX-DzXqUYe-.mjs} +10 -10
  79. package/dist/{P4IRICAX-t3xfwWga.js → P4IRICAX-nhgZ26A1.js} +1 -1
  80. package/dist/Pagination.js +3 -3
  81. package/dist/Pagination.mjs +10 -10
  82. package/dist/PasswordInput.js +1 -1
  83. package/dist/PasswordInput.mjs +53 -5
  84. package/dist/Picker.js +2 -2
  85. package/dist/Picker.mjs +13 -13
  86. package/dist/Popover.js +31 -1
  87. package/dist/Popover.mjs +141 -5
  88. package/dist/{QYJ6MIDR-YegHsExc.mjs → QYJ6MIDR-BLLqyXdd.mjs} +12 -12
  89. package/dist/{QYJ6MIDR-T-fJ_t8N.js → QYJ6MIDR-CRK3satR.js} +1 -1
  90. package/dist/Radio.js +3 -3
  91. package/dist/Radio.mjs +16 -16
  92. package/dist/RadioGroup.js +1 -1
  93. package/dist/RadioGroup.mjs +11 -11
  94. package/dist/RadioTab.js +4 -4
  95. package/dist/RadioTab.mjs +12 -12
  96. package/dist/{SYRFVSLH-Babm193P.js → SYRFVSLH-BpAfr7UE.js} +1 -1
  97. package/dist/{SYRFVSLH-DXZgEwus.mjs → SYRFVSLH-cVmYtx36.mjs} +6 -6
  98. package/dist/Search.js +8 -8
  99. package/dist/Search.mjs +46 -46
  100. package/dist/Select.js +122 -1
  101. package/dist/Select.mjs +1070 -11
  102. package/dist/Shape.js +3 -3
  103. package/dist/Shape.mjs +5 -5
  104. package/dist/Slider.js +1 -1
  105. package/dist/Slider.mjs +3 -3
  106. package/dist/Swiper.js +2 -2
  107. package/dist/Swiper.mjs +1 -1
  108. package/dist/Table.js +1 -1
  109. package/dist/Table.mjs +1 -1
  110. package/dist/Tabs.js +8 -8
  111. package/dist/Tabs.mjs +178 -173
  112. package/dist/Tag.js +3 -3
  113. package/dist/Tag.mjs +10 -10
  114. package/dist/Text.js +1 -1
  115. package/dist/Text.mjs +4 -4
  116. package/dist/Textarea.js +1 -1
  117. package/dist/Textarea.mjs +9 -9
  118. package/dist/TimePicker.js +2 -2
  119. package/dist/TimePicker.mjs +11 -11
  120. package/dist/Toast.js +1 -1
  121. package/dist/Toast.mjs +1 -1
  122. package/dist/Toggle.js +1 -1
  123. package/dist/Toggle.mjs +7 -7
  124. package/dist/Tooltip.js +1 -1
  125. package/dist/Tooltip.mjs +10 -10
  126. package/dist/UniversalLink.js +1 -1
  127. package/dist/UniversalLink.mjs +4 -4
  128. package/dist/VEVQD5MH-ZMnHV8ZJ.mjs +20 -0
  129. package/dist/{VEVQD5MH-Cal9SWXl.js → VEVQD5MH-mN1wMozH.js} +1 -1
  130. package/dist/{VGCJ63VH-BqPfqkK_.mjs → VGCJ63VH-B39w1tBw.mjs} +19 -19
  131. package/dist/{VGCJ63VH-Cuf7P3qW.js → VGCJ63VH-BNLwLOaC.js} +1 -1
  132. package/dist/VariantIcon.js +8 -1
  133. package/dist/VariantIcon.mjs +30 -4
  134. package/dist/WelcomeLoader.js +11 -1
  135. package/dist/WelcomeLoader.mjs +5086 -25
  136. package/dist/X5NMLKT6-uFSu0Lii.mjs +25 -0
  137. package/dist/{YV4JVR4I-1ezWeCCz.mjs → YV4JVR4I-BGfUf3Nu.mjs} +1 -1
  138. package/dist/downshift.esm-BOfUfcgd.mjs +1085 -0
  139. package/dist/downshift.esm-dvOEflhK.js +1 -0
  140. package/dist/hex-to-rgba-BIDK-3ab.mjs +11 -0
  141. package/dist/hex-to-rgba-cCYXRc5D.js +1 -0
  142. package/dist/index-23RJrN0D.js +1 -0
  143. package/dist/{index-CQyLvMJP.js → index-BHi0wohR.js} +23 -23
  144. package/dist/index-BJAZgeHL.mjs +11 -0
  145. package/dist/index-BJzGkA7x.js +1 -0
  146. package/dist/index-BLom3M2B.js +2 -0
  147. package/dist/index-BNGGwOCo.mjs +11 -0
  148. package/dist/index-BQtDgQBH.mjs +11 -0
  149. package/dist/{index-BZmKn5VO.mjs → index-BYdkhqH4.mjs} +14 -11
  150. package/dist/{index-DCOLdphy.mjs → index-CDjY0N2Z.mjs} +11 -11
  151. package/dist/index-CExLVjET.mjs +26 -0
  152. package/dist/{index-C_r0bVmL.js → index-CUtaVckz.js} +1 -1
  153. package/dist/{index-BxWjuyQw.js → index-CxDKPhvU.js} +1 -1
  154. package/dist/index-D4H6DSEx.mjs +133 -0
  155. package/dist/index-D6MJAN7T.js +1 -0
  156. package/dist/index-DEJJvyGk.mjs +66 -0
  157. package/dist/index-DTx8atxB.js +1 -0
  158. package/dist/index-Db47iJVz.js +1 -0
  159. package/dist/{index-DRa_xux4.mjs → index-RUkz9Z2V.mjs} +27 -53
  160. package/dist/index-SbQUT2mU.mjs +639 -0
  161. package/dist/index-_wqLxu7x.js +1 -0
  162. package/dist/index-gts_19_n.js +1 -0
  163. package/dist/{index-CQ1IPLlk.mjs → index-u1oHKa7X.mjs} +13 -61
  164. package/dist/{radio-group-29lMl-2M.mjs → radio-group-CGC6DTFJ.mjs} +14 -14
  165. package/dist/theme.js +18 -0
  166. package/dist/theme.mjs +1649 -0
  167. package/dist/types/components/Badge/styles.d.ts +1 -1
  168. package/dist/types/components/Button/theme.d.ts +1 -1
  169. package/dist/types/components/Checkbox/index.d.ts +1 -1
  170. package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +1 -1
  171. package/dist/types/components/Drawer/index.d.ts +2 -2
  172. package/dist/types/components/Drawer/styles.d.ts +1 -1
  173. package/dist/types/components/DropdownMenu/index.d.ts +1 -1
  174. package/dist/types/components/Field/index.d.ts +1 -1
  175. package/dist/types/components/Field/styles.d.ts +1 -1
  176. package/dist/types/components/FileDrop/FilePreview.d.ts +1 -1
  177. package/dist/types/components/FileDrop/index.d.ts +1 -1
  178. package/dist/types/components/FileUpload/index.d.ts +1 -1
  179. package/dist/types/components/Icon/styles.d.ts +1 -1
  180. package/dist/types/components/IconsFont/_hash.d.ts +1 -0
  181. package/dist/types/components/{IconFont → IconsFont}/index.d.ts +4 -4
  182. package/dist/types/components/InputText/index.d.ts +1 -1
  183. package/dist/types/components/Logo/index.d.ts +1 -1
  184. package/dist/types/components/Modal/Assets/index.d.ts +2 -2
  185. package/dist/types/components/Modal/Assets/styles.d.ts +1 -1
  186. package/dist/types/components/Modal/index.d.ts +4 -4
  187. package/dist/types/components/Popover/Popover.d.ts +1 -1
  188. package/dist/types/components/Popover/PopoverHover.d.ts +1 -1
  189. package/dist/types/components/Popover/Trigger.d.ts +1 -1
  190. package/dist/types/components/Radio/index.d.ts +1 -1
  191. package/dist/types/components/RadioTab/index.d.ts +1 -1
  192. package/dist/types/components/Search/index.d.ts +1 -1
  193. package/dist/types/components/Select/index.d.ts +2 -2
  194. package/dist/types/components/Slider/Range.d.ts +1 -1
  195. package/dist/types/components/Slider/index.d.ts +1 -1
  196. package/dist/types/components/Tabs/TabList.d.ts +1 -1
  197. package/dist/types/components/Tabs/TabPanel.d.ts +1 -1
  198. package/dist/types/components/Tag/index.d.ts +1 -1
  199. package/dist/types/components/Tag/styles.d.ts +1 -1
  200. package/dist/types/components/Tag/theme.d.ts +1 -1
  201. package/dist/types/components/Textarea/index.d.ts +1 -1
  202. package/dist/types/components/Toast/index.d.ts +1 -1
  203. package/dist/types/components/Toast/styles.d.ts +4 -4
  204. package/dist/utils.js +1 -0
  205. package/dist/utils.mjs +77 -0
  206. package/package.json +52 -67
  207. package/dist/CustomInput-CHhz-wtr.js +0 -1064
  208. package/dist/CustomInput-DsJYqH0X.mjs +0 -1272
  209. package/dist/MTZPJQMC-C9lHSyrL.mjs +0 -13
  210. package/dist/VEVQD5MH-DOp_qaPw.mjs +0 -20
  211. package/dist/Welcome-BNr4uu5n.mjs +0 -48
  212. package/dist/Welcome-Dw9OaREs.js +0 -3
  213. package/dist/X5NMLKT6-DGZEtYXj.mjs +0 -25
  214. package/dist/index-B8roHPE-.js +0 -64
  215. package/dist/index-BFQbRuqA.mjs +0 -165
  216. package/dist/index-BjGfAqCk.mjs +0 -209
  217. package/dist/index-Bn9aiaUQ.mjs +0 -193
  218. package/dist/index-CiYwvMF0.js +0 -8
  219. package/dist/index-Cjf3wLkx.mjs +0 -272
  220. package/dist/index-CmBs24Im.mjs +0 -413
  221. package/dist/index-D3Tnfi3U.mjs +0 -83
  222. package/dist/index-DG7ovxHW.js +0 -117
  223. package/dist/index-DHCyCfRv.js +0 -35
  224. package/dist/index-DSZG0Sqy.js +0 -54
  225. package/dist/index-DhF591OM.js +0 -42
  226. package/dist/index-gPtu0TOV.js +0 -1
  227. package/dist/types/components/index.d.ts +0 -60
  228. package/dist/types/index.d.ts +0 -3
  229. package/dist/usePopover-AbS2gpZq.mjs +0 -144
  230. package/dist/usePopover-CzPtX0h_.js +0 -31
  231. package/dist/types/components/{IconFont → IconsFont}/styles.d.ts +1 -1
@@ -0,0 +1,1085 @@
1
+ "use client";
2
+ import { P as r } from "./index-SbQUT2mU.mjs";
3
+ import { cloneElement as Qe, Component as et } from "react";
4
+ function ve(t) {
5
+ if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6
+ return t;
7
+ }
8
+ function fe(t, n) {
9
+ return fe = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, s) {
10
+ return o.__proto__ = s, o;
11
+ }, fe(t, n);
12
+ }
13
+ function oe(t, n) {
14
+ if (t == null) return {};
15
+ var o = {};
16
+ for (var s in t) if ({}.hasOwnProperty.call(t, s)) {
17
+ if (n.includes(s)) continue;
18
+ o[s] = t[s];
19
+ }
20
+ return o;
21
+ }
22
+ function M() {
23
+ return M = Object.assign ? Object.assign.bind() : function(t) {
24
+ for (var n = 1; n < arguments.length; n++) {
25
+ var o = arguments[n];
26
+ for (var s in o) ({}).hasOwnProperty.call(o, s) && (t[s] = o[s]);
27
+ }
28
+ return t;
29
+ }, M.apply(null, arguments);
30
+ }
31
+ function tt(t, n) {
32
+ t.prototype = Object.create(n.prototype), t.prototype.constructor = t, fe(t, n);
33
+ }
34
+ var _e = { exports: {} }, b = {}, Ee;
35
+ function nt() {
36
+ if (Ee) return b;
37
+ Ee = 1;
38
+ var t = 60103, n = 60106, o = 60107, s = 60108, l = 60114, e = 60109, d = 60110, v = 60112, C = 60113, D = 60120, w = 60115, y = 60116, P = 60121, A = 60122, H = 60117, T = 60129, R = 60131;
39
+ if (typeof Symbol == "function" && Symbol.for) {
40
+ var _ = Symbol.for;
41
+ t = _("react.element"), n = _("react.portal"), o = _("react.fragment"), s = _("react.strict_mode"), l = _("react.profiler"), e = _("react.provider"), d = _("react.context"), v = _("react.forward_ref"), C = _("react.suspense"), D = _("react.suspense_list"), w = _("react.memo"), y = _("react.lazy"), P = _("react.block"), A = _("react.server.block"), H = _("react.fundamental"), T = _("react.debug_trace_mode"), R = _("react.legacy_hidden");
42
+ }
43
+ function i(c) {
44
+ if (typeof c == "object" && c !== null) {
45
+ var x = c.$$typeof;
46
+ switch (x) {
47
+ case t:
48
+ switch (c = c.type, c) {
49
+ case o:
50
+ case l:
51
+ case s:
52
+ case C:
53
+ case D:
54
+ return c;
55
+ default:
56
+ switch (c = c && c.$$typeof, c) {
57
+ case d:
58
+ case v:
59
+ case y:
60
+ case w:
61
+ case e:
62
+ return c;
63
+ default:
64
+ return x;
65
+ }
66
+ }
67
+ case n:
68
+ return x;
69
+ }
70
+ }
71
+ }
72
+ var a = e, u = t, p = v, h = o, I = y, g = w, m = n, N = l, E = s, V = C;
73
+ return b.ContextConsumer = d, b.ContextProvider = a, b.Element = u, b.ForwardRef = p, b.Fragment = h, b.Lazy = I, b.Memo = g, b.Portal = m, b.Profiler = N, b.StrictMode = E, b.Suspense = V, b.isAsyncMode = function() {
74
+ return !1;
75
+ }, b.isConcurrentMode = function() {
76
+ return !1;
77
+ }, b.isContextConsumer = function(c) {
78
+ return i(c) === d;
79
+ }, b.isContextProvider = function(c) {
80
+ return i(c) === e;
81
+ }, b.isElement = function(c) {
82
+ return typeof c == "object" && c !== null && c.$$typeof === t;
83
+ }, b.isForwardRef = function(c) {
84
+ return i(c) === v;
85
+ }, b.isFragment = function(c) {
86
+ return i(c) === o;
87
+ }, b.isLazy = function(c) {
88
+ return i(c) === y;
89
+ }, b.isMemo = function(c) {
90
+ return i(c) === w;
91
+ }, b.isPortal = function(c) {
92
+ return i(c) === n;
93
+ }, b.isProfiler = function(c) {
94
+ return i(c) === l;
95
+ }, b.isStrictMode = function(c) {
96
+ return i(c) === s;
97
+ }, b.isSuspense = function(c) {
98
+ return i(c) === C;
99
+ }, b.isValidElementType = function(c) {
100
+ return typeof c == "string" || typeof c == "function" || c === o || c === l || c === T || c === s || c === C || c === D || c === R || typeof c == "object" && c !== null && (c.$$typeof === y || c.$$typeof === w || c.$$typeof === e || c.$$typeof === d || c.$$typeof === v || c.$$typeof === H || c.$$typeof === P || c[0] === A);
101
+ }, b.typeOf = i, b;
102
+ }
103
+ var S = {}, Ie;
104
+ function ot() {
105
+ return Ie || (Ie = 1, process.env.NODE_ENV !== "production" && function() {
106
+ var t = 60103, n = 60106, o = 60107, s = 60108, l = 60114, e = 60109, d = 60110, v = 60112, C = 60113, D = 60120, w = 60115, y = 60116, P = 60121, A = 60122, H = 60117, T = 60129, R = 60131;
107
+ if (typeof Symbol == "function" && Symbol.for) {
108
+ var _ = Symbol.for;
109
+ t = _("react.element"), n = _("react.portal"), o = _("react.fragment"), s = _("react.strict_mode"), l = _("react.profiler"), e = _("react.provider"), d = _("react.context"), v = _("react.forward_ref"), C = _("react.suspense"), D = _("react.suspense_list"), w = _("react.memo"), y = _("react.lazy"), P = _("react.block"), A = _("react.server.block"), H = _("react.fundamental"), _("react.scope"), _("react.opaque.id"), T = _("react.debug_trace_mode"), _("react.offscreen"), R = _("react.legacy_hidden");
110
+ }
111
+ var i = !1;
112
+ function a(f) {
113
+ return !!(typeof f == "string" || typeof f == "function" || f === o || f === l || f === T || f === s || f === C || f === D || f === R || i || typeof f == "object" && f !== null && (f.$$typeof === y || f.$$typeof === w || f.$$typeof === e || f.$$typeof === d || f.$$typeof === v || f.$$typeof === H || f.$$typeof === P || f[0] === A));
114
+ }
115
+ function u(f) {
116
+ if (typeof f == "object" && f !== null) {
117
+ var Q = f.$$typeof;
118
+ switch (Q) {
119
+ case t:
120
+ var W = f.type;
121
+ switch (W) {
122
+ case o:
123
+ case l:
124
+ case s:
125
+ case C:
126
+ case D:
127
+ return W;
128
+ default:
129
+ var ne = W && W.$$typeof;
130
+ switch (ne) {
131
+ case d:
132
+ case v:
133
+ case y:
134
+ case w:
135
+ case e:
136
+ return ne;
137
+ default:
138
+ return Q;
139
+ }
140
+ }
141
+ case n:
142
+ return Q;
143
+ }
144
+ }
145
+ }
146
+ var p = d, h = e, I = t, g = v, m = o, N = y, E = w, V = n, c = l, x = s, O = C, K = !1, Y = !1;
147
+ function U(f) {
148
+ return K || (K = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
149
+ }
150
+ function ee(f) {
151
+ return Y || (Y = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
152
+ }
153
+ function te(f) {
154
+ return u(f) === d;
155
+ }
156
+ function j(f) {
157
+ return u(f) === e;
158
+ }
159
+ function z(f) {
160
+ return typeof f == "object" && f !== null && f.$$typeof === t;
161
+ }
162
+ function q(f) {
163
+ return u(f) === v;
164
+ }
165
+ function F(f) {
166
+ return u(f) === o;
167
+ }
168
+ function G(f) {
169
+ return u(f) === y;
170
+ }
171
+ function X(f) {
172
+ return u(f) === w;
173
+ }
174
+ function k(f) {
175
+ return u(f) === n;
176
+ }
177
+ function $(f) {
178
+ return u(f) === l;
179
+ }
180
+ function Z(f) {
181
+ return u(f) === s;
182
+ }
183
+ function J(f) {
184
+ return u(f) === C;
185
+ }
186
+ S.ContextConsumer = p, S.ContextProvider = h, S.Element = I, S.ForwardRef = g, S.Fragment = m, S.Lazy = N, S.Memo = E, S.Portal = V, S.Profiler = c, S.StrictMode = x, S.Suspense = O, S.isAsyncMode = U, S.isConcurrentMode = ee, S.isContextConsumer = te, S.isContextProvider = j, S.isElement = z, S.isForwardRef = q, S.isFragment = F, S.isLazy = G, S.isMemo = X, S.isPortal = k, S.isProfiler = $, S.isStrictMode = Z, S.isSuspense = J, S.isValidElementType = a, S.typeOf = u;
187
+ }()), S;
188
+ }
189
+ process.env.NODE_ENV === "production" ? _e.exports = nt() : _e.exports = ot();
190
+ var ye = _e.exports;
191
+ let we = (t) => typeof t == "object" && t != null && t.nodeType === 1, Ne = (t, n) => (!n || t !== "hidden") && t !== "visible" && t !== "clip", de = (t, n) => {
192
+ if (t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth) {
193
+ let o = getComputedStyle(t, null);
194
+ return Ne(o.overflowY, n) || Ne(o.overflowX, n) || ((s) => {
195
+ let l = ((e) => {
196
+ if (!e.ownerDocument || !e.ownerDocument.defaultView) return null;
197
+ try {
198
+ return e.ownerDocument.defaultView.frameElement;
199
+ } catch {
200
+ return null;
201
+ }
202
+ })(s);
203
+ return !!l && (l.clientHeight < s.scrollHeight || l.clientWidth < s.scrollWidth);
204
+ })(t);
205
+ }
206
+ return !1;
207
+ }, se = (t, n, o, s, l, e, d, v) => e < t && d > n || e > t && d < n ? 0 : e <= t && v <= o || d >= n && v >= o ? e - t - s : d > n && v < o || e < t && v > o ? d - n + l : 0, rt = (t) => {
208
+ let n = t.parentElement;
209
+ return n ?? (t.getRootNode().host || null);
210
+ };
211
+ var it = (t, n) => {
212
+ var o, s, l, e, d, v;
213
+ if (typeof document > "u") return [];
214
+ let { scrollMode: C, block: D, inline: w, boundary: y, skipOverflowHiddenElements: P } = n, A = typeof y == "function" ? y : (x) => x !== y;
215
+ if (!we(t)) throw new TypeError("Invalid target");
216
+ let H = document.scrollingElement || document.documentElement, T = [], R = t;
217
+ for (; we(R) && A(R); ) {
218
+ if (R = rt(R), R === H) {
219
+ T.push(R);
220
+ break;
221
+ }
222
+ R != null && R === document.body && de(R) && !de(document.documentElement) || R != null && de(R, P) && T.push(R);
223
+ }
224
+ let _ = (s = (o = window.visualViewport) == null ? void 0 : o.width) != null ? s : innerWidth, i = (e = (l = window.visualViewport) == null ? void 0 : l.height) != null ? e : innerHeight, a = (d = window.scrollX) != null ? d : pageXOffset, u = (v = window.scrollY) != null ? v : pageYOffset, { height: p, width: h, top: I, right: g, bottom: m, left: N } = t.getBoundingClientRect(), E = D === "start" || D === "nearest" ? I : D === "end" ? m : I + p / 2, V = w === "center" ? N + h / 2 : w === "end" ? g : N, c = [];
225
+ for (let x = 0; x < T.length; x++) {
226
+ let O = T[x], { height: K, width: Y, top: U, right: ee, bottom: te, left: j } = O.getBoundingClientRect();
227
+ if (C === "if-needed" && I >= 0 && N >= 0 && m <= i && g <= _ && I >= U && m <= te && N >= j && g <= ee) return c;
228
+ let z = getComputedStyle(O), q = parseInt(z.borderLeftWidth, 10), F = parseInt(z.borderTopWidth, 10), G = parseInt(z.borderRightWidth, 10), X = parseInt(z.borderBottomWidth, 10), k = 0, $ = 0, Z = "offsetWidth" in O ? O.offsetWidth - O.clientWidth - q - G : 0, J = "offsetHeight" in O ? O.offsetHeight - O.clientHeight - F - X : 0, f = "offsetWidth" in O ? O.offsetWidth === 0 ? 0 : Y / O.offsetWidth : 0, Q = "offsetHeight" in O ? O.offsetHeight === 0 ? 0 : K / O.offsetHeight : 0;
229
+ if (H === O) k = D === "start" ? E : D === "end" ? E - i : D === "nearest" ? se(u, u + i, i, F, X, u + E, u + E + p, p) : E - i / 2, $ = w === "start" ? V : w === "center" ? V - _ / 2 : w === "end" ? V - _ : se(a, a + _, _, q, G, a + V, a + V + h, h), k = Math.max(0, k + u), $ = Math.max(0, $ + a);
230
+ else {
231
+ k = D === "start" ? E - U - F : D === "end" ? E - te + X + J : D === "nearest" ? se(U, te, K, F, X + J, E, E + p, p) : E - (U + K / 2) + J / 2, $ = w === "start" ? V - j - q : w === "center" ? V - (j + Y / 2) + Z / 2 : w === "end" ? V - ee + G + Z : se(j, ee, Y, q, G + Z, V, V + h, h);
232
+ let { scrollLeft: W, scrollTop: ne } = O;
233
+ k = Math.max(0, Math.min(ne + k / Q, O.scrollHeight - K / Q + J)), $ = Math.max(0, Math.min(W + $ / f, O.scrollWidth - Y / f + Z)), E += ne - k, V += W - $;
234
+ }
235
+ c.push({ el: O, top: k, left: $ });
236
+ }
237
+ return c;
238
+ }, le = function() {
239
+ return le = Object.assign || function(n) {
240
+ for (var o, s = 1, l = arguments.length; s < l; s++) {
241
+ o = arguments[s];
242
+ for (var e in o) Object.prototype.hasOwnProperty.call(o, e) && (n[e] = o[e]);
243
+ }
244
+ return n;
245
+ }, le.apply(this, arguments);
246
+ }, st = 0;
247
+ function Oe(t) {
248
+ return typeof t == "function" ? t : B;
249
+ }
250
+ function B() {
251
+ }
252
+ function Re(t, n) {
253
+ if (t) {
254
+ var o = it(t, {
255
+ boundary: n,
256
+ block: "nearest",
257
+ scrollMode: "if-needed"
258
+ });
259
+ o.forEach(function(s) {
260
+ var l = s.el, e = s.top, d = s.left;
261
+ l.scrollTop = e, l.scrollLeft = d;
262
+ });
263
+ }
264
+ }
265
+ function De(t, n, o) {
266
+ var s = t === n || n instanceof o.Node && t.contains && t.contains(n);
267
+ return s;
268
+ }
269
+ function me(t, n) {
270
+ var o;
271
+ function s() {
272
+ o && clearTimeout(o);
273
+ }
274
+ function l() {
275
+ for (var e = arguments.length, d = new Array(e), v = 0; v < e; v++)
276
+ d[v] = arguments[v];
277
+ s(), o = setTimeout(function() {
278
+ o = null, t.apply(void 0, d);
279
+ }, n);
280
+ }
281
+ return l.cancel = s, l;
282
+ }
283
+ function L() {
284
+ for (var t = arguments.length, n = new Array(t), o = 0; o < t; o++)
285
+ n[o] = arguments[o];
286
+ return function(s) {
287
+ for (var l = arguments.length, e = new Array(l > 1 ? l - 1 : 0), d = 1; d < l; d++)
288
+ e[d - 1] = arguments[d];
289
+ return n.some(function(v) {
290
+ return v && v.apply(void 0, [s].concat(e)), s.preventDownshiftDefault || s.hasOwnProperty("nativeEvent") && s.nativeEvent.preventDownshiftDefault;
291
+ });
292
+ };
293
+ }
294
+ function be() {
295
+ for (var t = arguments.length, n = new Array(t), o = 0; o < t; o++)
296
+ n[o] = arguments[o];
297
+ return function(s) {
298
+ n.forEach(function(l) {
299
+ typeof l == "function" ? l(s) : l && (l.current = s);
300
+ });
301
+ };
302
+ }
303
+ function ut() {
304
+ return String(st++);
305
+ }
306
+ function Pe(t) {
307
+ var n = t.isOpen, o = t.resultCount, s = t.previousResultCount;
308
+ return n ? o ? o !== s ? o + " result" + (o === 1 ? " is" : "s are") + " available, use up and down arrow keys to navigate. Press Enter key to select." : "" : "No results are available." : "";
309
+ }
310
+ function Se(t, n) {
311
+ return t = Array.isArray(t) ? (
312
+ /* istanbul ignore next (preact) */
313
+ t[0]
314
+ ) : t, !t && n ? n : t;
315
+ }
316
+ function Me(t) {
317
+ return typeof t.type == "string";
318
+ }
319
+ function Ae(t) {
320
+ return t.props;
321
+ }
322
+ function at(t, n) {
323
+ console.error('The property "' + n + '" is required in "' + t + '"');
324
+ }
325
+ var ct = ["highlightedIndex", "inputValue", "isOpen", "selectedItem", "type"];
326
+ function ue(t) {
327
+ t === void 0 && (t = {});
328
+ var n = {};
329
+ return ct.forEach(function(o) {
330
+ t.hasOwnProperty(o) && (n[o] = t[o]);
331
+ }), n;
332
+ }
333
+ function lt(t, n) {
334
+ return Object.keys(t).reduce(function(o, s) {
335
+ return o[s] = ge(n, s) ? n[s] : t[s], o;
336
+ }, {});
337
+ }
338
+ function ge(t, n) {
339
+ return t[n] !== void 0;
340
+ }
341
+ function Ce(t) {
342
+ var n = t.key, o = t.keyCode;
343
+ return o >= 37 && o <= 40 && n.indexOf("Arrow") !== 0 ? "Arrow" + n : n;
344
+ }
345
+ function dt(t) {
346
+ return Object.prototype.toString.call(t) === "[object Object]";
347
+ }
348
+ function pe(t, n, o, s, l) {
349
+ if (l === void 0 && (l = !0), o === 0)
350
+ return -1;
351
+ var e = o - 1;
352
+ (typeof n != "number" || n < 0 || n >= o) && (n = t > 0 ? -1 : e + 1);
353
+ var d = n + t;
354
+ d < 0 ? d = l ? e : 0 : d > e && (d = l ? 0 : e);
355
+ var v = ie(t, d, o, s, l);
356
+ return v === -1 ? n >= o ? -1 : n : v;
357
+ }
358
+ function ie(t, n, o, s, l) {
359
+ var e = s(n);
360
+ if (!e || !e.hasAttribute("disabled"))
361
+ return n;
362
+ if (t > 0) {
363
+ for (var d = n + 1; d < o; d++)
364
+ if (!s(d).hasAttribute("disabled"))
365
+ return d;
366
+ } else
367
+ for (var v = n - 1; v >= 0; v--)
368
+ if (!s(v).hasAttribute("disabled"))
369
+ return v;
370
+ return l ? t > 0 ? ie(1, 0, o, s, !1) : ie(-1, o - 1, o, s, !1) : -1;
371
+ }
372
+ function Ve(t, n, o, s) {
373
+ return s === void 0 && (s = !0), n.some(function(l) {
374
+ return l && (De(l, t, o) || s && De(l, o.document.activeElement, o));
375
+ });
376
+ }
377
+ var He = B;
378
+ process.env.NODE_ENV !== "production" && (He = function(n, o, s) {
379
+ var l = "This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";
380
+ Object.keys(n).forEach(function(e) {
381
+ o[e] !== void 0 && s[e] === void 0 ? console.error('downshift: A component has changed the controlled prop "' + e + '" to be uncontrolled. ' + l) : o[e] === void 0 && s[e] !== void 0 && console.error('downshift: A component has changed the uncontrolled prop "' + e + '" to be controlled. ' + l);
382
+ });
383
+ });
384
+ var pt = me(function(t) {
385
+ ke(t).textContent = "";
386
+ }, 500);
387
+ function Te(t, n) {
388
+ var o = ke(n);
389
+ t && (o.textContent = t, pt(n));
390
+ }
391
+ function ke(t) {
392
+ t === void 0 && (t = document);
393
+ var n = t.getElementById("a11y-status-message");
394
+ return n || (n = t.createElement("div"), n.setAttribute("id", "a11y-status-message"), n.setAttribute("role", "status"), n.setAttribute("aria-live", "polite"), n.setAttribute("aria-relevant", "additions text"), Object.assign(n.style, {
395
+ border: "0",
396
+ clip: "rect(0 0 0 0)",
397
+ height: "1px",
398
+ margin: "-1px",
399
+ overflow: "hidden",
400
+ padding: "0",
401
+ position: "absolute",
402
+ width: "1px"
403
+ }), t.body.appendChild(n), n);
404
+ }
405
+ var $e = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, Le = process.env.NODE_ENV !== "production" ? "__autocomplete_mouseup__" : 1, Ke = process.env.NODE_ENV !== "production" ? "__autocomplete_item_mouseenter__" : 2, ae = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_up__" : 3, ce = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_down__" : 4, Be = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_escape__" : 5, Ye = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_enter__" : 6, We = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_home__" : 7, Ue = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_end__" : 8, je = process.env.NODE_ENV !== "production" ? "__autocomplete_click_item__" : 9, ze = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_input__" : 10, qe = process.env.NODE_ENV !== "production" ? "__autocomplete_change_input__" : 11, Fe = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_space_button__" : 12, he = process.env.NODE_ENV !== "production" ? "__autocomplete_click_button__" : 13, Ge = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_button__" : 14, Xe = process.env.NODE_ENV !== "production" ? "__autocomplete_controlled_prop_updated_selected_item__" : 15, Ze = process.env.NODE_ENV !== "production" ? "__autocomplete_touchend__" : 16, ft = /* @__PURE__ */ Object.freeze({
406
+ __proto__: null,
407
+ unknown: $e,
408
+ mouseUp: Le,
409
+ itemMouseEnter: Ke,
410
+ keyDownArrowUp: ae,
411
+ keyDownArrowDown: ce,
412
+ keyDownEscape: Be,
413
+ keyDownEnter: Ye,
414
+ keyDownHome: We,
415
+ keyDownEnd: Ue,
416
+ clickItem: je,
417
+ blurInput: ze,
418
+ changeInput: qe,
419
+ keyDownSpaceButton: Fe,
420
+ clickButton: he,
421
+ blurButton: Ge,
422
+ controlledPropUpdatedSelectedItem: Xe,
423
+ touchEnd: Ze
424
+ }), _t = ["refKey", "ref"], gt = ["onClick", "onPress", "onKeyDown", "onKeyUp", "onBlur"], ht = ["onKeyDown", "onBlur", "onChange", "onInput", "onChangeText"], mt = ["refKey", "ref"], vt = ["onMouseMove", "onMouseDown", "onClick", "onPress", "index", "item"], Je = /* @__PURE__ */ function() {
425
+ var t = /* @__PURE__ */ function(n) {
426
+ tt(o, n);
427
+ function o(l) {
428
+ var e;
429
+ e = n.call(this, l) || this, e.id = e.props.id || "downshift-" + ut(), e.menuId = e.props.menuId || e.id + "-menu", e.labelId = e.props.labelId || e.id + "-label", e.inputId = e.props.inputId || e.id + "-input", e.getItemId = e.props.getItemId || function(i) {
430
+ return e.id + "-item-" + i;
431
+ }, e.input = null, e.items = [], e.itemCount = null, e.previousResultCount = 0, e.timeoutIds = [], e.internalSetTimeout = function(i, a) {
432
+ var u = setTimeout(function() {
433
+ e.timeoutIds = e.timeoutIds.filter(function(p) {
434
+ return p !== u;
435
+ }), i();
436
+ }, a);
437
+ e.timeoutIds.push(u);
438
+ }, e.setItemCount = function(i) {
439
+ e.itemCount = i;
440
+ }, e.unsetItemCount = function() {
441
+ e.itemCount = null;
442
+ }, e.setHighlightedIndex = function(i, a) {
443
+ i === void 0 && (i = e.props.defaultHighlightedIndex), a === void 0 && (a = {}), a = ue(a), e.internalSetState(M({
444
+ highlightedIndex: i
445
+ }, a));
446
+ }, e.clearSelection = function(i) {
447
+ e.internalSetState({
448
+ selectedItem: null,
449
+ inputValue: "",
450
+ highlightedIndex: e.props.defaultHighlightedIndex,
451
+ isOpen: e.props.defaultIsOpen
452
+ }, i);
453
+ }, e.selectItem = function(i, a, u) {
454
+ a = ue(a), e.internalSetState(M({
455
+ isOpen: e.props.defaultIsOpen,
456
+ highlightedIndex: e.props.defaultHighlightedIndex,
457
+ selectedItem: i,
458
+ inputValue: e.props.itemToString(i)
459
+ }, a), u);
460
+ }, e.selectItemAtIndex = function(i, a, u) {
461
+ var p = e.items[i];
462
+ p != null && e.selectItem(p, a, u);
463
+ }, e.selectHighlightedItem = function(i, a) {
464
+ return e.selectItemAtIndex(e.getState().highlightedIndex, i, a);
465
+ }, e.internalSetState = function(i, a) {
466
+ var u, p, h = {}, I = typeof i == "function";
467
+ return !I && i.hasOwnProperty("inputValue") && e.props.onInputValueChange(i.inputValue, M({}, e.getStateAndHelpers(), i)), e.setState(function(g) {
468
+ g = e.getState(g);
469
+ var m = I ? i(g) : i;
470
+ m = e.props.stateReducer(g, m), u = m.hasOwnProperty("selectedItem");
471
+ var N = {};
472
+ return u && m.selectedItem !== g.selectedItem && (p = m.selectedItem), m.type = m.type || $e, Object.keys(m).forEach(function(E) {
473
+ g[E] !== m[E] && (h[E] = m[E]), E !== "type" && (m[E], ge(e.props, E) || (N[E] = m[E]));
474
+ }), I && m.hasOwnProperty("inputValue") && e.props.onInputValueChange(m.inputValue, M({}, e.getStateAndHelpers(), m)), N;
475
+ }, function() {
476
+ Oe(a)();
477
+ var g = Object.keys(h).length > 1;
478
+ g && e.props.onStateChange(h, e.getStateAndHelpers()), u && e.props.onSelect(i.selectedItem, e.getStateAndHelpers()), p !== void 0 && e.props.onChange(p, e.getStateAndHelpers()), e.props.onUserAction(h, e.getStateAndHelpers());
479
+ });
480
+ }, e.rootRef = function(i) {
481
+ return e._rootNode = i;
482
+ }, e.getRootProps = function(i, a) {
483
+ var u, p = i === void 0 ? {} : i, h = p.refKey, I = h === void 0 ? "ref" : h, g = p.ref, m = oe(p, _t), N = a === void 0 ? {} : a, E = N.suppressRefError, V = E === void 0 ? !1 : E;
484
+ e.getRootProps.called = !0, e.getRootProps.refKey = I, e.getRootProps.suppressRefError = V;
485
+ var c = e.getState(), x = c.isOpen;
486
+ return M((u = {}, u[I] = be(g, e.rootRef), u.role = "combobox", u["aria-expanded"] = x, u["aria-haspopup"] = "listbox", u["aria-owns"] = x ? e.menuId : null, u["aria-labelledby"] = e.labelId, u), m);
487
+ }, e.keyDownHandlers = {
488
+ ArrowDown: function(a) {
489
+ var u = this;
490
+ if (a.preventDefault(), this.getState().isOpen) {
491
+ var p = a.shiftKey ? 5 : 1;
492
+ this.moveHighlightedIndex(p, {
493
+ type: ce
494
+ });
495
+ } else
496
+ this.internalSetState({
497
+ isOpen: !0,
498
+ type: ce
499
+ }, function() {
500
+ var h = u.getItemCount();
501
+ if (h > 0) {
502
+ var I = u.getState(), g = I.highlightedIndex, m = pe(1, g, h, function(N) {
503
+ return u.getItemNodeFromIndex(N);
504
+ });
505
+ u.setHighlightedIndex(m, {
506
+ type: ce
507
+ });
508
+ }
509
+ });
510
+ },
511
+ ArrowUp: function(a) {
512
+ var u = this;
513
+ if (a.preventDefault(), this.getState().isOpen) {
514
+ var p = a.shiftKey ? -5 : -1;
515
+ this.moveHighlightedIndex(p, {
516
+ type: ae
517
+ });
518
+ } else
519
+ this.internalSetState({
520
+ isOpen: !0,
521
+ type: ae
522
+ }, function() {
523
+ var h = u.getItemCount();
524
+ if (h > 0) {
525
+ var I = u.getState(), g = I.highlightedIndex, m = pe(-1, g, h, function(N) {
526
+ return u.getItemNodeFromIndex(N);
527
+ });
528
+ u.setHighlightedIndex(m, {
529
+ type: ae
530
+ });
531
+ }
532
+ });
533
+ },
534
+ Enter: function(a) {
535
+ if (a.which !== 229) {
536
+ var u = this.getState(), p = u.isOpen, h = u.highlightedIndex;
537
+ if (p && h != null) {
538
+ a.preventDefault();
539
+ var I = this.items[h], g = this.getItemNodeFromIndex(h);
540
+ if (I == null || g && g.hasAttribute("disabled"))
541
+ return;
542
+ this.selectHighlightedItem({
543
+ type: Ye
544
+ });
545
+ }
546
+ }
547
+ },
548
+ Escape: function(a) {
549
+ a.preventDefault(), this.reset(M({
550
+ type: Be
551
+ }, !this.state.isOpen && {
552
+ selectedItem: null,
553
+ inputValue: ""
554
+ }));
555
+ }
556
+ }, e.buttonKeyDownHandlers = M({}, e.keyDownHandlers, {
557
+ " ": function(a) {
558
+ a.preventDefault(), this.toggleMenu({
559
+ type: Fe
560
+ });
561
+ }
562
+ }), e.inputKeyDownHandlers = M({}, e.keyDownHandlers, {
563
+ Home: function(a) {
564
+ var u = this, p = this.getState(), h = p.isOpen;
565
+ if (h) {
566
+ a.preventDefault();
567
+ var I = this.getItemCount();
568
+ if (!(I <= 0 || !h)) {
569
+ var g = ie(1, 0, I, function(m) {
570
+ return u.getItemNodeFromIndex(m);
571
+ }, !1);
572
+ this.setHighlightedIndex(g, {
573
+ type: We
574
+ });
575
+ }
576
+ }
577
+ },
578
+ End: function(a) {
579
+ var u = this, p = this.getState(), h = p.isOpen;
580
+ if (h) {
581
+ a.preventDefault();
582
+ var I = this.getItemCount();
583
+ if (!(I <= 0 || !h)) {
584
+ var g = ie(-1, I - 1, I, function(m) {
585
+ return u.getItemNodeFromIndex(m);
586
+ }, !1);
587
+ this.setHighlightedIndex(g, {
588
+ type: Ue
589
+ });
590
+ }
591
+ }
592
+ }
593
+ }), e.getToggleButtonProps = function(i) {
594
+ var a = i === void 0 ? {} : i, u = a.onClick;
595
+ a.onPress;
596
+ var p = a.onKeyDown, h = a.onKeyUp, I = a.onBlur, g = oe(a, gt), m = e.getState(), N = m.isOpen, E = {
597
+ onClick: L(u, e.buttonHandleClick),
598
+ onKeyDown: L(p, e.buttonHandleKeyDown),
599
+ onKeyUp: L(h, e.buttonHandleKeyUp),
600
+ onBlur: L(I, e.buttonHandleBlur)
601
+ }, V = g.disabled ? {} : E;
602
+ return M({
603
+ type: "button",
604
+ role: "button",
605
+ "aria-label": N ? "close menu" : "open menu",
606
+ "aria-haspopup": !0,
607
+ "data-toggle": !0
608
+ }, V, g);
609
+ }, e.buttonHandleKeyUp = function(i) {
610
+ i.preventDefault();
611
+ }, e.buttonHandleKeyDown = function(i) {
612
+ var a = Ce(i);
613
+ e.buttonKeyDownHandlers[a] && e.buttonKeyDownHandlers[a].call(ve(e), i);
614
+ }, e.buttonHandleClick = function(i) {
615
+ i.preventDefault(), e.props.environment.document.activeElement === e.props.environment.document.body && i.target.focus(), process.env.NODE_ENV === "test" ? e.toggleMenu({
616
+ type: he
617
+ }) : e.internalSetTimeout(function() {
618
+ return e.toggleMenu({
619
+ type: he
620
+ });
621
+ });
622
+ }, e.buttonHandleBlur = function(i) {
623
+ var a = i.target;
624
+ e.internalSetTimeout(function() {
625
+ !e.isMouseDown && (e.props.environment.document.activeElement == null || e.props.environment.document.activeElement.id !== e.inputId) && e.props.environment.document.activeElement !== a && e.reset({
626
+ type: Ge
627
+ });
628
+ });
629
+ }, e.getLabelProps = function(i) {
630
+ return M({
631
+ htmlFor: e.inputId,
632
+ id: e.labelId
633
+ }, i);
634
+ }, e.getInputProps = function(i) {
635
+ var a = i === void 0 ? {} : i, u = a.onKeyDown, p = a.onBlur, h = a.onChange, I = a.onInput;
636
+ a.onChangeText;
637
+ var g = oe(a, ht), m, N = {};
638
+ m = "onChange";
639
+ var E = e.getState(), V = E.inputValue, c = E.isOpen, x = E.highlightedIndex;
640
+ if (!g.disabled) {
641
+ var O;
642
+ N = (O = {}, O[m] = L(h, I, e.inputHandleChange), O.onKeyDown = L(u, e.inputHandleKeyDown), O.onBlur = L(p, e.inputHandleBlur), O);
643
+ }
644
+ return M({
645
+ "aria-autocomplete": "list",
646
+ "aria-activedescendant": c && typeof x == "number" && x >= 0 ? e.getItemId(x) : null,
647
+ "aria-controls": c ? e.menuId : null,
648
+ "aria-labelledby": g && g["aria-label"] ? void 0 : e.labelId,
649
+ // https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion
650
+ // revert back since autocomplete="nope" is ignored on latest Chrome and Opera
651
+ autoComplete: "off",
652
+ value: V,
653
+ id: e.inputId
654
+ }, N, g);
655
+ }, e.inputHandleKeyDown = function(i) {
656
+ var a = Ce(i);
657
+ a && e.inputKeyDownHandlers[a] && e.inputKeyDownHandlers[a].call(ve(e), i);
658
+ }, e.inputHandleChange = function(i) {
659
+ e.internalSetState({
660
+ type: qe,
661
+ isOpen: !0,
662
+ inputValue: i.target.value,
663
+ highlightedIndex: e.props.defaultHighlightedIndex
664
+ });
665
+ }, e.inputHandleBlur = function() {
666
+ e.internalSetTimeout(function() {
667
+ var i = e.props.environment.document && !!e.props.environment.document.activeElement && !!e.props.environment.document.activeElement.dataset && e.props.environment.document.activeElement.dataset.toggle && e._rootNode && e._rootNode.contains(e.props.environment.document.activeElement);
668
+ !e.isMouseDown && !i && e.reset({
669
+ type: ze
670
+ });
671
+ });
672
+ }, e.menuRef = function(i) {
673
+ e._menuNode = i;
674
+ }, e.getMenuProps = function(i, a) {
675
+ var u, p = i === void 0 ? {} : i, h = p.refKey, I = h === void 0 ? "ref" : h, g = p.ref, m = oe(p, mt), N = a === void 0 ? {} : a, E = N.suppressRefError, V = E === void 0 ? !1 : E;
676
+ return e.getMenuProps.called = !0, e.getMenuProps.refKey = I, e.getMenuProps.suppressRefError = V, M((u = {}, u[I] = be(g, e.menuRef), u.role = "listbox", u["aria-labelledby"] = m && m["aria-label"] ? null : e.labelId, u.id = e.menuId, u), m);
677
+ }, e.getItemProps = function(i) {
678
+ var a, u = i === void 0 ? {} : i, p = u.onMouseMove, h = u.onMouseDown, I = u.onClick;
679
+ u.onPress;
680
+ var g = u.index, m = u.item, N = m === void 0 ? process.env.NODE_ENV === "production" ? (
681
+ /* istanbul ignore next */
682
+ void 0
683
+ ) : at("getItemProps", "item") : m, E = oe(u, vt);
684
+ g === void 0 ? (e.items.push(N), g = e.items.indexOf(N)) : e.items[g] = N;
685
+ var V = "onClick", c = I, x = (a = {
686
+ // onMouseMove is used over onMouseEnter here. onMouseMove
687
+ // is only triggered on actual mouse movement while onMouseEnter
688
+ // can fire on DOM changes, interrupting keyboard navigation
689
+ onMouseMove: L(p, function() {
690
+ g !== e.getState().highlightedIndex && (e.setHighlightedIndex(g, {
691
+ type: Ke
692
+ }), e.avoidScrolling = !0, e.internalSetTimeout(function() {
693
+ return e.avoidScrolling = !1;
694
+ }, 250));
695
+ }),
696
+ onMouseDown: L(h, function(K) {
697
+ K.preventDefault();
698
+ })
699
+ }, a[V] = L(c, function() {
700
+ e.selectItemAtIndex(g, {
701
+ type: je
702
+ });
703
+ }), a), O = E.disabled ? {
704
+ onMouseDown: x.onMouseDown
705
+ } : x;
706
+ return M({
707
+ id: e.getItemId(g),
708
+ role: "option",
709
+ "aria-selected": e.getState().highlightedIndex === g
710
+ }, O, E);
711
+ }, e.clearItems = function() {
712
+ e.items = [];
713
+ }, e.reset = function(i, a) {
714
+ i === void 0 && (i = {}), i = ue(i), e.internalSetState(function(u) {
715
+ var p = u.selectedItem;
716
+ return M({
717
+ isOpen: e.props.defaultIsOpen,
718
+ highlightedIndex: e.props.defaultHighlightedIndex,
719
+ inputValue: e.props.itemToString(p)
720
+ }, i);
721
+ }, a);
722
+ }, e.toggleMenu = function(i, a) {
723
+ i === void 0 && (i = {}), i = ue(i), e.internalSetState(function(u) {
724
+ var p = u.isOpen;
725
+ return M({
726
+ isOpen: !p
727
+ }, p && {
728
+ highlightedIndex: e.props.defaultHighlightedIndex
729
+ }, i);
730
+ }, function() {
731
+ var u = e.getState(), p = u.isOpen, h = u.highlightedIndex;
732
+ p && e.getItemCount() > 0 && typeof h == "number" && e.setHighlightedIndex(h, i), Oe(a)();
733
+ });
734
+ }, e.openMenu = function(i) {
735
+ e.internalSetState({
736
+ isOpen: !0
737
+ }, i);
738
+ }, e.closeMenu = function(i) {
739
+ e.internalSetState({
740
+ isOpen: !1
741
+ }, i);
742
+ }, e.updateStatus = me(function() {
743
+ var i = e.getState(), a = e.items[i.highlightedIndex], u = e.getItemCount(), p = e.props.getA11yStatusMessage(M({
744
+ itemToString: e.props.itemToString,
745
+ previousResultCount: e.previousResultCount,
746
+ resultCount: u,
747
+ highlightedItem: a
748
+ }, i));
749
+ e.previousResultCount = u, Te(p, e.props.environment.document);
750
+ }, 200);
751
+ var d = e.props, v = d.defaultHighlightedIndex, C = d.initialHighlightedIndex, D = C === void 0 ? v : C, w = d.defaultIsOpen, y = d.initialIsOpen, P = y === void 0 ? w : y, A = d.initialInputValue, H = A === void 0 ? "" : A, T = d.initialSelectedItem, R = T === void 0 ? null : T, _ = e.getState({
752
+ highlightedIndex: D,
753
+ isOpen: P,
754
+ inputValue: H,
755
+ selectedItem: R
756
+ });
757
+ return _.selectedItem != null && e.props.initialInputValue === void 0 && (_.inputValue = e.props.itemToString(_.selectedItem)), e.state = _, e;
758
+ }
759
+ var s = o.prototype;
760
+ return s.internalClearTimeouts = function() {
761
+ this.timeoutIds.forEach(function(e) {
762
+ clearTimeout(e);
763
+ }), this.timeoutIds = [];
764
+ }, s.getState = function(e) {
765
+ return e === void 0 && (e = this.state), lt(e, this.props);
766
+ }, s.getItemCount = function() {
767
+ var e = this.items.length;
768
+ return this.itemCount != null ? e = this.itemCount : this.props.itemCount !== void 0 && (e = this.props.itemCount), e;
769
+ }, s.getItemNodeFromIndex = function(e) {
770
+ return this.props.environment.document.getElementById(this.getItemId(e));
771
+ }, s.scrollHighlightedItemIntoView = function() {
772
+ {
773
+ var e = this.getItemNodeFromIndex(this.getState().highlightedIndex);
774
+ this.props.scrollIntoView(e, this._menuNode);
775
+ }
776
+ }, s.moveHighlightedIndex = function(e, d) {
777
+ var v = this, C = this.getItemCount(), D = this.getState(), w = D.highlightedIndex;
778
+ if (C > 0) {
779
+ var y = pe(e, w, C, function(P) {
780
+ return v.getItemNodeFromIndex(P);
781
+ });
782
+ this.setHighlightedIndex(y, d);
783
+ }
784
+ }, s.getStateAndHelpers = function() {
785
+ var e = this.getState(), d = e.highlightedIndex, v = e.inputValue, C = e.selectedItem, D = e.isOpen, w = this.props.itemToString, y = this.id, P = this.getRootProps, A = this.getToggleButtonProps, H = this.getLabelProps, T = this.getMenuProps, R = this.getInputProps, _ = this.getItemProps, i = this.openMenu, a = this.closeMenu, u = this.toggleMenu, p = this.selectItem, h = this.selectItemAtIndex, I = this.selectHighlightedItem, g = this.setHighlightedIndex, m = this.clearSelection, N = this.clearItems, E = this.reset, V = this.setItemCount, c = this.unsetItemCount, x = this.internalSetState;
786
+ return {
787
+ // prop getters
788
+ getRootProps: P,
789
+ getToggleButtonProps: A,
790
+ getLabelProps: H,
791
+ getMenuProps: T,
792
+ getInputProps: R,
793
+ getItemProps: _,
794
+ // actions
795
+ reset: E,
796
+ openMenu: i,
797
+ closeMenu: a,
798
+ toggleMenu: u,
799
+ selectItem: p,
800
+ selectItemAtIndex: h,
801
+ selectHighlightedItem: I,
802
+ setHighlightedIndex: g,
803
+ clearSelection: m,
804
+ clearItems: N,
805
+ setItemCount: V,
806
+ unsetItemCount: c,
807
+ setState: x,
808
+ // props
809
+ itemToString: w,
810
+ // derived
811
+ id: y,
812
+ // state
813
+ highlightedIndex: d,
814
+ inputValue: v,
815
+ isOpen: D,
816
+ selectedItem: C
817
+ };
818
+ }, s.componentDidMount = function() {
819
+ var e = this;
820
+ process.env.NODE_ENV !== "production" && this.getMenuProps.called && !this.getMenuProps.suppressRefError && xe(this._menuNode, this.getMenuProps);
821
+ {
822
+ var d = function() {
823
+ e.isMouseDown = !0;
824
+ }, v = function(A) {
825
+ e.isMouseDown = !1;
826
+ var H = Ve(A.target, [e._rootNode, e._menuNode], e.props.environment);
827
+ !H && e.getState().isOpen && e.reset({
828
+ type: Le
829
+ }, function() {
830
+ return e.props.onOuterClick(e.getStateAndHelpers());
831
+ });
832
+ }, C = function() {
833
+ e.isTouchMove = !1;
834
+ }, D = function() {
835
+ e.isTouchMove = !0;
836
+ }, w = function(A) {
837
+ var H = Ve(A.target, [e._rootNode, e._menuNode], e.props.environment, !1);
838
+ !e.isTouchMove && !H && e.getState().isOpen && e.reset({
839
+ type: Ze
840
+ }, function() {
841
+ return e.props.onOuterClick(e.getStateAndHelpers());
842
+ });
843
+ }, y = this.props.environment;
844
+ y.addEventListener("mousedown", d), y.addEventListener("mouseup", v), y.addEventListener("touchstart", C), y.addEventListener("touchmove", D), y.addEventListener("touchend", w), this.cleanup = function() {
845
+ e.internalClearTimeouts(), e.updateStatus.cancel(), y.removeEventListener("mousedown", d), y.removeEventListener("mouseup", v), y.removeEventListener("touchstart", C), y.removeEventListener("touchmove", D), y.removeEventListener("touchend", w);
846
+ };
847
+ }
848
+ }, s.shouldScroll = function(e, d) {
849
+ var v = this.props.highlightedIndex === void 0 ? this.getState() : this.props, C = v.highlightedIndex, D = d.highlightedIndex === void 0 ? e : d, w = D.highlightedIndex, y = C && this.getState().isOpen && !e.isOpen, P = C !== w;
850
+ return y || P;
851
+ }, s.componentDidUpdate = function(e, d) {
852
+ process.env.NODE_ENV !== "production" && (He(this.state, e, this.props), this.getMenuProps.called && !this.getMenuProps.suppressRefError && xe(this._menuNode, this.getMenuProps)), ge(this.props, "selectedItem") && this.props.selectedItemChanged(e.selectedItem, this.props.selectedItem) && this.internalSetState({
853
+ type: Xe,
854
+ inputValue: this.props.itemToString(this.props.selectedItem)
855
+ }), !this.avoidScrolling && this.shouldScroll(d, e) && this.scrollHighlightedItemIntoView(), this.updateStatus();
856
+ }, s.componentWillUnmount = function() {
857
+ this.cleanup();
858
+ }, s.render = function() {
859
+ var e = Se(this.props.children, B);
860
+ this.clearItems(), this.getRootProps.called = !1, this.getRootProps.refKey = void 0, this.getRootProps.suppressRefError = void 0, this.getMenuProps.called = !1, this.getMenuProps.refKey = void 0, this.getMenuProps.suppressRefError = void 0, this.getLabelProps.called = !1, this.getInputProps.called = !1;
861
+ var d = Se(e(this.getStateAndHelpers()));
862
+ if (!d)
863
+ return null;
864
+ if (this.getRootProps.called || this.props.suppressRefError)
865
+ return process.env.NODE_ENV !== "production" && !this.getRootProps.suppressRefError && !this.props.suppressRefError && Et(d, this.getRootProps), d;
866
+ if (Me(d))
867
+ return /* @__PURE__ */ Qe(d, this.getRootProps(Ae(d)));
868
+ if (process.env.NODE_ENV !== "production")
869
+ throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function");
870
+ }, o;
871
+ }(et);
872
+ return t.defaultProps = {
873
+ defaultHighlightedIndex: null,
874
+ defaultIsOpen: !1,
875
+ getA11yStatusMessage: Pe,
876
+ itemToString: function(o) {
877
+ return o == null ? "" : (process.env.NODE_ENV !== "production" && dt(o) && !o.hasOwnProperty("toString") && console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.", "The object that was passed:", o), String(o));
878
+ },
879
+ onStateChange: B,
880
+ onInputValueChange: B,
881
+ onUserAction: B,
882
+ onChange: B,
883
+ onSelect: B,
884
+ onOuterClick: B,
885
+ selectedItemChanged: function(o, s) {
886
+ return o !== s;
887
+ },
888
+ environment: (
889
+ /* istanbul ignore next (ssr) */
890
+ typeof window > "u" ? {} : window
891
+ ),
892
+ stateReducer: function(o, s) {
893
+ return s;
894
+ },
895
+ suppressRefError: !1,
896
+ scrollIntoView: Re
897
+ }, t.stateChangeTypes = ft, t;
898
+ }();
899
+ process.env.NODE_ENV !== "production" && (Je.propTypes = {
900
+ children: r.func,
901
+ defaultHighlightedIndex: r.number,
902
+ defaultIsOpen: r.bool,
903
+ initialHighlightedIndex: r.number,
904
+ initialSelectedItem: r.any,
905
+ initialInputValue: r.string,
906
+ initialIsOpen: r.bool,
907
+ getA11yStatusMessage: r.func,
908
+ itemToString: r.func,
909
+ onChange: r.func,
910
+ onSelect: r.func,
911
+ onStateChange: r.func,
912
+ onInputValueChange: r.func,
913
+ onUserAction: r.func,
914
+ onOuterClick: r.func,
915
+ selectedItemChanged: r.func,
916
+ stateReducer: r.func,
917
+ itemCount: r.number,
918
+ id: r.string,
919
+ environment: r.shape({
920
+ addEventListener: r.func,
921
+ removeEventListener: r.func,
922
+ document: r.shape({
923
+ getElementById: r.func,
924
+ activeElement: r.any,
925
+ body: r.any
926
+ })
927
+ }),
928
+ suppressRefError: r.bool,
929
+ scrollIntoView: r.func,
930
+ // things we keep in state for uncontrolled components
931
+ // but can accept as props for controlled components
932
+ /* eslint-disable react/no-unused-prop-types */
933
+ selectedItem: r.any,
934
+ isOpen: r.bool,
935
+ inputValue: r.string,
936
+ highlightedIndex: r.number,
937
+ labelId: r.string,
938
+ inputId: r.string,
939
+ menuId: r.string,
940
+ getItemId: r.func
941
+ /* eslint-enable react/no-unused-prop-types */
942
+ });
943
+ var St = Je;
944
+ function xe(t, n) {
945
+ var o = n.refKey;
946
+ t || console.error('downshift: The ref prop "' + o + '" from getMenuProps was not applied correctly on your menu element.');
947
+ }
948
+ function Et(t, n) {
949
+ var o = n.refKey, s = o !== "ref", l = !Me(t);
950
+ l && !s && !ye.isForwardRef(t) ? console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps") : !l && s && console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "' + o + '"'), !ye.isForwardRef(t) && !Ae(t)[o] && console.error('downshift: You must apply the ref prop "' + o + '" from getRootProps onto your root element.');
951
+ }
952
+ function It(t, n) {
953
+ return n.changes;
954
+ }
955
+ function yt(t) {
956
+ var n = t.selectedItem, o = t.itemToString;
957
+ return n ? o(n) + " has been selected." : "";
958
+ }
959
+ me(function(t, n) {
960
+ Te(t(), n);
961
+ }, 200);
962
+ function wt(t) {
963
+ return t ? String(t) : "";
964
+ }
965
+ var re = {
966
+ itemToString: wt,
967
+ stateReducer: It,
968
+ getA11ySelectionMessage: yt,
969
+ scrollIntoView: Re,
970
+ environment: (
971
+ /* istanbul ignore next (ssr) */
972
+ typeof window > "u" ? {} : window
973
+ )
974
+ };
975
+ process.env.NODE_ENV;
976
+ process.env.NODE_ENV;
977
+ r.array.isRequired, r.func, r.func, r.func, r.number, r.number, r.number, r.bool, r.bool, r.bool, r.any, r.any, r.any, r.string, r.string, r.string, r.func, r.string, r.func, r.func, r.func, r.func, r.func, r.shape({
978
+ addEventListener: r.func,
979
+ removeEventListener: r.func,
980
+ document: r.shape({
981
+ getElementById: r.func,
982
+ activeElement: r.any,
983
+ body: r.any
984
+ })
985
+ });
986
+ function Nt(t) {
987
+ var n = t.isOpen, o = t.resultCount, s = t.previousResultCount;
988
+ return n ? o ? o !== s ? "".concat(o, " result").concat(o === 1 ? " is" : "s are", " available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.") : "" : "No results are available." : "";
989
+ }
990
+ le(le({}, re), { getA11yStatusMessage: Nt });
991
+ process.env.NODE_ENV;
992
+ process.env.NODE_ENV;
993
+ process.env.NODE_ENV;
994
+ process.env.NODE_ENV;
995
+ process.env.NODE_ENV;
996
+ process.env.NODE_ENV;
997
+ process.env.NODE_ENV;
998
+ process.env.NODE_ENV;
999
+ process.env.NODE_ENV;
1000
+ process.env.NODE_ENV;
1001
+ process.env.NODE_ENV;
1002
+ process.env.NODE_ENV;
1003
+ process.env.NODE_ENV;
1004
+ process.env.NODE_ENV;
1005
+ process.env.NODE_ENV;
1006
+ process.env.NODE_ENV;
1007
+ process.env.NODE_ENV;
1008
+ process.env.NODE_ENV;
1009
+ process.env.NODE_ENV;
1010
+ process.env.NODE_ENV;
1011
+ process.env.NODE_ENV;
1012
+ process.env.NODE_ENV;
1013
+ process.env.NODE_ENV;
1014
+ process.env.NODE_ENV;
1015
+ process.env.NODE_ENV;
1016
+ process.env.NODE_ENV;
1017
+ process.env.NODE_ENV;
1018
+ process.env.NODE_ENV;
1019
+ process.env.NODE_ENV;
1020
+ process.env.NODE_ENV;
1021
+ process.env.NODE_ENV;
1022
+ process.env.NODE_ENV;
1023
+ process.env.NODE_ENV;
1024
+ process.env.NODE_ENV;
1025
+ process.env.NODE_ENV;
1026
+ process.env.NODE_ENV;
1027
+ process.env.NODE_ENV;
1028
+ process.env.NODE_ENV;
1029
+ process.env.NODE_ENV;
1030
+ process.env.NODE_ENV;
1031
+ process.env.NODE_ENV;
1032
+ process.env.NODE_ENV;
1033
+ process.env.NODE_ENV;
1034
+ process.env.NODE_ENV;
1035
+ process.env.NODE_ENV;
1036
+ process.env.NODE_ENV;
1037
+ r.array.isRequired, r.func, r.func, r.func, r.func, r.number, r.number, r.number, r.bool, r.bool, r.bool, r.any, r.any, r.any, r.string, r.string, r.string, r.string, r.string, r.string, r.func, r.string, r.string, r.func, r.func, r.func, r.func, r.func, r.func, r.shape({
1038
+ addEventListener: r.func,
1039
+ removeEventListener: r.func,
1040
+ document: r.shape({
1041
+ getElementById: r.func,
1042
+ activeElement: r.any,
1043
+ body: r.any
1044
+ })
1045
+ });
1046
+ process.env.NODE_ENV;
1047
+ M({}, re, {
1048
+ selectedItemChanged: function(n, o) {
1049
+ return n !== o;
1050
+ },
1051
+ getA11yStatusMessage: Pe
1052
+ });
1053
+ function Ot(t) {
1054
+ var n = t.removedSelectedItem, o = t.itemToString;
1055
+ return o(n) + " has been removed.";
1056
+ }
1057
+ r.array, r.array, r.array, r.func, r.func, r.func, r.number, r.number, r.number, r.func, r.func, r.string, r.string, r.shape({
1058
+ addEventListener: r.func,
1059
+ removeEventListener: r.func,
1060
+ document: r.shape({
1061
+ getElementById: r.func,
1062
+ activeElement: r.any,
1063
+ body: r.any
1064
+ })
1065
+ });
1066
+ re.itemToString, re.stateReducer, re.environment;
1067
+ process.env.NODE_ENV;
1068
+ process.env.NODE_ENV;
1069
+ process.env.NODE_ENV;
1070
+ process.env.NODE_ENV;
1071
+ process.env.NODE_ENV;
1072
+ process.env.NODE_ENV;
1073
+ process.env.NODE_ENV;
1074
+ process.env.NODE_ENV;
1075
+ process.env.NODE_ENV;
1076
+ process.env.NODE_ENV;
1077
+ process.env.NODE_ENV;
1078
+ process.env.NODE_ENV;
1079
+ process.env.NODE_ENV;
1080
+ process.env.NODE_ENV;
1081
+ export {
1082
+ St as D,
1083
+ fe as _,
1084
+ ve as a
1085
+ };