gz-ui-web 1.1.5-beta.2 → 1.1.6

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 (34) hide show
  1. package/README.md +82 -82
  2. package/gz-ui-web-lib/ValuationLogDataChart-Bg1yp4wQ.cjs +49 -0
  3. package/gz-ui-web-lib/ValuationLogDataChart-Cs_1Jx8P.js +4058 -0
  4. package/gz-ui-web-lib/business-components/filter-bar/FilterBar.d.ts +1 -1
  5. package/gz-ui-web-lib/business-components/filter-bar/types.d.ts +3 -3
  6. package/gz-ui-web-lib/business-components/pcs/index.cjs +1 -1
  7. package/gz-ui-web-lib/business-components/pcs/index.js +1 -1
  8. package/gz-ui-web-lib/business-components/pcs/indicative-pricing-for-selected-contracts/constants.d.ts +1 -0
  9. package/gz-ui-web-lib/gz-ui-web.css +1 -1
  10. package/gz-ui-web-lib/index.cjs +57 -1
  11. package/gz-ui-web-lib/index.js +8441 -1777
  12. package/package.json +133 -136
  13. package/gz-ui-web-lib/ValuationLogDataChart-DG6e4x6p.cjs +0 -1
  14. package/gz-ui-web-lib/ValuationLogDataChart-KgMs6DrR.js +0 -2559
  15. package/gz-ui-web-lib/index-BDNCkcve.cjs +0 -49
  16. package/gz-ui-web-lib/index-BrrQUvvm.cjs +0 -57
  17. package/gz-ui-web-lib/index-C_8xq_IG.js +0 -1503
  18. package/gz-ui-web-lib/index-DiVxn4N-.js +0 -6633
  19. package/gz-ui-web-lib/workbench/business/pst/index.cjs +0 -1
  20. package/gz-ui-web-lib/workbench/business/pst/index.d.ts +0 -4
  21. package/gz-ui-web-lib/workbench/business/pst/index.js +0 -1056
  22. package/gz-ui-web-lib/workbench/business/pst/position-inquiry/PositionInquiry.d.ts +0 -2
  23. package/gz-ui-web-lib/workbench/business/pst/position-inquiry/PositionInquiryWorkbench.d.ts +0 -24
  24. package/gz-ui-web-lib/workbench/business/pst/position-inquiry/PositionTable.d.ts +0 -10
  25. package/gz-ui-web-lib/workbench/business/pst/position-inquiry/constants.d.ts +0 -19
  26. package/gz-ui-web-lib/workbench/business/pst/position-inquiry/filterController.d.ts +0 -31
  27. package/gz-ui-web-lib/workbench/business/pst/position-inquiry/floatingFilters.d.ts +0 -6
  28. package/gz-ui-web-lib/workbench/business/pst/position-inquiry/index.d.ts +0 -4
  29. package/gz-ui-web-lib/workbench/business/pst/position-inquiry/serverFilter.d.ts +0 -17
  30. package/gz-ui-web-lib/workbench/business/pst/position-inquiry/services.d.ts +0 -14
  31. package/gz-ui-web-lib/workbench/business/pst/position-inquiry/types.d.ts +0 -106
  32. package/gz-ui-web-lib/workbench/business/pst/position-inquiry/usePositionInquiry.d.ts +0 -30
  33. package/gz-ui-web-lib/workbench/business/pst/position-inquiry/utils.d.ts +0 -52
  34. package/gz-ui-web-lib/workbench/types.d.ts +0 -44
