storybook 9.0.0-alpha.2 → 9.0.0-alpha.21

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 (162) hide show
  1. package/README.md +1 -1
  2. package/assets/docs/addon-backgrounds.gif +0 -0
  3. package/assets/docs/addon-controls-args-annotated.png +0 -0
  4. package/assets/docs/addon-controls-args-background-color.png +0 -0
  5. package/assets/docs/addon-controls-args-background-string.png +0 -0
  6. package/assets/docs/addon-controls-args-docs.png +0 -0
  7. package/assets/docs/addon-controls-args-logging.png +0 -0
  8. package/assets/docs/addon-controls-args-no-annotation.png +0 -0
  9. package/assets/docs/addon-controls-args-reflow-slider.png +0 -0
  10. package/assets/docs/addon-controls-args-reflow.png +0 -0
  11. package/assets/docs/addon-controls-args-template.png +0 -0
  12. package/assets/docs/addon-controls-expanded.png +0 -0
  13. package/assets/docs/addon-controls-hero.gif +0 -0
  14. package/assets/docs/addon-controls-install.png +0 -0
  15. package/assets/docs/hero.gif +0 -0
  16. package/assets/docs/highlight.png +0 -0
  17. package/assets/docs/viewport.png +0 -0
  18. package/assets/server/base-preview-head.html +1 -3
  19. package/bin/index.cjs +2 -2
  20. package/dist/actions/decorator.d.ts +6 -0
  21. package/dist/actions/decorator.js +134 -0
  22. package/dist/actions/index.cjs +123 -0
  23. package/dist/actions/index.d.ts +102 -0
  24. package/dist/actions/index.js +108 -0
  25. package/dist/actions/preview.cjs +161 -0
  26. package/dist/actions/preview.d.ts +54 -0
  27. package/dist/actions/preview.js +152 -0
  28. package/dist/babel/index.cjs +822 -816
  29. package/dist/babel/index.js +822 -816
  30. package/dist/backgrounds/index.cjs +148 -0
  31. package/dist/backgrounds/index.d.ts +91 -0
  32. package/dist/backgrounds/index.js +130 -0
  33. package/dist/backgrounds/preview.cjs +143 -0
  34. package/dist/backgrounds/preview.d.ts +54 -0
  35. package/dist/backgrounds/preview.js +127 -0
  36. package/dist/bin/index.cjs +49 -70
  37. package/dist/bin/index.js +49 -70
  38. package/dist/builder-manager/index.cjs +319 -326
  39. package/dist/builder-manager/index.js +576 -583
  40. package/dist/channels/index.cjs +1026 -981
  41. package/dist/channels/index.js +1258 -1207
  42. package/dist/cli/bin/index.cjs +483 -483
  43. package/dist/cli/bin/index.js +495 -495
  44. package/dist/cli/index.cjs +61735 -7590
  45. package/dist/cli/index.d.ts +25 -21
  46. package/dist/cli/index.js +61776 -7631
  47. package/dist/client-logger/index.cjs +56 -88
  48. package/dist/client-logger/index.js +41 -47
  49. package/dist/common/index.cjs +16137 -9085
  50. package/dist/common/index.d.ts +35 -30
  51. package/dist/common/index.js +16230 -9172
  52. package/dist/component-testing/index.cjs +23 -0
  53. package/dist/component-testing/index.d.ts +3 -0
  54. package/dist/component-testing/index.js +5 -0
  55. package/dist/component-testing/preview.cjs +40 -0
  56. package/dist/component-testing/preview.d.ts +5 -0
  57. package/dist/component-testing/preview.js +25 -0
  58. package/dist/components/index.cjs +16268 -24926
  59. package/dist/components/index.d.ts +98 -347
  60. package/dist/components/index.js +5905 -19177
  61. package/dist/controls/decorator.d.ts +5 -0
  62. package/dist/controls/decorator.js +8 -0
  63. package/dist/controls/index.cjs +26 -0
  64. package/dist/controls/index.d.ts +39 -0
  65. package/dist/controls/index.js +6 -0
  66. package/dist/controls/preview.cjs +26 -0
  67. package/dist/controls/preview.d.ts +54 -0
  68. package/dist/controls/preview.js +9 -0
  69. package/dist/core-events/index.cjs +91 -106
  70. package/dist/core-events/index.d.ts +139 -104
  71. package/dist/core-events/index.js +79 -94
  72. package/dist/core-server/index.cjs +13898 -13409
  73. package/dist/core-server/index.d.ts +270 -3
  74. package/dist/core-server/index.js +13981 -13497
  75. package/dist/core-server/presets/common-manager.css +170 -0
  76. package/dist/core-server/presets/common-manager.js +12149 -17
  77. package/dist/core-server/presets/common-preset.cjs +3009 -3155
  78. package/dist/core-server/presets/common-preset.js +2862 -3009
  79. package/dist/csf/index.cjs +76 -120
  80. package/dist/csf/index.d.ts +2 -6
  81. package/dist/csf/index.js +69 -113
  82. package/dist/csf-tools/index.cjs +412 -403
  83. package/dist/csf-tools/index.d.ts +0 -4
  84. package/dist/csf-tools/index.js +410 -401
  85. package/dist/docs-tools/index.cjs +2569 -575
  86. package/dist/docs-tools/index.d.ts +2 -2
  87. package/dist/docs-tools/index.js +2565 -564
  88. package/dist/highlight/index.cjs +27 -0
  89. package/dist/highlight/index.d.ts +61 -0
  90. package/dist/highlight/index.js +7 -0
  91. package/dist/highlight/preview.cjs +535 -0
  92. package/dist/highlight/preview.d.ts +54 -0
  93. package/dist/highlight/preview.js +519 -0
  94. package/dist/instrumenter/index.cjs +2207 -2342
  95. package/dist/instrumenter/index.d.ts +8 -7
  96. package/dist/instrumenter/index.js +2430 -2603
  97. package/dist/manager/globals-module-info.cjs +291 -151
  98. package/dist/manager/globals-module-info.d.ts +1 -1
  99. package/dist/manager/globals-module-info.js +275 -135
  100. package/dist/manager/globals-runtime.js +60263 -28383
  101. package/dist/manager/globals.cjs +23 -19
  102. package/dist/manager/globals.d.ts +8 -5
  103. package/dist/manager/globals.js +10 -6
  104. package/dist/manager/runtime.js +4625 -3921
  105. package/dist/manager-api/index.cjs +4228 -3833
  106. package/dist/manager-api/index.d.ts +398 -102
  107. package/dist/manager-api/index.js +3500 -3084
  108. package/dist/manager-errors.d.ts +25 -1
  109. package/dist/manager-errors.js +50 -30
  110. package/dist/measure/index.cjs +476 -0
  111. package/dist/measure/index.d.ts +66 -0
  112. package/dist/measure/index.js +464 -0
  113. package/dist/measure/preview.cjs +466 -0
  114. package/dist/measure/preview.d.ts +59 -0
  115. package/dist/measure/preview.js +450 -0
  116. package/dist/outline/index.cjs +528 -0
  117. package/dist/outline/index.d.ts +66 -0
  118. package/dist/outline/index.js +500 -0
  119. package/dist/outline/preview.cjs +518 -0
  120. package/dist/outline/preview.d.ts +59 -0
  121. package/dist/outline/preview.js +486 -0
  122. package/dist/preview/globals.cjs +21 -17
  123. package/dist/preview/globals.d.ts +4 -1
  124. package/dist/preview/globals.js +6 -2
  125. package/dist/preview/runtime.js +46311 -6614
  126. package/dist/preview-api/index.cjs +1363 -1899
  127. package/dist/preview-api/index.d.ts +81 -395
  128. package/dist/preview-api/index.js +1711 -2169
  129. package/dist/preview-errors.cjs +119 -88
  130. package/dist/preview-errors.d.ts +30 -2
  131. package/dist/preview-errors.js +192 -142
  132. package/dist/router/index.cjs +847 -871
  133. package/dist/router/index.js +193 -199
  134. package/dist/server-errors.cjs +188 -124
  135. package/dist/server-errors.d.ts +36 -2
  136. package/dist/server-errors.js +188 -124
  137. package/dist/telemetry/index.cjs +1056 -1979
  138. package/dist/telemetry/index.d.ts +26 -5
  139. package/dist/telemetry/index.js +1091 -2010
  140. package/dist/test/index.cjs +35686 -0
  141. package/dist/test/index.d.ts +186 -0
  142. package/dist/test/index.js +33840 -0
  143. package/dist/test/preview.cjs +15870 -0
  144. package/dist/test/preview.d.ts +48 -0
  145. package/dist/test/preview.js +14501 -0
  146. package/dist/test/spy.cjs +258 -0
  147. package/dist/test/spy.d.ts +66 -0
  148. package/dist/test/spy.js +240 -0
  149. package/dist/theming/create.cjs +79 -2269
  150. package/dist/theming/create.js +67 -841
  151. package/dist/theming/index.cjs +1065 -3232
  152. package/dist/theming/index.js +951 -1719
  153. package/dist/types/index.cjs +11 -12
  154. package/dist/types/index.d.ts +684 -163
  155. package/dist/types/index.js +1 -2
  156. package/dist/viewport/index.cjs +310 -0
  157. package/dist/viewport/index.d.ts +320 -0
  158. package/dist/viewport/index.js +290 -0
  159. package/dist/viewport/preview.cjs +35 -0
  160. package/dist/viewport/preview.d.ts +68 -0
  161. package/dist/viewport/preview.js +19 -0
  162. package/package.json +359 -12
@@ -1,2220 +1,30 @@
1
1
  "use strict";
2
- var lr = Object.create;
3
- var E = Object.defineProperty;
4
- var dr = Object.getOwnPropertyDescriptor;
5
- var cr = Object.getOwnPropertyNames;
6
- var mr = Object.getPrototypeOf, gr = Object.prototype.hasOwnProperty;
7
- var a = (e, r) => E(e, "name", { value: r, configurable: !0 });
8
- var S = (e, r) => () => (r || e((r = { exports: {} }).exports, r), r.exports), br = (e, r) => {
9
- for (var t in r)
10
- E(e, t, { get: r[t], enumerable: !0 });
11
- }, Fe = (e, r, t, n) => {
12
- if (r && typeof r == "object" || typeof r == "function")
13
- for (let o of cr(r))
14
- !gr.call(e, o) && o !== t && E(e, o, { get: () => r[o], enumerable: !(n = dr(r, o)) || n.enumerable });
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 });
15
14
  return e;
16
15
  };
