Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

1151 lines
31 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: ab2e1927315c9199.b865cfe6f4.js
* Module id: 403989
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e) => {
"use strict";
e.i(6177);
var t = e.i(927257),
r = e.i(640404);
let n = Math.round;
function i(e, t) {
let r =
e
.replace(/^[^(]*\((.*)/, "$1")
.replace(/\).*/, "")
.match(/\d*\.?\d+%?/g) || [],
n = r.map((e) => parseFloat(e));
for (let e = 0; e < 3; e += 1) n[e] = t(n[e] || 0, r[e] || "", e);
return (
r[3] ? (n[3] = r[3].includes("%") ? n[3] / 100 : n[3]) : (n[3] = 1), n
);
}
let o = (e, t, r) => (0 === r ? e : e / 100);
function a(e, t) {
let r = t || 255;
return e > r ? r : e < 0 ? 0 : e;
}
class l {
constructor(e) {
function t(t) {
return t[0] in e && t[1] in e && t[2] in e;
}
if (
((0, r.default)(this, "isValid", !0),
(0, r.default)(this, "r", 0),
(0, r.default)(this, "g", 0),
(0, r.default)(this, "b", 0),
(0, r.default)(this, "a", 1),
(0, r.default)(this, "_h", void 0),
(0, r.default)(this, "_s", void 0),
(0, r.default)(this, "_l", void 0),
(0, r.default)(this, "_v", void 0),
(0, r.default)(this, "_max", void 0),
(0, r.default)(this, "_min", void 0),
(0, r.default)(this, "_brightness", void 0),
e)
)
if ("string" == typeof e) {
const t = e.trim();
function n(e) {
return t.startsWith(e);
}
/^#?[A-F\d]{3,8}$/i.test(t)
? this.fromHexString(t)
: n("rgb")
? this.fromRgbString(t)
: n("hsl")
? this.fromHslString(t)
: (n("hsv") || n("hsb")) && this.fromHsvString(t);
} else if (e instanceof l)
(this.r = e.r),
(this.g = e.g),
(this.b = e.b),
(this.a = e.a),
(this._h = e._h),
(this._s = e._s),
(this._l = e._l),
(this._v = e._v);
else if (t("rgb"))
(this.r = a(e.r)),
(this.g = a(e.g)),
(this.b = a(e.b)),
(this.a = "number" == typeof e.a ? a(e.a, 1) : 1);
else if (t("hsl")) this.fromHsl(e);
else if (t("hsv")) this.fromHsv(e);
else
throw Error(
"@ant-design/fast-color: unsupported input " + JSON.stringify(e),
);
}
setR(e) {
return this._sc("r", e);
}
setG(e) {
return this._sc("g", e);
}
setB(e) {
return this._sc("b", e);
}
setA(e) {
return this._sc("a", e, 1);
}
setHue(e) {
let t = this.toHsv();
return (t.h = e), this._c(t);
}
getLuminance() {
function e(e) {
let t = e / 255;
return t <= 0.03928 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4);
}
return 0.2126 * e(this.r) + 0.7152 * e(this.g) + 0.0722 * e(this.b);
}
getHue() {
if (void 0 === this._h) {
let e = this.getMax() - this.getMin();
0 === e
? (this._h = 0)
: (this._h = n(
60 *
(this.r === this.getMax()
? (this.g - this.b) / e + 6 * (this.g < this.b)
: this.g === this.getMax()
? (this.b - this.r) / e + 2
: (this.r - this.g) / e + 4),
));
}
return this._h;
}
getSaturation() {
if (void 0 === this._s) {
let e = this.getMax() - this.getMin();
0 === e ? (this._s = 0) : (this._s = e / this.getMax());
}
return this._s;
}
getLightness() {
return (
void 0 === this._l &&
(this._l = (this.getMax() + this.getMin()) / 510),
this._l
);
}
getValue() {
return void 0 === this._v && (this._v = this.getMax() / 255), this._v;
}
getBrightness() {
return (
void 0 === this._brightness &&
(this._brightness =
(299 * this.r + 587 * this.g + 114 * this.b) / 1e3),
this._brightness
);
}
darken(e = 10) {
let t = this.getHue(),
r = this.getSaturation(),
n = this.getLightness() - e / 100;
return n < 0 && (n = 0), this._c({ h: t, s: r, l: n, a: this.a });
}
lighten(e = 10) {
let t = this.getHue(),
r = this.getSaturation(),
n = this.getLightness() + e / 100;
return n > 1 && (n = 1), this._c({ h: t, s: r, l: n, a: this.a });
}
mix(e, t = 50) {
let r = this._c(e),
i = t / 100,
o = (e) => (r[e] - this[e]) * i + this[e],
a = {
r: n(o("r")),
g: n(o("g")),
b: n(o("b")),
a: n(100 * o("a")) / 100,
};
return this._c(a);
}
tint(e = 10) {
return this.mix({ r: 255, g: 255, b: 255, a: 1 }, e);
}
shade(e = 10) {
return this.mix({ r: 0, g: 0, b: 0, a: 1 }, e);
}
onBackground(e) {
let t = this._c(e),
r = this.a + t.a * (1 - this.a),
i = (e) => n((this[e] * this.a + t[e] * t.a * (1 - this.a)) / r);
return this._c({ r: i("r"), g: i("g"), b: i("b"), a: r });
}
isDark() {
return 128 > this.getBrightness();
}
isLight() {
return this.getBrightness() >= 128;
}
equals(e) {
return (
this.r === e.r && this.g === e.g && this.b === e.b && this.a === e.a
);
}
clone() {
return this._c(this);
}
toHexString() {
let e = "#",
t = (this.r || 0).toString(16);
e += 2 === t.length ? t : "0" + t;
let r = (this.g || 0).toString(16);
e += 2 === r.length ? r : "0" + r;
let i = (this.b || 0).toString(16);
if (
((e += 2 === i.length ? i : "0" + i),
"number" == typeof this.a && this.a >= 0 && this.a < 1)
) {
let t = n(255 * this.a).toString(16);
e += 2 === t.length ? t : "0" + t;
}
return e;
}
toHsl() {
return {
h: this.getHue(),
s: this.getSaturation(),
l: this.getLightness(),
a: this.a,
};
}
toHslString() {
let e = this.getHue(),
t = n(100 * this.getSaturation()),
r = n(100 * this.getLightness());
return 1 !== this.a
? `hsla(${e},${t}%,${r}%,${this.a})`
: `hsl(${e},${t}%,${r}%)`;
}
toHsv() {
return {
h: this.getHue(),
s: this.getSaturation(),
v: this.getValue(),
a: this.a,
};
}
toRgb() {
return { r: this.r, g: this.g, b: this.b, a: this.a };
}
toRgbString() {
return 1 !== this.a
? `rgba(${this.r},${this.g},${this.b},${this.a})`
: `rgb(${this.r},${this.g},${this.b})`;
}
toString() {
return this.toRgbString();
}
_sc(e, t, r) {
let n = this.clone();
return (n[e] = a(t, r)), n;
}
_c(e) {
return new this.constructor(e);
}
getMax() {
return (
void 0 === this._max &&
(this._max = Math.max(this.r, this.g, this.b)),
this._max
);
}
getMin() {
return (
void 0 === this._min &&
(this._min = Math.min(this.r, this.g, this.b)),
this._min
);
}
fromHexString(e) {
let t = e.replace("#", "");
function r(e, r) {
return parseInt(t[e] + t[r || e], 16);
}
t.length < 6
? ((this.r = r(0)),
(this.g = r(1)),
(this.b = r(2)),
(this.a = t[3] ? r(3) / 255 : 1))
: ((this.r = r(0, 1)),
(this.g = r(2, 3)),
(this.b = r(4, 5)),
(this.a = t[6] ? r(6, 7) / 255 : 1));
}
fromHsl({ h: e, s: t, l: r, a: i }) {
if (
((this._h = e % 360),
(this._s = t),
(this._l = r),
(this.a = "number" == typeof i ? i : 1),
t <= 0)
) {
let e = n(255 * r);
(this.r = e), (this.g = e), (this.b = e);
}
let o = 0,
a = 0,
l = 0,
u = e / 60,
c = (1 - Math.abs(2 * r - 1)) * t,
s = c * (1 - Math.abs((u % 2) - 1));
u >= 0 && u < 1
? ((o = c), (a = s))
: u >= 1 && u < 2
? ((o = s), (a = c))
: u >= 2 && u < 3
? ((a = c), (l = s))
: u >= 3 && u < 4
? ((a = s), (l = c))
: u >= 4 && u < 5
? ((o = s), (l = c))
: u >= 5 && u < 6 && ((o = c), (l = s));
let f = r - c / 2;
(this.r = n((o + f) * 255)),
(this.g = n((a + f) * 255)),
(this.b = n((l + f) * 255));
}
fromHsv({ h: e, s: t, v: r, a: i }) {
(this._h = e % 360),
(this._s = t),
(this._v = r),
(this.a = "number" == typeof i ? i : 1);
let o = n(255 * r);
if (((this.r = o), (this.g = o), (this.b = o), t <= 0)) return;
let a = e / 60,
l = Math.floor(a),
u = a - l,
c = n(r * (1 - t) * 255),
s = n(r * (1 - t * u) * 255),
f = n(r * (1 - t * (1 - u)) * 255);
switch (l) {
case 0:
(this.g = f), (this.b = c);
break;
case 1:
(this.r = s), (this.b = c);
break;
case 2:
(this.r = c), (this.b = f);
break;
case 3:
(this.r = c), (this.g = s);
break;
case 4:
(this.r = f), (this.g = c);
break;
default:
(this.g = c), (this.b = s);
}
}
fromHsvString(e) {
let t = i(e, o);
this.fromHsv({ h: t[0], s: t[1], v: t[2], a: t[3] });
}
fromHslString(e) {
let t = i(e, o);
this.fromHsl({ h: t[0], s: t[1], l: t[2], a: t[3] });
}
fromRgbString(e) {
let t = i(e, (e, t) => (t.includes("%") ? n((e / 100) * 255) : e));
(this.r = t[0]), (this.g = t[1]), (this.b = t[2]), (this.a = t[3]);
}
}
e.s(["FastColor", () => l], 221588), e.s([], 906816);
var u = [
{ index: 7, amount: 15 },
{ index: 6, amount: 25 },
{ index: 5, amount: 30 },
{ index: 5, amount: 45 },
{ index: 5, amount: 65 },
{ index: 5, amount: 85 },
{ index: 4, amount: 90 },
{ index: 3, amount: 95 },
{ index: 2, amount: 97 },
{ index: 1, amount: 98 },
];
function c(e, t, r) {
var n;
return (
(n =
Math.round(e.h) >= 60 && 240 >= Math.round(e.h)
? r
? Math.round(e.h) - 2 * t
: Math.round(e.h) + 2 * t
: r
? Math.round(e.h) + 2 * t
: Math.round(e.h) - 2 * t) < 0
? (n += 360)
: n >= 360 && (n -= 360),
n
);
}
function s(e, t, r) {
var n;
return 0 === e.h && 0 === e.s
? e.s
: ((n = r ? e.s - 0.16 * t : 4 === t ? e.s + 0.16 : e.s + 0.05 * t) >
1 && (n = 1),
r && 5 === t && n > 0.1 && (n = 0.1),
n < 0.06 && (n = 0.06),
Math.round(100 * n) / 100);
}
function f(e, t, r) {
return (
Math.round(
100 * Math.max(0, Math.min(1, r ? e.v + 0.05 * t : e.v - 0.15 * t)),
) / 100
);
}
function d(e) {
for (
var t =
arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
r = [],
n = new l(e),
i = n.toHsv(),
o = 5;
o > 0;
o -= 1
) {
var a = new l({ h: c(i, o, !0), s: s(i, o, !0), v: f(i, o, !0) });
r.push(a);
}
r.push(n);
for (var d = 1; d <= 4; d += 1) {
var h = new l({ h: c(i, d), s: s(i, d), v: f(i, d) });
r.push(h);
}
return "dark" === t.theme
? u.map(function (e) {
var n = e.index,
i = e.amount;
return new l(t.backgroundColor || "#141414")
.mix(r[n], i)
.toHexString();
})
: r.map(function (e) {
return e.toHexString();
});
}
var h = {
red: "#F5222D",
volcano: "#FA541C",
orange: "#FA8C16",
gold: "#FAAD14",
yellow: "#FADB14",
lime: "#A0D911",
green: "#52C41A",
cyan: "#13C2C2",
blue: "#1677FF",
geekblue: "#2F54EB",
purple: "#722ED1",
magenta: "#EB2F96",
grey: "#666666",
},
v = [
"#fff1f0",
"#ffccc7",
"#ffa39e",
"#ff7875",
"#ff4d4f",
"#f5222d",
"#cf1322",
"#a8071a",
"#820014",
"#5c0011",
];
v.primary = v[5];
var p = [
"#fff2e8",
"#ffd8bf",
"#ffbb96",
"#ff9c6e",
"#ff7a45",
"#fa541c",
"#d4380d",
"#ad2102",
"#871400",
"#610b00",
];
p.primary = p[5];
var g = [
"#fff7e6",
"#ffe7ba",
"#ffd591",
"#ffc069",
"#ffa940",
"#fa8c16",
"#d46b08",
"#ad4e00",
"#873800",
"#612500",
];
g.primary = g[5];
var m = [
"#fffbe6",
"#fff1b8",
"#ffe58f",
"#ffd666",
"#ffc53d",
"#faad14",
"#d48806",
"#ad6800",
"#874d00",
"#613400",
];
m.primary = m[5];
var b = [
"#feffe6",
"#ffffb8",
"#fffb8f",
"#fff566",
"#ffec3d",
"#fadb14",
"#d4b106",
"#ad8b00",
"#876800",
"#614700",
];
b.primary = b[5];
var y = [
"#fcffe6",
"#f4ffb8",
"#eaff8f",
"#d3f261",
"#bae637",
"#a0d911",
"#7cb305",
"#5b8c00",
"#3f6600",
"#254000",
];
y.primary = y[5];
var S = [
"#f6ffed",
"#d9f7be",
"#b7eb8f",
"#95de64",
"#73d13d",
"#52c41a",
"#389e0d",
"#237804",
"#135200",
"#092b00",
];
S.primary = S[5];
var x = [
"#e6fffb",
"#b5f5ec",
"#87e8de",
"#5cdbd3",
"#36cfc9",
"#13c2c2",
"#08979c",
"#006d75",
"#00474f",
"#002329",
];
x.primary = x[5];
var C = [
"#e6f4ff",
"#bae0ff",
"#91caff",
"#69b1ff",
"#4096ff",
"#1677ff",
"#0958d9",
"#003eb3",
"#002c8c",
"#001d66",
];
C.primary = C[5];
var k = [
"#f0f5ff",
"#d6e4ff",
"#adc6ff",
"#85a5ff",
"#597ef7",
"#2f54eb",
"#1d39c4",
"#10239e",
"#061178",
"#030852",
];
k.primary = k[5];
var w = [
"#f9f0ff",
"#efdbff",
"#d3adf7",
"#b37feb",
"#9254de",
"#722ed1",
"#531dab",
"#391085",
"#22075e",
"#120338",
];
w.primary = w[5];
var T = [
"#fff0f6",
"#ffd6e7",
"#ffadd2",
"#ff85c0",
"#f759ab",
"#eb2f96",
"#c41d7f",
"#9e1068",
"#780650",
"#520339",
];
T.primary = T[5];
var E = [
"#a6a6a6",
"#999999",
"#8c8c8c",
"#808080",
"#737373",
"#666666",
"#404040",
"#1a1a1a",
"#000000",
"#000000",
];
E.primary = E[5];
var M = {
red: v,
volcano: p,
orange: g,
gold: m,
yellow: b,
lime: y,
green: S,
cyan: x,
blue: C,
geekblue: k,
purple: w,
magenta: T,
grey: E,
},
A = [
"#2a1215",
"#431418",
"#58181c",
"#791a1f",
"#a61d24",
"#d32029",
"#e84749",
"#f37370",
"#f89f9a",
"#fac8c3",
];
A.primary = A[5];
var O = [
"#2b1611",
"#441d12",
"#592716",
"#7c3118",
"#aa3e19",
"#d84a1b",
"#e87040",
"#f3956a",
"#f8b692",
"#fad4bc",
];
O.primary = O[5];
var _ = [
"#2b1d11",
"#442a11",
"#593815",
"#7c4a15",
"#aa6215",
"#d87a16",
"#e89a3c",
"#f3b765",
"#f8cf8d",
"#fae3b7",
];
_.primary = _[5];
var j = [
"#2b2111",
"#443111",
"#594214",
"#7c5914",
"#aa7714",
"#d89614",
"#e8b339",
"#f3cc62",
"#f8df8b",
"#faedb5",
];
j.primary = j[5];
var P = [
"#2b2611",
"#443b11",
"#595014",
"#7c6e14",
"#aa9514",
"#d8bd14",
"#e8d639",
"#f3ea62",
"#f8f48b",
"#fafab5",
];
P.primary = P[5];
var H = [
"#1f2611",
"#2e3c10",
"#3e4f13",
"#536d13",
"#6f9412",
"#8bbb11",
"#a9d134",
"#c9e75d",
"#e4f88b",
"#f0fab5",
];
H.primary = H[5];
var L = [
"#162312",
"#1d3712",
"#274916",
"#306317",
"#3c8618",
"#49aa19",
"#6abe39",
"#8fd460",
"#b2e58b",
"#d5f2bb",
];
L.primary = L[5];
var R = [
"#112123",
"#113536",
"#144848",
"#146262",
"#138585",
"#13a8a8",
"#33bcb7",
"#58d1c9",
"#84e2d8",
"#b2f1e8",
];
R.primary = R[5];
var I = [
"#111a2c",
"#112545",
"#15325b",
"#15417e",
"#1554ad",
"#1668dc",
"#3c89e8",
"#65a9f3",
"#8dc5f8",
"#b7dcfa",
];
I.primary = I[5];
var B = [
"#131629",
"#161d40",
"#1c2755",
"#203175",
"#263ea0",
"#2b4acb",
"#5273e0",
"#7f9ef3",
"#a8c1f8",
"#d2e0fa",
];
B.primary = B[5];
var z = [
"#1a1325",
"#24163a",
"#301c4d",
"#3e2069",
"#51258f",
"#642ab5",
"#854eca",
"#ab7ae0",
"#cda8f0",
"#ebd7fa",
];
z.primary = z[5];
var F = [
"#291321",
"#40162f",
"#551c3b",
"#75204f",
"#a02669",
"#cb2b83",
"#e0529c",
"#f37fb7",
"#f8a8cc",
"#fad2e3",
];
F.primary = F[5];
var D = [
"#151515",
"#1f1f1f",
"#2d2d2d",
"#393939",
"#494949",
"#5a5a5a",
"#6a6a6a",
"#7b7b7b",
"#888888",
"#969696",
];
(D.primary = D[5]),
e.s(
[
"blue",
() => C,
"gold",
() => m,
"presetPalettes",
() => M,
"presetPrimaryColors",
() => h,
],
612308,
),
e.s([], 37374),
e.s(["generate", () => d], 665749);
let N = {
blue: "#1677FF",
purple: "#722ED1",
cyan: "#13C2C2",
green: "#52C41A",
magenta: "#EB2F96",
pink: "#EB2F96",
red: "#F5222D",
orange: "#FA8C16",
yellow: "#FADB14",
volcano: "#FA541C",
geekblue: "#2F54EB",
gold: "#FAAD14",
lime: "#A0D911",
},
X = Object.assign(Object.assign({}, N), {
colorPrimary: "#1677ff",
colorSuccess: "#52c41a",
colorWarning: "#faad14",
colorError: "#ff4d4f",
colorInfo: "#1677ff",
colorLink: "",
colorTextBase: "",
colorBgBase: "",
fontFamily: `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji'`,
fontFamilyCode:
"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",
fontSize: 14,
lineWidth: 1,
lineType: "solid",
motionUnit: 0.1,
motionBase: 0,
motionEaseOutCirc: "cubic-bezier(0.08, 0.82, 0.17, 1)",
motionEaseInOutCirc: "cubic-bezier(0.78, 0.14, 0.15, 0.86)",
motionEaseOut: "cubic-bezier(0.215, 0.61, 0.355, 1)",
motionEaseInOut: "cubic-bezier(0.645, 0.045, 0.355, 1)",
motionEaseOutBack: "cubic-bezier(0.12, 0.4, 0.29, 1.46)",
motionEaseInBack: "cubic-bezier(0.71, -0.46, 0.88, 0.6)",
motionEaseInQuint: "cubic-bezier(0.755, 0.05, 0.855, 0.06)",
motionEaseOutQuint: "cubic-bezier(0.23, 1, 0.32, 1)",
borderRadius: 6,
sizeUnit: 4,
sizeStep: 4,
sizePopupArrow: 16,
controlHeight: 32,
zIndexBase: 0,
zIndexPopupBase: 1e3,
opacityImage: 1,
wireframe: !1,
motion: !0,
});
function $(e) {
return (e + 8) / e;
}
function V(e) {
let t = Array.from({ length: 10 }).map((t, r) => {
let n = e * Math.pow(Math.E, (r - 1) / 5);
return 2 * Math.floor((r > 1 ? Math.floor(n) : Math.ceil(n)) / 2);
});
return (t[1] = e), t.map((e) => ({ size: e, lineHeight: $(e) }));
}
e.s(["default", 0, X, "defaultPresetColors", 0, N], 321616),
e.s(["default", () => V, "getLineHeight", () => $], 80620);
let W = (e, t) => new l(e).setA(t).toRgbString(),
G = (e, t) => new l(e).darken(t).toHexString(),
K = (e) => {
let t = d(e);
return {
1: t[0],
2: t[1],
3: t[2],
4: t[3],
5: t[4],
6: t[5],
7: t[6],
8: t[4],
9: t[5],
10: t[6],
};
},
U = (e, t) => {
let r = e || "#fff",
n = t || "#000";
return {
colorBgBase: r,
colorTextBase: n,
colorText: W(n, 0.88),
colorTextSecondary: W(n, 0.65),
colorTextTertiary: W(n, 0.45),
colorTextQuaternary: W(n, 0.25),
colorFill: W(n, 0.15),
colorFillSecondary: W(n, 0.06),
colorFillTertiary: W(n, 0.04),
colorFillQuaternary: W(n, 0.02),
colorBgSolid: W(n, 1),
colorBgSolidHover: W(n, 0.75),
colorBgSolidActive: W(n, 0.95),
colorBgLayout: G(r, 4),
colorBgContainer: G(r, 0),
colorBgElevated: G(r, 0),
colorBgSpotlight: W(n, 0.85),
colorBgBlur: "transparent",
colorBorder: G(r, 15),
colorBorderSecondary: G(r, 6),
};
},
q = (0, t.createTheme)(function (e) {
let t, r, n, i, o, a, u, c, s;
(h.pink = h.magenta), (M.pink = M.magenta);
let f = Object.keys(N)
.map((t) => {
let r = e[t] === h[t] ? M[t] : d(e[t]);
return Array.from({ length: 10 }, () => 1).reduce(
(e, n, i) => (
(e[`${t}-${i + 1}`] = r[i]), (e[`${t}${i + 1}`] = r[i]), e
),
{},
);
})
.reduce((e, t) => (e = Object.assign(Object.assign({}, e), t)), {});
return Object.assign(
Object.assign(
Object.assign(
Object.assign(
Object.assign(
Object.assign(Object.assign({}, e), f),
(function (
e,
{
generateColorPalettes: t,
generateNeutralColorPalettes: r,
},
) {
let {
colorSuccess: n,
colorWarning: i,
colorError: o,
colorInfo: a,
colorPrimary: u,
colorBgBase: c,
colorTextBase: s,
} = e,
f = t(u),
d = t(n),
h = t(i),
v = t(o),
p = t(a),
g = r(c, s),
m = t(e.colorLink || e.colorInfo),
b = new l(v[1]).mix(new l(v[3]), 50).toHexString();
return Object.assign(Object.assign({}, g), {
colorPrimaryBg: f[1],
colorPrimaryBgHover: f[2],
colorPrimaryBorder: f[3],
colorPrimaryBorderHover: f[4],
colorPrimaryHover: f[5],
colorPrimary: f[6],
colorPrimaryActive: f[7],
colorPrimaryTextHover: f[8],
colorPrimaryText: f[9],
colorPrimaryTextActive: f[10],
colorSuccessBg: d[1],
colorSuccessBgHover: d[2],
colorSuccessBorder: d[3],
colorSuccessBorderHover: d[4],
colorSuccessHover: d[4],
colorSuccess: d[6],
colorSuccessActive: d[7],
colorSuccessTextHover: d[8],
colorSuccessText: d[9],
colorSuccessTextActive: d[10],
colorErrorBg: v[1],
colorErrorBgHover: v[2],
colorErrorBgFilledHover: b,
colorErrorBgActive: v[3],
colorErrorBorder: v[3],
colorErrorBorderHover: v[4],
colorErrorHover: v[5],
colorError: v[6],
colorErrorActive: v[7],
colorErrorTextHover: v[8],
colorErrorText: v[9],
colorErrorTextActive: v[10],
colorWarningBg: h[1],
colorWarningBgHover: h[2],
colorWarningBorder: h[3],
colorWarningBorderHover: h[4],
colorWarningHover: h[4],
colorWarning: h[6],
colorWarningActive: h[7],
colorWarningTextHover: h[8],
colorWarningText: h[9],
colorWarningTextActive: h[10],
colorInfoBg: p[1],
colorInfoBgHover: p[2],
colorInfoBorder: p[3],
colorInfoBorderHover: p[4],
colorInfoHover: p[4],
colorInfo: p[6],
colorInfoActive: p[7],
colorInfoTextHover: p[8],
colorInfoText: p[9],
colorInfoTextActive: p[10],
colorLinkHover: m[4],
colorLink: m[6],
colorLinkActive: m[7],
colorBgMask: new l("#000").setA(0.45).toRgbString(),
colorWhite: "#fff",
});
})(e, {
generateColorPalettes: K,
generateNeutralColorPalettes: U,
}),
),
((r = (t = V(e.fontSize)).map((e) => e.size)),
(n = t.map((e) => e.lineHeight)),
(i = r[1]),
(o = r[0]),
(a = r[2]),
(u = n[1]),
(c = n[0]),
(s = n[2]),
{
fontSizeSM: o,
fontSize: i,
fontSizeLG: a,
fontSizeXL: r[3],
fontSizeHeading1: r[6],
fontSizeHeading2: r[5],
fontSizeHeading3: r[4],
fontSizeHeading4: r[3],
fontSizeHeading5: r[2],
lineHeight: u,
lineHeightLG: s,
lineHeightSM: c,
fontHeight: Math.round(u * i),
fontHeightLG: Math.round(s * a),
fontHeightSM: Math.round(c * o),
lineHeightHeading1: n[6],
lineHeightHeading2: n[5],
lineHeightHeading3: n[4],
lineHeightHeading4: n[3],
lineHeightHeading5: n[2],
}),
),
(function (e) {
let { sizeUnit: t, sizeStep: r } = e;
return {
sizeXXL: t * (r + 8),
sizeXL: t * (r + 4),
sizeLG: t * (r + 2),
sizeMD: t * (r + 1),
sizeMS: t * r,
size: t * r,
sizeSM: t * (r - 1),
sizeXS: t * (r - 2),
sizeXXS: t * (r - 3),
};
})(e),
),
((e) => {
let { controlHeight: t } = e;
return {
controlHeightSM: 0.75 * t,
controlHeightXS: 0.5 * t,
controlHeightLG: 1.25 * t,
};
})(e),
),
(function (e) {
let t,
r,
n,
i,
{
motionUnit: o,
motionBase: a,
borderRadius: l,
lineWidth: u,
} = e;
return Object.assign(
{
motionDurationFast: `${(a + o).toFixed(1)}s`,
motionDurationMid: `${(a + 2 * o).toFixed(1)}s`,
motionDurationSlow: `${(a + 3 * o).toFixed(1)}s`,
lineWidthBold: u + 1,
},
((t = l),
(r = l),
(n = l),
(i = l),
l < 6 && l >= 5
? (t = l + 1)
: l < 16 && l >= 6
? (t = l + 2)
: l >= 16 && (t = 16),
l < 7 && l >= 5
? (r = 4)
: l < 8 && l >= 7
? (r = 5)
: l < 14 && l >= 8
? (r = 6)
: l < 16 && l >= 14
? (r = 7)
: l >= 16 && (r = 8),
l < 6 && l >= 2 ? (n = 1) : l >= 6 && (n = 2),
l > 4 && l < 8 ? (i = 4) : l >= 8 && (i = 6),
{
borderRadius: l,
borderRadiusXS: n,
borderRadiusSM: r,
borderRadiusLG: t,
borderRadiusOuter: i,
}),
);
})(e),
);
});
e.s(["defaultTheme", 0, q], 800307);
var Q = e.i(358379);
let J = { token: X, override: { override: X }, hashed: !0 },
Z = Q.default.createContext(J);
e.s(["DesignTokenContext", 0, Z, "defaultConfig", 0, J], 403989);
};
export default moduleFactory;