@das-fed/upf-utils 6.4.0-dev.247 → 6.4.0-dev.248

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/api-services/modules/app-manage/es5.js +1079 -1088
  2. package/api-services/modules/app-manage/index.js +883 -897
  3. package/api-services/modules/app-manage/index.js.gz +0 -0
  4. package/api-services/modules/authentication/es5.js +1079 -1088
  5. package/api-services/modules/authentication/index.js +883 -897
  6. package/api-services/modules/authentication/index.js.gz +0 -0
  7. package/api-services/modules/bems/es5.js +1106 -1118
  8. package/api-services/modules/bems/index.js +905 -923
  9. package/api-services/modules/bems/index.js.gz +0 -0
  10. package/api-services/modules/contract/es5.js +852 -849
  11. package/api-services/modules/contract/index.js +665 -661
  12. package/api-services/modules/contract/index.js.gz +0 -0
  13. package/api-services/modules/duty-manage/es5.js +1058 -1048
  14. package/api-services/modules/duty-manage/index.js +872 -858
  15. package/api-services/modules/duty-manage/index.js.gz +0 -0
  16. package/api-services/modules/enterpriseright/es5.js +1114 -1102
  17. package/api-services/modules/enterpriseright/index.js +920 -902
  18. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  19. package/api-services/modules/es5.js +1349 -1361
  20. package/api-services/modules/gateway-edge/es5.js +1088 -1079
  21. package/api-services/modules/gateway-edge/index.js +897 -883
  22. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  23. package/api-services/modules/index.js +1055 -1073
  24. package/api-services/modules/index.js.gz +0 -0
  25. package/api-services/modules/iot/es5.js +871 -868
  26. package/api-services/modules/iot/index.js +685 -681
  27. package/api-services/modules/iot/index.js.gz +0 -0
  28. package/api-services/modules/knowledge/es5.js +1102 -1114
  29. package/api-services/modules/knowledge/index.js +902 -920
  30. package/api-services/modules/knowledge/index.js.gz +0 -0
  31. package/api-services/modules/permission/es5.js +852 -849
  32. package/api-services/modules/permission/index.js +665 -661
  33. package/api-services/modules/permission/index.js.gz +0 -0
  34. package/api-services/modules/platformManage/es5.js +1144 -1132
  35. package/api-services/modules/platformManage/index.js +953 -935
  36. package/api-services/modules/platformManage/index.js.gz +0 -0
  37. package/api-services/modules/portal/es5.js +1102 -1114
  38. package/api-services/modules/portal/index.js +902 -920
  39. package/api-services/modules/portal/index.js.gz +0 -0
  40. package/api-services/modules/supplier/es5.js +1081 -1093
  41. package/api-services/modules/supplier/index.js +883 -901
  42. package/api-services/modules/supplier/index.js.gz +0 -0
  43. package/api-services/modules/supplychain-manage/es5.js +1102 -1114
  44. package/api-services/modules/supplychain-manage/index.js +902 -920
  45. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  46. package/api-services/modules/systemConfiguration/es5.js +817 -815
  47. package/api-services/modules/systemConfiguration/index.js +640 -636
  48. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  49. package/common-info/es5.js +1257 -1248
  50. package/common-info/getPermissionMethod/es5.js +859 -856
  51. package/common-info/getPermissionMethod/index.js +669 -665
  52. package/common-info/getPermissionMethod/index.js.gz +0 -0
  53. package/common-info/index.js +1040 -1026
  54. package/common-info/index.js.gz +0 -0
  55. package/package.json +3 -3
  56. package/theme/es5.d.ts +4 -0
  57. package/theme/es5.js +488 -389
  58. package/theme/index.d.ts +4 -0
  59. package/theme/index.js +412 -334
  60. package/theme/index.js.gz +0 -0
package/theme/index.js CHANGED
@@ -1,9 +1,9 @@
1
- import { bus as re } from "@das-fed/mframe";
2
- const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
1
+ import { bus as fe } from "@das-fed/mframe";
2
+ const p = "#ffffff", d = "#000000", ne = 0.115, q = (e) => {
3
3
  const r = String(e || "").trim();
4
4
  return /^#([\da-f]{3}|[\da-f]{6})$/i.test(r) ? r.length === 4 ? `#${r.slice(1).split("").map((t) => `${t}${t}`).join("")}` : r : "";
5
- }, _ = (e) => {
6
- const r = U(e);
5
+ }, B = (e) => {
6
+ const r = q(e);
7
7
  if (!r)
8
8
  return null;
9
9
  const t = r.slice(1);
@@ -12,23 +12,23 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
12
12
  green: Number.parseInt(t.slice(2, 4), 16),
13
13
  blue: Number.parseInt(t.slice(4, 6), 16)
14
14
  };
