@oncehub/ui-react 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/components/button/button.d.ts +16 -0
  2. package/dist/components/button/index.d.ts +1 -0
  3. package/dist/components/checkbox/checkbox.d.ts +11 -0
  4. package/dist/components/checkbox/index.d.ts +1 -0
  5. package/dist/components/common.types.d.ts +6 -0
  6. package/dist/components/index.d.ts +9 -0
  7. package/dist/components/multi-line-input/index.d.ts +1 -0
  8. package/dist/components/multi-line-input/multi-line-input.d.ts +7 -0
  9. package/dist/components/multi-select/index.d.ts +1 -0
  10. package/dist/components/multi-select/multi-select.d.ts +14 -0
  11. package/dist/components/multi-select/multi-select.type.d.ts +6 -0
  12. package/dist/components/quick-multi-select/index.d.ts +1 -0
  13. package/dist/components/quick-multi-select/quick-multi-select.d.ts +14 -0
  14. package/dist/components/quick-multi-select/quick-multi-select.type.d.ts +6 -0
  15. package/dist/components/quick-select/index.d.ts +1 -0
  16. package/dist/components/quick-select/quick-select.d.ts +13 -0
  17. package/dist/components/quick-select/quick-select.type.d.ts +6 -0
  18. package/dist/components/scrollbar/index.d.ts +1 -0
  19. package/dist/components/scrollbar/scrollbar.d.ts +6 -0
  20. package/dist/components/select/auto-complete.d.ts +13 -0
  21. package/dist/components/select/index.d.ts +4 -0
  22. package/dist/components/select/options.d.ts +15 -0
  23. package/dist/components/select/select-options.d.ts +15 -0
  24. package/dist/components/select/select.d.ts +10 -0
  25. package/dist/components/select/select.types.d.ts +10 -0
  26. package/dist/components/single-line-input/index.d.ts +1 -0
  27. package/dist/components/single-line-input/single-line-input.d.ts +6 -0
  28. package/dist/index.d.ts +1 -0
  29. package/dist/storybook-utils.d.ts +4 -0
  30. package/dist/style.css +1 -0
  31. package/dist/ui-react.es.js +2175 -0
  32. package/dist/ui-react.umd.js +5 -0
  33. package/package.json +5 -5
