@akinon/ui-theme 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,1908 @@
1
+ import * as C from "react";
2
+ import De, { useContext as ot } from "react";
3
+ var nt = [];
4
+ function _e(e, t) {
5
+ if (process.env.NODE_ENV !== "production" && !e && console !== void 0) {
6
+ var r = nt.reduce(function(o, n) {
7
+ return n(o ?? "", "warning");
8
+ }, t);
9
+ r && console.error("Warning: ".concat(r));
10
+ }
11
+ }
12
+ function j(e) {
13
+ "@babel/helpers - typeof";
14
+ return j = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
15
+ return typeof t;
16
+ } : function(t) {
17
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
18
+ }, j(e);
19
+ }
20
+ function it(e, t) {
21
+ if (j(e) !== "object" || e === null)
22
+ return e;
23
+ var r = e[Symbol.toPrimitive];
24
+ if (r !== void 0) {
25
+ var o = r.call(e, t || "default");
26
+ if (j(o) !== "object")
27
+ return o;
28
+ throw new TypeError("@@toPrimitive must return a primitive value.");
29
+ }
30
+ return (t === "string" ? String : Number)(e);
31
+ }
32
+ function We(e) {
33
+ var t = it(e, "string");
34
+ return j(t) === "symbol" ? t : String(t);
35
+ }
36
+ function M(e, t, r) {
37
+ return t = We(t), t in e ? Object.defineProperty(e, t, {
38
+ value: r,
39
+ enumerable: !0,
40
+ configurable: !0,
41
+ writable: !0
42
+ }) : e[t] = r, e;
43
+ }
44
+ function Me(e, t) {
45
+ var r = Object.keys(e);
46
+ if (Object.getOwnPropertySymbols) {
47
+ var o = Object.getOwnPropertySymbols(e);
48
+ t && (o = o.filter(function(n) {
49
+ return Object.getOwnPropertyDescriptor(e, n).enumerable;
50
+ })), r.push.apply(r, o);
51
+ }
52
+ return r;
53
+ }
54
+ function K(e) {
55
+ for (var t = 1; t < arguments.length; t++) {
56
+ var r = arguments[t] != null ? arguments[t] : {};
57
+ t % 2 ? Me(Object(r), !0).forEach(function(o) {
58
+ M(e, o, r[o]);
59
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Me(Object(r)).forEach(function(o) {
60
+ Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(r, o));
61
+ });
62
+ }
63
+ return e;
64
+ }
65
+ function ye(e, t) {
66
+ if (!(e instanceof t))
67
+ throw new TypeError("Cannot call a class as a function");
68
+ }
69
+ function Ce(e, t) {
70
+ for (var r = 0; r < t.length; r++) {
71
+ var o = t[r];
72
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, We(o.key), o);
73
+ }
74
+ }
75
+ function me(e, t, r) {
76
+ return t && Ce(e.prototype, t), r && Ce(e, r), Object.defineProperty(e, "prototype", {
77
+ writable: !1
78
+ }), e;
79
+ }
80
+ function ue(e, t) {
81
+ (t == null || t > e.length) && (t = e.length);
82
+ for (var r = 0, o = new Array(t); r < t; r++)
83
+ o[r] = e[r];
84
+ return o;
85
+ }
86
+ function at(e) {
87
+ if (Array.isArray(e))
88
+ return ue(e);
89
+ }
90
+ function ct(e) {
91
+ if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
92
+ return Array.from(e);
93
+ }
94
+ function Xe(e, t) {
95
+ if (e) {
96
+ if (typeof e == "string")
97
+ return ue(e, t);
98
+ var r = Object.prototype.toString.call(e).slice(8, -1);
99
+ if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set")
100
+ return Array.from(e);
101
+ if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
102
+ return ue(e, t);
103
+ }
104
+ }
105
+ function st() {
106
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
107
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
108
+ }
109
+ function Ne(e) {
110
+ return at(e) || ct(e) || Xe(e) || st();
111
+ }
112
+ function $e(e) {
113
+ for (var t = 0, r, o = 0, n = e.length; n >= 4; ++o, n -= 4)
114
+ r = e.charCodeAt(o) & 255 | (e.charCodeAt(++o) & 255) << 8 | (e.charCodeAt(++o) & 255) << 16 | (e.charCodeAt(++o) & 255) << 24, r = /* Math.imul(k, m): */
115
+ (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
116
+ r >>> 24, t = /* Math.imul(k, m): */
117
+ (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
118
+ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
119
+ switch (n) {
120
+ case 3:
121
+ t ^= (e.charCodeAt(o + 2) & 255) << 16;
122
+ case 2:
123
+ t ^= (e.charCodeAt(o + 1) & 255) << 8;
124
+ case 1:
125
+ t ^= e.charCodeAt(o) & 255, t = /* Math.imul(h, m): */
126
+ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
127
+ }
128
+ return t ^= t >>> 13, t = /* Math.imul(h, m): */
129
+ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
130
+ }
131
+ var we = "%", lt = /* @__PURE__ */ function() {
132
+ function e(t) {
133
+ ye(this, e), M(this, "instanceId", void 0), M(this, "cache", /* @__PURE__ */ new Map()), this.instanceId = t;
134
+ }
135
+ return me(e, [{
136
+ key: "get",
137
+ value: function(r) {
138
+ return this.cache.get(r.join(we)) || null;
139
+ }
140
+ }, {
141
+ key: "update",
142
+ value: function(r, o) {
143
+ var n = r.join(we), i = this.cache.get(n), a = o(i);
144
+ a === null ? this.cache.delete(n) : this.cache.set(n, a);
145
+ }
146
+ }]), e;
147
+ }(), ft = "data-token-hash", Y = "data-css-hash", D = "__cssinjs_instance__";
148
+ function ut() {
149
+ var e = Math.random().toString(12).slice(2);
150
+ if (typeof document < "u" && document.head && document.body) {
151
+ var t = document.body.querySelectorAll("style[".concat(Y, "]")) || [], r = document.head.firstChild;
152
+ Array.from(t).forEach(function(n) {
153
+ n[D] = n[D] || e, n[D] === e && document.head.insertBefore(n, r);
154
+ });
155
+ var o = {};
156
+ Array.from(document.querySelectorAll("style[".concat(Y, "]"))).forEach(function(n) {
157
+ var i = n.getAttribute(Y);
158
+ if (o[i]) {
159
+ if (n[D] === e) {
160
+ var a;
161
+ (a = n.parentNode) === null || a === void 0 || a.removeChild(n);
162
+ }
163
+ } else
164
+ o[i] = !0;
165
+ });
166
+ }
167
+ return new lt(e);
168
+ }
169
+ var Ge = /* @__PURE__ */ C.createContext({
170
+ hashPriority: "low",
171
+ cache: ut(),
172
+ defaultCache: !0
173
+ });
174
+ function dt() {
175
+ return !!(typeof window < "u" && window.document && window.document.createElement);
176
+ }
177
+ function gt(e) {
178
+ if (Array.isArray(e))
179
+ return e;
180
+ }
181
+ function ht(e, t) {
182
+ var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
183
+ if (r != null) {
184
+ var o, n, i, a, c = [], s = !0, l = !1;
185
+ try {
186
+ if (i = (r = r.call(e)).next, t === 0) {
187
+ if (Object(r) !== r)
188
+ return;
189
+ s = !1;
190
+ } else
191
+ for (; !(s = (o = i.call(r)).done) && (c.push(o.value), c.length !== t); s = !0)
192
+ ;
193
+ } catch (d) {
194
+ l = !0, n = d;
195
+ } finally {
196
+ try {
197
+ if (!s && r.return != null && (a = r.return(), Object(a) !== a))
198
+ return;
199
+ } finally {
200
+ if (l)
201
+ throw n;
202
+ }
203
+ }
204
+ return c;
205
+ }
206
+ }
207
+ function bt() {
208
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
209
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
210
+ }
211
+ function _(e, t) {
212
+ return gt(e) || ht(e, t) || Xe(e, t) || bt();
213
+ }
214
+ function pt(e, t) {
215
+ if (e.length !== t.length)
216
+ return !1;
217
+ for (var r = 0; r < e.length; r++)
218
+ if (e[r] !== t[r])
219
+ return !1;
220
+ return !0;
221
+ }
222
+ var Se = /* @__PURE__ */ function() {
223
+ function e() {
224
+ ye(this, e), M(this, "cache", void 0), M(this, "keys", void 0), M(this, "cacheCallTimes", void 0), this.cache = /* @__PURE__ */ new Map(), this.keys = [], this.cacheCallTimes = 0;
225
+ }
226
+ return me(e, [{
227
+ key: "size",
228
+ value: function() {
229
+ return this.keys.length;
230
+ }
231
+ }, {
232
+ key: "internalGet",
233
+ value: function(r) {
234
+ var o, n, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, a = {
235
+ map: this.cache
236
+ };
237
+ return r.forEach(function(c) {
238
+ if (!a)
239
+ a = void 0;
240
+ else {
241
+ var s, l;
242
+ a = (s = a) === null || s === void 0 || (l = s.map) === null || l === void 0 ? void 0 : l.get(c);
243
+ }
244
+ }), (o = a) !== null && o !== void 0 && o.value && i && (a.value[1] = this.cacheCallTimes++), (n = a) === null || n === void 0 ? void 0 : n.value;
245
+ }
246
+ }, {
247
+ key: "get",
248
+ value: function(r) {
249
+ var o;
250
+ return (o = this.internalGet(r, !0)) === null || o === void 0 ? void 0 : o[0];
251
+ }
252
+ }, {
253
+ key: "has",
254
+ value: function(r) {
255
+ return !!this.internalGet(r);
256
+ }
257
+ }, {
258
+ key: "set",
259
+ value: function(r, o) {
260
+ var n = this;
261
+ if (!this.has(r)) {
262
+ if (this.size() + 1 > e.MAX_CACHE_SIZE + e.MAX_CACHE_OFFSET) {
263
+ var i = this.keys.reduce(function(l, d) {
264
+ var f = _(l, 2), u = f[1];
265
+ return n.internalGet(d)[1] < u ? [d, n.internalGet(d)[1]] : l;
266
+ }, [this.keys[0], this.cacheCallTimes]), a = _(i, 1), c = a[0];
267
+ this.delete(c);
268
+ }
269
+ this.keys.push(r);
270
+ }
271
+ var s = this.cache;
272
+ r.forEach(function(l, d) {
273
+ if (d === r.length - 1)
274
+ s.set(l, {
275
+ value: [o, n.cacheCallTimes++]
276
+ });
277
+ else {
278
+ var f = s.get(l);
279
+ f ? f.map || (f.map = /* @__PURE__ */ new Map()) : s.set(l, {
280
+ map: /* @__PURE__ */ new Map()
281
+ }), s = s.get(l).map;
282
+ }
283
+ });
284
+ }
285
+ }, {
286
+ key: "deleteByPath",
287
+ value: function(r, o) {
288
+ var n = r.get(o[0]);
289
+ if (o.length === 1) {
290
+ var i;
291
+ return n.map ? r.set(o[0], {
292
+ map: n.map
293
+ }) : r.delete(o[0]), (i = n.value) === null || i === void 0 ? void 0 : i[0];
294
+ }
295
+ var a = this.deleteByPath(n.map, o.slice(1));
296
+ return (!n.map || n.map.size === 0) && !n.value && r.delete(o[0]), a;
297
+ }
298
+ }, {
299
+ key: "delete",
300
+ value: function(r) {
301
+ if (this.has(r))
302
+ return this.keys = this.keys.filter(function(o) {
303
+ return !pt(o, r);
304
+ }), this.deleteByPath(this.cache, r);
305
+ }
306
+ }]), e;
307
+ }();
308
+ M(Se, "MAX_CACHE_SIZE", 20);
309
+ M(Se, "MAX_CACHE_OFFSET", 5);
310
+ var Ae = 0, Ue = /* @__PURE__ */ function() {
311
+ function e(t) {
312
+ ye(this, e), M(this, "derivatives", void 0), M(this, "id", void 0), this.derivatives = Array.isArray(t) ? t : [t], this.id = Ae, t.length === 0 && _e(t.length > 0, "[Ant Design CSS-in-JS] Theme should have at least one derivative function."), Ae += 1;
313
+ }
314
+ return me(e, [{
315
+ key: "getDerivativeToken",
316
+ value: function(r) {
317
+ return this.derivatives.reduce(function(o, n) {
318
+ return n(r, o);
319
+ }, void 0);
320
+ }
321
+ }]), e;
322
+ }(), ee = new Se();
323
+ function de(e) {
324
+ var t = Array.isArray(e) ? e : [e];
325
+ return ee.has(t) || ee.set(t, new Ue(t)), ee.get(t);
326
+ }
327
+ var vt = /* @__PURE__ */ new WeakMap(), te = {};
328
+ function yt(e, t) {
329
+ for (var r = vt, o = 0; o < t.length; o += 1) {
330
+ var n = t[o];
331
+ r.has(n) || r.set(n, /* @__PURE__ */ new WeakMap()), r = r.get(n);
332
+ }
333
+ return r.has(te) || r.set(te, e()), r.get(te);
334
+ }
335
+ var Be = /* @__PURE__ */ new WeakMap();
336
+ function J(e) {
337
+ var t = Be.get(e) || "";
338
+ return t || (Object.keys(e).forEach(function(r) {
339
+ var o = e[r];
340
+ t += r, o instanceof Ue ? t += o.id : o && j(o) === "object" ? t += J(o) : t += o;
341
+ }), Be.set(e, t)), t;
342
+ }
343
+ function mt(e, t) {
344
+ return $e("".concat(t, "_").concat(J(e)));
345
+ }
346
+ var Ee = process.env.NODE_ENV !== "test" && dt() ? C.useLayoutEffect : C.useEffect, St = function(t, r) {
347
+ var o = C.useRef(!0);
348
+ Ee(function() {
349
+ return t(o.current);
350
+ }, r), Ee(function() {
351
+ return o.current = !1, function() {
352
+ o.current = !0;
353
+ };
354
+ }, []);
355
+ }, xt = K({}, C), He = xt.useInsertionEffect, Tt = function(t, r, o) {
356
+ C.useMemo(t, o), St(function() {
357
+ return r(!0);
358
+ }, o);
359
+ }, kt = He ? function(e, t, r) {
360
+ return He(function() {
361
+ return e(), t();
362
+ }, r);
363
+ } : Tt, Mt = K({}, C), Ct = Mt.useInsertionEffect, wt = function(t) {
364
+ var r = [], o = !1;
365
+ function n(i) {
366
+ if (o) {
367
+ process.env.NODE_ENV !== "production" && _e(!1, "[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");
368
+ return;
369
+ }
370
+ r.push(i);
371
+ }
372
+ return C.useEffect(function() {
373
+ return o = !1, function() {
374
+ o = !0, r.length && r.forEach(function(i) {
375
+ return i();
376
+ });
377
+ };
378
+ }, t), n;
379
+ }, At = function() {
380
+ return function(t) {
381
+ t();
382
+ };
383
+ }, Bt = typeof Ct < "u" ? wt : At;
384
+ function Et() {
385
+ return !1;
386
+ }
387
+ var ge = !1;
388
+ function Ht() {
389
+ return ge;
390
+ }
391
+ const Ot = process.env.NODE_ENV === "production" ? Et : Ht;
392
+ if (process.env.NODE_ENV !== "production" && typeof module < "u" && module && module.hot && typeof window < "u") {
393
+ var re = window;
394
+ if (typeof re.webpackHotUpdate == "function") {
395
+ var It = re.webpackHotUpdate;
396
+ re.webpackHotUpdate = function() {
397
+ return ge = !0, setTimeout(function() {
398
+ ge = !1;
399
+ }, 0), It.apply(void 0, arguments);
400
+ };
401
+ }
402
+ }
403
+ function Rt(e, t, r, o, n) {
404
+ var i = C.useContext(Ge), a = i.cache, c = [e].concat(Ne(t)), s = c.join("_"), l = Bt([s]), d = Ot(), f = function(g) {
405
+ a.update(c, function(m) {
406
+ var S = m || [], T = _(S, 2), F = T[0], N = F === void 0 ? 0 : F, $ = T[1], Z = $;
407
+ process.env.NODE_ENV !== "production" && $ && d && (o == null || o(Z, d), Z = null);
408
+ var rt = Z || r(), ke = [N, rt];
409
+ return g ? g(ke) : ke;
410
+ });
411
+ };
412
+ C.useMemo(
413
+ function() {
414
+ f();
415
+ },
416
+ /* eslint-disable react-hooks/exhaustive-deps */
417
+ [s]
418
+ /* eslint-enable */
419
+ );
420
+ var u = a.get(c);
421
+ process.env.NODE_ENV !== "production" && !u && (f(), u = a.get(c));
422
+ var b = u[1];
423
+ return kt(function() {
424
+ n == null || n(b);
425
+ }, function(v) {
426
+ return f(function(g) {
427
+ var m = _(g, 2), S = m[0], T = m[1];
428
+ return v && S === 0 && (n == null || n(b)), [S + 1, T];
429
+ }), function() {
430
+ a.update(c, function(g) {
431
+ var m = g || [], S = _(m, 2), T = S[0], F = T === void 0 ? 0 : T, N = S[1], $ = F - 1;
432
+ return $ === 0 ? (l(function() {
433
+ return o == null ? void 0 : o(N, !1);
434
+ }), null) : [F - 1, N];
435
+ });
436
+ };
437
+ }, [s]), b;
438
+ }
439
+ var zt = {}, jt = process.env.NODE_ENV !== "production" ? "css-dev-only-do-not-override" : "css", H = /* @__PURE__ */ new Map();
440
+ function Pt(e) {
441
+ H.set(e, (H.get(e) || 0) + 1);
442
+ }
443
+ function Ft(e, t) {
444
+ if (typeof document < "u") {
445
+ var r = document.querySelectorAll("style[".concat(ft, '="').concat(e, '"]'));
446
+ r.forEach(function(o) {
447
+ if (o[D] === t) {
448
+ var n;
449
+ (n = o.parentNode) === null || n === void 0 || n.removeChild(o);
450
+ }
451
+ });
452
+ }
453
+ }
454
+ var Lt = 0;
455
+ function Dt(e, t) {
456
+ H.set(e, (H.get(e) || 0) - 1);
457
+ var r = Array.from(H.keys()), o = r.filter(function(n) {
458
+ var i = H.get(n) || 0;
459
+ return i <= 0;
460
+ });
461
+ r.length - o.length > Lt && o.forEach(function(n) {
462
+ Ft(n, t), H.delete(n);
463
+ });
464
+ }
465
+ var Ve = function(t, r, o, n) {
466
+ var i = o.getDerivativeToken(t), a = K(K({}, i), r);
467
+ return n && (a = n(a)), a;
468
+ };
469
+ function _t(e, t) {
470
+ var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = ot(Ge), n = o.cache.instanceId, i = r.salt, a = i === void 0 ? "" : i, c = r.override, s = c === void 0 ? zt : c, l = r.formatToken, d = r.getComputedToken, f = yt(function() {
471
+ return Object.assign.apply(Object, [{}].concat(Ne(t)));
472
+ }, t), u = J(f), b = J(s), v = Rt("token", [a, e.id, u, b], function() {
473
+ var g = d ? d(f, s, e) : Ve(f, s, e, l), m = mt(g, a);
474
+ g._tokenKey = m, Pt(m);
475
+ var S = "".concat(jt, "-").concat($e(m));
476
+ return g._hashId = S, [g, S];
477
+ }, function(g) {
478
+ Dt(g[0]._tokenKey, n);
479
+ });
480
+ return v;
481
+ }
482
+ function I(e) {
483
+ return e.notSplit = !0, e;
484
+ }
485
+ I(["borderTop", "borderBottom"]), I(["borderTop"]), I(["borderBottom"]), I(["borderLeft", "borderRight"]), I(["borderLeft"]), I(["borderRight"]);
486
+ function p(e, t) {
487
+ Wt(e) && (e = "100%");
488
+ var r = Xt(e);
489
+ return e = t === 360 ? e : Math.min(t, Math.max(0, parseFloat(e))), r && (e = parseInt(String(e * t), 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : (t === 360 ? e = (e < 0 ? e % t + t : e % t) / parseFloat(String(t)) : e = e % t / parseFloat(String(t)), e);
490
+ }
491
+ function G(e) {
492
+ return Math.min(1, Math.max(0, e));
493
+ }
494
+ function Wt(e) {
495
+ return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
496
+ }
497
+ function Xt(e) {
498
+ return typeof e == "string" && e.indexOf("%") !== -1;
499
+ }
500
+ function Qe(e) {
501
+ return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
502
+ }
503
+ function U(e) {
504
+ return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
505
+ }
506
+ function O(e) {
507
+ return e.length === 1 ? "0" + e : String(e);
508
+ }
509
+ function Nt(e, t, r) {
510
+ return {
511
+ r: p(e, 255) * 255,
512
+ g: p(t, 255) * 255,
513
+ b: p(r, 255) * 255
514
+ };
515
+ }
516
+ function Oe(e, t, r) {
517
+ e = p(e, 255), t = p(t, 255), r = p(r, 255);
518
+ var o = Math.max(e, t, r), n = Math.min(e, t, r), i = 0, a = 0, c = (o + n) / 2;
519
+ if (o === n)
520
+ a = 0, i = 0;
521
+ else {
522
+ var s = o - n;
523
+ switch (a = c > 0.5 ? s / (2 - o - n) : s / (o + n), o) {
524
+ case e:
525
+ i = (t - r) / s + (t < r ? 6 : 0);
526
+ break;
527
+ case t:
528
+ i = (r - e) / s + 2;
529
+ break;
530
+ case r:
531
+ i = (e - t) / s + 4;
532
+ break;
533
+ }
534
+ i /= 6;
535
+ }
536
+ return { h: i, s: a, l: c };
537
+ }
538
+ function oe(e, t, r) {
539
+ return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + (t - e) * (6 * r) : r < 1 / 2 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e;
540
+ }
541
+ function $t(e, t, r) {
542
+ var o, n, i;
543
+ if (e = p(e, 360), t = p(t, 100), r = p(r, 100), t === 0)
544
+ n = r, i = r, o = r;
545
+ else {
546
+ var a = r < 0.5 ? r * (1 + t) : r + t - r * t, c = 2 * r - a;
547
+ o = oe(c, a, e + 1 / 3), n = oe(c, a, e), i = oe(c, a, e - 1 / 3);
548
+ }
549
+ return { r: o * 255, g: n * 255, b: i * 255 };
550
+ }
551
+ function he(e, t, r) {
552
+ e = p(e, 255), t = p(t, 255), r = p(r, 255);
553
+ var o = Math.max(e, t, r), n = Math.min(e, t, r), i = 0, a = o, c = o - n, s = o === 0 ? 0 : c / o;
554
+ if (o === n)
555
+ i = 0;
556
+ else {
557
+ switch (o) {
558
+ case e:
559
+ i = (t - r) / c + (t < r ? 6 : 0);
560
+ break;
561
+ case t:
562
+ i = (r - e) / c + 2;
563
+ break;
564
+ case r:
565
+ i = (e - t) / c + 4;
566
+ break;
567
+ }
568
+ i /= 6;
569
+ }
570
+ return { h: i, s, v: a };
571
+ }
572
+ function Gt(e, t, r) {
573
+ e = p(e, 360) * 6, t = p(t, 100), r = p(r, 100);
574
+ var o = Math.floor(e), n = e - o, i = r * (1 - t), a = r * (1 - n * t), c = r * (1 - (1 - n) * t), s = o % 6, l = [r, a, i, i, c, r][s], d = [c, r, r, a, i, i][s], f = [i, i, c, r, r, a][s];
575
+ return { r: l * 255, g: d * 255, b: f * 255 };
576
+ }
577
+ function be(e, t, r, o) {
578
+ var n = [
579
+ O(Math.round(e).toString(16)),
580
+ O(Math.round(t).toString(16)),
581
+ O(Math.round(r).toString(16))
582
+ ];
583
+ return o && n[0].startsWith(n[0].charAt(1)) && n[1].startsWith(n[1].charAt(1)) && n[2].startsWith(n[2].charAt(1)) ? n[0].charAt(0) + n[1].charAt(0) + n[2].charAt(0) : n.join("");
584
+ }
585
+ function Ut(e, t, r, o, n) {
586
+ var i = [
587
+ O(Math.round(e).toString(16)),
588
+ O(Math.round(t).toString(16)),
589
+ O(Math.round(r).toString(16)),
590
+ O(Vt(o))
591
+ ];
592
+ return n && i[0].startsWith(i[0].charAt(1)) && i[1].startsWith(i[1].charAt(1)) && i[2].startsWith(i[2].charAt(1)) && i[3].startsWith(i[3].charAt(1)) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) + i[3].charAt(0) : i.join("");
593
+ }
594
+ function Vt(e) {
595
+ return Math.round(parseFloat(e) * 255).toString(16);
596
+ }
597
+ function Ie(e) {
598
+ return y(e) / 255;
599
+ }
600
+ function y(e) {
601
+ return parseInt(e, 16);
602
+ }
603
+ function Qt(e) {
604
+ return {
605
+ r: e >> 16,
606
+ g: (e & 65280) >> 8,
607
+ b: e & 255
608
+ };
609
+ }
610
+ var pe = {
611
+ aliceblue: "#f0f8ff",
612
+ antiquewhite: "#faebd7",
613
+ aqua: "#00ffff",
614
+ aquamarine: "#7fffd4",
615
+ azure: "#f0ffff",
616
+ beige: "#f5f5dc",
617
+ bisque: "#ffe4c4",
618
+ black: "#000000",
619
+ blanchedalmond: "#ffebcd",
620
+ blue: "#0000ff",
621
+ blueviolet: "#8a2be2",
622
+ brown: "#a52a2a",
623
+ burlywood: "#deb887",
624
+ cadetblue: "#5f9ea0",
625
+ chartreuse: "#7fff00",
626
+ chocolate: "#d2691e",
627
+ coral: "#ff7f50",
628
+ cornflowerblue: "#6495ed",
629
+ cornsilk: "#fff8dc",
630
+ crimson: "#dc143c",
631
+ cyan: "#00ffff",
632
+ darkblue: "#00008b",
633
+ darkcyan: "#008b8b",
634
+ darkgoldenrod: "#b8860b",
635
+ darkgray: "#a9a9a9",
636
+ darkgreen: "#006400",
637
+ darkgrey: "#a9a9a9",
638
+ darkkhaki: "#bdb76b",
639
+ darkmagenta: "#8b008b",
640
+ darkolivegreen: "#556b2f",
641
+ darkorange: "#ff8c00",
642
+ darkorchid: "#9932cc",
643
+ darkred: "#8b0000",
644
+ darksalmon: "#e9967a",
645
+ darkseagreen: "#8fbc8f",
646
+ darkslateblue: "#483d8b",
647
+ darkslategray: "#2f4f4f",
648
+ darkslategrey: "#2f4f4f",
649
+ darkturquoise: "#00ced1",
650
+ darkviolet: "#9400d3",
651
+ deeppink: "#ff1493",
652
+ deepskyblue: "#00bfff",
653
+ dimgray: "#696969",
654
+ dimgrey: "#696969",
655
+ dodgerblue: "#1e90ff",
656
+ firebrick: "#b22222",
657
+ floralwhite: "#fffaf0",
658
+ forestgreen: "#228b22",
659
+ fuchsia: "#ff00ff",
660
+ gainsboro: "#dcdcdc",
661
+ ghostwhite: "#f8f8ff",
662
+ goldenrod: "#daa520",
663
+ gold: "#ffd700",
664
+ gray: "#808080",
665
+ green: "#008000",
666
+ greenyellow: "#adff2f",
667
+ grey: "#808080",
668
+ honeydew: "#f0fff0",
669
+ hotpink: "#ff69b4",
670
+ indianred: "#cd5c5c",
671
+ indigo: "#4b0082",
672
+ ivory: "#fffff0",
673
+ khaki: "#f0e68c",
674
+ lavenderblush: "#fff0f5",
675
+ lavender: "#e6e6fa",
676
+ lawngreen: "#7cfc00",
677
+ lemonchiffon: "#fffacd",
678
+ lightblue: "#add8e6",
679
+ lightcoral: "#f08080",
680
+ lightcyan: "#e0ffff",
681
+ lightgoldenrodyellow: "#fafad2",
682
+ lightgray: "#d3d3d3",
683
+ lightgreen: "#90ee90",
684
+ lightgrey: "#d3d3d3",
685
+ lightpink: "#ffb6c1",
686
+ lightsalmon: "#ffa07a",
687
+ lightseagreen: "#20b2aa",
688
+ lightskyblue: "#87cefa",
689
+ lightslategray: "#778899",
690
+ lightslategrey: "#778899",
691
+ lightsteelblue: "#b0c4de",
692
+ lightyellow: "#ffffe0",
693
+ lime: "#00ff00",
694
+ limegreen: "#32cd32",
695
+ linen: "#faf0e6",
696
+ magenta: "#ff00ff",
697
+ maroon: "#800000",
698
+ mediumaquamarine: "#66cdaa",
699
+ mediumblue: "#0000cd",
700
+ mediumorchid: "#ba55d3",
701
+ mediumpurple: "#9370db",
702
+ mediumseagreen: "#3cb371",
703
+ mediumslateblue: "#7b68ee",
704
+ mediumspringgreen: "#00fa9a",
705
+ mediumturquoise: "#48d1cc",
706
+ mediumvioletred: "#c71585",
707
+ midnightblue: "#191970",
708
+ mintcream: "#f5fffa",
709
+ mistyrose: "#ffe4e1",
710
+ moccasin: "#ffe4b5",
711
+ navajowhite: "#ffdead",
712
+ navy: "#000080",
713
+ oldlace: "#fdf5e6",
714
+ olive: "#808000",
715
+ olivedrab: "#6b8e23",
716
+ orange: "#ffa500",
717
+ orangered: "#ff4500",
718
+ orchid: "#da70d6",
719
+ palegoldenrod: "#eee8aa",
720
+ palegreen: "#98fb98",
721
+ paleturquoise: "#afeeee",
722
+ palevioletred: "#db7093",
723
+ papayawhip: "#ffefd5",
724
+ peachpuff: "#ffdab9",
725
+ peru: "#cd853f",
726
+ pink: "#ffc0cb",
727
+ plum: "#dda0dd",
728
+ powderblue: "#b0e0e6",
729
+ purple: "#800080",
730
+ rebeccapurple: "#663399",
731
+ red: "#ff0000",
732
+ rosybrown: "#bc8f8f",
733
+ royalblue: "#4169e1",
734
+ saddlebrown: "#8b4513",
735
+ salmon: "#fa8072",
736
+ sandybrown: "#f4a460",
737
+ seagreen: "#2e8b57",
738
+ seashell: "#fff5ee",
739
+ sienna: "#a0522d",
740
+ silver: "#c0c0c0",
741
+ skyblue: "#87ceeb",
742
+ slateblue: "#6a5acd",
743
+ slategray: "#708090",
744
+ slategrey: "#708090",
745
+ snow: "#fffafa",
746
+ springgreen: "#00ff7f",
747
+ steelblue: "#4682b4",
748
+ tan: "#d2b48c",
749
+ teal: "#008080",
750
+ thistle: "#d8bfd8",
751
+ tomato: "#ff6347",
752
+ turquoise: "#40e0d0",
753
+ violet: "#ee82ee",
754
+ wheat: "#f5deb3",
755
+ white: "#ffffff",
756
+ whitesmoke: "#f5f5f5",
757
+ yellow: "#ffff00",
758
+ yellowgreen: "#9acd32"
759
+ };
760
+ function z(e) {
761
+ var t = { r: 0, g: 0, b: 0 }, r = 1, o = null, n = null, i = null, a = !1, c = !1;
762
+ return typeof e == "string" && (e = Jt(e)), typeof e == "object" && (w(e.r) && w(e.g) && w(e.b) ? (t = Nt(e.r, e.g, e.b), a = !0, c = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : w(e.h) && w(e.s) && w(e.v) ? (o = U(e.s), n = U(e.v), t = Gt(e.h, o, n), a = !0, c = "hsv") : w(e.h) && w(e.s) && w(e.l) && (o = U(e.s), i = U(e.l), t = $t(e.h, o, i), a = !0, c = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (r = e.a)), r = Qe(r), {
763
+ ok: a,
764
+ format: e.format || c,
765
+ r: Math.min(255, Math.max(t.r, 0)),
766
+ g: Math.min(255, Math.max(t.g, 0)),
767
+ b: Math.min(255, Math.max(t.b, 0)),
768
+ a: r
769
+ };
770
+ }
771
+ var qt = "[-\\+]?\\d+%?", Kt = "[-\\+]?\\d*\\.\\d+%?", E = "(?:".concat(Kt, ")|(?:").concat(qt, ")"), ne = "[\\s|\\(]+(".concat(E, ")[,|\\s]+(").concat(E, ")[,|\\s]+(").concat(E, ")\\s*\\)?"), ie = "[\\s|\\(]+(".concat(E, ")[,|\\s]+(").concat(E, ")[,|\\s]+(").concat(E, ")[,|\\s]+(").concat(E, ")\\s*\\)?"), k = {
772
+ CSS_UNIT: new RegExp(E),
773
+ rgb: new RegExp("rgb" + ne),
774
+ rgba: new RegExp("rgba" + ie),
775
+ hsl: new RegExp("hsl" + ne),
776
+ hsla: new RegExp("hsla" + ie),
777
+ hsv: new RegExp("hsv" + ne),
778
+ hsva: new RegExp("hsva" + ie),
779
+ hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
780
+ hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
781
+ hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
782
+ hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
783
+ };
784
+ function Jt(e) {
785
+ if (e = e.trim().toLowerCase(), e.length === 0)
786
+ return !1;
787
+ var t = !1;
788
+ if (pe[e])
789
+ e = pe[e], t = !0;
790
+ else if (e === "transparent")
791
+ return { r: 0, g: 0, b: 0, a: 0, format: "name" };
792
+ var r = k.rgb.exec(e);
793
+ return r ? { r: r[1], g: r[2], b: r[3] } : (r = k.rgba.exec(e), r ? { r: r[1], g: r[2], b: r[3], a: r[4] } : (r = k.hsl.exec(e), r ? { h: r[1], s: r[2], l: r[3] } : (r = k.hsla.exec(e), r ? { h: r[1], s: r[2], l: r[3], a: r[4] } : (r = k.hsv.exec(e), r ? { h: r[1], s: r[2], v: r[3] } : (r = k.hsva.exec(e), r ? { h: r[1], s: r[2], v: r[3], a: r[4] } : (r = k.hex8.exec(e), r ? {
794
+ r: y(r[1]),
795
+ g: y(r[2]),
796
+ b: y(r[3]),
797
+ a: Ie(r[4]),
798
+ format: t ? "name" : "hex8"
799
+ } : (r = k.hex6.exec(e), r ? {
800
+ r: y(r[1]),
801
+ g: y(r[2]),
802
+ b: y(r[3]),
803
+ format: t ? "name" : "hex"
804
+ } : (r = k.hex4.exec(e), r ? {
805
+ r: y(r[1] + r[1]),
806
+ g: y(r[2] + r[2]),
807
+ b: y(r[3] + r[3]),
808
+ a: Ie(r[4] + r[4]),
809
+ format: t ? "name" : "hex8"
810
+ } : (r = k.hex3.exec(e), r ? {
811
+ r: y(r[1] + r[1]),
812
+ g: y(r[2] + r[2]),
813
+ b: y(r[3] + r[3]),
814
+ format: t ? "name" : "hex"
815
+ } : !1)))))))));
816
+ }
817
+ function w(e) {
818
+ return !!k.CSS_UNIT.exec(String(e));
819
+ }
820
+ var x = (
821
+ /** @class */
822
+ function() {
823
+ function e(t, r) {
824
+ t === void 0 && (t = ""), r === void 0 && (r = {});
825
+ var o;
826
+ if (t instanceof e)
827
+ return t;
828
+ typeof t == "number" && (t = Qt(t)), this.originalInput = t;
829
+ var n = z(t);
830
+ this.originalInput = t, this.r = n.r, this.g = n.g, this.b = n.b, this.a = n.a, this.roundA = Math.round(100 * this.a) / 100, this.format = (o = r.format) !== null && o !== void 0 ? o : n.format, this.gradientType = r.gradientType, this.r < 1 && (this.r = Math.round(this.r)), this.g < 1 && (this.g = Math.round(this.g)), this.b < 1 && (this.b = Math.round(this.b)), this.isValid = n.ok;
831
+ }
832
+ return e.prototype.isDark = function() {
833
+ return this.getBrightness() < 128;
834
+ }, e.prototype.isLight = function() {
835
+ return !this.isDark();
836
+ }, e.prototype.getBrightness = function() {
837
+ var t = this.toRgb();
838
+ return (t.r * 299 + t.g * 587 + t.b * 114) / 1e3;
839
+ }, e.prototype.getLuminance = function() {
840
+ var t = this.toRgb(), r, o, n, i = t.r / 255, a = t.g / 255, c = t.b / 255;
841
+ return i <= 0.03928 ? r = i / 12.92 : r = Math.pow((i + 0.055) / 1.055, 2.4), a <= 0.03928 ? o = a / 12.92 : o = Math.pow((a + 0.055) / 1.055, 2.4), c <= 0.03928 ? n = c / 12.92 : n = Math.pow((c + 0.055) / 1.055, 2.4), 0.2126 * r + 0.7152 * o + 0.0722 * n;
842
+ }, e.prototype.getAlpha = function() {
843
+ return this.a;
844
+ }, e.prototype.setAlpha = function(t) {
845
+ return this.a = Qe(t), this.roundA = Math.round(100 * this.a) / 100, this;
846
+ }, e.prototype.isMonochrome = function() {
847
+ var t = this.toHsl().s;
848
+ return t === 0;
849
+ }, e.prototype.toHsv = function() {
850
+ var t = he(this.r, this.g, this.b);
851
+ return { h: t.h * 360, s: t.s, v: t.v, a: this.a };
852
+ }, e.prototype.toHsvString = function() {
853
+ var t = he(this.r, this.g, this.b), r = Math.round(t.h * 360), o = Math.round(t.s * 100), n = Math.round(t.v * 100);
854
+ return this.a === 1 ? "hsv(".concat(r, ", ").concat(o, "%, ").concat(n, "%)") : "hsva(".concat(r, ", ").concat(o, "%, ").concat(n, "%, ").concat(this.roundA, ")");
855
+ }, e.prototype.toHsl = function() {
856
+ var t = Oe(this.r, this.g, this.b);
857
+ return { h: t.h * 360, s: t.s, l: t.l, a: this.a };
858
+ }, e.prototype.toHslString = function() {
859
+ var t = Oe(this.r, this.g, this.b), r = Math.round(t.h * 360), o = Math.round(t.s * 100), n = Math.round(t.l * 100);
860
+ return this.a === 1 ? "hsl(".concat(r, ", ").concat(o, "%, ").concat(n, "%)") : "hsla(".concat(r, ", ").concat(o, "%, ").concat(n, "%, ").concat(this.roundA, ")");
861
+ }, e.prototype.toHex = function(t) {
862
+ return t === void 0 && (t = !1), be(this.r, this.g, this.b, t);
863
+ }, e.prototype.toHexString = function(t) {
864
+ return t === void 0 && (t = !1), "#" + this.toHex(t);
865
+ }, e.prototype.toHex8 = function(t) {
866
+ return t === void 0 && (t = !1), Ut(this.r, this.g, this.b, this.a, t);
867
+ }, e.prototype.toHex8String = function(t) {
868
+ return t === void 0 && (t = !1), "#" + this.toHex8(t);
869
+ }, e.prototype.toHexShortString = function(t) {
870
+ return t === void 0 && (t = !1), this.a === 1 ? this.toHexString(t) : this.toHex8String(t);
871
+ }, e.prototype.toRgb = function() {
872
+ return {
873
+ r: Math.round(this.r),
874
+ g: Math.round(this.g),
875
+ b: Math.round(this.b),
876
+ a: this.a
877
+ };
878
+ }, e.prototype.toRgbString = function() {
879
+ var t = Math.round(this.r), r = Math.round(this.g), o = Math.round(this.b);
880
+ return this.a === 1 ? "rgb(".concat(t, ", ").concat(r, ", ").concat(o, ")") : "rgba(".concat(t, ", ").concat(r, ", ").concat(o, ", ").concat(this.roundA, ")");
881
+ }, e.prototype.toPercentageRgb = function() {
882
+ var t = function(r) {
883
+ return "".concat(Math.round(p(r, 255) * 100), "%");
884
+ };
885
+ return {
886
+ r: t(this.r),
887
+ g: t(this.g),
888
+ b: t(this.b),
889
+ a: this.a
890
+ };
891
+ }, e.prototype.toPercentageRgbString = function() {
892
+ var t = function(r) {
893
+ return Math.round(p(r, 255) * 100);
894
+ };
895
+ return this.a === 1 ? "rgb(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%)") : "rgba(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%, ").concat(this.roundA, ")");
896
+ }, e.prototype.toName = function() {
897
+ if (this.a === 0)
898
+ return "transparent";
899
+ if (this.a < 1)
900
+ return !1;
901
+ for (var t = "#" + be(this.r, this.g, this.b, !1), r = 0, o = Object.entries(pe); r < o.length; r++) {
902
+ var n = o[r], i = n[0], a = n[1];
903
+ if (t === a)
904
+ return i;
905
+ }
906
+ return !1;
907
+ }, e.prototype.toString = function(t) {
908
+ var r = !!t;
909
+ t = t ?? this.format;
910
+ var o = !1, n = this.a < 1 && this.a >= 0, i = !r && n && (t.startsWith("hex") || t === "name");
911
+ return i ? t === "name" && this.a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (o = this.toRgbString()), t === "prgb" && (o = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (o = this.toHexString()), t === "hex3" && (o = this.toHexString(!0)), t === "hex4" && (o = this.toHex8String(!0)), t === "hex8" && (o = this.toHex8String()), t === "name" && (o = this.toName()), t === "hsl" && (o = this.toHslString()), t === "hsv" && (o = this.toHsvString()), o || this.toHexString());
912
+ }, e.prototype.toNumber = function() {
913
+ return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
914
+ }, e.prototype.clone = function() {
915
+ return new e(this.toString());
916
+ }, e.prototype.lighten = function(t) {
917
+ t === void 0 && (t = 10);
918
+ var r = this.toHsl();
919
+ return r.l += t / 100, r.l = G(r.l), new e(r);
920
+ }, e.prototype.brighten = function(t) {
921
+ t === void 0 && (t = 10);
922
+ var r = this.toRgb();
923
+ return r.r = Math.max(0, Math.min(255, r.r - Math.round(255 * -(t / 100)))), r.g = Math.max(0, Math.min(255, r.g - Math.round(255 * -(t / 100)))), r.b = Math.max(0, Math.min(255, r.b - Math.round(255 * -(t / 100)))), new e(r);
924
+ }, e.prototype.darken = function(t) {
925
+ t === void 0 && (t = 10);
926
+ var r = this.toHsl();
927
+ return r.l -= t / 100, r.l = G(r.l), new e(r);
928
+ }, e.prototype.tint = function(t) {
929
+ return t === void 0 && (t = 10), this.mix("white", t);
930
+ }, e.prototype.shade = function(t) {
931
+ return t === void 0 && (t = 10), this.mix("black", t);
932
+ }, e.prototype.desaturate = function(t) {
933
+ t === void 0 && (t = 10);
934
+ var r = this.toHsl();
935
+ return r.s -= t / 100, r.s = G(r.s), new e(r);
936
+ }, e.prototype.saturate = function(t) {
937
+ t === void 0 && (t = 10);
938
+ var r = this.toHsl();
939
+ return r.s += t / 100, r.s = G(r.s), new e(r);
940
+ }, e.prototype.greyscale = function() {
941
+ return this.desaturate(100);
942
+ }, e.prototype.spin = function(t) {
943
+ var r = this.toHsl(), o = (r.h + t) % 360;
944
+ return r.h = o < 0 ? 360 + o : o, new e(r);
945
+ }, e.prototype.mix = function(t, r) {
946
+ r === void 0 && (r = 50);
947
+ var o = this.toRgb(), n = new e(t).toRgb(), i = r / 100, a = {
948
+ r: (n.r - o.r) * i + o.r,
949
+ g: (n.g - o.g) * i + o.g,
950
+ b: (n.b - o.b) * i + o.b,
951
+ a: (n.a - o.a) * i + o.a
952
+ };
953
+ return new e(a);
954
+ }, e.prototype.analogous = function(t, r) {
955
+ t === void 0 && (t = 6), r === void 0 && (r = 30);
956
+ var o = this.toHsl(), n = 360 / r, i = [this];
957
+ for (o.h = (o.h - (n * t >> 1) + 720) % 360; --t; )
958
+ o.h = (o.h + n) % 360, i.push(new e(o));
959
+ return i;
960
+ }, e.prototype.complement = function() {
961
+ var t = this.toHsl();
962
+ return t.h = (t.h + 180) % 360, new e(t);
963
+ }, e.prototype.monochromatic = function(t) {
964
+ t === void 0 && (t = 6);
965
+ for (var r = this.toHsv(), o = r.h, n = r.s, i = r.v, a = [], c = 1 / t; t--; )
966
+ a.push(new e({ h: o, s: n, v: i })), i = (i + c) % 1;
967
+ return a;
968
+ }, e.prototype.splitcomplement = function() {
969
+ var t = this.toHsl(), r = t.h;
970
+ return [
971
+ this,
972
+ new e({ h: (r + 72) % 360, s: t.s, l: t.l }),
973
+ new e({ h: (r + 216) % 360, s: t.s, l: t.l })
974
+ ];
975
+ }, e.prototype.onBackground = function(t) {
976
+ var r = this.toRgb(), o = new e(t).toRgb(), n = r.a + o.a * (1 - r.a);
977
+ return new e({
978
+ r: (r.r * r.a + o.r * o.a * (1 - r.a)) / n,
979
+ g: (r.g * r.a + o.g * o.a * (1 - r.a)) / n,
980
+ b: (r.b * r.a + o.b * o.a * (1 - r.a)) / n,
981
+ a: n
982
+ });
983
+ }, e.prototype.triad = function() {
984
+ return this.polyad(3);
985
+ }, e.prototype.tetrad = function() {
986
+ return this.polyad(4);
987
+ }, e.prototype.polyad = function(t) {
988
+ for (var r = this.toHsl(), o = r.h, n = [this], i = 360 / t, a = 1; a < t; a++)
989
+ n.push(new e({ h: (o + a * i) % 360, s: r.s, l: r.l }));
990
+ return n;
991
+ }, e.prototype.equals = function(t) {
992
+ return this.toRgbString() === new e(t).toRgbString();
993
+ }, e;
994
+ }()
995
+ ), V = 2, Re = 0.16, Zt = 0.05, Yt = 0.05, er = 0.15, qe = 5, Ke = 4, tr = [{
996
+ index: 7,
997
+ opacity: 0.15
998
+ }, {
999
+ index: 6,
1000
+ opacity: 0.25
1001
+ }, {
1002
+ index: 5,
1003
+ opacity: 0.3
1004
+ }, {
1005
+ index: 5,
1006
+ opacity: 0.45
1007
+ }, {
1008
+ index: 5,
1009
+ opacity: 0.65
1010
+ }, {
1011
+ index: 5,
1012
+ opacity: 0.85
1013
+ }, {
1014
+ index: 4,
1015
+ opacity: 0.9
1016
+ }, {
1017
+ index: 3,
1018
+ opacity: 0.95
1019
+ }, {
1020
+ index: 2,
1021
+ opacity: 0.97
1022
+ }, {
1023
+ index: 1,
1024
+ opacity: 0.98
1025
+ }];
1026
+ function ze(e) {
1027
+ var t = e.r, r = e.g, o = e.b, n = he(t, r, o);
1028
+ return {
1029
+ h: n.h * 360,
1030
+ s: n.s,
1031
+ v: n.v
1032
+ };
1033
+ }
1034
+ function Q(e) {
1035
+ var t = e.r, r = e.g, o = e.b;
1036
+ return "#".concat(be(t, r, o, !1));
1037
+ }
1038
+ function rr(e, t, r) {
1039
+ var o = r / 100, n = {
1040
+ r: (t.r - e.r) * o + e.r,
1041
+ g: (t.g - e.g) * o + e.g,
1042
+ b: (t.b - e.b) * o + e.b
1043
+ };
1044
+ return n;
1045
+ }
1046
+ function je(e, t, r) {
1047
+ var o;
1048
+ return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? o = r ? Math.round(e.h) - V * t : Math.round(e.h) + V * t : o = r ? Math.round(e.h) + V * t : Math.round(e.h) - V * t, o < 0 ? o += 360 : o >= 360 && (o -= 360), o;
1049
+ }
1050
+ function Pe(e, t, r) {
1051
+ if (e.h === 0 && e.s === 0)
1052
+ return e.s;
1053
+ var o;
1054
+ return r ? o = e.s - Re * t : t === Ke ? o = e.s + Re : o = e.s + Zt * t, o > 1 && (o = 1), r && t === qe && o > 0.1 && (o = 0.1), o < 0.06 && (o = 0.06), Number(o.toFixed(2));
1055
+ }
1056
+ function Fe(e, t, r) {
1057
+ var o;
1058
+ return r ? o = e.v + Yt * t : o = e.v - er * t, o > 1 && (o = 1), Number(o.toFixed(2));
1059
+ }
1060
+ function P(e) {
1061
+ for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = [], o = z(e), n = qe; n > 0; n -= 1) {
1062
+ var i = ze(o), a = Q(z({
1063
+ h: je(i, n, !0),
1064
+ s: Pe(i, n, !0),
1065
+ v: Fe(i, n, !0)
1066
+ }));
1067
+ r.push(a);
1068
+ }
1069
+ r.push(Q(o));
1070
+ for (var c = 1; c <= Ke; c += 1) {
1071
+ var s = ze(o), l = Q(z({
1072
+ h: je(s, c),
1073
+ s: Pe(s, c),
1074
+ v: Fe(s, c)
1075
+ }));
1076
+ r.push(l);
1077
+ }
1078
+ return t.theme === "dark" ? tr.map(function(d) {
1079
+ var f = d.index, u = d.opacity, b = Q(rr(z(t.backgroundColor || "#141414"), z(r[f]), u * 100));
1080
+ return b;
1081
+ }) : r;
1082
+ }
1083
+ var ae = {
1084
+ red: "#F5222D",
1085
+ volcano: "#FA541C",
1086
+ orange: "#FA8C16",
1087
+ gold: "#FAAD14",
1088
+ yellow: "#FADB14",
1089
+ lime: "#A0D911",
1090
+ green: "#52C41A",
1091
+ cyan: "#13C2C2",
1092
+ blue: "#1677FF",
1093
+ geekblue: "#2F54EB",
1094
+ purple: "#722ED1",
1095
+ magenta: "#EB2F96",
1096
+ grey: "#666666"
1097
+ }, ce = {}, se = {};
1098
+ Object.keys(ae).forEach(function(e) {
1099
+ ce[e] = P(ae[e]), ce[e].primary = ce[e][5], se[e] = P(ae[e], {
1100
+ theme: "dark",
1101
+ backgroundColor: "#141414"
1102
+ }), se[e].primary = se[e][5];
1103
+ });
1104
+ const or = (e) => {
1105
+ const {
1106
+ controlHeight: t
1107
+ } = e;
1108
+ return {
1109
+ controlHeightSM: t * 0.75,
1110
+ controlHeightXS: t * 0.5,
1111
+ controlHeightLG: t * 1.25
1112
+ };
1113
+ }, Je = or;
1114
+ function nr(e) {
1115
+ const {
1116
+ sizeUnit: t,
1117
+ sizeStep: r
1118
+ } = e;
1119
+ return {
1120
+ sizeXXL: t * (r + 8),
1121
+ sizeXL: t * (r + 4),
1122
+ sizeLG: t * (r + 2),
1123
+ sizeMD: t * (r + 1),
1124
+ sizeMS: t * r,
1125
+ size: t * r,
1126
+ sizeSM: t * (r - 1),
1127
+ sizeXS: t * (r - 2),
1128
+ sizeXXS: t * (r - 3)
1129
+ // 4
1130
+ };
1131
+ }
1132
+ const xe = {
1133
+ blue: "#1677ff",
1134
+ purple: "#722ED1",
1135
+ cyan: "#13C2C2",
1136
+ green: "#52C41A",
1137
+ magenta: "#EB2F96",
1138
+ pink: "#eb2f96",
1139
+ red: "#F5222D",
1140
+ orange: "#FA8C16",
1141
+ yellow: "#FADB14",
1142
+ volcano: "#FA541C",
1143
+ geekblue: "#2F54EB",
1144
+ gold: "#FAAD14",
1145
+ lime: "#A0D911"
1146
+ }, W = Object.assign(Object.assign({}, xe), {
1147
+ // Color
1148
+ colorPrimary: "#1677ff",
1149
+ colorSuccess: "#52c41a",
1150
+ colorWarning: "#faad14",
1151
+ colorError: "#ff4d4f",
1152
+ colorInfo: "#1677ff",
1153
+ colorLink: "",
1154
+ colorTextBase: "",
1155
+ colorBgBase: "",
1156
+ // Font
1157
+ fontFamily: `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
1158
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
1159
+ 'Noto Color Emoji'`,
1160
+ fontFamilyCode: "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",
1161
+ fontSize: 14,
1162
+ // Line
1163
+ lineWidth: 1,
1164
+ lineType: "solid",
1165
+ // Motion
1166
+ motionUnit: 0.1,
1167
+ motionBase: 0,
1168
+ motionEaseOutCirc: "cubic-bezier(0.08, 0.82, 0.17, 1)",
1169
+ motionEaseInOutCirc: "cubic-bezier(0.78, 0.14, 0.15, 0.86)",
1170
+ motionEaseOut: "cubic-bezier(0.215, 0.61, 0.355, 1)",
1171
+ motionEaseInOut: "cubic-bezier(0.645, 0.045, 0.355, 1)",
1172
+ motionEaseOutBack: "cubic-bezier(0.12, 0.4, 0.29, 1.46)",
1173
+ motionEaseInBack: "cubic-bezier(0.71, -0.46, 0.88, 0.6)",
1174
+ motionEaseInQuint: "cubic-bezier(0.755, 0.05, 0.855, 0.06)",
1175
+ motionEaseOutQuint: "cubic-bezier(0.23, 1, 0.32, 1)",
1176
+ // Radius
1177
+ borderRadius: 6,
1178
+ // Size
1179
+ sizeUnit: 4,
1180
+ sizeStep: 4,
1181
+ sizePopupArrow: 16,
1182
+ // Control Base
1183
+ controlHeight: 32,
1184
+ // zIndex
1185
+ zIndexBase: 0,
1186
+ zIndexPopupBase: 1e3,
1187
+ // Image
1188
+ opacityImage: 1,
1189
+ // Wireframe
1190
+ wireframe: !1,
1191
+ // Motion
1192
+ motion: !0
1193
+ });
1194
+ function Ze(e, t) {
1195
+ let {
1196
+ generateColorPalettes: r,
1197
+ generateNeutralColorPalettes: o
1198
+ } = t;
1199
+ const {
1200
+ colorSuccess: n,
1201
+ colorWarning: i,
1202
+ colorError: a,
1203
+ colorInfo: c,
1204
+ colorPrimary: s,
1205
+ colorBgBase: l,
1206
+ colorTextBase: d
1207
+ } = e, f = r(s), u = r(n), b = r(i), v = r(a), g = r(c), m = o(l, d), S = e.colorLink || e.colorInfo, T = r(S);
1208
+ return Object.assign(Object.assign({}, m), {
1209
+ colorPrimaryBg: f[1],
1210
+ colorPrimaryBgHover: f[2],
1211
+ colorPrimaryBorder: f[3],
1212
+ colorPrimaryBorderHover: f[4],
1213
+ colorPrimaryHover: f[5],
1214
+ colorPrimary: f[6],
1215
+ colorPrimaryActive: f[7],
1216
+ colorPrimaryTextHover: f[8],
1217
+ colorPrimaryText: f[9],
1218
+ colorPrimaryTextActive: f[10],
1219
+ colorSuccessBg: u[1],
1220
+ colorSuccessBgHover: u[2],
1221
+ colorSuccessBorder: u[3],
1222
+ colorSuccessBorderHover: u[4],
1223
+ colorSuccessHover: u[4],
1224
+ colorSuccess: u[6],
1225
+ colorSuccessActive: u[7],
1226
+ colorSuccessTextHover: u[8],
1227
+ colorSuccessText: u[9],
1228
+ colorSuccessTextActive: u[10],
1229
+ colorErrorBg: v[1],
1230
+ colorErrorBgHover: v[2],
1231
+ colorErrorBorder: v[3],
1232
+ colorErrorBorderHover: v[4],
1233
+ colorErrorHover: v[5],
1234
+ colorError: v[6],
1235
+ colorErrorActive: v[7],
1236
+ colorErrorTextHover: v[8],
1237
+ colorErrorText: v[9],
1238
+ colorErrorTextActive: v[10],
1239
+ colorWarningBg: b[1],
1240
+ colorWarningBgHover: b[2],
1241
+ colorWarningBorder: b[3],
1242
+ colorWarningBorderHover: b[4],
1243
+ colorWarningHover: b[4],
1244
+ colorWarning: b[6],
1245
+ colorWarningActive: b[7],
1246
+ colorWarningTextHover: b[8],
1247
+ colorWarningText: b[9],
1248
+ colorWarningTextActive: b[10],
1249
+ colorInfoBg: g[1],
1250
+ colorInfoBgHover: g[2],
1251
+ colorInfoBorder: g[3],
1252
+ colorInfoBorderHover: g[4],
1253
+ colorInfoHover: g[4],
1254
+ colorInfo: g[6],
1255
+ colorInfoActive: g[7],
1256
+ colorInfoTextHover: g[8],
1257
+ colorInfoText: g[9],
1258
+ colorInfoTextActive: g[10],
1259
+ colorLinkHover: T[4],
1260
+ colorLink: T[6],
1261
+ colorLinkActive: T[7],
1262
+ colorBgMask: new x("#000").setAlpha(0.45).toRgbString(),
1263
+ colorWhite: "#fff"
1264
+ });
1265
+ }
1266
+ const ir = (e) => {
1267
+ let t = e, r = e, o = e, n = e;
1268
+ return e < 6 && e >= 5 ? t = e + 1 : e < 16 && e >= 6 ? t = e + 2 : e >= 16 && (t = 16), e < 7 && e >= 5 ? r = 4 : e < 8 && e >= 7 ? r = 5 : e < 14 && e >= 8 ? r = 6 : e < 16 && e >= 14 ? r = 7 : e >= 16 && (r = 8), e < 6 && e >= 2 ? o = 1 : e >= 6 && (o = 2), e > 4 && e < 8 ? n = 4 : e >= 8 && (n = 6), {
1269
+ borderRadius: e,
1270
+ borderRadiusXS: o,
1271
+ borderRadiusSM: r,
1272
+ borderRadiusLG: t,
1273
+ borderRadiusOuter: n
1274
+ };
1275
+ }, ar = ir;
1276
+ function cr(e) {
1277
+ const {
1278
+ motionUnit: t,
1279
+ motionBase: r,
1280
+ borderRadius: o,
1281
+ lineWidth: n
1282
+ } = e;
1283
+ return Object.assign({
1284
+ // motion
1285
+ motionDurationFast: `${(r + t).toFixed(1)}s`,
1286
+ motionDurationMid: `${(r + t * 2).toFixed(1)}s`,
1287
+ motionDurationSlow: `${(r + t * 3).toFixed(1)}s`,
1288
+ // line
1289
+ lineWidthBold: n + 1
1290
+ }, ar(o));
1291
+ }
1292
+ const A = (e, t) => new x(e).setAlpha(t).toRgbString(), L = (e, t) => new x(e).darken(t).toHexString(), sr = (e) => {
1293
+ const t = P(e);
1294
+ return {
1295
+ 1: t[0],
1296
+ 2: t[1],
1297
+ 3: t[2],
1298
+ 4: t[3],
1299
+ 5: t[4],
1300
+ 6: t[5],
1301
+ 7: t[6],
1302
+ 8: t[4],
1303
+ 9: t[5],
1304
+ 10: t[6]
1305
+ // 8: colors[7],
1306
+ // 9: colors[8],
1307
+ // 10: colors[9],
1308
+ };
1309
+ }, lr = (e, t) => {
1310
+ const r = e || "#fff", o = t || "#000";
1311
+ return {
1312
+ colorBgBase: r,
1313
+ colorTextBase: o,
1314
+ colorText: A(o, 0.88),
1315
+ colorTextSecondary: A(o, 0.65),
1316
+ colorTextTertiary: A(o, 0.45),
1317
+ colorTextQuaternary: A(o, 0.25),
1318
+ colorFill: A(o, 0.15),
1319
+ colorFillSecondary: A(o, 0.06),
1320
+ colorFillTertiary: A(o, 0.04),
1321
+ colorFillQuaternary: A(o, 0.02),
1322
+ colorBgLayout: L(r, 4),
1323
+ colorBgContainer: L(r, 0),
1324
+ colorBgElevated: L(r, 0),
1325
+ colorBgSpotlight: A(o, 0.85),
1326
+ colorBgBlur: "transparent",
1327
+ colorBorder: L(r, 15),
1328
+ colorBorderSecondary: L(r, 6)
1329
+ };
1330
+ };
1331
+ function fr(e) {
1332
+ const t = new Array(10).fill(null).map((r, o) => {
1333
+ const n = o - 1, i = e * Math.pow(2.71828, n / 5), a = o > 1 ? Math.floor(i) : Math.ceil(i);
1334
+ return Math.floor(a / 2) * 2;
1335
+ });
1336
+ return t[1] = e, t.map((r) => {
1337
+ const o = r + 8;
1338
+ return {
1339
+ size: r,
1340
+ lineHeight: o / r
1341
+ };
1342
+ });
1343
+ }
1344
+ const ur = (e) => {
1345
+ const t = fr(e), r = t.map((n) => n.size), o = t.map((n) => n.lineHeight);
1346
+ return {
1347
+ fontSizeSM: r[0],
1348
+ fontSize: r[1],
1349
+ fontSizeLG: r[2],
1350
+ fontSizeXL: r[3],
1351
+ fontSizeHeading1: r[6],
1352
+ fontSizeHeading2: r[5],
1353
+ fontSizeHeading3: r[4],
1354
+ fontSizeHeading4: r[3],
1355
+ fontSizeHeading5: r[2],
1356
+ lineHeight: o[1],
1357
+ lineHeightLG: o[2],
1358
+ lineHeightSM: o[0],
1359
+ lineHeightHeading1: o[6],
1360
+ lineHeightHeading2: o[5],
1361
+ lineHeightHeading3: o[4],
1362
+ lineHeightHeading4: o[3],
1363
+ lineHeightHeading5: o[2]
1364
+ };
1365
+ }, Ye = ur;
1366
+ function X(e) {
1367
+ const t = Object.keys(xe).map((r) => {
1368
+ const o = P(e[r]);
1369
+ return new Array(10).fill(1).reduce((n, i, a) => (n[`${r}-${a + 1}`] = o[a], n[`${r}${a + 1}`] = o[a], n), {});
1370
+ }).reduce((r, o) => (r = Object.assign(Object.assign({}, r), o), r), {});
1371
+ return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, e), t), Ze(e, {
1372
+ generateColorPalettes: sr,
1373
+ generateNeutralColorPalettes: lr
1374
+ })), Ye(e.fontSize)), nr(e)), Je(e)), cr(e));
1375
+ }
1376
+ const dr = de(X), ve = {
1377
+ token: W,
1378
+ override: {
1379
+ override: W
1380
+ },
1381
+ hashed: !0
1382
+ }, gr = /* @__PURE__ */ De.createContext(ve), hr = "5.11.0";
1383
+ function le(e) {
1384
+ return e >= 0 && e <= 255;
1385
+ }
1386
+ function q(e, t) {
1387
+ const {
1388
+ r,
1389
+ g: o,
1390
+ b: n,
1391
+ a: i
1392
+ } = new x(e).toRgb();
1393
+ if (i < 1)
1394
+ return e;
1395
+ const {
1396
+ r: a,
1397
+ g: c,
1398
+ b: s
1399
+ } = new x(t).toRgb();
1400
+ for (let l = 0.01; l <= 1; l += 0.01) {
1401
+ const d = Math.round((r - a * (1 - l)) / l), f = Math.round((o - c * (1 - l)) / l), u = Math.round((n - s * (1 - l)) / l);
1402
+ if (le(d) && le(f) && le(u))
1403
+ return new x({
1404
+ r: d,
1405
+ g: f,
1406
+ b: u,
1407
+ a: Math.round(l * 100) / 100
1408
+ }).toRgbString();
1409
+ }
1410
+ return new x({
1411
+ r,
1412
+ g: o,
1413
+ b: n,
1414
+ a: 1
1415
+ }).toRgbString();
1416
+ }
1417
+ var br = globalThis && globalThis.__rest || function(e, t) {
1418
+ var r = {};
1419
+ for (var o in e)
1420
+ Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (r[o] = e[o]);
1421
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
1422
+ for (var n = 0, o = Object.getOwnPropertySymbols(e); n < o.length; n++)
1423
+ t.indexOf(o[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[n]) && (r[o[n]] = e[o[n]]);
1424
+ return r;
1425
+ };
1426
+ function Te(e) {
1427
+ const {
1428
+ override: t
1429
+ } = e, r = br(e, ["override"]), o = Object.assign({}, t);
1430
+ Object.keys(W).forEach((u) => {
1431
+ delete o[u];
1432
+ });
1433
+ const n = Object.assign(Object.assign({}, r), o), i = 480, a = 576, c = 768, s = 992, l = 1200, d = 1600;
1434
+ if (n.motion === !1) {
1435
+ const u = "0s";
1436
+ n.motionDurationFast = u, n.motionDurationMid = u, n.motionDurationSlow = u;
1437
+ }
1438
+ return Object.assign(Object.assign(Object.assign({}, n), {
1439
+ // ============== Background ============== //
1440
+ colorFillContent: n.colorFillSecondary,
1441
+ colorFillContentHover: n.colorFill,
1442
+ colorFillAlter: n.colorFillQuaternary,
1443
+ colorBgContainerDisabled: n.colorFillTertiary,
1444
+ // ============== Split ============== //
1445
+ colorBorderBg: n.colorBgContainer,
1446
+ colorSplit: q(n.colorBorderSecondary, n.colorBgContainer),
1447
+ // ============== Text ============== //
1448
+ colorTextPlaceholder: n.colorTextQuaternary,
1449
+ colorTextDisabled: n.colorTextQuaternary,
1450
+ colorTextHeading: n.colorText,
1451
+ colorTextLabel: n.colorTextSecondary,
1452
+ colorTextDescription: n.colorTextTertiary,
1453
+ colorTextLightSolid: n.colorWhite,
1454
+ colorHighlight: n.colorError,
1455
+ colorBgTextHover: n.colorFillSecondary,
1456
+ colorBgTextActive: n.colorFill,
1457
+ colorIcon: n.colorTextTertiary,
1458
+ colorIconHover: n.colorText,
1459
+ colorErrorOutline: q(n.colorErrorBg, n.colorBgContainer),
1460
+ colorWarningOutline: q(n.colorWarningBg, n.colorBgContainer),
1461
+ // Font
1462
+ fontSizeIcon: n.fontSizeSM,
1463
+ // Line
1464
+ lineWidthFocus: n.lineWidth * 4,
1465
+ // Control
1466
+ lineWidth: n.lineWidth,
1467
+ controlOutlineWidth: n.lineWidth * 2,
1468
+ // Checkbox size and expand icon size
1469
+ controlInteractiveSize: n.controlHeight / 2,
1470
+ controlItemBgHover: n.colorFillTertiary,
1471
+ controlItemBgActive: n.colorPrimaryBg,
1472
+ controlItemBgActiveHover: n.colorPrimaryBgHover,
1473
+ controlItemBgActiveDisabled: n.colorFill,
1474
+ controlTmpOutline: n.colorFillQuaternary,
1475
+ controlOutline: q(n.colorPrimaryBg, n.colorBgContainer),
1476
+ lineType: n.lineType,
1477
+ borderRadius: n.borderRadius,
1478
+ borderRadiusXS: n.borderRadiusXS,
1479
+ borderRadiusSM: n.borderRadiusSM,
1480
+ borderRadiusLG: n.borderRadiusLG,
1481
+ fontWeightStrong: 600,
1482
+ opacityLoading: 0.65,
1483
+ linkDecoration: "none",
1484
+ linkHoverDecoration: "none",
1485
+ linkFocusDecoration: "none",
1486
+ controlPaddingHorizontal: 12,
1487
+ controlPaddingHorizontalSM: 8,
1488
+ paddingXXS: n.sizeXXS,
1489
+ paddingXS: n.sizeXS,
1490
+ paddingSM: n.sizeSM,
1491
+ padding: n.size,
1492
+ paddingMD: n.sizeMD,
1493
+ paddingLG: n.sizeLG,
1494
+ paddingXL: n.sizeXL,
1495
+ paddingContentHorizontalLG: n.sizeLG,
1496
+ paddingContentVerticalLG: n.sizeMS,
1497
+ paddingContentHorizontal: n.sizeMS,
1498
+ paddingContentVertical: n.sizeSM,
1499
+ paddingContentHorizontalSM: n.size,
1500
+ paddingContentVerticalSM: n.sizeXS,
1501
+ marginXXS: n.sizeXXS,
1502
+ marginXS: n.sizeXS,
1503
+ marginSM: n.sizeSM,
1504
+ margin: n.size,
1505
+ marginMD: n.sizeMD,
1506
+ marginLG: n.sizeLG,
1507
+ marginXL: n.sizeXL,
1508
+ marginXXL: n.sizeXXL,
1509
+ boxShadow: `
1510
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
1511
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
1512
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
1513
+ `,
1514
+ boxShadowSecondary: `
1515
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
1516
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
1517
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
1518
+ `,
1519
+ boxShadowTertiary: `
1520
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
1521
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
1522
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
1523
+ `,
1524
+ screenXS: i,
1525
+ screenXSMin: i,
1526
+ screenXSMax: a - 1,
1527
+ screenSM: a,
1528
+ screenSMMin: a,
1529
+ screenSMMax: c - 1,
1530
+ screenMD: c,
1531
+ screenMDMin: c,
1532
+ screenMDMax: s - 1,
1533
+ screenLG: s,
1534
+ screenLGMin: s,
1535
+ screenLGMax: l - 1,
1536
+ screenXL: l,
1537
+ screenXLMin: l,
1538
+ screenXLMax: d - 1,
1539
+ screenXXL: d,
1540
+ screenXXLMin: d,
1541
+ boxShadowPopoverArrow: "2px 2px 5px rgba(0, 0, 0, 0.05)",
1542
+ boxShadowCard: `
1543
+ 0 1px 2px -2px ${new x("rgba(0, 0, 0, 0.16)").toRgbString()},
1544
+ 0 3px 6px 0 ${new x("rgba(0, 0, 0, 0.12)").toRgbString()},
1545
+ 0 5px 12px 4px ${new x("rgba(0, 0, 0, 0.09)").toRgbString()}
1546
+ `,
1547
+ boxShadowDrawerRight: `
1548
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
1549
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
1550
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
1551
+ `,
1552
+ boxShadowDrawerLeft: `
1553
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
1554
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
1555
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
1556
+ `,
1557
+ boxShadowDrawerUp: `
1558
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
1559
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
1560
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
1561
+ `,
1562
+ boxShadowDrawerDown: `
1563
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
1564
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
1565
+ 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
1566
+ `,
1567
+ boxShadowTabsOverflowLeft: "inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",
1568
+ boxShadowTabsOverflowRight: "inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",
1569
+ boxShadowTabsOverflowTop: "inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",
1570
+ boxShadowTabsOverflowBottom: "inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"
1571
+ }), o);
1572
+ }
1573
+ var Le = globalThis && globalThis.__rest || function(e, t) {
1574
+ var r = {};
1575
+ for (var o in e)
1576
+ Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (r[o] = e[o]);
1577
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
1578
+ for (var n = 0, o = Object.getOwnPropertySymbols(e); n < o.length; n++)
1579
+ t.indexOf(o[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[n]) && (r[o[n]] = e[o[n]]);
1580
+ return r;
1581
+ };
1582
+ const et = (e, t, r) => {
1583
+ const o = r.getDerivativeToken(e), {
1584
+ override: n
1585
+ } = t, i = Le(t, ["override"]);
1586
+ let a = Object.assign(Object.assign({}, o), {
1587
+ override: n
1588
+ });
1589
+ return a = Te(a), i && Object.entries(i).forEach((c) => {
1590
+ let [s, l] = c;
1591
+ const {
1592
+ theme: d
1593
+ } = l, f = Le(l, ["theme"]);
1594
+ let u = f;
1595
+ d && (u = et(Object.assign(Object.assign({}, a), f), {
1596
+ override: f
1597
+ }, d)), a[s] = u;
1598
+ }), a;
1599
+ };
1600
+ function pr() {
1601
+ const {
1602
+ token: e,
1603
+ hashed: t,
1604
+ theme: r,
1605
+ override: o
1606
+ } = De.useContext(gr), n = `${hr}-${t || ""}`, i = r || dr, [a, c] = _t(i, [W, e], {
1607
+ salt: n,
1608
+ override: o,
1609
+ getComputedToken: et,
1610
+ // formatToken will not be consumed after 1.15.0 with getComputedToken.
1611
+ // But token will break if @ant-design/cssinjs is under 1.15.0 without it
1612
+ formatToken: Te
1613
+ });
1614
+ return [i, a, t ? c : ""];
1615
+ }
1616
+ const vr = (e) => {
1617
+ const t = e != null && e.algorithm ? de(e.algorithm) : de(X), r = Object.assign(Object.assign({}, W), e == null ? void 0 : e.token);
1618
+ return Ve(r, {
1619
+ override: e == null ? void 0 : e.token
1620
+ }, t, Te);
1621
+ }, yr = vr;
1622
+ function mr(e) {
1623
+ const {
1624
+ sizeUnit: t,
1625
+ sizeStep: r
1626
+ } = e, o = r - 2;
1627
+ return {
1628
+ sizeXXL: t * (o + 10),
1629
+ sizeXL: t * (o + 6),
1630
+ sizeLG: t * (o + 2),
1631
+ sizeMD: t * (o + 2),
1632
+ sizeMS: t * (o + 1),
1633
+ size: t * o,
1634
+ sizeSM: t * o,
1635
+ sizeXS: t * (o - 1),
1636
+ sizeXXS: t * (o - 1)
1637
+ };
1638
+ }
1639
+ const Sr = (e, t) => {
1640
+ const r = t ?? X(e), o = r.fontSizeSM, n = r.controlHeight - 4;
1641
+ return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, r), mr(t ?? e)), Ye(o)), {
1642
+ // controlHeight
1643
+ controlHeight: n
1644
+ }), Je(Object.assign(Object.assign({}, r), {
1645
+ controlHeight: n
1646
+ })));
1647
+ }, xr = Sr, B = (e, t) => new x(e).setAlpha(t).toRgbString(), R = (e, t) => new x(e).lighten(t).toHexString(), Tr = (e) => {
1648
+ const t = P(e, {
1649
+ theme: "dark"
1650
+ });
1651
+ return {
1652
+ 1: t[0],
1653
+ 2: t[1],
1654
+ 3: t[2],
1655
+ 4: t[3],
1656
+ 5: t[6],
1657
+ 6: t[5],
1658
+ 7: t[4],
1659
+ 8: t[6],
1660
+ 9: t[5],
1661
+ 10: t[4]
1662
+ // 8: colors[9],
1663
+ // 9: colors[8],
1664
+ // 10: colors[7],
1665
+ };
1666
+ }, kr = (e, t) => {
1667
+ const r = e || "#000", o = t || "#fff";
1668
+ return {
1669
+ colorBgBase: r,
1670
+ colorTextBase: o,
1671
+ colorText: B(o, 0.85),
1672
+ colorTextSecondary: B(o, 0.65),
1673
+ colorTextTertiary: B(o, 0.45),
1674
+ colorTextQuaternary: B(o, 0.25),
1675
+ colorFill: B(o, 0.18),
1676
+ colorFillSecondary: B(o, 0.12),
1677
+ colorFillTertiary: B(o, 0.08),
1678
+ colorFillQuaternary: B(o, 0.04),
1679
+ colorBgElevated: R(r, 12),
1680
+ colorBgContainer: R(r, 8),
1681
+ colorBgLayout: R(r, 0),
1682
+ colorBgSpotlight: R(r, 26),
1683
+ colorBgBlur: B(o, 0.04),
1684
+ colorBorder: R(r, 26),
1685
+ colorBorderSecondary: R(r, 19)
1686
+ };
1687
+ }, Mr = (e, t) => {
1688
+ const r = Object.keys(xe).map((n) => {
1689
+ const i = P(e[n], {
1690
+ theme: "dark"
1691
+ });
1692
+ return new Array(10).fill(1).reduce((a, c, s) => (a[`${n}-${s + 1}`] = i[s], a[`${n}${s + 1}`] = i[s], a), {});
1693
+ }).reduce((n, i) => (n = Object.assign(Object.assign({}, n), i), n), {}), o = t ?? X(e);
1694
+ return Object.assign(Object.assign(Object.assign({}, o), r), Ze(e, {
1695
+ generateColorPalettes: Tr,
1696
+ generateNeutralColorPalettes: kr
1697
+ }));
1698
+ }, Cr = Mr;
1699
+ function wr() {
1700
+ const [e, t, r] = pr();
1701
+ return {
1702
+ theme: e,
1703
+ token: t,
1704
+ hashId: r
1705
+ };
1706
+ }
1707
+ const tt = {
1708
+ /** @private Test Usage. Do not use in production. */
1709
+ defaultConfig: ve,
1710
+ /** Default seedToken */
1711
+ defaultSeed: ve.token,
1712
+ useToken: wr,
1713
+ defaultAlgorithm: X,
1714
+ darkAlgorithm: Cr,
1715
+ compactAlgorithm: xr,
1716
+ getDesignToken: yr
1717
+ }, Ar = {
1718
+ 50: "#ffffff",
1719
+ 100: "#f5f5f5",
1720
+ 200: "#e5e5e5",
1721
+ 300: "#d4d4d4",
1722
+ 400: "#a3a3a3",
1723
+ 500: "#737373",
1724
+ 600: "#525252",
1725
+ 700: "#404040",
1726
+ 800: "#262626",
1727
+ 900: "#171717",
1728
+ 950: "#0a0a0a"
1729
+ }, Br = {
1730
+ 50: "#677084",
1731
+ 100: "#5c6880",
1732
+ 200: "#515c7c",
1733
+ 300: "#465178",
1734
+ 400: "#3d4561",
1735
+ // applied from design: filters card bg
1736
+ 500: "#293245",
1737
+ // applied from design: layout color
1738
+ 600: "#232b3b",
1739
+ // applied from design: header input bg
1740
+ 700: "#1d2331",
1741
+ 800: "#171d27",
1742
+ 900: "#11171e",
1743
+ 950: "#0c111a"
1744
+ }, Er = {
1745
+ 100: "#f5f5f5",
1746
+ 200: "#e5e5e5",
1747
+ 300: "#d4d4d4",
1748
+ 400: "#a3a3a3",
1749
+ 500: "#788195",
1750
+ // applied from design: header text placeholder
1751
+ 600: "#525252",
1752
+ 700: "#404040",
1753
+ 800: "#262626",
1754
+ 900: "#3b404c",
1755
+ // applied from design: layout border
1756
+ 950: "#171717"
1757
+ }, Hr = {
1758
+ 50: "#fffaf5",
1759
+ 100: "#fcf3eb",
1760
+ 200: "#fce0cf",
1761
+ 300: "#fac7b1",
1762
+ 400: "#f58d7a",
1763
+ 500: "#ef4444",
1764
+ 600: "#d93636",
1765
+ 700: "#b32525",
1766
+ 800: "#8f1818",
1767
+ 900: "#6b0e0e",
1768
+ 950: "#450606"
1769
+ }, Or = {
1770
+ 50: "#fafcf2",
1771
+ 100: "#f5fae6",
1772
+ 200: "#e5f5c1",
1773
+ 300: "#d2ed9d",
1774
+ 400: "#a9e05c",
1775
+ 500: "#7ed321",
1776
+ 600: "#6abf1b",
1777
+ 700: "#529e13",
1778
+ 800: "#3d800d",
1779
+ 900: "#275e07",
1780
+ 950: "#163d03"
1781
+ }, Ir = {
1782
+ 50: "#fbf7fc",
1783
+ 100: "#f5eff8",
1784
+ 200: "#ebdef0",
1785
+ 300: "#dbc4e3",
1786
+ 400: "#c7a1d1",
1787
+ 500: "#ad7abb",
1788
+ 600: "#915c9d",
1789
+ 700: "#72467b",
1790
+ 800: "#633e6a",
1791
+ 900: "#543659",
1792
+ 950: "#341b37"
1793
+ }, Rr = {
1794
+ 50: "#eef5ff",
1795
+ 100: "#d9e8ff",
1796
+ 200: "#bcd8ff",
1797
+ 300: "#8ec0ff",
1798
+ 400: "#599cff",
1799
+ 500: "#4482ff",
1800
+ // applied from design: primary button color
1801
+ 600: "#1b55f5",
1802
+ 700: "#1440e1",
1803
+ 800: "#1734b6",
1804
+ 900: "#19318f",
1805
+ 950: "#142057"
1806
+ }, zr = {
1807
+ 50: "#fffcf2",
1808
+ 100: "#fff8e6",
1809
+ 200: "#ffebbf",
1810
+ 300: "#fcd997",
1811
+ 400: "#fcb44e",
1812
+ 500: "#f98003",
1813
+ 600: "#e06e02",
1814
+ 700: "#ba5202",
1815
+ 800: "#963d02",
1816
+ 900: "#702900",
1817
+ 950: "#471700"
1818
+ }, jr = {
1819
+ 50: "#fcf2f7",
1820
+ 100: "#fae6ef",
1821
+ 200: "#f5c4d7",
1822
+ 300: "#eda1b9",
1823
+ 400: "#de5f77",
1824
+ 500: "#d2282e",
1825
+ 600: "#bd2025",
1826
+ 700: "#9c161a",
1827
+ 800: "#7d0e11",
1828
+ 900: "#5e080a",
1829
+ 950: "#3d0405"
1830
+ }, fe = 16, h = {
1831
+ akinon: jr,
1832
+ azure: Rr,
1833
+ orange: zr,
1834
+ red: Hr,
1835
+ green: Or,
1836
+ purple: Ir,
1837
+ gray: Er,
1838
+ ebonyClay: Br,
1839
+ neutral: Ar
1840
+ }, Pr = {
1841
+ // We use dark algorithm from antd by default,
1842
+ // since our applications are dark themed.
1843
+ algorithm: tt.darkAlgorithm,
1844
+ colors: h,
1845
+ // We also need to override antd styles with
1846
+ // our current color palette.
1847
+ token: {
1848
+ colorTextBase: h.neutral[100],
1849
+ colorText: h.neutral[100],
1850
+ colorTextSecondary: h.gray[500],
1851
+ colorTextPlaceholder: h.gray[500],
1852
+ colorPrimary: h.azure[500],
1853
+ colorError: h.red[500],
1854
+ colorBgLayout: h.ebonyClay[500],
1855
+ // effects layout bg
1856
+ colorBgContainer: h.ebonyClay[600],
1857
+ // effects card bg, table bg, input bg
1858
+ colorBgElevated: h.ebonyClay[400],
1859
+ // effects dropdown bg, select bg, notification bg
1860
+ controlItemBgHover: h.ebonyClay[200],
1861
+ // effects item bg in dropdown item when hovered
1862
+ controlItemBgActive: h.ebonyClay[300],
1863
+ // effects active item bg such in dropdown item
1864
+ controlItemBgActiveHover: h.ebonyClay[300],
1865
+ // effects active item bg such in dropdown item when hovered
1866
+ colorBgSpotlight: h.ebonyClay[600],
1867
+ //TODO: bg color of tooltip?
1868
+ colorBorder: h.ebonyClay[700]
1869
+ },
1870
+ components: {
1871
+ Layout: {
1872
+ headerBg: h.ebonyClay[500],
1873
+ siderBg: h.ebonyClay[500]
1874
+ },
1875
+ Dropdown: {
1876
+ colorPrimary: h.neutral[100],
1877
+ // primary color (azure500) doesn't work well with dropdown bg
1878
+ controlPaddingHorizontal: fe
1879
+ },
1880
+ Menu: {
1881
+ darkItemBg: h.ebonyClay[500],
1882
+ darkSubMenuItemBg: h.ebonyClay[600],
1883
+ darkItemSelectedBg: h.ebonyClay[700],
1884
+ itemBorderRadius: 0,
1885
+ itemMarginBlock: 0,
1886
+ itemMarginInline: 0,
1887
+ darkItemColor: h.gray[500],
1888
+ itemHeight: fe * 3.25
1889
+ },
1890
+ Breadcrumb: {
1891
+ fontSize: fe * 0.625,
1892
+ lastItemColor: h.azure[500]
1893
+ }
1894
+ }
1895
+ }, Lr = tt.useToken, Dr = () => {
1896
+ const { colors: e } = Pr, t = "--color", r = {};
1897
+ for (const [o, n] of Object.entries(e))
1898
+ for (const [i, a] of Object.entries(n)) {
1899
+ const c = `${t}-${o}-${i}`;
1900
+ r[c] = a;
1901
+ }
1902
+ return r;
1903
+ };
1904
+ export {
1905
+ Dr as getCssVariables,
1906
+ Pr as theme,
1907
+ Lr as useToken
1908
+ };