15
- }, w = (e) => Math.min(255, Math.max(0, Math.round(e))), $ = (e, r, t, a) => {
16
- const u = _(e), f = _(r);
15
+ }, A = (e) => Math.min(255, Math.max(0, Math.round(e))), J = (e, r, t, o) => {
16
+ const u = B(e), f = B(r);
17
17
  if (!u || !f)
18
- return a;
19
- const l = Math.min(1, Math.max(0, t)), s = w(u.red * l + f.red * (1 - l)), n = w(u.green * l + f.green * (1 - l)), p = w(u.blue * l + f.blue * (1 - l));
20
- return `#${[s, n, p].map((d) => d.toString(16).padStart(2, "0")).join("")}`;
21
- }, oe = (e, r, t) => {
22
- const a = _(e);
23
- if (!a)
18
+ return o;
19
+ const n = Math.min(1, Math.max(0, t)), l = A(u.red * n + f.red * (1 - n)), i = A(u.green * n + f.green * (1 - n)), c = A(u.blue * n + f.blue * (1 - n));
20
+ return `#${[l, i, c].map((m) => m.toString(16).padStart(2, "0")).join("")}`;
21
+ }, le = (e, r, t) => {
22
+ const o = B(e);
23
+ if (!o)
24
24
  return t;
25
25
  const u = Math.min(1, Math.max(0, r));
26
- return `rgba(${a.red}, ${a.green}, ${a.blue}, ${u})`;
27
- }, y = (e, r = c) => $(e || "#5582F3", r || c, te, "#ebf1fe"), N = "#5582f3", ae = {
26
+ return `rgba(${o.red}, ${o.green}, ${o.blue}, ${u})`;
27
+ }, y = (e, r = p) => J(e || "#5582F3", r || p, ne, "#ebf1fe"), O = "#5582f3", ie = {
28
28
  "--upf-brand-primary": "#ffffff",
29
29
  "--upf-brand-secondary": "#f2f6ff",
30
- "--upf-color-primary": N,
31
- "--upf-color-primary-bg": y(N),
30
+ "--upf-color-primary": O,
31
+ "--upf-color-primary-bg": y(O),
32
32
  "--upf-color-success": "#52c41a",
33
33
  "--upf-color-warning": "#faad14",
34
34
  "--upf-color-error": "#ff4d4f",
@@ -62,19 +62,19 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
62
62
  "--upf-border-radius": "4px",
63
63
  "--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.08)",
64
64
  "--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.12)"
65
- }, ue = {
65
+ }, se = {
66
66
  name: "cjb",
67
67
  displayName: "纯净白",
68
68
  description: "白底壳层主题,内容区沿用浅蓝高亮交互色",
69
69
  mode: "light",
70
70
  source: "preset",
71
71
  basePresetName: "cjb",
72
- variables: ae
73
- }, D = "#5582f3", fe = {
72
+ variables: ie
73
+ }, L = "#5582f3", ce = {
74
74
  "--upf-brand-primary": "#0e5fd8",
75
75
  "--upf-brand-secondary": "#3579de",
76
- "--upf-color-primary": D,
77
- "--upf-color-primary-bg": y(D),
76
+ "--upf-color-primary": L,
77
+ "--upf-color-primary-bg": y(L),
78
78
  "--upf-color-success": "#52c41a",
79
79
  "--upf-color-warning": "#faad14",
80
80
  "--upf-color-error": "#ff4d4f",
@@ -108,19 +108,19 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
108
108
  "--upf-border-radius": "4px",
109
109
  "--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.1)",
110
110
  "--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.15)"
111
- }, le = {
111
+ }, pe = {
112
112
  name: "default",
113
113
  displayName: "经典蓝",
114
114
  description: "经典蓝导航主题,内容区沿用浅底与高亮蓝交互色",
115
115
  mode: "light",
116
116
  source: "preset",
117
117
  basePresetName: "default",
118
- variables: fe
119
- }, R = "#e63946", ne = {
118
+ variables: ce
119
+ }, z = "#e63946", me = {
120
120
  "--upf-brand-primary": "#eb0e1b",
121
121
  "--upf-brand-secondary": "#f15760",
122
- "--upf-color-primary": R,
123
- "--upf-color-primary-bg": y(R),
122
+ "--upf-color-primary": z,
123
+ "--upf-color-primary-bg": y(z),
124
124
  "--upf-color-success": "#52c41a",
125
125
  "--upf-color-warning": "#faad14",
126
126
  "--upf-color-error": "#ff4d4f",
@@ -154,19 +154,19 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
154
154
  "--upf-border-radius": "4px",
155
155
  "--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.08)",
156
156
  "--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.12)"
157
- }, ie = {
157
+ }, de = {
158
158
  name: "dkh",
159
159
  displayName: "大咖红",
160
160
  description: "大咖红主题,壳层与内容交互色保持同系红色",
161
161
  mode: "light",
162
162
  source: "preset",
163
163
  basePresetName: "dkh",
164
- variables: ne
165
- }, M = "#5582f3", se = {
164
+ variables: me
165
+ }, U = "#5582f3", ge = {
166
166
  "--upf-brand-primary": "#1f2346",
167
167
  "--upf-brand-secondary": "#2d3158",
168
- "--upf-color-primary": M,
169
- "--upf-color-primary-bg": y(M),
168
+ "--upf-color-primary": U,
169
+ "--upf-color-primary-bg": y(U),
170
170
  "--upf-color-success": "#52c41a",
171
171
  "--upf-color-warning": "#faad14",
172
172
  "--upf-color-error": "#ff4d4f",
@@ -200,47 +200,47 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
200
200
  "--upf-border-radius": "4px",
201
201
  "--upf-box-shadow": "0 6px 18px rgba(15, 23, 42, 0.08)",
202
202
  "--upf-box-shadow-elevated": "0 10px 28px rgba(35, 41, 75, 0.12)"
203
- }, ce = {
203
+ }, be = {
204
204
  name: "ssl",
205
205
  displayName: "深邃蓝",
206
206
  description: "深邃蓝壳层主题,内容区沿用浅底与高亮蓝交互色",
207
207
  mode: "dark",
208
208
  source: "preset",
209
209
  basePresetName: "ssl",
210
- variables: se
211
- }, pe = ["default", "cjb", "ssl", "dkh"], k = {
212
- default: le,
213
- cjb: ue,
214
- ssl: ce,
215
- dkh: ie
216
- }, me = (e) => ({ ...e }), j = (e) => ({
210
+ variables: ge
211
+ }, he = ["default", "cjb", "ssl", "dkh"], H = {
212
+ default: pe,
213
+ cjb: se,
214
+ ssl: be,
215
+ dkh: de
216
+ }, ye = (e) => ({ ...e }), X = (e) => ({
217
217
  ...e,
218
- variables: me(e.variables)
219
- }), h = (e) => {
218
+ variables: ye(e.variables)
219
+ }), g = (e) => {
220
220
  const r = String(e || "").trim();
221
- return k[r] ? j(k[r]) : void 0;
222
- }, de = () => pe.map((e) => j(k[e])), V = "themeChange", v = "upf-theme-root-vars", ge = "upf-default-theme-vars", be = ["--upf-color-primary", "--upf-brand-primary"], P = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakSet(), b = /* @__PURE__ */ new WeakMap(), x = (e) => e ? Object.entries(A(e)).reduce((r, [t, a]) => (r[t] = String(a ?? ""), r), {}) : null, A = (e) => e, o = (e, r) => {
223
- const t = A(e);
221
+ return H[r] ? X(H[r]) : void 0;
222
+ }, ve = () => he.map((e) => X(H[e])), j = "themeChange", E = "upf-theme-root-vars", xe = "upf-default-theme-vars", T = "upf-theme-config", Ee = ["--upf-color-primary", "--upf-brand-primary"], $ = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakSet(), h = /* @__PURE__ */ new WeakMap(), x = (e) => e ? Object.entries(D(e)).reduce((r, [t, o]) => (r[t] = String(o ?? ""), r), {}) : null, D = (e) => e, a = (e, r) => {
223
+ const t = D(e);
224
224
  return String((r ? t[r] : "") ?? "");
225
- }, i = (e, r) => r.map((t) => ({ target: t, from: e })), W = (e) => {
226
- var a;
227
- const r = A(e), t = Object.entries(r).reduce((u, [f, l]) => (u[f] = String(l ?? ""), u), {});
228
- return (a = t["--upf-color-primary-bg"]) != null && a.trim() || (t["--upf-color-primary-bg"] = y(
225
+ }, s = (e, r) => r.map((t) => ({ target: t, from: e })), R = (e) => {
226
+ var o;
227
+ const r = D(e), t = Object.entries(r).reduce((u, [f, n]) => (u[f] = String(n ?? ""), u), {});
228
+ return (o = t["--upf-color-primary-bg"]) != null && o.trim() || (t["--upf-color-primary-bg"] = y(
229
229
  t["--upf-color-primary"],
230
- t["--upf-bg-primary"] || c
230
+ t["--upf-bg-primary"] || p
231
231
  )), t;
232
- }, ye = {
232
+ }, Te = {
233
233
  "#5582f3": "#3761CA",
234
234
  "#e63946": "#C9303C"
235
- }, O = (e, r) => {
235
+ }, W = (e, r) => {
236
236
  const t = e || "#5582F3";
237
- return ye[U(t).toLowerCase()] || r(t, m, 0.84, "#3761CA");
238
- }, xe = "#999", ve = (e) => [e.themeName, e.basePresetName].some((r) => String(r || "").trim() === "dkh"), he = (e) => ve(e) ? xe : o(e.variables, "--upf-color-primary"), Ee = (e) => Array.isArray(e) ? [...e] : [e], E = (e, r, t = {}) => r.reduce((a, u) => {
239
- const f = u.resolve ? u.resolve({ variables: e, result: a, mixHexColor: $, toRgbaColor: oe, ...t }) : u.from ? o(e, String(u.from)) : String(u.value ?? "");
240
- return Ee(u.target).forEach((l) => {
241
- a[l] = String(f ?? "");
242
- }), a;
243
- }, {}), Ce = [
237
+ return Te[q(t).toLowerCase()] || r(t, d, 0.84, "#3761CA");
238
+ }, Ce = "#999", Se = (e) => [e.themeName, e.basePresetName].some((r) => String(r || "").trim() === "dkh"), Fe = (e) => Se(e) ? Ce : a(e.variables, "--upf-color-primary"), we = (e) => Array.isArray(e) ? [...e] : [e], C = (e, r, t = {}) => r.reduce((o, u) => {
239
+ const f = u.resolve ? u.resolve({ variables: e, result: o, mixHexColor: J, toRgbaColor: le, ...t }) : u.from ? a(e, String(u.from)) : String(u.value ?? "");
240
+ return we(u.target).forEach((n) => {
241
+ o[n] = String(f ?? "");
242
+ }), o;
243
+ }, {}), _e = [
244
244
  { target: "--upf-primary", from: "--upf-color-primary" },
245
245
  { target: "--upf-text", from: "--upf-text-primary" },
246
246
  { target: "--upf-surface", from: "--upf-bg-primary" },
@@ -250,7 +250,7 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
250
250
  { target: "--upf-menu-item-hover-bg", from: "--upf-menu-hover-bg" },
251
251
  { target: "--upf-menu-item-active-bg", from: "--upf-menu-active-bg" },
252
252
  { target: "--upf-menu-item-active-text", from: "--upf-menu-active-text" }
253
- ], Te = [
253
+ ], Ne = [
254
254
  { target: "--el-color-primary", from: "--upf-color-primary" },
255
255
  { target: "--el-color-success", from: "--upf-color-success" },
256
256
  { target: "--el-color-warning", from: "--upf-color-warning" },
@@ -278,18 +278,18 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
278
278
  { target: "--el-checkbox-font-weight", value: "400" },
279
279
  { target: "--el-checkbox-input-width", value: "14px" },
280
280
  { target: "--el-checkbox-input-height", value: "14px" },
281
- { target: "--el-checkbox-checked-icon-color", value: c },
281
+ { target: "--el-checkbox-checked-icon-color", value: p },
282
282
  {
283
283
  target: "--el-checkbox-input-border",
284
- resolve: ({ variables: e }) => `1px solid ${o(e, "--upf-border-color")}`
284
+ resolve: ({ variables: e }) => `1px solid ${a(e, "--upf-border-color")}`
285
285
  }
286
- ], Fe = [
286
+ ], Ae = [
287
287
  { target: "--das-ui-color-primary-level1", from: "--upf-color-primary-bg" },
288
- ...i("--upf-color-primary-bg", [
288
+ ...s("--upf-color-primary-bg", [
289
289
  "--das-ui-color-primary-level1",
290
290
  "--das-ui-upload-bgcolor-hover"
291
291
  ]),
292
- ...i("--upf-bg-primary", [
292
+ ...s("--upf-bg-primary", [
293
293
  "--das-black-list-mange-color-white"
294
294
  ]),
295
295
  { target: "--das-ui-color-primary", from: "--upf-color-primary" },
@@ -317,7 +317,7 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
317
317
  { target: "--das-ui-rich-editor-active-font-color", from: "--upf-color-primary" },
318
318
  {
319
319
  target: "--das-ui-dropdown-bgff-color",
320
- resolve: ({ variables: e }) => o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary")
320
+ resolve: ({ variables: e }) => a(e, "--upf-bg-elevated") || a(e, "--upf-bg-primary")
321
321
  },
322
322
  { target: "--das-ui-dropdown-divided-color", from: "--upf-border-color" },
323
323
  { target: "--das-ui-dropdown-active-color", from: "--upf-color-primary" },
@@ -338,8 +338,8 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
338
338
  {
339
339
  target: "--das-ui-special-range-picker-in-range",
340
340
  resolve: ({ variables: e, mixHexColor: r }) => r(
341
- o(e, "--upf-color-primary"),
342
- o(e, "--upf-bg-primary"),
341
+ a(e, "--upf-color-primary"),
342
+ a(e, "--upf-bg-primary"),
343
343
  0.08,
344
344
  "#F2F6FF"
345
345
  )
@@ -347,8 +347,8 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
347
347
  {
348
348
  target: "--das-ui-special-range-picker-new-range",
349
349
  resolve: ({ variables: e, mixHexColor: r }) => r(
350
- o(e, "--upf-color-primary"),
351
- o(e, "--upf-bg-primary"),
350
+ a(e, "--upf-color-primary"),
351
+ a(e, "--upf-bg-primary"),
352
352
  0.14,
353
353
  "#E3EBFF"
354
354
  )
@@ -367,7 +367,7 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
367
367
  { target: "--das-input-base-border-color", from: "--upf-border-color" },
368
368
  {
369
369
  target: ["--upf-form-active-border-color", "--das-input-active-border-color", "--upf-date-picker-active-border-color"],
370
- resolve: he
370
+ resolve: Fe
371
371
  },
372
372
  { target: "--das-input-font-color", from: "--upf-text-primary" },
373
373
  { target: "--das-input-sub-font-color", from: "--upf-text-placeholder" },
@@ -378,16 +378,18 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
378
378
  { target: "--das-ui-scrollbar-thumb-hover-color", from: "--upf-text-secondary" },
379
379
  { target: "--das-ui-scrollbar-padding", value: "1px" },
380
380
  { target: "--das-ui-scrollbar-thumb-size", value: "8px" },
381
- { target: "--das-user-manage-white", value: c },
381
+ { target: "--das-user-manage-white", value: p },
382
382
  { target: "--das-user-manage-shadow-color", value: "rgba(38, 38, 38, 0.1)" },
383
383
  { target: "--das-user-manage-border-color", value: "rgba(38, 38, 38, 0.1)" },
384
+ { target: "--das-layout-micro-container-bg-color", value: "#e2e7ef" },
385
+ { target: "--das-layout-breadcrumb-bg-color", value: "#ffffff" },
384
386
  { target: "--das-ui-font-size-sm", value: "12px" },
385
387
  { target: "--das-ui-font-size-md", value: "14px" },
386
388
  { target: "--das-ui-font-size-lg", value: "16px" },
387
389
  { target: "--das-upf-ui-font-size-sm", value: "14px" },
388
390
  { target: "--das-upf-ui-line-height", value: "32px" },
389
391
  { target: "--das-ui-text-tooltip-shadow", value: "rgba(0, 0, 0, 0.2)" },
390
- { target: "--das-ui-text-tooltip-bgcolor", value: c },
392
+ { target: "--das-ui-text-tooltip-bgcolor", value: p },
391
393
  { target: "--das-ui-search-form-font-color", from: "--upf-text-primary" },
392
394
  { target: "--das-ui-search-form-filter-font-color", from: "--upf-text-secondary" },
393
395
  { target: "--das-ui-search-form-filter-bgcolor", from: "--upf-bg-secondary" },
@@ -404,7 +406,7 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
404
406
  { target: "--das-ui-steps-title-font-size", value: "12px" },
405
407
  {
406
408
  target: "--das-ui-collaspe-bgcolor",
407
- resolve: ({ variables: e }) => o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary")
409
+ resolve: ({ variables: e }) => a(e, "--upf-bg-elevated") || a(e, "--upf-bg-primary")
408
410
  },
409
411
  { target: "--das-ui-calendar-color-text", value: "#212121" },
410
412
  { target: "--das-ui-calendar-color-border", value: "#D9D9D9" },
@@ -416,8 +418,8 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
416
418
  {
417
419
  target: "--das-ui-color-primary-level2",
418
420
  resolve: ({ variables: e, mixHexColor: r }) => r(
419
- o(e, "--upf-color-primary"),
420
- o(e, "--upf-bg-primary"),
421
+ a(e, "--upf-color-primary"),
422
+ a(e, "--upf-bg-primary"),
421
423
  0.16,
422
424
  "#E0EFFE"
423
425
  )
@@ -425,8 +427,8 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
425
427
  {
426
428
  target: "--das-ui-color-primary-level3",
427
429
  resolve: ({ variables: e, mixHexColor: r }) => r(
428
- o(e, "--upf-color-primary"),
429
- o(e, "--upf-bg-primary"),
430
+ a(e, "--upf-color-primary"),
431
+ a(e, "--upf-bg-primary"),
430
432
  0.32,
431
433
  "#B3D5FF"
432
434
  )
@@ -434,8 +436,8 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
434
436
  {
435
437
  target: "--das-ui-color-primary-level4",
436
438
  resolve: ({ variables: e, mixHexColor: r }) => r(
437
- o(e, "--upf-color-primary"),
438
- o(e, "--upf-bg-primary"),
439
+ a(e, "--upf-color-primary"),
440
+ a(e, "--upf-bg-primary"),
439
441
  0.48,
440
442
  "#85B8FE"
441
443
  )
@@ -443,29 +445,29 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
443
445
  {
444
446
  target: "--das-ui-color-primary-level5",
445
447
  resolve: ({ variables: e, mixHexColor: r }) => r(
446
- o(e, "--upf-color-primary"),
447
- o(e, "--upf-bg-primary"),
448
+ a(e, "--upf-color-primary"),
449
+ a(e, "--upf-bg-primary"),
448
450
  0.68,
449
451
  "#5797FF"
450
452
  )
451
453
  },
452
454
  {
453
455
  target: "--das-ui-color-primary-level7",
454
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), m, 0.82, "#104CCC")
456
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary"), d, 0.82, "#104CCC")
455
457
  },
456
458
  {
457
459
  target: "--das-ui-color-primary-level8",
458
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), m, 0.68, "#002EA3")
460
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary"), d, 0.68, "#002EA3")
459
461
  },
460
462
  {
461
463
  target: "--das-ui-color-primary-level9",
462
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), m, 0.5, "#001F7A")
464
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary"), d, 0.5, "#001F7A")
463
465
  },
464
466
  {
465
467
  target: "--das-ui-color-danger-level1",
466
468
  resolve: ({ variables: e, mixHexColor: r }) => r(
467
- o(e, "--upf-color-error"),
468
- o(e, "--upf-bg-primary"),
469
+ a(e, "--upf-color-error"),
470
+ a(e, "--upf-bg-primary"),
469
471
  0.14,
470
472
  "#FFDBE0"
471
473
  )
@@ -473,8 +475,8 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
473
475
  {
474
476
  target: "--das-ui-color-danger-level2",
475
477
  resolve: ({ variables: e, mixHexColor: r }) => r(
476
- o(e, "--upf-color-error"),
477
- o(e, "--upf-bg-primary"),
478
+ a(e, "--upf-color-error"),
479
+ a(e, "--upf-bg-primary"),
478
480
  0.08,
479
481
  "#FFF2F4"
480
482
  )
@@ -482,8 +484,8 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
482
484
  {
483
485
  target: "--das-ui-color-warning-level1",
484
486
  resolve: ({ variables: e, mixHexColor: r }) => r(
485
- o(e, "--upf-color-warning"),
486
- o(e, "--upf-bg-primary"),
487
+ a(e, "--upf-color-warning"),
488
+ a(e, "--upf-bg-primary"),
487
489
  0.08,
488
490
  "#FFFBF2"
489
491
  )
@@ -491,8 +493,8 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
491
493
  {
492
494
  target: "--das-ui-color-warning-level2",
493
495
  resolve: ({ variables: e, mixHexColor: r }) => r(
494
- o(e, "--upf-color-warning"),
495
- o(e, "--upf-bg-primary"),
496
+ a(e, "--upf-color-warning"),
497
+ a(e, "--upf-bg-primary"),
496
498
  0.16,
497
499
  "#FFF1D4"
498
500
  )
@@ -500,8 +502,8 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
500
502
  {
501
503
  target: "--das-ui-color-success-level1",
502
504
  resolve: ({ variables: e, mixHexColor: r }) => r(
503
- o(e, "--upf-color-success"),
504
- o(e, "--upf-bg-primary"),
505
+ a(e, "--upf-color-success"),
506
+ a(e, "--upf-bg-primary"),
505
507
  0.08,
506
508
  "#F2FFF5"
507
509
  )
@@ -509,8 +511,8 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
509
511
  {
510
512
  target: "--das-ui-color-success-level2",
511
513
  resolve: ({ variables: e, mixHexColor: r }) => r(
512
- o(e, "--upf-color-success"),
513
- o(e, "--upf-bg-primary"),
514
+ a(e, "--upf-color-success"),
515
+ a(e, "--upf-bg-primary"),
514
516
  0.16,
515
517
  "#DCFAE4"
516
518
  )
@@ -518,30 +520,30 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
518
520
  {
519
521
  target: "--das-ui-color-amount",
520
522
  resolve: ({ variables: e, mixHexColor: r }) => r(
521
- o(e, "--upf-color-warning"),
522
- o(e, "--upf-color-error"),
523
+ a(e, "--upf-color-warning"),
524
+ a(e, "--upf-color-error"),
523
525
  0.55,
524
526
  "#FF5F1F"
525
527
  )
526
528
  },
527
529
  {
528
530
  target: "--das-ui-button-primary-hover",
529
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), m, 0.82, "#104CCC")
531
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary"), d, 0.82, "#104CCC")
530
532
  },
531
- ...i("--upf-color-primary", [
533
+ ...s("--upf-color-primary", [
532
534
  "--das-ui-search-form-primary-color"
533
535
  ]),
534
- ...i("--upf-text-primary", [
536
+ ...s("--upf-text-primary", [
535
537
  "--das-ui-tag-list-text-color"
536
538
  ]),
537
- ...i("--upf-border-color", [
539
+ ...s("--upf-border-color", [
538
540
  "--das-ui-tag-list-border-color",
539
541
  "--das-ui-upload-border-color"
540
542
  ]),
541
- ...i("--upf-bg-secondary", [
543
+ ...s("--upf-bg-secondary", [
542
544
  "--das-ui-upload-bgcolor"
543
545
  ]),
544
- ...i("--upf-text-secondary", [
546
+ ...s("--upf-text-secondary", [
545
547
  "--das-ui-search-form-tip-color"
546
548
  ]),
547
549
  { target: "--das-ui-layout-header-menu-border-color", from: "--upf-border-color" },
@@ -553,17 +555,17 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
553
555
  { target: "--das-ui-layout-header-menu-active-color", from: "--upf-nav-active-text" },
554
556
  {
555
557
  target: "--das-ui-layout-header-menu-remove-btn-color",
556
- resolve: ({ variables: e, toRgbaColor: r }) => r(o(e, "--upf-nav-text"), 0.72, "rgba(170, 170, 172, 0.72)")
558
+ resolve: ({ variables: e, toRgbaColor: r }) => r(a(e, "--upf-nav-text"), 0.72, "rgba(170, 170, 172, 0.72)")
557
559
  },
558
560
  { target: "--das-ui-layout-header-menu-remove-btn-hover-color", from: "--upf-nav-active-text" },
559
561
  {
560
562
  target: "--das-ui-layout-header-icon-color",
561
- resolve: ({ variables: e }) => o(e, "--upf-nav-text") || o(e, "--upf-text-secondary")
563
+ resolve: ({ variables: e }) => a(e, "--upf-nav-text") || a(e, "--upf-text-secondary")
562
564
  },
563
565
  {
564
566
  target: "--das-ui-layout-header-left-box-line",
565
567
  resolve: ({ variables: e, toRgbaColor: r }) => r(
566
- o(e, "--upf-nav-text") || o(e, "--upf-text-secondary"),
568
+ a(e, "--upf-nav-text") || a(e, "--upf-text-secondary"),
567
569
  0.28,
568
570
  "#CCCCCC"
569
571
  )
@@ -594,43 +596,43 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
594
596
  { target: "--das-ui-layout-aside-menu-expired-color", from: "--upf-text-disabled" },
595
597
  { target: "--das-ui-layout-aside-menu-top-left-icon-color", from: "--upf-color-primary" },
596
598
  { target: "--das-ui-layout-aside-menu-top-right-icon-color", from: "--upf-text-secondary" }
597
- ], we = [
599
+ ], ke = [
598
600
  // 同源变量集中维护,新增 target 时优先追加到对应 source 分组。
599
- ...i("--upf-color-primary", [
601
+ ...s("--upf-color-primary", [
600
602
  "--upf-button-primary",
601
603
  "--upf-notification-primary-bg"
602
604
  ]),
603
- ...i("--upf-text-primary", [
605
+ ...s("--upf-text-primary", [
604
606
  "--upf-button-default-text",
605
607
  "--upf-notification-title-text",
606
608
  "--upf-text-tooltip-text"
607
609
  ]),
608
- ...i("--upf-border-color", [
610
+ ...s("--upf-border-color", [
609
611
  "--upf-button-default-border",
610
612
  "--upf-text-tooltip-border"
611
613
  ]),
612
- ...i("--upf-text-disabled", [
614
+ ...s("--upf-text-disabled", [
613
615
  "--upf-button-default-disabled",
614
616
  "--upf-switch-off-color",
615
617
  "--upf-message-thumb",
616
618
  "--upf-text-tooltip-scrollbar-thumb"
617
619
  ]),
618
- ...i("--upf-bg-secondary", [
620
+ ...s("--upf-bg-secondary", [
619
621
  "--upf-button-default-disabled-bg",
620
622
  "--upf-table-header-bg"
621
623
  ]),
622
- ...i("--upf-bg-primary", ["--upf-checkbox-filter-bg"]),
623
- ...i("--upf-color-info", ["--upf-loading-color-1"]),
624
- ...i("--upf-brand-secondary", ["--upf-loading-color-2"]),
625
- ...i("--upf-color-success", ["--upf-loading-color-3"]),
626
- ...i("--upf-divider-color", ["--upf-loading-color-6"]),
627
- ...i("--upf-text-secondary", [
624
+ ...s("--upf-bg-primary", ["--upf-checkbox-filter-bg"]),
625
+ ...s("--upf-color-info", ["--upf-loading-color-1"]),
626
+ ...s("--upf-brand-secondary", ["--upf-loading-color-2"]),
627
+ ...s("--upf-color-success", ["--upf-loading-color-3"]),
628
+ ...s("--upf-divider-color", ["--upf-loading-color-6"]),
629
+ ...s("--upf-text-secondary", [
628
630
  "--upf-message-close",
629
631
  "--upf-notification-description-text",
630
632
  "--upf-notification-close",
631
633
  "--upf-text-tooltip-scrollbar-thumb-hover"
632
634
  ]),
633
- { target: "--upf-button-primary-text", value: c },
635
+ { target: "--upf-button-primary-text", value: p },
634
636
  { target: "--upf-button-primary-text-disabled", value: "rgba(255, 255, 255, 1)" },
635
637
  { target: "--upf-dialog-basic-header-height", value: "50px" },
636
638
  { target: "--upf-dialog-basic-content-padding", value: "30px" },
@@ -649,49 +651,49 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
649
651
  { target: "--upf-notification-font-size-sm", value: "12px" },
650
652
  { target: "--upf-notification-font-size-md", value: "14px" },
651
653
  { target: "--upf-notification-font-size-lg", value: "16px" },
652
- { target: "--upf-notification-primary-text", value: c },
654
+ { target: "--upf-notification-primary-text", value: p },
653
655
  { target: "--upf-text-tooltip-scrollbar-padding", value: "1px" },
654
656
  {
655
657
  target: "--upf-button-primary-hover",
656
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary") || "#5582F3", c, 0.82, "#87A9FF")
658
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary") || "#5582F3", p, 0.82, "#87A9FF")
657
659
  },
658
660
  {
659
661
  target: "--upf-button-active",
660
- resolve: ({ variables: e, mixHexColor: r }) => O(o(e, "--upf-color-primary"), r)
662
+ resolve: ({ variables: e, mixHexColor: r }) => W(a(e, "--upf-color-primary"), r)
661
663
  },
662
664
  {
663
665
  target: "--upf-button-disabled",
664
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary") || "#5582F3", c, 0.3, "#B5CAFF")
666
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary") || "#5582F3", p, 0.3, "#B5CAFF")
665
667
  },
666
668
  {
667
669
  target: "--upf-button-set",
668
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary") || "#5582F3", m, 0.78, "#4367C1")
670
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary") || "#5582F3", d, 0.78, "#4367C1")
669
671
  },
670
672
  {
671
673
  target: "--upf-button-set-hover",
672
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary") || "#5582F3", m, 0.86, "#4C74DA")
674
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary") || "#5582F3", d, 0.86, "#4C74DA")
673
675
  },
674
676
  {
675
677
  target: "--upf-button-set-active",
676
- resolve: ({ variables: e, mixHexColor: r }) => O(o(e, "--upf-color-primary"), r)
678
+ resolve: ({ variables: e, mixHexColor: r }) => W(a(e, "--upf-color-primary"), r)
677
679
  },
678
680
  {
679
681
  target: "--upf-button-set-disabled",
680
682
  resolve: ({ variables: e, mixHexColor: r, result: t }) => r(
681
- t["--upf-button-set"] || o(e, "--upf-color-primary") || "#5582F3",
682
- o(e, "--upf-bg-primary"),
683
+ t["--upf-button-set"] || a(e, "--upf-color-primary") || "#5582F3",
684
+ a(e, "--upf-bg-primary"),
683
685
  0.55,
684
686
  "#95A4C8"
685
687
  )
686
688
  },
687
689
  {
688
690
  target: "--upf-switch-on-color-disabled",
689
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), c, 0.32, "#B5CAFF")
691
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary"), p, 0.32, "#B5CAFF")
690
692
  },
691
693
  {
692
694
  target: "--upf-checkbox-focus-shadow",
693
695
  resolve: ({ variables: e, toRgbaColor: r }) => r(
694
- o(e, "--upf-color-primary") || "#5582F3",
696
+ a(e, "--upf-color-primary") || "#5582F3",
695
697
  0.1,
696
698
  "rgba(85, 130, 243, 0.1)"
697
699
  )
@@ -699,8 +701,8 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
699
701
  {
700
702
  target: "--upf-checkbox-overlay-error-bg",
701
703
  resolve: ({ variables: e, mixHexColor: r }) => r(
702
- o(e, "--upf-color-error"),
703
- o(e, "--upf-bg-primary"),
704
+ a(e, "--upf-color-error"),
705
+ a(e, "--upf-bg-primary"),
704
706
  0.14,
705
707
  "#FFDBE0"
706
708
  )
@@ -708,22 +710,22 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
708
710
  {
709
711
  target: "--upf-loading-color-4",
710
712
  resolve: ({ variables: e, mixHexColor: r }) => r(
711
- o(e, "--upf-brand-secondary"),
712
- o(e, "--upf-color-primary"),
713
+ a(e, "--upf-brand-secondary"),
714
+ a(e, "--upf-color-primary"),
713
715
  0.45,
714
716
  "#A06EFF"
715
717
  )
716
718
  },
717
719
  {
718
720
  target: "--upf-loading-color-5",
719
- resolve: ({ variables: e }) => o(e, "--upf-color-primary") || "#5582F3"
721
+ resolve: ({ variables: e }) => a(e, "--upf-color-primary") || "#5582F3"
720
722
  },
721
723
  { target: "--upf-table-row-hover-bg", from: "--upf-bg-secondary" },
722
724
  {
723
725
  target: "--upf-table-row-active-bg",
724
726
  resolve: ({ variables: e, mixHexColor: r }) => r(
725
- o(e, "--upf-color-primary"),
726
- o(e, "--upf-bg-primary"),
727
+ a(e, "--upf-color-primary"),
728
+ a(e, "--upf-bg-primary"),
727
729
  0.08,
728
730
  "#F2F6FF"
729
731
  )
@@ -731,8 +733,8 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
731
733
  {
732
734
  target: "--upf-table-row-active-hover-bg",
733
735
  resolve: ({ variables: e, mixHexColor: r }) => r(
734
- o(e, "--upf-color-primary"),
735
- o(e, "--upf-bg-primary"),
736
+ a(e, "--upf-color-primary"),
737
+ a(e, "--upf-bg-primary"),
736
738
  0.14,
737
739
  "#E3EBFF"
738
740
  )
@@ -740,8 +742,8 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
740
742
  {
741
743
  target: "--upf-table-summary-row-color",
742
744
  resolve: ({ variables: e, mixHexColor: r }) => r(
743
- o(e, "--upf-color-warning"),
744
- o(e, "--upf-color-error"),
745
+ a(e, "--upf-color-warning"),
746
+ a(e, "--upf-color-error"),
745
747
  0.55,
746
748
  "#FF5F1F"
747
749
  )
@@ -749,8 +751,8 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
749
751
  {
750
752
  target: "--upf-table-summary-row-bg",
751
753
  resolve: ({ variables: e, mixHexColor: r }) => r(
752
- o(e, "--upf-color-warning"),
753
- o(e, "--upf-bg-primary"),
754
+ a(e, "--upf-color-warning"),
755
+ a(e, "--upf-bg-primary"),
754
756
  0.18,
755
757
  "#FFF1D4"
756
758
  )
@@ -758,47 +760,47 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
758
760
  {
759
761
  target: "--upf-message-bg",
760
762
  resolve: ({ variables: e, mixHexColor: r }) => r(
761
- o(e, "--upf-color-info"),
762
- o(e, "--upf-bg-primary"),
763
+ a(e, "--upf-color-info"),
764
+ a(e, "--upf-bg-primary"),
763
765
  0.14,
764
766
  "#E0EFFF"
765
767
  )
766
768
  },
767
769
  {
768
770
  target: "--upf-message-text",
769
- resolve: ({ variables: e }) => o(e, "--upf-color-info") || o(e, "--upf-color-primary") || "#0E5FD8"
771
+ resolve: ({ variables: e }) => a(e, "--upf-color-info") || a(e, "--upf-color-primary") || "#0E5FD8"
770
772
  },
771
773
  {
772
774
  target: "--upf-message-border",
773
775
  resolve: ({ variables: e, mixHexColor: r }) => r(
774
- o(e, "--upf-color-info"),
775
- o(e, "--upf-bg-primary"),
776
+ a(e, "--upf-color-info"),
777
+ a(e, "--upf-bg-primary"),
776
778
  0.32,
777
779
  "#B3D5FF"
778
780
  )
779
781
  },
780
782
  {
781
783
  target: "--upf-message-close-hover",
782
- resolve: ({ variables: e }) => o(e, "--upf-color-primary") || "#5582F3"
784
+ resolve: ({ variables: e }) => a(e, "--upf-color-primary") || "#5582F3"
783
785
  },
784
786
  {
785
787
  target: "--upf-message-success-bg",
786
788
  resolve: ({ variables: e, mixHexColor: r }) => r(
787
- o(e, "--upf-color-success"),
788
- o(e, "--upf-bg-primary"),
789
+ a(e, "--upf-color-success"),
790
+ a(e, "--upf-bg-primary"),
789
791
  0.16,
790
792
  "#DCFAE4"
791
793
  )
792
794
  },
793
795
  {
794
796
  target: "--upf-message-success-text",
795
- resolve: ({ variables: e }) => o(e, "--upf-color-success") || "#1BA854"
797
+ resolve: ({ variables: e }) => a(e, "--upf-color-success") || "#1BA854"
796
798
  },
797
799
  {
798
800
  target: "--upf-message-success-border",
799
801
  resolve: ({ variables: e, mixHexColor: r }) => r(
800
- o(e, "--upf-color-success"),
801
- o(e, "--upf-bg-primary"),
802
+ a(e, "--upf-color-success"),
803
+ a(e, "--upf-bg-primary"),
802
804
  0.32,
803
805
  "#A1E6B5"
804
806
  )
@@ -818,21 +820,21 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
818
820
  {
819
821
  target: "--upf-message-warning-bg",
820
822
  resolve: ({ variables: e, mixHexColor: r }) => r(
821
- o(e, "--upf-color-warning"),
822
- o(e, "--upf-bg-primary"),
823
+ a(e, "--upf-color-warning"),
824
+ a(e, "--upf-bg-primary"),
823
825
  0.16,
824
826
  "#FFF1D4"
825
827
  )
826
828
  },
827
829
  {
828
830
  target: "--upf-message-warning-text",
829
- resolve: ({ variables: e }) => o(e, "--upf-color-warning") || "#FF991C"
831
+ resolve: ({ variables: e }) => a(e, "--upf-color-warning") || "#FF991C"
830
832
  },
831
833
  {
832
834
  target: "--upf-message-warning-border",
833
835
  resolve: ({ variables: e, mixHexColor: r }) => r(
834
- o(e, "--upf-color-warning"),
835
- o(e, "--upf-bg-primary"),
836
+ a(e, "--upf-color-warning"),
837
+ a(e, "--upf-bg-primary"),
836
838
  0.32,
837
839
  "#FFE0A6"
838
840
  )
@@ -840,36 +842,36 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
840
842
  {
841
843
  target: "--upf-message-error-bg",
842
844
  resolve: ({ variables: e, mixHexColor: r }) => r(
843
- o(e, "--upf-color-error"),
844
- o(e, "--upf-bg-primary"),
845
+ a(e, "--upf-color-error"),
846
+ a(e, "--upf-bg-primary"),
845
847
  0.14,
846
848
  "#FFDBE0"
847
849
  )
848
850
  },
849
851
  {
850
852
  target: "--upf-message-error-text",
851
- resolve: ({ variables: e }) => o(e, "--upf-color-error") || "#FB2323"
853
+ resolve: ({ variables: e }) => a(e, "--upf-color-error") || "#FB2323"
852
854
  },
853
855
  {
854
856
  target: "--upf-message-error-border",
855
857
  resolve: ({ variables: e, mixHexColor: r }) => r(
856
- o(e, "--upf-color-error"),
857
- o(e, "--upf-bg-primary"),
858
+ a(e, "--upf-color-error"),
859
+ a(e, "--upf-bg-primary"),
858
860
  0.32,
859
861
  "#FFADB6"
860
862
  )
861
863
  },
862
864
  {
863
865
  target: "--upf-notification-bg",
864
- resolve: ({ variables: e }) => o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary")
866
+ resolve: ({ variables: e }) => a(e, "--upf-bg-elevated") || a(e, "--upf-bg-primary")
865
867
  },
866
868
  {
867
869
  target: "--upf-notification-close-hover",
868
- resolve: ({ variables: e }) => o(e, "--upf-color-primary") || "#5582F3"
870
+ resolve: ({ variables: e }) => a(e, "--upf-color-primary") || "#5582F3"
869
871
  },
870
872
  {
871
873
  target: "--upf-text-tooltip-bg",
872
- resolve: ({ variables: e }) => o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary")
874
+ resolve: ({ variables: e }) => a(e, "--upf-bg-elevated") || a(e, "--upf-bg-primary")
873
875
  },
874
876
  {
875
877
  target: "--upf-text-tooltip-shadow-color",
@@ -877,269 +879,345 @@ const c = "#ffffff", m = "#000000", te = 0.115, U = (e) => {
877
879
  },
878
880
  { target: "--upf-app-container-app-bg-override", from: "--upf-nav-bg" },
879
881
  { target: "--upf-app-container-app-text-override", from: "--upf-nav-text" }
880
- ], Se = (e, r = {}) => E(e, Ce, r), _e = (e, r = {}) => E(e, Te, r), ke = (e, r = {}) => E(e, Fe, r), Ae = (e, r = {}) => E(e, we, r), G = (e, r = {}) => {
881
- const t = W(e), { includeElementAndDasUiBridges: a = !0, themeName: u, basePresetName: f } = r, l = { themeName: u, basePresetName: f }, s = Ae(t, l), n = {
882
+ ], Be = (e, r = {}) => C(e, _e, r), He = (e, r = {}) => C(e, Ne, r), De = (e, r = {}) => C(e, Ae, r), Re = (e, r = {}) => C(e, ke, r), V = (e, r = {}) => {
883
+ const t = R(e), { includeElementAndDasUiBridges: o = !0, themeName: u, basePresetName: f } = r, n = { themeName: u, basePresetName: f }, l = Re(t, n), i = {
882
884
  ...t,
883
- ...s
885
+ ...l
884
886
  };
885
887
  return {
886
888
  ...t,
887
- ...s,
888
- ...a ? _e(n, l) : {},
889
- ...a ? ke(n, l) : {},
890
- ...Se(n, l)
889
+ ...l,
890
+ ...o ? He(i, n) : {},
891
+ ...o ? De(i, n) : {},
892
+ ...Be(i, n)
891
893
  };
892
- }, Xe = (e) => h(e), Qe = () => de(), B = () => h("default"), Ze = () => ({ ...B().variables }), H = (e) => e || (typeof document > "u" ? null : document.documentElement), K = (e) => !!(e && String(e.tagName || "").toLowerCase() === "style"), C = (e) => e.head || e.documentElement, Y = (e, r) => {
893
- const t = C(e);
894
+ }, nr = (e) => g(e), lr = () => ve(), S = () => g("default"), ir = () => ({ ...S().variables }), P = (e) => e || (typeof document > "u" ? null : document.documentElement), Q = (e) => !!(e && String(e.tagName || "").toLowerCase() === "style"), F = (e) => e.head || e.documentElement, Z = (e, r) => {
895
+ const t = F(e);
894
896
  t && (r.parentNode !== t || t.lastElementChild !== r) && t.appendChild(r);
895
- }, L = (e) => {
897
+ }, G = (e) => {
896
898
  var u;
897
- if (I.has(e))
899
+ if (K.has(e))
898
900
  return;
899
- const r = C(e), t = ((u = e.defaultView) == null ? void 0 : u.MutationObserver) || (typeof MutationObserver < "u" ? MutationObserver : void 0);
901
+ const r = F(e), t = ((u = e.defaultView) == null ? void 0 : u.MutationObserver) || (typeof MutationObserver < "u" ? MutationObserver : void 0);
900
902
  if (!r || !t)
901
903
  return;
902
904
  new t(() => {
903
- const f = e.getElementById(v);
904
- K(f) && Y(e, f);
905
- }).observe(r, { childList: !0 }), I.add(e);
906
- }, Be = (e) => {
907
- const r = e.getElementById(v);
908
- if (K(r))
909
- return Y(e, r), L(e), r;
905
+ const f = e.getElementById(E);
906
+ Q(f) && Z(e, f);
907
+ }).observe(r, { childList: !0 }), K.add(e);
908
+ }, Ve = (e) => {
909
+ const r = e.getElementById(E);
910
+ if (Q(r))
911
+ return Z(e, r), G(e), r;
910
912
  const t = e.createElement("style");
911
- return t.id = v, C(e).appendChild(t), L(e), t;
912
- }, q = (e) => {
913
- const r = Object.entries(e).filter(([, t]) => String(t ?? "").trim()).map(([t, a]) => ` ${t}: ${String(a ?? "")};`).join(`
913
+ return t.id = E, F(e).appendChild(t), G(e), t;
914
+ }, M = (e) => {
915
+ const r = Object.entries(e).filter(([, t]) => String(t ?? "").trim()).map(([t, o]) => ` ${t}: ${String(o ?? "")};`).join(`
914
916
  `);
915
917
  return r ? `:root {
916
918
  ${r}
917
919
  }` : ":root {}";
918
- }, J = (e = "default", r = {}) => {
919
- const t = h(e) || B();
920
- return q(G(t.variables, {
920
+ }, Pe = (e = "default", r = {}) => {
921
+ const t = g(e) || S();
922
+ return M(V(t.variables, {
921
923
  ...r,
922
924
  themeName: r.themeName || t.name,
923
925
  basePresetName: r.basePresetName || t.basePresetName
924
926
  }));
925
- }, er = (e = {}) => J("default", e), He = (e) => {
926
- const r = e.getElementById(v);
927
+ }, sr = (e = {}) => Pe("default", e), Me = (e) => {
928
+ const r = e.getElementById(E);
927
929
  if (r != null && r.textContent)
928
930
  return !0;
929
- const t = b.get(e) || b.get(e.documentElement);
931
+ const t = h.get(e) || h.get(e.documentElement);
930
932
  return !!(t && Object.keys(t).length);
931
- }, Ne = (e) => {
932
- var a;
933
- const r = ((a = e.defaultView) == null ? void 0 : a.getComputedStyle) || (typeof getComputedStyle == "function" ? getComputedStyle : void 0);
933
+ }, Ie = (e) => {
934
+ var o;
935
+ const r = ((o = e.defaultView) == null ? void 0 : o.getComputedStyle) || (typeof getComputedStyle == "function" ? getComputedStyle : void 0);
934
936
  if (!r || !e.documentElement)
935
937
  return !1;
936
938
  const t = r(e.documentElement);
937
- return be.some((u) => t.getPropertyValue(u).trim());
938
- }, De = (e, r) => {
939
- const t = C(e);
939
+ return Ee.some((u) => t.getPropertyValue(u).trim());
940
+ }, I = (e) => Object.prototype.toString.call(e) === "[object Object]", w = (e) => ({
941
+ themeName: e.name,
942
+ basePresetName: e.basePresetName,
943
+ variables: e.variables
944
+ }), v = () => w(S()), ee = (e) => {
945
+ if (typeof window > "u")
946
+ return null;
947
+ try {
948
+ const r = window.localStorage.getItem(e);
949
+ if (!r)
950
+ return null;
951
+ const t = JSON.parse(r);
952
+ return I(t) ? t : null;
953
+ } catch {
954
+ return null;
955
+ }
956
+ }, Oe = (e, r) => {
957
+ if (!I(e))
958
+ return null;
959
+ const t = { ...r };
960
+ return Object.entries(e).forEach(([o, u]) => {
961
+ !o.startsWith("--") || typeof u != "string" && typeof u != "number" || (t[o] = String(u));
962
+ }), R(t);
963
+ }, re = (e) => {
964
+ const r = I(e.customTheme) ? e.customTheme : null;
965
+ if (!r)
966
+ return null;
967
+ const t = String(r.basePresetName || e.remoteTheme || "").trim(), o = g(t) || S(), u = Oe(r.variables, o.variables);
968
+ return u ? {
969
+ themeName: "custom",
970
+ basePresetName: o.name,
971
+ variables: u
972
+ } : null;
973
+ }, Le = (e) => {
974
+ if (!e.useStoredTheme)
975
+ return null;
976
+ const r = String(e.storageKey || T).trim() || T, t = ee(r);
977
+ if (!t)
978
+ return null;
979
+ const o = [t.currentTheme, t.remoteTheme];
980
+ for (const u of o) {
981
+ const f = String(u || "").trim();
982
+ if (!f)
983
+ continue;
984
+ if (f === "custom") {
985
+ const l = re(t);
986
+ if (l)
987
+ return l;
988
+ continue;
989
+ }
990
+ const n = g(f);
991
+ if (n)
992
+ return w(n);
993
+ }
994
+ return null;
995
+ }, ze = (e) => {
996
+ const r = e.documentElement, t = [r.getAttribute("data-theme"), r.getAttribute("data-skin")];
997
+ for (const o of t) {
998
+ const u = g(String(o || "").trim());
999
+ if (u)
1000
+ return w(u);
1001
+ }
1002
+ return null;
1003
+ }, Ue = (e, r) => {
1004
+ const t = String(r.presetName || "").trim();
1005
+ if (t) {
1006
+ if (t === "custom") {
1007
+ if (r.useStoredTheme === !1)
1008
+ return v();
1009
+ const u = String(r.storageKey || T).trim() || T, f = ee(u);
1010
+ return (f ? re(f) : null) || v();
1011
+ }
1012
+ const o = g(t);
1013
+ return o ? w(o) : v();
1014
+ }
1015
+ return ze(e) || Le(r) || v();
1016
+ }, je = (e, r) => {
1017
+ const t = F(e);
940
1018
  (r.parentNode !== t || t.firstChild !== r) && t.insertBefore(r, t.firstChild);
941
- }, rr = (e = {}) => {
942
- var n;
1019
+ }, cr = (e = {}) => {
1020
+ var m;
943
1021
  if (typeof document > "u")
944
1022
  return null;
945
- const r = ((n = e.root) == null ? void 0 : n.ownerDocument) || document, t = h(e.presetName || "default") || B(), a = e.styleId || ge;
946
- if (!e.force && He(r))
1023
+ const r = ((m = e.root) == null ? void 0 : m.ownerDocument) || document, t = Ue(r, e), o = e.styleId || xe;
1024
+ if (!e.force && Me(r))
947
1025
  return null;
948
- const u = r.getElementById(a);
949
- if (!e.force && !u && Ne(r))
1026
+ const u = r.getElementById(o);
1027
+ if (!e.force && !u && Ie(r))
950
1028
  return null;
951
1029
  const f = u || r.createElement("style");
952
- f.id || (f.id = a);
953
- const l = J(t.name, {
1030
+ f.id || (f.id = o);
1031
+ const n = e.themeName || t.themeName, l = e.basePresetName || t.basePresetName, i = M(V(t.variables, {
954
1032
  includeElementAndDasUiBridges: e.includeElementAndDasUiBridges,
955
- themeName: e.themeName || t.name,
956
- basePresetName: e.basePresetName || t.basePresetName
957
- });
958
- f.textContent !== l && (f.textContent = l), De(r, f);
959
- const { setThemeAttributes: s = !0 } = e;
960
- return s && ((e.themeName || !r.documentElement.getAttribute("data-theme")) && r.documentElement.setAttribute("data-theme", e.themeName || t.name), e.skinName !== null && !r.documentElement.getAttribute("data-skin") && r.documentElement.setAttribute("data-skin", e.skinName || t.basePresetName)), f;
961
- }, z = (e, r) => {
1033
+ themeName: n,
1034
+ basePresetName: l
1035
+ }));
1036
+ f.textContent !== i && (f.textContent = i), je(r, f);
1037
+ const { setThemeAttributes: c = !0 } = e;
1038
+ return c && ((e.themeName || !r.documentElement.getAttribute("data-theme")) && r.documentElement.setAttribute("data-theme", n), e.skinName !== null && !r.documentElement.getAttribute("data-skin") && r.documentElement.setAttribute("data-skin", e.skinName || l)), f;
1039
+ }, Y = (e, r) => {
962
1040
  if (!e.length || !r.length)
963
1041
  return;
964
1042
  const t = new Set(r);
965
- for (let a = e.length - 1; a >= 0; a--) {
966
- const u = e[a];
1043
+ for (let o = e.length - 1; o >= 0; o--) {
1044
+ const u = e[o];
967
1045
  t.has(u) && e.removeProperty(u);
968
1046
  }
969
- }, Re = (e, r) => {
970
- const t = Be(e), a = q(r);
971
- (P.get(e) !== a || t.textContent !== a) && (t.textContent = a, P.set(e, a));
1047
+ }, $e = (e, r) => {
1048
+ const t = Ve(e), o = M(r);
1049
+ ($.get(e) !== o || t.textContent !== o) && (t.textContent = o, $.set(e, o));
972
1050
  const u = Object.keys(r);
973
- z(e.documentElement.style, u), e.body && z(e.body.style, u);
974
- }, Me = (e) => {
1051
+ Y(e.documentElement.style, u), e.body && Y(e.body.style, u);
1052
+ }, Ke = (e) => {
975
1053
  typeof window > "u" || (window.__UPF_THEME_SNAPSHOT__ = e);
976
- }, Ve = (e, r) => {
977
- const t = x(r) || {}, a = e.ownerDocument || document;
978
- b.set(e, t);
979
- const u = e === a.documentElement || e === a.body;
980
- u && b.set(a, t), u && typeof window < "u" && a === document && (window.__UPF_THEME_RUNTIME_VARIABLES__ = t);
981
- }, Pe = (e) => {
982
- const r = H(e), t = (r == null ? void 0 : r.ownerDocument) || (typeof document < "u" ? document : null), a = typeof window < "u" && t === document && window.__UPF_THEME_RUNTIME_VARIABLES__ || null;
983
- return (r ? b.get(r) : null) || (t ? b.get(t) : null) || a;
984
- }, Ie = (e = !0) => {
1054
+ }, We = (e, r) => {
1055
+ const t = x(r) || {}, o = e.ownerDocument || document;
1056
+ h.set(e, t);
1057
+ const u = e === o.documentElement || e === o.body;
1058
+ u && h.set(o, t), u && typeof window < "u" && o === document && (window.__UPF_THEME_RUNTIME_VARIABLES__ = t);
1059
+ }, Ge = (e) => {
1060
+ const r = P(e), t = (r == null ? void 0 : r.ownerDocument) || (typeof document < "u" ? document : null), o = typeof window < "u" && t === document && window.__UPF_THEME_RUNTIME_VARIABLES__ || null;
1061
+ return (r ? h.get(r) : null) || (t ? h.get(t) : null) || o;
1062
+ }, Ye = (e = !0) => {
985
1063
  var r;
986
1064
  if (typeof window > "u" || !window.name)
987
1065
  return null;
988
1066
  try {
989
- const t = JSON.parse(window.name), a = (r = t == null ? void 0 : t.parentData) == null ? void 0 : r.theme;
990
- return !(a != null && a.variables) || typeof a.variables != "object" ? null : {
991
- themeName: String(a.themeName || ""),
992
- config: a.config || null,
993
- variables: a.variables,
994
- timestamp: Number(a.timestamp) || Date.now()
1067
+ const t = JSON.parse(window.name), o = (r = t == null ? void 0 : t.parentData) == null ? void 0 : r.theme;
1068
+ return !(o != null && o.variables) || typeof o.variables != "object" ? null : {
1069
+ themeName: String(o.themeName || ""),
1070
+ config: o.config || null,
1071
+ variables: o.variables,
1072
+ timestamp: Number(o.timestamp) || Date.now()
995
1073
  };
996
1074
  } catch {
997
1075
  return null;
998
1076
  }
999
- }, Oe = (e, r) => {
1077
+ }, qe = (e, r) => {
1000
1078
  if (r !== void 0)
1001
1079
  return r;
1002
1080
  const t = e.config || {};
1003
1081
  return String(t.basePresetName || t.name || e.themeName || "").trim() || null;
1004
- }, Le = (e, r = {}) => {
1005
- const t = H(r.root);
1082
+ }, Je = (e, r = {}) => {
1083
+ const t = P(r.root);
1006
1084
  if (!t)
1007
1085
  return {};
1008
- const a = W(e), u = r.includeBridges === !1 ? Object.entries(a).reduce((l, [s, n]) => (l[s] = String(n ?? ""), l), {}) : G(a, {
1086
+ const o = R(e), u = r.includeBridges === !1 ? Object.entries(o).reduce((n, [l, i]) => (n[l] = String(i ?? ""), n), {}) : V(o, {
1009
1087
  includeElementAndDasUiBridges: r.includeElementAndDasUiBridges,
1010
1088
  themeName: r.themeName,
1011
1089
  basePresetName: r.basePresetName
1012
1090
  }), f = t.ownerDocument || document;
1013
- return t === f.documentElement || t === f.body ? Re(f, u) : Object.entries(u).forEach(([l, s]) => {
1014
- t.style.getPropertyValue(l) !== s && t.style.setProperty(l, s);
1015
- }), Ve(t, u), r.themeName && t.setAttribute("data-theme", r.themeName), r.skinName === null ? t.removeAttribute("data-skin") : r.skinName && t.setAttribute("data-skin", r.skinName), u;
1016
- }, X = (e, r = {}) => {
1017
- const t = e.config || {}, a = Le(e.variables || {}, {
1091
+ return t === f.documentElement || t === f.body ? $e(f, u) : Object.entries(u).forEach(([n, l]) => {
1092
+ t.style.getPropertyValue(n) !== l && t.style.setProperty(n, l);
1093
+ }), We(t, u), r.themeName && t.setAttribute("data-theme", r.themeName), r.skinName === null ? t.removeAttribute("data-skin") : r.skinName && t.setAttribute("data-skin", r.skinName), u;
1094
+ }, te = (e, r = {}) => {
1095
+ const t = e.config || {}, o = Je(e.variables || {}, {
1018
1096
  ...r,
1019
1097
  themeName: r.themeName || e.themeName,
1020
1098
  basePresetName: r.basePresetName || String(t.basePresetName || t.name || ""),
1021
- skinName: Oe(e, r.skinName)
1099
+ skinName: qe(e, r.skinName)
1022
1100
  });
1023
- return Me(e), a;
1024
- }, S = (e, r, t = !0) => {
1101
+ return Ke(e), o;
1102
+ }, k = (e, r, t = !0) => {
1025
1103
  try {
1026
1104
  return e && e.__THEME_API__ || null;
1027
1105
  } catch {
1028
1106
  return null;
1029
1107
  }
1030
- }, T = (e = !0) => typeof window > "u" ? null : S(window, "current", e) || S(window.parent, "parent", e) || S(window.top, "top", e), Q = (e = {}) => {
1031
- const r = T(e.debug), t = r != null && r.getCurrentTheme ? r.getCurrentTheme() : null;
1108
+ }, _ = (e = !0) => typeof window > "u" ? null : k(window, "current", e) || k(window.parent, "parent", e) || k(window.top, "top", e), oe = (e = {}) => {
1109
+ const r = _(e.debug), t = r != null && r.getCurrentTheme ? r.getCurrentTheme() : null;
1032
1110
  if (t)
1033
1111
  return t;
1034
- const a = (typeof window < "u" ? window.__UPF_THEME_SNAPSHOT__ : null) || null;
1035
- return a || Ie(e.debug);
1036
- }, ze = (e = {}) => {
1037
- const r = Pe(e.root);
1112
+ const o = (typeof window < "u" ? window.__UPF_THEME_SNAPSHOT__ : null) || null;
1113
+ return o || Ye(e.debug);
1114
+ }, Xe = (e = {}) => {
1115
+ const r = Ge(e.root);
1038
1116
  if (r)
1039
1117
  return x(r);
1040
- const t = Q(e);
1118
+ const t = oe(e);
1041
1119
  if (t != null && t.variables)
1042
1120
  return x(t.variables);
1043
- const a = T(e.debug);
1044
- if (!a)
1121
+ const o = _(e.debug);
1122
+ if (!o)
1045
1123
  return null;
1046
- const u = a.getVariables ? a.getVariables() : null;
1124
+ const u = o.getVariables ? o.getVariables() : null;
1047
1125
  return x(u);
1048
- }, tr = (e, r = !0) => {
1049
- const t = T(r);
1126
+ }, pr = (e, r = !0) => {
1127
+ const t = _(r);
1050
1128
  return t != null && t.changeTheme ? (t.changeTheme(e), !0) : !1;
1051
- }, Z = (e = {}) => {
1052
- const r = Q(e);
1053
- return r ? (X(r, e), r) : (e.debug, null);
1054
- }, or = (e = {}) => Z({
1129
+ }, ae = (e = {}) => {
1130
+ const r = oe(e);
1131
+ return r ? (te(r, e), r) : (e.debug, null);
1132
+ }, mr = (e = {}) => ae({
1055
1133
  includeBridges: !1,
1056
1134
  includeElementAndDasUiBridges: !1,
1057
1135
  ...e
1058
- }), Ue = (e, r = !0) => {
1136
+ }), Qe = (e, r = !0) => {
1059
1137
  try {
1060
- const t = re("microApp");
1061
- return t.event.on(V, e), () => {
1062
- t.event.off(V, e);
1138
+ const t = fe("microApp");
1139
+ return t.event.on(j, e), () => {
1140
+ t.event.off(j, e);
1063
1141
  };
1064
1142
  } catch {
1065
1143
  return null;
1066
1144
  }
1067
- }, $e = (e, r) => e != null && e.onThemeChange ? e.onThemeChange(r) : null, je = (e) => e ? [String(e.themeName || ""), String(e.source || ""), String(Number(e.timestamp) || 0)].join("|") : "", We = (e) => {
1145
+ }, Ze = (e, r) => e != null && e.onThemeChange ? e.onThemeChange(r) : null, er = (e) => e ? [String(e.themeName || ""), String(e.source || ""), String(Number(e.timestamp) || 0)].join("|") : "", rr = (e) => {
1068
1146
  let r = "";
1069
1147
  return (t) => {
1070
- const a = je(t);
1071
- a && a === r || (r = a, e(t));
1148
+ const o = er(t);
1149
+ o && o === r || (r = o, e(t));
1072
1150
  };
1073
- }, Ge = (e, r, t = !1, a = !0) => {
1074
- const u = We(r), f = $e(e, u), l = Ue(u, a), n = (t ? [f, l] : [l, f]).filter(Boolean);
1075
- return n.length ? () => {
1076
- n.forEach((p) => p());
1151
+ }, tr = (e, r, t = !1, o = !0) => {
1152
+ const u = rr(r), f = Ze(e, u), n = Qe(u, o), i = (t ? [f, n] : [n, f]).filter(Boolean);
1153
+ return i.length ? () => {
1154
+ i.forEach((c) => c());
1077
1155
  } : null;
1078
- }, Ke = (e = {}) => {
1079
- const { syncOnInit: r = !0, preferWindowSubscription: t = !1, onThemeChange: a, debug: u = !0, ...f } = e, l = T(u);
1080
- let s = !1, n = null, p = null;
1081
- const d = () => {
1082
- s || Z({ ...f, debug: u });
1083
- }, F = Ge(l, (g) => {
1084
- X(g, f), a && (g == null ? void 0 : g.source) !== "mountSync" && a(g);
1156
+ }, or = (e = {}) => {
1157
+ const { syncOnInit: r = !0, preferWindowSubscription: t = !1, onThemeChange: o, debug: u = !0, ...f } = e, n = _(u);
1158
+ let l = !1, i = null, c = null;
1159
+ const m = () => {
1160
+ l || ae({ ...f, debug: u });
1161
+ }, N = tr(n, (b) => {
1162
+ te(b, f), o && (b == null ? void 0 : b.source) !== "mountSync" && o(b);
1085
1163
  }, t, u);
1086
- return r && (d(), (typeof queueMicrotask == "function" ? queueMicrotask : (ee) => Promise.resolve().then(ee))(d), typeof requestAnimationFrame == "function" ? n = requestAnimationFrame(() => {
1087
- n = null, d();
1088
- }) : p = setTimeout(() => {
1089
- p = null, d();
1164
+ return r && (m(), (typeof queueMicrotask == "function" ? queueMicrotask : (ue) => Promise.resolve().then(ue))(m), typeof requestAnimationFrame == "function" ? i = requestAnimationFrame(() => {
1165
+ i = null, m();
1166
+ }) : c = setTimeout(() => {
1167
+ c = null, m();
1090
1168
  }, 16)), () => {
1091
- s = !0, n !== null && typeof cancelAnimationFrame == "function" && (cancelAnimationFrame(n), n = null), p !== null && (clearTimeout(p), p = null), F == null || F();
1169
+ l = !0, i !== null && typeof cancelAnimationFrame == "function" && (cancelAnimationFrame(i), i = null), c !== null && (clearTimeout(c), c = null), N == null || N();
1092
1170
  };
1093
- }, ar = (e = {}) => Ke({
1171
+ }, dr = (e = {}) => or({
1094
1172
  includeBridges: !1,
1095
1173
  includeElementAndDasUiBridges: !1,
1096
1174
  ...e
1097
- }), Ye = (e, r) => {
1175
+ }), ar = (e, r) => {
1098
1176
  var f;
1099
- const t = H(r), a = String(e || "").trim();
1100
- if (!t || !a)
1177
+ const t = P(r), o = String(e || "").trim();
1178
+ if (!t || !o)
1101
1179
  return "";
1102
- const u = typeof getComputedStyle > "u" ? "" : getComputedStyle(t).getPropertyValue(a).trim();
1103
- return u || String(((f = ze({ root: t, debug: !1 })) == null ? void 0 : f[a]) ?? "");
1104
- }, ur = (e) => `var(${String(e || "").trim()})`, fr = (e, r) => ({
1105
- value: Ye(String(e || "").trim(), r)
1180
+ const u = typeof getComputedStyle > "u" ? "" : getComputedStyle(t).getPropertyValue(o).trim();
1181
+ return u || String(((f = Xe({ root: t, debug: !1 })) == null ? void 0 : f[o]) ?? "");
1182
+ }, gr = (e) => `var(${String(e || "").trim()})`, br = (e, r) => ({
1183
+ value: ar(String(e || "").trim(), r)
1106
1184
  });
1107
1185
  export {
1108
- pe as BUILTIN_PRESET_THEME_NAMES,
1109
- Fe as DAS_UI_THEME_BRIDGE_ITEMS,
1110
- Te as ELEMENT_THEME_BRIDGE_ITEMS,
1111
- Ce as LEGACY_THEME_BRIDGE_ITEMS,
1112
- k as PRESET_THEMES,
1113
- we as UPF_COMPONENT_THEME_BRIDGE_ITEMS,
1114
- X as applyThemeEventToDocument,
1115
- Le as applyThemeVariablesToDocument,
1116
- er as buildDefaultThemeCssText,
1117
- J as buildPresetThemeCssText,
1118
- G as buildRuntimeThemeVariables,
1119
- tr as changeTheme,
1120
- rr as ensureDefaultThemeStyle,
1121
- Qe as getAllPresetThemes,
1122
- Q as getCurrentTheme,
1123
- B as getDefaultPresetTheme,
1124
- Ze as getDefaultThemeVariables,
1125
- Ie as getHostThemeSnapshotFromWindowName,
1126
- Xe as getPresetTheme,
1127
- T as getThemeAPI,
1128
- Ye as getThemeVariable,
1129
- ze as getThemeVariables,
1130
- ur as getVar,
1131
- fr as getVarValue,
1132
- ar as initHostThemeRootSync,
1133
- Ke as initSubAppThemeSync,
1134
- $ as mixHexColor,
1135
- U as normalizeHexColor,
1186
+ he as BUILTIN_PRESET_THEME_NAMES,
1187
+ Ae as DAS_UI_THEME_BRIDGE_ITEMS,
1188
+ Ne as ELEMENT_THEME_BRIDGE_ITEMS,
1189
+ _e as LEGACY_THEME_BRIDGE_ITEMS,
1190
+ H as PRESET_THEMES,
1191
+ ke as UPF_COMPONENT_THEME_BRIDGE_ITEMS,
1192
+ te as applyThemeEventToDocument,
1193
+ Je as applyThemeVariablesToDocument,
1194
+ sr as buildDefaultThemeCssText,
1195
+ Pe as buildPresetThemeCssText,
1196
+ V as buildRuntimeThemeVariables,
1197
+ pr as changeTheme,
1198
+ cr as ensureDefaultThemeStyle,
1199
+ lr as getAllPresetThemes,
1200
+ oe as getCurrentTheme,
1201
+ S as getDefaultPresetTheme,
1202
+ ir as getDefaultThemeVariables,
1203
+ Ye as getHostThemeSnapshotFromWindowName,
1204
+ nr as getPresetTheme,
1205
+ _ as getThemeAPI,
1206
+ ar as getThemeVariable,
1207
+ Xe as getThemeVariables,
1208
+ gr as getVar,
1209
+ br as getVarValue,
1210
+ dr as initHostThemeRootSync,
1211
+ or as initSubAppThemeSync,
1212
+ J as mixHexColor,
1213
+ q as normalizeHexColor,
1136
1214
  y as resolvePrimaryBgColor,
1137
- E as resolveThemeBridgeVariables,
1138
- or as syncHostThemeRoot,
1139
- Z as syncThemeFromHost,
1140
- ke as toDasUiColorOverrides,
1141
- _e as toElementThemeVariables,
1142
- Se as toLegacyThemeVariables,
1143
- oe as toRgbaColor,
1144
- Ae as toUpfComponentThemeVariables
1215
+ C as resolveThemeBridgeVariables,
1216
+ mr as syncHostThemeRoot,
1217
+ ae as syncThemeFromHost,
1218
+ De as toDasUiColorOverrides,
1219
+ He as toElementThemeVariables,
1220
+ Be as toLegacyThemeVariables,
1221
+ le as toRgbaColor,
1222
+ Re as toUpfComponentThemeVariables
1145
1223
  };