@@ -0,0 +1,2175 @@
1
+ import { jsx as U, Fragment as St, jsxs as at } from "react/jsx-runtime";
2
+ import * as Ue from "react";
3
+ import J, { forwardRef as _e, useState as xe, useEffect as oe, useLayoutEffect as xr, useRef as A, Fragment as je, isValidElement as Or, cloneElement as Sr, createElement as kr, createContext as ze, useContext as Ke, useMemo as G, useReducer as nn, createRef as rn, useCallback as on } from "react";
4
+ const Er = "_button_6yspz_1", Tr = "_primary_6yspz_5", _r = "_secondary_6yspz_12", Ir = "_small_6yspz_19", Cr = "_rounded_6yspz_22", Pr = "_medium_6yspz_26", Rr = "_large_6yspz_33", Ar = "_squared_6yspz_40", nt = {
5
+ button: Er,
6
+ primary: Tr,
7
+ secondary: _r,
8
+ small: Ir,
9
+ rounded: Cr,
10
+ medium: Pr,
11
+ large: Rr,
12
+ squared: Ar
13
+ }, kt = (e) => {
14
+ if (!e)
15
+ throw new Error("Please provide a hex color code");
16
+ if (!/^#([A-Fa-f0-9]{3}){1,2}$/.test(e))
17
+ throw new Error("Please provide a valid hex code");
18
+ e = e.length === 4 ? e.replace(/^#(.)(.)(.)$/, "#$1$1$2$2$3$3") : e;
19
+ const r = e.substring(1), [i, a, o] = [0, 2, 4].map(
20
+ (f) => parseInt(r.substring(f, f + 2), 16)
21
+ );
22
+ return (0.2126 * i + 0.7152 * a + 0.0722 * o) / 255 < 0.7 ? "dark" : "light";
23
+ }, Lr = _e(
24
+ ({
25
+ themeColor: e = "",
26
+ variant: t = "primary",
27
+ size: n = "small",
28
+ shape: r = "rounded",
29
+ children: i,
30
+ className: a = "",
31
+ style: o = {},
32
+ ...c
33
+ }, f) => {
34
+ let b = {};
35
+ if (e) {
36
+ const m = kt(e);
37
+ if (m === "dark" || m === "light") {
38
+ const l = t === "primary" ? e : "#ffffff", u = t === "primary" ? m === "dark" ? "#ffffff" : "#333333" : m === "light" ? "#333333" : e, s = e === "#ffffff" ? "#333333" : e;
39
+ b = {
40
+ backgroundColor: l,
41
+ color: u,
42
+ outlineColor: s,
43
+ borderColor: s
44
+ };
45
+ }
46
+ }
47
+ const h = [nt.button, nt[t], nt[n], nt[r], a].filter(Boolean).join(" ");
48
+ return /* @__PURE__ */ U(St, { children: /* @__PURE__ */ U("button", { ref: f, style: { ...b, ...o }, className: `${h}`, ...c, children: i }) });
49
+ }
50
+ );
51
+ Lr.displayName = "Button";
52
+ const Nr = "_checkboxLayout_yowbu_1", Mr = "_checkboxLabel_yowbu_4", Fr = "_checkboxInnerContainer_yowbu_10", Dr = "_checkboxInput_yowbu_13", Wr = "_checkboxFrame_yowbu_16", Vr = "_checkboxCheckMark_yowbu_19", $r = "_checkboxCheckMarkPath_yowbu_22", Br = "_checkboxUncheckedChecked_yowbu_1", Ur = "_checkboxDisabled_yowbu_43", jr = "_medium_yowbu_49", qr = "_large_yowbu_55", ye = {
53
+ checkboxLayout: Nr,
54
+ checkboxLabel: Mr,
55
+ checkboxInnerContainer: Fr,
56
+ checkboxInput: Dr,
57
+ checkboxFrame: Wr,
58
+ checkboxCheckMark: Vr,
59
+ checkboxCheckMarkPath: $r,
60
+ checkboxUncheckedChecked: Br,
61
+ checkboxDisabled: Ur,
62
+ medium: jr,
63
+ large: qr
64
+ }, Hr = () => `checkbox_${Math.random().toString(36).substring(2, 11)}`, zr = _e(
65
+ ({
66
+ children: e,
67
+ themeColor: t = "",
68
+ checkboxSize: n = "medium",
69
+ id: r = Hr(),
70
+ checked: i = !1,
71
+ disabled: a = !1,
72
+ className: o = "",
73
+ onChange: c,
74
+ style: f = {},
75
+ tabIndex: b,
76
+ ...h
77
+ }, m) => {
78
+ const [l, u] = xe(i);
79
+ let s = {}, d, p = a ? "#9b9b9b" : "#ffffff";
80
+ if (t) {
81
+ const y = kt(t);
82
+ if (y === "dark" || y === "light") {
83
+ switch (y) {
84
+ case "dark":
85
+ p = a ? l ? "#9b9b9b" : "#f9f9f9" : "#ffffff";
86
+ break;
87
+ case "light":
88
+ p = a ? l ? "#9b9b9b" : "#f9f9f9" : l ? "#333333" : "#ffffff";
89
+ break;
90
+ default:
91
+ p = "#9b9b9b";
92
+ break;
93
+ }
94
+ const V = a ? "#f9f9f9" : l ? t : "#ffffff";
95
+ d = a ? "#e4e4e4" : t == "#ffffff" || t == "#fff" ? "#333333" : t, l && (s = {
96
+ backgroundColor: V,
97
+ borderColor: d,
98
+ outlineColor: d
99
+ });
100
+ }
101
+ }
102
+ const v = a ? ye.checkboxDisabled : "", C = [ye.checkboxLayout, ye[n], v, o].filter(Boolean).join(" "), x = (y) => {
103
+ y.key != "Enter" && (y.preventDefault(), c == null || c(y.target.checked), u(!l));
104
+ };
105
+ return /* @__PURE__ */ U(St, { children: /* @__PURE__ */ U("div", { className: C, "data-testid": "checkbox", children: /* @__PURE__ */ at("label", { className: ye.checkboxLabel, htmlFor: r, onClick: (y) => x(y), children: [
106
+ /* @__PURE__ */ at(
107
+ "div",
108
+ {
109
+ className: ye.checkboxInnerContainer,
110
+ tabIndex: b || a ? -1 : 0,
111
+ onKeyPress: (y) => x(y),
112
+ "data-testid": "checkbox-inner-container",
113
+ children: [
114
+ /* @__PURE__ */ U(
115
+ "input",
116
+ {
117
+ className: ye.checkboxInput,
118
+ onChange: (y) => x(y),
119
+ type: "checkbox",
120
+ checked: l,
121
+ disabled: a,
122
+ id: r,
123
+ ref: m,
124
+ ...h,
125
+ tabIndex: -1,
126
+ "data-testid": "checkbox-input"
127
+ }
128
+ ),
129
+ /* @__PURE__ */ U(
130
+ "div",
131
+ {
132
+ className: ye.checkboxFrame,
133
+ style: { ...s, ...f },
134
+ "data-testid": "checkbox-frame",
135
+ children: /* @__PURE__ */ U(
136
+ "svg",
137
+ {
138
+ version: "1.1",
139
+ focusable: "false",
140
+ className: ye.checkboxCheckMark,
141
+ viewBox: "0 0 24 24",
142
+ "data-testid": "check-mark-svg",
143
+ children: /* @__PURE__ */ U(
144
+ "path",
145
+ {
146
+ className: ye.checkboxCheckMarkPath,
147
+ fill: "none",
148
+ stroke: p,
149
+ d: "M4.1,12.7 9,17.6 20.3,6.3"
150
+ }
151
+ )
152
+ }
153
+ )
154
+ }
155
+ )
156
+ ]
157
+ }
158
+ ),
159
+ e && /* @__PURE__ */ U("span", { "data-testid": "checkbox-label", children: e })
160
+ ] }) }) });
161
+ }
162
+ );
163
+ zr.displayName = "Checkbox";
164
+ const Kr = "_textInputWrapper_stjey_1", Gr = "_textInput_stjey_1", Ut = {
165
+ textInputWrapper: Kr,
166
+ textInput: Gr
167
+ };
168
+ var Yr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, w = {}, wt = { exports: {} };
169
+ (function(e, t) {
170
+ (function(n, r) {
171
+ var i = "1.0.36", a = "", o = "?", c = "function", f = "undefined", b = "object", h = "string", m = "major", l = "model", u = "name", s = "type", d = "vendor", p = "version", v = "architecture", C = "console", x = "mobile", y = "tablet", V = "smarttv", D = "wearable", j = "embedded", L = 350, S = "Amazon", H = "Apple", pe = "ASUS", ke = "BlackBerry", I = "Browser", le = "Chrome", X = "Edge", se = "Firefox", q = "Google", re = "Huawei", Z = "LG", we = "Microsoft", Ne = "Motorola", te = "Opera", Pe = "Samsung", g = "Sharp", O = "Sony", P = "Xiaomi", ie = "Zebra", Ee = "Facebook", Ft = "Chromium OS", Dt = "Mac OS", gr = function(R, W) {
172
+ var _ = {};
173
+ for (var $ in R)
174
+ W[$] && W[$].length % 2 === 0 ? _[$] = W[$].concat(R[$]) : _[$] = R[$];
175
+ return _;
176
+ }, et = function(R) {
177
+ for (var W = {}, _ = 0; _ < R.length; _++)
178
+ W[R[_].toUpperCase()] = R[_];
179
+ return W;
180
+ }, Wt = function(R, W) {
181
+ return typeof R === h ? $e(W).indexOf($e(R)) !== -1 : !1;
182
+ }, $e = function(R) {
183
+ return R.toLowerCase();
184
+ }, wr = function(R) {
185
+ return typeof R === h ? R.replace(/[^\d\.]/g, a).split(".")[0] : r;
186
+ }, pt = function(R, W) {
187
+ if (typeof R === h)
188
+ return R = R.replace(/^\s\s*/, a), typeof W === f ? R : R.substring(0, L);
189
+ }, Be = function(R, W) {
190
+ for (var _ = 0, $, Te, be, N, T, ve; _ < W.length && !T; ) {
191
+ var bt = W[_], Bt = W[_ + 1];
192
+ for ($ = Te = 0; $ < bt.length && !T && bt[$]; )
193
+ if (T = bt[$++].exec(R), T)
194
+ for (be = 0; be < Bt.length; be++)
195
+ ve = T[++Te], N = Bt[be], typeof N === b && N.length > 0 ? N.length === 2 ? typeof N[1] == c ? this[N[0]] = N[1].call(this, ve) : this[N[0]] = N[1] : N.length === 3 ? typeof N[1] === c && !(N[1].exec && N[1].test) ? this[N[0]] = ve ? N[1].call(this, ve, N[2]) : r : this[N[0]] = ve ? ve.replace(N[1], N[2]) : r : N.length === 4 && (this[N[0]] = ve ? N[3].call(this, ve.replace(N[1], N[2])) : r) : this[N] = ve || r;
196
+ _ += 2;
197
+ }
198
+ }, ft = function(R, W) {
199
+ for (var _ in W)
200
+ if (typeof W[_] === b && W[_].length > 0) {
201
+ for (var $ = 0; $ < W[_].length; $++)
202
+ if (Wt(W[_][$], R))
203
+ return _ === o ? r : _;
204
+ } else if (Wt(W[_], R))
205
+ return _ === o ? r : _;
206
+ return R;
207
+ }, yr = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, Vt = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, $t = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [p, [u, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [p, [u, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [u, p], [/opios[\/ ]+([\w\.]+)/i], [p, [u, te + " Mini"]], [/\bopr\/([\w\.]+)/i], [p, [u, te]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [u, p], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [p, [u, "UC" + I]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [p, [u, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [p, [u, "WeChat"]], [/konqueror\/([\w\.]+)/i], [p, [u, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [p, [u, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [p, [u, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[u, /(.+)/, "$1 Secure " + I], p], [/\bfocus\/([\w\.]+)/i], [p, [u, se + " Focus"]], [/\bopt\/([\w\.]+)/i], [p, [u, te + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [p, [u, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [p, [u, "Dolphin"]], [/coast\/([\w\.]+)/i], [p, [u, te + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [p, [u, "MIUI " + I]], [/fxios\/([-\w\.]+)/i], [p, [u, se]], [/\bqihu|(qi?ho?o?|360)browser/i], [[u, "360 " + I]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[u, /(.+)/, "$1 " + I], p], [/(comodo_dragon)\/([\w\.]+)/i], [[u, /_/g, " "], p], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [u, p], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [u], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[u, Ee], p], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [u, p], [/\bgsa\/([\w\.]+) .*safari\//i], [p, [u, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [p, [u, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [p, [u, le + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[u, le + " WebView"], p], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [p, [u, "Android " + I]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [u, p], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [p, [u, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [p, u], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [u, [p, ft, yr]], [/(webkit|khtml)\/([\w\.]+)/i], [u, p], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[u, "Netscape"], p], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [p, [u, se + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [u, p], [/(cobalt)\/([\w\.]+)/i], [u, [p, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[v, "amd64"]], [/(ia32(?=;))/i], [[v, $e]], [/((?:i[346]|x)86)[;\)]/i], [[v, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[v, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[v, "armhf"]], [/windows (ce|mobile); ppc;/i], [[v, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[v, /ower/, a, $e]], [/(sun4\w)[;\)]/i], [[v, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[v, $e]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [l, [d, Pe], [s, y]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [l, [d, Pe], [s, x]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [l, [d, H], [s, x]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [l, [d, H], [s, y]], [/(macintosh);/i], [l, [d, H]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [l, [d, g], [s, x]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [l, [d, re], [s, y]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [l, [d, re], [s, x]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[l, /_/g, " "], [d, P], [s, x]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[l, /_/g, " "], [d, P], [s, y]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [l, [d, "OPPO"], [s, x]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [l, [d, "Vivo"], [s, x]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [l, [d, "Realme"], [s, x]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [l, [d, Ne], [s, x]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [l, [d, Ne], [s, y]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [l, [d, Z], [s, y]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [l, [d, Z], [s, x]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [l, [d, "Lenovo"], [s, y]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[l, /_/g, " "], [d, "Nokia"], [s, x]], [/(pixel c)\b/i], [l, [d, q], [s, y]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [l, [d, q], [s, x]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [l, [d, O], [s, x]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[l, "Xperia Tablet"], [d, O], [s, y]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [l, [d, "OnePlus"], [s, x]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [l, [d, S], [s, y]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[l, /(.+)/g, "Fire Phone $1"], [d, S], [s, x]], [/(playbook);[-\w\),; ]+(rim)/i], [l, d, [s, y]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [l, [d, ke], [s, x]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [l, [d, pe], [s, y]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [l, [d, pe], [s, x]], [/(nexus 9)/i], [l, [d, "HTC"], [s, y]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [d, [l, /_/g, " "], [s, x]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [l, [d, "Acer"], [s, y]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [l, [d, "Meizu"], [s, x]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [d, l, [s, x]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [d, l, [s, y]], [/(surface duo)/i], [l, [d, we], [s, y]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [l, [d, "Fairphone"], [s, x]], [/(u304aa)/i], [l, [d, "AT&T"], [s, x]], [/\bsie-(\w*)/i], [l, [d, "Siemens"], [s, x]], [/\b(rct\w+) b/i], [l, [d, "RCA"], [s, y]], [/\b(venue[\d ]{2,7}) b/i], [l, [d, "Dell"], [s, y]], [/\b(q(?:mv|ta)\w+) b/i], [l, [d, "Verizon"], [s, y]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [l, [d, "Barnes & Noble"], [s, y]], [/\b(tm\d{3}\w+) b/i], [l, [d, "NuVision"], [s, y]], [/\b(k88) b/i], [l, [d, "ZTE"], [s, y]], [/\b(nx\d{3}j) b/i], [l, [d, "ZTE"], [s, x]], [/\b(gen\d{3}) b.+49h/i], [l, [d, "Swiss"], [s, x]], [/\b(zur\d{3}) b/i], [l, [d, "Swiss"], [s, y]], [/\b((zeki)?tb.*\b) b/i], [l, [d, "Zeki"], [s, y]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[d, "Dragon Touch"], l, [s, y]], [/\b(ns-?\w{0,9}) b/i], [l, [d, "Insignia"], [s, y]], [/\b((nxa|next)-?\w{0,9}) b/i], [l, [d, "NextBook"], [s, y]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[d, "Voice"], l, [s, x]], [/\b(lvtel\-)?(v1[12]) b/i], [[d, "LvTel"], l, [s, x]], [/\b(ph-1) /i], [l, [d, "Essential"], [s, x]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [l, [d, "Envizen"], [s, y]], [/\b(trio[-\w\. ]+) b/i], [l, [d, "MachSpeed"], [s, y]], [/\btu_(1491) b/i], [l, [d, "Rotor"], [s, y]], [/(shield[\w ]+) b/i], [l, [d, "Nvidia"], [s, y]], [/(sprint) (\w+)/i], [d, l, [s, x]], [/(kin\.[onetw]{3})/i], [[l, /\./g, " "], [d, we], [s, x]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [l, [d, ie], [s, y]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [l, [d, ie], [s, x]], [/smart-tv.+(samsung)/i], [d, [s, V]], [/hbbtv.+maple;(\d+)/i], [[l, /^/, "SmartTV"], [d, Pe], [s, V]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[d, Z], [s, V]], [/(apple) ?tv/i], [d, [l, H + " TV"], [s, V]], [/crkey/i], [[l, le + "cast"], [d, q], [s, V]], [/droid.+aft(\w+)( bui|\))/i], [l, [d, S], [s, V]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [l, [d, g], [s, V]], [/(bravia[\w ]+)( bui|\))/i], [l, [d, O], [s, V]], [/(mitv-\w{5}) bui/i], [l, [d, P], [s, V]], [/Hbbtv.*(technisat) (.*);/i], [d, l, [s, V]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[d, pt], [l, pt], [s, V]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[s, V]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [d, l, [s, C]], [/droid.+; (shield) bui/i], [l, [d, "Nvidia"], [s, C]], [/(playstation [345portablevi]+)/i], [l, [d, O], [s, C]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [l, [d, we], [s, C]], [/((pebble))app/i], [d, l, [s, D]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [l, [d, H], [s, D]], [/droid.+; (glass) \d/i], [l, [d, q], [s, D]], [/droid.+; (wt63?0{2,3})\)/i], [l, [d, ie], [s, D]], [/(quest( 2| pro)?)/i], [l, [d, Ee], [s, D]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [d, [s, j]], [/(aeobc)\b/i], [l, [d, S], [s, j]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [l, [s, x]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [l, [s, y]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[s, y]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[s, x]], [/(android[-\w\. ]{0,9});.+buil/i], [l, [d, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [p, [u, X + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [p, [u, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [u, p], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [p, u]], os: [[/microsoft (windows) (vista|xp)/i], [u, p], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [u, [p, ft, Vt]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[u, "Windows"], [p, ft, Vt]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[p, /_/g, "."], [u, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[u, Dt], [p, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [p, u], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [u, p], [/\(bb(10);/i], [p, [u, ke]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [p, [u, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [p, [u, se + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [p, [u, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [p, [u, "watchOS"]], [/crkey\/([\d\.]+)/i], [p, [u, le + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[u, Ft], p], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [u, p], [/(sunos) ?([\w\.\d]*)/i], [[u, "Solaris"], p], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [u, p]] }, fe = function(R, W) {
208
+ if (typeof R === b && (W = R, R = r), !(this instanceof fe))
209
+ return new fe(R, W).getResult();
210
+ var _ = typeof n !== f && n.navigator ? n.navigator : r, $ = R || (_ && _.userAgent ? _.userAgent : a), Te = _ && _.userAgentData ? _.userAgentData : r, be = W ? gr($t, W) : $t, N = _ && _.userAgent == $;
211
+ return this.getBrowser = function() {
212
+ var T = {};
213
+ return T[u] = r, T[p] = r, Be.call(T, $, be.browser), T[m] = wr(T[p]), N && _ && _.brave && typeof _.brave.isBrave == c && (T[u] = "Brave"), T;
214
+ }, this.getCPU = function() {
215
+ var T = {};
216
+ return T[v] = r, Be.call(T, $, be.cpu), T;
217
+ }, this.getDevice = function() {
218
+ var T = {};
219
+ return T[d] = r, T[l] = r, T[s] = r, Be.call(T, $, be.device), N && !T[s] && Te && Te.mobile && (T[s] = x), N && T[l] == "Macintosh" && _ && typeof _.standalone !== f && _.maxTouchPoints && _.maxTouchPoints > 2 && (T[l] = "iPad", T[s] = y), T;
220
+ }, this.getEngine = function() {
221
+ var T = {};
222
+ return T[u] = r, T[p] = r, Be.call(T, $, be.engine), T;
223
+ }, this.getOS = function() {
224
+ var T = {};
225
+ return T[u] = r, T[p] = r, Be.call(T, $, be.os), N && !T[u] && Te && Te.platform != "Unknown" && (T[u] = Te.platform.replace(/chrome os/i, Ft).replace(/macos/i, Dt)), T;
226
+ }, this.getResult = function() {
227
+ return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
228
+ }, this.getUA = function() {
229
+ return $;
230
+ }, this.setUA = function(T) {
231
+ return $ = typeof T === h && T.length > L ? pt(T, L) : T, this;
232
+ }, this.setUA($), this;
233
+ };
234
+ fe.VERSION = i, fe.BROWSER = et([u, p, m]), fe.CPU = et([v]), fe.DEVICE = et([l, d, s, C, x, V, y, D, j]), fe.ENGINE = fe.OS = et([u, p]), e.exports && (t = e.exports = fe), t.UAParser = fe;
235
+ var Me = typeof n !== f && (n.jQuery || n.Zepto);
236
+ if (Me && !Me.ua) {
237
+ var tt = new fe();
238
+ Me.ua = tt.getResult(), Me.ua.get = function() {
239
+ return tt.getUA();
240
+ }, Me.ua.set = function(R) {
241
+ tt.setUA(R);
242
+ var W = tt.getResult();
243
+ for (var _ in W)
244
+ Me.ua[_] = W[_];
245
+ };
246
+ }
247
+ })(typeof window == "object" ? window : Yr);
248
+ })(wt, wt.exports);
249
+ var Qr = wt.exports;
250
+ Object.defineProperty(w, "__esModule", { value: !0 });
251
+ function Xr(e) {
252
+ return e && typeof e == "object" && "default" in e ? e.default : e;
253
+ }
254
+ var Y = J, B = Xr(Y), an = Qr, Ie = new an(), Q = Ie.getBrowser(), Zr = Ie.getCPU(), ae = Ie.getDevice(), Et = Ie.getEngine(), Ce = Ie.getOS(), Ge = Ie.getUA(), ln = function(t) {
255
+ return Ie.setUA(t);
256
+ }, Ye = function(t) {
257
+ if (!t) {
258
+ console.error("No userAgent string was provided");
259
+ return;
260
+ }
261
+ var n = new an(t);
262
+ return {
263
+ UA: n,
264
+ browser: n.getBrowser(),
265
+ cpu: n.getCPU(),
266
+ device: n.getDevice(),
267
+ engine: n.getEngine(),
268
+ os: n.getOS(),
269
+ ua: n.getUA(),
270
+ setUserAgent: function(i) {
271
+ return n.setUA(i);
272
+ }
273
+ };
274
+ }, sn = /* @__PURE__ */ Object.freeze({
275
+ ClientUAInstance: Ie,
276
+ browser: Q,
277
+ cpu: Zr,
278
+ device: ae,
279
+ engine: Et,
280
+ os: Ce,
281
+ ua: Ge,
282
+ setUa: ln,
283
+ parseUserAgent: Ye
284
+ });
285
+ function jt(e, t) {
286
+ var n = Object.keys(e);
287
+ if (Object.getOwnPropertySymbols) {
288
+ var r = Object.getOwnPropertySymbols(e);
289
+ t && (r = r.filter(function(i) {
290
+ return Object.getOwnPropertyDescriptor(e, i).enumerable;
291
+ })), n.push.apply(n, r);
292
+ }
293
+ return n;
294
+ }
295
+ function Jr(e) {
296
+ for (var t = 1; t < arguments.length; t++) {
297
+ var n = arguments[t] != null ? arguments[t] : {};
298
+ t % 2 ? jt(Object(n), !0).forEach(function(r) {
299
+ ni(e, r, n[r]);
300
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : jt(Object(n)).forEach(function(r) {
301
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
302
+ });
303
+ }
304
+ return e;
305
+ }
306
+ function qe(e) {
307
+ "@babel/helpers - typeof";
308
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? qe = function(t) {
309
+ return typeof t;
310
+ } : qe = function(t) {
311
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
312
+ }, qe(e);
313
+ }
314
+ function ei(e, t) {
315
+ if (!(e instanceof t))
316
+ throw new TypeError("Cannot call a class as a function");
317
+ }
318
+ function qt(e, t) {
319
+ for (var n = 0; n < t.length; n++) {
320
+ var r = t[n];
321
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
322
+ }
323
+ }
324
+ function ti(e, t, n) {
325
+ return t && qt(e.prototype, t), n && qt(e, n), e;
326
+ }
327
+ function ni(e, t, n) {
328
+ return t in e ? Object.defineProperty(e, t, {
329
+ value: n,
330
+ enumerable: !0,
331
+ configurable: !0,
332
+ writable: !0
333
+ }) : e[t] = n, e;
334
+ }
335
+ function yt() {
336
+ return yt = Object.assign || function(e) {
337
+ for (var t = 1; t < arguments.length; t++) {
338
+ var n = arguments[t];
339
+ for (var r in n)
340
+ Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
341
+ }
342
+ return e;
343
+ }, yt.apply(this, arguments);
344
+ }
345
+ function ri(e, t) {
346
+ if (typeof t != "function" && t !== null)
347
+ throw new TypeError("Super expression must either be null or a function");
348
+ e.prototype = Object.create(t && t.prototype, {
349
+ constructor: {
350
+ value: e,
351
+ writable: !0,
352
+ configurable: !0
353
+ }
354
+ }), t && Ot(e, t);
355
+ }
356
+ function xt(e) {
357
+ return xt = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
358
+ return n.__proto__ || Object.getPrototypeOf(n);
359
+ }, xt(e);
360
+ }
361
+ function Ot(e, t) {
362
+ return Ot = Object.setPrototypeOf || function(r, i) {
363
+ return r.__proto__ = i, r;
364
+ }, Ot(e, t);
365
+ }
366
+ function ii(e, t) {
367
+ if (e == null)
368
+ return {};
369
+ var n = {}, r = Object.keys(e), i, a;
370
+ for (a = 0; a < r.length; a++)
371
+ i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
372
+ return n;
373
+ }
374
+ function ue(e, t) {
375
+ if (e == null)
376
+ return {};
377
+ var n = ii(e, t), r, i;
378
+ if (Object.getOwnPropertySymbols) {
379
+ var a = Object.getOwnPropertySymbols(e);
380
+ for (i = 0; i < a.length; i++)
381
+ r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
382
+ }
383
+ return n;
384
+ }
385
+ function ot(e) {
386
+ if (e === void 0)
387
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
388
+ return e;
389
+ }
390
+ function oi(e, t) {
391
+ if (t && (typeof t == "object" || typeof t == "function"))
392
+ return t;
393
+ if (t !== void 0)
394
+ throw new TypeError("Derived constructors may only return object or undefined");
395
+ return ot(e);
396
+ }
397
+ function ai(e, t) {
398
+ return li(e) || si(e, t) || ui(e, t) || ci();
399
+ }
400
+ function li(e) {
401
+ if (Array.isArray(e))
402
+ return e;
403
+ }
404
+ function si(e, t) {
405
+ var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
406
+ if (n != null) {
407
+ var r = [], i = !0, a = !1, o, c;
408
+ try {
409
+ for (n = n.call(e); !(i = (o = n.next()).done) && (r.push(o.value), !(t && r.length === t)); i = !0)
410
+ ;
411
+ } catch (f) {
412
+ a = !0, c = f;
413
+ } finally {
414
+ try {
415
+ !i && n.return != null && n.return();
416
+ } finally {
417
+ if (a)
418
+ throw c;
419
+ }
420
+ }
421
+ return r;
422
+ }
423
+ }
424
+ function ui(e, t) {
425
+ if (e) {
426
+ if (typeof e == "string")
427
+ return Ht(e, t);
428
+ var n = Object.prototype.toString.call(e).slice(8, -1);
429
+ if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set")
430
+ return Array.from(e);
431
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
432
+ return Ht(e, t);
433
+ }
434
+ }
435
+ function Ht(e, t) {
436
+ (t == null || t > e.length) && (t = e.length);
437
+ for (var n = 0, r = new Array(t); n < t; n++)
438
+ r[n] = e[n];
439
+ return r;
440
+ }
441
+ function ci() {
442
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
443
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
444
+ }
445
+ var K = {
446
+ Mobile: "mobile",
447
+ Tablet: "tablet",
448
+ SmartTv: "smarttv",
449
+ Console: "console",
450
+ Wearable: "wearable",
451
+ Embedded: "embedded",
452
+ Browser: void 0
453
+ }, ne = {
454
+ Chrome: "Chrome",
455
+ Firefox: "Firefox",
456
+ Opera: "Opera",
457
+ Yandex: "Yandex",
458
+ Safari: "Safari",
459
+ InternetExplorer: "Internet Explorer",
460
+ Edge: "Edge",
461
+ Chromium: "Chromium",
462
+ Ie: "IE",
463
+ MobileSafari: "Mobile Safari",
464
+ EdgeChromium: "Edge Chromium",
465
+ MIUI: "MIUI Browser",
466
+ SamsungBrowser: "Samsung Browser"
467
+ }, De = {
468
+ IOS: "iOS",
469
+ Android: "Android",
470
+ WindowsPhone: "Windows Phone",
471
+ Windows: "Windows",
472
+ MAC_OS: "Mac OS"
473
+ }, di = {
474
+ isMobile: !1,
475
+ isTablet: !1,
476
+ isBrowser: !1,
477
+ isSmartTV: !1,
478
+ isConsole: !1,
479
+ isWearable: !1
480
+ }, pi = function(t) {
481
+ switch (t) {
482
+ case K.Mobile:
483
+ return {
484
+ isMobile: !0
485
+ };
486
+ case K.Tablet:
487
+ return {
488
+ isTablet: !0
489
+ };
490
+ case K.SmartTv:
491
+ return {
492
+ isSmartTV: !0
493
+ };
494
+ case K.Console:
495
+ return {
496
+ isConsole: !0
497
+ };
498
+ case K.Wearable:
499
+ return {
500
+ isWearable: !0
501
+ };
502
+ case K.Browser:
503
+ return {
504
+ isBrowser: !0
505
+ };
506
+ case K.Embedded:
507
+ return {
508
+ isEmbedded: !0
509
+ };
510
+ default:
511
+ return di;
512
+ }
513
+ }, fi = function(t) {
514
+ return ln(t);
515
+ }, E = function(t) {
516
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "none";
517
+ return t || n;
518
+ }, Tt = function() {
519
+ return typeof window < "u" && (window.navigator || navigator) ? window.navigator || navigator : !1;
520
+ }, _t = function(t) {
521
+ var n = Tt();
522
+ return n && n.platform && (n.platform.indexOf(t) !== -1 || n.platform === "MacIntel" && n.maxTouchPoints > 1 && !window.MSStream);
523
+ }, bi = function(t, n, r, i, a) {
524
+ return {
525
+ isBrowser: t,
526
+ browserMajorVersion: E(n.major),
527
+ browserFullVersion: E(n.version),
528
+ browserName: E(n.name),
529
+ engineName: E(r.name),
530
+ engineVersion: E(r.version),
531
+ osName: E(i.name),
532
+ osVersion: E(i.version),
533
+ userAgent: E(a)
534
+ };
535
+ }, zt = function(t, n, r, i) {
536
+ return Jr({}, t, {
537
+ vendor: E(n.vendor),
538
+ model: E(n.model),
539
+ os: E(r.name),
540
+ osVersion: E(r.version),
541
+ ua: E(i)
542
+ });
543
+ }, vi = function(t, n, r, i) {
544
+ return {
545
+ isSmartTV: t,
546
+ engineName: E(n.name),
547
+ engineVersion: E(n.version),
548
+ osName: E(r.name),
549
+ osVersion: E(r.version),
550
+ userAgent: E(i)
551
+ };
552
+ }, mi = function(t, n, r, i) {
553
+ return {
554
+ isConsole: t,
555
+ engineName: E(n.name),
556
+ engineVersion: E(n.version),
557
+ osName: E(r.name),
558
+ osVersion: E(r.version),
559
+ userAgent: E(i)
560
+ };
561
+ }, hi = function(t, n, r, i) {
562
+ return {
563
+ isWearable: t,
564
+ engineName: E(n.name),
565
+ engineVersion: E(n.version),
566
+ osName: E(r.name),
567
+ osVersion: E(r.version),
568
+ userAgent: E(i)
569
+ };
570
+ }, gi = function(t, n, r, i, a) {
571
+ return {
572
+ isEmbedded: t,
573
+ vendor: E(n.vendor),
574
+ model: E(n.model),
575
+ engineName: E(r.name),
576
+ engineVersion: E(r.version),
577
+ osName: E(i.name),
578
+ osVersion: E(i.version),
579
+ userAgent: E(a)
580
+ };
581
+ };
582
+ function wi(e) {
583
+ var t = e ? Ye(e) : sn, n = t.device, r = t.browser, i = t.engine, a = t.os, o = t.ua, c = pi(n.type), f = c.isBrowser, b = c.isMobile, h = c.isTablet, m = c.isSmartTV, l = c.isConsole, u = c.isWearable, s = c.isEmbedded;
584
+ if (f)
585
+ return bi(f, r, i, a, o);
586
+ if (m)
587
+ return vi(m, i, a, o);
588
+ if (l)
589
+ return mi(l, i, a, o);
590
+ if (b || h)
591
+ return zt(c, n, a, o);
592
+ if (u)
593
+ return hi(u, i, a, o);
594
+ if (s)
595
+ return gi(s, n, i, a, o);
596
+ }
597
+ var un = function(t) {
598
+ var n = t.type;
599
+ return n === K.Mobile;
600
+ }, cn = function(t) {
601
+ var n = t.type;
602
+ return n === K.Tablet;
603
+ }, dn = function(t) {
604
+ var n = t.type;
605
+ return n === K.Mobile || n === K.Tablet;
606
+ }, pn = function(t) {
607
+ var n = t.type;
608
+ return n === K.SmartTv;
609
+ }, lt = function(t) {
610
+ var n = t.type;
611
+ return n === K.Browser;
612
+ }, fn = function(t) {
613
+ var n = t.type;
614
+ return n === K.Wearable;
615
+ }, bn = function(t) {
616
+ var n = t.type;
617
+ return n === K.Console;
618
+ }, vn = function(t) {
619
+ var n = t.type;
620
+ return n === K.Embedded;
621
+ }, mn = function(t) {
622
+ var n = t.vendor;
623
+ return E(n);
624
+ }, hn = function(t) {
625
+ var n = t.model;
626
+ return E(n);
627
+ }, gn = function(t) {
628
+ var n = t.type;
629
+ return E(n, "browser");
630
+ }, wn = function(t) {
631
+ var n = t.name;
632
+ return n === De.Android;
633
+ }, yn = function(t) {
634
+ var n = t.name;
635
+ return n === De.Windows;
636
+ }, xn = function(t) {
637
+ var n = t.name;
638
+ return n === De.MAC_OS;
639
+ }, On = function(t) {
640
+ var n = t.name;
641
+ return n === De.WindowsPhone;
642
+ }, Sn = function(t) {
643
+ var n = t.name;
644
+ return n === De.IOS;
645
+ }, kn = function(t) {
646
+ var n = t.version;
647
+ return E(n);
648
+ }, En = function(t) {
649
+ var n = t.name;
650
+ return E(n);
651
+ }, Tn = function(t) {
652
+ var n = t.name;
653
+ return n === ne.Chrome;
654
+ }, _n = function(t) {
655
+ var n = t.name;
656
+ return n === ne.Firefox;
657
+ }, In = function(t) {
658
+ var n = t.name;
659
+ return n === ne.Chromium;
660
+ }, st = function(t) {
661
+ var n = t.name;
662
+ return n === ne.Edge;
663
+ }, Cn = function(t) {
664
+ var n = t.name;
665
+ return n === ne.Yandex;
666
+ }, Pn = function(t) {
667
+ var n = t.name;
668
+ return n === ne.Safari || n === ne.MobileSafari;
669
+ }, Rn = function(t) {
670
+ var n = t.name;
671
+ return n === ne.MobileSafari;
672
+ }, An = function(t) {
673
+ var n = t.name;
674
+ return n === ne.Opera;
675
+ }, Ln = function(t) {
676
+ var n = t.name;
677
+ return n === ne.InternetExplorer || n === ne.Ie;
678
+ }, Nn = function(t) {
679
+ var n = t.name;
680
+ return n === ne.MIUI;
681
+ }, Mn = function(t) {
682
+ var n = t.name;
683
+ return n === ne.SamsungBrowser;
684
+ }, Fn = function(t) {
685
+ var n = t.version;
686
+ return E(n);
687
+ }, Dn = function(t) {
688
+ var n = t.major;
689
+ return E(n);
690
+ }, Wn = function(t) {
691
+ var n = t.name;
692
+ return E(n);
693
+ }, Vn = function(t) {
694
+ var n = t.name;
695
+ return E(n);
696
+ }, $n = function(t) {
697
+ var n = t.version;
698
+ return E(n);
699
+ }, Bn = function() {
700
+ var t = Tt(), n = t && t.userAgent && t.userAgent.toLowerCase();
701
+ return typeof n == "string" ? /electron/.test(n) : !1;
702
+ }, Fe = function(t) {
703
+ return typeof t == "string" && t.indexOf("Edg/") !== -1;
704
+ }, Un = function() {
705
+ var t = Tt();
706
+ return t && (/iPad|iPhone|iPod/.test(t.platform) || t.platform === "MacIntel" && t.maxTouchPoints > 1) && !window.MSStream;
707
+ }, he = function() {
708
+ return _t("iPad");
709
+ }, jn = function() {
710
+ return _t("iPhone");
711
+ }, qn = function() {
712
+ return _t("iPod");
713
+ }, Hn = function(t) {
714
+ return E(t);
715
+ };
716
+ function zn(e) {
717
+ var t = e || sn, n = t.device, r = t.browser, i = t.os, a = t.engine, o = t.ua;
718
+ return {
719
+ isSmartTV: pn(n),
720
+ isConsole: bn(n),
721
+ isWearable: fn(n),
722
+ isEmbedded: vn(n),
723
+ isMobileSafari: Rn(r) || he(),
724
+ isChromium: In(r),
725
+ isMobile: dn(n) || he(),
726
+ isMobileOnly: un(n),
727
+ isTablet: cn(n) || he(),
728
+ isBrowser: lt(n),
729
+ isDesktop: lt(n),
730
+ isAndroid: wn(i),
731
+ isWinPhone: On(i),
732
+ isIOS: Sn(i) || he(),
733
+ isChrome: Tn(r),
734
+ isFirefox: _n(r),
735
+ isSafari: Pn(r),
736
+ isOpera: An(r),
737
+ isIE: Ln(r),
738
+ osVersion: kn(i),
739
+ osName: En(i),
740
+ fullBrowserVersion: Fn(r),
741
+ browserVersion: Dn(r),
742
+ browserName: Wn(r),
743
+ mobileVendor: mn(n),
744
+ mobileModel: hn(n),
745
+ engineName: Vn(a),
746
+ engineVersion: $n(a),
747
+ getUA: Hn(o),
748
+ isEdge: st(r) || Fe(o),
749
+ isYandex: Cn(r),
750
+ deviceType: gn(n),
751
+ isIOS13: Un(),
752
+ isIPad13: he(),
753
+ isIPhone13: jn(),
754
+ isIPod13: qn(),
755
+ isElectron: Bn(),
756
+ isEdgeChromium: Fe(o),
757
+ isLegacyEdge: st(r) && !Fe(o),
758
+ isWindows: yn(i),
759
+ isMacOs: xn(i),
760
+ isMIUI: Nn(r),
761
+ isSamsungBrowser: Mn(r)
762
+ };
763
+ }
764
+ var Kn = pn(ae), Gn = bn(ae), Yn = fn(ae), yi = vn(ae), xi = Rn(Q) || he(), Oi = In(Q), ct = dn(ae) || he(), Qn = un(ae), Xn = cn(ae) || he(), Zn = lt(ae), Si = lt(ae), Jn = wn(Ce), er = On(Ce), tr = Sn(Ce) || he(), ki = Tn(Q), Ei = _n(Q), Ti = Pn(Q), _i = An(Q), nr = Ln(Q), Ii = kn(Ce), Ci = En(Ce), Pi = Fn(Q), Ri = Dn(Q), Ai = Wn(Q), Li = mn(ae), Ni = hn(ae), Mi = Vn(Et), Fi = $n(Et), Di = Hn(Ge), Wi = st(Q) || Fe(Ge), Vi = Cn(Q), $i = gn(ae), Bi = Un(), Ui = he(), ji = jn(), qi = qn(), Hi = Bn(), zi = Fe(Ge), Ki = st(Q) && !Fe(Ge), Gi = yn(Ce), Yi = xn(Ce), Qi = Nn(Q), Xi = Mn(Q), Zi = function(t) {
765
+ if (!t || typeof t != "string") {
766
+ console.error("No valid user agent string was provided");
767
+ return;
768
+ }
769
+ var n = Ye(t), r = n.device, i = n.browser, a = n.os, o = n.engine, c = n.ua;
770
+ return zn({
771
+ device: r,
772
+ browser: i,
773
+ os: a,
774
+ engine: o,
775
+ ua: c
776
+ });
777
+ }, Ji = function(t) {
778
+ var n = t.renderWithFragment, r = t.children, i = ue(t, ["renderWithFragment", "children"]);
779
+ return Jn ? n ? B.createElement(Y.Fragment, null, r) : B.createElement("div", i, r) : null;
780
+ }, eo = function(t) {
781
+ var n = t.renderWithFragment, r = t.children, i = ue(t, ["renderWithFragment", "children"]);
782
+ return Zn ? n ? B.createElement(Y.Fragment, null, r) : B.createElement("div", i, r) : null;
783
+ }, to = function(t) {
784
+ var n = t.renderWithFragment, r = t.children, i = ue(t, ["renderWithFragment", "children"]);
785
+ return nr ? n ? B.createElement(Y.Fragment, null, r) : B.createElement("div", i, r) : null;
786
+ }, no = function(t) {
787
+ var n = t.renderWithFragment, r = t.children, i = ue(t, ["renderWithFragment", "children"]);
788
+ return tr ? n ? B.createElement(Y.Fragment, null, r) : B.createElement("div", i, r) : null;
789
+ }, ro = function(t) {
790
+ var n = t.renderWithFragment, r = t.children, i = ue(t, ["renderWithFragment", "children"]);
791
+ return ct ? n ? B.createElement(Y.Fragment, null, r) : B.createElement("div", i, r) : null;
792
+ }, io = function(t) {
793
+ var n = t.renderWithFragment, r = t.children, i = ue(t, ["renderWithFragment", "children"]);
794
+ return Xn ? n ? B.createElement(Y.Fragment, null, r) : B.createElement("div", i, r) : null;
795
+ }, oo = function(t) {
796
+ var n = t.renderWithFragment, r = t.children, i = ue(t, ["renderWithFragment", "children"]);
797
+ return er ? n ? B.createElement(Y.Fragment, null, r) : B.createElement("div", i, r) : null;
798
+ }, ao = function(t) {
799
+ var n = t.renderWithFragment, r = t.children;
800
+ t.viewClassName, t.style;
801
+ var i = ue(t, ["renderWithFragment", "children", "viewClassName", "style"]);
802
+ return Qn ? n ? B.createElement(Y.Fragment, null, r) : B.createElement("div", i, r) : null;
803
+ }, lo = function(t) {
804
+ var n = t.renderWithFragment, r = t.children, i = ue(t, ["renderWithFragment", "children"]);
805
+ return Kn ? n ? B.createElement(Y.Fragment, null, r) : B.createElement("div", i, r) : null;
806
+ }, so = function(t) {
807
+ var n = t.renderWithFragment, r = t.children, i = ue(t, ["renderWithFragment", "children"]);
808
+ return Gn ? n ? B.createElement(Y.Fragment, null, r) : B.createElement("div", i, r) : null;
809
+ }, uo = function(t) {
810
+ var n = t.renderWithFragment, r = t.children, i = ue(t, ["renderWithFragment", "children"]);
811
+ return Yn ? n ? B.createElement(Y.Fragment, null, r) : B.createElement("div", i, r) : null;
812
+ }, co = function(t) {
813
+ var n = t.renderWithFragment, r = t.children;
814
+ t.viewClassName, t.style;
815
+ var i = t.condition, a = ue(t, ["renderWithFragment", "children", "viewClassName", "style", "condition"]);
816
+ return i ? n ? B.createElement(Y.Fragment, null, r) : B.createElement("div", a, r) : null;
817
+ };
818
+ function po(e) {
819
+ return /* @__PURE__ */ function(t) {
820
+ ri(n, t);
821
+ function n(r) {
822
+ var i;
823
+ return ei(this, n), i = oi(this, xt(n).call(this, r)), i.isEventListenerAdded = !1, i.handleOrientationChange = i.handleOrientationChange.bind(ot(i)), i.onOrientationChange = i.onOrientationChange.bind(ot(i)), i.onPageLoad = i.onPageLoad.bind(ot(i)), i.state = {
824
+ isLandscape: !1,
825
+ isPortrait: !1
826
+ }, i;
827
+ }
828
+ return ti(n, [{
829
+ key: "handleOrientationChange",
830
+ value: function() {
831
+ this.isEventListenerAdded || (this.isEventListenerAdded = !0);
832
+ var i = window.innerWidth > window.innerHeight ? 90 : 0;
833
+ this.setState({
834
+ isPortrait: i === 0,
835
+ isLandscape: i === 90
836
+ });
837
+ }
838
+ }, {
839
+ key: "onOrientationChange",
840
+ value: function() {
841
+ this.handleOrientationChange();
842
+ }
843
+ }, {
844
+ key: "onPageLoad",
845
+ value: function() {
846
+ this.handleOrientationChange();
847
+ }
848
+ }, {
849
+ key: "componentDidMount",
850
+ value: function() {
851
+ (typeof window > "u" ? "undefined" : qe(window)) !== void 0 && ct && (this.isEventListenerAdded ? window.removeEventListener("load", this.onPageLoad, !1) : (this.handleOrientationChange(), window.addEventListener("load", this.onPageLoad, !1)), window.addEventListener("resize", this.onOrientationChange, !1));
852
+ }
853
+ }, {
854
+ key: "componentWillUnmount",
855
+ value: function() {
856
+ window.removeEventListener("resize", this.onOrientationChange, !1);
857
+ }
858
+ }, {
859
+ key: "render",
860
+ value: function() {
861
+ return B.createElement(e, yt({}, this.props, {
862
+ isLandscape: this.state.isLandscape,
863
+ isPortrait: this.state.isPortrait
864
+ }));
865
+ }
866
+ }]), n;
867
+ }(B.Component);
868
+ }
869
+ function fo() {
870
+ var e = Y.useState(function() {
871
+ var a = window.innerWidth > window.innerHeight ? 90 : 0;
872
+ return {
873
+ isPortrait: a === 0,
874
+ isLandscape: a === 90,
875
+ orientation: a === 0 ? "portrait" : "landscape"
876
+ };
877
+ }), t = ai(e, 2), n = t[0], r = t[1], i = Y.useCallback(function() {
878
+ var a = window.innerWidth > window.innerHeight ? 90 : 0, o = {
879
+ isPortrait: a === 0,
880
+ isLandscape: a === 90,
881
+ orientation: a === 0 ? "portrait" : "landscape"
882
+ };
883
+ n.orientation !== o.orientation && r(o);
884
+ }, [n.orientation]);
885
+ return Y.useEffect(function() {
886
+ return (typeof window > "u" ? "undefined" : qe(window)) !== void 0 && ct && (i(), window.addEventListener("load", i, !1), window.addEventListener("resize", i, !1)), function() {
887
+ window.removeEventListener("resize", i, !1), window.removeEventListener("load", i, !1);
888
+ };
889
+ }, [i]), n;
890
+ }
891
+ function rr(e) {
892
+ var t = e || window.navigator.userAgent;
893
+ return Ye(t);
894
+ }
895
+ function bo(e) {
896
+ var t = e || window.navigator.userAgent, n = rr(t), r = zn(n);
897
+ return [r, n];
898
+ }
899
+ w.AndroidView = Ji;
900
+ w.BrowserTypes = ne;
901
+ w.BrowserView = eo;
902
+ w.ConsoleView = so;
903
+ w.CustomView = co;
904
+ w.IEView = to;
905
+ w.IOSView = no;
906
+ w.MobileOnlyView = ao;
907
+ w.MobileView = ro;
908
+ w.OsTypes = De;
909
+ w.SmartTVView = lo;
910
+ w.TabletView = io;
911
+ w.WearableView = uo;
912
+ w.WinPhoneView = oo;
913
+ w.browserName = Ai;
914
+ w.browserVersion = Ri;
915
+ w.deviceDetect = wi;
916
+ w.deviceType = $i;
917
+ w.engineName = Mi;
918
+ w.engineVersion = Fi;
919
+ w.fullBrowserVersion = Pi;
920
+ w.getSelectorsByUserAgent = Zi;
921
+ w.getUA = Di;
922
+ w.isAndroid = Jn;
923
+ w.isBrowser = Zn;
924
+ w.isChrome = ki;
925
+ w.isChromium = Oi;
926
+ w.isConsole = Gn;
927
+ w.isDesktop = Si;
928
+ w.isEdge = Wi;
929
+ w.isEdgeChromium = zi;
930
+ w.isElectron = Hi;
931
+ w.isEmbedded = yi;
932
+ w.isFirefox = Ei;
933
+ w.isIE = nr;
934
+ w.isIOS = tr;
935
+ w.isIOS13 = Bi;
936
+ w.isIPad13 = Ui;
937
+ w.isIPhone13 = ji;
938
+ w.isIPod13 = qi;
939
+ w.isLegacyEdge = Ki;
940
+ w.isMIUI = Qi;
941
+ w.isMacOs = Yi;
942
+ var vo = w.isMobile = ct;
943
+ w.isMobileOnly = Qn;
944
+ w.isMobileSafari = xi;
945
+ w.isOpera = _i;
946
+ w.isSafari = Ti;
947
+ w.isSamsungBrowser = Xi;
948
+ w.isSmartTV = Kn;
949
+ w.isTablet = Xn;
950
+ w.isWearable = Yn;
951
+ w.isWinPhone = er;
952
+ w.isWindows = Gi;
953
+ w.isYandex = Vi;
954
+ w.mobileModel = Ni;
955
+ w.mobileVendor = Li;
956
+ w.osName = Ci;
957
+ w.osVersion = Ii;
958
+ w.parseUserAgent = Ye;
959
+ w.setUserAgent = fi;
960
+ w.useDeviceData = rr;
961
+ w.useDeviceSelectors = bo;
962
+ w.useMobileOrientation = fo;
963
+ w.withOrientationChange = po;
964
+ J.memo(
965
+ _e(
966
+ ({ themeColor: e = "", onSubmit: t, style: n = {}, className: r = "", onInput: i, onFocus: a, onBlur: o, ...c }, f) => {
967
+ const [b, h] = xe(!0), [m, l] = xe(!1);
968
+ oe(() => {
969
+ h(vo);
970
+ }, []);
971
+ const u = (x) => {
972
+ !b && x.key === "Enter" && !x.shiftKey && t && (x.preventDefault(), t());
973
+ }, s = (x) => {
974
+ i == null || i(x), x.target.style.height = "40px", x.target.style.height = 2 + x.target.scrollHeight + "px";
975
+ };
976
+ let d = {};
977
+ const p = [Ut.textInput, r].filter(Boolean).join(" "), v = () => {
978
+ l(!0);
979
+ }, C = () => {
980
+ l(!1);
981
+ };
982
+ return d = {
983
+ borderBottomColor: m && e != "#ffffff" ? e : ""
984
+ }, /* @__PURE__ */ U("div", { className: Ut.textInputWrapper, children: /* @__PURE__ */ U(
985
+ "textarea",
986
+ {
987
+ "data-testid": "textbox-input",
988
+ ref: f,
989
+ className: p,
990
+ style: { ...d, ...n },
991
+ onFocus: v,
992
+ onBlur: C,
993
+ onInput: (x) => s(x),
994
+ onKeyDown: u,
995
+ ...c
996
+ }
997
+ ) });
998
+ }
999
+ )
1000
+ );
1001
+ const mo = "_singleSelectWrapper_1iea9_1", ho = "_quickOption_1iea9_4", go = "_selected_1iea9_10", wo = "_triangle_1iea9_16", yo = "_loader_1iea9_19", xo = "_checkmarkWrap_1iea9_22", Oo = "_checkmark_1iea9_22", So = "_fill_1iea9_1", ko = "_scale_1iea9_1", Eo = "_checkmarkCheck_1iea9_29", To = "_stroke_1iea9_1", _o = "_disabled_1iea9_34", me = {
1002
+ singleSelectWrapper: mo,
1003
+ quickOption: ho,
1004
+ selected: go,
1005
+ triangle: wo,
1006
+ loader: yo,
1007
+ "tw-spin": "_tw-spin_1iea9_1",
1008
+ checkmarkWrap: xo,
1009
+ checkmark: Oo,
1010
+ fill: So,
1011
+ scale: ko,
1012
+ checkmarkCheck: Eo,
1013
+ stroke: To,
1014
+ disabled: _o
1015
+ }, rl = ({
1016
+ options: e,
1017
+ onSelect: t,
1018
+ selected: n,
1019
+ themeColor: r,
1020
+ className: i = "",
1021
+ style: a = {},
1022
+ showLoader: o = !1
1023
+ }) => {
1024
+ const [c, f] = xe(n);
1025
+ let b = {}, h = {}, m = "#ffffff";
1026
+ const l = (u) => {
1027
+ (c == null ? void 0 : c.id) !== u.id && (t(u), f(u));
1028
+ };
1029
+ if (r) {
1030
+ const u = kt(r);
1031
+ r = r.length === 4 ? r.replace(/^#(.)(.)(.)$/, "#$1$1$2$2$3$3") : r;
1032
+ const s = r === "#ffffff" ? "#333333" : r;
1033
+ (u === "dark" || u === "light") && (m = r === "#ffffff" || u === "dark" ? "#ffffff" : "#333333", b = {
1034
+ outlineColor: s,
1035
+ borderColor: s,
1036
+ color: "#333333"
1037
+ }, h = {
1038
+ borderRightColor: s,
1039
+ borderTopColor: s
1040
+ });
1041
+ }
1042
+ return /* @__PURE__ */ U("div", { className: me.singleSelectWrapper, children: /* @__PURE__ */ U("div", { className: me.quickOption, children: /* @__PURE__ */ U("ul", { className: me.quickOption, children: e.map((u) => /* @__PURE__ */ at(
1043
+ "li",
1044
+ {
1045
+ tabIndex: u.disabled ? -1 : 0,
1046
+ className: `${i} ${(c == null ? void 0 : c.id) === u.id ? me.selected : ""} ${u.disabled ? me.disabled : ""}`,
1047
+ style: { ...b, ...a },
1048
+ onClick: () => l(u),
1049
+ onKeyPress: (s) => {
1050
+ (s.key === " " || s.code === "Space") && (s.preventDefault(), l(u));
1051
+ },
1052
+ "data-testid": "checkbox-input",
1053
+ children: [
1054
+ u.text,
1055
+ (c == null ? void 0 : c.id) === u.id && /* @__PURE__ */ at("div", { className: me.triangle, style: { ...h }, children: [
1056
+ o && /* @__PURE__ */ U("div", { className: me.loader, style: { borderRightColor: r ?? "#006bb1" } }),
1057
+ !o && /* @__PURE__ */ U("div", { className: me.checkmarkWrap, children: /* @__PURE__ */ U(
1058
+ "svg",
1059
+ {
1060
+ className: me.checkmark,
1061
+ xmlns: "http://www.w3.org/2000/svg",
1062
+ width: "11",
1063
+ height: "9",
1064
+ viewBox: "0 0 11 9",
1065
+ fill: "none",
1066
+ children: /* @__PURE__ */ U(
1067
+ "path",
1068
+ {
1069
+ className: me.checkmarkCheck,
1070
+ stroke: m,
1071
+ d: "M2.1 4.34286L4.12857 6.40001L8.9 1.60001",
1072
+ strokeWidth: "2"
1073
+ }
1074
+ )
1075
+ }
1076
+ ) })
1077
+ ] })
1078
+ ]
1079
+ },
1080
+ u.id
1081
+ )) }) }) });
1082
+ }, Io = "_scrollbarContainer_er2uj_1", Co = {
1083
+ scrollbarContainer: Io
1084
+ }, Po = _e(
1085
+ ({ children: e, className: t = "", style: n = {}, ...r }, i) => {
1086
+ const a = [Co.scrollbarContainer, t].filter(Boolean).join(" ");
1087
+ return /* @__PURE__ */ U(St, { children: /* @__PURE__ */ U("div", { ref: i, style: { ...n }, className: a, ...r, children: e }) });
1088
+ }
1089
+ );
1090
+ Po.displayName = "Scrollbar";
1091
+ var Ro = Object.defineProperty, Ao = (e, t, n) => t in e ? Ro(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, vt = (e, t, n) => (Ao(e, typeof t != "symbol" ? t + "" : t, n), n);
1092
+ let Lo = class {
1093
+ constructor() {
1094
+ vt(this, "current", this.detect()), vt(this, "handoffState", "pending"), vt(this, "currentId", 0);
1095
+ }
1096
+ set(t) {
1097
+ this.current !== t && (this.handoffState = "pending", this.currentId = 0, this.current = t);
1098
+ }
1099
+ reset() {
1100
+ this.set(this.detect());
1101
+ }
1102
+ nextId() {
1103
+ return ++this.currentId;
1104
+ }
1105
+ get isServer() {
1106
+ return this.current === "server";
1107
+ }
1108
+ get isClient() {
1109
+ return this.current === "client";
1110
+ }
1111
+ detect() {
1112
+ return typeof window > "u" || typeof document > "u" ? "server" : "client";
1113
+ }
1114
+ handoff() {
1115
+ this.handoffState === "pending" && (this.handoffState = "complete");
1116
+ }
1117
+ get isHandoffComplete() {
1118
+ return this.handoffState === "complete";
1119
+ }
1120
+ }, Re = new Lo(), z = (e, t) => {
1121
+ Re.isServer ? oe(e, t) : xr(e, t);
1122
+ };
1123
+ function We(e) {
1124
+ let t = A(e);
1125
+ return z(() => {
1126
+ t.current = e;
1127
+ }, [e]), t;
1128
+ }
1129
+ function Qe(e, t) {
1130
+ let [n, r] = xe(e), i = We(e);
1131
+ return z(() => r(i.current), [i, r, ...t]), n;
1132
+ }
1133
+ function No(e) {
1134
+ typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((t) => setTimeout(() => {
1135
+ throw t;
1136
+ }));
1137
+ }
1138
+ function Ae() {
1139
+ let e = [], t = { addEventListener(n, r, i, a) {
1140
+ return n.addEventListener(r, i, a), t.add(() => n.removeEventListener(r, i, a));
1141
+ }, requestAnimationFrame(...n) {
1142
+ let r = requestAnimationFrame(...n);
1143
+ return t.add(() => cancelAnimationFrame(r));
1144
+ }, nextFrame(...n) {
1145
+ return t.requestAnimationFrame(() => t.requestAnimationFrame(...n));
1146
+ }, setTimeout(...n) {
1147
+ let r = setTimeout(...n);
1148
+ return t.add(() => clearTimeout(r));
1149
+ }, microTask(...n) {
1150
+ let r = { current: !0 };
1151
+ return No(() => {
1152
+ r.current && n[0]();
1153
+ }), t.add(() => {
1154
+ r.current = !1;
1155
+ });
1156
+ }, style(n, r, i) {
1157
+ let a = n.style.getPropertyValue(r);
1158
+ return Object.assign(n.style, { [r]: i }), this.add(() => {
1159
+ Object.assign(n.style, { [r]: a });
1160
+ });
1161
+ }, group(n) {
1162
+ let r = Ae();
1163
+ return n(r), this.add(() => r.dispose());
1164
+ }, add(n) {
1165
+ return e.push(n), () => {
1166
+ let r = e.indexOf(n);
1167
+ if (r >= 0)
1168
+ for (let i of e.splice(r, 1))
1169
+ i();
1170
+ };
1171
+ }, dispose() {
1172
+ for (let n of e.splice(0))
1173
+ n();
1174
+ } };
1175
+ return t;
1176
+ }
1177
+ function Le() {
1178
+ let [e] = xe(Ae);
1179
+ return oe(() => () => e.dispose(), [e]), e;
1180
+ }
1181
+ let k = function(e) {
1182
+ let t = We(e);
1183
+ return J.useCallback((...n) => t.current(...n), [t]);
1184
+ };
1185
+ function Mo() {
1186
+ let e = typeof document > "u";
1187
+ return "useSyncExternalStore" in Ue ? ((t) => t.useSyncExternalStore)(Ue)(() => () => {
1188
+ }, () => !1, () => !e) : !1;
1189
+ }
1190
+ function Fo() {
1191
+ let e = Mo(), [t, n] = Ue.useState(Re.isHandoffComplete);
1192
+ return t && Re.isHandoffComplete === !1 && n(!1), Ue.useEffect(() => {
1193
+ t !== !0 && n(!0);
1194
+ }, [t]), Ue.useEffect(() => Re.handoff(), []), e ? !1 : t;
1195
+ }
1196
+ var Kt;
1197
+ let Se = (Kt = J.useId) != null ? Kt : function() {
1198
+ let e = Fo(), [t, n] = J.useState(e ? () => Re.nextId() : null);
1199
+ return z(() => {
1200
+ t === null && n(Re.nextId());
1201
+ }, [t]), t != null ? "" + t : void 0;
1202
+ };
1203
+ function ee(e, t, ...n) {
1204
+ if (e in t) {
1205
+ let i = t[e];
1206
+ return typeof i == "function" ? i(...n) : i;
1207
+ }
1208
+ let r = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((i) => `"${i}"`).join(", ")}.`);
1209
+ throw Error.captureStackTrace && Error.captureStackTrace(r, ee), r;
1210
+ }
1211
+ function dt(e) {
1212
+ return Re.isServer ? null : e instanceof Node ? e.ownerDocument : e != null && e.hasOwnProperty("current") && e.current instanceof Node ? e.current.ownerDocument : document;
1213
+ }
1214
+ let Gt = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
1215
+ var Do = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(Do || {}), Wo = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(Wo || {}), Vo = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(Vo || {}), It = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(It || {});
1216
+ function ir(e, t = 0) {
1217
+ var n;
1218
+ return e === ((n = dt(e)) == null ? void 0 : n.body) ? !1 : ee(t, { 0() {
1219
+ return e.matches(Gt);
1220
+ }, 1() {
1221
+ let r = e;
1222
+ for (; r !== null; ) {
1223
+ if (r.matches(Gt))
1224
+ return !0;
1225
+ r = r.parentElement;
1226
+ }
1227
+ return !1;
1228
+ } });
1229
+ }
1230
+ var $o = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))($o || {});
1231
+ typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
1232
+ e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
1233
+ }, !0), document.addEventListener("click", (e) => {
1234
+ e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
1235
+ }, !0));
1236
+ function or(e, t = (n) => n) {
1237
+ return e.slice().sort((n, r) => {
1238
+ let i = t(n), a = t(r);
1239
+ if (i === null || a === null)
1240
+ return 0;
1241
+ let o = i.compareDocumentPosition(a);
1242
+ return o & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : o & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
1243
+ });
1244
+ }
1245
+ function rt(e, t, n) {
1246
+ let r = We(t);
1247
+ oe(() => {
1248
+ function i(a) {
1249
+ r.current(a);
1250
+ }
1251
+ return document.addEventListener(e, i, n), () => document.removeEventListener(e, i, n);
1252
+ }, [e, n]);
1253
+ }
1254
+ function Bo(e, t, n) {
1255
+ let r = We(t);
1256
+ oe(() => {
1257
+ function i(a) {
1258
+ r.current(a);
1259
+ }
1260
+ return window.addEventListener(e, i, n), () => window.removeEventListener(e, i, n);
1261
+ }, [e, n]);
1262
+ }
1263
+ function ar(e, t, n = !0) {
1264
+ let r = A(!1);
1265
+ oe(() => {
1266
+ requestAnimationFrame(() => {
1267
+ r.current = n;
1268
+ });
1269
+ }, [n]);
1270
+ function i(o, c) {
1271
+ if (!r.current || o.defaultPrevented)
1272
+ return;
1273
+ let f = c(o);
1274
+ if (f === null || !f.getRootNode().contains(f) || !f.isConnected)
1275
+ return;
1276
+ let b = function h(m) {
1277
+ return typeof m == "function" ? h(m()) : Array.isArray(m) || m instanceof Set ? m : [m];
1278
+ }(e);
1279
+ for (let h of b) {
1280
+ if (h === null)
1281
+ continue;
1282
+ let m = h instanceof HTMLElement ? h : h.current;
1283
+ if (m != null && m.contains(f) || o.composed && o.composedPath().includes(m))
1284
+ return;
1285
+ }
1286
+ return !ir(f, It.Loose) && f.tabIndex !== -1 && o.preventDefault(), t(o, f);
1287
+ }
1288
+ let a = A(null);
1289
+ rt("pointerdown", (o) => {
1290
+ var c, f;
1291
+ r.current && (a.current = ((f = (c = o.composedPath) == null ? void 0 : c.call(o)) == null ? void 0 : f[0]) || o.target);
1292
+ }, !0), rt("mousedown", (o) => {
1293
+ var c, f;
1294
+ r.current && (a.current = ((f = (c = o.composedPath) == null ? void 0 : c.call(o)) == null ? void 0 : f[0]) || o.target);
1295
+ }, !0), rt("click", (o) => {
1296
+ a.current && (i(o, () => a.current), a.current = null);
1297
+ }, !0), rt("touchend", (o) => i(o, () => o.target instanceof HTMLElement ? o.target : null), !0), Bo("blur", (o) => i(o, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
1298
+ }
1299
+ function Yt(e) {
1300
+ var t;
1301
+ if (e.type)
1302
+ return e.type;
1303
+ let n = (t = e.as) != null ? t : "button";
1304
+ if (typeof n == "string" && n.toLowerCase() === "button")
1305
+ return "button";
1306
+ }
1307
+ function lr(e, t) {
1308
+ let [n, r] = xe(() => Yt(e));
1309
+ return z(() => {
1310
+ r(Yt(e));
1311
+ }, [e.type, e.as]), z(() => {
1312
+ n || t.current && t.current instanceof HTMLButtonElement && !t.current.hasAttribute("type") && r("button");
1313
+ }, [n, t]), n;
1314
+ }
1315
+ let Uo = Symbol();
1316
+ function ge(...e) {
1317
+ let t = A(e);
1318
+ oe(() => {
1319
+ t.current = e;
1320
+ }, [e]);
1321
+ let n = k((r) => {
1322
+ for (let i of t.current)
1323
+ i != null && (typeof i == "function" ? i(r) : i.current = r);
1324
+ });
1325
+ return e.every((r) => r == null || (r == null ? void 0 : r[Uo])) ? void 0 : n;
1326
+ }
1327
+ function jo({ container: e, accept: t, walk: n, enabled: r = !0 }) {
1328
+ let i = A(t), a = A(n);
1329
+ oe(() => {
1330
+ i.current = t, a.current = n;
1331
+ }, [t, n]), z(() => {
1332
+ if (!e || !r)
1333
+ return;
1334
+ let o = dt(e);
1335
+ if (!o)
1336
+ return;
1337
+ let c = i.current, f = a.current, b = Object.assign((m) => c(m), { acceptNode: c }), h = o.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, b, !1);
1338
+ for (; h.nextNode(); )
1339
+ f(h.currentNode);
1340
+ }, [e, r, i, a]);
1341
+ }
1342
+ function qo(e) {
1343
+ throw new Error("Unexpected object: " + e);
1344
+ }
1345
+ var F = ((e) => (e[e.First = 0] = "First", e[e.Previous = 1] = "Previous", e[e.Next = 2] = "Next", e[e.Last = 3] = "Last", e[e.Specific = 4] = "Specific", e[e.Nothing = 5] = "Nothing", e))(F || {});
1346
+ function sr(e, t) {
1347
+ let n = t.resolveItems();
1348
+ if (n.length <= 0)
1349
+ return null;
1350
+ let r = t.resolveActiveIndex(), i = r ?? -1, a = (() => {
1351
+ switch (e.focus) {
1352
+ case 0:
1353
+ return n.findIndex((o) => !t.resolveDisabled(o));
1354
+ case 1: {
1355
+ let o = n.slice().reverse().findIndex((c, f, b) => i !== -1 && b.length - f - 1 >= i ? !1 : !t.resolveDisabled(c));
1356
+ return o === -1 ? o : n.length - 1 - o;
1357
+ }
1358
+ case 2:
1359
+ return n.findIndex((o, c) => c <= i ? !1 : !t.resolveDisabled(o));
1360
+ case 3: {
1361
+ let o = n.slice().reverse().findIndex((c) => !t.resolveDisabled(c));
1362
+ return o === -1 ? o : n.length - 1 - o;
1363
+ }
1364
+ case 4:
1365
+ return n.findIndex((o) => t.resolveId(o) === e.id);
1366
+ case 5:
1367
+ return null;
1368
+ default:
1369
+ qo(e);
1370
+ }
1371
+ })();
1372
+ return a === -1 ? r : a;
1373
+ }
1374
+ function Qt(...e) {
1375
+ return Array.from(new Set(e.flatMap((t) => typeof t == "string" ? t.split(" ") : []))).filter(Boolean).join(" ");
1376
+ }
1377
+ var He = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(He || {}), Ho = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Ho || {});
1378
+ function ce({ ourProps: e, theirProps: t, slot: n, defaultTag: r, features: i, visible: a = !0, name: o }) {
1379
+ let c = ur(t, e);
1380
+ if (a)
1381
+ return it(c, n, r, o);
1382
+ let f = i ?? 0;
1383
+ if (f & 2) {
1384
+ let { static: b = !1, ...h } = c;
1385
+ if (b)
1386
+ return it(h, n, r, o);
1387
+ }
1388
+ if (f & 1) {
1389
+ let { unmount: b = !0, ...h } = c;
1390
+ return ee(b ? 0 : 1, { 0() {
1391
+ return null;
1392
+ }, 1() {
1393
+ return it({ ...h, hidden: !0, style: { display: "none" } }, n, r, o);
1394
+ } });
1395
+ }
1396
+ return it(c, n, r, o);
1397
+ }
1398
+ function it(e, t = {}, n, r) {
1399
+ let { as: i = n, children: a, refName: o = "ref", ...c } = mt(e, ["unmount", "static"]), f = e.ref !== void 0 ? { [o]: e.ref } : {}, b = typeof a == "function" ? a(t) : a;
1400
+ "className" in c && c.className && typeof c.className == "function" && (c.className = c.className(t));
1401
+ let h = {};
1402
+ if (t) {
1403
+ let m = !1, l = [];
1404
+ for (let [u, s] of Object.entries(t))
1405
+ typeof s == "boolean" && (m = !0), s === !0 && l.push(u);
1406
+ m && (h["data-headlessui-state"] = l.join(" "));
1407
+ }
1408
+ if (i === je && Object.keys(ut(c)).length > 0) {
1409
+ if (!Or(b) || Array.isArray(b) && b.length > 1)
1410
+ throw new Error(['Passing props on "Fragment"!', "", `The current component <${r} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(c).map((s) => ` - ${s}`).join(`
1411
+ `), "", "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((s) => ` - ${s}`).join(`
1412
+ `)].join(`
1413
+ `));
1414
+ let m = b.props, l = typeof (m == null ? void 0 : m.className) == "function" ? (...s) => Qt(m == null ? void 0 : m.className(...s), c.className) : Qt(m == null ? void 0 : m.className, c.className), u = l ? { className: l } : {};
1415
+ return Sr(b, Object.assign({}, ur(b.props, ut(mt(c, ["ref"]))), h, f, zo(b.ref, f.ref), u));
1416
+ }
1417
+ return kr(i, Object.assign({}, mt(c, ["ref"]), i !== je && f, i !== je && h), b);
1418
+ }
1419
+ function zo(...e) {
1420
+ return { ref: e.every((t) => t == null) ? void 0 : (t) => {
1421
+ for (let n of e)
1422
+ n != null && (typeof n == "function" ? n(t) : n.current = t);
1423
+ } };
1424
+ }
1425
+ function ur(...e) {
1426
+ if (e.length === 0)
1427
+ return {};
1428
+ if (e.length === 1)
1429
+ return e[0];
1430
+ let t = {}, n = {};
1431
+ for (let r of e)
1432
+ for (let i in r)
1433
+ i.startsWith("on") && typeof r[i] == "function" ? (n[i] != null || (n[i] = []), n[i].push(r[i])) : t[i] = r[i];
1434
+ if (t.disabled || t["aria-disabled"])
1435
+ return Object.assign(t, Object.fromEntries(Object.keys(n).map((r) => [r, void 0])));
1436
+ for (let r in n)
1437
+ Object.assign(t, { [r](i, ...a) {
1438
+ let o = n[r];
1439
+ for (let c of o) {
1440
+ if ((i instanceof Event || (i == null ? void 0 : i.nativeEvent) instanceof Event) && i.defaultPrevented)
1441
+ return;
1442
+ c(i, ...a);
1443
+ }
1444
+ } });
1445
+ return t;
1446
+ }
1447
+ function de(e) {
1448
+ var t;
1449
+ return Object.assign(_e(e), { displayName: (t = e.displayName) != null ? t : e.name });
1450
+ }
1451
+ function ut(e) {
1452
+ let t = Object.assign({}, e);
1453
+ for (let n in t)
1454
+ t[n] === void 0 && delete t[n];
1455
+ return t;
1456
+ }
1457
+ function mt(e, t = []) {
1458
+ let n = Object.assign({}, e);
1459
+ for (let r of t)
1460
+ r in n && delete n[r];
1461
+ return n;
1462
+ }
1463
+ function cr(e) {
1464
+ let t = e.parentElement, n = null;
1465
+ for (; t && !(t instanceof HTMLFieldSetElement); )
1466
+ t instanceof HTMLLegendElement && (n = t), t = t.parentElement;
1467
+ let r = (t == null ? void 0 : t.getAttribute("disabled")) === "";
1468
+ return r && Ko(n) ? !1 : r;
1469
+ }
1470
+ function Ko(e) {
1471
+ if (!e)
1472
+ return !1;
1473
+ let t = e.previousElementSibling;
1474
+ for (; t !== null; ) {
1475
+ if (t instanceof HTMLLegendElement)
1476
+ return !1;
1477
+ t = t.previousElementSibling;
1478
+ }
1479
+ return !0;
1480
+ }
1481
+ function Ct(e = {}, t = null, n = []) {
1482
+ for (let [r, i] of Object.entries(e))
1483
+ pr(n, dr(t, r), i);
1484
+ return n;
1485
+ }
1486
+ function dr(e, t) {
1487
+ return e ? e + "[" + t + "]" : t;
1488
+ }
1489
+ function pr(e, t, n) {
1490
+ if (Array.isArray(n))
1491
+ for (let [r, i] of n.entries())
1492
+ pr(e, dr(t, r.toString()), i);
1493
+ else
1494
+ n instanceof Date ? e.push([t, n.toISOString()]) : typeof n == "boolean" ? e.push([t, n ? "1" : "0"]) : typeof n == "string" ? e.push([t, n]) : typeof n == "number" ? e.push([t, `${n}`]) : n == null ? e.push([t, ""]) : Ct(n, t, e);
1495
+ }
1496
+ let Go = "div";
1497
+ var Pt = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(Pt || {});
1498
+ function Yo(e, t) {
1499
+ let { features: n = 1, ...r } = e, i = { ref: t, "aria-hidden": (n & 2) === 2 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(n & 4) === 4 && (n & 2) !== 2 && { display: "none" } } };
1500
+ return ce({ ourProps: i, theirProps: r, slot: {}, defaultTag: Go, name: "Hidden" });
1501
+ }
1502
+ let fr = de(Yo), Rt = ze(null);
1503
+ Rt.displayName = "OpenClosedContext";
1504
+ var Oe = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(Oe || {});
1505
+ function br() {
1506
+ return Ke(Rt);
1507
+ }
1508
+ function vr({ value: e, children: t }) {
1509
+ return J.createElement(Rt.Provider, { value: e }, t);
1510
+ }
1511
+ var M = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(M || {});
1512
+ function mr(e, t, n) {
1513
+ let [r, i] = xe(n), a = e !== void 0, o = A(a), c = A(!1), f = A(!1);
1514
+ return a && !o.current && !c.current ? (c.current = !0, o.current = a, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !a && o.current && !f.current && (f.current = !0, o.current = a, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [a ? e : r, k((b) => (a || i(b), t == null ? void 0 : t(b)))];
1515
+ }
1516
+ function Xt(e, t) {
1517
+ let n = A([]), r = k(e);
1518
+ oe(() => {
1519
+ let i = [...n.current];
1520
+ for (let [a, o] of t.entries())
1521
+ if (n.current[a] !== o) {
1522
+ let c = r(t, i);
1523
+ return n.current = t, c;
1524
+ }
1525
+ }, [r, ...t]);
1526
+ }
1527
+ function Zt(e) {
1528
+ return [e.screenX, e.screenY];
1529
+ }
1530
+ function hr() {
1531
+ let e = A([-1, -1]);
1532
+ return { wasMoved(t) {
1533
+ let n = Zt(t);
1534
+ return e.current[0] === n[0] && e.current[1] === n[1] ? !1 : (e.current = n, !0);
1535
+ }, update(t) {
1536
+ e.current = Zt(t);
1537
+ } };
1538
+ }
1539
+ function Qo() {
1540
+ return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
1541
+ }
1542
+ function Xo() {
1543
+ return /Android/gi.test(window.navigator.userAgent);
1544
+ }
1545
+ function Zo() {
1546
+ return Qo() || Xo();
1547
+ }
1548
+ function Jo(...e) {
1549
+ return G(() => dt(...e), [...e]);
1550
+ }
1551
+ var ea = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(ea || {}), ta = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(ta || {}), na = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(na || {}), ra = ((e) => (e[e.OpenCombobox = 0] = "OpenCombobox", e[e.CloseCombobox = 1] = "CloseCombobox", e[e.GoToOption = 2] = "GoToOption", e[e.RegisterOption = 3] = "RegisterOption", e[e.UnregisterOption = 4] = "UnregisterOption", e[e.RegisterLabel = 5] = "RegisterLabel", e))(ra || {});
1552
+ function ht(e, t = (n) => n) {
1553
+ let n = e.activeOptionIndex !== null ? e.options[e.activeOptionIndex] : null, r = or(t(e.options.slice()), (a) => a.dataRef.current.domRef.current), i = n ? r.indexOf(n) : null;
1554
+ return i === -1 && (i = null), { options: r, activeOptionIndex: i };
1555
+ }
1556
+ let ia = { 1(e) {
1557
+ var t;
1558
+ return (t = e.dataRef.current) != null && t.disabled || e.comboboxState === 1 ? e : { ...e, activeOptionIndex: null, comboboxState: 1 };
1559
+ }, 0(e) {
1560
+ var t;
1561
+ if ((t = e.dataRef.current) != null && t.disabled || e.comboboxState === 0)
1562
+ return e;
1563
+ let n = e.activeOptionIndex;
1564
+ if (e.dataRef.current) {
1565
+ let { isSelected: r } = e.dataRef.current, i = e.options.findIndex((a) => r(a.dataRef.current.value));
1566
+ i !== -1 && (n = i);
1567
+ }
1568
+ return { ...e, comboboxState: 0, activeOptionIndex: n };
1569
+ }, 2(e, t) {
1570
+ var n, r, i, a;
1571
+ if ((n = e.dataRef.current) != null && n.disabled || (r = e.dataRef.current) != null && r.optionsRef.current && !((i = e.dataRef.current) != null && i.optionsPropsRef.current.static) && e.comboboxState === 1)
1572
+ return e;
1573
+ let o = ht(e);
1574
+ if (o.activeOptionIndex === null) {
1575
+ let f = o.options.findIndex((b) => !b.dataRef.current.disabled);
1576
+ f !== -1 && (o.activeOptionIndex = f);
1577
+ }
1578
+ let c = sr(t, { resolveItems: () => o.options, resolveActiveIndex: () => o.activeOptionIndex, resolveId: (f) => f.id, resolveDisabled: (f) => f.dataRef.current.disabled });
1579
+ return { ...e, ...o, activeOptionIndex: c, activationTrigger: (a = t.trigger) != null ? a : 1 };
1580
+ }, 3: (e, t) => {
1581
+ var n, r;
1582
+ let i = { id: t.id, dataRef: t.dataRef }, a = ht(e, (c) => [...c, i]);
1583
+ e.activeOptionIndex === null && (n = e.dataRef.current) != null && n.isSelected(t.dataRef.current.value) && (a.activeOptionIndex = a.options.indexOf(i));
1584
+ let o = { ...e, ...a, activationTrigger: 1 };
1585
+ return (r = e.dataRef.current) != null && r.__demoMode && e.dataRef.current.value === void 0 && (o.activeOptionIndex = 0), o;
1586
+ }, 4: (e, t) => {
1587
+ let n = ht(e, (r) => {
1588
+ let i = r.findIndex((a) => a.id === t.id);
1589
+ return i !== -1 && r.splice(i, 1), r;
1590
+ });
1591
+ return { ...e, ...n, activationTrigger: 1 };
1592
+ }, 5: (e, t) => ({ ...e, labelId: t.id }) }, At = ze(null);
1593
+ At.displayName = "ComboboxActionsContext";
1594
+ function Xe(e) {
1595
+ let t = Ke(At);
1596
+ if (t === null) {
1597
+ let n = new Error(`<${e} /> is missing a parent <Combobox /> component.`);
1598
+ throw Error.captureStackTrace && Error.captureStackTrace(n, Xe), n;
1599
+ }
1600
+ return t;
1601
+ }
1602
+ let Lt = ze(null);
1603
+ Lt.displayName = "ComboboxDataContext";
1604
+ function Ve(e) {
1605
+ let t = Ke(Lt);
1606
+ if (t === null) {
1607
+ let n = new Error(`<${e} /> is missing a parent <Combobox /> component.`);
1608
+ throw Error.captureStackTrace && Error.captureStackTrace(n, Ve), n;
1609
+ }
1610
+ return t;
1611
+ }
1612
+ function oa(e, t) {
1613
+ return ee(t.type, ia, e, t);
1614
+ }
1615
+ let aa = je;
1616
+ function la(e, t) {
1617
+ let { value: n, defaultValue: r, onChange: i, form: a, name: o, by: c = (g, O) => g === O, disabled: f = !1, __demoMode: b = !1, nullable: h = !1, multiple: m = !1, ...l } = e, [u = m ? [] : void 0, s] = mr(n, i, r), [d, p] = nn(oa, { dataRef: rn(), comboboxState: b ? 0 : 1, options: [], activeOptionIndex: null, activationTrigger: 1, labelId: null }), v = A(!1), C = A({ static: !1, hold: !1 }), x = A(null), y = A(null), V = A(null), D = A(null), j = k(typeof c == "string" ? (g, O) => {
1618
+ let P = c;
1619
+ return (g == null ? void 0 : g[P]) === (O == null ? void 0 : O[P]);
1620
+ } : c), L = on((g) => ee(S.mode, { 1: () => u.some((O) => j(O, g)), 0: () => j(u, g) }), [u]), S = G(() => ({ ...d, optionsPropsRef: C, labelRef: x, inputRef: y, buttonRef: V, optionsRef: D, value: u, defaultValue: r, disabled: f, mode: m ? 1 : 0, get activeOptionIndex() {
1621
+ if (v.current && d.activeOptionIndex === null && d.options.length > 0) {
1622
+ let g = d.options.findIndex((O) => !O.dataRef.current.disabled);
1623
+ if (g !== -1)
1624
+ return g;
1625
+ }
1626
+ return d.activeOptionIndex;
1627
+ }, compare: j, isSelected: L, nullable: h, __demoMode: b }), [u, r, f, m, h, b, d]), H = A(S.activeOptionIndex !== null ? S.options[S.activeOptionIndex] : null);
1628
+ oe(() => {
1629
+ let g = S.activeOptionIndex !== null ? S.options[S.activeOptionIndex] : null;
1630
+ H.current !== g && (H.current = g);
1631
+ }), z(() => {
1632
+ d.dataRef.current = S;
1633
+ }, [S]), ar([S.buttonRef, S.inputRef, S.optionsRef], () => we.closeCombobox(), S.comboboxState === 0);
1634
+ let pe = G(() => ({ open: S.comboboxState === 0, disabled: f, activeIndex: S.activeOptionIndex, activeOption: S.activeOptionIndex === null ? null : S.options[S.activeOptionIndex].dataRef.current.value, value: u }), [S, f, u]), ke = k((g) => {
1635
+ let O = S.options.find((P) => P.id === g);
1636
+ O && Z(O.dataRef.current.value);
1637
+ }), I = k(() => {
1638
+ if (S.activeOptionIndex !== null) {
1639
+ let { dataRef: g, id: O } = S.options[S.activeOptionIndex];
1640
+ Z(g.current.value), we.goToOption(F.Specific, O);
1641
+ }
1642
+ }), le = k(() => {
1643
+ p({ type: 0 }), v.current = !0;
1644
+ }), X = k(() => {
1645
+ p({ type: 1 }), v.current = !1;
1646
+ }), se = k((g, O, P) => (v.current = !1, g === F.Specific ? p({ type: 2, focus: F.Specific, id: O, trigger: P }) : p({ type: 2, focus: g, trigger: P }))), q = k((g, O) => (p({ type: 3, id: g, dataRef: O }), () => {
1647
+ var P;
1648
+ ((P = H.current) == null ? void 0 : P.id) === g && (v.current = !0), p({ type: 4, id: g });
1649
+ })), re = k((g) => (p({ type: 5, id: g }), () => p({ type: 5, id: null }))), Z = k((g) => ee(S.mode, { 0() {
1650
+ return s == null ? void 0 : s(g);
1651
+ }, 1() {
1652
+ let O = S.value.slice(), P = O.findIndex((ie) => j(ie, g));
1653
+ return P === -1 ? O.push(g) : O.splice(P, 1), s == null ? void 0 : s(O);
1654
+ } })), we = G(() => ({ onChange: Z, registerOption: q, registerLabel: re, goToOption: se, closeCombobox: X, openCombobox: le, selectActiveOption: I, selectOption: ke }), []), Ne = t === null ? {} : { ref: t }, te = A(null), Pe = Le();
1655
+ return oe(() => {
1656
+ te.current && r !== void 0 && Pe.addEventListener(te.current, "reset", () => {
1657
+ s == null || s(r);
1658
+ });
1659
+ }, [te, s]), J.createElement(At.Provider, { value: we }, J.createElement(Lt.Provider, { value: S }, J.createElement(vr, { value: ee(S.comboboxState, { 0: Oe.Open, 1: Oe.Closed }) }, o != null && u != null && Ct({ [o]: u }).map(([g, O], P) => J.createElement(fr, { features: Pt.Hidden, ref: P === 0 ? (ie) => {
1660
+ var Ee;
1661
+ te.current = (Ee = ie == null ? void 0 : ie.closest("form")) != null ? Ee : null;
1662
+ } : void 0, ...ut({ key: g, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: a, name: g, value: O }) })), ce({ ourProps: Ne, theirProps: l, slot: pe, defaultTag: aa, name: "Combobox" }))));
1663
+ }
1664
+ let sa = "input";
1665
+ function ua(e, t) {
1666
+ var n, r, i, a;
1667
+ let o = Se(), { id: c = `headlessui-combobox-input-${o}`, onChange: f, displayValue: b, type: h = "text", ...m } = e, l = Ve("Combobox.Input"), u = Xe("Combobox.Input"), s = ge(l.inputRef, t), d = Jo(l.inputRef), p = A(!1), v = Le(), C = k(() => {
1668
+ u.onChange(null), l.optionsRef.current && (l.optionsRef.current.scrollTop = 0), u.goToOption(F.Nothing);
1669
+ }), x = function() {
1670
+ var I;
1671
+ return typeof b == "function" && l.value !== void 0 ? (I = b(l.value)) != null ? I : "" : typeof l.value == "string" ? l.value : "";
1672
+ }();
1673
+ Xt(([I, le], [X, se]) => {
1674
+ if (p.current)
1675
+ return;
1676
+ let q = l.inputRef.current;
1677
+ q && ((se === 0 && le === 1 || I !== X) && (q.value = I), requestAnimationFrame(() => {
1678
+ if (p.current || !q || (d == null ? void 0 : d.activeElement) !== q)
1679
+ return;
1680
+ let { selectionStart: re, selectionEnd: Z } = q;
1681
+ Math.abs((Z ?? 0) - (re ?? 0)) === 0 && re === 0 && q.setSelectionRange(q.value.length, q.value.length);
1682
+ }));
1683
+ }, [x, l.comboboxState, d]), Xt(([I], [le]) => {
1684
+ if (I === 0 && le === 1) {
1685
+ if (p.current)
1686
+ return;
1687
+ let X = l.inputRef.current;
1688
+ if (!X)
1689
+ return;
1690
+ let se = X.value, { selectionStart: q, selectionEnd: re, selectionDirection: Z } = X;
1691
+ X.value = "", X.value = se, Z !== null ? X.setSelectionRange(q, re, Z) : X.setSelectionRange(q, re);
1692
+ }
1693
+ }, [l.comboboxState]);
1694
+ let y = A(!1), V = k(() => {
1695
+ y.current = !0;
1696
+ }), D = k(() => {
1697
+ v.nextFrame(() => {
1698
+ y.current = !1;
1699
+ });
1700
+ }), j = k((I) => {
1701
+ switch (p.current = !0, I.key) {
1702
+ case M.Enter:
1703
+ if (p.current = !1, l.comboboxState !== 0 || y.current)
1704
+ return;
1705
+ if (I.preventDefault(), I.stopPropagation(), l.activeOptionIndex === null) {
1706
+ u.closeCombobox();
1707
+ return;
1708
+ }
1709
+ u.selectActiveOption(), l.mode === 0 && u.closeCombobox();
1710
+ break;
1711
+ case M.ArrowDown:
1712
+ return p.current = !1, I.preventDefault(), I.stopPropagation(), ee(l.comboboxState, { 0: () => {
1713
+ u.goToOption(F.Next);
1714
+ }, 1: () => {
1715
+ u.openCombobox();
1716
+ } });
1717
+ case M.ArrowUp:
1718
+ return p.current = !1, I.preventDefault(), I.stopPropagation(), ee(l.comboboxState, { 0: () => {
1719
+ u.goToOption(F.Previous);
1720
+ }, 1: () => {
1721
+ u.openCombobox(), v.nextFrame(() => {
1722
+ l.value || u.goToOption(F.Last);
1723
+ });
1724
+ } });
1725
+ case M.Home:
1726
+ if (I.shiftKey)
1727
+ break;
1728
+ return p.current = !1, I.preventDefault(), I.stopPropagation(), u.goToOption(F.First);
1729
+ case M.PageUp:
1730
+ return p.current = !1, I.preventDefault(), I.stopPropagation(), u.goToOption(F.First);
1731
+ case M.End:
1732
+ if (I.shiftKey)
1733
+ break;
1734
+ return p.current = !1, I.preventDefault(), I.stopPropagation(), u.goToOption(F.Last);
1735
+ case M.PageDown:
1736
+ return p.current = !1, I.preventDefault(), I.stopPropagation(), u.goToOption(F.Last);
1737
+ case M.Escape:
1738
+ return p.current = !1, l.comboboxState !== 0 ? void 0 : (I.preventDefault(), l.optionsRef.current && !l.optionsPropsRef.current.static && I.stopPropagation(), l.nullable && l.mode === 0 && l.value === null && C(), u.closeCombobox());
1739
+ case M.Tab:
1740
+ if (p.current = !1, l.comboboxState !== 0)
1741
+ return;
1742
+ l.mode === 0 && u.selectActiveOption(), u.closeCombobox();
1743
+ break;
1744
+ }
1745
+ }), L = k((I) => {
1746
+ f == null || f(I), l.nullable && l.mode === 0 && I.target.value === "" && C(), u.openCombobox();
1747
+ }), S = k(() => {
1748
+ p.current = !1;
1749
+ }), H = Qe(() => {
1750
+ if (l.labelId)
1751
+ return [l.labelId].join(" ");
1752
+ }, [l.labelId]), pe = G(() => ({ open: l.comboboxState === 0, disabled: l.disabled }), [l]), ke = { ref: s, id: c, role: "combobox", type: h, "aria-controls": (n = l.optionsRef.current) == null ? void 0 : n.id, "aria-expanded": l.comboboxState === 0, "aria-activedescendant": l.activeOptionIndex === null || (r = l.options[l.activeOptionIndex]) == null ? void 0 : r.id, "aria-labelledby": H, "aria-autocomplete": "list", defaultValue: (a = (i = e.defaultValue) != null ? i : l.defaultValue !== void 0 ? b == null ? void 0 : b(l.defaultValue) : null) != null ? a : l.defaultValue, disabled: l.disabled, onCompositionStart: V, onCompositionEnd: D, onKeyDown: j, onChange: L, onBlur: S };
1753
+ return ce({ ourProps: ke, theirProps: m, slot: pe, defaultTag: sa, name: "Combobox.Input" });
1754
+ }
1755
+ let ca = "button";
1756
+ function da(e, t) {
1757
+ var n;
1758
+ let r = Ve("Combobox.Button"), i = Xe("Combobox.Button"), a = ge(r.buttonRef, t), o = Se(), { id: c = `headlessui-combobox-button-${o}`, ...f } = e, b = Le(), h = k((d) => {
1759
+ switch (d.key) {
1760
+ case M.ArrowDown:
1761
+ return d.preventDefault(), d.stopPropagation(), r.comboboxState === 1 && i.openCombobox(), b.nextFrame(() => {
1762
+ var p;
1763
+ return (p = r.inputRef.current) == null ? void 0 : p.focus({ preventScroll: !0 });
1764
+ });
1765
+ case M.ArrowUp:
1766
+ return d.preventDefault(), d.stopPropagation(), r.comboboxState === 1 && (i.openCombobox(), b.nextFrame(() => {
1767
+ r.value || i.goToOption(F.Last);
1768
+ })), b.nextFrame(() => {
1769
+ var p;
1770
+ return (p = r.inputRef.current) == null ? void 0 : p.focus({ preventScroll: !0 });
1771
+ });
1772
+ case M.Escape:
1773
+ return r.comboboxState !== 0 ? void 0 : (d.preventDefault(), r.optionsRef.current && !r.optionsPropsRef.current.static && d.stopPropagation(), i.closeCombobox(), b.nextFrame(() => {
1774
+ var p;
1775
+ return (p = r.inputRef.current) == null ? void 0 : p.focus({ preventScroll: !0 });
1776
+ }));
1777
+ default:
1778
+ return;
1779
+ }
1780
+ }), m = k((d) => {
1781
+ if (cr(d.currentTarget))
1782
+ return d.preventDefault();
1783
+ r.comboboxState === 0 ? i.closeCombobox() : (d.preventDefault(), i.openCombobox()), b.nextFrame(() => {
1784
+ var p;
1785
+ return (p = r.inputRef.current) == null ? void 0 : p.focus({ preventScroll: !0 });
1786
+ });
1787
+ }), l = Qe(() => {
1788
+ if (r.labelId)
1789
+ return [r.labelId, c].join(" ");
1790
+ }, [r.labelId, c]), u = G(() => ({ open: r.comboboxState === 0, disabled: r.disabled, value: r.value }), [r]), s = { ref: a, id: c, type: lr(e, r.buttonRef), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": (n = r.optionsRef.current) == null ? void 0 : n.id, "aria-expanded": r.comboboxState === 0, "aria-labelledby": l, disabled: r.disabled, onClick: m, onKeyDown: h };
1791
+ return ce({ ourProps: s, theirProps: f, slot: u, defaultTag: ca, name: "Combobox.Button" });
1792
+ }
1793
+ let pa = "label";
1794
+ function fa(e, t) {
1795
+ let n = Se(), { id: r = `headlessui-combobox-label-${n}`, ...i } = e, a = Ve("Combobox.Label"), o = Xe("Combobox.Label"), c = ge(a.labelRef, t);
1796
+ z(() => o.registerLabel(r), [r]);
1797
+ let f = k(() => {
1798
+ var h;
1799
+ return (h = a.inputRef.current) == null ? void 0 : h.focus({ preventScroll: !0 });
1800
+ }), b = G(() => ({ open: a.comboboxState === 0, disabled: a.disabled }), [a]);
1801
+ return ce({ ourProps: { ref: c, id: r, onClick: f }, theirProps: i, slot: b, defaultTag: pa, name: "Combobox.Label" });
1802
+ }
1803
+ let ba = "ul", va = He.RenderStrategy | He.Static;
1804
+ function ma(e, t) {
1805
+ let n = Se(), { id: r = `headlessui-combobox-options-${n}`, hold: i = !1, ...a } = e, o = Ve("Combobox.Options"), c = ge(o.optionsRef, t), f = br(), b = (() => f !== null ? (f & Oe.Open) === Oe.Open : o.comboboxState === 0)();
1806
+ z(() => {
1807
+ var u;
1808
+ o.optionsPropsRef.current.static = (u = e.static) != null ? u : !1;
1809
+ }, [o.optionsPropsRef, e.static]), z(() => {
1810
+ o.optionsPropsRef.current.hold = i;
1811
+ }, [o.optionsPropsRef, i]), jo({ container: o.optionsRef.current, enabled: o.comboboxState === 0, accept(u) {
1812
+ return u.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : u.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
1813
+ }, walk(u) {
1814
+ u.setAttribute("role", "none");
1815
+ } });
1816
+ let h = Qe(() => {
1817
+ var u, s;
1818
+ return (s = o.labelId) != null ? s : (u = o.buttonRef.current) == null ? void 0 : u.id;
1819
+ }, [o.labelId, o.buttonRef.current]), m = G(() => ({ open: o.comboboxState === 0 }), [o]), l = { "aria-labelledby": h, role: "listbox", "aria-multiselectable": o.mode === 1 ? !0 : void 0, id: r, ref: c };
1820
+ return ce({ ourProps: l, theirProps: a, slot: m, defaultTag: ba, features: va, visible: b, name: "Combobox.Options" });
1821
+ }
1822
+ let ha = "li";
1823
+ function ga(e, t) {
1824
+ var n, r;
1825
+ let i = Se(), { id: a = `headlessui-combobox-option-${i}`, disabled: o = !1, value: c, ...f } = e, b = Ve("Combobox.Option"), h = Xe("Combobox.Option"), m = b.activeOptionIndex !== null ? b.options[b.activeOptionIndex].id === a : !1, l = b.isSelected(c), u = A(null), s = We({ disabled: o, value: c, domRef: u, textValue: (r = (n = u.current) == null ? void 0 : n.textContent) == null ? void 0 : r.toLowerCase() }), d = ge(t, u), p = k(() => h.selectOption(a));
1826
+ z(() => h.registerOption(a, s), [s, a]);
1827
+ let v = A(!b.__demoMode);
1828
+ z(() => {
1829
+ if (!b.__demoMode)
1830
+ return;
1831
+ let S = Ae();
1832
+ return S.requestAnimationFrame(() => {
1833
+ v.current = !0;
1834
+ }), S.dispose;
1835
+ }, []), z(() => {
1836
+ if (b.comboboxState !== 0 || !m || !v.current || b.activationTrigger === 0)
1837
+ return;
1838
+ let S = Ae();
1839
+ return S.requestAnimationFrame(() => {
1840
+ var H, pe;
1841
+ (pe = (H = u.current) == null ? void 0 : H.scrollIntoView) == null || pe.call(H, { block: "nearest" });
1842
+ }), S.dispose;
1843
+ }, [u, m, b.comboboxState, b.activationTrigger, b.activeOptionIndex]);
1844
+ let C = k((S) => {
1845
+ if (o)
1846
+ return S.preventDefault();
1847
+ p(), b.mode === 0 && h.closeCombobox(), Zo() || requestAnimationFrame(() => {
1848
+ var H;
1849
+ return (H = b.inputRef.current) == null ? void 0 : H.focus();
1850
+ });
1851
+ }), x = k(() => {
1852
+ if (o)
1853
+ return h.goToOption(F.Nothing);
1854
+ h.goToOption(F.Specific, a);
1855
+ }), y = hr(), V = k((S) => y.update(S)), D = k((S) => {
1856
+ y.wasMoved(S) && (o || m || h.goToOption(F.Specific, a, 0));
1857
+ }), j = k((S) => {
1858
+ y.wasMoved(S) && (o || m && (b.optionsPropsRef.current.hold || h.goToOption(F.Nothing)));
1859
+ }), L = G(() => ({ active: m, selected: l, disabled: o }), [m, l, o]);
1860
+ return ce({ ourProps: { id: a, ref: d, role: "option", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-selected": l, disabled: void 0, onClick: C, onFocus: x, onPointerEnter: V, onMouseEnter: V, onPointerMove: D, onMouseMove: D, onPointerLeave: j, onMouseLeave: j }, theirProps: f, slot: L, defaultTag: ha, name: "Combobox.Option" });
1861
+ }
1862
+ let wa = de(la), ya = de(da), xa = de(ua), Oa = de(fa), Sa = de(ma), ka = de(ga), Ea = Object.assign(wa, { Input: xa, Button: ya, Label: Oa, Options: Sa, Option: ka }), Jt = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
1863
+ function en(e) {
1864
+ var t, n;
1865
+ let r = (t = e.innerText) != null ? t : "", i = e.cloneNode(!0);
1866
+ if (!(i instanceof HTMLElement))
1867
+ return r;
1868
+ let a = !1;
1869
+ for (let c of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))
1870
+ c.remove(), a = !0;
1871
+ let o = a ? (n = i.innerText) != null ? n : "" : r;
1872
+ return Jt.test(o) && (o = o.replace(Jt, "")), o;
1873
+ }
1874
+ function Ta(e) {
1875
+ let t = e.getAttribute("aria-label");
1876
+ if (typeof t == "string")
1877
+ return t.trim();
1878
+ let n = e.getAttribute("aria-labelledby");
1879
+ if (n) {
1880
+ let r = n.split(" ").map((i) => {
1881
+ let a = document.getElementById(i);
1882
+ if (a) {
1883
+ let o = a.getAttribute("aria-label");
1884
+ return typeof o == "string" ? o.trim() : en(a).trim();
1885
+ }
1886
+ return null;
1887
+ }).filter(Boolean);
1888
+ if (r.length > 0)
1889
+ return r.join(", ");
1890
+ }
1891
+ return en(e).trim();
1892
+ }
1893
+ function _a(e) {
1894
+ let t = A(""), n = A("");
1895
+ return k(() => {
1896
+ let r = e.current;
1897
+ if (!r)
1898
+ return "";
1899
+ let i = r.innerText;
1900
+ if (t.current === i)
1901
+ return n.current;
1902
+ let a = Ta(r).trim().toLowerCase();
1903
+ return t.current = i, n.current = a, a;
1904
+ });
1905
+ }
1906
+ var Ia = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Ia || {}), Ca = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(Ca || {}), Pa = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(Pa || {}), Ra = ((e) => (e[e.OpenListbox = 0] = "OpenListbox", e[e.CloseListbox = 1] = "CloseListbox", e[e.GoToOption = 2] = "GoToOption", e[e.Search = 3] = "Search", e[e.ClearSearch = 4] = "ClearSearch", e[e.RegisterOption = 5] = "RegisterOption", e[e.UnregisterOption = 6] = "UnregisterOption", e[e.RegisterLabel = 7] = "RegisterLabel", e))(Ra || {});
1907
+ function gt(e, t = (n) => n) {
1908
+ let n = e.activeOptionIndex !== null ? e.options[e.activeOptionIndex] : null, r = or(t(e.options.slice()), (a) => a.dataRef.current.domRef.current), i = n ? r.indexOf(n) : null;
1909
+ return i === -1 && (i = null), { options: r, activeOptionIndex: i };
1910
+ }
1911
+ let Aa = { 1(e) {
1912
+ return e.dataRef.current.disabled || e.listboxState === 1 ? e : { ...e, activeOptionIndex: null, listboxState: 1 };
1913
+ }, 0(e) {
1914
+ if (e.dataRef.current.disabled || e.listboxState === 0)
1915
+ return e;
1916
+ let t = e.activeOptionIndex, { isSelected: n } = e.dataRef.current, r = e.options.findIndex((i) => n(i.dataRef.current.value));
1917
+ return r !== -1 && (t = r), { ...e, listboxState: 0, activeOptionIndex: t };
1918
+ }, 2(e, t) {
1919
+ var n;
1920
+ if (e.dataRef.current.disabled || e.listboxState === 1)
1921
+ return e;
1922
+ let r = gt(e), i = sr(t, { resolveItems: () => r.options, resolveActiveIndex: () => r.activeOptionIndex, resolveId: (a) => a.id, resolveDisabled: (a) => a.dataRef.current.disabled });
1923
+ return { ...e, ...r, searchQuery: "", activeOptionIndex: i, activationTrigger: (n = t.trigger) != null ? n : 1 };
1924
+ }, 3: (e, t) => {
1925
+ if (e.dataRef.current.disabled || e.listboxState === 1)
1926
+ return e;
1927
+ let n = e.searchQuery !== "" ? 0 : 1, r = e.searchQuery + t.value.toLowerCase(), i = (e.activeOptionIndex !== null ? e.options.slice(e.activeOptionIndex + n).concat(e.options.slice(0, e.activeOptionIndex + n)) : e.options).find((o) => {
1928
+ var c;
1929
+ return !o.dataRef.current.disabled && ((c = o.dataRef.current.textValue) == null ? void 0 : c.startsWith(r));
1930
+ }), a = i ? e.options.indexOf(i) : -1;
1931
+ return a === -1 || a === e.activeOptionIndex ? { ...e, searchQuery: r } : { ...e, searchQuery: r, activeOptionIndex: a, activationTrigger: 1 };
1932
+ }, 4(e) {
1933
+ return e.dataRef.current.disabled || e.listboxState === 1 || e.searchQuery === "" ? e : { ...e, searchQuery: "" };
1934
+ }, 5: (e, t) => {
1935
+ let n = { id: t.id, dataRef: t.dataRef }, r = gt(e, (i) => [...i, n]);
1936
+ return e.activeOptionIndex === null && e.dataRef.current.isSelected(t.dataRef.current.value) && (r.activeOptionIndex = r.options.indexOf(n)), { ...e, ...r };
1937
+ }, 6: (e, t) => {
1938
+ let n = gt(e, (r) => {
1939
+ let i = r.findIndex((a) => a.id === t.id);
1940
+ return i !== -1 && r.splice(i, 1), r;
1941
+ });
1942
+ return { ...e, ...n, activationTrigger: 1 };
1943
+ }, 7: (e, t) => ({ ...e, labelId: t.id }) }, Nt = ze(null);
1944
+ Nt.displayName = "ListboxActionsContext";
1945
+ function Ze(e) {
1946
+ let t = Ke(Nt);
1947
+ if (t === null) {
1948
+ let n = new Error(`<${e} /> is missing a parent <Listbox /> component.`);
1949
+ throw Error.captureStackTrace && Error.captureStackTrace(n, Ze), n;
1950
+ }
1951
+ return t;
1952
+ }
1953
+ let Mt = ze(null);
1954
+ Mt.displayName = "ListboxDataContext";
1955
+ function Je(e) {
1956
+ let t = Ke(Mt);
1957
+ if (t === null) {
1958
+ let n = new Error(`<${e} /> is missing a parent <Listbox /> component.`);
1959
+ throw Error.captureStackTrace && Error.captureStackTrace(n, Je), n;
1960
+ }
1961
+ return t;
1962
+ }
1963
+ function La(e, t) {
1964
+ return ee(t.type, Aa, e, t);
1965
+ }
1966
+ let Na = je;
1967
+ function Ma(e, t) {
1968
+ let { value: n, defaultValue: r, form: i, name: a, onChange: o, by: c = (g, O) => g === O, disabled: f = !1, horizontal: b = !1, multiple: h = !1, ...m } = e;
1969
+ const l = b ? "horizontal" : "vertical";
1970
+ let u = ge(t), [s = h ? [] : void 0, d] = mr(n, o, r), [p, v] = nn(La, { dataRef: rn(), listboxState: 1, options: [], searchQuery: "", labelId: null, activeOptionIndex: null, activationTrigger: 1 }), C = A({ static: !1, hold: !1 }), x = A(null), y = A(null), V = A(null), D = k(typeof c == "string" ? (g, O) => {
1971
+ let P = c;
1972
+ return (g == null ? void 0 : g[P]) === (O == null ? void 0 : O[P]);
1973
+ } : c), j = on((g) => ee(L.mode, { 1: () => s.some((O) => D(O, g)), 0: () => D(s, g) }), [s]), L = G(() => ({ ...p, value: s, disabled: f, mode: h ? 1 : 0, orientation: l, compare: D, isSelected: j, optionsPropsRef: C, labelRef: x, buttonRef: y, optionsRef: V }), [s, f, h, p]);
1974
+ z(() => {
1975
+ p.dataRef.current = L;
1976
+ }, [L]), ar([L.buttonRef, L.optionsRef], (g, O) => {
1977
+ var P;
1978
+ v({ type: 1 }), ir(O, It.Loose) || (g.preventDefault(), (P = L.buttonRef.current) == null || P.focus());
1979
+ }, L.listboxState === 0);
1980
+ let S = G(() => ({ open: L.listboxState === 0, disabled: f, value: s }), [L, f, s]), H = k((g) => {
1981
+ let O = L.options.find((P) => P.id === g);
1982
+ O && q(O.dataRef.current.value);
1983
+ }), pe = k(() => {
1984
+ if (L.activeOptionIndex !== null) {
1985
+ let { dataRef: g, id: O } = L.options[L.activeOptionIndex];
1986
+ q(g.current.value), v({ type: 2, focus: F.Specific, id: O });
1987
+ }
1988
+ }), ke = k(() => v({ type: 0 })), I = k(() => v({ type: 1 })), le = k((g, O, P) => g === F.Specific ? v({ type: 2, focus: F.Specific, id: O, trigger: P }) : v({ type: 2, focus: g, trigger: P })), X = k((g, O) => (v({ type: 5, id: g, dataRef: O }), () => v({ type: 6, id: g }))), se = k((g) => (v({ type: 7, id: g }), () => v({ type: 7, id: null }))), q = k((g) => ee(L.mode, { 0() {
1989
+ return d == null ? void 0 : d(g);
1990
+ }, 1() {
1991
+ let O = L.value.slice(), P = O.findIndex((ie) => D(ie, g));
1992
+ return P === -1 ? O.push(g) : O.splice(P, 1), d == null ? void 0 : d(O);
1993
+ } })), re = k((g) => v({ type: 3, value: g })), Z = k(() => v({ type: 4 })), we = G(() => ({ onChange: q, registerOption: X, registerLabel: se, goToOption: le, closeListbox: I, openListbox: ke, selectActiveOption: pe, selectOption: H, search: re, clearSearch: Z }), []), Ne = { ref: u }, te = A(null), Pe = Le();
1994
+ return oe(() => {
1995
+ te.current && r !== void 0 && Pe.addEventListener(te.current, "reset", () => {
1996
+ d == null || d(r);
1997
+ });
1998
+ }, [te, d]), J.createElement(Nt.Provider, { value: we }, J.createElement(Mt.Provider, { value: L }, J.createElement(vr, { value: ee(L.listboxState, { 0: Oe.Open, 1: Oe.Closed }) }, a != null && s != null && Ct({ [a]: s }).map(([g, O], P) => J.createElement(fr, { features: Pt.Hidden, ref: P === 0 ? (ie) => {
1999
+ var Ee;
2000
+ te.current = (Ee = ie == null ? void 0 : ie.closest("form")) != null ? Ee : null;
2001
+ } : void 0, ...ut({ key: g, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: i, name: g, value: O }) })), ce({ ourProps: Ne, theirProps: m, slot: S, defaultTag: Na, name: "Listbox" }))));
2002
+ }
2003
+ let Fa = "button";
2004
+ function Da(e, t) {
2005
+ var n;
2006
+ let r = Se(), { id: i = `headlessui-listbox-button-${r}`, ...a } = e, o = Je("Listbox.Button"), c = Ze("Listbox.Button"), f = ge(o.buttonRef, t), b = Le(), h = k((p) => {
2007
+ switch (p.key) {
2008
+ case M.Space:
2009
+ case M.Enter:
2010
+ case M.ArrowDown:
2011
+ p.preventDefault(), c.openListbox(), b.nextFrame(() => {
2012
+ o.value || c.goToOption(F.First);
2013
+ });
2014
+ break;
2015
+ case M.ArrowUp:
2016
+ p.preventDefault(), c.openListbox(), b.nextFrame(() => {
2017
+ o.value || c.goToOption(F.Last);
2018
+ });
2019
+ break;
2020
+ }
2021
+ }), m = k((p) => {
2022
+ switch (p.key) {
2023
+ case M.Space:
2024
+ p.preventDefault();
2025
+ break;
2026
+ }
2027
+ }), l = k((p) => {
2028
+ if (cr(p.currentTarget))
2029
+ return p.preventDefault();
2030
+ o.listboxState === 0 ? (c.closeListbox(), b.nextFrame(() => {
2031
+ var v;
2032
+ return (v = o.buttonRef.current) == null ? void 0 : v.focus({ preventScroll: !0 });
2033
+ })) : (p.preventDefault(), c.openListbox());
2034
+ }), u = Qe(() => {
2035
+ if (o.labelId)
2036
+ return [o.labelId, i].join(" ");
2037
+ }, [o.labelId, i]), s = G(() => ({ open: o.listboxState === 0, disabled: o.disabled, value: o.value }), [o]), d = { ref: f, id: i, type: lr(e, o.buttonRef), "aria-haspopup": "listbox", "aria-controls": (n = o.optionsRef.current) == null ? void 0 : n.id, "aria-expanded": o.listboxState === 0, "aria-labelledby": u, disabled: o.disabled, onKeyDown: h, onKeyUp: m, onClick: l };
2038
+ return ce({ ourProps: d, theirProps: a, slot: s, defaultTag: Fa, name: "Listbox.Button" });
2039
+ }
2040
+ let Wa = "label";
2041
+ function Va(e, t) {
2042
+ let n = Se(), { id: r = `headlessui-listbox-label-${n}`, ...i } = e, a = Je("Listbox.Label"), o = Ze("Listbox.Label"), c = ge(a.labelRef, t);
2043
+ z(() => o.registerLabel(r), [r]);
2044
+ let f = k(() => {
2045
+ var h;
2046
+ return (h = a.buttonRef.current) == null ? void 0 : h.focus({ preventScroll: !0 });
2047
+ }), b = G(() => ({ open: a.listboxState === 0, disabled: a.disabled }), [a]);
2048
+ return ce({ ourProps: { ref: c, id: r, onClick: f }, theirProps: i, slot: b, defaultTag: Wa, name: "Listbox.Label" });
2049
+ }
2050
+ let $a = "ul", Ba = He.RenderStrategy | He.Static;
2051
+ function Ua(e, t) {
2052
+ var n;
2053
+ let r = Se(), { id: i = `headlessui-listbox-options-${r}`, ...a } = e, o = Je("Listbox.Options"), c = Ze("Listbox.Options"), f = ge(o.optionsRef, t), b = Le(), h = Le(), m = br(), l = (() => m !== null ? (m & Oe.Open) === Oe.Open : o.listboxState === 0)();
2054
+ oe(() => {
2055
+ var v;
2056
+ let C = o.optionsRef.current;
2057
+ C && o.listboxState === 0 && C !== ((v = dt(C)) == null ? void 0 : v.activeElement) && C.focus({ preventScroll: !0 });
2058
+ }, [o.listboxState, o.optionsRef]);
2059
+ let u = k((v) => {
2060
+ switch (h.dispose(), v.key) {
2061
+ case M.Space:
2062
+ if (o.searchQuery !== "")
2063
+ return v.preventDefault(), v.stopPropagation(), c.search(v.key);
2064
+ case M.Enter:
2065
+ if (v.preventDefault(), v.stopPropagation(), o.activeOptionIndex !== null) {
2066
+ let { dataRef: C } = o.options[o.activeOptionIndex];
2067
+ c.onChange(C.current.value);
2068
+ }
2069
+ o.mode === 0 && (c.closeListbox(), Ae().nextFrame(() => {
2070
+ var C;
2071
+ return (C = o.buttonRef.current) == null ? void 0 : C.focus({ preventScroll: !0 });
2072
+ }));
2073
+ break;
2074
+ case ee(o.orientation, { vertical: M.ArrowDown, horizontal: M.ArrowRight }):
2075
+ return v.preventDefault(), v.stopPropagation(), c.goToOption(F.Next);
2076
+ case ee(o.orientation, { vertical: M.ArrowUp, horizontal: M.ArrowLeft }):
2077
+ return v.preventDefault(), v.stopPropagation(), c.goToOption(F.Previous);
2078
+ case M.Home:
2079
+ case M.PageUp:
2080
+ return v.preventDefault(), v.stopPropagation(), c.goToOption(F.First);
2081
+ case M.End:
2082
+ case M.PageDown:
2083
+ return v.preventDefault(), v.stopPropagation(), c.goToOption(F.Last);
2084
+ case M.Escape:
2085
+ return v.preventDefault(), v.stopPropagation(), c.closeListbox(), b.nextFrame(() => {
2086
+ var C;
2087
+ return (C = o.buttonRef.current) == null ? void 0 : C.focus({ preventScroll: !0 });
2088
+ });
2089
+ case M.Tab:
2090
+ v.preventDefault(), v.stopPropagation();
2091
+ break;
2092
+ default:
2093
+ v.key.length === 1 && (c.search(v.key), h.setTimeout(() => c.clearSearch(), 350));
2094
+ break;
2095
+ }
2096
+ }), s = Qe(() => {
2097
+ var v, C, x;
2098
+ return (x = (v = o.labelRef.current) == null ? void 0 : v.id) != null ? x : (C = o.buttonRef.current) == null ? void 0 : C.id;
2099
+ }, [o.labelRef.current, o.buttonRef.current]), d = G(() => ({ open: o.listboxState === 0 }), [o]), p = { "aria-activedescendant": o.activeOptionIndex === null || (n = o.options[o.activeOptionIndex]) == null ? void 0 : n.id, "aria-multiselectable": o.mode === 1 ? !0 : void 0, "aria-labelledby": s, "aria-orientation": o.orientation, id: i, onKeyDown: u, role: "listbox", tabIndex: 0, ref: f };
2100
+ return ce({ ourProps: p, theirProps: a, slot: d, defaultTag: $a, features: Ba, visible: l, name: "Listbox.Options" });
2101
+ }
2102
+ let ja = "li";
2103
+ function qa(e, t) {
2104
+ let n = Se(), { id: r = `headlessui-listbox-option-${n}`, disabled: i = !1, value: a, ...o } = e, c = Je("Listbox.Option"), f = Ze("Listbox.Option"), b = c.activeOptionIndex !== null ? c.options[c.activeOptionIndex].id === r : !1, h = c.isSelected(a), m = A(null), l = _a(m), u = We({ disabled: i, value: a, domRef: m, get textValue() {
2105
+ return l();
2106
+ } }), s = ge(t, m);
2107
+ z(() => {
2108
+ if (c.listboxState !== 0 || !b || c.activationTrigger === 0)
2109
+ return;
2110
+ let D = Ae();
2111
+ return D.requestAnimationFrame(() => {
2112
+ var j, L;
2113
+ (L = (j = m.current) == null ? void 0 : j.scrollIntoView) == null || L.call(j, { block: "nearest" });
2114
+ }), D.dispose;
2115
+ }, [m, b, c.listboxState, c.activationTrigger, c.activeOptionIndex]), z(() => f.registerOption(r, u), [u, r]);
2116
+ let d = k((D) => {
2117
+ if (i)
2118
+ return D.preventDefault();
2119
+ f.onChange(a), c.mode === 0 && (f.closeListbox(), Ae().nextFrame(() => {
2120
+ var j;
2121
+ return (j = c.buttonRef.current) == null ? void 0 : j.focus({ preventScroll: !0 });
2122
+ }));
2123
+ }), p = k(() => {
2124
+ if (i)
2125
+ return f.goToOption(F.Nothing);
2126
+ f.goToOption(F.Specific, r);
2127
+ }), v = hr(), C = k((D) => v.update(D)), x = k((D) => {
2128
+ v.wasMoved(D) && (i || b || f.goToOption(F.Specific, r, 0));
2129
+ }), y = k((D) => {
2130
+ v.wasMoved(D) && (i || b && f.goToOption(F.Nothing));
2131
+ }), V = G(() => ({ active: b, selected: h, disabled: i }), [b, h, i]);
2132
+ return ce({ ourProps: { id: r, ref: s, role: "option", tabIndex: i === !0 ? void 0 : -1, "aria-disabled": i === !0 ? !0 : void 0, "aria-selected": h, disabled: void 0, onClick: d, onFocus: p, onPointerEnter: C, onMouseEnter: C, onPointerMove: x, onMouseMove: x, onPointerLeave: y, onMouseLeave: y }, theirProps: o, slot: V, defaultTag: ja, name: "Listbox.Option" });
2133
+ }
2134
+ let Ha = de(Ma), za = de(Da), Ka = de(Va), Ga = de(Ua), Ya = de(qa), Qa = Object.assign(Ha, { Button: za, Label: Ka, Options: Ga, Option: Ya });
2135
+ const Xa = _e((e, t) => /* @__PURE__ */ U(Qa.Option, { ref: t, className: e.className, value: e.value, disabled: e.disable, children: e.children }));
2136
+ Xa.displayName = "SelectOption";
2137
+ const Za = _e((e, t) => /* @__PURE__ */ U(Ea.Option, { ref: t, className: e.className, value: e.value, disabled: e.disable, children: e.children }));
2138
+ Za.displayName = "Option";
2139
+ const Ja = "_textInputWrapper_kudnh_1", el = "_textInput_kudnh_1", tn = {
2140
+ textInputWrapper: Ja,
2141
+ textInput: el
2142
+ };
2143
+ J.memo(
2144
+ _e(
2145
+ ({ themeColor: e = "", style: t = {}, className: n = "", onFocus: r, onBlur: i, ...a }, o) => {
2146
+ const [c, f] = xe(!1);
2147
+ let b = {};
2148
+ const h = [tn.textInput, n].filter(Boolean).join(" "), m = () => {
2149
+ f(!0);
2150
+ }, l = () => {
2151
+ f(!1);
2152
+ };
2153
+ return b = {
2154
+ borderBottomColor: c && e != "#ffffff" ? e : ""
2155
+ }, /* @__PURE__ */ U("div", { className: tn.textInputWrapper, children: /* @__PURE__ */ U(
2156
+ "input",
2157
+ {
2158
+ type: "text",
2159
+ "data-testid": "textbox-input",
2160
+ ref: o,
2161
+ className: h,
2162
+ onFocus: m,
2163
+ onBlur: l,
2164
+ style: { ...b, ...t },
2165
+ ...a
2166
+ }
2167
+ ) });
2168
+ }
2169
+ )
2170
+ );
2171
+ export {
2172
+ Za as Option,
2173
+ rl as QuickSelect,
2174
+ Xa as SelectOption
2175
+ };