@@ -0,0 +1,4058 @@
1
+ import { jsx as f, jsxs as Me } from "react/jsx-runtime";
2
+ import qu, { forwardRef as ue, createContext as Ut, useRef as ee, useContext as Zu, useMemo as Le, useCallback as he, useEffect as Be, useState as ze, useReducer as Wt, useImperativeHandle as qt, useLayoutEffect as Mu } from "react";
3
+ import { Alert as ju, App as Xu, Button as Zt, Empty as Cu, Spin as Qu, theme as Ju, Tag as fu, Tooltip as jt, DatePicker as Pe, Form as we, ConfigProvider as Xt, Select as gu, Radio as pu } from "antd";
4
+ import He from "big.js";
5
+ import { AllEnterpriseModule as Qt } from "ag-grid-enterprise";
6
+ import { AgGridProvider as Jt, AgGridReact as Kt } from "ag-grid-react";
7
+ import { themeQuartz as er, createPart as Ku } from "ag-grid-community";
8
+ import { g as ur, a as tr } from "./goldLightAgGridTokens-C71rk0pu.js";
9
+ import * as et from "echarts/core";
10
+ import { LineChart as rr } from "echarts/charts";
11
+ import { GridComponent as nr, TooltipComponent as or } from "echarts/components";
12
+ import { CanvasRenderer as ar } from "echarts/renderers";
13
+ function ut(r) {
14
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
15
+ }
16
+ var qe = { exports: {} }, ou = {};
17
+ var wu;
18
+ function ir() {
19
+ if (wu) return ou;
20
+ wu = 1;
21
+ var r = qu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
22
+ return ou.c = function(e) {
23
+ return r.H.useMemoCache(e);
24
+ }, ou;
25
+ }
26
+ var au = {};
27
+ var ku;
28
+ function lr() {
29
+ return ku || (ku = 1, process.env.NODE_ENV !== "production" && (function() {
30
+ var r = qu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
31
+ au.c = function(e) {
32
+ var t = r.H;
33
+ return t === null && console.error(
34
+ `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
35
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
36
+ 2. You might be breaking the Rules of Hooks
37
+ 3. You might have more than one copy of React in the same app
38
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
39
+ ), t.useMemoCache(e);
40
+ };
41
+ })()), au;
42
+ }
43
+ var $u;
44
+ function sr() {
45
+ return $u || ($u = 1, process.env.NODE_ENV === "production" ? qe.exports = ir() : qe.exports = lr()), qe.exports;
46
+ }
47
+ var z = sr();
48
+ function tt(r) {
49
+ var e, t, u = "";
50
+ if (typeof r == "string" || typeof r == "number") u += r;
51
+ else if (typeof r == "object") if (Array.isArray(r)) {
52
+ var n = r.length;
53
+ for (e = 0; e < n; e++) r[e] && (t = tt(r[e])) && (u && (u += " "), u += t);
54
+ } else for (t in r) r[t] && (u && (u += " "), u += t);
55
+ return u;
56
+ }
57
+ function vu() {
58
+ for (var r, e, t = 0, u = "", n = arguments.length; t < n; t++) (r = arguments[t]) && (e = tt(r)) && (u && (u += " "), u += e);
59
+ return u;
60
+ }
61
+ const rt = ue((r, e) => {
62
+ const t = z.c(3);
63
+ let u;
64
+ return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(ju, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
65
+ });
66
+ rt.displayName = "GZAlert";
67
+ const cr = ju.ErrorBoundary, nt = (r) => {
68
+ const e = z.c(2);
69
+ let t;
70
+ return e[0] !== r ? (t = /* @__PURE__ */ f(cr, { ...r }), e[0] = r, e[1] = t) : t = e[1], t;
71
+ };
72
+ nt.displayName = "GZAlertErrorBoundary";
73
+ const Ge = rt;
74
+ Ge.ErrorBoundary = nt;
75
+ const ot = ue((r, e) => {
76
+ const t = z.c(3);
77
+ let u;
78
+ return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(Xu, { ...r, ref: e }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
79
+ });
80
+ ot.displayName = "GZApp";
81
+ const hu = ot;
82
+ Object.assign(hu, Xu);
83
+ const Ne = ue((r, e) => {
84
+ const t = z.c(9);
85
+ let u, n, a;
86
+ t[0] !== r ? ({
87
+ children: u,
88
+ type: a,
89
+ ...n
90
+ } = r, t[0] = r, t[1] = u, t[2] = n, t[3] = a) : (u = t[1], n = t[2], a = t[3]);
91
+ const i = a === void 0 ? "default" : a;
92
+ let s;
93
+ return t[4] !== u || t[5] !== e || t[6] !== n || t[7] !== i ? (s = /* @__PURE__ */ f(Zt, { ref: e, type: i, ...n, children: u }), t[4] = u, t[5] = e, t[6] = n, t[7] = i, t[8] = s) : s = t[8], s;
94
+ });
95
+ Ne.displayName = "GZButton";
96
+ const at = (r) => {
97
+ const e = z.c(2);
98
+ let t;
99
+ return e[0] !== r ? (t = /* @__PURE__ */ f(Cu, { ...r }), e[0] = r, e[1] = t) : t = e[1], t;
100
+ };
101
+ at.displayName = "GZEmpty";
102
+ const Ve = at;
103
+ Ve.PRESENTED_IMAGE_DEFAULT = Cu.PRESENTED_IMAGE_DEFAULT;
104
+ Ve.PRESENTED_IMAGE_SIMPLE = Cu.PRESENTED_IMAGE_SIMPLE;
105
+ const it = (r) => {
106
+ const e = z.c(2);
107
+ let t;
108
+ return e[0] !== r ? (t = /* @__PURE__ */ f(Qu, { ...r }), e[0] = r, e[1] = t) : t = e[1], t;
109
+ };
110
+ it.displayName = "GZSpin";
111
+ const Du = it;
112
+ Object.assign(Du, Qu);
113
+ const dr = 1e3, cu = 3, oe = "-", Bu = {
114
+ pricingEnvironment: null,
115
+ carbonForwardCurve: null,
116
+ discountCurve: null,
117
+ valuationDate: null
118
+ }, Iu = {
119
+ pricingEnvironment: "请选择定价环境",
120
+ carbonForwardCurve: "请选择碳金融远期价格曲线",
121
+ discountCurve: "请选择无风险利率曲线",
122
+ valuationDate: "请选择估值日"
123
+ }, du = [{
124
+ key: "instrumentCode",
125
+ label: "成交编号",
126
+ kind: "contract"
127
+ }, {
128
+ key: "scrtyCode",
129
+ label: "标的代码",
130
+ kind: "contract"
131
+ }, {
132
+ key: "fwdMaturityDate",
133
+ label: "远期到期日",
134
+ kind: "contract"
135
+ }, {
136
+ key: "settleDate",
137
+ label: "结算支付日",
138
+ kind: "contract"
139
+ }, {
140
+ key: "physicalDelivery",
141
+ label: "交割方式",
142
+ kind: "contract"
143
+ }, {
144
+ key: "direction",
145
+ label: "买入/卖出",
146
+ kind: "contract"
147
+ }, {
148
+ key: "fwdDlvPrice",
149
+ label: "远期交割价格",
150
+ kind: "contract"
151
+ }, {
152
+ key: "npv",
153
+ label: "净现值NPV(估值日)",
154
+ kind: "result"
155
+ }, {
156
+ key: "forwardPrice",
157
+ label: "远期价格(远期到期日)",
158
+ kind: "result"
159
+ }, {
160
+ key: "discountFactor",
161
+ label: "支付日贴现因子",
162
+ kind: "result"
163
+ }], mr = [{
164
+ key: "instrumentCode",
165
+ label: "成交编号",
166
+ kind: "contract"
167
+ }, {
168
+ key: "scrtyCode",
169
+ label: "标的代码",
170
+ kind: "contract"
171
+ }, {
172
+ key: "direction",
173
+ label: "买入/卖出",
174
+ kind: "contract"
175
+ }, {
176
+ key: "fwdMaturityDate",
177
+ label: "远期到期日",
178
+ kind: "contract"
179
+ }, {
180
+ key: "targtVol",
181
+ label: "买卖数量",
182
+ kind: "contract"
183
+ }, {
184
+ key: "fwdDlvPrice",
185
+ label: "远期交割价格",
186
+ kind: "contract"
187
+ }, {
188
+ key: "npv",
189
+ label: "净现值NPV(估值日)",
190
+ kind: "result"
191
+ }, {
192
+ key: "forwardPrice",
193
+ label: "远期价格(远期到期日)",
194
+ kind: "result"
195
+ }, {
196
+ key: "discountFactor",
197
+ label: "支付日贴现因子",
198
+ kind: "result"
199
+ }], lt = Ut({});
200
+ var Er = {
201
+ // Set Filter
202
+ selectAll: "(全选)",
203
+ selectAllSearchResults: "(全选搜索结果)",
204
+ addCurrentSelectionToFilter: "将当前选择添加到筛选器",
205
+ searchOoo: "搜索...",
206
+ blanks: "(空白)",
207
+ noMatches: "无匹配项",
208
+ typeToSearchOoo: "输入内容进行搜索...",
209
+ // Number Filter & Text Filter
210
+ filterOoo: "过滤...",
211
+ equals: "等于",
212
+ notEqual: "不等于",
213
+ blank: "空白",
214
+ notBlank: "非空",
215
+ empty: "选择一个",
216
+ // Number Filter
217
+ lessThan: "小于",
218
+ greaterThan: "大于",
219
+ lessThanOrEqual: "小于等于",
220
+ greaterThanOrEqual: "大于等于",
221
+ inRange: "介于",
222
+ inRangeStart: "从",
223
+ inRangeEnd: "到",
224
+ // Text Filter
225
+ contains: "包含",
226
+ notContains: "不包含",
227
+ startsWith: "开始于",
228
+ endsWith: "结束于",
229
+ // Date Filter
230
+ dateFormatOoo: "yyyy-mm-dd",
231
+ before: "之前",
232
+ after: "之后",
233
+ yesterday: "昨天",
234
+ today: "今天",
235
+ tomorrow: "明天",
236
+ last7Days: "最近7天",
237
+ lastWeek: "上周",
238
+ thisWeek: "本周",
239
+ nextWeek: "下周",
240
+ last30Days: "最近30天",
241
+ lastMonth: "上个月",
242
+ thisMonth: "这个月",
243
+ nextMonth: "下个月",
244
+ last90Days: "最近90天",
245
+ lastQuarter: "上个季度",
246
+ thisQuarter: "这个季度",
247
+ nextQuarter: "下个季度",
248
+ lastYear: "去年",
249
+ thisYear: "今年",
250
+ yearToDate: "年初至今",
251
+ nextYear: "明年",
252
+ last6Months: "最近6个月",
253
+ last12Months: "最近12个月",
254
+ last24Months: "最近24个月",
255
+ // Filter Conditions
256
+ andCondition: "和",
257
+ orCondition: "或",
258
+ // Filter Buttons
259
+ applyFilter: "应用",
260
+ applyColumnToolPanel: "应用",
261
+ resetFilter: "重置",
262
+ clearFilter: "清除",
263
+ cancelFilter: "取消",
264
+ cancelColumnToolPanel: "取消",
265
+ // Filter Titles
266
+ textFilter: "文本过滤器",
267
+ numberFilter: "数字过滤器",
268
+ dateFilter: "日期过滤器",
269
+ setFilter: "集合过滤器",
270
+ // Group Column Filter
271
+ groupFilterSelect: "选择字段:",
272
+ // New Filter Tool Panel
273
+ filterSummaryInactive: "是(全部)",
274
+ filterSummaryContains: "包含",
275
+ filterSummaryNotContains: "不包含",
276
+ filterSummaryTextEquals: "等于",
277
+ filterSummaryTextNotEqual: "不等于",
278
+ filterSummaryStartsWith: "开始于",
279
+ filterSummaryEndsWith: "结束于",
280
+ filterSummaryBlank: "为空",
281
+ filterSummaryNotBlank: "不为空",
282
+ filterSummaryEquals: "=",
283
+ filterSummaryNotEqual: "!=",
284
+ filterSummaryGreaterThan: ">",
285
+ filterSummaryGreaterThanOrEqual: ">=",
286
+ filterSummaryLessThan: "<",
287
+ filterSummaryLessThanOrEqual: "<=",
288
+ filterSummaryInRange: "介于",
289
+ filterSummaryInRangeValues: "(${variable}, ${variable})",
290
+ filterSummaryTextQuote: ' "${variable}"',
291
+ filterSummaryListInactive: "是(全部)",
292
+ filterSummaryListSeparator: ", ",
293
+ filterSummaryListShort: "是(${variable})",
294
+ filterSummaryListLong: "是(${variable})和${variable}更多",
295
+ addFilterCard: "添加过滤器",
296
+ agTextColumnFilterDisplayName: "简单过滤器",
297
+ agNumberColumnFilterDisplayName: "简单过滤器",
298
+ agDateColumnFilterDisplayName: "简单过滤器",
299
+ agSetColumnFilterDisplayName: "选择过滤器",
300
+ agMultiColumnFilterDisplayName: "组合过滤器",
301
+ addFilterPlaceholder: "搜索列...",
302
+ // Advanced Filter
303
+ advancedFilterContains: "包含",
304
+ advancedFilterNotContains: "不包含",
305
+ advancedFilterTextEquals: "等于",
306
+ advancedFilterTextNotEqual: "不等于",
307
+ advancedFilterStartsWith: "开始于",
308
+ advancedFilterEndsWith: "结束于",
309
+ advancedFilterBlank: "为空",
310
+ advancedFilterNotBlank: "不为空",
311
+ advancedFilterEquals: "=",
312
+ advancedFilterNotEqual: "!=",
313
+ advancedFilterGreaterThan: ">",
314
+ advancedFilterGreaterThanOrEqual: ">=",
315
+ advancedFilterLessThan: "<",
316
+ advancedFilterLessThanOrEqual: "<=",
317
+ advancedFilterTrue: "为真",
318
+ advancedFilterFalse: "为假",
319
+ advancedFilterAnd: "且",
320
+ advancedFilterOr: "或",
321
+ advancedFilterApply: "应用",
322
+ advancedFilterReset: "重置",
323
+ advancedFilterCancel: "取消",
324
+ advancedFilterClear: "清除",
325
+ advancedFilterBuilder: "构建器",
326
+ advancedFilterValidationMissingColumn: "缺少列",
327
+ advancedFilterValidationMissingOption: "缺少选项",
328
+ advancedFilterValidationMissingValue: "缺少值",
329
+ advancedFilterValidationInvalidColumn: "找不到列",
330
+ advancedFilterValidationInvalidOption: "找不到选项",
331
+ advancedFilterValidationMissingQuote: "值缺少结束引号",
332
+ advancedFilterValidationNotANumber: "值不是一个数字",
333
+ advancedFilterValidationInvalidDate: "值不是一个有效日期",
334
+ advancedFilterValidationMissingCondition: "缺少条件",
335
+ advancedFilterValidationJoinOperatorMismatch: "一个条件内的连接操作符必须相同",
336
+ advancedFilterValidationInvalidJoinOperator: "找不到连接操作符",
337
+ advancedFilterValidationMissingEndBracket: "缺少结束括号",
338
+ advancedFilterValidationExtraEndBracket: "结束括号过多",
339
+ advancedFilterValidationMessage: "表达式有错误。${variable} - ${variable}。",
340
+ advancedFilterValidationMessageAtEnd: "表达式有错误。表达式末尾的${variable}。",
341
+ advancedFilterBuilderTitle: "高级筛选",
342
+ advancedFilterBuilderApply: "应用",
343
+ advancedFilterBuilderClear: "清除",
344
+ advancedFilterBuilderReset: "重置",
345
+ advancedFilterBuilderCancel: "取消",
346
+ advancedFilterBuilderAddButtonTooltip: "添加筛选或组",
347
+ advancedFilterBuilderRemoveButtonTooltip: "移除",
348
+ advancedFilterBuilderMoveUpButtonTooltip: "上移",
349
+ advancedFilterBuilderMoveDownButtonTooltip: "下移",
350
+ advancedFilterBuilderAddJoin: "添加组",
351
+ advancedFilterBuilderAddCondition: "添加筛选",
352
+ advancedFilterBuilderSelectColumn: "选择一个列",
353
+ advancedFilterBuilderSelectOption: "选择一个选项",
354
+ advancedFilterBuilderEnterValue: "输入一个值...",
355
+ advancedFilterBuilderValidationAlreadyApplied: "当前筛选已应用。",
356
+ advancedFilterBuilderValidationIncomplete: "并非所有条件都已完成。",
357
+ advancedFilterBuilderValidationSelectColumn: "必须选择一个列。",
358
+ advancedFilterBuilderValidationSelectOption: "必须选择一个选项。",
359
+ advancedFilterBuilderValidationEnterValue: "必须输入一个值。",
360
+ // Editor Validation Errors
361
+ minDateValidation: "日期必须在 ${variable} 之后",
362
+ maxDateValidation: "日期必须在 ${variable} 之前",
363
+ maxLengthValidation: "必须少于或等于 ${variable} 个字符",
364
+ minValueValidation: "必须大于或等于 ${variable}",
365
+ maxValueValidation: "必须小于或等于${variable}",
366
+ strictMinValueValidation: "必须大于${variable}",
367
+ strictMaxValueValidation: "必须小于${variable}",
368
+ invalidSelectionValidation: "无效的选择",
369
+ // Formulas
370
+ invalidFormulaValidation: "无效公式。",
371
+ formulaParseInvalidCellReference: "无效的单元格引用:${variable}。",
372
+ formulaParseInvalidRangeEndReference: "无效的范围结束引用。",
373
+ formulaParseUnterminatedString: "未终止的字符串。",
374
+ formulaParseUnexpectedCharacter: "意外字符:${variable}。",
375
+ formulaParseOperatorStackUnderflow: "运算符栈下溢。",
376
+ formulaParseMissingOperand: "缺少 '${variable}' 的操作数。",
377
+ formulaParseInternalUnexpectedFrameDuringReduction: "内部错误:归约期间出现意外帧。",
378
+ formulaParseInternalUnexpectedFrameBeforeOpenParen: "内部错误:'(' 前出现意外帧。",
379
+ formulaParseMisplacedComma: "逗号位置错误。",
380
+ formulaParseCommaOutsideFunctionCall: "函数调用外出现逗号。",
381
+ formulaParseInternalUnexpectedFrameBeforeCloseParen: "内部错误:')' 前出现意外帧。",
382
+ formulaParseMismatchedParentheses: "括号不匹配。",
383
+ formulaParseUnsupportedOperand: "不支持的操作数:${variable}。",
384
+ formulaParseMismatchedParenthesesOrUnfinishedFunctionCall: "括号不匹配或函数调用未完成。",
385
+ formulaParseInvalidExpression: "无效表达式。",
386
+ formulaParseFormulasMustBeginWithEquals: "公式必须以 = 开头。",
387
+ formulaSerializeStringContainsQuote: '字符串包含引号 ("),分词器不支持。',
388
+ formulaSerializeCannotProduceAbsoluteColumnLabelFromId: "无法从 ID '${variable}' 生成绝对列标签。",
389
+ formulaSerializeCannotProduceAbsoluteRowIndexFromId: "无法从 ID '${variable}' 生成绝对行索引。",
390
+ formulaSerializeCannotProduceRowIndexFromId: "无法从 ID '${variable}' 生成行索引。",
391
+ formulaSerializeCannotMapColumnIdToA1Label: "无法将列 ID '${variable}' 映射为 A1 标签。",
392
+ formulaSerializeCannotParseAbsoluteRowIndex: "无法解析绝对行索引 '${variable}'。",
393
+ formulaSerializeCannotMapRowIdToA1Index: "无法将行 ID '${variable}' 映射为 A1 索引。",
394
+ formulaEvalRangeNotAllowedInScalarContext: "标量上下文中不允许范围。",
395
+ formulaEvalUnknownReferenceToCell: "未知的单元格引用。",
396
+ formulaEvalUnsupportedOperation: "不支持的操作:${variable}。",
397
+ formulaEvalInvalidAbsoluteRow: "无效的绝对行。",
398
+ formulaEvalUnrecognisedRowId: "无法识别的行 ID。",
399
+ formulaEvalInvalidAbsoluteColumn: "无效的绝对列。",
400
+ formulaEvalUnrecognisedColumnId: "无法识别的列 ID。",
401
+ formulaEvalUnrecognisedRowInRange: "范围中存在无法识别的行。",
402
+ formulaEvalUnrecognisedReferenceToCell: "无法识别的单元格引用。",
403
+ formulaEvalIncompleteRangeReference: "不完整的范围引用。",
404
+ formulaFunctionExpectedExactlyArguments: "${variable}: 需要恰好 ${variable} 个参数。",
405
+ formulaFunctionExpectedAtMostArguments: "${variable}: 最多需要 ${variable} 个参数。",
406
+ formulaFunctionExpectedAtLeastArguments: "${variable}: 至少需要 ${variable} 个参数。",
407
+ formulaFunctionInvalidCriteriaWildcardsWithComparator: "无效条件:比较运算符不能与通配符同时使用。",
408
+ formulaFunctionNonNumericArgument: "${variable}: 参数必须为数值。",
409
+ formulaFunctionDivisionByZero: "${variable}: 除数不能为 0。",
410
+ formulaFunctionCannotCombineDatesWithBigInt: "${variable}: 不能将日期与 BigInt 混合。",
411
+ formulaFunctionRequiresAtLeastOneNumericValue: "${variable}: 至少需要一个数值。",
412
+ formulaFunctionRequiresAtLeastOneValue: "${variable}: 至少需要一个值。",
413
+ formulaFunctionAllValuesMustBeNumbers: "${variable}: 所有值都必须是数字。",
414
+ formulaFunctionArgumentMustBeRange: "${variable}: 第 ${variable} 个参数必须是范围。",
415
+ formulaFunctionArgumentMustBeValue: "${variable}: 第 ${variable} 个参数必须是值。",
416
+ formulaFunctionRangesHaveDifferentSizes: "${variable}: 范围大小不一致。",
417
+ formulaFunctionValuesMustBeNumeric: "${variable}: 值必须为数值。",
418
+ formulaFunctionValuesMustBeIntegers: "${variable}: 值必须为整数。",
419
+ formulaFunctionUnsupportedValueType: "${variable}: 不支持的值类型。",
420
+ formulaFunctionDivNonNumericArgument: "DIV:参数必须为数值。",
421
+ formulaFunctionDivDivisionByZero: "DIV:除数不能为 0。",
422
+ formulaFunctionSumCannotCombineDatesWithBigInt: "SUM:不能将日期与 BigInt 混合。",
423
+ formulaFunctionSumRequiresAtLeastOneNumericValue: "SUM:至少需要一个数值。",
424
+ formulaFunctionAvgRequiresAtLeastOneValue: "AVG:至少需要一个值。",
425
+ formulaFunctionMedianAllValuesMustBeNumbers: "MEDIAN:所有值都必须是数字。",
426
+ formulaFunctionMedianRequiresAtLeastOneValue: "MEDIAN:至少需要一个值。",
427
+ formulaFunctionSumifFirstArgumentMustBeRange: "SUMIF:第一个参数必须是范围。",
428
+ formulaFunctionSumifSecondArgumentMustBeValue: "SUMIF:第二个参数必须是值(criteria)。",
429
+ formulaFunctionSumifThirdArgumentMustBeRange: "SUMIF:第三个参数必须是范围(sum_range)。",
430
+ formulaFunctionSumifRangesHaveDifferentSizes: "SUMIF:范围大小不一致。",
431
+ formulaFunctionCountifFirstArgumentMustBeRange: "COUNTIF:第一个参数必须是范围。",
432
+ formulaFunctionCountifSecondArgumentMustBeValue: "COUNTIF:第二个参数必须是值(criteria)。",
433
+ formulaFunctionConcatUnsupportedValueType: "CONCAT:不支持的值类型。",
434
+ formulaFunctionMinRequiresAtLeastOneValue: "MIN:至少需要一个值。",
435
+ formulaFunctionMaxRequiresAtLeastOneValue: "MAX:至少需要一个值。",
436
+ formulaFunctionPercentNonNumericArgument: "PERCENT:参数必须为数值。",
437
+ formulaFunctionPowerNonNumericArgument: "POWER:参数必须为数值。",
438
+ formulaServiceCircularReference: "循环引用。",
439
+ formulaServiceExpectedParsableFormula: "期望可解析的公式。",
440
+ formulaServiceInternalSchedulingError: "内部调度错误。",
441
+ tooltipValidationErrorSeparator: "。",
442
+ // Side Bar
443
+ columns: "列",
444
+ filters: "过滤器",
445
+ // columns tool panel
446
+ pivotMode: "透视模式",
447
+ groups: "行组",
448
+ rowGroupColumnsEmptyMessage: "拖动到此处设置行组",
449
+ values: "值",
450
+ valueColumnsEmptyMessage: "拖动到此处聚合",
451
+ pivots: "列标签",
452
+ pivotColumnsEmptyMessage: "拖动到此处设置列标签",
453
+ // Header of the Default Group Column
454
+ group: "组",
455
+ // Row Drag
456
+ rowDragRow: "行",
457
+ rowDragRows: "行",
458
+ // Other
459
+ loadingOoo: "加载中...",
460
+ loadingError: "错误",
461
+ noRowsToShow: "无显示行",
462
+ noMatchingRows: "无匹配行",
463
+ exportingOoo: "正在导出...",
464
+ fileInputOverlay: "拖放文件以导入数据",
465
+ fileInputOverlayBrowse: "浏览文件",
466
+ fileInputProcessing: "正在处理 ${variable}",
467
+ fileInputProcessingFailed: "处理 ${variable} 时出错",
468
+ enabled: "启用",
469
+ // Menu
470
+ pinColumn: "固定列",
471
+ pinLeft: "固定在左侧",
472
+ pinRight: "固定在右侧",
473
+ noPin: "取消固定",
474
+ pinRow: "锁定行",
475
+ pinTop: "固定到顶部",
476
+ pinBottom: "固定到底部",
477
+ unpinRow: "取消锁定行",
478
+ valueAggregation: "值汇总",
479
+ noAggregation: "无",
480
+ showValuesAs: "值显示方式",
481
+ showValuesAsNone: "无",
482
+ percentOfGrandTotal: "占总计的百分比",
483
+ percentOfColumnTotal: "占列总计的百分比",
484
+ percentOfRowTotal: "占行总计的百分比",
485
+ percentOfParentRowTotal: "占父行总计的百分比",
486
+ percentOfParentColumnTotal: "占父列总计的百分比",
487
+ percentOfGrandTotalDescription: "每个值占该列总计的百分比。",
488
+ percentOfColumnTotalDescription: "每个值占其列总计的百分比——每列合计为 100%。",
489
+ percentOfRowTotalDescription: "每个值占透视列中该行总计的百分比。",
490
+ percentOfParentRowTotalDescription: "每个值占其父分组的百分比。",
491
+ percentOfParentColumnTotalDescription: "每个值占其父透视列的百分比。",
492
+ autosizeThisColumn: "自动调整该列",
493
+ autosizeAllColumns: "自动调整所有列",
494
+ groupBy: "按${variable}分组",
495
+ ungroupBy: "取消按${variable}分组",
496
+ ungroupAll: "取消全部分组",
497
+ addToValues: "将${variable}添加到值",
498
+ removeFromValues: "将${variable}从值中移除",
499
+ addToLabels: "将${variable}添加到标签",
500
+ removeFromLabels: "将${variable}从标签中移除",
501
+ resetColumns: "重置列",
502
+ expandAll: "展开所有行组",
503
+ collapseAll: "关闭所有行组",
504
+ copy: "复制",
505
+ ctrlC: "Ctrl+C",
506
+ ctrlX: "Ctrl+X",
507
+ copyWithHeaders: "复制包含标题",
508
+ copyWithGroupHeaders: "复制包含组标题",
509
+ cut: "剪切",
510
+ paste: "粘贴",
511
+ ctrlV: "Ctrl+V",
512
+ export: "导出",
513
+ csvExport: "导出为CSV",
514
+ excelExport: "导出为Excel",
515
+ columnFilter: "列过滤",
516
+ columnChooser: "选择列",
517
+ chooseColumns: "选择列",
518
+ sortAscending: "升序排列",
519
+ sortDescending: "降序排列",
520
+ sortAbsoluteAscending: "绝对升序排序",
521
+ sortAbsoluteDescending: "绝对降序排序",
522
+ sortUnSort: "清除排序",
523
+ shiftF2: "Shift+F2",
524
+ toolbarFind: "查找",
525
+ toolbarFindPreviousMatch: "上一个匹配",
526
+ toolbarFindNextMatch: "下一个匹配",
527
+ toolbarQuickFilter: "筛选",
528
+ toolbarMenu: "菜单",
529
+ // Enterprise Menu Aggregation and Status Bar
530
+ sum: "总和",
531
+ first: "第一个",
532
+ last: "最后一个",
533
+ min: "最小值",
534
+ max: "最大值",
535
+ none: "无",
536
+ count: "计数",
537
+ avg: "平均",
538
+ filteredRows: "已筛选",
539
+ selectedRows: "已选中",
540
+ totalRows: "总行数",
541
+ totalAndFilteredRows: "行",
542
+ more: "更多",
543
+ to: "至",
544
+ of: "的",
545
+ page: "页",
546
+ pageLastRowUnknown: "?",
547
+ nextPage: "下一页",
548
+ lastPage: "最后一页",
549
+ firstPage: "第一页",
550
+ previousPage: "上一页",
551
+ pageSizeSelectorLabel: "每页大小:",
552
+ footerTotal: "合计",
553
+ statusBarLastRowUnknown: "?",
554
+ scrollColumnIntoView: "滚动${variable}到视图内",
555
+ // Pivoting
556
+ pivotColumnGroupTotals: "总计",
557
+ // Enterprise Menu (Charts)
558
+ pivotChartAndPivotMode: "数据透视图和数据透视模式",
559
+ pivotChart: "数据透视图",
560
+ chartRange: "图表范围",
561
+ columnChart: "柱状图",
562
+ groupedColumn: "分组",
563
+ stackedColumn: "堆积",
564
+ normalizedColumn: "100% 堆积",
565
+ barChart: "条形图",
566
+ groupedBar: "分组",
567
+ stackedBar: "堆积",
568
+ normalizedBar: "100% 堆积",
569
+ pieChart: "饼图",
570
+ pie: "饼图",
571
+ donut: "环形图",
572
+ lineChart: "折线图",
573
+ stackedLine: "堆叠",
574
+ normalizedLine: "100% 堆叠",
575
+ xyChart: "X Y (散点图)",
576
+ scatter: "散点图",
577
+ bubble: "气泡图",
578
+ areaChart: "面积图",
579
+ area: "面积",
580
+ stackedArea: "堆积",
581
+ normalizedArea: "100% 堆积",
582
+ histogramChart: "直方图",
583
+ polarChart: "极地图",
584
+ radarLine: "雷达线",
585
+ radarArea: "雷达面积",
586
+ nightingale: "夜莺图",
587
+ radialColumn: "径向柱状图",
588
+ radialBar: "径向条形图",
589
+ statisticalChart: "统计图",
590
+ boxPlot: "箱线图",
591
+ rangeBar: "区间条形图",
592
+ rangeArea: "区间面积图",
593
+ hierarchicalChart: "层次图",
594
+ treemap: "树图",
595
+ sunburst: "旭日图",
596
+ specializedChart: "专项图",
597
+ waterfall: "瀑布图",
598
+ heatmap: "热力图",
599
+ combinationChart: "组合图",
600
+ columnLineCombo: "柱状图和折线图组合",
601
+ AreaColumnCombo: "面积图和柱状图组合",
602
+ // Charts
603
+ pivotChartTitle: "数据透视图",
604
+ rangeChartTitle: "范围图",
605
+ settings: "图表",
606
+ data: "设置",
607
+ format: "自定义",
608
+ categories: "类别",
609
+ defaultCategory: "(无)",
610
+ series: "系列",
611
+ switchCategorySeries: "切换类别 / 系列",
612
+ categoryValues: "类别值",
613
+ seriesLabels: "系列标签",
614
+ aggregate: "汇总",
615
+ xyValues: "XY 值",
616
+ paired: "配对模式",
617
+ axis: "轴",
618
+ xAxis: "水平轴",
619
+ yAxis: "垂直轴",
620
+ polarAxis: "极坐标轴",
621
+ radiusAxis: "半径轴",
622
+ navigator: "导航器",
623
+ zoom: "缩放",
624
+ animation: "动画",
625
+ crosshair: "准星",
626
+ color: "颜色",
627
+ thickness: "厚度",
628
+ preferredLength: "首选长度",
629
+ xType: "X 类型",
630
+ axisType: "轴类型",
631
+ automatic: "自动",
632
+ category: "类别",
633
+ number: "数值",
634
+ time: "时间",
635
+ timeFormat: "时间格式",
636
+ autoRotate: "自动旋转",
637
+ labelRotation: "旋转",
638
+ circle: "圆形",
639
+ polygon: "多边形",
640
+ square: "方形",
641
+ cross: "十字符",
642
+ diamond: "菱形",
643
+ plus: "加号",
644
+ triangle: "三角形",
645
+ heart: "爱心",
646
+ orientation: "方向",
647
+ fixed: "固定",
648
+ parallel: "平行",
649
+ perpendicular: "垂直",
650
+ radiusAxisPosition: "位置",
651
+ ticks: "刻度",
652
+ gridLines: "网格线",
653
+ width: "宽度",
654
+ height: "高度",
655
+ length: "长度",
656
+ padding: "内边距",
657
+ spacing: "间距",
658
+ chartStyle: "图表样式",
659
+ title: "标题",
660
+ chartTitles: "标题",
661
+ chartTitle: "图表标题",
662
+ chartSubtitle: "副标题",
663
+ horizontalAxisTitle: "水平轴标题",
664
+ verticalAxisTitle: "垂直轴标题",
665
+ polarAxisTitle: "极坐标轴标题",
666
+ titlePlaceholder: "图表标题",
667
+ background: "背景",
668
+ font: "字体",
669
+ weight: "粗细",
670
+ top: "顶部",
671
+ right: "右边",
672
+ bottom: "底部",
673
+ left: "左边",
674
+ labels: "标签",
675
+ calloutLabels: "标注标签",
676
+ sectorLabels: "扇区标签",
677
+ positionRatio: "位置比例",
678
+ size: "大小",
679
+ shape: "形状",
680
+ minSize: "最小大小",
681
+ maxSize: "最大大小",
682
+ legend: "图例",
683
+ position: "位置",
684
+ markerSize: "标记大小",
685
+ markerStroke: "标记描边",
686
+ markerPadding: "标记内边距",
687
+ itemSpacing: "项目间距",
688
+ itemPaddingX: "项目内边距 X",
689
+ itemPaddingY: "项目内边距 Y",
690
+ layoutHorizontalSpacing: "横向间距",
691
+ layoutVerticalSpacing: "纵向间距",
692
+ strokeWidth: "描边宽度",
693
+ offset: "偏移",
694
+ offsets: "偏移",
695
+ tooltips: "工具提示",
696
+ callout: "标注",
697
+ markers: "标记",
698
+ shadow: "阴影",
699
+ blur: "模糊",
700
+ xOffset: "X 偏移",
701
+ yOffset: "Y 偏移",
702
+ lineWidth: "线宽",
703
+ lineDash: "线条虚线",
704
+ lineDashOffset: "虚线偏移",
705
+ scrollingZoom: "滚动",
706
+ scrollingStep: "滚动步骤",
707
+ selectingZoom: "选择",
708
+ durationMillis: "持续时间 (毫秒)",
709
+ crosshairLabel: "标签",
710
+ crosshairSnap: "对节点对齐",
711
+ normal: "常规",
712
+ bold: "加粗",
713
+ italic: "斜体",
714
+ boldItalic: "加粗斜体",
715
+ predefined: "预定义",
716
+ fillOpacity: "填充不透明度",
717
+ strokeColor: "线条颜色",
718
+ strokeOpacity: "线条不透明度",
719
+ miniChart: "迷你图表",
720
+ histogramBinCount: "箱数",
721
+ connectorLine: "连接线",
722
+ seriesItems: "系列项目",
723
+ seriesItemType: "项目类型",
724
+ seriesItemPositive: "正面",
725
+ seriesItemNegative: "负面",
726
+ seriesItemLabels: "项目标签",
727
+ columnGroup: "柱形图",
728
+ barGroup: "条形图",
729
+ pieGroup: "饼图",
730
+ lineGroup: "折线图",
731
+ scatterGroup: "散点图",
732
+ areaGroup: "面积图",
733
+ polarGroup: "极坐标图",
734
+ statisticalGroup: "统计图",
735
+ hierarchicalGroup: "层次图",
736
+ specializedGroup: "专用图",
737
+ combinationGroup: "组合图",
738
+ groupedColumnTooltip: "分组",
739
+ stackedColumnTooltip: "堆积",
740
+ normalizedColumnTooltip: "100% 堆积",
741
+ groupedBarTooltip: "分组",
742
+ stackedBarTooltip: "堆积",
743
+ normalizedBarTooltip: "100% 堆积",
744
+ pieTooltip: "饼图",
745
+ donutTooltip: "环形图",
746
+ lineTooltip: "折线图",
747
+ stackedLineTooltip: "堆叠",
748
+ normalizedLineTooltip: "百分比堆叠",
749
+ groupedAreaTooltip: "面积图",
750
+ stackedAreaTooltip: "堆积",
751
+ normalizedAreaTooltip: "100% 堆积",
752
+ scatterTooltip: "散点图",
753
+ bubbleTooltip: "气泡图",
754
+ histogramTooltip: "直方图",
755
+ radialColumnTooltip: "径向柱图",
756
+ radialBarTooltip: "径向条图",
757
+ radarLineTooltip: "雷达线图",
758
+ radarAreaTooltip: "雷达面积图",
759
+ nightingaleTooltip: "玫瑰图",
760
+ rangeBarTooltip: "范围条图",
761
+ rangeAreaTooltip: "范围面积图",
762
+ boxPlotTooltip: "箱线图",
763
+ treemapTooltip: "树状图",
764
+ sunburstTooltip: "旭日图",
765
+ waterfallTooltip: "瀑布图",
766
+ heatmapTooltip: "热力图",
767
+ columnLineComboTooltip: "柱图与折线图",
768
+ areaColumnComboTooltip: "面积图与柱图",
769
+ customComboTooltip: "自定义组合",
770
+ innerRadius: "内半径",
771
+ startAngle: "起始角度",
772
+ endAngle: "终止角度",
773
+ reverseDirection: "反向",
774
+ groupPadding: "组间距",
775
+ seriesPadding: "系列间距",
776
+ tile: "瓦片",
777
+ whisker: "须",
778
+ cap: "顶部",
779
+ capLengthRatio: "顶部长度比",
780
+ labelPlacement: "标签位置",
781
+ inside: "内部",
782
+ outside: "外部",
783
+ noDataToChart: "无可绘制的数据。",
784
+ pivotChartRequiresPivotMode: "数据透视图需要启用数据透视模式。",
785
+ chartSettingsToolbarTooltip: "菜单",
786
+ chartLinkToolbarTooltip: "链接到网格",
787
+ chartUnlinkToolbarTooltip: "从网格中取消链接",
788
+ chartDownloadToolbarTooltip: "下载图表",
789
+ chartMenuToolbarTooltip: "菜单",
790
+ chartEdit: "编辑图表",
791
+ chartAdvancedSettings: "高级设置",
792
+ chartLink: "链接到网格",
793
+ chartUnlink: "从网格中取消链接",
794
+ chartDownload: "下载图表",
795
+ histogramFrequency: "频率",
796
+ seriesChartType: "系列图表类型",
797
+ seriesType: "系列类型",
798
+ secondaryAxis: "次轴",
799
+ seriesAdd: "添加系列",
800
+ categoryAdd: "添加类别",
801
+ bar: "条形图",
802
+ column: "柱形图",
803
+ histogram: "直方图",
804
+ advancedSettings: "高级设置",
805
+ direction: "方向",
806
+ horizontal: "水平",
807
+ vertical: "垂直",
808
+ seriesGroupType: "分组类型",
809
+ groupedSeriesGroupType: "分组",
810
+ stackedSeriesGroupType: "堆积",
811
+ normalizedSeriesGroupType: "100% 堆积",
812
+ legendEnabled: "启用",
813
+ invalidColor: "无效的颜色值",
814
+ groupedColumnFull: "分组柱形图",
815
+ stackedColumnFull: "堆积柱形图",
816
+ normalizedColumnFull: "100% 堆积柱形图",
817
+ groupedBarFull: "分组条形图",
818
+ stackedBarFull: "堆积条形图",
819
+ normalizedBarFull: "100% 堆积条形图",
820
+ stackedAreaFull: "堆积面积图",
821
+ normalizedAreaFull: "100% 堆积面积图",
822
+ customCombo: "自定义组合",
823
+ funnel: "漏斗",
824
+ coneFunnel: "圆锥漏斗",
825
+ pyramid: "金字塔",
826
+ funnelGroup: "漏斗",
827
+ funnelTooltip: "漏斗",
828
+ coneFunnelTooltip: "圆锥漏斗",
829
+ pyramidTooltip: "金字塔",
830
+ dropOff: "流失",
831
+ stageLabels: "阶段标签",
832
+ reverse: "反向",
833
+ tooltipMode: "工具提示模式",
834
+ tooltipModeSingle: "单个",
835
+ tooltipModeShared: "多个",
836
+ tooltipModeCompact: "紧凑",
837
+ // ARIA
838
+ ariaAdvancedFilterBuilderItem: "${variable}. 级别 ${variable}. 按 ENTER 进行编辑。",
839
+ ariaAdvancedFilterBuilderItemValidation: "${variable}. 级别 ${variable}. ${variable} 按 ENTER 进行编辑。",
840
+ ariaAdvancedFilterBuilderList: "高级过滤器构建器列表",
841
+ ariaAdvancedFilterBuilderFilterItem: "过滤条件",
842
+ ariaAdvancedFilterBuilderGroupItem: "过滤组",
843
+ ariaAdvancedFilterBuilderColumn: "列",
844
+ ariaAdvancedFilterBuilderOption: "选项",
845
+ ariaAdvancedFilterBuilderValueP: "值",
846
+ ariaAdvancedFilterBuilderJoinOperator: "连接运算符",
847
+ ariaAdvancedFilterInput: "高级过滤器输入",
848
+ ariaChecked: "已选中",
849
+ ariaColumn: "列",
850
+ ariaColumnGroup: "列组",
851
+ ariaFilterActive: "筛选已激活",
852
+ ariaColumnFiltered: "列已过滤",
853
+ ariaCalculatedColumn: "计算列",
854
+ ariaColumnShowValuesAs: "正在以此方式显示值",
855
+ ariaColumnSelectAll: "切换所有列的可见性",
856
+ ariaDateFilterInput: "日期过滤器输入",
857
+ ariaDefaultListName: "列表",
858
+ ariaFilterColumnsInput: "过滤列输入",
859
+ ariaFilterFromValue: "过滤从值",
860
+ ariaFilterInput: "过滤器输入",
861
+ ariaFilterList: "过滤器列表",
862
+ ariaFilterToValue: "过滤至值",
863
+ ariaFilterValue: "过滤值",
864
+ ariaFilterMenuOpen: "打开过滤器菜单",
865
+ ariaFilteringOperator: "过滤运算符",
866
+ ariaHidden: "隐藏",
867
+ ariaIndeterminate: "不确定",
868
+ ariaInputEditor: "输入编辑器",
869
+ ariaMenuColumn: "按 ALT 向下 打开列菜单",
870
+ ariaFilterColumn: "按 CTRL ENTER 打开过滤器",
871
+ ariaRowDeselect: "按 SPACE 取消选择此行",
872
+ ariaHeaderSelection: "具有标题选择的列",
873
+ ariaSelectAllCells: "按空格键或回车键选择所有单元格",
874
+ ariaSelectAllRowCells: "按 Enter 键选择此行中的所有单元格",
875
+ ariaColumnCellSelection: "按 Enter 键切换此列中所有可见单元格的选择",
876
+ ariaColumnGroupCellSelection: "按 Enter 键切换此列组中所有可见单元格的选择",
877
+ ariaColumnGroupExpansion: "按 ENTER 键展开或折叠此列组",
878
+ ariaColumnGroupCellSelectionAndExpansion: "按 Enter 键切换此列组中所有可见单元格的选择. 按 ALT ENTER 键展开或折叠此列组",
879
+ ariaRowSelectAll: "按 Space 切换所有行选择",
880
+ ariaRowToggleSelection: "按 Space 切换行选择",
881
+ ariaRowSelect: "按 SPACE 选择此行",
882
+ ariaRowSelectionDisabled: "此行的行选择功能被禁用",
883
+ ariaSearch: "搜索",
884
+ ariaSortableColumn: "按 ENTER 排序",
885
+ ariaSortableColumnWithCellSelection: "按 ALT ENTER 排序",
886
+ ariaToggleVisibility: "按 Space 切换可见性",
887
+ ariaToggleCellValue: "按 Space 切换单元格值",
888
+ ariaUnchecked: "未选中",
889
+ ariaVisible: "可见",
890
+ ariaSearchFilterValues: "搜索过滤值",
891
+ ariaPageSizeSelectorLabel: "页面大小",
892
+ ariaChartMenuClose: "关闭图表编辑菜单",
893
+ ariaChartSelected: "已选择",
894
+ ariaSparklineChartDescription: "迷你图 - ${chartType} 显示 ${count} 个值,范围在 ${min} 到 ${max} 之间。起始于 ${start},结束于 ${end}。",
895
+ ariaSparklineChartDescriptionSingleValue: "迷你图 - ${chartType} 显示 1 个值:${value}。",
896
+ ariaSparklineChartDescriptionEmpty: "迷你图 - ${chartType},无值。",
897
+ ariaSkeletonCellLoadingFailed: "行加载失败",
898
+ ariaSkeletonCellLoading: "行数据加载中",
899
+ ariaDeferSkeletonCellLoading: "单元格正在加载",
900
+ // ARIA for Batch Edit
901
+ ariaPendingChange: "待处理的变更",
902
+ // ARIA Labels for Drop Zones
903
+ ariaRowGroupDropZonePanelLabel: "行分组",
904
+ ariaValuesDropZonePanelLabel: "值",
905
+ ariaPivotDropZonePanelLabel: "列标签",
906
+ ariaDropZoneColumnComponentDescription: "按 DELETE 键移除",
907
+ ariaDropZoneColumnValueItemDescription: "按 ENTER 键更改聚合类型",
908
+ ariaDropZoneColumnGroupItemDescription: "按 ENTER 键排序",
909
+ // used for aggregate drop zone, format: {aggregation}{ariaDropZoneColumnComponentAggFuncSeparator}{column name}
910
+ ariaDropZoneColumnComponentAggFuncSeparator: " 的 ",
911
+ ariaDropZoneColumnComponentSortAscending: "升序",
912
+ ariaDropZoneColumnComponentSortDescending: "降序",
913
+ ariaDropZoneColumnComponentSortAbsoluteAscending: "绝对升序",
914
+ ariaDropZoneColumnComponentSortAbsoluteDescending: "绝对降序",
915
+ ariaLabelDialog: "对话框",
916
+ ariaLabelColumnMenu: "列菜单",
917
+ ariaLabelColumnFilter: "列过滤器",
918
+ ariaLabelSelectField: "选择字段",
919
+ // Cell Editor
920
+ ariaValidationErrorPrefix: "单元格编辑器验证",
921
+ ariaLabelLoadingContextMenu: "正在加载上下文菜单",
922
+ // aria labels for rich select
923
+ ariaLabelRichSelectField: "丰富选择字段",
924
+ ariaLabelRichSelectToggleSelection: "按下空格键以切换选择",
925
+ ariaLabelRichSelectDeselectAllItems: "按下删除键来取消选择所有项目",
926
+ ariaLabelRichSelectDeleteSelection: "按下删除键来取消选择项目",
927
+ ariaLabelTooltip: "工具提示",
928
+ ariaLabelContextMenu: "上下文菜单",
929
+ ariaLabelSubMenu: "子菜单",
930
+ ariaLabelAggregationFunction: "聚合函数",
931
+ ariaLabelAdvancedFilterAutocomplete: "高级筛选自动完成",
932
+ ariaLabelAdvancedFilterBuilderAddField: "高级筛选生成器添加字段",
933
+ ariaLabelAdvancedFilterBuilderColumnSelectField: "高级筛选生成器列选择字段",
934
+ ariaLabelAdvancedFilterBuilderOptionSelectField: "高级筛选生成器选项选择字段",
935
+ ariaLabelAdvancedFilterBuilderJoinSelectField: "高级筛选生成器连接操作符选择字段",
936
+ // ARIA Labels for the Side Bar
937
+ ariaColumnPanelList: "列列表",
938
+ ariaFilterPanelList: "过滤列表",
939
+ // ARIA labels for new Filters Tool Panel
940
+ ariaLabelAddFilterField: "添加过滤字段",
941
+ ariaLabelFilterCardDelete: "删除过滤器",
942
+ ariaLabelFilterCardHasEdits: "有编辑",
943
+ ariaHasNote: "此单元格有备注。",
944
+ // Number Format (Status Bar, Pagination Panel)
945
+ thousandSeparator: ",",
946
+ decimalSeparator: ".",
947
+ // Data types
948
+ dataTypeText: "文本",
949
+ dataTypeNumber: "数字",
950
+ dataTypeBigInt: "BigInt",
951
+ dataTypeBoolean: "布尔值",
952
+ dataTypeDate: "日期",
953
+ dataTypeDateString: "日期字符串",
954
+ dataTypeDateTime: "日期时间",
955
+ dataTypeDateTimeString: "日期时间字符串",
956
+ dataTypeObject: "对象",
957
+ true: "真",
958
+ false: "假",
959
+ invalidDate: "无效日期",
960
+ invalidNumber: "无效数字",
961
+ invalidBigInt: "无效BigInt",
962
+ january: "一月",
963
+ february: "二月",
964
+ march: "三月",
965
+ april: "四月",
966
+ may: "五月",
967
+ june: "六月",
968
+ july: "七月",
969
+ august: "八月",
970
+ september: "九月",
971
+ october: "十月",
972
+ november: "十一月",
973
+ december: "十二月",
974
+ // Date-time parts
975
+ year: "年",
976
+ quarter: "季度",
977
+ month: "月",
978
+ day: "日",
979
+ hour: "小时",
980
+ minute: "分钟",
981
+ second: "秒",
982
+ // Time formats
983
+ timeFormatSlashesDDMMYYYY: "DD/MM/YYYY",
984
+ timeFormatSlashesMMDDYYYY: "MM/DD/YYYY",
985
+ timeFormatSlashesDDMMYY: "DD/MM/YY",
986
+ timeFormatSlashesMMDDYY: "MM/DD/YY",
987
+ timeFormatDotsDDMYY: "DD.M.YY",
988
+ timeFormatDotsMDDYY: "M.DD.YY",
989
+ timeFormatDashesYYYYMMDD: "YYYY-MM-DD",
990
+ timeFormatSpacesDDMMMMYYYY: "DD MMMM YYYY",
991
+ timeFormatHHMMSS: "HH:MM:SS",
992
+ timeFormatHHMMSSAmPm: "HH:MM:SS 上午/下午",
993
+ // Calculated Columns
994
+ calculatedColumn: "计算列",
995
+ calculatedColumnAdd: "添加计算列",
996
+ calculatedColumnEdit: "编辑计算列",
997
+ calculatedColumnRemove: "删除计算列",
998
+ calculatedColumnTitle: "标题",
999
+ calculatedColumnType: "类型",
1000
+ calculatedColumnExpression: "表达式",
1001
+ calculatedColumnExpressionPlaceholder: "在此输入",
1002
+ calculatedColumnExpressionToolsLabel: "插入",
1003
+ calculatedColumnColumns: "列",
1004
+ calculatedColumnFunctions: "函数",
1005
+ calculatedColumnOperators: "运算符",
1006
+ calculatedColumnSuggestions: "计算列建议",
1007
+ calculatedColumnDefaultTitle: "未命名",
1008
+ calculatedColumnExpressionAmbiguousReference: '列引用不明确 "${variable}"。请使用“列”列表或更具体的分组路径。',
1009
+ calculatedColumnExpressionUnknownReference: '未知的列引用 "${variable}"。',
1010
+ calculatedColumnExpressionEmpty: "请输入表达式",
1011
+ calculatedColumnTitleEmpty: "请输入标题",
1012
+ calculatedColumnApply: "应用",
1013
+ calculatedColumnCancel: "取消",
1014
+ // Notes
1015
+ note: "单元格备注",
1016
+ addNote: "添加备注",
1017
+ viewNote: "查看备注",
1018
+ editNote: "编辑备注",
1019
+ deleteNote: "删除备注",
1020
+ notePlaceholder: "添加备注..."
1021
+ };
1022
+ const Fr = (r) => {
1023
+ const e = z.c(2), {
1024
+ text: t
1025
+ } = r, u = t === void 0 ? "暂无符合条件的数据" : t;
1026
+ let n;
1027
+ return e[0] !== u ? (n = /* @__PURE__ */ f("div", { className: "gz-table-no-rows-overlay", role: "status", children: u }), e[0] = u, e[1] = n) : n = e[1], n;
1028
+ }, Cr = Ku({
1029
+ feature: "gzTableDisabledCheckboxCursor",
1030
+ css: `
1031
+ .ag-checkbox-input:disabled,
1032
+ .ag-checkbox-input-wrapper.ag-disabled,
1033
+ .ag-selection-checkbox .ag-checkbox-input-wrapper.ag-disabled::before {
1034
+ cursor: not-allowed;
1035
+ }
1036
+ `
1037
+ }), fr = Ku({
1038
+ feature: "gzTablePaginationPickerWidth",
1039
+ css: `
1040
+ /* 覆盖分页器选择框的宽度,以及补充缺失的边框 */
1041
+ .ag-paging-panel .ag-picker-field-wrapper {
1042
+ min-width: 48px !important;
1043
+ min-height: 24px !important;
1044
+ border: 1px solid var(--gz-color-border) !important;
1045
+ cursor: pointer;
1046
+ transition: border-color 0.3s ease-in-out;
1047
+
1048
+ &:hover {
1049
+ border-color: var(--gz-color-primary-hover) !important;
1050
+ }
1051
+ }
1052
+
1053
+ /* 覆盖分页器输入框的宽度,以及补充缺失的边框 */
1054
+ .ag-number-field-input-wrapper .ag-input-field-input.ag-number-field-input {
1055
+ border: 1px solid var(--gz-color-border) !important;
1056
+ cursor: pointer;
1057
+ transition: border-color 0.3s ease-in-out;
1058
+
1059
+ &:hover {
1060
+ border-color: var(--gz-color-primary-hover) !important;
1061
+ }
1062
+ }
1063
+
1064
+ .ag-text-field-input-wrapper .ag-input-field-input.ag-text-field-input {
1065
+ border: 1px solid var(--gz-color-border) !important;
1066
+ cursor: pointer;
1067
+ transition: border-color 0.3s ease-in-out;
1068
+
1069
+ &:hover {
1070
+ border-color: var(--gz-color-primary-hover) !important;
1071
+ }
1072
+ }
1073
+
1074
+ .ag-paging-panel-content{
1075
+ padding: 0 !important;
1076
+ }
1077
+ `
1078
+ }), yu = er.withPart(Cr).withPart(fr).withParams({
1079
+ fontFamily: "var(--gz-font-family)",
1080
+ fontSize: "calc(var(--gz-font-size) * 1px)",
1081
+ fontWeight: "var(--gz-font-weight-normal)",
1082
+ iconSize: "calc(var(--gz-checkbox-size) * 1px)",
1083
+ focusShadow: {
1084
+ spread: "0px"
1085
+ },
1086
+ cellFontSize: "calc(var(--gz-font-size) * 1px)",
1087
+ cellFontWeight: "var(--gz-font-weight-normal)",
1088
+ cellHorizontalPadding: "calc(var(--gz-padding-xs) * 1px)",
1089
+ headerFontSize: "calc(var(--gz-font-size) * 1px)",
1090
+ headerFontWeight: "var(--gz-font-weight-normal)",
1091
+ headerHeight: 31,
1092
+ rowHeight: 28,
1093
+ headerBackgroundColor: "var(--gz-components-table-header-bg, var(--gz-color-border))",
1094
+ headerTextColor: "var(--gz-components-table-header-text-color, var(--gz-color-text-secondary))",
1095
+ headerColumnBorder: {
1096
+ style: "solid",
1097
+ width: 2,
1098
+ color: "var(--gz-color-split)"
1099
+ },
1100
+ headerColumnBorderHeight: 14,
1101
+ pinnedColumnBorder: {
1102
+ style: "solid",
1103
+ width: 1,
1104
+ color: "var(--gz-color-split)"
1105
+ },
1106
+ checkboxBorderRadius: "calc(var(--gz-border-radius-sm) * 1px)",
1107
+ checkboxBorderWidth: 1,
1108
+ checkboxUncheckedBackgroundColor: "var(--gz-color-bg-container)",
1109
+ checkboxUncheckedBorderColor: "var(--gz-color-border-secondary)",
1110
+ checkboxCheckedBackgroundColor: "var(--gz-color-primary)",
1111
+ checkboxCheckedBorderColor: "var(--gz-color-primary)",
1112
+ checkboxCheckedShapeColor: "var(--gz-color-text-on-light)",
1113
+ checkboxIndeterminateBackgroundColor: "var(--gz-color-primary)",
1114
+ checkboxIndeterminateBorderColor: "var(--gz-color-primary)",
1115
+ checkboxIndeterminateShapeColor: "var(--gz-color-text-on-light)",
1116
+ borderColor: "var(--gz-components-table-border-color, var(--gz-color-border))",
1117
+ oddRowBackgroundColor: "var(--gz-color-bg-container)",
1118
+ backgroundColor: "var(--gz-color-bg-container)",
1119
+ dataBackgroundColor: "var(--gz-color-bg-container)",
1120
+ foregroundColor: "var(--gz-color-text)",
1121
+ cellTextColor: "var(--gz-color-text)",
1122
+ rowHoverColor: "color-mix(in srgb, transparent, var(--gz-color-primary) 15%)",
1123
+ selectedRowBackgroundColor: "color-mix(in srgb, transparent, var(--gz-color-primary) 12%)",
1124
+ paginationPanelHeight: 40
1125
+ }), gr = yu.withParams(ur), pr = yu.withParams(tr), vr = "AgGridLicense66fwc79n[NORMAL][v0102]_NDA3MDk2NjQwMDAwMA==80908dd5fb71b58d3ce28b2ed320216d", iu = {
1126
+ theme: yu,
1127
+ // 允许鼠标划选并复制单元格里的文本(AG Grid 默认是 false,防止和拖拽冲突,但业务通常需要复制)
1128
+ enableCellTextSelection: !0,
1129
+ // 自定义空状态组件:当 rowData 为空时,展示我们自己写的 NoRowsOverlay 组件
1130
+ noRowsOverlayComponent: Fr,
1131
+ // 注入官方的纯中文语言包,并覆盖部分默认文案以符合业务习惯
1132
+ localeText: {
1133
+ ...Er,
1134
+ pageSizeSelectorLabel: "每页条数",
1135
+ page: "第",
1136
+ of: "页/共",
1137
+ collapseAll: "收起所有行组"
1138
+ },
1139
+ // 默认表头高度和行高
1140
+ headerHeight: 31,
1141
+ rowHeight: 28,
1142
+ // 禁用原生的右键菜单(界面更干净,如有需要业务侧可自行开启)
1143
+ suppressContextMenu: !1,
1144
+ // 拖动列交换位置时,关闭动画(可能为了性能或视觉统一)
1145
+ suppressColumnMoveAnimation: !0,
1146
+ // 禁用单元格的焦点框(点击单元格时不会出现蓝色边框,类似普通网页体验)
1147
+ suppressCellFocus: !0,
1148
+ // 把列拖出表格范围时,不隐藏该列
1149
+ suppressDragLeaveHidesColumns: !0,
1150
+ // 滚动条宽度(10px)
1151
+ scrollbarWidth: 10,
1152
+ // 默认关闭分页。如果要开启,使用者必须显式传 pagination: true
1153
+ pagination: !1
1154
+ }, hr = {
1155
+ sortable: !0,
1156
+ resizable: !0,
1157
+ // 根据基线产品需求:开启按列聚合功能,并限制只能使用以下 5 种汇总方式(原生的 first/last 等被剔除)
1158
+ enableValue: !0,
1159
+ // 限制只能使用以下 5 种汇总方式(原生的 first/last 等被剔除)
1160
+ allowedAggFuncs: ["sum", "avg", "max", "min", "count"]
1161
+ }, Dr = [Qt], Br = ["rowSummary", "pageSize", "pageSummary"], bu = ue((r, e) => {
1162
+ const t = ee(null), {
1163
+ themeMode: u
1164
+ } = Zu(lt), {
1165
+ gridOptions: n
1166
+ } = r, a = r.pagination ?? n?.pagination ?? iu.pagination, i = r.paginationPanels ?? n?.paginationPanels, s = a && i === void 0, E = s ? Br : i, F = u === "gold-dark" ? gr : u === "gold-light" ? pr : void 0, h = r.theme ?? n?.theme ?? F, p = Le(() => ({
1167
+ ...iu,
1168
+ ...n,
1169
+ paginationPanels: E
1170
+ }), [n, E]), x = Le(() => ({
1171
+ ...iu.localeText,
1172
+ ...n?.localeText,
1173
+ ...r.localeText
1174
+ }), [n?.localeText, r.localeText]), S = ["gz-table", a ? "gz-table-pagination" : void 0, s ? "gz-table-default-pagination-layout" : void 0, u === "gold-dark" ? "gz-table-gold-dark" : void 0, u === "gold-light" ? "gz-table-gold-light" : void 0, r.className].filter(Boolean).join(" "), I = Le(() => ({
1175
+ ...hr,
1176
+ ...n?.defaultColDef,
1177
+ ...r.defaultColDef
1178
+ }), [n?.defaultColDef, r.defaultColDef]), b = he((D) => {
1179
+ const R = t.current;
1180
+ if (!R || !D) return;
1181
+ const $ = R.querySelector(".ag-body-horizontal-scroll-viewport");
1182
+ if ($) {
1183
+ const {
1184
+ scrollLeft: v,
1185
+ clientWidth: _,
1186
+ scrollWidth: k
1187
+ } = $, Y = v > 0, C = Math.ceil(v + _) < k - 1;
1188
+ R.classList.toggle("gz-table-ping-left", Y), R.classList.toggle("gz-table-ping-right", C);
1189
+ } else
1190
+ R.classList.remove("gz-table-ping-left", "gz-table-ping-right");
1191
+ }, []), g = he((D) => {
1192
+ D.direction === "horizontal" && b(D.api), r.onBodyScroll && r.onBodyScroll(D), n?.onBodyScroll && n.onBodyScroll(D);
1193
+ }, [b, r.onBodyScroll, n?.onBodyScroll]), T = he((D) => {
1194
+ b(D.api), r.onGridReady && r.onGridReady(D), n?.onGridReady && n.onGridReady(D);
1195
+ }, [b, r.onGridReady, n?.onGridReady]), y = he((D) => {
1196
+ b(D.api), r.onGridSizeChanged && r.onGridSizeChanged(D), n?.onGridSizeChanged && n.onGridSizeChanged(D);
1197
+ }, [b, r.onGridSizeChanged, n?.onGridSizeChanged]), M = he((D) => {
1198
+ b(D.api), r.onModelUpdated && r.onModelUpdated(D), n?.onModelUpdated && n.onModelUpdated(D);
1199
+ }, [b, r.onModelUpdated, n?.onModelUpdated]), P = he((D) => {
1200
+ b(D.api), r.onDisplayedColumnsChanged && r.onDisplayedColumnsChanged(D), n?.onDisplayedColumnsChanged && n.onDisplayedColumnsChanged(D);
1201
+ }, [b, r.onDisplayedColumnsChanged, n?.onDisplayedColumnsChanged]), w = r.getContextMenuItems ?? n?.getContextMenuItems, L = he((D) => {
1202
+ const R = {
1203
+ name: "复制整行数据",
1204
+ icon: '<span class="ag-icon ag-icon-copy" unselectable="on" role="presentation"></span>',
1205
+ action: () => {
1206
+ const k = D.node;
1207
+ if (!k || !k.data) return;
1208
+ const C = (D.api.getAllDisplayedColumns() || []).map((m) => {
1209
+ const o = m.getColId(), l = k.data[o];
1210
+ return typeof l == "object" ? JSON.stringify(l) : String(l ?? "");
1211
+ }).join(" ");
1212
+ if (navigator.clipboard && window.isSecureContext)
1213
+ navigator.clipboard.writeText(C).catch((m) => {
1214
+ console.error("复制整行数据失败: ", m);
1215
+ });
1216
+ else {
1217
+ const m = document.createElement("textarea");
1218
+ m.value = C, m.style.position = "fixed", m.style.left = "-999999px", m.style.top = "-999999px", document.body.appendChild(m), m.focus(), m.select();
1219
+ try {
1220
+ document.execCommand("copy");
1221
+ } catch (o) {
1222
+ console.error("降级复制失败", o);
1223
+ }
1224
+ m.remove();
1225
+ }
1226
+ }
1227
+ };
1228
+ let $ = D.defaultItems || [];
1229
+ const v = $.indexOf("copy");
1230
+ return v !== -1 && ($[v] = R), D.api.getRowGroupColumns().length > 0 && ($ = [
1231
+ ...$,
1232
+ "separator",
1233
+ "expandAll",
1234
+ "contractAll"
1235
+ // AG Grid 中“收起全部”对应的内部指令是 contractAll
1236
+ ]), w ? w({
1237
+ ...D,
1238
+ defaultItems: $
1239
+ }) : $;
1240
+ }, [w]);
1241
+ return /* @__PURE__ */ f("div", { ref: t, className: "gz-table-wrapper", style: {
1242
+ height: "100%",
1243
+ width: "100%",
1244
+ display: "flex",
1245
+ flexDirection: "column"
1246
+ }, children: /* @__PURE__ */ f(Jt, { modules: Dr, licenseKey: vr, children: /* @__PURE__ */ f(Kt, { ref: e, ...r, gridOptions: p, ...h === void 0 ? {} : {
1247
+ theme: h
1248
+ }, className: S || void 0, defaultColDef: I, localeText: x, getContextMenuItems: L, onBodyScroll: g, onGridReady: T, onGridSizeChanged: y, onModelUpdated: M, onDisplayedColumnsChanged: P }) }) });
1249
+ }), yr = "_root_lxvvg_1", br = "_section_lxvvg_11", Ar = "_sectionTitle_lxvvg_17", Sr = "_contextForm_lxvvg_24", xr = "_fixedSingle_lxvvg_30", Tr = "_multiple_lxvvg_35", _r = "_single_lxvvg_40", Mr = "_contextFormItem_lxvvg_50", wr = "_contextFormLabel_lxvvg_53", kr = "_contextFormContent_lxvvg_57", $r = "_contextFormLabelText_lxvvg_82", Ir = "_selectPopup_lxvvg_92", Rr = "_selectPopupListItem_lxvvg_95", Pr = "_resourceIssues_lxvvg_111", Lr = "_limitAlert_lxvvg_115", Nr = "_fixedGrid_lxvvg_118", Or = "_multipleGrid_lxvvg_119", zr = "_singleGrid_lxvvg_156", Vr = "_fieldCell_lxvvg_160", Yr = "_singleContractHeader_lxvvg_165", Gr = "_negativeValue_lxvvg_194", Hr = "_gridErrorAlert_lxvvg_197", Ur = "_gridErrorIcon_lxvvg_209", Wr = "_gridErrorSection_lxvvg_212", qr = "_gridErrorMessage_lxvvg_216", Zr = "_mergedErrorGridCell_lxvvg_223", jr = "_mergedErrorCell_lxvvg_231", Xr = "_mergedErrorText_lxvvg_246", Qr = "_emptyState_lxvvg_252", Jr = "_footer_lxvvg_260", Kr = "_navigateButton_lxvvg_266", en = "_navigateIcon_lxvvg_269", V = {
1250
+ root: yr,
1251
+ section: br,
1252
+ sectionTitle: Ar,
1253
+ contextForm: Sr,
1254
+ fixedSingle: xr,
1255
+ multiple: Tr,
1256
+ single: _r,
1257
+ contextFormItem: Mr,
1258
+ contextFormLabel: wr,
1259
+ contextFormContent: kr,
1260
+ contextFormLabelText: $r,
1261
+ selectPopup: Ir,
1262
+ selectPopupListItem: Rr,
1263
+ resourceIssues: Pr,
1264
+ limitAlert: Lr,
1265
+ fixedGrid: Nr,
1266
+ multipleGrid: Or,
1267
+ singleGrid: zr,
1268
+ fieldCell: Vr,
1269
+ singleContractHeader: Yr,
1270
+ negativeValue: Gr,
1271
+ gridErrorAlert: Hr,
1272
+ gridErrorIcon: Ur,
1273
+ gridErrorSection: Wr,
1274
+ gridErrorMessage: qr,
1275
+ mergedErrorGridCell: Zr,
1276
+ mergedErrorCell: jr,
1277
+ mergedErrorText: Xr,
1278
+ emptyState: Qr,
1279
+ footer: Jr,
1280
+ navigateButton: Kr,
1281
+ navigateIcon: en
1282
+ }, st = {
1283
+ red: ["red1", "red3", "red6", "red7"],
1284
+ volcano: ["volcano1", "volcano3", "volcano6", "volcano7"],
1285
+ orange: ["orange1", "orange3", "orange6", "orange7"],
1286
+ gold: ["guotai gold1", "guotai gold3", "guotai gold6", "guotai gold7"],
1287
+ yellow: ["yellow1", "yellow3", "yellow6", "yellow7"],
1288
+ // Figma 中 lime outlined 使用 lime4,其余预设色使用色板第 3 阶作为边框色。
1289
+ lime: ["lime1", "lime4", "lime6", "lime7"],
1290
+ green: ["green1", "green3", "green6", "green7"],
1291
+ cyan: ["cyan1", "cyan3", "cyan6", "cyan7"],
1292
+ geekblue: ["galaxy blue1", "galaxy blue3", "galaxy blue6", "galaxy blue7"],
1293
+ purple: ["purple1", "purple3", "purple6", "purple7"],
1294
+ magenta: ["magenta1", "magenta3", "magenta6", "magenta7"]
1295
+ }, me = (r, e) => {
1296
+ const t = r[e];
1297
+ return typeof t == "string" ? t : void 0;
1298
+ }, un = (r) => Object.prototype.hasOwnProperty.call(st, r), tn = (r, e, t) => {
1299
+ if (r === "default" || r === void 0) {
1300
+ if (e !== "solid") return;
1301
+ const E = me(t, "colorBgSolid");
1302
+ return {
1303
+ color: me(t, "colorTextOnLight"),
1304
+ backgroundColor: E,
1305
+ borderColor: E
1306
+ };
1307
+ }
1308
+ if (r === "primary") {
1309
+ const E = me(t, "colorPrimary");
1310
+ return {
1311
+ // primary 三种 variant 都使用浅色背景和 on-light 文字色。
1312
+ color: me(t, "colorTextOnLight"),
1313
+ backgroundColor: E,
1314
+ // outlined 使用设计描边色;solid 的边框与背景保持一致;filled 不额外设置边框。
1315
+ ...e === "outlined" ? {
1316
+ borderColor: me(t, "colorPrimaryBorder")
1317
+ } : e === "solid" ? {
1318
+ borderColor: E
1319
+ } : void 0
1320
+ };
1321
+ }
1322
+ if (!un(r)) return;
1323
+ const u = st[r], [n, a, i, s] = u;
1324
+ if (e === "solid") {
1325
+ const E = me(t, i);
1326
+ return {
1327
+ color: me(t, "colorTextLightSolid"),
1328
+ backgroundColor: E,
1329
+ borderColor: E
1330
+ };
1331
+ }
1332
+ return {
1333
+ color: me(t, s),
1334
+ backgroundColor: me(t, n),
1335
+ ...e === "outlined" ? {
1336
+ borderColor: me(t, a)
1337
+ } : void 0
1338
+ };
1339
+ }, rn = (r, e) => {
1340
+ if (r === "primary")
1341
+ return {
1342
+ color: me(e, "colorTextOnLight"),
1343
+ backgroundColor: me(e, "colorPrimary"),
1344
+ borderColor: "transparent"
1345
+ };
1346
+ }, ct = ue((r, e) => {
1347
+ const t = z.c(33);
1348
+ let u, n, a, i, s;
1349
+ t[0] !== r ? ({
1350
+ color: u,
1351
+ style: a,
1352
+ styles: i,
1353
+ variant: s,
1354
+ ...n
1355
+ } = r, t[0] = r, t[1] = u, t[2] = n, t[3] = a, t[4] = i, t[5] = s) : (u = t[1], n = t[2], a = t[3], i = t[4], s = t[5]);
1356
+ const E = s === void 0 ? "solid" : s, {
1357
+ themeMode: F
1358
+ } = Zu(lt), {
1359
+ token: h
1360
+ } = Ju.useToken(), p = h;
1361
+ let x;
1362
+ t[6] !== u || t[7] !== p || t[8] !== F || t[9] !== E ? (x = F === "gold-dark" ? tn(u, E, p) : F === "gold-light" ? rn(u, p) : void 0, t[6] = u, t[7] = p, t[8] = F, t[9] = E, t[10] = x) : x = t[10];
1363
+ const S = x;
1364
+ let I;
1365
+ t[11] !== u || t[12] !== p || t[13] !== F || t[14] !== E ? (I = F === "gold-dark" && E === "solid" && (u === "primary" || u === "default" || u === void 0) ? {
1366
+ color: me(p, "colorTextOnLight")
1367
+ } : void 0, t[11] = u, t[12] = p, t[13] = F, t[14] = E, t[15] = I) : I = t[15];
1368
+ const b = I;
1369
+ let g;
1370
+ t[16] !== u || t[17] !== p || t[18] !== F ? (g = F === "gold-light" && u === "primary" ? {
1371
+ color: me(p, "colorTextOnLight")
1372
+ } : void 0, t[16] = u, t[17] = p, t[18] = F, t[19] = g) : g = t[19];
1373
+ const y = b ?? g;
1374
+ let M;
1375
+ t[20] !== S || t[21] !== a ? (M = S ? {
1376
+ ...S,
1377
+ ...a
1378
+ } : a, t[20] = S, t[21] = a, t[22] = M) : M = t[22];
1379
+ const P = M;
1380
+ let w;
1381
+ t[23] !== y || t[24] !== i ? (w = y ? typeof i == "function" ? ($) => {
1382
+ const v = i($);
1383
+ return {
1384
+ ...v,
1385
+ close: {
1386
+ ...y,
1387
+ ...v?.close
1388
+ }
1389
+ };
1390
+ } : {
1391
+ ...i,
1392
+ close: {
1393
+ ...y,
1394
+ ...i?.close
1395
+ }
1396
+ } : i, t[23] = y, t[24] = i, t[25] = w) : w = t[25];
1397
+ const L = w, D = F === "gold-dark" && u === "default" ? void 0 : u;
1398
+ let R;
1399
+ return t[26] !== D || t[27] !== P || t[28] !== L || t[29] !== e || t[30] !== n || t[31] !== E ? (R = /* @__PURE__ */ f(fu, { ref: e, color: D, variant: E, style: P, styles: L, ...n }), t[26] = D, t[27] = P, t[28] = L, t[29] = e, t[30] = n, t[31] = E, t[32] = R) : R = t[32], R;
1400
+ });
1401
+ ct.displayName = "GZTag";
1402
+ const dt = ue((r, e) => {
1403
+ const t = z.c(3);
1404
+ let u;
1405
+ return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(fu.CheckableTag, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
1406
+ });
1407
+ dt.displayName = "GZCheckableTag";
1408
+ const mt = ue((r, e) => {
1409
+ const t = z.c(3);
1410
+ let u;
1411
+ return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(fu.CheckableTagGroup, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
1412
+ });
1413
+ mt.displayName = "GZCheckableTagGroup";
1414
+ const Au = ct;
1415
+ Au.CheckableTag = dt;
1416
+ Au.CheckableTagGroup = mt;
1417
+ function Et(r, e) {
1418
+ if (r == null || r === "") return oe;
1419
+ try {
1420
+ return new He(r).toFixed(e);
1421
+ } catch {
1422
+ return oe;
1423
+ }
1424
+ }
1425
+ function Su(r, e) {
1426
+ const t = Et(r, e);
1427
+ if (t === oe) return t;
1428
+ const [u, n] = t.split("."), a = u.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
1429
+ return n == null ? a : `${a}.${n}`;
1430
+ }
1431
+ function Ru(r, e, t = 2) {
1432
+ const u = Et(r, t);
1433
+ if (u === oe) return u;
1434
+ const n = u.startsWith("-") ? u.slice(1) : u, a = Su(n, t);
1435
+ try {
1436
+ const s = new Intl.NumberFormat("zh-CN", {
1437
+ style: "currency",
1438
+ currency: e,
1439
+ currencyDisplay: "symbol",
1440
+ minimumFractionDigits: t,
1441
+ maximumFractionDigits: t
1442
+ }).formatToParts(0).find((E) => E.type === "currency")?.value ?? e;
1443
+ return `${u.startsWith("-") ? "-" : ""}${s}${a}`;
1444
+ } catch {
1445
+ return `${e} ${u}`.trim();
1446
+ }
1447
+ }
1448
+ function nn(r) {
1449
+ try {
1450
+ return r != null && new He(r).lt(0);
1451
+ } catch {
1452
+ return !1;
1453
+ }
1454
+ }
1455
+ function Ft(r) {
1456
+ const e = z.c(3), t = nn(r.rawValue) ? V.negativeValue : void 0;
1457
+ let u;
1458
+ return e[0] !== r.value || e[1] !== t ? (u = /* @__PURE__ */ f("span", { className: t, children: r.value }), e[0] = r.value, e[1] = t, e[2] = u) : u = e[2], u;
1459
+ }
1460
+ function Ct(r) {
1461
+ const e = z.c(4);
1462
+ if (r.field === "direction") {
1463
+ let u;
1464
+ return e[0] !== r.value ? (u = r.value ? /* @__PURE__ */ f(Au, { variant: "outlined", color: r.value === "买入" ? "gold" : "green", children: r.value }) : "-", e[0] = r.value, e[1] = u) : u = e[1], u;
1465
+ }
1466
+ let t;
1467
+ return e[2] !== r.value ? (t = /* @__PURE__ */ f("span", { children: r.value }), e[2] = r.value, e[3] = t) : t = e[3], t;
1468
+ }
1469
+ var Qe = { exports: {} }, on = Qe.exports, Pu;
1470
+ function an() {
1471
+ return Pu || (Pu = 1, (function(r, e) {
1472
+ (function(t, u) {
1473
+ r.exports = u();
1474
+ })(on, (function() {
1475
+ var t = 1e3, u = 6e4, n = 36e5, a = "millisecond", i = "second", s = "minute", E = "hour", F = "day", h = "week", p = "month", x = "quarter", S = "year", I = "date", b = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(C) {
1476
+ var m = ["th", "st", "nd", "rd"], o = C % 100;
1477
+ return "[" + C + (m[(o - 20) % 10] || m[o] || m[0]) + "]";
1478
+ } }, M = function(C, m, o) {
1479
+ var l = String(C);
1480
+ return !l || l.length >= m ? C : "" + Array(m + 1 - l.length).join(o) + C;
1481
+ }, P = { s: M, z: function(C) {
1482
+ var m = -C.utcOffset(), o = Math.abs(m), l = Math.floor(o / 60), c = o % 60;
1483
+ return (m <= 0 ? "+" : "-") + M(l, 2, "0") + ":" + M(c, 2, "0");
1484
+ }, m: function C(m, o) {
1485
+ if (m.date() < o.date()) return -C(o, m);
1486
+ var l = 12 * (o.year() - m.year()) + (o.month() - m.month()), c = m.clone().add(l, p), d = o - c < 0, B = m.clone().add(l + (d ? -1 : 1), p);
1487
+ return +(-(l + (o - c) / (d ? c - B : B - c)) || 0);
1488
+ }, a: function(C) {
1489
+ return C < 0 ? Math.ceil(C) || 0 : Math.floor(C);
1490
+ }, p: function(C) {
1491
+ return { M: p, y: S, w: h, d: F, D: I, h: E, m: s, s: i, ms: a, Q: x }[C] || String(C || "").toLowerCase().replace(/s$/, "");
1492
+ }, u: function(C) {
1493
+ return C === void 0;
1494
+ } }, w = "en", L = {};
1495
+ L[w] = y;
1496
+ var D = "$isDayjsObject", R = function(C) {
1497
+ return C instanceof k || !(!C || !C[D]);
1498
+ }, $ = function C(m, o, l) {
1499
+ var c;
1500
+ if (!m) return w;
1501
+ if (typeof m == "string") {
1502
+ var d = m.toLowerCase();
1503
+ L[d] && (c = d), o && (L[d] = o, c = d);
1504
+ var B = m.split("-");
1505
+ if (!c && B.length > 1) return C(B[0]);
1506
+ } else {
1507
+ var A = m.name;
1508
+ L[A] = m, c = A;
1509
+ }
1510
+ return !l && c && (w = c), c || !l && w;
1511
+ }, v = function(C, m) {
1512
+ if (R(C)) return C.clone();
1513
+ var o = typeof m == "object" ? m : {};
1514
+ return o.date = C, o.args = arguments, new k(o);
1515
+ }, _ = P;
1516
+ _.l = $, _.i = R, _.w = function(C, m) {
1517
+ return v(C, { locale: m.$L, utc: m.$u, x: m.$x, $offset: m.$offset });
1518
+ };
1519
+ var k = (function() {
1520
+ function C(o) {
1521
+ this.$L = $(o.locale, null, !0), this.parse(o), this.$x = this.$x || o.x || {}, this[D] = !0;
1522
+ }
1523
+ var m = C.prototype;
1524
+ return m.parse = function(o) {
1525
+ this.$d = (function(l) {
1526
+ var c = l.date, d = l.utc;
1527
+ if (c === null) return /* @__PURE__ */ new Date(NaN);
1528
+ if (_.u(c)) return /* @__PURE__ */ new Date();
1529
+ if (c instanceof Date) return new Date(c);
1530
+ if (typeof c == "string" && !/Z$/i.test(c)) {
1531
+ var B = c.match(g);
1532
+ if (B) {
1533
+ var A = B[2] - 1 || 0, O = (B[7] || "0").substring(0, 3);
1534
+ return d ? new Date(Date.UTC(B[1], A, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, O)) : new Date(B[1], A, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, O);
1535
+ }
1536
+ }
1537
+ return new Date(c);
1538
+ })(o), this.init();
1539
+ }, m.init = function() {
1540
+ var o = this.$d;
1541
+ this.$y = o.getFullYear(), this.$M = o.getMonth(), this.$D = o.getDate(), this.$W = o.getDay(), this.$H = o.getHours(), this.$m = o.getMinutes(), this.$s = o.getSeconds(), this.$ms = o.getMilliseconds();
1542
+ }, m.$utils = function() {
1543
+ return _;
1544
+ }, m.isValid = function() {
1545
+ return this.$d.toString() !== b;
1546
+ }, m.isSame = function(o, l) {
1547
+ var c = v(o);
1548
+ return this.startOf(l) <= c && c <= this.endOf(l);
1549
+ }, m.isAfter = function(o, l) {
1550
+ return v(o) < this.startOf(l);
1551
+ }, m.isBefore = function(o, l) {
1552
+ return this.endOf(l) < v(o);
1553
+ }, m.$g = function(o, l, c) {
1554
+ return _.u(o) ? this[l] : this.set(c, o);
1555
+ }, m.unix = function() {
1556
+ return Math.floor(this.valueOf() / 1e3);
1557
+ }, m.valueOf = function() {
1558
+ return this.$d.getTime();
1559
+ }, m.startOf = function(o, l) {
1560
+ var c = this, d = !!_.u(l) || l, B = _.p(o), A = function(Z, H) {
1561
+ var Q = _.w(c.$u ? Date.UTC(c.$y, H, Z) : new Date(c.$y, H, Z), c);
1562
+ return d ? Q : Q.endOf(F);
1563
+ }, O = function(Z, H) {
1564
+ return _.w(c.toDate()[Z].apply(c.toDate("s"), (d ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(H)), c);
1565
+ }, N = this.$W, G = this.$M, W = this.$D, U = "set" + (this.$u ? "UTC" : "");
1566
+ switch (B) {
1567
+ case S:
1568
+ return d ? A(1, 0) : A(31, 11);
1569
+ case p:
1570
+ return d ? A(1, G) : A(0, G + 1);
1571
+ case h:
1572
+ var j = this.$locale().weekStart || 0, q = (N < j ? N + 7 : N) - j;
1573
+ return A(d ? W - q : W + (6 - q), G);
1574
+ case F:
1575
+ case I:
1576
+ return O(U + "Hours", 0);
1577
+ case E:
1578
+ return O(U + "Minutes", 1);
1579
+ case s:
1580
+ return O(U + "Seconds", 2);
1581
+ case i:
1582
+ return O(U + "Milliseconds", 3);
1583
+ default:
1584
+ return this.clone();
1585
+ }
1586
+ }, m.endOf = function(o) {
1587
+ return this.startOf(o, !1);
1588
+ }, m.$set = function(o, l) {
1589
+ var c, d = _.p(o), B = "set" + (this.$u ? "UTC" : ""), A = (c = {}, c[F] = B + "Date", c[I] = B + "Date", c[p] = B + "Month", c[S] = B + "FullYear", c[E] = B + "Hours", c[s] = B + "Minutes", c[i] = B + "Seconds", c[a] = B + "Milliseconds", c)[d], O = d === F ? this.$D + (l - this.$W) : l;
1590
+ if (d === p || d === S) {
1591
+ var N = this.clone().set(I, 1);
1592
+ N.$d[A](O), N.init(), this.$d = N.set(I, Math.min(this.$D, N.daysInMonth())).$d;
1593
+ } else A && this.$d[A](O);
1594
+ return this.init(), this;
1595
+ }, m.set = function(o, l) {
1596
+ return this.clone().$set(o, l);
1597
+ }, m.get = function(o) {
1598
+ return this[_.p(o)]();
1599
+ }, m.add = function(o, l) {
1600
+ var c, d = this;
1601
+ o = Number(o);
1602
+ var B = _.p(l), A = function(G) {
1603
+ var W = v(d);
1604
+ return _.w(W.date(W.date() + Math.round(G * o)), d);
1605
+ };
1606
+ if (B === p) return this.set(p, this.$M + o);
1607
+ if (B === S) return this.set(S, this.$y + o);
1608
+ if (B === F) return A(1);
1609
+ if (B === h) return A(7);
1610
+ var O = (c = {}, c[s] = u, c[E] = n, c[i] = t, c)[B] || 1, N = this.$d.getTime() + o * O;
1611
+ return _.w(N, this);
1612
+ }, m.subtract = function(o, l) {
1613
+ return this.add(-1 * o, l);
1614
+ }, m.format = function(o) {
1615
+ var l = this, c = this.$locale();
1616
+ if (!this.isValid()) return c.invalidDate || b;
1617
+ var d = o || "YYYY-MM-DDTHH:mm:ssZ", B = _.z(this), A = this.$H, O = this.$m, N = this.$M, G = c.weekdays, W = c.months, U = c.meridiem, j = function(H, Q, J, X) {
1618
+ return H && (H[Q] || H(l, d)) || J[Q].slice(0, X);
1619
+ }, q = function(H) {
1620
+ return _.s(A % 12 || 12, H, "0");
1621
+ }, Z = U || function(H, Q, J) {
1622
+ var X = H < 12 ? "AM" : "PM";
1623
+ return J ? X.toLowerCase() : X;
1624
+ };
1625
+ return d.replace(T, (function(H, Q) {
1626
+ return Q || (function(J) {
1627
+ switch (J) {
1628
+ case "YY":
1629
+ return String(l.$y).slice(-2);
1630
+ case "YYYY":
1631
+ return _.s(l.$y, 4, "0");
1632
+ case "M":
1633
+ return N + 1;
1634
+ case "MM":
1635
+ return _.s(N + 1, 2, "0");
1636
+ case "MMM":
1637
+ return j(c.monthsShort, N, W, 3);
1638
+ case "MMMM":
1639
+ return j(W, N);
1640
+ case "D":
1641
+ return l.$D;
1642
+ case "DD":
1643
+ return _.s(l.$D, 2, "0");
1644
+ case "d":
1645
+ return String(l.$W);
1646
+ case "dd":
1647
+ return j(c.weekdaysMin, l.$W, G, 2);
1648
+ case "ddd":
1649
+ return j(c.weekdaysShort, l.$W, G, 3);
1650
+ case "dddd":
1651
+ return G[l.$W];
1652
+ case "H":
1653
+ return String(A);
1654
+ case "HH":
1655
+ return _.s(A, 2, "0");
1656
+ case "h":
1657
+ return q(1);
1658
+ case "hh":
1659
+ return q(2);
1660
+ case "a":
1661
+ return Z(A, O, !0);
1662
+ case "A":
1663
+ return Z(A, O, !1);
1664
+ case "m":
1665
+ return String(O);
1666
+ case "mm":
1667
+ return _.s(O, 2, "0");
1668
+ case "s":
1669
+ return String(l.$s);
1670
+ case "ss":
1671
+ return _.s(l.$s, 2, "0");
1672
+ case "SSS":
1673
+ return _.s(l.$ms, 3, "0");
1674
+ case "Z":
1675
+ return B;
1676
+ }
1677
+ return null;
1678
+ })(H) || B.replace(":", "");
1679
+ }));
1680
+ }, m.utcOffset = function() {
1681
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1682
+ }, m.diff = function(o, l, c) {
1683
+ var d, B = this, A = _.p(l), O = v(o), N = (O.utcOffset() - this.utcOffset()) * u, G = this - O, W = function() {
1684
+ return _.m(B, O);
1685
+ };
1686
+ switch (A) {
1687
+ case S:
1688
+ d = W() / 12;
1689
+ break;
1690
+ case p:
1691
+ d = W();
1692
+ break;
1693
+ case x:
1694
+ d = W() / 3;
1695
+ break;
1696
+ case h:
1697
+ d = (G - N) / 6048e5;
1698
+ break;
1699
+ case F:
1700
+ d = (G - N) / 864e5;
1701
+ break;
1702
+ case E:
1703
+ d = G / n;
1704
+ break;
1705
+ case s:
1706
+ d = G / u;
1707
+ break;
1708
+ case i:
1709
+ d = G / t;
1710
+ break;
1711
+ default:
1712
+ d = G;
1713
+ }
1714
+ return c ? d : _.a(d);
1715
+ }, m.daysInMonth = function() {
1716
+ return this.endOf(p).$D;
1717
+ }, m.$locale = function() {
1718
+ return L[this.$L];
1719
+ }, m.locale = function(o, l) {
1720
+ if (!o) return this.$L;
1721
+ var c = this.clone(), d = $(o, l, !0);
1722
+ return d && (c.$L = d), c;
1723
+ }, m.clone = function() {
1724
+ return _.w(this.$d, this);
1725
+ }, m.toDate = function() {
1726
+ return new Date(this.valueOf());
1727
+ }, m.toJSON = function() {
1728
+ return this.isValid() ? this.toISOString() : null;
1729
+ }, m.toISOString = function() {
1730
+ return this.$d.toISOString();
1731
+ }, m.toString = function() {
1732
+ return this.$d.toUTCString();
1733
+ }, C;
1734
+ })(), Y = k.prototype;
1735
+ return v.prototype = Y, [["$ms", a], ["$s", i], ["$m", s], ["$H", E], ["$W", F], ["$M", p], ["$y", S], ["$D", I]].forEach((function(C) {
1736
+ Y[C[1]] = function(m) {
1737
+ return this.$g(m, C[0], C[1]);
1738
+ };
1739
+ })), v.extend = function(C, m) {
1740
+ return C.$i || (C(m, k, v), C.$i = !0), v;
1741
+ }, v.locale = $, v.isDayjs = R, v.unix = function(C) {
1742
+ return v(1e3 * C);
1743
+ }, v.en = L[w], v.Ls = L, v.p = {}, v;
1744
+ }));
1745
+ })(Qe)), Qe.exports;
1746
+ }
1747
+ var ln = an();
1748
+ const Ue = /* @__PURE__ */ ut(ln);
1749
+ var Je = { exports: {} }, sn = Je.exports, Lu;
1750
+ function cn() {
1751
+ return Lu || (Lu = 1, (function(r, e) {
1752
+ (function(t, u) {
1753
+ r.exports = u();
1754
+ })(sn, (function() {
1755
+ var t = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, u = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, a = /\d\d/, i = /\d\d?/, s = /\d*[^-_:/,()\s\d]+/, E = {}, F = function(g) {
1756
+ return (g = +g) + (g > 68 ? 1900 : 2e3);
1757
+ }, h = function(g) {
1758
+ return function(T) {
1759
+ this[g] = +T;
1760
+ };
1761
+ }, p = [/[+-]\d\d:?(\d\d)?|Z/, function(g) {
1762
+ (this.zone || (this.zone = {})).offset = (function(T) {
1763
+ if (!T || T === "Z") return 0;
1764
+ var y = T.match(/([+-]|\d\d)/g), M = 60 * y[1] + (+y[2] || 0);
1765
+ return M === 0 ? 0 : y[0] === "+" ? -M : M;
1766
+ })(g);
1767
+ }], x = function(g) {
1768
+ var T = E[g];
1769
+ return T && (T.indexOf ? T : T.s.concat(T.f));
1770
+ }, S = function(g, T) {
1771
+ var y, M = E.meridiem;
1772
+ if (M) {
1773
+ for (var P = 1; P <= 24; P += 1) if (g.indexOf(M(P, 0, T)) > -1) {
1774
+ y = P > 12;
1775
+ break;
1776
+ }
1777
+ } else y = g === (T ? "pm" : "PM");
1778
+ return y;
1779
+ }, I = { A: [s, function(g) {
1780
+ this.afternoon = S(g, !1);
1781
+ }], a: [s, function(g) {
1782
+ this.afternoon = S(g, !0);
1783
+ }], Q: [n, function(g) {
1784
+ this.month = 3 * (g - 1) + 1;
1785
+ }], S: [n, function(g) {
1786
+ this.milliseconds = 100 * +g;
1787
+ }], SS: [a, function(g) {
1788
+ this.milliseconds = 10 * +g;
1789
+ }], SSS: [/\d{3}/, function(g) {
1790
+ this.milliseconds = +g;
1791
+ }], s: [i, h("seconds")], ss: [i, h("seconds")], m: [i, h("minutes")], mm: [i, h("minutes")], H: [i, h("hours")], h: [i, h("hours")], HH: [i, h("hours")], hh: [i, h("hours")], D: [i, h("day")], DD: [a, h("day")], Do: [s, function(g) {
1792
+ var T = E.ordinal, y = g.match(/\d+/);
1793
+ if (this.day = y[0], T) for (var M = 1; M <= 31; M += 1) T(M).replace(/\[|\]/g, "") === g && (this.day = M);
1794
+ }], w: [i, h("week")], ww: [a, h("week")], M: [i, h("month")], MM: [a, h("month")], MMM: [s, function(g) {
1795
+ var T = x("months"), y = (x("monthsShort") || T.map((function(M) {
1796
+ return M.slice(0, 3);
1797
+ }))).indexOf(g) + 1;
1798
+ if (y < 1) throw new Error();
1799
+ this.month = y % 12 || y;
1800
+ }], MMMM: [s, function(g) {
1801
+ var T = x("months").indexOf(g) + 1;
1802
+ if (T < 1) throw new Error();
1803
+ this.month = T % 12 || T;
1804
+ }], Y: [/[+-]?\d+/, h("year")], YY: [a, function(g) {
1805
+ this.year = F(g);
1806
+ }], YYYY: [/\d{4}/, h("year")], Z: p, ZZ: p };
1807
+ function b(g) {
1808
+ var T, y;
1809
+ T = g, y = E && E.formats;
1810
+ for (var M = (g = T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(v, _, k) {
1811
+ var Y = k && k.toUpperCase();
1812
+ return _ || y[k] || t[k] || y[Y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(C, m, o) {
1813
+ return m || o.slice(1);
1814
+ }));
1815
+ }))).match(u), P = M.length, w = 0; w < P; w += 1) {
1816
+ var L = M[w], D = I[L], R = D && D[0], $ = D && D[1];
1817
+ M[w] = $ ? { regex: R, parser: $ } : L.replace(/^\[|\]$/g, "");
1818
+ }
1819
+ return function(v) {
1820
+ for (var _ = {}, k = 0, Y = 0; k < P; k += 1) {
1821
+ var C = M[k];
1822
+ if (typeof C == "string") Y += C.length;
1823
+ else {
1824
+ var m = C.regex, o = C.parser, l = v.slice(Y), c = m.exec(l)[0];
1825
+ o.call(_, c), v = v.replace(c, "");
1826
+ }
1827
+ }
1828
+ return (function(d) {
1829
+ var B = d.afternoon;
1830
+ if (B !== void 0) {
1831
+ var A = d.hours;
1832
+ B ? A < 12 && (d.hours += 12) : A === 12 && (d.hours = 0), delete d.afternoon;
1833
+ }
1834
+ })(_), _;
1835
+ };
1836
+ }
1837
+ return function(g, T, y) {
1838
+ y.p.customParseFormat = !0, g && g.parseTwoDigitYear && (F = g.parseTwoDigitYear);
1839
+ var M = T.prototype, P = M.parse;
1840
+ M.parse = function(w) {
1841
+ var L = w.date, D = w.utc, R = w.args;
1842
+ this.$u = D;
1843
+ var $ = R[1];
1844
+ if (typeof $ == "string") {
1845
+ var v = R[2] === !0, _ = R[3] === !0, k = v || _, Y = R[2];
1846
+ _ && (Y = R[2]), E = this.$locale(), !v && Y && (E = y.Ls[Y]), this.$d = (function(l, c, d, B) {
1847
+ try {
1848
+ if (["x", "X"].indexOf(c) > -1) return new Date((c === "X" ? 1e3 : 1) * l);
1849
+ var A = b(c)(l), O = A.year, N = A.month, G = A.day, W = A.hours, U = A.minutes, j = A.seconds, q = A.milliseconds, Z = A.zone, H = A.week, Q = /* @__PURE__ */ new Date(), J = G || (O || N ? 1 : Q.getDate()), X = O || Q.getFullYear(), K = 0;
1850
+ O && !N || (K = N > 0 ? N - 1 : Q.getMonth());
1851
+ var te, ie = W || 0, ne = U || 0, De = j || 0, ce = q || 0;
1852
+ return Z ? new Date(Date.UTC(X, K, J, ie, ne, De, ce + 60 * Z.offset * 1e3)) : d ? new Date(Date.UTC(X, K, J, ie, ne, De, ce)) : (te = new Date(X, K, J, ie, ne, De, ce), H && (te = B(te).week(H).toDate()), te);
1853
+ } catch {
1854
+ return /* @__PURE__ */ new Date("");
1855
+ }
1856
+ })(L, $, D, y), this.init(), Y && Y !== !0 && (this.$L = this.locale(Y).$L), k && L != this.format($) && (this.$d = /* @__PURE__ */ new Date("")), E = {};
1857
+ } else if ($ instanceof Array) for (var C = $.length, m = 1; m <= C; m += 1) {
1858
+ R[1] = $[m - 1];
1859
+ var o = y.apply(this, R);
1860
+ if (o.isValid()) {
1861
+ this.$d = o.$d, this.$L = o.$L, this.init();
1862
+ break;
1863
+ }
1864
+ m === C && (this.$d = /* @__PURE__ */ new Date(""));
1865
+ }
1866
+ else P.call(this, w);
1867
+ };
1868
+ };
1869
+ }));
1870
+ })(Je)), Je.exports;
1871
+ }
1872
+ var dn = cn();
1873
+ const mn = /* @__PURE__ */ ut(dn);
1874
+ Ue.extend(mn);
1875
+ function ft(r) {
1876
+ return !!(r && Ue(r, "YYYY-MM-DD", !0).isValid());
1877
+ }
1878
+ function xu(r) {
1879
+ return !!(r && Ue(r, "YYYYMMDD", !0).isValid());
1880
+ }
1881
+ function gt(r) {
1882
+ return r.replaceAll("-", "");
1883
+ }
1884
+ function mu(r) {
1885
+ return xu(r) ? Ue(r, "YYYYMMDD", !0).format("YYYY-MM-DD") : r;
1886
+ }
1887
+ function Tu(r) {
1888
+ const e = r.trim(), t = e.slice(0, 8);
1889
+ return xu(t) ? mu(t) : e.slice(0, 10);
1890
+ }
1891
+ function pt(r, e) {
1892
+ switch (e) {
1893
+ case "instrumentCode":
1894
+ return r.instrumentCode || oe;
1895
+ case "scrtyCode":
1896
+ return r.scrtyCode || oe;
1897
+ case "fwdMaturityDate":
1898
+ return r.fwdMaturityDate ? mu(r.fwdMaturityDate) : oe;
1899
+ case "settleDate":
1900
+ return r.settleDate ? mu(r.settleDate) : oe;
1901
+ case "physicalDelivery":
1902
+ return r.physicalDelivery === "1" ? "实物交割" : r.physicalDelivery === "2" ? "现金交割" : oe;
1903
+ case "direction":
1904
+ return r.direction === "L" ? "买入" : r.direction === "S" ? "卖出" : oe;
1905
+ case "fwdDlvPrice":
1906
+ return r.fwdDlvPrice || oe;
1907
+ case "targtVol":
1908
+ return Su(r.targtVol);
1909
+ default:
1910
+ return oe;
1911
+ }
1912
+ }
1913
+ function vt(r, e, t) {
1914
+ return e === "npv" ? Ru(r?.npv, t) : e === "forwardPrice" ? Ru(r?.forwardPrice, t, 8) : Su(r?.discountFactor, 4);
1915
+ }
1916
+ const En = ["npv", "forwardPrice", "discountFactor"], Fn = {
1917
+ suppressHeaderMenuButton: !0,
1918
+ suppressHeaderContextMenu: !0
1919
+ }, Cn = {
1920
+ type: "fitCellContents",
1921
+ skipHeader: !1,
1922
+ scaleUpToFitGridWidth: !0,
1923
+ defaultMinWidth: 112,
1924
+ defaultMaxWidth: 240,
1925
+ columnLimits: [{
1926
+ colId: "npv",
1927
+ minWidth: 190,
1928
+ maxWidth: 220
1929
+ }, {
1930
+ colId: "forwardPrice",
1931
+ minWidth: 220,
1932
+ maxWidth: 260
1933
+ }, {
1934
+ colId: "discountFactor",
1935
+ minWidth: 150,
1936
+ maxWidth: 190
1937
+ }]
1938
+ }, fn = ({
1939
+ rowNode: r
1940
+ }) => r.data?.kind === "error";
1941
+ function gn(r) {
1942
+ const e = z.c(3), {
1943
+ data: t
1944
+ } = r, u = String(t?.instrumentCode ?? "定价计算失败");
1945
+ let n;
1946
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
1947
+ icon: V.gridErrorIcon,
1948
+ section: V.gridErrorSection
1949
+ }, e[0] = n) : n = e[0];
1950
+ let a;
1951
+ return e[1] !== u ? (a = /* @__PURE__ */ f(Ge, { className: V.gridErrorAlert, classNames: n, type: "error", showIcon: !0, title: /* @__PURE__ */ Me("span", { className: V.gridErrorMessage, title: u, children: [
1952
+ "计算失败,失败原因:",
1953
+ u
1954
+ ] }) }), e[1] = u, e[2] = a) : a = e[2], a;
1955
+ }
1956
+ function pn(r) {
1957
+ const e = z.c(15), {
1958
+ contract: t,
1959
+ calculation: u,
1960
+ loading: n
1961
+ } = r, a = ee(null), i = ee(null);
1962
+ let s;
1963
+ e[0] !== t ? (s = [{
1964
+ id: "contract",
1965
+ kind: "contract",
1966
+ ...Object.fromEntries(du.map((y) => [y.key, y.kind === "contract" ? pt(t, y.key) : oe]))
1967
+ }], e[0] = t, e[1] = s) : s = e[1];
1968
+ const E = s;
1969
+ let F;
1970
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = du.map(Dn), e[2] = F) : F = e[2];
1971
+ const h = F;
1972
+ let p;
1973
+ e[3] !== u || e[4] !== t.currency ? (p = (y) => {
1974
+ const M = y.getRowNode("contract"), P = M?.data ? {
1975
+ ...M.data
1976
+ } : null;
1977
+ if (En.forEach((w) => {
1978
+ const L = u?.status === "success" ? vt(u.result, w, t.currency) : oe;
1979
+ M?.setDataValue(w, L), P && (P[w] = L);
1980
+ }), M && P && M.setData(P), i.current && (y.applyTransaction({
1981
+ remove: [i.current]
1982
+ }), i.current = null), u?.status === "error") {
1983
+ const w = {
1984
+ id: "error",
1985
+ kind: "error",
1986
+ instrumentCode: u.message ?? "定价计算失败"
1987
+ };
1988
+ y.applyTransaction({
1989
+ add: [w]
1990
+ }), i.current = w;
1991
+ }
1992
+ y.resetRowHeights();
1993
+ }, e[3] = u, e[4] = t.currency, e[5] = p) : p = e[5];
1994
+ const x = p;
1995
+ let S, I;
1996
+ e[6] !== x ? (S = () => {
1997
+ a.current && x(a.current);
1998
+ }, I = [x], e[6] = x, e[7] = S, e[8] = I) : (S = e[7], I = e[8]), Be(S, I);
1999
+ let b;
2000
+ e[9] !== x ? (b = (y) => {
2001
+ a.current = y.api, x(y.api);
2002
+ }, e[9] = x, e[10] = b) : b = e[10];
2003
+ const g = b;
2004
+ let T;
2005
+ return e[11] !== n || e[12] !== g || e[13] !== E ? (T = /* @__PURE__ */ f("div", { className: V.fixedGrid, "aria-label": "单笔合约定价结果", children: /* @__PURE__ */ f(bu, { rowData: E, columnDefs: h, defaultColDef: Fn, onGridReady: g, getRowId: hn, isFullWidthRow: fn, fullWidthCellRenderer: gn, getRowHeight: vn, headerHeight: 32, rowHeight: 32, autoSizeStrategy: Cn, autoSizePadding: 16, suppressColumnVirtualisation: !0, tooltipShowMode: "whenTruncated", tooltipShowDelay: 0, domLayout: "autoHeight", pagination: !1, loading: n, suppressCellFocus: !0, suppressDragLeaveHidesColumns: !0 }) }), e[11] = n, e[12] = g, e[13] = E, e[14] = T) : T = e[14], T;
2006
+ }
2007
+ function vn(r) {
2008
+ return r.data?.kind === "error" ? 28 : 32;
2009
+ }
2010
+ function hn(r) {
2011
+ return r.data.id;
2012
+ }
2013
+ function Dn(r) {
2014
+ return {
2015
+ field: r.key,
2016
+ colId: r.key,
2017
+ headerName: r.label,
2018
+ headerTooltip: r.label,
2019
+ width: r.kind === "result" ? 148 : 128,
2020
+ minWidth: r.kind === "result" ? 148 : 112,
2021
+ sortable: !1,
2022
+ resizable: !1,
2023
+ suppressMovable: !0,
2024
+ cellRenderer: (e) => r.kind === "result" ? /* @__PURE__ */ f(Ft, { value: String(e.value ?? oe) }) : /* @__PURE__ */ f(Ct, { field: r.key, value: String(e.value ?? oe) })
2025
+ };
2026
+ }
2027
+ const _u = ue((r, e) => {
2028
+ const t = z.c(3);
2029
+ let u;
2030
+ return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(jt, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
2031
+ });
2032
+ _u.displayName = "GZTooltip";
2033
+ const Bn = ["npv", "forwardPrice", "discountFactor"], yn = {
2034
+ suppressHeaderMenuButton: !0,
2035
+ suppressHeaderContextMenu: !0
2036
+ }, Nu = {
2037
+ kind: "empty",
2038
+ display: oe
2039
+ };
2040
+ function eu(r) {
2041
+ return !!(r && typeof r == "object" && "kind" in r);
2042
+ }
2043
+ function bn(r) {
2044
+ const e = z.c(34), {
2045
+ single: t,
2046
+ contracts: u,
2047
+ results: n,
2048
+ loading: a
2049
+ } = r, i = t === void 0 ? !1 : t, s = ee(null), E = ee(null), F = i ? mr : du;
2050
+ let h;
2051
+ if (e[0] !== u || e[1] !== F) {
2052
+ let o;
2053
+ e[3] !== u ? (o = (l) => ({
2054
+ id: l.key,
2055
+ label: l.label,
2056
+ kind: l.kind,
2057
+ ...Object.fromEntries(u.map((c) => [c.contractId, l.kind === "contract" ? pt(c, l.key) : Nu]))
2058
+ }), e[3] = u, e[4] = o) : o = e[4], h = F.map(o), e[0] = u, e[1] = F, e[2] = h;
2059
+ } else
2060
+ h = e[2];
2061
+ const p = h, x = i ? "" : "字段", S = i ? 160 : 180, I = i ? 160 : 180;
2062
+ let b;
2063
+ e[5] !== x || e[6] !== S || e[7] !== I ? (b = {
2064
+ field: "label",
2065
+ colId: "field",
2066
+ headerName: x,
2067
+ pinned: "left",
2068
+ lockPinned: !0,
2069
+ width: S,
2070
+ minWidth: I,
2071
+ sortable: !1,
2072
+ resizable: !1,
2073
+ suppressMovable: !0,
2074
+ cellClass: V.fieldCell
2075
+ }, e[5] = x, e[6] = S, e[7] = I, e[8] = b) : b = e[8];
2076
+ let g;
2077
+ if (e[9] !== u || e[10] !== i || e[11] !== b) {
2078
+ let o;
2079
+ e[13] !== i ? (o = (l, c) => ({
2080
+ field: l.contractId,
2081
+ colId: l.contractId,
2082
+ headerName: String(c + 1).padStart(3, "0"),
2083
+ headerClass: i ? V.singleContractHeader : void 0,
2084
+ flex: 1,
2085
+ width: 180,
2086
+ minWidth: i ? 100 : 180,
2087
+ sortable: !1,
2088
+ resizable: !1,
2089
+ suppressMovable: !0,
2090
+ spanRows: Tn,
2091
+ cellClass: xn,
2092
+ cellRenderer: Sn
2093
+ }), e[13] = i, e[14] = o) : o = e[14], g = [b, ...u.map(o)], e[9] = u, e[10] = i, e[11] = b, e[12] = g;
2094
+ } else
2095
+ g = e[12];
2096
+ const T = g;
2097
+ let y;
2098
+ e[15] !== u || e[16] !== n ? (y = (o) => {
2099
+ Bn.forEach((l) => {
2100
+ const c = o.getRowNode(l);
2101
+ if (!c?.data)
2102
+ return;
2103
+ const d = {
2104
+ ...c.data
2105
+ };
2106
+ u.forEach((B) => {
2107
+ const A = n[B.contractId];
2108
+ let O = Nu;
2109
+ A?.status === "success" ? O = {
2110
+ kind: "value",
2111
+ display: vt(A.result, l, B.currency),
2112
+ rawValue: A.result?.[l]
2113
+ } : A?.status === "error" && (O = {
2114
+ kind: "error",
2115
+ display: A.message ?? "定价计算失败"
2116
+ }), c.setDataValue(B.contractId, O), d[B.contractId] = O;
2117
+ }), c.setData(d);
2118
+ }), o.refreshCells({
2119
+ force: !0
2120
+ }), o.resetRowHeights();
2121
+ }, e[15] = u, e[16] = n, e[17] = y) : y = e[17];
2122
+ const M = y;
2123
+ let P, w;
2124
+ e[18] !== M ? (P = () => {
2125
+ E.current && M(E.current);
2126
+ }, w = [M], e[18] = M, e[19] = P, e[20] = w) : (P = e[19], w = e[20]), Be(P, w);
2127
+ let L;
2128
+ e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = (o) => {
2129
+ s.current?.style.setProperty("--pricing-horizontal-scroll-left", `${o}px`);
2130
+ }, e[21] = L) : L = e[21];
2131
+ const D = L;
2132
+ let R;
2133
+ e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = (o) => {
2134
+ o.direction === "horizontal" && D(o.left);
2135
+ }, e[22] = R) : R = e[22];
2136
+ const $ = R;
2137
+ let v;
2138
+ e[23] !== M ? (v = (o) => {
2139
+ E.current = o.api, D(o.api.getHorizontalPixelRange().left), M(o.api);
2140
+ }, e[23] = M, e[24] = v) : v = e[24];
2141
+ const _ = v, k = `${V.multipleGrid}${i ? ` ${V.singleGrid}` : ""}`, Y = i ? "单笔合约定价结果" : "多笔合约定价结果";
2142
+ let C;
2143
+ e[25] !== T || e[26] !== a || e[27] !== _ || e[28] !== p ? (C = /* @__PURE__ */ f(bu, { rowData: p, columnDefs: T, defaultColDef: yn, onGridReady: _, onBodyScroll: $, getRowId: An, headerHeight: 32, rowHeight: 28, domLayout: "autoHeight", pagination: !1, loading: a, enableCellSpan: !0, suppressCellFocus: !0, suppressDragLeaveHidesColumns: !0 }), e[25] = T, e[26] = a, e[27] = _, e[28] = p, e[29] = C) : C = e[29];
2144
+ let m;
2145
+ return e[30] !== k || e[31] !== Y || e[32] !== C ? (m = /* @__PURE__ */ f("div", { ref: s, className: k, "aria-label": Y, children: C }), e[30] = k, e[31] = Y, e[32] = C, e[33] = m) : m = e[33], m;
2146
+ }
2147
+ function An(r) {
2148
+ return r.data.id;
2149
+ }
2150
+ function Sn(r) {
2151
+ const e = r.data?.id, t = r.value;
2152
+ if (eu(t)) {
2153
+ if (t.kind === "error") {
2154
+ const u = `计算失败,失败原因:${t.display}`;
2155
+ return /* @__PURE__ */ f(_u, { title: u, children: /* @__PURE__ */ f("div", { className: V.mergedErrorCell, children: /* @__PURE__ */ f("span", { className: V.mergedErrorText, children: u }) }) });
2156
+ }
2157
+ return /* @__PURE__ */ f(Ft, { value: t.display, rawValue: t.rawValue });
2158
+ }
2159
+ return e ? /* @__PURE__ */ f(Ct, { field: e, value: String(t ?? oe) }) : null;
2160
+ }
2161
+ function xn(r) {
2162
+ return eu(r.value) && r.value.kind === "error" ? V.mergedErrorGridCell : void 0;
2163
+ }
2164
+ function Tn(r) {
2165
+ const e = r.valueA, t = r.valueB;
2166
+ return eu(e) && eu(t) && e.kind === "error" && t.kind === "error" && e.display === t.display;
2167
+ }
2168
+ const ht = ue((r, e) => {
2169
+ const t = z.c(3);
2170
+ let u;
2171
+ return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(Pe.MonthPicker, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
2172
+ });
2173
+ ht.displayName = "GZMonthPicker";
2174
+ const Dt = ue((r, e) => {
2175
+ const t = z.c(3);
2176
+ let u;
2177
+ return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(Pe.QuarterPicker, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
2178
+ });
2179
+ Dt.displayName = "GZQuarterPicker";
2180
+ const Bt = ue((r, e) => {
2181
+ const t = z.c(7);
2182
+ let u, n;
2183
+ t[0] !== r ? ({
2184
+ children: u,
2185
+ ...n
2186
+ } = r, t[0] = r, t[1] = u, t[2] = n) : (u = t[1], n = t[2]);
2187
+ let a;
2188
+ return t[3] !== u || t[4] !== e || t[5] !== n ? (a = /* @__PURE__ */ f(Pe.RangePicker, { ref: e, ...n, children: u }), t[3] = u, t[4] = e, t[5] = n, t[6] = a) : a = t[6], a;
2189
+ });
2190
+ Bt.displayName = "GZRangePicker";
2191
+ const yt = ue((r, e) => {
2192
+ const t = z.c(3);
2193
+ let u;
2194
+ return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(Pe.TimePicker, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
2195
+ });
2196
+ yt.displayName = "GZTimePicker";
2197
+ const bt = ue((r, e) => {
2198
+ const t = z.c(3);
2199
+ let u;
2200
+ return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(Pe.WeekPicker, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
2201
+ });
2202
+ bt.displayName = "GZWeekPicker";
2203
+ const At = ue((r, e) => {
2204
+ const t = z.c(3);
2205
+ let u;
2206
+ return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(Pe.YearPicker, { ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
2207
+ });
2208
+ At.displayName = "GZYearPicker";
2209
+ const _n = ue((r, e) => {
2210
+ const t = z.c(3);
2211
+ let u;
2212
+ return t[0] !== r || t[1] !== e ? (u = /* @__PURE__ */ f(Pe, { format: "YYYY-MM-DD", ref: e, ...r }), t[0] = r, t[1] = e, t[2] = u) : u = t[2], u;
2213
+ }), ke = _n;
2214
+ ke.RangePicker = Bt;
2215
+ ke.WeekPicker = bt;
2216
+ ke.MonthPicker = ht;
2217
+ ke.YearPicker = At;
2218
+ ke.QuarterPicker = Dt;
2219
+ ke.TimePicker = yt;
2220
+ ke.displayName = "GZDatePicker";
2221
+ const St = ue((r, e) => {
2222
+ const t = z.c(13);
2223
+ let u, n, a;
2224
+ t[0] !== r ? ({
2225
+ children: u,
2226
+ itemBottomSpace: n,
2227
+ ...a
2228
+ } = r, t[0] = r, t[1] = u, t[2] = n, t[3] = a) : (u = t[1], n = t[2], a = t[3]);
2229
+ let i;
2230
+ t[4] !== n ? (i = n === void 0 ? void 0 : {
2231
+ components: {
2232
+ Form: {
2233
+ itemMarginBottom: n
2234
+ }
2235
+ }
2236
+ }, t[4] = n, t[5] = i) : i = t[5];
2237
+ const s = i, E = a;
2238
+ let F;
2239
+ t[6] !== u || t[7] !== e || t[8] !== E ? (F = /* @__PURE__ */ f(we, { ref: e, ...E, children: u }), t[6] = u, t[7] = e, t[8] = E, t[9] = F) : F = t[9];
2240
+ let h;
2241
+ return t[10] !== F || t[11] !== s ? (h = /* @__PURE__ */ f(Xt, { theme: s, children: F }), t[10] = F, t[11] = s, t[12] = h) : h = t[12], h;
2242
+ });
2243
+ St.displayName = "GZForm";
2244
+ const xt = (r) => {
2245
+ const e = z.c(6);
2246
+ let t, u;
2247
+ e[0] !== r ? ({
2248
+ children: t,
2249
+ ...u
2250
+ } = r, e[0] = r, e[1] = t, e[2] = u) : (t = e[1], u = e[2]);
2251
+ const n = u;
2252
+ let a;
2253
+ return e[3] !== t || e[4] !== n ? (a = /* @__PURE__ */ f(we.Item, { ...n, children: t }), e[3] = t, e[4] = n, e[5] = a) : a = e[5], a;
2254
+ };
2255
+ xt.displayName = "GZFormItem";
2256
+ const Tt = (r) => {
2257
+ const e = z.c(2);
2258
+ let t;
2259
+ return e[0] !== r ? (t = /* @__PURE__ */ f(we.List, { ...r }), e[0] = r, e[1] = t) : t = e[1], t;
2260
+ };
2261
+ Tt.displayName = "GZFormList";
2262
+ const _t = (r) => {
2263
+ const e = z.c(2);
2264
+ let t;
2265
+ return e[0] !== r ? (t = /* @__PURE__ */ f(we.ErrorList, { ...r }), e[0] = r, e[1] = t) : t = e[1], t;
2266
+ };
2267
+ _t.displayName = "GZErrorList";
2268
+ const Mt = (r) => {
2269
+ const e = z.c(2);
2270
+ let t;
2271
+ return e[0] !== r ? (t = /* @__PURE__ */ f(we.Provider, { ...r }), e[0] = r, e[1] = t) : t = e[1], t;
2272
+ };
2273
+ Mt.displayName = "GZFormProvider";
2274
+ const ye = St;
2275
+ ye.Item = xt;
2276
+ ye.List = Tt;
2277
+ ye.ErrorList = _t;
2278
+ ye.Provider = Mt;
2279
+ ye.useForm = we.useForm;
2280
+ ye.useFormInstance = we.useFormInstance;
2281
+ ye.useWatch = we.useWatch;
2282
+ const wt = ue((r, e) => {
2283
+ const t = z.c(7);
2284
+ let u, n;
2285
+ t[0] !== r ? ({
2286
+ children: u,
2287
+ ...n
2288
+ } = r, t[0] = r, t[1] = u, t[2] = n) : (u = t[1], n = t[2]);
2289
+ const a = e;
2290
+ let i;
2291
+ return t[3] !== u || t[4] !== n || t[5] !== a ? (i = /* @__PURE__ */ f(gu.Option, { ref: a, ...n, children: u }), t[3] = u, t[4] = n, t[5] = a, t[6] = i) : i = t[6], i;
2292
+ });
2293
+ wt.displayName = "GZSelectOption";
2294
+ const kt = ue((r, e) => {
2295
+ const t = z.c(7);
2296
+ let u, n;
2297
+ t[0] !== r ? ({
2298
+ children: u,
2299
+ ...n
2300
+ } = r, t[0] = r, t[1] = u, t[2] = n) : (u = t[1], n = t[2]);
2301
+ const a = e;
2302
+ let i;
2303
+ return t[3] !== u || t[4] !== n || t[5] !== a ? (i = /* @__PURE__ */ f(gu.OptGroup, { ref: a, ...n, children: u }), t[3] = u, t[4] = n, t[5] = a, t[6] = i) : i = t[6], i;
2304
+ });
2305
+ kt.displayName = "GZSelectOptGroup";
2306
+ const Mn = ue((r, e) => {
2307
+ const t = z.c(3), u = e;
2308
+ let n;
2309
+ return t[0] !== r || t[1] !== u ? (n = /* @__PURE__ */ f(gu, { ref: u, ...r }), t[0] = r, t[1] = u, t[2] = n) : n = t[2], n;
2310
+ }), Oe = Mn;
2311
+ Oe.Option = wt;
2312
+ Oe.OptGroup = kt;
2313
+ Oe.displayName = "GZSelect";
2314
+ function Ou(r, e) {
2315
+ if (r?.source !== "custom" || !e) return;
2316
+ const t = r.executeDay ? Tu(r.executeDay) : void 0;
2317
+ return !t || t !== e ? "曲线日与估值日非同一日" : void 0;
2318
+ }
2319
+ function wn(r) {
2320
+ const e = {};
2321
+ return Object.keys(Iu).forEach((t) => {
2322
+ r[t] || (e[t] = [Iu[t]]);
2323
+ }), r.valuationDate && !ft(r.valuationDate) && (e.valuationDate = ["估值日格式必须为 YYYY-MM-DD"]), e;
2324
+ }
2325
+ function kn(r, e) {
2326
+ if (!r || !ft(r) || e.length === 0)
2327
+ return {
2328
+ latestSettlementDate: null,
2329
+ valid: !0,
2330
+ message: null
2331
+ };
2332
+ const t = e.map((a) => a.settleDate);
2333
+ if (t.some((a) => !xu(a)))
2334
+ return {
2335
+ latestSettlementDate: null,
2336
+ valid: !0,
2337
+ message: null
2338
+ };
2339
+ const u = t.reduce((a, i) => i > a ? i : a), n = gt(r) <= u;
2340
+ return {
2341
+ latestSettlementDate: u,
2342
+ valid: n,
2343
+ message: n ? null : "估值日必须小于或等于所选合约最久的结算支付日"
2344
+ };
2345
+ }
2346
+ function Ze(r) {
2347
+ return {
2348
+ validateStatus: r?.length ? "error" : void 0,
2349
+ help: r?.join(";")
2350
+ };
2351
+ }
2352
+ function $t(r, e, t = "") {
2353
+ return r && e ? `${r}(${e})` : r || e || t;
2354
+ }
2355
+ function Eu(r) {
2356
+ if (!r) return "";
2357
+ const e = $t(r.name, r.code, r.label);
2358
+ return r.source === "custom" && r.executeDay ? `${e}-${Tu(r.executeDay)}` : e;
2359
+ }
2360
+ function je(r) {
2361
+ const e = z.c(7), {
2362
+ text: t
2363
+ } = r, u = ee(null), [n, a] = ze(!1);
2364
+ let i;
2365
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = (F) => {
2366
+ const h = u.current, p = !!(h && h.scrollWidth > h.clientWidth);
2367
+ a(F && p);
2368
+ }, e[0] = i) : i = e[0];
2369
+ let s;
2370
+ e[1] !== t ? (s = /* @__PURE__ */ f("span", { ref: u, className: V.contextFormLabelText, children: t }), e[1] = t, e[2] = s) : s = e[2];
2371
+ let E;
2372
+ return e[3] !== s || e[4] !== t || e[5] !== n ? (E = /* @__PURE__ */ f(_u, { title: t, open: n, onOpenChange: i, children: s }), e[3] = s, e[4] = t, e[5] = n, e[6] = E) : E = e[6], E;
2373
+ }
2374
+ function $n(r) {
2375
+ const e = z.c(110), {
2376
+ mode: t,
2377
+ layout: u,
2378
+ value: n,
2379
+ errors: a,
2380
+ environments: i,
2381
+ discountCurves: s,
2382
+ carbonForwardCurves: E,
2383
+ environmentsLoading: F,
2384
+ curvesLoading: h,
2385
+ curvesDisabled: p,
2386
+ disabled: x,
2387
+ onChange: S
2388
+ } = r, I = t === "single" && u === "vertical", b = t === "single" && u === "horizontal", g = t === "multiple" ? V.multiple : I ? V.single : V.fixedSingle;
2389
+ let T;
2390
+ e[0] !== i ? (T = i.map(Pn), e[0] = i, e[1] = T) : T = e[1];
2391
+ const y = T, M = In;
2392
+ let P;
2393
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = {
2394
+ popup: {
2395
+ root: V.selectPopup,
2396
+ listItem: V.selectPopupListItem
2397
+ }
2398
+ }, e[2] = P) : P = e[2];
2399
+ const w = b ? 420 : 432;
2400
+ let L;
2401
+ e[3] !== w ? (L = {
2402
+ popupMatchSelectWidth: !1,
2403
+ classNames: P,
2404
+ styles: {
2405
+ popup: {
2406
+ root: {
2407
+ maxWidth: w
2408
+ }
2409
+ }
2410
+ }
2411
+ }, e[3] = w, e[4] = L) : L = e[4];
2412
+ const D = L;
2413
+ let R;
2414
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ f(je, { text: "碳金融远期价格曲线" }), e[5] = R) : R = e[5];
2415
+ let $;
2416
+ e[6] !== n.carbonForwardCurve || e[7] !== n.valuationDate ? ($ = Ou(n.carbonForwardCurve, n.valuationDate), e[6] = n.carbonForwardCurve, e[7] = n.valuationDate, e[8] = $) : $ = e[8];
2417
+ let v;
2418
+ e[9] !== a.carbonForwardCurve ? (v = Ze(a.carbonForwardCurve), e[9] = a.carbonForwardCurve, e[10] = v) : v = e[10];
2419
+ const _ = x || p;
2420
+ let k;
2421
+ e[11] !== E ? (k = M(E), e[11] = E, e[12] = k) : k = e[12];
2422
+ const Y = n.carbonForwardCurve?.key;
2423
+ let C;
2424
+ e[13] !== n.carbonForwardCurve ? (C = () => Eu(n.carbonForwardCurve), e[13] = n.carbonForwardCurve, e[14] = C) : C = e[14];
2425
+ let m;
2426
+ e[15] !== E || e[16] !== S ? (m = (le) => S("carbonForwardCurve", E.find((se) => se.key === le) ?? null), e[15] = E, e[16] = S, e[17] = m) : m = e[17];
2427
+ let o;
2428
+ e[18] !== S ? (o = () => S("carbonForwardCurve", null), e[18] = S, e[19] = o) : o = e[19];
2429
+ let l;
2430
+ e[20] !== h || e[21] !== D || e[22] !== C || e[23] !== m || e[24] !== o || e[25] !== _ || e[26] !== k || e[27] !== Y ? (l = /* @__PURE__ */ f(Oe, { ...D, "aria-label": "碳金融远期价格曲线", allowClear: !0, showSearch: !0, optionFilterProp: "label", loading: h, disabled: _, placeholder: "请选择碳金融远期价格曲线", options: k, value: Y, labelRender: C, onChange: m, onClear: o }), e[20] = h, e[21] = D, e[22] = C, e[23] = m, e[24] = o, e[25] = _, e[26] = k, e[27] = Y, e[28] = l) : l = e[28];
2431
+ let c;
2432
+ e[29] !== l || e[30] !== $ || e[31] !== v ? (c = /* @__PURE__ */ f(ye.Item, { className: V.contextFormItem, label: R, required: !0, extra: $, ...v, children: l }), e[29] = l, e[30] = $, e[31] = v, e[32] = c) : c = e[32];
2433
+ const d = c;
2434
+ let B;
2435
+ e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ f(je, { text: "无风险利率曲线" }), e[33] = B) : B = e[33];
2436
+ let A;
2437
+ e[34] !== n.discountCurve || e[35] !== n.valuationDate ? (A = Ou(n.discountCurve, n.valuationDate), e[34] = n.discountCurve, e[35] = n.valuationDate, e[36] = A) : A = e[36];
2438
+ let O;
2439
+ e[37] !== a.discountCurve ? (O = Ze(a.discountCurve), e[37] = a.discountCurve, e[38] = O) : O = e[38];
2440
+ const N = x || p;
2441
+ let G;
2442
+ e[39] !== s ? (G = M(s), e[39] = s, e[40] = G) : G = e[40];
2443
+ const W = n.discountCurve?.key;
2444
+ let U;
2445
+ e[41] !== n.discountCurve ? (U = () => Eu(n.discountCurve), e[41] = n.discountCurve, e[42] = U) : U = e[42];
2446
+ let j;
2447
+ e[43] !== s || e[44] !== S ? (j = (le) => S("discountCurve", s.find((se) => se.key === le) ?? null), e[43] = s, e[44] = S, e[45] = j) : j = e[45];
2448
+ let q;
2449
+ e[46] !== S ? (q = () => S("discountCurve", null), e[46] = S, e[47] = q) : q = e[47];
2450
+ let Z;
2451
+ e[48] !== h || e[49] !== D || e[50] !== N || e[51] !== G || e[52] !== W || e[53] !== U || e[54] !== j || e[55] !== q ? (Z = /* @__PURE__ */ f(Oe, { ...D, "aria-label": "无风险利率曲线", allowClear: !0, showSearch: !0, optionFilterProp: "label", loading: h, disabled: N, placeholder: "请选择无风险利率曲线", options: G, value: W, labelRender: U, onChange: j, onClear: q }), e[48] = h, e[49] = D, e[50] = N, e[51] = G, e[52] = W, e[53] = U, e[54] = j, e[55] = q, e[56] = Z) : Z = e[56];
2452
+ let H;
2453
+ e[57] !== A || e[58] !== O || e[59] !== Z ? (H = /* @__PURE__ */ f(ye.Item, { className: V.contextFormItem, label: B, required: !0, extra: A, ...O, children: Z }), e[57] = A, e[58] = O, e[59] = Z, e[60] = H) : H = e[60];
2454
+ const Q = H, J = I ? "left" : "right";
2455
+ let X;
2456
+ e[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = {
2457
+ flex: "0 0 var(--pricing-form-label-width)"
2458
+ }, e[61] = X) : X = e[61];
2459
+ const K = I ? "1 1 0" : "0 0 var(--pricing-form-control-width)";
2460
+ let te;
2461
+ e[62] !== K ? (te = {
2462
+ flex: K
2463
+ }, e[62] = K, e[63] = te) : te = e[63];
2464
+ const ie = `${V.contextForm} ${g}`;
2465
+ let ne;
2466
+ e[64] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ne = {
2467
+ label: V.contextFormLabel,
2468
+ content: V.contextFormContent
2469
+ }, e[64] = ne) : ne = e[64];
2470
+ let De;
2471
+ e[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (De = /* @__PURE__ */ f(je, { text: "定价环境" }), e[65] = De) : De = e[65];
2472
+ let ce;
2473
+ e[66] !== a.pricingEnvironment ? (ce = Ze(a.pricingEnvironment), e[66] = a.pricingEnvironment, e[67] = ce) : ce = e[67];
2474
+ const be = n.pricingEnvironment?.id;
2475
+ let Ee;
2476
+ e[68] !== n.pricingEnvironment?.code || e[69] !== n.pricingEnvironment?.name ? (Ee = () => $t(n.pricingEnvironment?.name, n.pricingEnvironment?.code), e[68] = n.pricingEnvironment?.code, e[69] = n.pricingEnvironment?.name, e[70] = Ee) : Ee = e[70];
2477
+ let Fe;
2478
+ e[71] !== i || e[72] !== S ? (Fe = (le) => S("pricingEnvironment", i.find((se) => se.id === le) ?? null), e[71] = i, e[72] = S, e[73] = Fe) : Fe = e[73];
2479
+ let Ce;
2480
+ e[74] !== S ? (Ce = () => S("pricingEnvironment", null), e[74] = S, e[75] = Ce) : Ce = e[75];
2481
+ let fe;
2482
+ e[76] !== x || e[77] !== y || e[78] !== F || e[79] !== D || e[80] !== be || e[81] !== Ee || e[82] !== Fe || e[83] !== Ce ? (fe = /* @__PURE__ */ f(Oe, { ...D, "aria-label": "定价环境", allowClear: !0, showSearch: !0, optionFilterProp: "label", loading: F, disabled: x, placeholder: "请选择定价环境", options: y, value: be, labelRender: Ee, onChange: Fe, onClear: Ce }), e[76] = x, e[77] = y, e[78] = F, e[79] = D, e[80] = be, e[81] = Ee, e[82] = Fe, e[83] = Ce, e[84] = fe) : fe = e[84];
2483
+ let Te;
2484
+ e[85] !== ce || e[86] !== fe ? (Te = /* @__PURE__ */ f(ye.Item, { className: V.contextFormItem, label: De, required: !0, ...ce, children: fe }), e[85] = ce, e[86] = fe, e[87] = Te) : Te = e[87];
2485
+ const $e = I ? Q : d, _e = I ? d : Q;
2486
+ let Ae;
2487
+ e[88] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ae = /* @__PURE__ */ f(je, { text: "估值日" }), e[88] = Ae) : Ae = e[88];
2488
+ let Se;
2489
+ e[89] !== a.valuationDate ? (Se = Ze(a.valuationDate), e[89] = a.valuationDate, e[90] = Se) : Se = e[90];
2490
+ let ge;
2491
+ e[91] !== n.valuationDate ? (ge = n.valuationDate ? Ue(n.valuationDate) : null, e[91] = n.valuationDate, e[92] = ge) : ge = e[92];
2492
+ let pe;
2493
+ e[93] !== S ? (pe = (le) => {
2494
+ const se = Array.isArray(le) ? le[0] : le;
2495
+ S("valuationDate", se?.format("YYYY-MM-DD") ?? null);
2496
+ }, e[93] = S, e[94] = pe) : pe = e[94];
2497
+ let ve;
2498
+ e[95] !== x || e[96] !== ge || e[97] !== pe ? (ve = /* @__PURE__ */ f(ke, { "aria-label": "估值日", allowClear: !0, disabled: x, value: ge, onChange: pe }), e[95] = x, e[96] = ge, e[97] = pe, e[98] = ve) : ve = e[98];
2499
+ let xe;
2500
+ e[99] !== Se || e[100] !== ve ? (xe = /* @__PURE__ */ f(ye.Item, { className: V.contextFormItem, label: Ae, required: !0, ...Se, children: ve }), e[99] = Se, e[100] = ve, e[101] = xe) : xe = e[101];
2501
+ let re;
2502
+ return e[102] !== J || e[103] !== te || e[104] !== ie || e[105] !== Te || e[106] !== $e || e[107] !== _e || e[108] !== xe ? (re = /* @__PURE__ */ Me(ye, { component: "div", layout: "horizontal", labelAlign: J, labelCol: X, wrapperCol: te, colon: !1, requiredMark: !0, className: ie, classNames: ne, children: [
2503
+ Te,
2504
+ $e,
2505
+ _e,
2506
+ xe
2507
+ ] }), e[102] = J, e[103] = te, e[104] = ie, e[105] = Te, e[106] = $e, e[107] = _e, e[108] = xe, e[109] = re) : re = e[109], re;
2508
+ }
2509
+ function In(r) {
2510
+ return r.map(Rn);
2511
+ }
2512
+ function Rn(r) {
2513
+ return {
2514
+ label: Eu(r),
2515
+ value: r.key
2516
+ };
2517
+ }
2518
+ function Pn(r) {
2519
+ return {
2520
+ label: `${r.name}(${r.code})`,
2521
+ value: r.id
2522
+ };
2523
+ }
2524
+ function Ln(r) {
2525
+ const e = z.c(17), {
2526
+ mode: t,
2527
+ layout: u,
2528
+ allDisabled: n,
2529
+ calculateDisabled: a,
2530
+ submitting: i,
2531
+ onReset: s,
2532
+ onNavigateToPricingPage: E,
2533
+ onCalculate: F
2534
+ } = r;
2535
+ let h;
2536
+ e[0] !== n || e[1] !== u || e[2] !== t || e[3] !== E || e[4] !== i ? (h = t === "multiple" || u === "horizontal" ? /* @__PURE__ */ f(Ne, { className: V.navigateButton, icon: /* @__PURE__ */ f("span", { className: V.navigateIcon, "aria-hidden": "true" }), iconPlacement: "end", disabled: n || i || !E, onClick: E, children: "转定价界面" }) : null, e[0] = n, e[1] = u, e[2] = t, e[3] = E, e[4] = i, e[5] = h) : h = e[5];
2537
+ const p = n || i;
2538
+ let x;
2539
+ e[6] !== s || e[7] !== p ? (x = /* @__PURE__ */ f(Ne, { disabled: p, onClick: s, children: "重置" }), e[6] = s, e[7] = p, e[8] = x) : x = e[8];
2540
+ const S = n || a;
2541
+ let I;
2542
+ e[9] !== F || e[10] !== i || e[11] !== S ? (I = /* @__PURE__ */ f(Ne, { type: "primary", loading: i, disabled: S, onClick: F, children: "计算" }), e[9] = F, e[10] = i, e[11] = S, e[12] = I) : I = e[12];
2543
+ let b;
2544
+ return e[13] !== h || e[14] !== x || e[15] !== I ? (b = /* @__PURE__ */ Me("div", { className: V.footer, children: [
2545
+ h,
2546
+ x,
2547
+ I
2548
+ ] }), e[13] = h, e[14] = x, e[15] = I, e[16] = b) : b = e[16], b;
2549
+ }
2550
+ const Nn = {
2551
+ environments: "定价环境",
2552
+ discountDefinitions: "无风险利率曲线定义",
2553
+ customDiscountCurves: "自定义无风险利率曲线",
2554
+ carbonDefinitions: "碳金融远期价格曲线定义",
2555
+ customCarbonCurves: "自定义碳金融远期价格曲线"
2556
+ };
2557
+ function On(r) {
2558
+ const e = z.c(9), {
2559
+ resources: t,
2560
+ onRetry: u
2561
+ } = r;
2562
+ let n;
2563
+ e[0] !== t ? (n = Object.keys(t), e[0] = t, e[1] = n) : n = e[1];
2564
+ const a = n;
2565
+ let i;
2566
+ e[2] !== t || e[3] !== a ? (i = a.filter((F) => t[F].status === "error"), e[2] = t, e[3] = a, e[4] = i) : i = e[4];
2567
+ const s = i;
2568
+ if (s.length === 0)
2569
+ return null;
2570
+ let E;
2571
+ return e[5] !== s || e[6] !== u || e[7] !== t ? (E = /* @__PURE__ */ f("div", { className: V.resourceIssues, "aria-label": "资源加载异常", children: s.map((F) => {
2572
+ const h = t[F], p = h.attempts >= cu;
2573
+ return /* @__PURE__ */ f(Ge, { type: "error", showIcon: !0, title: `${Nn[F]}加载失败`, description: p ? `${h.error ?? "未知错误"}(已达到 3 次尝试上限)` : h.error, action: /* @__PURE__ */ f(Ne, { size: "small", disabled: p, onClick: () => u(F), children: "重试" }) }, F);
2574
+ }) }), e[5] = s, e[6] = u, e[7] = t, e[8] = E) : E = e[8], E;
2575
+ }
2576
+ function Ye(r) {
2577
+ return {
2578
+ status: "idle",
2579
+ data: r,
2580
+ error: null,
2581
+ attempts: 0
2582
+ };
2583
+ }
2584
+ function zn(r) {
2585
+ return {
2586
+ context: {
2587
+ ...Bu
2588
+ },
2589
+ contextErrors: {},
2590
+ resources: {
2591
+ environments: Ye([]),
2592
+ discountDefinitions: Ye([]),
2593
+ customDiscountCurves: Ye([]),
2594
+ carbonDefinitions: Ye([]),
2595
+ customCarbonCurves: Ye([])
2596
+ },
2597
+ environmentCurvesStatus: "idle",
2598
+ environmentCurvesError: null,
2599
+ environmentCurvesAttempts: 0,
2600
+ resultByContractId: Object.fromEntries(r.map((e) => [e, {
2601
+ contractId: e,
2602
+ status: "idle",
2603
+ result: null,
2604
+ message: null,
2605
+ resultInputVersion: null
2606
+ }])),
2607
+ inputVersion: 0,
2608
+ submitting: !1
2609
+ };
2610
+ }
2611
+ function zu(r) {
2612
+ return Object.fromEntries(Object.keys(r.resultByContractId).map((e) => [e, {
2613
+ contractId: e,
2614
+ status: "idle",
2615
+ result: null,
2616
+ message: null,
2617
+ resultInputVersion: null
2618
+ }]));
2619
+ }
2620
+ function Vn(r, e) {
2621
+ switch (e.type) {
2622
+ case "resource/loading": {
2623
+ const t = r.resources[e.key];
2624
+ return {
2625
+ ...r,
2626
+ resources: {
2627
+ ...r.resources,
2628
+ [e.key]: {
2629
+ ...t,
2630
+ status: "loading",
2631
+ error: null,
2632
+ attempts: t.attempts + 1
2633
+ }
2634
+ }
2635
+ };
2636
+ }
2637
+ case "resource/success":
2638
+ return {
2639
+ ...r,
2640
+ resources: {
2641
+ ...r.resources,
2642
+ [e.key]: {
2643
+ ...r.resources[e.key],
2644
+ status: e.data.length === 0 ? "empty" : "success",
2645
+ data: e.data,
2646
+ error: null
2647
+ }
2648
+ }
2649
+ };
2650
+ case "resource/error":
2651
+ return {
2652
+ ...r,
2653
+ resources: {
2654
+ ...r.resources,
2655
+ [e.key]: {
2656
+ ...r.resources[e.key],
2657
+ status: "error",
2658
+ error: e.error
2659
+ }
2660
+ }
2661
+ };
2662
+ case "context/set": {
2663
+ const t = e.field === "pricingEnvironment", u = {
2664
+ ...r.context,
2665
+ [e.field]: e.value,
2666
+ ...t ? {
2667
+ discountCurve: null,
2668
+ carbonForwardCurve: null
2669
+ } : void 0
2670
+ }, n = {
2671
+ ...r.contextErrors
2672
+ };
2673
+ return delete n[e.field], t && (delete n.discountCurve, delete n.carbonForwardCurve), {
2674
+ ...r,
2675
+ context: u,
2676
+ contextErrors: n,
2677
+ environmentCurvesStatus: t ? "idle" : r.environmentCurvesStatus,
2678
+ environmentCurvesError: t ? null : r.environmentCurvesError,
2679
+ environmentCurvesAttempts: t ? 0 : r.environmentCurvesAttempts,
2680
+ resultByContractId: zu(r),
2681
+ inputVersion: r.inputVersion + 1,
2682
+ submitting: !1
2683
+ };
2684
+ }
2685
+ case "context/errors":
2686
+ return {
2687
+ ...r,
2688
+ contextErrors: e.errors
2689
+ };
2690
+ case "environment-curves/loading":
2691
+ return {
2692
+ ...r,
2693
+ environmentCurvesStatus: "loading",
2694
+ environmentCurvesError: null,
2695
+ environmentCurvesAttempts: r.environmentCurvesAttempts + 1
2696
+ };
2697
+ case "environment-curves/error":
2698
+ return {
2699
+ ...r,
2700
+ environmentCurvesStatus: "error",
2701
+ environmentCurvesError: e.error
2702
+ };
2703
+ case "environment-curves/success":
2704
+ return {
2705
+ ...r,
2706
+ context: {
2707
+ ...r.context,
2708
+ discountCurve: e.discountCurve,
2709
+ carbonForwardCurve: e.carbonForwardCurve
2710
+ },
2711
+ environmentCurvesStatus: e.discountCurve && e.carbonForwardCurve ? "success" : "empty",
2712
+ environmentCurvesError: null,
2713
+ environmentCurvesAttempts: 0
2714
+ };
2715
+ case "calculation/submitting":
2716
+ return {
2717
+ ...r,
2718
+ submitting: !0,
2719
+ resultByContractId: Object.fromEntries(e.contractIds.map((t) => [t, {
2720
+ contractId: t,
2721
+ status: "submitting",
2722
+ result: null,
2723
+ message: null,
2724
+ resultInputVersion: null
2725
+ }]))
2726
+ };
2727
+ case "calculation/settled":
2728
+ return {
2729
+ ...r,
2730
+ submitting: !1,
2731
+ resultByContractId: e.results
2732
+ };
2733
+ case "reset":
2734
+ return {
2735
+ ...r,
2736
+ context: {
2737
+ ...Bu
2738
+ },
2739
+ contextErrors: {},
2740
+ environmentCurvesStatus: "idle",
2741
+ environmentCurvesError: null,
2742
+ environmentCurvesAttempts: 0,
2743
+ resultByContractId: zu(r),
2744
+ inputVersion: r.inputVersion + 1,
2745
+ submitting: !1
2746
+ };
2747
+ }
2748
+ }
2749
+ const Yn = "3", Gn = "11";
2750
+ function Re(r) {
2751
+ return typeof r == "object" && r !== null;
2752
+ }
2753
+ function Hn(r) {
2754
+ return Re(r) && typeof r.key == "string" && typeof r.id == "string" && typeof r.label == "string" && (r.kind === "discount" || r.kind === "carbonForward") && (r.source === "definition" || r.source === "custom") && Re(r.requestMapping);
2755
+ }
2756
+ function Un(r) {
2757
+ return !Array.isArray(r) && Re(r) && Re(r.discountCurve) && Re(r.carbonForwardCurve);
2758
+ }
2759
+ function It(r, e, t) {
2760
+ const u = r && e ? `${e}(${r})` : e || r;
2761
+ return t ? `${u}-${Tu(t)}` : u;
2762
+ }
2763
+ function uu(r, e) {
2764
+ return Array.isArray(r) ? r.flatMap((t) => {
2765
+ if (Hn(t)) return [t];
2766
+ if (!Re(t)) return [];
2767
+ const u = t[e.idField];
2768
+ if (u == null || u === "") return [];
2769
+ const n = String(u), a = String(t.code ?? ""), i = String(t.name ?? ""), s = String(t.currency ?? ""), E = e.source === "custom" && typeof t.createDate == "string" ? t.createDate : void 0, F = e.source === "custom" && typeof t.executeDay == "string" ? t.executeDay : void 0, h = {
2770
+ [e.idField]: n
2771
+ };
2772
+ return [{
2773
+ key: `${e.kind}:${e.source}:${n}`,
2774
+ id: n,
2775
+ label: It(a, i, F),
2776
+ code: a,
2777
+ name: i,
2778
+ kind: e.kind,
2779
+ source: e.source,
2780
+ currency: s,
2781
+ createDate: E,
2782
+ executeDay: F,
2783
+ requestMapping: h
2784
+ }];
2785
+ }) : [];
2786
+ }
2787
+ function Wn(r) {
2788
+ return Array.isArray(r) ? r.flatMap((e) => {
2789
+ if (!Re(e)) return [];
2790
+ const t = e, u = t.id ?? ("pricingEnvId" in t ? t.pricingEnvId : "");
2791
+ return u === "" || u === null || u === void 0 ? [] : [{
2792
+ ...t,
2793
+ // 真实接口使用 pricingEnvId,组件内部统一使用字符串 id 维护 Select 值和联动请求。
2794
+ id: String(u)
2795
+ }];
2796
+ }) : [];
2797
+ }
2798
+ function qn(r) {
2799
+ return uu(r, {
2800
+ idField: "disCurveDefId",
2801
+ kind: "discount",
2802
+ source: "definition"
2803
+ });
2804
+ }
2805
+ function Zn(r) {
2806
+ return uu(r, {
2807
+ idField: "disCurveId",
2808
+ kind: "discount",
2809
+ source: "custom"
2810
+ });
2811
+ }
2812
+ function jn(r) {
2813
+ return uu(r, {
2814
+ idField: "comCurveDefId",
2815
+ kind: "carbonForward",
2816
+ source: "definition"
2817
+ });
2818
+ }
2819
+ function Xn(r) {
2820
+ return uu(r, {
2821
+ idField: "comCurveId",
2822
+ kind: "carbonForward",
2823
+ source: "custom"
2824
+ });
2825
+ }
2826
+ function Vu(r, e) {
2827
+ const t = String(r.curveId);
2828
+ return {
2829
+ id: t,
2830
+ label: It(String(r.curveCode ?? ""), String(r.curveName ?? "")),
2831
+ code: String(r.curveCode ?? ""),
2832
+ name: String(r.curveName ?? ""),
2833
+ kind: e.kind,
2834
+ source: "definition",
2835
+ requestMapping: e.requestMapping(t)
2836
+ };
2837
+ }
2838
+ function Qn(r) {
2839
+ if (r === null) return null;
2840
+ if (Un(r)) return r;
2841
+ if (!Array.isArray(r)) return null;
2842
+ const e = r.find((u) => String(u.curveType) === Yn), t = r.find((u) => String(u.curveType) === Gn);
2843
+ return !e?.curveId || !t?.curveId ? null : {
2844
+ discountCurve: Vu(e, {
2845
+ kind: "discount",
2846
+ requestMapping: (u) => ({
2847
+ disCurveDefId: u
2848
+ })
2849
+ }),
2850
+ carbonForwardCurve: Vu(t, {
2851
+ kind: "carbonForward",
2852
+ requestMapping: (u) => ({
2853
+ comCurveDefId: u
2854
+ })
2855
+ })
2856
+ };
2857
+ }
2858
+ function Yu(r) {
2859
+ return {
2860
+ disCurveDefId: "disCurveDefId" in r ? r.disCurveDefId : "",
2861
+ disCurveId: "disCurveId" in r ? r.disCurveId : "",
2862
+ comCurveDefId: "comCurveDefId" in r ? r.comCurveDefId : "",
2863
+ comCurveId: "comCurveId" in r ? r.comCurveId : ""
2864
+ };
2865
+ }
2866
+ function Jn(r, e) {
2867
+ const {
2868
+ pricingEnvironment: t,
2869
+ discountCurve: u,
2870
+ carbonForwardCurve: n,
2871
+ valuationDate: a
2872
+ } = e;
2873
+ if (!t || !u || !n || !a)
2874
+ return [];
2875
+ const i = Yu(u.requestMapping), s = Yu(n.requestMapping), E = {
2876
+ valDate: gt(a),
2877
+ disCurveDefId: i.disCurveDefId,
2878
+ disCurveId: i.disCurveId,
2879
+ comCurveDefId: s.comCurveDefId,
2880
+ comCurveId: s.comCurveId
2881
+ };
2882
+ return r.map((F) => ({
2883
+ astType: "",
2884
+ targtAllVarCodeSum: F.targtAllVarCodeSum,
2885
+ scrtyCode: F.scrtyCode,
2886
+ currency: F.currency,
2887
+ fwdMaturityDate: F.fwdMaturityDate,
2888
+ settleDate: F.settleDate,
2889
+ physicalDelivery: F.physicalDelivery,
2890
+ direction: F.direction,
2891
+ fwdDlvPrice: F.fwdDlvPrice,
2892
+ targtVol: F.targtVol,
2893
+ ...F.productType ? {
2894
+ productType: F.productType
2895
+ } : {},
2896
+ ...F.instrumentId ? {
2897
+ instrumentId: F.instrumentId
2898
+ } : {},
2899
+ ...F.instrumentCode ? {
2900
+ instrumentCode: F.instrumentCode
2901
+ } : {},
2902
+ ...F.instrumentName ? {
2903
+ instrumentName: F.instrumentName
2904
+ } : {},
2905
+ ...F.tradeContpId ? {
2906
+ tradeContpId: F.tradeContpId
2907
+ } : {},
2908
+ ...E
2909
+ }));
2910
+ }
2911
+ function Xe(r) {
2912
+ return r == null || r === "" ? null : String(r);
2913
+ }
2914
+ function Kn(r, e, t) {
2915
+ if (!e || typeof e != "object")
2916
+ return {
2917
+ contractId: r,
2918
+ status: "error",
2919
+ result: null,
2920
+ message: "未返回计算结果",
2921
+ resultInputVersion: t
2922
+ };
2923
+ const u = e.code, n = u == null || u === 0 || u === 200 || u === "0" || u === "200", a = [e.npv, e.forwardPrice, e.discountFactor, e.maturityTime].some((i) => i != null && i !== "");
2924
+ return !n || !a ? {
2925
+ contractId: r,
2926
+ status: "error",
2927
+ result: null,
2928
+ message: e.msg ?? "定价计算失败",
2929
+ resultInputVersion: t
2930
+ } : {
2931
+ contractId: r,
2932
+ status: "success",
2933
+ result: {
2934
+ npv: Xe(e.npv),
2935
+ forwardPrice: Xe(e.forwardPrice),
2936
+ discountFactor: Xe(e.discountFactor),
2937
+ maturityTime: Xe(e.maturityTime)
2938
+ },
2939
+ message: e.msg ?? null,
2940
+ resultInputVersion: t
2941
+ };
2942
+ }
2943
+ function eo(r, e, t) {
2944
+ return Object.fromEntries(r.map((u, n) => [u, Kn(u, e[n], t)]));
2945
+ }
2946
+ const Gu = {
2947
+ environments: "定价环境加载失败",
2948
+ discountDefinitions: "无风险利率曲线定义加载失败",
2949
+ customDiscountCurves: "自定义无风险利率曲线加载失败",
2950
+ carbonDefinitions: "碳金融远期价格曲线定义加载失败",
2951
+ customCarbonCurves: "自定义碳金融远期价格曲线加载失败"
2952
+ };
2953
+ function uo(r) {
2954
+ if (r && typeof r == "object" && "response" in r) {
2955
+ const e = r.response;
2956
+ if (e && typeof e == "object" && "data" in e) {
2957
+ const t = e.data;
2958
+ if (t && typeof t == "object" && "msg" in t && typeof t.msg == "string" && t.msg.trim())
2959
+ return t.msg;
2960
+ }
2961
+ }
2962
+ return r instanceof Error && r.message ? r.message : "定价服务请求失败";
2963
+ }
2964
+ function Ie(r, e) {
2965
+ return e;
2966
+ }
2967
+ function to(r) {
2968
+ const {
2969
+ contracts: e,
2970
+ productType: t,
2971
+ dataSource: u
2972
+ } = r, [n, a] = Wt(Vn, void 0, () => zn(e.map((o) => o.contractId))), i = ee(!0), s = ee(0), E = ee(0), F = ee(null), h = ee(null), p = ee(null), x = ee(/* @__PURE__ */ new Map()), [S, I] = ze(0), b = ee(/* @__PURE__ */ new Map());
2973
+ Be(() => () => {
2974
+ i.current = !1, h.current?.abort(), p.current?.abort(), x.current.forEach((o) => o.abort());
2975
+ }, []);
2976
+ const g = he(async (o) => {
2977
+ if (n.resources[o].attempts >= cu) return;
2978
+ a({
2979
+ type: "resource/loading",
2980
+ key: o
2981
+ }), x.current.get(o)?.abort();
2982
+ const l = new AbortController();
2983
+ x.current.set(o, l);
2984
+ try {
2985
+ let c;
2986
+ switch (o) {
2987
+ case "environments": {
2988
+ const d = await u.listPricingEnvironments({
2989
+ status: !0
2990
+ }, {
2991
+ signal: l.signal
2992
+ });
2993
+ c = Wn(Ie("listPricingEnvironments", d));
2994
+ break;
2995
+ }
2996
+ case "discountDefinitions": {
2997
+ const d = await u.listDiscountCurveDefinitions({
2998
+ type: "3",
2999
+ status: !0
3000
+ }, {
3001
+ signal: l.signal
3002
+ });
3003
+ c = qn(Ie("listDiscountCurveDefinitions", d));
3004
+ break;
3005
+ }
3006
+ case "customDiscountCurves": {
3007
+ const d = await u.listCustomDiscountCurves({
3008
+ type: "3",
3009
+ isCustom: !0
3010
+ }, {
3011
+ signal: l.signal
3012
+ });
3013
+ c = Zn(Ie("listCustomDiscountCurves", d));
3014
+ break;
3015
+ }
3016
+ case "carbonDefinitions": {
3017
+ const d = await u.listCarbonForwardCurveDefinitions({
3018
+ type: "11",
3019
+ status: !0
3020
+ }, {
3021
+ signal: l.signal
3022
+ });
3023
+ c = jn(Ie("listCarbonForwardCurveDefinitions", d));
3024
+ break;
3025
+ }
3026
+ case "customCarbonCurves": {
3027
+ const d = await u.listCustomCarbonForwardCurves({
3028
+ type: "11",
3029
+ isCustom: !0
3030
+ }, {
3031
+ signal: l.signal
3032
+ });
3033
+ c = Xn(Ie("listCustomCarbonForwardCurves", d));
3034
+ break;
3035
+ }
3036
+ }
3037
+ i.current && a({
3038
+ type: "resource/success",
3039
+ key: o,
3040
+ data: c
3041
+ });
3042
+ } catch (c) {
3043
+ i.current && !l.signal.aborted && a({
3044
+ type: "resource/error",
3045
+ key: o,
3046
+ error: c instanceof Error ? c.message : Gu[o]
3047
+ });
3048
+ }
3049
+ }, [u, n.resources]), T = ee(!1);
3050
+ Be(() => {
3051
+ T.current || (T.current = !0, Promise.allSettled(Object.keys(Gu).map((o) => g(o))));
3052
+ }, [g]);
3053
+ const y = Le(() => [...n.resources.discountDefinitions.data, ...n.resources.customDiscountCurves.data, ...n.resources.carbonDefinitions.data, ...n.resources.customCarbonCurves.data], [n.resources]), M = Le(() => y.filter((o) => o.kind === "discount"), [y]), P = Le(() => y.filter((o) => o.kind === "carbonForward"), [y]), w = ee(y);
3054
+ Be(() => {
3055
+ w.current = y;
3056
+ }, [y]);
3057
+ const L = he((o, l) => w.current.find((c) => c.kind === o.kind && (c.id === o.id || c.key === o.id)) ?? {
3058
+ ...o,
3059
+ key: `${o.kind}:${o.source}:${o.id}`,
3060
+ currency: l
3061
+ }, []), D = n.context.pricingEnvironment;
3062
+ Be(() => {
3063
+ if (!D || !t) return;
3064
+ p.current?.abort();
3065
+ const o = new AbortController();
3066
+ p.current = o;
3067
+ const l = ++s.current, c = JSON.stringify([D.id, t]);
3068
+ a({
3069
+ type: "environment-curves/loading"
3070
+ });
3071
+ let d = b.current.get(c);
3072
+ return d || (d = u.getEnvironmentCurveSelection({
3073
+ pricingEnvId: D.id,
3074
+ productType: t
3075
+ }, {
3076
+ signal: o.signal
3077
+ }).then((B) => Qn(Ie("getEnvironmentCurveSelection", B))), b.current.set(c, d)), d.then((B) => {
3078
+ !i.current || l !== s.current || a({
3079
+ type: "environment-curves/success",
3080
+ discountCurve: B ? L(B.discountCurve, D.currency) : null,
3081
+ carbonForwardCurve: B ? L(B.carbonForwardCurve, D.currency) : null
3082
+ });
3083
+ }).catch((B) => {
3084
+ b.current.delete(c), !o.signal.aborted && (!i.current || l !== s.current || a({
3085
+ type: "environment-curves/error",
3086
+ error: B instanceof Error ? B.message : "环境关联曲线加载失败"
3087
+ }));
3088
+ }), () => o.abort();
3089
+ }, [u, S, t, L, D]);
3090
+ const R = ee(t);
3091
+ Be(() => {
3092
+ R.current !== t && (R.current = t, n.context.pricingEnvironment && a({
3093
+ type: "context/set",
3094
+ field: "pricingEnvironment",
3095
+ value: n.context.pricingEnvironment
3096
+ }));
3097
+ }, [t, n.context.pricingEnvironment]);
3098
+ const $ = ee(n.context);
3099
+ Be(() => {
3100
+ $.current = n.context;
3101
+ }, [n.context]);
3102
+ const v = he((o, l) => {
3103
+ const c = $.current[o];
3104
+ c === l || c != null && l != null && typeof c == "object" && typeof l == "object" && ("key" in c && "key" in l && c.key === l.key || "id" in c && "id" in l && c.id === l.id) || (o === "pricingEnvironment" && l && console.log("[IndicativePricingforSelectedContracts] selected pricing environment id:", l.id), $.current = {
3105
+ ...$.current,
3106
+ [o]: l
3107
+ }, E.current += 1, h.current?.abort(), F.current = null, a({
3108
+ type: "context/set",
3109
+ field: o,
3110
+ value: l
3111
+ }));
3112
+ }, []), _ = ee(!1);
3113
+ Be(() => {
3114
+ const o = n.resources.environments;
3115
+ if (_.current || o.status !== "success" && o.status !== "empty" || (_.current = !0, n.context.pricingEnvironment)) return;
3116
+ const l = o.data.find((c) => c.isDefaultForSelf === !0);
3117
+ l && v("pricingEnvironment", l);
3118
+ }, [v, n.context.pricingEnvironment, n.resources.environments]);
3119
+ const k = he(async () => {
3120
+ if (!i.current) return {
3121
+ kind: "cancelled"
3122
+ };
3123
+ if (F.current !== null)
3124
+ return {
3125
+ kind: "blocked",
3126
+ reason: "submitting"
3127
+ };
3128
+ if (e.length === 0) return {
3129
+ kind: "empty"
3130
+ };
3131
+ const o = $.current, l = wn(o), c = kn(o.valuationDate, e);
3132
+ if (!c.valid && c.message && (l.valuationDate = [c.message]), a({
3133
+ type: "context/errors",
3134
+ errors: l
3135
+ }), Object.keys(l).length > 0)
3136
+ return {
3137
+ kind: "invalid"
3138
+ };
3139
+ const d = Jn(e, o), B = n.inputVersion, A = ++E.current;
3140
+ F.current = A, h.current?.abort();
3141
+ const O = new AbortController();
3142
+ h.current = O, a({
3143
+ type: "calculation/submitting",
3144
+ contractIds: e.map((N) => N.contractId)
3145
+ });
3146
+ try {
3147
+ const N = Ie("calculate", await u.calculate(d, {
3148
+ signal: O.signal
3149
+ }));
3150
+ if (!i.current || A !== E.current)
3151
+ return {
3152
+ kind: "cancelled"
3153
+ };
3154
+ const G = Array.isArray(N) ? N : [], W = eo(e.map((U) => U.contractId), G, B);
3155
+ return a({
3156
+ type: "calculation/settled",
3157
+ results: W
3158
+ }), {
3159
+ kind: "success",
3160
+ hasErrors: Object.values(W).some((U) => U.status === "error"),
3161
+ hasExtraItems: G.length > e.length
3162
+ };
3163
+ } catch (N) {
3164
+ if (!i.current || A !== E.current)
3165
+ return {
3166
+ kind: "cancelled"
3167
+ };
3168
+ const G = uo(N), W = Object.fromEntries(e.map((U) => [U.contractId, {
3169
+ contractId: U.contractId,
3170
+ status: "error",
3171
+ result: null,
3172
+ message: G,
3173
+ resultInputVersion: B
3174
+ }]));
3175
+ return a({
3176
+ type: "calculation/settled",
3177
+ results: W
3178
+ }), {
3179
+ kind: "requestError"
3180
+ };
3181
+ } finally {
3182
+ F.current === A && (F.current = null);
3183
+ }
3184
+ }, [e, u, n.inputVersion]), Y = he(() => F.current !== null, []), C = he(() => {
3185
+ E.current += 1, h.current?.abort(), F.current = null, s.current += 1, p.current?.abort(), $.current = {
3186
+ ...Bu
3187
+ }, a({
3188
+ type: "reset"
3189
+ });
3190
+ }, []), m = Object.keys(n.resources).every((o) => n.resources[o].status !== "idle" && n.resources[o].status !== "loading");
3191
+ return {
3192
+ state: n,
3193
+ initialized: m,
3194
+ discountCurves: M,
3195
+ carbonForwardCurves: P,
3196
+ setContext: v,
3197
+ retryResource: g,
3198
+ retryEnvironmentCurves: () => {
3199
+ if (!D || n.environmentCurvesAttempts >= cu)
3200
+ return;
3201
+ const o = JSON.stringify([D.id, t]);
3202
+ b.current.delete(o), I((l) => l + 1);
3203
+ },
3204
+ calculate: k,
3205
+ isCalculating: Y,
3206
+ reset: C
3207
+ };
3208
+ }
3209
+ const ro = ue(function(e, t) {
3210
+ const u = z.c(114), {
3211
+ mode: n,
3212
+ layout: a,
3213
+ appId: i,
3214
+ productType: s,
3215
+ contractData: E,
3216
+ dataSource: F,
3217
+ showFooter: h,
3218
+ onNavigateToPricingPage: p,
3219
+ afterJumpPricingPage: x,
3220
+ className: S,
3221
+ style: I
3222
+ } = e, b = n === void 0 ? "multiple" : n, g = a === void 0 ? "horizontal" : a, T = h === void 0 ? !0 : h, y = b === "single" && g === "vertical", M = b === "single" && g === "horizontal", P = b === "multiple" ? V.multiple : y ? V.single : V.fixedSingle, {
3223
+ message: w
3224
+ } = hu.useApp();
3225
+ let L;
3226
+ u[0] !== E || u[1] !== b ? (L = () => Object.freeze((b === "multiple" ? [...E] : E.slice(0, 1)).map(no)), u[0] = E, u[1] = b, u[2] = L) : L = u[2];
3227
+ const [D] = ze(L);
3228
+ let R;
3229
+ u[3] !== E.length ? (R = () => E.length, u[3] = E.length, u[4] = R) : R = u[4];
3230
+ const [$] = ze(R), v = b === "multiple" && $ > dr;
3231
+ let _;
3232
+ u[5] !== D || u[6] !== v ? (_ = v ? [] : D, u[5] = D, u[6] = v, u[7] = _) : _ = u[7];
3233
+ const k = _;
3234
+ let Y;
3235
+ u[8] !== k || u[9] !== F || u[10] !== s ? (Y = {
3236
+ contracts: k,
3237
+ productType: s,
3238
+ dataSource: F
3239
+ }, u[8] = k, u[9] = F, u[10] = s, u[11] = Y) : Y = u[11];
3240
+ const C = to(Y), {
3241
+ calculate: m,
3242
+ initialized: o,
3243
+ isCalculating: l,
3244
+ reset: c,
3245
+ state: d
3246
+ } = C, B = ee(!1);
3247
+ let A, O;
3248
+ u[12] !== k.length || u[13] !== w || u[14] !== v ? (A = () => {
3249
+ k.length === 0 && !v && !B.current && (B.current = !0, w.warning("请先选择一笔合约"));
3250
+ }, O = [k.length, w, v], u[12] = k.length, u[13] = w, u[14] = v, u[15] = A, u[16] = O) : (A = u[15], O = u[16]), Be(A, O);
3251
+ const N = k.length === 0 || v, G = !C.initialized || d.submitting || d.environmentCurvesStatus === "loading", W = [d.resources.discountDefinitions.status, d.resources.customDiscountCurves.status, d.resources.carbonDefinitions.status, d.resources.customCarbonCurves.status].some(oo), U = d.environmentCurvesStatus === "loading";
3252
+ let j;
3253
+ u[17] !== N || u[18] !== l || u[19] !== c ? (j = () => N || l() ? !1 : (c(), !0), u[17] = N, u[18] = l, u[19] = c, u[20] = j) : j = u[20];
3254
+ const q = j;
3255
+ let Z;
3256
+ u[21] !== x || u[22] !== N || u[23] !== i || u[24] !== E || u[25] !== l || u[26] !== w || u[27] !== p || u[28] !== s ? (Z = () => {
3257
+ if (N || l())
3258
+ return !1;
3259
+ const re = E.map(ao).filter(io);
3260
+ if (re.length === 0)
3261
+ return w.info("所选合约成交编号为空,请返回重新选择"), !1;
3262
+ const le = re.length < E.length, se = `/price-contracts-list?productType=${encodeURIComponent(s)}&instrumentCodes=${encodeURIComponent(re.join("&"))}&partialInstrumentCodeEmpty=${le}`;
3263
+ return p ? p(se) : window.parent?.postMessage({
3264
+ event: "g-navigate",
3265
+ appId: i,
3266
+ payload: {
3267
+ appId: "GZ0303",
3268
+ routePath: se
3269
+ },
3270
+ timestamp: Date.now()
3271
+ }, "*"), x && Promise.resolve().then(() => x()).catch(lo), !0;
3272
+ }, u[21] = x, u[22] = N, u[23] = i, u[24] = E, u[25] = l, u[26] = w, u[27] = p, u[28] = s, u[29] = Z) : Z = u[29];
3273
+ const H = Z;
3274
+ let Q;
3275
+ u[30] !== m || u[31] !== k.length || u[32] !== U || u[33] !== o || u[34] !== l || u[35] !== w || u[36] !== v ? (Q = async () => {
3276
+ if (v)
3277
+ return {
3278
+ kind: "blocked",
3279
+ reason: "overLimit"
3280
+ };
3281
+ if (k.length === 0)
3282
+ return {
3283
+ kind: "empty"
3284
+ };
3285
+ if (l())
3286
+ return {
3287
+ kind: "blocked",
3288
+ reason: "submitting"
3289
+ };
3290
+ if (!o || U)
3291
+ return {
3292
+ kind: "blocked",
3293
+ reason: "loading"
3294
+ };
3295
+ const re = await m();
3296
+ return re.kind === "invalid" ? w.error("请完成所有定价要素配置") : re.kind === "success" && re.hasExtraItems && w.warning("定价服务返回了多余结果,已按请求顺序忽略"), re;
3297
+ }, u[30] = m, u[31] = k.length, u[32] = U, u[33] = o, u[34] = l, u[35] = w, u[36] = v, u[37] = Q) : Q = u[37];
3298
+ const J = Q;
3299
+ let X, K;
3300
+ u[38] !== J || u[39] !== H || u[40] !== q ? (X = () => ({
3301
+ reset: q,
3302
+ navigateToPricingPage: H,
3303
+ calculate: J
3304
+ }), K = [J, H, q], u[38] = J, u[39] = H, u[40] = q, u[41] = X, u[42] = K) : (X = u[41], K = u[42]), qt(t, X, K);
3305
+ let te;
3306
+ e: {
3307
+ if (v) {
3308
+ let de;
3309
+ u[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (de = /* @__PURE__ */ f("div", { className: V.emptyState, children: /* @__PURE__ */ f(Ve, { description: "合约数量超出支持范围" }) }), u[43] = de) : de = u[43], te = de;
3310
+ break e;
3311
+ }
3312
+ if (k.length === 0) {
3313
+ let de;
3314
+ u[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (de = /* @__PURE__ */ f("div", { className: V.emptyState, children: /* @__PURE__ */ f(Ve, { description: "请先选择一笔合约" }) }), u[44] = de) : de = u[44], te = de;
3315
+ break e;
3316
+ }
3317
+ if (M) {
3318
+ const de = k[0], ru = d.resultByContractId[de.contractId], nu = !C.initialized || d.submitting;
3319
+ let We;
3320
+ u[45] !== de || u[46] !== ru || u[47] !== nu ? (We = /* @__PURE__ */ f(pn, { contract: de, calculation: ru, loading: nu }), u[45] = de, u[46] = ru, u[47] = nu, u[48] = We) : We = u[48], te = We;
3321
+ break e;
3322
+ }
3323
+ const re = b === "single", le = !C.initialized || d.submitting;
3324
+ let se;
3325
+ u[49] !== k || u[50] !== d.resultByContractId || u[51] !== re || u[52] !== le ? (se = /* @__PURE__ */ f(bn, { single: re, contracts: k, results: d.resultByContractId, loading: le }), u[49] = k, u[50] = d.resultByContractId, u[51] = re, u[52] = le, u[53] = se) : se = u[53], te = se;
3326
+ }
3327
+ const ie = te;
3328
+ let ne;
3329
+ u[54] !== S || u[55] !== P ? (ne = vu(V.root, P, S), u[54] = S, u[55] = P, u[56] = ne) : ne = u[56];
3330
+ const De = d.submitting ? "submitting" : C.initialized ? "ready" : "loading", ce = !C.initialized;
3331
+ let be;
3332
+ u[57] !== y ? (be = y ? null : /* @__PURE__ */ f("h3", { className: V.sectionTitle, children: "定价要素" }), u[57] = y, u[58] = be) : be = u[58];
3333
+ let Ee;
3334
+ u[59] !== v || u[60] !== $ ? (Ee = v ? /* @__PURE__ */ f(Ge, { className: V.limitAlert, type: "error", showIcon: !0, title: `最多支持1000笔,当前${$}笔,请返回重新选择` }) : null, u[59] = v, u[60] = $, u[61] = Ee) : Ee = u[61];
3335
+ let Fe;
3336
+ u[62] !== C ? (Fe = (re) => {
3337
+ C.retryResource(re);
3338
+ }, u[62] = C, u[63] = Fe) : Fe = u[63];
3339
+ let Ce;
3340
+ u[64] !== d.resources || u[65] !== Fe ? (Ce = /* @__PURE__ */ f(On, { resources: d.resources, onRetry: Fe }), u[64] = d.resources, u[65] = Fe, u[66] = Ce) : Ce = u[66];
3341
+ let fe;
3342
+ u[67] !== C.retryEnvironmentCurves || u[68] !== d.environmentCurvesAttempts || u[69] !== d.environmentCurvesError || u[70] !== d.environmentCurvesStatus ? (fe = d.environmentCurvesStatus === "error" ? /* @__PURE__ */ f(Ge, { type: "error", showIcon: !0, title: "环境关联曲线加载失败", description: d.environmentCurvesError, action: /* @__PURE__ */ f(Ne, { size: "small", disabled: d.environmentCurvesAttempts >= 3, onClick: C.retryEnvironmentCurves, children: "重试" }) }) : null, u[67] = C.retryEnvironmentCurves, u[68] = d.environmentCurvesAttempts, u[69] = d.environmentCurvesError, u[70] = d.environmentCurvesStatus, u[71] = fe) : fe = u[71];
3343
+ const Te = d.resources.environments.status === "loading", $e = W || U;
3344
+ let _e;
3345
+ u[72] !== C.carbonForwardCurves || u[73] !== C.discountCurves || u[74] !== C.setContext || u[75] !== U || u[76] !== g || u[77] !== b || u[78] !== d.context || u[79] !== d.contextErrors || u[80] !== d.resources.environments.data || u[81] !== d.submitting || u[82] !== Te || u[83] !== $e ? (_e = /* @__PURE__ */ f($n, { mode: b, layout: g, value: d.context, errors: d.contextErrors, environments: d.resources.environments.data, discountCurves: C.discountCurves, carbonForwardCurves: C.carbonForwardCurves, environmentsLoading: Te, curvesLoading: $e, curvesDisabled: U, disabled: d.submitting, onChange: C.setContext }), u[72] = C.carbonForwardCurves, u[73] = C.discountCurves, u[74] = C.setContext, u[75] = U, u[76] = g, u[77] = b, u[78] = d.context, u[79] = d.contextErrors, u[80] = d.resources.environments.data, u[81] = d.submitting, u[82] = Te, u[83] = $e, u[84] = _e) : _e = u[84];
3346
+ let Ae;
3347
+ u[85] !== be || u[86] !== Ee || u[87] !== Ce || u[88] !== fe || u[89] !== _e ? (Ae = /* @__PURE__ */ Me("div", { className: V.section, children: [
3348
+ be,
3349
+ Ee,
3350
+ Ce,
3351
+ fe,
3352
+ _e
3353
+ ] }), u[85] = be, u[86] = Ee, u[87] = Ce, u[88] = fe, u[89] = _e, u[90] = Ae) : Ae = u[90];
3354
+ let Se;
3355
+ u[91] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Se = /* @__PURE__ */ f("div", { className: V.sectionTitle, children: "定价结果" }), u[91] = Se) : Se = u[91];
3356
+ let ge;
3357
+ u[92] !== ie ? (ge = /* @__PURE__ */ Me("div", { className: V.section, children: [
3358
+ Se,
3359
+ ie
3360
+ ] }), u[92] = ie, u[93] = ge) : ge = u[93];
3361
+ let pe;
3362
+ u[94] !== N || u[95] !== G || u[96] !== J || u[97] !== H || u[98] !== q || u[99] !== g || u[100] !== b || u[101] !== T || u[102] !== d.submitting ? (pe = T ? /* @__PURE__ */ f(Ln, { mode: b, layout: g, allDisabled: N, calculateDisabled: G, submitting: d.submitting, onReset: q, onNavigateToPricingPage: H, onCalculate: () => {
3363
+ J();
3364
+ } }) : null, u[94] = N, u[95] = G, u[96] = J, u[97] = H, u[98] = q, u[99] = g, u[100] = b, u[101] = T, u[102] = d.submitting, u[103] = pe) : pe = u[103];
3365
+ let ve;
3366
+ u[104] !== ce || u[105] !== Ae || u[106] !== ge || u[107] !== pe ? (ve = /* @__PURE__ */ Me(Du, { spinning: ce, description: "定价资源加载中", children: [
3367
+ Ae,
3368
+ ge,
3369
+ pe
3370
+ ] }), u[104] = ce, u[105] = Ae, u[106] = ge, u[107] = pe, u[108] = ve) : ve = u[108];
3371
+ let xe;
3372
+ return u[109] !== I || u[110] !== ne || u[111] !== De || u[112] !== ve ? (xe = /* @__PURE__ */ f("section", { className: ne, style: I, "aria-label": "交易合约试定价", "data-status": De, children: ve }), u[109] = I, u[110] = ne, u[111] = De, u[112] = ve, u[113] = xe) : xe = u[113], xe;
3373
+ });
3374
+ ro.displayName = "IndicativePricingforSelectedContracts";
3375
+ function no(r, e) {
3376
+ return Object.freeze({
3377
+ ...r,
3378
+ contractId: `contract-${String(e + 1).padStart(3, "0")}`
3379
+ });
3380
+ }
3381
+ function oo(r) {
3382
+ return r === "loading";
3383
+ }
3384
+ function ao(r) {
3385
+ return r.instrumentCode?.trim();
3386
+ }
3387
+ function io(r) {
3388
+ return !!r;
3389
+ }
3390
+ function lo(r) {
3391
+ console.error("[IndicativePricingforSelectedContracts] afterJumpPricingPage 执行失败", r);
3392
+ }
3393
+ const Rt = ue((r, e) => {
3394
+ const t = z.c(7);
3395
+ let u, n;
3396
+ t[0] !== r ? ({
3397
+ children: u,
3398
+ ...n
3399
+ } = r, t[0] = r, t[1] = u, t[2] = n) : (u = t[1], n = t[2]);
3400
+ let a;
3401
+ return t[3] !== u || t[4] !== e || t[5] !== n ? (a = /* @__PURE__ */ f(pu.Group, { ref: e, ...n, children: u }), t[3] = u, t[4] = e, t[5] = n, t[6] = a) : a = t[6], a;
3402
+ });
3403
+ Rt.displayName = "GZRadioGroup";
3404
+ const Pt = ue((r, e) => {
3405
+ const t = z.c(7);
3406
+ let u, n;
3407
+ t[0] !== r ? ({
3408
+ children: u,
3409
+ ...n
3410
+ } = r, t[0] = r, t[1] = u, t[2] = n) : (u = t[1], n = t[2]);
3411
+ const a = e;
3412
+ let i;
3413
+ return t[3] !== u || t[4] !== n || t[5] !== a ? (i = /* @__PURE__ */ f(pu.Button, { ref: a, ...n, children: u }), t[3] = u, t[4] = n, t[5] = a, t[6] = i) : i = t[6], i;
3414
+ });
3415
+ Pt.displayName = "GZRadioButton";
3416
+ const so = ue((r, e) => {
3417
+ const t = z.c(7);
3418
+ let u, n;
3419
+ t[0] !== r ? ({
3420
+ children: u,
3421
+ ...n
3422
+ } = r, t[0] = r, t[1] = u, t[2] = n) : (u = t[1], n = t[2]);
3423
+ const a = e;
3424
+ let i;
3425
+ return t[3] !== u || t[4] !== n || t[5] !== a ? (i = /* @__PURE__ */ f(pu, { ref: a, ...n, children: u }), t[3] = u, t[4] = n, t[5] = a, t[6] = i) : i = t[6], i;
3426
+ }), tu = so;
3427
+ tu.Group = Rt;
3428
+ tu.Button = Pt;
3429
+ tu.displayName = "GZRadio";
3430
+ const Hu = "-";
3431
+ function co(r, e) {
3432
+ const t = Date.parse(r), u = Date.parse(e);
3433
+ return Number.isFinite(t) && Number.isFinite(u) ? t - u : r.localeCompare(e);
3434
+ }
3435
+ function mo(r) {
3436
+ return r.replace(/^(\d{4})(\d{2})(\d{2})$/, "$1-$2-$3");
3437
+ }
3438
+ function Eo(r) {
3439
+ const e = new Date(r);
3440
+ e.setDate(e.getDate() - 1);
3441
+ const t = e.getFullYear(), u = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
3442
+ return `${t}${u}${n}`;
3443
+ }
3444
+ function Fo(r) {
3445
+ return r.map(({
3446
+ busnsDate: e,
3447
+ valtnPrice: t,
3448
+ mval: u,
3449
+ tradeCrrc: n
3450
+ }) => ({
3451
+ date: mo(e),
3452
+ price: t,
3453
+ npv: u,
3454
+ currency: n
3455
+ }));
3456
+ }
3457
+ function Lt(r, e) {
3458
+ const t = e === "ascending" ? 1 : -1;
3459
+ return [...r].sort((u, n) => t * co(u.date, n.date));
3460
+ }
3461
+ function Co(r) {
3462
+ if (r == null || typeof r == "string" && r.trim() === "")
3463
+ return 0;
3464
+ try {
3465
+ const e = new He(r).toNumber();
3466
+ return Number.isFinite(e) ? e : null;
3467
+ } catch {
3468
+ return null;
3469
+ }
3470
+ }
3471
+ function Nt(r) {
3472
+ try {
3473
+ return r != null && new He(r).lt(0);
3474
+ } catch {
3475
+ return !1;
3476
+ }
3477
+ }
3478
+ function Fu(r, e, t) {
3479
+ if (r == null || r === "") return Hu;
3480
+ let u;
3481
+ try {
3482
+ u = new He(r).toFixed(2);
3483
+ } catch {
3484
+ return Hu;
3485
+ }
3486
+ const n = u.startsWith("-"), [a, i] = (n ? u.slice(1) : u).split("."), s = a.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
3487
+ try {
3488
+ const E = new Intl.NumberFormat(t, {
3489
+ style: "currency",
3490
+ currency: e,
3491
+ currencyDisplay: "narrowSymbol"
3492
+ }).formatToParts(0).find((F) => F.type === "currency")?.value;
3493
+ return `${n ? "-" : ""}${E ?? e}${s}.${i}`;
3494
+ } catch {
3495
+ return `${n ? "-" : ""}${e} ${s}.${i}`;
3496
+ }
3497
+ }
3498
+ function fo(r) {
3499
+ const e = /^(\d{4})-(\d{2})-(\d{2})/.exec(r);
3500
+ return e ? `${e[1].slice(2)}-${e[2]}-${e[3]}` : r;
3501
+ }
3502
+ const Uu = 0.05, Ot = 7, go = [8, 8];
3503
+ function zt(r) {
3504
+ return r.filter((e) => typeof e == "number" && Number.isFinite(e));
3505
+ }
3506
+ function po(r) {
3507
+ const e = zt(r);
3508
+ if (e.length === 0) return {};
3509
+ const t = Math.min(...e), u = Math.max(...e), n = u - t, a = n > 0 ? n * Uu : u !== 0 ? Math.abs(u) * Uu : 1, i = t - a, s = u + a;
3510
+ return t >= 0 ? {
3511
+ min: Math.max(0, i),
3512
+ max: s
3513
+ } : u <= 0 ? {
3514
+ min: i,
3515
+ max: Math.min(0, s)
3516
+ } : {
3517
+ min: i,
3518
+ max: s
3519
+ };
3520
+ }
3521
+ function vo(r) {
3522
+ const e = zt(r);
3523
+ if (e.length === 0)
3524
+ return {
3525
+ position: "bottom",
3526
+ onZero: !1
3527
+ };
3528
+ const t = Math.min(...e), u = Math.max(...e), n = u <= 0 && t < 0 ? "top" : "bottom", a = t <= 0 && u >= 0;
3529
+ return {
3530
+ position: n,
3531
+ onZero: a
3532
+ };
3533
+ }
3534
+ function Ke(r, e) {
3535
+ return Number(r.toFixed(Math.min(Math.max(e, 0), 20)));
3536
+ }
3537
+ function ho(r, e) {
3538
+ const t = (e - r) / Ot, u = Math.floor(Math.log10(t)), n = 10 ** u, a = t / n, i = a < 1.5 ? 1 : a < 2.5 ? 2 : a < 4 ? 3 : a < 7 ? 5 : 10;
3539
+ return Ke(i * n, -u);
3540
+ }
3541
+ function Do({
3542
+ min: r,
3543
+ max: e
3544
+ }) {
3545
+ if (r == null || e == null || r >= e) return;
3546
+ const t = ho(r, e), u = Math.max(0, -Math.floor(Math.log10(t))) + 2, n = Ke(Math.ceil(r / t) * t, u), a = Ke(Math.floor(e / t) * t, u), i = r < n ? [r] : [];
3547
+ for (let s = n; s <= a; s = Ke(s + t, u))
3548
+ i.push(s);
3549
+ return e > a && i.push(e), r < 0 && e > 0 ? i.filter((s) => s !== 0) : i;
3550
+ }
3551
+ function Bo({
3552
+ data: r,
3553
+ metric: e,
3554
+ currency: t,
3555
+ locale: u,
3556
+ theme: n
3557
+ }) {
3558
+ const a = Lt(r, "ascending"), i = e === "price" ? "价格" : "NPV", s = a.map((x) => Co(x[e])), E = po(s), F = vo(s), h = Do(E), p = a.map(({
3559
+ date: x
3560
+ }) => fo(x));
3561
+ return {
3562
+ // 数据或指标切换时使用 300ms 过渡动画。
3563
+ animationDuration: 300,
3564
+ // 透出宿主面板背景,避免图表画布覆盖组件主题色。
3565
+ backgroundColor: "transparent",
3566
+ // 统一图表内文字的主题颜色、字体和字号。
3567
+ textStyle: {
3568
+ // 默认文字使用主题主文字色。
3569
+ color: n.text,
3570
+ // 字体与当前 gz-ui 主题保持一致。
3571
+ fontFamily: n.fontFamily,
3572
+ // 字号与当前 gz-ui 主题保持一致。
3573
+ fontSize: n.fontSize
3574
+ },
3575
+ // 通过四周留白为坐标轴标签和旋转后的日期文本预留空间。
3576
+ grid: {
3577
+ // 顶部为纵轴最大刻度和折线预留空间。
3578
+ top: 16,
3579
+ // 右侧避免最后一个数据点贴近画布边缘。
3580
+ right: 24,
3581
+ // 底部容纳旋转 45 度后的日期标签。
3582
+ bottom: 58,
3583
+ // 左侧为纵轴刻度标签预留显示空间。
3584
+ left: 64
3585
+ },
3586
+ // 鼠标悬停时展示当前日期对应的指标金额。
3587
+ tooltip: {
3588
+ // 按横轴类目触发,指向日期时展示该日期的数据。
3589
+ trigger: "axis",
3590
+ // 将浮层限制在图表区域内,避免被外层滚动容器裁切。
3591
+ confine: !0,
3592
+ // 对齐 gz-ui 浮层背景,避免 ECharts 默认的白色 Tooltip。
3593
+ backgroundColor: n.backgroundElevated,
3594
+ // Figma 浮层没有描边,关闭 ECharts 默认边框。
3595
+ borderWidth: 0,
3596
+ borderRadius: 4,
3597
+ padding: 12,
3598
+ textStyle: {
3599
+ color: n.text,
3600
+ fontFamily: n.fontFamily,
3601
+ fontSize: n.fontSize
3602
+ },
3603
+ // 按当前币种和区域格式化提示框中的金额。
3604
+ valueFormatter: (x) => Fu(typeof x == "number" || typeof x == "string" ? x : null, t, u)
3605
+ },
3606
+ // 日期标签轴与符号基准线分离,避免全负数据把日期标签一起移动到顶部。
3607
+ xAxis: [{
3608
+ // 日期是离散类目,而非连续时间刻度。
3609
+ type: "category",
3610
+ position: "bottom",
3611
+ // 在首尾类目两侧保留半个类目间距,防止端点贴边。
3612
+ boundaryGap: !0,
3613
+ // 将日期转换为 YY-MM-DD 后写入横轴。
3614
+ data: p,
3615
+ // 横轴仅保留标签,不显示刻度短线。
3616
+ axisTick: {
3617
+ // 隐藏每个日期下方的刻度短线。
3618
+ show: !1
3619
+ },
3620
+ // 标签轴不绘制实线,也不参与零点吸附。
3621
+ axisLine: {
3622
+ show: !1,
3623
+ onZero: !1
3624
+ },
3625
+ // 配置横轴日期标签的颜色、密度、角度和间距。
3626
+ axisLabel: {
3627
+ // 日期标签使用主题次级文字色。
3628
+ color: n.textSecondary,
3629
+ // 强制展示每一个日期标签,不让 ECharts 自动抽稀。
3630
+ interval: 0,
3631
+ // 日期旋转 45 度以降低相邻标签重叠概率。
3632
+ rotate: 45,
3633
+ // 标签与绘图区底边保持 12px 间距。
3634
+ margin: 12
3635
+ }
3636
+ }, {
3637
+ type: "category",
3638
+ position: F.position,
3639
+ boundaryGap: !0,
3640
+ data: p,
3641
+ axisTick: {
3642
+ show: !1
3643
+ },
3644
+ axisLabel: {
3645
+ show: !1
3646
+ },
3647
+ // 实线仅表达符号方向:全负在顶部、全正在底部、跨零时吸附 0。
3648
+ axisLine: {
3649
+ show: !0,
3650
+ onZero: F.onZero,
3651
+ lineStyle: {
3652
+ color: n.baseline,
3653
+ type: "solid"
3654
+ }
3655
+ }
3656
+ }],
3657
+ // 纵轴以连续数值刻度展示当前价格或 NPV。
3658
+ yAxis: {
3659
+ // 使用连续数值轴,支持正数、负数和小数。
3660
+ type: "value",
3661
+ // 应用根据绘图值及 5% 留白计算出的固定上下限。
3662
+ ...E,
3663
+ // 期望约分为 7 段,实际刻度数和间隔仍由 ECharts 取易读值。
3664
+ splitNumber: Ot,
3665
+ // 纵轴通过网格线表达刻度,不额外显示刻度短线。
3666
+ axisTick: {
3667
+ // 隐藏纵轴刻度短线。
3668
+ show: !1,
3669
+ customValues: h
3670
+ },
3671
+ // 隐藏纵轴自身的竖直轴线,减少视觉干扰。
3672
+ axisLine: {
3673
+ // 不绘制纵轴轴线。
3674
+ show: !1
3675
+ },
3676
+ // 配置纵轴刻度标签的主题颜色和数值精度。
3677
+ axisLabel: {
3678
+ // 纵轴标签使用主题次级文字色。
3679
+ color: n.textSecondary,
3680
+ // 刻度最多展示两位小数,并按当前区域添加数字分组格式。
3681
+ formatter: (x) => new Intl.NumberFormat(u, {
3682
+ maximumFractionDigits: 2
3683
+ }).format(x)
3684
+ },
3685
+ // 为每个纵轴主刻度绘制水平辅助线。
3686
+ splitLine: {
3687
+ // 边界只保留符号基准线,避免最大、最小端点虚线与实线重叠。
3688
+ showMinLine: !1,
3689
+ showMaxLine: !1,
3690
+ // 网格线使用主题分割色和自定义虚线节奏。
3691
+ lineStyle: {
3692
+ // 颜色读取当前 gz-ui 主题的分割线 Token。
3693
+ color: n.split,
3694
+ // 使用统一的线段与间隔长度绘制虚线。
3695
+ type: go
3696
+ }
3697
+ }
3698
+ },
3699
+ // 当前图表只绘制一个价格或 NPV 折线系列。
3700
+ series: [{
3701
+ // 系列名称随当前选中的指标切换。
3702
+ name: i,
3703
+ // 数据系列使用第一个横轴;第二个横轴只负责绘制符号基准线。
3704
+ xAxisIndex: 0,
3705
+ // 使用折线图连接相邻日期的数据点。
3706
+ type: "line",
3707
+ // 传入已转换的数值、0 或空点序列。
3708
+ data: s,
3709
+ // 每个有效数据点使用圆形标记。
3710
+ symbol: "circle",
3711
+ // 数据点直径固定为 5px。
3712
+ symbolSize: 5,
3713
+ // 常态下始终展示数据点标记。
3714
+ showSymbol: !0,
3715
+ // 遇到无法转换的空点时断开折线,不跨点连接。
3716
+ connectNulls: !1,
3717
+ // 配置折线本身的主题颜色和宽度。
3718
+ lineStyle: {
3719
+ // 折线颜色使用当前主题主色。
3720
+ color: n.primary,
3721
+ // 折线宽度固定为 2px。
3722
+ width: 2
3723
+ },
3724
+ // 配置数据点标记的填充色。
3725
+ itemStyle: {
3726
+ // 数据点与折线统一使用主题主色。
3727
+ color: n.primary
3728
+ },
3729
+ // 鼠标悬停数据点时提供轻微放大反馈。
3730
+ emphasis: {
3731
+ // 高亮数据点放大到默认尺寸的 1.3 倍。
3732
+ scale: 1.3
3733
+ }
3734
+ }]
3735
+ };
3736
+ }
3737
+ const yo = "_root_11qye_1", bo = "_title_11qye_12", Ao = "_loading_11qye_19", So = "_content_11qye_26", xo = "_tablePanel_11qye_32", To = "_chartPanel_11qye_33", _o = "_table_11qye_32", Mo = "_negativeValue_11qye_69", wo = "_chartHeader_11qye_76", ko = "_chartTitle_11qye_85", $o = "_chart_11qye_33", Io = "_chartEmpty_11qye_93", Ro = "_chartScrollable_11qye_102", Po = "_chartCanvas_11qye_139", ae = {
3738
+ root: yo,
3739
+ title: bo,
3740
+ loading: Ao,
3741
+ content: So,
3742
+ tablePanel: xo,
3743
+ chartPanel: To,
3744
+ table: _o,
3745
+ negativeValue: Mo,
3746
+ chartHeader: wo,
3747
+ chartTitle: ko,
3748
+ chart: $o,
3749
+ chartEmpty: Io,
3750
+ chartScrollable: Ro,
3751
+ chartCanvas: Po
3752
+ };
3753
+ et.use([rr, nr, or, ar]);
3754
+ const Wu = 10;
3755
+ function Lo(r) {
3756
+ const e = z.c(26), {
3757
+ data: t,
3758
+ metric: u,
3759
+ currency: n,
3760
+ locale: a,
3761
+ theme: i,
3762
+ className: s
3763
+ } = r, E = ee(null), F = ee(null), h = ee(null), p = t.length > Wu, x = `${Math.max(t.length / Wu, 1) * 100}%`;
3764
+ let S;
3765
+ e[0] !== n || e[1] !== t || e[2] !== a || e[3] !== u || e[4] !== i ? (S = Bo({
3766
+ data: t,
3767
+ metric: u,
3768
+ currency: n,
3769
+ locale: a,
3770
+ theme: i
3771
+ }), e[0] = n, e[1] = t, e[2] = a, e[3] = u, e[4] = i, e[5] = S) : S = e[5];
3772
+ const I = S;
3773
+ let b, g;
3774
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = () => {
3775
+ const v = F.current;
3776
+ if (!v)
3777
+ return;
3778
+ const _ = et.init(v, void 0, {
3779
+ renderer: "canvas"
3780
+ });
3781
+ h.current = _;
3782
+ const k = () => _.resize(), Y = typeof ResizeObserver > "u" ? null : new ResizeObserver(k);
3783
+ return Y ? Y.observe(v) : window.addEventListener("resize", k), () => {
3784
+ Y?.disconnect(), window.removeEventListener("resize", k), _.dispose(), h.current = null;
3785
+ };
3786
+ }, g = [], e[6] = b, e[7] = g) : (b = e[6], g = e[7]), Mu(b, g);
3787
+ let T, y;
3788
+ e[8] !== I ? (T = () => {
3789
+ h.current?.setOption(I, {
3790
+ notMerge: !0
3791
+ });
3792
+ }, y = [I], e[8] = I, e[9] = T, e[10] = y) : (T = e[9], y = e[10]), Be(T, y);
3793
+ let M;
3794
+ e[11] !== p ? (M = () => {
3795
+ const v = E.current;
3796
+ !v || !p || (v.scrollLeft = v.scrollWidth - v.clientWidth);
3797
+ }, e[11] = p, e[12] = M) : M = e[12];
3798
+ let P;
3799
+ e[13] !== t || e[14] !== p ? (P = [t, p], e[13] = t, e[14] = p, e[15] = P) : P = e[15], Mu(M, P);
3800
+ const w = u === "price" ? "价格" : "NPV";
3801
+ let L;
3802
+ e[16] !== s || e[17] !== p ? (L = vu(s, {
3803
+ [ae.chartScrollable]: p
3804
+ }), e[16] = s, e[17] = p, e[18] = L) : L = e[18];
3805
+ const D = `按日期展示的${w}折线图`;
3806
+ let R;
3807
+ e[19] !== x ? (R = /* @__PURE__ */ f("div", { ref: F, className: ae.chartCanvas, style: {
3808
+ width: x
3809
+ } }), e[19] = x, e[20] = R) : R = e[20];
3810
+ let $;
3811
+ return e[21] !== p || e[22] !== R || e[23] !== L || e[24] !== D ? ($ = /* @__PURE__ */ f("div", { ref: E, className: L, role: "img", "aria-label": D, "data-scrollable": p, children: R }), e[21] = p, e[22] = R, e[23] = L, e[24] = D, e[25] = $) : $ = e[25], $;
3812
+ }
3813
+ const No = "数据加载失败,请稍后重试", lu = [], Oo = "CNY", su = "zh-CN", Vt = 32, Yt = 28, Gt = 7, zo = Vt + Yt * Gt + 2, Vo = {
3814
+ suppressHeaderMenuButton: !0,
3815
+ suppressHeaderContextMenu: !0
3816
+ }, Yo = {
3817
+ root: {
3818
+ margin: 0
3819
+ },
3820
+ image: {
3821
+ width: 56,
3822
+ height: 35,
3823
+ marginBottom: 8
3824
+ }
3825
+ };
3826
+ function Ht(r) {
3827
+ const e = z.c(4), {
3828
+ ariaLabel: t,
3829
+ className: u
3830
+ } = r;
3831
+ let n;
3832
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ f(Ve, { image: Ve.PRESENTED_IMAGE_SIMPLE, description: "暂无数据", styles: Yo }), e[0] = n) : n = e[0];
3833
+ let a;
3834
+ return e[1] !== t || e[2] !== u ? (a = /* @__PURE__ */ f("div", { className: u, role: "status", "aria-label": t, children: n }), e[1] = t, e[2] = u, e[3] = a) : a = e[3], a;
3835
+ }
3836
+ function Go() {
3837
+ const r = z.c(1);
3838
+ let e;
3839
+ return r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ f(Ht, { ariaLabel: "暂无估值日志数据" }), r[0] = e) : e = r[0], e;
3840
+ }
3841
+ function Ho(r) {
3842
+ return r instanceof DOMException && r.name === "AbortError";
3843
+ }
3844
+ function aa(r) {
3845
+ const e = z.c(67), {
3846
+ adapter: t,
3847
+ allVarCodeSnum: u,
3848
+ className: n,
3849
+ style: a
3850
+ } = r, {
3851
+ message: i
3852
+ } = hu.useApp(), {
3853
+ token: s
3854
+ } = Ju.useToken();
3855
+ let E;
3856
+ e[0] !== t || e[1] !== u ? (E = () => ({
3857
+ adapter: t,
3858
+ allVarCodeSnum: u,
3859
+ status: "loading",
3860
+ data: lu
3861
+ }), e[0] = t, e[1] = u, e[2] = E) : E = e[2];
3862
+ const [F, h] = ze(E), [p, x] = ze("price"), S = F.adapter === t && F.allVarCodeSnum === u, I = S ? F.status : "loading", b = S ? F.data : lu;
3863
+ let g, T;
3864
+ e[3] !== t || e[4] !== u || e[5] !== i ? (g = () => {
3865
+ const X = new AbortController();
3866
+ let K = !0;
3867
+ const te = {
3868
+ allVarCodeSnum: u,
3869
+ endTime: Eo(/* @__PURE__ */ new Date()),
3870
+ size: "30"
3871
+ };
3872
+ return t.getValuationLogs(te, {
3873
+ signal: X.signal
3874
+ }).then((ie) => {
3875
+ if (!K)
3876
+ return;
3877
+ const ne = Fo(ie);
3878
+ h({
3879
+ adapter: t,
3880
+ allVarCodeSnum: u,
3881
+ status: ne.length === 0 ? "empty" : "success",
3882
+ data: ne
3883
+ });
3884
+ }).catch((ie) => {
3885
+ !K || X.signal.aborted || Ho(ie) || (h({
3886
+ adapter: t,
3887
+ allVarCodeSnum: u,
3888
+ status: "error",
3889
+ data: lu
3890
+ }), i.error(No));
3891
+ }), () => {
3892
+ K = !1, X.abort();
3893
+ };
3894
+ }, T = [t, u, i], e[3] = t, e[4] = u, e[5] = i, e[6] = g, e[7] = T) : (g = e[6], T = e[7]), Be(g, T);
3895
+ let y;
3896
+ e[8] !== b ? (y = Lt(b, "descending").map(Zo), e[8] = b, e[9] = y) : y = e[9];
3897
+ const M = y, P = b[0]?.currency || Oo;
3898
+ let w;
3899
+ e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = {
3900
+ headerName: "日期",
3901
+ field: "date",
3902
+ width: 120,
3903
+ minWidth: 120,
3904
+ sortable: !1
3905
+ }, e[10] = w) : w = e[10];
3906
+ let L;
3907
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = {
3908
+ [ae.negativeValue]: qo
3909
+ }, e[11] = L) : L = e[11];
3910
+ let D;
3911
+ e[12] !== P ? (D = {
3912
+ headerName: "价格",
3913
+ field: "price",
3914
+ flex: 1,
3915
+ minWidth: 140,
3916
+ sortable: !1,
3917
+ type: "rightAligned",
3918
+ cellClassRules: L,
3919
+ valueFormatter: (X) => {
3920
+ const {
3921
+ value: K
3922
+ } = X;
3923
+ return Fu(K, P, su);
3924
+ }
3925
+ }, e[12] = P, e[13] = D) : D = e[13];
3926
+ let R;
3927
+ e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = {
3928
+ [ae.negativeValue]: Wo
3929
+ }, e[14] = R) : R = e[14];
3930
+ let $;
3931
+ e[15] !== P ? ($ = {
3932
+ headerName: "NPV",
3933
+ field: "npv",
3934
+ flex: 1,
3935
+ minWidth: 140,
3936
+ sortable: !1,
3937
+ type: "rightAligned",
3938
+ cellClassRules: R,
3939
+ valueFormatter: (X) => {
3940
+ const {
3941
+ value: K
3942
+ } = X;
3943
+ return Fu(K, P, su);
3944
+ }
3945
+ }, e[15] = P, e[16] = $) : $ = e[16];
3946
+ let v;
3947
+ e[17] !== D || e[18] !== $ ? (v = [w, D, $], e[17] = D, e[18] = $, e[19] = v) : v = e[19];
3948
+ const _ = v;
3949
+ let k;
3950
+ e[20] !== s.colorBgElevated || e[21] !== s.colorBorder || e[22] !== s.colorPrimary || e[23] !== s.colorSplit || e[24] !== s.colorText || e[25] !== s.colorTextSecondary || e[26] !== s.fontFamily || e[27] !== s.fontSize ? (k = {
3951
+ primary: s.colorPrimary,
3952
+ baseline: s.colorBorder,
3953
+ backgroundElevated: s.colorBgElevated,
3954
+ text: s.colorText,
3955
+ textSecondary: s.colorTextSecondary,
3956
+ split: s.colorSplit,
3957
+ fontFamily: s.fontFamily,
3958
+ fontSize: s.fontSize
3959
+ }, e[20] = s.colorBgElevated, e[21] = s.colorBorder, e[22] = s.colorPrimary, e[23] = s.colorSplit, e[24] = s.colorText, e[25] = s.colorTextSecondary, e[26] = s.fontFamily, e[27] = s.fontSize, e[28] = k) : k = e[28];
3960
+ const Y = k, C = I === "success", m = M.length > Gt;
3961
+ let o;
3962
+ e[29] !== n ? (o = vu(ae.root, n), e[29] = n, e[30] = o) : o = e[30];
3963
+ const l = I === "loading";
3964
+ let c;
3965
+ e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ f("h2", { className: ae.title, children: "最大展示30条日志数据" }), e[31] = c) : c = e[31];
3966
+ const d = I === "loading", B = m ? zo : "auto";
3967
+ let A;
3968
+ e[32] !== B ? (A = {
3969
+ height: B
3970
+ }, e[32] = B, e[33] = A) : A = e[33];
3971
+ const O = m ? "normal" : "autoHeight";
3972
+ let N;
3973
+ e[34] !== _ || e[35] !== A || e[36] !== O || e[37] !== m || e[38] !== M ? (N = /* @__PURE__ */ f("div", { className: ae.tablePanel, "aria-label": "估值日志表格", children: /* @__PURE__ */ f(bu, { className: ae.table, containerStyle: A, domLayout: O, rowData: M, columnDefs: _, defaultColDef: Vo, getRowId: Uo, headerHeight: Vt, rowHeight: Yt, pagination: !1, noRowsOverlayComponent: Go, suppressMovableColumns: !0, suppressCellFocus: !0, suppressContextMenu: !0, alwaysShowVerticalScroll: m }) }), e[34] = _, e[35] = A, e[36] = O, e[37] = m, e[38] = M, e[39] = N) : N = e[39];
3974
+ let G;
3975
+ e[40] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ f("h3", { className: ae.chartTitle, children: "结果图形展示" }), e[40] = G) : G = e[40];
3976
+ let W, U;
3977
+ e[41] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = [{
3978
+ label: "价格",
3979
+ value: "price"
3980
+ }, {
3981
+ label: "NPV",
3982
+ value: "npv"
3983
+ }], U = (X) => {
3984
+ const {
3985
+ target: K
3986
+ } = X;
3987
+ return x(K.value);
3988
+ }, e[41] = W, e[42] = U) : (W = e[41], U = e[42]);
3989
+ let j;
3990
+ e[43] !== p ? (j = /* @__PURE__ */ Me("div", { className: ae.chartHeader, children: [
3991
+ G,
3992
+ /* @__PURE__ */ f(tu.Group, { size: "small", optionType: "button", buttonStyle: "solid", "aria-label": "估值指标", value: p, options: W, onChange: U })
3993
+ ] }), e[43] = p, e[44] = j) : j = e[44];
3994
+ let q;
3995
+ e[45] !== Y || e[46] !== b || e[47] !== p || e[48] !== P || e[49] !== C || e[50] !== I ? (q = C ? /* @__PURE__ */ f(Lo, { className: ae.chart, data: b, metric: p, currency: P, locale: su, theme: Y }) : I === "empty" ? /* @__PURE__ */ f(Ht, { className: ae.chartEmpty, ariaLabel: "暂无估值曲线数据" }) : /* @__PURE__ */ f("div", { className: ae.chartEmpty, "aria-label": "暂无估值曲线数据" }), e[45] = Y, e[46] = b, e[47] = p, e[48] = P, e[49] = C, e[50] = I, e[51] = q) : q = e[51];
3996
+ let Z;
3997
+ e[52] !== j || e[53] !== q ? (Z = /* @__PURE__ */ Me("section", { className: ae.chartPanel, "aria-label": "估值日志图形展示", children: [
3998
+ j,
3999
+ q
4000
+ ] }), e[52] = j, e[53] = q, e[54] = Z) : Z = e[54];
4001
+ let H;
4002
+ e[55] !== N || e[56] !== Z ? (H = /* @__PURE__ */ Me("div", { className: ae.content, children: [
4003
+ N,
4004
+ Z
4005
+ ] }), e[55] = N, e[56] = Z, e[57] = H) : H = e[57];
4006
+ let Q;
4007
+ e[58] !== d || e[59] !== H ? (Q = /* @__PURE__ */ f(Du, { className: ae.loading, spinning: d, description: "估值日志加载中", children: H }), e[58] = d, e[59] = H, e[60] = Q) : Q = e[60];
4008
+ let J;
4009
+ return e[61] !== I || e[62] !== a || e[63] !== o || e[64] !== l || e[65] !== Q ? (J = /* @__PURE__ */ Me("section", { className: o, style: a, "aria-label": "估值日志数据图表", "aria-busy": l, "data-status": I, children: [
4010
+ c,
4011
+ Q
4012
+ ] }), e[61] = I, e[62] = a, e[63] = o, e[64] = l, e[65] = Q, e[66] = J) : J = e[66], J;
4013
+ }
4014
+ function Uo(r) {
4015
+ const {
4016
+ data: e
4017
+ } = r;
4018
+ return e.rowId;
4019
+ }
4020
+ function Wo(r) {
4021
+ const {
4022
+ value: e
4023
+ } = r;
4024
+ return Nt(e);
4025
+ }
4026
+ function qo(r) {
4027
+ const {
4028
+ value: e
4029
+ } = r;
4030
+ return Nt(e);
4031
+ }
4032
+ function Zo(r, e) {
4033
+ return {
4034
+ ...r,
4035
+ rowId: `${r.date}-${e}`
4036
+ };
4037
+ }
4038
+ export {
4039
+ Ne as B,
4040
+ lt as G,
4041
+ ro as I,
4042
+ tu as T,
4043
+ aa as V,
4044
+ z as a,
4045
+ ke as b,
4046
+ vu as c,
4047
+ Ue as d,
4048
+ Oe as e,
4049
+ _u as f,
4050
+ ut as g,
4051
+ Du as h,
4052
+ Ve as i,
4053
+ Ge as j,
4054
+ hu as k,
4055
+ ye as l,
4056
+ bu as m,
4057
+ Au as n
4058
+ };