ant-design-x-vue 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/LICENSE +21 -0
- package/README.md +64 -0
- package/dist/index.mjs +3477 -0
- package/dist/index.umd.js +57 -0
- package/dist/typings/_util/cssinjs/Cache.d.ts +11 -0
- package/dist/typings/_util/cssinjs/Keyframes.d.ts +9 -0
- package/dist/typings/_util/cssinjs/StyleContext.d.ts +508 -0
- package/dist/typings/_util/cssinjs/hooks/useCSSVarRegister.d.ts +20 -0
- package/dist/typings/_util/cssinjs/hooks/useCacheToken.d.ts +40 -0
- package/dist/typings/_util/cssinjs/hooks/useGlobalCache.d.ts +6 -0
- package/dist/typings/_util/cssinjs/hooks/useHMR.d.ts +3 -0
- package/dist/typings/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.d.ts +14 -0
- package/dist/typings/_util/cssinjs/hooks/useStyleRegister/index.d.ts +69 -0
- package/dist/typings/_util/cssinjs/index.d.ts +197 -0
- package/dist/typings/_util/cssinjs/linters/contentQuotesLinter.d.ts +3 -0
- package/dist/typings/_util/cssinjs/linters/hashedAnimationLinter.d.ts +3 -0
- package/dist/typings/_util/cssinjs/linters/index.d.ts +6 -0
- package/dist/typings/_util/cssinjs/linters/interface.d.ts +8 -0
- package/dist/typings/_util/cssinjs/linters/legacyNotSelectorLinter.d.ts +3 -0
- package/dist/typings/_util/cssinjs/linters/logicalPropertiesLinter.d.ts +3 -0
- package/dist/typings/_util/cssinjs/linters/parentSelectorLinter.d.ts +3 -0
- package/dist/typings/_util/cssinjs/linters/utils.d.ts +2 -0
- package/dist/typings/_util/cssinjs/theme/Theme.d.ts +11 -0
- package/dist/typings/_util/cssinjs/theme/ThemeCache.d.ts +20 -0
- package/dist/typings/_util/cssinjs/theme/createTheme.d.ts +6 -0
- package/dist/typings/_util/cssinjs/theme/index.d.ts +4 -0
- package/dist/typings/_util/cssinjs/theme/interface.d.ts +2 -0
- package/dist/typings/_util/cssinjs/transformers/interface.d.ts +4 -0
- package/dist/typings/_util/cssinjs/transformers/legacyLogicalProperties.d.ts +12 -0
- package/dist/typings/_util/cssinjs/transformers/px2rem.d.ts +20 -0
- package/dist/typings/_util/cssinjs/util.d.ts +28 -0
- package/dist/typings/_util/cssinjs-utils/_util/hooks/useUniqueMemo.d.ts +5 -0
- package/dist/typings/_util/cssinjs-utils/hooks/useCSP.d.ts +8 -0
- package/dist/typings/_util/cssinjs-utils/hooks/usePrefix.d.ts +11 -0
- package/dist/typings/_util/cssinjs-utils/hooks/useToken.d.ts +20 -0
- package/dist/typings/_util/cssinjs-utils/index.d.ts +6 -0
- package/dist/typings/_util/cssinjs-utils/interface/components.d.ts +10 -0
- package/dist/typings/_util/cssinjs-utils/interface/index.d.ts +3 -0
- package/dist/typings/_util/cssinjs-utils/util/calc/CSSCalculator.d.ts +15 -0
- package/dist/typings/_util/cssinjs-utils/util/calc/NumCalculator.d.ts +11 -0
- package/dist/typings/_util/cssinjs-utils/util/calc/calculator.d.ts +30 -0
- package/dist/typings/_util/cssinjs-utils/util/calc/index.d.ts +5 -0
- package/dist/typings/_util/cssinjs-utils/util/genStyleUtils.d.ts +116 -0
- package/dist/typings/_util/cssinjs-utils/util/getCompVarPrefix.d.ts +2 -0
- package/dist/typings/_util/cssinjs-utils/util/getComponentToken.d.ts +9 -0
- package/dist/typings/_util/cssinjs-utils/util/getDefaultComponentToken.d.ts +5 -0
- package/dist/typings/_util/cssinjs-utils/util/maxmin.d.ts +8 -0
- package/dist/typings/_util/cssinjs-utils/util/statistic.d.ts +20 -0
- package/dist/typings/_util/hooks/use-event-callback.d.ts +1 -0
- package/dist/typings/_util/hooks/use-state.d.ts +2 -0
- package/dist/typings/_util/hooks/use-x-component-config.d.ts +4 -0
- package/dist/typings/_util/pick-attrs.d.ts +11 -0
- package/dist/typings/_util/type.d.ts +62 -0
- package/dist/typings/_util/warning.d.ts +47 -0
- package/dist/typings/bubble/Bubble.vue.d.ts +5 -0
- package/dist/typings/bubble/BubbleList.vue.d.ts +11 -0
- package/dist/typings/bubble/context.d.ts +21 -0
- package/dist/typings/bubble/hooks/useDisplayData.d.ts +5 -0
- package/dist/typings/bubble/hooks/useListData.d.ts +5 -0
- package/dist/typings/bubble/hooks/useTypedEffect.d.ts +7 -0
- package/dist/typings/bubble/hooks/useTypingConfig.d.ts +5 -0
- package/dist/typings/bubble/index.d.ts +5 -0
- package/dist/typings/bubble/interface.d.ts +67 -0
- package/dist/typings/bubble/loading.vue.d.ts +5 -0
- package/dist/typings/bubble/style/content.d.ts +4 -0
- package/dist/typings/bubble/style/index.d.ts +8 -0
- package/dist/typings/bubble/style/list.d.ts +4 -0
- package/dist/typings/index.d.ts +2 -0
- package/dist/typings/theme/components.d.ts +4 -0
- package/dist/typings/theme/cssinjs-utils.d.ts +14 -0
- package/dist/typings/theme/genStyleUtils.d.ts +27 -0
- package/dist/typings/theme/patch-antd.d.ts +28 -0
- package/dist/typings/theme/useToken.d.ts +18 -0
- package/dist/typings/vc-util/Dom/canUseDom.d.ts +1 -0
- package/dist/typings/vc-util/Dom/contains.d.ts +1 -0
- package/dist/typings/vc-util/Dom/dynamicCSS.d.ts +20 -0
- package/dist/typings/vc-util/warning.d.ts +7 -0
- package/dist/typings/version/index.d.ts +2 -0
- package/dist/typings/version/version.d.ts +2 -0
- package/dist/typings/x-provider/context.d.ts +36 -0
- package/dist/typings/x-provider/hooks/use-x-provider-context.d.ts +9 -0
- package/dist/typings/x-provider/index.d.ts +5 -0
- package/dist/typings/x-provider/index.vue.d.ts +20 -0
- package/package.json +125 -0
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,3477 @@
|
|
|
1
|
+
var ur = Object.defineProperty;
|
|
2
|
+
var fr = (e, t, n) => t in e ? ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var se = (e, t, n) => fr(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { computed as M, inject as pe, shallowRef as Q, defineComponent as U, provide as Ee, watch as B, unref as S, triggerRef as Ge, useSlots as dr, createVNode as P, mergeProps as Xe, ref as D, onWatcherCleanup as pn, getCurrentInstance as hr, watchEffect as Et, onBeforeUnmount as gr, toValue as _, Fragment as mn, mergeDefaults as bn, toRef as Fe, isVNode as pr } from "vue";
|
|
5
|
+
import { ConfigProvider as mr, theme as yn, Avatar as br } from "ant-design-vue";
|
|
6
|
+
function yr(e) {
|
|
7
|
+
return {
|
|
8
|
+
type: Object,
|
|
9
|
+
default: e
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const vr = "anticon", Sr = Symbol("configProvider"), xr = {
|
|
13
|
+
getPrefixCls: (e, t) => t || (e ? `ant-${e}` : "ant"),
|
|
14
|
+
iconPrefixCls: M(() => vr),
|
|
15
|
+
getPopupContainer: M(() => () => document.body),
|
|
16
|
+
direction: M(() => "ltr")
|
|
17
|
+
}, Cr = () => pe(Sr, xr), va = "ant";
|
|
18
|
+
function Te() {
|
|
19
|
+
const { getPrefixCls: e, direction: t, csp: n, iconPrefixCls: r, theme: o } = Cr();
|
|
20
|
+
return {
|
|
21
|
+
theme: o,
|
|
22
|
+
getPrefixCls: e,
|
|
23
|
+
direction: t,
|
|
24
|
+
csp: n,
|
|
25
|
+
iconPrefixCls: r
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function kt(e, t) {
|
|
29
|
+
const n = /* @__PURE__ */ Object.create(null);
|
|
30
|
+
for (const r in e)
|
|
31
|
+
t.includes(r) || Object.defineProperty(n, r, { enumerable: !0, get: () => e[r] });
|
|
32
|
+
return n;
|
|
33
|
+
}
|
|
34
|
+
const Tr = (e) => {
|
|
35
|
+
const t = e;
|
|
36
|
+
return t.install = function(n) {
|
|
37
|
+
n.component(t.displayName || t.name, e);
|
|
38
|
+
}, e;
|
|
39
|
+
};
|
|
40
|
+
function Ue(e) {
|
|
41
|
+
return { type: Object, default: e };
|
|
42
|
+
}
|
|
43
|
+
function Je(e) {
|
|
44
|
+
return { type: Boolean, default: e };
|
|
45
|
+
}
|
|
46
|
+
function wr(e, t) {
|
|
47
|
+
const n = { validator: () => !0, default: e };
|
|
48
|
+
return n;
|
|
49
|
+
}
|
|
50
|
+
function jt(e) {
|
|
51
|
+
return { type: Array, default: e };
|
|
52
|
+
}
|
|
53
|
+
function Xt(e) {
|
|
54
|
+
return { type: String, default: e };
|
|
55
|
+
}
|
|
56
|
+
function Mr(e, t) {
|
|
57
|
+
return e ? { type: e, default: t } : wr(t);
|
|
58
|
+
}
|
|
59
|
+
const vn = Symbol("XProviderContext"), ft = Q(), Ar = (e) => {
|
|
60
|
+
Ee(vn, e), B(
|
|
61
|
+
e,
|
|
62
|
+
() => {
|
|
63
|
+
ft.value = S(e), Ge(ft);
|
|
64
|
+
},
|
|
65
|
+
{ immediate: !0, deep: !0 }
|
|
66
|
+
);
|
|
67
|
+
}, $r = () => pe(
|
|
68
|
+
vn,
|
|
69
|
+
M(() => ft.value || {})
|
|
70
|
+
), Er = U({
|
|
71
|
+
props: {
|
|
72
|
+
value: Ue()
|
|
73
|
+
},
|
|
74
|
+
setup(e, { slots: t }) {
|
|
75
|
+
return Ar(M(() => e.value)), () => {
|
|
76
|
+
var n;
|
|
77
|
+
return (n = t.default) == null ? void 0 : n.call(t);
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
}), Sa = /* @__PURE__ */ U({
|
|
81
|
+
name: "AXConfigProvider",
|
|
82
|
+
inheritAttrs: !1,
|
|
83
|
+
__name: "index",
|
|
84
|
+
props: {
|
|
85
|
+
bubble: {},
|
|
86
|
+
antd: {}
|
|
87
|
+
},
|
|
88
|
+
setup(e) {
|
|
89
|
+
const t = kt(e, ["bubble", "antd"]), n = dr(), r = M(() => ({
|
|
90
|
+
// attachments,
|
|
91
|
+
bubble: e.bubble
|
|
92
|
+
// conversations,
|
|
93
|
+
// prompts,
|
|
94
|
+
// sender,
|
|
95
|
+
// suggestion,
|
|
96
|
+
// thoughtChain,
|
|
97
|
+
// welcome,
|
|
98
|
+
})), {
|
|
99
|
+
theme: o
|
|
100
|
+
} = Te(), i = M(() => ({
|
|
101
|
+
...(o == null ? void 0 : o.value) || {},
|
|
102
|
+
...e.antd.theme
|
|
103
|
+
})), a = M(() => {
|
|
104
|
+
var s;
|
|
105
|
+
return (s = n.default) == null ? void 0 : s.call(n);
|
|
106
|
+
});
|
|
107
|
+
return () => P(Er, {
|
|
108
|
+
value: r.value
|
|
109
|
+
}, {
|
|
110
|
+
default: () => [P(mr, Xe(t, {
|
|
111
|
+
theme: i.value
|
|
112
|
+
}), {
|
|
113
|
+
default: () => [a.value]
|
|
114
|
+
})]
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}), kr = {
|
|
118
|
+
classNames: {},
|
|
119
|
+
styles: {},
|
|
120
|
+
className: "",
|
|
121
|
+
style: {}
|
|
122
|
+
}, Hr = (e) => {
|
|
123
|
+
const t = $r();
|
|
124
|
+
return M(() => ({
|
|
125
|
+
...kr,
|
|
126
|
+
...S(t)[e]
|
|
127
|
+
}));
|
|
128
|
+
};
|
|
129
|
+
function fe(e) {
|
|
130
|
+
const t = typeof e == "function" ? e() : e, n = D(t);
|
|
131
|
+
function r(o) {
|
|
132
|
+
n.value = o;
|
|
133
|
+
}
|
|
134
|
+
return [n, r];
|
|
135
|
+
}
|
|
136
|
+
function J(e) {
|
|
137
|
+
return typeof e == "string";
|
|
138
|
+
}
|
|
139
|
+
const Pr = (e, t, n, r) => {
|
|
140
|
+
const [o, i] = fe(""), [a, s] = fe(1), c = M(() => t.value && J(e.value));
|
|
141
|
+
return B(e, () => {
|
|
142
|
+
const h = S(o);
|
|
143
|
+
i(e.value), !c.value && J(e.value) ? s(e.value.length) : J(e.value) && J(h) && e.value.indexOf(h) !== 0 && s(1);
|
|
144
|
+
}), B([a, t, e], () => {
|
|
145
|
+
if (c.value && J(e.value) && S(a) < e.value.length) {
|
|
146
|
+
const h = setTimeout(() => {
|
|
147
|
+
s(S(a) + n.value);
|
|
148
|
+
}, r.value);
|
|
149
|
+
pn(() => {
|
|
150
|
+
clearTimeout(h);
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
}, { immediate: !0 }), [M(() => c.value && J(e.value) ? e.value.slice(0, S(a)) : e.value), M(() => c.value && J(e.value) && S(a) < e.value.length)];
|
|
154
|
+
};
|
|
155
|
+
function Ir(e) {
|
|
156
|
+
const t = D(!0), n = {
|
|
157
|
+
step: 1,
|
|
158
|
+
interval: 50,
|
|
159
|
+
// set default suffix is empty
|
|
160
|
+
suffix: null
|
|
161
|
+
}, r = M(() => ({
|
|
162
|
+
...n,
|
|
163
|
+
...typeof e == "object" ? e : {}
|
|
164
|
+
}));
|
|
165
|
+
return [
|
|
166
|
+
t,
|
|
167
|
+
M(() => r.value.step),
|
|
168
|
+
M(() => r.value.interval),
|
|
169
|
+
M(() => r.value.suffix)
|
|
170
|
+
];
|
|
171
|
+
}
|
|
172
|
+
const Rr = /* @__PURE__ */ U({
|
|
173
|
+
name: "AXBubbleLoading",
|
|
174
|
+
__name: "loading",
|
|
175
|
+
props: {
|
|
176
|
+
prefixCls: null
|
|
177
|
+
},
|
|
178
|
+
setup(e) {
|
|
179
|
+
return () => P("span", {
|
|
180
|
+
class: `${e.prefixCls}-dot`
|
|
181
|
+
}, [P("i", {
|
|
182
|
+
class: `${e.prefixCls}-dot-item`,
|
|
183
|
+
key: "item-1"
|
|
184
|
+
}, null), P("i", {
|
|
185
|
+
class: `${e.prefixCls}-dot-item`,
|
|
186
|
+
key: "item-2"
|
|
187
|
+
}, null), P("i", {
|
|
188
|
+
class: `${e.prefixCls}-dot-item`,
|
|
189
|
+
key: "item-3"
|
|
190
|
+
}, null)]);
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
function Ht(e) {
|
|
194
|
+
for (var t = 0, n, r = 0, o = e.length; o >= 4; ++r, o -= 4)
|
|
195
|
+
n = e.charCodeAt(r) & 255 | (e.charCodeAt(++r) & 255) << 8 | (e.charCodeAt(++r) & 255) << 16 | (e.charCodeAt(++r) & 255) << 24, n = /* Math.imul(k, m): */
|
|
196
|
+
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
|
|
197
|
+
n >>> 24, t = /* Math.imul(k, m): */
|
|
198
|
+
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
199
|
+
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
200
|
+
switch (o) {
|
|
201
|
+
case 3:
|
|
202
|
+
t ^= (e.charCodeAt(r + 2) & 255) << 16;
|
|
203
|
+
case 2:
|
|
204
|
+
t ^= (e.charCodeAt(r + 1) & 255) << 8;
|
|
205
|
+
case 1:
|
|
206
|
+
t ^= e.charCodeAt(r) & 255, t = /* Math.imul(h, m): */
|
|
207
|
+
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
208
|
+
}
|
|
209
|
+
return t ^= t >>> 13, t = /* Math.imul(h, m): */
|
|
210
|
+
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
211
|
+
}
|
|
212
|
+
const Ft = "%";
|
|
213
|
+
class Br {
|
|
214
|
+
constructor(t) {
|
|
215
|
+
this.cache = /* @__PURE__ */ new Map(), this.instanceId = t;
|
|
216
|
+
}
|
|
217
|
+
get(t) {
|
|
218
|
+
return this.cache.get(Array.isArray(t) ? t.join(Ft) : t) || null;
|
|
219
|
+
}
|
|
220
|
+
update(t, n) {
|
|
221
|
+
const r = Array.isArray(t) ? t.join(Ft) : t, o = this.cache.get(r), i = n(o);
|
|
222
|
+
i === null ? this.cache.delete(r) : this.cache.set(r, i);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
const Sn = "data-token-hash", Z = "data-css-hash", Dr = "data-cache-path", ue = "__cssinjs_instance__";
|
|
226
|
+
function we() {
|
|
227
|
+
const e = Math.random().toString(12).slice(2);
|
|
228
|
+
if (typeof document < "u" && document.head && document.body) {
|
|
229
|
+
const t = document.body.querySelectorAll(`style[${Z}]`) || [], {
|
|
230
|
+
firstChild: n
|
|
231
|
+
} = document.head;
|
|
232
|
+
Array.from(t).forEach((o) => {
|
|
233
|
+
o[ue] = o[ue] || e, o[ue] === e && document.head.insertBefore(o, n);
|
|
234
|
+
});
|
|
235
|
+
const r = {};
|
|
236
|
+
Array.from(document.querySelectorAll(`style[${Z}]`)).forEach((o) => {
|
|
237
|
+
var a;
|
|
238
|
+
const i = o.getAttribute(Z);
|
|
239
|
+
r[i] ? o[ue] === e && ((a = o.parentNode) == null || a.removeChild(o)) : r[i] = !0;
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
return new Br(e);
|
|
243
|
+
}
|
|
244
|
+
const xn = Symbol("StyleContextKey"), Nr = () => {
|
|
245
|
+
var n, r, o;
|
|
246
|
+
const e = hr();
|
|
247
|
+
let t;
|
|
248
|
+
if (e && e.appContext) {
|
|
249
|
+
const i = (o = (r = (n = e.appContext) == null ? void 0 : n.config) == null ? void 0 : r.globalProperties) == null ? void 0 : o.__ANTDV_CSSINJS_CACHE__;
|
|
250
|
+
i ? t = i : (t = we(), e.appContext.config.globalProperties && (e.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__ = t));
|
|
251
|
+
} else
|
|
252
|
+
t = we();
|
|
253
|
+
return t;
|
|
254
|
+
}, Cn = {
|
|
255
|
+
cache: we(),
|
|
256
|
+
defaultCache: !0,
|
|
257
|
+
hashPriority: "low"
|
|
258
|
+
}, ke = () => {
|
|
259
|
+
const e = Nr();
|
|
260
|
+
return pe(xn, Q({
|
|
261
|
+
...Cn,
|
|
262
|
+
cache: e
|
|
263
|
+
}));
|
|
264
|
+
}, Tn = (e) => {
|
|
265
|
+
const t = ke(), n = Q({
|
|
266
|
+
...Cn,
|
|
267
|
+
cache: we()
|
|
268
|
+
});
|
|
269
|
+
return B([() => S(e), t], () => {
|
|
270
|
+
const r = {
|
|
271
|
+
...t.value
|
|
272
|
+
}, o = S(e);
|
|
273
|
+
Object.keys(o).forEach((a) => {
|
|
274
|
+
const s = o[a];
|
|
275
|
+
o[a] !== void 0 && (r[a] = s);
|
|
276
|
+
});
|
|
277
|
+
const {
|
|
278
|
+
cache: i
|
|
279
|
+
} = o;
|
|
280
|
+
r.cache = r.cache || we(), r.defaultCache = !i && t.value.defaultCache, n.value = r;
|
|
281
|
+
}, {
|
|
282
|
+
immediate: !0
|
|
283
|
+
}), Ee(xn, n), n;
|
|
284
|
+
}, Lr = () => ({
|
|
285
|
+
autoClear: Je(),
|
|
286
|
+
/** @private Test only. Not work in production. */
|
|
287
|
+
mock: Xt(),
|
|
288
|
+
/**
|
|
289
|
+
* Only set when you need ssr to extract style on you own.
|
|
290
|
+
* If not provided, it will auto create <style /> on the end of Provider in server side.
|
|
291
|
+
*/
|
|
292
|
+
cache: Ue(),
|
|
293
|
+
/** Tell children that this context is default generated context */
|
|
294
|
+
defaultCache: Je(),
|
|
295
|
+
/** Use `:where` selector to reduce hashId css selector priority */
|
|
296
|
+
hashPriority: Xt(),
|
|
297
|
+
/** Tell cssinjs where to inject style in */
|
|
298
|
+
container: Mr(),
|
|
299
|
+
/** Component wil render inline `<style />` for fallback in SSR. Not recommend. */
|
|
300
|
+
ssrInline: Je(),
|
|
301
|
+
/** Transform css before inject in document. Please note that `transformers` do not support dynamic update */
|
|
302
|
+
transformers: jt(),
|
|
303
|
+
/**
|
|
304
|
+
* Linters to lint css before inject in document.
|
|
305
|
+
* Styles will be linted after transforming.
|
|
306
|
+
* Please note that `linters` do not support dynamic update.
|
|
307
|
+
*/
|
|
308
|
+
linters: jt()
|
|
309
|
+
}), zr = Tr(/* @__PURE__ */ U({
|
|
310
|
+
name: "AStyleProvider",
|
|
311
|
+
inheritAttrs: !1,
|
|
312
|
+
props: Lr(),
|
|
313
|
+
setup(e, {
|
|
314
|
+
slots: t
|
|
315
|
+
}) {
|
|
316
|
+
return Tn(e), () => {
|
|
317
|
+
var n;
|
|
318
|
+
return (n = t.default) == null ? void 0 : n.call(t);
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
})), Or = {
|
|
322
|
+
useStyleInject: ke,
|
|
323
|
+
useStyleProvider: Tn,
|
|
324
|
+
StyleProvider: zr
|
|
325
|
+
};
|
|
326
|
+
function jr() {
|
|
327
|
+
return !1;
|
|
328
|
+
}
|
|
329
|
+
let dt = !1;
|
|
330
|
+
function Xr() {
|
|
331
|
+
return dt;
|
|
332
|
+
}
|
|
333
|
+
const Fr = process.env.NODE_ENV === "production" ? jr : Xr;
|
|
334
|
+
if (process.env.NODE_ENV !== "production" && typeof module < "u" && module && module.hot && typeof window < "u") {
|
|
335
|
+
const e = window;
|
|
336
|
+
if (typeof e.webpackHotUpdate == "function") {
|
|
337
|
+
const t = e.webpackHotUpdate;
|
|
338
|
+
e.webpackHotUpdate = (...n) => (dt = !0, setTimeout(() => {
|
|
339
|
+
dt = !1;
|
|
340
|
+
}, 0), t(...n));
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
function Pt(e, t, n, r) {
|
|
344
|
+
const o = ke(), i = Q(""), a = Q();
|
|
345
|
+
Et(() => {
|
|
346
|
+
i.value = [e, ...t.value].join("%");
|
|
347
|
+
});
|
|
348
|
+
const s = Fr(), c = (u) => {
|
|
349
|
+
o.value.cache.update(u, (h) => {
|
|
350
|
+
const [l = 0, g] = h || [];
|
|
351
|
+
return l - 1 === 0 ? (r == null || r(g, !1), null) : [l - 1, g];
|
|
352
|
+
});
|
|
353
|
+
};
|
|
354
|
+
return B(i, (u, h) => {
|
|
355
|
+
h && c(h), o.value.cache.update(u, (l) => {
|
|
356
|
+
const [g = 0, p] = l || [];
|
|
357
|
+
let d = p;
|
|
358
|
+
process.env.NODE_ENV !== "production" && p && s && (r == null || r(d, s), d = null);
|
|
359
|
+
const y = d || n();
|
|
360
|
+
return [g + 1, y];
|
|
361
|
+
}), a.value = o.value.cache.get(i.value)[1];
|
|
362
|
+
}, {
|
|
363
|
+
immediate: !0
|
|
364
|
+
}), gr(() => {
|
|
365
|
+
c(i.value);
|
|
366
|
+
}), a;
|
|
367
|
+
}
|
|
368
|
+
function me() {
|
|
369
|
+
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
370
|
+
}
|
|
371
|
+
function Wr(e, t) {
|
|
372
|
+
return e && e.contains ? e.contains(t) : !1;
|
|
373
|
+
}
|
|
374
|
+
const Wt = "data-vc-order", Vr = "vc-util-key", ht = /* @__PURE__ */ new Map();
|
|
375
|
+
function wn({ mark: e } = {}) {
|
|
376
|
+
return e ? e.startsWith("data-") ? e : `data-${e}` : Vr;
|
|
377
|
+
}
|
|
378
|
+
function qe(e) {
|
|
379
|
+
return e.attachTo ? e.attachTo : document.querySelector("head") || document.body;
|
|
380
|
+
}
|
|
381
|
+
function Gr(e) {
|
|
382
|
+
return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
|
|
383
|
+
}
|
|
384
|
+
function Mn(e) {
|
|
385
|
+
return Array.from((ht.get(e) || e).children).filter(
|
|
386
|
+
(t) => t.tagName === "STYLE"
|
|
387
|
+
);
|
|
388
|
+
}
|
|
389
|
+
function An(e, t = {}) {
|
|
390
|
+
if (!me())
|
|
391
|
+
return null;
|
|
392
|
+
const { csp: n, prepend: r } = t, o = document.createElement("style");
|
|
393
|
+
o.setAttribute(Wt, Gr(r)), n != null && n.nonce && (o.nonce = n == null ? void 0 : n.nonce), o.innerHTML = e;
|
|
394
|
+
const i = qe(t), { firstChild: a } = i;
|
|
395
|
+
if (r) {
|
|
396
|
+
if (r === "queue") {
|
|
397
|
+
const s = Mn(i).filter(
|
|
398
|
+
(c) => ["prepend", "prependQueue"].includes(c.getAttribute(Wt))
|
|
399
|
+
);
|
|
400
|
+
if (s.length)
|
|
401
|
+
return i.insertBefore(o, s[s.length - 1].nextSibling), o;
|
|
402
|
+
}
|
|
403
|
+
i.insertBefore(o, a);
|
|
404
|
+
} else
|
|
405
|
+
i.appendChild(o);
|
|
406
|
+
return o;
|
|
407
|
+
}
|
|
408
|
+
function $n(e, t = {}) {
|
|
409
|
+
const n = qe(t);
|
|
410
|
+
return Mn(n).find((r) => r.getAttribute(wn(t)) === e);
|
|
411
|
+
}
|
|
412
|
+
function It(e, t = {}) {
|
|
413
|
+
const n = $n(e, t);
|
|
414
|
+
n && qe(t).removeChild(n);
|
|
415
|
+
}
|
|
416
|
+
function Ur(e, t) {
|
|
417
|
+
const n = ht.get(e);
|
|
418
|
+
if (!n || !Wr(document, n)) {
|
|
419
|
+
const r = An("", t), { parentNode: o } = r;
|
|
420
|
+
ht.set(e, o), e.removeChild(r);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
function gt(e, t, n = {}) {
|
|
424
|
+
var a, s, c;
|
|
425
|
+
const r = qe(n);
|
|
426
|
+
Ur(r, n);
|
|
427
|
+
const o = $n(t, n);
|
|
428
|
+
if (o)
|
|
429
|
+
return (a = n.csp) != null && a.nonce && o.nonce !== ((s = n.csp) == null ? void 0 : s.nonce) && (o.nonce = (c = n.csp) == null ? void 0 : c.nonce), o.innerHTML !== e && (o.innerHTML = e), o;
|
|
430
|
+
const i = An(e, n);
|
|
431
|
+
return i.setAttribute(wn(n), t), i;
|
|
432
|
+
}
|
|
433
|
+
function qr(e, t) {
|
|
434
|
+
if (e.length !== t.length)
|
|
435
|
+
return !1;
|
|
436
|
+
for (let n = 0; n < e.length; n++)
|
|
437
|
+
if (e[n] !== t[n])
|
|
438
|
+
return !1;
|
|
439
|
+
return !0;
|
|
440
|
+
}
|
|
441
|
+
var G;
|
|
442
|
+
let Kr = (G = class {
|
|
443
|
+
constructor() {
|
|
444
|
+
this.cache = /* @__PURE__ */ new Map(), this.keys = [], this.cacheCallTimes = 0;
|
|
445
|
+
}
|
|
446
|
+
size() {
|
|
447
|
+
return this.keys.length;
|
|
448
|
+
}
|
|
449
|
+
internalGet(t, n = !1) {
|
|
450
|
+
let r = { map: this.cache };
|
|
451
|
+
return t.forEach((o) => {
|
|
452
|
+
var i;
|
|
453
|
+
r ? r = (i = r == null ? void 0 : r.map) == null ? void 0 : i.get(o) : r = void 0;
|
|
454
|
+
}), r != null && r.value && n && (r.value[1] = this.cacheCallTimes++), r == null ? void 0 : r.value;
|
|
455
|
+
}
|
|
456
|
+
get(t) {
|
|
457
|
+
var n;
|
|
458
|
+
return (n = this.internalGet(t, !0)) == null ? void 0 : n[0];
|
|
459
|
+
}
|
|
460
|
+
has(t) {
|
|
461
|
+
return !!this.internalGet(t);
|
|
462
|
+
}
|
|
463
|
+
set(t, n) {
|
|
464
|
+
if (!this.has(t)) {
|
|
465
|
+
if (this.size() + 1 > G.MAX_CACHE_SIZE + G.MAX_CACHE_OFFSET) {
|
|
466
|
+
const [o] = this.keys.reduce(
|
|
467
|
+
(i, a) => {
|
|
468
|
+
const [, s] = i;
|
|
469
|
+
return this.internalGet(a)[1] < s ? [a, this.internalGet(a)[1]] : i;
|
|
470
|
+
},
|
|
471
|
+
[this.keys[0], this.cacheCallTimes]
|
|
472
|
+
);
|
|
473
|
+
this.delete(o);
|
|
474
|
+
}
|
|
475
|
+
this.keys.push(t);
|
|
476
|
+
}
|
|
477
|
+
let r = this.cache;
|
|
478
|
+
t.forEach((o, i) => {
|
|
479
|
+
if (i === t.length - 1)
|
|
480
|
+
r.set(o, { value: [n, this.cacheCallTimes++] });
|
|
481
|
+
else {
|
|
482
|
+
const a = r.get(o);
|
|
483
|
+
a ? a.map || (a.map = /* @__PURE__ */ new Map()) : r.set(o, { map: /* @__PURE__ */ new Map() }), r = r.get(o).map;
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
deleteByPath(t, n) {
|
|
488
|
+
var i;
|
|
489
|
+
const r = t.get(n[0]);
|
|
490
|
+
if (n.length === 1)
|
|
491
|
+
return r.map ? t.set(n[0], { map: r.map }) : t.delete(n[0]), (i = r.value) == null ? void 0 : i[0];
|
|
492
|
+
const o = this.deleteByPath(r.map, n.slice(1));
|
|
493
|
+
return (!r.map || r.map.size === 0) && !r.value && t.delete(n[0]), o;
|
|
494
|
+
}
|
|
495
|
+
delete(t) {
|
|
496
|
+
if (this.has(t))
|
|
497
|
+
return this.keys = this.keys.filter((n) => !qr(n, t)), this.deleteByPath(this.cache, t);
|
|
498
|
+
}
|
|
499
|
+
}, G.MAX_CACHE_SIZE = 20, G.MAX_CACHE_OFFSET = 5, G), pt = {};
|
|
500
|
+
function En(e, t) {
|
|
501
|
+
process.env.NODE_ENV !== "production" && !e && console !== void 0 && console.error(`Warning: ${t}`);
|
|
502
|
+
}
|
|
503
|
+
function Yr() {
|
|
504
|
+
pt = {};
|
|
505
|
+
}
|
|
506
|
+
function Zr(e, t, n) {
|
|
507
|
+
!t && !pt[n] && (e(!1, n), pt[n] = !0);
|
|
508
|
+
}
|
|
509
|
+
function kn(e, t) {
|
|
510
|
+
Zr(En, e, t);
|
|
511
|
+
}
|
|
512
|
+
function Hn() {
|
|
513
|
+
}
|
|
514
|
+
let V = null;
|
|
515
|
+
function Qr() {
|
|
516
|
+
V = null, Yr();
|
|
517
|
+
}
|
|
518
|
+
let Rt = Hn;
|
|
519
|
+
process.env.NODE_ENV !== "production" && (Rt = (e, t, n) => {
|
|
520
|
+
kn(e, `[antd: ${t}] ${n}`), process.env.NODE_ENV === "test" && Qr();
|
|
521
|
+
});
|
|
522
|
+
const Pn = Symbol("WarningContext"), mt = Q(), Jr = (e) => {
|
|
523
|
+
Ee(Pn, e), B(
|
|
524
|
+
e,
|
|
525
|
+
() => {
|
|
526
|
+
mt.value = S(e), Ge(mt);
|
|
527
|
+
},
|
|
528
|
+
{ immediate: !0, deep: !0 }
|
|
529
|
+
);
|
|
530
|
+
}, _r = () => pe(
|
|
531
|
+
Pn,
|
|
532
|
+
M(() => mt.value || {})
|
|
533
|
+
);
|
|
534
|
+
U({
|
|
535
|
+
props: {
|
|
536
|
+
value: Ue()
|
|
537
|
+
},
|
|
538
|
+
setup(e, { slots: t }) {
|
|
539
|
+
return Jr(M(() => e.value)), () => {
|
|
540
|
+
var n;
|
|
541
|
+
return (n = t.default) == null ? void 0 : n.call(t);
|
|
542
|
+
};
|
|
543
|
+
}
|
|
544
|
+
});
|
|
545
|
+
process.env.NODE_ENV;
|
|
546
|
+
const eo = Rt;
|
|
547
|
+
let Vt = 0, In = class {
|
|
548
|
+
constructor(t) {
|
|
549
|
+
this.derivatives = Array.isArray(t) ? t : [t], this.id = Vt, t.length === 0 && eo(
|
|
550
|
+
t.length > 0,
|
|
551
|
+
"[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."
|
|
552
|
+
), Vt += 1;
|
|
553
|
+
}
|
|
554
|
+
getDerivativeToken(t) {
|
|
555
|
+
return this.derivatives.reduce(
|
|
556
|
+
(n, r) => r(t, n),
|
|
557
|
+
void 0
|
|
558
|
+
);
|
|
559
|
+
}
|
|
560
|
+
};
|
|
561
|
+
const _e = new Kr();
|
|
562
|
+
function to(e) {
|
|
563
|
+
const t = Array.isArray(e) ? e : [e];
|
|
564
|
+
return _e.has(t) || _e.set(t, new In(t)), _e.get(t);
|
|
565
|
+
}
|
|
566
|
+
const Gt = /* @__PURE__ */ new WeakMap();
|
|
567
|
+
function We(e) {
|
|
568
|
+
let t = Gt.get(e) || "";
|
|
569
|
+
return t || (Object.keys(e).forEach((n) => {
|
|
570
|
+
const r = e[n];
|
|
571
|
+
t += n, r instanceof In ? t += r.id : r && typeof r == "object" ? t += We(r) : t += r;
|
|
572
|
+
}), Gt.set(e, t)), t;
|
|
573
|
+
}
|
|
574
|
+
function no(e, t) {
|
|
575
|
+
return Ht(`${t}_${We(e)}`);
|
|
576
|
+
}
|
|
577
|
+
const Ce = `random-${Date.now()}-${Math.random()}`.replace(/\./g, ""), Rn = "_bAmBoO_";
|
|
578
|
+
function ro(e, t, n) {
|
|
579
|
+
var r, o;
|
|
580
|
+
if (me()) {
|
|
581
|
+
gt(e, Ce);
|
|
582
|
+
const i = document.createElement("div");
|
|
583
|
+
i.style.position = "fixed", i.style.left = "0", i.style.top = "0", t == null || t(i), document.body.appendChild(i), process.env.NODE_ENV !== "production" && (i.innerHTML = "Test", i.style.zIndex = "9999999");
|
|
584
|
+
const a = n ? n(i) : (r = getComputedStyle(i).content) == null ? void 0 : r.includes(Rn);
|
|
585
|
+
return (o = i.parentNode) == null || o.removeChild(i), It(Ce), a;
|
|
586
|
+
}
|
|
587
|
+
return !1;
|
|
588
|
+
}
|
|
589
|
+
let et;
|
|
590
|
+
function oo() {
|
|
591
|
+
return et === void 0 && (et = ro(
|
|
592
|
+
`@layer ${Ce} { .${Ce} { content: "${Rn}"!important; } }`,
|
|
593
|
+
(e) => {
|
|
594
|
+
e.className = Ce;
|
|
595
|
+
}
|
|
596
|
+
)), et;
|
|
597
|
+
}
|
|
598
|
+
const io = me();
|
|
599
|
+
function Me(e) {
|
|
600
|
+
return typeof e == "number" ? `${e}px` : e;
|
|
601
|
+
}
|
|
602
|
+
const Le = (e, t = "") => `--${t ? `${t}-` : ""}${e}`.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g, "$1-$2").replace(/([a-z])([A-Z0-9])/g, "$1-$2").toLowerCase(), ao = (e, t, n) => Object.keys(e).length ? `.${t}${n != null && n.scope ? `.${n.scope}` : ""}{${Object.entries(e).map(([r, o]) => `${r}:${o};`).join("")}}` : "", so = (e, t, n) => {
|
|
603
|
+
const r = {}, o = {};
|
|
604
|
+
return Object.entries(e).forEach(([i, a]) => {
|
|
605
|
+
var s, c, u;
|
|
606
|
+
if ((s = n == null ? void 0 : n.preserve) != null && s[i])
|
|
607
|
+
o[i] = a;
|
|
608
|
+
else if ((typeof a == "string" || typeof a == "number") && !((c = n == null ? void 0 : n.ignore) != null && c[i])) {
|
|
609
|
+
const h = Le(i, n == null ? void 0 : n.prefix);
|
|
610
|
+
r[h] = typeof a == "number" && !((u = n == null ? void 0 : n.unitless) != null && u[i]) ? `${a}px` : String(a), o[i] = `var(${h})`;
|
|
611
|
+
}
|
|
612
|
+
}), [o, ao(r, t, { scope: n == null ? void 0 : n.scope })];
|
|
613
|
+
}, Ut = {}, co = process.env.NODE_ENV === "production", lo = process.env.NODE_ENV === "prerender", uo = !co && !lo ? "css-dev-only-do-not-override" : "css", ee = /* @__PURE__ */ new Map();
|
|
614
|
+
function fo(e) {
|
|
615
|
+
ee.set(e, (ee.get(e) || 0) + 1);
|
|
616
|
+
}
|
|
617
|
+
function ho(e, t) {
|
|
618
|
+
typeof document < "u" && document.querySelectorAll(`style[${Sn}="${e}"]`).forEach((r) => {
|
|
619
|
+
var o;
|
|
620
|
+
r[ue] === t && ((o = r.parentNode) == null || o.removeChild(r));
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
const go = 0;
|
|
624
|
+
function po(e, t) {
|
|
625
|
+
ee.set(e, (ee.get(e) || 0) - 1);
|
|
626
|
+
const n = Array.from(ee.keys()), r = n.filter((o) => (ee.get(o) || 0) <= 0);
|
|
627
|
+
n.length - r.length > go && r.forEach((o) => {
|
|
628
|
+
ho(o, t), ee.delete(o);
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
const mo = (e, t, n, r) => {
|
|
632
|
+
let i = {
|
|
633
|
+
...n == null ? void 0 : n.getDerivativeToken(e),
|
|
634
|
+
...t
|
|
635
|
+
};
|
|
636
|
+
return r && (i = r(i)), i;
|
|
637
|
+
};
|
|
638
|
+
function bo(e, t, n = D({})) {
|
|
639
|
+
const r = ke(), o = M(() => Object.assign({}, ...t.value || [])), i = M(() => We(o.value)), a = M(() => {
|
|
640
|
+
var c;
|
|
641
|
+
return We(((c = n.value) == null ? void 0 : c.override) || Ut);
|
|
642
|
+
});
|
|
643
|
+
return Pt("token", M(() => {
|
|
644
|
+
var c, u;
|
|
645
|
+
return [((c = n.value) == null ? void 0 : c.salt) || "", (u = e.value) == null ? void 0 : u.id, i.value, a.value];
|
|
646
|
+
}), () => {
|
|
647
|
+
const {
|
|
648
|
+
salt: c = "",
|
|
649
|
+
override: u = Ut,
|
|
650
|
+
formatToken: h,
|
|
651
|
+
getComputedToken: l
|
|
652
|
+
} = n.value || {}, g = l ? l(o.value, u, e.value) : mo(o.value, u, e.value, h), p = no(g, c);
|
|
653
|
+
g._tokenKey = p, fo(p);
|
|
654
|
+
const d = `${uo}-${Ht(p)}`;
|
|
655
|
+
return g._hashId = d, [g, d];
|
|
656
|
+
}, (c) => {
|
|
657
|
+
var u;
|
|
658
|
+
po(c[0]._tokenKey, (u = r.value) == null ? void 0 : u.cache.instanceId);
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
var yo = {
|
|
662
|
+
animationIterationCount: 1,
|
|
663
|
+
aspectRatio: 1,
|
|
664
|
+
borderImageOutset: 1,
|
|
665
|
+
borderImageSlice: 1,
|
|
666
|
+
borderImageWidth: 1,
|
|
667
|
+
boxFlex: 1,
|
|
668
|
+
boxFlexGroup: 1,
|
|
669
|
+
boxOrdinalGroup: 1,
|
|
670
|
+
columnCount: 1,
|
|
671
|
+
columns: 1,
|
|
672
|
+
flex: 1,
|
|
673
|
+
flexGrow: 1,
|
|
674
|
+
flexPositive: 1,
|
|
675
|
+
flexShrink: 1,
|
|
676
|
+
flexNegative: 1,
|
|
677
|
+
flexOrder: 1,
|
|
678
|
+
gridRow: 1,
|
|
679
|
+
gridRowEnd: 1,
|
|
680
|
+
gridRowSpan: 1,
|
|
681
|
+
gridRowStart: 1,
|
|
682
|
+
gridColumn: 1,
|
|
683
|
+
gridColumnEnd: 1,
|
|
684
|
+
gridColumnSpan: 1,
|
|
685
|
+
gridColumnStart: 1,
|
|
686
|
+
msGridRow: 1,
|
|
687
|
+
msGridRowSpan: 1,
|
|
688
|
+
msGridColumn: 1,
|
|
689
|
+
msGridColumnSpan: 1,
|
|
690
|
+
fontWeight: 1,
|
|
691
|
+
lineHeight: 1,
|
|
692
|
+
opacity: 1,
|
|
693
|
+
order: 1,
|
|
694
|
+
orphans: 1,
|
|
695
|
+
scale: 1,
|
|
696
|
+
tabSize: 1,
|
|
697
|
+
widows: 1,
|
|
698
|
+
zIndex: 1,
|
|
699
|
+
zoom: 1,
|
|
700
|
+
WebkitLineClamp: 1,
|
|
701
|
+
// SVG-related properties
|
|
702
|
+
fillOpacity: 1,
|
|
703
|
+
floodOpacity: 1,
|
|
704
|
+
stopOpacity: 1,
|
|
705
|
+
strokeDasharray: 1,
|
|
706
|
+
strokeDashoffset: 1,
|
|
707
|
+
strokeMiterlimit: 1,
|
|
708
|
+
strokeOpacity: 1,
|
|
709
|
+
strokeWidth: 1
|
|
710
|
+
}, Bn = "comm", Dn = "rule", Nn = "decl", vo = "@import", So = "@keyframes", xo = "@layer", Ln = Math.abs, Bt = String.fromCharCode;
|
|
711
|
+
function zn(e) {
|
|
712
|
+
return e.trim();
|
|
713
|
+
}
|
|
714
|
+
function ze(e, t, n) {
|
|
715
|
+
return e.replace(t, n);
|
|
716
|
+
}
|
|
717
|
+
function Co(e, t, n) {
|
|
718
|
+
return e.indexOf(t, n);
|
|
719
|
+
}
|
|
720
|
+
function Ae(e, t) {
|
|
721
|
+
return e.charCodeAt(t) | 0;
|
|
722
|
+
}
|
|
723
|
+
function de(e, t, n) {
|
|
724
|
+
return e.slice(t, n);
|
|
725
|
+
}
|
|
726
|
+
function j(e) {
|
|
727
|
+
return e.length;
|
|
728
|
+
}
|
|
729
|
+
function To(e) {
|
|
730
|
+
return e.length;
|
|
731
|
+
}
|
|
732
|
+
function Pe(e, t) {
|
|
733
|
+
return t.push(e), e;
|
|
734
|
+
}
|
|
735
|
+
var Ke = 1, he = 1, On = 0, L = 0, I = 0, be = "";
|
|
736
|
+
function Dt(e, t, n, r, o, i, a, s) {
|
|
737
|
+
return { value: e, root: t, parent: n, type: r, props: o, children: i, line: Ke, column: he, length: a, return: "", siblings: s };
|
|
738
|
+
}
|
|
739
|
+
function wo() {
|
|
740
|
+
return I;
|
|
741
|
+
}
|
|
742
|
+
function Mo() {
|
|
743
|
+
return I = L > 0 ? Ae(be, --L) : 0, he--, I === 10 && (he = 1, Ke--), I;
|
|
744
|
+
}
|
|
745
|
+
function O() {
|
|
746
|
+
return I = L < On ? Ae(be, L++) : 0, he++, I === 10 && (he = 1, Ke++), I;
|
|
747
|
+
}
|
|
748
|
+
function K() {
|
|
749
|
+
return Ae(be, L);
|
|
750
|
+
}
|
|
751
|
+
function Oe() {
|
|
752
|
+
return L;
|
|
753
|
+
}
|
|
754
|
+
function Ye(e, t) {
|
|
755
|
+
return de(be, e, t);
|
|
756
|
+
}
|
|
757
|
+
function $e(e) {
|
|
758
|
+
switch (e) {
|
|
759
|
+
case 0:
|
|
760
|
+
case 9:
|
|
761
|
+
case 10:
|
|
762
|
+
case 13:
|
|
763
|
+
case 32:
|
|
764
|
+
return 5;
|
|
765
|
+
case 33:
|
|
766
|
+
case 43:
|
|
767
|
+
case 44:
|
|
768
|
+
case 47:
|
|
769
|
+
case 62:
|
|
770
|
+
case 64:
|
|
771
|
+
case 126:
|
|
772
|
+
case 59:
|
|
773
|
+
case 123:
|
|
774
|
+
case 125:
|
|
775
|
+
return 4;
|
|
776
|
+
case 58:
|
|
777
|
+
return 3;
|
|
778
|
+
case 34:
|
|
779
|
+
case 39:
|
|
780
|
+
case 40:
|
|
781
|
+
case 91:
|
|
782
|
+
return 2;
|
|
783
|
+
case 41:
|
|
784
|
+
case 93:
|
|
785
|
+
return 1;
|
|
786
|
+
}
|
|
787
|
+
return 0;
|
|
788
|
+
}
|
|
789
|
+
function Ao(e) {
|
|
790
|
+
return Ke = he = 1, On = j(be = e), L = 0, [];
|
|
791
|
+
}
|
|
792
|
+
function $o(e) {
|
|
793
|
+
return be = "", e;
|
|
794
|
+
}
|
|
795
|
+
function tt(e) {
|
|
796
|
+
return zn(Ye(L - 1, bt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
797
|
+
}
|
|
798
|
+
function Eo(e) {
|
|
799
|
+
for (; (I = K()) && I < 33; )
|
|
800
|
+
O();
|
|
801
|
+
return $e(e) > 2 || $e(I) > 3 ? "" : " ";
|
|
802
|
+
}
|
|
803
|
+
function ko(e, t) {
|
|
804
|
+
for (; --t && O() && !(I < 48 || I > 102 || I > 57 && I < 65 || I > 70 && I < 97); )
|
|
805
|
+
;
|
|
806
|
+
return Ye(e, Oe() + (t < 6 && K() == 32 && O() == 32));
|
|
807
|
+
}
|
|
808
|
+
function bt(e) {
|
|
809
|
+
for (; O(); )
|
|
810
|
+
switch (I) {
|
|
811
|
+
case e:
|
|
812
|
+
return L;
|
|
813
|
+
case 34:
|
|
814
|
+
case 39:
|
|
815
|
+
e !== 34 && e !== 39 && bt(I);
|
|
816
|
+
break;
|
|
817
|
+
case 40:
|
|
818
|
+
e === 41 && bt(e);
|
|
819
|
+
break;
|
|
820
|
+
case 92:
|
|
821
|
+
O();
|
|
822
|
+
break;
|
|
823
|
+
}
|
|
824
|
+
return L;
|
|
825
|
+
}
|
|
826
|
+
function Ho(e, t) {
|
|
827
|
+
for (; O() && e + I !== 57; )
|
|
828
|
+
if (e + I === 84 && K() === 47)
|
|
829
|
+
break;
|
|
830
|
+
return "/*" + Ye(t, L - 1) + "*" + Bt(e === 47 ? e : O());
|
|
831
|
+
}
|
|
832
|
+
function Po(e) {
|
|
833
|
+
for (; !$e(K()); )
|
|
834
|
+
O();
|
|
835
|
+
return Ye(e, L);
|
|
836
|
+
}
|
|
837
|
+
function Io(e) {
|
|
838
|
+
return $o(je("", null, null, null, [""], e = Ao(e), 0, [0], e));
|
|
839
|
+
}
|
|
840
|
+
function je(e, t, n, r, o, i, a, s, c) {
|
|
841
|
+
for (var u = 0, h = 0, l = a, g = 0, p = 0, d = 0, y = 1, b = 1, T = 1, C = 0, A = "", m = o, w = i, x = r, f = A; b; )
|
|
842
|
+
switch (d = C, C = O()) {
|
|
843
|
+
case 40:
|
|
844
|
+
if (d != 108 && Ae(f, l - 1) == 58) {
|
|
845
|
+
Co(f += ze(tt(C), "&", "&\f"), "&\f", Ln(u ? s[u - 1] : 0)) != -1 && (T = -1);
|
|
846
|
+
break;
|
|
847
|
+
}
|
|
848
|
+
case 34:
|
|
849
|
+
case 39:
|
|
850
|
+
case 91:
|
|
851
|
+
f += tt(C);
|
|
852
|
+
break;
|
|
853
|
+
case 9:
|
|
854
|
+
case 10:
|
|
855
|
+
case 13:
|
|
856
|
+
case 32:
|
|
857
|
+
f += Eo(d);
|
|
858
|
+
break;
|
|
859
|
+
case 92:
|
|
860
|
+
f += ko(Oe() - 1, 7);
|
|
861
|
+
continue;
|
|
862
|
+
case 47:
|
|
863
|
+
switch (K()) {
|
|
864
|
+
case 42:
|
|
865
|
+
case 47:
|
|
866
|
+
Pe(Ro(Ho(O(), Oe()), t, n, c), c), ($e(d || 1) == 5 || $e(K() || 1) == 5) && j(f) && de(f, -1, void 0) !== " " && (f += " ");
|
|
867
|
+
break;
|
|
868
|
+
default:
|
|
869
|
+
f += "/";
|
|
870
|
+
}
|
|
871
|
+
break;
|
|
872
|
+
case 123 * y:
|
|
873
|
+
s[u++] = j(f) * T;
|
|
874
|
+
case 125 * y:
|
|
875
|
+
case 59:
|
|
876
|
+
case 0:
|
|
877
|
+
switch (C) {
|
|
878
|
+
case 0:
|
|
879
|
+
case 125:
|
|
880
|
+
b = 0;
|
|
881
|
+
case 59 + h:
|
|
882
|
+
T == -1 && (f = ze(f, /\f/g, "")), p > 0 && (j(f) - l || y === 0 && d === 47) && Pe(p > 32 ? Kt(f + ";", r, n, l - 1, c) : Kt(ze(f, " ", "") + ";", r, n, l - 2, c), c);
|
|
883
|
+
break;
|
|
884
|
+
case 59:
|
|
885
|
+
f += ";";
|
|
886
|
+
default:
|
|
887
|
+
if (Pe(x = qt(f, t, n, u, h, o, s, A, m = [], w = [], l, i), i), C === 123)
|
|
888
|
+
if (h === 0)
|
|
889
|
+
je(f, t, x, x, m, i, l, s, w);
|
|
890
|
+
else
|
|
891
|
+
switch (g === 99 && Ae(f, 3) === 110 ? 100 : g) {
|
|
892
|
+
case 100:
|
|
893
|
+
case 108:
|
|
894
|
+
case 109:
|
|
895
|
+
case 115:
|
|
896
|
+
je(e, x, x, r && Pe(qt(e, x, x, 0, 0, o, s, A, o, m = [], l, w), w), o, w, l, s, r ? m : w);
|
|
897
|
+
break;
|
|
898
|
+
default:
|
|
899
|
+
je(f, x, x, x, [""], w, 0, s, w);
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
u = h = p = 0, y = T = 1, A = f = "", l = a;
|
|
903
|
+
break;
|
|
904
|
+
case 58:
|
|
905
|
+
l = 1 + j(f), p = d;
|
|
906
|
+
default:
|
|
907
|
+
if (y < 1) {
|
|
908
|
+
if (C == 123)
|
|
909
|
+
--y;
|
|
910
|
+
else if (C == 125 && y++ == 0 && Mo() == 125)
|
|
911
|
+
continue;
|
|
912
|
+
}
|
|
913
|
+
switch (f += Bt(C), C * y) {
|
|
914
|
+
case 38:
|
|
915
|
+
T = h > 0 ? 1 : (f += "\f", -1);
|
|
916
|
+
break;
|
|
917
|
+
case 44:
|
|
918
|
+
s[u++] = (j(f) - 1) * T, T = 1;
|
|
919
|
+
break;
|
|
920
|
+
case 64:
|
|
921
|
+
K() === 45 && (f += tt(O())), g = K(), h = l = j(A = f += Po(Oe())), C++;
|
|
922
|
+
break;
|
|
923
|
+
case 45:
|
|
924
|
+
d === 45 && j(f) == 2 && (y = 0);
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
return i;
|
|
928
|
+
}
|
|
929
|
+
function qt(e, t, n, r, o, i, a, s, c, u, h, l) {
|
|
930
|
+
for (var g = o - 1, p = o === 0 ? i : [""], d = To(p), y = 0, b = 0, T = 0; y < r; ++y)
|
|
931
|
+
for (var C = 0, A = de(e, g + 1, g = Ln(b = a[y])), m = e; C < d; ++C)
|
|
932
|
+
(m = zn(b > 0 ? p[C] + " " + A : ze(A, /&\f/g, p[C]))) && (c[T++] = m);
|
|
933
|
+
return Dt(e, t, n, o === 0 ? Dn : s, c, u, h, l);
|
|
934
|
+
}
|
|
935
|
+
function Ro(e, t, n, r) {
|
|
936
|
+
return Dt(e, t, n, Bn, Bt(wo()), de(e, 2, -2), 0, r);
|
|
937
|
+
}
|
|
938
|
+
function Kt(e, t, n, r, o) {
|
|
939
|
+
return Dt(e, t, n, Nn, de(e, 0, r), de(e, r + 1, -1), r, o);
|
|
940
|
+
}
|
|
941
|
+
function yt(e, t) {
|
|
942
|
+
for (var n = "", r = 0; r < e.length; r++)
|
|
943
|
+
n += t(e[r], r, e, t) || "";
|
|
944
|
+
return n;
|
|
945
|
+
}
|
|
946
|
+
function Bo(e, t, n, r) {
|
|
947
|
+
switch (e.type) {
|
|
948
|
+
case xo:
|
|
949
|
+
if (e.children.length) break;
|
|
950
|
+
case vo:
|
|
951
|
+
case Nn:
|
|
952
|
+
return e.return = e.return || e.value;
|
|
953
|
+
case Bn:
|
|
954
|
+
return "";
|
|
955
|
+
case So:
|
|
956
|
+
return e.return = e.value + "{" + yt(e.children, r) + "}";
|
|
957
|
+
case Dn:
|
|
958
|
+
if (!j(e.value = e.props.join(","))) return "";
|
|
959
|
+
}
|
|
960
|
+
return j(n = yt(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
961
|
+
}
|
|
962
|
+
function jn(e, t) {
|
|
963
|
+
const { path: n, parentSelectors: r } = t;
|
|
964
|
+
kn(
|
|
965
|
+
!1,
|
|
966
|
+
`[Ant Design Vue CSS-in-JS] ${n ? `Error in '${n}': ` : ""}${e}${r.length ? ` Selector info: ${r.join(" -> ")}` : ""}`
|
|
967
|
+
);
|
|
968
|
+
}
|
|
969
|
+
const Do = (e, t, n) => {
|
|
970
|
+
if (e === "content") {
|
|
971
|
+
const r = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
|
|
972
|
+
(typeof t != "string" || ["normal", "none", "initial", "inherit", "unset"].indexOf(t) === -1 && !r.test(t) && (t.charAt(0) !== t.charAt(t.length - 1) || t.charAt(0) !== '"' && t.charAt(0) !== "'")) && jn(
|
|
973
|
+
`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${t}"'\`.`,
|
|
974
|
+
n
|
|
975
|
+
);
|
|
976
|
+
}
|
|
977
|
+
}, No = (e, t, n) => {
|
|
978
|
+
e === "animation" && n.hashId && t !== "none" && jn(
|
|
979
|
+
`You seem to be using hashed animation '${t}', in which case 'animationName' with Keyframe as value is recommended.`,
|
|
980
|
+
n
|
|
981
|
+
);
|
|
982
|
+
}, Yt = "data-ant-cssinjs-cache-path", Lo = "_FILE_STYLE__";
|
|
983
|
+
let oe, Xn = !0;
|
|
984
|
+
function zo() {
|
|
985
|
+
var e;
|
|
986
|
+
if (!oe && (oe = {}, me())) {
|
|
987
|
+
const t = document.createElement("div");
|
|
988
|
+
t.className = Yt, t.style.position = "fixed", t.style.visibility = "hidden", t.style.top = "-9999px", document.body.appendChild(t);
|
|
989
|
+
let n = getComputedStyle(t).content || "";
|
|
990
|
+
n = n.replace(/^"/, "").replace(/"$/, ""), n.split(";").forEach((o) => {
|
|
991
|
+
const [i, a] = o.split(":");
|
|
992
|
+
oe[i] = a;
|
|
993
|
+
});
|
|
994
|
+
const r = document.querySelector(`style[${Yt}]`);
|
|
995
|
+
r && (Xn = !1, (e = r.parentNode) == null || e.removeChild(r)), document.body.removeChild(t);
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
function Oo(e) {
|
|
999
|
+
return zo(), !!oe[e];
|
|
1000
|
+
}
|
|
1001
|
+
function jo(e) {
|
|
1002
|
+
const t = oe[e];
|
|
1003
|
+
let n = null;
|
|
1004
|
+
if (t && me())
|
|
1005
|
+
if (Xn)
|
|
1006
|
+
n = Lo;
|
|
1007
|
+
else {
|
|
1008
|
+
const r = document.querySelector(`style[${Z}="${oe[e]}"]`);
|
|
1009
|
+
r ? n = r.innerHTML : delete oe[e];
|
|
1010
|
+
}
|
|
1011
|
+
return [n, t];
|
|
1012
|
+
}
|
|
1013
|
+
const Zt = me(), Fn = "_skip_check_", Wn = "_multi_value_";
|
|
1014
|
+
function Qt(e) {
|
|
1015
|
+
return yt(Io(e), Bo).replace(/\{%%%\:[^;];}/g, ";");
|
|
1016
|
+
}
|
|
1017
|
+
function Xo(e) {
|
|
1018
|
+
return typeof e == "object" && e && (Fn in e || Wn in e);
|
|
1019
|
+
}
|
|
1020
|
+
function Fo(e, t, n) {
|
|
1021
|
+
if (!t)
|
|
1022
|
+
return e;
|
|
1023
|
+
const r = `.${t}`, o = n === "low" ? `:where(${r})` : r;
|
|
1024
|
+
return e.split(",").map((a) => {
|
|
1025
|
+
var h;
|
|
1026
|
+
const s = a.trim().split(/\s+/);
|
|
1027
|
+
let c = s[0] || "";
|
|
1028
|
+
const u = ((h = c.match(/^\w+/)) == null ? void 0 : h[0]) || "";
|
|
1029
|
+
return c = `${u}${o}${c.slice(u.length)}`, [c, ...s.slice(1)].join(" ");
|
|
1030
|
+
}).join(",");
|
|
1031
|
+
}
|
|
1032
|
+
const vt = /* @__PURE__ */ new Set();
|
|
1033
|
+
process.env.NODE_ENV;
|
|
1034
|
+
const St = (e, t = {}, {
|
|
1035
|
+
root: n,
|
|
1036
|
+
injectHash: r,
|
|
1037
|
+
parentSelectors: o
|
|
1038
|
+
} = {
|
|
1039
|
+
root: !0,
|
|
1040
|
+
parentSelectors: []
|
|
1041
|
+
}) => {
|
|
1042
|
+
const {
|
|
1043
|
+
hashId: i,
|
|
1044
|
+
layer: a,
|
|
1045
|
+
path: s,
|
|
1046
|
+
hashPriority: c,
|
|
1047
|
+
transformers: u = [],
|
|
1048
|
+
linters: h = []
|
|
1049
|
+
} = t;
|
|
1050
|
+
let l = "", g = {};
|
|
1051
|
+
function p(b) {
|
|
1052
|
+
const T = b.getName(i);
|
|
1053
|
+
if (!g[T]) {
|
|
1054
|
+
const [C] = St(b.style, t, {
|
|
1055
|
+
root: !1,
|
|
1056
|
+
parentSelectors: o
|
|
1057
|
+
});
|
|
1058
|
+
g[T] = `@keyframes ${b.getName(i)}${C}`;
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
function d(b, T = []) {
|
|
1062
|
+
return b.forEach((C) => {
|
|
1063
|
+
Array.isArray(C) ? d(C, T) : C && T.push(C);
|
|
1064
|
+
}), T;
|
|
1065
|
+
}
|
|
1066
|
+
if (d(Array.isArray(e) ? e : [e]).forEach((b) => {
|
|
1067
|
+
const T = typeof b == "string" && !n ? {} : b;
|
|
1068
|
+
if (typeof T == "string")
|
|
1069
|
+
l += `${T}
|
|
1070
|
+
`;
|
|
1071
|
+
else if (T._keyframe)
|
|
1072
|
+
p(T);
|
|
1073
|
+
else {
|
|
1074
|
+
const C = u.reduce((A, m) => {
|
|
1075
|
+
var w;
|
|
1076
|
+
return ((w = m == null ? void 0 : m.visit) == null ? void 0 : w.call(m, A)) || A;
|
|
1077
|
+
}, T);
|
|
1078
|
+
Object.keys(C).forEach((A) => {
|
|
1079
|
+
const m = C[A];
|
|
1080
|
+
if (typeof m == "object" && m && (A !== "animationName" || !m._keyframe) && !Xo(m)) {
|
|
1081
|
+
let w = !1, x = A.trim(), f = !1;
|
|
1082
|
+
(n || r) && i ? x.startsWith("@") ? w = !0 : x = Fo(A, i, c) : n && !i && (x === "&" || x === "") && (x = "", f = !0);
|
|
1083
|
+
const [E, v] = St(m, t, {
|
|
1084
|
+
root: f,
|
|
1085
|
+
injectHash: w,
|
|
1086
|
+
parentSelectors: [...o, x]
|
|
1087
|
+
});
|
|
1088
|
+
g = {
|
|
1089
|
+
...g,
|
|
1090
|
+
...v
|
|
1091
|
+
}, l += `${x}${E}`;
|
|
1092
|
+
} else {
|
|
1093
|
+
let w = function(f, E) {
|
|
1094
|
+
process.env.NODE_ENV !== "production" && (typeof m != "object" || !(m != null && m[Fn])) && [Do, No, ...h].forEach((k) => k(f, E, {
|
|
1095
|
+
path: s,
|
|
1096
|
+
hashId: i,
|
|
1097
|
+
parentSelectors: o
|
|
1098
|
+
}));
|
|
1099
|
+
const v = f.replace(/[A-Z]/g, (k) => `-${k.toLowerCase()}`);
|
|
1100
|
+
let $ = E;
|
|
1101
|
+
!yo[f] && typeof $ == "number" && $ !== 0 && ($ = `${$}px`), f === "animationName" && (E != null && E._keyframe) && (p(E), $ = E.getName(i)), l += `${v}:${$};`;
|
|
1102
|
+
};
|
|
1103
|
+
const x = (m == null ? void 0 : m.value) ?? m;
|
|
1104
|
+
typeof m == "object" && (m != null && m[Wn]) && Array.isArray(x) ? x.forEach((f) => {
|
|
1105
|
+
w(A, f);
|
|
1106
|
+
}) : w(A, x);
|
|
1107
|
+
}
|
|
1108
|
+
});
|
|
1109
|
+
}
|
|
1110
|
+
}), !n)
|
|
1111
|
+
l = `{${l}}`;
|
|
1112
|
+
else if (a && oo()) {
|
|
1113
|
+
const b = a.split(",");
|
|
1114
|
+
l = `@layer ${b[b.length - 1].trim()} {${l}}`, b.length > 1 && (l = `@layer ${a}{%%%:%}${l}`);
|
|
1115
|
+
}
|
|
1116
|
+
return [l, g];
|
|
1117
|
+
};
|
|
1118
|
+
function Vn(e, t) {
|
|
1119
|
+
return Ht(`${e.join("%")}${t}`);
|
|
1120
|
+
}
|
|
1121
|
+
function Jt(e, t) {
|
|
1122
|
+
const n = ke(), r = M(() => {
|
|
1123
|
+
var a;
|
|
1124
|
+
return (a = e.value) == null ? void 0 : a.token._tokenKey;
|
|
1125
|
+
}), o = M(() => {
|
|
1126
|
+
var a;
|
|
1127
|
+
return [r.value, ...((a = e.value) == null ? void 0 : a.path) || []];
|
|
1128
|
+
});
|
|
1129
|
+
let i = Zt;
|
|
1130
|
+
return process.env.NODE_ENV !== "production" && n.value.mock !== void 0 && (i = n.value.mock === "client"), Pt(
|
|
1131
|
+
"style",
|
|
1132
|
+
o,
|
|
1133
|
+
// Create cache if needed
|
|
1134
|
+
() => {
|
|
1135
|
+
const {
|
|
1136
|
+
path: a,
|
|
1137
|
+
hashId: s,
|
|
1138
|
+
layer: c,
|
|
1139
|
+
nonce: u,
|
|
1140
|
+
clientOnly: h,
|
|
1141
|
+
order: l = 0
|
|
1142
|
+
} = e.value || {}, g = o.value.join("|");
|
|
1143
|
+
if (Oo(g)) {
|
|
1144
|
+
const [f, E] = jo(g);
|
|
1145
|
+
if (f)
|
|
1146
|
+
return [f, r.value, E, {}, h, l];
|
|
1147
|
+
}
|
|
1148
|
+
const p = t(), {
|
|
1149
|
+
hashPriority: d,
|
|
1150
|
+
container: y,
|
|
1151
|
+
transformers: b,
|
|
1152
|
+
linters: T,
|
|
1153
|
+
cache: C
|
|
1154
|
+
} = n.value, [A, m] = St(p, {
|
|
1155
|
+
hashId: s,
|
|
1156
|
+
hashPriority: d,
|
|
1157
|
+
layer: c,
|
|
1158
|
+
path: a == null ? void 0 : a.join("-"),
|
|
1159
|
+
transformers: b,
|
|
1160
|
+
linters: T
|
|
1161
|
+
}), w = Qt(A), x = Vn(o.value, w);
|
|
1162
|
+
if (i) {
|
|
1163
|
+
const f = {
|
|
1164
|
+
mark: Z,
|
|
1165
|
+
prepend: "queue",
|
|
1166
|
+
attachTo: y,
|
|
1167
|
+
priority: l
|
|
1168
|
+
}, E = typeof u == "function" ? u() : u;
|
|
1169
|
+
E && (f.csp = {
|
|
1170
|
+
nonce: E
|
|
1171
|
+
});
|
|
1172
|
+
const v = gt(w, x, f);
|
|
1173
|
+
v[ue] = C.instanceId, v.setAttribute(Sn, r.value), process.env.NODE_ENV !== "production" && v.setAttribute(Dr, o.value.join("|")), Object.keys(m).forEach(($) => {
|
|
1174
|
+
vt.has($) || (vt.add($), gt(Qt(m[$]), `_effect-${$}`, {
|
|
1175
|
+
mark: Z,
|
|
1176
|
+
prepend: "queue",
|
|
1177
|
+
attachTo: y
|
|
1178
|
+
}));
|
|
1179
|
+
});
|
|
1180
|
+
}
|
|
1181
|
+
return [w, r.value, x, m, h, l];
|
|
1182
|
+
},
|
|
1183
|
+
// Remove cache if no need
|
|
1184
|
+
([, , a], s) => {
|
|
1185
|
+
(s || n.value.autoClear) && Zt && It(a, {
|
|
1186
|
+
mark: Z
|
|
1187
|
+
});
|
|
1188
|
+
}
|
|
1189
|
+
), (a) => a;
|
|
1190
|
+
}
|
|
1191
|
+
const Wo = "cssVar", Vo = (e, t) => {
|
|
1192
|
+
const { key: n, prefix: r, unitless: o, ignore: i, token: a, scope: s = "" } = e;
|
|
1193
|
+
useContext(Or);
|
|
1194
|
+
const { _tokenKey: c } = a, u = [...e.path, n, s, c];
|
|
1195
|
+
return Pt(
|
|
1196
|
+
Wo,
|
|
1197
|
+
u,
|
|
1198
|
+
() => {
|
|
1199
|
+
const l = t(), [g, p] = so(l, n, {
|
|
1200
|
+
prefix: r,
|
|
1201
|
+
unitless: o,
|
|
1202
|
+
ignore: i,
|
|
1203
|
+
scope: s
|
|
1204
|
+
}), d = Vn(u, p);
|
|
1205
|
+
return [g, p, d, n];
|
|
1206
|
+
},
|
|
1207
|
+
([, , l]) => {
|
|
1208
|
+
io && It(l, { mark: Z });
|
|
1209
|
+
}
|
|
1210
|
+
);
|
|
1211
|
+
};
|
|
1212
|
+
class Gn {
|
|
1213
|
+
constructor(t, n) {
|
|
1214
|
+
this._keyframe = !0, this.name = t, this.style = n;
|
|
1215
|
+
}
|
|
1216
|
+
getName(t = "") {
|
|
1217
|
+
return t ? `${t}-${this.name}` : this.name;
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
function ce(e) {
|
|
1221
|
+
return e.notSplit = !0, e;
|
|
1222
|
+
}
|
|
1223
|
+
ce(["borderTop", "borderBottom"]), ce(["borderTop"]), ce(["borderBottom"]), ce(["borderLeft", "borderRight"]), ce(["borderLeft"]), ce(["borderRight"]);
|
|
1224
|
+
class Un {
|
|
1225
|
+
}
|
|
1226
|
+
const qn = "CALC_UNIT", Go = new RegExp(qn, "g");
|
|
1227
|
+
function nt(e) {
|
|
1228
|
+
return typeof e == "number" ? `${e}${qn}` : e;
|
|
1229
|
+
}
|
|
1230
|
+
class te extends Un {
|
|
1231
|
+
constructor(t, n) {
|
|
1232
|
+
super(), this.result = "";
|
|
1233
|
+
const r = typeof t;
|
|
1234
|
+
this.unitlessCssVar = n, t instanceof te ? this.result = `(${t.result})` : r === "number" ? this.result = nt(t) : r === "string" && (this.result = t);
|
|
1235
|
+
}
|
|
1236
|
+
add(t) {
|
|
1237
|
+
return t instanceof te ? this.result = `${this.result} + ${t.getResult()}` : (typeof t == "number" || typeof t == "string") && (this.result = `${this.result} + ${nt(t)}`), this.lowPriority = !0, this;
|
|
1238
|
+
}
|
|
1239
|
+
sub(t) {
|
|
1240
|
+
return t instanceof te ? this.result = `${this.result} - ${t.getResult()}` : (typeof t == "number" || typeof t == "string") && (this.result = `${this.result} - ${nt(t)}`), this.lowPriority = !0, this;
|
|
1241
|
+
}
|
|
1242
|
+
mul(t) {
|
|
1243
|
+
return this.lowPriority && (this.result = `(${this.result})`), t instanceof te ? this.result = `${this.result} * ${t.getResult(!0)}` : (typeof t == "number" || typeof t == "string") && (this.result = `${this.result} * ${t}`), this.lowPriority = !1, this;
|
|
1244
|
+
}
|
|
1245
|
+
div(t) {
|
|
1246
|
+
return this.lowPriority && (this.result = `(${this.result})`), t instanceof te ? this.result = `${this.result} / ${t.getResult(!0)}` : (typeof t == "number" || typeof t == "string") && (this.result = `${this.result} / ${t}`), this.lowPriority = !1, this;
|
|
1247
|
+
}
|
|
1248
|
+
getResult(t) {
|
|
1249
|
+
return this.lowPriority || t ? `(${this.result})` : this.result;
|
|
1250
|
+
}
|
|
1251
|
+
equal(t) {
|
|
1252
|
+
const { unit: n } = t || {};
|
|
1253
|
+
let r = !0;
|
|
1254
|
+
return typeof n == "boolean" ? r = n : Array.from(this.unitlessCssVar).some((o) => this.result.includes(o)) && (r = !1), this.result = this.result.replace(Go, r ? "px" : ""), typeof this.lowPriority < "u" ? `calc(${this.result})` : this.result;
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
class ne extends Un {
|
|
1258
|
+
constructor(t) {
|
|
1259
|
+
super(), this.result = 0, t instanceof ne ? this.result = t.result : typeof t == "number" && (this.result = t);
|
|
1260
|
+
}
|
|
1261
|
+
add(t) {
|
|
1262
|
+
return t instanceof ne ? this.result += t.result : typeof t == "number" && (this.result += t), this;
|
|
1263
|
+
}
|
|
1264
|
+
sub(t) {
|
|
1265
|
+
return t instanceof ne ? this.result -= t.result : typeof t == "number" && (this.result -= t), this;
|
|
1266
|
+
}
|
|
1267
|
+
mul(t) {
|
|
1268
|
+
return t instanceof ne ? this.result *= t.result : typeof t == "number" && (this.result *= t), this;
|
|
1269
|
+
}
|
|
1270
|
+
div(t) {
|
|
1271
|
+
return t instanceof ne ? this.result /= t.result : typeof t == "number" && (this.result /= t), this;
|
|
1272
|
+
}
|
|
1273
|
+
equal() {
|
|
1274
|
+
return this.result;
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
const Uo = (e, t) => {
|
|
1278
|
+
const n = e === "css" ? te : ne;
|
|
1279
|
+
return (r) => new n(r, t);
|
|
1280
|
+
}, _t = (e, t) => `${[
|
|
1281
|
+
t,
|
|
1282
|
+
e.replace(/([A-Z]+)([A-Z][a-z]+)/g, "$1-$2").replace(/([a-z])([A-Z])/g, "$1-$2")
|
|
1283
|
+
].filter(Boolean).join("-")}`;
|
|
1284
|
+
function en(e, t = {}, n, r) {
|
|
1285
|
+
const o = {
|
|
1286
|
+
...t[e]
|
|
1287
|
+
};
|
|
1288
|
+
if (r != null && r.deprecatedTokens) {
|
|
1289
|
+
const { deprecatedTokens: a } = r;
|
|
1290
|
+
a.forEach(([s, c]) => {
|
|
1291
|
+
process.env.NODE_ENV !== "production" && En(
|
|
1292
|
+
!(o != null && o[s]),
|
|
1293
|
+
`Component Token \`${String(
|
|
1294
|
+
s
|
|
1295
|
+
)}\` of ${String(e)} is deprecated. Please use \`${String(c)}\` instead.`
|
|
1296
|
+
), (o != null && o[s] || o != null && o[c]) && (o[c] ?? (o[c] = o == null ? void 0 : o[s]));
|
|
1297
|
+
});
|
|
1298
|
+
}
|
|
1299
|
+
const i = { ...n, ...o };
|
|
1300
|
+
return Object.keys(i).forEach((a) => {
|
|
1301
|
+
i[a] === t[a] && delete i[a];
|
|
1302
|
+
}), i;
|
|
1303
|
+
}
|
|
1304
|
+
const Kn = process.env.NODE_ENV !== "production" || typeof CSSINJS_STATISTIC < "u";
|
|
1305
|
+
let xt = !0;
|
|
1306
|
+
function Nt(...e) {
|
|
1307
|
+
if (!Kn)
|
|
1308
|
+
return Object.assign({}, ...e);
|
|
1309
|
+
xt = !1;
|
|
1310
|
+
const t = {};
|
|
1311
|
+
return e.forEach((n) => {
|
|
1312
|
+
if (typeof n != "object")
|
|
1313
|
+
return;
|
|
1314
|
+
Object.keys(n).forEach((o) => {
|
|
1315
|
+
Object.defineProperty(t, o, {
|
|
1316
|
+
configurable: !0,
|
|
1317
|
+
enumerable: !0,
|
|
1318
|
+
get: () => n[o]
|
|
1319
|
+
});
|
|
1320
|
+
});
|
|
1321
|
+
}), xt = !0, t;
|
|
1322
|
+
}
|
|
1323
|
+
const tn = {};
|
|
1324
|
+
function qo() {
|
|
1325
|
+
}
|
|
1326
|
+
const Ko = (e) => {
|
|
1327
|
+
let t, n = e, r = qo;
|
|
1328
|
+
return Kn && typeof Proxy < "u" && (t = /* @__PURE__ */ new Set(), n = new Proxy(e, {
|
|
1329
|
+
get(o, i) {
|
|
1330
|
+
return xt && (t == null || t.add(i)), o[i];
|
|
1331
|
+
}
|
|
1332
|
+
}), r = (o, i) => {
|
|
1333
|
+
var a;
|
|
1334
|
+
tn[o] = {
|
|
1335
|
+
global: Array.from(t),
|
|
1336
|
+
component: {
|
|
1337
|
+
...(a = tn[o]) == null ? void 0 : a.component,
|
|
1338
|
+
...i
|
|
1339
|
+
}
|
|
1340
|
+
};
|
|
1341
|
+
}), { token: n, keys: t, flush: r };
|
|
1342
|
+
};
|
|
1343
|
+
function nn(e, t = {}, n) {
|
|
1344
|
+
return typeof n == "function" ? n(
|
|
1345
|
+
Nt(t, t[e] ?? {})
|
|
1346
|
+
) : n ?? {};
|
|
1347
|
+
}
|
|
1348
|
+
function Yo(e) {
|
|
1349
|
+
return e === "js" ? { max: Math.max, min: Math.min } : {
|
|
1350
|
+
max: (...t) => `max(${t.map((n) => Me(n)).join(",")})`,
|
|
1351
|
+
min: (...t) => `min(${t.map((n) => Me(n)).join(",")})`
|
|
1352
|
+
};
|
|
1353
|
+
}
|
|
1354
|
+
const Zo = 1e3 * 60 * 10;
|
|
1355
|
+
class Qo {
|
|
1356
|
+
constructor() {
|
|
1357
|
+
se(this, "map", /* @__PURE__ */ new Map());
|
|
1358
|
+
// Use WeakMap to avoid memory leak
|
|
1359
|
+
se(this, "objectIDMap", /* @__PURE__ */ new WeakMap());
|
|
1360
|
+
se(this, "nextID", 0);
|
|
1361
|
+
se(this, "lastAccessBeat", /* @__PURE__ */ new Map());
|
|
1362
|
+
// We will clean up the cache when reach the limit
|
|
1363
|
+
se(this, "accessBeat", 0);
|
|
1364
|
+
}
|
|
1365
|
+
set(t, n) {
|
|
1366
|
+
this.clear();
|
|
1367
|
+
const r = this.getCompositeKey(t);
|
|
1368
|
+
this.map.set(r, n), this.lastAccessBeat.set(r, Date.now());
|
|
1369
|
+
}
|
|
1370
|
+
get(t) {
|
|
1371
|
+
const n = this.getCompositeKey(t), r = this.map.get(n);
|
|
1372
|
+
return this.lastAccessBeat.set(n, Date.now()), this.accessBeat += 1, r;
|
|
1373
|
+
}
|
|
1374
|
+
getCompositeKey(t) {
|
|
1375
|
+
return t.map((r) => r && typeof r == "object" ? `obj_${this.getObjectID(r)}` : `${typeof r}_${r}`).join("|");
|
|
1376
|
+
}
|
|
1377
|
+
getObjectID(t) {
|
|
1378
|
+
if (this.objectIDMap.has(t))
|
|
1379
|
+
return this.objectIDMap.get(t);
|
|
1380
|
+
const n = this.nextID;
|
|
1381
|
+
return this.objectIDMap.set(t, n), this.nextID += 1, n;
|
|
1382
|
+
}
|
|
1383
|
+
clear() {
|
|
1384
|
+
if (this.accessBeat > 1e4) {
|
|
1385
|
+
const t = Date.now();
|
|
1386
|
+
this.lastAccessBeat.forEach((n, r) => {
|
|
1387
|
+
t - n > Zo && (this.map.delete(r), this.lastAccessBeat.delete(r));
|
|
1388
|
+
}), this.accessBeat = 0;
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
const rn = new Qo();
|
|
1393
|
+
function Jo(e, t) {
|
|
1394
|
+
return M(() => {
|
|
1395
|
+
const n = rn.get(t);
|
|
1396
|
+
if (n)
|
|
1397
|
+
return n;
|
|
1398
|
+
const r = e();
|
|
1399
|
+
return rn.set(t, r), r;
|
|
1400
|
+
});
|
|
1401
|
+
}
|
|
1402
|
+
const _o = () => ({});
|
|
1403
|
+
function ei(e) {
|
|
1404
|
+
const {
|
|
1405
|
+
useCSP: t = _o,
|
|
1406
|
+
useToken: n,
|
|
1407
|
+
usePrefix: r,
|
|
1408
|
+
getResetStyles: o,
|
|
1409
|
+
getCommonStyle: i,
|
|
1410
|
+
getCompUnitless: a
|
|
1411
|
+
} = e;
|
|
1412
|
+
function s(l, g, p, d) {
|
|
1413
|
+
const y = Array.isArray(l) ? l[0] : l;
|
|
1414
|
+
function b(f) {
|
|
1415
|
+
return `${String(y)}${f.slice(0, 1).toUpperCase()}${f.slice(1)}`;
|
|
1416
|
+
}
|
|
1417
|
+
const T = (d == null ? void 0 : d.unitless) || {}, A = {
|
|
1418
|
+
...typeof a == "function" ? a(l) : {},
|
|
1419
|
+
[b("zIndexPopup")]: !0
|
|
1420
|
+
};
|
|
1421
|
+
Object.keys(T).forEach((f) => {
|
|
1422
|
+
A[b(f)] = T[f];
|
|
1423
|
+
});
|
|
1424
|
+
const m = {
|
|
1425
|
+
...d,
|
|
1426
|
+
unitless: A,
|
|
1427
|
+
prefixToken: b
|
|
1428
|
+
}, w = u(l, g, p, m), x = c(y, p, m);
|
|
1429
|
+
return (f, E = _(f)) => {
|
|
1430
|
+
const [, v] = w(_(f), E), [$, k] = x(E);
|
|
1431
|
+
return [$, v, k];
|
|
1432
|
+
};
|
|
1433
|
+
}
|
|
1434
|
+
function c(l, g, p) {
|
|
1435
|
+
const {
|
|
1436
|
+
unitless: d,
|
|
1437
|
+
injectStyle: y = !0,
|
|
1438
|
+
prefixToken: b,
|
|
1439
|
+
ignore: T
|
|
1440
|
+
} = p, C = ({
|
|
1441
|
+
rootCls: m,
|
|
1442
|
+
cssVar: w = {}
|
|
1443
|
+
}) => {
|
|
1444
|
+
const {
|
|
1445
|
+
realToken: x
|
|
1446
|
+
} = n();
|
|
1447
|
+
return Vo({
|
|
1448
|
+
path: [l],
|
|
1449
|
+
prefix: w.prefix,
|
|
1450
|
+
key: w.key,
|
|
1451
|
+
unitless: d,
|
|
1452
|
+
ignore: T,
|
|
1453
|
+
token: x,
|
|
1454
|
+
scope: m
|
|
1455
|
+
}, () => {
|
|
1456
|
+
const f = nn(l, x, g), E = en(l, x, f, {
|
|
1457
|
+
deprecatedTokens: p == null ? void 0 : p.deprecatedTokens
|
|
1458
|
+
});
|
|
1459
|
+
return Object.keys(f).forEach((v) => {
|
|
1460
|
+
E[b(v)] = E[v], delete E[v];
|
|
1461
|
+
}), E;
|
|
1462
|
+
}), null;
|
|
1463
|
+
};
|
|
1464
|
+
return (m) => {
|
|
1465
|
+
const {
|
|
1466
|
+
cssVar: w
|
|
1467
|
+
} = n();
|
|
1468
|
+
return [(x) => y && w ? P(mn, null, [P(C, {
|
|
1469
|
+
rootCls: m,
|
|
1470
|
+
cssVar: w,
|
|
1471
|
+
component: l
|
|
1472
|
+
}, null), x]) : x, w == null ? void 0 : w.key];
|
|
1473
|
+
};
|
|
1474
|
+
}
|
|
1475
|
+
function u(l, g, p, d = {}) {
|
|
1476
|
+
const y = Array.isArray(l) ? l : [l, l], [b] = y, T = y.join("-"), C = e.layer || {
|
|
1477
|
+
name: "antd"
|
|
1478
|
+
};
|
|
1479
|
+
return (A, m = A) => {
|
|
1480
|
+
const {
|
|
1481
|
+
theme: w,
|
|
1482
|
+
realToken: x,
|
|
1483
|
+
hashId: f,
|
|
1484
|
+
token: E,
|
|
1485
|
+
cssVar: v
|
|
1486
|
+
} = n(), {
|
|
1487
|
+
rootPrefixCls: $,
|
|
1488
|
+
iconPrefixCls: k
|
|
1489
|
+
} = r(), ie = t(), q = v ? "css" : "js", ye = S(Jo(() => {
|
|
1490
|
+
const Se = /* @__PURE__ */ new Set();
|
|
1491
|
+
return v && Object.keys(d.unitless || {}).forEach((He) => {
|
|
1492
|
+
Se.add(Le(He, v.prefix)), Se.add(Le(He, _t(b, v.prefix)));
|
|
1493
|
+
}), Uo(q, Se);
|
|
1494
|
+
}, [q, b, v == null ? void 0 : v.prefix])), {
|
|
1495
|
+
max: ve,
|
|
1496
|
+
min: Ze
|
|
1497
|
+
} = Yo(q), Qe = {
|
|
1498
|
+
theme: w,
|
|
1499
|
+
token: E,
|
|
1500
|
+
hashId: f,
|
|
1501
|
+
nonce: () => ie.nonce,
|
|
1502
|
+
clientOnly: d.clientOnly,
|
|
1503
|
+
layer: C,
|
|
1504
|
+
// antd is always at top of styles
|
|
1505
|
+
order: d.order || -999
|
|
1506
|
+
};
|
|
1507
|
+
return typeof o == "function" && Jt({
|
|
1508
|
+
...Qe,
|
|
1509
|
+
clientOnly: !1,
|
|
1510
|
+
path: ["Shared", $]
|
|
1511
|
+
}, () => o(E, {
|
|
1512
|
+
prefix: {
|
|
1513
|
+
rootPrefixCls: $,
|
|
1514
|
+
iconPrefixCls: k
|
|
1515
|
+
},
|
|
1516
|
+
csp: ie
|
|
1517
|
+
})), [Jt({
|
|
1518
|
+
...Qe,
|
|
1519
|
+
path: [T, A, k]
|
|
1520
|
+
}, () => {
|
|
1521
|
+
if (d.injectStyle === !1)
|
|
1522
|
+
return [];
|
|
1523
|
+
const {
|
|
1524
|
+
token: Se,
|
|
1525
|
+
flush: He
|
|
1526
|
+
} = Ko(E), ae = nn(b, x, p), sr = `.${A}`, Lt = en(b, x, ae, {
|
|
1527
|
+
deprecatedTokens: d.deprecatedTokens
|
|
1528
|
+
});
|
|
1529
|
+
v && ae && typeof ae == "object" && Object.keys(ae).forEach((Ot) => {
|
|
1530
|
+
ae[Ot] = `var(${Le(Ot, _t(b, v.prefix))})`;
|
|
1531
|
+
});
|
|
1532
|
+
const zt = Nt(Se, {
|
|
1533
|
+
componentCls: sr,
|
|
1534
|
+
prefixCls: A,
|
|
1535
|
+
iconCls: `.${k}`,
|
|
1536
|
+
antCls: `.${$}`,
|
|
1537
|
+
calc: ye,
|
|
1538
|
+
// @ts-ignore
|
|
1539
|
+
max: ve,
|
|
1540
|
+
// @ts-ignore
|
|
1541
|
+
min: Ze
|
|
1542
|
+
}, v ? ae : Lt), cr = g(zt, {
|
|
1543
|
+
hashId: f,
|
|
1544
|
+
prefixCls: A,
|
|
1545
|
+
rootPrefixCls: $,
|
|
1546
|
+
iconPrefixCls: k
|
|
1547
|
+
});
|
|
1548
|
+
He(b, Lt);
|
|
1549
|
+
const lr = typeof i == "function" ? i(zt, A, m, d.resetFont) : null;
|
|
1550
|
+
return [d.resetStyle === !1 ? null : lr, cr];
|
|
1551
|
+
}), f];
|
|
1552
|
+
};
|
|
1553
|
+
}
|
|
1554
|
+
function h(l, g, p, d = {}) {
|
|
1555
|
+
const y = u(l, g, p, {
|
|
1556
|
+
resetStyle: !1,
|
|
1557
|
+
// Sub Style should default after root one
|
|
1558
|
+
order: -998,
|
|
1559
|
+
...d
|
|
1560
|
+
}), b = ({
|
|
1561
|
+
prefixCls: T,
|
|
1562
|
+
rootCls: C = T
|
|
1563
|
+
}) => (y(T, C), null);
|
|
1564
|
+
return process.env.NODE_ENV !== "production" && (b.displayName = `SubStyle_${String(Array.isArray(l) ? l.join(".") : l)}`), b;
|
|
1565
|
+
}
|
|
1566
|
+
return {
|
|
1567
|
+
genStyleHooks: s,
|
|
1568
|
+
genSubStyleComponent: h,
|
|
1569
|
+
genComponentStyleHook: u
|
|
1570
|
+
};
|
|
1571
|
+
}
|
|
1572
|
+
const ti = {
|
|
1573
|
+
size: !0,
|
|
1574
|
+
sizeSM: !0,
|
|
1575
|
+
sizeLG: !0,
|
|
1576
|
+
sizeMD: !0,
|
|
1577
|
+
sizeXS: !0,
|
|
1578
|
+
sizeXXS: !0,
|
|
1579
|
+
sizeMS: !0,
|
|
1580
|
+
sizeXL: !0,
|
|
1581
|
+
sizeXXL: !0,
|
|
1582
|
+
sizeUnit: !0,
|
|
1583
|
+
sizeStep: !0,
|
|
1584
|
+
motionBase: !0,
|
|
1585
|
+
motionUnit: !0
|
|
1586
|
+
}, ni = {
|
|
1587
|
+
lineHeight: !0,
|
|
1588
|
+
lineHeightSM: !0,
|
|
1589
|
+
lineHeightLG: !0,
|
|
1590
|
+
lineHeightHeading1: !0,
|
|
1591
|
+
lineHeightHeading2: !0,
|
|
1592
|
+
lineHeightHeading3: !0,
|
|
1593
|
+
lineHeightHeading4: !0,
|
|
1594
|
+
lineHeightHeading5: !0,
|
|
1595
|
+
opacityLoading: !0,
|
|
1596
|
+
fontWeightStrong: !0,
|
|
1597
|
+
zIndexPopupBase: !0,
|
|
1598
|
+
zIndexBase: !0,
|
|
1599
|
+
opacityImage: !0
|
|
1600
|
+
};
|
|
1601
|
+
function H() {
|
|
1602
|
+
return H = Object.assign ? Object.assign.bind() : function(e) {
|
|
1603
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
1604
|
+
var n = arguments[t];
|
|
1605
|
+
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
1606
|
+
}
|
|
1607
|
+
return e;
|
|
1608
|
+
}, H.apply(null, arguments);
|
|
1609
|
+
}
|
|
1610
|
+
function R(e, t) {
|
|
1611
|
+
ri(e) && (e = "100%");
|
|
1612
|
+
var n = oi(e);
|
|
1613
|
+
return e = t === 360 ? e : Math.min(t, Math.max(0, parseFloat(e))), n && (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);
|
|
1614
|
+
}
|
|
1615
|
+
function Ie(e) {
|
|
1616
|
+
return Math.min(1, Math.max(0, e));
|
|
1617
|
+
}
|
|
1618
|
+
function ri(e) {
|
|
1619
|
+
return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
|
|
1620
|
+
}
|
|
1621
|
+
function oi(e) {
|
|
1622
|
+
return typeof e == "string" && e.indexOf("%") !== -1;
|
|
1623
|
+
}
|
|
1624
|
+
function Yn(e) {
|
|
1625
|
+
return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
|
|
1626
|
+
}
|
|
1627
|
+
function Re(e) {
|
|
1628
|
+
return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
|
|
1629
|
+
}
|
|
1630
|
+
function re(e) {
|
|
1631
|
+
return e.length === 1 ? "0" + e : String(e);
|
|
1632
|
+
}
|
|
1633
|
+
function ii(e, t, n) {
|
|
1634
|
+
return {
|
|
1635
|
+
r: R(e, 255) * 255,
|
|
1636
|
+
g: R(t, 255) * 255,
|
|
1637
|
+
b: R(n, 255) * 255
|
|
1638
|
+
};
|
|
1639
|
+
}
|
|
1640
|
+
function on(e, t, n) {
|
|
1641
|
+
e = R(e, 255), t = R(t, 255), n = R(n, 255);
|
|
1642
|
+
var r = Math.max(e, t, n), o = Math.min(e, t, n), i = 0, a = 0, s = (r + o) / 2;
|
|
1643
|
+
if (r === o)
|
|
1644
|
+
a = 0, i = 0;
|
|
1645
|
+
else {
|
|
1646
|
+
var c = r - o;
|
|
1647
|
+
switch (a = s > 0.5 ? c / (2 - r - o) : c / (r + o), r) {
|
|
1648
|
+
case e:
|
|
1649
|
+
i = (t - n) / c + (t < n ? 6 : 0);
|
|
1650
|
+
break;
|
|
1651
|
+
case t:
|
|
1652
|
+
i = (n - e) / c + 2;
|
|
1653
|
+
break;
|
|
1654
|
+
case n:
|
|
1655
|
+
i = (e - t) / c + 4;
|
|
1656
|
+
break;
|
|
1657
|
+
}
|
|
1658
|
+
i /= 6;
|
|
1659
|
+
}
|
|
1660
|
+
return { h: i, s: a, l: s };
|
|
1661
|
+
}
|
|
1662
|
+
function rt(e, t, n) {
|
|
1663
|
+
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * (6 * n) : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
1664
|
+
}
|
|
1665
|
+
function ai(e, t, n) {
|
|
1666
|
+
var r, o, i;
|
|
1667
|
+
if (e = R(e, 360), t = R(t, 100), n = R(n, 100), t === 0)
|
|
1668
|
+
o = n, i = n, r = n;
|
|
1669
|
+
else {
|
|
1670
|
+
var a = n < 0.5 ? n * (1 + t) : n + t - n * t, s = 2 * n - a;
|
|
1671
|
+
r = rt(s, a, e + 1 / 3), o = rt(s, a, e), i = rt(s, a, e - 1 / 3);
|
|
1672
|
+
}
|
|
1673
|
+
return { r: r * 255, g: o * 255, b: i * 255 };
|
|
1674
|
+
}
|
|
1675
|
+
function Ct(e, t, n) {
|
|
1676
|
+
e = R(e, 255), t = R(t, 255), n = R(n, 255);
|
|
1677
|
+
var r = Math.max(e, t, n), o = Math.min(e, t, n), i = 0, a = r, s = r - o, c = r === 0 ? 0 : s / r;
|
|
1678
|
+
if (r === o)
|
|
1679
|
+
i = 0;
|
|
1680
|
+
else {
|
|
1681
|
+
switch (r) {
|
|
1682
|
+
case e:
|
|
1683
|
+
i = (t - n) / s + (t < n ? 6 : 0);
|
|
1684
|
+
break;
|
|
1685
|
+
case t:
|
|
1686
|
+
i = (n - e) / s + 2;
|
|
1687
|
+
break;
|
|
1688
|
+
case n:
|
|
1689
|
+
i = (e - t) / s + 4;
|
|
1690
|
+
break;
|
|
1691
|
+
}
|
|
1692
|
+
i /= 6;
|
|
1693
|
+
}
|
|
1694
|
+
return { h: i, s: c, v: a };
|
|
1695
|
+
}
|
|
1696
|
+
function si(e, t, n) {
|
|
1697
|
+
e = R(e, 360) * 6, t = R(t, 100), n = R(n, 100);
|
|
1698
|
+
var r = Math.floor(e), o = e - r, i = n * (1 - t), a = n * (1 - o * t), s = n * (1 - (1 - o) * t), c = r % 6, u = [n, a, i, i, s, n][c], h = [s, n, n, a, i, i][c], l = [i, i, s, n, n, a][c];
|
|
1699
|
+
return { r: u * 255, g: h * 255, b: l * 255 };
|
|
1700
|
+
}
|
|
1701
|
+
function Tt(e, t, n, r) {
|
|
1702
|
+
var o = [
|
|
1703
|
+
re(Math.round(e).toString(16)),
|
|
1704
|
+
re(Math.round(t).toString(16)),
|
|
1705
|
+
re(Math.round(n).toString(16))
|
|
1706
|
+
];
|
|
1707
|
+
return r && o[0].startsWith(o[0].charAt(1)) && o[1].startsWith(o[1].charAt(1)) && o[2].startsWith(o[2].charAt(1)) ? o[0].charAt(0) + o[1].charAt(0) + o[2].charAt(0) : o.join("");
|
|
1708
|
+
}
|
|
1709
|
+
function ci(e, t, n, r, o) {
|
|
1710
|
+
var i = [
|
|
1711
|
+
re(Math.round(e).toString(16)),
|
|
1712
|
+
re(Math.round(t).toString(16)),
|
|
1713
|
+
re(Math.round(n).toString(16)),
|
|
1714
|
+
re(li(r))
|
|
1715
|
+
];
|
|
1716
|
+
return o && 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("");
|
|
1717
|
+
}
|
|
1718
|
+
function li(e) {
|
|
1719
|
+
return Math.round(parseFloat(e) * 255).toString(16);
|
|
1720
|
+
}
|
|
1721
|
+
function an(e) {
|
|
1722
|
+
return N(e) / 255;
|
|
1723
|
+
}
|
|
1724
|
+
function N(e) {
|
|
1725
|
+
return parseInt(e, 16);
|
|
1726
|
+
}
|
|
1727
|
+
function ui(e) {
|
|
1728
|
+
return {
|
|
1729
|
+
r: e >> 16,
|
|
1730
|
+
g: (e & 65280) >> 8,
|
|
1731
|
+
b: e & 255
|
|
1732
|
+
};
|
|
1733
|
+
}
|
|
1734
|
+
var wt = {
|
|
1735
|
+
aliceblue: "#f0f8ff",
|
|
1736
|
+
antiquewhite: "#faebd7",
|
|
1737
|
+
aqua: "#00ffff",
|
|
1738
|
+
aquamarine: "#7fffd4",
|
|
1739
|
+
azure: "#f0ffff",
|
|
1740
|
+
beige: "#f5f5dc",
|
|
1741
|
+
bisque: "#ffe4c4",
|
|
1742
|
+
black: "#000000",
|
|
1743
|
+
blanchedalmond: "#ffebcd",
|
|
1744
|
+
blue: "#0000ff",
|
|
1745
|
+
blueviolet: "#8a2be2",
|
|
1746
|
+
brown: "#a52a2a",
|
|
1747
|
+
burlywood: "#deb887",
|
|
1748
|
+
cadetblue: "#5f9ea0",
|
|
1749
|
+
chartreuse: "#7fff00",
|
|
1750
|
+
chocolate: "#d2691e",
|
|
1751
|
+
coral: "#ff7f50",
|
|
1752
|
+
cornflowerblue: "#6495ed",
|
|
1753
|
+
cornsilk: "#fff8dc",
|
|
1754
|
+
crimson: "#dc143c",
|
|
1755
|
+
cyan: "#00ffff",
|
|
1756
|
+
darkblue: "#00008b",
|
|
1757
|
+
darkcyan: "#008b8b",
|
|
1758
|
+
darkgoldenrod: "#b8860b",
|
|
1759
|
+
darkgray: "#a9a9a9",
|
|
1760
|
+
darkgreen: "#006400",
|
|
1761
|
+
darkgrey: "#a9a9a9",
|
|
1762
|
+
darkkhaki: "#bdb76b",
|
|
1763
|
+
darkmagenta: "#8b008b",
|
|
1764
|
+
darkolivegreen: "#556b2f",
|
|
1765
|
+
darkorange: "#ff8c00",
|
|
1766
|
+
darkorchid: "#9932cc",
|
|
1767
|
+
darkred: "#8b0000",
|
|
1768
|
+
darksalmon: "#e9967a",
|
|
1769
|
+
darkseagreen: "#8fbc8f",
|
|
1770
|
+
darkslateblue: "#483d8b",
|
|
1771
|
+
darkslategray: "#2f4f4f",
|
|
1772
|
+
darkslategrey: "#2f4f4f",
|
|
1773
|
+
darkturquoise: "#00ced1",
|
|
1774
|
+
darkviolet: "#9400d3",
|
|
1775
|
+
deeppink: "#ff1493",
|
|
1776
|
+
deepskyblue: "#00bfff",
|
|
1777
|
+
dimgray: "#696969",
|
|
1778
|
+
dimgrey: "#696969",
|
|
1779
|
+
dodgerblue: "#1e90ff",
|
|
1780
|
+
firebrick: "#b22222",
|
|
1781
|
+
floralwhite: "#fffaf0",
|
|
1782
|
+
forestgreen: "#228b22",
|
|
1783
|
+
fuchsia: "#ff00ff",
|
|
1784
|
+
gainsboro: "#dcdcdc",
|
|
1785
|
+
ghostwhite: "#f8f8ff",
|
|
1786
|
+
goldenrod: "#daa520",
|
|
1787
|
+
gold: "#ffd700",
|
|
1788
|
+
gray: "#808080",
|
|
1789
|
+
green: "#008000",
|
|
1790
|
+
greenyellow: "#adff2f",
|
|
1791
|
+
grey: "#808080",
|
|
1792
|
+
honeydew: "#f0fff0",
|
|
1793
|
+
hotpink: "#ff69b4",
|
|
1794
|
+
indianred: "#cd5c5c",
|
|
1795
|
+
indigo: "#4b0082",
|
|
1796
|
+
ivory: "#fffff0",
|
|
1797
|
+
khaki: "#f0e68c",
|
|
1798
|
+
lavenderblush: "#fff0f5",
|
|
1799
|
+
lavender: "#e6e6fa",
|
|
1800
|
+
lawngreen: "#7cfc00",
|
|
1801
|
+
lemonchiffon: "#fffacd",
|
|
1802
|
+
lightblue: "#add8e6",
|
|
1803
|
+
lightcoral: "#f08080",
|
|
1804
|
+
lightcyan: "#e0ffff",
|
|
1805
|
+
lightgoldenrodyellow: "#fafad2",
|
|
1806
|
+
lightgray: "#d3d3d3",
|
|
1807
|
+
lightgreen: "#90ee90",
|
|
1808
|
+
lightgrey: "#d3d3d3",
|
|
1809
|
+
lightpink: "#ffb6c1",
|
|
1810
|
+
lightsalmon: "#ffa07a",
|
|
1811
|
+
lightseagreen: "#20b2aa",
|
|
1812
|
+
lightskyblue: "#87cefa",
|
|
1813
|
+
lightslategray: "#778899",
|
|
1814
|
+
lightslategrey: "#778899",
|
|
1815
|
+
lightsteelblue: "#b0c4de",
|
|
1816
|
+
lightyellow: "#ffffe0",
|
|
1817
|
+
lime: "#00ff00",
|
|
1818
|
+
limegreen: "#32cd32",
|
|
1819
|
+
linen: "#faf0e6",
|
|
1820
|
+
magenta: "#ff00ff",
|
|
1821
|
+
maroon: "#800000",
|
|
1822
|
+
mediumaquamarine: "#66cdaa",
|
|
1823
|
+
mediumblue: "#0000cd",
|
|
1824
|
+
mediumorchid: "#ba55d3",
|
|
1825
|
+
mediumpurple: "#9370db",
|
|
1826
|
+
mediumseagreen: "#3cb371",
|
|
1827
|
+
mediumslateblue: "#7b68ee",
|
|
1828
|
+
mediumspringgreen: "#00fa9a",
|
|
1829
|
+
mediumturquoise: "#48d1cc",
|
|
1830
|
+
mediumvioletred: "#c71585",
|
|
1831
|
+
midnightblue: "#191970",
|
|
1832
|
+
mintcream: "#f5fffa",
|
|
1833
|
+
mistyrose: "#ffe4e1",
|
|
1834
|
+
moccasin: "#ffe4b5",
|
|
1835
|
+
navajowhite: "#ffdead",
|
|
1836
|
+
navy: "#000080",
|
|
1837
|
+
oldlace: "#fdf5e6",
|
|
1838
|
+
olive: "#808000",
|
|
1839
|
+
olivedrab: "#6b8e23",
|
|
1840
|
+
orange: "#ffa500",
|
|
1841
|
+
orangered: "#ff4500",
|
|
1842
|
+
orchid: "#da70d6",
|
|
1843
|
+
palegoldenrod: "#eee8aa",
|
|
1844
|
+
palegreen: "#98fb98",
|
|
1845
|
+
paleturquoise: "#afeeee",
|
|
1846
|
+
palevioletred: "#db7093",
|
|
1847
|
+
papayawhip: "#ffefd5",
|
|
1848
|
+
peachpuff: "#ffdab9",
|
|
1849
|
+
peru: "#cd853f",
|
|
1850
|
+
pink: "#ffc0cb",
|
|
1851
|
+
plum: "#dda0dd",
|
|
1852
|
+
powderblue: "#b0e0e6",
|
|
1853
|
+
purple: "#800080",
|
|
1854
|
+
rebeccapurple: "#663399",
|
|
1855
|
+
red: "#ff0000",
|
|
1856
|
+
rosybrown: "#bc8f8f",
|
|
1857
|
+
royalblue: "#4169e1",
|
|
1858
|
+
saddlebrown: "#8b4513",
|
|
1859
|
+
salmon: "#fa8072",
|
|
1860
|
+
sandybrown: "#f4a460",
|
|
1861
|
+
seagreen: "#2e8b57",
|
|
1862
|
+
seashell: "#fff5ee",
|
|
1863
|
+
sienna: "#a0522d",
|
|
1864
|
+
silver: "#c0c0c0",
|
|
1865
|
+
skyblue: "#87ceeb",
|
|
1866
|
+
slateblue: "#6a5acd",
|
|
1867
|
+
slategray: "#708090",
|
|
1868
|
+
slategrey: "#708090",
|
|
1869
|
+
snow: "#fffafa",
|
|
1870
|
+
springgreen: "#00ff7f",
|
|
1871
|
+
steelblue: "#4682b4",
|
|
1872
|
+
tan: "#d2b48c",
|
|
1873
|
+
teal: "#008080",
|
|
1874
|
+
thistle: "#d8bfd8",
|
|
1875
|
+
tomato: "#ff6347",
|
|
1876
|
+
turquoise: "#40e0d0",
|
|
1877
|
+
violet: "#ee82ee",
|
|
1878
|
+
wheat: "#f5deb3",
|
|
1879
|
+
white: "#ffffff",
|
|
1880
|
+
whitesmoke: "#f5f5f5",
|
|
1881
|
+
yellow: "#ffff00",
|
|
1882
|
+
yellowgreen: "#9acd32"
|
|
1883
|
+
};
|
|
1884
|
+
function le(e) {
|
|
1885
|
+
var t = { r: 0, g: 0, b: 0 }, n = 1, r = null, o = null, i = null, a = !1, s = !1;
|
|
1886
|
+
return typeof e == "string" && (e = hi(e)), typeof e == "object" && (F(e.r) && F(e.g) && F(e.b) ? (t = ii(e.r, e.g, e.b), a = !0, s = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : F(e.h) && F(e.s) && F(e.v) ? (r = Re(e.s), o = Re(e.v), t = si(e.h, r, o), a = !0, s = "hsv") : F(e.h) && F(e.s) && F(e.l) && (r = Re(e.s), i = Re(e.l), t = ai(e.h, r, i), a = !0, s = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (n = e.a)), n = Yn(n), {
|
|
1887
|
+
ok: a,
|
|
1888
|
+
format: e.format || s,
|
|
1889
|
+
r: Math.min(255, Math.max(t.r, 0)),
|
|
1890
|
+
g: Math.min(255, Math.max(t.g, 0)),
|
|
1891
|
+
b: Math.min(255, Math.max(t.b, 0)),
|
|
1892
|
+
a: n
|
|
1893
|
+
};
|
|
1894
|
+
}
|
|
1895
|
+
var fi = "[-\\+]?\\d+%?", di = "[-\\+]?\\d*\\.\\d+%?", Y = "(?:".concat(di, ")|(?:").concat(fi, ")"), ot = "[\\s|\\(]+(".concat(Y, ")[,|\\s]+(").concat(Y, ")[,|\\s]+(").concat(Y, ")\\s*\\)?"), it = "[\\s|\\(]+(".concat(Y, ")[,|\\s]+(").concat(Y, ")[,|\\s]+(").concat(Y, ")[,|\\s]+(").concat(Y, ")\\s*\\)?"), z = {
|
|
1896
|
+
CSS_UNIT: new RegExp(Y),
|
|
1897
|
+
rgb: new RegExp("rgb" + ot),
|
|
1898
|
+
rgba: new RegExp("rgba" + it),
|
|
1899
|
+
hsl: new RegExp("hsl" + ot),
|
|
1900
|
+
hsla: new RegExp("hsla" + it),
|
|
1901
|
+
hsv: new RegExp("hsv" + ot),
|
|
1902
|
+
hsva: new RegExp("hsva" + it),
|
|
1903
|
+
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
1904
|
+
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
1905
|
+
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
1906
|
+
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
|
1907
|
+
};
|
|
1908
|
+
function hi(e) {
|
|
1909
|
+
if (e = e.trim().toLowerCase(), e.length === 0)
|
|
1910
|
+
return !1;
|
|
1911
|
+
var t = !1;
|
|
1912
|
+
if (wt[e])
|
|
1913
|
+
e = wt[e], t = !0;
|
|
1914
|
+
else if (e === "transparent")
|
|
1915
|
+
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
1916
|
+
var n = z.rgb.exec(e);
|
|
1917
|
+
return n ? { r: n[1], g: n[2], b: n[3] } : (n = z.rgba.exec(e), n ? { r: n[1], g: n[2], b: n[3], a: n[4] } : (n = z.hsl.exec(e), n ? { h: n[1], s: n[2], l: n[3] } : (n = z.hsla.exec(e), n ? { h: n[1], s: n[2], l: n[3], a: n[4] } : (n = z.hsv.exec(e), n ? { h: n[1], s: n[2], v: n[3] } : (n = z.hsva.exec(e), n ? { h: n[1], s: n[2], v: n[3], a: n[4] } : (n = z.hex8.exec(e), n ? {
|
|
1918
|
+
r: N(n[1]),
|
|
1919
|
+
g: N(n[2]),
|
|
1920
|
+
b: N(n[3]),
|
|
1921
|
+
a: an(n[4]),
|
|
1922
|
+
format: t ? "name" : "hex8"
|
|
1923
|
+
} : (n = z.hex6.exec(e), n ? {
|
|
1924
|
+
r: N(n[1]),
|
|
1925
|
+
g: N(n[2]),
|
|
1926
|
+
b: N(n[3]),
|
|
1927
|
+
format: t ? "name" : "hex"
|
|
1928
|
+
} : (n = z.hex4.exec(e), n ? {
|
|
1929
|
+
r: N(n[1] + n[1]),
|
|
1930
|
+
g: N(n[2] + n[2]),
|
|
1931
|
+
b: N(n[3] + n[3]),
|
|
1932
|
+
a: an(n[4] + n[4]),
|
|
1933
|
+
format: t ? "name" : "hex8"
|
|
1934
|
+
} : (n = z.hex3.exec(e), n ? {
|
|
1935
|
+
r: N(n[1] + n[1]),
|
|
1936
|
+
g: N(n[2] + n[2]),
|
|
1937
|
+
b: N(n[3] + n[3]),
|
|
1938
|
+
format: t ? "name" : "hex"
|
|
1939
|
+
} : !1)))))))));
|
|
1940
|
+
}
|
|
1941
|
+
function F(e) {
|
|
1942
|
+
return !!z.CSS_UNIT.exec(String(e));
|
|
1943
|
+
}
|
|
1944
|
+
var X = (
|
|
1945
|
+
/** @class */
|
|
1946
|
+
function() {
|
|
1947
|
+
function e(t, n) {
|
|
1948
|
+
t === void 0 && (t = ""), n === void 0 && (n = {});
|
|
1949
|
+
var r;
|
|
1950
|
+
if (t instanceof e)
|
|
1951
|
+
return t;
|
|
1952
|
+
typeof t == "number" && (t = ui(t)), this.originalInput = t;
|
|
1953
|
+
var o = le(t);
|
|
1954
|
+
this.originalInput = t, this.r = o.r, this.g = o.g, this.b = o.b, this.a = o.a, this.roundA = Math.round(100 * this.a) / 100, this.format = (r = n.format) !== null && r !== void 0 ? r : o.format, this.gradientType = n.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 = o.ok;
|
|
1955
|
+
}
|
|
1956
|
+
return e.prototype.isDark = function() {
|
|
1957
|
+
return this.getBrightness() < 128;
|
|
1958
|
+
}, e.prototype.isLight = function() {
|
|
1959
|
+
return !this.isDark();
|
|
1960
|
+
}, e.prototype.getBrightness = function() {
|
|
1961
|
+
var t = this.toRgb();
|
|
1962
|
+
return (t.r * 299 + t.g * 587 + t.b * 114) / 1e3;
|
|
1963
|
+
}, e.prototype.getLuminance = function() {
|
|
1964
|
+
var t = this.toRgb(), n, r, o, i = t.r / 255, a = t.g / 255, s = t.b / 255;
|
|
1965
|
+
return i <= 0.03928 ? n = i / 12.92 : n = Math.pow((i + 0.055) / 1.055, 2.4), a <= 0.03928 ? r = a / 12.92 : r = Math.pow((a + 0.055) / 1.055, 2.4), s <= 0.03928 ? o = s / 12.92 : o = Math.pow((s + 0.055) / 1.055, 2.4), 0.2126 * n + 0.7152 * r + 0.0722 * o;
|
|
1966
|
+
}, e.prototype.getAlpha = function() {
|
|
1967
|
+
return this.a;
|
|
1968
|
+
}, e.prototype.setAlpha = function(t) {
|
|
1969
|
+
return this.a = Yn(t), this.roundA = Math.round(100 * this.a) / 100, this;
|
|
1970
|
+
}, e.prototype.isMonochrome = function() {
|
|
1971
|
+
var t = this.toHsl().s;
|
|
1972
|
+
return t === 0;
|
|
1973
|
+
}, e.prototype.toHsv = function() {
|
|
1974
|
+
var t = Ct(this.r, this.g, this.b);
|
|
1975
|
+
return { h: t.h * 360, s: t.s, v: t.v, a: this.a };
|
|
1976
|
+
}, e.prototype.toHsvString = function() {
|
|
1977
|
+
var t = Ct(this.r, this.g, this.b), n = Math.round(t.h * 360), r = Math.round(t.s * 100), o = Math.round(t.v * 100);
|
|
1978
|
+
return this.a === 1 ? "hsv(".concat(n, ", ").concat(r, "%, ").concat(o, "%)") : "hsva(".concat(n, ", ").concat(r, "%, ").concat(o, "%, ").concat(this.roundA, ")");
|
|
1979
|
+
}, e.prototype.toHsl = function() {
|
|
1980
|
+
var t = on(this.r, this.g, this.b);
|
|
1981
|
+
return { h: t.h * 360, s: t.s, l: t.l, a: this.a };
|
|
1982
|
+
}, e.prototype.toHslString = function() {
|
|
1983
|
+
var t = on(this.r, this.g, this.b), n = Math.round(t.h * 360), r = Math.round(t.s * 100), o = Math.round(t.l * 100);
|
|
1984
|
+
return this.a === 1 ? "hsl(".concat(n, ", ").concat(r, "%, ").concat(o, "%)") : "hsla(".concat(n, ", ").concat(r, "%, ").concat(o, "%, ").concat(this.roundA, ")");
|
|
1985
|
+
}, e.prototype.toHex = function(t) {
|
|
1986
|
+
return t === void 0 && (t = !1), Tt(this.r, this.g, this.b, t);
|
|
1987
|
+
}, e.prototype.toHexString = function(t) {
|
|
1988
|
+
return t === void 0 && (t = !1), "#" + this.toHex(t);
|
|
1989
|
+
}, e.prototype.toHex8 = function(t) {
|
|
1990
|
+
return t === void 0 && (t = !1), ci(this.r, this.g, this.b, this.a, t);
|
|
1991
|
+
}, e.prototype.toHex8String = function(t) {
|
|
1992
|
+
return t === void 0 && (t = !1), "#" + this.toHex8(t);
|
|
1993
|
+
}, e.prototype.toHexShortString = function(t) {
|
|
1994
|
+
return t === void 0 && (t = !1), this.a === 1 ? this.toHexString(t) : this.toHex8String(t);
|
|
1995
|
+
}, e.prototype.toRgb = function() {
|
|
1996
|
+
return {
|
|
1997
|
+
r: Math.round(this.r),
|
|
1998
|
+
g: Math.round(this.g),
|
|
1999
|
+
b: Math.round(this.b),
|
|
2000
|
+
a: this.a
|
|
2001
|
+
};
|
|
2002
|
+
}, e.prototype.toRgbString = function() {
|
|
2003
|
+
var t = Math.round(this.r), n = Math.round(this.g), r = Math.round(this.b);
|
|
2004
|
+
return this.a === 1 ? "rgb(".concat(t, ", ").concat(n, ", ").concat(r, ")") : "rgba(".concat(t, ", ").concat(n, ", ").concat(r, ", ").concat(this.roundA, ")");
|
|
2005
|
+
}, e.prototype.toPercentageRgb = function() {
|
|
2006
|
+
var t = function(n) {
|
|
2007
|
+
return "".concat(Math.round(R(n, 255) * 100), "%");
|
|
2008
|
+
};
|
|
2009
|
+
return {
|
|
2010
|
+
r: t(this.r),
|
|
2011
|
+
g: t(this.g),
|
|
2012
|
+
b: t(this.b),
|
|
2013
|
+
a: this.a
|
|
2014
|
+
};
|
|
2015
|
+
}, e.prototype.toPercentageRgbString = function() {
|
|
2016
|
+
var t = function(n) {
|
|
2017
|
+
return Math.round(R(n, 255) * 100);
|
|
2018
|
+
};
|
|
2019
|
+
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, ")");
|
|
2020
|
+
}, e.prototype.toName = function() {
|
|
2021
|
+
if (this.a === 0)
|
|
2022
|
+
return "transparent";
|
|
2023
|
+
if (this.a < 1)
|
|
2024
|
+
return !1;
|
|
2025
|
+
for (var t = "#" + Tt(this.r, this.g, this.b, !1), n = 0, r = Object.entries(wt); n < r.length; n++) {
|
|
2026
|
+
var o = r[n], i = o[0], a = o[1];
|
|
2027
|
+
if (t === a)
|
|
2028
|
+
return i;
|
|
2029
|
+
}
|
|
2030
|
+
return !1;
|
|
2031
|
+
}, e.prototype.toString = function(t) {
|
|
2032
|
+
var n = !!t;
|
|
2033
|
+
t = t ?? this.format;
|
|
2034
|
+
var r = !1, o = this.a < 1 && this.a >= 0, i = !n && o && (t.startsWith("hex") || t === "name");
|
|
2035
|
+
return i ? t === "name" && this.a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (r = this.toRgbString()), t === "prgb" && (r = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (r = this.toHexString()), t === "hex3" && (r = this.toHexString(!0)), t === "hex4" && (r = this.toHex8String(!0)), t === "hex8" && (r = this.toHex8String()), t === "name" && (r = this.toName()), t === "hsl" && (r = this.toHslString()), t === "hsv" && (r = this.toHsvString()), r || this.toHexString());
|
|
2036
|
+
}, e.prototype.toNumber = function() {
|
|
2037
|
+
return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
|
|
2038
|
+
}, e.prototype.clone = function() {
|
|
2039
|
+
return new e(this.toString());
|
|
2040
|
+
}, e.prototype.lighten = function(t) {
|
|
2041
|
+
t === void 0 && (t = 10);
|
|
2042
|
+
var n = this.toHsl();
|
|
2043
|
+
return n.l += t / 100, n.l = Ie(n.l), new e(n);
|
|
2044
|
+
}, e.prototype.brighten = function(t) {
|
|
2045
|
+
t === void 0 && (t = 10);
|
|
2046
|
+
var n = this.toRgb();
|
|
2047
|
+
return n.r = Math.max(0, Math.min(255, n.r - Math.round(255 * -(t / 100)))), n.g = Math.max(0, Math.min(255, n.g - Math.round(255 * -(t / 100)))), n.b = Math.max(0, Math.min(255, n.b - Math.round(255 * -(t / 100)))), new e(n);
|
|
2048
|
+
}, e.prototype.darken = function(t) {
|
|
2049
|
+
t === void 0 && (t = 10);
|
|
2050
|
+
var n = this.toHsl();
|
|
2051
|
+
return n.l -= t / 100, n.l = Ie(n.l), new e(n);
|
|
2052
|
+
}, e.prototype.tint = function(t) {
|
|
2053
|
+
return t === void 0 && (t = 10), this.mix("white", t);
|
|
2054
|
+
}, e.prototype.shade = function(t) {
|
|
2055
|
+
return t === void 0 && (t = 10), this.mix("black", t);
|
|
2056
|
+
}, e.prototype.desaturate = function(t) {
|
|
2057
|
+
t === void 0 && (t = 10);
|
|
2058
|
+
var n = this.toHsl();
|
|
2059
|
+
return n.s -= t / 100, n.s = Ie(n.s), new e(n);
|
|
2060
|
+
}, e.prototype.saturate = function(t) {
|
|
2061
|
+
t === void 0 && (t = 10);
|
|
2062
|
+
var n = this.toHsl();
|
|
2063
|
+
return n.s += t / 100, n.s = Ie(n.s), new e(n);
|
|
2064
|
+
}, e.prototype.greyscale = function() {
|
|
2065
|
+
return this.desaturate(100);
|
|
2066
|
+
}, e.prototype.spin = function(t) {
|
|
2067
|
+
var n = this.toHsl(), r = (n.h + t) % 360;
|
|
2068
|
+
return n.h = r < 0 ? 360 + r : r, new e(n);
|
|
2069
|
+
}, e.prototype.mix = function(t, n) {
|
|
2070
|
+
n === void 0 && (n = 50);
|
|
2071
|
+
var r = this.toRgb(), o = new e(t).toRgb(), i = n / 100, a = {
|
|
2072
|
+
r: (o.r - r.r) * i + r.r,
|
|
2073
|
+
g: (o.g - r.g) * i + r.g,
|
|
2074
|
+
b: (o.b - r.b) * i + r.b,
|
|
2075
|
+
a: (o.a - r.a) * i + r.a
|
|
2076
|
+
};
|
|
2077
|
+
return new e(a);
|
|
2078
|
+
}, e.prototype.analogous = function(t, n) {
|
|
2079
|
+
t === void 0 && (t = 6), n === void 0 && (n = 30);
|
|
2080
|
+
var r = this.toHsl(), o = 360 / n, i = [this];
|
|
2081
|
+
for (r.h = (r.h - (o * t >> 1) + 720) % 360; --t; )
|
|
2082
|
+
r.h = (r.h + o) % 360, i.push(new e(r));
|
|
2083
|
+
return i;
|
|
2084
|
+
}, e.prototype.complement = function() {
|
|
2085
|
+
var t = this.toHsl();
|
|
2086
|
+
return t.h = (t.h + 180) % 360, new e(t);
|
|
2087
|
+
}, e.prototype.monochromatic = function(t) {
|
|
2088
|
+
t === void 0 && (t = 6);
|
|
2089
|
+
for (var n = this.toHsv(), r = n.h, o = n.s, i = n.v, a = [], s = 1 / t; t--; )
|
|
2090
|
+
a.push(new e({ h: r, s: o, v: i })), i = (i + s) % 1;
|
|
2091
|
+
return a;
|
|
2092
|
+
}, e.prototype.splitcomplement = function() {
|
|
2093
|
+
var t = this.toHsl(), n = t.h;
|
|
2094
|
+
return [
|
|
2095
|
+
this,
|
|
2096
|
+
new e({ h: (n + 72) % 360, s: t.s, l: t.l }),
|
|
2097
|
+
new e({ h: (n + 216) % 360, s: t.s, l: t.l })
|
|
2098
|
+
];
|
|
2099
|
+
}, e.prototype.onBackground = function(t) {
|
|
2100
|
+
var n = this.toRgb(), r = new e(t).toRgb(), o = n.a + r.a * (1 - n.a);
|
|
2101
|
+
return new e({
|
|
2102
|
+
r: (n.r * n.a + r.r * r.a * (1 - n.a)) / o,
|
|
2103
|
+
g: (n.g * n.a + r.g * r.a * (1 - n.a)) / o,
|
|
2104
|
+
b: (n.b * n.a + r.b * r.a * (1 - n.a)) / o,
|
|
2105
|
+
a: o
|
|
2106
|
+
});
|
|
2107
|
+
}, e.prototype.triad = function() {
|
|
2108
|
+
return this.polyad(3);
|
|
2109
|
+
}, e.prototype.tetrad = function() {
|
|
2110
|
+
return this.polyad(4);
|
|
2111
|
+
}, e.prototype.polyad = function(t) {
|
|
2112
|
+
for (var n = this.toHsl(), r = n.h, o = [this], i = 360 / t, a = 1; a < t; a++)
|
|
2113
|
+
o.push(new e({ h: (r + a * i) % 360, s: n.s, l: n.l }));
|
|
2114
|
+
return o;
|
|
2115
|
+
}, e.prototype.equals = function(t) {
|
|
2116
|
+
return this.toRgbString() === new e(t).toRgbString();
|
|
2117
|
+
}, e;
|
|
2118
|
+
}()
|
|
2119
|
+
);
|
|
2120
|
+
function at(e) {
|
|
2121
|
+
return e >= 0 && e <= 255;
|
|
2122
|
+
}
|
|
2123
|
+
function Be(e, t) {
|
|
2124
|
+
const {
|
|
2125
|
+
r: n,
|
|
2126
|
+
g: r,
|
|
2127
|
+
b: o,
|
|
2128
|
+
a: i
|
|
2129
|
+
} = new X(e).toRgb();
|
|
2130
|
+
if (i < 1)
|
|
2131
|
+
return e;
|
|
2132
|
+
const {
|
|
2133
|
+
r: a,
|
|
2134
|
+
g: s,
|
|
2135
|
+
b: c
|
|
2136
|
+
} = new X(t).toRgb();
|
|
2137
|
+
for (let u = 0.01; u <= 1; u += 0.01) {
|
|
2138
|
+
const h = Math.round((n - a * (1 - u)) / u), l = Math.round((r - s * (1 - u)) / u), g = Math.round((o - c * (1 - u)) / u);
|
|
2139
|
+
if (at(h) && at(l) && at(g))
|
|
2140
|
+
return new X({
|
|
2141
|
+
r: h,
|
|
2142
|
+
g: l,
|
|
2143
|
+
b: g,
|
|
2144
|
+
a: Math.round(u * 100) / 100
|
|
2145
|
+
}).toRgbString();
|
|
2146
|
+
}
|
|
2147
|
+
return new X({
|
|
2148
|
+
r: n,
|
|
2149
|
+
g: r,
|
|
2150
|
+
b: o,
|
|
2151
|
+
a: 1
|
|
2152
|
+
}).toRgbString();
|
|
2153
|
+
}
|
|
2154
|
+
const Zn = {
|
|
2155
|
+
blue: "#1677ff",
|
|
2156
|
+
purple: "#722ED1",
|
|
2157
|
+
cyan: "#13C2C2",
|
|
2158
|
+
green: "#52C41A",
|
|
2159
|
+
magenta: "#EB2F96",
|
|
2160
|
+
pink: "#eb2f96",
|
|
2161
|
+
red: "#F5222D",
|
|
2162
|
+
orange: "#FA8C16",
|
|
2163
|
+
yellow: "#FADB14",
|
|
2164
|
+
volcano: "#FA541C",
|
|
2165
|
+
geekblue: "#2F54EB",
|
|
2166
|
+
gold: "#FAAD14",
|
|
2167
|
+
lime: "#A0D911"
|
|
2168
|
+
}, Qn = H(H({}, Zn), {
|
|
2169
|
+
// Color
|
|
2170
|
+
colorPrimary: "#1677ff",
|
|
2171
|
+
colorSuccess: "#52c41a",
|
|
2172
|
+
colorWarning: "#faad14",
|
|
2173
|
+
colorError: "#ff4d4f",
|
|
2174
|
+
colorInfo: "#1677ff",
|
|
2175
|
+
colorTextBase: "",
|
|
2176
|
+
colorBgBase: "",
|
|
2177
|
+
// Font
|
|
2178
|
+
fontFamily: `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
2179
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
2180
|
+
'Noto Color Emoji'`,
|
|
2181
|
+
fontSize: 14,
|
|
2182
|
+
// Line
|
|
2183
|
+
lineWidth: 1,
|
|
2184
|
+
lineType: "solid",
|
|
2185
|
+
// Motion
|
|
2186
|
+
motionUnit: 0.1,
|
|
2187
|
+
motionBase: 0,
|
|
2188
|
+
motionEaseOutCirc: "cubic-bezier(0.08, 0.82, 0.17, 1)",
|
|
2189
|
+
motionEaseInOutCirc: "cubic-bezier(0.78, 0.14, 0.15, 0.86)",
|
|
2190
|
+
motionEaseOut: "cubic-bezier(0.215, 0.61, 0.355, 1)",
|
|
2191
|
+
motionEaseInOut: "cubic-bezier(0.645, 0.045, 0.355, 1)",
|
|
2192
|
+
motionEaseOutBack: "cubic-bezier(0.12, 0.4, 0.29, 1.46)",
|
|
2193
|
+
motionEaseInBack: "cubic-bezier(0.71, -0.46, 0.88, 0.6)",
|
|
2194
|
+
motionEaseInQuint: "cubic-bezier(0.755, 0.05, 0.855, 0.06)",
|
|
2195
|
+
motionEaseOutQuint: "cubic-bezier(0.23, 1, 0.32, 1)",
|
|
2196
|
+
// Radius
|
|
2197
|
+
borderRadius: 6,
|
|
2198
|
+
// Size
|
|
2199
|
+
sizeUnit: 4,
|
|
2200
|
+
sizeStep: 4,
|
|
2201
|
+
sizePopupArrow: 16,
|
|
2202
|
+
// Control Base
|
|
2203
|
+
controlHeight: 32,
|
|
2204
|
+
// zIndex
|
|
2205
|
+
zIndexBase: 0,
|
|
2206
|
+
zIndexPopupBase: 1e3,
|
|
2207
|
+
// Image
|
|
2208
|
+
opacityImage: 1,
|
|
2209
|
+
// Wireframe
|
|
2210
|
+
wireframe: !1
|
|
2211
|
+
});
|
|
2212
|
+
var gi = function(e, t) {
|
|
2213
|
+
var n = {};
|
|
2214
|
+
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
2215
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
|
|
2216
|
+
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
2217
|
+
return n;
|
|
2218
|
+
};
|
|
2219
|
+
function pi(e) {
|
|
2220
|
+
const {
|
|
2221
|
+
override: t
|
|
2222
|
+
} = e, n = gi(e, ["override"]), r = H({}, t);
|
|
2223
|
+
Object.keys(Qn).forEach((p) => {
|
|
2224
|
+
delete r[p];
|
|
2225
|
+
});
|
|
2226
|
+
const o = H(H({}, n), r), i = 480, a = 576, s = 768, c = 992, u = 1200, h = 1600, l = 2e3;
|
|
2227
|
+
return H(H(H({}, o), {
|
|
2228
|
+
colorLink: o.colorInfoText,
|
|
2229
|
+
colorLinkHover: o.colorInfoHover,
|
|
2230
|
+
colorLinkActive: o.colorInfoActive,
|
|
2231
|
+
// ============== Background ============== //
|
|
2232
|
+
colorFillContent: o.colorFillSecondary,
|
|
2233
|
+
colorFillContentHover: o.colorFill,
|
|
2234
|
+
colorFillAlter: o.colorFillQuaternary,
|
|
2235
|
+
colorBgContainerDisabled: o.colorFillTertiary,
|
|
2236
|
+
// ============== Split ============== //
|
|
2237
|
+
colorBorderBg: o.colorBgContainer,
|
|
2238
|
+
colorSplit: Be(o.colorBorderSecondary, o.colorBgContainer),
|
|
2239
|
+
// ============== Text ============== //
|
|
2240
|
+
colorTextPlaceholder: o.colorTextQuaternary,
|
|
2241
|
+
colorTextDisabled: o.colorTextQuaternary,
|
|
2242
|
+
colorTextHeading: o.colorText,
|
|
2243
|
+
colorTextLabel: o.colorTextSecondary,
|
|
2244
|
+
colorTextDescription: o.colorTextTertiary,
|
|
2245
|
+
colorTextLightSolid: o.colorWhite,
|
|
2246
|
+
colorHighlight: o.colorError,
|
|
2247
|
+
colorBgTextHover: o.colorFillSecondary,
|
|
2248
|
+
colorBgTextActive: o.colorFill,
|
|
2249
|
+
colorIcon: o.colorTextTertiary,
|
|
2250
|
+
colorIconHover: o.colorText,
|
|
2251
|
+
colorErrorOutline: Be(o.colorErrorBg, o.colorBgContainer),
|
|
2252
|
+
colorWarningOutline: Be(o.colorWarningBg, o.colorBgContainer),
|
|
2253
|
+
// Font
|
|
2254
|
+
fontSizeIcon: o.fontSizeSM,
|
|
2255
|
+
// Control
|
|
2256
|
+
lineWidth: o.lineWidth,
|
|
2257
|
+
controlOutlineWidth: o.lineWidth * 2,
|
|
2258
|
+
// Checkbox size and expand icon size
|
|
2259
|
+
controlInteractiveSize: o.controlHeight / 2,
|
|
2260
|
+
controlItemBgHover: o.colorFillTertiary,
|
|
2261
|
+
controlItemBgActive: o.colorPrimaryBg,
|
|
2262
|
+
controlItemBgActiveHover: o.colorPrimaryBgHover,
|
|
2263
|
+
controlItemBgActiveDisabled: o.colorFill,
|
|
2264
|
+
controlTmpOutline: o.colorFillQuaternary,
|
|
2265
|
+
controlOutline: Be(o.colorPrimaryBg, o.colorBgContainer),
|
|
2266
|
+
lineType: o.lineType,
|
|
2267
|
+
borderRadius: o.borderRadius,
|
|
2268
|
+
borderRadiusXS: o.borderRadiusXS,
|
|
2269
|
+
borderRadiusSM: o.borderRadiusSM,
|
|
2270
|
+
borderRadiusLG: o.borderRadiusLG,
|
|
2271
|
+
fontWeightStrong: 600,
|
|
2272
|
+
opacityLoading: 0.65,
|
|
2273
|
+
linkDecoration: "none",
|
|
2274
|
+
linkHoverDecoration: "none",
|
|
2275
|
+
linkFocusDecoration: "none",
|
|
2276
|
+
controlPaddingHorizontal: 12,
|
|
2277
|
+
controlPaddingHorizontalSM: 8,
|
|
2278
|
+
paddingXXS: o.sizeXXS,
|
|
2279
|
+
paddingXS: o.sizeXS,
|
|
2280
|
+
paddingSM: o.sizeSM,
|
|
2281
|
+
padding: o.size,
|
|
2282
|
+
paddingMD: o.sizeMD,
|
|
2283
|
+
paddingLG: o.sizeLG,
|
|
2284
|
+
paddingXL: o.sizeXL,
|
|
2285
|
+
paddingContentHorizontalLG: o.sizeLG,
|
|
2286
|
+
paddingContentVerticalLG: o.sizeMS,
|
|
2287
|
+
paddingContentHorizontal: o.sizeMS,
|
|
2288
|
+
paddingContentVertical: o.sizeSM,
|
|
2289
|
+
paddingContentHorizontalSM: o.size,
|
|
2290
|
+
paddingContentVerticalSM: o.sizeXS,
|
|
2291
|
+
marginXXS: o.sizeXXS,
|
|
2292
|
+
marginXS: o.sizeXS,
|
|
2293
|
+
marginSM: o.sizeSM,
|
|
2294
|
+
margin: o.size,
|
|
2295
|
+
marginMD: o.sizeMD,
|
|
2296
|
+
marginLG: o.sizeLG,
|
|
2297
|
+
marginXL: o.sizeXL,
|
|
2298
|
+
marginXXL: o.sizeXXL,
|
|
2299
|
+
boxShadow: `
|
|
2300
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
2301
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
2302
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
2303
|
+
`,
|
|
2304
|
+
boxShadowSecondary: `
|
|
2305
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
2306
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
2307
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
2308
|
+
`,
|
|
2309
|
+
boxShadowTertiary: `
|
|
2310
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
2311
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
2312
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
2313
|
+
`,
|
|
2314
|
+
screenXS: i,
|
|
2315
|
+
screenXSMin: i,
|
|
2316
|
+
screenXSMax: a - 1,
|
|
2317
|
+
screenSM: a,
|
|
2318
|
+
screenSMMin: a,
|
|
2319
|
+
screenSMMax: s - 1,
|
|
2320
|
+
screenMD: s,
|
|
2321
|
+
screenMDMin: s,
|
|
2322
|
+
screenMDMax: c - 1,
|
|
2323
|
+
screenLG: c,
|
|
2324
|
+
screenLGMin: c,
|
|
2325
|
+
screenLGMax: u - 1,
|
|
2326
|
+
screenXL: u,
|
|
2327
|
+
screenXLMin: u,
|
|
2328
|
+
screenXLMax: h - 1,
|
|
2329
|
+
screenXXL: h,
|
|
2330
|
+
screenXXLMin: h,
|
|
2331
|
+
screenXXLMax: l - 1,
|
|
2332
|
+
screenXXXL: l,
|
|
2333
|
+
screenXXXLMin: l,
|
|
2334
|
+
// FIXME: component box-shadow, should be removed
|
|
2335
|
+
boxShadowPopoverArrow: "3px 3px 7px rgba(0, 0, 0, 0.1)",
|
|
2336
|
+
boxShadowCard: `
|
|
2337
|
+
0 1px 2px -2px ${new X("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
2338
|
+
0 3px 6px 0 ${new X("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
2339
|
+
0 5px 12px 4px ${new X("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
2340
|
+
`,
|
|
2341
|
+
boxShadowDrawerRight: `
|
|
2342
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
2343
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
2344
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
2345
|
+
`,
|
|
2346
|
+
boxShadowDrawerLeft: `
|
|
2347
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
2348
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
2349
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
2350
|
+
`,
|
|
2351
|
+
boxShadowDrawerUp: `
|
|
2352
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
2353
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
2354
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
2355
|
+
`,
|
|
2356
|
+
boxShadowDrawerDown: `
|
|
2357
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
2358
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
2359
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
2360
|
+
`,
|
|
2361
|
+
boxShadowTabsOverflowLeft: "inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",
|
|
2362
|
+
boxShadowTabsOverflowRight: "inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",
|
|
2363
|
+
boxShadowTabsOverflowTop: "inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",
|
|
2364
|
+
boxShadowTabsOverflowBottom: "inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"
|
|
2365
|
+
}), r);
|
|
2366
|
+
}
|
|
2367
|
+
const mi = "1.0.3";
|
|
2368
|
+
function bi(e, t) {
|
|
2369
|
+
if (e.length !== t.length)
|
|
2370
|
+
return !1;
|
|
2371
|
+
for (let n = 0; n < e.length; n++)
|
|
2372
|
+
if (e[n] !== t[n])
|
|
2373
|
+
return !1;
|
|
2374
|
+
return !0;
|
|
2375
|
+
}
|
|
2376
|
+
class ge {
|
|
2377
|
+
constructor() {
|
|
2378
|
+
this.cache = /* @__PURE__ */ new Map(), this.keys = [], this.cacheCallTimes = 0;
|
|
2379
|
+
}
|
|
2380
|
+
size() {
|
|
2381
|
+
return this.keys.length;
|
|
2382
|
+
}
|
|
2383
|
+
internalGet(t) {
|
|
2384
|
+
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = {
|
|
2385
|
+
map: this.cache
|
|
2386
|
+
};
|
|
2387
|
+
return t.forEach((o) => {
|
|
2388
|
+
var i;
|
|
2389
|
+
r ? r = (i = r == null ? void 0 : r.map) === null || i === void 0 ? void 0 : i.get(o) : r = void 0;
|
|
2390
|
+
}), r != null && r.value && n && (r.value[1] = this.cacheCallTimes++), r == null ? void 0 : r.value;
|
|
2391
|
+
}
|
|
2392
|
+
get(t) {
|
|
2393
|
+
var n;
|
|
2394
|
+
return (n = this.internalGet(t, !0)) === null || n === void 0 ? void 0 : n[0];
|
|
2395
|
+
}
|
|
2396
|
+
has(t) {
|
|
2397
|
+
return !!this.internalGet(t);
|
|
2398
|
+
}
|
|
2399
|
+
set(t, n) {
|
|
2400
|
+
if (!this.has(t)) {
|
|
2401
|
+
if (this.size() + 1 > ge.MAX_CACHE_SIZE + ge.MAX_CACHE_OFFSET) {
|
|
2402
|
+
const [o] = this.keys.reduce((i, a) => {
|
|
2403
|
+
const [, s] = i;
|
|
2404
|
+
return this.internalGet(a)[1] < s ? [a, this.internalGet(a)[1]] : i;
|
|
2405
|
+
}, [this.keys[0], this.cacheCallTimes]);
|
|
2406
|
+
this.delete(o);
|
|
2407
|
+
}
|
|
2408
|
+
this.keys.push(t);
|
|
2409
|
+
}
|
|
2410
|
+
let r = this.cache;
|
|
2411
|
+
t.forEach((o, i) => {
|
|
2412
|
+
if (i === t.length - 1)
|
|
2413
|
+
r.set(o, {
|
|
2414
|
+
value: [n, this.cacheCallTimes++]
|
|
2415
|
+
});
|
|
2416
|
+
else {
|
|
2417
|
+
const a = r.get(o);
|
|
2418
|
+
a ? a.map || (a.map = /* @__PURE__ */ new Map()) : r.set(o, {
|
|
2419
|
+
map: /* @__PURE__ */ new Map()
|
|
2420
|
+
}), r = r.get(o).map;
|
|
2421
|
+
}
|
|
2422
|
+
});
|
|
2423
|
+
}
|
|
2424
|
+
deleteByPath(t, n) {
|
|
2425
|
+
var r;
|
|
2426
|
+
const o = t.get(n[0]);
|
|
2427
|
+
if (n.length === 1)
|
|
2428
|
+
return o.map ? t.set(n[0], {
|
|
2429
|
+
map: o.map
|
|
2430
|
+
}) : t.delete(n[0]), (r = o.value) === null || r === void 0 ? void 0 : r[0];
|
|
2431
|
+
const i = this.deleteByPath(o.map, n.slice(1));
|
|
2432
|
+
return (!o.map || o.map.size === 0) && !o.value && t.delete(n[0]), i;
|
|
2433
|
+
}
|
|
2434
|
+
delete(t) {
|
|
2435
|
+
if (this.has(t))
|
|
2436
|
+
return this.keys = this.keys.filter((n) => !bi(n, t)), this.deleteByPath(this.cache, t);
|
|
2437
|
+
}
|
|
2438
|
+
}
|
|
2439
|
+
ge.MAX_CACHE_SIZE = 20;
|
|
2440
|
+
ge.MAX_CACHE_OFFSET = 5;
|
|
2441
|
+
let Mt = {};
|
|
2442
|
+
function yi(e, t) {
|
|
2443
|
+
process.env.NODE_ENV !== "production" && !e && console !== void 0 && console.error(`Warning: ${t}`);
|
|
2444
|
+
}
|
|
2445
|
+
function vi() {
|
|
2446
|
+
Mt = {};
|
|
2447
|
+
}
|
|
2448
|
+
function Si(e, t, n) {
|
|
2449
|
+
!t && !Mt[n] && (e(!1, n), Mt[n] = !0);
|
|
2450
|
+
}
|
|
2451
|
+
function xi(e, t) {
|
|
2452
|
+
Si(yi, e, t);
|
|
2453
|
+
}
|
|
2454
|
+
function Ci() {
|
|
2455
|
+
}
|
|
2456
|
+
let Jn = Ci;
|
|
2457
|
+
process.env.NODE_ENV !== "production" && (Jn = (e, t, n) => {
|
|
2458
|
+
xi(e, `[ant-design-vue: ${t}] ${n}`), process.env.NODE_ENV === "test" && vi();
|
|
2459
|
+
});
|
|
2460
|
+
let sn = 0;
|
|
2461
|
+
class Ti {
|
|
2462
|
+
constructor(t) {
|
|
2463
|
+
this.derivatives = Array.isArray(t) ? t : [t], this.id = sn, t.length === 0 && Jn(t.length > 0, "[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."), sn += 1;
|
|
2464
|
+
}
|
|
2465
|
+
getDerivativeToken(t) {
|
|
2466
|
+
return this.derivatives.reduce((n, r) => r(t, n), void 0);
|
|
2467
|
+
}
|
|
2468
|
+
}
|
|
2469
|
+
const st = new ge();
|
|
2470
|
+
function wi(e) {
|
|
2471
|
+
const t = Array.isArray(e) ? e : [e];
|
|
2472
|
+
return st.has(t) || st.set(t, new Ti(t)), st.get(t);
|
|
2473
|
+
}
|
|
2474
|
+
var De = 2, cn = 0.16, Mi = 0.05, Ai = 0.05, $i = 0.15, _n = 5, er = 4, Ei = [{
|
|
2475
|
+
index: 7,
|
|
2476
|
+
opacity: 0.15
|
|
2477
|
+
}, {
|
|
2478
|
+
index: 6,
|
|
2479
|
+
opacity: 0.25
|
|
2480
|
+
}, {
|
|
2481
|
+
index: 5,
|
|
2482
|
+
opacity: 0.3
|
|
2483
|
+
}, {
|
|
2484
|
+
index: 5,
|
|
2485
|
+
opacity: 0.45
|
|
2486
|
+
}, {
|
|
2487
|
+
index: 5,
|
|
2488
|
+
opacity: 0.65
|
|
2489
|
+
}, {
|
|
2490
|
+
index: 5,
|
|
2491
|
+
opacity: 0.85
|
|
2492
|
+
}, {
|
|
2493
|
+
index: 4,
|
|
2494
|
+
opacity: 0.9
|
|
2495
|
+
}, {
|
|
2496
|
+
index: 3,
|
|
2497
|
+
opacity: 0.95
|
|
2498
|
+
}, {
|
|
2499
|
+
index: 2,
|
|
2500
|
+
opacity: 0.97
|
|
2501
|
+
}, {
|
|
2502
|
+
index: 1,
|
|
2503
|
+
opacity: 0.98
|
|
2504
|
+
}];
|
|
2505
|
+
function ln(e) {
|
|
2506
|
+
var t = e.r, n = e.g, r = e.b, o = Ct(t, n, r);
|
|
2507
|
+
return {
|
|
2508
|
+
h: o.h * 360,
|
|
2509
|
+
s: o.s,
|
|
2510
|
+
v: o.v
|
|
2511
|
+
};
|
|
2512
|
+
}
|
|
2513
|
+
function Ne(e) {
|
|
2514
|
+
var t = e.r, n = e.g, r = e.b;
|
|
2515
|
+
return "#".concat(Tt(t, n, r, !1));
|
|
2516
|
+
}
|
|
2517
|
+
function ki(e, t, n) {
|
|
2518
|
+
var r = n / 100, o = {
|
|
2519
|
+
r: (t.r - e.r) * r + e.r,
|
|
2520
|
+
g: (t.g - e.g) * r + e.g,
|
|
2521
|
+
b: (t.b - e.b) * r + e.b
|
|
2522
|
+
};
|
|
2523
|
+
return o;
|
|
2524
|
+
}
|
|
2525
|
+
function un(e, t, n) {
|
|
2526
|
+
var r;
|
|
2527
|
+
return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? r = n ? Math.round(e.h) - De * t : Math.round(e.h) + De * t : r = n ? Math.round(e.h) + De * t : Math.round(e.h) - De * t, r < 0 ? r += 360 : r >= 360 && (r -= 360), r;
|
|
2528
|
+
}
|
|
2529
|
+
function fn(e, t, n) {
|
|
2530
|
+
if (e.h === 0 && e.s === 0)
|
|
2531
|
+
return e.s;
|
|
2532
|
+
var r;
|
|
2533
|
+
return n ? r = e.s - cn * t : t === er ? r = e.s + cn : r = e.s + Mi * t, r > 1 && (r = 1), n && t === _n && r > 0.1 && (r = 0.1), r < 0.06 && (r = 0.06), Number(r.toFixed(2));
|
|
2534
|
+
}
|
|
2535
|
+
function dn(e, t, n) {
|
|
2536
|
+
var r;
|
|
2537
|
+
return n ? r = e.v + Ai * t : r = e.v - $i * t, r > 1 && (r = 1), Number(r.toFixed(2));
|
|
2538
|
+
}
|
|
2539
|
+
function Ve(e) {
|
|
2540
|
+
for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [], r = le(e), o = _n; o > 0; o -= 1) {
|
|
2541
|
+
var i = ln(r), a = Ne(le({
|
|
2542
|
+
h: un(i, o, !0),
|
|
2543
|
+
s: fn(i, o, !0),
|
|
2544
|
+
v: dn(i, o, !0)
|
|
2545
|
+
}));
|
|
2546
|
+
n.push(a);
|
|
2547
|
+
}
|
|
2548
|
+
n.push(Ne(r));
|
|
2549
|
+
for (var s = 1; s <= er; s += 1) {
|
|
2550
|
+
var c = ln(r), u = Ne(le({
|
|
2551
|
+
h: un(c, s),
|
|
2552
|
+
s: fn(c, s),
|
|
2553
|
+
v: dn(c, s)
|
|
2554
|
+
}));
|
|
2555
|
+
n.push(u);
|
|
2556
|
+
}
|
|
2557
|
+
return t.theme === "dark" ? Ei.map(function(h) {
|
|
2558
|
+
var l = h.index, g = h.opacity, p = Ne(ki(le(t.backgroundColor || "#141414"), le(n[l]), g * 100));
|
|
2559
|
+
return p;
|
|
2560
|
+
}) : n;
|
|
2561
|
+
}
|
|
2562
|
+
var ct = {
|
|
2563
|
+
red: "#F5222D",
|
|
2564
|
+
volcano: "#FA541C",
|
|
2565
|
+
orange: "#FA8C16",
|
|
2566
|
+
gold: "#FAAD14",
|
|
2567
|
+
yellow: "#FADB14",
|
|
2568
|
+
lime: "#A0D911",
|
|
2569
|
+
green: "#52C41A",
|
|
2570
|
+
cyan: "#13C2C2",
|
|
2571
|
+
blue: "#1890FF",
|
|
2572
|
+
geekblue: "#2F54EB",
|
|
2573
|
+
purple: "#722ED1",
|
|
2574
|
+
magenta: "#EB2F96",
|
|
2575
|
+
grey: "#666666"
|
|
2576
|
+
}, lt = {}, ut = {};
|
|
2577
|
+
Object.keys(ct).forEach(function(e) {
|
|
2578
|
+
lt[e] = Ve(ct[e]), lt[e].primary = lt[e][5], ut[e] = Ve(ct[e], {
|
|
2579
|
+
theme: "dark",
|
|
2580
|
+
backgroundColor: "#141414"
|
|
2581
|
+
}), ut[e].primary = ut[e][5];
|
|
2582
|
+
});
|
|
2583
|
+
const Hi = (e) => {
|
|
2584
|
+
const {
|
|
2585
|
+
controlHeight: t
|
|
2586
|
+
} = e;
|
|
2587
|
+
return {
|
|
2588
|
+
controlHeightSM: t * 0.75,
|
|
2589
|
+
controlHeightXS: t * 0.5,
|
|
2590
|
+
controlHeightLG: t * 1.25
|
|
2591
|
+
};
|
|
2592
|
+
};
|
|
2593
|
+
function Pi(e) {
|
|
2594
|
+
const {
|
|
2595
|
+
sizeUnit: t,
|
|
2596
|
+
sizeStep: n
|
|
2597
|
+
} = e;
|
|
2598
|
+
return {
|
|
2599
|
+
sizeXXL: t * (n + 8),
|
|
2600
|
+
sizeXL: t * (n + 4),
|
|
2601
|
+
sizeLG: t * (n + 2),
|
|
2602
|
+
sizeMD: t * (n + 1),
|
|
2603
|
+
sizeMS: t * n,
|
|
2604
|
+
size: t * n,
|
|
2605
|
+
sizeSM: t * (n - 1),
|
|
2606
|
+
sizeXS: t * (n - 2),
|
|
2607
|
+
sizeXXS: t * (n - 3)
|
|
2608
|
+
// 4
|
|
2609
|
+
};
|
|
2610
|
+
}
|
|
2611
|
+
function Ii(e, t) {
|
|
2612
|
+
let {
|
|
2613
|
+
generateColorPalettes: n,
|
|
2614
|
+
generateNeutralColorPalettes: r
|
|
2615
|
+
} = t;
|
|
2616
|
+
const {
|
|
2617
|
+
colorSuccess: o,
|
|
2618
|
+
colorWarning: i,
|
|
2619
|
+
colorError: a,
|
|
2620
|
+
colorInfo: s,
|
|
2621
|
+
colorPrimary: c,
|
|
2622
|
+
colorBgBase: u,
|
|
2623
|
+
colorTextBase: h
|
|
2624
|
+
} = e, l = n(c), g = n(o), p = n(i), d = n(a), y = n(s), b = r(u, h);
|
|
2625
|
+
return H(H({}, b), {
|
|
2626
|
+
colorPrimaryBg: l[1],
|
|
2627
|
+
colorPrimaryBgHover: l[2],
|
|
2628
|
+
colorPrimaryBorder: l[3],
|
|
2629
|
+
colorPrimaryBorderHover: l[4],
|
|
2630
|
+
colorPrimaryHover: l[5],
|
|
2631
|
+
colorPrimary: l[6],
|
|
2632
|
+
colorPrimaryActive: l[7],
|
|
2633
|
+
colorPrimaryTextHover: l[8],
|
|
2634
|
+
colorPrimaryText: l[9],
|
|
2635
|
+
colorPrimaryTextActive: l[10],
|
|
2636
|
+
colorSuccessBg: g[1],
|
|
2637
|
+
colorSuccessBgHover: g[2],
|
|
2638
|
+
colorSuccessBorder: g[3],
|
|
2639
|
+
colorSuccessBorderHover: g[4],
|
|
2640
|
+
colorSuccessHover: g[4],
|
|
2641
|
+
colorSuccess: g[6],
|
|
2642
|
+
colorSuccessActive: g[7],
|
|
2643
|
+
colorSuccessTextHover: g[8],
|
|
2644
|
+
colorSuccessText: g[9],
|
|
2645
|
+
colorSuccessTextActive: g[10],
|
|
2646
|
+
colorErrorBg: d[1],
|
|
2647
|
+
colorErrorBgHover: d[2],
|
|
2648
|
+
colorErrorBorder: d[3],
|
|
2649
|
+
colorErrorBorderHover: d[4],
|
|
2650
|
+
colorErrorHover: d[5],
|
|
2651
|
+
colorError: d[6],
|
|
2652
|
+
colorErrorActive: d[7],
|
|
2653
|
+
colorErrorTextHover: d[8],
|
|
2654
|
+
colorErrorText: d[9],
|
|
2655
|
+
colorErrorTextActive: d[10],
|
|
2656
|
+
colorWarningBg: p[1],
|
|
2657
|
+
colorWarningBgHover: p[2],
|
|
2658
|
+
colorWarningBorder: p[3],
|
|
2659
|
+
colorWarningBorderHover: p[4],
|
|
2660
|
+
colorWarningHover: p[4],
|
|
2661
|
+
colorWarning: p[6],
|
|
2662
|
+
colorWarningActive: p[7],
|
|
2663
|
+
colorWarningTextHover: p[8],
|
|
2664
|
+
colorWarningText: p[9],
|
|
2665
|
+
colorWarningTextActive: p[10],
|
|
2666
|
+
colorInfoBg: y[1],
|
|
2667
|
+
colorInfoBgHover: y[2],
|
|
2668
|
+
colorInfoBorder: y[3],
|
|
2669
|
+
colorInfoBorderHover: y[4],
|
|
2670
|
+
colorInfoHover: y[4],
|
|
2671
|
+
colorInfo: y[6],
|
|
2672
|
+
colorInfoActive: y[7],
|
|
2673
|
+
colorInfoTextHover: y[8],
|
|
2674
|
+
colorInfoText: y[9],
|
|
2675
|
+
colorInfoTextActive: y[10],
|
|
2676
|
+
colorBgMask: new X("#000").setAlpha(0.45).toRgbString(),
|
|
2677
|
+
colorWhite: "#fff"
|
|
2678
|
+
});
|
|
2679
|
+
}
|
|
2680
|
+
const Ri = (e) => {
|
|
2681
|
+
let t = e, n = e, r = e, o = e;
|
|
2682
|
+
return e < 6 && e >= 5 ? t = e + 1 : e < 16 && e >= 6 ? t = e + 2 : e >= 16 && (t = 16), e < 7 && e >= 5 ? n = 4 : e < 8 && e >= 7 ? n = 5 : e < 14 && e >= 8 ? n = 6 : e < 16 && e >= 14 ? n = 7 : e >= 16 && (n = 8), e < 6 && e >= 2 ? r = 1 : e >= 6 && (r = 2), e > 4 && e < 8 ? o = 4 : e >= 8 && (o = 6), {
|
|
2683
|
+
borderRadius: e > 16 ? 16 : e,
|
|
2684
|
+
borderRadiusXS: r,
|
|
2685
|
+
borderRadiusSM: n,
|
|
2686
|
+
borderRadiusLG: t,
|
|
2687
|
+
borderRadiusOuter: o
|
|
2688
|
+
};
|
|
2689
|
+
};
|
|
2690
|
+
function Bi(e) {
|
|
2691
|
+
const {
|
|
2692
|
+
motionUnit: t,
|
|
2693
|
+
motionBase: n,
|
|
2694
|
+
borderRadius: r,
|
|
2695
|
+
lineWidth: o
|
|
2696
|
+
} = e;
|
|
2697
|
+
return H({
|
|
2698
|
+
// motion
|
|
2699
|
+
motionDurationFast: `${(n + t).toFixed(1)}s`,
|
|
2700
|
+
motionDurationMid: `${(n + t * 2).toFixed(1)}s`,
|
|
2701
|
+
motionDurationSlow: `${(n + t * 3).toFixed(1)}s`,
|
|
2702
|
+
// line
|
|
2703
|
+
lineWidthBold: o + 1
|
|
2704
|
+
}, Ri(r));
|
|
2705
|
+
}
|
|
2706
|
+
const W = (e, t) => new X(e).setAlpha(t).toRgbString(), xe = (e, t) => new X(e).darken(t).toHexString(), Di = (e) => {
|
|
2707
|
+
const t = Ve(e);
|
|
2708
|
+
return {
|
|
2709
|
+
1: t[0],
|
|
2710
|
+
2: t[1],
|
|
2711
|
+
3: t[2],
|
|
2712
|
+
4: t[3],
|
|
2713
|
+
5: t[4],
|
|
2714
|
+
6: t[5],
|
|
2715
|
+
7: t[6],
|
|
2716
|
+
8: t[4],
|
|
2717
|
+
9: t[5],
|
|
2718
|
+
10: t[6]
|
|
2719
|
+
// 8: colors[7],
|
|
2720
|
+
// 9: colors[8],
|
|
2721
|
+
// 10: colors[9],
|
|
2722
|
+
};
|
|
2723
|
+
}, Ni = (e, t) => {
|
|
2724
|
+
const n = e || "#fff", r = t || "#000";
|
|
2725
|
+
return {
|
|
2726
|
+
colorBgBase: n,
|
|
2727
|
+
colorTextBase: r,
|
|
2728
|
+
colorText: W(r, 0.88),
|
|
2729
|
+
colorTextSecondary: W(r, 0.65),
|
|
2730
|
+
colorTextTertiary: W(r, 0.45),
|
|
2731
|
+
colorTextQuaternary: W(r, 0.25),
|
|
2732
|
+
colorFill: W(r, 0.15),
|
|
2733
|
+
colorFillSecondary: W(r, 0.06),
|
|
2734
|
+
colorFillTertiary: W(r, 0.04),
|
|
2735
|
+
colorFillQuaternary: W(r, 0.02),
|
|
2736
|
+
colorBgLayout: xe(n, 4),
|
|
2737
|
+
colorBgContainer: xe(n, 0),
|
|
2738
|
+
colorBgElevated: xe(n, 0),
|
|
2739
|
+
colorBgSpotlight: W(r, 0.85),
|
|
2740
|
+
colorBorder: xe(n, 15),
|
|
2741
|
+
colorBorderSecondary: xe(n, 6)
|
|
2742
|
+
};
|
|
2743
|
+
};
|
|
2744
|
+
function Li(e) {
|
|
2745
|
+
const t = new Array(10).fill(null).map((n, r) => {
|
|
2746
|
+
const o = r - 1, i = e * Math.pow(2.71828, o / 5), a = r > 1 ? Math.floor(i) : Math.ceil(i);
|
|
2747
|
+
return Math.floor(a / 2) * 2;
|
|
2748
|
+
});
|
|
2749
|
+
return t[1] = e, t.map((n) => {
|
|
2750
|
+
const r = n + 8;
|
|
2751
|
+
return {
|
|
2752
|
+
size: n,
|
|
2753
|
+
lineHeight: r / n
|
|
2754
|
+
};
|
|
2755
|
+
});
|
|
2756
|
+
}
|
|
2757
|
+
const zi = (e) => {
|
|
2758
|
+
const t = Li(e), n = t.map((o) => o.size), r = t.map((o) => o.lineHeight);
|
|
2759
|
+
return {
|
|
2760
|
+
fontSizeSM: n[0],
|
|
2761
|
+
fontSize: n[1],
|
|
2762
|
+
fontSizeLG: n[2],
|
|
2763
|
+
fontSizeXL: n[3],
|
|
2764
|
+
fontSizeHeading1: n[6],
|
|
2765
|
+
fontSizeHeading2: n[5],
|
|
2766
|
+
fontSizeHeading3: n[4],
|
|
2767
|
+
fontSizeHeading4: n[3],
|
|
2768
|
+
fontSizeHeading5: n[2],
|
|
2769
|
+
lineHeight: r[1],
|
|
2770
|
+
lineHeightLG: r[2],
|
|
2771
|
+
lineHeightSM: r[0],
|
|
2772
|
+
lineHeightHeading1: r[6],
|
|
2773
|
+
lineHeightHeading2: r[5],
|
|
2774
|
+
lineHeightHeading3: r[4],
|
|
2775
|
+
lineHeightHeading4: r[3],
|
|
2776
|
+
lineHeightHeading5: r[2]
|
|
2777
|
+
};
|
|
2778
|
+
};
|
|
2779
|
+
function Oi(e) {
|
|
2780
|
+
const t = Object.keys(Zn).map((n) => {
|
|
2781
|
+
const r = Ve(e[n]);
|
|
2782
|
+
return new Array(10).fill(1).reduce((o, i, a) => (o[`${n}-${a + 1}`] = r[a], o), {});
|
|
2783
|
+
}).reduce((n, r) => (n = H(H({}, n), r), n), {});
|
|
2784
|
+
return H(H(H(H(H(H(H({}, e), t), Ii(e, {
|
|
2785
|
+
generateColorPalettes: Di,
|
|
2786
|
+
generateNeutralColorPalettes: Ni
|
|
2787
|
+
})), zi(e.fontSize)), Pi(e)), Hi(e)), Bi(e));
|
|
2788
|
+
}
|
|
2789
|
+
wi(Oi);
|
|
2790
|
+
const ji = {
|
|
2791
|
+
token: Qn,
|
|
2792
|
+
hashed: !0
|
|
2793
|
+
}, tr = Symbol("DesignTokenContext"), At = Q(), Xi = (e) => {
|
|
2794
|
+
Ee(tr, e), B(e, () => {
|
|
2795
|
+
At.value = S(e), Ge(At);
|
|
2796
|
+
}, {
|
|
2797
|
+
immediate: !0,
|
|
2798
|
+
deep: !0
|
|
2799
|
+
});
|
|
2800
|
+
}, Fi = () => pe(tr, M(() => At.value || ji));
|
|
2801
|
+
U({
|
|
2802
|
+
props: {
|
|
2803
|
+
value: yr()
|
|
2804
|
+
},
|
|
2805
|
+
setup(e, t) {
|
|
2806
|
+
let {
|
|
2807
|
+
slots: n
|
|
2808
|
+
} = t;
|
|
2809
|
+
return Xi(M(() => e.value)), () => {
|
|
2810
|
+
var r;
|
|
2811
|
+
return (r = n.default) === null || r === void 0 ? void 0 : r.call(n);
|
|
2812
|
+
};
|
|
2813
|
+
}
|
|
2814
|
+
});
|
|
2815
|
+
const Wi = to(yn.defaultAlgorithm), Vi = {
|
|
2816
|
+
screenXS: !0,
|
|
2817
|
+
screenXSMin: !0,
|
|
2818
|
+
screenXSMax: !0,
|
|
2819
|
+
screenSM: !0,
|
|
2820
|
+
screenSMMin: !0,
|
|
2821
|
+
screenSMMax: !0,
|
|
2822
|
+
screenMD: !0,
|
|
2823
|
+
screenMDMin: !0,
|
|
2824
|
+
screenMDMax: !0,
|
|
2825
|
+
screenLG: !0,
|
|
2826
|
+
screenLGMin: !0,
|
|
2827
|
+
screenLGMax: !0,
|
|
2828
|
+
screenXL: !0,
|
|
2829
|
+
screenXLMin: !0,
|
|
2830
|
+
screenXLMax: !0,
|
|
2831
|
+
screenXXL: !0,
|
|
2832
|
+
screenXXLMin: !0
|
|
2833
|
+
}, nr = (e, t, n) => {
|
|
2834
|
+
const r = n.getDerivativeToken(e), { override: o, ...i } = t;
|
|
2835
|
+
let a = {
|
|
2836
|
+
...r,
|
|
2837
|
+
override: o
|
|
2838
|
+
};
|
|
2839
|
+
return a = pi(a), i && Object.entries(i).forEach(([s, c]) => {
|
|
2840
|
+
const { theme: u, ...h } = c;
|
|
2841
|
+
let l = h;
|
|
2842
|
+
u && (l = nr(
|
|
2843
|
+
{
|
|
2844
|
+
...a,
|
|
2845
|
+
...h
|
|
2846
|
+
},
|
|
2847
|
+
{
|
|
2848
|
+
override: h
|
|
2849
|
+
},
|
|
2850
|
+
u
|
|
2851
|
+
)), a[s] = l;
|
|
2852
|
+
}), a;
|
|
2853
|
+
};
|
|
2854
|
+
function Gi() {
|
|
2855
|
+
const {
|
|
2856
|
+
token: e,
|
|
2857
|
+
hashed: t,
|
|
2858
|
+
// @ts-expect-error
|
|
2859
|
+
theme: n = Wi,
|
|
2860
|
+
// @ts-expect-error
|
|
2861
|
+
override: r,
|
|
2862
|
+
// @ts-expect-error
|
|
2863
|
+
cssVar: o
|
|
2864
|
+
} = S(Fi()), [
|
|
2865
|
+
i,
|
|
2866
|
+
a,
|
|
2867
|
+
// @ts-expect-error
|
|
2868
|
+
s
|
|
2869
|
+
] = S(bo(
|
|
2870
|
+
D(n),
|
|
2871
|
+
D([yn.defaultSeed, e]),
|
|
2872
|
+
D({
|
|
2873
|
+
salt: `${mi}-${t || ""}`,
|
|
2874
|
+
override: r,
|
|
2875
|
+
getComputedToken: nr,
|
|
2876
|
+
cssVar: o && {
|
|
2877
|
+
prefix: o.prefix,
|
|
2878
|
+
key: o.key,
|
|
2879
|
+
unitless: ni,
|
|
2880
|
+
ignore: ti,
|
|
2881
|
+
preserve: Vi
|
|
2882
|
+
}
|
|
2883
|
+
})
|
|
2884
|
+
));
|
|
2885
|
+
return [n, s, t ? a : "", i, o];
|
|
2886
|
+
}
|
|
2887
|
+
const { genStyleHooks: Ui, genComponentStyleHook: Ca, genSubStyleComponent: Ta } = ei({
|
|
2888
|
+
usePrefix: () => {
|
|
2889
|
+
const { getPrefixCls: e, iconPrefixCls: t } = Te();
|
|
2890
|
+
return {
|
|
2891
|
+
iconPrefixCls: S(t),
|
|
2892
|
+
rootPrefixCls: e()
|
|
2893
|
+
};
|
|
2894
|
+
},
|
|
2895
|
+
useToken: () => {
|
|
2896
|
+
const [e, t, n, r, o] = Gi();
|
|
2897
|
+
return { theme: e, realToken: t, hashId: n, token: r, cssVar: o };
|
|
2898
|
+
},
|
|
2899
|
+
useCSP: () => {
|
|
2900
|
+
const { csp: e } = Te();
|
|
2901
|
+
return (e == null ? void 0 : e.value) ?? {};
|
|
2902
|
+
},
|
|
2903
|
+
layer: {
|
|
2904
|
+
name: "antdx",
|
|
2905
|
+
dependencies: ["antd"]
|
|
2906
|
+
}
|
|
2907
|
+
}), qi = (e) => {
|
|
2908
|
+
const { componentCls: t, paddingSM: n, padding: r } = e;
|
|
2909
|
+
return {
|
|
2910
|
+
[t]: {
|
|
2911
|
+
[`${t}-content`]: {
|
|
2912
|
+
// Shared: filled, outlined, shadow
|
|
2913
|
+
"&-filled,&-outlined,&-shadow": {
|
|
2914
|
+
padding: `${Me(n)} ${Me(r)}`,
|
|
2915
|
+
borderRadius: e.borderRadiusLG
|
|
2916
|
+
},
|
|
2917
|
+
// Filled:
|
|
2918
|
+
"&-filled": {
|
|
2919
|
+
backgroundColor: e.colorFillContent
|
|
2920
|
+
},
|
|
2921
|
+
// Outlined:
|
|
2922
|
+
"&-outlined": {
|
|
2923
|
+
border: `1px solid ${e.colorBorderSecondary}`
|
|
2924
|
+
},
|
|
2925
|
+
// Shadow:
|
|
2926
|
+
"&-shadow": {
|
|
2927
|
+
boxShadow: e.boxShadowTertiary
|
|
2928
|
+
}
|
|
2929
|
+
}
|
|
2930
|
+
}
|
|
2931
|
+
};
|
|
2932
|
+
}, Ki = (e) => {
|
|
2933
|
+
const { componentCls: t, fontSize: n, lineHeight: r, paddingSM: o, padding: i, calc: a } = e, s = a(n).mul(r).div(2).add(o).equal(), c = `${t}-content`;
|
|
2934
|
+
return {
|
|
2935
|
+
[t]: {
|
|
2936
|
+
[c]: {
|
|
2937
|
+
// round:
|
|
2938
|
+
"&-round": {
|
|
2939
|
+
borderRadius: {
|
|
2940
|
+
_skip_check_: !0,
|
|
2941
|
+
value: s
|
|
2942
|
+
},
|
|
2943
|
+
paddingInline: a(i).mul(1.25).equal()
|
|
2944
|
+
}
|
|
2945
|
+
},
|
|
2946
|
+
// corner:
|
|
2947
|
+
[`&-start ${c}-corner`]: {
|
|
2948
|
+
borderStartStartRadius: e.borderRadiusXS
|
|
2949
|
+
},
|
|
2950
|
+
[`&-end ${c}-corner`]: {
|
|
2951
|
+
borderStartEndRadius: e.borderRadiusXS
|
|
2952
|
+
}
|
|
2953
|
+
}
|
|
2954
|
+
};
|
|
2955
|
+
}, Yi = (e) => {
|
|
2956
|
+
const { componentCls: t, padding: n } = e;
|
|
2957
|
+
return {
|
|
2958
|
+
[`${t}-list`]: {
|
|
2959
|
+
display: "flex",
|
|
2960
|
+
flexDirection: "column",
|
|
2961
|
+
gap: n,
|
|
2962
|
+
overflowY: "auto"
|
|
2963
|
+
}
|
|
2964
|
+
};
|
|
2965
|
+
}, Zi = new Gn("loadingMove", {
|
|
2966
|
+
"0%": {
|
|
2967
|
+
transform: "translateY(0)"
|
|
2968
|
+
},
|
|
2969
|
+
"10%": {
|
|
2970
|
+
transform: "translateY(4px)"
|
|
2971
|
+
},
|
|
2972
|
+
"20%": {
|
|
2973
|
+
transform: "translateY(0)"
|
|
2974
|
+
},
|
|
2975
|
+
"30%": {
|
|
2976
|
+
transform: "translateY(-4px)"
|
|
2977
|
+
},
|
|
2978
|
+
"40%": {
|
|
2979
|
+
transform: "translateY(0)"
|
|
2980
|
+
}
|
|
2981
|
+
}), Qi = new Gn("cursorBlink", {
|
|
2982
|
+
"0%": {
|
|
2983
|
+
opacity: 1
|
|
2984
|
+
},
|
|
2985
|
+
"50%": {
|
|
2986
|
+
opacity: 0
|
|
2987
|
+
},
|
|
2988
|
+
"100%": {
|
|
2989
|
+
opacity: 1
|
|
2990
|
+
}
|
|
2991
|
+
}), Ji = (e) => {
|
|
2992
|
+
const { componentCls: t, fontSize: n, lineHeight: r, paddingSM: o, colorText: i, calc: a } = e;
|
|
2993
|
+
return {
|
|
2994
|
+
[t]: {
|
|
2995
|
+
display: "flex",
|
|
2996
|
+
columnGap: o,
|
|
2997
|
+
[`&${t}-end`]: {
|
|
2998
|
+
justifyContent: "end",
|
|
2999
|
+
flexDirection: "row-reverse",
|
|
3000
|
+
[`& ${t}-content-wrapper`]: {
|
|
3001
|
+
alignItems: "flex-end"
|
|
3002
|
+
}
|
|
3003
|
+
},
|
|
3004
|
+
[`&${t}-rtl`]: {
|
|
3005
|
+
direction: "rtl"
|
|
3006
|
+
},
|
|
3007
|
+
[`&${t}-typing ${t}-content:last-child::after`]: {
|
|
3008
|
+
content: '"|"',
|
|
3009
|
+
fontWeight: 900,
|
|
3010
|
+
userSelect: "none",
|
|
3011
|
+
opacity: 1,
|
|
3012
|
+
marginInlineStart: "0.1em",
|
|
3013
|
+
animationName: Qi,
|
|
3014
|
+
animationDuration: "0.8s",
|
|
3015
|
+
animationIterationCount: "infinite",
|
|
3016
|
+
animationTimingFunction: "linear"
|
|
3017
|
+
},
|
|
3018
|
+
// ============================ Avatar =============================
|
|
3019
|
+
[`& ${t}-avatar`]: {
|
|
3020
|
+
display: "inline-flex",
|
|
3021
|
+
justifyContent: "center",
|
|
3022
|
+
alignSelf: "flex-start"
|
|
3023
|
+
},
|
|
3024
|
+
// ======================== Header & Footer ========================
|
|
3025
|
+
[`& ${t}-header, & ${t}-footer`]: {
|
|
3026
|
+
fontSize: n,
|
|
3027
|
+
lineHeight: r,
|
|
3028
|
+
color: e.colorText
|
|
3029
|
+
},
|
|
3030
|
+
[`& ${t}-header`]: {
|
|
3031
|
+
marginBottom: e.paddingXXS
|
|
3032
|
+
},
|
|
3033
|
+
[`& ${t}-footer`]: {
|
|
3034
|
+
marginTop: o
|
|
3035
|
+
},
|
|
3036
|
+
// =========================== Content =============================
|
|
3037
|
+
[`& ${t}-content-wrapper`]: {
|
|
3038
|
+
flex: "auto",
|
|
3039
|
+
display: "flex",
|
|
3040
|
+
flexDirection: "column",
|
|
3041
|
+
alignItems: "flex-start",
|
|
3042
|
+
minWidth: 0,
|
|
3043
|
+
maxWidth: "100%"
|
|
3044
|
+
},
|
|
3045
|
+
[`& ${t}-content`]: {
|
|
3046
|
+
position: "relative",
|
|
3047
|
+
boxSizing: "border-box",
|
|
3048
|
+
minWidth: 0,
|
|
3049
|
+
maxWidth: "100%",
|
|
3050
|
+
color: i,
|
|
3051
|
+
fontSize: e.fontSize,
|
|
3052
|
+
lineHeight: e.lineHeight,
|
|
3053
|
+
minHeight: a(o).mul(2).add(a(r).mul(n)).equal(),
|
|
3054
|
+
wordBreak: "break-word",
|
|
3055
|
+
[`& ${t}-dot`]: {
|
|
3056
|
+
position: "relative",
|
|
3057
|
+
height: "100%",
|
|
3058
|
+
display: "flex",
|
|
3059
|
+
alignItems: "center",
|
|
3060
|
+
columnGap: e.marginXS,
|
|
3061
|
+
padding: `0 ${Me(e.paddingXXS)}`,
|
|
3062
|
+
"&-item": {
|
|
3063
|
+
backgroundColor: e.colorPrimary,
|
|
3064
|
+
borderRadius: "100%",
|
|
3065
|
+
width: 4,
|
|
3066
|
+
height: 4,
|
|
3067
|
+
animationName: Zi,
|
|
3068
|
+
animationDuration: "2s",
|
|
3069
|
+
animationIterationCount: "infinite",
|
|
3070
|
+
animationTimingFunction: "linear",
|
|
3071
|
+
"&:nth-child(1)": {
|
|
3072
|
+
animationDelay: "0s"
|
|
3073
|
+
},
|
|
3074
|
+
"&:nth-child(2)": {
|
|
3075
|
+
animationDelay: "0.2s"
|
|
3076
|
+
},
|
|
3077
|
+
"&:nth-child(3)": {
|
|
3078
|
+
animationDelay: "0.4s"
|
|
3079
|
+
}
|
|
3080
|
+
}
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3083
|
+
}
|
|
3084
|
+
};
|
|
3085
|
+
}, _i = () => ({}), rr = Ui(
|
|
3086
|
+
"Bubble",
|
|
3087
|
+
(e) => {
|
|
3088
|
+
const t = Nt(e, {});
|
|
3089
|
+
return [
|
|
3090
|
+
Ji(t),
|
|
3091
|
+
Yi(t),
|
|
3092
|
+
qi(t),
|
|
3093
|
+
Ki(t)
|
|
3094
|
+
];
|
|
3095
|
+
},
|
|
3096
|
+
_i
|
|
3097
|
+
), or = Symbol("BubbleContext"), $t = Q(), ea = (e) => {
|
|
3098
|
+
Ee(or, e), B(
|
|
3099
|
+
e,
|
|
3100
|
+
() => {
|
|
3101
|
+
$t.value = S(e), Ge($t);
|
|
3102
|
+
},
|
|
3103
|
+
{ immediate: !0, deep: !0 }
|
|
3104
|
+
);
|
|
3105
|
+
}, ta = () => pe(
|
|
3106
|
+
or,
|
|
3107
|
+
M(() => $t.value || {})
|
|
3108
|
+
), na = U({
|
|
3109
|
+
props: {
|
|
3110
|
+
value: Ue()
|
|
3111
|
+
},
|
|
3112
|
+
setup(e, { slots: t }) {
|
|
3113
|
+
return ea(M(() => e.value)), () => {
|
|
3114
|
+
var n;
|
|
3115
|
+
return (n = t.default) == null ? void 0 : n.call(t);
|
|
3116
|
+
};
|
|
3117
|
+
}
|
|
3118
|
+
}), ra = /* @__PURE__ */ U({
|
|
3119
|
+
name: "AXBubble",
|
|
3120
|
+
__name: "Bubble",
|
|
3121
|
+
props: bn({
|
|
3122
|
+
prefixCls: null,
|
|
3123
|
+
rootClassName: null,
|
|
3124
|
+
styles: null,
|
|
3125
|
+
classNames: null,
|
|
3126
|
+
avatar: null,
|
|
3127
|
+
placement: null,
|
|
3128
|
+
loading: {
|
|
3129
|
+
type: Boolean
|
|
3130
|
+
},
|
|
3131
|
+
typing: {
|
|
3132
|
+
type: Boolean
|
|
3133
|
+
},
|
|
3134
|
+
content: null,
|
|
3135
|
+
messageRender: {
|
|
3136
|
+
type: Function
|
|
3137
|
+
},
|
|
3138
|
+
loadingRender: {
|
|
3139
|
+
type: Function
|
|
3140
|
+
},
|
|
3141
|
+
variant: null,
|
|
3142
|
+
shape: null,
|
|
3143
|
+
onTypingComplete: null,
|
|
3144
|
+
header: null,
|
|
3145
|
+
footer: null
|
|
3146
|
+
}, {
|
|
3147
|
+
classNames: () => ({}),
|
|
3148
|
+
styles: () => ({}),
|
|
3149
|
+
placement: "start",
|
|
3150
|
+
loading: !1,
|
|
3151
|
+
content: "",
|
|
3152
|
+
variant: "filled"
|
|
3153
|
+
}),
|
|
3154
|
+
setup(e, {
|
|
3155
|
+
expose: t
|
|
3156
|
+
}) {
|
|
3157
|
+
const n = kt(e, ["prefixCls", "rootClassName", "classNames", "styles", "avatar", "placement", "loading", "loadingRender", "typing", "content", "messageRender", "variant", "shape", "onTypingComplete", "header", "footer"]);
|
|
3158
|
+
Fe(e, "content"), Fe(e, "prefixCls");
|
|
3159
|
+
const r = D(e.content);
|
|
3160
|
+
B(() => e.content, () => {
|
|
3161
|
+
r.value = e.content;
|
|
3162
|
+
});
|
|
3163
|
+
const {
|
|
3164
|
+
onUpdate: o
|
|
3165
|
+
} = S(ta()), i = D(null), {
|
|
3166
|
+
direction: a,
|
|
3167
|
+
getPrefixCls: s
|
|
3168
|
+
} = Te(), c = s("bubble", e.prefixCls), u = Hr("bubble"), [h, l, g, p] = Ir(e.typing), [d, y] = Pr(r, h, l, g), b = D(!1);
|
|
3169
|
+
B(d, () => {
|
|
3170
|
+
o == null || o();
|
|
3171
|
+
}), Et(() => {
|
|
3172
|
+
var v;
|
|
3173
|
+
!y.value && !e.loading ? b.value || (b.value = !0, (v = e.onTypingComplete) == null || v.call(e)) : b.value = !1;
|
|
3174
|
+
});
|
|
3175
|
+
const [T, C, A] = rr(() => c), m = M(() => [c, e.rootClassName, u.value.className, C, A, `${c}-${e.placement}`, {
|
|
3176
|
+
[`${c}-rtl`]: a.value === "rtl"
|
|
3177
|
+
}, {
|
|
3178
|
+
[`${c}-typing`]: y.value && !e.loading && !e.messageRender && !p.value
|
|
3179
|
+
}]), w = M(() => pr(e.avatar) ? e.avatar : P(br, e.avatar, null)), x = M(() => e.messageRender ? e.messageRender(d.value) : d.value), f = M(() => e.loading ? e.loadingRender ? e.loadingRender() : P(Rr, {
|
|
3180
|
+
prefixCls: c
|
|
3181
|
+
}, null) : P(mn, null, [x.value, y.value && _(p)])), E = M(() => {
|
|
3182
|
+
const v = P("div", {
|
|
3183
|
+
style: {
|
|
3184
|
+
...u.value.styles.content,
|
|
3185
|
+
...e.styles.content
|
|
3186
|
+
},
|
|
3187
|
+
class: [`${c}-content`, `${c}-content-${e.variant}`, {
|
|
3188
|
+
[`${c}-content-${e.shape}`]: e.shape
|
|
3189
|
+
}, u.value.classNames.content, e.classNames.content]
|
|
3190
|
+
}, [_(f)]);
|
|
3191
|
+
return e.header || e.footer ? P("div", {
|
|
3192
|
+
class: `${c}-content-wrapper`
|
|
3193
|
+
}, [e.header && P("div", {
|
|
3194
|
+
class: [`${c}-header`, u.value.classNames.header, e.classNames.header],
|
|
3195
|
+
style: {
|
|
3196
|
+
...u.value.styles.header,
|
|
3197
|
+
...e.styles.header
|
|
3198
|
+
}
|
|
3199
|
+
}, [e.header]), v, e.footer && P("div", {
|
|
3200
|
+
class: [`${c}-footer`, u.value.classNames.footer, e.classNames.footer],
|
|
3201
|
+
style: {
|
|
3202
|
+
...u.value.styles.footer,
|
|
3203
|
+
...e.styles.footer
|
|
3204
|
+
}
|
|
3205
|
+
}, [e.footer])]) : v;
|
|
3206
|
+
});
|
|
3207
|
+
return t({
|
|
3208
|
+
nativeElement: i
|
|
3209
|
+
}), () => T(P("div", Xe({
|
|
3210
|
+
style: {
|
|
3211
|
+
...u.value.style
|
|
3212
|
+
// ...(style as object),
|
|
3213
|
+
},
|
|
3214
|
+
class: _(m)
|
|
3215
|
+
}, n, {
|
|
3216
|
+
ref: i
|
|
3217
|
+
}), [e.avatar && P("div", {
|
|
3218
|
+
style: {
|
|
3219
|
+
...u.value.styles.avatar,
|
|
3220
|
+
...e.styles.avatar
|
|
3221
|
+
},
|
|
3222
|
+
class: [`${c}-avatar`, u.value.classNames.avatar, e.classNames.avatar]
|
|
3223
|
+
}, [_(w)]), _(E)]));
|
|
3224
|
+
}
|
|
3225
|
+
});
|
|
3226
|
+
function oa(e) {
|
|
3227
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
3228
|
+
}
|
|
3229
|
+
var ir = { exports: {} };
|
|
3230
|
+
/*!
|
|
3231
|
+
Copyright (c) 2018 Jed Watson.
|
|
3232
|
+
Licensed under the MIT License (MIT), see
|
|
3233
|
+
http://jedwatson.github.io/classnames
|
|
3234
|
+
*/
|
|
3235
|
+
(function(e) {
|
|
3236
|
+
(function() {
|
|
3237
|
+
var t = {}.hasOwnProperty;
|
|
3238
|
+
function n() {
|
|
3239
|
+
for (var i = "", a = 0; a < arguments.length; a++) {
|
|
3240
|
+
var s = arguments[a];
|
|
3241
|
+
s && (i = o(i, r(s)));
|
|
3242
|
+
}
|
|
3243
|
+
return i;
|
|
3244
|
+
}
|
|
3245
|
+
function r(i) {
|
|
3246
|
+
if (typeof i == "string" || typeof i == "number")
|
|
3247
|
+
return i;
|
|
3248
|
+
if (typeof i != "object")
|
|
3249
|
+
return "";
|
|
3250
|
+
if (Array.isArray(i))
|
|
3251
|
+
return n.apply(null, i);
|
|
3252
|
+
if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]"))
|
|
3253
|
+
return i.toString();
|
|
3254
|
+
var a = "";
|
|
3255
|
+
for (var s in i)
|
|
3256
|
+
t.call(i, s) && i[s] && (a = o(a, s));
|
|
3257
|
+
return a;
|
|
3258
|
+
}
|
|
3259
|
+
function o(i, a) {
|
|
3260
|
+
return a ? i ? i + " " + a : i + a : i;
|
|
3261
|
+
}
|
|
3262
|
+
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
3263
|
+
})();
|
|
3264
|
+
})(ir);
|
|
3265
|
+
var ia = ir.exports;
|
|
3266
|
+
const aa = /* @__PURE__ */ oa(ia);
|
|
3267
|
+
function ar(e) {
|
|
3268
|
+
const t = D(e), n = D((r) => {
|
|
3269
|
+
t.value && t.value(r);
|
|
3270
|
+
});
|
|
3271
|
+
return t.value = e, n.value;
|
|
3272
|
+
}
|
|
3273
|
+
const sa = `accept acceptcharset accesskey action allowfullscreen allowtransparency
|
|
3274
|
+
alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge
|
|
3275
|
+
charset checked classid classname colspan cols content contenteditable contextmenu
|
|
3276
|
+
controls coords crossorigin data datetime default defer dir disabled download draggable
|
|
3277
|
+
enctype form formaction formenctype formmethod formnovalidate formtarget frameborder
|
|
3278
|
+
headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity
|
|
3279
|
+
is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media
|
|
3280
|
+
mediagroup method min minlength multiple muted name novalidate nonce open
|
|
3281
|
+
optimum pattern placeholder poster preload radiogroup readonly rel required
|
|
3282
|
+
reversed role rowspan rows sandbox scope scoped scrolling seamless selected
|
|
3283
|
+
shape size sizes span spellcheck src srcdoc srclang srcset start step style
|
|
3284
|
+
summary tabindex target title type usemap value width wmode wrap`, ca = `onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown
|
|
3285
|
+
onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick
|
|
3286
|
+
onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown
|
|
3287
|
+
onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel
|
|
3288
|
+
onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough
|
|
3289
|
+
onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata
|
|
3290
|
+
onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`, hn = `${sa} ${ca}`.split(/[\s\n]+/), la = "aria-", ua = "data-";
|
|
3291
|
+
function gn(e, t) {
|
|
3292
|
+
return e.indexOf(t) === 0;
|
|
3293
|
+
}
|
|
3294
|
+
function fa(e, t = !1) {
|
|
3295
|
+
let n;
|
|
3296
|
+
t === !1 ? n = {
|
|
3297
|
+
aria: !0,
|
|
3298
|
+
data: !0,
|
|
3299
|
+
attr: !0
|
|
3300
|
+
} : t === !0 ? n = {
|
|
3301
|
+
aria: !0
|
|
3302
|
+
} : n = {
|
|
3303
|
+
...t
|
|
3304
|
+
};
|
|
3305
|
+
const r = {};
|
|
3306
|
+
return Object.keys(e).forEach((o) => {
|
|
3307
|
+
// Aria
|
|
3308
|
+
(n.aria && (o === "role" || gn(o, la)) || // Data
|
|
3309
|
+
n.data && gn(o, ua) || // Attr
|
|
3310
|
+
n.attr && (hn.includes(o) || hn.includes(o.toLowerCase()))) && (r[o] = e[o]);
|
|
3311
|
+
}), r;
|
|
3312
|
+
}
|
|
3313
|
+
function da(e) {
|
|
3314
|
+
const [t, n] = fe(e.value.length), r = M(() => e.value.slice(0, S(t))), o = M(() => {
|
|
3315
|
+
const a = S(r)[S(r).length - 1];
|
|
3316
|
+
return a ? a.key : null;
|
|
3317
|
+
});
|
|
3318
|
+
B(
|
|
3319
|
+
e,
|
|
3320
|
+
() => {
|
|
3321
|
+
var a;
|
|
3322
|
+
if (!(S(r).length && S(r).every((s, c) => {
|
|
3323
|
+
var u;
|
|
3324
|
+
return s.key === ((u = e.value[c]) == null ? void 0 : u.key);
|
|
3325
|
+
}))) {
|
|
3326
|
+
if (S(r).length === 0)
|
|
3327
|
+
n(1);
|
|
3328
|
+
else
|
|
3329
|
+
for (let s = 0; s < S(r).length; s += 1)
|
|
3330
|
+
if (S(r)[s].key !== ((a = e.value[s]) == null ? void 0 : a.key)) {
|
|
3331
|
+
n(s);
|
|
3332
|
+
break;
|
|
3333
|
+
}
|
|
3334
|
+
}
|
|
3335
|
+
},
|
|
3336
|
+
{ immediate: !0, deep: !0 }
|
|
3337
|
+
);
|
|
3338
|
+
const i = ar((a) => {
|
|
3339
|
+
a === S(o) && n(S(t) + 1);
|
|
3340
|
+
});
|
|
3341
|
+
return [r, i];
|
|
3342
|
+
}
|
|
3343
|
+
function ha(e, t) {
|
|
3344
|
+
const n = (o) => typeof t == "function" ? t(o) : t ? t[o.role] || {} : {};
|
|
3345
|
+
return M(() => (e.value || []).map((o, i) => {
|
|
3346
|
+
const a = o.key ?? `preset_${i}`;
|
|
3347
|
+
return {
|
|
3348
|
+
...n(o),
|
|
3349
|
+
...o,
|
|
3350
|
+
key: a
|
|
3351
|
+
};
|
|
3352
|
+
}));
|
|
3353
|
+
}
|
|
3354
|
+
const ga = 1, wa = /* @__PURE__ */ U({
|
|
3355
|
+
name: "AXBubbleList",
|
|
3356
|
+
__name: "BubbleList",
|
|
3357
|
+
props: bn({
|
|
3358
|
+
prefixCls: null,
|
|
3359
|
+
rootClassName: null,
|
|
3360
|
+
items: null,
|
|
3361
|
+
autoScroll: {
|
|
3362
|
+
type: Boolean
|
|
3363
|
+
},
|
|
3364
|
+
roles: {
|
|
3365
|
+
type: Function
|
|
3366
|
+
}
|
|
3367
|
+
}, {
|
|
3368
|
+
autoScroll: !0
|
|
3369
|
+
}),
|
|
3370
|
+
setup(e, {
|
|
3371
|
+
expose: t
|
|
3372
|
+
}) {
|
|
3373
|
+
const n = kt(e, ["prefixCls", "rootClassName", "items", "autoScroll", "roles"]);
|
|
3374
|
+
Fe(e, "items"), Fe(e, "prefixCls");
|
|
3375
|
+
const r = fa(n, {
|
|
3376
|
+
attr: !0,
|
|
3377
|
+
aria: !0
|
|
3378
|
+
}), o = D(e.items);
|
|
3379
|
+
B(() => e.items, () => {
|
|
3380
|
+
o.value = e.items;
|
|
3381
|
+
});
|
|
3382
|
+
const i = D(null), a = D({}), {
|
|
3383
|
+
getPrefixCls: s
|
|
3384
|
+
} = Te(), c = s("bubble", e.prefixCls), u = `${c}-list`, [h, l, g] = rr(c), [p, d] = fe(!1);
|
|
3385
|
+
Et(() => {
|
|
3386
|
+
d(!0), pn(() => {
|
|
3387
|
+
d(!1);
|
|
3388
|
+
});
|
|
3389
|
+
});
|
|
3390
|
+
const y = ha(o, e.roles), [b, T] = da(y), [C, A] = fe(!0), [m, w] = fe(0), x = (v) => {
|
|
3391
|
+
const $ = v.target;
|
|
3392
|
+
A($.scrollHeight - Math.abs($.scrollTop) - $.clientHeight <= ga);
|
|
3393
|
+
};
|
|
3394
|
+
B(m, () => {
|
|
3395
|
+
e.autoScroll && S(i) && S(C) && S(i).scrollTo({
|
|
3396
|
+
top: S(i).scrollHeight
|
|
3397
|
+
});
|
|
3398
|
+
}), B(() => S(b).length, () => {
|
|
3399
|
+
var v;
|
|
3400
|
+
if (e.autoScroll) {
|
|
3401
|
+
const $ = (v = S(b)[S(b).length - 2]) == null ? void 0 : v.key, k = S(a)[$];
|
|
3402
|
+
if (k) {
|
|
3403
|
+
const {
|
|
3404
|
+
nativeElement: ie
|
|
3405
|
+
} = k, {
|
|
3406
|
+
top: q,
|
|
3407
|
+
bottom: ye
|
|
3408
|
+
} = ie.getBoundingClientRect(), {
|
|
3409
|
+
top: ve,
|
|
3410
|
+
bottom: Ze
|
|
3411
|
+
} = S(i).getBoundingClientRect();
|
|
3412
|
+
q < Ze && ye > ve && (w(S(m) + 1), A(!0));
|
|
3413
|
+
}
|
|
3414
|
+
}
|
|
3415
|
+
});
|
|
3416
|
+
const f = ar(() => {
|
|
3417
|
+
e.autoScroll && w(S(m) + 1);
|
|
3418
|
+
}), E = M(() => ({
|
|
3419
|
+
onUpdate: f
|
|
3420
|
+
}));
|
|
3421
|
+
return t({
|
|
3422
|
+
nativeElement: i,
|
|
3423
|
+
scrollTo: ({
|
|
3424
|
+
key: v,
|
|
3425
|
+
offset: $,
|
|
3426
|
+
behavior: k = "smooth",
|
|
3427
|
+
block: ie
|
|
3428
|
+
}) => {
|
|
3429
|
+
if (typeof $ == "number")
|
|
3430
|
+
S(i).scrollTo({
|
|
3431
|
+
top: $,
|
|
3432
|
+
behavior: k
|
|
3433
|
+
});
|
|
3434
|
+
else if (v !== void 0) {
|
|
3435
|
+
const q = S(a)[v];
|
|
3436
|
+
if (q) {
|
|
3437
|
+
const ye = S(b).findIndex((ve) => ve.key === v);
|
|
3438
|
+
A(ye === S(b).length - 1), q.nativeElement.scrollIntoView({
|
|
3439
|
+
behavior: k,
|
|
3440
|
+
block: ie
|
|
3441
|
+
});
|
|
3442
|
+
}
|
|
3443
|
+
}
|
|
3444
|
+
}
|
|
3445
|
+
}), () => h(P(na, {
|
|
3446
|
+
value: E.value
|
|
3447
|
+
}, {
|
|
3448
|
+
default: () => [P("div", Xe(r, {
|
|
3449
|
+
class: aa(u, e.rootClassName, l, g, {
|
|
3450
|
+
[`${u}-reach-end`]: C.value
|
|
3451
|
+
}),
|
|
3452
|
+
ref: i,
|
|
3453
|
+
onScroll: x
|
|
3454
|
+
}), [S(b).map(({
|
|
3455
|
+
key: v,
|
|
3456
|
+
...$
|
|
3457
|
+
}) => P(ra, Xe($, {
|
|
3458
|
+
key: v,
|
|
3459
|
+
ref: (k) => {
|
|
3460
|
+
k ? a.value[v] = k : delete a.value[v];
|
|
3461
|
+
},
|
|
3462
|
+
typing: p.value ? $.typing : !1,
|
|
3463
|
+
onTypingComplete: () => {
|
|
3464
|
+
var k;
|
|
3465
|
+
(k = $.onTypingComplete) == null || k.call($), T(v);
|
|
3466
|
+
}
|
|
3467
|
+
}), null))])]
|
|
3468
|
+
}));
|
|
3469
|
+
}
|
|
3470
|
+
});
|
|
3471
|
+
export {
|
|
3472
|
+
ra as Bubble,
|
|
3473
|
+
wa as BubbleList,
|
|
3474
|
+
Sa as XProvider,
|
|
3475
|
+
va as defaultPrefixCls,
|
|
3476
|
+
Te as useXProviderContext
|
|
3477
|
+
};
|