storybook 9.0.0-beta.1 → 9.0.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/assets/server/base-preview-head.html +2 -1
  2. package/dist/actions/decorator.js +49 -52
  3. package/dist/actions/index.cjs +42 -44
  4. package/dist/actions/index.js +37 -40
  5. package/dist/actions/preview.cjs +44 -46
  6. package/dist/actions/preview.js +24 -27
  7. package/dist/babel/index.cjs +15060 -14974
  8. package/dist/babel/index.d.ts +37 -18
  9. package/dist/babel/index.js +15097 -15011
  10. package/dist/bin/index.cjs +44 -44
  11. package/dist/bin/index.js +44 -44
  12. package/dist/builder-manager/index.cjs +303 -283
  13. package/dist/builder-manager/index.js +545 -524
  14. package/dist/channels/index.js +919 -941
  15. package/dist/cli/bin/index.cjs +4185 -737
  16. package/dist/cli/bin/index.js +4199 -749
  17. package/dist/cli/index.cjs +26712 -23192
  18. package/dist/cli/index.d.ts +974 -1
  19. package/dist/cli/index.js +26765 -23243
  20. package/dist/client-logger/index.d.ts +2 -1
  21. package/dist/common/index.cjs +4785 -4693
  22. package/dist/common/index.d.ts +8 -2
  23. package/dist/common/index.js +5165 -5069
  24. package/dist/components/index.cjs +7905 -5600
  25. package/dist/components/index.d.ts +12 -12
  26. package/dist/components/index.js +4713 -3786
  27. package/dist/core-server/index.cjs +6793 -6702
  28. package/dist/core-server/index.d.ts +22 -22
  29. package/dist/core-server/index.js +6943 -6846
  30. package/dist/core-server/presets/common-manager.js +4526 -3375
  31. package/dist/core-server/presets/common-preset.cjs +2303 -2236
  32. package/dist/core-server/presets/common-preset.js +2391 -2320
  33. package/dist/docs-tools/index.cjs +484 -464
  34. package/dist/docs-tools/index.js +781 -768
  35. package/dist/highlight/index.cjs +19 -18
  36. package/dist/highlight/index.d.ts +4 -5
  37. package/dist/highlight/index.js +3 -2
  38. package/dist/highlight/preview.cjs +314 -310
  39. package/dist/highlight/preview.js +296 -292
  40. package/dist/instrumenter/index.cjs +561 -559
  41. package/dist/instrumenter/index.js +1564 -1516
  42. package/dist/manager/globals-module-info.cjs +1 -0
  43. package/dist/manager/globals-module-info.js +1 -0
  44. package/dist/manager/globals-runtime.js +21490 -21341
  45. package/dist/manager/runtime.js +5011 -4777
  46. package/dist/manager-api/index.cjs +2400 -2321
  47. package/dist/manager-api/index.d.ts +12 -1
  48. package/dist/manager-api/index.js +1951 -1903
  49. package/dist/manager-errors.js +37 -41
  50. package/dist/node-logger/index.cjs +25 -25
  51. package/dist/node-logger/index.js +25 -25
  52. package/dist/preview/runtime.js +14090 -14076
  53. package/dist/preview-api/index.cjs +1282 -1262
  54. package/dist/preview-api/index.js +1357 -1353
  55. package/dist/preview-errors.js +152 -173
  56. package/dist/router/index.cjs +1366 -1347
  57. package/dist/router/index.js +594 -575
  58. package/dist/server-errors.cjs +192 -177
  59. package/dist/server-errors.d.ts +11 -1
  60. package/dist/server-errors.js +173 -158
  61. package/dist/telemetry/index.cjs +4934 -1445
  62. package/dist/telemetry/index.d.ts +2 -1
  63. package/dist/telemetry/index.js +4966 -1475
  64. package/dist/test/index.cjs +69 -70
  65. package/dist/test/index.d.ts +1218 -80
  66. package/dist/test/index.js +9760 -9850
  67. package/dist/test/preview.cjs +664 -664
  68. package/dist/test/preview.js +3619 -3679
  69. package/dist/test/spy.cjs +112 -112
  70. package/dist/test/spy.d.ts +2 -6
  71. package/dist/test/spy.js +104 -104
  72. package/dist/theming/create.cjs +2244 -79
  73. package/dist/theming/create.js +951 -67
  74. package/dist/theming/index.cjs +3209 -1067
  75. package/dist/theming/index.js +1816 -947
  76. package/dist/types/index.cjs +4 -4
  77. package/dist/types/index.d.ts +2687 -2593
  78. package/package.json +13 -21
@@ -1,30 +1,2195 @@
1
1
  "use strict";