17
- var ee = (e, r, t) => (t = e != null ? lr(mr(e)) : {}, Fe(
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 ? E(t, "default", { value: e, enumerable: !0 }) : t,
23
- e
24
- )), hr = (e) => Fe(E({}, "__esModule", { value: !0 }), e);
25
-
26
- // ../node_modules/@babel/runtime/helpers/extends.js
27
- var Ce = S((Ba, I) => {
28
- function re() {
29
- return I.exports = re = 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, re.apply(null, arguments);
36
- }
37
- a(re, "_extends");
38
- I.exports = re, I.exports.__esModule = !0, I.exports.default = I.exports;
39
- });
40
-
41
- // ../node_modules/@babel/runtime/helpers/assertThisInitialized.js
42
- var ze = S((Ha, q) => {
43
- function vr(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(vr, "_assertThisInitialized");
48
- q.exports = vr, q.exports.__esModule = !0, q.exports.default = q.exports;
49
- });
50
-
51
- // ../node_modules/@babel/runtime/helpers/setPrototypeOf.js
52
- var Z = S((Ea, O) => {
53
- function te(e, r) {
54
- return O.exports = te = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {
55
- return t.__proto__ = n, t;
56
- }, O.exports.__esModule = !0, O.exports.default = O.exports, te(e, r);
57
- }
58
- a(te, "_setPrototypeOf");
59
- O.exports = te, O.exports.__esModule = !0, O.exports.default = O.exports;
60
- });
61
-
62
- // ../node_modules/@babel/runtime/helpers/inheritsLoose.js
63
- var Te = S((Wa, W) => {
64
- var yr = Z();
65
- function xr(e, r) {
66
- e.prototype = Object.create(r.prototype), e.prototype.constructor = e, yr(e, r);
67
- }
68
- a(xr, "_inheritsLoose");
69
- W.exports = xr, W.exports.__esModule = !0, W.exports.default = W.exports;
70
- });
71
-
72
- // ../node_modules/@babel/runtime/helpers/getPrototypeOf.js
73
- var Ae = S((Va, R) => {
74
- function ne(e) {
75
- return R.exports = ne = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
76
- return r.__proto__ || Object.getPrototypeOf(r);
77
- }, R.exports.__esModule = !0, R.exports.default = R.exports, ne(e);
78
- }
79
- a(ne, "_getPrototypeOf");
80
- R.exports = ne, R.exports.__esModule = !0, R.exports.default = R.exports;
81
- });
82
-
83
- // ../node_modules/@babel/runtime/helpers/isNativeFunction.js
84
- var Ie = S((Ga, U) => {
85
- function wr(e) {
86
- try {
87
- return Function.toString.call(e).indexOf("[native code]") !== -1;
88
- } catch {
89
- return typeof e == "function";
90
- }
91
- }
92
- a(wr, "_isNativeFunction");
93
- U.exports = wr, U.exports.__esModule = !0, U.exports.default = U.exports;
94
- });
95
-
96
- // ../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js
97
- var Re = S((Ya, j) => {
98
- function Oe() {
99
- try {
100
- var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
101
- }));
102
- } catch {
103
- }
104
- return (j.exports = Oe = /* @__PURE__ */ a(function() {
105
- return !!e;
106
- }, "_isNativeReflectConstruct"), j.exports.__esModule = !0, j.exports.default = j.exports)();
107
- }
108
- a(Oe, "_isNativeReflectConstruct");
109
- j.exports = Oe, j.exports.__esModule = !0, j.exports.default = j.exports;
110
- });
111
-
112
- // ../node_modules/@babel/runtime/helpers/construct.js
113
- var je = S((Za, V) => {
114
- var Sr = Re(), Fr = Z();
115
- function Cr(e, r, t) {
116
- if (Sr()) 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 && Fr(o, t.prototype), o;
121
- }
122
- a(Cr, "_construct");
123
- V.exports = Cr, V.exports.__esModule = !0, V.exports.default = V.exports;
124
- });
125
-
126
- // ../node_modules/@babel/runtime/helpers/wrapNativeSuper.js
127
- var Me = S((_a, M) => {
128
- var zr = Ae(), Tr = Z(), Ar = Ie(), Ir = je();
129
- function ae(e) {
130
- var r = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
131
- return M.exports = ae = /* @__PURE__ */ a(function(n) {
132
- if (n === null || !Ar(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 Ir(n, arguments, zr(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
- }), Tr(o, n);
149
- }, "_wrapNativeSuper"), M.exports.__esModule = !0, M.exports.default = M.exports, ae(e);
150
- }
151
- a(ae, "_wrapNativeSuper");
152
- M.exports = ae, M.exports.__esModule = !0, M.exports.default = M.exports;
153
- });
154
-
155
- // ../node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js
156
- var Pe = S((eo, N) => {
157
- function Or(e, r) {
158
- return r || (r = e.slice(0)), e.raw = r, e;
159
- }
160
- a(Or, "_taggedTemplateLiteralLoose");
161
- N.exports = Or, N.exports.__esModule = !0, N.exports.default = N.exports;
162
- });
163
-
164
- // ../node_modules/polished/dist/polished.cjs.js
165
- var he = S((u) => {
166
- "use strict";
167
- Object.defineProperty(u, "__esModule", { value: !0 });
168
- var Rr = Ce(), jr = ze(), Mr = Te(), Pr = Me(), kr = Pe();
169
- function J(e) {
170
- return e && typeof e == "object" && "default" in e ? e : { default: e };
171
- }
172
- a(J, "_interopDefaultLegacy");
173
- var b = /* @__PURE__ */ J(Rr), $r = /* @__PURE__ */ J(jr), Br = /* @__PURE__ */ J(Mr), Lr = /* @__PURE__ */ J(Pr), Qe = /* @__PURE__ */ J(
174
- kr);
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 Hr(e) {
181
- return -e;
182
- }
183
- a(Hr, "negation");
184
- function Dr(e, r) {
185
- return e + r;
186
- }
187
- a(Dr, "addition");
188
- function Er(e, r) {
189
- return e - r;
190
- }
191
- a(Er, "subtraction");
192
- function qr(e, r) {
193
- return e * r;
194
- }
195
- a(qr, "multiplication");
196
- function Wr(e, r) {
197
- return e / r;
198
- }
199
- a(Wr, "division");
200
- function Ur() {
201
- return Math.max.apply(Math, arguments);
202
- }
203
- a(Ur, "max");
204
- function Vr() {
205
- return Math.min.apply(Math, arguments);
206
- }
207
- a(Vr, "min");
208
- function Nr() {
209
- return Array.of.apply(Array, arguments);
210
- }
211
- a(Nr, "comma");
212
- var Gr = {
213
- symbols: {
214
- "*": {
215
- infix: {
216
- symbol: "*",
217
- f: qr,
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: Wr,
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: Dr,
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: Er,
262
- notation: "infix",
263
- precedence: 2,
264
- rightToLeft: 0,
265
- argCount: 2
266
- },
267
- prefix: {
268
- symbol: "-",
269
- f: Hr,
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: Nr,
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: Vr,
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: Ur,
330
- notation: "func",
331
- precedence: 0,
332
- rightToLeft: 0,
333
- argCount: 1
334
- },
335
- symbol: "max",
336
- regSymbol: "max\\b"
337
- }
338
- }
339
- }, $e = Gr, Qr = {
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 Yr() {
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(Yr, "format");
583
- var p = /* @__PURE__ */ function(e) {
584
- Br.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, Yr.apply(void 0, [Qr[t]].concat(i))) || this;
594
- }
595
- return $r.default(n);
596
- }
597
- return a(r, "PolishedError"), r;
598
- }(/* @__PURE__ */ Lr.default(Error)), Be = /((?!\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 Jr(e) {
600
- var r = {};
601
- return r.symbols = e ? b.default({}, $e.symbols, e.symbols) : b.default({}, $e.symbols), r;
602
- }
603
- a(Jr, "mergeSymbolMaps");
604
- function Le(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(Le, "exec");
609
- function Zr(e, r) {
610
- var t = Jr(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], h = l[1], d = t.symbols[c], m = d && !d.prefix && !d.func, x = !d || !d.postfix && !d.infix;
627
- if (h || (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 (Le(o, i));
635
- f = w.notation === "postfix", w.symbol !== ")" && (o.push(w), f && Le(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(Zr, "calculate");
649
- function oe(e) {
650
- return e.split("").reverse().join("");
651
- }
652
- a(oe, "reverseString");
653
- function Xr(e, r) {
654
- var t = oe(e), n = t.match(Be);
655
- if (n && !n.every(function(i) {
656
- return i === n[0];
657
- }))
658
- throw new p(41);
659
- var o = oe(t.replace(Be, ""));
660
- return "" + Zr(o, r) + (n ? oe(n[0]) : "");
661
- }
662
- a(Xr, "math");
663
- var _r = /--[\S]*/g;
664
- function Kr(e, r) {
665
- if (!e || !e.match(_r))
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(Kr, "cssVar");
675
- function G(e) {
676
- return e.charAt(0).toUpperCase() + e.slice(1);
677
- }
678
- a(G, "capitalizeString");
679
- var et = ["Top", "Right", "Bottom", "Left"];
680
- function rt(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(rt, "generateProperty");
691
- function tt(e, r) {
692
- for (var t = {}, n = 0; n < r.length; n += 1)
693
- (r[n] || r[n] === 0) && (t[rt(e, et[n])] = r[n]);
694
- return t;
695
- }
696
- a(tt, "generateStyles");
697
- function k(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], h = c === void 0 ? s : c, d = [o, s, l, h];
701
- return tt(e, d);
702
- }
703
- a(k, "directionalProperty");
704
- function He(e, r) {
705
- return e.substr(-r.length) === r;
706
- }
707
- a(He, "endsWith");
708
- var nt = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;
709
- function fe(e) {
710
- if (typeof e != "string") return e;
711
- var r = e.match(nt);
712
- return r ? parseFloat(e) : e;
713
- }
714
- a(fe, "stripUnit");
715
- var at = /* @__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 (!He(t, "px"))
721
- throw new p(69, r, t);
722
- o = fe(t);
723
- }
724
- if (typeof n == "string") {
725
- if (!He(n, "px"))
726
- throw new p(70, r, n);
727
- i = fe(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"), Ye = at, ot = /* @__PURE__ */ Ye("em"), it = ot, ut = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;
736
- function A(e) {
737
- if (typeof e != "string") return [e, ""];
738
- var r = e.match(ut);
739
- return r ? [parseFloat(e), r[2]] : [e, void 0];
740
- }
741
- a(A, "getValueAndUnit");
742
- function Je(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] = Je(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(Je, "important");
752
- var Ze = {
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 st(e) {
772
- return Ze[e];
773
- }
774
- a(st, "getRatio");
775
- function ft(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" && !Ze[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" ? st(t) : t;
781
- if (typeof o == "string")
782
- throw new p(44, r);
783
- return "" + o * Math.pow(s, e) + (i || "");
784
- }
785
- a(ft, "modularScale");
786
- var pt = /* @__PURE__ */ Ye("rem"), lt = pt, pe = 16;
787
- function Xe(e) {
788
- var r = A(e);
789
- if (r[1] === "px")
790
- return parseFloat(e);
791
- if (r[1] === "%")
792
- return parseFloat(e) / 100 * pe;
793
- throw new p(78, r[1]);
794
- }
795
- a(Xe, "convertBase");
796
- function dt() {
797
- if (typeof document < "u" && document.documentElement !== null) {
798
- var e = getComputedStyle(document.documentElement).fontSize;
799
- return e ? Xe(e) : pe;
800
- }
801
- return pe;
802
- }
803
- a(dt, "getBaseFromDoc");
804
- function ct(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 ? Xe(r) : dt();
809
- return t[0] * n + "px";
810
- }
811
- a(ct, "remToPx");
812
- var mt = {
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 gt(e) {
823
- return mt[e.toLowerCase().trim()];
824
- }
825
- a(gt, "easeIn");
826
- var bt = {
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 ht(e) {
837
- return bt[e.toLowerCase().trim()];
838
- }
839
- a(ht, "easeInOut");
840
- var vt = {
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 yt(e) {
851
- return vt[e.toLowerCase().trim()];
852
- }
853
- a(yt, "easeOut");
854
- function le(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], h = A(t), d = h[0], m = h[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(le, "between");
867
- function xt(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(xt, "clearFix");
878
- function wt(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(wt, "cover");
888
- function St(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 ? b.default({}, t, {
899
- WebkitBoxOrient: "vertical",
900
- WebkitLineClamp: r,
901
- display: "-webkit-box",
902
- whiteSpace: "normal"
903
- }) : t;
904
- }
905
- a(St, "ellipsis");
906
- function Ft(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 = Ct(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(Ft, "_createForOfIteratorHelperLoose");
920
- function Ct(e, r) {
921
- if (e) {
922
- if (typeof e == "string") return De(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 De(e, r);
926
- }
927
- }
928
- a(Ct, "_unsupportedIterableToArray");
929
- function De(e, r) {
930
- (r == null || r > e.length) && (r = e.length);
931
- for (var t = 0, n = new Array(r); t < r; t++)
932
- n[t] = e[t];
933
- return n;
934
- }
935
- a(De, "_arrayLikeToArray");
936
- function zt(e, r, t) {
937
- if (r === void 0 && (r = "320px"), t === void 0 && (t = "1200px"), !Array.isArray(e) && typeof e != "object" || e === null)
938
- throw new p(49);
939
- if (Array.isArray(e)) {
940
- for (var n = {}, o = {}, i = Ft(e), s; !(s = i()).done; ) {
941
- var f, l, c = s.value;
942
- if (!c.prop || !c.fromSize || !c.toSize)
943
- throw new p(50);
944
- o[c.prop] = c.fromSize, n["@media (min-width: " + r + ")"] = b.default({}, n["@media (min-width: " + r + ")"], (f = {}, f[c.prop] = le(
945
- c.fromSize, c.toSize, r, t), f)), n["@media (min-width: " + t + ")"] = b.default({}, n["@media (min-width: " + t + ")"], (l = {}, l[c.
946
- prop] = c.toSize, l));
947
- }
948
- return b.default({}, o, n);
949
- } else {
950
- var h, d, m;
951
- if (!e.prop || !e.fromSize || !e.toSize)
952
- throw new p(51);
953
- return m = {}, m[e.prop] = e.fromSize, m["@media (min-width: " + r + ")"] = (h = {}, h[e.prop] = le(e.fromSize, e.toSize, r, t), h), m["\
954
- @media (min-width: " + t + ")"] = (d = {}, d[e.prop] = e.toSize, d), m;
955
- }
956
- }
957
- a(zt, "fluidRange");
958
- var Tt = /^\s*data:([a-z]+\/[a-z-]+(;[a-z-]+=[a-z-]+)?)?(;charset=[a-z0-9-]+)?(;base64)?,[a-z0-9!$&',()*+,;=\-._~:@/?%\s]*\s*$/i, At = {
959
- woff: "woff",
960
- woff2: "woff2",
961
- ttf: "truetype",
962
- otf: "opentype",
963
- eot: "embedded-opentype",
964
- svg: "svg",
965
- svgz: "svg"
966
- };
967
- function Ee(e, r) {
968
- return r ? ' format("' + At[e] + '")' : "";
969
- }
970
- a(Ee, "generateFormatHint");
971
- function It(e) {
972
- return !!e.replace(/\s+/g, " ").match(Tt);
973
- }
974
- a(It, "isDataURI");
975
- function Ot(e, r, t) {
976
- if (It(e))
977
- return 'url("' + e + '")' + Ee(r[0], t);
978
- var n = r.map(function(o) {
979
- return 'url("' + e + "." + o + '")' + Ee(o, t);
980
- });
981
- return n.join(", ");
982
- }
983
- a(Ot, "generateFileReferences");
984
- function Rt(e) {
985
- var r = e.map(function(t) {
986
- return 'local("' + t + '")';
987
- });
988
- return r.join(", ");
989
- }
990
- a(Rt, "generateLocalReferences");
991
- function jt(e, r, t, n) {
992
- var o = [];
993
- return r && o.push(Rt(r)), e && o.push(Ot(e, t, n)), o.join(", ");
994
- }
995
- a(jt, "generateSources");
996
- function Mt(e) {
997
- var r = e.fontFamily, t = e.fontFilePath, n = e.fontStretch, o = e.fontStyle, i = e.fontVariant, s = e.fontWeight, f = e.fileFormats, l = f ===
998
- void 0 ? ["eot", "woff2", "woff", "ttf", "svg"] : f, c = e.formatHint, h = c === void 0 ? !1 : c, d = e.localFonts, m = d === void 0 ? [
999
- r] : d, x = e.unicodeRange, w = e.fontDisplay, z = e.fontVariationSettings, v = e.fontFeatureSettings;
1000
- if (!r) throw new p(55);
1001
- if (!t && !m)
1002
- throw new p(52);
1003
- if (m && !Array.isArray(m))
1004
- throw new p(53);
1005
- if (!Array.isArray(l))
1006
- throw new p(54);
1007
- var T = {
1008
- "@font-face": {
1009
- fontFamily: r,
1010
- src: jt(t, m, l, h),
1011
- unicodeRange: x,
1012
- fontStretch: n,
1013
- fontStyle: o,
1014
- fontVariant: i,
1015
- fontWeight: s,
1016
- fontDisplay: w,
1017
- fontVariationSettings: z,
1018
- fontFeatureSettings: v
1019
- }
1020
- };
1021
- return JSON.parse(JSON.stringify(T));
1022
- }
1023
- a(Mt, "fontFace");
1024
- function Pt() {
1025
- return {
1026
- textIndent: "101%",
1027
- overflow: "hidden",
1028
- whiteSpace: "nowrap"
1029
- };
1030
- }
1031
- a(Pt, "hideText");
1032
- function kt() {
1033
- return {
1034
- border: "0",
1035
- clip: "rect(0 0 0 0)",
1036
- height: "1px",
1037
- margin: "-1px",
1038
- overflow: "hidden",
1039
- padding: "0",
1040
- position: "absolute",
1041
- whiteSpace: "nowrap",
1042
- width: "1px"
1043
- };
1044
- }
1045
- a(kt, "hideVisually");
1046
- function _e(e) {
1047
- return e === void 0 && (e = 1.3), `
1048
- @media only screen and (-webkit-min-device-pixel-ratio: ` + e + `),
1049
- only screen and (min--moz-device-pixel-ratio: ` + e + `),
1050
- only screen and (-o-min-device-pixel-ratio: ` + e + `/1),
1051
- only screen and (min-resolution: ` + Math.round(e * 96) + `dpi),
1052
- only screen and (min-resolution: ` + e + `dppx)
1053
- `;
1054
- }
1055
- a(_e, "hiDPI");
1056
- function Ke(e) {
1057
- for (var r = "", t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
1058
- n[o - 1] = arguments[o];
1059
- for (var i = 0; i < e.length; i += 1)
1060
- if (r += e[i], i === n.length - 1 && n[i]) {
1061
- var s = n.filter(function(f) {
1062
- return !!f;
1063
- });
1064
- s.length > 1 ? (r = r.slice(0, -1), r += ", " + n[i]) : s.length === 1 && (r += "" + n[i]);
1065
- } else n[i] && (r += n[i] + " ");
1066
- return r.trim();
1067
- }
1068
- a(Ke, "constructGradientValue");
1069
- var qe;
1070
- function $t(e) {
1071
- var r = e.colorStops, t = e.fallback, n = e.toDirection, o = n === void 0 ? "" : n;
1072
- if (!r || r.length < 2)
1073
- throw new p(56);
1074
- return {
1075
- backgroundColor: t || r[0].replace(/,\s+/g, ",").split(" ")[0].replace(/,(?=\S)/g, ", "),
1076
- backgroundImage: Ke(qe || (qe = Qe.default(["linear-gradient(", "", ")"])), o, r.join(", ").replace(/,(?=\S)/g, ", "))
1077
- };
1078
- }
1079
- a($t, "linearGradient");
1080
- function Bt() {
1081
- var e;
1082
- return [(e = {
1083
- html: {
1084
- lineHeight: "1.15",
1085
- textSizeAdjust: "100%"
1086
- },
1087
- body: {
1088
- margin: "0"
1089
- },
1090
- main: {
1091
- display: "block"
1092
- },
1093
- h1: {
1094
- fontSize: "2em",
1095
- margin: "0.67em 0"
1096
- },
1097
- hr: {
1098
- boxSizing: "content-box",
1099
- height: "0",
1100
- overflow: "visible"
1101
- },
1102
- pre: {
1103
- fontFamily: "monospace, monospace",
1104
- fontSize: "1em"
1105
- },
1106
- a: {
1107
- backgroundColor: "transparent"
1108
- },
1109
- "abbr[title]": {
1110
- borderBottom: "none",
1111
- textDecoration: "underline"
1112
- }
1113
- }, e[`b,
1114
- strong`] = {
1115
- fontWeight: "bolder"
1116
- }, e[`code,
1117
- kbd,
1118
- samp`] = {
1119
- fontFamily: "monospace, monospace",
1120
- fontSize: "1em"
1121
- }, e.small = {
1122
- fontSize: "80%"
1123
- }, e[`sub,
1124
- sup`] = {
1125
- fontSize: "75%",
1126
- lineHeight: "0",
1127
- position: "relative",
1128
- verticalAlign: "baseline"
1129
- }, e.sub = {
1130
- bottom: "-0.25em"
1131
- }, e.sup = {
1132
- top: "-0.5em"
1133
- }, e.img = {
1134
- borderStyle: "none"
1135
- }, e[`button,
1136
- input,
1137
- optgroup,
1138
- select,
1139
- textarea`] = {
1140
- fontFamily: "inherit",
1141
- fontSize: "100%",
1142
- lineHeight: "1.15",
1143
- margin: "0"
1144
- }, e[`button,
1145
- input`] = {
1146
- overflow: "visible"
1147
- }, e[`button,
1148
- select`] = {
1149
- textTransform: "none"
1150
- }, e[`button,
1151
- html [type="button"],
1152
- [type="reset"],
1153
- [type="submit"]`] = {
1154
- WebkitAppearance: "button"
1155
- }, e[`button::-moz-focus-inner,
1156
- [type="button"]::-moz-focus-inner,
1157
- [type="reset"]::-moz-focus-inner,
1158
- [type="submit"]::-moz-focus-inner`] = {
1159
- borderStyle: "none",
1160
- padding: "0"
1161
- }, e[`button:-moz-focusring,
1162
- [type="button"]:-moz-focusring,
1163
- [type="reset"]:-moz-focusring,
1164
- [type="submit"]:-moz-focusring`] = {
1165
- outline: "1px dotted ButtonText"
1166
- }, e.fieldset = {
1167
- padding: "0.35em 0.625em 0.75em"
1168
- }, e.legend = {
1169
- boxSizing: "border-box",
1170
- color: "inherit",
1171
- display: "table",
1172
- maxWidth: "100%",
1173
- padding: "0",
1174
- whiteSpace: "normal"
1175
- }, e.progress = {
1176
- verticalAlign: "baseline"
1177
- }, e.textarea = {
1178
- overflow: "auto"
1179
- }, e[`[type="checkbox"],
1180
- [type="radio"]`] = {
1181
- boxSizing: "border-box",
1182
- padding: "0"
1183
- }, e[`[type="number"]::-webkit-inner-spin-button,
1184
- [type="number"]::-webkit-outer-spin-button`] = {
1185
- height: "auto"
1186
- }, e['[type="search"]'] = {
1187
- WebkitAppearance: "textfield",
1188
- outlineOffset: "-2px"
1189
- }, e['[type="search"]::-webkit-search-decoration'] = {
1190
- WebkitAppearance: "none"
1191
- }, e["::-webkit-file-upload-button"] = {
1192
- WebkitAppearance: "button",
1193
- font: "inherit"
1194
- }, e.details = {
1195
- display: "block"
1196
- }, e.summary = {
1197
- display: "list-item"
1198
- }, e.template = {
1199
- display: "none"
1200
- }, e["[hidden]"] = {
1201
- display: "none"
1202
- }, e), {
1203
- "abbr[title]": {
1204
- textDecoration: "underline dotted"
1205
- }
1206
- }];
1207
- }
1208
- a(Bt, "normalize");
1209
- var We;
1210
- function Lt(e) {
1211
- 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 ===
1212
- void 0 ? "" : f;
1213
- if (!r || r.length < 2)
1214
- throw new p(57);
1215
- return {
1216
- backgroundColor: o || r[0].split(" ")[0],
1217
- backgroundImage: Ke(We || (We = Qe.default(["radial-gradient(", "", "", "", ")"])), s, l, n, r.join(", "))
1218
- };
1219
- }
1220
- a(Lt, "radialGradient");
1221
- function Ht(e, r, t, n, o) {
1222
- var i;
1223
- if (t === void 0 && (t = "png"), o === void 0 && (o = "_2x"), !e)
1224
- throw new p(58);
1225
- var s = t.replace(/^\./, ""), f = n ? n + "." + s : "" + e + o + "." + s;
1226
- return i = {
1227
- backgroundImage: "url(" + e + "." + s + ")"
1228
- }, i[_e()] = b.default({
1229
- backgroundImage: "url(" + f + ")"
1230
- }, r ? {
1231
- backgroundSize: r
1232
- } : {}), i;
1233
- }
1234
- a(Ht, "retinaImage");
1235
- var Dt = {
1236
- easeInBack: "cubic-bezier(0.600, -0.280, 0.735, 0.045)",
1237
- easeInCirc: "cubic-bezier(0.600, 0.040, 0.980, 0.335)",
1238
- easeInCubic: "cubic-bezier(0.550, 0.055, 0.675, 0.190)",
1239
- easeInExpo: "cubic-bezier(0.950, 0.050, 0.795, 0.035)",
1240
- easeInQuad: "cubic-bezier(0.550, 0.085, 0.680, 0.530)",
1241
- easeInQuart: "cubic-bezier(0.895, 0.030, 0.685, 0.220)",
1242
- easeInQuint: "cubic-bezier(0.755, 0.050, 0.855, 0.060)",
1243
- easeInSine: "cubic-bezier(0.470, 0.000, 0.745, 0.715)",
1244
- easeOutBack: "cubic-bezier(0.175, 0.885, 0.320, 1.275)",
1245
- easeOutCubic: "cubic-bezier(0.215, 0.610, 0.355, 1.000)",
1246
- easeOutCirc: "cubic-bezier(0.075, 0.820, 0.165, 1.000)",
1247
- easeOutExpo: "cubic-bezier(0.190, 1.000, 0.220, 1.000)",
1248
- easeOutQuad: "cubic-bezier(0.250, 0.460, 0.450, 0.940)",
1249
- easeOutQuart: "cubic-bezier(0.165, 0.840, 0.440, 1.000)",
1250
- easeOutQuint: "cubic-bezier(0.230, 1.000, 0.320, 1.000)",
1251
- easeOutSine: "cubic-bezier(0.390, 0.575, 0.565, 1.000)",
1252
- easeInOutBack: "cubic-bezier(0.680, -0.550, 0.265, 1.550)",
1253
- easeInOutCirc: "cubic-bezier(0.785, 0.135, 0.150, 0.860)",
1254
- easeInOutCubic: "cubic-bezier(0.645, 0.045, 0.355, 1.000)",
1255
- easeInOutExpo: "cubic-bezier(1.000, 0.000, 0.000, 1.000)",
1256
- easeInOutQuad: "cubic-bezier(0.455, 0.030, 0.515, 0.955)",
1257
- easeInOutQuart: "cubic-bezier(0.770, 0.000, 0.175, 1.000)",
1258
- easeInOutQuint: "cubic-bezier(0.860, 0.000, 0.070, 1.000)",
1259
- easeInOutSine: "cubic-bezier(0.445, 0.050, 0.550, 0.950)"
1260
- };
1261
- function Et(e) {
1262
- return Dt[e];
1263
- }
1264
- a(Et, "getTimingFunction");
1265
- function qt(e) {
1266
- return Et(e);
1267
- }
1268
- a(qt, "timingFunctions");
1269
- var Wt = /* @__PURE__ */ a(function(r, t, n) {
1270
- var o = "" + n[0] + (n[1] || ""), i = "" + n[0] / 2 + (n[1] || ""), s = "" + t[0] + (t[1] || ""), f = "" + t[0] / 2 + (t[1] || "");
1271
- switch (r) {
1272
- case "top":
1273
- return "0 " + i + " " + s + " " + i;
1274
- case "topLeft":
1275
- return o + " " + s + " 0 0";
1276
- case "left":
1277
- return f + " " + o + " " + f + " 0";
1278
- case "bottomLeft":
1279
- return o + " 0 0 " + s;
1280
- case "bottom":
1281
- return s + " " + i + " 0 " + i;
1282
- case "bottomRight":
1283
- return "0 0 " + o + " " + s;
1284
- case "right":
1285
- return f + " 0 " + f + " " + o;
1286
- case "topRight":
1287
- default:
1288
- return "0 " + o + " " + s + " 0";
1289
- }
1290
- }, "getBorderWidth"), Ut = /* @__PURE__ */ a(function(r, t) {
1291
- switch (r) {
1292
- case "top":
1293
- case "bottomRight":
1294
- return {
1295
- borderBottomColor: t
1296
- };
1297
- case "right":
1298
- case "bottomLeft":
1299
- return {
1300
- borderLeftColor: t
1301
- };
1302
- case "bottom":
1303
- case "topLeft":
1304
- return {
1305
- borderTopColor: t
1306
- };
1307
- case "left":
1308
- case "topRight":
1309
- return {
1310
- borderRightColor: t
1311
- };
1312
- default:
1313
- throw new p(59);
1314
- }
1315
- }, "getBorderColor");
1316
- function Vt(e) {
1317
- var r = e.pointingDirection, t = e.height, n = e.width, o = e.foregroundColor, i = e.backgroundColor, s = i === void 0 ? "transparent" :
1318
- i, f = A(n), l = A(t);
1319
- if (isNaN(l[0]) || isNaN(f[0]))
1320
- throw new p(60);
1321
- return b.default({
1322
- width: "0",
1323
- height: "0",
1324
- borderColor: s
1325
- }, Ut(r, o), {
1326
- borderStyle: "solid",
1327
- borderWidth: Wt(r, l, f)
1328
- });
1329
- }
1330
- a(Vt, "triangle");
1331
- function Nt(e) {
1332
- e === void 0 && (e = "break-word");
1333
- var r = e === "break-word" ? "break-all" : e;
1334
- return {
1335
- overflowWrap: e,
1336
- wordWrap: e,
1337
- wordBreak: r
1338
- };
1339
- }
1340
- a(Nt, "wordWrap");
1341
- function ie(e) {
1342
- return Math.round(e * 255);
1343
- }
1344
- a(ie, "colorToInt");
1345
- function Gt(e, r, t) {
1346
- return ie(e) + "," + ie(r) + "," + ie(t);
1347
- }
1348
- a(Gt, "convertToInt");
1349
- function Q(e, r, t, n) {
1350
- if (n === void 0 && (n = Gt), r === 0)
1351
- return n(t, t, t);
1352
- 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;
1353
- 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) :
1354
- o >= 4 && o < 5 ? (f = s, c = i) : o >= 5 && o < 6 && (f = i, c = s);
1355
- var h = t - i / 2, d = f + h, m = l + h, x = c + h;
1356
- return n(d, m, x);
1357
- }
1358
- a(Q, "hslToRgb");
1359
- var Ue = {
1360
- aliceblue: "f0f8ff",
1361
- antiquewhite: "faebd7",
1362
- aqua: "00ffff",
1363
- aquamarine: "7fffd4",
1364
- azure: "f0ffff",
1365
- beige: "f5f5dc",
1366
- bisque: "ffe4c4",
1367
- black: "000",
1368
- blanchedalmond: "ffebcd",
1369
- blue: "0000ff",
1370
- blueviolet: "8a2be2",
1371
- brown: "a52a2a",
1372
- burlywood: "deb887",
1373
- cadetblue: "5f9ea0",
1374
- chartreuse: "7fff00",
1375
- chocolate: "d2691e",
1376
- coral: "ff7f50",
1377
- cornflowerblue: "6495ed",
1378
- cornsilk: "fff8dc",
1379
- crimson: "dc143c",
1380
- cyan: "00ffff",
1381
- darkblue: "00008b",
1382
- darkcyan: "008b8b",
1383
- darkgoldenrod: "b8860b",
1384
- darkgray: "a9a9a9",
1385
- darkgreen: "006400",
1386
- darkgrey: "a9a9a9",
1387
- darkkhaki: "bdb76b",
1388
- darkmagenta: "8b008b",
1389
- darkolivegreen: "556b2f",
1390
- darkorange: "ff8c00",
1391
- darkorchid: "9932cc",
1392
- darkred: "8b0000",
1393
- darksalmon: "e9967a",
1394
- darkseagreen: "8fbc8f",
1395
- darkslateblue: "483d8b",
1396
- darkslategray: "2f4f4f",
1397
- darkslategrey: "2f4f4f",
1398
- darkturquoise: "00ced1",
1399
- darkviolet: "9400d3",
1400
- deeppink: "ff1493",
1401
- deepskyblue: "00bfff",
1402
- dimgray: "696969",
1403
- dimgrey: "696969",
1404
- dodgerblue: "1e90ff",
1405
- firebrick: "b22222",
1406
- floralwhite: "fffaf0",
1407
- forestgreen: "228b22",
1408
- fuchsia: "ff00ff",
1409
- gainsboro: "dcdcdc",
1410
- ghostwhite: "f8f8ff",
1411
- gold: "ffd700",
1412
- goldenrod: "daa520",
1413
- gray: "808080",
1414
- green: "008000",
1415
- greenyellow: "adff2f",
1416
- grey: "808080",
1417
- honeydew: "f0fff0",
1418
- hotpink: "ff69b4",
1419
- indianred: "cd5c5c",
1420
- indigo: "4b0082",
1421
- ivory: "fffff0",
1422
- khaki: "f0e68c",
1423
- lavender: "e6e6fa",
1424
- lavenderblush: "fff0f5",
1425
- lawngreen: "7cfc00",
1426
- lemonchiffon: "fffacd",
1427
- lightblue: "add8e6",
1428
- lightcoral: "f08080",
1429
- lightcyan: "e0ffff",
1430
- lightgoldenrodyellow: "fafad2",
1431
- lightgray: "d3d3d3",
1432
- lightgreen: "90ee90",
1433
- lightgrey: "d3d3d3",
1434
- lightpink: "ffb6c1",
1435
- lightsalmon: "ffa07a",
1436
- lightseagreen: "20b2aa",
1437
- lightskyblue: "87cefa",
1438
- lightslategray: "789",
1439
- lightslategrey: "789",
1440
- lightsteelblue: "b0c4de",
1441
- lightyellow: "ffffe0",
1442
- lime: "0f0",
1443
- limegreen: "32cd32",
1444
- linen: "faf0e6",
1445
- magenta: "f0f",
1446
- maroon: "800000",
1447
- mediumaquamarine: "66cdaa",
1448
- mediumblue: "0000cd",
1449
- mediumorchid: "ba55d3",
1450
- mediumpurple: "9370db",
1451
- mediumseagreen: "3cb371",
1452
- mediumslateblue: "7b68ee",
1453
- mediumspringgreen: "00fa9a",
1454
- mediumturquoise: "48d1cc",
1455
- mediumvioletred: "c71585",
1456
- midnightblue: "191970",
1457
- mintcream: "f5fffa",
1458
- mistyrose: "ffe4e1",
1459
- moccasin: "ffe4b5",
1460
- navajowhite: "ffdead",
1461
- navy: "000080",
1462
- oldlace: "fdf5e6",
1463
- olive: "808000",
1464
- olivedrab: "6b8e23",
1465
- orange: "ffa500",
1466
- orangered: "ff4500",
1467
- orchid: "da70d6",
1468
- palegoldenrod: "eee8aa",
1469
- palegreen: "98fb98",
1470
- paleturquoise: "afeeee",
1471
- palevioletred: "db7093",
1472
- papayawhip: "ffefd5",
1473
- peachpuff: "ffdab9",
1474
- peru: "cd853f",
1475
- pink: "ffc0cb",
1476
- plum: "dda0dd",
1477
- powderblue: "b0e0e6",
1478
- purple: "800080",
1479
- rebeccapurple: "639",
1480
- red: "f00",
1481
- rosybrown: "bc8f8f",
1482
- royalblue: "4169e1",
1483
- saddlebrown: "8b4513",
1484
- salmon: "fa8072",
1485
- sandybrown: "f4a460",
1486
- seagreen: "2e8b57",
1487
- seashell: "fff5ee",
1488
- sienna: "a0522d",
1489
- silver: "c0c0c0",
1490
- skyblue: "87ceeb",
1491
- slateblue: "6a5acd",
1492
- slategray: "708090",
1493
- slategrey: "708090",
1494
- snow: "fffafa",
1495
- springgreen: "00ff7f",
1496
- steelblue: "4682b4",
1497
- tan: "d2b48c",
1498
- teal: "008080",
1499
- thistle: "d8bfd8",
1500
- tomato: "ff6347",
1501
- turquoise: "40e0d0",
1502
- violet: "ee82ee",
1503
- wheat: "f5deb3",
1504
- white: "fff",
1505
- whitesmoke: "f5f5f5",
1506
- yellow: "ff0",
1507
- yellowgreen: "9acd32"
1508
- };
1509
- function Qt(e) {
1510
- if (typeof e != "string") return e;
1511
- var r = e.toLowerCase();
1512
- return Ue[r] ? "#" + Ue[r] : e;
1513
- }
1514
- a(Qt, "nameToHex");
1515
- var Yt = /^#[a-fA-F0-9]{6}$/, Jt = /^#[a-fA-F0-9]{8}$/, Zt = /^#[a-fA-F0-9]{3}$/, Xt = /^#[a-fA-F0-9]{4}$/, ue = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,
1516
- _t = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, Kt = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,
1517
- en = /^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;
1518
- function P(e) {
1519
- if (typeof e != "string")
1520
- throw new p(3);
1521
- var r = Qt(e);
1522
- if (r.match(Yt))
1523
- return {
1524
- red: parseInt("" + r[1] + r[2], 16),
1525
- green: parseInt("" + r[3] + r[4], 16),
1526
- blue: parseInt("" + r[5] + r[6], 16)
1527
- };
1528
- if (r.match(Jt)) {
1529
- var t = parseFloat((parseInt("" + r[7] + r[8], 16) / 255).toFixed(2));
1530
- return {
1531
- red: parseInt("" + r[1] + r[2], 16),
1532
- green: parseInt("" + r[3] + r[4], 16),
1533
- blue: parseInt("" + r[5] + r[6], 16),
1534
- alpha: t
1535
- };
1536
- }
1537
- if (r.match(Zt))
1538
- return {
1539
- red: parseInt("" + r[1] + r[1], 16),
1540
- green: parseInt("" + r[2] + r[2], 16),
1541
- blue: parseInt("" + r[3] + r[3], 16)
1542
- };
1543
- if (r.match(Xt)) {
1544
- var n = parseFloat((parseInt("" + r[4] + r[4], 16) / 255).toFixed(2));
1545
- return {
1546
- red: parseInt("" + r[1] + r[1], 16),
1547
- green: parseInt("" + r[2] + r[2], 16),
1548
- blue: parseInt("" + r[3] + r[3], 16),
1549
- alpha: n
1550
- };
1551
- }
1552
- var o = ue.exec(r);
1553
- if (o)
1554
- return {
1555
- red: parseInt("" + o[1], 10),
1556
- green: parseInt("" + o[2], 10),
1557
- blue: parseInt("" + o[3], 10)
1558
- };
1559
- var i = _t.exec(r.substring(0, 50));
1560
- if (i)
1561
- return {
1562
- red: parseInt("" + i[1], 10),
1563
- green: parseInt("" + i[2], 10),
1564
- blue: parseInt("" + i[3], 10),
1565
- alpha: parseFloat("" + i[4]) > 1 ? parseFloat("" + i[4]) / 100 : parseFloat("" + i[4])
1566
- };
1567
- var s = Kt.exec(r);
1568
- if (s) {
1569
- var f = parseInt("" + s[1], 10), l = parseInt("" + s[2], 10) / 100, c = parseInt("" + s[3], 10) / 100, h = "rgb(" + Q(f, l, c) + ")", d = ue.
1570
- exec(h);
1571
- if (!d)
1572
- throw new p(4, r, h);
1573
- return {
1574
- red: parseInt("" + d[1], 10),
1575
- green: parseInt("" + d[2], 10),
1576
- blue: parseInt("" + d[3], 10)
1577
- };
1578
- }
1579
- var m = en.exec(r.substring(0, 50));
1580
- if (m) {
1581
- 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 = ue.
1582
- exec(v);
1583
- if (!T)
1584
- throw new p(4, r, v);
1585
- return {
1586
- red: parseInt("" + T[1], 10),
1587
- green: parseInt("" + T[2], 10),
1588
- blue: parseInt("" + T[3], 10),
1589
- alpha: parseFloat("" + m[4]) > 1 ? parseFloat("" + m[4]) / 100 : parseFloat("" + m[4])
1590
- };
1591
- }
1592
- throw new p(5);
1593
- }
1594
- a(P, "parseToRgb");
1595
- function rn(e) {
1596
- 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;
1597
- if (o === i)
1598
- return e.alpha !== void 0 ? {
1599
- hue: 0,
1600
- saturation: 0,
1601
- lightness: s,
1602
- alpha: e.alpha
1603
- } : {
1604
- hue: 0,
1605
- saturation: 0,
1606
- lightness: s
1607
- };
1608
- var f, l = o - i, c = s > 0.5 ? l / (2 - o - i) : l / (o + i);
1609
- switch (o) {
1610
- case r:
1611
- f = (t - n) / l + (t < n ? 6 : 0);
1612
- break;
1613
- case t:
1614
- f = (n - r) / l + 2;
1615
- break;
1616
- default:
1617
- f = (r - t) / l + 4;
1618
- break;
1619
- }
1620
- return f *= 60, e.alpha !== void 0 ? {
1621
- hue: f,
1622
- saturation: c,
1623
- lightness: s,
1624
- alpha: e.alpha
1625
- } : {
1626
- hue: f,
1627
- saturation: c,
1628
- lightness: s
1629
- };
1630
- }
1631
- a(rn, "rgbToHsl");
1632
- function C(e) {
1633
- return rn(P(e));
1634
- }
1635
- a(C, "parseToHsl");
1636
- var tn = /* @__PURE__ */ a(function(r) {
1637
- return r.length === 7 && r[1] === r[2] && r[3] === r[4] && r[5] === r[6] ? "#" + r[1] + r[3] + r[5] : r;
1638
- }, "reduceHexValue"), de = tn;
1639
- function $(e) {
1640
- var r = e.toString(16);
1641
- return r.length === 1 ? "0" + r : r;
1642
- }
1643
- a($, "numberToHex");
1644
- function se(e) {
1645
- return $(Math.round(e * 255));
1646
- }
1647
- a(se, "colorToHex");
1648
- function nn(e, r, t) {
1649
- return de("#" + se(e) + se(r) + se(t));
1650
- }
1651
- a(nn, "convertToHex");
1652
- function X(e, r, t) {
1653
- return Q(e, r, t, nn);
1654
- }
1655
- a(X, "hslToHex");
1656
- function ce(e, r, t) {
1657
- if (typeof e == "number" && typeof r == "number" && typeof t == "number")
1658
- return X(e, r, t);
1659
- if (typeof e == "object" && r === void 0 && t === void 0)
1660
- return X(e.hue, e.saturation, e.lightness);
1661
- throw new p(1);
1662
- }
1663
- a(ce, "hsl");
1664
- function me(e, r, t, n) {
1665
- if (typeof e == "number" && typeof r == "number" && typeof t == "number" && typeof n == "number")
1666
- return n >= 1 ? X(e, r, t) : "rgba(" + Q(e, r, t) + "," + n + ")";
1667
- if (typeof e == "object" && r === void 0 && t === void 0 && n === void 0)
1668
- return e.alpha >= 1 ? X(e.hue, e.saturation, e.lightness) : "rgba(" + Q(e.hue, e.saturation, e.lightness) + "," + e.alpha + ")";
1669
- throw new p(2);
1670
- }
1671
- a(me, "hsla");
1672
- function Y(e, r, t) {
1673
- if (typeof e == "number" && typeof r == "number" && typeof t == "number")
1674
- return de("#" + $(e) + $(r) + $(t));
1675
- if (typeof e == "object" && r === void 0 && t === void 0)
1676
- return de("#" + $(e.red) + $(e.green) + $(e.blue));
1677
- throw new p(6);
1678
- }
1679
- a(Y, "rgb");
1680
- function L(e, r, t, n) {
1681
- if (typeof e == "string" && typeof r == "number") {
1682
- var o = P(e);
1683
- return "rgba(" + o.red + "," + o.green + "," + o.blue + "," + r + ")";
1684
- } else {
1685
- if (typeof e == "number" && typeof r == "number" && typeof t == "number" && typeof n == "number")
1686
- return n >= 1 ? Y(e, r, t) : "rgba(" + e + "," + r + "," + t + "," + n + ")";
1687
- if (typeof e == "object" && r === void 0 && t === void 0 && n === void 0)
1688
- return e.alpha >= 1 ? Y(e.red, e.green, e.blue) : "rgba(" + e.red + "," + e.green + "," + e.blue + "," + e.alpha + ")";
1689
- }
1690
- throw new p(7);
1691
- }
1692
- a(L, "rgba");
1693
- var an = /* @__PURE__ */ a(function(r) {
1694
- return typeof r.red == "number" && typeof r.green == "number" && typeof r.blue == "number" && (typeof r.alpha != "number" || typeof r.alpha >
1695
- "u");
1696
- }, "isRgb"), on = /* @__PURE__ */ a(function(r) {
1697
- return typeof r.red == "number" && typeof r.green == "number" && typeof r.blue == "number" && typeof r.alpha == "number";
1698
- }, "isRgba"), un = /* @__PURE__ */ a(function(r) {
1699
- return typeof r.hue == "number" && typeof r.saturation == "number" && typeof r.lightness == "number" && (typeof r.alpha != "number" || typeof r.
1700
- alpha > "u");
1701
- }, "isHsl"), sn = /* @__PURE__ */ a(function(r) {
1702
- return typeof r.hue == "number" && typeof r.saturation == "number" && typeof r.lightness == "number" && typeof r.alpha == "number";
1703
- }, "isHsla");
1704
- function F(e) {
1705
- if (typeof e != "object") throw new p(8);
1706
- if (on(e)) return L(e);
1707
- if (an(e)) return Y(e);
1708
- if (sn(e)) return me(e);
1709
- if (un(e)) return ce(e);
1710
- throw new p(8);
1711
- }
1712
- a(F, "toColorString");
1713
- function er(e, r, t) {
1714
- return /* @__PURE__ */ a(function() {
1715
- var o = t.concat(Array.prototype.slice.call(arguments));
1716
- return o.length >= r ? e.apply(this, o) : er(e, r, o);
1717
- }, "fn");
1718
- }
1719
- a(er, "curried");
1720
- function y(e) {
1721
- return er(e, e.length, []);
1722
- }
1723
- a(y, "curry");
1724
- function fn(e, r) {
1725
- if (r === "transparent") return r;
1726
- var t = C(r);
1727
- return F(b.default({}, t, {
1728
- hue: t.hue + parseFloat(e)
1729
- }));
1730
- }
1731
- a(fn, "adjustHue");
1732
- var pn = /* @__PURE__ */ y(fn), ln = pn;
1733
- function dn(e) {
1734
- if (e === "transparent") return e;
1735
- var r = C(e);
1736
- return F(b.default({}, r, {
1737
- hue: (r.hue + 180) % 360
1738
- }));
1739
- }
1740
- a(dn, "complement");
1741
- function H(e, r, t) {
1742
- return Math.max(e, Math.min(r, t));
1743
- }
1744
- a(H, "guard");
1745
- function cn(e, r) {
1746
- if (r === "transparent") return r;
1747
- var t = C(r);
1748
- return F(b.default({}, t, {
1749
- lightness: H(0, 1, t.lightness - parseFloat(e))
1750
- }));
1751
- }
1752
- a(cn, "darken");
1753
- var mn = /* @__PURE__ */ y(cn), gn = mn;
1754
- function bn(e, r) {
1755
- if (r === "transparent") return r;
1756
- var t = C(r);
1757
- return F(b.default({}, t, {
1758
- saturation: H(0, 1, t.saturation - parseFloat(e))
1759
- }));
1760
- }
1761
- a(bn, "desaturate");
1762
- var hn = /* @__PURE__ */ y(bn), vn = hn;
1763
- function _(e) {
1764
- if (e === "transparent") return 0;
1765
- var r = P(e), t = Object.keys(r).map(function(s) {
1766
- var f = r[s] / 255;
1767
- return f <= 0.03928 ? f / 12.92 : Math.pow((f + 0.055) / 1.055, 2.4);
1768
- }), n = t[0], o = t[1], i = t[2];
1769
- return parseFloat((0.2126 * n + 0.7152 * o + 0.0722 * i).toFixed(3));
1770
- }
1771
- a(_, "getLuminance");
1772
- function ge(e, r) {
1773
- var t = _(e), n = _(r);
1774
- return parseFloat((t > n ? (t + 0.05) / (n + 0.05) : (n + 0.05) / (t + 0.05)).toFixed(2));
1775
- }
1776
- a(ge, "getContrast");
1777
- function yn(e) {
1778
- return e === "transparent" ? e : F(b.default({}, C(e), {
1779
- saturation: 0
1780
- }));
1781
- }
1782
- a(yn, "grayscale");
1783
- function xn(e) {
1784
- if (typeof e == "object" && typeof e.hue == "number" && typeof e.saturation == "number" && typeof e.lightness == "number")
1785
- return e.alpha && typeof e.alpha == "number" ? me({
1786
- hue: e.hue,
1787
- saturation: e.saturation,
1788
- lightness: e.lightness,
1789
- alpha: e.alpha
1790
- }) : ce({
1791
- hue: e.hue,
1792
- saturation: e.saturation,
1793
- lightness: e.lightness
1794
- });
1795
- throw new p(45);
1796
- }
1797
- a(xn, "hslToColorString");
1798
- function wn(e) {
1799
- if (e === "transparent") return e;
1800
- var r = P(e);
1801
- return F(b.default({}, r, {
1802
- red: 255 - r.red,
1803
- green: 255 - r.green,
1804
- blue: 255 - r.blue
1805
- }));
1806
- }
1807
- a(wn, "invert");
1808
- function Sn(e, r) {
1809
- if (r === "transparent") return r;
1810
- var t = C(r);
1811
- return F(b.default({}, t, {
1812
- lightness: H(0, 1, t.lightness + parseFloat(e))
1813
- }));
1814
- }
1815
- a(Sn, "lighten");
1816
- var Fn = /* @__PURE__ */ y(Sn), Cn = Fn;
1817
- function zn(e, r) {
1818
- var t = ge(e, r);
1819
- return {
1820
- AA: t >= 4.5,
1821
- AALarge: t >= 3,
1822
- AAA: t >= 7,
1823
- AAALarge: t >= 4.5
1824
- };
1825
- }
1826
- a(zn, "meetsContrastGuidelines");
1827
- function Tn(e, r, t) {
1828
- if (r === "transparent") return t;
1829
- if (t === "transparent") return r;
1830
- if (e === 0) return t;
1831
- var n = P(r), o = b.default({}, n, {
1832
- alpha: typeof n.alpha == "number" ? n.alpha : 1
1833
- }), i = P(t), s = b.default({}, i, {
1834
- alpha: typeof i.alpha == "number" ? i.alpha : 1
1835
- }), f = o.alpha - s.alpha, l = parseFloat(e) * 2 - 1, c = l * f === -1 ? l : l + f, h = 1 + l * f, d = (c / h + 1) / 2, m = 1 - d, x = {
1836
- red: Math.floor(o.red * d + s.red * m),
1837
- green: Math.floor(o.green * d + s.green * m),
1838
- blue: Math.floor(o.blue * d + s.blue * m),
1839
- alpha: o.alpha * parseFloat(e) + s.alpha * (1 - parseFloat(e))
1840
- };
1841
- return L(x);
1842
- }
1843
- a(Tn, "mix");
1844
- var An = /* @__PURE__ */ y(Tn), be = An;
1845
- function In(e, r) {
1846
- if (r === "transparent") return r;
1847
- var t = P(r), n = typeof t.alpha == "number" ? t.alpha : 1, o = b.default({}, t, {
1848
- alpha: H(0, 1, (n * 100 + parseFloat(e) * 100) / 100)
1849
- });
1850
- return L(o);
1851
- }
1852
- a(In, "opacify");
1853
- var On = /* @__PURE__ */ y(In), Rn = On, Ve = "#000", Ne = "#fff";
1854
- function jn(e, r, t, n) {
1855
- r === void 0 && (r = Ve), t === void 0 && (t = Ne), n === void 0 && (n = !0);
1856
- var o = _(e) > 0.179, i = o ? r : t;
1857
- return !n || ge(e, i) >= 4.5 ? i : o ? Ve : Ne;
1858
- }
1859
- a(jn, "readableColor");
1860
- function Mn(e) {
1861
- if (typeof e == "object" && typeof e.red == "number" && typeof e.green == "number" && typeof e.blue == "number")
1862
- return typeof e.alpha == "number" ? L({
1863
- red: e.red,
1864
- green: e.green,
1865
- blue: e.blue,
1866
- alpha: e.alpha
1867
- }) : Y({
1868
- red: e.red,
1869
- green: e.green,
1870
- blue: e.blue
1871
- });
1872
- throw new p(46);
1873
- }
1874
- a(Mn, "rgbToColorString");
1875
- function Pn(e, r) {
1876
- if (r === "transparent") return r;
1877
- var t = C(r);
1878
- return F(b.default({}, t, {
1879
- saturation: H(0, 1, t.saturation + parseFloat(e))
1880
- }));
1881
- }
1882
- a(Pn, "saturate");
1883
- var kn = /* @__PURE__ */ y(Pn), $n = kn;
1884
- function Bn(e, r) {
1885
- return r === "transparent" ? r : F(b.default({}, C(r), {
1886
- hue: parseFloat(e)
1887
- }));
1888
- }
1889
- a(Bn, "setHue");
1890
- var Ln = /* @__PURE__ */ y(Bn), Hn = Ln;
1891
- function Dn(e, r) {
1892
- return r === "transparent" ? r : F(b.default({}, C(r), {
1893
- lightness: parseFloat(e)
1894
- }));
1895
- }
1896
- a(Dn, "setLightness");
1897
- var En = /* @__PURE__ */ y(Dn), qn = En;
1898
- function Wn(e, r) {
1899
- return r === "transparent" ? r : F(b.default({}, C(r), {
1900
- saturation: parseFloat(e)
1901
- }));
1902
- }
1903
- a(Wn, "setSaturation");
1904
- var Un = /* @__PURE__ */ y(Wn), Vn = Un;
1905
- function Nn(e, r) {
1906
- return r === "transparent" ? r : be(parseFloat(e), "rgb(0, 0, 0)", r);
1907
- }
1908
- a(Nn, "shade");
1909
- var Gn = /* @__PURE__ */ y(Nn), Qn = Gn;
1910
- function Yn(e, r) {
1911
- return r === "transparent" ? r : be(parseFloat(e), "rgb(255, 255, 255)", r);
1912
- }
1913
- a(Yn, "tint");
1914
- var Jn = /* @__PURE__ */ y(Yn), Zn = Jn;
1915
- function Xn(e, r) {
1916
- if (r === "transparent") return r;
1917
- var t = P(r), n = typeof t.alpha == "number" ? t.alpha : 1, o = b.default({}, t, {
1918
- alpha: H(0, 1, +(n * 100 - parseFloat(e) * 100).toFixed(2) / 100)
1919
- });
1920
- return L(o);
1921
- }
1922
- a(Xn, "transparentize");
1923
- var _n = /* @__PURE__ */ y(Xn), Kn = _n;
1924
- function ea() {
1925
- for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
1926
- r[t] = arguments[t];
1927
- var n = Array.isArray(r[0]);
1928
- if (!n && r.length > 8)
1929
- throw new p(64);
1930
- var o = r.map(function(i) {
1931
- if (n && !Array.isArray(i) || !n && Array.isArray(i))
1932
- throw new p(65);
1933
- if (Array.isArray(i) && i.length > 8)
1934
- throw new p(66);
1935
- return Array.isArray(i) ? i.join(" ") : i;
1936
- }).join(", ");
1937
- return {
1938
- animation: o
1939
- };
1940
- }
1941
- a(ea, "animation");
1942
- function ra() {
1943
- for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
1944
- r[t] = arguments[t];
1945
- return {
1946
- backgroundImage: r.join(", ")
1947
- };
1948
- }
1949
- a(ra, "backgroundImages");
1950
- function ta() {
1951
- for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
1952
- r[t] = arguments[t];
1953
- return {
1954
- background: r.join(", ")
1955
- };
1956
- }
1957
- a(ta, "backgrounds");
1958
- var na = ["top", "right", "bottom", "left"];
1959
- function aa(e) {
1960
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
1961
- t[n - 1] = arguments[n];
1962
- if (typeof e == "string" && na.indexOf(e) >= 0) {
1963
- var o;
1964
- return o = {}, o["border" + G(e) + "Width"] = t[0], o["border" + G(e) + "Style"] = t[1], o["border" + G(e) + "Color"] = t[2], o;
1965
- } else
1966
- return t.unshift(e), {
1967
- borderWidth: t[0],
1968
- borderStyle: t[1],
1969
- borderColor: t[2]
1970
- };
1971
- }
1972
- a(aa, "border");
1973
- function oa() {
1974
- for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
1975
- r[t] = arguments[t];
1976
- return k.apply(void 0, ["borderColor"].concat(r));
1977
- }
1978
- a(oa, "borderColor");
1979
- function ia(e, r) {
1980
- var t = G(e);
1981
- if (!r && r !== 0)
1982
- throw new p(62);
1983
- if (t === "Top" || t === "Bottom") {
1984
- var n;
1985
- return n = {}, n["border" + t + "RightRadius"] = r, n["border" + t + "LeftRadius"] = r, n;
1986
- }
1987
- if (t === "Left" || t === "Right") {
1988
- var o;
1989
- return o = {}, o["borderTop" + t + "Radius"] = r, o["borderBottom" + t + "Radius"] = r, o;
1990
- }
1991
- throw new p(63);
1992
- }
1993
- a(ia, "borderRadius");
1994
- function ua() {
1995
- for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
1996
- r[t] = arguments[t];
1997
- return k.apply(void 0, ["borderStyle"].concat(r));
1998
- }
1999
- a(ua, "borderStyle");
2000
- function sa() {
2001
- for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
2002
- r[t] = arguments[t];
2003
- return k.apply(void 0, ["borderWidth"].concat(r));
2004
- }
2005
- a(sa, "borderWidth");
2006
- function Ge(e, r) {
2007
- var t = r ? ":" + r : "";
2008
- return e(t);
2009
- }
2010
- a(Ge, "generateSelectors");
2011
- function rr(e, r, t) {
2012
- if (!r) throw new p(67);
2013
- if (e.length === 0) return Ge(r, null);
2014
- for (var n = [], o = 0; o < e.length; o += 1) {
2015
- if (t && t.indexOf(e[o]) < 0)
2016
- throw new p(68);
2017
- n.push(Ge(r, e[o]));
2018
- }
2019
- return n = n.join(","), n;
2020
- }
2021
- a(rr, "statefulSelectors");
2022
- var fa = [void 0, null, "active", "focus", "hover"];
2023
- function pa(e) {
2024
- return "button" + e + `,
2025
- input[type="button"]` + e + `,
2026
- input[type="reset"]` + e + `,
2027
- input[type="submit"]` + e;
2028
- }
2029
- a(pa, "template$1");
2030
- function la() {
2031
- for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
2032
- r[t] = arguments[t];
2033
- return rr(r, pa, fa);
2034
- }
2035
- a(la, "buttons");
2036
- function da() {
2037
- for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
2038
- r[t] = arguments[t];
2039
- return k.apply(void 0, ["margin"].concat(r));
2040
- }
2041
- a(da, "margin");
2042
- function ca() {
2043
- for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
2044
- r[t] = arguments[t];
2045
- return k.apply(void 0, ["padding"].concat(r));
2046
- }
2047
- a(ca, "padding");
2048
- var ma = ["absolute", "fixed", "relative", "static", "sticky"];
2049
- function ga(e) {
2050
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
2051
- t[n - 1] = arguments[n];
2052
- return ma.indexOf(e) >= 0 && e ? b.default({}, k.apply(void 0, [""].concat(t)), {
2053
- position: e
2054
- }) : k.apply(void 0, ["", e].concat(t));
2055
- }
2056
- a(ga, "position");
2057
- function ba(e, r) {
2058
- return r === void 0 && (r = e), {
2059
- height: e,
2060
- width: r
2061
- };
2062
- }
2063
- a(ba, "size");
2064
- var ha = [void 0, null, "active", "focus", "hover"];
2065
- function va(e) {
2066
- return 'input[type="color"]' + e + `,
2067
- input[type="date"]` + e + `,
2068
- input[type="datetime"]` + e + `,
2069
- input[type="datetime-local"]` + e + `,
2070
- input[type="email"]` + e + `,
2071
- input[type="month"]` + e + `,
2072
- input[type="number"]` + e + `,
2073
- input[type="password"]` + e + `,
2074
- input[type="search"]` + e + `,
2075
- input[type="tel"]` + e + `,
2076
- input[type="text"]` + e + `,
2077
- input[type="time"]` + e + `,
2078
- input[type="url"]` + e + `,
2079
- input[type="week"]` + e + `,
2080
- input:not([type])` + e + `,
2081
- textarea` + e;
2082
- }
2083
- a(va, "template");
2084
- function ya() {
2085
- for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
2086
- r[t] = arguments[t];
2087
- return rr(r, va, ha);
2088
- }
2089
- a(ya, "textInputs");
2090
- function xa() {
2091
- for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
2092
- r[t] = arguments[t];
2093
- if (Array.isArray(r[0]) && r.length === 2) {
2094
- var n = r[1];
2095
- if (typeof n != "string")
2096
- throw new p(61);
2097
- var o = r[0].map(function(i) {
2098
- return i + " " + n;
2099
- }).join(", ");
2100
- return {
2101
- transition: o
2102
- };
2103
- } else
2104
- return {
2105
- transition: r.join(", ")
2106
- };
2107
- }
2108
- a(xa, "transitions");
2109
- u.adjustHue = ln;
2110
- u.animation = ea;
2111
- u.backgroundImages = ra;
2112
- u.backgrounds = ta;
2113
- u.between = le;
2114
- u.border = aa;
2115
- u.borderColor = oa;
2116
- u.borderRadius = ia;
2117
- u.borderStyle = ua;
2118
- u.borderWidth = sa;
2119
- u.buttons = la;
2120
- u.clearFix = xt;
2121
- u.complement = dn;
2122
- u.cover = wt;
2123
- u.cssVar = Kr;
2124
- u.darken = gn;
2125
- u.desaturate = vn;
2126
- u.directionalProperty = k;
2127
- u.easeIn = gt;
2128
- u.easeInOut = ht;
2129
- u.easeOut = yt;
2130
- u.ellipsis = St;
2131
- u.em = it;
2132
- u.fluidRange = zt;
2133
- u.fontFace = Mt;
2134
- u.getContrast = ge;
2135
- u.getLuminance = _;
2136
- u.getValueAndUnit = A;
2137
- u.grayscale = yn;
2138
- u.hiDPI = _e;
2139
- u.hideText = Pt;
2140
- u.hideVisually = kt;
2141
- u.hsl = ce;
2142
- u.hslToColorString = xn;
2143
- u.hsla = me;
2144
- u.important = Je;
2145
- u.invert = wn;
2146
- u.lighten = Cn;
2147
- u.linearGradient = $t;
2148
- u.margin = da;
2149
- u.math = Xr;
2150
- u.meetsContrastGuidelines = zn;
2151
- u.mix = be;
2152
- u.modularScale = ft;
2153
- u.normalize = Bt;
2154
- u.opacify = Rn;
2155
- u.padding = ca;
2156
- u.parseToHsl = C;
2157
- u.parseToRgb = P;
2158
- u.position = ga;
2159
- u.radialGradient = Lt;
2160
- u.readableColor = jn;
2161
- u.rem = lt;
2162
- u.remToPx = ct;
2163
- u.retinaImage = Ht;
2164
- u.rgb = Y;
2165
- u.rgbToColorString = Mn;
2166
- u.rgba = L;
2167
- u.saturate = $n;
2168
- u.setHue = Hn;
2169
- u.setLightness = qn;
2170
- u.setSaturation = Vn;
2171
- u.shade = Qn;
2172
- u.size = ba;
2173
- u.stripUnit = fe;
2174
- u.textInputs = ya;
2175
- u.timingFunctions = qt;
2176
- u.tint = Zn;
2177
- u.toColorString = F;
2178
- u.transitions = xa;
2179
- u.transparentize = Kn;
2180
- u.triangle = Vt;
2181
- u.wordWrap = Nt;
2182
- });
2183
-
2184
- // ../node_modules/@storybook/global/dist/index.js
2185
- var ir = S((fo, or) => {
2186
- "use strict";
2187
- var xe = Object.defineProperty, Fa = Object.getOwnPropertyDescriptor, Ca = Object.getOwnPropertyNames, za = Object.prototype.hasOwnProperty,
2188
- Ta = /* @__PURE__ */ a((e, r) => {
2189
- for (var t in r)
2190
- xe(e, t, { get: r[t], enumerable: !0 });
2191
- }, "__export"), Aa = /* @__PURE__ */ a((e, r, t, n) => {
2192
- if (r && typeof r == "object" || typeof r == "function")
2193
- for (let o of Ca(r))
2194
- !za.call(e, o) && o !== t && xe(e, o, { get: /* @__PURE__ */ a(() => r[o], "get"), enumerable: !(n = Fa(r, o)) || n.enumerable });
2195
- return e;
2196
- }, "__copyProps"), Ia = /* @__PURE__ */ a((e) => Aa(xe({}, "__esModule", { value: !0 }), e), "__toCommonJS"), ar = {};
2197
- Ta(ar, {
2198
- global: /* @__PURE__ */ a(() => Oa, "global")
2199
- });
2200
- or.exports = Ia(ar);
2201
- var Oa = (() => {
2202
- let e;
2203
- return typeof window < "u" ? e = window : typeof globalThis < "u" ? e = globalThis : typeof global < "u" ? e = global : typeof self < "u" ?
2204
- e = self : e = {}, e;
2205
- })();
2206
- });
16
+ var D = (e) => S(l({}, "__esModule", { value: !0 }), e);
2207
17
 
2208
18
  // src/theming/create.ts
2209
- var ka = {};
2210
- br(ka, {
2211
- create: () => Pa,
2212
- themes: () => K
19
+ var R = {};
20
+ T(R, {
21
+ create: () => M,
22
+ themes: () => d
2213
23
  });
2214
- module.exports = hr(ka);
24
+ module.exports = D(R);
2215
25
 
2216
26
  // src/theming/base.ts
2217
- var tr = ee(he(), 1), g = {
27
+ var h = require("polished"), r = {
2218
28
  // Official color palette
2219
29
  primary: "#FF4785",
2220
30
  // coral
@@ -2252,20 +62,20 @@ var tr = ee(he(), 1), g = {
2252
62
  positiveText: "#448028",
2253
63
  negativeText: "#D43900",
2254
64
  warningText: "#A15C20"
2255
- }, ve = {
65
+ }, p = {
2256
66
  app: "#F6F9FC",
2257
- bar: g.lightest,
2258
- content: g.lightest,
2259
- preview: g.lightest,
67
+ bar: r.lightest,
68
+ content: r.lightest,
69
+ preview: r.lightest,
2260
70
  gridCellSize: 10,
2261
- hoverable: (0, tr.transparentize)(0.9, g.secondary),
71
+ hoverable: (0, h.transparentize)(0.9, r.secondary),
2262
72
  // hover state for items in a list
2263
73
  // Notification, error, and warning backgrounds
2264
74
  positive: "#E1FFD4",
2265
75
  negative: "#FEDED2",
2266
76
  warning: "#FFF5CF",
2267
77
  critical: "#FF4400"
2268
- }, D = {
78
+ }, i = {
2269
79
  fonts: {
2270
80
  base: [
2271
81
  '"Nunito Sans"',
@@ -2311,7 +121,7 @@ var tr = ee(he(), 1), g = {
2311
121
  };
2312
122
 
2313
123
  // src/theming/themes/dark.ts
2314
- var wa = {
124
+ var v = {
2315
125
  base: "dark",
2316
126
  // Storybook-specific color palette
2317
127
  colorPrimary: "#FF4785",
@@ -2321,20 +131,20 @@ var wa = {
2321
131
  // UI
2322
132
  appBg: "#222425",
2323
133
  appContentBg: "#1B1C1D",
2324
- appPreviewBg: g.lightest,
134
+ appPreviewBg: r.lightest,
2325
135
  appBorderColor: "rgba(255,255,255,.1)",
2326
136
  appBorderRadius: 4,
2327
137
  // Fonts
2328
- fontBase: D.fonts.base,
2329
- fontCode: D.fonts.mono,
138
+ fontBase: i.fonts.base,
139
+ fontCode: i.fonts.mono,
2330
140
  // Text colors
2331
141
  textColor: "#C9CDCF",
2332
142
  textInverseColor: "#222425",
2333
143
  textMutedColor: "#798186",
2334
144
  // Toolbar default and active colors
2335
- barTextColor: g.mediumdark,
2336
- barHoverColor: g.secondary,
2337
- barSelectedColor: g.secondary,
145
+ barTextColor: r.mediumdark,
146
+ barHoverColor: r.secondary,
147
+ barSelectedColor: r.secondary,
2338
148
  barBg: "#292C2E",
2339
149
  // Form colors
2340
150
  buttonBg: "#222425",
@@ -2343,12 +153,12 @@ var wa = {
2343
153
  booleanSelectedBg: "#2E3438",
2344
154
  inputBg: "#1B1C1D",
2345
155
  inputBorder: "rgba(255,255,255,.1)",
2346
- inputTextColor: g.lightest,
156
+ inputTextColor: r.lightest,
2347
157
  inputBorderRadius: 4
2348
- }, nr = wa;
158
+ }, u = v;
2349
159
 
2350
160
  // src/theming/themes/light.ts
2351
- var Sa = {
161
+ var V = {
2352
162
  base: "light",
2353
163
  // Storybook-specific color palette
2354
164
  colorPrimary: "#FF4785",
@@ -2356,67 +166,67 @@ var Sa = {
2356
166
  colorSecondary: "#029CFD",
2357
167
  // ocean
2358
168
  // UI
2359
- appBg: ve.app,
2360
- appContentBg: g.lightest,
2361
- appPreviewBg: g.lightest,
2362
- appBorderColor: g.border,
169
+ appBg: p.app,
170
+ appContentBg: r.lightest,
171
+ appPreviewBg: r.lightest,
172
+ appBorderColor: r.border,
2363
173
  appBorderRadius: 4,
2364
174
  // Fonts
2365
- fontBase: D.fonts.base,
2366
- fontCode: D.fonts.mono,
175
+ fontBase: i.fonts.base,
176
+ fontCode: i.fonts.mono,
2367
177
  // Text colors
2368
- textColor: g.darkest,
2369
- textInverseColor: g.lightest,
2370
- textMutedColor: g.dark,
178
+ textColor: r.darkest,
179
+ textInverseColor: r.lightest,
180
+ textMutedColor: r.dark,
2371
181
  // Toolbar default and active colors
2372
- barTextColor: g.mediumdark,
2373
- barHoverColor: g.secondary,
2374
- barSelectedColor: g.secondary,
2375
- barBg: g.lightest,
182
+ barTextColor: r.mediumdark,
183
+ barHoverColor: r.secondary,
184
+ barSelectedColor: r.secondary,
185
+ barBg: r.lightest,
2376
186
  // Form colors
2377
- buttonBg: ve.app,
2378
- buttonBorder: g.medium,
2379
- booleanBg: g.mediumlight,
2380
- booleanSelectedBg: g.lightest,
2381
- inputBg: g.lightest,
2382
- inputBorder: g.border,
2383
- inputTextColor: g.darkest,
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,
2384
194
  inputBorderRadius: 4
2385
- }, ye = Sa;
195
+ }, g = V;
2386
196
 
2387
197
  // src/theming/utils.ts
2388
- var ur = require("storybook/internal/client-logger"), sr = ee(ir(), 1), B = ee(he(), 1);
2389
- var { window: we } = sr.global;
2390
- var Ra = /* @__PURE__ */ a((e) => typeof e != "string" ? (ur.logger.warn(
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(
2391
201
  `Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`
2392
- ), !1) : !0, "isColorString"), ja = /* @__PURE__ */ a((e) => !/(gradient|var|calc)/.test(e), "isValidColorForPolished"), Ma = /* @__PURE__ */ a(
2393
- (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,
2394
- "applyPolished"), fr = /* @__PURE__ */ a((e) => (r) => {
2395
- if (!Ra(r) || !ja(r))
2396
- return r;
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;
2397
207
  try {
2398
- return Ma(e, r);
208
+ return P(e, t);
2399
209
  } catch {
2400
- return r;
210
+ return t;
2401
211
  }
2402
- }, "colorFactory"), lo = fr("lighten"), co = fr("darken"), pr = /* @__PURE__ */ a(() => !we || !we.matchMedia ? "light" : we.matchMedia("(pr\
2403
- efers-color-scheme: dark)").matches ? "dark" : "light", "getPreferredColorScheme");
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");
2404
214
 
2405
215
  // src/theming/create.ts
2406
- var K = {
2407
- light: ye,
2408
- dark: nr,
2409
- normal: ye
2410
- }, Se = pr(), Pa = /* @__PURE__ */ a((e = { base: Se }, r) => {
2411
- let t = {
2412
- ...K[Se],
2413
- ...K[e.base] || {},
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] || {},
2414
224
  ...e,
2415
- base: K[e.base] ? e.base : Se
225
+ base: d[e.base] ? e.base : c
2416
226
  };
2417
227
  return {
2418
- ...r,
2419
228
  ...t,
2420
- barSelectedColor: e.barSelectedColor || t.colorSecondary
229
+ ...o,
230
+ barSelectedColor: e.barSelectedColor || o.colorSecondary
2421
231
  };
2422
232
  }, "create");