kilya-ui 0.1.2 → 0.1.4

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.
@@ -1,16 +1,19 @@
1
- import ae, { useDebugValue as gr, createElement as gt, useRef as bt, useContext as yt } from "react";
2
- var _e = { exports: {} }, we = {};
3
- var br;
4
- function vt() {
5
- if (br) return we;
6
- br = 1;
7
- var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), r = /* @__PURE__ */ Symbol.for("react.fragment");
8
- function t(o, n, s) {
1
+ import Re, { useDebugValue as Ft, createElement as Br, useRef as ot, useContext as Vr, useState as pe, useCallback as J, useEffect as ve, useMemo as Je } from "react";
2
+ function Hr(e) {
3
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
+ }
5
+ var Ve = { exports: {} }, De = {};
6
+ var Mt;
7
+ function Gr() {
8
+ if (Mt) return De;
9
+ Mt = 1;
10
+ var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
11
+ function r(o, n, s) {
9
12
  var c = null;
10
13
  if (s !== void 0 && (c = "" + s), n.key !== void 0 && (c = "" + n.key), "key" in n) {
11
14
  s = {};
12
- for (var d in n)
13
- d !== "key" && (s[d] = n[d]);
15
+ for (var u in n)
16
+ u !== "key" && (s[u] = n[u]);
14
17
  } else s = n;
15
18
  return n = s.ref, {
16
19
  $$typeof: e,
@@ -20,339 +23,339 @@ function vt() {
20
23
  props: s
21
24
  };
22
25
  }
23
- return we.Fragment = r, we.jsx = t, we.jsxs = t, we;
24
- }
25
- var ke = {};
26
- var yr;
27
- function wt() {
28
- return yr || (yr = 1, process.env.NODE_ENV !== "production" && (function() {
29
- function e(a) {
30
- if (a == null) return null;
31
- if (typeof a == "function")
32
- return a.$$typeof === He ? null : a.displayName || a.name || null;
33
- if (typeof a == "string") return a;
34
- switch (a) {
35
- case j:
26
+ return De.Fragment = t, De.jsx = r, De.jsxs = r, De;
27
+ }
28
+ var Fe = {};
29
+ var Wt;
30
+ function qr() {
31
+ return Wt || (Wt = 1, process.env.NODE_ENV !== "production" && (function() {
32
+ function e(l) {
33
+ if (l == null) return null;
34
+ if (typeof l == "function")
35
+ return l.$$typeof === oe ? null : l.displayName || l.name || null;
36
+ if (typeof l == "string") return l;
37
+ switch (l) {
38
+ case T:
36
39
  return "Fragment";
37
- case _:
40
+ case $:
38
41
  return "Profiler";
39
- case O:
42
+ case A:
40
43
  return "StrictMode";
41
- case g:
44
+ case S:
42
45
  return "Suspense";
43
- case p:
46
+ case y:
44
47
  return "SuspenseList";
45
- case qe:
48
+ case re:
46
49
  return "Activity";
47
50
  }
48
- if (typeof a == "object")
49
- switch (typeof a.tag == "number" && console.error(
51
+ if (typeof l == "object")
52
+ switch (typeof l.tag == "number" && console.error(
50
53
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
51
- ), a.$$typeof) {
52
- case A:
54
+ ), l.$$typeof) {
55
+ case C:
53
56
  return "Portal";
54
- case x:
55
- return a.displayName || "Context";
56
- case S:
57
- return (a._context.displayName || "Context") + ".Consumer";
57
+ case _:
58
+ return l.displayName || "Context";
58
59
  case R:
59
- var u = a.render;
60
- return a = a.displayName, a || (a = u.displayName || u.name || "", a = a !== "" ? "ForwardRef(" + a + ")" : "ForwardRef"), a;
61
- case Y:
62
- return u = a.displayName || null, u !== null ? u : e(a.type) || "Memo";
63
- case V:
64
- u = a._payload, a = a._init;
60
+ return (l._context.displayName || "Context") + ".Consumer";
61
+ case P:
62
+ var f = l.render;
63
+ return l = l.displayName, l || (l = f.displayName || f.name || "", l = l !== "" ? "ForwardRef(" + l + ")" : "ForwardRef"), l;
64
+ case q:
65
+ return f = l.displayName || null, f !== null ? f : e(l.type) || "Memo";
66
+ case U:
67
+ f = l._payload, l = l._init;
65
68
  try {
66
- return e(a(u));
69
+ return e(l(f));
67
70
  } catch {
68
71
  }
69
72
  }
70
73
  return null;
71
74
  }
72
- function r(a) {
73
- return "" + a;
75
+ function t(l) {
76
+ return "" + l;
74
77
  }
75
- function t(a) {
78
+ function r(l) {
76
79
  try {
77
- r(a);
78
- var u = !1;
80
+ t(l);
81
+ var f = !1;
79
82
  } catch {
80
- u = !0;
83
+ f = !0;
81
84
  }
82
- if (u) {
83
- u = console;
84
- var E = u.error, T = typeof Symbol == "function" && Symbol.toStringTag && a[Symbol.toStringTag] || a.constructor.name || "Object";
85
- return E.call(
86
- u,
85
+ if (f) {
86
+ f = console;
87
+ var O = f.error, I = typeof Symbol == "function" && Symbol.toStringTag && l[Symbol.toStringTag] || l.constructor.name || "Object";
88
+ return O.call(
89
+ f,
87
90
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
88
- T
89
- ), r(a);
91
+ I
92
+ ), t(l);
90
93
  }
91
94
  }
92
- function o(a) {
93
- if (a === j) return "<>";
94
- if (typeof a == "object" && a !== null && a.$$typeof === V)
95
+ function o(l) {
96
+ if (l === T) return "<>";
97
+ if (typeof l == "object" && l !== null && l.$$typeof === U)
95
98
  return "<...>";
96
99
  try {
97
- var u = e(a);
98
- return u ? "<" + u + ">" : "<...>";
100
+ var f = e(l);
101
+ return f ? "<" + f + ">" : "<...>";
99
102
  } catch {
100
103
  return "<...>";
101
104
  }
102
105
  }
103
106
  function n() {
104
- var a = me.A;
105
- return a === null ? null : a.getOwner();
107
+ var l = V.A;
108
+ return l === null ? null : l.getOwner();
106
109
  }
107
110
  function s() {
108
111
  return Error("react-stack-top-frame");
109
112
  }
110
- function c(a) {
111
- if (ge.call(a, "key")) {
112
- var u = Object.getOwnPropertyDescriptor(a, "key").get;
113
- if (u && u.isReactWarning) return !1;
113
+ function c(l) {
114
+ if (Z.call(l, "key")) {
115
+ var f = Object.getOwnPropertyDescriptor(l, "key").get;
116
+ if (f && f.isReactWarning) return !1;
114
117
  }
115
- return a.key !== void 0;
118
+ return l.key !== void 0;
116
119
  }
117
- function d(a, u) {
118
- function E() {
119
- Ee || (Ee = !0, console.error(
120
+ function u(l, f) {
121
+ function O() {
122
+ xe || (xe = !0, console.error(
120
123
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
121
- u
124
+ f
122
125
  ));
123
126
  }
124
- E.isReactWarning = !0, Object.defineProperty(a, "key", {
125
- get: E,
127
+ O.isReactWarning = !0, Object.defineProperty(l, "key", {
128
+ get: O,
126
129
  configurable: !0
127
130
  });
128
131
  }
129
- function l() {
130
- var a = e(this.type);
131
- return oe[a] || (oe[a] = !0, console.error(
132
+ function d() {
133
+ var l = e(this.type);
134
+ return ae[l] || (ae[l] = !0, console.error(
132
135
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
133
- )), a = this.props.ref, a !== void 0 ? a : null;
136
+ )), l = this.props.ref, l !== void 0 ? l : null;
134
137
  }
135
- function w(a, u, E, T, U, q) {
136
- var C = E.ref;
137
- return a = {
138
- $$typeof: $,
139
- type: a,
140
- key: u,
141
- props: E,
142
- _owner: T
143
- }, (C !== void 0 ? C : null) !== null ? Object.defineProperty(a, "ref", {
138
+ function h(l, f, O, I, se, ie) {
139
+ var z = O.ref;
140
+ return l = {
141
+ $$typeof: E,
142
+ type: l,
143
+ key: f,
144
+ props: O,
145
+ _owner: I
146
+ }, (z !== void 0 ? z : null) !== null ? Object.defineProperty(l, "ref", {
144
147
  enumerable: !1,
145
- get: l
146
- }) : Object.defineProperty(a, "ref", { enumerable: !1, value: null }), a._store = {}, Object.defineProperty(a._store, "validated", {
148
+ get: d
149
+ }) : Object.defineProperty(l, "ref", { enumerable: !1, value: null }), l._store = {}, Object.defineProperty(l._store, "validated", {
147
150
  configurable: !1,
148
151
  enumerable: !1,
149
152
  writable: !0,
150
153
  value: 0
151
- }), Object.defineProperty(a, "_debugInfo", {
154
+ }), Object.defineProperty(l, "_debugInfo", {
152
155
  configurable: !1,
153
156
  enumerable: !1,
154
157
  writable: !0,
155
158
  value: null
156
- }), Object.defineProperty(a, "_debugStack", {
159
+ }), Object.defineProperty(l, "_debugStack", {
157
160
  configurable: !1,
158
161
  enumerable: !1,
159
162
  writable: !0,
160
- value: U
161
- }), Object.defineProperty(a, "_debugTask", {
163
+ value: se
164
+ }), Object.defineProperty(l, "_debugTask", {
162
165
  configurable: !1,
163
166
  enumerable: !1,
164
167
  writable: !0,
165
- value: q
166
- }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
168
+ value: ie
169
+ }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
167
170
  }
168
- function y(a, u, E, T, U, q) {
169
- var C = u.children;
170
- if (C !== void 0)
171
- if (T)
172
- if (Xe(C)) {
173
- for (T = 0; T < C.length; T++)
174
- b(C[T]);
175
- Object.freeze && Object.freeze(C);
171
+ function g(l, f, O, I, se, ie) {
172
+ var z = f.children;
173
+ if (z !== void 0)
174
+ if (I)
175
+ if (ze(z)) {
176
+ for (I = 0; I < z.length; I++)
177
+ m(z[I]);
178
+ Object.freeze && Object.freeze(z);
176
179
  } else
177
180
  console.error(
178
181
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
179
182
  );
180
- else b(C);
181
- if (ge.call(u, "key")) {
182
- C = e(a);
183
- var z = Object.keys(u).filter(function(ve) {
184
- return ve !== "key";
183
+ else m(z);
184
+ if (Z.call(f, "key")) {
185
+ z = e(l);
186
+ var G = Object.keys(f).filter(function(Ie) {
187
+ return Ie !== "key";
185
188
  });
186
- T = 0 < z.length ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}", X[C + T] || (z = 0 < z.length ? "{" + z.join(": ..., ") + ": ...}" : "{}", console.error(
189
+ I = 0 < G.length ? "{key: someKey, " + G.join(": ..., ") + ": ...}" : "{key: someKey}", H[z + I] || (G = 0 < G.length ? "{" + G.join(": ..., ") + ": ...}" : "{}", console.error(
187
190
  `A props object containing a "key" prop is being spread into JSX:
188
191
  let props = %s;
189
192
  <%s {...props} />
190
193
  React keys must be passed directly to JSX without using spread:
191
194
  let props = %s;
192
195
  <%s key={someKey} {...props} />`,
193
- T,
194
- C,
196
+ I,
195
197
  z,
196
- C
197
- ), X[C + T] = !0);
198
+ G,
199
+ z
200
+ ), H[z + I] = !0);
198
201
  }
199
- if (C = null, E !== void 0 && (t(E), C = "" + E), c(u) && (t(u.key), C = "" + u.key), "key" in u) {
200
- E = {};
201
- for (var L in u)
202
- L !== "key" && (E[L] = u[L]);
203
- } else E = u;
204
- return C && d(
205
- E,
206
- typeof a == "function" ? a.displayName || a.name || "Unknown" : a
207
- ), w(
208
- a,
209
- C,
210
- E,
202
+ if (z = null, O !== void 0 && (r(O), z = "" + O), c(f) && (r(f.key), z = "" + f.key), "key" in f) {
203
+ O = {};
204
+ for (var Q in f)
205
+ Q !== "key" && (O[Q] = f[Q]);
206
+ } else O = f;
207
+ return z && u(
208
+ O,
209
+ typeof l == "function" ? l.displayName || l.name || "Unknown" : l
210
+ ), h(
211
+ l,
212
+ z,
213
+ O,
211
214
  n(),
212
- U,
213
- q
215
+ se,
216
+ ie
214
217
  );
215
218
  }
216
- function b(a) {
217
- v(a) ? a._store && (a._store.validated = 1) : typeof a == "object" && a !== null && a.$$typeof === V && (a._payload.status === "fulfilled" ? v(a._payload.value) && a._payload.value._store && (a._payload.value._store.validated = 1) : a._store && (a._store.validated = 1));
219
+ function m(l) {
220
+ v(l) ? l._store && (l._store.validated = 1) : typeof l == "object" && l !== null && l.$$typeof === U && (l._payload.status === "fulfilled" ? v(l._payload.value) && l._payload.value._store && (l._payload.value._store.validated = 1) : l._store && (l._store.validated = 1));
218
221
  }
219
- function v(a) {
220
- return typeof a == "object" && a !== null && a.$$typeof === $;
222
+ function v(l) {
223
+ return typeof l == "object" && l !== null && l.$$typeof === E;
221
224
  }
222
- var m = ae, $ = /* @__PURE__ */ Symbol.for("react.transitional.element"), A = /* @__PURE__ */ Symbol.for("react.portal"), j = /* @__PURE__ */ Symbol.for("react.fragment"), O = /* @__PURE__ */ Symbol.for("react.strict_mode"), _ = /* @__PURE__ */ Symbol.for("react.profiler"), S = /* @__PURE__ */ Symbol.for("react.consumer"), x = /* @__PURE__ */ Symbol.for("react.context"), R = /* @__PURE__ */ Symbol.for("react.forward_ref"), g = /* @__PURE__ */ Symbol.for("react.suspense"), p = /* @__PURE__ */ Symbol.for("react.suspense_list"), Y = /* @__PURE__ */ Symbol.for("react.memo"), V = /* @__PURE__ */ Symbol.for("react.lazy"), qe = /* @__PURE__ */ Symbol.for("react.activity"), He = /* @__PURE__ */ Symbol.for("react.client.reference"), me = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ge = Object.prototype.hasOwnProperty, Xe = Array.isArray, be = console.createTask ? console.createTask : function() {
225
+ var k = Re, E = /* @__PURE__ */ Symbol.for("react.transitional.element"), C = /* @__PURE__ */ Symbol.for("react.portal"), T = /* @__PURE__ */ Symbol.for("react.fragment"), A = /* @__PURE__ */ Symbol.for("react.strict_mode"), $ = /* @__PURE__ */ Symbol.for("react.profiler"), R = /* @__PURE__ */ Symbol.for("react.consumer"), _ = /* @__PURE__ */ Symbol.for("react.context"), P = /* @__PURE__ */ Symbol.for("react.forward_ref"), S = /* @__PURE__ */ Symbol.for("react.suspense"), y = /* @__PURE__ */ Symbol.for("react.suspense_list"), q = /* @__PURE__ */ Symbol.for("react.memo"), U = /* @__PURE__ */ Symbol.for("react.lazy"), re = /* @__PURE__ */ Symbol.for("react.activity"), oe = /* @__PURE__ */ Symbol.for("react.client.reference"), V = k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Z = Object.prototype.hasOwnProperty, ze = Array.isArray, fe = console.createTask ? console.createTask : function() {
223
226
  return null;
224
227
  };
225
- m = {
226
- react_stack_bottom_frame: function(a) {
227
- return a();
228
+ k = {
229
+ react_stack_bottom_frame: function(l) {
230
+ return l();
228
231
  }
229
232
  };
230
- var Ee, oe = {}, ye = m.react_stack_bottom_frame.bind(
231
- m,
233
+ var xe, ae = {}, w = k.react_stack_bottom_frame.bind(
234
+ k,
232
235
  s
233
- )(), M = be(o(s)), X = {};
234
- ke.Fragment = j, ke.jsx = function(a, u, E) {
235
- var T = 1e4 > me.recentlyCreatedOwnerStacks++;
236
- return y(
237
- a,
238
- u,
239
- E,
236
+ )(), W = fe(o(s)), H = {};
237
+ Fe.Fragment = T, Fe.jsx = function(l, f, O) {
238
+ var I = 1e4 > V.recentlyCreatedOwnerStacks++;
239
+ return g(
240
+ l,
241
+ f,
242
+ O,
240
243
  !1,
241
- T ? Error("react-stack-top-frame") : ye,
242
- T ? be(o(a)) : M
244
+ I ? Error("react-stack-top-frame") : w,
245
+ I ? fe(o(l)) : W
243
246
  );
244
- }, ke.jsxs = function(a, u, E) {
245
- var T = 1e4 > me.recentlyCreatedOwnerStacks++;
246
- return y(
247
- a,
248
- u,
249
- E,
247
+ }, Fe.jsxs = function(l, f, O) {
248
+ var I = 1e4 > V.recentlyCreatedOwnerStacks++;
249
+ return g(
250
+ l,
251
+ f,
252
+ O,
250
253
  !0,
251
- T ? Error("react-stack-top-frame") : ye,
252
- T ? be(o(a)) : M
254
+ I ? Error("react-stack-top-frame") : w,
255
+ I ? fe(o(l)) : W
253
256
  );
254
257
  };
255
- })()), ke;
258
+ })()), Fe;
256
259
  }
257
- var vr;
258
- function kt() {
259
- return vr || (vr = 1, process.env.NODE_ENV === "production" ? _e.exports = vt() : _e.exports = wt()), _e.exports;
260
+ var Lt;
261
+ function Ur() {
262
+ return Lt || (Lt = 1, process.env.NODE_ENV === "production" ? Ve.exports = Gr() : Ve.exports = qr()), Ve.exports;
260
263
  }
261
- var B = kt(), D = function() {
262
- return D = Object.assign || function(r) {
263
- for (var t, o = 1, n = arguments.length; o < n; o++) {
264
- t = arguments[o];
265
- for (var s in t) Object.prototype.hasOwnProperty.call(t, s) && (r[s] = t[s]);
264
+ var p = Ur(), B = function() {
265
+ return B = Object.assign || function(t) {
266
+ for (var r, o = 1, n = arguments.length; o < n; o++) {
267
+ r = arguments[o];
268
+ for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
266
269
  }
267
- return r;
268
- }, D.apply(this, arguments);
270
+ return t;
271
+ }, B.apply(this, arguments);
269
272
  };
270
- function se(e, r, t) {
271
- if (t || arguments.length === 2) for (var o = 0, n = r.length, s; o < n; o++)
272
- (s || !(o in r)) && (s || (s = Array.prototype.slice.call(r, 0, o)), s[o] = r[o]);
273
- return e.concat(s || Array.prototype.slice.call(r));
273
+ function we(e, t, r) {
274
+ if (r || arguments.length === 2) for (var o = 0, n = t.length, s; o < n; o++)
275
+ (s || !(o in t)) && (s || (s = Array.prototype.slice.call(t, 0, o)), s[o] = t[o]);
276
+ return e.concat(s || Array.prototype.slice.call(t));
274
277
  }
275
- function St(e) {
276
- var r = /* @__PURE__ */ Object.create(null);
277
- return function(t) {
278
- return r[t] === void 0 && (r[t] = e(t)), r[t];
278
+ function Xr(e) {
279
+ var t = /* @__PURE__ */ Object.create(null);
280
+ return function(r) {
281
+ return t[r] === void 0 && (t[r] = e(r)), t[r];
279
282
  };
280
283
  }
281
- var $t = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, xt = /* @__PURE__ */ St(
284
+ var Jr = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Kr = /* @__PURE__ */ Xr(
282
285
  function(e) {
283
- return $t.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
286
+ return Jr.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
284
287
  }
285
288
  /* Z+1 */
286
- ), P = "-ms-", $e = "-moz-", k = "-webkit-", Vr = "comm", Le = "rule", lr = "decl", Et = "@import", Gr = "@keyframes", Pt = "@layer", Ur = Math.abs, ur = String.fromCharCode, er = Object.assign;
287
- function _t(e, r) {
288
- return I(e, 0) ^ 45 ? (((r << 2 ^ I(e, 0)) << 2 ^ I(e, 1)) << 2 ^ I(e, 2)) << 2 ^ I(e, 3) : 0;
289
+ ), N = "-ms-", Le = "-moz-", j = "-webkit-", mr = "comm", it = "rule", Tt = "decl", Zr = "@import", yr = "@keyframes", Qr = "@layer", vr = Math.abs, Pt = String.fromCharCode, vt = Object.assign;
290
+ function eo(e, t) {
291
+ return L(e, 0) ^ 45 ? (((t << 2 ^ L(e, 0)) << 2 ^ L(e, 1)) << 2 ^ L(e, 2)) << 2 ^ L(e, 3) : 0;
289
292
  }
290
- function qr(e) {
293
+ function wr(e) {
291
294
  return e.trim();
292
295
  }
293
- function H(e, r) {
294
- return (e = r.exec(e)) ? e[0] : e;
296
+ function le(e, t) {
297
+ return (e = t.exec(e)) ? e[0] : e;
295
298
  }
296
- function h(e, r, t) {
297
- return e.replace(r, t);
299
+ function x(e, t, r) {
300
+ return e.replace(t, r);
298
301
  }
299
- function Oe(e, r, t) {
300
- return e.indexOf(r, t);
302
+ function Ke(e, t, r) {
303
+ return e.indexOf(t, r);
301
304
  }
302
- function I(e, r) {
303
- return e.charCodeAt(r) | 0;
305
+ function L(e, t) {
306
+ return e.charCodeAt(t) | 0;
304
307
  }
305
- function ie(e, r, t) {
306
- return e.slice(r, t);
308
+ function Ae(e, t, r) {
309
+ return e.slice(t, r);
307
310
  }
308
- function G(e) {
311
+ function ne(e) {
309
312
  return e.length;
310
313
  }
311
- function Hr(e) {
314
+ function kr(e) {
312
315
  return e.length;
313
316
  }
314
- function Se(e, r) {
315
- return r.push(e), e;
317
+ function We(e, t) {
318
+ return t.push(e), e;
316
319
  }
317
- function Rt(e, r) {
318
- return e.map(r).join("");
320
+ function to(e, t) {
321
+ return e.map(t).join("");
319
322
  }
320
- function wr(e, r) {
321
- return e.filter(function(t) {
322
- return !H(t, r);
323
+ function Yt(e, t) {
324
+ return e.filter(function(r) {
325
+ return !le(r, t);
323
326
  });
324
327
  }
325
- var Be = 1, ce = 1, Xr = 0, F = 0, N = 0, pe = "";
326
- function We(e, r, t, o, n, s, c, d) {
327
- return { value: e, root: r, parent: t, type: o, props: n, children: s, line: Be, column: ce, length: c, return: "", siblings: d };
328
+ var ct = 1, _e = 1, xr = 0, K = 0, D = 0, Oe = "";
329
+ function lt(e, t, r, o, n, s, c, u) {
330
+ return { value: e, root: t, parent: r, type: o, props: n, children: s, line: ct, column: _e, length: c, return: "", siblings: u };
328
331
  }
329
- function Z(e, r) {
330
- return er(We("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, r);
332
+ function de(e, t) {
333
+ return vt(lt("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
331
334
  }
332
- function ne(e) {
335
+ function $e(e) {
333
336
  for (; e.root; )
334
- e = Z(e.root, { children: [e] });
335
- Se(e, e.siblings);
337
+ e = de(e.root, { children: [e] });
338
+ We(e, e.siblings);
336
339
  }
337
- function Ct() {
338
- return N;
340
+ function ro() {
341
+ return D;
339
342
  }
340
- function At() {
341
- return N = F > 0 ? I(pe, --F) : 0, ce--, N === 10 && (ce = 1, Be--), N;
343
+ function oo() {
344
+ return D = K > 0 ? L(Oe, --K) : 0, _e--, D === 10 && (_e = 1, ct--), D;
342
345
  }
343
- function W() {
344
- return N = F < Xr ? I(pe, F++) : 0, ce++, N === 10 && (ce = 1, Be++), N;
346
+ function te() {
347
+ return D = K < xr ? L(Oe, K++) : 0, _e++, D === 10 && (_e = 1, ct++), D;
345
348
  }
346
- function ee() {
347
- return I(pe, F);
349
+ function me() {
350
+ return L(Oe, K);
348
351
  }
349
- function Ne() {
350
- return F;
352
+ function Ze() {
353
+ return K;
351
354
  }
352
- function Ye(e, r) {
353
- return ie(pe, e, r);
355
+ function ut(e, t) {
356
+ return Ae(Oe, e, t);
354
357
  }
355
- function rr(e) {
358
+ function wt(e) {
356
359
  switch (e) {
357
360
  // \0 \t \n \r \s whitespace token
358
361
  case 0:
@@ -390,184 +393,184 @@ function rr(e) {
390
393
  }
391
394
  return 0;
392
395
  }
393
- function Tt(e) {
394
- return Be = ce = 1, Xr = G(pe = e), F = 0, [];
396
+ function no(e) {
397
+ return ct = _e = 1, xr = ne(Oe = e), K = 0, [];
395
398
  }
396
- function Ot(e) {
397
- return pe = "", e;
399
+ function ao(e) {
400
+ return Oe = "", e;
398
401
  }
399
- function Je(e) {
400
- return qr(Ye(F - 1, tr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
402
+ function ht(e) {
403
+ return wr(ut(K - 1, kt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
401
404
  }
402
- function Nt(e) {
403
- for (; (N = ee()) && N < 33; )
404
- W();
405
- return rr(e) > 2 || rr(N) > 3 ? "" : " ";
405
+ function so(e) {
406
+ for (; (D = me()) && D < 33; )
407
+ te();
408
+ return wt(e) > 2 || wt(D) > 3 ? "" : " ";
406
409
  }
407
- function It(e, r) {
408
- for (; --r && W() && !(N < 48 || N > 102 || N > 57 && N < 65 || N > 70 && N < 97); )
410
+ function io(e, t) {
411
+ for (; --t && te() && !(D < 48 || D > 102 || D > 57 && D < 65 || D > 70 && D < 97); )
409
412
  ;
410
- return Ye(e, Ne() + (r < 6 && ee() == 32 && W() == 32));
413
+ return ut(e, Ze() + (t < 6 && me() == 32 && te() == 32));
411
414
  }
412
- function tr(e) {
413
- for (; W(); )
414
- switch (N) {
415
+ function kt(e) {
416
+ for (; te(); )
417
+ switch (D) {
415
418
  // ] ) " '
416
419
  case e:
417
- return F;
420
+ return K;
418
421
  // " '
419
422
  case 34:
420
423
  case 39:
421
- e !== 34 && e !== 39 && tr(N);
424
+ e !== 34 && e !== 39 && kt(D);
422
425
  break;
423
426
  // (
424
427
  case 40:
425
- e === 41 && tr(e);
428
+ e === 41 && kt(e);
426
429
  break;
427
430
  // \
428
431
  case 92:
429
- W();
432
+ te();
430
433
  break;
431
434
  }
432
- return F;
435
+ return K;
433
436
  }
434
- function jt(e, r) {
435
- for (; W() && e + N !== 57; )
436
- if (e + N === 84 && ee() === 47)
437
+ function co(e, t) {
438
+ for (; te() && e + D !== 57; )
439
+ if (e + D === 84 && me() === 47)
437
440
  break;
438
- return "/*" + Ye(r, F - 1) + "*" + ur(e === 47 ? e : W());
441
+ return "/*" + ut(t, K - 1) + "*" + Pt(e === 47 ? e : te());
439
442
  }
440
- function Dt(e) {
441
- for (; !rr(ee()); )
442
- W();
443
- return Ye(e, F);
443
+ function lo(e) {
444
+ for (; !wt(me()); )
445
+ te();
446
+ return ut(e, K);
444
447
  }
445
- function zt(e) {
446
- return Ot(Ie("", null, null, null, [""], e = Tt(e), 0, [0], e));
448
+ function uo(e) {
449
+ return ao(Qe("", null, null, null, [""], e = no(e), 0, [0], e));
447
450
  }
448
- function Ie(e, r, t, o, n, s, c, d, l) {
449
- for (var w = 0, y = 0, b = c, v = 0, m = 0, $ = 0, A = 1, j = 1, O = 1, _ = 0, S = "", x = n, R = s, g = o, p = S; j; )
450
- switch ($ = _, _ = W()) {
451
+ function Qe(e, t, r, o, n, s, c, u, d) {
452
+ for (var h = 0, g = 0, m = c, v = 0, k = 0, E = 0, C = 1, T = 1, A = 1, $ = 0, R = "", _ = n, P = s, S = o, y = R; T; )
453
+ switch (E = $, $ = te()) {
451
454
  // (
452
455
  case 40:
453
- if ($ != 108 && I(p, b - 1) == 58) {
454
- Oe(p += h(Je(_), "&", "&\f"), "&\f", Ur(w ? d[w - 1] : 0)) != -1 && (O = -1);
456
+ if (E != 108 && L(y, m - 1) == 58) {
457
+ Ke(y += x(ht($), "&", "&\f"), "&\f", vr(h ? u[h - 1] : 0)) != -1 && (A = -1);
455
458
  break;
456
459
  }
457
460
  // " ' [
458
461
  case 34:
459
462
  case 39:
460
463
  case 91:
461
- p += Je(_);
464
+ y += ht($);
462
465
  break;
463
466
  // \t \n \r \s
464
467
  case 9:
465
468
  case 10:
466
469
  case 13:
467
470
  case 32:
468
- p += Nt($);
471
+ y += so(E);
469
472
  break;
470
473
  // \
471
474
  case 92:
472
- p += It(Ne() - 1, 7);
475
+ y += io(Ze() - 1, 7);
473
476
  continue;
474
477
  // /
475
478
  case 47:
476
- switch (ee()) {
479
+ switch (me()) {
477
480
  case 42:
478
481
  case 47:
479
- Se(Mt(jt(W(), Ne()), r, t, l), l);
482
+ We(po(co(te(), Ze()), t, r, d), d);
480
483
  break;
481
484
  default:
482
- p += "/";
485
+ y += "/";
483
486
  }
484
487
  break;
485
488
  // {
486
- case 123 * A:
487
- d[w++] = G(p) * O;
489
+ case 123 * C:
490
+ u[h++] = ne(y) * A;
488
491
  // } ; \0
489
- case 125 * A:
492
+ case 125 * C:
490
493
  case 59:
491
494
  case 0:
492
- switch (_) {
495
+ switch ($) {
493
496
  // \0 }
494
497
  case 0:
495
498
  case 125:
496
- j = 0;
499
+ T = 0;
497
500
  // ;
498
- case 59 + y:
499
- O == -1 && (p = h(p, /\f/g, "")), m > 0 && G(p) - b && Se(m > 32 ? Sr(p + ";", o, t, b - 1, l) : Sr(h(p, " ", "") + ";", o, t, b - 2, l), l);
501
+ case 59 + g:
502
+ A == -1 && (y = x(y, /\f/g, "")), k > 0 && ne(y) - m && We(k > 32 ? Vt(y + ";", o, r, m - 1, d) : Vt(x(y, " ", "") + ";", o, r, m - 2, d), d);
500
503
  break;
501
504
  // @ ;
502
505
  case 59:
503
- p += ";";
506
+ y += ";";
504
507
  // { rule/at-rule
505
508
  default:
506
- if (Se(g = kr(p, r, t, w, y, n, d, S, x = [], R = [], b, s), s), _ === 123)
507
- if (y === 0)
508
- Ie(p, r, g, g, x, s, b, d, R);
509
+ if (We(S = Bt(y, t, r, h, g, n, u, R, _ = [], P = [], m, s), s), $ === 123)
510
+ if (g === 0)
511
+ Qe(y, t, S, S, _, s, m, u, P);
509
512
  else
510
- switch (v === 99 && I(p, 3) === 110 ? 100 : v) {
513
+ switch (v === 99 && L(y, 3) === 110 ? 100 : v) {
511
514
  // d l m s
512
515
  case 100:
513
516
  case 108:
514
517
  case 109:
515
518
  case 115:
516
- Ie(e, g, g, o && Se(kr(e, g, g, 0, 0, n, d, S, n, x = [], b, R), R), n, R, b, d, o ? x : R);
519
+ Qe(e, S, S, o && We(Bt(e, S, S, 0, 0, n, u, R, n, _ = [], m, P), P), n, P, m, u, o ? _ : P);
517
520
  break;
518
521
  default:
519
- Ie(p, g, g, g, [""], R, 0, d, R);
522
+ Qe(y, S, S, S, [""], P, 0, u, P);
520
523
  }
521
524
  }
522
- w = y = m = 0, A = O = 1, S = p = "", b = c;
525
+ h = g = k = 0, C = A = 1, R = y = "", m = c;
523
526
  break;
524
527
  // :
525
528
  case 58:
526
- b = 1 + G(p), m = $;
529
+ m = 1 + ne(y), k = E;
527
530
  default:
528
- if (A < 1) {
529
- if (_ == 123)
530
- --A;
531
- else if (_ == 125 && A++ == 0 && At() == 125)
531
+ if (C < 1) {
532
+ if ($ == 123)
533
+ --C;
534
+ else if ($ == 125 && C++ == 0 && oo() == 125)
532
535
  continue;
533
536
  }
534
- switch (p += ur(_), _ * A) {
537
+ switch (y += Pt($), $ * C) {
535
538
  // &
536
539
  case 38:
537
- O = y > 0 ? 1 : (p += "\f", -1);
540
+ A = g > 0 ? 1 : (y += "\f", -1);
538
541
  break;
539
542
  // ,
540
543
  case 44:
541
- d[w++] = (G(p) - 1) * O, O = 1;
544
+ u[h++] = (ne(y) - 1) * A, A = 1;
542
545
  break;
543
546
  // @
544
547
  case 64:
545
- ee() === 45 && (p += Je(W())), v = ee(), y = b = G(S = p += Dt(Ne())), _++;
548
+ me() === 45 && (y += ht(te())), v = me(), g = m = ne(R = y += lo(Ze())), $++;
546
549
  break;
547
550
  // -
548
551
  case 45:
549
- $ === 45 && G(p) == 2 && (A = 0);
552
+ E === 45 && ne(y) == 2 && (C = 0);
550
553
  }
551
554
  }
552
555
  return s;
553
556
  }
554
- function kr(e, r, t, o, n, s, c, d, l, w, y, b) {
555
- for (var v = n - 1, m = n === 0 ? s : [""], $ = Hr(m), A = 0, j = 0, O = 0; A < o; ++A)
556
- for (var _ = 0, S = ie(e, v + 1, v = Ur(j = c[A])), x = e; _ < $; ++_)
557
- (x = qr(j > 0 ? m[_] + " " + S : h(S, /&\f/g, m[_]))) && (l[O++] = x);
558
- return We(e, r, t, n === 0 ? Le : d, l, w, y, b);
557
+ function Bt(e, t, r, o, n, s, c, u, d, h, g, m) {
558
+ for (var v = n - 1, k = n === 0 ? s : [""], E = kr(k), C = 0, T = 0, A = 0; C < o; ++C)
559
+ for (var $ = 0, R = Ae(e, v + 1, v = vr(T = c[C])), _ = e; $ < E; ++$)
560
+ (_ = wr(T > 0 ? k[$] + " " + R : x(R, /&\f/g, k[$]))) && (d[A++] = _);
561
+ return lt(e, t, r, n === 0 ? it : u, d, h, g, m);
559
562
  }
560
- function Mt(e, r, t, o) {
561
- return We(e, r, t, Vr, ur(Ct()), ie(e, 2, -2), 0, o);
563
+ function po(e, t, r, o) {
564
+ return lt(e, t, r, mr, Pt(ro()), Ae(e, 2, -2), 0, o);
562
565
  }
563
- function Sr(e, r, t, o, n) {
564
- return We(e, r, t, lr, ie(e, 0, o), ie(e, o + 1, -1), o, n);
566
+ function Vt(e, t, r, o, n) {
567
+ return lt(e, t, r, Tt, Ae(e, 0, o), Ae(e, o + 1, -1), o, n);
565
568
  }
566
- function Jr(e, r, t) {
567
- switch (_t(e, r)) {
569
+ function $r(e, t, r) {
570
+ switch (eo(e, t)) {
568
571
  // color-adjust
569
572
  case 5103:
570
- return k + "print-" + e + e;
573
+ return j + "print-" + e + e;
571
574
  // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
572
575
  case 5737:
573
576
  case 4201:
@@ -597,95 +600,95 @@ function Jr(e, r, t) {
597
600
  case 5365:
598
601
  case 5621:
599
602
  case 3829:
600
- return k + e + e;
603
+ return j + e + e;
601
604
  // tab-size
602
605
  case 4789:
603
- return $e + e + e;
606
+ return Le + e + e;
604
607
  // appearance, user-select, transform, hyphens, text-size-adjust
605
608
  case 5349:
606
609
  case 4246:
607
610
  case 4810:
608
611
  case 6968:
609
612
  case 2756:
610
- return k + e + $e + e + P + e + e;
613
+ return j + e + Le + e + N + e + e;
611
614
  // writing-mode
612
615
  case 5936:
613
- switch (I(e, r + 11)) {
616
+ switch (L(e, t + 11)) {
614
617
  // vertical-l(r)
615
618
  case 114:
616
- return k + e + P + h(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
619
+ return j + e + N + x(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
617
620
  // vertical-r(l)
618
621
  case 108:
619
- return k + e + P + h(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
622
+ return j + e + N + x(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
620
623
  // horizontal(-)tb
621
624
  case 45:
622
- return k + e + P + h(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
625
+ return j + e + N + x(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
623
626
  }
624
627
  // flex, flex-direction, scroll-snap-type, writing-mode
625
628
  case 6828:
626
629
  case 4268:
627
630
  case 2903:
628
- return k + e + P + e + e;
631
+ return j + e + N + e + e;
629
632
  // order
630
633
  case 6165:
631
- return k + e + P + "flex-" + e + e;
634
+ return j + e + N + "flex-" + e + e;
632
635
  // align-items
633
636
  case 5187:
634
- return k + e + h(e, /(\w+).+(:[^]+)/, k + "box-$1$2" + P + "flex-$1$2") + e;
637
+ return j + e + x(e, /(\w+).+(:[^]+)/, j + "box-$1$2" + N + "flex-$1$2") + e;
635
638
  // align-self
636
639
  case 5443:
637
- return k + e + P + "flex-item-" + h(e, /flex-|-self/g, "") + (H(e, /flex-|baseline/) ? "" : P + "grid-row-" + h(e, /flex-|-self/g, "")) + e;
640
+ return j + e + N + "flex-item-" + x(e, /flex-|-self/g, "") + (le(e, /flex-|baseline/) ? "" : N + "grid-row-" + x(e, /flex-|-self/g, "")) + e;
638
641
  // align-content
639
642
  case 4675:
640
- return k + e + P + "flex-line-pack" + h(e, /align-content|flex-|-self/g, "") + e;
643
+ return j + e + N + "flex-line-pack" + x(e, /align-content|flex-|-self/g, "") + e;
641
644
  // flex-shrink
642
645
  case 5548:
643
- return k + e + P + h(e, "shrink", "negative") + e;
646
+ return j + e + N + x(e, "shrink", "negative") + e;
644
647
  // flex-basis
645
648
  case 5292:
646
- return k + e + P + h(e, "basis", "preferred-size") + e;
649
+ return j + e + N + x(e, "basis", "preferred-size") + e;
647
650
  // flex-grow
648
651
  case 6060:
649
- return k + "box-" + h(e, "-grow", "") + k + e + P + h(e, "grow", "positive") + e;
652
+ return j + "box-" + x(e, "-grow", "") + j + e + N + x(e, "grow", "positive") + e;
650
653
  // transition
651
654
  case 4554:
652
- return k + h(e, /([^-])(transform)/g, "$1" + k + "$2") + e;
655
+ return j + x(e, /([^-])(transform)/g, "$1" + j + "$2") + e;
653
656
  // cursor
654
657
  case 6187:
655
- return h(h(h(e, /(zoom-|grab)/, k + "$1"), /(image-set)/, k + "$1"), e, "") + e;
658
+ return x(x(x(e, /(zoom-|grab)/, j + "$1"), /(image-set)/, j + "$1"), e, "") + e;
656
659
  // background, background-image
657
660
  case 5495:
658
661
  case 3959:
659
- return h(e, /(image-set\([^]*)/, k + "$1$`$1");
662
+ return x(e, /(image-set\([^]*)/, j + "$1$`$1");
660
663
  // justify-content
661
664
  case 4968:
662
- return h(h(e, /(.+:)(flex-)?(.*)/, k + "box-pack:$3" + P + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + k + e + e;
665
+ return x(x(e, /(.+:)(flex-)?(.*)/, j + "box-pack:$3" + N + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + j + e + e;
663
666
  // justify-self
664
667
  case 4200:
665
- if (!H(e, /flex-|baseline/)) return P + "grid-column-align" + ie(e, r) + e;
668
+ if (!le(e, /flex-|baseline/)) return N + "grid-column-align" + Ae(e, t) + e;
666
669
  break;
667
670
  // grid-template-(columns|rows)
668
671
  case 2592:
669
672
  case 3360:
670
- return P + h(e, "template-", "") + e;
673
+ return N + x(e, "template-", "") + e;
671
674
  // grid-(row|column)-start
672
675
  case 4384:
673
676
  case 3616:
674
- return t && t.some(function(o, n) {
675
- return r = n, H(o.props, /grid-\w+-end/);
676
- }) ? ~Oe(e + (t = t[r].value), "span", 0) ? e : P + h(e, "-start", "") + e + P + "grid-row-span:" + (~Oe(t, "span", 0) ? H(t, /\d+/) : +H(t, /\d+/) - +H(e, /\d+/)) + ";" : P + h(e, "-start", "") + e;
677
+ return r && r.some(function(o, n) {
678
+ return t = n, le(o.props, /grid-\w+-end/);
679
+ }) ? ~Ke(e + (r = r[t].value), "span", 0) ? e : N + x(e, "-start", "") + e + N + "grid-row-span:" + (~Ke(r, "span", 0) ? le(r, /\d+/) : +le(r, /\d+/) - +le(e, /\d+/)) + ";" : N + x(e, "-start", "") + e;
677
680
  // grid-(row|column)-end
678
681
  case 4896:
679
682
  case 4128:
680
- return t && t.some(function(o) {
681
- return H(o.props, /grid-\w+-start/);
682
- }) ? e : P + h(h(e, "-end", "-span"), "span ", "") + e;
683
+ return r && r.some(function(o) {
684
+ return le(o.props, /grid-\w+-start/);
685
+ }) ? e : N + x(x(e, "-end", "-span"), "span ", "") + e;
683
686
  // (margin|padding)-inline-(start|end)
684
687
  case 4095:
685
688
  case 3583:
686
689
  case 4068:
687
690
  case 2532:
688
- return h(e, /(.+)-inline(.+)/, k + "$1$2") + e;
691
+ return x(e, /(.+)-inline(.+)/, j + "$1$2") + e;
689
692
  // (min|max)?(width|height|inline-size|block-size)
690
693
  case 8116:
691
694
  case 7059:
@@ -699,40 +702,40 @@ function Jr(e, r, t) {
699
702
  case 5789:
700
703
  case 5021:
701
704
  case 4765:
702
- if (G(e) - 1 - r > 6)
703
- switch (I(e, r + 1)) {
705
+ if (ne(e) - 1 - t > 6)
706
+ switch (L(e, t + 1)) {
704
707
  // (m)ax-content, (m)in-content
705
708
  case 109:
706
- if (I(e, r + 4) !== 45)
709
+ if (L(e, t + 4) !== 45)
707
710
  break;
708
711
  // (f)ill-available, (f)it-content
709
712
  case 102:
710
- return h(e, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" + $e + (I(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
713
+ return x(e, /(.+:)(.+)-([^]+)/, "$1" + j + "$2-$3$1" + Le + (L(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
711
714
  // (s)tretch
712
715
  case 115:
713
- return ~Oe(e, "stretch", 0) ? Jr(h(e, "stretch", "fill-available"), r, t) + e : e;
716
+ return ~Ke(e, "stretch", 0) ? $r(x(e, "stretch", "fill-available"), t, r) + e : e;
714
717
  }
715
718
  break;
716
719
  // grid-(column|row)
717
720
  case 5152:
718
721
  case 5920:
719
- return h(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(o, n, s, c, d, l, w) {
720
- return P + n + ":" + s + w + (c ? P + n + "-span:" + (d ? l : +l - +s) + w : "") + e;
722
+ return x(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(o, n, s, c, u, d, h) {
723
+ return N + n + ":" + s + h + (c ? N + n + "-span:" + (u ? d : +d - +s) + h : "") + e;
721
724
  });
722
725
  // position: sticky
723
726
  case 4949:
724
- if (I(e, r + 6) === 121)
725
- return h(e, ":", ":" + k) + e;
727
+ if (L(e, t + 6) === 121)
728
+ return x(e, ":", ":" + j) + e;
726
729
  break;
727
730
  // display: (flex|inline-flex|grid|inline-grid)
728
731
  case 6444:
729
- switch (I(e, I(e, 14) === 45 ? 18 : 11)) {
732
+ switch (L(e, L(e, 14) === 45 ? 18 : 11)) {
730
733
  // (inline-)?fle(x)
731
734
  case 120:
732
- return h(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + k + (I(e, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + P + "$2box$3") + e;
735
+ return x(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + j + (L(e, 14) === 45 ? "inline-" : "") + "box$3$1" + j + "$2$3$1" + N + "$2box$3") + e;
733
736
  // (inline-)?gri(d)
734
737
  case 100:
735
- return h(e, ":", ":" + P) + e;
738
+ return x(e, ":", ":" + N) + e;
736
739
  }
737
740
  break;
738
741
  // scroll-margin, scroll-margin-(top|right|bottom|left)
@@ -741,71 +744,71 @@ function Jr(e, r, t) {
741
744
  case 2135:
742
745
  case 3927:
743
746
  case 2391:
744
- return h(e, "scroll-", "scroll-snap-") + e;
747
+ return x(e, "scroll-", "scroll-snap-") + e;
745
748
  }
746
749
  return e;
747
750
  }
748
- function ze(e, r) {
749
- for (var t = "", o = 0; o < e.length; o++)
750
- t += r(e[o], o, e, r) || "";
751
- return t;
751
+ function nt(e, t) {
752
+ for (var r = "", o = 0; o < e.length; o++)
753
+ r += t(e[o], o, e, t) || "";
754
+ return r;
752
755
  }
753
- function Ft(e, r, t, o) {
756
+ function fo(e, t, r, o) {
754
757
  switch (e.type) {
755
- case Pt:
758
+ case Qr:
756
759
  if (e.children.length) break;
757
- case Et:
758
- case lr:
760
+ case Zr:
761
+ case Tt:
759
762
  return e.return = e.return || e.value;
760
- case Vr:
763
+ case mr:
761
764
  return "";
762
- case Gr:
763
- return e.return = e.value + "{" + ze(e.children, o) + "}";
764
- case Le:
765
- if (!G(e.value = e.props.join(","))) return "";
766
- }
767
- return G(t = ze(e.children, o)) ? e.return = e.value + "{" + t + "}" : "";
768
- }
769
- function Lt(e) {
770
- var r = Hr(e);
771
- return function(t, o, n, s) {
772
- for (var c = "", d = 0; d < r; d++)
773
- c += e[d](t, o, n, s) || "";
765
+ case yr:
766
+ return e.return = e.value + "{" + nt(e.children, o) + "}";
767
+ case it:
768
+ if (!ne(e.value = e.props.join(","))) return "";
769
+ }
770
+ return ne(r = nt(e.children, o)) ? e.return = e.value + "{" + r + "}" : "";
771
+ }
772
+ function ho(e) {
773
+ var t = kr(e);
774
+ return function(r, o, n, s) {
775
+ for (var c = "", u = 0; u < t; u++)
776
+ c += e[u](r, o, n, s) || "";
774
777
  return c;
775
778
  };
776
779
  }
777
- function Bt(e) {
778
- return function(r) {
779
- r.root || (r = r.return) && e(r);
780
+ function bo(e) {
781
+ return function(t) {
782
+ t.root || (t = t.return) && e(t);
780
783
  };
781
784
  }
782
- function Wt(e, r, t, o) {
785
+ function go(e, t, r, o) {
783
786
  if (e.length > -1 && !e.return)
784
787
  switch (e.type) {
785
- case lr:
786
- e.return = Jr(e.value, e.length, t);
788
+ case Tt:
789
+ e.return = $r(e.value, e.length, r);
787
790
  return;
788
- case Gr:
789
- return ze([Z(e, { value: h(e.value, "@", "@" + k) })], o);
790
- case Le:
791
+ case yr:
792
+ return nt([de(e, { value: x(e.value, "@", "@" + j) })], o);
793
+ case it:
791
794
  if (e.length)
792
- return Rt(t = e.props, function(n) {
793
- switch (H(n, o = /(::plac\w+|:read-\w+)/)) {
795
+ return to(r = e.props, function(n) {
796
+ switch (le(n, o = /(::plac\w+|:read-\w+)/)) {
794
797
  // :read-(only|write)
795
798
  case ":read-only":
796
799
  case ":read-write":
797
- ne(Z(e, { props: [h(n, /:(read-\w+)/, ":" + $e + "$1")] })), ne(Z(e, { props: [n] })), er(e, { props: wr(t, o) });
800
+ $e(de(e, { props: [x(n, /:(read-\w+)/, ":" + Le + "$1")] })), $e(de(e, { props: [n] })), vt(e, { props: Yt(r, o) });
798
801
  break;
799
802
  // :placeholder
800
803
  case "::placeholder":
801
- ne(Z(e, { props: [h(n, /:(plac\w+)/, ":" + k + "input-$1")] })), ne(Z(e, { props: [h(n, /:(plac\w+)/, ":" + $e + "$1")] })), ne(Z(e, { props: [h(n, /:(plac\w+)/, P + "input-$1")] })), ne(Z(e, { props: [n] })), er(e, { props: wr(t, o) });
804
+ $e(de(e, { props: [x(n, /:(plac\w+)/, ":" + j + "input-$1")] })), $e(de(e, { props: [x(n, /:(plac\w+)/, ":" + Le + "$1")] })), $e(de(e, { props: [x(n, /:(plac\w+)/, N + "input-$1")] })), $e(de(e, { props: [n] })), vt(e, { props: Yt(r, o) });
802
805
  break;
803
806
  }
804
807
  return "";
805
808
  });
806
809
  }
807
810
  }
808
- var Yt = {
811
+ var mo = {
809
812
  animationIterationCount: 1,
810
813
  aspectRatio: 1,
811
814
  borderImageOutset: 1,
@@ -853,10 +856,10 @@ var Yt = {
853
856
  strokeMiterlimit: 1,
854
857
  strokeOpacity: 1,
855
858
  strokeWidth: 1
856
- }, te = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Zr = "active", Kr = "data-styled-version", Ve = "6.1.19", dr = `/*!sc*/
857
- `, Me = typeof window < "u" && typeof document < "u", Vt = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), $r = /invalid hook call/i, Re = /* @__PURE__ */ new Set(), Gt = function(e, r) {
859
+ }, ke = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Sr = "active", Cr = "data-styled-version", dt = "6.1.19", Ot = `/*!sc*/
860
+ `, at = typeof window < "u" && typeof document < "u", yo = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Ht = /invalid hook call/i, He = /* @__PURE__ */ new Set(), vo = function(e, t) {
858
861
  if (process.env.NODE_ENV !== "production") {
859
- var t = r ? ' with the id of "'.concat(r, '"') : "", o = "The component ".concat(e).concat(t, ` has been created dynamically.
862
+ var r = t ? ' with the id of "'.concat(t, '"') : "", o = "The component ".concat(e).concat(r, ` has been created dynamically.
860
863
  `) + `You may see this warning because you've called styled inside another component.
861
864
  To resolve this only create new StyledComponents outside of any render method and function component.
862
865
  See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
@@ -864,66 +867,66 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
864
867
  try {
865
868
  var s = !0;
866
869
  console.error = function(c) {
867
- for (var d = [], l = 1; l < arguments.length; l++) d[l - 1] = arguments[l];
868
- $r.test(c) ? (s = !1, Re.delete(o)) : n.apply(void 0, se([c], d, !1));
869
- }, bt(), s && !Re.has(o) && (console.warn(o), Re.add(o));
870
+ for (var u = [], d = 1; d < arguments.length; d++) u[d - 1] = arguments[d];
871
+ Ht.test(c) ? (s = !1, He.delete(o)) : n.apply(void 0, we([c], u, !1));
872
+ }, ot(), s && !He.has(o) && (console.warn(o), He.add(o));
870
873
  } catch (c) {
871
- $r.test(c.message) && Re.delete(o);
874
+ Ht.test(c.message) && He.delete(o);
872
875
  } finally {
873
876
  console.error = n;
874
877
  }
875
878
  }
876
- }, Ge = Object.freeze([]), le = Object.freeze({});
877
- function Ut(e, r, t) {
878
- return t === void 0 && (t = le), e.theme !== t.theme && e.theme || r || t.theme;
879
+ }, pt = Object.freeze([]), je = Object.freeze({});
880
+ function wo(e, t, r) {
881
+ return r === void 0 && (r = je), e.theme !== r.theme && e.theme || t || r.theme;
879
882
  }
880
- var or = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), qt = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Ht = /(^-|-$)/g;
881
- function xr(e) {
882
- return e.replace(qt, "-").replace(Ht, "");
883
+ var xt = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), ko = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, xo = /(^-|-$)/g;
884
+ function Gt(e) {
885
+ return e.replace(ko, "-").replace(xo, "");
883
886
  }
884
- var Xt = /(a)(d)/gi, Ce = 52, Er = function(e) {
887
+ var $o = /(a)(d)/gi, Ge = 52, qt = function(e) {
885
888
  return String.fromCharCode(e + (e > 25 ? 39 : 97));
886
889
  };
887
- function nr(e) {
888
- var r, t = "";
889
- for (r = Math.abs(e); r > Ce; r = r / Ce | 0) t = Er(r % Ce) + t;
890
- return (Er(r % Ce) + t).replace(Xt, "$1-$2");
890
+ function $t(e) {
891
+ var t, r = "";
892
+ for (t = Math.abs(e); t > Ge; t = t / Ge | 0) r = qt(t % Ge) + r;
893
+ return (qt(t % Ge) + r).replace($o, "$1-$2");
891
894
  }
892
- var Ze, Qr = 5381, K = function(e, r) {
893
- for (var t = r.length; t; ) e = 33 * e ^ r.charCodeAt(--t);
895
+ var bt, Er = 5381, be = function(e, t) {
896
+ for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
894
897
  return e;
895
- }, et = function(e) {
896
- return K(Qr, e);
898
+ }, Rr = function(e) {
899
+ return be(Er, e);
897
900
  };
898
- function Jt(e) {
899
- return nr(et(e) >>> 0);
901
+ function Ar(e) {
902
+ return $t(Rr(e) >>> 0);
900
903
  }
901
- function rt(e) {
904
+ function _r(e) {
902
905
  return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
903
906
  }
904
- function Ke(e) {
907
+ function gt(e) {
905
908
  return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
906
909
  }
907
- var tt = typeof Symbol == "function" && Symbol.for, ot = tt ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, Zt = tt ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, Kt = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Qt = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, nt = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, eo = ((Ze = {})[Zt] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Ze[ot] = nt, Ze);
908
- function Pr(e) {
909
- return ("type" in (r = e) && r.type.$$typeof) === ot ? nt : "$$typeof" in e ? eo[e.$$typeof] : Kt;
910
- var r;
911
- }
912
- var ro = Object.defineProperty, to = Object.getOwnPropertyNames, _r = Object.getOwnPropertySymbols, oo = Object.getOwnPropertyDescriptor, no = Object.getPrototypeOf, Rr = Object.prototype;
913
- function at(e, r, t) {
914
- if (typeof r != "string") {
915
- if (Rr) {
916
- var o = no(r);
917
- o && o !== Rr && at(e, o, t);
910
+ var jr = typeof Symbol == "function" && Symbol.for, Tr = jr ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, So = jr ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, Co = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Eo = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Pr = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Ro = ((bt = {})[So] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, bt[Tr] = Pr, bt);
911
+ function Ut(e) {
912
+ return ("type" in (t = e) && t.type.$$typeof) === Tr ? Pr : "$$typeof" in e ? Ro[e.$$typeof] : Co;
913
+ var t;
914
+ }
915
+ var Ao = Object.defineProperty, _o = Object.getOwnPropertyNames, Xt = Object.getOwnPropertySymbols, jo = Object.getOwnPropertyDescriptor, To = Object.getPrototypeOf, Jt = Object.prototype;
916
+ function Or(e, t, r) {
917
+ if (typeof t != "string") {
918
+ if (Jt) {
919
+ var o = To(t);
920
+ o && o !== Jt && Or(e, o, r);
918
921
  }
919
- var n = to(r);
920
- _r && (n = n.concat(_r(r)));
921
- for (var s = Pr(e), c = Pr(r), d = 0; d < n.length; ++d) {
922
- var l = n[d];
923
- if (!(l in Qt || t && t[l] || c && l in c || s && l in s)) {
924
- var w = oo(r, l);
922
+ var n = _o(t);
923
+ Xt && (n = n.concat(Xt(t)));
924
+ for (var s = Ut(e), c = Ut(t), u = 0; u < n.length; ++u) {
925
+ var d = n[u];
926
+ if (!(d in Eo || r && r[d] || c && d in c || s && d in s)) {
927
+ var h = jo(t, d);
925
928
  try {
926
- ro(e, l, w);
929
+ Ao(e, d, h);
927
930
  } catch {
928
931
  }
929
932
  }
@@ -931,33 +934,33 @@ function at(e, r, t) {
931
934
  }
932
935
  return e;
933
936
  }
934
- function ue(e) {
937
+ function Te(e) {
935
938
  return typeof e == "function";
936
939
  }
937
- function pr(e) {
940
+ function Nt(e) {
938
941
  return typeof e == "object" && "styledComponentId" in e;
939
942
  }
940
- function Q(e, r) {
941
- return e && r ? "".concat(e, " ").concat(r) : e || r || "";
943
+ function ge(e, t) {
944
+ return e && t ? "".concat(e, " ").concat(t) : e || t || "";
942
945
  }
943
- function Cr(e, r) {
946
+ function St(e, t) {
944
947
  if (e.length === 0) return "";
945
- for (var t = e[0], o = 1; o < e.length; o++) t += e[o];
946
- return t;
948
+ for (var r = e[0], o = 1; o < e.length; o++) r += e[o];
949
+ return r;
947
950
  }
948
- function de(e) {
951
+ function Pe(e) {
949
952
  return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
950
953
  }
951
- function ar(e, r, t) {
952
- if (t === void 0 && (t = !1), !t && !de(e) && !Array.isArray(e)) return r;
953
- if (Array.isArray(r)) for (var o = 0; o < r.length; o++) e[o] = ar(e[o], r[o]);
954
- else if (de(r)) for (var o in r) e[o] = ar(e[o], r[o]);
954
+ function Ct(e, t, r) {
955
+ if (r === void 0 && (r = !1), !r && !Pe(e) && !Array.isArray(e)) return t;
956
+ if (Array.isArray(t)) for (var o = 0; o < t.length; o++) e[o] = Ct(e[o], t[o]);
957
+ else if (Pe(t)) for (var o in t) e[o] = Ct(e[o], t[o]);
955
958
  return e;
956
959
  }
957
- function fr(e, r) {
958
- Object.defineProperty(e, "toString", { value: r });
960
+ function zt(e, t) {
961
+ Object.defineProperty(e, "toString", { value: t });
959
962
  }
960
- var ao = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
963
+ var Po = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
961
964
 
962
965
  `, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
963
966
 
@@ -999,362 +1002,362 @@ as for instance in your render method then you may be running into this limitati
999
1002
  `, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
1000
1003
  Has styled-components' style tag been unmounted or altered by another script?
1001
1004
  `, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
1002
- function so() {
1003
- for (var e = [], r = 0; r < arguments.length; r++) e[r] = arguments[r];
1004
- for (var t = e[0], o = [], n = 1, s = e.length; n < s; n += 1) o.push(e[n]);
1005
+ function Oo() {
1006
+ for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
1007
+ for (var r = e[0], o = [], n = 1, s = e.length; n < s; n += 1) o.push(e[n]);
1005
1008
  return o.forEach(function(c) {
1006
- t = t.replace(/%[a-z]/, c);
1007
- }), t;
1009
+ r = r.replace(/%[a-z]/, c);
1010
+ }), r;
1008
1011
  }
1009
- function fe(e) {
1010
- for (var r = [], t = 1; t < arguments.length; t++) r[t - 1] = arguments[t];
1011
- return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(r.length > 0 ? " Args: ".concat(r.join(", ")) : "")) : new Error(so.apply(void 0, se([ao[e]], r, !1)).trim());
1012
+ function Ne(e) {
1013
+ for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
1014
+ return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(Oo.apply(void 0, we([Po[e]], t, !1)).trim());
1012
1015
  }
1013
- var io = (function() {
1014
- function e(r) {
1015
- this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = r;
1016
+ var No = (function() {
1017
+ function e(t) {
1018
+ this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
1016
1019
  }
1017
- return e.prototype.indexOfGroup = function(r) {
1018
- for (var t = 0, o = 0; o < r; o++) t += this.groupSizes[o];
1019
- return t;
1020
- }, e.prototype.insertRules = function(r, t) {
1021
- if (r >= this.groupSizes.length) {
1022
- for (var o = this.groupSizes, n = o.length, s = n; r >= s; ) if ((s <<= 1) < 0) throw fe(16, "".concat(r));
1020
+ return e.prototype.indexOfGroup = function(t) {
1021
+ for (var r = 0, o = 0; o < t; o++) r += this.groupSizes[o];
1022
+ return r;
1023
+ }, e.prototype.insertRules = function(t, r) {
1024
+ if (t >= this.groupSizes.length) {
1025
+ for (var o = this.groupSizes, n = o.length, s = n; t >= s; ) if ((s <<= 1) < 0) throw Ne(16, "".concat(t));
1023
1026
  this.groupSizes = new Uint32Array(s), this.groupSizes.set(o), this.length = s;
1024
1027
  for (var c = n; c < s; c++) this.groupSizes[c] = 0;
1025
1028
  }
1026
- for (var d = this.indexOfGroup(r + 1), l = (c = 0, t.length); c < l; c++) this.tag.insertRule(d, t[c]) && (this.groupSizes[r]++, d++);
1027
- }, e.prototype.clearGroup = function(r) {
1028
- if (r < this.length) {
1029
- var t = this.groupSizes[r], o = this.indexOfGroup(r), n = o + t;
1030
- this.groupSizes[r] = 0;
1029
+ for (var u = this.indexOfGroup(t + 1), d = (c = 0, r.length); c < d; c++) this.tag.insertRule(u, r[c]) && (this.groupSizes[t]++, u++);
1030
+ }, e.prototype.clearGroup = function(t) {
1031
+ if (t < this.length) {
1032
+ var r = this.groupSizes[t], o = this.indexOfGroup(t), n = o + r;
1033
+ this.groupSizes[t] = 0;
1031
1034
  for (var s = o; s < n; s++) this.tag.deleteRule(o);
1032
1035
  }
1033
- }, e.prototype.getGroup = function(r) {
1034
- var t = "";
1035
- if (r >= this.length || this.groupSizes[r] === 0) return t;
1036
- for (var o = this.groupSizes[r], n = this.indexOfGroup(r), s = n + o, c = n; c < s; c++) t += "".concat(this.tag.getRule(c)).concat(dr);
1037
- return t;
1036
+ }, e.prototype.getGroup = function(t) {
1037
+ var r = "";
1038
+ if (t >= this.length || this.groupSizes[t] === 0) return r;
1039
+ for (var o = this.groupSizes[t], n = this.indexOfGroup(t), s = n + o, c = n; c < s; c++) r += "".concat(this.tag.getRule(c)).concat(Ot);
1040
+ return r;
1038
1041
  }, e;
1039
- })(), co = 1 << 30, je = /* @__PURE__ */ new Map(), Fe = /* @__PURE__ */ new Map(), De = 1, Ae = function(e) {
1040
- if (je.has(e)) return je.get(e);
1041
- for (; Fe.has(De); ) De++;
1042
- var r = De++;
1043
- if (process.env.NODE_ENV !== "production" && ((0 | r) < 0 || r > co)) throw fe(16, "".concat(r));
1044
- return je.set(e, r), Fe.set(r, e), r;
1045
- }, lo = function(e, r) {
1046
- De = r + 1, je.set(e, r), Fe.set(r, e);
1047
- }, uo = "style[".concat(te, "][").concat(Kr, '="').concat(Ve, '"]'), po = new RegExp("^".concat(te, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), fo = function(e, r, t) {
1048
- for (var o, n = t.split(","), s = 0, c = n.length; s < c; s++) (o = n[s]) && e.registerName(r, o);
1049
- }, ho = function(e, r) {
1050
- for (var t, o = ((t = r.textContent) !== null && t !== void 0 ? t : "").split(dr), n = [], s = 0, c = o.length; s < c; s++) {
1051
- var d = o[s].trim();
1052
- if (d) {
1053
- var l = d.match(po);
1054
- if (l) {
1055
- var w = 0 | parseInt(l[1], 10), y = l[2];
1056
- w !== 0 && (lo(y, w), fo(e, y, l[3]), e.getTag().insertRules(w, n)), n.length = 0;
1057
- } else n.push(d);
1042
+ })(), zo = 1 << 30, et = /* @__PURE__ */ new Map(), st = /* @__PURE__ */ new Map(), tt = 1, qe = function(e) {
1043
+ if (et.has(e)) return et.get(e);
1044
+ for (; st.has(tt); ) tt++;
1045
+ var t = tt++;
1046
+ if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > zo)) throw Ne(16, "".concat(t));
1047
+ return et.set(e, t), st.set(t, e), t;
1048
+ }, Io = function(e, t) {
1049
+ tt = t + 1, et.set(e, t), st.set(t, e);
1050
+ }, Do = "style[".concat(ke, "][").concat(Cr, '="').concat(dt, '"]'), Fo = new RegExp("^".concat(ke, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Mo = function(e, t, r) {
1051
+ for (var o, n = r.split(","), s = 0, c = n.length; s < c; s++) (o = n[s]) && e.registerName(t, o);
1052
+ }, Wo = function(e, t) {
1053
+ for (var r, o = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(Ot), n = [], s = 0, c = o.length; s < c; s++) {
1054
+ var u = o[s].trim();
1055
+ if (u) {
1056
+ var d = u.match(Fo);
1057
+ if (d) {
1058
+ var h = 0 | parseInt(d[1], 10), g = d[2];
1059
+ h !== 0 && (Io(g, h), Mo(e, g, d[3]), e.getTag().insertRules(h, n)), n.length = 0;
1060
+ } else n.push(u);
1058
1061
  }
1059
1062
  }
1060
- }, Ar = function(e) {
1061
- for (var r = document.querySelectorAll(uo), t = 0, o = r.length; t < o; t++) {
1062
- var n = r[t];
1063
- n && n.getAttribute(te) !== Zr && (ho(e, n), n.parentNode && n.parentNode.removeChild(n));
1063
+ }, Kt = function(e) {
1064
+ for (var t = document.querySelectorAll(Do), r = 0, o = t.length; r < o; r++) {
1065
+ var n = t[r];
1066
+ n && n.getAttribute(ke) !== Sr && (Wo(e, n), n.parentNode && n.parentNode.removeChild(n));
1064
1067
  }
1065
1068
  };
1066
- function mo() {
1069
+ function Lo() {
1067
1070
  return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
1068
1071
  }
1069
- var st = function(e) {
1070
- var r = document.head, t = e || r, o = document.createElement("style"), n = (function(d) {
1071
- var l = Array.from(d.querySelectorAll("style[".concat(te, "]")));
1072
- return l[l.length - 1];
1073
- })(t), s = n !== void 0 ? n.nextSibling : null;
1074
- o.setAttribute(te, Zr), o.setAttribute(Kr, Ve);
1075
- var c = mo();
1076
- return c && o.setAttribute("nonce", c), t.insertBefore(o, s), o;
1077
- }, go = (function() {
1078
- function e(r) {
1079
- this.element = st(r), this.element.appendChild(document.createTextNode("")), this.sheet = (function(t) {
1080
- if (t.sheet) return t.sheet;
1072
+ var Nr = function(e) {
1073
+ var t = document.head, r = e || t, o = document.createElement("style"), n = (function(u) {
1074
+ var d = Array.from(u.querySelectorAll("style[".concat(ke, "]")));
1075
+ return d[d.length - 1];
1076
+ })(r), s = n !== void 0 ? n.nextSibling : null;
1077
+ o.setAttribute(ke, Sr), o.setAttribute(Cr, dt);
1078
+ var c = Lo();
1079
+ return c && o.setAttribute("nonce", c), r.insertBefore(o, s), o;
1080
+ }, Yo = (function() {
1081
+ function e(t) {
1082
+ this.element = Nr(t), this.element.appendChild(document.createTextNode("")), this.sheet = (function(r) {
1083
+ if (r.sheet) return r.sheet;
1081
1084
  for (var o = document.styleSheets, n = 0, s = o.length; n < s; n++) {
1082
1085
  var c = o[n];
1083
- if (c.ownerNode === t) return c;
1086
+ if (c.ownerNode === r) return c;
1084
1087
  }
1085
- throw fe(17);
1088
+ throw Ne(17);
1086
1089
  })(this.element), this.length = 0;
1087
1090
  }
1088
- return e.prototype.insertRule = function(r, t) {
1091
+ return e.prototype.insertRule = function(t, r) {
1089
1092
  try {
1090
- return this.sheet.insertRule(t, r), this.length++, !0;
1093
+ return this.sheet.insertRule(r, t), this.length++, !0;
1091
1094
  } catch {
1092
1095
  return !1;
1093
1096
  }
1094
- }, e.prototype.deleteRule = function(r) {
1095
- this.sheet.deleteRule(r), this.length--;
1096
- }, e.prototype.getRule = function(r) {
1097
- var t = this.sheet.cssRules[r];
1098
- return t && t.cssText ? t.cssText : "";
1097
+ }, e.prototype.deleteRule = function(t) {
1098
+ this.sheet.deleteRule(t), this.length--;
1099
+ }, e.prototype.getRule = function(t) {
1100
+ var r = this.sheet.cssRules[t];
1101
+ return r && r.cssText ? r.cssText : "";
1099
1102
  }, e;
1100
- })(), bo = (function() {
1101
- function e(r) {
1102
- this.element = st(r), this.nodes = this.element.childNodes, this.length = 0;
1103
- }
1104
- return e.prototype.insertRule = function(r, t) {
1105
- if (r <= this.length && r >= 0) {
1106
- var o = document.createTextNode(t);
1107
- return this.element.insertBefore(o, this.nodes[r] || null), this.length++, !0;
1103
+ })(), Bo = (function() {
1104
+ function e(t) {
1105
+ this.element = Nr(t), this.nodes = this.element.childNodes, this.length = 0;
1106
+ }
1107
+ return e.prototype.insertRule = function(t, r) {
1108
+ if (t <= this.length && t >= 0) {
1109
+ var o = document.createTextNode(r);
1110
+ return this.element.insertBefore(o, this.nodes[t] || null), this.length++, !0;
1108
1111
  }
1109
1112
  return !1;
1110
- }, e.prototype.deleteRule = function(r) {
1111
- this.element.removeChild(this.nodes[r]), this.length--;
1112
- }, e.prototype.getRule = function(r) {
1113
- return r < this.length ? this.nodes[r].textContent : "";
1113
+ }, e.prototype.deleteRule = function(t) {
1114
+ this.element.removeChild(this.nodes[t]), this.length--;
1115
+ }, e.prototype.getRule = function(t) {
1116
+ return t < this.length ? this.nodes[t].textContent : "";
1114
1117
  }, e;
1115
- })(), yo = (function() {
1116
- function e(r) {
1118
+ })(), Vo = (function() {
1119
+ function e(t) {
1117
1120
  this.rules = [], this.length = 0;
1118
1121
  }
1119
- return e.prototype.insertRule = function(r, t) {
1120
- return r <= this.length && (this.rules.splice(r, 0, t), this.length++, !0);
1121
- }, e.prototype.deleteRule = function(r) {
1122
- this.rules.splice(r, 1), this.length--;
1123
- }, e.prototype.getRule = function(r) {
1124
- return r < this.length ? this.rules[r] : "";
1122
+ return e.prototype.insertRule = function(t, r) {
1123
+ return t <= this.length && (this.rules.splice(t, 0, r), this.length++, !0);
1124
+ }, e.prototype.deleteRule = function(t) {
1125
+ this.rules.splice(t, 1), this.length--;
1126
+ }, e.prototype.getRule = function(t) {
1127
+ return t < this.length ? this.rules[t] : "";
1125
1128
  }, e;
1126
- })(), Tr = Me, vo = { isServer: !Me, useCSSOMInjection: !Vt }, it = (function() {
1127
- function e(r, t, o) {
1128
- r === void 0 && (r = le), t === void 0 && (t = {});
1129
+ })(), Zt = at, Ho = { isServer: !at, useCSSOMInjection: !yo }, zr = (function() {
1130
+ function e(t, r, o) {
1131
+ t === void 0 && (t = je), r === void 0 && (r = {});
1129
1132
  var n = this;
1130
- this.options = D(D({}, vo), r), this.gs = t, this.names = new Map(o), this.server = !!r.isServer, !this.server && Me && Tr && (Tr = !1, Ar(this)), fr(this, function() {
1133
+ this.options = B(B({}, Ho), t), this.gs = r, this.names = new Map(o), this.server = !!t.isServer, !this.server && at && Zt && (Zt = !1, Kt(this)), zt(this, function() {
1131
1134
  return (function(s) {
1132
- for (var c = s.getTag(), d = c.length, l = "", w = function(b) {
1133
- var v = (function(O) {
1134
- return Fe.get(O);
1135
- })(b);
1135
+ for (var c = s.getTag(), u = c.length, d = "", h = function(m) {
1136
+ var v = (function(A) {
1137
+ return st.get(A);
1138
+ })(m);
1136
1139
  if (v === void 0) return "continue";
1137
- var m = s.names.get(v), $ = c.getGroup(b);
1138
- if (m === void 0 || !m.size || $.length === 0) return "continue";
1139
- var A = "".concat(te, ".g").concat(b, '[id="').concat(v, '"]'), j = "";
1140
- m !== void 0 && m.forEach(function(O) {
1141
- O.length > 0 && (j += "".concat(O, ","));
1142
- }), l += "".concat($).concat(A, '{content:"').concat(j, '"}').concat(dr);
1143
- }, y = 0; y < d; y++) w(y);
1144
- return l;
1140
+ var k = s.names.get(v), E = c.getGroup(m);
1141
+ if (k === void 0 || !k.size || E.length === 0) return "continue";
1142
+ var C = "".concat(ke, ".g").concat(m, '[id="').concat(v, '"]'), T = "";
1143
+ k !== void 0 && k.forEach(function(A) {
1144
+ A.length > 0 && (T += "".concat(A, ","));
1145
+ }), d += "".concat(E).concat(C, '{content:"').concat(T, '"}').concat(Ot);
1146
+ }, g = 0; g < u; g++) h(g);
1147
+ return d;
1145
1148
  })(n);
1146
1149
  });
1147
1150
  }
1148
- return e.registerId = function(r) {
1149
- return Ae(r);
1151
+ return e.registerId = function(t) {
1152
+ return qe(t);
1150
1153
  }, e.prototype.rehydrate = function() {
1151
- !this.server && Me && Ar(this);
1152
- }, e.prototype.reconstructWithOptions = function(r, t) {
1153
- return t === void 0 && (t = !0), new e(D(D({}, this.options), r), this.gs, t && this.names || void 0);
1154
- }, e.prototype.allocateGSInstance = function(r) {
1155
- return this.gs[r] = (this.gs[r] || 0) + 1;
1154
+ !this.server && at && Kt(this);
1155
+ }, e.prototype.reconstructWithOptions = function(t, r) {
1156
+ return r === void 0 && (r = !0), new e(B(B({}, this.options), t), this.gs, r && this.names || void 0);
1157
+ }, e.prototype.allocateGSInstance = function(t) {
1158
+ return this.gs[t] = (this.gs[t] || 0) + 1;
1156
1159
  }, e.prototype.getTag = function() {
1157
- return this.tag || (this.tag = (r = (function(t) {
1158
- var o = t.useCSSOMInjection, n = t.target;
1159
- return t.isServer ? new yo(n) : o ? new go(n) : new bo(n);
1160
- })(this.options), new io(r)));
1161
- var r;
1162
- }, e.prototype.hasNameForId = function(r, t) {
1163
- return this.names.has(r) && this.names.get(r).has(t);
1164
- }, e.prototype.registerName = function(r, t) {
1165
- if (Ae(r), this.names.has(r)) this.names.get(r).add(t);
1160
+ return this.tag || (this.tag = (t = (function(r) {
1161
+ var o = r.useCSSOMInjection, n = r.target;
1162
+ return r.isServer ? new Vo(n) : o ? new Yo(n) : new Bo(n);
1163
+ })(this.options), new No(t)));
1164
+ var t;
1165
+ }, e.prototype.hasNameForId = function(t, r) {
1166
+ return this.names.has(t) && this.names.get(t).has(r);
1167
+ }, e.prototype.registerName = function(t, r) {
1168
+ if (qe(t), this.names.has(t)) this.names.get(t).add(r);
1166
1169
  else {
1167
1170
  var o = /* @__PURE__ */ new Set();
1168
- o.add(t), this.names.set(r, o);
1171
+ o.add(r), this.names.set(t, o);
1169
1172
  }
1170
- }, e.prototype.insertRules = function(r, t, o) {
1171
- this.registerName(r, t), this.getTag().insertRules(Ae(r), o);
1172
- }, e.prototype.clearNames = function(r) {
1173
- this.names.has(r) && this.names.get(r).clear();
1174
- }, e.prototype.clearRules = function(r) {
1175
- this.getTag().clearGroup(Ae(r)), this.clearNames(r);
1173
+ }, e.prototype.insertRules = function(t, r, o) {
1174
+ this.registerName(t, r), this.getTag().insertRules(qe(t), o);
1175
+ }, e.prototype.clearNames = function(t) {
1176
+ this.names.has(t) && this.names.get(t).clear();
1177
+ }, e.prototype.clearRules = function(t) {
1178
+ this.getTag().clearGroup(qe(t)), this.clearNames(t);
1176
1179
  }, e.prototype.clearTag = function() {
1177
1180
  this.tag = void 0;
1178
1181
  }, e;
1179
- })(), wo = /&/g, ko = /^\s*\/\/.*$/gm;
1180
- function ct(e, r) {
1181
- return e.map(function(t) {
1182
- return t.type === "rule" && (t.value = "".concat(r, " ").concat(t.value), t.value = t.value.replaceAll(",", ",".concat(r, " ")), t.props = t.props.map(function(o) {
1183
- return "".concat(r, " ").concat(o);
1184
- })), Array.isArray(t.children) && t.type !== "@keyframes" && (t.children = ct(t.children, r)), t;
1182
+ })(), Go = /&/g, qo = /^\s*\/\/.*$/gm;
1183
+ function Ir(e, t) {
1184
+ return e.map(function(r) {
1185
+ return r.type === "rule" && (r.value = "".concat(t, " ").concat(r.value), r.value = r.value.replaceAll(",", ",".concat(t, " ")), r.props = r.props.map(function(o) {
1186
+ return "".concat(t, " ").concat(o);
1187
+ })), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = Ir(r.children, t)), r;
1185
1188
  });
1186
1189
  }
1187
- function So(e) {
1188
- var r, t, o, n = le, s = n.options, c = s === void 0 ? le : s, d = n.plugins, l = d === void 0 ? Ge : d, w = function(v, m, $) {
1189
- return $.startsWith(t) && $.endsWith(t) && $.replaceAll(t, "").length > 0 ? ".".concat(r) : v;
1190
- }, y = l.slice();
1191
- y.push(function(v) {
1192
- v.type === Le && v.value.includes("&") && (v.props[0] = v.props[0].replace(wo, t).replace(o, w));
1193
- }), c.prefix && y.push(Wt), y.push(Ft);
1194
- var b = function(v, m, $, A) {
1195
- m === void 0 && (m = ""), $ === void 0 && ($ = ""), A === void 0 && (A = "&"), r = A, t = m, o = new RegExp("\\".concat(t, "\\b"), "g");
1196
- var j = v.replace(ko, ""), O = zt($ || m ? "".concat($, " ").concat(m, " { ").concat(j, " }") : j);
1197
- c.namespace && (O = ct(O, c.namespace));
1198
- var _ = [];
1199
- return ze(O, Lt(y.concat(Bt(function(S) {
1200
- return _.push(S);
1201
- })))), _;
1190
+ function Uo(e) {
1191
+ var t, r, o, n = je, s = n.options, c = s === void 0 ? je : s, u = n.plugins, d = u === void 0 ? pt : u, h = function(v, k, E) {
1192
+ return E.startsWith(r) && E.endsWith(r) && E.replaceAll(r, "").length > 0 ? ".".concat(t) : v;
1193
+ }, g = d.slice();
1194
+ g.push(function(v) {
1195
+ v.type === it && v.value.includes("&") && (v.props[0] = v.props[0].replace(Go, r).replace(o, h));
1196
+ }), c.prefix && g.push(go), g.push(fo);
1197
+ var m = function(v, k, E, C) {
1198
+ k === void 0 && (k = ""), E === void 0 && (E = ""), C === void 0 && (C = "&"), t = C, r = k, o = new RegExp("\\".concat(r, "\\b"), "g");
1199
+ var T = v.replace(qo, ""), A = uo(E || k ? "".concat(E, " ").concat(k, " { ").concat(T, " }") : T);
1200
+ c.namespace && (A = Ir(A, c.namespace));
1201
+ var $ = [];
1202
+ return nt(A, ho(g.concat(bo(function(R) {
1203
+ return $.push(R);
1204
+ })))), $;
1202
1205
  };
1203
- return b.hash = l.length ? l.reduce(function(v, m) {
1204
- return m.name || fe(15), K(v, m.name);
1205
- }, Qr).toString() : "", b;
1206
- }
1207
- var $o = new it(), sr = So(), lt = ae.createContext({ shouldForwardProp: void 0, styleSheet: $o, stylis: sr });
1208
- lt.Consumer;
1209
- ae.createContext(void 0);
1210
- function Or() {
1211
- return yt(lt);
1212
- }
1213
- var Nr = (function() {
1214
- function e(r, t) {
1206
+ return m.hash = d.length ? d.reduce(function(v, k) {
1207
+ return k.name || Ne(15), be(v, k.name);
1208
+ }, Er).toString() : "", m;
1209
+ }
1210
+ var Xo = new zr(), Et = Uo(), Dr = Re.createContext({ shouldForwardProp: void 0, styleSheet: Xo, stylis: Et });
1211
+ Dr.Consumer;
1212
+ Re.createContext(void 0);
1213
+ function Qt() {
1214
+ return Vr(Dr);
1215
+ }
1216
+ var Rt = (function() {
1217
+ function e(t, r) {
1215
1218
  var o = this;
1216
1219
  this.inject = function(n, s) {
1217
- s === void 0 && (s = sr);
1220
+ s === void 0 && (s = Et);
1218
1221
  var c = o.name + s.hash;
1219
1222
  n.hasNameForId(o.id, c) || n.insertRules(o.id, c, s(o.rules, c, "@keyframes"));
1220
- }, this.name = r, this.id = "sc-keyframes-".concat(r), this.rules = t, fr(this, function() {
1221
- throw fe(12, String(o.name));
1223
+ }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, zt(this, function() {
1224
+ throw Ne(12, String(o.name));
1222
1225
  });
1223
1226
  }
1224
- return e.prototype.getName = function(r) {
1225
- return r === void 0 && (r = sr), this.name + r.hash;
1227
+ return e.prototype.getName = function(t) {
1228
+ return t === void 0 && (t = Et), this.name + t.hash;
1226
1229
  }, e;
1227
- })(), xo = function(e) {
1230
+ })(), Jo = function(e) {
1228
1231
  return e >= "A" && e <= "Z";
1229
1232
  };
1230
- function Ir(e) {
1231
- for (var r = "", t = 0; t < e.length; t++) {
1232
- var o = e[t];
1233
- if (t === 1 && o === "-" && e[0] === "-") return e;
1234
- xo(o) ? r += "-" + o.toLowerCase() : r += o;
1233
+ function er(e) {
1234
+ for (var t = "", r = 0; r < e.length; r++) {
1235
+ var o = e[r];
1236
+ if (r === 1 && o === "-" && e[0] === "-") return e;
1237
+ Jo(o) ? t += "-" + o.toLowerCase() : t += o;
1235
1238
  }
1236
- return r.startsWith("ms-") ? "-" + r : r;
1239
+ return t.startsWith("ms-") ? "-" + t : t;
1237
1240
  }
1238
- var ut = function(e) {
1241
+ var Fr = function(e) {
1239
1242
  return e == null || e === !1 || e === "";
1240
- }, dt = function(e) {
1241
- var r, t, o = [];
1243
+ }, Mr = function(e) {
1244
+ var t, r, o = [];
1242
1245
  for (var n in e) {
1243
1246
  var s = e[n];
1244
- e.hasOwnProperty(n) && !ut(s) && (Array.isArray(s) && s.isCss || ue(s) ? o.push("".concat(Ir(n), ":"), s, ";") : de(s) ? o.push.apply(o, se(se(["".concat(n, " {")], dt(s), !1), ["}"], !1)) : o.push("".concat(Ir(n), ": ").concat((r = n, (t = s) == null || typeof t == "boolean" || t === "" ? "" : typeof t != "number" || t === 0 || r in Yt || r.startsWith("--") ? String(t).trim() : "".concat(t, "px")), ";")));
1247
+ e.hasOwnProperty(n) && !Fr(s) && (Array.isArray(s) && s.isCss || Te(s) ? o.push("".concat(er(n), ":"), s, ";") : Pe(s) ? o.push.apply(o, we(we(["".concat(n, " {")], Mr(s), !1), ["}"], !1)) : o.push("".concat(er(n), ": ").concat((t = n, (r = s) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in mo || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
1245
1248
  }
1246
1249
  return o;
1247
1250
  };
1248
- function re(e, r, t, o) {
1249
- if (ut(e)) return [];
1250
- if (pr(e)) return [".".concat(e.styledComponentId)];
1251
- if (ue(e)) {
1252
- if (!ue(s = e) || s.prototype && s.prototype.isReactComponent || !r) return [e];
1253
- var n = e(r);
1254
- return process.env.NODE_ENV === "production" || typeof n != "object" || Array.isArray(n) || n instanceof Nr || de(n) || n === null || console.error("".concat(rt(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), re(n, r, t, o);
1251
+ function ye(e, t, r, o) {
1252
+ if (Fr(e)) return [];
1253
+ if (Nt(e)) return [".".concat(e.styledComponentId)];
1254
+ if (Te(e)) {
1255
+ if (!Te(s = e) || s.prototype && s.prototype.isReactComponent || !t) return [e];
1256
+ var n = e(t);
1257
+ return process.env.NODE_ENV === "production" || typeof n != "object" || Array.isArray(n) || n instanceof Rt || Pe(n) || n === null || console.error("".concat(_r(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), ye(n, t, r, o);
1255
1258
  }
1256
1259
  var s;
1257
- return e instanceof Nr ? t ? (e.inject(t, o), [e.getName(o)]) : [e] : de(e) ? dt(e) : Array.isArray(e) ? Array.prototype.concat.apply(Ge, e.map(function(c) {
1258
- return re(c, r, t, o);
1260
+ return e instanceof Rt ? r ? (e.inject(r, o), [e.getName(o)]) : [e] : Pe(e) ? Mr(e) : Array.isArray(e) ? Array.prototype.concat.apply(pt, e.map(function(c) {
1261
+ return ye(c, t, r, o);
1259
1262
  })) : [e.toString()];
1260
1263
  }
1261
- function Eo(e) {
1262
- for (var r = 0; r < e.length; r += 1) {
1263
- var t = e[r];
1264
- if (ue(t) && !pr(t)) return !1;
1264
+ function Ko(e) {
1265
+ for (var t = 0; t < e.length; t += 1) {
1266
+ var r = e[t];
1267
+ if (Te(r) && !Nt(r)) return !1;
1265
1268
  }
1266
1269
  return !0;
1267
1270
  }
1268
- var Po = et(Ve), _o = (function() {
1269
- function e(r, t, o) {
1270
- this.rules = r, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (o === void 0 || o.isStatic) && Eo(r), this.componentId = t, this.baseHash = K(Po, t), this.baseStyle = o, it.registerId(t);
1271
+ var Zo = Rr(dt), Qo = (function() {
1272
+ function e(t, r, o) {
1273
+ this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (o === void 0 || o.isStatic) && Ko(t), this.componentId = r, this.baseHash = be(Zo, r), this.baseStyle = o, zr.registerId(r);
1271
1274
  }
1272
- return e.prototype.generateAndInjectStyles = function(r, t, o) {
1273
- var n = this.baseStyle ? this.baseStyle.generateAndInjectStyles(r, t, o) : "";
1274
- if (this.isStatic && !o.hash) if (this.staticRulesId && t.hasNameForId(this.componentId, this.staticRulesId)) n = Q(n, this.staticRulesId);
1275
+ return e.prototype.generateAndInjectStyles = function(t, r, o) {
1276
+ var n = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, o) : "";
1277
+ if (this.isStatic && !o.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) n = ge(n, this.staticRulesId);
1275
1278
  else {
1276
- var s = Cr(re(this.rules, r, t, o)), c = nr(K(this.baseHash, s) >>> 0);
1277
- if (!t.hasNameForId(this.componentId, c)) {
1278
- var d = o(s, ".".concat(c), void 0, this.componentId);
1279
- t.insertRules(this.componentId, c, d);
1279
+ var s = St(ye(this.rules, t, r, o)), c = $t(be(this.baseHash, s) >>> 0);
1280
+ if (!r.hasNameForId(this.componentId, c)) {
1281
+ var u = o(s, ".".concat(c), void 0, this.componentId);
1282
+ r.insertRules(this.componentId, c, u);
1280
1283
  }
1281
- n = Q(n, c), this.staticRulesId = c;
1284
+ n = ge(n, c), this.staticRulesId = c;
1282
1285
  }
1283
1286
  else {
1284
- for (var l = K(this.baseHash, o.hash), w = "", y = 0; y < this.rules.length; y++) {
1285
- var b = this.rules[y];
1286
- if (typeof b == "string") w += b, process.env.NODE_ENV !== "production" && (l = K(l, b));
1287
- else if (b) {
1288
- var v = Cr(re(b, r, t, o));
1289
- l = K(l, v + y), w += v;
1287
+ for (var d = be(this.baseHash, o.hash), h = "", g = 0; g < this.rules.length; g++) {
1288
+ var m = this.rules[g];
1289
+ if (typeof m == "string") h += m, process.env.NODE_ENV !== "production" && (d = be(d, m));
1290
+ else if (m) {
1291
+ var v = St(ye(m, t, r, o));
1292
+ d = be(d, v + g), h += v;
1290
1293
  }
1291
1294
  }
1292
- if (w) {
1293
- var m = nr(l >>> 0);
1294
- t.hasNameForId(this.componentId, m) || t.insertRules(this.componentId, m, o(w, ".".concat(m), void 0, this.componentId)), n = Q(n, m);
1295
+ if (h) {
1296
+ var k = $t(d >>> 0);
1297
+ r.hasNameForId(this.componentId, k) || r.insertRules(this.componentId, k, o(h, ".".concat(k), void 0, this.componentId)), n = ge(n, k);
1295
1298
  }
1296
1299
  }
1297
1300
  return n;
1298
1301
  }, e;
1299
- })(), pt = ae.createContext(void 0);
1300
- pt.Consumer;
1301
- var Qe = {}, jr = /* @__PURE__ */ new Set();
1302
- function Ro(e, r, t) {
1303
- var o = pr(e), n = e, s = !Ke(e), c = r.attrs, d = c === void 0 ? Ge : c, l = r.componentId, w = l === void 0 ? (function(x, R) {
1304
- var g = typeof x != "string" ? "sc" : xr(x);
1305
- Qe[g] = (Qe[g] || 0) + 1;
1306
- var p = "".concat(g, "-").concat(Jt(Ve + g + Qe[g]));
1307
- return R ? "".concat(R, "-").concat(p) : p;
1308
- })(r.displayName, r.parentComponentId) : l, y = r.displayName, b = y === void 0 ? (function(x) {
1309
- return Ke(x) ? "styled.".concat(x) : "Styled(".concat(rt(x), ")");
1310
- })(e) : y, v = r.displayName && r.componentId ? "".concat(xr(r.displayName), "-").concat(r.componentId) : r.componentId || w, m = o && n.attrs ? n.attrs.concat(d).filter(Boolean) : d, $ = r.shouldForwardProp;
1302
+ })(), Wr = Re.createContext(void 0);
1303
+ Wr.Consumer;
1304
+ var mt = {}, tr = /* @__PURE__ */ new Set();
1305
+ function en(e, t, r) {
1306
+ var o = Nt(e), n = e, s = !gt(e), c = t.attrs, u = c === void 0 ? pt : c, d = t.componentId, h = d === void 0 ? (function(_, P) {
1307
+ var S = typeof _ != "string" ? "sc" : Gt(_);
1308
+ mt[S] = (mt[S] || 0) + 1;
1309
+ var y = "".concat(S, "-").concat(Ar(dt + S + mt[S]));
1310
+ return P ? "".concat(P, "-").concat(y) : y;
1311
+ })(t.displayName, t.parentComponentId) : d, g = t.displayName, m = g === void 0 ? (function(_) {
1312
+ return gt(_) ? "styled.".concat(_) : "Styled(".concat(_r(_), ")");
1313
+ })(e) : g, v = t.displayName && t.componentId ? "".concat(Gt(t.displayName), "-").concat(t.componentId) : t.componentId || h, k = o && n.attrs ? n.attrs.concat(u).filter(Boolean) : u, E = t.shouldForwardProp;
1311
1314
  if (o && n.shouldForwardProp) {
1312
- var A = n.shouldForwardProp;
1313
- if (r.shouldForwardProp) {
1314
- var j = r.shouldForwardProp;
1315
- $ = function(x, R) {
1316
- return A(x, R) && j(x, R);
1315
+ var C = n.shouldForwardProp;
1316
+ if (t.shouldForwardProp) {
1317
+ var T = t.shouldForwardProp;
1318
+ E = function(_, P) {
1319
+ return C(_, P) && T(_, P);
1317
1320
  };
1318
- } else $ = A;
1319
- }
1320
- var O = new _o(t, v, o ? n.componentStyle : void 0);
1321
- function _(x, R) {
1322
- return (function(g, p, Y) {
1323
- var V = g.attrs, qe = g.componentStyle, He = g.defaultProps, me = g.foldedComponentIds, ge = g.styledComponentId, Xe = g.target, be = ae.useContext(pt), Ee = Or(), oe = g.shouldForwardProp || Ee.shouldForwardProp;
1324
- process.env.NODE_ENV !== "production" && gr(ge);
1325
- var ye = Ut(p, be, He) || le, M = (function(U, q, C) {
1326
- for (var z, L = D(D({}, q), { className: void 0, theme: C }), ve = 0; ve < U.length; ve += 1) {
1327
- var Pe = ue(z = U[ve]) ? z(L) : z;
1328
- for (var J in Pe) L[J] = J === "className" ? Q(L[J], Pe[J]) : J === "style" ? D(D({}, L[J]), Pe[J]) : Pe[J];
1321
+ } else E = C;
1322
+ }
1323
+ var A = new Qo(r, v, o ? n.componentStyle : void 0);
1324
+ function $(_, P) {
1325
+ return (function(S, y, q) {
1326
+ var U = S.attrs, re = S.componentStyle, oe = S.defaultProps, V = S.foldedComponentIds, Z = S.styledComponentId, ze = S.target, fe = Re.useContext(Wr), xe = Qt(), ae = S.shouldForwardProp || xe.shouldForwardProp;
1327
+ process.env.NODE_ENV !== "production" && Ft(Z);
1328
+ var w = wo(y, fe, oe) || je, W = (function(se, ie, z) {
1329
+ for (var G, Q = B(B({}, ie), { className: void 0, theme: z }), Ie = 0; Ie < se.length; Ie += 1) {
1330
+ var Be = Te(G = se[Ie]) ? G(Q) : G;
1331
+ for (var ue in Be) Q[ue] = ue === "className" ? ge(Q[ue], Be[ue]) : ue === "style" ? B(B({}, Q[ue]), Be[ue]) : Be[ue];
1329
1332
  }
1330
- return q.className && (L.className = Q(L.className, q.className)), L;
1331
- })(V, p, ye), X = M.as || Xe, a = {};
1332
- for (var u in M) M[u] === void 0 || u[0] === "$" || u === "as" || u === "theme" && M.theme === ye || (u === "forwardedAs" ? a.as = M.forwardedAs : oe && !oe(u, X) || (a[u] = M[u], oe || process.env.NODE_ENV !== "development" || xt(u) || jr.has(u) || !or.has(X) || (jr.add(u), console.warn('styled-components: it looks like an unknown prop "'.concat(u, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1333
- var E = (function(U, q) {
1334
- var C = Or(), z = U.generateAndInjectStyles(q, C.styleSheet, C.stylis);
1335
- return process.env.NODE_ENV !== "production" && gr(z), z;
1336
- })(qe, M);
1337
- process.env.NODE_ENV !== "production" && g.warnTooManyClasses && g.warnTooManyClasses(E);
1338
- var T = Q(me, ge);
1339
- return E && (T += " " + E), M.className && (T += " " + M.className), a[Ke(X) && !or.has(X) ? "class" : "className"] = T, Y && (a.ref = Y), gt(X, a);
1340
- })(S, x, R);
1341
- }
1342
- _.displayName = b;
1343
- var S = ae.forwardRef(_);
1344
- return S.attrs = m, S.componentStyle = O, S.displayName = b, S.shouldForwardProp = $, S.foldedComponentIds = o ? Q(n.foldedComponentIds, n.styledComponentId) : "", S.styledComponentId = v, S.target = o ? n.target : e, Object.defineProperty(S, "defaultProps", { get: function() {
1333
+ return ie.className && (Q.className = ge(Q.className, ie.className)), Q;
1334
+ })(U, y, w), H = W.as || ze, l = {};
1335
+ for (var f in W) W[f] === void 0 || f[0] === "$" || f === "as" || f === "theme" && W.theme === w || (f === "forwardedAs" ? l.as = W.forwardedAs : ae && !ae(f, H) || (l[f] = W[f], ae || process.env.NODE_ENV !== "development" || Kr(f) || tr.has(f) || !xt.has(H) || (tr.add(f), console.warn('styled-components: it looks like an unknown prop "'.concat(f, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1336
+ var O = (function(se, ie) {
1337
+ var z = Qt(), G = se.generateAndInjectStyles(ie, z.styleSheet, z.stylis);
1338
+ return process.env.NODE_ENV !== "production" && Ft(G), G;
1339
+ })(re, W);
1340
+ process.env.NODE_ENV !== "production" && S.warnTooManyClasses && S.warnTooManyClasses(O);
1341
+ var I = ge(V, Z);
1342
+ return O && (I += " " + O), W.className && (I += " " + W.className), l[gt(H) && !xt.has(H) ? "class" : "className"] = I, q && (l.ref = q), Br(H, l);
1343
+ })(R, _, P);
1344
+ }
1345
+ $.displayName = m;
1346
+ var R = Re.forwardRef($);
1347
+ return R.attrs = k, R.componentStyle = A, R.displayName = m, R.shouldForwardProp = E, R.foldedComponentIds = o ? ge(n.foldedComponentIds, n.styledComponentId) : "", R.styledComponentId = v, R.target = o ? n.target : e, Object.defineProperty(R, "defaultProps", { get: function() {
1345
1348
  return this._foldedDefaultProps;
1346
- }, set: function(x) {
1347
- this._foldedDefaultProps = o ? (function(R) {
1348
- for (var g = [], p = 1; p < arguments.length; p++) g[p - 1] = arguments[p];
1349
- for (var Y = 0, V = g; Y < V.length; Y++) ar(R, V[Y], !0);
1350
- return R;
1351
- })({}, n.defaultProps, x) : x;
1352
- } }), process.env.NODE_ENV !== "production" && (Gt(b, v), S.warnTooManyClasses = /* @__PURE__ */ (function(x, R) {
1353
- var g = {}, p = !1;
1354
- return function(Y) {
1355
- if (!p && (g[Y] = !0, Object.keys(g).length >= 200)) {
1356
- var V = R ? ' with the id of "'.concat(R, '"') : "";
1357
- console.warn("Over ".concat(200, " classes were generated for component ").concat(x).concat(V, `.
1349
+ }, set: function(_) {
1350
+ this._foldedDefaultProps = o ? (function(P) {
1351
+ for (var S = [], y = 1; y < arguments.length; y++) S[y - 1] = arguments[y];
1352
+ for (var q = 0, U = S; q < U.length; q++) Ct(P, U[q], !0);
1353
+ return P;
1354
+ })({}, n.defaultProps, _) : _;
1355
+ } }), process.env.NODE_ENV !== "production" && (vo(m, v), R.warnTooManyClasses = /* @__PURE__ */ (function(_, P) {
1356
+ var S = {}, y = !1;
1357
+ return function(q) {
1358
+ if (!y && (S[q] = !0, Object.keys(S).length >= 200)) {
1359
+ var U = P ? ' with the id of "'.concat(P, '"') : "";
1360
+ console.warn("Over ".concat(200, " classes were generated for component ").concat(_).concat(U, `.
1358
1361
  `) + `Consider using the attrs method, together with a style object for frequently changed styles.
1359
1362
  Example:
1360
1363
  const Component = styled.div.attrs(props => ({
@@ -1363,52 +1366,58 @@ Example:
1363
1366
  },
1364
1367
  }))\`width: 100%;\`
1365
1368
 
1366
- <Component />`), p = !0, g = {};
1369
+ <Component />`), y = !0, S = {};
1367
1370
  }
1368
1371
  };
1369
- })(b, v)), fr(S, function() {
1370
- return ".".concat(S.styledComponentId);
1371
- }), s && at(S, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), S;
1372
+ })(m, v)), zt(R, function() {
1373
+ return ".".concat(R.styledComponentId);
1374
+ }), s && Or(R, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), R;
1372
1375
  }
1373
- function Dr(e, r) {
1374
- for (var t = [e[0]], o = 0, n = r.length; o < n; o += 1) t.push(r[o], e[o + 1]);
1375
- return t;
1376
+ function rr(e, t) {
1377
+ for (var r = [e[0]], o = 0, n = t.length; o < n; o += 1) r.push(t[o], e[o + 1]);
1378
+ return r;
1376
1379
  }
1377
- var zr = function(e) {
1380
+ var or = function(e) {
1378
1381
  return Object.assign(e, { isCss: !0 });
1379
1382
  };
1380
- function f(e) {
1381
- for (var r = [], t = 1; t < arguments.length; t++) r[t - 1] = arguments[t];
1382
- if (ue(e) || de(e)) return zr(re(Dr(Ge, se([e], r, !0))));
1383
+ function b(e) {
1384
+ for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
1385
+ if (Te(e) || Pe(e)) return or(ye(rr(pt, we([e], t, !0))));
1383
1386
  var o = e;
1384
- return r.length === 0 && o.length === 1 && typeof o[0] == "string" ? re(o) : zr(re(Dr(o, r)));
1387
+ return t.length === 0 && o.length === 1 && typeof o[0] == "string" ? ye(o) : or(ye(rr(o, t)));
1385
1388
  }
1386
- function ir(e, r, t) {
1387
- if (t === void 0 && (t = le), !r) throw fe(1, r);
1389
+ function At(e, t, r) {
1390
+ if (r === void 0 && (r = je), !t) throw Ne(1, t);
1388
1391
  var o = function(n) {
1389
1392
  for (var s = [], c = 1; c < arguments.length; c++) s[c - 1] = arguments[c];
1390
- return e(r, t, f.apply(void 0, se([n], s, !1)));
1393
+ return e(t, r, b.apply(void 0, we([n], s, !1)));
1391
1394
  };
1392
1395
  return o.attrs = function(n) {
1393
- return ir(e, r, D(D({}, t), { attrs: Array.prototype.concat(t.attrs, n).filter(Boolean) }));
1396
+ return At(e, t, B(B({}, r), { attrs: Array.prototype.concat(r.attrs, n).filter(Boolean) }));
1394
1397
  }, o.withConfig = function(n) {
1395
- return ir(e, r, D(D({}, t), n));
1398
+ return At(e, t, B(B({}, r), n));
1396
1399
  }, o;
1397
1400
  }
1398
- var ft = function(e) {
1399
- return ir(Ro, e);
1400
- }, he = ft;
1401
- or.forEach(function(e) {
1402
- he[e] = ft(e);
1401
+ var Lr = function(e) {
1402
+ return At(en, e);
1403
+ }, F = Lr;
1404
+ xt.forEach(function(e) {
1405
+ F[e] = Lr(e);
1403
1406
  });
1407
+ function ft(e) {
1408
+ for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
1409
+ process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
1410
+ var o = St(b.apply(void 0, we([e], t, !1))), n = Ar(o);
1411
+ return new Rt(n, o);
1412
+ }
1404
1413
  process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
1405
1414
  Perhaps you're looking to import 'styled-components/native'?
1406
1415
  Read more about this at https://www.styled-components.com/docs/basics#react-native`);
1407
- var Te = "__sc-".concat(te, "__");
1408
- process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[Te] || (window[Te] = 0), window[Te] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
1416
+ var Ue = "__sc-".concat(ke, "__");
1417
+ process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[Ue] || (window[Ue] = 0), window[Ue] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
1409
1418
 
1410
- See https://s-c.sh/2BAXzed for more info.`), window[Te] += 1);
1411
- const Ue = (e) => f`
1419
+ See https://s-c.sh/2BAXzed for more info.`), window[Ue] += 1);
1420
+ const It = (e) => b`
1412
1421
  @media (hover: hover) {
1413
1422
  &:hover:not(:disabled) {
1414
1423
  ${e}
@@ -1420,156 +1429,477 @@ const Ue = (e) => f`
1420
1429
  ${e}
1421
1430
  }
1422
1431
  }
1423
- `, Co = (e = "1rem") => f`
1432
+ `, tn = (e = "1rem") => b`
1424
1433
  &:not(:last-child) {
1425
1434
  margin-block-end: ${e};
1426
1435
  }
1427
- `, Ao = (e = "1rem") => f`
1436
+ `, rn = (e = "1rem") => b`
1428
1437
  &:not(:first-child) {
1429
1438
  margin-block-start: ${e};
1430
1439
  }
1431
- `, To = (e = "1rem", r) => f`
1432
- ${Ao(e)}
1433
- ${Co(e)}
1434
- `, ht = (e = "1.5rem", r) => f`
1440
+ `, on = (e = "1rem", t) => b`
1441
+ ${rn(e)}
1442
+ ${tn(e)}
1443
+ `, nn = (e = "1.5rem", t) => b`
1435
1444
  --ava: ${e};
1436
1445
  max-width: var(--ava);
1437
1446
  min-width: var(--ava);
1438
1447
  width: var(--ava);
1439
1448
  height: ${"var(--ava)"};
1440
1449
  max-height: var(--ava);
1441
- `, Oo = f`
1450
+ `, an = b`
1442
1451
  path,
1443
1452
  rect,
1444
1453
  circle {
1445
1454
  &[fill] {
1446
1455
  fill: currentColor;
1447
- transition: 0.2s fill;
1448
1456
  }
1449
1457
 
1450
1458
  &[stroke] {
1451
1459
  stroke: currentColor;
1452
- transition: 0.2s stroke;
1453
1460
  }
1454
1461
  }
1455
1462
  `;
1456
- f`
1463
+ b`
1457
1464
  position: absolute;
1458
1465
  top: 50%;
1459
1466
  left: 50%;
1460
1467
  transform: translate(-50%, -50%);
1461
1468
  `;
1462
- f`
1469
+ b`
1463
1470
  list-style: none;
1464
1471
  margin: 0;
1465
1472
  padding-inline-start: 0;
1466
- ${To("0")}
1473
+ ${on("0")}
1467
1474
  `;
1468
- const No = f`
1475
+ b`
1469
1476
  max-width: 100%;
1470
1477
  width: 100%;
1471
1478
  height: 100%;
1472
1479
  object-fit: contain;
1473
1480
  `;
1474
- f`
1481
+ b`
1475
1482
  max-width: 100%;
1476
1483
  width: 100%;
1477
1484
  height: 100%;
1478
1485
  object-fit: cover;
1479
1486
  `;
1480
- const i = {
1487
+ const a = (e, t) => `var(--kilya-${e}, ${t})`, Y = "var(--primary, #1677ff)", M = "var(--primary-hover, #4096ff)", ee = "var(--primary-pressed, #0958d9)", Me = "var(--black, #000)", nr = "var(--black-alpha-15, #00000026)", sn = "var(--red, #ff0000)", X = "var(--black, #fff)", Xe = "var(--gray-d9, #d9d9d9)", Se = "var(--gray-dd, #ddd)", he = "var(--gray-81, #818181)", Ce = "var(--gray-e1, #e1e1e1)", ar = "var(--gray-a8, #a8a8a8)", cn = "var(--gray-88, #888)", i = {
1481
1488
  colors: {
1482
1489
  // Основные цвета
1483
- bgPrimary: "var(--bg-primary, #1677ff)",
1484
- bgDefault: "var(--bg-default, #d9d9d9)",
1485
- bgWhite: "var(--bg-white, #fff)",
1486
- text: "var(--color-text, #000)",
1487
- white: "var(--color-white, #fff)",
1488
- link: "var(--color-link, #1677ff)",
1489
- brDefault: "var(--color-br-default, #d9d9d9)",
1490
- inputText: "var(--color-input-text, #000)",
1491
- inputBg: "var(--bg-input-text, #ffffff)",
1492
- inputBorder: "var(--color-br-input-text, #a8a8a8)",
1490
+ bgPrimary: a("bg-primary", Y),
1491
+ text: a("color-text", Me),
1492
+ white: a("color-white", X),
1493
+ brDefault: a("color-br-default", Xe),
1493
1494
  // Hover состояния
1494
1495
  hover: {
1495
- bgPrimary: "var(--hover-bg-primary, #4096ff)",
1496
- link: "var(--hover-color-link, #4096ff)"
1496
+ bgPrimary: a("hover-bg-primary", M)
1497
1497
  },
1498
1498
  // Focus состояния
1499
1499
  focused: {
1500
- bgPrimary: "var(--focused-bg-primary, #4096ff)"
1500
+ bgPrimary: a("focused-bg-primary", M)
1501
1501
  },
1502
1502
  // Pressed состояния
1503
1503
  pressed: {
1504
- bgPrimary: "var(--pressed-bg-primary, #0958d9)",
1505
- link: "var(--pressed-color-link, #0958d9)"
1504
+ bgPrimary: a("pressed-bg-primary", ee)
1505
+ }
1506
+ },
1507
+ typography: {
1508
+ fontFamily: a("font-family", "system-ui"),
1509
+ label: {
1510
+ fontSize: a("label-font-size", "1rem"),
1511
+ fontWeight: a("label-font-weight", "400")
1512
+ }
1513
+ },
1514
+ amount: {
1515
+ typography: {
1516
+ fontFamily: a("amount-font-family", "system-ui"),
1517
+ fontSize: a("amount-font-size", "1rem"),
1518
+ fontWeight: a("amount-font-weight", "400"),
1519
+ lineHeight: a("amount-line-height", "1.375")
1506
1520
  },
1507
- // Disabled состояния
1508
- disabled: {
1509
- bgPrimary: "var(--disabled-bg-primary, #ddd)",
1510
- text: "var(--disabled-color-text, #818181)",
1511
- white: "var(--disabled-color-white, #818181)",
1512
- brDefault: "var(--disabled-br-default, #ddd)"
1521
+ input: {
1522
+ minWidth: a("amount-input-min-width", "1.75rem")
1513
1523
  },
1514
1524
  button: {
1515
- colorClose: "var(--button-color-close, #888888)",
1516
- hoverColorClose: "var(--button-hover-color-close, #ff0000)"
1525
+ padding: a("amount-button-padding", "0.125rem"),
1526
+ maxWidth: a("amount-button-max-width", "1.5rem"),
1527
+ minWidth: a("amount-button-min-width", "1.5rem"),
1528
+ width: a("amount-button-width", "1.5rem"),
1529
+ backgroundColor: a("amount-button-background-color", "transparent"),
1530
+ color: a("amount-button-color", Me),
1531
+ borderColor: a("amount-button-border-color", "transparent"),
1532
+ hover: {
1533
+ backgroundColor: a(
1534
+ "amount-button-hover-background-color",
1535
+ "transparent"
1536
+ ),
1537
+ color: a("amount-button-hover-color", M),
1538
+ borderColor: a("amount-button-hover-border-color", "transparent")
1539
+ }
1517
1540
  }
1518
1541
  },
1519
- typography: {
1520
- fontFamily: "var(--button-font-family, system-ui)",
1521
- button: {
1522
- fontFamily: "var(--button-font-family, system-ui)",
1523
- fontSize: "var(--button-font-size, 0.875rem)",
1524
- fontWeight: "var(--button-font-weight, 400)"
1542
+ button: {
1543
+ typography: {
1544
+ fontFamily: a("button-typography-font-family", "system-ui"),
1545
+ fontSize: a("button-typography-font-size", "0.875rem"),
1546
+ fontWeight: a("button-typography-font-weight", "400"),
1547
+ lineHeight: a("button-typography-line-height", "1.5")
1525
1548
  },
1526
- label: {
1527
- fontSize: "var(--label-font-size, 1rem)",
1528
- fontWeight: "var(--label-font-weight, 400)"
1529
- }
1549
+ default: {
1550
+ padding: a("button-default-padding", "0.5rem 1rem"),
1551
+ backgroundColor: a("button-default-background-color", Y),
1552
+ color: a("button-default-color", X),
1553
+ borderColor: a("button-default-border-color", Y),
1554
+ borderRadius: a("button-default-border-radius", "0.25rem"),
1555
+ borderWidth: a("button-default-border-width", "0.0625rem"),
1556
+ borderStyle: a("button-default-border-style", "solid"),
1557
+ minWidth: a("button-default-min-width", "auto"),
1558
+ minHeight: a("button-default-min-height", "auto"),
1559
+ gap: a("button-default-gap", "0.625rem"),
1560
+ hover: {
1561
+ backgroundColor: a(
1562
+ "button-default-hover-background-color",
1563
+ M
1564
+ ),
1565
+ color: a("button-default-hover-color", X),
1566
+ borderColor: a("button-default-hover-border-color", M)
1567
+ },
1568
+ pressed: {
1569
+ backgroundColor: a(
1570
+ "button-default-pressed-background-color",
1571
+ ee
1572
+ ),
1573
+ color: a("button-default-pressed-color", X),
1574
+ borderColor: a(
1575
+ "button-default-pressed-border-color",
1576
+ ee
1577
+ )
1578
+ },
1579
+ disabled: {
1580
+ backgroundColor: a(
1581
+ "button-default-disabled-background-color",
1582
+ Se
1583
+ ),
1584
+ color: a("button-default-disabled-color", he),
1585
+ borderColor: a("button-default-disabled-border-color", Se)
1586
+ }
1587
+ },
1588
+ outlined: {
1589
+ backgroundColor: a(
1590
+ "button-outlined-background-color",
1591
+ "transparent"
1592
+ ),
1593
+ color: a("button-outlined-color", Y),
1594
+ borderColor: a("button-outlined-border-color", Y),
1595
+ hover: {
1596
+ backgroundColor: a(
1597
+ "button-outlined-hover-background-color",
1598
+ Ce
1599
+ ),
1600
+ color: a("button-outlined-hover-color", M),
1601
+ borderColor: a("button-outlined-hover-border-color", M)
1602
+ },
1603
+ pressed: {
1604
+ backgroundColor: a(
1605
+ "button-outlined-pressed-background-color",
1606
+ nr
1607
+ ),
1608
+ color: a("button-outlined-pressed-color", ee),
1609
+ borderColor: a(
1610
+ "button-outlined-pressed-border-color",
1611
+ ee
1612
+ )
1613
+ },
1614
+ disabled: {
1615
+ backgroundColor: a(
1616
+ "button-outlined-disabled-background-color",
1617
+ "transparent"
1618
+ ),
1619
+ color: a("button-outlined-disabled-color", he),
1620
+ borderColor: a("button-outlined-disabled-border-color", Se)
1621
+ }
1622
+ },
1623
+ ghost: {
1624
+ backgroundColor: a("button-ghost-background-color", "transparent"),
1625
+ color: a("button-ghost-color", Y),
1626
+ borderColor: a("button-ghost-border-color", "transparent"),
1627
+ hover: {
1628
+ backgroundColor: a("button-ghost-hover-background-color", Ce),
1629
+ color: a("button-ghost-hover-color", M)
1630
+ },
1631
+ pressed: {
1632
+ backgroundColor: a(
1633
+ "button-ghost-pressed-background-color",
1634
+ nr
1635
+ ),
1636
+ color: a("button-ghost-pressed-color", ee)
1637
+ },
1638
+ disabled: {
1639
+ backgroundColor: a(
1640
+ "button-ghost-disabled-background-color",
1641
+ "transparent"
1642
+ ),
1643
+ color: a("button-ghost-disabled-color", he)
1644
+ }
1645
+ },
1646
+ text: {
1647
+ backgroundColor: a("button-text-background-color", "transparent"),
1648
+ color: a("button-text-color", Y),
1649
+ borderColor: a("button-text-border-color", "transparent"),
1650
+ hover: {
1651
+ backgroundColor: a(
1652
+ "button-text-hover-background-color",
1653
+ "transparent"
1654
+ ),
1655
+ color: a("button-text-hover-color", M)
1656
+ },
1657
+ pressed: {
1658
+ backgroundColor: a(
1659
+ "button-text-pressed-background-color",
1660
+ "transparent"
1661
+ ),
1662
+ color: a("button-text-pressed-color", ee)
1663
+ },
1664
+ disabled: {
1665
+ backgroundColor: a(
1666
+ "button-text-disabled-background-color",
1667
+ "transparent"
1668
+ ),
1669
+ color: a("button-text-disabled-color", he)
1670
+ }
1671
+ },
1672
+ link: {
1673
+ color: a("button-link-color", Y),
1674
+ hover: {
1675
+ color: a("button-link-hover-color", M)
1676
+ },
1677
+ pressed: {
1678
+ color: a("button-link-pressed-color", ee)
1679
+ },
1680
+ disabled: {
1681
+ color: a("button-link-disabled-color", he)
1682
+ }
1683
+ },
1684
+ white: {
1685
+ backgroundColor: a("button-white-background-color", X),
1686
+ color: a("button-white-color", Me),
1687
+ borderColor: a("button-white-border-color", X),
1688
+ hover: {
1689
+ backgroundColor: a(
1690
+ "button-white-hover-background-color",
1691
+ M
1692
+ ),
1693
+ color: a("button-white-hover-color", X),
1694
+ borderColor: a("button-white-hover-border-color", M)
1695
+ },
1696
+ pressed: {
1697
+ backgroundColor: a(
1698
+ "button-white-pressed-background-color",
1699
+ ee
1700
+ ),
1701
+ color: a("button-white-pressed-color", X),
1702
+ borderColor: a(
1703
+ "button-white-pressed-border-color",
1704
+ ee
1705
+ )
1706
+ },
1707
+ disabled: {
1708
+ backgroundColor: a(
1709
+ "button-white-disabled-background-color",
1710
+ Se
1711
+ ),
1712
+ color: a("button-white-disabled-color", he),
1713
+ borderColor: a("button-white-disabled-border-color", Se)
1714
+ }
1715
+ },
1716
+ close: {
1717
+ size: a("button-close-size", "1.875rem"),
1718
+ color: a("button-close-color", cn),
1719
+ hoverColor: a("button-close-hover-color", sn),
1720
+ disabledColor: a("button-close-disabled-color", he)
1721
+ },
1722
+ radius: a("button-radius", "0.25rem")
1530
1723
  },
1531
- range: {
1724
+ input: {
1725
+ typography: {
1726
+ fontFamily: a("input-font-family", "system-ui"),
1727
+ fontSize: a("input-font-size", "1rem"),
1728
+ fontWeight: a("input-font-weight", "400")
1729
+ },
1532
1730
  colors: {
1533
- borderImageSource: {
1534
- default: "var(--range-border-image-source, #1677ff)",
1535
- hover: "var(--range-hover-border-image-source, #4096ff)",
1536
- pressed: "var(--range-pressed-border-image-source, #0958d9)"
1731
+ text: a("input-color", Me),
1732
+ backgroundColor: a("input-background-color", X),
1733
+ borderColor: a("input-border-color", ar),
1734
+ focus: {
1735
+ borderColor: a("input-focus-border-color", Y)
1736
+ },
1737
+ hover: {
1738
+ borderColor: a("input-hover-border-color", Y)
1537
1739
  }
1538
1740
  },
1741
+ radius: a("input-radius", "0.3125rem"),
1742
+ padding: a("input-padding", "0.5rem 0.75rem"),
1539
1743
  sizes: {
1540
- thumb: "var(--range-thumb-size, 1.25rem)",
1541
- track: "var(--range-track-size, 0.125rem)",
1542
- line: "var(--range-line-size, 0.125rem)"
1744
+ color: {
1745
+ width: a("input-color-width", "3.125rem"),
1746
+ height: a("input-color-height", "1.875rem"),
1747
+ padding: a("input-color-padding", "0.125rem"),
1748
+ borderRadius: a("input-color-radius", "0.25rem")
1749
+ },
1750
+ file: {
1751
+ padding: a("input-file-padding", "0.5rem"),
1752
+ borderRadius: a("input-file-radius", "0.25rem"),
1753
+ buttonMargin: a("input-file-button-margin", "0.75rem")
1754
+ },
1755
+ image: {
1756
+ padding: a("input-image-padding", "0.625rem 1.25rem"),
1757
+ borderRadius: a("input-image-radius", "0.25rem"),
1758
+ fontWeight: a("input-image-font-weight", "700")
1759
+ },
1760
+ label: {
1761
+ gap: a("label-gap", "0.25rem")
1762
+ }
1543
1763
  },
1544
- radius: "var(--range-radius, 1.25rem)"
1545
- },
1546
- radius: {
1547
- button: { brSmall: "var(--br-button-small, 0.25rem)" },
1548
- checkbox: "var(--br-checkbox, 0.125rem)",
1549
- input: "var(--br-checkbox, 0.3125rem)"
1764
+ range: {
1765
+ colors: {
1766
+ borderImageSource: {
1767
+ default: a("range-border-image-source", Y),
1768
+ hover: a("range-hover-border-image-source", M),
1769
+ pressed: a("range-pressed-border-image-source", ee)
1770
+ },
1771
+ backgroundСolor: {
1772
+ default: a("range-background-color", Y),
1773
+ track: a("range-track-background-color", Xe)
1774
+ },
1775
+ shadow: {
1776
+ disabled: a("range-disabled-shadow", Se)
1777
+ },
1778
+ outline: {
1779
+ focused: a("range-focused-outline", M)
1780
+ }
1781
+ },
1782
+ sizes: {
1783
+ thumb: a("range-thumb-size", "1.25rem"),
1784
+ track: a("range-track-size", "0.125rem"),
1785
+ line: a("range-line-size", "0.125rem")
1786
+ },
1787
+ radius: a("range-radius", "1.25rem")
1788
+ },
1789
+ checkable: {
1790
+ colors: {
1791
+ border: {
1792
+ default: a("checkable-border-color", Y),
1793
+ hover: a("checkable-hover-border-color", M),
1794
+ checked: a("checkable-checked-border-color", Y)
1795
+ },
1796
+ backgroundColor: {
1797
+ default: a("checkable-background-color", X),
1798
+ hover: a("checkable-hover-background-color", M),
1799
+ checked: a("checkable-checked-background-color", Y)
1800
+ },
1801
+ focus: {
1802
+ border: a("checkable-focus-border-color", M),
1803
+ shadow: a(
1804
+ "checkable-focus-shadow",
1805
+ "0 0 0 0.25rem rgba(13, 110, 253, 0.25)"
1806
+ )
1807
+ }
1808
+ },
1809
+ radius: a("checkable-radius", "0.125rem")
1810
+ }
1550
1811
  },
1551
- padding: {
1552
- button: "var(--button-padding, 0.5rem 1rem)",
1553
- input: "var(--button-padding, 0.5rem 0.75rem)"
1812
+ select: {
1813
+ typography: {
1814
+ fontFamily: a("select-font-family", "system-ui"),
1815
+ fontSize: a("select-font-size", "1rem"),
1816
+ fontWeight: a("select-font-weight", "400"),
1817
+ lineHeight: a("select-line-height", "1.375")
1818
+ },
1819
+ colors: {
1820
+ text: a("select-color", a("input-color", Me)),
1821
+ backgroundColor: a(
1822
+ "select-background-color",
1823
+ a("input-background-color", X)
1824
+ ),
1825
+ borderColor: a(
1826
+ "select-border-color",
1827
+ a("input-border-color", ar)
1828
+ ),
1829
+ option: {
1830
+ border: a("select-option-border-color", Xe),
1831
+ selected: {
1832
+ backgroundColor: a(
1833
+ "select-option-selected-background-color",
1834
+ Ce
1835
+ ),
1836
+ color: a("select-option-selected-color", Y)
1837
+ }
1838
+ },
1839
+ hover: {
1840
+ backgroundColor: a("select-background-color", Ce),
1841
+ borderColor: a(
1842
+ "select-hover-border-color",
1843
+ a("input-hover-border-color", Ce)
1844
+ ),
1845
+ option: {
1846
+ backgroundColor: a(
1847
+ "select-option-hover-background-color",
1848
+ Ce
1849
+ ),
1850
+ color: a("select-option-hover-color", M)
1851
+ }
1852
+ },
1853
+ focus: {
1854
+ shadow: a(
1855
+ "select-shadow",
1856
+ "0 0 0 0.125rem rgba(22, 119, 255, 0.1)"
1857
+ ),
1858
+ borderColor: a(
1859
+ "select-focus-border-color",
1860
+ a("input-focus-border-color", M)
1861
+ )
1862
+ }
1863
+ },
1864
+ radius: a("select-radius", "0.3125rem"),
1865
+ padding: a("select-padding", "0.5rem 0.75rem"),
1866
+ gap: a("select-gap", "0.5rem")
1554
1867
  },
1555
- shadow: {
1556
- checkmark: "var(--shadow-checkmark, 0 0 0 0.25rem rgba(13, 110, 253, 0.25))"
1868
+ dropdown: {
1869
+ colors: {
1870
+ backgroundColor: a(
1871
+ "dropdown-background-color",
1872
+ a("select-background-color", X)
1873
+ ),
1874
+ borderColor: a(
1875
+ "dropdown-border-color",
1876
+ a("select-border-color", Xe)
1877
+ ),
1878
+ shadow: a(
1879
+ "dropdown-shadow",
1880
+ "0 0.25rem 0.375rem -0.0625rem rgba(0, 0, 0, 0.1), 0 0.125rem 0.25rem -0.0625rem rgba(0, 0, 0, 0.06)"
1881
+ )
1882
+ }
1557
1883
  }
1558
- }, xe = f`
1884
+ }, ln = b`
1559
1885
  font-style: normal;
1560
- line-height: 1.5;
1886
+ line-height: ${i.button.typography.lineHeight};
1561
1887
  width: fit-content;
1562
1888
  background-color: transparent;
1563
- border: 0.0625rem solid transparent;
1889
+ border: ${i.button.default.borderWidth} solid transparent;
1564
1890
  padding: 0;
1565
1891
  cursor: pointer;
1566
1892
  user-select: none;
1567
1893
  transition: 0.2s color, 0.2s background-color, 0.2s border-color;
1568
1894
 
1569
- ${Oo}
1895
+ ${an}
1570
1896
 
1571
1897
  svg {
1572
- ${No}
1898
+ max-width: 1.5rem;
1899
+ max-height: 1.5rem;
1900
+ width: 100%;
1901
+ height: 100%;
1902
+ object-fit: contain;
1573
1903
  }
1574
1904
 
1575
1905
  &:focus-visible {
@@ -1577,156 +1907,188 @@ const i = {
1577
1907
  }
1578
1908
 
1579
1909
  &:disabled {
1580
- background-color: ${i.colors.disabled.bgPrimary};
1581
- color: ${i.colors.disabled.white};
1582
- border-color: ${i.colors.disabled.brDefault};
1583
1910
  pointer-events: none;
1584
1911
  }
1585
- `, mt = f`
1586
- font-family: ${i.typography.button.fontFamily};
1587
- font-size: ${i.typography.button.fontSize};
1588
- font-weight: ${i.typography.button.fontWeight};
1912
+ `, un = b`
1913
+ font-family: ${i.button.typography.fontFamily};
1914
+ font-size: ${i.button.typography.fontSize};
1915
+ font-weight: ${i.button.typography.fontWeight};
1589
1916
  text-align: center;
1590
1917
  display: flex;
1591
1918
  align-items: center;
1592
1919
  justify-content: center;
1593
- gap: 0.625rem;
1594
- `, hr = f`
1595
- ${mt}
1596
- ${xe}
1597
- background-color: var(--background-color, ${i.colors.bgPrimary});
1598
- color: var(--color, ${i.colors.white});
1599
- border-color: var(--border-color, ${i.colors.bgPrimary});
1600
- border-radius: var(--border-radius, ${i.radius.button.brSmall});
1601
- padding: 0.5rem 1rem;
1602
-
1603
- ${Ue(f`
1604
- background-color: var(
1605
- --hover-background-color,
1606
- ${i.colors.hover.bgPrimary}
1607
- );
1608
- color: var(--hover-color, ${i.colors.white});
1609
- border-color: var(--hover-border-color, ${i.colors.hover.bgPrimary});
1610
- `)}
1920
+ gap: ${i.button.default.gap};
1921
+ `, dn = b`
1922
+ --button-background-color: transparent;
1923
+ --button-color: currentColor;
1924
+ --button-border-color: transparent;
1925
+ --button-border-radius: ${i.button.default.borderRadius};
1926
+ --button-border-style: ${i.button.default.borderStyle};
1927
+ --button-border-width: ${i.button.default.borderWidth};
1928
+ --button-padding: ${i.button.default.padding};
1929
+ --button-min-width: ${i.button.default.minWidth};
1930
+ --button-min-height: ${i.button.default.minHeight};
1931
+ --button-gap: ${i.button.default.gap};
1611
1932
 
1612
- &:active:not(:disabled) {
1613
- background-color: var(
1614
- --pressed-background-color,
1615
- ${i.colors.pressed.bgPrimary}
1616
- );
1617
- color: var(--pressed-color, ${i.colors.white});
1618
- border-color: var(
1619
- --pressed-border-color,
1620
- ${i.colors.pressed.bgPrimary}
1621
- );
1622
- }
1623
- `, mr = f`
1624
- ${xe}
1625
- ${hr}
1626
- --background-color: ${i.colors.bgPrimary};
1627
- --color: ${i.colors.white};
1628
- --border-color: ${i.colors.bgPrimary};
1629
- --border-radius: ${i.radius.button.brSmall};
1630
- --hover-background-color: ${i.colors.hover.bgPrimary};
1631
- --hover-color: ${i.colors.white};
1632
- --hover-border-color: ${i.colors.hover.bgPrimary};
1633
- --pressed-background-color: ${i.colors.pressed.bgPrimary};
1634
- --pressed-color: ${i.colors.white};
1635
- --pressed-border-color: ${i.colors.pressed.bgPrimary};
1636
- `, Io = he.button`
1637
- ${xe}
1638
- ${mt}
1933
+ --button-hover-background-color: transparent;
1934
+ --button-hover-color: currentColor;
1935
+ --button-hover-border-color: transparent;
1936
+
1937
+ --button-pressed-background-color: transparent;
1938
+ --button-pressed-color: currentColor;
1939
+ --button-pressed-border-color: transparent;
1940
+
1941
+ --button-disabled-background-color: transparent;
1942
+ --button-disabled-color: currentColor;
1943
+ --button-disabled-border-color: transparent;
1944
+ `, Ee = b`
1945
+ ${ln}
1946
+ ${un}
1947
+ ${dn}
1639
1948
 
1640
- // Общие стили для всех кнопок
1641
- border-radius: ${i.radius.button.brSmall};
1642
- padding: ${i.padding.button};
1643
- `, jo = f`
1644
- ${hr}
1645
- --background-color: transparent;
1646
- --color: ${i.colors.text};
1647
- --border-color: ${i.colors.bgPrimary};
1648
- --border-radius: ${i.radius.button.brSmall};
1649
- --hover-background-color: ${i.colors.hover.bgPrimary};
1650
- --hover-color: ${i.colors.white};
1651
- --hover-border-color: ${i.colors.hover.bgPrimary};
1652
- --pressed-background-color: ${i.colors.pressed.bgPrimary};
1653
- --pressed-color: ${i.colors.white};
1654
- --pressed-border-color: ${i.colors.pressed.bgPrimary};
1655
- `, Do = f`
1656
- ${mr}
1657
- `, zo = f`
1658
- color: var(--color, ${i.colors.link});
1659
- border: none;
1660
- border-radius: 0;
1661
- padding: 0;
1949
+ background-color: var(--button-background-color);
1950
+ color: var(--button-color);
1951
+ border-color: var(--button-border-color);
1952
+ border-radius: var(--button-border-radius);
1953
+ border-style: var(--button-border-style);
1954
+ border-width: var(--button-border-width);
1955
+ padding: var(--button-padding);
1956
+ min-width: var(--button-min-width);
1957
+ min-height: var(--button-min-height);
1958
+ gap: var(--button-gap);
1662
1959
 
1663
- ${Ue(f`
1664
- color: var(--hover-color, ${i.colors.hover.link});
1960
+ ${It(b`
1961
+ background-color: var(--button-hover-background-color);
1962
+ color: var(--button-hover-color);
1963
+ border-color: var(--button-hover-border-color);
1665
1964
  `)}
1666
1965
 
1667
1966
  &:active:not(:disabled) {
1668
- color: var(--pressed-color, ${i.colors.pressed.link});
1669
- }
1670
- `, Mo = f`
1671
- ${xe}
1672
- `, Fo = f`
1673
- ${hr}
1674
- --background-color: ${i.colors.bgWhite};
1675
- --color: ${i.colors.text};
1676
- --border-color: ${i.colors.bgWhite};
1677
- --border-radius: ${i.radius.button.brSmall};
1678
- --hover-background-color: ${i.colors.hover.bgPrimary};
1679
- --hover-color: ${i.colors.white};
1680
- --hover-border-color: ${i.colors.hover.bgPrimary};
1681
- --pressed-background-color: ${i.colors.pressed.bgPrimary};
1682
- --pressed-color: ${i.colors.white};
1683
- --pressed-border-color: ${i.colors.pressed.bgPrimary};
1684
- `, Lo = he(Io)`
1685
- ${({ button: e }) => {
1967
+ background-color: var(--button-pressed-background-color);
1968
+ color: var(--button-pressed-color);
1969
+ border-color: var(--button-pressed-border-color);
1970
+ }
1971
+
1972
+ &:disabled {
1973
+ background-color: var(--button-disabled-background-color);
1974
+ color: var(--button-disabled-color);
1975
+ border-color: var(--button-disabled-border-color);
1976
+ }
1977
+ `, pn = (e) => typeof e == "object" && e !== null && "hover" in e, rt = "transparent", ce = (e, t) => e?.[t] ?? rt, Ye = (e) => {
1978
+ const t = i.button[e];
1979
+ if (e === "link" || e === "close")
1980
+ return b`
1981
+ ${Ee}
1982
+ `;
1983
+ if (!pn(t))
1984
+ return b`
1985
+ ${Ee}
1986
+ `;
1987
+ const { hover: r, pressed: o, disabled: n } = t;
1988
+ return b`
1989
+ ${Ee}
1990
+
1991
+ --button-background-color: ${ce(t, "backgroundColor")};
1992
+ --button-color: ${ce(t, "color")};
1993
+ --button-border-color: ${ce(t, "borderColor")};
1994
+
1995
+ --button-hover-background-color: ${ce(r, "backgroundColor")};
1996
+ --button-hover-color: ${ce(r, "color")};
1997
+ --button-hover-border-color: ${r?.borderColor ?? r?.backgroundColor ?? rt};
1998
+
1999
+ --button-pressed-background-color: ${ce(o, "backgroundColor")};
2000
+ --button-pressed-color: ${ce(o, "color")};
2001
+ --button-pressed-border-color: ${o?.borderColor ?? o?.backgroundColor ?? rt};
2002
+
2003
+ --button-disabled-background-color: ${ce(n, "backgroundColor")};
2004
+ --button-disabled-color: ${ce(n, "color")};
2005
+ --button-disabled-border-color: ${n?.borderColor ?? n?.backgroundColor ?? rt};
2006
+ `;
2007
+ }, Dt = Ye("default"), fn = Ye("outlined"), hn = Ye("ghost"), bn = Ye("text"), gn = Ye("white"), mn = b`
2008
+ ${Ee}
2009
+ --button-color: ${i.button.link.color};
2010
+ --button-hover-color: ${i.button.link.hover.color};
2011
+ --button-pressed-color: ${i.button.link.pressed.color};
2012
+ --button-disabled-color: ${i.button.link.disabled.color};
2013
+ --button-border-radius: 0;
2014
+ --button-padding: 0;
2015
+ --button-min-width: auto;
2016
+ --button-min-height: auto;
2017
+ text-decoration: none;
2018
+
2019
+ &:hover {
2020
+ text-decoration: underline;
2021
+ }
2022
+ `, yn = b`
2023
+ ${Ee}
2024
+ --button-padding: 0;
2025
+ --button-min-width: auto;
2026
+ --button-min-height: auto;
2027
+ `, vn = F.button`
2028
+ ${({ button: e = "default" }) => {
1686
2029
  switch (e) {
1687
- case "border":
1688
- return jo;
1689
- case "link":
1690
- return zo;
2030
+ case "default":
2031
+ return Dt;
2032
+ case "outlined":
2033
+ return fn;
2034
+ case "ghost":
2035
+ return hn;
2036
+ case "text":
2037
+ return bn;
1691
2038
  case "white":
1692
- return Fo;
1693
- case "reset":
1694
- return Mo;
2039
+ return gn;
2040
+ case "link":
2041
+ return mn;
1695
2042
  default:
1696
- return Do;
2043
+ return yn;
1697
2044
  }
1698
2045
  }}
1699
- `, on = ({
2046
+ `, sr = ({
1700
2047
  children: e,
1701
- disabled: r = !1,
1702
- type: t = "button",
2048
+ disabled: t = !1,
2049
+ type: r = "button",
1703
2050
  button: o = "default",
1704
2051
  className: n = "",
1705
2052
  ...s
1706
- }) => /* @__PURE__ */ B.jsx(
1707
- Lo,
2053
+ }) => /* @__PURE__ */ p.jsx(
2054
+ vn,
1708
2055
  {
1709
- type: t,
1710
- disabled: r,
2056
+ type: r,
2057
+ disabled: t,
1711
2058
  button: o,
1712
2059
  className: n,
1713
- "aria-disabled": r,
2060
+ "aria-disabled": t,
1714
2061
  ...s,
1715
2062
  children: e
1716
2063
  }
1717
- ), Bo = he.button`
1718
- ${xe}
1719
- ${ht("1.875rem")}
1720
-
2064
+ ), wn = F.button`
2065
+ ${Ee}
2066
+
2067
+ // Специфичные стили для кнопки close
2068
+ width: ${i.button.close.size};
2069
+ height: ${i.button.close.size};
2070
+ border-radius: ${i.button.radius};
1721
2071
  font-size: 0;
1722
2072
  position: relative;
1723
- border-radius: 0.25rem;
1724
- color: ${(e) => e.disabled ? i.colors.disabled.text : e.color || i.colors.button.colorClose};
1725
2073
 
1726
- ${Ue(f`
1727
- color: ${(e) => e.disabled ? i.colors.disabled.text : e.hoverColor || i.colors.button.hoverColorClose};
1728
- `)}
2074
+ // Убираем дефолтные значения для close кнопки
2075
+ --button-padding: 0;
2076
+ --button-min-width: ${i.button.close.size};
2077
+ --button-min-height: ${i.button.close.size};
2078
+ --button-gap: 0;
2079
+
2080
+ // Цвета из темы или кастомные через props
2081
+ --button-color: ${(e) => e.color || i.button.close.color};
2082
+ --button-hover-color: ${(e) => e.hoverColor || i.button.close.hoverColor};
2083
+ --button-disabled-color: ${i.button.close.disabledColor};
1729
2084
 
2085
+ // SVG специфичные стили
2086
+ svg {
2087
+ max-width: 100%;
2088
+ max-height: 100%;
2089
+ }
2090
+
2091
+ // Псевдоэлемент для overlay
1730
2092
  &:before {
1731
2093
  content: "";
1732
2094
  height: 100dvh;
@@ -1738,40 +2100,41 @@ const i = {
1738
2100
  z-index: -1;
1739
2101
  }
1740
2102
 
2103
+ // Стили для SVG path
1741
2104
  path {
1742
2105
  stroke: currentColor;
1743
2106
  stroke-width: 0.125rem;
1744
2107
  }
1745
- `, nn = ({
2108
+ `, pa = ({
1746
2109
  disabled: e = !1,
1747
- className: r = "",
1748
- ...t
1749
- }) => /* @__PURE__ */ B.jsxs(
1750
- Bo,
2110
+ className: t = "",
2111
+ ...r
2112
+ }) => /* @__PURE__ */ p.jsxs(
2113
+ wn,
1751
2114
  {
1752
2115
  type: "button",
1753
- className: r,
2116
+ className: t,
1754
2117
  disabled: e,
1755
2118
  "aria-label": "Close",
1756
- ...t,
2119
+ ...r,
1757
2120
  children: [
1758
- /* @__PURE__ */ B.jsx("span", { style: { display: "none" }, children: "Close" }),
1759
- /* @__PURE__ */ B.jsxs("svg", { viewBox: "0 0 24 25", children: [
1760
- /* @__PURE__ */ B.jsx("path", { d: "M6.34314 18.1567L17.6568 6.84303" }),
1761
- /* @__PURE__ */ B.jsx("path", { d: "M17.6569 18.1567L6.34315 6.84303" })
2121
+ /* @__PURE__ */ p.jsx("span", { style: { display: "none" }, children: "Close" }),
2122
+ /* @__PURE__ */ p.jsxs("svg", { viewBox: "0 0 24 25", children: [
2123
+ /* @__PURE__ */ p.jsx("path", { d: "M6.34314 18.1567L17.6568 6.84303" }),
2124
+ /* @__PURE__ */ p.jsx("path", { d: "M17.6569 18.1567L6.34315 6.84303" })
1762
2125
  ] })
1763
2126
  ]
1764
2127
  }
1765
- ), Wo = f`
2128
+ ), kn = b`
1766
2129
  -webkit-appearance: none;
1767
2130
  appearance: none;
1768
- ${ht("1rem")}
1769
- border: 0.0625rem solid ${i.colors.bgPrimary};
1770
- border-radius: ${i.radius.checkbox};
2131
+ ${nn("1rem")}
2132
+ border: 0.0625rem solid ${i.input.checkable.colors.border.default};
2133
+ border-radius: ${i.input.checkable.radius};
1771
2134
  background-repeat: no-repeat;
1772
2135
  background-position: center;
1773
2136
  background-size: contain;
1774
- background-color: ${i.colors.bgWhite};
2137
+ background-color: ${i.input.checkable.colors.backgroundColor.default};
1775
2138
  cursor: pointer;
1776
2139
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out,
1777
2140
  border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
@@ -1783,8 +2146,8 @@ const i = {
1783
2146
  }
1784
2147
 
1785
2148
  &:checked {
1786
- background-color: ${i.colors.bgPrimary};
1787
- border-color: ${i.colors.bgPrimary};
2149
+ background-color: ${i.input.checkable.colors.backgroundColor.checked};
2150
+ border-color: ${i.input.checkable.colors.border.checked};
1788
2151
 
1789
2152
  &[type="checkbox"] {
1790
2153
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
@@ -1795,18 +2158,18 @@ const i = {
1795
2158
  }
1796
2159
  }
1797
2160
 
1798
- ${Ue(f`
1799
- border-color: ${i.colors.hover.bgPrimary};
2161
+ ${It(b`
2162
+ border-color: ${i.input.checkable.colors.border.hover};
1800
2163
 
1801
2164
  &:checked {
1802
- background-color: ${i.colors.hover.bgPrimary};
2165
+ background-color: ${i.input.checkable.colors.backgroundColor.hover};
1803
2166
  }
1804
2167
  `)}
1805
2168
 
1806
2169
  &:focus-visible {
1807
2170
  outline: none;
1808
- border-color: ${i.colors.hover.bgPrimary};
1809
- box-shadow: ${i.shadow.checkmark};
2171
+ border-color: ${i.input.checkable.colors.focus.border};
2172
+ box-shadow: ${i.input.checkable.colors.focus.shadow};
1810
2173
  }
1811
2174
 
1812
2175
  &:disabled {
@@ -1822,35 +2185,35 @@ const i = {
1822
2185
  body & ~ p {
1823
2186
  margin-top: -0.1875em;
1824
2187
  }
1825
- `, cr = f`
1826
- font-family: ${i.typography.fontFamily};
1827
- font-size: ${i.typography.label.fontSize};
1828
- font-weight: ${i.typography.label.fontWeight};
1829
- color: ${i.colors.inputText};
1830
- background-color: ${i.colors.inputBg};
1831
- border: 0.0625rem solid ${i.colors.inputBorder};
1832
- border-radius: ${i.radius.input};
1833
- padding: ${i.padding.input};
2188
+ `, _t = b`
2189
+ font-family: ${i.input.typography.fontFamily};
2190
+ font-size: ${i.input.typography.fontSize};
2191
+ font-weight: ${i.input.typography.fontWeight};
2192
+ color: ${i.input.colors.text};
2193
+ background-color: ${i.input.colors.backgroundColor};
2194
+ border: 0.0625rem solid ${i.input.colors.borderColor};
2195
+ border-radius: ${i.input.radius};
2196
+ padding: ${i.input.padding};
1834
2197
  transition: 0.2s border-color, 0.2s background-color, 0.2s color;
1835
2198
 
1836
2199
  &:focus-visible {
1837
2200
  outline: none;
1838
- border-color: ${i.colors.bgPrimary};
2201
+ border-color: ${i.input.colors.focus.borderColor};
1839
2202
  }
1840
2203
 
1841
2204
  @media (hover: hover) {
1842
2205
  &:hover:not(:focus, :focus-visible, :disabled) {
1843
- border-color: ${i.colors.bgPrimary};
2206
+ border-color: ${i.input.colors.hover.borderColor};
1844
2207
  }
1845
2208
  }
1846
2209
 
1847
2210
  @media (hover: none) {
1848
2211
  &:active:not(:focus, :focus-visible, :disabled) {
1849
- border-color: ${i.colors.bgPrimary};
2212
+ border-color: ${i.input.colors.hover.borderColor};
1850
2213
  }
1851
2214
  }
1852
- `, Yo = f`
1853
- ${cr}
2215
+ `, xn = b`
2216
+ ${_t}
1854
2217
  -moz-appearance: textfield;
1855
2218
  appearance: none;
1856
2219
  outline: none;
@@ -1863,55 +2226,56 @@ const i = {
1863
2226
  -webkit-appearance: none;
1864
2227
  margin: 0;
1865
2228
  }
1866
- `, Mr = f`
1867
- width: ${i.range.sizes.thumb};
1868
- height: ${i.range.sizes.thumb};
2229
+ `, ir = b`
2230
+ width: ${i.input.range.sizes.thumb};
2231
+ height: ${i.input.range.sizes.thumb};
1869
2232
  margin-top: var(--margin-top-thumb);
1870
2233
  border: none;
1871
- border-radius: ${i.range.radius};
1872
- background-color: ${i.colors.bgPrimary};
2234
+ border-radius: ${i.input.range.radius};
2235
+ background-color: ${i.input.range.colors.backgroundСolor.default};
1873
2236
  cursor: pointer;
1874
2237
  transition: 0.2s;
1875
- `, Fr = f`
2238
+ `, cr = b`
1876
2239
  box-sizing: border-box;
1877
- background-color: ${i.colors.bgDefault};
1878
- height: ${i.range.sizes.track};
2240
+ background-color: ${i.input.range.colors.backgroundСolor.track};
2241
+ height: ${i.input.range.sizes.track};
1879
2242
  border: none;
1880
- `, Lr = f`
1881
- --border-image-source: ${i.range.colors.borderImageSource.hover};
1882
- `, Br = f`
1883
- --border-image-source: ${i.range.colors.borderImageSource.pressed};
1884
- `, Wr = f`
1885
- box-shadow: 0 0 0 1.875rem inset ${i.colors.disabled.brDefault};
1886
- `, Yr = f`
1887
- outline: 0.1875rem solid ${i.colors.focused.bgPrimary};
1888
- outline-offset: ${i.range.sizes.track};
1889
- `, Vo = f`
1890
- --border-image-source: ${i.range.colors.borderImageSource.default};
2243
+ `, lr = b`
2244
+ --border-image-source: ${i.input.range.colors.borderImageSource.hover};
2245
+ `, ur = b`
2246
+ --border-image-source: ${i.input.range.colors.borderImageSource.pressed};
2247
+ `, dr = b`
2248
+ box-shadow: 0 0 0 1.875rem inset ${i.input.range.colors.shadow.disabled};
2249
+ `, pr = b`
2250
+ outline: 0.1875rem solid ${i.input.range.colors.outline.focused};
2251
+ outline-offset: ${i.input.range.sizes.track};
2252
+ `, $n = b`
2253
+ --border-image-source: ${i.input.range.colors.borderImageSource.default};
1891
2254
  --margin-top-thumb: calc(
1892
- ${i.range.sizes.thumb} / -2 + (${i.range.sizes.track} / 2)
2255
+ ${i.input.range.sizes.thumb} / -2 +
2256
+ (${i.input.range.sizes.track} / 2)
1893
2257
  );
1894
- accent-color: ${i.colors.bgPrimary};
2258
+ accent-color: ${i.input.range.colors.backgroundСolor.default};
1895
2259
  appearance: none;
1896
- height: ${i.range.sizes.thumb};
2260
+ height: ${i.input.range.sizes.thumb};
1897
2261
  overflow-x: clip;
1898
2262
  background-color: transparent;
1899
2263
  width: 100%;
1900
2264
  cursor: pointer;
1901
2265
 
1902
2266
  &::-webkit-slider-runnable-track {
1903
- ${Fr}
2267
+ ${cr}
1904
2268
  }
1905
2269
  &::-moz-range-track {
1906
- ${Fr}
2270
+ ${cr}
1907
2271
  }
1908
2272
  &::-webkit-slider-thumb {
1909
2273
  -webkit-appearance: none;
1910
- ${Mr}
2274
+ ${ir}
1911
2275
  }
1912
2276
  &::-moz-range-thumb {
1913
2277
  -moz-appearance: none;
1914
- ${Mr}
2278
+ ${ir}
1915
2279
  }
1916
2280
 
1917
2281
  /* Focus состояния */
@@ -1919,10 +2283,10 @@ const i = {
1919
2283
  outline: none;
1920
2284
 
1921
2285
  &::-webkit-slider-thumb {
1922
- ${Yr}
2286
+ ${pr}
1923
2287
  }
1924
2288
  &::-moz-range-thumb {
1925
- ${Yr}
2289
+ ${pr}
1926
2290
  }
1927
2291
  }
1928
2292
 
@@ -1930,27 +2294,27 @@ const i = {
1930
2294
  &:hover:not(:disabled),
1931
2295
  &:focus-visible:not(:disabled) {
1932
2296
  &::-webkit-slider-thumb {
1933
- ${Lr}
2297
+ ${lr}
1934
2298
  }
1935
2299
  &::-moz-range-thumb {
1936
- ${Lr}
2300
+ ${lr}
1937
2301
  }
1938
2302
  }
1939
2303
 
1940
2304
  /* Active состояния */
1941
2305
  &:active:not(:disabled) {
1942
2306
  &::-webkit-slider-thumb {
1943
- ${Br}
2307
+ ${ur}
1944
2308
  }
1945
2309
  &::-moz-range-thumb {
1946
- ${Br}
2310
+ ${ur}
1947
2311
  }
1948
2312
  }
1949
2313
 
1950
2314
  /* Прогресс для Firefox */
1951
2315
  &::-moz-range-progress {
1952
2316
  background-color: var(--border-image-source);
1953
- height: ${i.range.sizes.track};
2317
+ height: ${i.input.range.sizes.track};
1954
2318
  }
1955
2319
 
1956
2320
  &::-webkit-slider-thumb {
@@ -1963,7 +2327,7 @@ const i = {
1963
2327
  var(--border-image-source) 50%,
1964
2328
  transparent 0
1965
2329
  );
1966
- border-image-width: calc(50% - ${i.range.sizes.line}) 50%;
2330
+ border-image-width: calc(50% - ${i.input.range.sizes.line}) 50%;
1967
2331
  }
1968
2332
 
1969
2333
  /* Disabled состояния */
@@ -1973,101 +2337,101 @@ const i = {
1973
2337
 
1974
2338
  &::-webkit-slider-thumb {
1975
2339
  cursor: not-allowed;
1976
- ${Wr}
2340
+ ${dr}
1977
2341
  }
1978
2342
 
1979
2343
  &::-moz-range-thumb {
1980
2344
  cursor: not-allowed;
1981
- ${Wr}
2345
+ ${dr}
1982
2346
  }
1983
2347
  }
1984
- `, Go = f`
1985
- ${mr}
2348
+ `, Sn = b`
2349
+ ${Dt}
1986
2350
  display: inline-block;
1987
- `, Uo = f`
1988
- width: 50px;
1989
- height: 30px;
1990
- padding: 2px;
1991
- border: 1px solid ${i.colors.brDefault};
1992
- border-radius: 4px;
2351
+ `, Cn = b`
2352
+ width: ${i.input.sizes.color.width};
2353
+ height: ${i.input.sizes.color.height};
2354
+ padding: ${i.input.sizes.color.padding};
2355
+ border: 0.0625rem solid ${i.colors.brDefault};
2356
+ border-radius: ${i.input.sizes.color.borderRadius};
1993
2357
  cursor: pointer;
1994
- `, qo = f`
1995
- padding: 8px;
1996
- border: 1px dashed ${i.colors.brDefault};
1997
- border-radius: 4px;
2358
+ `, En = b`
2359
+ padding: ${i.input.sizes.file.padding};
2360
+ border: 0.0625rem solid ${i.colors.brDefault};
2361
+ border-radius: ${i.input.sizes.file.borderRadius};
1998
2362
  cursor: pointer;
1999
2363
 
2000
2364
  &::file-selector-button {
2001
- ${mr}
2002
- margin-right: 12px;
2365
+ ${Dt}
2366
+ margin-right: ${i.input.sizes.file.buttonMargin};
2003
2367
  }
2004
- `, Ho = f`
2005
- padding: 10px 20px;
2368
+ `, Rn = b`
2369
+ padding: ${i.input.sizes.image.padding};
2006
2370
  border: none;
2007
- border-radius: 4px;
2371
+ border-radius: ${i.input.sizes.image.borderRadius};
2008
2372
  cursor: pointer;
2009
- font-weight: bold;
2373
+ font-weight: ${i.input.sizes.image.fontWeight};
2010
2374
  background-color: ${i.colors.bgPrimary};
2011
2375
  color: ${i.colors.white};
2012
2376
 
2013
2377
  &:hover:not(:disabled) {
2014
2378
  background-color: ${i.colors.hover.bgPrimary};
2015
2379
  }
2016
- `, Xo = f`
2380
+ `, An = b`
2017
2381
  display: none;
2018
- `, Jo = f`
2382
+ `, _n = b`
2019
2383
  flex-direction: column;
2020
2384
 
2021
2385
  p {
2022
2386
  order: -1;
2023
2387
  }
2024
- `, Zo = f``, Ko = (e) => {
2388
+ `, jn = b``, Tn = (e) => {
2025
2389
  switch (e) {
2026
2390
  case "button":
2027
2391
  case "submit":
2028
2392
  case "reset":
2029
- return Go;
2393
+ return Sn;
2030
2394
  case "checkbox":
2031
2395
  case "radio":
2032
- return Wo;
2396
+ return kn;
2033
2397
  case "color":
2034
- return Uo;
2398
+ return Cn;
2035
2399
  case "date":
2036
2400
  case "datetime-local":
2037
2401
  case "month":
2038
2402
  case "time":
2039
2403
  case "week":
2040
- return cr;
2404
+ return _t;
2041
2405
  case "file":
2042
- return qo;
2406
+ return En;
2043
2407
  case "image":
2044
- return Ho;
2408
+ return Rn;
2045
2409
  case "number":
2046
- return Yo;
2410
+ return xn;
2047
2411
  case "range":
2048
- return Vo;
2412
+ return $n;
2049
2413
  case "hidden":
2050
- return Xo;
2414
+ return An;
2051
2415
  // text, password, email, search, tel, url
2052
2416
  default:
2053
- return cr;
2417
+ return _t;
2054
2418
  }
2055
- }, Qo = (e) => {
2419
+ }, Pn = (e) => {
2056
2420
  switch (e) {
2057
2421
  case "checkbox":
2058
2422
  case "radio":
2059
- return Zo;
2423
+ return jn;
2060
2424
  default:
2061
- return Jo;
2425
+ return _n;
2062
2426
  }
2063
- }, en = he.input`
2427
+ }, On = F.input`
2064
2428
  width: auto;
2065
2429
  max-width: 100%;
2066
- ${({ type: e }) => Ko(e)}
2067
- `, rn = he.label`
2068
- ${({ $type: e }) => Qo(e)}
2430
+ ${({ type: e }) => Tn(e)}
2431
+ `, Nn = F.label`
2432
+ ${({ $type: e }) => Pn(e)}
2069
2433
  display: flex;
2070
- gap: 0.25rem;
2434
+ gap: ${i.input.sizes.label.gap};
2071
2435
  user-select: none;
2072
2436
 
2073
2437
  p {
@@ -2076,15 +2440,740 @@ const i = {
2076
2440
  font-weight: ${i.typography.label.fontWeight};
2077
2441
  margin: 0;
2078
2442
  }
2079
- `, an = ({ id: e, type: r = "text", label: t, ...o }) => {
2080
- const n = () => /* @__PURE__ */ B.jsx(en, { id: e, type: r, ...o });
2081
- return t ? /* @__PURE__ */ B.jsxs(rn, { $type: r, children: [
2082
- /* @__PURE__ */ B.jsx(n, {}),
2083
- /* @__PURE__ */ B.jsx("p", { children: t })
2084
- ] }) : /* @__PURE__ */ B.jsx(n, {});
2443
+ `, Yr = ({ id: e, type: t = "text", label: r, ...o }) => {
2444
+ const n = () => /* @__PURE__ */ p.jsx(On, { id: e, type: t, ...o });
2445
+ return r ? /* @__PURE__ */ p.jsxs(Nn, { $type: t, children: [
2446
+ /* @__PURE__ */ p.jsx(n, {}),
2447
+ /* @__PURE__ */ p.jsx("p", { children: r })
2448
+ ] }) : /* @__PURE__ */ p.jsx(n, {});
2449
+ }, zn = ft`
2450
+ from {
2451
+ opacity: 0;
2452
+ transform: translateY(-0.5rem);
2453
+ }
2454
+ to {
2455
+ opacity: 1;
2456
+ transform: translateY(0);
2457
+ }
2458
+ `, In = ft`
2459
+ from {
2460
+ opacity: 1;
2461
+ transform: translateY(0);
2462
+ }
2463
+ to {
2464
+ opacity: 0;
2465
+ transform: translateY(-0.5rem);
2466
+ }
2467
+ `, Dn = ft`
2468
+ from {
2469
+ opacity: 0;
2470
+ transform: translateY(0.5rem);
2471
+ }
2472
+ to {
2473
+ opacity: 1;
2474
+ transform: translateY(0);
2475
+ }
2476
+ `, Fn = ft`
2477
+ from {
2478
+ opacity: 1;
2479
+ transform: translateY(0);
2480
+ }
2481
+ to {
2482
+ opacity: 0;
2483
+ transform: translateY(0.5rem);
2484
+ }
2485
+ `, fr = F.div`
2486
+ position: relative;
2487
+ width: 100%;
2488
+
2489
+ ${({ $disabled: e }) => e && b`
2490
+ opacity: 0.6;
2491
+ cursor: not-allowed;
2492
+ pointer-events: none;
2493
+ `}
2494
+ `, hr = F.button`
2495
+ font-family: ${i.select.typography.fontFamily};
2496
+ font-size: ${i.select.typography.fontSize};
2497
+ font-weight: ${i.select.typography.fontWeight};
2498
+ line-height: ${i.select.typography.lineHeight};
2499
+ text-align: start;
2500
+ display: flex;
2501
+ align-items: center;
2502
+ justify-content: space-between;
2503
+ width: 100%;
2504
+ background-color: ${i.select.colors.backgroundColor};
2505
+ color: ${i.select.colors.text};
2506
+ border: 0.0625rem solid ${i.select.colors.borderColor};
2507
+ border-radius: ${i.select.radius};
2508
+ padding: ${i.select.padding};
2509
+ gap: ${i.select.gap};
2510
+ cursor: pointer;
2511
+ transition: all 0.2s ease;
2512
+
2513
+ &:hover {
2514
+ border-color: ${i.select.colors.hover.borderColor};
2515
+ background-color: ${i.select.colors.hover.backgroundColor};
2516
+ }
2517
+
2518
+ &:focus {
2519
+ outline: none;
2520
+ border-color: ${i.select.colors.focus.borderColor};
2521
+ box-shadow: ${i.select.colors.focus.shadow};
2522
+ }
2523
+
2524
+ ${({ $isOpen: e }) => e && b`
2525
+ position: relative;
2526
+ z-index: 10;
2527
+ border-color: ${i.select.colors.focus.borderColor};
2528
+
2529
+ svg {
2530
+ transform: rotate(180deg);
2531
+ }
2532
+ `}
2533
+ `, Mn = F.ul`
2534
+ list-style: none;
2535
+ position: absolute;
2536
+ left: 0;
2537
+ right: 0;
2538
+ margin: 0;
2539
+ padding: 0;
2540
+ ${({ $direction: e }) => e === "top" ? "bottom: calc(100% + 0.5rem);" : "top: calc(100% + 0.5rem);"}
2541
+
2542
+ display: flex;
2543
+ flex-direction: column;
2544
+ background-color: ${i.dropdown.colors.backgroundColor};
2545
+ border: 0.0625rem solid ${i.dropdown.colors.borderColor};
2546
+ border-radius: ${i.select.radius};
2547
+ box-shadow: ${i.dropdown.colors.shadow};
2548
+
2549
+ max-height: ${({ $maxHeight: e }) => e || "50vh"};
2550
+ overflow-y: auto;
2551
+ z-index: 20;
2552
+
2553
+ ${({ $direction: e, $isActive: t, $isAnimating: r }) => r ? e === "top" ? t ? b`
2554
+ animation: ${Dn} 0.1s ease-out forwards;
2555
+ ` : b`
2556
+ animation: ${Fn} 0.1s ease-in forwards;
2557
+ ` : t ? b`
2558
+ animation: ${zn} 0.1s ease-out forwards;
2559
+ ` : b`
2560
+ animation: ${In} 0.1s ease-in forwards;
2561
+ ` : ""}
2562
+ `, Wn = F.li`
2563
+ font-family: ${i.select.typography.fontFamily};
2564
+ font-size: 0.875rem;
2565
+ font-weight: ${i.select.typography.fontWeight};
2566
+ line-height: ${i.select.typography.lineHeight};
2567
+ text-align: start;
2568
+ display: flex;
2569
+ align-items: center;
2570
+ justify-content: space-between;
2571
+ padding: 0.75rem 1rem;
2572
+ cursor: pointer;
2573
+ transition: all 0.2s ease;
2574
+ border-bottom: 0.0625rem solid ${i.select.colors.option.border};
2575
+
2576
+ &:last-child {
2577
+ border-bottom: none;
2578
+ }
2579
+
2580
+ &:hover {
2581
+ background-color: ${i.select.colors.hover.option.backgroundColor};
2582
+ color: ${i.select.colors.hover.option.color};
2583
+ }
2584
+
2585
+ ${({ $isSelected: e }) => e && b`
2586
+ background-color: ${i.select.colors.option.selected.backgroundColor};
2587
+ color: ${i.select.colors.option.selected.color};
2588
+ font-weight: var(--option-selected-font-weight, 500);
2589
+ `}
2590
+ `, br = F.div`
2591
+ display: flex;
2592
+ align-items: center;
2593
+ gap: 0.5rem;
2594
+ flex: 1;
2595
+ `, Ln = F.img`
2596
+ width: 2rem;
2597
+ height: 2rem;
2598
+ border-radius: 2rem;
2599
+ object-fit: cover;
2600
+ `, Yn = F.svg`
2601
+ width: 1.5rem;
2602
+ height: 1.5rem;
2603
+ flex-shrink: 0;
2604
+ transition: transform 0.2s ease;
2605
+
2606
+ path {
2607
+ stroke: currentColor;
2608
+ }
2609
+ `, Bn = (e = !1, t = 300) => {
2610
+ const [r, o] = pe(e), [n, s] = pe(!1), [c, u] = pe(e), d = J(() => {
2611
+ r || (u(!0), o(!0), s(!0));
2612
+ }, [r]), h = J(() => {
2613
+ r && (s(!0), o(!1));
2614
+ }, [r]), g = J(() => {
2615
+ r ? h() : d();
2616
+ }, [r, d, h]);
2617
+ return ve(() => {
2618
+ if (r && n) {
2619
+ const m = setTimeout(() => s(!1), t);
2620
+ return () => clearTimeout(m);
2621
+ }
2622
+ }, [r, n, t]), ve(() => {
2623
+ !r && !n && c && u(!1);
2624
+ }, [r, n, c]), {
2625
+ isActive: r,
2626
+ isVisible: c,
2627
+ isAnimating: n,
2628
+ open: d,
2629
+ close: h,
2630
+ toggle: g,
2631
+ setIsAnimating: s
2632
+ };
2633
+ }, Vn = () => ({ calculateOpenDirection: J(
2634
+ (t, r, o = 50, n = 300, s = 10) => {
2635
+ if (!t) return { direction: "bottom", estimatedHeight: 0 };
2636
+ const c = t.getBoundingClientRect(), u = window.innerHeight, d = Math.min(
2637
+ r * o,
2638
+ n
2639
+ ), h = u - c.bottom, g = c.top;
2640
+ return h < d + s && g >= d + s ? { direction: "top", estimatedHeight: d } : { direction: "bottom", estimatedHeight: d };
2641
+ },
2642
+ []
2643
+ ) }), Hn = (e, t, r) => {
2644
+ ve(() => {
2645
+ const o = (n) => {
2646
+ e.current && !e.current.contains(n.target) && r();
2647
+ };
2648
+ if (t) {
2649
+ const n = setTimeout(() => {
2650
+ document.addEventListener("mousedown", o);
2651
+ }, 0);
2652
+ return () => {
2653
+ clearTimeout(n), document.removeEventListener("mousedown", o);
2654
+ };
2655
+ }
2656
+ }, [t, e, r]);
2657
+ }, Gn = (e, t, r = 5) => {
2658
+ const o = ot(0);
2659
+ ve(() => {
2660
+ if (!e) return;
2661
+ let n;
2662
+ const s = () => {
2663
+ n && cancelAnimationFrame(n), n = requestAnimationFrame(() => {
2664
+ const c = window.scrollY;
2665
+ Math.abs(c - o.current) > r && (o.current = c, t());
2666
+ });
2667
+ };
2668
+ return window.addEventListener("scroll", s, { passive: !0 }), () => {
2669
+ n && cancelAnimationFrame(n), window.removeEventListener("scroll", s);
2670
+ };
2671
+ }, [e, t, r]);
2672
+ }, qn = /* @__PURE__ */ p.jsx(Yn, { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ p.jsx(
2673
+ "path",
2674
+ {
2675
+ d: "m6 9 6 6 6-6",
2676
+ strokeWidth: "2",
2677
+ strokeLinecap: "round",
2678
+ strokeLinejoin: "round"
2679
+ }
2680
+ ) }), fa = ({
2681
+ value: e,
2682
+ onChange: t,
2683
+ options: r = [],
2684
+ image: o,
2685
+ className: n,
2686
+ placeholder: s = "Select an option",
2687
+ disabled: c = !1,
2688
+ direction: u = "auto",
2689
+ maxHeight: d = "50vh",
2690
+ showArrow: h = !0,
2691
+ customArrow: g,
2692
+ multiple: m = !1,
2693
+ ...v
2694
+ }) => {
2695
+ const k = ot(null), E = ot(null), { isActive: C, isVisible: T, isAnimating: A, toggle: $, close: R, setIsAnimating: _ } = Bn(!1), [P, S] = pe(
2696
+ "bottom"
2697
+ ), { calculateOpenDirection: y } = Vn(), q = navigator.language.startsWith("ru");
2698
+ function U(w) {
2699
+ return w == null ? null : typeof w == "object" && "value" in w && "label" in w && (typeof w.value == "string" || typeof w.value == "number") ? { value: w.value, label: w.label } : typeof w == "string" || typeof w == "number" ? { value: w, label: String(w) } : null;
2700
+ }
2701
+ const re = Je(() => r ? Array.isArray(r) ? r.map(U).filter((w) => w !== null) : typeof r == "object" ? Object.entries(r).map(([w, W]) => ({
2702
+ value: w,
2703
+ label: W
2704
+ })) : [] : [], [r]), oe = re.length, V = Je(() => m ? Array.isArray(e) ? e : [] : e !== void 0 ? [e] : [], [e, m]), Z = Je(() => re.filter((w) => V.includes(w.value)).map((w) => w.label), [re, V]), ze = J(() => {
2705
+ c || $();
2706
+ }, [c, $]), fe = J(
2707
+ (w) => {
2708
+ if (!t) return;
2709
+ if (!m) {
2710
+ t(w), R();
2711
+ return;
2712
+ }
2713
+ const W = V.includes(w) ? V.filter((H) => H !== w) : [...V, w];
2714
+ t(W);
2715
+ },
2716
+ [t, m, V, R]
2717
+ ), xe = J(() => {
2718
+ if (C && E.current && u === "auto") {
2719
+ const { direction: w } = y(
2720
+ E.current,
2721
+ oe
2722
+ );
2723
+ S(w);
2724
+ }
2725
+ }, [C, u, y, oe]);
2726
+ Hn(k, C, R), Gn(C, xe), ve(() => {
2727
+ if (C && E.current)
2728
+ if (u === "auto") {
2729
+ const { direction: w } = y(
2730
+ E.current,
2731
+ oe
2732
+ );
2733
+ S(w);
2734
+ } else
2735
+ S(u);
2736
+ }, [C, u, y, oe]);
2737
+ const ae = () => {
2738
+ let w = s;
2739
+ return Z.length === 1 ? w = Z[0] : Z.length > 1 && (w = q ? `Выбрано: ${Z.length}` : `Selected: ${Z.length}`), /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
2740
+ o && /* @__PURE__ */ p.jsx(Ln, { src: o, alt: "" }),
2741
+ /* @__PURE__ */ p.jsx("span", { children: w })
2742
+ ] });
2743
+ };
2744
+ return oe <= 1 ? /* @__PURE__ */ p.jsx(fr, { className: n, $disabled: c, ...v, children: /* @__PURE__ */ p.jsx(
2745
+ hr,
2746
+ {
2747
+ ref: E,
2748
+ $isOpen: !1,
2749
+ disabled: c,
2750
+ onClick: () => {
2751
+ oe === 1 && t && t(
2752
+ m ? [re[0].value] : re[0].value
2753
+ );
2754
+ },
2755
+ children: /* @__PURE__ */ p.jsx(br, { children: ae() })
2756
+ }
2757
+ ) }) : /* @__PURE__ */ p.jsxs(
2758
+ fr,
2759
+ {
2760
+ ref: k,
2761
+ className: n,
2762
+ $disabled: c,
2763
+ ...v,
2764
+ children: [
2765
+ /* @__PURE__ */ p.jsxs(
2766
+ hr,
2767
+ {
2768
+ ref: E,
2769
+ $isOpen: C,
2770
+ disabled: c,
2771
+ onClick: ze,
2772
+ "aria-expanded": C,
2773
+ "aria-haspopup": "listbox",
2774
+ children: [
2775
+ /* @__PURE__ */ p.jsx(br, { children: ae() }),
2776
+ h && (g || qn)
2777
+ ]
2778
+ }
2779
+ ),
2780
+ T && /* @__PURE__ */ p.jsx(
2781
+ Mn,
2782
+ {
2783
+ role: "listbox",
2784
+ $direction: P,
2785
+ $isActive: C,
2786
+ $isAnimating: A,
2787
+ $maxHeight: typeof d == "number" ? `${d}px` : d,
2788
+ onAnimationEnd: () => {
2789
+ C || _(!1);
2790
+ },
2791
+ children: re.map((w, W) => {
2792
+ const H = V.includes(w.value);
2793
+ return /* @__PURE__ */ p.jsx(
2794
+ Wn,
2795
+ {
2796
+ $isSelected: H,
2797
+ onClick: () => fe(w.value),
2798
+ role: "option",
2799
+ "aria-selected": H,
2800
+ children: /* @__PURE__ */ p.jsx("span", { children: w.label })
2801
+ },
2802
+ `${w.value}-${W}`
2803
+ );
2804
+ })
2805
+ }
2806
+ )
2807
+ ]
2808
+ }
2809
+ );
2810
+ }, Un = () => /* @__PURE__ */ p.jsxs("svg", { viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
2811
+ /* @__PURE__ */ p.jsx("path", { d: "M2 10H18", stroke: "#1A1A1A", strokeWidth: "2" }),
2812
+ /* @__PURE__ */ p.jsx("path", { d: "M10 18L10 2", stroke: "#1A1A1A", strokeWidth: "2" })
2813
+ ] }), Xn = () => /* @__PURE__ */ p.jsx("svg", { viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ p.jsx("path", { d: "M2 10H18", stroke: "#1A1A1A", strokeWidth: "2" }) }), Jn = F.div`
2814
+ display: flex;
2815
+ gap: 0.25rem;
2816
+ width: fit-content;
2817
+ ${({ $center: e }) => !e && b`
2818
+ flex-direction: row-reverse;
2819
+
2820
+ input {
2821
+ order: 1;
2822
+ }
2823
+ `}
2824
+
2825
+ input {
2826
+ font-famile: ${i.amount.typography.fontFamily};
2827
+ font-size: ${i.amount.typography.fontSize};
2828
+ font-weight: ${i.amount.typography.fontWeight};
2829
+ line-height: ${i.amount.typography.lineHeight};
2830
+ min-width: ${i.amount.input.minWidth};
2831
+ margin: 0;
2832
+ padding: 0;
2833
+ border: none;
2834
+ outline: none;
2835
+ }
2836
+
2837
+ button {
2838
+ max-width: ${i.amount.button.maxWidth};
2839
+ min-width: ${i.amount.button.minWidth};
2840
+ width: ${i.amount.button.width};
2841
+ height: auto;
2842
+ padding: ${i.amount.button.padding};
2843
+ background-color: ${i.amount.button.backgroundColor};
2844
+ color: ${i.amount.button.color};
2845
+ border-color: ${i.amount.button.borderColor};
2846
+
2847
+ ${It(b`
2848
+ background-color: ${i.amount.button.hover.backgroundColor};
2849
+ color: ${i.amount.button.hover.color};
2850
+ border-color: ${i.amount.button.hover.borderColor};
2851
+ `)}
2852
+ }
2853
+ `;
2854
+ function Kn({
2855
+ value: e,
2856
+ min: t = 1,
2857
+ max: r = 100,
2858
+ step: o = 1,
2859
+ center: n = !1,
2860
+ className: s,
2861
+ onChange: c
2862
+ }) {
2863
+ const [u, d] = pe(!1), [h, g] = pe(e.toString()), m = Je(
2864
+ () => `${h.length * 14 / 16}rem`,
2865
+ [h]
2866
+ ), v = J(
2867
+ ($) => {
2868
+ c && c($);
2869
+ },
2870
+ [c]
2871
+ );
2872
+ ve(() => {
2873
+ u || g(e.toString().padStart(2, "0"));
2874
+ }, [e, u]);
2875
+ const k = ($) => {
2876
+ $.preventDefault(), g($.target.value);
2877
+ }, E = () => {
2878
+ d(!0), g(h.replace(/^0+/, "") || "0");
2879
+ }, C = ($) => {
2880
+ $.preventDefault();
2881
+ const R = Number($.target.value);
2882
+ if (isNaN(R)) {
2883
+ g(e.toString().padStart(2, "0")), d(!1);
2884
+ return;
2885
+ }
2886
+ const _ = Math.min(Math.max(R, t), r);
2887
+ v(_), d(!1);
2888
+ }, T = J(() => {
2889
+ const $ = Math.min(e + o, r);
2890
+ v($);
2891
+ }, [e, o, r, v]), A = J(() => {
2892
+ const $ = Math.max(e - o, t);
2893
+ v($);
2894
+ }, [e, o, t, v]);
2895
+ return /* @__PURE__ */ p.jsxs(Jn, { className: s, $center: n, children: [
2896
+ /* @__PURE__ */ p.jsx(sr, { onClick: A, disabled: e <= t, children: /* @__PURE__ */ p.jsx(Xn, {}) }),
2897
+ /* @__PURE__ */ p.jsx(
2898
+ Yr,
2899
+ {
2900
+ type: "number",
2901
+ value: h,
2902
+ inputMode: "decimal",
2903
+ onChange: k,
2904
+ onFocus: E,
2905
+ onBlur: C,
2906
+ style: { width: m },
2907
+ min: t,
2908
+ max: r,
2909
+ step: o
2910
+ }
2911
+ ),
2912
+ /* @__PURE__ */ p.jsx(sr, { onClick: T, disabled: e >= r, children: /* @__PURE__ */ p.jsx(Un, {}) })
2913
+ ] });
2914
+ }
2915
+ const Zn = F.div`
2916
+ user-select: none;
2917
+ margin-bottom: 1.25rem;
2918
+ `, Qn = F.label`
2919
+ position: relative;
2920
+ display: flex;
2921
+ flex-wrap: wrap;
2922
+ align-items: center;
2923
+ justify-content: space-between;
2924
+ overflow: hidden;
2925
+ `;
2926
+ function ea({
2927
+ children: e,
2928
+ step: t = 1,
2929
+ value: r,
2930
+ min: o,
2931
+ max: n,
2932
+ callback: s = () => {
2933
+ }
2934
+ }) {
2935
+ const c = (u) => {
2936
+ u.preventDefault();
2937
+ const d = Number(u.target.value);
2938
+ s(d);
2939
+ };
2940
+ return /* @__PURE__ */ p.jsxs(Qn, { children: [
2941
+ /* @__PURE__ */ p.jsx(
2942
+ Yr,
2943
+ {
2944
+ type: "range",
2945
+ value: r,
2946
+ min: o,
2947
+ max: n,
2948
+ step: t,
2949
+ onChange: c,
2950
+ "aria-valuenow": Number(r),
2951
+ "aria-valuemin": o,
2952
+ "aria-valuemax": n
2953
+ }
2954
+ ),
2955
+ e
2956
+ ] });
2957
+ }
2958
+ const jt = F.span`
2959
+ display: flex;
2960
+ align-items: center;
2961
+ justify-content: center;
2962
+ min-width: 1.25rem;
2963
+ height: 1.25rem;
2964
+ letter-spacing: 0em;
2965
+ font-size: 0.75rem;
2966
+ font-family: ${i.typography.fontFamily};
2967
+ color: ${i.colors.text};
2968
+ transition: color 0.2s ease-in-out;
2969
+ user-select: none;
2970
+ cursor: pointer;
2971
+ position: relative;
2972
+ z-index: 2;
2973
+
2974
+ &:hover {
2975
+ color: ${i.colors.hover.bgPrimary};
2976
+ }
2977
+
2978
+ &:active {
2979
+ color: ${i.colors.pressed.bgPrimary};
2980
+ }
2981
+
2982
+ &:focus-visible {
2983
+ outline: 0.125rem solid ${i.colors.focused.bgPrimary};
2984
+ outline-offset: 0.125rem;
2985
+ }
2986
+ `;
2987
+ function ta({
2988
+ min: e = 0,
2989
+ max: t = 0,
2990
+ callback: r = () => {
2991
+ }
2992
+ }) {
2993
+ const o = J(() => {
2994
+ r(e);
2995
+ }, [r]), n = J(() => {
2996
+ r(t);
2997
+ }, [r]);
2998
+ return /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
2999
+ /* @__PURE__ */ p.jsx(
3000
+ jt,
3001
+ {
3002
+ onClick: o,
3003
+ onKeyDown: (s) => s.key === "Enter" && o(),
3004
+ children: e
3005
+ }
3006
+ ),
3007
+ /* @__PURE__ */ p.jsx(
3008
+ jt,
3009
+ {
3010
+ onClick: n,
3011
+ onKeyDown: (s) => s.key === "Enter" && n(),
3012
+ children: t
3013
+ }
3014
+ )
3015
+ ] });
3016
+ }
3017
+ const ra = F.div`
3018
+ display: flex;
3019
+ align-items: center;
3020
+ width: 100%;
3021
+ gap: 0.5rem;
3022
+ margin-bottom: 0.5rem;
3023
+ `, oa = F.span`
3024
+ font-family: ${i.typography.fontFamily};
3025
+ font-size: ${i.typography.label.fontSize};
3026
+ font-weight: ${i.typography.label.fontWeight};
3027
+ color: ${i.colors.text};
3028
+ margin-right: auto;
3029
+ flex-shrink: 0;
3030
+ `, na = F.span`
3031
+ font-family: ${i.typography.fontFamily};
3032
+ font-size: ${i.typography.label.fontSize};
3033
+ font-weight: ${i.typography.label.fontWeight};
3034
+ color: ${i.colors.text};
3035
+ opacity: 0.7;
3036
+ flex-shrink: 0;
3037
+ `;
3038
+ function aa({
3039
+ children: e,
3040
+ calculation: t = "",
3041
+ title: r = "Value"
3042
+ }) {
3043
+ return /* @__PURE__ */ p.jsxs(ra, { children: [
3044
+ /* @__PURE__ */ p.jsx(oa, { children: r }),
3045
+ t && /* @__PURE__ */ p.jsx(na, { children: t }),
3046
+ e
3047
+ ] });
3048
+ }
3049
+ const sa = F.span`
3050
+ display: flex;
3051
+ justify-content: space-between;
3052
+ width: 100%;
3053
+ gap: 0.25rem;
3054
+
3055
+ .currentStep {
3056
+ pointer-events: none;
3057
+ color: ${i.colors.bgPrimary};
3058
+ }
3059
+
3060
+ span {
3061
+ width: 1.5rem;
3062
+ @media (max-width: 425px) {
3063
+ &:not(:first-child, :last-child) {
3064
+ display: none;
3065
+ }
3066
+ }
3067
+ }
3068
+ `;
3069
+ var yt = { exports: {} };
3070
+ var gr;
3071
+ function ia() {
3072
+ return gr || (gr = 1, (function(e) {
3073
+ (function() {
3074
+ var t = {}.hasOwnProperty;
3075
+ function r() {
3076
+ for (var s = "", c = 0; c < arguments.length; c++) {
3077
+ var u = arguments[c];
3078
+ u && (s = n(s, o(u)));
3079
+ }
3080
+ return s;
3081
+ }
3082
+ function o(s) {
3083
+ if (typeof s == "string" || typeof s == "number")
3084
+ return s;
3085
+ if (typeof s != "object")
3086
+ return "";
3087
+ if (Array.isArray(s))
3088
+ return r.apply(null, s);
3089
+ if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
3090
+ return s.toString();
3091
+ var c = "";
3092
+ for (var u in s)
3093
+ t.call(s, u) && s[u] && (c = n(c, u));
3094
+ return c;
3095
+ }
3096
+ function n(s, c) {
3097
+ return c ? s ? s + " " + c : s + c : s;
3098
+ }
3099
+ e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
3100
+ })();
3101
+ })(yt)), yt.exports;
3102
+ }
3103
+ var ca = ia();
3104
+ const la = /* @__PURE__ */ Hr(ca);
3105
+ function ua({
3106
+ steps: e,
3107
+ value: t = 0,
3108
+ callback: r = () => {
3109
+ }
3110
+ }) {
3111
+ return /* @__PURE__ */ p.jsx(sa, { children: Object.entries(e).map(([o, n]) => /* @__PURE__ */ p.jsx(
3112
+ jt,
3113
+ {
3114
+ onClick: () => r(+o),
3115
+ onKeyDown: (s) => s.key === "Enter" && r(+o),
3116
+ className: la({
3117
+ currentStep: t == +o
3118
+ }),
3119
+ children: n.name
3120
+ },
3121
+ o
3122
+ )) });
3123
+ }
3124
+ const ha = ({
3125
+ product: e,
3126
+ steps: t,
3127
+ title: r = "Value",
3128
+ step: o = 1,
3129
+ value: n,
3130
+ onChange: s = () => {
3131
+ },
3132
+ className: c,
3133
+ ...u
3134
+ }) => {
3135
+ r = e?.title || r;
3136
+ const d = !t?.length, { min: h, max: g } = d ? e : { min: 0, max: Number(t?.length) - 1 }, m = n || h, [v, k] = pe(m), [E, C] = pe(
3137
+ e?.calculation || t?.[0].name || ""
3138
+ );
3139
+ ve(() => {
3140
+ n !== void 0 && k(n);
3141
+ }, [n]);
3142
+ const T = (A) => {
3143
+ d || C(t[Number(A)].name), k(A), s(A);
3144
+ };
3145
+ return /* @__PURE__ */ p.jsxs(Zn, { className: c, ...u, children: [
3146
+ /* @__PURE__ */ p.jsx(aa, { title: r, calculation: E, children: d && /* @__PURE__ */ p.jsx(
3147
+ Kn,
3148
+ {
3149
+ value: Math.max(h, +v),
3150
+ onChange: T,
3151
+ min: h,
3152
+ max: g,
3153
+ step: o,
3154
+ center: !1
3155
+ }
3156
+ ) }),
3157
+ /* @__PURE__ */ p.jsxs(
3158
+ ea,
3159
+ {
3160
+ value: v,
3161
+ step: o,
3162
+ min: h,
3163
+ max: g,
3164
+ callback: T,
3165
+ children: [
3166
+ d && /* @__PURE__ */ p.jsx(ta, { min: h, max: g, callback: T }),
3167
+ !d && /* @__PURE__ */ p.jsx(ua, { value: v, steps: t, callback: T })
3168
+ ]
3169
+ }
3170
+ )
3171
+ ] });
2085
3172
  };
2086
3173
  export {
2087
- on as Button,
2088
- nn as ButtonClose,
2089
- an as Input
3174
+ sr as Button,
3175
+ pa as ButtonClose,
3176
+ Yr as Input,
3177
+ ha as Range,
3178
+ fa as Select
2090
3179
  };