@semiont/react-ui 0.5.8 → 0.5.9

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.
@@ -4,1429 +4,8 @@ import {
4
4
  } from "../chunk-QT7LYM72.js";
5
5
  import "../chunk-YBGN4ACY.js";
6
6
 
7
- // ../../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
8
- function memoize(fn) {
9
- var cache = /* @__PURE__ */ Object.create(null);
10
- return function(arg) {
11
- if (cache[arg] === void 0) cache[arg] = fn(arg);
12
- return cache[arg];
13
- };
14
- }
15
-
16
- // ../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
17
- var reactPropsRegex = /^((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|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/;
18
- var isPropValid = /* @__PURE__ */ memoize(
19
- function(prop) {
20
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
21
- }
22
- /* Z+1 */
23
- );
24
-
25
- // ../../node_modules/styled-components/dist/styled-components.esm.js
26
- import t, { createElement as n } from "react";
27
-
28
- // ../../node_modules/stylis/src/Enum.js
29
- var MS = "-ms-";
30
- var MOZ = "-moz-";
31
- var WEBKIT = "-webkit-";
32
- var COMMENT = "comm";
33
- var RULESET = "rule";
34
- var DECLARATION = "decl";
35
- var IMPORT = "@import";
36
- var NAMESPACE = "@namespace";
37
- var KEYFRAMES = "@keyframes";
38
- var LAYER = "@layer";
39
-
40
- // ../../node_modules/stylis/src/Utility.js
41
- var abs = Math.abs;
42
- var from = String.fromCharCode;
43
- var assign = Object.assign;
44
- function hash(value, length2) {
45
- return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
46
- }
47
- function trim(value) {
48
- return value.trim();
49
- }
50
- function match(value, pattern) {
51
- return (value = pattern.exec(value)) ? value[0] : value;
52
- }
53
- function replace(value, pattern, replacement) {
54
- return value.replace(pattern, replacement);
55
- }
56
- function indexof(value, search, position2) {
57
- return value.indexOf(search, position2);
58
- }
59
- function charat(value, index) {
60
- return value.charCodeAt(index) | 0;
61
- }
62
- function substr(value, begin, end) {
63
- return value.slice(begin, end);
64
- }
65
- function strlen(value) {
66
- return value.length;
67
- }
68
- function sizeof(value) {
69
- return value.length;
70
- }
71
- function append(value, array) {
72
- return array.push(value), value;
73
- }
74
- function combine(array, callback) {
75
- return array.map(callback).join("");
76
- }
77
- function filter(array, pattern) {
78
- return array.filter(function(value) {
79
- return !match(value, pattern);
80
- });
81
- }
82
-
83
- // ../../node_modules/stylis/src/Tokenizer.js
84
- var line = 1;
85
- var column = 1;
86
- var length = 0;
87
- var position = 0;
88
- var character = 0;
89
- var characters = "";
90
- function node(value, root, parent, type, props, children, length2, siblings) {
91
- return { value, root, parent, type, props, children, line, column, length: length2, return: "", siblings };
92
- }
93
- function copy(root, props) {
94
- return assign(node("", null, null, "", null, null, 0, root.siblings), root, { length: -root.length }, props);
95
- }
96
- function lift(root) {
97
- while (root.root)
98
- root = copy(root.root, { children: [root] });
99
- append(root, root.siblings);
100
- }
101
- function char() {
102
- return character;
103
- }
104
- function prev() {
105
- character = position > 0 ? charat(characters, --position) : 0;
106
- if (column--, character === 10)
107
- column = 1, line--;
108
- return character;
109
- }
110
- function next() {
111
- character = position < length ? charat(characters, position++) : 0;
112
- if (column++, character === 10)
113
- column = 1, line++;
114
- return character;
115
- }
116
- function peek() {
117
- return charat(characters, position);
118
- }
119
- function caret() {
120
- return position;
121
- }
122
- function slice(begin, end) {
123
- return substr(characters, begin, end);
124
- }
125
- function token(type) {
126
- switch (type) {
127
- // \0 \t \n \r \s whitespace token
128
- case 0:
129
- case 9:
130
- case 10:
131
- case 13:
132
- case 32:
133
- return 5;
134
- // ! + , / > @ ~ isolate token
135
- case 33:
136
- case 43:
137
- case 44:
138
- case 47:
139
- case 62:
140
- case 64:
141
- case 126:
142
- // ; { } breakpoint token
143
- case 59:
144
- case 123:
145
- case 125:
146
- return 4;
147
- // : accompanied token
148
- case 58:
149
- return 3;
150
- // " ' ( [ opening delimit token
151
- case 34:
152
- case 39:
153
- case 40:
154
- case 91:
155
- return 2;
156
- // ) ] closing delimit token
157
- case 41:
158
- case 93:
159
- return 1;
160
- }
161
- return 0;
162
- }
163
- function alloc(value) {
164
- return line = column = 1, length = strlen(characters = value), position = 0, [];
165
- }
166
- function dealloc(value) {
167
- return characters = "", value;
168
- }
169
- function delimit(type) {
170
- return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
171
- }
172
- function whitespace(type) {
173
- while (character = peek())
174
- if (character < 33)
175
- next();
176
- else
177
- break;
178
- return token(type) > 2 || token(character) > 3 ? "" : " ";
179
- }
180
- function escaping(index, count) {
181
- while (--count && next())
182
- if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
183
- break;
184
- return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
185
- }
186
- function delimiter(type) {
187
- while (next())
188
- switch (character) {
189
- // ] ) " '
190
- case type:
191
- return position;
192
- // " '
193
- case 34:
194
- case 39:
195
- if (type !== 34 && type !== 39)
196
- delimiter(character);
197
- break;
198
- // (
199
- case 40:
200
- if (type === 41)
201
- delimiter(type);
202
- break;
203
- // \
204
- case 92:
205
- next();
206
- break;
207
- }
208
- return position;
209
- }
210
- function commenter(type, index) {
211
- while (next())
212
- if (type + character === 47 + 10)
213
- break;
214
- else if (type + character === 42 + 42 && peek() === 47)
215
- break;
216
- return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
217
- }
218
- function identifier(index) {
219
- while (!token(peek()))
220
- next();
221
- return slice(index, position);
222
- }
223
-
224
- // ../../node_modules/stylis/src/Parser.js
225
- function compile(value) {
226
- return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
227
- }
228
- function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
229
- var index = 0;
230
- var offset = 0;
231
- var length2 = pseudo;
232
- var atrule = 0;
233
- var property = 0;
234
- var previous = 0;
235
- var variable = 1;
236
- var scanning = 1;
237
- var ampersand = 1;
238
- var character2 = 0;
239
- var type = "";
240
- var props = rules;
241
- var children = rulesets;
242
- var reference = rule;
243
- var characters2 = type;
244
- while (scanning)
245
- switch (previous = character2, character2 = next()) {
246
- // (
247
- case 40:
248
- if (previous != 108 && charat(characters2, length2 - 1) == 58) {
249
- if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f", abs(index ? points[index - 1] : 0)) != -1)
250
- ampersand = -1;
251
- break;
252
- }
253
- // " ' [
254
- case 34:
255
- case 39:
256
- case 91:
257
- characters2 += delimit(character2);
258
- break;
259
- // \t \n \r \s
260
- case 9:
261
- case 10:
262
- case 13:
263
- case 32:
264
- characters2 += whitespace(previous);
265
- break;
266
- // \
267
- case 92:
268
- characters2 += escaping(caret() - 1, 7);
269
- continue;
270
- // /
271
- case 47:
272
- switch (peek()) {
273
- case 42:
274
- case 47:
275
- append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
276
- if ((token(previous || 1) == 5 || token(peek() || 1) == 5) && strlen(characters2) && substr(characters2, -1, void 0) !== " ") characters2 += " ";
277
- break;
278
- default:
279
- characters2 += "/";
280
- }
281
- break;
282
- // {
283
- case 123 * variable:
284
- points[index++] = strlen(characters2) * ampersand;
285
- // } ; \0
286
- case 125 * variable:
287
- case 59:
288
- case 0:
289
- switch (character2) {
290
- // \0 }
291
- case 0:
292
- case 125:
293
- scanning = 0;
294
- // ;
295
- case 59 + offset:
296
- if (ampersand == -1) characters2 = replace(characters2, /\f/g, "");
297
- if (property > 0 && (strlen(characters2) - length2 || variable === 0 && previous === 47))
298
- append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1, declarations) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2, declarations), declarations);
299
- break;
300
- // @ ;
301
- case 59:
302
- characters2 += ";";
303
- // { rule/at-rule
304
- default:
305
- append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2, rulesets), rulesets);
306
- if (character2 === 123)
307
- if (offset === 0)
308
- parse(characters2, root, reference, reference, props, rulesets, length2, points, children);
309
- else {
310
- switch (atrule) {
311
- // c(ontainer)
312
- case 99:
313
- if (charat(characters2, 3) === 110) break;
314
- // l(ayer)
315
- case 108:
316
- if (charat(characters2, 2) === 97) break;
317
- default:
318
- offset = 0;
319
- // d(ocument) m(edia) s(upports)
320
- case 100:
321
- case 109:
322
- case 115:
323
- }
324
- if (offset) parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2, children), children), rules, children, length2, points, rule ? props : children);
325
- else parse(characters2, reference, reference, reference, [""], children, 0, points, children);
326
- }
327
- }
328
- index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
329
- break;
330
- // :
331
- case 58:
332
- length2 = 1 + strlen(characters2), property = previous;
333
- default:
334
- if (variable < 1) {
335
- if (character2 == 123)
336
- --variable;
337
- else if (character2 == 125 && variable++ == 0 && prev() == 125)
338
- continue;
339
- }
340
- switch (characters2 += from(character2), character2 * variable) {
341
- // &
342
- case 38:
343
- ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
344
- break;
345
- // ,
346
- case 44:
347
- points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
348
- break;
349
- // @
350
- case 64:
351
- if (peek() === 45)
352
- characters2 += delimit(next());
353
- atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
354
- break;
355
- // -
356
- case 45:
357
- if (previous === 45 && strlen(characters2) == 2)
358
- variable = 0;
359
- }
360
- }
361
- return rulesets;
362
- }
363
- function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length2, siblings) {
364
- var post = offset - 1;
365
- var rule = offset === 0 ? rules : [""];
366
- var size = sizeof(rule);
367
- for (var i2 = 0, j2 = 0, k2 = 0; i2 < index; ++i2)
368
- for (var x2 = 0, y = substr(value, post + 1, post = abs(j2 = points[i2])), z2 = value; x2 < size; ++x2)
369
- if (z2 = trim(j2 > 0 ? rule[x2] + " " + y : replace(y, /&\f/g, rule[x2])))
370
- props[k2++] = z2;
371
- return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2, siblings);
372
- }
373
- function comment(value, root, parent, siblings) {
374
- return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings);
375
- }
376
- function declaration(value, root, parent, length2, siblings) {
377
- return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2, siblings);
378
- }
379
-
380
- // ../../node_modules/stylis/src/Prefixer.js
381
- function prefix(value, length2, children) {
382
- switch (hash(value, length2)) {
383
- // color-adjust
384
- case 5103:
385
- return WEBKIT + "print-" + value + value;
386
- // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
387
- case 5737:
388
- case 4201:
389
- case 3177:
390
- case 3433:
391
- case 1641:
392
- case 4457:
393
- case 2921:
394
- // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
395
- case 5572:
396
- case 6356:
397
- case 5844:
398
- case 3191:
399
- case 6645:
400
- case 3005:
401
- // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
402
- case 4215:
403
- case 6389:
404
- case 5109:
405
- case 5365:
406
- case 5621:
407
- case 3829:
408
- // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position
409
- case 6391:
410
- case 5879:
411
- case 5623:
412
- case 6135:
413
- case 4599:
414
- return WEBKIT + value + value;
415
- // mask-composite
416
- case 4855:
417
- return WEBKIT + value.replace("add", "source-over").replace("substract", "source-out").replace("intersect", "source-in").replace("exclude", "xor") + value;
418
- // tab-size
419
- case 4789:
420
- return MOZ + value + value;
421
- // appearance, user-select, transform, hyphens, text-size-adjust
422
- case 5349:
423
- case 4246:
424
- case 4810:
425
- case 6968:
426
- case 2756:
427
- return WEBKIT + value + MOZ + value + MS + value + value;
428
- // writing-mode
429
- case 5936:
430
- switch (charat(value, length2 + 11)) {
431
- // vertical-l(r)
432
- case 114:
433
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
434
- // vertical-r(l)
435
- case 108:
436
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
437
- // horizontal(-)tb
438
- case 45:
439
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
440
- }
441
- // flex, flex-direction, scroll-snap-type, writing-mode
442
- case 6828:
443
- case 4268:
444
- case 2903:
445
- return WEBKIT + value + MS + value + value;
446
- // order
447
- case 6165:
448
- return WEBKIT + value + MS + "flex-" + value + value;
449
- // align-items
450
- case 5187:
451
- return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
452
- // align-self
453
- case 5443:
454
- return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/g, "") + (!match(value, /flex-|baseline/) ? MS + "grid-row-" + replace(value, /flex-|-self/g, "") : "") + value;
455
- // align-content
456
- case 4675:
457
- return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/g, "") + value;
458
- // flex-shrink
459
- case 5548:
460
- return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
461
- // flex-basis
462
- case 5292:
463
- return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
464
- // flex-grow
465
- case 6060:
466
- return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
467
- // transition
468
- case 4554:
469
- return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
470
- // cursor
471
- case 6187:
472
- return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
473
- // background, background-image
474
- case 5495:
475
- case 3959:
476
- return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
477
- // justify-content
478
- case 4968:
479
- return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /space-between/, "justify") + WEBKIT + value + value;
480
- // justify-self
481
- case 4200:
482
- if (!match(value, /flex-|baseline/)) return MS + "grid-column-align" + substr(value, length2) + value;
483
- break;
484
- // grid-template-(columns|rows)
485
- case 2592:
486
- case 3360:
487
- return MS + replace(value, "template-", "") + value;
488
- // grid-(row|column)-start
489
- case 4384:
490
- case 3616:
491
- if (children && children.some(function(element, index) {
492
- return length2 = index, match(element.props, /grid-\w+-end/);
493
- })) {
494
- return ~indexof(value + (children = children[length2].value), "span", 0) ? value : MS + replace(value, "-start", "") + value + MS + "grid-row-span:" + (~indexof(children, "span", 0) ? match(children, /\d+/) : +match(children, /\d+/) - +match(value, /\d+/)) + ";";
495
- }
496
- return MS + replace(value, "-start", "") + value;
497
- // grid-(row|column)-end
498
- case 4896:
499
- case 4128:
500
- return children && children.some(function(element) {
501
- return match(element.props, /grid-\w+-start/);
502
- }) ? value : MS + replace(replace(value, "-end", "-span"), "span ", "") + value;
503
- // (margin|padding)-inline-(start|end)
504
- case 4095:
505
- case 3583:
506
- case 4068:
507
- case 2532:
508
- return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
509
- // (min|max)?(width|height|inline-size|block-size)
510
- case 8116:
511
- case 7059:
512
- case 5753:
513
- case 5535:
514
- case 5445:
515
- case 5701:
516
- case 4933:
517
- case 4677:
518
- case 5533:
519
- case 5789:
520
- case 5021:
521
- case 4765:
522
- if (strlen(value) - 1 - length2 > 6)
523
- switch (charat(value, length2 + 1)) {
524
- // (m)ax-content, (m)in-content
525
- case 109:
526
- if (charat(value, length2 + 4) !== 45)
527
- break;
528
- // (f)ill-available, (f)it-content
529
- case 102:
530
- return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
531
- // (s)tretch
532
- case 115:
533
- return ~indexof(value, "stretch", 0) ? prefix(replace(value, "stretch", "fill-available"), length2, children) + value : value;
534
- }
535
- break;
536
- // grid-(column|row)
537
- case 5152:
538
- case 5920:
539
- return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(_2, a2, b2, c2, d2, e, f2) {
540
- return MS + a2 + ":" + b2 + f2 + (c2 ? MS + a2 + "-span:" + (d2 ? e : +e - +b2) + f2 : "") + value;
541
- });
542
- // position: sticky
543
- case 4949:
544
- if (charat(value, length2 + 6) === 121)
545
- return replace(value, ":", ":" + WEBKIT) + value;
546
- break;
547
- // display: (flex|inline-flex|grid|inline-grid)
548
- case 6444:
549
- switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
550
- // (inline-)?fle(x)
551
- case 120:
552
- return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
553
- // (inline-)?gri(d)
554
- case 100:
555
- return replace(value, ":", ":" + MS) + value;
556
- }
557
- break;
558
- // scroll-margin, scroll-margin-(top|right|bottom|left)
559
- case 5719:
560
- case 2647:
561
- case 2135:
562
- case 3927:
563
- case 2391:
564
- return replace(value, "scroll-", "scroll-snap-") + value;
565
- }
566
- return value;
567
- }
568
-
569
- // ../../node_modules/stylis/src/Serializer.js
570
- function serialize(children, callback) {
571
- var output = "";
572
- for (var i2 = 0; i2 < children.length; i2++)
573
- output += callback(children[i2], i2, children, callback) || "";
574
- return output;
575
- }
576
- function stringify(element, index, children, callback) {
577
- switch (element.type) {
578
- case LAYER:
579
- if (element.children.length) break;
580
- case IMPORT:
581
- case NAMESPACE:
582
- case DECLARATION:
583
- return element.return = element.return || element.value;
584
- case COMMENT:
585
- return "";
586
- case KEYFRAMES:
587
- return element.return = element.value + "{" + serialize(element.children, callback) + "}";
588
- case RULESET:
589
- if (!strlen(element.value = element.props.join(","))) return "";
590
- }
591
- return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
592
- }
593
-
594
- // ../../node_modules/stylis/src/Middleware.js
595
- function middleware(collection) {
596
- var length2 = sizeof(collection);
597
- return function(element, index, children, callback) {
598
- var output = "";
599
- for (var i2 = 0; i2 < length2; i2++)
600
- output += collection[i2](element, index, children, callback) || "";
601
- return output;
602
- };
603
- }
604
- function rulesheet(callback) {
605
- return function(element) {
606
- if (!element.root) {
607
- if (element = element.return)
608
- callback(element);
609
- }
610
- };
611
- }
612
- function prefixer(element, index, children, callback) {
613
- if (element.length > -1) {
614
- if (!element.return)
615
- switch (element.type) {
616
- case DECLARATION:
617
- element.return = prefix(element.value, element.length, children);
618
- return;
619
- case KEYFRAMES:
620
- return serialize([copy(element, { value: replace(element.value, "@", "@" + WEBKIT) })], callback);
621
- case RULESET:
622
- if (element.length)
623
- return combine(children = element.props, function(value) {
624
- switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
625
- // :read-(only|write)
626
- case ":read-only":
627
- case ":read-write":
628
- lift(copy(element, { props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")] }));
629
- lift(copy(element, { props: [value] }));
630
- assign(element, { props: filter(children, callback) });
631
- break;
632
- // :placeholder
633
- case "::placeholder":
634
- lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")] }));
635
- lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")] }));
636
- lift(copy(element, { props: [replace(value, /:(plac\w+)/, MS + "input-$1")] }));
637
- lift(copy(element, { props: [value] }));
638
- assign(element, { props: filter(children, callback) });
639
- break;
640
- }
641
- return "";
642
- });
643
- }
644
- }
645
- }
646
-
647
- // ../../node_modules/styled-components/dist/styled-components.esm.js
648
- var r;
649
- var i;
650
- var l = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
651
- var c = "active";
652
- var a = "data-styled-version";
653
- var u = "6.4.2";
654
- var d = "/*!sc*/\n";
655
- var h = "undefined" != typeof window && "undefined" != typeof document;
656
- var p = void 0 === t.createContext;
657
- function f(e) {
658
- if ("undefined" != typeof process && void 0 !== process.env) {
659
- const t2 = process.env[e];
660
- if (void 0 !== t2 && "" !== t2) return "false" !== t2;
661
- }
662
- }
663
- var m = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : null !== (i = null !== (r = f("REACT_APP_SC_DISABLE_SPEEDY")) && void 0 !== r ? r : f("SC_DISABLE_SPEEDY")) && void 0 !== i ? i : "undefined" != typeof process && void 0 !== process.env && "production" !== process.env.NODE_ENV);
664
- var g = "sc-keyframes-";
665
- var v = "production" !== process.env.NODE_ENV ? { 1: "Cannot create styled-component for component: %s.\n\n", 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.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n", 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n", 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n", 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n", 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n", 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n', 9: "Missing document `<head>`\n\n", 10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n", 11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n", 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://styled-components.com/docs/api#css\n\n", 13: "%s is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n", 14: 'ThemeProvider: "theme" prop is required.\n\n', 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n", 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n\n", 18: "Accessing `useTheme` hook outside of a `<ThemeProvider>` element.\n\n```jsx\nimport { useTheme } from 'styled-components';\nexport function StyledCompoent({ children }) {\n const theme = useTheme();\n return <div style={{ width: theme.sizes.full }}>{children}</div>;\n}\n\nimport { StyledComponent } from './StyledComponent';\nimport { theme } from './theme';\nexport function App() {\n return (\n <ThemeProvider theme={theme}>\n <StyledComponent />\n </ThemeProvider>\n );\n}\n```\n\nIf you need access to the theme in an uncertain composition scenario, `React.useContext(ThemeContext)` will not emit an error if there is no `ThemeProvider` ancestor.\n" } : {};
666
- function S(e, ...t2) {
667
- return "production" === process.env.NODE_ENV ? new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t2.length > 0 ? ` Args: ${t2.join(", ")}` : ""}`) : new Error((function(...e2) {
668
- let t3 = e2[0];
669
- const n2 = [];
670
- for (let t4 = 1, o = e2.length; t4 < o; t4 += 1) n2.push(e2[t4]);
671
- return n2.forEach((e3) => {
672
- t3 = t3.replace(/%[a-z]/, e3);
673
- }), t3;
674
- })(v[e], ...t2).trim());
675
- }
676
- var b = 1 << 30;
677
- var w = /* @__PURE__ */ new Map();
678
- var N = /* @__PURE__ */ new Map();
679
- var C = 1;
680
- var P = (e) => {
681
- if (w.has(e)) return w.get(e);
682
- for (; N.has(C); ) C++;
683
- const t2 = C++;
684
- if ("production" !== process.env.NODE_ENV && ((0 | t2) < 0 || t2 > b)) throw S(16, `${t2}`);
685
- return w.set(e, t2), N.set(t2, e), t2;
686
- };
687
- var O = (e) => N.get(e);
688
- var E = (e, t2) => {
689
- C = t2 + 1, w.set(e, t2), N.set(t2, e);
690
- };
691
- var I = /invalid hook call/i;
692
- var A = /* @__PURE__ */ new Set();
693
- var _ = (e, n2) => {
694
- if ("production" !== process.env.NODE_ENV) {
695
- if (p) return;
696
- const o = `The component ${e}${n2 ? ` with the id of "${n2}"` : ""} has been created dynamically.
697
- You may see this warning because you've called styled inside another component.
698
- To resolve this only create new StyledComponents outside of any render method and function component.
699
- See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
700
- `, s = console.error;
701
- try {
702
- let e2 = true;
703
- console.error = (t2, ...n3) => {
704
- I.test(t2) ? (e2 = false, A.delete(o)) : s(t2, ...n3);
705
- }, "function" == typeof t.useState && t.useState(null), e2 && !A.has(o) && (console.warn(o), A.add(o));
706
- } catch (e2) {
707
- I.test(e2.message) && A.delete(o);
708
- } finally {
709
- console.error = s;
710
- }
711
- }
712
- };
713
- var x = Object.freeze([]);
714
- var $ = Object.freeze({});
715
- function R(e, t2, n2 = $) {
716
- return e.theme !== n2.theme && e.theme || t2 || n2.theme;
717
- }
718
- var j = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g;
719
- var k = /(^-|-$)/g;
720
- function T(e) {
721
- return e.replace(j, "-").replace(k, "");
722
- }
723
- var D = /(a)(d)/gi;
724
- var M = (e) => String.fromCharCode(e + (e > 25 ? 39 : 97));
725
- function V(e) {
726
- let t2, n2 = "";
727
- for (t2 = Math.abs(e); t2 > 52; t2 = t2 / 52 | 0) n2 = M(t2 % 52) + n2;
728
- return (M(t2 % 52) + n2).replace(D, "$1-$2");
729
- }
730
- var G = 5381;
731
- var F = (e, t2) => {
732
- let n2 = t2.length;
733
- for (; n2; ) e = 33 * e ^ t2.charCodeAt(--n2);
734
- return e;
735
- };
736
- var z = (e) => F(G, e);
737
- function W(e) {
738
- return V(z(e) >>> 0);
739
- }
740
- function B(e) {
741
- return "production" !== process.env.NODE_ENV && "string" == typeof e && e || e.displayName || e.name || "Component";
742
- }
743
- function L(e) {
744
- return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
745
- }
746
- function q(e) {
747
- return L(e) ? `styled.${e}` : `Styled(${B(e)})`;
748
- }
749
- var H = /* @__PURE__ */ Symbol.for("react.memo");
750
- var Y = /* @__PURE__ */ Symbol.for("react.forward_ref");
751
- var U = { contextType: true, defaultProps: true, displayName: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, propTypes: true, type: true };
752
- var J = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true };
753
- var X = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true };
754
- var Z = { [Y]: { $$typeof: true, render: true, defaultProps: true, displayName: true, propTypes: true }, [H]: X };
755
- function K(e) {
756
- return ("type" in (t2 = e) && t2.type.$$typeof) === H ? X : "$$typeof" in e ? Z[e.$$typeof] : U;
757
- var t2;
758
- }
759
- var Q = Object.defineProperty;
760
- var ee = Object.getOwnPropertyNames;
761
- var te = Object.getOwnPropertySymbols;
762
- var ne = Object.getOwnPropertyDescriptor;
763
- var oe = Object.getPrototypeOf;
764
- var se = Object.prototype;
765
- function re(e, t2, n2) {
766
- if ("string" != typeof t2) {
767
- const o = oe(t2);
768
- o && o !== se && re(e, o, n2);
769
- const s = ee(t2).concat(te(t2)), r2 = K(e), i2 = K(t2);
770
- for (let o2 = 0; o2 < s.length; ++o2) {
771
- const l2 = s[o2];
772
- if (!(l2 in J || n2 && n2[l2] || i2 && l2 in i2 || r2 && l2 in r2)) {
773
- const n3 = ne(t2, l2);
774
- try {
775
- Q(e, l2, n3);
776
- } catch (e2) {
777
- }
778
- }
779
- }
780
- }
781
- return e;
782
- }
783
- function ie(e) {
784
- return "function" == typeof e;
785
- }
786
- var le = /* @__PURE__ */ Symbol.for("react.forward_ref");
787
- function ce(e) {
788
- return null != e && ("object" == typeof e || "function" == typeof e) && e.$$typeof === le && "styledComponentId" in e;
789
- }
790
- function ae(e, t2) {
791
- return e && t2 ? e + " " + t2 : e || t2 || "";
792
- }
793
- function ue(e, t2) {
794
- return e.join(t2 || "");
795
- }
796
- function de(e) {
797
- let t2 = "";
798
- for (let n2 = 0; n2 < e.length; n2++) t2 += e[n2] + d;
799
- return t2;
800
- }
801
- function he(e) {
802
- return e ? e.replaceAll(d, "") : e;
803
- }
804
- function pe(e) {
805
- return null !== e && "object" == typeof e && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
806
- }
807
- function fe(e, t2, n2 = false) {
808
- if (!n2 && !pe(e) && !Array.isArray(e)) return t2;
809
- if (Array.isArray(t2)) for (let n3 = 0; n3 < t2.length; n3++) e[n3] = fe(e[n3], t2[n3]);
810
- else if (pe(t2)) for (const n3 in t2) e[n3] = fe(e[n3], t2[n3]);
811
- return e;
812
- }
813
- function me(e) {
814
- if (!p) return null;
815
- const n2 = t.cache;
816
- return n2 ? n2(e) : null;
817
- }
818
- function ge(e, t2) {
819
- Object.defineProperty(e, "toString", { value: t2 });
820
- }
821
- var ye = class {
822
- constructor(e) {
823
- this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e, this._cGroup = 0, this._cIndex = 0;
824
- }
825
- indexOfGroup(e) {
826
- if (e === this._cGroup) return this._cIndex;
827
- let t2 = this._cIndex;
828
- if (e > this._cGroup) for (let n2 = this._cGroup; n2 < e; n2++) t2 += this.groupSizes[n2];
829
- else for (let n2 = this._cGroup - 1; n2 >= e; n2--) t2 -= this.groupSizes[n2];
830
- return this._cGroup = e, this._cIndex = t2, t2;
831
- }
832
- insertRules(e, t2) {
833
- if (e >= this.groupSizes.length) {
834
- const t3 = this.groupSizes, n3 = t3.length;
835
- let o2 = n3;
836
- for (; e >= o2; ) if (o2 <<= 1, o2 < 0) throw S(16, `${e}`);
837
- this.groupSizes = new Uint32Array(o2), this.groupSizes.set(t3), this.length = o2;
838
- for (let e2 = n3; e2 < o2; e2++) this.groupSizes[e2] = 0;
839
- }
840
- let n2 = this.indexOfGroup(e + 1), o = 0;
841
- for (let s = 0, r2 = t2.length; s < r2; s++) this.tag.insertRule(n2, t2[s]) && (this.groupSizes[e]++, n2++, o++);
842
- o > 0 && this._cGroup > e && (this._cIndex += o);
843
- }
844
- clearGroup(e) {
845
- if (e < this.length) {
846
- const t2 = this.groupSizes[e], n2 = this.indexOfGroup(e), o = n2 + t2;
847
- this.groupSizes[e] = 0;
848
- for (let e2 = n2; e2 < o; e2++) this.tag.deleteRule(n2);
849
- t2 > 0 && this._cGroup > e && (this._cIndex -= t2);
850
- }
851
- }
852
- getGroup(e) {
853
- let t2 = "";
854
- if (e >= this.length || 0 === this.groupSizes[e]) return t2;
855
- const n2 = this.groupSizes[e], o = this.indexOfGroup(e), s = o + n2;
856
- for (let e2 = o; e2 < s; e2++) t2 += this.tag.getRule(e2) + d;
857
- return t2;
858
- }
859
- };
860
- var ve = `style[${l}][${a}="${u}"]`;
861
- var Se = new RegExp(`^${l}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`);
862
- var be = (e) => "undefined" != typeof ShadowRoot && e instanceof ShadowRoot || "host" in e && 11 === e.nodeType;
863
- var we = (e) => {
864
- if (!e) return document;
865
- if (be(e)) return e;
866
- if ("getRootNode" in e) {
867
- const t2 = e.getRootNode();
868
- if (be(t2)) return t2;
869
- }
870
- return document;
871
- };
872
- var Ne = (e, t2, n2) => {
873
- const o = n2.split(",");
874
- let s;
875
- for (let n3 = 0, r2 = o.length; n3 < r2; n3++) (s = o[n3]) && e.registerName(t2, s);
876
- };
877
- var Ce = (e, t2) => {
878
- var n2;
879
- const o = (null !== (n2 = t2.textContent) && void 0 !== n2 ? n2 : "").split(d), s = [];
880
- for (let t3 = 0, n3 = o.length; t3 < n3; t3++) {
881
- const n4 = o[t3].trim();
882
- if (!n4) continue;
883
- const r2 = n4.match(Se);
884
- if (r2) {
885
- const t4 = 0 | parseInt(r2[1], 10), n5 = r2[2];
886
- 0 !== t4 && (E(n5, t4), Ne(e, n5, r2[3]), e.getTag().insertRules(t4, s)), s.length = 0;
887
- } else s.push(n4);
888
- }
889
- };
890
- var Pe = (e) => {
891
- const t2 = we(e.options.target).querySelectorAll(ve);
892
- for (let n2 = 0, o = t2.length; n2 < o; n2++) {
893
- const o2 = t2[n2];
894
- o2 && o2.getAttribute(l) !== c && (Ce(e, o2), o2.parentNode && o2.parentNode.removeChild(o2));
895
- }
896
- };
897
- var Oe = false;
898
- function Ee() {
899
- if (false !== Oe) return Oe;
900
- if ("undefined" != typeof document) {
901
- const e = document.head.querySelector('meta[property="csp-nonce"]');
902
- if (e) return Oe = e.nonce || e.getAttribute("content") || void 0;
903
- const t2 = document.head.querySelector('meta[name="sc-nonce"]');
904
- if (t2) return Oe = t2.getAttribute("content") || void 0;
905
- }
906
- return Oe = "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : void 0;
907
- }
908
- var Ie = (e, t2) => {
909
- const n2 = document.head, o = e || n2, s = document.createElement("style"), r2 = ((e2) => {
910
- const t3 = Array.from(e2.querySelectorAll(`style[${l}]`));
911
- return t3[t3.length - 1];
912
- })(o), i2 = void 0 !== r2 ? r2.nextSibling : null;
913
- s.setAttribute(l, c), s.setAttribute(a, u);
914
- const d2 = t2 || Ee();
915
- return d2 && s.setAttribute("nonce", d2), o.insertBefore(s, i2), s;
916
- };
917
- var Ae = class {
918
- constructor(e, t2) {
919
- this.element = Ie(e, t2), this.element.appendChild(document.createTextNode("")), this.sheet = ((e2) => {
920
- var t3;
921
- if (e2.sheet) return e2.sheet;
922
- const n2 = null !== (t3 = e2.getRootNode().styleSheets) && void 0 !== t3 ? t3 : document.styleSheets;
923
- for (let t4 = 0, o = n2.length; t4 < o; t4++) {
924
- const o2 = n2[t4];
925
- if (o2.ownerNode === e2) return o2;
926
- }
927
- throw S(17);
928
- })(this.element), this.length = 0;
929
- }
930
- insertRule(e, t2) {
931
- try {
932
- return this.sheet.insertRule(t2, e), this.length++, true;
933
- } catch (e2) {
934
- return false;
935
- }
936
- }
937
- deleteRule(e) {
938
- this.sheet.deleteRule(e), this.length--;
939
- }
940
- getRule(e) {
941
- const t2 = this.sheet.cssRules[e];
942
- return t2 && t2.cssText ? t2.cssText : "";
943
- }
944
- };
945
- var _e = class {
946
- constructor(e, t2) {
947
- this.element = Ie(e, t2), this.nodes = this.element.childNodes, this.length = 0;
948
- }
949
- insertRule(e, t2) {
950
- if (e <= this.length && e >= 0) {
951
- const n2 = document.createTextNode(t2);
952
- return this.element.insertBefore(n2, this.nodes[e] || null), this.length++, true;
953
- }
954
- return false;
955
- }
956
- deleteRule(e) {
957
- this.element.removeChild(this.nodes[e]), this.length--;
958
- }
959
- getRule(e) {
960
- return e < this.length ? this.nodes[e].textContent : "";
961
- }
962
- };
963
- var xe = class {
964
- constructor(e) {
965
- this.rules = [], this.length = 0;
966
- }
967
- insertRule(e, t2) {
968
- return e <= this.length && (e === this.length ? this.rules.push(t2) : this.rules.splice(e, 0, t2), this.length++, true);
969
- }
970
- deleteRule(e) {
971
- this.rules.splice(e, 1), this.length--;
972
- }
973
- getRule(e) {
974
- return e < this.length ? this.rules[e] : "";
975
- }
976
- };
977
- var $e = h;
978
- var Re = { isServer: !h, useCSSOMInjection: !m };
979
- var je = class _je {
980
- static registerId(e) {
981
- return P(e);
982
- }
983
- constructor(e = $, t2 = {}, n2) {
984
- this.options = Object.assign(Object.assign({}, Re), e), this.gs = t2, this.keyframeIds = /* @__PURE__ */ new Set(), this.names = new Map(n2), this.server = !!e.isServer, !this.server && h && $e && ($e = false, Pe(this)), ge(this, () => ((e2) => {
985
- const t3 = e2.getTag(), { length: n3 } = t3;
986
- let o = "";
987
- for (let s = 0; s < n3; s++) {
988
- const n4 = O(s);
989
- if (void 0 === n4) continue;
990
- const r2 = e2.names.get(n4);
991
- if (void 0 === r2 || !r2.size) continue;
992
- const i2 = t3.getGroup(s);
993
- if (0 === i2.length) continue;
994
- const c2 = l + ".g" + s + '[id="' + n4 + '"]';
995
- let a2 = "";
996
- for (const e3 of r2) e3.length > 0 && (a2 += e3 + ",");
997
- o += i2 + c2 + '{content:"' + a2 + '"}' + d;
998
- }
999
- return o;
1000
- })(this));
1001
- }
1002
- rehydrate() {
1003
- !this.server && h && Pe(this);
1004
- }
1005
- reconstructWithOptions(e, t2 = true) {
1006
- const n2 = new _je(Object.assign(Object.assign({}, this.options), e), this.gs, t2 && this.names || void 0);
1007
- return n2.keyframeIds = new Set(this.keyframeIds), !this.server && h && e.target !== this.options.target && we(this.options.target) !== we(e.target) && Pe(n2), n2;
1008
- }
1009
- allocateGSInstance(e) {
1010
- return this.gs[e] = (this.gs[e] || 0) + 1;
1011
- }
1012
- getTag() {
1013
- return this.tag || (this.tag = (e = (({ isServer: e2, useCSSOMInjection: t2, target: n2, nonce: o }) => e2 ? new xe(n2) : t2 ? new Ae(n2, o) : new _e(n2, o))(this.options), new ye(e)));
1014
- var e;
1015
- }
1016
- hasNameForId(e, t2) {
1017
- var n2, o;
1018
- return null !== (o = null === (n2 = this.names.get(e)) || void 0 === n2 ? void 0 : n2.has(t2)) && void 0 !== o && o;
1019
- }
1020
- registerName(e, t2) {
1021
- P(e), e.startsWith(g) && this.keyframeIds.add(e);
1022
- const n2 = this.names.get(e);
1023
- n2 ? n2.add(t2) : this.names.set(e, /* @__PURE__ */ new Set([t2]));
1024
- }
1025
- insertRules(e, t2, n2) {
1026
- this.registerName(e, t2), this.getTag().insertRules(P(e), n2);
1027
- }
1028
- clearNames(e) {
1029
- this.names.has(e) && this.names.get(e).clear();
1030
- }
1031
- clearRules(e) {
1032
- this.getTag().clearGroup(P(e)), this.clearNames(e);
1033
- }
1034
- clearTag() {
1035
- this.tag = void 0;
1036
- }
1037
- };
1038
- var ke = /* @__PURE__ */ new WeakSet();
1039
- var Te = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, borderImageSlice: 1, borderImageWidth: 1, columnCount: 1, columns: 1, flex: 1, flexGrow: 1, flexShrink: 1, gridRow: 1, gridRowEnd: 1, gridRowSpan: 1, gridRowStart: 1, gridColumn: 1, gridColumnEnd: 1, gridColumnSpan: 1, gridColumnStart: 1, fontWeight: 1, lineHeight: 1, opacity: 1, order: 1, orphans: 1, scale: 1, tabSize: 1, widows: 1, zIndex: 1, zoom: 1, WebkitLineClamp: 1, fillOpacity: 1, floodOpacity: 1, stopOpacity: 1, strokeDasharray: 1, strokeDashoffset: 1, strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 };
1040
- function De(e, t2) {
1041
- return null == t2 || "boolean" == typeof t2 || "" === t2 ? "" : "number" != typeof t2 || 0 === t2 || e in Te || e.startsWith("--") ? String(t2).trim() : t2 + "px";
1042
- }
1043
- var Me = 47;
1044
- function Ve(e) {
1045
- if (45 === e.charCodeAt(0) && 45 === e.charCodeAt(1)) return e;
1046
- let t2 = "";
1047
- for (let n2 = 0; n2 < e.length; n2++) {
1048
- const o = e.charCodeAt(n2);
1049
- t2 += o >= 65 && o <= 90 ? "-" + String.fromCharCode(o + 32) : e[n2];
1050
- }
1051
- return t2.startsWith("ms-") ? "-" + t2 : t2;
1052
- }
1053
- var Ge = /* @__PURE__ */ Symbol.for("sc-keyframes");
1054
- function Fe(e) {
1055
- return "object" == typeof e && null !== e && Ge in e;
1056
- }
1057
- function ze(e) {
1058
- return ie(e) && !(e.prototype && e.prototype.isReactComponent);
1059
- }
1060
- var We = (e) => null == e || false === e || "" === e;
1061
- var Be = /* @__PURE__ */ Symbol.for("react.client.reference");
1062
- function Le(e) {
1063
- return e.$$typeof === Be;
1064
- }
1065
- function qe(e) {
1066
- const t2 = e.$$id, n2 = (t2 && t2.includes("#") ? t2.split("#").pop() : t2) || e.name || "unknown";
1067
- console.warn(`Interpolating a client component (${n2}) as a selector is not supported in server components. The component selector pattern requires access to the component's internal class name, which is not available across the server/client boundary. Use a plain CSS class selector instead.`);
1068
- }
1069
- function He(e, t2) {
1070
- for (const n2 in e) {
1071
- const o = e[n2];
1072
- e.hasOwnProperty(n2) && !We(o) && (Array.isArray(o) && ke.has(o) || ie(o) ? t2.push(Ve(n2) + ":", o, ";") : pe(o) ? (t2.push(n2 + " {"), He(o, t2), t2.push("}")) : t2.push(Ve(n2) + ": " + De(n2, o) + ";"));
1073
- }
1074
- }
1075
- function Ye(e, t2, n2, o, s = []) {
1076
- if (We(e)) return s;
1077
- const r2 = typeof e;
1078
- if ("string" === r2) return s.push(e), s;
1079
- if ("function" === r2) {
1080
- if (Le(e)) return "production" !== process.env.NODE_ENV && qe(e), s;
1081
- if (ze(e) && t2) {
1082
- const r3 = e(t2);
1083
- return "production" === process.env.NODE_ENV || "object" != typeof r3 || Array.isArray(r3) || Fe(r3) || pe(r3) || null === r3 || console.error(`${B(e)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`), Ye(r3, t2, n2, o, s);
1084
- }
1085
- return s.push(e), s;
1086
- }
1087
- if (Array.isArray(e)) {
1088
- for (let r3 = 0; r3 < e.length; r3++) Ye(e[r3], t2, n2, o, s);
1089
- return s;
1090
- }
1091
- return ce(e) ? (s.push(`.${e.styledComponentId}`), s) : Fe(e) ? (n2 ? (e.inject(n2, o), s.push(e.getName(o))) : s.push(e), s) : Le(e) ? ("production" !== process.env.NODE_ENV && qe(e), s) : pe(e) ? e.toString !== Object.prototype.toString ? (s.push(e.toString()), s) : (He(e, s), s) : (s.push(e.toString()), s);
1092
- }
1093
- var Ue = z(u);
1094
- var Je = p ? /* @__PURE__ */ new WeakMap() : null;
1095
- function Xe(e, t2) {
1096
- if (!Je) return null;
1097
- const n2 = Je.get(e);
1098
- if (!n2) return null;
1099
- const o = t2.names.get(e.componentId);
1100
- if (!o) return null;
1101
- let s = "";
1102
- for (const e2 of o) {
1103
- const t3 = n2.get(e2);
1104
- if (!t3) return null;
1105
- s += t3;
1106
- }
1107
- return s;
1108
- }
1109
- var Ze = class {
1110
- constructor(e, t2, n2) {
1111
- this.rules = e, this.componentId = t2, this.baseHash = F(Ue, t2), this.baseStyle = n2, je.registerId(t2);
1112
- }
1113
- generateAndInjectStyles(e, t2, n2) {
1114
- let o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e, t2, n2) : "";
1115
- {
1116
- let s = "";
1117
- for (let o2 = 0; o2 < this.rules.length; o2++) {
1118
- const r2 = this.rules[o2];
1119
- if ("string" == typeof r2) s += r2;
1120
- else if (r2) if (ze(r2)) {
1121
- const o3 = r2(e);
1122
- "string" == typeof o3 ? s += o3 : null != o3 && false !== o3 && ("production" === process.env.NODE_ENV || "object" != typeof o3 || Array.isArray(o3) || Fe(o3) || pe(o3) || console.error(`${B(r2)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`), s += ue(Ye(o3, e, t2, n2)));
1123
- } else s += ue(Ye(r2, e, t2, n2));
1124
- }
1125
- if (s) {
1126
- this.dynamicNameCache || (this.dynamicNameCache = /* @__PURE__ */ new Map());
1127
- const e2 = n2.hash ? n2.hash + s : s;
1128
- let r2 = this.dynamicNameCache.get(e2);
1129
- if (!r2) {
1130
- if (r2 = V(F(F(this.baseHash, n2.hash), s) >>> 0), this.dynamicNameCache.size >= 200) {
1131
- const e3 = this.dynamicNameCache.keys().next().value;
1132
- void 0 !== e3 && this.dynamicNameCache.delete(e3);
1133
- }
1134
- this.dynamicNameCache.set(e2, r2);
1135
- }
1136
- if (!t2.hasNameForId(this.componentId, r2)) if (p && (function(e3, t3) {
1137
- var n3, o2;
1138
- return null !== (o2 = null === (n3 = null == Je ? void 0 : Je.get(e3)) || void 0 === n3 ? void 0 : n3.has(t3)) && void 0 !== o2 && o2;
1139
- })(this, r2)) t2.registerName(this.componentId, r2);
1140
- else {
1141
- const e3 = n2(s, "." + r2, void 0, this.componentId);
1142
- p && (function(e4, t3, n3) {
1143
- if (!Je) return;
1144
- let o2 = Je.get(e4);
1145
- o2 || (o2 = /* @__PURE__ */ new Map(), Je.set(e4, o2)), o2.set(t3, de(n3));
1146
- })(this, r2, e3), t2.insertRules(this.componentId, r2, e3);
1147
- }
1148
- o = ae(o, r2);
1149
- }
1150
- }
1151
- return o;
1152
- }
1153
- };
1154
- var Ke = /&/g;
1155
- function Qe(e, t2) {
1156
- let n2 = 0;
1157
- for (; --t2 >= 0 && 92 === e.charCodeAt(t2); ) n2++;
1158
- return !(1 & ~n2);
1159
- }
1160
- function et(e) {
1161
- const t2 = e.length;
1162
- let n2 = "", o = 0, s = 0, r2 = 0, i2 = false, l2 = false;
1163
- for (let c2 = 0; c2 < t2; c2++) {
1164
- const a2 = e.charCodeAt(c2);
1165
- if (0 !== r2 || i2 || a2 !== Me || 42 !== e.charCodeAt(c2 + 1)) if (i2) 42 === a2 && e.charCodeAt(c2 + 1) === Me && (i2 = false, c2++);
1166
- else if (34 !== a2 && 39 !== a2 || Qe(e, c2)) {
1167
- if (0 === r2) if (123 === a2) s++;
1168
- else if (125 === a2) {
1169
- if (s--, s < 0) {
1170
- l2 = true;
1171
- let n3 = c2 + 1;
1172
- for (; n3 < t2; ) {
1173
- const t3 = e.charCodeAt(n3);
1174
- if (59 === t3 || 10 === t3) break;
1175
- n3++;
1176
- }
1177
- n3 < t2 && 59 === e.charCodeAt(n3) && n3++, s = 0, c2 = n3 - 1, o = n3;
1178
- continue;
1179
- }
1180
- 0 === s && (n2 += e.substring(o, c2 + 1), o = c2 + 1);
1181
- } else 59 === a2 && 0 === s && (n2 += e.substring(o, c2 + 1), o = c2 + 1);
1182
- } else 0 === r2 ? r2 = a2 : r2 === a2 && (r2 = 0);
1183
- else i2 = true, c2++;
1184
- }
1185
- return l2 || 0 !== s || 0 !== r2 ? (o < t2 && 0 === s && 0 === r2 && (n2 += e.substring(o)), n2) : e;
1186
- }
1187
- function tt(e, t2) {
1188
- const n2 = t2 + " ", o = "," + n2;
1189
- for (let s = 0; s < e.length; s++) {
1190
- const r2 = e[s];
1191
- if ("rule" === r2.type) {
1192
- r2.value = (n2 + r2.value).replaceAll(",", o);
1193
- const e2 = r2.props, t3 = [];
1194
- for (let o2 = 0; o2 < e2.length; o2++) t3[o2] = n2 + e2[o2];
1195
- r2.props = t3;
1196
- }
1197
- Array.isArray(r2.children) && "@keyframes" !== r2.type && tt(r2.children, t2);
1198
- }
1199
- return e;
1200
- }
1201
- function nt({ options: e = $, plugins: t2 = x } = $) {
1202
- let n2, s, r2;
1203
- const i2 = (e2, t3, o) => o.startsWith(s) && o.endsWith(s) && o.replaceAll(s, "").length > 0 ? `.${n2}` : e2, l2 = t2.slice();
1204
- l2.push((e2) => {
1205
- e2.type === RULESET && e2.value.includes("&") && (r2 || (r2 = new RegExp(`\\${s}\\b`, "g")), e2.props[0] = e2.props[0].replace(Ke, s).replace(r2, i2));
1206
- }), e.prefix && l2.push(prefixer), l2.push(stringify);
1207
- let c2 = [];
1208
- const a2 = middleware(l2.concat(rulesheet((e2) => c2.push(e2)))), u2 = (t3, i3 = "", l3 = "", u3 = "&") => {
1209
- n2 = u3, s = i3, r2 = void 0;
1210
- const d3 = (function(e2) {
1211
- const t4 = -1 !== e2.indexOf("//"), n3 = -1 !== e2.indexOf("}");
1212
- if (!t4 && !n3) return e2;
1213
- if (!t4) return et(e2);
1214
- const o = e2.length;
1215
- let s2 = "", r3 = 0, i4 = 0, l4 = 0, c3 = 0, a3 = 0, u4 = false;
1216
- for (; i4 < o; ) {
1217
- const t5 = e2.charCodeAt(i4);
1218
- if (34 !== t5 && 39 !== t5 || Qe(e2, i4)) if (0 === l4) if (t5 === Me && i4 + 1 < o && 42 === e2.charCodeAt(i4 + 1)) {
1219
- for (i4 += 2; i4 + 1 < o && (42 !== e2.charCodeAt(i4) || e2.charCodeAt(i4 + 1) !== Me); ) i4++;
1220
- i4 += 2;
1221
- } else if (40 !== t5) if (41 !== t5) if (c3 > 0) i4++;
1222
- else if (42 === t5 && i4 + 1 < o && e2.charCodeAt(i4 + 1) === Me) s2 += e2.substring(r3, i4), i4 += 2, r3 = i4, u4 = true;
1223
- else if (t5 === Me && i4 + 1 < o && e2.charCodeAt(i4 + 1) === Me) {
1224
- for (s2 += e2.substring(r3, i4); i4 < o && 10 !== e2.charCodeAt(i4); ) i4++;
1225
- r3 = i4, u4 = true;
1226
- } else 123 === t5 ? a3++ : 125 === t5 && a3--, i4++;
1227
- else c3 > 0 && c3--, i4++;
1228
- else c3++, i4++;
1229
- else i4++;
1230
- else 0 === l4 ? l4 = t5 : l4 === t5 && (l4 = 0), i4++;
1231
- }
1232
- return u4 ? (r3 < o && (s2 += e2.substring(r3)), 0 === a3 ? s2 : et(s2)) : 0 === a3 ? e2 : et(e2);
1233
- })(t3);
1234
- let h3 = compile(l3 || i3 ? l3 + " " + i3 + " { " + d3 + " }" : d3);
1235
- return e.namespace && (h3 = tt(h3, e.namespace)), c2 = [], serialize(h3, a2), c2;
1236
- }, d2 = e;
1237
- let h2 = G;
1238
- for (let e2 = 0; e2 < t2.length; e2++) t2[e2].name || S(15), h2 = F(h2, t2[e2].name);
1239
- return (null == d2 ? void 0 : d2.namespace) && (h2 = F(h2, d2.namespace)), (null == d2 ? void 0 : d2.prefix) && (h2 = F(h2, "p")), u2.hash = h2 !== G ? h2.toString() : "", u2;
1240
- }
1241
- var ot;
1242
- var st;
1243
- var rt;
1244
- var it = new je();
1245
- var lt = nt();
1246
- var at = null;
1247
- var dt = p && null !== (rt = null === (st = (ot = t).cache) || void 0 === st ? void 0 : st.call(ot, () => {
1248
- it.names.clear(), it.keyframeIds.clear(), it.clearTag(), at = null;
1249
- })) && void 0 !== rt ? rt : null;
1250
- var ht = { shouldForwardProp: void 0, styleSheet: it, stylis: lt, stylisPlugins: void 0 };
1251
- var pt = p ? { Provider: ({ children: e }) => e, Consumer: ({ children: e }) => e(ht) } : t.createContext(ht);
1252
- var ft = pt.Consumer;
1253
- function mt() {
1254
- return p ? (dt && dt(), at || ht) : t.useContext(pt);
1255
- }
1256
- var yt = p ? { Provider: ({ children: e }) => e, Consumer: ({ children: e }) => e(void 0) } : t.createContext(void 0);
1257
- var vt = yt.Consumer;
1258
- var wt = {};
1259
- function Nt(e, t2) {
1260
- const n2 = "string" != typeof e ? "sc" : T(e);
1261
- wt[n2] = (wt[n2] || 0) + 1;
1262
- const o = n2 + "-" + W(u + n2 + wt[n2]);
1263
- return t2 ? t2 + "-" + o : o;
1264
- }
1265
- var Ct;
1266
- var Pt = me(() => /* @__PURE__ */ new Set());
1267
- var Ot = /* @__PURE__ */ new Map();
1268
- function Et(e) {
1269
- let t2 = Ot.get(e);
1270
- return t2 || (t2 = new RegExp("\\." + e + "(?![a-zA-Z0-9_-])", "g"), Ot.set(e, t2)), t2;
1271
- }
1272
- function It(e, t2, n2) {
1273
- const o = n2.names.get(t2);
1274
- if (o) for (const t3 of o) {
1275
- const n3 = Et(t3);
1276
- n3.lastIndex = 0, e = e.replace(n3, ":where(." + t3 + ")");
1277
- }
1278
- return e;
1279
- }
1280
- function At(o, s, r2) {
1281
- const i2 = ce(o), c2 = o, a2 = !L(o), { attrs: u2 = x, componentId: h2 = Nt(s.displayName, s.parentComponentId), displayName: f2 = q(o) } = s, m2 = s.displayName && s.componentId ? T(s.displayName) + "-" + s.componentId : s.componentId || h2, g2 = i2 && c2.attrs ? c2.attrs.concat(u2).filter(Boolean) : u2;
1282
- let { shouldForwardProp: y } = s;
1283
- if (i2 && c2.shouldForwardProp) {
1284
- const e = c2.shouldForwardProp;
1285
- if (s.shouldForwardProp) {
1286
- const t2 = s.shouldForwardProp;
1287
- y = (n2, o2) => e(n2, o2) && t2(n2, o2);
1288
- } else y = e;
1289
- }
1290
- const v2 = new Ze(r2, m2, i2 ? c2.componentStyle : void 0);
1291
- function S2(o2, s2) {
1292
- return (function(o3, s3, r3) {
1293
- const { attrs: i3, componentStyle: c3, defaultProps: a3, foldedComponentIds: u3, styledComponentId: h3, target: f3 } = o3, m3 = p ? void 0 : t.useContext(yt), g3 = mt(), y2 = o3.shouldForwardProp || g3.shouldForwardProp;
1294
- "production" !== process.env.NODE_ENV && t.useDebugValue && t.useDebugValue(h3);
1295
- const v3 = R(s3, m3, a3) || (p ? void 0 : $);
1296
- let S3, b3;
1297
- S3 = (function(e, t2, n2) {
1298
- const o4 = Object.assign(Object.assign({}, t2), { className: void 0, theme: n2 }), s4 = e.length > 1;
1299
- for (let n3 = 0; n3 < e.length; n3++) {
1300
- const r4 = e[n3], i4 = ie(r4) ? r4(s4 ? Object.assign({}, o4) : o4) : r4;
1301
- for (const e2 in i4) "className" === e2 ? o4.className = ae(o4.className, i4[e2]) : "style" === e2 ? o4.style = Object.assign(Object.assign({}, o4.style), i4[e2]) : e2 in t2 && void 0 === t2[e2] || (o4[e2] = i4[e2]);
1302
- }
1303
- return "className" in t2 && "string" == typeof t2.className && (o4.className = ae(o4.className, t2.className)), o4;
1304
- })(i3, s3, v3), b3 = (function(e, n2, o4, s4) {
1305
- const r4 = e.generateAndInjectStyles(n2, o4, s4);
1306
- return "production" !== process.env.NODE_ENV && t.useDebugValue && t.useDebugValue(r4), r4;
1307
- })(c3, S3, g3.styleSheet, g3.stylis), "production" !== process.env.NODE_ENV && o3.warnTooManyClasses && o3.warnTooManyClasses(b3);
1308
- const w2 = S3.as || f3, N2 = (function(t2, n2, o4, s4) {
1309
- const r4 = {};
1310
- for (const i4 in t2) void 0 === t2[i4] || "$" === i4[0] || "as" === i4 || "theme" === i4 && t2.theme === o4 || ("forwardedAs" === i4 ? r4.as = t2.forwardedAs : s4 && !s4(i4, n2) || (r4[i4] = t2[i4], s4 || "development" !== process.env.NODE_ENV || isPropValid(i4) || (Ct || (Ct = /* @__PURE__ */ new Set())).has(i4) || !L(n2) || n2.includes("-") || (Ct.add(i4), console.warn(`styled-components: it looks like an unknown prop "${i4}" 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.)`))));
1311
- return r4;
1312
- })(S3, w2, v3, y2);
1313
- let C2 = ae(u3, h3);
1314
- b3 && (C2 += " " + b3), S3.className && (C2 += " " + S3.className), N2[L(w2) && w2.includes("-") ? "class" : "className"] = C2, r3 && (N2.ref = r3);
1315
- const O2 = n(w2, N2);
1316
- if (p) {
1317
- const e = Pt ? Pt() : null;
1318
- let n2 = null, o4 = 0, s4 = "", r4 = true, i4 = c3;
1319
- for (; i4; ) {
1320
- const t2 = g3.styleSheet.names.get(i4.componentId);
1321
- if (t2) {
1322
- o4 += t2.size;
1323
- for (const o5 of t2) e && e.has(o5) || (n2 || (n2 = []), n2.push(o5), e && e.add(o5));
1324
- }
1325
- if (n2 && r4) {
1326
- let e2 = Xe(i4, g3.styleSheet);
1327
- null === e2 ? r4 = false : (i4 !== c3 && (e2 = It(e2, i4.componentId, g3.styleSheet)), s4 = e2 + s4);
1328
- }
1329
- i4 = i4.baseStyle;
1330
- }
1331
- if (n2 && !r4) {
1332
- s4 = "";
1333
- const e2 = g3.styleSheet.getTag();
1334
- let t2 = c3;
1335
- for (; t2; ) {
1336
- let n3 = e2.getGroup(P(t2.componentId));
1337
- n3 && t2 !== c3 && (n3 = It(n3, t2.componentId, g3.styleSheet)), s4 = n3 + s4, t2 = t2.baseStyle;
1338
- }
1339
- }
1340
- let a4 = "";
1341
- if (g3.styleSheet.keyframeIds.size > 0) {
1342
- const t2 = g3.styleSheet.getTag();
1343
- for (const n3 of g3.styleSheet.keyframeIds) {
1344
- if (e && e.has(n3)) continue;
1345
- const o5 = t2.getGroup(P(n3));
1346
- o5 && (a4 += o5, e && e.add(n3));
1347
- }
1348
- }
1349
- if (s4 && e && n2 && n2.length < o4) {
1350
- const e2 = s4.split(d);
1351
- let t2 = "";
1352
- for (let o5 = 0; o5 < e2.length; o5++) {
1353
- const s5 = e2[o5];
1354
- if (s5) for (let e3 = 0; e3 < n2.length; e3++) {
1355
- const o6 = Et(n2[e3]);
1356
- if (o6.lastIndex = 0, o6.test(s5)) {
1357
- t2 += s5 + d;
1358
- break;
1359
- }
1360
- }
1361
- }
1362
- s4 = t2;
1363
- }
1364
- const u4 = he(a4 + s4);
1365
- if (u4) {
1366
- const e2 = t.createElement("style", { [l]: "", key: "sc-" + c3.componentId, children: u4 });
1367
- return t.createElement(t.Fragment, null, e2, O2);
1368
- }
1369
- }
1370
- return O2;
1371
- })(b2, o2, s2);
1372
- }
1373
- S2.displayName = f2;
1374
- let b2 = t.forwardRef(S2);
1375
- return b2.attrs = g2, b2.componentStyle = v2, b2.displayName = f2, b2.shouldForwardProp = y, b2.foldedComponentIds = i2 ? ae(c2.foldedComponentIds, c2.styledComponentId) : "", b2.styledComponentId = m2, b2.target = i2 ? c2.target : o, Object.defineProperty(b2, "defaultProps", { get() {
1376
- return this._foldedDefaultProps;
1377
- }, set(e) {
1378
- this._foldedDefaultProps = i2 ? (function(e2, ...t2) {
1379
- for (const n2 of t2) fe(e2, n2, true);
1380
- return e2;
1381
- })({}, c2.defaultProps, e) : e;
1382
- } }), "production" !== process.env.NODE_ENV && (_(f2, m2), b2.warnTooManyClasses = /* @__PURE__ */ ((e, t2) => {
1383
- let n2 = {}, o2 = false;
1384
- return (s2) => {
1385
- !o2 && (n2[s2] = true, Object.keys(n2).length >= 200) && (console.warn(`Over 200 classes were generated for component ${e}${t2 ? ` with the id of "${t2}"` : ""}.
1386
- Consider using the attrs method, together with a style object for frequently changed styles.
1387
- Example:
1388
- const Component = styled.div.attrs(props => ({
1389
- style: {
1390
- background: props.background,
1391
- },
1392
- }))\`width: 100%;\`
1393
-
1394
- <Component />`), o2 = true, n2 = {});
1395
- };
1396
- })(f2, m2)), ge(b2, () => `.${b2.styledComponentId}`), a2 && re(b2, o, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), b2;
1397
- }
1398
- var _t = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "blockquote", "body", "button", "br", "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", "label", "legend", "li", "main", "map", "mark", "menu", "meter", "nav", "object", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "slot", "small", "span", "strong", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "switch", "symbol", "text", "textPath", "tspan", "use"]);
1399
- function xt(e, t2) {
1400
- const n2 = [e[0]];
1401
- for (let o = 0, s = t2.length; o < s; o += 1) n2.push(t2[o], e[o + 1]);
1402
- return n2;
1403
- }
1404
- var $t = (e) => (ke.add(e), e);
1405
- function Rt(e, ...t2) {
1406
- if (ie(e) || pe(e)) return $t(Ye(xt(x, [e, ...t2])));
1407
- const n2 = e;
1408
- return 0 === t2.length && 1 === n2.length && "string" == typeof n2[0] ? Ye(n2) : $t(Ye(xt(n2, t2)));
1409
- }
1410
- function jt(e, t2, n2 = $) {
1411
- if (!t2) throw S(1, t2);
1412
- const o = (o2, ...s) => e(t2, n2, Rt(o2, ...s));
1413
- return o.attrs = (o2) => jt(e, t2, Object.assign(Object.assign({}, n2), { attrs: Array.prototype.concat(n2.attrs, o2).filter(Boolean) })), o.withConfig = (o2) => jt(e, t2, Object.assign(Object.assign({}, n2), o2)), o;
1414
- }
1415
- var kt = (e) => jt(At, e);
1416
- var Tt = kt;
1417
- _t.forEach((e) => {
1418
- Tt[e] = kt(e);
1419
- });
1420
- var Mt = me(() => /* @__PURE__ */ new Set());
1421
- var Wt;
1422
- Wt = Ge;
1423
- "production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://styled-components.com/docs/basics#react-native");
1424
- var Xt = `__sc-${l}__`;
1425
- "production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window[Xt] || (window[Xt] = 0), 1 === window[Xt] && 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.\n\nSee https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."), window[Xt] += 1);
1426
- var Kt = `:not(style[${l}])`;
1427
- var Qt = `style[${l}]`;
1428
-
1429
7
  // src/integrations/styled-components-theme.ts