2
- var l = Object.defineProperty;
3
- var B = Object.getOwnPropertyDescriptor;
4
- var x = Object.getOwnPropertyNames;
5
- var k = Object.prototype.hasOwnProperty;
6
- var a = (e, t) => l(e, "name", { value: t, configurable: !0 });
7
- var T = (e, t) => {
8
- for (var o in t)
9
- l(e, o, { get: t[o], enumerable: !0 });
10
- }, S = (e, t, o, F) => {
11
- if (t && typeof t == "object" || typeof t == "function")
12
- for (let s of x(t))
13
- !k.call(e, s) && s !== o && l(e, s, { get: () => t[s], enumerable: !(F = B(t, s)) || F.enumerable });
2
+ var ur = Object.create;
3
+ var D = Object.defineProperty;
4
+ var sr = Object.getOwnPropertyDescriptor;
5
+ var fr = Object.getOwnPropertyNames;
6
+ var pr = Object.getPrototypeOf, lr = Object.prototype.hasOwnProperty;
7
+ var a = (e, r) => D(e, "name", { value: r, configurable: !0 });
8
+ var F = (e, r) => () => (r || e((r = { exports: {} }).exports, r), r.exports), dr = (e, r) => {
9
+ for (var t in r)
10
+ D(e, t, { get: r[t], enumerable: !0 });
11
+ }, we = (e, r, t, n) => {
12
+ if (r && typeof r == "object" || typeof r == "function")
13
+ for (let o of fr(r))
14
+ !lr.call(e, o) && o !== t && D(e, o, { get: () => r[o], enumerable: !(n = sr(r, o)) || n.enumerable });
14
15
  return e;
15
16
  };
16
- var D = (e) => S(l({}, "__esModule", { value: !0 }), e);
17
+ var Se = (e, r, t) => (t = e != null ? ur(pr(e)) : {}, we(
18
+ // If the importer is in node compatibility mode or this is not an ESM
19
+ // file that has been converted to a CommonJS file using a Babel-
20
+ // compatible transform (i.e. "__esModule" has not been set), then set
21
+ // "default" to the CommonJS "module.exports" for node compatibility.
22
+ r || !e || !e.__esModule ? D(t, "default", { value: e, enumerable: !0 }) : t,
23
+ e
24
+ )), cr = (e) => we(D({}, "__esModule", { value: !0 }), e);
25
+
26
+ // ../node_modules/@babel/runtime/helpers/extends.js
27
+ var Fe = F((za, I) => {
28
+ function ee() {
29
+ return I.exports = ee = Object.assign ? Object.assign.bind() : function(e) {
30
+ for (var r = 1; r < arguments.length; r++) {
31
+ var t = arguments[r];
32
+ for (var n in t) ({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
33
+ }
34
+ return e;
35
+ }, I.exports.__esModule = !0, I.exports.default = I.exports, ee.apply(null, arguments);
36
+ }
37
+ a(ee, "_extends");
38
+ I.exports = ee, I.exports.__esModule = !0, I.exports.default = I.exports;
39
+ });
40
+
41
+ // ../node_modules/@babel/runtime/helpers/assertThisInitialized.js
42
+ var Ce = F((Aa, q) => {
43
+ function mr(e) {
44
+ if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
45
+ return e;
46
+ }
47
+ a(mr, "_assertThisInitialized");
48
+ q.exports = mr, q.exports.__esModule = !0, q.exports.default = q.exports;
49
+ });
50
+
51
+ // ../node_modules/@babel/runtime/helpers/setPrototypeOf.js
52
+ var Z = F((Ra, R) => {
53
+ function re(e, r) {
54
+ return R.exports = re = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {
55
+ return t.__proto__ = n, t;
56
+ }, R.exports.__esModule = !0, R.exports.default = R.exports, re(e, r);
57
+ }
58
+ a(re, "_setPrototypeOf");
59
+ R.exports = re, R.exports.__esModule = !0, R.exports.default = R.exports;
60
+ });
61
+
62
+ // ../node_modules/@babel/runtime/helpers/inheritsLoose.js
63
+ var ze = F((Oa, W) => {
64
+ var gr = Z();
65
+ function hr(e, r) {
66
+ e.prototype = Object.create(r.prototype), e.prototype.constructor = e, gr(e, r);
67
+ }
68
+ a(hr, "_inheritsLoose");
69
+ W.exports = hr, W.exports.__esModule = !0, W.exports.default = W.exports;
70
+ });
71
+
72
+ // ../node_modules/@babel/runtime/helpers/getPrototypeOf.js
73
+ var Te = F((ka, j) => {
74
+ function te(e) {
75
+ return j.exports = te = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
76
+ return r.__proto__ || Object.getPrototypeOf(r);
77
+ }, j.exports.__esModule = !0, j.exports.default = j.exports, te(e);
78
+ }
79
+ a(te, "_getPrototypeOf");
80
+ j.exports = te, j.exports.__esModule = !0, j.exports.default = j.exports;
81
+ });
82
+
83
+ // ../node_modules/@babel/runtime/helpers/isNativeFunction.js
84
+ var Ae = F((Pa, U) => {
85
+ function br(e) {
86
+ try {
87
+ return Function.toString.call(e).indexOf("[native code]") !== -1;
88
+ } catch {
89
+ return typeof e == "function";
90
+ }
91
+ }
92
+ a(br, "_isNativeFunction");
93
+ U.exports = br, U.exports.__esModule = !0, U.exports.default = U.exports;
94
+ });
95
+
96
+ // ../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
97
+ var Re = F((La, O) => {
98
+ function Ie() {
99
+ try {
100
+ var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
101
+ }));
102
+ } catch {
103
+ }
104
+ return (O.exports = Ie = /* @__PURE__ */ a(function() {
105
+ return !!e;
106
+ }, "_isNativeReflectConstruct"), O.exports.__esModule = !0, O.exports.default = O.exports)();
107
+ }
108
+ a(Ie, "_isNativeReflectConstruct");
109
+ O.exports = Ie, O.exports.__esModule = !0, O.exports.default = O.exports;
110
+ });
111
+
112
+ // ../node_modules/@babel/runtime/helpers/construct.js
113
+ var je = F((Ea, V) => {
114
+ var vr = Re(), yr = Z();
115
+ function xr(e, r, t) {
116
+ if (vr()) return Reflect.construct.apply(null, arguments);
117
+ var n = [null];
118
+ n.push.apply(n, r);
119
+ var o = new (e.bind.apply(e, n))();
120
+ return t && yr(o, t.prototype), o;
121
+ }
122
+ a(xr, "_construct");
123
+ V.exports = xr, V.exports.__esModule = !0, V.exports.default = V.exports;
124
+ });
125
+
126
+ // ../node_modules/@babel/runtime/helpers/wrapNativeSuper.js
127
+ var Oe = F((qa, M) => {
128
+ var wr = Te(), Sr = Z(), Fr = Ae(), Cr = je();
129
+ function ne(e) {
130
+ var r = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
131
+ return M.exports = ne = /* @__PURE__ */ a(function(n) {
132
+ if (n === null || !Fr(n)) return n;
133
+ if (typeof n != "function") throw new TypeError("Super expression must either be null or a function");
134
+ if (r !== void 0) {
135
+ if (r.has(n)) return r.get(n);
136
+ r.set(n, o);
137
+ }
138
+ function o() {
139
+ return Cr(n, arguments, wr(this).constructor);
140
+ }
141
+ return a(o, "Wrapper"), o.prototype = Object.create(n.prototype, {
142
+ constructor: {
143
+ value: o,
144
+ enumerable: !1,
145
+ writable: !0,
146
+ configurable: !0
147
+ }
148
+ }), Sr(o, n);
149
+ }, "_wrapNativeSuper"), M.exports.__esModule = !0, M.exports.default = M.exports, ne(e);
150
+ }
151
+ a(ne, "_wrapNativeSuper");
152
+ M.exports = ne, M.exports.__esModule = !0, M.exports.default = M.exports;
153
+ });
154
+
155
+ // ../node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js
156
+ var Me = F((Ua, N) => {
157
+ function zr(e, r) {
158
+ return r || (r = e.slice(0)), e.raw = r, e;
159
+ }
160
+ a(zr, "_taggedTemplateLiteralLoose");
161
+ N.exports = zr, N.exports.__esModule = !0, N.exports.default = N.exports;
162
+ });
163
+
164
+ // ../node_modules/polished/dist/polished.cjs.js
165
+ var he = F((u) => {
166
+ "use strict";
167
+ Object.defineProperty(u, "__esModule", { value: !0 });
168
+ var Tr = Fe(), Ar = Ce(), Ir = ze(), Rr = Oe(), jr = Me();
169
+ function J(e) {
170
+ return e && typeof e == "object" && "default" in e ? e : { default: e };
171
+ }
172
+ a(J, "_interopDefaultLegacy");
173
+ var h = /* @__PURE__ */ J(Tr), Or = /* @__PURE__ */ J(Ar), Mr = /* @__PURE__ */ J(Ir), kr = /* @__PURE__ */ J(Rr), Ge = /* @__PURE__ */ J(
174
+ jr);
175
+ function ke() {
176
+ var e;
177
+ return e = arguments.length - 1, e < 0 || arguments.length <= e ? void 0 : arguments[e];
178
+ }
179
+ a(ke, "last");
180
+ function $r(e) {
181
+ return -e;
182
+ }
183
+ a($r, "negation");
184
+ function Pr(e, r) {
185
+ return e + r;
186
+ }
187
+ a(Pr, "addition");
188
+ function Br(e, r) {
189
+ return e - r;
190
+ }
191
+ a(Br, "subtraction");
192
+ function Lr(e, r) {
193
+ return e * r;
194
+ }
195
+ a(Lr, "multiplication");
196
+ function Hr(e, r) {
197
+ return e / r;
198
+ }
199
+ a(Hr, "division");
200
+ function Er() {
201
+ return Math.max.apply(Math, arguments);
202
+ }
203
+ a(Er, "max");
204
+ function Dr() {
205
+ return Math.min.apply(Math, arguments);
206
+ }
207
+ a(Dr, "min");
208
+ function qr() {
209
+ return Array.of.apply(Array, arguments);
210
+ }
211
+ a(qr, "comma");
212
+ var Wr = {
213
+ symbols: {
214
+ "*": {
215
+ infix: {
216
+ symbol: "*",
217
+ f: Lr,
218
+ notation: "infix",
219
+ precedence: 4,
220
+ rightToLeft: 0,
221
+ argCount: 2
222
+ },
223
+ symbol: "*",
224
+ regSymbol: "\\*"
225
+ },
226
+ "/": {
227
+ infix: {
228
+ symbol: "/",
229
+ f: Hr,
230
+ notation: "infix",
231
+ precedence: 4,
232
+ rightToLeft: 0,
233
+ argCount: 2
234
+ },
235
+ symbol: "/",
236
+ regSymbol: "/"
237
+ },
238
+ "+": {
239
+ infix: {
240
+ symbol: "+",
241
+ f: Pr,
242
+ notation: "infix",
243
+ precedence: 2,
244
+ rightToLeft: 0,
245
+ argCount: 2
246
+ },
247
+ prefix: {
248
+ symbol: "+",
249
+ f: ke,
250
+ notation: "prefix",
251
+ precedence: 3,
252
+ rightToLeft: 0,
253
+ argCount: 1
254
+ },
255
+ symbol: "+",
256
+ regSymbol: "\\+"
257
+ },
258
+ "-": {
259
+ infix: {
260
+ symbol: "-",
261
+ f: Br,
262
+ notation: "infix",
263
+ precedence: 2,
264
+ rightToLeft: 0,
265
+ argCount: 2
266
+ },
267
+ prefix: {
268
+ symbol: "-",
269
+ f: $r,
270
+ notation: "prefix",
271
+ precedence: 3,
272
+ rightToLeft: 0,
273
+ argCount: 1
274
+ },
275
+ symbol: "-",
276
+ regSymbol: "-"
277
+ },
278
+ ",": {
279
+ infix: {
280
+ symbol: ",",
281
+ f: qr,
282
+ notation: "infix",
283
+ precedence: 1,
284
+ rightToLeft: 0,
285
+ argCount: 2
286
+ },
287
+ symbol: ",",
288
+ regSymbol: ","
289
+ },
290
+ "(": {
291
+ prefix: {
292
+ symbol: "(",
293
+ f: ke,
294
+ notation: "prefix",
295
+ precedence: 0,
296
+ rightToLeft: 0,
297
+ argCount: 1
298
+ },
299
+ symbol: "(",
300
+ regSymbol: "\\("
301
+ },
302
+ ")": {
303
+ postfix: {
304
+ symbol: ")",
305
+ f: void 0,
306
+ notation: "postfix",
307
+ precedence: 0,
308
+ rightToLeft: 0,
309
+ argCount: 1
310
+ },
311
+ symbol: ")",
312
+ regSymbol: "\\)"
313
+ },
314
+ min: {
315
+ func: {
316
+ symbol: "min",
317
+ f: Dr,
318
+ notation: "func",
319
+ precedence: 0,
320
+ rightToLeft: 0,
321
+ argCount: 1
322
+ },
323
+ symbol: "min",
324
+ regSymbol: "min\\b"
325
+ },
326
+ max: {
327
+ func: {
328
+ symbol: "max",
329
+ f: Er,
330
+ notation: "func",
331
+ precedence: 0,
332
+ rightToLeft: 0,
333
+ argCount: 1
334
+ },
335
+ symbol: "max",
336
+ regSymbol: "max\\b"
337
+ }
338
+ }
339
+ }, $e = Wr, Ur = {
340
+ 1: `Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation:\
341
+ 0.4, lightness: 0.75 }).
342
+
343
+ `,
344
+ 2: `Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, satu\
345
+ ration: 0.4, lightness: 0.75, alpha: 0.7 }).
346
+
347
+ `,
348
+ 3: `Passed an incorrect argument to a color function, please pass a string representation of a color.
349
+
350
+ `,
351
+ 4: `Couldn't generate valid rgb string from %s, it returned %s.
352
+
353
+ `,
354
+ 5: `Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
355
+
356
+ `,
357
+ 6: `Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, \
358
+ blue: 100 }).
359
+
360
+ `,
361
+ 7: `Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green\
362
+ : 205, blue: 100, alpha: 0.75 }).
363
+
364
+ `,
365
+ 8: `Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
366
+
367
+ `,
368
+ 9: `Please provide a number of steps to the modularScale helper.
369
+
370
+ `,
371
+ 10: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
372
+
373
+ `,
374
+ 11: `Invalid value passed as base to modularScale, expected number or em string but got "%s"
375
+
376
+ `,
377
+ 12: `Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
378
+
379
+ `,
380
+ 13: `Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
381
+
382
+ `,
383
+ 14: `Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
384
+
385
+ `,
386
+ 15: `Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
387
+
388
+ `,
389
+ 16: `You must provide a template to this method.
390
+
391
+ `,
392
+ 17: `You passed an unsupported selector state to this method.
393
+
394
+ `,
395
+ 18: `minScreen and maxScreen must be provided as stringified numbers with the same units.
396
+
397
+ `,
398
+ 19: `fromSize and toSize must be provided as stringified numbers with the same units.
399
+
400
+ `,
401
+ 20: `expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
402
+
403
+ `,
404
+ 21: "expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
405
+ 22: "expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
406
+ 23: `fontFace expects a name of a font-family.
407
+
408
+ `,
409
+ 24: `fontFace expects either the path to the font file(s) or a name of a local copy.
410
+
411
+ `,
412
+ 25: `fontFace expects localFonts to be an array.
413
+
414
+ `,
415
+ 26: `fontFace expects fileFormats to be an array.
416
+
417
+ `,
418
+ 27: `radialGradient requries at least 2 color-stops to properly render.
419
+
420
+ `,
421
+ 28: `Please supply a filename to retinaImage() as the first argument.
422
+
423
+ `,
424
+ 29: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
425
+
426
+ `,
427
+ 30: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
428
+ 31: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
429
+
430
+ `,
431
+ 32: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
432
+ To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
433
+
434
+ `,
435
+ 33: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
436
+
437
+ `,
438
+ 34: `borderRadius expects a radius value as a string or number as the second argument.
439
+
440
+ `,
441
+ 35: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
442
+
443
+ `,
444
+ 36: `Property must be a string value.
445
+
446
+ `,
447
+ 37: `Syntax Error at %s.
448
+
449
+ `,
450
+ 38: `Formula contains a function that needs parentheses at %s.
451
+
452
+ `,
453
+ 39: `Formula is missing closing parenthesis at %s.
454
+
455
+ `,
456
+ 40: `Formula has too many closing parentheses at %s.
457
+
458
+ `,
459
+ 41: `All values in a formula must have the same unit or be unitless.
460
+
461
+ `,
462
+ 42: `Please provide a number of steps to the modularScale helper.
463
+
464
+ `,
465
+ 43: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
466
+
467
+ `,
468
+ 44: `Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
469
+
470
+ `,
471
+ 45: `Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
472
+
473
+ `,
474
+ 46: `Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
475
+
476
+ `,
477
+ 47: `minScreen and maxScreen must be provided as stringified numbers with the same units.
478
+
479
+ `,
480
+ 48: `fromSize and toSize must be provided as stringified numbers with the same units.
481
+
482
+ `,
483
+ 49: `Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
484
+
485
+ `,
486
+ 50: `Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
487
+
488
+ `,
489
+ 51: `Expects the first argument object to have the properties prop, fromSize, and toSize.
490
+
491
+ `,
492
+ 52: `fontFace expects either the path to the font file(s) or a name of a local copy.
493
+
494
+ `,
495
+ 53: `fontFace expects localFonts to be an array.
496
+
497
+ `,
498
+ 54: `fontFace expects fileFormats to be an array.
499
+
500
+ `,
501
+ 55: `fontFace expects a name of a font-family.
502
+
503
+ `,
504
+ 56: `linearGradient requries at least 2 color-stops to properly render.
505
+
506
+ `,
507
+ 57: `radialGradient requries at least 2 color-stops to properly render.
508
+
509
+ `,
510
+ 58: `Please supply a filename to retinaImage() as the first argument.
511
+
512
+ `,
513
+ 59: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
514
+
515
+ `,
516
+ 60: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
517
+ 61: `Property must be a string value.
518
+
519
+ `,
520
+ 62: `borderRadius expects a radius value as a string or number as the second argument.
521
+
522
+ `,
523
+ 63: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
524
+
525
+ `,
526
+ 64: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
527
+
528
+ `,
529
+ 65: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animat\
530
+ ion please supply them in simple values, e.g. animation('rotate', '2s').
531
+
532
+ `,
533
+ 66: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
534
+
535
+ `,
536
+ 67: `You must provide a template to this method.
537
+
538
+ `,
539
+ 68: `You passed an unsupported selector state to this method.
540
+
541
+ `,
542
+ 69: `Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
543
+
544
+ `,
545
+ 70: `Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
546
+
547
+ `,
548
+ 71: `Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
549
+
550
+ `,
551
+ 72: `Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
552
+
553
+ `,
554
+ 73: `Please provide a valid CSS variable.
555
+
556
+ `,
557
+ 74: `CSS variable not found and no default was provided.
558
+
559
+ `,
560
+ 75: `important requires a valid style object, got a %s instead.
561
+
562
+ `,
563
+ 76: `fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
564
+
565
+ `,
566
+ 77: `remToPx expects a value in "rem" but you provided it in "%s".
567
+
568
+ `,
569
+ 78: `base must be set in "px" or "%" but you set it in "%s".
570
+ `
571
+ };
572
+ function Vr() {
573
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
574
+ r[t] = arguments[t];
575
+ var n = r[0], o = [], i;
576
+ for (i = 1; i < r.length; i += 1)
577
+ o.push(r[i]);
578
+ return o.forEach(function(s) {
579
+ n = n.replace(/%[a-z]/, s);
580
+ }), n;
581
+ }
582
+ a(Vr, "format");
583
+ var p = /* @__PURE__ */ function(e) {
584
+ Mr.default(r, e);
585
+ function r(t) {
586
+ var n;
587
+ if (process.env.NODE_ENV === "production")
588
+ n = e.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + t +
589
+ " for more information.") || this;
590
+ else {
591
+ for (var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), s = 1; s < o; s++)
592
+ i[s - 1] = arguments[s];
593
+ n = e.call(this, Vr.apply(void 0, [Ur[t]].concat(i))) || this;
594
+ }
595
+ return Or.default(n);
596
+ }
597
+ return a(r, "PolishedError"), r;
598
+ }(/* @__PURE__ */ kr.default(Error)), Pe = /((?!\w)a|na|hc|mc|dg|me[r]?|xe|ni(?![a-zA-Z])|mm|cp|tp|xp|q(?!s)|hv|xamv|nimv|wv|sm|s(?!\D|$)|ged|darg?|nrut)/g;
599
+ function Nr(e) {
600
+ var r = {};
601
+ return r.symbols = e ? h.default({}, $e.symbols, e.symbols) : h.default({}, $e.symbols), r;
602
+ }
603
+ a(Nr, "mergeSymbolMaps");
604
+ function Be(e, r) {
605
+ var t, n = e.pop();
606
+ return r.push(n.f.apply(n, (t = []).concat.apply(t, r.splice(-n.argCount)))), n.precedence;
607
+ }
608
+ a(Be, "exec");
609
+ function Gr(e, r) {
610
+ var t = Nr(r), n, o = [t.symbols["("].prefix], i = [], s = new RegExp(
611
+ // Pattern for numbers
612
+ "\\d+(?:\\.\\d+)?|" + // ...and patterns for individual operators/function names
613
+ Object.keys(t.symbols).map(function(v) {
614
+ return t.symbols[v];
615
+ }).sort(function(v, T) {
616
+ return T.symbol.length - v.symbol.length;
617
+ }).map(function(v) {
618
+ return v.regSymbol;
619
+ }).join("|") + "|(\\S)",
620
+ "g"
621
+ );
622
+ s.lastIndex = 0;
623
+ var f = !1;
624
+ do {
625
+ n = s.exec(e);
626
+ var l = n || [")", void 0], c = l[0], b = l[1], d = t.symbols[c], m = d && !d.prefix && !d.func, x = !d || !d.postfix && !d.infix;
627
+ if (b || (f ? x : m))
628
+ throw new p(37, n ? n.index : e.length, e);
629
+ if (f) {
630
+ var w = d.postfix || d.infix;
631
+ do {
632
+ var z = o[o.length - 1];
633
+ if ((w.precedence - z.precedence || z.rightToLeft) > 0) break;
634
+ } while (Be(o, i));
635
+ f = w.notation === "postfix", w.symbol !== ")" && (o.push(w), f && Be(o, i));
636
+ } else if (d) {
637
+ if (o.push(d.prefix || d.func), d.func && (n = s.exec(e), !n || n[0] !== "("))
638
+ throw new p(38, n ? n.index : e.length, e);
639
+ } else
640
+ i.push(+c), f = !0;
641
+ } while (n && o.length);
642
+ if (o.length)
643
+ throw new p(39, n ? n.index : e.length, e);
644
+ if (n)
645
+ throw new p(40, n ? n.index : e.length, e);
646
+ return i.pop();
647
+ }
648
+ a(Gr, "calculate");
649
+ function ae(e) {
650
+ return e.split("").reverse().join("");
651
+ }
652
+ a(ae, "reverseString");
653
+ function Qr(e, r) {
654
+ var t = ae(e), n = t.match(Pe);
655
+ if (n && !n.every(function(i) {
656
+ return i === n[0];
657
+ }))
658
+ throw new p(41);
659
+ var o = ae(t.replace(Pe, ""));
660
+ return "" + Gr(o, r) + (n ? ae(n[0]) : "");
661
+ }
662
+ a(Qr, "math");
663
+ var Yr = /--[\S]*/g;
664
+ function Jr(e, r) {
665
+ if (!e || !e.match(Yr))
666
+ throw new p(73);
667
+ var t;
668
+ if (typeof document < "u" && document.documentElement !== null && (t = getComputedStyle(document.documentElement).getPropertyValue(e)), t)
669
+ return t.trim();
670
+ if (r)
671
+ return r;
672
+ throw new p(74);
673
+ }
674
+ a(Jr, "cssVar");
675
+ function G(e) {
676
+ return e.charAt(0).toUpperCase() + e.slice(1);
677
+ }
678
+ a(G, "capitalizeString");
679
+ var Zr = ["Top", "Right", "Bottom", "Left"];
680
+ function Xr(e, r) {
681
+ if (!e) return r.toLowerCase();
682
+ var t = e.split("-");
683
+ if (t.length > 1)
684
+ return t.splice(1, 0, r), t.reduce(function(o, i) {
685
+ return "" + o + G(i);
686
+ });
687
+ var n = e.replace(/([a-z])([A-Z])/g, "$1" + r + "$2");
688
+ return e === n ? "" + e + r : n;
689
+ }
690
+ a(Xr, "generateProperty");
691
+ function Kr(e, r) {
692
+ for (var t = {}, n = 0; n < r.length; n += 1)
693
+ (r[n] || r[n] === 0) && (t[Xr(e, Zr[n])] = r[n]);
694
+ return t;
695
+ }
696
+ a(Kr, "generateStyles");
697
+ function $(e) {
698
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
699
+ t[n - 1] = arguments[n];
700
+ var o = t[0], i = t[1], s = i === void 0 ? o : i, f = t[2], l = f === void 0 ? o : f, c = t[3], b = c === void 0 ? s : c, d = [o, s, l, b];
701
+ return Kr(e, d);
702
+ }
703
+ a($, "directionalProperty");
704
+ function Le(e, r) {
705
+ return e.substr(-r.length) === r;
706
+ }
707
+ a(Le, "endsWith");
708
+ var _r = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;
709
+ function se(e) {
710
+ if (typeof e != "string") return e;
711
+ var r = e.match(_r);
712
+ return r ? parseFloat(e) : e;
713
+ }
714
+ a(se, "stripUnit");
715
+ var et = /* @__PURE__ */ a(function(r) {
716
+ return function(t, n) {
717
+ n === void 0 && (n = "16px");
718
+ var o = t, i = n;
719
+ if (typeof t == "string") {
720
+ if (!Le(t, "px"))
721
+ throw new p(69, r, t);
722
+ o = se(t);
723
+ }
724
+ if (typeof n == "string") {
725
+ if (!Le(n, "px"))
726
+ throw new p(70, r, n);
727
+ i = se(n);
728
+ }
729
+ if (typeof o == "string")
730
+ throw new p(71, t, r);
731
+ if (typeof i == "string")
732
+ throw new p(72, n, r);
733
+ return "" + o / i + r;
734
+ };
735
+ }, "pxtoFactory"), Qe = et, rt = Qe("em"), tt = rt, nt = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;
736
+ function A(e) {
737
+ if (typeof e != "string") return [e, ""];
738
+ var r = e.match(nt);
739
+ return r ? [parseFloat(e), r[2]] : [e, void 0];
740
+ }
741
+ a(A, "getValueAndUnit");
742
+ function Ye(e, r) {
743
+ if (typeof e != "object" || e === null)
744
+ throw new p(75, typeof e);
745
+ var t = {};
746
+ return Object.keys(e).forEach(function(n) {
747
+ typeof e[n] == "object" && e[n] !== null ? t[n] = Ye(e[n], r) : !r || r && (r === n || r.indexOf(n) >= 0) ? t[n] = e[n] + " !important" :
748
+ t[n] = e[n];
749
+ }), t;
750
+ }
751
+ a(Ye, "important");
752
+ var Je = {
753
+ minorSecond: 1.067,
754
+ majorSecond: 1.125,
755
+ minorThird: 1.2,
756
+ majorThird: 1.25,
757
+ perfectFourth: 1.333,
758
+ augFourth: 1.414,
759
+ perfectFifth: 1.5,
760
+ minorSixth: 1.6,
761
+ goldenSection: 1.618,
762
+ majorSixth: 1.667,
763
+ minorSeventh: 1.778,
764
+ majorSeventh: 1.875,
765
+ octave: 2,
766
+ majorTenth: 2.5,
767
+ majorEleventh: 2.667,
768
+ majorTwelfth: 3,
769
+ doubleOctave: 4
770
+ };
771
+ function at(e) {
772
+ return Je[e];
773
+ }
774
+ a(at, "getRatio");
775
+ function ot(e, r, t) {
776
+ if (r === void 0 && (r = "1em"), t === void 0 && (t = 1.333), typeof e != "number")
777
+ throw new p(42);
778
+ if (typeof t == "string" && !Je[t])
779
+ throw new p(43);
780
+ var n = typeof r == "string" ? A(r) : [r, ""], o = n[0], i = n[1], s = typeof t == "string" ? at(t) : t;
781
+ if (typeof o == "string")
782
+ throw new p(44, r);
783
+ return "" + o * Math.pow(s, e) + (i || "");
784
+ }
785
+ a(ot, "modularScale");
786
+ var it = Qe("rem"), ut = it, fe = 16;
787
+ function Ze(e) {
788
+ var r = A(e);
789
+ if (r[1] === "px")
790
+ return parseFloat(e);
791
+ if (r[1] === "%")
792
+ return parseFloat(e) / 100 * fe;
793
+ throw new p(78, r[1]);
794
+ }
795
+ a(Ze, "convertBase");
796
+ function st() {
797
+ if (typeof document < "u" && document.documentElement !== null) {
798
+ var e = getComputedStyle(document.documentElement).fontSize;
799
+ return e ? Ze(e) : fe;
800
+ }
801
+ return fe;
802
+ }
803
+ a(st, "getBaseFromDoc");
804
+ function ft(e, r) {
805
+ var t = A(e);
806
+ if (t[1] !== "rem" && t[1] !== "")
807
+ throw new p(77, t[1]);
808
+ var n = r ? Ze(r) : st();
809
+ return t[0] * n + "px";
810
+ }
811
+ a(ft, "remToPx");
812
+ var pt = {
813
+ back: "cubic-bezier(0.600, -0.280, 0.735, 0.045)",
814
+ circ: "cubic-bezier(0.600, 0.040, 0.980, 0.335)",
815
+ cubic: "cubic-bezier(0.550, 0.055, 0.675, 0.190)",
816
+ expo: "cubic-bezier(0.950, 0.050, 0.795, 0.035)",
817
+ quad: "cubic-bezier(0.550, 0.085, 0.680, 0.530)",
818
+ quart: "cubic-bezier(0.895, 0.030, 0.685, 0.220)",
819
+ quint: "cubic-bezier(0.755, 0.050, 0.855, 0.060)",
820
+ sine: "cubic-bezier(0.470, 0.000, 0.745, 0.715)"
821
+ };
822
+ function lt(e) {
823
+ return pt[e.toLowerCase().trim()];
824
+ }
825
+ a(lt, "easeIn");
826
+ var dt = {
827
+ back: "cubic-bezier(0.680, -0.550, 0.265, 1.550)",
828
+ circ: "cubic-bezier(0.785, 0.135, 0.150, 0.860)",
829
+ cubic: "cubic-bezier(0.645, 0.045, 0.355, 1.000)",
830
+ expo: "cubic-bezier(1.000, 0.000, 0.000, 1.000)",
831
+ quad: "cubic-bezier(0.455, 0.030, 0.515, 0.955)",
832
+ quart: "cubic-bezier(0.770, 0.000, 0.175, 1.000)",
833
+ quint: "cubic-bezier(0.860, 0.000, 0.070, 1.000)",
834
+ sine: "cubic-bezier(0.445, 0.050, 0.550, 0.950)"
835
+ };
836
+ function ct(e) {
837
+ return dt[e.toLowerCase().trim()];
838
+ }
839
+ a(ct, "easeInOut");
840
+ var mt = {
841
+ back: "cubic-bezier(0.175, 0.885, 0.320, 1.275)",
842
+ cubic: "cubic-bezier(0.215, 0.610, 0.355, 1.000)",
843
+ circ: "cubic-bezier(0.075, 0.820, 0.165, 1.000)",
844
+ expo: "cubic-bezier(0.190, 1.000, 0.220, 1.000)",
845
+ quad: "cubic-bezier(0.250, 0.460, 0.450, 0.940)",
846
+ quart: "cubic-bezier(0.165, 0.840, 0.440, 1.000)",
847
+ quint: "cubic-bezier(0.230, 1.000, 0.320, 1.000)",
848
+ sine: "cubic-bezier(0.390, 0.575, 0.565, 1.000)"
849
+ };
850
+ function gt(e) {
851
+ return mt[e.toLowerCase().trim()];
852
+ }
853
+ a(gt, "easeOut");
854
+ function pe(e, r, t, n) {
855
+ t === void 0 && (t = "320px"), n === void 0 && (n = "1200px");
856
+ var o = A(e), i = o[0], s = o[1], f = A(r), l = f[0], c = f[1], b = A(t), d = b[0], m = b[1], x = A(n), w = x[0], z = x[1];
857
+ if (typeof d != "number" || typeof w != "number" || !m || !z || m !== z)
858
+ throw new p(47);
859
+ if (typeof i != "number" || typeof l != "number" || s !== c)
860
+ throw new p(48);
861
+ if (s !== m || c !== z)
862
+ throw new p(76);
863
+ var v = (i - l) / (d - w), T = l - v * w;
864
+ return "calc(" + T.toFixed(2) + (s || "") + " + " + (100 * v).toFixed(2) + "vw)";
865
+ }
866
+ a(pe, "between");
867
+ function ht(e) {
868
+ var r;
869
+ e === void 0 && (e = "&");
870
+ var t = e + "::after";
871
+ return r = {}, r[t] = {
872
+ clear: "both",
873
+ content: '""',
874
+ display: "table"
875
+ }, r;
876
+ }
877
+ a(ht, "clearFix");
878
+ function bt(e) {
879
+ return e === void 0 && (e = 0), {
880
+ position: "absolute",
881
+ top: e,
882
+ right: e,
883
+ bottom: e,
884
+ left: e
885
+ };
886
+ }
887
+ a(bt, "cover");
888
+ function vt(e, r) {
889
+ r === void 0 && (r = 1);
890
+ var t = {
891
+ display: "inline-block",
892
+ maxWidth: e || "100%",
893
+ overflow: "hidden",
894
+ textOverflow: "ellipsis",
895
+ whiteSpace: "nowrap",
896
+ wordWrap: "normal"
897
+ };
898
+ return r > 1 ? h.default({}, t, {
899
+ WebkitBoxOrient: "vertical",
900
+ WebkitLineClamp: r,
901
+ display: "-webkit-box",
902
+ whiteSpace: "normal"
903
+ }) : t;
904
+ }
905
+ a(vt, "ellipsis");
906
+ function yt(e, r) {
907
+ var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
908
+ if (t) return (t = t.call(e)).next.bind(t);
909
+ if (Array.isArray(e) || (t = xt(e)) || r && e && typeof e.length == "number") {
910
+ t && (e = t);
911
+ var n = 0;
912
+ return function() {
913
+ return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
914
+ };
915
+ }
916
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
917
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
918
+ }
919
+ a(yt, "_createForOfIteratorHelperLoose");
920
+ function xt(e, r) {
921
+ if (e) {
922
+ if (typeof e == "string") return He(e, r);
923
+ var t = Object.prototype.toString.call(e).slice(8, -1);
924
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
925
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return He(e, r);
926
+ }
927
+ }
928
+ a(xt, "_unsupportedIterableToArray");
929
+ function He(e, r) {
930
+ (r == null || r > e.length) && (r = e.length);
931
+ for (var t = 0, n = new Array(r); t < r; t++) n[t] = e[t];
932
+ return n;
933
+ }
934
+ a(He, "_arrayLikeToArray");
935
+ function wt(e, r, t) {
936
+ if (r === void 0 && (r = "320px"), t === void 0 && (t = "1200px"), !Array.isArray(e) && typeof e != "object" || e === null)
937
+ throw new p(49);
938
+ if (Array.isArray(e)) {
939
+ for (var n = {}, o = {}, i = yt(e), s; !(s = i()).done; ) {
940
+ var f, l, c = s.value;
941
+ if (!c.prop || !c.fromSize || !c.toSize)
942
+ throw new p(50);
943
+ o[c.prop] = c.fromSize, n["@media (min-width: " + r + ")"] = h.default({}, n["@media (min-width: " + r + ")"], (f = {}, f[c.prop] = pe(
944
+ c.fromSize, c.toSize, r, t), f)), n["@media (min-width: " + t + ")"] = h.default({}, n["@media (min-width: " + t + ")"], (l = {}, l[c.
945
+ prop] = c.toSize, l));
946
+ }
947
+ return h.default({}, o, n);
948
+ } else {
949
+ var b, d, m;
950
+ if (!e.prop || !e.fromSize || !e.toSize)
951
+ throw new p(51);
952
+ return m = {}, m[e.prop] = e.fromSize, m["@media (min-width: " + r + ")"] = (b = {}, b[e.prop] = pe(e.fromSize, e.toSize, r, t), b), m["\
953
+ @media (min-width: " + t + ")"] = (d = {}, d[e.prop] = e.toSize, d), m;
954
+ }
955
+ }
956
+ a(wt, "fluidRange");
957
+ var St = /^\s*data:([a-z]+\/[a-z-]+(;[a-z-]+=[a-z-]+)?)?(;charset=[a-z0-9-]+)?(;base64)?,[a-z0-9!$&',()*+,;=\-._~:@/?%\s]*\s*$/i, Ft = {
958
+ woff: "woff",
959
+ woff2: "woff2",
960
+ ttf: "truetype",
961
+ otf: "opentype",
962
+ eot: "embedded-opentype",
963
+ svg: "svg",
964
+ svgz: "svg"
965
+ };
966
+ function Ee(e, r) {
967
+ return r ? ' format("' + Ft[e] + '")' : "";
968
+ }
969
+ a(Ee, "generateFormatHint");
970
+ function Ct(e) {
971
+ return !!e.replace(/\s+/g, " ").match(St);
972
+ }
973
+ a(Ct, "isDataURI");
974
+ function zt(e, r, t) {
975
+ if (Ct(e))
976
+ return 'url("' + e + '")' + Ee(r[0], t);
977
+ var n = r.map(function(o) {
978
+ return 'url("' + e + "." + o + '")' + Ee(o, t);
979
+ });
980
+ return n.join(", ");
981
+ }
982
+ a(zt, "generateFileReferences");
983
+ function Tt(e) {
984
+ var r = e.map(function(t) {
985
+ return 'local("' + t + '")';
986
+ });
987
+ return r.join(", ");
988
+ }
989
+ a(Tt, "generateLocalReferences");
990
+ function At(e, r, t, n) {
991
+ var o = [];
992
+ return r && o.push(Tt(r)), e && o.push(zt(e, t, n)), o.join(", ");
993
+ }
994
+ a(At, "generateSources");
995
+ function It(e) {
996
+ var r = e.fontFamily, t = e.fontFilePath, n = e.fontStretch, o = e.fontStyle, i = e.fontVariant, s = e.fontWeight, f = e.fileFormats, l = f ===
997
+ void 0 ? ["eot", "woff2", "woff", "ttf", "svg"] : f, c = e.formatHint, b = c === void 0 ? !1 : c, d = e.localFonts, m = d === void 0 ? [
998
+ r] : d, x = e.unicodeRange, w = e.fontDisplay, z = e.fontVariationSettings, v = e.fontFeatureSettings;
999
+ if (!r) throw new p(55);
1000
+ if (!t && !m)
1001
+ throw new p(52);
1002
+ if (m && !Array.isArray(m))
1003
+ throw new p(53);
1004
+ if (!Array.isArray(l))
1005
+ throw new p(54);
1006
+ var T = {
1007
+ "@font-face": {
1008
+ fontFamily: r,
1009
+ src: At(t, m, l, b),
1010
+ unicodeRange: x,
1011
+ fontStretch: n,
1012
+ fontStyle: o,
1013
+ fontVariant: i,
1014
+ fontWeight: s,
1015
+ fontDisplay: w,
1016
+ fontVariationSettings: z,
1017
+ fontFeatureSettings: v
1018
+ }
1019
+ };
1020
+ return JSON.parse(JSON.stringify(T));
1021
+ }
1022
+ a(It, "fontFace");
1023
+ function Rt() {
1024
+ return {
1025
+ textIndent: "101%",
1026
+ overflow: "hidden",
1027
+ whiteSpace: "nowrap"
1028
+ };
1029
+ }
1030
+ a(Rt, "hideText");
1031
+ function jt() {
1032
+ return {
1033
+ border: "0",
1034
+ clip: "rect(0 0 0 0)",
1035
+ height: "1px",
1036
+ margin: "-1px",
1037
+ overflow: "hidden",
1038
+ padding: "0",
1039
+ position: "absolute",
1040
+ whiteSpace: "nowrap",
1041
+ width: "1px"
1042
+ };
1043
+ }
1044
+ a(jt, "hideVisually");
1045
+ function Xe(e) {
1046
+ return e === void 0 && (e = 1.3), `
1047
+ @media only screen and (-webkit-min-device-pixel-ratio: ` + e + `),
1048
+ only screen and (min--moz-device-pixel-ratio: ` + e + `),
1049
+ only screen and (-o-min-device-pixel-ratio: ` + e + `/1),
1050
+ only screen and (min-resolution: ` + Math.round(e * 96) + `dpi),
1051
+ only screen and (min-resolution: ` + e + `dppx)
1052
+ `;
1053
+ }
1054
+ a(Xe, "hiDPI");
1055
+ function Ke(e) {
1056
+ for (var r = "", t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
1057
+ n[o - 1] = arguments[o];
1058
+ for (var i = 0; i < e.length; i += 1)
1059
+ if (r += e[i], i === n.length - 1 && n[i]) {
1060
+ var s = n.filter(function(f) {
1061
+ return !!f;
1062
+ });
1063
+ s.length > 1 ? (r = r.slice(0, -1), r += ", " + n[i]) : s.length === 1 && (r += "" + n[i]);
1064
+ } else n[i] && (r += n[i] + " ");
1065
+ return r.trim();
1066
+ }
1067
+ a(Ke, "constructGradientValue");
1068
+ var De;
1069
+ function Ot(e) {
1070
+ var r = e.colorStops, t = e.fallback, n = e.toDirection, o = n === void 0 ? "" : n;
1071
+ if (!r || r.length < 2)
1072
+ throw new p(56);
1073
+ return {
1074
+ backgroundColor: t || r[0].replace(/,\s+/g, ",").split(" ")[0].replace(/,(?=\S)/g, ", "),
1075
+ backgroundImage: Ke(De || (De = Ge.default(["linear-gradient(", "", ")"])), o, r.join(", ").replace(/,(?=\S)/g, ", "))
1076
+ };
1077
+ }
1078
+ a(Ot, "linearGradient");
1079
+ function Mt() {
1080
+ var e;
1081
+ return [(e = {
1082
+ html: {
1083
+ lineHeight: "1.15",
1084
+ textSizeAdjust: "100%"
1085
+ },
1086
+ body: {
1087
+ margin: "0"
1088
+ },
1089
+ main: {
1090
+ display: "block"
1091
+ },
1092
+ h1: {
1093
+ fontSize: "2em",
1094
+ margin: "0.67em 0"
1095
+ },
1096
+ hr: {
1097
+ boxSizing: "content-box",
1098
+ height: "0",
1099
+ overflow: "visible"
1100
+ },
1101
+ pre: {
1102
+ fontFamily: "monospace, monospace",
1103
+ fontSize: "1em"
1104
+ },
1105
+ a: {
1106
+ backgroundColor: "transparent"
1107
+ },
1108
+ "abbr[title]": {
1109
+ borderBottom: "none",
1110
+ textDecoration: "underline"
1111
+ }
1112
+ }, e[`b,
1113
+ strong`] = {
1114
+ fontWeight: "bolder"
1115
+ }, e[`code,
1116
+ kbd,
1117
+ samp`] = {
1118
+ fontFamily: "monospace, monospace",
1119
+ fontSize: "1em"
1120
+ }, e.small = {
1121
+ fontSize: "80%"
1122
+ }, e[`sub,
1123
+ sup`] = {
1124
+ fontSize: "75%",
1125
+ lineHeight: "0",
1126
+ position: "relative",
1127
+ verticalAlign: "baseline"
1128
+ }, e.sub = {
1129
+ bottom: "-0.25em"
1130
+ }, e.sup = {
1131
+ top: "-0.5em"
1132
+ }, e.img = {
1133
+ borderStyle: "none"
1134
+ }, e[`button,
1135
+ input,
1136
+ optgroup,
1137
+ select,
1138
+ textarea`] = {
1139
+ fontFamily: "inherit",
1140
+ fontSize: "100%",
1141
+ lineHeight: "1.15",
1142
+ margin: "0"
1143
+ }, e[`button,
1144
+ input`] = {
1145
+ overflow: "visible"
1146
+ }, e[`button,
1147
+ select`] = {
1148
+ textTransform: "none"
1149
+ }, e[`button,
1150
+ html [type="button"],
1151
+ [type="reset"],
1152
+ [type="submit"]`] = {
1153
+ WebkitAppearance: "button"
1154
+ }, e[`button::-moz-focus-inner,
1155
+ [type="button"]::-moz-focus-inner,
1156
+ [type="reset"]::-moz-focus-inner,
1157
+ [type="submit"]::-moz-focus-inner`] = {
1158
+ borderStyle: "none",
1159
+ padding: "0"
1160
+ }, e[`button:-moz-focusring,
1161
+ [type="button"]:-moz-focusring,
1162
+ [type="reset"]:-moz-focusring,
1163
+ [type="submit"]:-moz-focusring`] = {
1164
+ outline: "1px dotted ButtonText"
1165
+ }, e.fieldset = {
1166
+ padding: "0.35em 0.625em 0.75em"
1167
+ }, e.legend = {
1168
+ boxSizing: "border-box",
1169
+ color: "inherit",
1170
+ display: "table",
1171
+ maxWidth: "100%",
1172
+ padding: "0",
1173
+ whiteSpace: "normal"
1174
+ }, e.progress = {
1175
+ verticalAlign: "baseline"
1176
+ }, e.textarea = {
1177
+ overflow: "auto"
1178
+ }, e[`[type="checkbox"],
1179
+ [type="radio"]`] = {
1180
+ boxSizing: "border-box",
1181
+ padding: "0"
1182
+ }, e[`[type="number"]::-webkit-inner-spin-button,
1183
+ [type="number"]::-webkit-outer-spin-button`] = {
1184
+ height: "auto"
1185
+ }, e['[type="search"]'] = {
1186
+ WebkitAppearance: "textfield",
1187
+ outlineOffset: "-2px"
1188
+ }, e['[type="search"]::-webkit-search-decoration'] = {
1189
+ WebkitAppearance: "none"
1190
+ }, e["::-webkit-file-upload-button"] = {
1191
+ WebkitAppearance: "button",
1192
+ font: "inherit"
1193
+ }, e.details = {
1194
+ display: "block"
1195
+ }, e.summary = {
1196
+ display: "list-item"
1197
+ }, e.template = {
1198
+ display: "none"
1199
+ }, e["[hidden]"] = {
1200
+ display: "none"
1201
+ }, e), {
1202
+ "abbr[title]": {
1203
+ textDecoration: "underline dotted"
1204
+ }
1205
+ }];
1206
+ }
1207
+ a(Mt, "normalize");
1208
+ var qe;
1209
+ function kt(e) {
1210
+ var r = e.colorStops, t = e.extent, n = t === void 0 ? "" : t, o = e.fallback, i = e.position, s = i === void 0 ? "" : i, f = e.shape, l = f ===
1211
+ void 0 ? "" : f;
1212
+ if (!r || r.length < 2)
1213
+ throw new p(57);
1214
+ return {
1215
+ backgroundColor: o || r[0].split(" ")[0],
1216
+ backgroundImage: Ke(qe || (qe = Ge.default(["radial-gradient(", "", "", "", ")"])), s, l, n, r.join(", "))
1217
+ };
1218
+ }
1219
+ a(kt, "radialGradient");
1220
+ function $t(e, r, t, n, o) {
1221
+ var i;
1222
+ if (t === void 0 && (t = "png"), o === void 0 && (o = "_2x"), !e)
1223
+ throw new p(58);
1224
+ var s = t.replace(/^\./, ""), f = n ? n + "." + s : "" + e + o + "." + s;
1225
+ return i = {
1226
+ backgroundImage: "url(" + e + "." + s + ")"
1227
+ }, i[Xe()] = h.default({
1228
+ backgroundImage: "url(" + f + ")"
1229
+ }, r ? {
1230
+ backgroundSize: r
1231
+ } : {}), i;
1232
+ }
1233
+ a($t, "retinaImage");
1234
+ var Pt = {
1235
+ easeInBack: "cubic-bezier(0.600, -0.280, 0.735, 0.045)",
1236
+ easeInCirc: "cubic-bezier(0.600, 0.040, 0.980, 0.335)",
1237
+ easeInCubic: "cubic-bezier(0.550, 0.055, 0.675, 0.190)",
1238
+ easeInExpo: "cubic-bezier(0.950, 0.050, 0.795, 0.035)",
1239
+ easeInQuad: "cubic-bezier(0.550, 0.085, 0.680, 0.530)",
1240
+ easeInQuart: "cubic-bezier(0.895, 0.030, 0.685, 0.220)",
1241
+ easeInQuint: "cubic-bezier(0.755, 0.050, 0.855, 0.060)",
1242
+ easeInSine: "cubic-bezier(0.470, 0.000, 0.745, 0.715)",
1243
+ easeOutBack: "cubic-bezier(0.175, 0.885, 0.320, 1.275)",
1244
+ easeOutCubic: "cubic-bezier(0.215, 0.610, 0.355, 1.000)",
1245
+ easeOutCirc: "cubic-bezier(0.075, 0.820, 0.165, 1.000)",
1246
+ easeOutExpo: "cubic-bezier(0.190, 1.000, 0.220, 1.000)",
1247
+ easeOutQuad: "cubic-bezier(0.250, 0.460, 0.450, 0.940)",
1248
+ easeOutQuart: "cubic-bezier(0.165, 0.840, 0.440, 1.000)",
1249
+ easeOutQuint: "cubic-bezier(0.230, 1.000, 0.320, 1.000)",
1250
+ easeOutSine: "cubic-bezier(0.390, 0.575, 0.565, 1.000)",
1251
+ easeInOutBack: "cubic-bezier(0.680, -0.550, 0.265, 1.550)",
1252
+ easeInOutCirc: "cubic-bezier(0.785, 0.135, 0.150, 0.860)",
1253
+ easeInOutCubic: "cubic-bezier(0.645, 0.045, 0.355, 1.000)",
1254
+ easeInOutExpo: "cubic-bezier(1.000, 0.000, 0.000, 1.000)",
1255
+ easeInOutQuad: "cubic-bezier(0.455, 0.030, 0.515, 0.955)",
1256
+ easeInOutQuart: "cubic-bezier(0.770, 0.000, 0.175, 1.000)",
1257
+ easeInOutQuint: "cubic-bezier(0.860, 0.000, 0.070, 1.000)",
1258
+ easeInOutSine: "cubic-bezier(0.445, 0.050, 0.550, 0.950)"
1259
+ };
1260
+ function Bt(e) {
1261
+ return Pt[e];
1262
+ }
1263
+ a(Bt, "getTimingFunction");
1264
+ function Lt(e) {
1265
+ return Bt(e);
1266
+ }
1267
+ a(Lt, "timingFunctions");
1268
+ var Ht = /* @__PURE__ */ a(function(r, t, n) {
1269
+ var o = "" + n[0] + (n[1] || ""), i = "" + n[0] / 2 + (n[1] || ""), s = "" + t[0] + (t[1] || ""), f = "" + t[0] / 2 + (t[1] || "");
1270
+ switch (r) {
1271
+ case "top":
1272
+ return "0 " + i + " " + s + " " + i;
1273
+ case "topLeft":
1274
+ return o + " " + s + " 0 0";
1275
+ case "left":
1276
+ return f + " " + o + " " + f + " 0";
1277
+ case "bottomLeft":
1278
+ return o + " 0 0 " + s;
1279
+ case "bottom":
1280
+ return s + " " + i + " 0 " + i;
1281
+ case "bottomRight":
1282
+ return "0 0 " + o + " " + s;
1283
+ case "right":
1284
+ return f + " 0 " + f + " " + o;
1285
+ case "topRight":
1286
+ default:
1287
+ return "0 " + o + " " + s + " 0";
1288
+ }
1289
+ }, "getBorderWidth"), Et = /* @__PURE__ */ a(function(r, t) {
1290
+ switch (r) {
1291
+ case "top":
1292
+ case "bottomRight":
1293
+ return {
1294
+ borderBottomColor: t
1295
+ };
1296
+ case "right":
1297
+ case "bottomLeft":
1298
+ return {
1299
+ borderLeftColor: t
1300
+ };
1301
+ case "bottom":
1302
+ case "topLeft":
1303
+ return {
1304
+ borderTopColor: t
1305
+ };
1306
+ case "left":
1307
+ case "topRight":
1308
+ return {
1309
+ borderRightColor: t
1310
+ };
1311
+ default:
1312
+ throw new p(59);
1313
+ }
1314
+ }, "getBorderColor");
1315
+ function Dt(e) {
1316
+ var r = e.pointingDirection, t = e.height, n = e.width, o = e.foregroundColor, i = e.backgroundColor, s = i === void 0 ? "transparent" :
1317
+ i, f = A(n), l = A(t);
1318
+ if (isNaN(l[0]) || isNaN(f[0]))
1319
+ throw new p(60);
1320
+ return h.default({
1321
+ width: "0",
1322
+ height: "0",
1323
+ borderColor: s
1324
+ }, Et(r, o), {
1325
+ borderStyle: "solid",
1326
+ borderWidth: Ht(r, l, f)
1327
+ });
1328
+ }
1329
+ a(Dt, "triangle");
1330
+ function qt(e) {
1331
+ e === void 0 && (e = "break-word");
1332
+ var r = e === "break-word" ? "break-all" : e;
1333
+ return {
1334
+ overflowWrap: e,
1335
+ wordWrap: e,
1336
+ wordBreak: r
1337
+ };
1338
+ }
1339
+ a(qt, "wordWrap");
1340
+ function oe(e) {
1341
+ return Math.round(e * 255);
1342
+ }
1343
+ a(oe, "colorToInt");
1344
+ function Wt(e, r, t) {
1345
+ return oe(e) + "," + oe(r) + "," + oe(t);
1346
+ }
1347
+ a(Wt, "convertToInt");
1348
+ function Q(e, r, t, n) {
1349
+ if (n === void 0 && (n = Wt), r === 0)
1350
+ return n(t, t, t);
1351
+ var o = (e % 360 + 360) % 360 / 60, i = (1 - Math.abs(2 * t - 1)) * r, s = i * (1 - Math.abs(o % 2 - 1)), f = 0, l = 0, c = 0;
1352
+ o >= 0 && o < 1 ? (f = i, l = s) : o >= 1 && o < 2 ? (f = s, l = i) : o >= 2 && o < 3 ? (l = i, c = s) : o >= 3 && o < 4 ? (l = s, c = i) :
1353
+ o >= 4 && o < 5 ? (f = s, c = i) : o >= 5 && o < 6 && (f = i, c = s);
1354
+ var b = t - i / 2, d = f + b, m = l + b, x = c + b;
1355
+ return n(d, m, x);
1356
+ }
1357
+ a(Q, "hslToRgb");
1358
+ var We = {
1359
+ aliceblue: "f0f8ff",
1360
+ antiquewhite: "faebd7",
1361
+ aqua: "00ffff",
1362
+ aquamarine: "7fffd4",
1363
+ azure: "f0ffff",
1364
+ beige: "f5f5dc",
1365
+ bisque: "ffe4c4",
1366
+ black: "000",
1367
+ blanchedalmond: "ffebcd",
1368
+ blue: "0000ff",
1369
+ blueviolet: "8a2be2",
1370
+ brown: "a52a2a",
1371
+ burlywood: "deb887",
1372
+ cadetblue: "5f9ea0",
1373
+ chartreuse: "7fff00",
1374
+ chocolate: "d2691e",
1375
+ coral: "ff7f50",
1376
+ cornflowerblue: "6495ed",
1377
+ cornsilk: "fff8dc",
1378
+ crimson: "dc143c",
1379
+ cyan: "00ffff",
1380
+ darkblue: "00008b",
1381
+ darkcyan: "008b8b",
1382
+ darkgoldenrod: "b8860b",
1383
+ darkgray: "a9a9a9",
1384
+ darkgreen: "006400",
1385
+ darkgrey: "a9a9a9",
1386
+ darkkhaki: "bdb76b",
1387
+ darkmagenta: "8b008b",
1388
+ darkolivegreen: "556b2f",
1389
+ darkorange: "ff8c00",
1390
+ darkorchid: "9932cc",
1391
+ darkred: "8b0000",
1392
+ darksalmon: "e9967a",
1393
+ darkseagreen: "8fbc8f",
1394
+ darkslateblue: "483d8b",
1395
+ darkslategray: "2f4f4f",
1396
+ darkslategrey: "2f4f4f",
1397
+ darkturquoise: "00ced1",
1398
+ darkviolet: "9400d3",
1399
+ deeppink: "ff1493",
1400
+ deepskyblue: "00bfff",
1401
+ dimgray: "696969",
1402
+ dimgrey: "696969",
1403
+ dodgerblue: "1e90ff",
1404
+ firebrick: "b22222",
1405
+ floralwhite: "fffaf0",
1406
+ forestgreen: "228b22",
1407
+ fuchsia: "ff00ff",
1408
+ gainsboro: "dcdcdc",
1409
+ ghostwhite: "f8f8ff",
1410
+ gold: "ffd700",
1411
+ goldenrod: "daa520",
1412
+ gray: "808080",
1413
+ green: "008000",
1414
+ greenyellow: "adff2f",
1415
+ grey: "808080",
1416
+ honeydew: "f0fff0",
1417
+ hotpink: "ff69b4",
1418
+ indianred: "cd5c5c",
1419
+ indigo: "4b0082",
1420
+ ivory: "fffff0",
1421
+ khaki: "f0e68c",
1422
+ lavender: "e6e6fa",
1423
+ lavenderblush: "fff0f5",
1424
+ lawngreen: "7cfc00",
1425
+ lemonchiffon: "fffacd",
1426
+ lightblue: "add8e6",
1427
+ lightcoral: "f08080",
1428
+ lightcyan: "e0ffff",
1429
+ lightgoldenrodyellow: "fafad2",
1430
+ lightgray: "d3d3d3",
1431
+ lightgreen: "90ee90",
1432
+ lightgrey: "d3d3d3",
1433
+ lightpink: "ffb6c1",
1434
+ lightsalmon: "ffa07a",
1435
+ lightseagreen: "20b2aa",
1436
+ lightskyblue: "87cefa",
1437
+ lightslategray: "789",
1438
+ lightslategrey: "789",
1439
+ lightsteelblue: "b0c4de",
1440
+ lightyellow: "ffffe0",
1441
+ lime: "0f0",
1442
+ limegreen: "32cd32",
1443
+ linen: "faf0e6",
1444
+ magenta: "f0f",
1445
+ maroon: "800000",
1446
+ mediumaquamarine: "66cdaa",
1447
+ mediumblue: "0000cd",
1448
+ mediumorchid: "ba55d3",
1449
+ mediumpurple: "9370db",
1450
+ mediumseagreen: "3cb371",
1451
+ mediumslateblue: "7b68ee",
1452
+ mediumspringgreen: "00fa9a",
1453
+ mediumturquoise: "48d1cc",
1454
+ mediumvioletred: "c71585",
1455
+ midnightblue: "191970",
1456
+ mintcream: "f5fffa",
1457
+ mistyrose: "ffe4e1",
1458
+ moccasin: "ffe4b5",
1459
+ navajowhite: "ffdead",
1460
+ navy: "000080",
1461
+ oldlace: "fdf5e6",
1462
+ olive: "808000",
1463
+ olivedrab: "6b8e23",
1464
+ orange: "ffa500",
1465
+ orangered: "ff4500",
1466
+ orchid: "da70d6",
1467
+ palegoldenrod: "eee8aa",
1468
+ palegreen: "98fb98",
1469
+ paleturquoise: "afeeee",
1470
+ palevioletred: "db7093",
1471
+ papayawhip: "ffefd5",
1472
+ peachpuff: "ffdab9",
1473
+ peru: "cd853f",
1474
+ pink: "ffc0cb",
1475
+ plum: "dda0dd",
1476
+ powderblue: "b0e0e6",
1477
+ purple: "800080",
1478
+ rebeccapurple: "639",
1479
+ red: "f00",
1480
+ rosybrown: "bc8f8f",
1481
+ royalblue: "4169e1",
1482
+ saddlebrown: "8b4513",
1483
+ salmon: "fa8072",
1484
+ sandybrown: "f4a460",
1485
+ seagreen: "2e8b57",
1486
+ seashell: "fff5ee",
1487
+ sienna: "a0522d",
1488
+ silver: "c0c0c0",
1489
+ skyblue: "87ceeb",
1490
+ slateblue: "6a5acd",
1491
+ slategray: "708090",
1492
+ slategrey: "708090",
1493
+ snow: "fffafa",
1494
+ springgreen: "00ff7f",
1495
+ steelblue: "4682b4",
1496
+ tan: "d2b48c",
1497
+ teal: "008080",
1498
+ thistle: "d8bfd8",
1499
+ tomato: "ff6347",
1500
+ turquoise: "40e0d0",
1501
+ violet: "ee82ee",
1502
+ wheat: "f5deb3",
1503
+ white: "fff",
1504
+ whitesmoke: "f5f5f5",
1505
+ yellow: "ff0",
1506
+ yellowgreen: "9acd32"
1507
+ };
1508
+ function Ut(e) {
1509
+ if (typeof e != "string") return e;
1510
+ var r = e.toLowerCase();
1511
+ return We[r] ? "#" + We[r] : e;
1512
+ }
1513
+ a(Ut, "nameToHex");
1514
+ var Vt = /^#[a-fA-F0-9]{6}$/, Nt = /^#[a-fA-F0-9]{8}$/, Gt = /^#[a-fA-F0-9]{3}$/, Qt = /^#[a-fA-F0-9]{4}$/, ie = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,
1515
+ Yt = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, Jt = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,
1516
+ Zt = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
1517
+ function k(e) {
1518
+ if (typeof e != "string")
1519
+ throw new p(3);
1520
+ var r = Ut(e);
1521
+ if (r.match(Vt))
1522
+ return {
1523
+ red: parseInt("" + r[1] + r[2], 16),
1524
+ green: parseInt("" + r[3] + r[4], 16),
1525
+ blue: parseInt("" + r[5] + r[6], 16)
1526
+ };
1527
+ if (r.match(Nt)) {
1528
+ var t = parseFloat((parseInt("" + r[7] + r[8], 16) / 255).toFixed(2));
1529
+ return {
1530
+ red: parseInt("" + r[1] + r[2], 16),
1531
+ green: parseInt("" + r[3] + r[4], 16),
1532
+ blue: parseInt("" + r[5] + r[6], 16),
1533
+ alpha: t
1534
+ };
1535
+ }
1536
+ if (r.match(Gt))
1537
+ return {
1538
+ red: parseInt("" + r[1] + r[1], 16),
1539
+ green: parseInt("" + r[2] + r[2], 16),
1540
+ blue: parseInt("" + r[3] + r[3], 16)
1541
+ };
1542
+ if (r.match(Qt)) {
1543
+ var n = parseFloat((parseInt("" + r[4] + r[4], 16) / 255).toFixed(2));
1544
+ return {
1545
+ red: parseInt("" + r[1] + r[1], 16),
1546
+ green: parseInt("" + r[2] + r[2], 16),
1547
+ blue: parseInt("" + r[3] + r[3], 16),
1548
+ alpha: n
1549
+ };
1550
+ }
1551
+ var o = ie.exec(r);
1552
+ if (o)
1553
+ return {
1554
+ red: parseInt("" + o[1], 10),
1555
+ green: parseInt("" + o[2], 10),
1556
+ blue: parseInt("" + o[3], 10)
1557
+ };
1558
+ var i = Yt.exec(r.substring(0, 50));
1559
+ if (i)
1560
+ return {
1561
+ red: parseInt("" + i[1], 10),
1562
+ green: parseInt("" + i[2], 10),
1563
+ blue: parseInt("" + i[3], 10),
1564
+ alpha: parseFloat("" + i[4]) > 1 ? parseFloat("" + i[4]) / 100 : parseFloat("" + i[4])
1565
+ };
1566
+ var s = Jt.exec(r);
1567
+ if (s) {
1568
+ var f = parseInt("" + s[1], 10), l = parseInt("" + s[2], 10) / 100, c = parseInt("" + s[3], 10) / 100, b = "rgb(" + Q(f, l, c) + ")", d = ie.
1569
+ exec(b);
1570
+ if (!d)
1571
+ throw new p(4, r, b);
1572
+ return {
1573
+ red: parseInt("" + d[1], 10),
1574
+ green: parseInt("" + d[2], 10),
1575
+ blue: parseInt("" + d[3], 10)
1576
+ };
1577
+ }
1578
+ var m = Zt.exec(r.substring(0, 50));
1579
+ if (m) {
1580
+ var x = parseInt("" + m[1], 10), w = parseInt("" + m[2], 10) / 100, z = parseInt("" + m[3], 10) / 100, v = "rgb(" + Q(x, w, z) + ")", T = ie.
1581
+ exec(v);
1582
+ if (!T)
1583
+ throw new p(4, r, v);
1584
+ return {
1585
+ red: parseInt("" + T[1], 10),
1586
+ green: parseInt("" + T[2], 10),
1587
+ blue: parseInt("" + T[3], 10),
1588
+ alpha: parseFloat("" + m[4]) > 1 ? parseFloat("" + m[4]) / 100 : parseFloat("" + m[4])
1589
+ };
1590
+ }
1591
+ throw new p(5);
1592
+ }
1593
+ a(k, "parseToRgb");
1594
+ function Xt(e) {
1595
+ var r = e.red / 255, t = e.green / 255, n = e.blue / 255, o = Math.max(r, t, n), i = Math.min(r, t, n), s = (o + i) / 2;
1596
+ if (o === i)
1597
+ return e.alpha !== void 0 ? {
1598
+ hue: 0,
1599
+ saturation: 0,
1600
+ lightness: s,
1601
+ alpha: e.alpha
1602
+ } : {
1603
+ hue: 0,
1604
+ saturation: 0,
1605
+ lightness: s
1606
+ };
1607
+ var f, l = o - i, c = s > 0.5 ? l / (2 - o - i) : l / (o + i);
1608
+ switch (o) {
1609
+ case r:
1610
+ f = (t - n) / l + (t < n ? 6 : 0);
1611
+ break;
1612
+ case t:
1613
+ f = (n - r) / l + 2;
1614
+ break;
1615
+ default:
1616
+ f = (r - t) / l + 4;
1617
+ break;
1618
+ }
1619
+ return f *= 60, e.alpha !== void 0 ? {
1620
+ hue: f,
1621
+ saturation: c,
1622
+ lightness: s,
1623
+ alpha: e.alpha
1624
+ } : {
1625
+ hue: f,
1626
+ saturation: c,
1627
+ lightness: s
1628
+ };
1629
+ }
1630
+ a(Xt, "rgbToHsl");
1631
+ function C(e) {
1632
+ return Xt(k(e));
1633
+ }
1634
+ a(C, "parseToHsl");
1635
+ var Kt = /* @__PURE__ */ a(function(r) {
1636
+ return r.length === 7 && r[1] === r[2] && r[3] === r[4] && r[5] === r[6] ? "#" + r[1] + r[3] + r[5] : r;
1637
+ }, "reduceHexValue"), le = Kt;
1638
+ function P(e) {
1639
+ var r = e.toString(16);
1640
+ return r.length === 1 ? "0" + r : r;
1641
+ }
1642
+ a(P, "numberToHex");
1643
+ function ue(e) {
1644
+ return P(Math.round(e * 255));
1645
+ }
1646
+ a(ue, "colorToHex");
1647
+ function _t(e, r, t) {
1648
+ return le("#" + ue(e) + ue(r) + ue(t));
1649
+ }
1650
+ a(_t, "convertToHex");
1651
+ function X(e, r, t) {
1652
+ return Q(e, r, t, _t);
1653
+ }
1654
+ a(X, "hslToHex");
1655
+ function de(e, r, t) {
1656
+ if (typeof e == "number" && typeof r == "number" && typeof t == "number")
1657
+ return X(e, r, t);
1658
+ if (typeof e == "object" && r === void 0 && t === void 0)
1659
+ return X(e.hue, e.saturation, e.lightness);
1660
+ throw new p(1);
1661
+ }
1662
+ a(de, "hsl");
1663
+ function ce(e, r, t, n) {
1664
+ if (typeof e == "number" && typeof r == "number" && typeof t == "number" && typeof n == "number")
1665
+ return n >= 1 ? X(e, r, t) : "rgba(" + Q(e, r, t) + "," + n + ")";
1666
+ if (typeof e == "object" && r === void 0 && t === void 0 && n === void 0)
1667
+ return e.alpha >= 1 ? X(e.hue, e.saturation, e.lightness) : "rgba(" + Q(e.hue, e.saturation, e.lightness) + "," + e.alpha + ")";
1668
+ throw new p(2);
1669
+ }
1670
+ a(ce, "hsla");
1671
+ function Y(e, r, t) {
1672
+ if (typeof e == "number" && typeof r == "number" && typeof t == "number")
1673
+ return le("#" + P(e) + P(r) + P(t));
1674
+ if (typeof e == "object" && r === void 0 && t === void 0)
1675
+ return le("#" + P(e.red) + P(e.green) + P(e.blue));
1676
+ throw new p(6);
1677
+ }
1678
+ a(Y, "rgb");
1679
+ function L(e, r, t, n) {
1680
+ if (typeof e == "string" && typeof r == "number") {
1681
+ var o = k(e);
1682
+ return "rgba(" + o.red + "," + o.green + "," + o.blue + "," + r + ")";
1683
+ } else {
1684
+ if (typeof e == "number" && typeof r == "number" && typeof t == "number" && typeof n == "number")
1685
+ return n >= 1 ? Y(e, r, t) : "rgba(" + e + "," + r + "," + t + "," + n + ")";
1686
+ if (typeof e == "object" && r === void 0 && t === void 0 && n === void 0)
1687
+ return e.alpha >= 1 ? Y(e.red, e.green, e.blue) : "rgba(" + e.red + "," + e.green + "," + e.blue + "," + e.alpha + ")";
1688
+ }
1689
+ throw new p(7);
1690
+ }
1691
+ a(L, "rgba");
1692
+ var en = /* @__PURE__ */ a(function(r) {
1693
+ return typeof r.red == "number" && typeof r.green == "number" && typeof r.blue == "number" && (typeof r.alpha != "number" || typeof r.alpha >
1694
+ "u");
1695
+ }, "isRgb"), rn = /* @__PURE__ */ a(function(r) {
1696
+ return typeof r.red == "number" && typeof r.green == "number" && typeof r.blue == "number" && typeof r.alpha == "number";
1697
+ }, "isRgba"), tn = /* @__PURE__ */ a(function(r) {
1698
+ return typeof r.hue == "number" && typeof r.saturation == "number" && typeof r.lightness == "number" && (typeof r.alpha != "number" || typeof r.
1699
+ alpha > "u");
1700
+ }, "isHsl"), nn = /* @__PURE__ */ a(function(r) {
1701
+ return typeof r.hue == "number" && typeof r.saturation == "number" && typeof r.lightness == "number" && typeof r.alpha == "number";
1702
+ }, "isHsla");
1703
+ function S(e) {
1704
+ if (typeof e != "object") throw new p(8);
1705
+ if (rn(e)) return L(e);
1706
+ if (en(e)) return Y(e);
1707
+ if (nn(e)) return ce(e);
1708
+ if (tn(e)) return de(e);
1709
+ throw new p(8);
1710
+ }
1711
+ a(S, "toColorString");
1712
+ function _e(e, r, t) {
1713
+ return /* @__PURE__ */ a(function() {
1714
+ var o = t.concat(Array.prototype.slice.call(arguments));
1715
+ return o.length >= r ? e.apply(this, o) : _e(e, r, o);
1716
+ }, "fn");
1717
+ }
1718
+ a(_e, "curried");
1719
+ function y(e) {
1720
+ return _e(e, e.length, []);
1721
+ }
1722
+ a(y, "curry");
1723
+ function an(e, r) {
1724
+ if (r === "transparent") return r;
1725
+ var t = C(r);
1726
+ return S(h.default({}, t, {
1727
+ hue: t.hue + parseFloat(e)
1728
+ }));
1729
+ }
1730
+ a(an, "adjustHue");
1731
+ var on = y(an), un = on;
1732
+ function sn(e) {
1733
+ if (e === "transparent") return e;
1734
+ var r = C(e);
1735
+ return S(h.default({}, r, {
1736
+ hue: (r.hue + 180) % 360
1737
+ }));
1738
+ }
1739
+ a(sn, "complement");
1740
+ function H(e, r, t) {
1741
+ return Math.max(e, Math.min(r, t));
1742
+ }
1743
+ a(H, "guard");
1744
+ function fn(e, r) {
1745
+ if (r === "transparent") return r;
1746
+ var t = C(r);
1747
+ return S(h.default({}, t, {
1748
+ lightness: H(0, 1, t.lightness - parseFloat(e))
1749
+ }));
1750
+ }
1751
+ a(fn, "darken");
1752
+ var pn = y(fn), ln = pn;
1753
+ function dn(e, r) {
1754
+ if (r === "transparent") return r;
1755
+ var t = C(r);
1756
+ return S(h.default({}, t, {
1757
+ saturation: H(0, 1, t.saturation - parseFloat(e))
1758
+ }));
1759
+ }
1760
+ a(dn, "desaturate");
1761
+ var cn = y(dn), mn = cn;
1762
+ function K(e) {
1763
+ if (e === "transparent") return 0;
1764
+ var r = k(e), t = Object.keys(r).map(function(s) {
1765
+ var f = r[s] / 255;
1766
+ return f <= 0.03928 ? f / 12.92 : Math.pow((f + 0.055) / 1.055, 2.4);
1767
+ }), n = t[0], o = t[1], i = t[2];
1768
+ return parseFloat((0.2126 * n + 0.7152 * o + 0.0722 * i).toFixed(3));
1769
+ }
1770
+ a(K, "getLuminance");
1771
+ function me(e, r) {
1772
+ var t = K(e), n = K(r);
1773
+ return parseFloat((t > n ? (t + 0.05) / (n + 0.05) : (n + 0.05) / (t + 0.05)).toFixed(2));
1774
+ }
1775
+ a(me, "getContrast");
1776
+ function gn(e) {
1777
+ return e === "transparent" ? e : S(h.default({}, C(e), {
1778
+ saturation: 0
1779
+ }));
1780
+ }
1781
+ a(gn, "grayscale");
1782
+ function hn(e) {
1783
+ if (typeof e == "object" && typeof e.hue == "number" && typeof e.saturation == "number" && typeof e.lightness == "number")
1784
+ return e.alpha && typeof e.alpha == "number" ? ce({
1785
+ hue: e.hue,
1786
+ saturation: e.saturation,
1787
+ lightness: e.lightness,
1788
+ alpha: e.alpha
1789
+ }) : de({
1790
+ hue: e.hue,
1791
+ saturation: e.saturation,
1792
+ lightness: e.lightness
1793
+ });
1794
+ throw new p(45);
1795
+ }
1796
+ a(hn, "hslToColorString");
1797
+ function bn(e) {
1798
+ if (e === "transparent") return e;
1799
+ var r = k(e);
1800
+ return S(h.default({}, r, {
1801
+ red: 255 - r.red,
1802
+ green: 255 - r.green,
1803
+ blue: 255 - r.blue
1804
+ }));
1805
+ }
1806
+ a(bn, "invert");
1807
+ function vn(e, r) {
1808
+ if (r === "transparent") return r;
1809
+ var t = C(r);
1810
+ return S(h.default({}, t, {
1811
+ lightness: H(0, 1, t.lightness + parseFloat(e))
1812
+ }));
1813
+ }
1814
+ a(vn, "lighten");
1815
+ var yn = y(vn), xn = yn;
1816
+ function wn(e, r) {
1817
+ var t = me(e, r);
1818
+ return {
1819
+ AA: t >= 4.5,
1820
+ AALarge: t >= 3,
1821
+ AAA: t >= 7,
1822
+ AAALarge: t >= 4.5
1823
+ };
1824
+ }
1825
+ a(wn, "meetsContrastGuidelines");
1826
+ function Sn(e, r, t) {
1827
+ if (r === "transparent") return t;
1828
+ if (t === "transparent") return r;
1829
+ if (e === 0) return t;
1830
+ var n = k(r), o = h.default({}, n, {
1831
+ alpha: typeof n.alpha == "number" ? n.alpha : 1
1832
+ }), i = k(t), s = h.default({}, i, {
1833
+ alpha: typeof i.alpha == "number" ? i.alpha : 1
1834
+ }), f = o.alpha - s.alpha, l = parseFloat(e) * 2 - 1, c = l * f === -1 ? l : l + f, b = 1 + l * f, d = (c / b + 1) / 2, m = 1 - d, x = {
1835
+ red: Math.floor(o.red * d + s.red * m),
1836
+ green: Math.floor(o.green * d + s.green * m),
1837
+ blue: Math.floor(o.blue * d + s.blue * m),
1838
+ alpha: o.alpha * parseFloat(e) + s.alpha * (1 - parseFloat(e))
1839
+ };
1840
+ return L(x);
1841
+ }
1842
+ a(Sn, "mix");
1843
+ var Fn = y(Sn), ge = Fn;
1844
+ function Cn(e, r) {
1845
+ if (r === "transparent") return r;
1846
+ var t = k(r), n = typeof t.alpha == "number" ? t.alpha : 1, o = h.default({}, t, {
1847
+ alpha: H(0, 1, (n * 100 + parseFloat(e) * 100) / 100)
1848
+ });
1849
+ return L(o);
1850
+ }
1851
+ a(Cn, "opacify");
1852
+ var zn = y(Cn), Tn = zn, Ue = "#000", Ve = "#fff";
1853
+ function An(e, r, t, n) {
1854
+ r === void 0 && (r = Ue), t === void 0 && (t = Ve), n === void 0 && (n = !0);
1855
+ var o = K(e) > 0.179, i = o ? r : t;
1856
+ return !n || me(e, i) >= 4.5 ? i : o ? Ue : Ve;
1857
+ }
1858
+ a(An, "readableColor");
1859
+ function In(e) {
1860
+ if (typeof e == "object" && typeof e.red == "number" && typeof e.green == "number" && typeof e.blue == "number")
1861
+ return typeof e.alpha == "number" ? L({
1862
+ red: e.red,
1863
+ green: e.green,
1864
+ blue: e.blue,
1865
+ alpha: e.alpha
1866
+ }) : Y({
1867
+ red: e.red,
1868
+ green: e.green,
1869
+ blue: e.blue
1870
+ });
1871
+ throw new p(46);
1872
+ }
1873
+ a(In, "rgbToColorString");
1874
+ function Rn(e, r) {
1875
+ if (r === "transparent") return r;
1876
+ var t = C(r);
1877
+ return S(h.default({}, t, {
1878
+ saturation: H(0, 1, t.saturation + parseFloat(e))
1879
+ }));
1880
+ }
1881
+ a(Rn, "saturate");
1882
+ var jn = y(Rn), On = jn;
1883
+ function Mn(e, r) {
1884
+ return r === "transparent" ? r : S(h.default({}, C(r), {
1885
+ hue: parseFloat(e)
1886
+ }));
1887
+ }
1888
+ a(Mn, "setHue");
1889
+ var kn = y(Mn), $n = kn;
1890
+ function Pn(e, r) {
1891
+ return r === "transparent" ? r : S(h.default({}, C(r), {
1892
+ lightness: parseFloat(e)
1893
+ }));
1894
+ }
1895
+ a(Pn, "setLightness");
1896
+ var Bn = y(Pn), Ln = Bn;
1897
+ function Hn(e, r) {
1898
+ return r === "transparent" ? r : S(h.default({}, C(r), {
1899
+ saturation: parseFloat(e)
1900
+ }));
1901
+ }
1902
+ a(Hn, "setSaturation");
1903
+ var En = y(Hn), Dn = En;
1904
+ function qn(e, r) {
1905
+ return r === "transparent" ? r : ge(parseFloat(e), "rgb(0, 0, 0)", r);
1906
+ }
1907
+ a(qn, "shade");
1908
+ var Wn = y(qn), Un = Wn;
1909
+ function Vn(e, r) {
1910
+ return r === "transparent" ? r : ge(parseFloat(e), "rgb(255, 255, 255)", r);
1911
+ }
1912
+ a(Vn, "tint");
1913
+ var Nn = y(Vn), Gn = Nn;
1914
+ function Qn(e, r) {
1915
+ if (r === "transparent") return r;
1916
+ var t = k(r), n = typeof t.alpha == "number" ? t.alpha : 1, o = h.default({}, t, {
1917
+ alpha: H(0, 1, +(n * 100 - parseFloat(e) * 100).toFixed(2) / 100)
1918
+ });
1919
+ return L(o);
1920
+ }
1921
+ a(Qn, "transparentize");
1922
+ var Yn = y(Qn), Jn = Yn;
1923
+ function Zn() {
1924
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
1925
+ r[t] = arguments[t];
1926
+ var n = Array.isArray(r[0]);
1927
+ if (!n && r.length > 8)
1928
+ throw new p(64);
1929
+ var o = r.map(function(i) {
1930
+ if (n && !Array.isArray(i) || !n && Array.isArray(i))
1931
+ throw new p(65);
1932
+ if (Array.isArray(i) && i.length > 8)
1933
+ throw new p(66);
1934
+ return Array.isArray(i) ? i.join(" ") : i;
1935
+ }).join(", ");
1936
+ return {
1937
+ animation: o
1938
+ };
1939
+ }
1940
+ a(Zn, "animation");
1941
+ function Xn() {
1942
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
1943
+ r[t] = arguments[t];
1944
+ return {
1945
+ backgroundImage: r.join(", ")
1946
+ };
1947
+ }
1948
+ a(Xn, "backgroundImages");
1949
+ function Kn() {
1950
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
1951
+ r[t] = arguments[t];
1952
+ return {
1953
+ background: r.join(", ")
1954
+ };
1955
+ }
1956
+ a(Kn, "backgrounds");
1957
+ var _n = ["top", "right", "bottom", "left"];
1958
+ function ea(e) {
1959
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
1960
+ t[n - 1] = arguments[n];
1961
+ if (typeof e == "string" && _n.indexOf(e) >= 0) {
1962
+ var o;
1963
+ return o = {}, o["border" + G(e) + "Width"] = t[0], o["border" + G(e) + "Style"] = t[1], o["border" + G(e) + "Color"] = t[2], o;
1964
+ } else
1965
+ return t.unshift(e), {
1966
+ borderWidth: t[0],
1967
+ borderStyle: t[1],
1968
+ borderColor: t[2]
1969
+ };
1970
+ }
1971
+ a(ea, "border");
1972
+ function ra() {
1973
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
1974
+ r[t] = arguments[t];
1975
+ return $.apply(void 0, ["borderColor"].concat(r));
1976
+ }
1977
+ a(ra, "borderColor");
1978
+ function ta(e, r) {
1979
+ var t = G(e);
1980
+ if (!r && r !== 0)
1981
+ throw new p(62);
1982
+ if (t === "Top" || t === "Bottom") {
1983
+ var n;
1984
+ return n = {}, n["border" + t + "RightRadius"] = r, n["border" + t + "LeftRadius"] = r, n;
1985
+ }
1986
+ if (t === "Left" || t === "Right") {
1987
+ var o;
1988
+ return o = {}, o["borderTop" + t + "Radius"] = r, o["borderBottom" + t + "Radius"] = r, o;
1989
+ }
1990
+ throw new p(63);
1991
+ }
1992
+ a(ta, "borderRadius");
1993
+ function na() {
1994
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
1995
+ r[t] = arguments[t];
1996
+ return $.apply(void 0, ["borderStyle"].concat(r));
1997
+ }
1998
+ a(na, "borderStyle");
1999
+ function aa() {
2000
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
2001
+ r[t] = arguments[t];
2002
+ return $.apply(void 0, ["borderWidth"].concat(r));
2003
+ }
2004
+ a(aa, "borderWidth");
2005
+ function Ne(e, r) {
2006
+ var t = r ? ":" + r : "";
2007
+ return e(t);
2008
+ }
2009
+ a(Ne, "generateSelectors");
2010
+ function er(e, r, t) {
2011
+ if (!r) throw new p(67);
2012
+ if (e.length === 0) return Ne(r, null);
2013
+ for (var n = [], o = 0; o < e.length; o += 1) {
2014
+ if (t && t.indexOf(e[o]) < 0)
2015
+ throw new p(68);
2016
+ n.push(Ne(r, e[o]));
2017
+ }
2018
+ return n = n.join(","), n;
2019
+ }
2020
+ a(er, "statefulSelectors");
2021
+ var oa = [void 0, null, "active", "focus", "hover"];
2022
+ function ia(e) {
2023
+ return "button" + e + `,
2024
+ input[type="button"]` + e + `,
2025
+ input[type="reset"]` + e + `,
2026
+ input[type="submit"]` + e;
2027
+ }
2028
+ a(ia, "template$1");
2029
+ function ua() {
2030
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
2031
+ r[t] = arguments[t];
2032
+ return er(r, ia, oa);
2033
+ }
2034
+ a(ua, "buttons");
2035
+ function sa() {
2036
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
2037
+ r[t] = arguments[t];
2038
+ return $.apply(void 0, ["margin"].concat(r));
2039
+ }
2040
+ a(sa, "margin");
2041
+ function fa() {
2042
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
2043
+ r[t] = arguments[t];
2044
+ return $.apply(void 0, ["padding"].concat(r));
2045
+ }
2046
+ a(fa, "padding");
2047
+ var pa = ["absolute", "fixed", "relative", "static", "sticky"];
2048
+ function la(e) {
2049
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
2050
+ t[n - 1] = arguments[n];
2051
+ return pa.indexOf(e) >= 0 && e ? h.default({}, $.apply(void 0, [""].concat(t)), {
2052
+ position: e
2053
+ }) : $.apply(void 0, ["", e].concat(t));
2054
+ }
2055
+ a(la, "position");
2056
+ function da(e, r) {
2057
+ return r === void 0 && (r = e), {
2058
+ height: e,
2059
+ width: r
2060
+ };
2061
+ }
2062
+ a(da, "size");
2063
+ var ca = [void 0, null, "active", "focus", "hover"];
2064
+ function ma(e) {
2065
+ return 'input[type="color"]' + e + `,
2066
+ input[type="date"]` + e + `,
2067
+ input[type="datetime"]` + e + `,
2068
+ input[type="datetime-local"]` + e + `,
2069
+ input[type="email"]` + e + `,
2070
+ input[type="month"]` + e + `,
2071
+ input[type="number"]` + e + `,
2072
+ input[type="password"]` + e + `,
2073
+ input[type="search"]` + e + `,
2074
+ input[type="tel"]` + e + `,
2075
+ input[type="text"]` + e + `,
2076
+ input[type="time"]` + e + `,
2077
+ input[type="url"]` + e + `,
2078
+ input[type="week"]` + e + `,
2079
+ input:not([type])` + e + `,
2080
+ textarea` + e;
2081
+ }
2082
+ a(ma, "template");
2083
+ function ga() {
2084
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
2085
+ r[t] = arguments[t];
2086
+ return er(r, ma, ca);
2087
+ }
2088
+ a(ga, "textInputs");
2089
+ function ha() {
2090
+ for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
2091
+ r[t] = arguments[t];
2092
+ if (Array.isArray(r[0]) && r.length === 2) {
2093
+ var n = r[1];
2094
+ if (typeof n != "string")
2095
+ throw new p(61);
2096
+ var o = r[0].map(function(i) {
2097
+ return i + " " + n;
2098
+ }).join(", ");
2099
+ return {
2100
+ transition: o
2101
+ };
2102
+ } else
2103
+ return {
2104
+ transition: r.join(", ")
2105
+ };
2106
+ }
2107
+ a(ha, "transitions");
2108
+ u.adjustHue = un;
2109
+ u.animation = Zn;
2110
+ u.backgroundImages = Xn;
2111
+ u.backgrounds = Kn;
2112
+ u.between = pe;
2113
+ u.border = ea;
2114
+ u.borderColor = ra;
2115
+ u.borderRadius = ta;
2116
+ u.borderStyle = na;
2117
+ u.borderWidth = aa;
2118
+ u.buttons = ua;
2119
+ u.clearFix = ht;
2120
+ u.complement = sn;
2121
+ u.cover = bt;
2122
+ u.cssVar = Jr;
2123
+ u.darken = ln;
2124
+ u.desaturate = mn;
2125
+ u.directionalProperty = $;
2126
+ u.easeIn = lt;
2127
+ u.easeInOut = ct;
2128
+ u.easeOut = gt;
2129
+ u.ellipsis = vt;
2130
+ u.em = tt;
2131
+ u.fluidRange = wt;
2132
+ u.fontFace = It;
2133
+ u.getContrast = me;
2134
+ u.getLuminance = K;
2135
+ u.getValueAndUnit = A;
2136
+ u.grayscale = gn;
2137
+ u.hiDPI = Xe;
2138
+ u.hideText = Rt;
2139
+ u.hideVisually = jt;
2140
+ u.hsl = de;
2141
+ u.hslToColorString = hn;
2142
+ u.hsla = ce;
2143
+ u.important = Ye;
2144
+ u.invert = bn;
2145
+ u.lighten = xn;
2146
+ u.linearGradient = Ot;
2147
+ u.margin = sa;
2148
+ u.math = Qr;
2149
+ u.meetsContrastGuidelines = wn;
2150
+ u.mix = ge;
2151
+ u.modularScale = ot;
2152
+ u.normalize = Mt;
2153
+ u.opacify = Tn;
2154
+ u.padding = fa;
2155
+ u.parseToHsl = C;
2156
+ u.parseToRgb = k;
2157
+ u.position = la;
2158
+ u.radialGradient = kt;
2159
+ u.readableColor = An;
2160
+ u.rem = ut;
2161
+ u.remToPx = ft;
2162
+ u.retinaImage = $t;
2163
+ u.rgb = Y;
2164
+ u.rgbToColorString = In;
2165
+ u.rgba = L;
2166
+ u.saturate = On;
2167
+ u.setHue = $n;
2168
+ u.setLightness = Ln;
2169
+ u.setSaturation = Dn;
2170
+ u.shade = Un;
2171
+ u.size = da;
2172
+ u.stripUnit = se;
2173
+ u.textInputs = ga;
2174
+ u.timingFunctions = Lt;
2175
+ u.tint = Gn;
2176
+ u.toColorString = S;
2177
+ u.transitions = ha;
2178
+ u.transparentize = Jn;
2179
+ u.triangle = Dt;
2180
+ u.wordWrap = qt;
2181
+ });
17
2182
 
