@julien-wiegandt/open-ui 0.1.2 → 0.1.3
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.
- package/dist/index.d.ts +1 -0
- package/dist/open-ui.js +526 -447
- package/dist/open-ui.umd.cjs +37 -20
- package/package.json +1 -1
package/dist/open-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import ie, { useState as wt, useEffect as St, useMemo as ct, useContext as Wt, useDebugValue as kt, createElement as hr, useRef as mr, forwardRef as ut } from "react";
|
|
2
|
+
var _e = { exports: {} }, ve = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.js
|
|
@@ -9,10 +9,10 @@ var Ae = { exports: {} }, ye = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
12
|
+
var Et;
|
|
13
|
+
function gr() {
|
|
14
|
+
if (Et) return ve;
|
|
15
|
+
Et = 1;
|
|
16
16
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
17
17
|
function r(n, o, a) {
|
|
18
18
|
var s = null;
|
|
@@ -29,9 +29,9 @@ function mr() {
|
|
|
29
29
|
props: a
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return ve.Fragment = t, ve.jsx = r, ve.jsxs = r, ve;
|
|
33
33
|
}
|
|
34
|
-
var
|
|
34
|
+
var be = {};
|
|
35
35
|
/**
|
|
36
36
|
* @license React
|
|
37
37
|
* react-jsx-runtime.development.js
|
|
@@ -41,39 +41,39 @@ var ve = {};
|
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
return
|
|
44
|
+
var xt;
|
|
45
|
+
function yr() {
|
|
46
|
+
return xt || (xt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
47
47
|
function e(i) {
|
|
48
48
|
if (i == null) return null;
|
|
49
49
|
if (typeof i == "function")
|
|
50
|
-
return i.$$typeof ===
|
|
50
|
+
return i.$$typeof === Ue ? null : i.displayName || i.name || null;
|
|
51
51
|
if (typeof i == "string") return i;
|
|
52
52
|
switch (i) {
|
|
53
53
|
case x:
|
|
54
54
|
return "Fragment";
|
|
55
|
-
case
|
|
55
|
+
case P:
|
|
56
56
|
return "Profiler";
|
|
57
57
|
case I:
|
|
58
58
|
return "StrictMode";
|
|
59
|
-
case
|
|
59
|
+
case _:
|
|
60
60
|
return "Suspense";
|
|
61
61
|
case h:
|
|
62
62
|
return "SuspenseList";
|
|
63
|
-
case
|
|
63
|
+
case G:
|
|
64
64
|
return "Activity";
|
|
65
65
|
}
|
|
66
66
|
if (typeof i == "object")
|
|
67
67
|
switch (typeof i.tag == "number" && console.error(
|
|
68
68
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
69
|
), i.$$typeof) {
|
|
70
|
-
case
|
|
70
|
+
case E:
|
|
71
71
|
return "Portal";
|
|
72
72
|
case S:
|
|
73
73
|
return (i.displayName || "Context") + ".Provider";
|
|
74
|
-
case
|
|
74
|
+
case A:
|
|
75
75
|
return (i._context.displayName || "Context") + ".Consumer";
|
|
76
|
-
case
|
|
76
|
+
case k:
|
|
77
77
|
var l = i.render;
|
|
78
78
|
return i = i.displayName, i || (i = l.displayName || l.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
|
|
79
79
|
case p:
|
|
@@ -99,11 +99,11 @@ function gr() {
|
|
|
99
99
|
}
|
|
100
100
|
if (l) {
|
|
101
101
|
l = console;
|
|
102
|
-
var f = l.error,
|
|
102
|
+
var f = l.error, T = typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object";
|
|
103
103
|
return f.call(
|
|
104
104
|
l,
|
|
105
105
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
106
|
-
|
|
106
|
+
T
|
|
107
107
|
), t(i);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
@@ -119,14 +119,14 @@ function gr() {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
function o() {
|
|
122
|
-
var i =
|
|
122
|
+
var i = me.A;
|
|
123
123
|
return i === null ? null : i.getOwner();
|
|
124
124
|
}
|
|
125
125
|
function a() {
|
|
126
126
|
return Error("react-stack-top-frame");
|
|
127
127
|
}
|
|
128
128
|
function s(i) {
|
|
129
|
-
if (
|
|
129
|
+
if (Ee.call(i, "key")) {
|
|
130
130
|
var l = Object.getOwnPropertyDescriptor(i, "key").get;
|
|
131
131
|
if (l && l.isReactWarning) return !1;
|
|
132
132
|
}
|
|
@@ -146,11 +146,11 @@ function gr() {
|
|
|
146
146
|
}
|
|
147
147
|
function u() {
|
|
148
148
|
var i = e(this.type);
|
|
149
|
-
return
|
|
149
|
+
return Ae[i] || (Ae[i] = !0, console.error(
|
|
150
150
|
"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."
|
|
151
151
|
)), i = this.props.ref, i !== void 0 ? i : null;
|
|
152
152
|
}
|
|
153
|
-
function b(i, l, f,
|
|
153
|
+
function b(i, l, f, T, M, j, W, U) {
|
|
154
154
|
return f = j.ref, i = {
|
|
155
155
|
$$typeof: y,
|
|
156
156
|
type: i,
|
|
@@ -182,48 +182,48 @@ function gr() {
|
|
|
182
182
|
value: U
|
|
183
183
|
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
184
184
|
}
|
|
185
|
-
function v(i, l, f,
|
|
186
|
-
var
|
|
187
|
-
if (
|
|
188
|
-
if (
|
|
189
|
-
if (xe(
|
|
190
|
-
for (
|
|
191
|
-
m(T
|
|
192
|
-
Object.freeze && Object.freeze(
|
|
185
|
+
function v(i, l, f, T, M, j, W, U) {
|
|
186
|
+
var C = l.children;
|
|
187
|
+
if (C !== void 0)
|
|
188
|
+
if (T)
|
|
189
|
+
if (xe(C)) {
|
|
190
|
+
for (T = 0; T < C.length; T++)
|
|
191
|
+
m(C[T]);
|
|
192
|
+
Object.freeze && Object.freeze(C);
|
|
193
193
|
} else
|
|
194
194
|
console.error(
|
|
195
195
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
196
196
|
);
|
|
197
|
-
else m(
|
|
198
|
-
if (
|
|
199
|
-
|
|
200
|
-
var D = Object.keys(l).filter(function(
|
|
201
|
-
return
|
|
197
|
+
else m(C);
|
|
198
|
+
if (Ee.call(l, "key")) {
|
|
199
|
+
C = e(i);
|
|
200
|
+
var D = Object.keys(l).filter(function(ae) {
|
|
201
|
+
return ae !== "key";
|
|
202
202
|
});
|
|
203
|
-
|
|
203
|
+
T = 0 < D.length ? "{key: someKey, " + D.join(": ..., ") + ": ...}" : "{key: someKey}", z[C + T] || (D = 0 < D.length ? "{" + D.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
204
204
|
`A props object containing a "key" prop is being spread into JSX:
|
|
205
205
|
let props = %s;
|
|
206
206
|
<%s {...props} />
|
|
207
207
|
React keys must be passed directly to JSX without using spread:
|
|
208
208
|
let props = %s;
|
|
209
209
|
<%s key={someKey} {...props} />`,
|
|
210
|
-
P,
|
|
211
210
|
T,
|
|
211
|
+
C,
|
|
212
212
|
D,
|
|
213
|
-
|
|
214
|
-
), z[
|
|
213
|
+
C
|
|
214
|
+
), z[C + T] = !0);
|
|
215
215
|
}
|
|
216
|
-
if (
|
|
216
|
+
if (C = null, f !== void 0 && (r(f), C = "" + f), s(l) && (r(l.key), C = "" + l.key), "key" in l) {
|
|
217
217
|
f = {};
|
|
218
218
|
for (var J in l)
|
|
219
219
|
J !== "key" && (f[J] = l[J]);
|
|
220
220
|
} else f = l;
|
|
221
|
-
return
|
|
221
|
+
return C && c(
|
|
222
222
|
f,
|
|
223
223
|
typeof i == "function" ? i.displayName || i.name || "Unknown" : i
|
|
224
224
|
), b(
|
|
225
225
|
i,
|
|
226
|
-
|
|
226
|
+
C,
|
|
227
227
|
j,
|
|
228
228
|
M,
|
|
229
229
|
o(),
|
|
@@ -235,7 +235,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
235
235
|
function m(i) {
|
|
236
236
|
typeof i == "object" && i !== null && i.$$typeof === y && i._store && (i._store.validated = 1);
|
|
237
237
|
}
|
|
238
|
-
var g =
|
|
238
|
+
var g = ie, y = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), S = Symbol.for("react.context"), k = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), Y = Symbol.for("react.lazy"), G = Symbol.for("react.activity"), Ue = Symbol.for("react.client.reference"), me = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ee = Object.prototype.hasOwnProperty, xe = Array.isArray, ge = console.createTask ? console.createTask : function() {
|
|
239
239
|
return null;
|
|
240
240
|
};
|
|
241
241
|
g = {
|
|
@@ -243,59 +243,59 @@ React keys must be passed directly to JSX without using spread:
|
|
|
243
243
|
return i();
|
|
244
244
|
}
|
|
245
245
|
};
|
|
246
|
-
var Re,
|
|
246
|
+
var Re, Ae = {}, oe = g.react_stack_bottom_frame.bind(
|
|
247
247
|
g,
|
|
248
248
|
a
|
|
249
|
-
)(),
|
|
250
|
-
|
|
251
|
-
var j = 1e4 >
|
|
249
|
+
)(), ye = ge(n(a)), z = {};
|
|
250
|
+
be.Fragment = x, be.jsx = function(i, l, f, T, M) {
|
|
251
|
+
var j = 1e4 > me.recentlyCreatedOwnerStacks++;
|
|
252
252
|
return v(
|
|
253
253
|
i,
|
|
254
254
|
l,
|
|
255
255
|
f,
|
|
256
256
|
!1,
|
|
257
|
-
|
|
257
|
+
T,
|
|
258
258
|
M,
|
|
259
|
-
j ? Error("react-stack-top-frame") :
|
|
260
|
-
j ?
|
|
259
|
+
j ? Error("react-stack-top-frame") : oe,
|
|
260
|
+
j ? ge(n(i)) : ye
|
|
261
261
|
);
|
|
262
|
-
},
|
|
263
|
-
var j = 1e4 >
|
|
262
|
+
}, be.jsxs = function(i, l, f, T, M) {
|
|
263
|
+
var j = 1e4 > me.recentlyCreatedOwnerStacks++;
|
|
264
264
|
return v(
|
|
265
265
|
i,
|
|
266
266
|
l,
|
|
267
267
|
f,
|
|
268
268
|
!0,
|
|
269
|
-
|
|
269
|
+
T,
|
|
270
270
|
M,
|
|
271
|
-
j ? Error("react-stack-top-frame") :
|
|
272
|
-
j ?
|
|
271
|
+
j ? Error("react-stack-top-frame") : oe,
|
|
272
|
+
j ? ge(n(i)) : ye
|
|
273
273
|
);
|
|
274
274
|
};
|
|
275
|
-
})()),
|
|
275
|
+
})()), be;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
278
|
-
function
|
|
279
|
-
return
|
|
277
|
+
var Rt;
|
|
278
|
+
function vr() {
|
|
279
|
+
return Rt || (Rt = 1, process.env.NODE_ENV === "production" ? _e.exports = gr() : _e.exports = yr()), _e.exports;
|
|
280
280
|
}
|
|
281
|
-
var
|
|
282
|
-
const
|
|
281
|
+
var te = vr();
|
|
282
|
+
const qe = {
|
|
283
283
|
sm: 480,
|
|
284
284
|
lg: 1024,
|
|
285
285
|
xl: 1280
|
|
286
|
-
},
|
|
287
|
-
const [e, t] =
|
|
288
|
-
|
|
286
|
+
}, br = () => {
|
|
287
|
+
const [e, t] = wt(void 0), [r, n] = wt("sm");
|
|
288
|
+
St(() => {
|
|
289
289
|
const u = () => {
|
|
290
290
|
t(window.innerWidth);
|
|
291
291
|
};
|
|
292
292
|
return u(), window.addEventListener("resize", u), () => {
|
|
293
293
|
window.removeEventListener("resize", u);
|
|
294
294
|
};
|
|
295
|
-
}, []),
|
|
296
|
-
typeof e == "number" && (e >=
|
|
295
|
+
}, []), St(() => {
|
|
296
|
+
typeof e == "number" && (e >= qe.xl ? n("xl") : e >= qe.lg ? n("lg") : e >= qe.sm ? n("md") : n("sm"));
|
|
297
297
|
}, [e]);
|
|
298
|
-
const { isMobile: o, isTablet: a, isLaptop: s, isDesktop: c } =
|
|
298
|
+
const { isMobile: o, isTablet: a, isLaptop: s, isDesktop: c } = ct(() => ({
|
|
299
299
|
isMobile: r === "sm",
|
|
300
300
|
isTablet: r === "md",
|
|
301
301
|
isLaptop: r === "lg",
|
|
@@ -312,30 +312,30 @@ var F = function() {
|
|
|
312
312
|
return t;
|
|
313
313
|
}, F.apply(this, arguments);
|
|
314
314
|
};
|
|
315
|
-
function
|
|
315
|
+
function ce(e, t, r) {
|
|
316
316
|
if (r || arguments.length === 2) for (var n = 0, o = t.length, a; n < o; n++)
|
|
317
317
|
(a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), a[n] = t[n]);
|
|
318
318
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function wr(e) {
|
|
321
321
|
var t = /* @__PURE__ */ Object.create(null);
|
|
322
322
|
return function(r) {
|
|
323
323
|
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
|
324
324
|
};
|
|
325
325
|
}
|
|
326
|
-
var
|
|
326
|
+
var Sr = /^((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__ */ wr(
|
|
327
327
|
function(e) {
|
|
328
|
-
return
|
|
328
|
+
return Sr.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
329
329
|
}
|
|
330
330
|
/* Z+1 */
|
|
331
|
-
), R = "-ms-",
|
|
332
|
-
function
|
|
333
|
-
return
|
|
331
|
+
), R = "-ms-", ke = "-moz-", w = "-webkit-", Ht = "comm", Le = "rule", lt = "decl", Er = "@import", Gt = "@keyframes", xr = "@layer", Ut = Math.abs, pt = String.fromCharCode, et = Object.assign;
|
|
332
|
+
function Rr(e, t) {
|
|
333
|
+
return O(e, 0) ^ 45 ? (((t << 2 ^ O(e, 0)) << 2 ^ O(e, 1)) << 2 ^ O(e, 2)) << 2 ^ O(e, 3) : 0;
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function qt(e) {
|
|
336
336
|
return e.trim();
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function H(e, t) {
|
|
339
339
|
return (e = t.exec(e)) ? e[0] : e;
|
|
340
340
|
}
|
|
341
341
|
function d(e, t, r) {
|
|
@@ -344,60 +344,60 @@ function d(e, t, r) {
|
|
|
344
344
|
function Ne(e, t, r) {
|
|
345
345
|
return e.indexOf(t, r);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function O(e, t) {
|
|
348
348
|
return e.charCodeAt(t) | 0;
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function ue(e, t, r) {
|
|
351
351
|
return e.slice(t, r);
|
|
352
352
|
}
|
|
353
353
|
function B(e) {
|
|
354
354
|
return e.length;
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function Xt(e) {
|
|
357
357
|
return e.length;
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function Se(e, t) {
|
|
360
360
|
return t.push(e), e;
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function Ar(e, t) {
|
|
363
363
|
return e.map(t).join("");
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function At(e, t) {
|
|
366
366
|
return e.filter(function(r) {
|
|
367
|
-
return !
|
|
367
|
+
return !H(r, t);
|
|
368
368
|
});
|
|
369
369
|
}
|
|
370
|
-
var Ye = 1,
|
|
370
|
+
var Ye = 1, le = 1, Jt = 0, L = 0, N = 0, he = "";
|
|
371
371
|
function Ve(e, t, r, n, o, a, s, c) {
|
|
372
|
-
return { value: e, root: t, parent: r, type: n, props: o, children: a, line: Ye, column:
|
|
372
|
+
return { value: e, root: t, parent: r, type: n, props: o, children: a, line: Ye, column: le, length: s, return: "", siblings: c };
|
|
373
373
|
}
|
|
374
374
|
function X(e, t) {
|
|
375
|
-
return
|
|
375
|
+
return et(Ve("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function se(e) {
|
|
378
378
|
for (; e.root; )
|
|
379
379
|
e = X(e.root, { children: [e] });
|
|
380
|
-
|
|
380
|
+
Se(e, e.siblings);
|
|
381
381
|
}
|
|
382
382
|
function _r() {
|
|
383
|
-
return
|
|
383
|
+
return N;
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
return
|
|
385
|
+
function Cr() {
|
|
386
|
+
return N = L > 0 ? O(he, --L) : 0, le--, N === 10 && (le = 1, Ye--), N;
|
|
387
387
|
}
|
|
388
388
|
function V() {
|
|
389
|
-
return
|
|
389
|
+
return N = L < Jt ? O(he, L++) : 0, le++, N === 10 && (le = 1, Ye++), N;
|
|
390
390
|
}
|
|
391
391
|
function Q() {
|
|
392
|
-
return
|
|
392
|
+
return O(he, L);
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function Oe() {
|
|
395
395
|
return L;
|
|
396
396
|
}
|
|
397
397
|
function Be(e, t) {
|
|
398
|
-
return
|
|
398
|
+
return ue(he, e, t);
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function tt(e) {
|
|
401
401
|
switch (e) {
|
|
402
402
|
// \0 \t \n \r \s whitespace token
|
|
403
403
|
case 0:
|
|
@@ -435,39 +435,39 @@ function Qe(e) {
|
|
|
435
435
|
}
|
|
436
436
|
return 0;
|
|
437
437
|
}
|
|
438
|
-
function
|
|
439
|
-
return Ye =
|
|
438
|
+
function Pr(e) {
|
|
439
|
+
return Ye = le = 1, Jt = B(he = e), L = 0, [];
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
return
|
|
441
|
+
function Tr(e) {
|
|
442
|
+
return he = "", e;
|
|
443
443
|
}
|
|
444
|
-
function
|
|
445
|
-
return
|
|
444
|
+
function Xe(e) {
|
|
445
|
+
return qt(Be(L - 1, rt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
446
446
|
}
|
|
447
|
-
function
|
|
448
|
-
for (; (
|
|
447
|
+
function $r(e) {
|
|
448
|
+
for (; (N = Q()) && N < 33; )
|
|
449
449
|
V();
|
|
450
|
-
return
|
|
450
|
+
return tt(e) > 2 || tt(N) > 3 ? "" : " ";
|
|
451
451
|
}
|
|
452
|
-
function
|
|
453
|
-
for (; --t && V() && !(
|
|
452
|
+
function Nr(e, t) {
|
|
453
|
+
for (; --t && V() && !(N < 48 || N > 102 || N > 57 && N < 65 || N > 70 && N < 97); )
|
|
454
454
|
;
|
|
455
|
-
return Be(e,
|
|
455
|
+
return Be(e, Oe() + (t < 6 && Q() == 32 && V() == 32));
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function rt(e) {
|
|
458
458
|
for (; V(); )
|
|
459
|
-
switch (
|
|
459
|
+
switch (N) {
|
|
460
460
|
// ] ) " '
|
|
461
461
|
case e:
|
|
462
462
|
return L;
|
|
463
463
|
// " '
|
|
464
464
|
case 34:
|
|
465
465
|
case 39:
|
|
466
|
-
e !== 34 && e !== 39 &&
|
|
466
|
+
e !== 34 && e !== 39 && rt(N);
|
|
467
467
|
break;
|
|
468
468
|
// (
|
|
469
469
|
case 40:
|
|
470
|
-
e === 41 &&
|
|
470
|
+
e === 41 && rt(e);
|
|
471
471
|
break;
|
|
472
472
|
// \
|
|
473
473
|
case 92:
|
|
@@ -476,52 +476,52 @@ function et(e) {
|
|
|
476
476
|
}
|
|
477
477
|
return L;
|
|
478
478
|
}
|
|
479
|
-
function
|
|
480
|
-
for (; V() && e +
|
|
481
|
-
if (e +
|
|
479
|
+
function Or(e, t) {
|
|
480
|
+
for (; V() && e + N !== 57; )
|
|
481
|
+
if (e + N === 84 && Q() === 47)
|
|
482
482
|
break;
|
|
483
|
-
return "/*" + Be(t, L - 1) + "*" +
|
|
483
|
+
return "/*" + Be(t, L - 1) + "*" + pt(e === 47 ? e : V());
|
|
484
484
|
}
|
|
485
|
-
function
|
|
486
|
-
for (; !
|
|
485
|
+
function Ir(e) {
|
|
486
|
+
for (; !tt(Q()); )
|
|
487
487
|
V();
|
|
488
488
|
return Be(e, L);
|
|
489
489
|
}
|
|
490
|
-
function
|
|
491
|
-
return
|
|
490
|
+
function jr(e) {
|
|
491
|
+
return Tr(Ie("", null, null, null, [""], e = Pr(e), 0, [0], e));
|
|
492
492
|
}
|
|
493
493
|
function Ie(e, t, r, n, o, a, s, c, u) {
|
|
494
|
-
for (var b = 0, v = 0, m = s, g = 0, y = 0,
|
|
495
|
-
switch (
|
|
494
|
+
for (var b = 0, v = 0, m = s, g = 0, y = 0, E = 0, x = 1, I = 1, P = 1, A = 0, S = "", k = o, _ = a, h = n, p = S; I; )
|
|
495
|
+
switch (E = A, A = V()) {
|
|
496
496
|
// (
|
|
497
497
|
case 40:
|
|
498
|
-
if (
|
|
499
|
-
Ne(p += d(
|
|
498
|
+
if (E != 108 && O(p, m - 1) == 58) {
|
|
499
|
+
Ne(p += d(Xe(A), "&", "&\f"), "&\f", Ut(b ? c[b - 1] : 0)) != -1 && (P = -1);
|
|
500
500
|
break;
|
|
501
501
|
}
|
|
502
502
|
// " ' [
|
|
503
503
|
case 34:
|
|
504
504
|
case 39:
|
|
505
505
|
case 91:
|
|
506
|
-
p +=
|
|
506
|
+
p += Xe(A);
|
|
507
507
|
break;
|
|
508
508
|
// \t \n \r \s
|
|
509
509
|
case 9:
|
|
510
510
|
case 10:
|
|
511
511
|
case 13:
|
|
512
512
|
case 32:
|
|
513
|
-
p +=
|
|
513
|
+
p += $r(E);
|
|
514
514
|
break;
|
|
515
515
|
// \
|
|
516
516
|
case 92:
|
|
517
|
-
p +=
|
|
517
|
+
p += Nr(Oe() - 1, 7);
|
|
518
518
|
continue;
|
|
519
519
|
// /
|
|
520
520
|
case 47:
|
|
521
521
|
switch (Q()) {
|
|
522
522
|
case 42:
|
|
523
523
|
case 47:
|
|
524
|
-
|
|
524
|
+
Se(Dr(Or(V(), Oe()), t, r, u), u);
|
|
525
525
|
break;
|
|
526
526
|
default:
|
|
527
527
|
p += "/";
|
|
@@ -529,87 +529,87 @@ function Ie(e, t, r, n, o, a, s, c, u) {
|
|
|
529
529
|
break;
|
|
530
530
|
// {
|
|
531
531
|
case 123 * x:
|
|
532
|
-
c[b++] = B(p) *
|
|
532
|
+
c[b++] = B(p) * P;
|
|
533
533
|
// } ; \0
|
|
534
534
|
case 125 * x:
|
|
535
535
|
case 59:
|
|
536
536
|
case 0:
|
|
537
|
-
switch (
|
|
537
|
+
switch (A) {
|
|
538
538
|
// \0 }
|
|
539
539
|
case 0:
|
|
540
540
|
case 125:
|
|
541
541
|
I = 0;
|
|
542
542
|
// ;
|
|
543
543
|
case 59 + v:
|
|
544
|
-
|
|
544
|
+
P == -1 && (p = d(p, /\f/g, "")), y > 0 && B(p) - m && Se(y > 32 ? Ct(p + ";", n, r, m - 1, u) : Ct(d(p, " ", "") + ";", n, r, m - 2, u), u);
|
|
545
545
|
break;
|
|
546
546
|
// @ ;
|
|
547
547
|
case 59:
|
|
548
548
|
p += ";";
|
|
549
549
|
// { rule/at-rule
|
|
550
550
|
default:
|
|
551
|
-
if (
|
|
551
|
+
if (Se(h = _t(p, t, r, b, v, o, c, S, k = [], _ = [], m, a), a), A === 123)
|
|
552
552
|
if (v === 0)
|
|
553
|
-
Ie(p, t, h, h,
|
|
553
|
+
Ie(p, t, h, h, k, a, m, c, _);
|
|
554
554
|
else
|
|
555
|
-
switch (g === 99 &&
|
|
555
|
+
switch (g === 99 && O(p, 3) === 110 ? 100 : g) {
|
|
556
556
|
// d l m s
|
|
557
557
|
case 100:
|
|
558
558
|
case 108:
|
|
559
559
|
case 109:
|
|
560
560
|
case 115:
|
|
561
|
-
Ie(e, h, h, n &&
|
|
561
|
+
Ie(e, h, h, n && Se(_t(e, h, h, 0, 0, o, c, S, o, k = [], m, _), _), o, _, m, c, n ? k : _);
|
|
562
562
|
break;
|
|
563
563
|
default:
|
|
564
|
-
Ie(p, h, h, h, [""],
|
|
564
|
+
Ie(p, h, h, h, [""], _, 0, c, _);
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
b = v = y = 0, x =
|
|
567
|
+
b = v = y = 0, x = P = 1, S = p = "", m = s;
|
|
568
568
|
break;
|
|
569
569
|
// :
|
|
570
570
|
case 58:
|
|
571
|
-
m = 1 + B(p), y =
|
|
571
|
+
m = 1 + B(p), y = E;
|
|
572
572
|
default:
|
|
573
573
|
if (x < 1) {
|
|
574
|
-
if (
|
|
574
|
+
if (A == 123)
|
|
575
575
|
--x;
|
|
576
|
-
else if (
|
|
576
|
+
else if (A == 125 && x++ == 0 && Cr() == 125)
|
|
577
577
|
continue;
|
|
578
578
|
}
|
|
579
|
-
switch (p +=
|
|
579
|
+
switch (p += pt(A), A * x) {
|
|
580
580
|
// &
|
|
581
581
|
case 38:
|
|
582
|
-
|
|
582
|
+
P = v > 0 ? 1 : (p += "\f", -1);
|
|
583
583
|
break;
|
|
584
584
|
// ,
|
|
585
585
|
case 44:
|
|
586
|
-
c[b++] = (B(p) - 1) *
|
|
586
|
+
c[b++] = (B(p) - 1) * P, P = 1;
|
|
587
587
|
break;
|
|
588
588
|
// @
|
|
589
589
|
case 64:
|
|
590
|
-
Q() === 45 && (p +=
|
|
590
|
+
Q() === 45 && (p += Xe(V())), g = Q(), v = m = B(S = p += Ir(Oe())), A++;
|
|
591
591
|
break;
|
|
592
592
|
// -
|
|
593
593
|
case 45:
|
|
594
|
-
|
|
594
|
+
E === 45 && B(p) == 2 && (x = 0);
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
597
|
return a;
|
|
598
598
|
}
|
|
599
|
-
function
|
|
600
|
-
for (var g = o - 1, y = o === 0 ? a : [""],
|
|
601
|
-
for (var
|
|
602
|
-
(
|
|
599
|
+
function _t(e, t, r, n, o, a, s, c, u, b, v, m) {
|
|
600
|
+
for (var g = o - 1, y = o === 0 ? a : [""], E = Xt(y), x = 0, I = 0, P = 0; x < n; ++x)
|
|
601
|
+
for (var A = 0, S = ue(e, g + 1, g = Ut(I = s[x])), k = e; A < E; ++A)
|
|
602
|
+
(k = qt(I > 0 ? y[A] + " " + S : d(S, /&\f/g, y[A]))) && (u[P++] = k);
|
|
603
603
|
return Ve(e, t, r, o === 0 ? Le : c, u, b, v, m);
|
|
604
604
|
}
|
|
605
|
-
function
|
|
606
|
-
return Ve(e, t, r,
|
|
605
|
+
function Dr(e, t, r, n) {
|
|
606
|
+
return Ve(e, t, r, Ht, pt(_r()), ue(e, 2, -2), 0, n);
|
|
607
607
|
}
|
|
608
|
-
function
|
|
609
|
-
return Ve(e, t, r,
|
|
608
|
+
function Ct(e, t, r, n, o) {
|
|
609
|
+
return Ve(e, t, r, lt, ue(e, 0, n), ue(e, n + 1, -1), n, o);
|
|
610
610
|
}
|
|
611
|
-
function
|
|
612
|
-
switch (
|
|
611
|
+
function Zt(e, t, r) {
|
|
612
|
+
switch (Rr(e, t)) {
|
|
613
613
|
// color-adjust
|
|
614
614
|
case 5103:
|
|
615
615
|
return w + "print-" + e + e;
|
|
@@ -645,17 +645,17 @@ function Ht(e, t, r) {
|
|
|
645
645
|
return w + e + e;
|
|
646
646
|
// tab-size
|
|
647
647
|
case 4789:
|
|
648
|
-
return
|
|
648
|
+
return ke + e + e;
|
|
649
649
|
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
650
650
|
case 5349:
|
|
651
651
|
case 4246:
|
|
652
652
|
case 4810:
|
|
653
653
|
case 6968:
|
|
654
654
|
case 2756:
|
|
655
|
-
return w + e +
|
|
655
|
+
return w + e + ke + e + R + e + e;
|
|
656
656
|
// writing-mode
|
|
657
657
|
case 5936:
|
|
658
|
-
switch (
|
|
658
|
+
switch (O(e, t + 11)) {
|
|
659
659
|
// vertical-l(r)
|
|
660
660
|
case 114:
|
|
661
661
|
return w + e + R + d(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
@@ -679,7 +679,7 @@ function Ht(e, t, r) {
|
|
|
679
679
|
return w + e + d(e, /(\w+).+(:[^]+)/, w + "box-$1$2" + R + "flex-$1$2") + e;
|
|
680
680
|
// align-self
|
|
681
681
|
case 5443:
|
|
682
|
-
return w + e + R + "flex-item-" + d(e, /flex-|-self/g, "") + (
|
|
682
|
+
return w + e + R + "flex-item-" + d(e, /flex-|-self/g, "") + (H(e, /flex-|baseline/) ? "" : R + "grid-row-" + d(e, /flex-|-self/g, "")) + e;
|
|
683
683
|
// align-content
|
|
684
684
|
case 4675:
|
|
685
685
|
return w + e + R + "flex-line-pack" + d(e, /align-content|flex-|-self/g, "") + e;
|
|
@@ -707,7 +707,7 @@ function Ht(e, t, r) {
|
|
|
707
707
|
return d(d(e, /(.+:)(flex-)?(.*)/, w + "box-pack:$3" + R + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + w + e + e;
|
|
708
708
|
// justify-self
|
|
709
709
|
case 4200:
|
|
710
|
-
if (!
|
|
710
|
+
if (!H(e, /flex-|baseline/)) return R + "grid-column-align" + ue(e, t) + e;
|
|
711
711
|
break;
|
|
712
712
|
// grid-template-(columns|rows)
|
|
713
713
|
case 2592:
|
|
@@ -717,13 +717,13 @@ function Ht(e, t, r) {
|
|
|
717
717
|
case 4384:
|
|
718
718
|
case 3616:
|
|
719
719
|
return r && r.some(function(n, o) {
|
|
720
|
-
return t = o,
|
|
721
|
-
}) ? ~Ne(e + (r = r[t].value), "span", 0) ? e : R + d(e, "-start", "") + e + R + "grid-row-span:" + (~Ne(r, "span", 0) ?
|
|
720
|
+
return t = o, H(n.props, /grid-\w+-end/);
|
|
721
|
+
}) ? ~Ne(e + (r = r[t].value), "span", 0) ? e : R + d(e, "-start", "") + e + R + "grid-row-span:" + (~Ne(r, "span", 0) ? H(r, /\d+/) : +H(r, /\d+/) - +H(e, /\d+/)) + ";" : R + d(e, "-start", "") + e;
|
|
722
722
|
// grid-(row|column)-end
|
|
723
723
|
case 4896:
|
|
724
724
|
case 4128:
|
|
725
725
|
return r && r.some(function(n) {
|
|
726
|
-
return
|
|
726
|
+
return H(n.props, /grid-\w+-start/);
|
|
727
727
|
}) ? e : R + d(d(e, "-end", "-span"), "span ", "") + e;
|
|
728
728
|
// (margin|padding)-inline-(start|end)
|
|
729
729
|
case 4095:
|
|
@@ -745,17 +745,17 @@ function Ht(e, t, r) {
|
|
|
745
745
|
case 5021:
|
|
746
746
|
case 4765:
|
|
747
747
|
if (B(e) - 1 - t > 6)
|
|
748
|
-
switch (
|
|
748
|
+
switch (O(e, t + 1)) {
|
|
749
749
|
// (m)ax-content, (m)in-content
|
|
750
750
|
case 109:
|
|
751
|
-
if (
|
|
751
|
+
if (O(e, t + 4) !== 45)
|
|
752
752
|
break;
|
|
753
753
|
// (f)ill-available, (f)it-content
|
|
754
754
|
case 102:
|
|
755
|
-
return d(e, /(.+:)(.+)-([^]+)/, "$1" + w + "$2-$3$1" +
|
|
755
|
+
return d(e, /(.+:)(.+)-([^]+)/, "$1" + w + "$2-$3$1" + ke + (O(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
756
756
|
// (s)tretch
|
|
757
757
|
case 115:
|
|
758
|
-
return ~Ne(e, "stretch", 0) ?
|
|
758
|
+
return ~Ne(e, "stretch", 0) ? Zt(d(e, "stretch", "fill-available"), t, r) + e : e;
|
|
759
759
|
}
|
|
760
760
|
break;
|
|
761
761
|
// grid-(column|row)
|
|
@@ -766,15 +766,15 @@ function Ht(e, t, r) {
|
|
|
766
766
|
});
|
|
767
767
|
// position: sticky
|
|
768
768
|
case 4949:
|
|
769
|
-
if (
|
|
769
|
+
if (O(e, t + 6) === 121)
|
|
770
770
|
return d(e, ":", ":" + w) + e;
|
|
771
771
|
break;
|
|
772
772
|
// display: (flex|inline-flex|grid|inline-grid)
|
|
773
773
|
case 6444:
|
|
774
|
-
switch (
|
|
774
|
+
switch (O(e, O(e, 14) === 45 ? 18 : 11)) {
|
|
775
775
|
// (inline-)?fle(x)
|
|
776
776
|
case 120:
|
|
777
|
-
return d(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + w + (
|
|
777
|
+
return d(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + w + (O(e, 14) === 45 ? "inline-" : "") + "box$3$1" + w + "$2$3$1" + R + "$2box$3") + e;
|
|
778
778
|
// (inline-)?gri(d)
|
|
779
779
|
case 100:
|
|
780
780
|
return d(e, ":", ":" + R) + e;
|
|
@@ -795,62 +795,62 @@ function Fe(e, t) {
|
|
|
795
795
|
r += t(e[n], n, e, t) || "";
|
|
796
796
|
return r;
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function Fr(e, t, r, n) {
|
|
799
799
|
switch (e.type) {
|
|
800
|
-
case
|
|
800
|
+
case xr:
|
|
801
801
|
if (e.children.length) break;
|
|
802
802
|
case Er:
|
|
803
|
-
case
|
|
803
|
+
case lt:
|
|
804
804
|
return e.return = e.return || e.value;
|
|
805
|
-
case
|
|
805
|
+
case Ht:
|
|
806
806
|
return "";
|
|
807
|
-
case
|
|
807
|
+
case Gt:
|
|
808
808
|
return e.return = e.value + "{" + Fe(e.children, n) + "}";
|
|
809
809
|
case Le:
|
|
810
810
|
if (!B(e.value = e.props.join(","))) return "";
|
|
811
811
|
}
|
|
812
812
|
return B(r = Fe(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
813
813
|
}
|
|
814
|
-
function
|
|
815
|
-
var t =
|
|
814
|
+
function zr(e) {
|
|
815
|
+
var t = Xt(e);
|
|
816
816
|
return function(r, n, o, a) {
|
|
817
817
|
for (var s = "", c = 0; c < t; c++)
|
|
818
818
|
s += e[c](r, n, o, a) || "";
|
|
819
819
|
return s;
|
|
820
820
|
};
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function Mr(e) {
|
|
823
823
|
return function(t) {
|
|
824
824
|
t.root || (t = t.return) && e(t);
|
|
825
825
|
};
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function Lr(e, t, r, n) {
|
|
828
828
|
if (e.length > -1 && !e.return)
|
|
829
829
|
switch (e.type) {
|
|
830
|
-
case
|
|
831
|
-
e.return =
|
|
830
|
+
case lt:
|
|
831
|
+
e.return = Zt(e.value, e.length, r);
|
|
832
832
|
return;
|
|
833
|
-
case
|
|
833
|
+
case Gt:
|
|
834
834
|
return Fe([X(e, { value: d(e.value, "@", "@" + w) })], n);
|
|
835
835
|
case Le:
|
|
836
836
|
if (e.length)
|
|
837
|
-
return
|
|
838
|
-
switch (
|
|
837
|
+
return Ar(r = e.props, function(o) {
|
|
838
|
+
switch (H(o, n = /(::plac\w+|:read-\w+)/)) {
|
|
839
839
|
// :read-(only|write)
|
|
840
840
|
case ":read-only":
|
|
841
841
|
case ":read-write":
|
|
842
|
-
|
|
842
|
+
se(X(e, { props: [d(o, /:(read-\w+)/, ":" + ke + "$1")] })), se(X(e, { props: [o] })), et(e, { props: At(r, n) });
|
|
843
843
|
break;
|
|
844
844
|
// :placeholder
|
|
845
845
|
case "::placeholder":
|
|
846
|
-
|
|
846
|
+
se(X(e, { props: [d(o, /:(plac\w+)/, ":" + w + "input-$1")] })), se(X(e, { props: [d(o, /:(plac\w+)/, ":" + ke + "$1")] })), se(X(e, { props: [d(o, /:(plac\w+)/, R + "input-$1")] })), se(X(e, { props: [o] })), et(e, { props: At(r, n) });
|
|
847
847
|
break;
|
|
848
848
|
}
|
|
849
849
|
return "";
|
|
850
850
|
});
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
|
-
var
|
|
853
|
+
var Yr = {
|
|
854
854
|
animationIterationCount: 1,
|
|
855
855
|
aspectRatio: 1,
|
|
856
856
|
borderImageOutset: 1,
|
|
@@ -898,8 +898,8 @@ var Lr = {
|
|
|
898
898
|
strokeMiterlimit: 1,
|
|
899
899
|
strokeOpacity: 1,
|
|
900
900
|
strokeWidth: 1
|
|
901
|
-
},
|
|
902
|
-
`, ze = typeof window < "u" && typeof document < "u",
|
|
901
|
+
}, re = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Kt = "active", Qt = "data-styled-version", We = "6.1.19", dt = `/*!sc*/
|
|
902
|
+
`, ze = typeof window < "u" && typeof document < "u", Vr = !!(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"), Pt = /invalid hook call/i, Ce = /* @__PURE__ */ new Set(), Br = function(e, t) {
|
|
903
903
|
if (process.env.NODE_ENV !== "production") {
|
|
904
904
|
var r = t ? ' with the id of "'.concat(t, '"') : "", n = "The component ".concat(e).concat(r, ` has been created dynamically.
|
|
905
905
|
`) + `You may see this warning because you've called styled inside another component.
|
|
@@ -910,65 +910,65 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
|
|
|
910
910
|
var a = !0;
|
|
911
911
|
console.error = function(s) {
|
|
912
912
|
for (var c = [], u = 1; u < arguments.length; u++) c[u - 1] = arguments[u];
|
|
913
|
-
|
|
914
|
-
},
|
|
913
|
+
Pt.test(s) ? (a = !1, Ce.delete(n)) : o.apply(void 0, ce([s], c, !1));
|
|
914
|
+
}, mr(), a && !Ce.has(n) && (console.warn(n), Ce.add(n));
|
|
915
915
|
} catch (s) {
|
|
916
|
-
|
|
916
|
+
Pt.test(s.message) && Ce.delete(n);
|
|
917
917
|
} finally {
|
|
918
918
|
console.error = o;
|
|
919
919
|
}
|
|
920
920
|
}
|
|
921
|
-
},
|
|
922
|
-
function
|
|
923
|
-
return r === void 0 && (r =
|
|
921
|
+
}, He = Object.freeze([]), pe = Object.freeze({});
|
|
922
|
+
function Wr(e, t, r) {
|
|
923
|
+
return r === void 0 && (r = pe), e.theme !== r.theme && e.theme || t || r.theme;
|
|
924
924
|
}
|
|
925
|
-
var
|
|
926
|
-
function
|
|
927
|
-
return e.replace(
|
|
925
|
+
var nt = /* @__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"]), Hr = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Gr = /(^-|-$)/g;
|
|
926
|
+
function Tt(e) {
|
|
927
|
+
return e.replace(Hr, "-").replace(Gr, "");
|
|
928
928
|
}
|
|
929
|
-
var
|
|
929
|
+
var Ur = /(a)(d)/gi, Pe = 52, $t = function(e) {
|
|
930
930
|
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
931
931
|
};
|
|
932
|
-
function
|
|
932
|
+
function ot(e) {
|
|
933
933
|
var t, r = "";
|
|
934
|
-
for (t = Math.abs(e); t >
|
|
935
|
-
return (
|
|
934
|
+
for (t = Math.abs(e); t > Pe; t = t / Pe | 0) r = $t(t % Pe) + r;
|
|
935
|
+
return ($t(t % Pe) + r).replace(Ur, "$1-$2");
|
|
936
936
|
}
|
|
937
|
-
var
|
|
937
|
+
var Je, er = 5381, Z = function(e, t) {
|
|
938
938
|
for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
|
|
939
939
|
return e;
|
|
940
|
-
},
|
|
941
|
-
return Z(
|
|
940
|
+
}, tr = function(e) {
|
|
941
|
+
return Z(er, e);
|
|
942
942
|
};
|
|
943
|
-
function
|
|
944
|
-
return
|
|
943
|
+
function qr(e) {
|
|
944
|
+
return ot(tr(e) >>> 0);
|
|
945
945
|
}
|
|
946
|
-
function
|
|
946
|
+
function rr(e) {
|
|
947
947
|
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function Ze(e) {
|
|
950
950
|
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
951
951
|
}
|
|
952
|
-
var
|
|
953
|
-
function
|
|
954
|
-
return ("type" in (t = e) && t.type.$$typeof) ===
|
|
952
|
+
var nr = typeof Symbol == "function" && Symbol.for, or = nr ? Symbol.for("react.memo") : 60115, Xr = nr ? Symbol.for("react.forward_ref") : 60112, Jr = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Zr = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, ar = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Kr = ((Je = {})[Xr] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Je[or] = ar, Je);
|
|
953
|
+
function Nt(e) {
|
|
954
|
+
return ("type" in (t = e) && t.type.$$typeof) === or ? ar : "$$typeof" in e ? Kr[e.$$typeof] : Jr;
|
|
955
955
|
var t;
|
|
956
956
|
}
|
|
957
|
-
var
|
|
958
|
-
function
|
|
957
|
+
var Qr = Object.defineProperty, en = Object.getOwnPropertyNames, Ot = Object.getOwnPropertySymbols, tn = Object.getOwnPropertyDescriptor, rn = Object.getPrototypeOf, It = Object.prototype;
|
|
958
|
+
function sr(e, t, r) {
|
|
959
959
|
if (typeof t != "string") {
|
|
960
|
-
if (
|
|
961
|
-
var n =
|
|
962
|
-
n && n !==
|
|
960
|
+
if (It) {
|
|
961
|
+
var n = rn(t);
|
|
962
|
+
n && n !== It && sr(e, n, r);
|
|
963
963
|
}
|
|
964
|
-
var o =
|
|
965
|
-
|
|
966
|
-
for (var a =
|
|
964
|
+
var o = en(t);
|
|
965
|
+
Ot && (o = o.concat(Ot(t)));
|
|
966
|
+
for (var a = Nt(e), s = Nt(t), c = 0; c < o.length; ++c) {
|
|
967
967
|
var u = o[c];
|
|
968
|
-
if (!(u in
|
|
969
|
-
var b =
|
|
968
|
+
if (!(u in Zr || r && r[u] || s && u in s || a && u in a)) {
|
|
969
|
+
var b = tn(t, u);
|
|
970
970
|
try {
|
|
971
|
-
|
|
971
|
+
Qr(e, u, b);
|
|
972
972
|
} catch {
|
|
973
973
|
}
|
|
974
974
|
}
|
|
@@ -976,33 +976,33 @@ function tr(e, t, r) {
|
|
|
976
976
|
}
|
|
977
977
|
return e;
|
|
978
978
|
}
|
|
979
|
-
function
|
|
979
|
+
function de(e) {
|
|
980
980
|
return typeof e == "function";
|
|
981
981
|
}
|
|
982
|
-
function
|
|
982
|
+
function ft(e) {
|
|
983
983
|
return typeof e == "object" && "styledComponentId" in e;
|
|
984
984
|
}
|
|
985
985
|
function K(e, t) {
|
|
986
986
|
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
987
987
|
}
|
|
988
|
-
function
|
|
988
|
+
function jt(e, t) {
|
|
989
989
|
if (e.length === 0) return "";
|
|
990
990
|
for (var r = e[0], n = 1; n < e.length; n++) r += e[n];
|
|
991
991
|
return r;
|
|
992
992
|
}
|
|
993
|
-
function
|
|
993
|
+
function fe(e) {
|
|
994
994
|
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
995
995
|
}
|
|
996
|
-
function
|
|
997
|
-
if (r === void 0 && (r = !1), !r && !
|
|
998
|
-
if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] =
|
|
999
|
-
else if (
|
|
996
|
+
function at(e, t, r) {
|
|
997
|
+
if (r === void 0 && (r = !1), !r && !fe(e) && !Array.isArray(e)) return t;
|
|
998
|
+
if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = at(e[n], t[n]);
|
|
999
|
+
else if (fe(t)) for (var n in t) e[n] = at(e[n], t[n]);
|
|
1000
1000
|
return e;
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1002
|
+
function ht(e, t) {
|
|
1003
1003
|
Object.defineProperty(e, "toString", { value: t });
|
|
1004
1004
|
}
|
|
1005
|
-
var
|
|
1005
|
+
var nn = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
1006
1006
|
|
|
1007
1007
|
`, 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.
|
|
1008
1008
|
|
|
@@ -1044,18 +1044,18 @@ as for instance in your render method then you may be running into this limitati
|
|
|
1044
1044
|
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
|
|
1045
1045
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
1046
1046
|
`, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
1047
|
-
function
|
|
1047
|
+
function on() {
|
|
1048
1048
|
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
1049
1049
|
for (var r = e[0], n = [], o = 1, a = e.length; o < a; o += 1) n.push(e[o]);
|
|
1050
1050
|
return n.forEach(function(s) {
|
|
1051
1051
|
r = r.replace(/%[a-z]/, s);
|
|
1052
1052
|
}), r;
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1054
|
+
function ne(e) {
|
|
1055
1055
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
1056
|
-
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(
|
|
1056
|
+
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(on.apply(void 0, ce([nn[e]], t, !1)).trim());
|
|
1057
1057
|
}
|
|
1058
|
-
var
|
|
1058
|
+
var an = (function() {
|
|
1059
1059
|
function e(t) {
|
|
1060
1060
|
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
1061
1061
|
}
|
|
@@ -1064,7 +1064,7 @@ var on = (function() {
|
|
|
1064
1064
|
return r;
|
|
1065
1065
|
}, e.prototype.insertRules = function(t, r) {
|
|
1066
1066
|
if (t >= this.groupSizes.length) {
|
|
1067
|
-
for (var n = this.groupSizes, o = n.length, a = o; t >= a; ) if ((a <<= 1) < 0) throw
|
|
1067
|
+
for (var n = this.groupSizes, o = n.length, a = o; t >= a; ) if ((a <<= 1) < 0) throw ne(16, "".concat(t));
|
|
1068
1068
|
this.groupSizes = new Uint32Array(a), this.groupSizes.set(n), this.length = a;
|
|
1069
1069
|
for (var s = o; s < a; s++) this.groupSizes[s] = 0;
|
|
1070
1070
|
}
|
|
@@ -1078,56 +1078,56 @@ var on = (function() {
|
|
|
1078
1078
|
}, e.prototype.getGroup = function(t) {
|
|
1079
1079
|
var r = "";
|
|
1080
1080
|
if (t >= this.length || this.groupSizes[t] === 0) return r;
|
|
1081
|
-
for (var n = this.groupSizes[t], o = this.indexOfGroup(t), a = o + n, s = o; s < a; s++) r += "".concat(this.tag.getRule(s)).concat(
|
|
1081
|
+
for (var n = this.groupSizes[t], o = this.indexOfGroup(t), a = o + n, s = o; s < a; s++) r += "".concat(this.tag.getRule(s)).concat(dt);
|
|
1082
1082
|
return r;
|
|
1083
1083
|
}, e;
|
|
1084
|
-
})(),
|
|
1084
|
+
})(), sn = 1 << 30, je = /* @__PURE__ */ new Map(), Me = /* @__PURE__ */ new Map(), De = 1, Te = function(e) {
|
|
1085
1085
|
if (je.has(e)) return je.get(e);
|
|
1086
1086
|
for (; Me.has(De); ) De++;
|
|
1087
1087
|
var t = De++;
|
|
1088
|
-
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t >
|
|
1088
|
+
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > sn)) throw ne(16, "".concat(t));
|
|
1089
1089
|
return je.set(e, t), Me.set(t, e), t;
|
|
1090
|
-
},
|
|
1090
|
+
}, cn = function(e, t) {
|
|
1091
1091
|
De = t + 1, je.set(e, t), Me.set(t, e);
|
|
1092
|
-
},
|
|
1092
|
+
}, un = "style[".concat(re, "][").concat(Qt, '="').concat(We, '"]'), ln = new RegExp("^".concat(re, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), pn = function(e, t, r) {
|
|
1093
1093
|
for (var n, o = r.split(","), a = 0, s = o.length; a < s; a++) (n = o[a]) && e.registerName(t, n);
|
|
1094
|
-
},
|
|
1095
|
-
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(
|
|
1094
|
+
}, dn = function(e, t) {
|
|
1095
|
+
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(dt), o = [], a = 0, s = n.length; a < s; a++) {
|
|
1096
1096
|
var c = n[a].trim();
|
|
1097
1097
|
if (c) {
|
|
1098
|
-
var u = c.match(
|
|
1098
|
+
var u = c.match(ln);
|
|
1099
1099
|
if (u) {
|
|
1100
1100
|
var b = 0 | parseInt(u[1], 10), v = u[2];
|
|
1101
|
-
b !== 0 && (
|
|
1101
|
+
b !== 0 && (cn(v, b), pn(e, v, u[3]), e.getTag().insertRules(b, o)), o.length = 0;
|
|
1102
1102
|
} else o.push(c);
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
|
-
},
|
|
1106
|
-
for (var t = document.querySelectorAll(
|
|
1105
|
+
}, Dt = function(e) {
|
|
1106
|
+
for (var t = document.querySelectorAll(un), r = 0, n = t.length; r < n; r++) {
|
|
1107
1107
|
var o = t[r];
|
|
1108
|
-
o && o.getAttribute(
|
|
1108
|
+
o && o.getAttribute(re) !== Kt && (dn(e, o), o.parentNode && o.parentNode.removeChild(o));
|
|
1109
1109
|
}
|
|
1110
1110
|
};
|
|
1111
|
-
function
|
|
1111
|
+
function fn() {
|
|
1112
1112
|
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
1113
1113
|
}
|
|
1114
|
-
var
|
|
1114
|
+
var ir = function(e) {
|
|
1115
1115
|
var t = document.head, r = e || t, n = document.createElement("style"), o = (function(c) {
|
|
1116
|
-
var u = Array.from(c.querySelectorAll("style[".concat(
|
|
1116
|
+
var u = Array.from(c.querySelectorAll("style[".concat(re, "]")));
|
|
1117
1117
|
return u[u.length - 1];
|
|
1118
1118
|
})(r), a = o !== void 0 ? o.nextSibling : null;
|
|
1119
|
-
n.setAttribute(
|
|
1120
|
-
var s =
|
|
1119
|
+
n.setAttribute(re, Kt), n.setAttribute(Qt, We);
|
|
1120
|
+
var s = fn();
|
|
1121
1121
|
return s && n.setAttribute("nonce", s), r.insertBefore(n, a), n;
|
|
1122
|
-
},
|
|
1122
|
+
}, hn = (function() {
|
|
1123
1123
|
function e(t) {
|
|
1124
|
-
this.element =
|
|
1124
|
+
this.element = ir(t), this.element.appendChild(document.createTextNode("")), this.sheet = (function(r) {
|
|
1125
1125
|
if (r.sheet) return r.sheet;
|
|
1126
1126
|
for (var n = document.styleSheets, o = 0, a = n.length; o < a; o++) {
|
|
1127
1127
|
var s = n[o];
|
|
1128
1128
|
if (s.ownerNode === r) return s;
|
|
1129
1129
|
}
|
|
1130
|
-
throw
|
|
1130
|
+
throw ne(17);
|
|
1131
1131
|
})(this.element), this.length = 0;
|
|
1132
1132
|
}
|
|
1133
1133
|
return e.prototype.insertRule = function(t, r) {
|
|
@@ -1142,9 +1142,9 @@ var rr = function(e) {
|
|
|
1142
1142
|
var r = this.sheet.cssRules[t];
|
|
1143
1143
|
return r && r.cssText ? r.cssText : "";
|
|
1144
1144
|
}, e;
|
|
1145
|
-
})(),
|
|
1145
|
+
})(), mn = (function() {
|
|
1146
1146
|
function e(t) {
|
|
1147
|
-
this.element =
|
|
1147
|
+
this.element = ir(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
1148
1148
|
}
|
|
1149
1149
|
return e.prototype.insertRule = function(t, r) {
|
|
1150
1150
|
if (t <= this.length && t >= 0) {
|
|
@@ -1157,7 +1157,7 @@ var rr = function(e) {
|
|
|
1157
1157
|
}, e.prototype.getRule = function(t) {
|
|
1158
1158
|
return t < this.length ? this.nodes[t].textContent : "";
|
|
1159
1159
|
}, e;
|
|
1160
|
-
})(),
|
|
1160
|
+
})(), gn = (function() {
|
|
1161
1161
|
function e(t) {
|
|
1162
1162
|
this.rules = [], this.length = 0;
|
|
1163
1163
|
}
|
|
@@ -1168,32 +1168,32 @@ var rr = function(e) {
|
|
|
1168
1168
|
}, e.prototype.getRule = function(t) {
|
|
1169
1169
|
return t < this.length ? this.rules[t] : "";
|
|
1170
1170
|
}, e;
|
|
1171
|
-
})(),
|
|
1171
|
+
})(), Ft = ze, yn = { isServer: !ze, useCSSOMInjection: !Vr }, cr = (function() {
|
|
1172
1172
|
function e(t, r, n) {
|
|
1173
|
-
t === void 0 && (t =
|
|
1173
|
+
t === void 0 && (t = pe), r === void 0 && (r = {});
|
|
1174
1174
|
var o = this;
|
|
1175
|
-
this.options = F(F({},
|
|
1175
|
+
this.options = F(F({}, yn), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && ze && Ft && (Ft = !1, Dt(this)), ht(this, function() {
|
|
1176
1176
|
return (function(a) {
|
|
1177
1177
|
for (var s = a.getTag(), c = s.length, u = "", b = function(m) {
|
|
1178
|
-
var g = (function(
|
|
1179
|
-
return Me.get(
|
|
1178
|
+
var g = (function(P) {
|
|
1179
|
+
return Me.get(P);
|
|
1180
1180
|
})(m);
|
|
1181
1181
|
if (g === void 0) return "continue";
|
|
1182
|
-
var y = a.names.get(g),
|
|
1183
|
-
if (y === void 0 || !y.size ||
|
|
1184
|
-
var x = "".concat(
|
|
1185
|
-
y !== void 0 && y.forEach(function(
|
|
1186
|
-
|
|
1187
|
-
}), u += "".concat(
|
|
1182
|
+
var y = a.names.get(g), E = s.getGroup(m);
|
|
1183
|
+
if (y === void 0 || !y.size || E.length === 0) return "continue";
|
|
1184
|
+
var x = "".concat(re, ".g").concat(m, '[id="').concat(g, '"]'), I = "";
|
|
1185
|
+
y !== void 0 && y.forEach(function(P) {
|
|
1186
|
+
P.length > 0 && (I += "".concat(P, ","));
|
|
1187
|
+
}), u += "".concat(E).concat(x, '{content:"').concat(I, '"}').concat(dt);
|
|
1188
1188
|
}, v = 0; v < c; v++) b(v);
|
|
1189
1189
|
return u;
|
|
1190
1190
|
})(o);
|
|
1191
1191
|
});
|
|
1192
1192
|
}
|
|
1193
1193
|
return e.registerId = function(t) {
|
|
1194
|
-
return
|
|
1194
|
+
return Te(t);
|
|
1195
1195
|
}, e.prototype.rehydrate = function() {
|
|
1196
|
-
!this.server && ze &&
|
|
1196
|
+
!this.server && ze && Dt(this);
|
|
1197
1197
|
}, e.prototype.reconstructWithOptions = function(t, r) {
|
|
1198
1198
|
return r === void 0 && (r = !0), new e(F(F({}, this.options), t), this.gs, r && this.names || void 0);
|
|
1199
1199
|
}, e.prototype.allocateGSInstance = function(t) {
|
|
@@ -1201,124 +1201,124 @@ var rr = function(e) {
|
|
|
1201
1201
|
}, e.prototype.getTag = function() {
|
|
1202
1202
|
return this.tag || (this.tag = (t = (function(r) {
|
|
1203
1203
|
var n = r.useCSSOMInjection, o = r.target;
|
|
1204
|
-
return r.isServer ? new
|
|
1205
|
-
})(this.options), new
|
|
1204
|
+
return r.isServer ? new gn(o) : n ? new hn(o) : new mn(o);
|
|
1205
|
+
})(this.options), new an(t)));
|
|
1206
1206
|
var t;
|
|
1207
1207
|
}, e.prototype.hasNameForId = function(t, r) {
|
|
1208
1208
|
return this.names.has(t) && this.names.get(t).has(r);
|
|
1209
1209
|
}, e.prototype.registerName = function(t, r) {
|
|
1210
|
-
if (
|
|
1210
|
+
if (Te(t), this.names.has(t)) this.names.get(t).add(r);
|
|
1211
1211
|
else {
|
|
1212
1212
|
var n = /* @__PURE__ */ new Set();
|
|
1213
1213
|
n.add(r), this.names.set(t, n);
|
|
1214
1214
|
}
|
|
1215
1215
|
}, e.prototype.insertRules = function(t, r, n) {
|
|
1216
|
-
this.registerName(t, r), this.getTag().insertRules(
|
|
1216
|
+
this.registerName(t, r), this.getTag().insertRules(Te(t), n);
|
|
1217
1217
|
}, e.prototype.clearNames = function(t) {
|
|
1218
1218
|
this.names.has(t) && this.names.get(t).clear();
|
|
1219
1219
|
}, e.prototype.clearRules = function(t) {
|
|
1220
|
-
this.getTag().clearGroup(
|
|
1220
|
+
this.getTag().clearGroup(Te(t)), this.clearNames(t);
|
|
1221
1221
|
}, e.prototype.clearTag = function() {
|
|
1222
1222
|
this.tag = void 0;
|
|
1223
1223
|
}, e;
|
|
1224
|
-
})(),
|
|
1225
|
-
function
|
|
1224
|
+
})(), vn = /&/g, bn = /^\s*\/\/.*$/gm;
|
|
1225
|
+
function ur(e, t) {
|
|
1226
1226
|
return e.map(function(r) {
|
|
1227
1227
|
return r.type === "rule" && (r.value = "".concat(t, " ").concat(r.value), r.value = r.value.replaceAll(",", ",".concat(t, " ")), r.props = r.props.map(function(n) {
|
|
1228
1228
|
return "".concat(t, " ").concat(n);
|
|
1229
|
-
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children =
|
|
1229
|
+
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = ur(r.children, t)), r;
|
|
1230
1230
|
});
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1233
|
-
var t, r, n, o =
|
|
1234
|
-
return
|
|
1232
|
+
function wn(e) {
|
|
1233
|
+
var t, r, n, o = pe, a = o.options, s = a === void 0 ? pe : a, c = o.plugins, u = c === void 0 ? He : c, b = function(g, y, E) {
|
|
1234
|
+
return E.startsWith(r) && E.endsWith(r) && E.replaceAll(r, "").length > 0 ? ".".concat(t) : g;
|
|
1235
1235
|
}, v = u.slice();
|
|
1236
1236
|
v.push(function(g) {
|
|
1237
|
-
g.type === Le && g.value.includes("&") && (g.props[0] = g.props[0].replace(
|
|
1238
|
-
}), s.prefix && v.push(
|
|
1239
|
-
var m = function(g, y,
|
|
1240
|
-
y === void 0 && (y = ""),
|
|
1241
|
-
var I = g.replace(
|
|
1242
|
-
s.namespace && (
|
|
1243
|
-
var
|
|
1244
|
-
return Fe(
|
|
1245
|
-
return
|
|
1246
|
-
})))),
|
|
1237
|
+
g.type === Le && g.value.includes("&") && (g.props[0] = g.props[0].replace(vn, r).replace(n, b));
|
|
1238
|
+
}), s.prefix && v.push(Lr), v.push(Fr);
|
|
1239
|
+
var m = function(g, y, E, x) {
|
|
1240
|
+
y === void 0 && (y = ""), E === void 0 && (E = ""), x === void 0 && (x = "&"), t = x, r = y, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
1241
|
+
var I = g.replace(bn, ""), P = jr(E || y ? "".concat(E, " ").concat(y, " { ").concat(I, " }") : I);
|
|
1242
|
+
s.namespace && (P = ur(P, s.namespace));
|
|
1243
|
+
var A = [];
|
|
1244
|
+
return Fe(P, zr(v.concat(Mr(function(S) {
|
|
1245
|
+
return A.push(S);
|
|
1246
|
+
})))), A;
|
|
1247
1247
|
};
|
|
1248
1248
|
return m.hash = u.length ? u.reduce(function(g, y) {
|
|
1249
|
-
return y.name ||
|
|
1250
|
-
},
|
|
1249
|
+
return y.name || ne(15), Z(g, y.name);
|
|
1250
|
+
}, er).toString() : "", m;
|
|
1251
1251
|
}
|
|
1252
|
-
var
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
function
|
|
1256
|
-
return
|
|
1252
|
+
var Sn = new cr(), st = wn(), lr = ie.createContext({ shouldForwardProp: void 0, styleSheet: Sn, stylis: st });
|
|
1253
|
+
lr.Consumer;
|
|
1254
|
+
ie.createContext(void 0);
|
|
1255
|
+
function zt() {
|
|
1256
|
+
return Wt(lr);
|
|
1257
1257
|
}
|
|
1258
|
-
var
|
|
1258
|
+
var Mt = (function() {
|
|
1259
1259
|
function e(t, r) {
|
|
1260
1260
|
var n = this;
|
|
1261
1261
|
this.inject = function(o, a) {
|
|
1262
|
-
a === void 0 && (a =
|
|
1262
|
+
a === void 0 && (a = st);
|
|
1263
1263
|
var s = n.name + a.hash;
|
|
1264
1264
|
o.hasNameForId(n.id, s) || o.insertRules(n.id, s, a(n.rules, s, "@keyframes"));
|
|
1265
|
-
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r,
|
|
1266
|
-
throw
|
|
1265
|
+
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, ht(this, function() {
|
|
1266
|
+
throw ne(12, String(n.name));
|
|
1267
1267
|
});
|
|
1268
1268
|
}
|
|
1269
1269
|
return e.prototype.getName = function(t) {
|
|
1270
|
-
return t === void 0 && (t =
|
|
1270
|
+
return t === void 0 && (t = st), this.name + t.hash;
|
|
1271
1271
|
}, e;
|
|
1272
|
-
})(),
|
|
1272
|
+
})(), kn = function(e) {
|
|
1273
1273
|
return e >= "A" && e <= "Z";
|
|
1274
1274
|
};
|
|
1275
|
-
function
|
|
1275
|
+
function Lt(e) {
|
|
1276
1276
|
for (var t = "", r = 0; r < e.length; r++) {
|
|
1277
1277
|
var n = e[r];
|
|
1278
1278
|
if (r === 1 && n === "-" && e[0] === "-") return e;
|
|
1279
|
-
|
|
1279
|
+
kn(n) ? t += "-" + n.toLowerCase() : t += n;
|
|
1280
1280
|
}
|
|
1281
1281
|
return t.startsWith("ms-") ? "-" + t : t;
|
|
1282
1282
|
}
|
|
1283
|
-
var
|
|
1283
|
+
var pr = function(e) {
|
|
1284
1284
|
return e == null || e === !1 || e === "";
|
|
1285
|
-
},
|
|
1285
|
+
}, dr = function(e) {
|
|
1286
1286
|
var t, r, n = [];
|
|
1287
1287
|
for (var o in e) {
|
|
1288
1288
|
var a = e[o];
|
|
1289
|
-
e.hasOwnProperty(o) && !
|
|
1289
|
+
e.hasOwnProperty(o) && !pr(a) && (Array.isArray(a) && a.isCss || de(a) ? n.push("".concat(Lt(o), ":"), a, ";") : fe(a) ? n.push.apply(n, ce(ce(["".concat(o, " {")], dr(a), !1), ["}"], !1)) : n.push("".concat(Lt(o), ": ").concat((t = o, (r = a) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in Yr || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
|
|
1290
1290
|
}
|
|
1291
1291
|
return n;
|
|
1292
1292
|
};
|
|
1293
1293
|
function ee(e, t, r, n) {
|
|
1294
|
-
if (
|
|
1295
|
-
if (
|
|
1296
|
-
if (
|
|
1297
|
-
if (!
|
|
1294
|
+
if (pr(e)) return [];
|
|
1295
|
+
if (ft(e)) return [".".concat(e.styledComponentId)];
|
|
1296
|
+
if (de(e)) {
|
|
1297
|
+
if (!de(a = e) || a.prototype && a.prototype.isReactComponent || !t) return [e];
|
|
1298
1298
|
var o = e(t);
|
|
1299
|
-
return process.env.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof
|
|
1299
|
+
return process.env.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof Mt || fe(o) || o === null || console.error("".concat(rr(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.")), ee(o, t, r, n);
|
|
1300
1300
|
}
|
|
1301
1301
|
var a;
|
|
1302
|
-
return e instanceof
|
|
1302
|
+
return e instanceof Mt ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : fe(e) ? dr(e) : Array.isArray(e) ? Array.prototype.concat.apply(He, e.map(function(s) {
|
|
1303
1303
|
return ee(s, t, r, n);
|
|
1304
1304
|
})) : [e.toString()];
|
|
1305
1305
|
}
|
|
1306
1306
|
function En(e) {
|
|
1307
1307
|
for (var t = 0; t < e.length; t += 1) {
|
|
1308
1308
|
var r = e[t];
|
|
1309
|
-
if (
|
|
1309
|
+
if (de(r) && !ft(r)) return !1;
|
|
1310
1310
|
}
|
|
1311
1311
|
return !0;
|
|
1312
1312
|
}
|
|
1313
|
-
var
|
|
1313
|
+
var xn = tr(We), Rn = (function() {
|
|
1314
1314
|
function e(t, r, n) {
|
|
1315
|
-
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && En(t), this.componentId = r, this.baseHash = Z(
|
|
1315
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && En(t), this.componentId = r, this.baseHash = Z(xn, r), this.baseStyle = n, cr.registerId(r);
|
|
1316
1316
|
}
|
|
1317
1317
|
return e.prototype.generateAndInjectStyles = function(t, r, n) {
|
|
1318
1318
|
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
|
|
1319
1319
|
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) o = K(o, this.staticRulesId);
|
|
1320
1320
|
else {
|
|
1321
|
-
var a =
|
|
1321
|
+
var a = jt(ee(this.rules, t, r, n)), s = ot(Z(this.baseHash, a) >>> 0);
|
|
1322
1322
|
if (!r.hasNameForId(this.componentId, s)) {
|
|
1323
1323
|
var c = n(a, ".".concat(s), void 0, this.componentId);
|
|
1324
1324
|
r.insertRules(this.componentId, s, c);
|
|
@@ -1330,81 +1330,81 @@ var kn = Jt(We), xn = (function() {
|
|
|
1330
1330
|
var m = this.rules[v];
|
|
1331
1331
|
if (typeof m == "string") b += m, process.env.NODE_ENV !== "production" && (u = Z(u, m));
|
|
1332
1332
|
else if (m) {
|
|
1333
|
-
var g =
|
|
1333
|
+
var g = jt(ee(m, t, r, n));
|
|
1334
1334
|
u = Z(u, g + v), b += g;
|
|
1335
1335
|
}
|
|
1336
1336
|
}
|
|
1337
1337
|
if (b) {
|
|
1338
|
-
var y =
|
|
1338
|
+
var y = ot(u >>> 0);
|
|
1339
1339
|
r.hasNameForId(this.componentId, y) || r.insertRules(this.componentId, y, n(b, ".".concat(y), void 0, this.componentId)), o = K(o, y);
|
|
1340
1340
|
}
|
|
1341
1341
|
}
|
|
1342
1342
|
return o;
|
|
1343
1343
|
}, e;
|
|
1344
|
-
})(),
|
|
1345
|
-
|
|
1346
|
-
function
|
|
1347
|
-
var e =
|
|
1348
|
-
if (!e) throw
|
|
1344
|
+
})(), mt = ie.createContext(void 0);
|
|
1345
|
+
mt.Consumer;
|
|
1346
|
+
function An() {
|
|
1347
|
+
var e = Wt(mt);
|
|
1348
|
+
if (!e) throw ne(18);
|
|
1349
1349
|
return e;
|
|
1350
1350
|
}
|
|
1351
|
-
var
|
|
1351
|
+
var Ke = {}, Yt = /* @__PURE__ */ new Set();
|
|
1352
1352
|
function _n(e, t, r) {
|
|
1353
|
-
var n =
|
|
1354
|
-
var h = typeof
|
|
1355
|
-
|
|
1356
|
-
var p = "".concat(h, "-").concat(
|
|
1357
|
-
return
|
|
1358
|
-
})(t.displayName, t.parentComponentId) : u, v = t.displayName, m = v === void 0 ? (function(
|
|
1359
|
-
return
|
|
1360
|
-
})(e) : v, g = t.displayName && t.componentId ? "".concat(
|
|
1353
|
+
var n = ft(e), o = e, a = !Ze(e), s = t.attrs, c = s === void 0 ? He : s, u = t.componentId, b = u === void 0 ? (function(k, _) {
|
|
1354
|
+
var h = typeof k != "string" ? "sc" : Tt(k);
|
|
1355
|
+
Ke[h] = (Ke[h] || 0) + 1;
|
|
1356
|
+
var p = "".concat(h, "-").concat(qr(We + h + Ke[h]));
|
|
1357
|
+
return _ ? "".concat(_, "-").concat(p) : p;
|
|
1358
|
+
})(t.displayName, t.parentComponentId) : u, v = t.displayName, m = v === void 0 ? (function(k) {
|
|
1359
|
+
return Ze(k) ? "styled.".concat(k) : "Styled(".concat(rr(k), ")");
|
|
1360
|
+
})(e) : v, g = t.displayName && t.componentId ? "".concat(Tt(t.displayName), "-").concat(t.componentId) : t.componentId || b, y = n && o.attrs ? o.attrs.concat(c).filter(Boolean) : c, E = t.shouldForwardProp;
|
|
1361
1361
|
if (n && o.shouldForwardProp) {
|
|
1362
1362
|
var x = o.shouldForwardProp;
|
|
1363
1363
|
if (t.shouldForwardProp) {
|
|
1364
1364
|
var I = t.shouldForwardProp;
|
|
1365
|
-
|
|
1366
|
-
return x(
|
|
1365
|
+
E = function(k, _) {
|
|
1366
|
+
return x(k, _) && I(k, _);
|
|
1367
1367
|
};
|
|
1368
|
-
} else
|
|
1368
|
+
} else E = x;
|
|
1369
1369
|
}
|
|
1370
|
-
var
|
|
1371
|
-
function
|
|
1370
|
+
var P = new Rn(r, g, n ? o.componentStyle : void 0);
|
|
1371
|
+
function A(k, _) {
|
|
1372
1372
|
return (function(h, p, Y) {
|
|
1373
|
-
var
|
|
1374
|
-
process.env.NODE_ENV !== "production" &&
|
|
1375
|
-
var
|
|
1376
|
-
for (var
|
|
1377
|
-
var
|
|
1378
|
-
for (var q in
|
|
1373
|
+
var G = h.attrs, Ue = h.componentStyle, me = h.defaultProps, Ee = h.foldedComponentIds, xe = h.styledComponentId, ge = h.target, Re = ie.useContext(mt), Ae = zt(), oe = h.shouldForwardProp || Ae.shouldForwardProp;
|
|
1374
|
+
process.env.NODE_ENV !== "production" && kt(xe);
|
|
1375
|
+
var ye = Wr(p, Re, me) || pe, z = (function(j, W, U) {
|
|
1376
|
+
for (var C, D = F(F({}, W), { className: void 0, theme: U }), J = 0; J < j.length; J += 1) {
|
|
1377
|
+
var ae = de(C = j[J]) ? C(D) : C;
|
|
1378
|
+
for (var q in ae) D[q] = q === "className" ? K(D[q], ae[q]) : q === "style" ? F(F({}, D[q]), ae[q]) : ae[q];
|
|
1379
1379
|
}
|
|
1380
1380
|
return W.className && (D.className = K(D.className, W.className)), D;
|
|
1381
|
-
})(
|
|
1382
|
-
for (var f in z) z[f] === void 0 || f[0] === "$" || f === "as" || f === "theme" && z.theme ===
|
|
1383
|
-
var
|
|
1384
|
-
var U =
|
|
1385
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1386
|
-
})(
|
|
1387
|
-
process.env.NODE_ENV !== "production" && h.warnTooManyClasses && h.warnTooManyClasses(
|
|
1388
|
-
var M = K(
|
|
1389
|
-
return
|
|
1390
|
-
})(S,
|
|
1381
|
+
})(G, p, ye), i = z.as || ge, l = {};
|
|
1382
|
+
for (var f in z) z[f] === void 0 || f[0] === "$" || f === "as" || f === "theme" && z.theme === ye || (f === "forwardedAs" ? l.as = z.forwardedAs : oe && !oe(f, i) || (l[f] = z[f], oe || process.env.NODE_ENV !== "development" || kr(f) || Yt.has(f) || !nt.has(i) || (Yt.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.)')))));
|
|
1383
|
+
var T = (function(j, W) {
|
|
1384
|
+
var U = zt(), C = j.generateAndInjectStyles(W, U.styleSheet, U.stylis);
|
|
1385
|
+
return process.env.NODE_ENV !== "production" && kt(C), C;
|
|
1386
|
+
})(Ue, z);
|
|
1387
|
+
process.env.NODE_ENV !== "production" && h.warnTooManyClasses && h.warnTooManyClasses(T);
|
|
1388
|
+
var M = K(Ee, xe);
|
|
1389
|
+
return T && (M += " " + T), z.className && (M += " " + z.className), l[Ze(i) && !nt.has(i) ? "class" : "className"] = M, Y && (l.ref = Y), hr(i, l);
|
|
1390
|
+
})(S, k, _);
|
|
1391
1391
|
}
|
|
1392
|
-
|
|
1393
|
-
var S =
|
|
1394
|
-
return S.attrs = y, S.componentStyle =
|
|
1392
|
+
A.displayName = m;
|
|
1393
|
+
var S = ie.forwardRef(A);
|
|
1394
|
+
return S.attrs = y, S.componentStyle = P, S.displayName = m, S.shouldForwardProp = E, S.foldedComponentIds = n ? K(o.foldedComponentIds, o.styledComponentId) : "", S.styledComponentId = g, S.target = n ? o.target : e, Object.defineProperty(S, "defaultProps", { get: function() {
|
|
1395
1395
|
return this._foldedDefaultProps;
|
|
1396
|
-
}, set: function(
|
|
1397
|
-
this._foldedDefaultProps = n ? (function(
|
|
1396
|
+
}, set: function(k) {
|
|
1397
|
+
this._foldedDefaultProps = n ? (function(_) {
|
|
1398
1398
|
for (var h = [], p = 1; p < arguments.length; p++) h[p - 1] = arguments[p];
|
|
1399
|
-
for (var Y = 0,
|
|
1400
|
-
return
|
|
1401
|
-
})({}, o.defaultProps,
|
|
1402
|
-
} }), process.env.NODE_ENV !== "production" && (
|
|
1399
|
+
for (var Y = 0, G = h; Y < G.length; Y++) at(_, G[Y], !0);
|
|
1400
|
+
return _;
|
|
1401
|
+
})({}, o.defaultProps, k) : k;
|
|
1402
|
+
} }), process.env.NODE_ENV !== "production" && (Br(m, g), S.warnTooManyClasses = /* @__PURE__ */ (function(k, _) {
|
|
1403
1403
|
var h = {}, p = !1;
|
|
1404
1404
|
return function(Y) {
|
|
1405
1405
|
if (!p && (h[Y] = !0, Object.keys(h).length >= 200)) {
|
|
1406
|
-
var
|
|
1407
|
-
console.warn("Over ".concat(200, " classes were generated for component ").concat(
|
|
1406
|
+
var G = _ ? ' with the id of "'.concat(_, '"') : "";
|
|
1407
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(k).concat(G, `.
|
|
1408
1408
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
1409
1409
|
Example:
|
|
1410
1410
|
const Component = styled.div.attrs(props => ({
|
|
@@ -1416,75 +1416,75 @@ Example:
|
|
|
1416
1416
|
<Component />`), p = !0, h = {};
|
|
1417
1417
|
}
|
|
1418
1418
|
};
|
|
1419
|
-
})(m, g)),
|
|
1419
|
+
})(m, g)), ht(S, function() {
|
|
1420
1420
|
return ".".concat(S.styledComponentId);
|
|
1421
|
-
}), a &&
|
|
1421
|
+
}), a && sr(S, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), S;
|
|
1422
1422
|
}
|
|
1423
|
-
function
|
|
1423
|
+
function Vt(e, t) {
|
|
1424
1424
|
for (var r = [e[0]], n = 0, o = t.length; n < o; n += 1) r.push(t[n], e[n + 1]);
|
|
1425
1425
|
return r;
|
|
1426
1426
|
}
|
|
1427
|
-
var
|
|
1427
|
+
var Bt = function(e) {
|
|
1428
1428
|
return Object.assign(e, { isCss: !0 });
|
|
1429
1429
|
};
|
|
1430
|
-
function
|
|
1430
|
+
function Cn(e) {
|
|
1431
1431
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
1432
|
-
if (
|
|
1432
|
+
if (de(e) || fe(e)) return Bt(ee(Vt(He, ce([e], t, !0))));
|
|
1433
1433
|
var n = e;
|
|
1434
|
-
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? ee(n) :
|
|
1434
|
+
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? ee(n) : Bt(ee(Vt(n, t)));
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1437
|
-
if (r === void 0 && (r =
|
|
1436
|
+
function it(e, t, r) {
|
|
1437
|
+
if (r === void 0 && (r = pe), !t) throw ne(1, t);
|
|
1438
1438
|
var n = function(o) {
|
|
1439
1439
|
for (var a = [], s = 1; s < arguments.length; s++) a[s - 1] = arguments[s];
|
|
1440
|
-
return e(t, r,
|
|
1440
|
+
return e(t, r, Cn.apply(void 0, ce([o], a, !1)));
|
|
1441
1441
|
};
|
|
1442
1442
|
return n.attrs = function(o) {
|
|
1443
|
-
return
|
|
1443
|
+
return it(e, t, F(F({}, r), { attrs: Array.prototype.concat(r.attrs, o).filter(Boolean) }));
|
|
1444
1444
|
}, n.withConfig = function(o) {
|
|
1445
|
-
return
|
|
1445
|
+
return it(e, t, F(F({}, r), o));
|
|
1446
1446
|
}, n;
|
|
1447
1447
|
}
|
|
1448
|
-
var
|
|
1449
|
-
return
|
|
1450
|
-
},
|
|
1451
|
-
|
|
1452
|
-
|
|
1448
|
+
var fr = function(e) {
|
|
1449
|
+
return it(_n, e);
|
|
1450
|
+
}, Ge = fr;
|
|
1451
|
+
nt.forEach(function(e) {
|
|
1452
|
+
Ge[e] = fr(e);
|
|
1453
1453
|
});
|
|
1454
1454
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
1455
1455
|
Perhaps you're looking to import 'styled-components/native'?
|
|
1456
1456
|
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
|
|
1457
|
-
var
|
|
1458
|
-
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[
|
|
1457
|
+
var $e = "__sc-".concat(re, "__");
|
|
1458
|
+
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[$e] || (window[$e] = 0), window[$e] === 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.
|
|
1459
1459
|
|
|
1460
|
-
See https://s-c.sh/2BAXzed for more info.`), window[
|
|
1461
|
-
const
|
|
1460
|
+
See https://s-c.sh/2BAXzed for more info.`), window[$e] += 1);
|
|
1461
|
+
const $ = (e) => typeof e == "number" ? `${e / 2}rem` : e, gt = (e) => {
|
|
1462
1462
|
const { m: t, mt: r, mr: n, mb: o, ml: a, mx: s, my: c } = e;
|
|
1463
1463
|
return [
|
|
1464
|
-
t && `margin: ${
|
|
1465
|
-
r && `margin-top: ${
|
|
1466
|
-
n && `margin-right: ${
|
|
1467
|
-
o && `margin-bottom: ${
|
|
1468
|
-
a && `margin-left: ${
|
|
1469
|
-
s && `margin-left: ${
|
|
1470
|
-
s && `margin-right: ${
|
|
1471
|
-
c && `margin-top: ${
|
|
1472
|
-
c && `margin-bottom: ${
|
|
1464
|
+
t && `margin: ${$(t)};`,
|
|
1465
|
+
r && `margin-top: ${$(r)};`,
|
|
1466
|
+
n && `margin-right: ${$(n)};`,
|
|
1467
|
+
o && `margin-bottom: ${$(o)};`,
|
|
1468
|
+
a && `margin-left: ${$(a)};`,
|
|
1469
|
+
s && `margin-left: ${$(s)};`,
|
|
1470
|
+
s && `margin-right: ${$(s)};`,
|
|
1471
|
+
c && `margin-top: ${$(c)};`,
|
|
1472
|
+
c && `margin-bottom: ${$(c)};`
|
|
1473
1473
|
].filter(Boolean).join(" ");
|
|
1474
|
-
},
|
|
1474
|
+
}, yt = (e) => {
|
|
1475
1475
|
const { p: t, pt: r, pr: n, pb: o, pl: a, px: s, py: c } = e;
|
|
1476
1476
|
return [
|
|
1477
|
-
t && `padding: ${
|
|
1478
|
-
r && `padding-top: ${
|
|
1479
|
-
n && `padding-right: ${
|
|
1480
|
-
o && `padding-bottom: ${
|
|
1481
|
-
a && `padding-left: ${
|
|
1482
|
-
s && `padding-left: ${
|
|
1483
|
-
s && `padding-right: ${
|
|
1484
|
-
c && `padding-top: ${
|
|
1485
|
-
c && `padding-bottom: ${
|
|
1477
|
+
t && `padding: ${$(t)};`,
|
|
1478
|
+
r && `padding-top: ${$(r)};`,
|
|
1479
|
+
n && `padding-right: ${$(n)};`,
|
|
1480
|
+
o && `padding-bottom: ${$(o)};`,
|
|
1481
|
+
a && `padding-left: ${$(a)};`,
|
|
1482
|
+
s && `padding-left: ${$(s)};`,
|
|
1483
|
+
s && `padding-right: ${$(s)};`,
|
|
1484
|
+
c && `padding-top: ${$(c)};`,
|
|
1485
|
+
c && `padding-bottom: ${$(c)};`
|
|
1486
1486
|
].filter(Boolean).join(" ");
|
|
1487
|
-
},
|
|
1487
|
+
}, Pn = (e, t) => t === "sm" ? `${Number(e) / (8 / 7)}px` : `${e}px`, Tn = (e) => {
|
|
1488
1488
|
switch (e) {
|
|
1489
1489
|
case "regular":
|
|
1490
1490
|
return "400";
|
|
@@ -1497,25 +1497,25 @@ const N = (e) => typeof e == "number" ? `${e / 2}rem` : e, ur = (e) => {
|
|
|
1497
1497
|
default:
|
|
1498
1498
|
return "400";
|
|
1499
1499
|
}
|
|
1500
|
-
},
|
|
1500
|
+
}, $n = Ge.p`
|
|
1501
1501
|
font-family: ${({ theme: e }) => e.text.fontFamily};
|
|
1502
1502
|
margin: 0;
|
|
1503
1503
|
color: ${({ color: e }) => e};
|
|
1504
|
-
${({ m: e, mb: t, ml: r, mr: n, mt: o, mx: a, my: s }) =>
|
|
1505
|
-
${({ p: e, pb: t, pl: r, pr: n, pt: o, px: a, py: s }) =>
|
|
1506
|
-
font-weight: ${({ weight: e }) =>
|
|
1507
|
-
font-size: ${({ size: e, breakpoint: t }) => e &&
|
|
1504
|
+
${({ m: e, mb: t, ml: r, mr: n, mt: o, mx: a, my: s }) => gt({ m: e, mb: t, ml: r, mr: n, mt: o, mx: a, my: s })};
|
|
1505
|
+
${({ p: e, pb: t, pl: r, pr: n, pt: o, px: a, py: s }) => yt({ p: e, pb: t, pl: r, pr: n, pt: o, px: a, py: s })};
|
|
1506
|
+
font-weight: ${({ weight: e }) => Tn(e)};
|
|
1507
|
+
font-size: ${({ size: e, breakpoint: t }) => e && Pn(e, t)};
|
|
1508
1508
|
width: ${({ width: e }) => e};
|
|
1509
1509
|
height: ${({ height: e }) => e};
|
|
1510
1510
|
text-align: ${({ align: e }) => e};
|
|
1511
|
-
`,
|
|
1511
|
+
`, vt = ut(
|
|
1512
1512
|
({ children: e, ...t }, r) => {
|
|
1513
|
-
const { breakpoint: n } =
|
|
1514
|
-
return /* @__PURE__ */
|
|
1513
|
+
const { breakpoint: n } = br();
|
|
1514
|
+
return /* @__PURE__ */ te.jsx($n, { ref: r, ...t, breakpoint: n, children: e });
|
|
1515
1515
|
}
|
|
1516
1516
|
);
|
|
1517
|
-
|
|
1518
|
-
const
|
|
1517
|
+
vt.displayName = "Text";
|
|
1518
|
+
const we = ({
|
|
1519
1519
|
color: e,
|
|
1520
1520
|
theme: t
|
|
1521
1521
|
}) => ({
|
|
@@ -1552,7 +1552,7 @@ const be = ({
|
|
|
1552
1552
|
backgroundColor: `${t.palette[e].main}22`
|
|
1553
1553
|
}
|
|
1554
1554
|
}
|
|
1555
|
-
}),
|
|
1555
|
+
}), bt = {
|
|
1556
1556
|
sm: {
|
|
1557
1557
|
padding: "4px 0.75rem",
|
|
1558
1558
|
fontSize: "12"
|
|
@@ -1565,23 +1565,23 @@ const be = ({
|
|
|
1565
1565
|
padding: "8px 1.5rem",
|
|
1566
1566
|
fontSize: "16"
|
|
1567
1567
|
}
|
|
1568
|
-
},
|
|
1568
|
+
}, Nn = Ge.button`
|
|
1569
1569
|
all: unset;
|
|
1570
1570
|
cursor: ${({ disabled: e }) => e ? "default" : "pointer"};
|
|
1571
|
-
padding: ${({ size: e }) =>
|
|
1571
|
+
padding: ${({ size: e }) => bt[e ?? "md"].padding};
|
|
1572
1572
|
display: flex;
|
|
1573
1573
|
align-items: center;
|
|
1574
1574
|
height: fit-content;
|
|
1575
|
-
gap: ${({ gap: e }) => e ?
|
|
1575
|
+
gap: ${({ gap: e }) => e ? $(e) : "8px"};
|
|
1576
1576
|
transition: all 0.25s ease;
|
|
1577
|
-
background-color: ${({ bgcolor: e, variant: t, color: r, theme: n }) => e ??
|
|
1578
|
-
border: ${({ variant: e, color: t, theme: r }) =>
|
|
1577
|
+
background-color: ${({ bgcolor: e, variant: t, color: r, theme: n }) => e ?? we({ color: r, theme: n })[t].bgColor};
|
|
1578
|
+
border: ${({ variant: e, color: t, theme: r }) => we({ color: t, theme: r })[e].border};
|
|
1579
1579
|
border-radius: ${({ theme: e }) => e.radius};
|
|
1580
|
-
${({ m: e, mb: t, ml: r, mr: n, mt: o, mx: a, my: s }) =>
|
|
1581
|
-
${({ p: e, pb: t, pl: r, pr: n, pt: o, px: a, py: s }) =>
|
|
1580
|
+
${({ m: e, mb: t, ml: r, mr: n, mt: o, mx: a, my: s }) => gt({ m: e, mb: t, ml: r, mr: n, mt: o, mx: a, my: s })};
|
|
1581
|
+
${({ p: e, pb: t, pl: r, pr: n, pt: o, px: a, py: s }) => yt({ p: e, pb: t, pl: r, pr: n, pt: o, px: a, py: s })};
|
|
1582
1582
|
opacity: ${({ disabled: e }) => e ? 0.6 : 1};
|
|
1583
1583
|
position: relative;
|
|
1584
|
-
color: ${({ txtColor: e, color: t, variant: r, theme: n }) => e ??
|
|
1584
|
+
color: ${({ txtColor: e, color: t, variant: r, theme: n }) => e ?? we({ color: t, theme: n })[r].color};
|
|
1585
1585
|
|
|
1586
1586
|
p,
|
|
1587
1587
|
h1,
|
|
@@ -1594,40 +1594,118 @@ const be = ({
|
|
|
1594
1594
|
}
|
|
1595
1595
|
|
|
1596
1596
|
&:hover {
|
|
1597
|
-
${({ variant: e, color: t, theme: r }) =>
|
|
1597
|
+
${({ variant: e, color: t, theme: r }) => we({ color: t, theme: r })[e].onHover}
|
|
1598
1598
|
opacity: ${({ disabled: e }) => e && 0.6};
|
|
1599
1599
|
}
|
|
1600
1600
|
|
|
1601
1601
|
&:active {
|
|
1602
|
-
${({ variant: e, color: t, theme: r }) =>
|
|
1602
|
+
${({ variant: e, color: t, theme: r }) => we({ color: t, theme: r })[e].onActive}
|
|
1603
1603
|
}
|
|
1604
|
-
`,
|
|
1604
|
+
`, On = ut(
|
|
1605
1605
|
({ label: e, startIcon: t, endIcon: r, ...n }, o) => {
|
|
1606
|
-
const a =
|
|
1606
|
+
const a = ct(() => ({
|
|
1607
1607
|
...{
|
|
1608
1608
|
size: "sm"
|
|
1609
1609
|
},
|
|
1610
1610
|
...n
|
|
1611
1611
|
}), [n]);
|
|
1612
|
-
return /* @__PURE__ */
|
|
1613
|
-
|
|
1612
|
+
return /* @__PURE__ */ te.jsxs(
|
|
1613
|
+
Nn,
|
|
1614
1614
|
{
|
|
1615
1615
|
ref: o,
|
|
1616
1616
|
...a,
|
|
1617
1617
|
disabled: n.loading || n.disabled,
|
|
1618
1618
|
children: [
|
|
1619
1619
|
t,
|
|
1620
|
-
/* @__PURE__ */
|
|
1620
|
+
/* @__PURE__ */ te.jsx(vt, { size: bt[a.size ?? "sm"].fontSize, children: e }),
|
|
1621
1621
|
r
|
|
1622
1622
|
]
|
|
1623
1623
|
}
|
|
1624
1624
|
);
|
|
1625
1625
|
}
|
|
1626
1626
|
);
|
|
1627
|
-
|
|
1628
|
-
const
|
|
1629
|
-
|
|
1630
|
-
|
|
1627
|
+
On.displayName = "Button";
|
|
1628
|
+
const Qe = ({
|
|
1629
|
+
color: e,
|
|
1630
|
+
theme: t
|
|
1631
|
+
}) => ({
|
|
1632
|
+
contained: {
|
|
1633
|
+
bgColor: t.palette[e].main,
|
|
1634
|
+
color: "#FFFFFF",
|
|
1635
|
+
onHover: {
|
|
1636
|
+
opacity: 0.75
|
|
1637
|
+
},
|
|
1638
|
+
onActive: {
|
|
1639
|
+
transform: "scale(0.95)"
|
|
1640
|
+
}
|
|
1641
|
+
},
|
|
1642
|
+
outlined: {
|
|
1643
|
+
bgColor: "#FFFFFF",
|
|
1644
|
+
border: `2px solid ${t.palette[e].main}`,
|
|
1645
|
+
color: t.palette[e].main,
|
|
1646
|
+
onHover: {
|
|
1647
|
+
opacity: 0.75
|
|
1648
|
+
},
|
|
1649
|
+
onActive: {
|
|
1650
|
+
transform: "scale(0.95)"
|
|
1651
|
+
}
|
|
1652
|
+
},
|
|
1653
|
+
text: {
|
|
1654
|
+
bgColor: "transparent",
|
|
1655
|
+
color: t.palette[e].main,
|
|
1656
|
+
onActive: {
|
|
1657
|
+
transform: "scale(0.95)"
|
|
1658
|
+
},
|
|
1659
|
+
onHover: {
|
|
1660
|
+
backgroundColor: `${t.palette[e].main}22`
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
}), In = {
|
|
1664
|
+
sm: {
|
|
1665
|
+
padding: "4px 0.25rem"
|
|
1666
|
+
},
|
|
1667
|
+
md: {
|
|
1668
|
+
padding: "6px 0.5rem"
|
|
1669
|
+
},
|
|
1670
|
+
lg: {
|
|
1671
|
+
padding: "8px 1rem"
|
|
1672
|
+
}
|
|
1673
|
+
}, jn = Ge.div`
|
|
1674
|
+
all: unset;
|
|
1675
|
+
padding: ${({ size: e }) => In[e ?? "md"].padding};
|
|
1676
|
+
display: flex;
|
|
1677
|
+
align-items: center;
|
|
1678
|
+
gap: ${({ gap: e }) => e ? $(e) : "0px"};
|
|
1679
|
+
transition: all 0.25s ease;
|
|
1680
|
+
width: fit-content;
|
|
1681
|
+
height: fit-content;
|
|
1682
|
+
background-color: ${({ bgcolor: e, variant: t, color: r, theme: n }) => e ?? Qe({ color: r, theme: n })[t].bgColor};
|
|
1683
|
+
border: ${({ variant: e, color: t, theme: r }) => Qe({ color: t, theme: r })[e].border};
|
|
1684
|
+
border-radius: ${({ bRadius: e, theme: t }) => e ?? t.radius};
|
|
1685
|
+
${({ m: e, mb: t, ml: r, mr: n, mt: o, mx: a, my: s }) => gt({ m: e, mb: t, ml: r, mr: n, mt: o, mx: a, my: s })};
|
|
1686
|
+
${({ p: e, pb: t, pl: r, pr: n, pt: o, px: a, py: s }) => yt({ p: e, pb: t, pl: r, pr: n, pt: o, px: a, py: s })};
|
|
1687
|
+
opacity: ${({ disabled: e }) => e ? 0.6 : 1};
|
|
1688
|
+
position: relative;
|
|
1689
|
+
color: ${({ fontColor: e, color: t, variant: r, theme: n }) => e ?? Qe({ color: t, theme: n })[r].color};
|
|
1690
|
+
`, Dn = ut(
|
|
1691
|
+
({ label: e, startIcon: t, endIcon: r, ...n }, o) => {
|
|
1692
|
+
const a = ct(() => ({
|
|
1693
|
+
...{
|
|
1694
|
+
size: "sm"
|
|
1695
|
+
},
|
|
1696
|
+
...n
|
|
1697
|
+
}), [n]);
|
|
1698
|
+
return /* @__PURE__ */ te.jsxs(jn, { ref: o, ...a, children: [
|
|
1699
|
+
t,
|
|
1700
|
+
/* @__PURE__ */ te.jsx(vt, { size: bt[a.size].fontSize, mx: 0.75, children: e }),
|
|
1701
|
+
r
|
|
1702
|
+
] });
|
|
1703
|
+
}
|
|
1704
|
+
);
|
|
1705
|
+
Dn.displayName = "Chip";
|
|
1706
|
+
const zn = ({ color: e, value: t, height: r }) => {
|
|
1707
|
+
const n = An();
|
|
1708
|
+
return /* @__PURE__ */ te.jsx(
|
|
1631
1709
|
"div",
|
|
1632
1710
|
{
|
|
1633
1711
|
style: {
|
|
@@ -1638,7 +1716,7 @@ const In = ({ color: e, value: t, height: r }) => {
|
|
|
1638
1716
|
height: r ?? "8px",
|
|
1639
1717
|
border: `2px solid ${n.palette[e].light}`
|
|
1640
1718
|
},
|
|
1641
|
-
children: /* @__PURE__ */
|
|
1719
|
+
children: /* @__PURE__ */ te.jsx(
|
|
1642
1720
|
"div",
|
|
1643
1721
|
{
|
|
1644
1722
|
style: {
|
|
@@ -1656,6 +1734,7 @@ const In = ({ color: e, value: t, height: r }) => {
|
|
|
1656
1734
|
);
|
|
1657
1735
|
};
|
|
1658
1736
|
export {
|
|
1659
|
-
|
|
1660
|
-
|
|
1737
|
+
On as Button,
|
|
1738
|
+
Dn as Chip,
|
|
1739
|
+
zn as ProgressBar
|
|
1661
1740
|
};
|