8
+ import { css } from "styled-components";
1430
9
  var semiontTheme = {
1431
10
  colors: {
1432
11
  ...tokens.colors,
@@ -1455,7 +34,7 @@ var semiontMixins = {
1455
34
  /**
1456
35
  * Button base styles
1457
36
  */
1458
- buttonBase: Rt`
37
+ buttonBase: css`
1459
38
  position: relative;
1460
39
  display: inline-flex;
1461
40
  align-items: center;
@@ -1485,8 +64,8 @@ var semiontMixins = {
1485
64
  /**
1486
65
  * Button variant styles
1487
66
  */
1488
- buttonVariant: (variant) => Rt`
1489
- ${variant === "primary" && Rt`
67
+ buttonVariant: (variant) => css`
68
+ ${variant === "primary" && css`
1490
69
  background-color: ${(props) => props.theme.colors.primary[500]};
1491
70
  color: ${(props) => props.theme.colors.neutral[0]};
1492
71
 
@@ -1500,7 +79,7 @@ var semiontMixins = {
1500
79
  }
1501
80
  `}
1502
81
 
1503
- ${variant === "secondary" && Rt`
82
+ ${variant === "secondary" && css`
1504
83
  background-color: ${(props) => props.theme.colors.neutral[100]};
1505
84
  color: ${(props) => props.theme.colors.neutral[900]};
1506
85
 
@@ -1514,7 +93,7 @@ var semiontMixins = {
1514
93
  }
1515
94
  `}
1516
95
 
1517
- ${variant === "tertiary" && Rt`
96
+ ${variant === "tertiary" && css`
1518
97
  background-color: transparent;
1519
98
  color: ${(props) => props.theme.colors.primary[600]};
1520
99
  box-shadow: inset 0 0 0 1px ${(props) => props.theme.colors.primary[200]};
@@ -1531,7 +110,7 @@ var semiontMixins = {
1531
110
  }
1532
111
  `}
1533
112
 
1534
- ${variant === "danger" && Rt`
113
+ ${variant === "danger" && css`
1535
114
  background-color: ${(props) => props.theme.colors.error};
1536
115
  color: ${(props) => props.theme.colors.neutral[0]};
1537
116
 
@@ -1546,7 +125,7 @@ var semiontMixins = {
1546
125
  }
1547
126
  `}
1548
127
 
1549
- ${variant === "warning" && Rt`
128
+ ${variant === "warning" && css`
1550
129
  background-color: ${(props) => props.theme.colors.warning};
1551
130
  color: ${(props) => props.theme.colors.neutral[900]};
1552
131
 
@@ -1561,7 +140,7 @@ var semiontMixins = {
1561
140
  }
1562
141
  `}
1563
142
 
1564
- ${variant === "ghost" && Rt`
143
+ ${variant === "ghost" && css`
1565
144
  background-color: transparent;
1566
145
  color: ${(props) => props.theme.colors.text.primary};
1567
146
 
@@ -1578,36 +157,36 @@ var semiontMixins = {
1578
157
  /**
1579
158
  * Button size styles
1580
159
  */
1581
- buttonSize: (size) => Rt`
1582
- ${size === "xs" && Rt`
160
+ buttonSize: (size) => css`
161
+ ${size === "xs" && css`
1583
162
  padding: ${(props) => props.theme.spacing.xs} ${(props) => props.theme.spacing.sm};
1584
163
  font-size: ${(props) => props.theme.typography.fontSize.xs};
1585
164
  border-radius: ${(props) => props.theme.borderRadius.sm};
1586
165
  min-height: 1.75rem;
1587
166
  `}
1588
167
 
1589
- ${size === "sm" && Rt`
168
+ ${size === "sm" && css`
1590
169
  padding: ${(props) => props.theme.spacing.xs} ${(props) => props.theme.spacing.md};
1591
170
  font-size: ${(props) => props.theme.typography.fontSize.sm};
1592
171
  border-radius: ${(props) => props.theme.borderRadius.base};
1593
172
  min-height: 2rem;
1594
173
  `}
1595
174
 
1596
- ${size === "md" && Rt`
175
+ ${size === "md" && css`
1597
176
  padding: ${(props) => props.theme.spacing.sm} ${(props) => props.theme.spacing.lg};
1598
177
  font-size: ${(props) => props.theme.typography.fontSize.base};
1599
178
  border-radius: ${(props) => props.theme.borderRadius.md};
1600
179
  min-height: 2.5rem;
1601
180
  `}
1602
181
 
1603
- ${size === "lg" && Rt`
182
+ ${size === "lg" && css`
1604
183
  padding: ${(props) => props.theme.spacing.sm} ${(props) => props.theme.spacing.xl};
1605
184
  font-size: ${(props) => props.theme.typography.fontSize.lg};
1606
185
  border-radius: ${(props) => props.theme.borderRadius.md};
1607
186
  min-height: 3rem;
1608
187
  `}
1609
188
 
1610
- ${size === "xl" && Rt`
189
+ ${size === "xl" && css`
1611
190
  padding: ${(props) => props.theme.spacing.md} ${(props) => props.theme.spacing["2xl"]};
1612
191
  font-size: ${(props) => props.theme.typography.fontSize.xl};
1613
192
  border-radius: ${(props) => props.theme.borderRadius.lg};
@@ -1617,7 +196,7 @@ var semiontMixins = {
1617
196
  /**
1618
197
  * Focus ring styles
1619
198
  */
1620
- focusRing: (color) => Rt`
199
+ focusRing: (color) => css`
1621
200
  &:focus-visible {
1622
201
  outline: 2px solid ${(props) => color || props.theme.colors.primary[500]};
1623
202
  outline-offset: 2px;
@@ -1626,7 +205,7 @@ var semiontMixins = {
1626
205
  /**
1627
206
  * Truncate text with ellipsis
1628
207
  */
1629
- truncate: Rt`
208
+ truncate: css`
1630
209
  overflow: hidden;
1631
210
  text-overflow: ellipsis;
1632
211
  white-space: nowrap;
@@ -1634,7 +213,7 @@ var semiontMixins = {
1634
213
  /**
1635
214
  * Screen reader only
1636
215
  */
1637
- srOnly: Rt`
216
+ srOnly: css`
1638
217
  position: absolute;
1639
218
  width: 1px;
1640
219
  height: 1px;
@@ -1649,34 +228,34 @@ var semiontMixins = {
1649
228
  * Responsive media query helpers
1650
229
  */
1651
230
  media: {
1652
- sm: (styles) => Rt`
231
+ sm: (styles) => css`
1653
232
  @media (min-width: ${(props) => props.theme.breakpoints.sm}) {
1654
233
  ${styles}
1655
234
  }
1656
235
  `,
1657
- md: (styles) => Rt`
236
+ md: (styles) => css`
1658
237
  @media (min-width: ${(props) => props.theme.breakpoints.md}) {
1659
238
  ${styles}
1660
239
  }
1661
240
  `,
1662
- lg: (styles) => Rt`
241
+ lg: (styles) => css`
1663
242
  @media (min-width: ${(props) => props.theme.breakpoints.lg}) {
1664
243
  ${styles}
1665
244
  }
1666
245
  `,
1667
- xl: (styles) => Rt`
246
+ xl: (styles) => css`
1668
247
  @media (min-width: ${(props) => props.theme.breakpoints.xl}) {
1669
248
  ${styles}
1670
249
  }
1671
250
  `,
1672
- "2xl": (styles) => Rt`
251
+ "2xl": (styles) => css`
1673
252
  @media (min-width: ${(props) => props.theme.breakpoints["2xl"]}) {
1674
253
  ${styles}
1675
254
  }
1676
255
  `
1677
256
  }
1678
257
  };
1679
- var SemiontGlobalStyles = Rt`
258
+ var SemiontGlobalStyles = css`
1680
259
  /* Import CSS variables */
1681
260
  :root {
1682
261
  /* Primary colors */
@@ -1750,16 +329,16 @@ function createStyledSemiontButton(styled) {
1750
329
  ${(props) => semiontMixins.buttonVariant(props.variant || "primary")}
1751
330
  ${(props) => semiontMixins.buttonSize(props.size || "md")}
1752
331
 
1753
- ${(props) => props.fullWidth && Rt`
332
+ ${(props) => props.fullWidth && css`
1754
333
  width: 100%;
1755
334
  `}
1756
335
 
1757
- ${(props) => props.loading && Rt`
336
+ ${(props) => props.loading && css`
1758
337
  pointer-events: none;
1759
338
  opacity: 0.75;
1760
339
  `}
1761
340
 
1762
- ${(props) => props.iconOnly && Rt`
341
+ ${(props) => props.iconOnly && css`
1763
342
  padding: ${props.theme.spacing.sm};
1764
343
  aspect-ratio: 1;
1765
344
  `}