18
2183
  // src/theming/create.ts
19
- var R = {};
20
- T(R, {
21
- create: () => M,
22
- themes: () => d
2184
+ var Fa = {};
2185
+ dr(Fa, {
2186
+ create: () => Sa,
2187
+ themes: () => _
23
2188
  });
24
- module.exports = D(R);
2189
+ module.exports = cr(Fa);
25
2190
 
26
2191
  // src/theming/base.ts
27
- var h = require("polished"), r = {
2192
+ var rr = Se(he(), 1), g = {
28
2193
  // Official color palette
29
2194
  primary: "#FF4785",
30
2195
  // coral
@@ -62,20 +2227,20 @@ var h = require("polished"), r = {
62
2227
  positiveText: "#448028",
63
2228
  negativeText: "#D43900",
64
2229
  warningText: "#A15C20"
65
- }, p = {
2230
+ }, be = {
66
2231
  app: "#F6F9FC",
67
- bar: r.lightest,
68
- content: r.lightest,
69
- preview: r.lightest,
2232
+ bar: g.lightest,
2233
+ content: g.lightest,
2234
+ preview: g.lightest,
70
2235
  gridCellSize: 10,
71
- hoverable: (0, h.transparentize)(0.9, r.secondary),
2236
+ hoverable: (0, rr.transparentize)(0.9, g.secondary),
72
2237
  // hover state for items in a list
73
2238
  // Notification, error, and warning backgrounds
74
2239
  positive: "#E1FFD4",
75
2240
  negative: "#FEDED2",
76
2241
  warning: "#FFF5CF",
77
2242
  critical: "#FF4400"
78
- }, i = {
2243
+ }, E = {
79
2244
  fonts: {
80
2245
  base: [
81
2246
  '"Nunito Sans"',
@@ -121,7 +2286,7 @@ var h = require("polished"), r = {
121
2286
  };
122
2287
 
123
2288
  // src/theming/themes/dark.ts
124
- var v = {
2289
+ var ba = {
125
2290
  base: "dark",
126
2291
  // Storybook-specific color palette
127
2292
  colorPrimary: "#FF4785",
@@ -131,20 +2296,20 @@ var v = {
131
2296
  // UI
132
2297
  appBg: "#222425",
133
2298
  appContentBg: "#1B1C1D",
134
- appPreviewBg: r.lightest,
2299
+ appPreviewBg: g.lightest,
135
2300
  appBorderColor: "rgba(255,255,255,.1)",
136
2301
  appBorderRadius: 4,
137
2302
  // Fonts
138
- fontBase: i.fonts.base,
139
- fontCode: i.fonts.mono,
2303
+ fontBase: E.fonts.base,
2304
+ fontCode: E.fonts.mono,
140
2305
  // Text colors
141
2306
  textColor: "#C9CDCF",
142
2307
  textInverseColor: "#222425",
143
2308
  textMutedColor: "#798186",
144
2309
  // Toolbar default and active colors
145
- barTextColor: r.mediumdark,
146
- barHoverColor: r.secondary,
147
- barSelectedColor: r.secondary,
2310
+ barTextColor: g.mediumdark,
2311
+ barHoverColor: g.secondary,
2312
+ barSelectedColor: g.secondary,
148
2313
  barBg: "#292C2E",
149
2314
  // Form colors
150
2315
  buttonBg: "#222425",
@@ -153,12 +2318,12 @@ var v = {
153
2318
  booleanSelectedBg: "#2E3438",
154
2319
  inputBg: "#1B1C1D",
155
2320
  inputBorder: "rgba(255,255,255,.1)",
156
- inputTextColor: r.lightest,
2321
+ inputTextColor: g.lightest,
157
2322
  inputBorderRadius: 4
158
- }, u = v;
2323
+ }, tr = ba;
159
2324
 
160
2325
  // src/theming/themes/light.ts
161
- var V = {
2326
+ var va = {
162
2327
  base: "light",
163
2328
  // Storybook-specific color palette
164
2329
  colorPrimary: "#FF4785",
@@ -166,67 +2331,67 @@ var V = {
166
2331
  colorSecondary: "#029CFD",
167
2332
  // ocean
168
2333
  // UI
169
- appBg: p.app,
170
- appContentBg: r.lightest,
171
- appPreviewBg: r.lightest,
172
- appBorderColor: r.border,
2334
+ appBg: be.app,
2335
+ appContentBg: g.lightest,
2336
+ appPreviewBg: g.lightest,
2337
+ appBorderColor: g.border,
173
2338
  appBorderRadius: 4,
174
2339
  // Fonts
175
- fontBase: i.fonts.base,
176
- fontCode: i.fonts.mono,
2340
+ fontBase: E.fonts.base,
2341
+ fontCode: E.fonts.mono,
177
2342
  // Text colors
178
- textColor: r.darkest,
179
- textInverseColor: r.lightest,
180
- textMutedColor: r.dark,
2343
+ textColor: g.darkest,
2344
+ textInverseColor: g.lightest,
2345
+ textMutedColor: g.dark,
181
2346
  // Toolbar default and active colors
182
- barTextColor: r.mediumdark,
183
- barHoverColor: r.secondary,
184
- barSelectedColor: r.secondary,
185
- barBg: r.lightest,
2347
+ barTextColor: g.mediumdark,
2348
+ barHoverColor: g.secondary,
2349
+ barSelectedColor: g.secondary,
2350
+ barBg: g.lightest,
186
2351
  // Form colors
187
- buttonBg: p.app,
188
- buttonBorder: r.medium,
189
- booleanBg: r.mediumlight,
190
- booleanSelectedBg: r.lightest,
191
- inputBg: r.lightest,
192
- inputBorder: r.border,
193
- inputTextColor: r.darkest,
2352
+ buttonBg: be.app,
2353
+ buttonBorder: g.medium,
2354
+ booleanBg: g.mediumlight,
2355
+ booleanSelectedBg: g.lightest,
2356
+ inputBg: g.lightest,
2357
+ inputBorder: g.border,
2358
+ inputTextColor: g.darkest,
194
2359
  inputBorderRadius: 4
195
- }, g = V;
2360
+ }, ve = va;
196
2361
 
197
2362
  // src/theming/utils.ts
198
- var C = require("storybook/internal/client-logger"), b = require("@storybook/global"), n = require("polished");
199
- var { window: m } = b.global;
200
- var E = /* @__PURE__ */ a((e) => typeof e != "string" ? (C.logger.warn(
2363
+ var nr = require("storybook/internal/client-logger"), ar = require("@storybook/global"), B = Se(he(), 1);
2364
+ var { window: ye } = ar.global;
2365
+ var ya = /* @__PURE__ */ a((e) => typeof e != "string" ? (nr.logger.warn(
201
2366
  `Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`
202
- ), !1) : !0, "isColorString"), w = /* @__PURE__ */ a((e) => !/(gradient|var|calc)/.test(e), "isValidColorForPolished"), P = /* @__PURE__ */ a(
203
- (e, t) => e === "darken" ? (0, n.rgba)(`${(0, n.darken)(1, t)}`, 0.95) : e === "lighten" ? (0, n.rgba)(`${(0, n.lighten)(1, t)}`, 0.95) : t,
204
- "applyPolished"), f = /* @__PURE__ */ a((e) => (t) => {
205
- if (!E(t) || !w(t))
206
- return t;
2367
+ ), !1) : !0, "isColorString"), xa = /* @__PURE__ */ a((e) => !/(gradient|var|calc)/.test(e), "isValidColorForPolished"), wa = /* @__PURE__ */ a(
2368
+ (e, r) => e === "darken" ? (0, B.rgba)(`${(0, B.darken)(1, r)}`, 0.95) : e === "lighten" ? (0, B.rgba)(`${(0, B.lighten)(1, r)}`, 0.95) : r,
2369
+ "applyPolished"), or = /* @__PURE__ */ a((e) => (r) => {
2370
+ if (!ya(r) || !xa(r))
2371
+ return r;
207
2372
  try {
208
- return P(e, t);
2373
+ return wa(e, r);
209
2374
  } catch {
210
- return t;
2375
+ return r;
211
2376
  }
212
- }, "colorFactory"), z = f("lighten"), U = f("darken"), y = /* @__PURE__ */ a(() => !m || !m.matchMedia ? "light" : m.matchMedia("(prefers-co\
213
- lor-scheme: dark)").matches ? "dark" : "light", "getPreferredColorScheme");
2377
+ }, "colorFactory"), Ka = or("lighten"), _a = or("darken"), ir = /* @__PURE__ */ a(() => !ye || !ye.matchMedia ? "light" : ye.matchMedia("(pr\
2378
+ efers-color-scheme: dark)").matches ? "dark" : "light", "getPreferredColorScheme");
214
2379
 
215
2380
  // src/theming/create.ts
216
- var d = {
217
- light: g,
218
- dark: u,
219
- normal: g
220
- }, c = y(), M = /* @__PURE__ */ a((e = { base: c }, t) => {
221
- let o = {
222
- ...d[c],
223
- ...d[e.base] || {},
2381
+ var _ = {
2382
+ light: ve,
2383
+ dark: tr,
2384
+ normal: ve
2385
+ }, xe = ir(), Sa = /* @__PURE__ */ a((e = { base: xe }, r) => {
2386
+ let t = {
2387
+ ..._[xe],
2388
+ ..._[e.base] || {},
224
2389
  ...e,
225
- base: d[e.base] ? e.base : c
2390
+ base: _[e.base] ? e.base : xe
226
2391
  };
227
2392
  return {
2393
+ ...r,
228
2394
  ...t,
229
- ...o,
230
- barSelectedColor: e.barSelectedColor || o.colorSecondary
2395
+ barSelectedColor: e.barSelectedColor || t.colorSecondary
231
2396
  };
232
2397
  }, "create");