@ecan-bi/indicator-library 1.1.21 → 1.1.22

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.
@@ -1,1943 +0,0 @@
1
- /*! @ecan-bi/indicator-library@1.1.21 */
2
- import { defineAsyncComponent as Kt, defineComponent as Tt, ref as G, computed as H, unref as _, provide as M, nextTick as Jt, resolveComponent as Fe, openBlock as Me, createElementBlock as je, createVNode as Pe, createCommentVNode as Ze, createElementVNode as _t, normalizeClass as eo, inject as Le, watch as Qe, onMounted as to, onBeforeUnmount as oo, withCtx as no } from "vue";
3
- import { cloneDeep as oe } from "lodash-es";
4
- import * as ro from "echarts";
5
- import { Spin as io } from "ant-design-vue";
6
- const It = (e) => (e.install = (t) => {
7
- t.component(e.name, e);
8
- }, e), Dt = "$request";
9
- var Ot;
10
- const ao = ((Ot = window == null ? void 0 : window.config) == null ? void 0 : Ot.indicatorURL) || "", Nt = "INDICATOR_TOKEN", lo = "DATA_LIST", so = "SELECTED_COMPONENT", Et = "GRAPHIC_CONFIG", co = "UPDATE_GRAPHIC_CONFIG", uo = "SHOW_STYLE_CONFIG", Mn = "REFRESH_DATA", $t = "CHARTS_OPTIONS", po = "TABLE_OPTIONS", fo = 18, ho = "UPDATE_CHARTS_OPTIONS", yo = "UPDATE_TABLE_OPTIONS", xo = "SOURCE_TYPE", jn = "CHANGE_CONDITION", Pn = "DATA_VIEW_COLUMNS", go = "RENDER_USED_COMPONENTS", mo = "UPDATE_USED_COMPONENT", bo = "UPDATE_COMPONENTS_CONFIG", So = "MAP_ATTRIBUTE_PROPS", vo = "PAGE_CONFIG", wo = "IS_PIVOT_TABLE", Ao = "IS_IFRAME_MODE", Co = {
11
- name: "柱状图",
12
- type: "bar",
13
- width: "400px",
14
- height: "400px",
15
- xAxisLabelFormatter: "{value}",
16
- yAxisLabelFormatter: "{value}",
17
- yAxisLineAlwaysDisplay: !1,
18
- titleText: "",
19
- titleSubtext: "",
20
- titleFontSize: "12px",
21
- titleColor: "#333",
22
- fontWeight: 400,
23
- textAlign: "left",
24
- colors: ["#5470c6", "#91cc75", "#fac858", "#ee6666", "#73c0de", "#3ba272", "#fc8452", "#9a60b4", "#ea7ccc"],
25
- legendShow: !0,
26
- legendTextStyleColor: "#333",
27
- legendOrient: "horizontal",
28
- legendTop: "top",
29
- legendLeft: "center",
30
- tooltipShow: !0,
31
- tooltipTextStyleColor: "",
32
- tooltipFormatter: "{marker} {a} {c}",
33
- xAxisSplitLineShow: !0,
34
- xAxisSplitLineInterval: 0,
35
- xAxisSplitAreaShow: !1,
36
- xAxisSplitLineStyleColor: "#333",
37
- xAxisLabelInterval: 0,
38
- xAxisLabelColor: "#333",
39
- xAxisLabelWidth: void 0,
40
- xAxisLabelRotate: 0,
41
- xAxisLabelOverflow: "none",
42
- xAxisLineShow: !0,
43
- xAxisLineStyleColor: "#333",
44
- xAxisTickShow: !0,
45
- xAxisMinInterval: 0,
46
- yAxisMinInterval: 0,
47
- yAxisLabelWidth: void 0,
48
- yAxisLabelRotate: 0,
49
- yAxisLabelOverflow: "none",
50
- yAxisSplitLineShow: !0,
51
- yAxisSplitAreaShow: !1,
52
- yAxisSplitLineStyleColor: "#333",
53
- yAxisLabelColor: "#333",
54
- yAxisLineStyleColor: "#333",
55
- valueTypeDataFieldNames: { name: "name", value: "value", type: "type" },
56
- keyTypeDataFieldNames: { name: "name", types: [] },
57
- dataFieldConfigType: "value",
58
- barWidth: "40%",
59
- gridContainLabel: !0,
60
- gridTop: "10%",
61
- gridBottom: "10%",
62
- gridLeft: "5%",
63
- gridRight: "5%",
64
- graphicConfig: {},
65
- toolboxShow: !1,
66
- toolboxOrient: "horizontal",
67
- toolboxItemSize: 16,
68
- toolboxItemGap: 8,
69
- toolboxLeft: "right",
70
- toolboxTop: "top",
71
- toolboxIconStyleBorderColor: "#666",
72
- toolboxDownloadUrl: "",
73
- toolboxInfoText: "当前无说明信息",
74
- isUseHorizontalAxis: !1,
75
- axisInverse: !1,
76
- xAxisInverse: !1,
77
- yAxisInverse: !1,
78
- isStack: !1,
79
- stackColumns: [],
80
- labelShow: !1,
81
- labelFontSize: "12px",
82
- labelPosition: "inside",
83
- labelColor: "",
84
- labelWidth: 100,
85
- labelOverflow: "none",
86
- labelFormatter: "{c}",
87
- toolboxLocation: !1,
88
- toolboxDownloadShow: !0,
89
- toolboxDataZoomShow: !0,
90
- toolboxInfoShow: !0,
91
- gradientShow: !1,
92
- gradientColors: ["#5470c6", "#91cc75", "#fac858", "#ee6666", "#73c0de", "#3ba272", "#fc8452", "#9a60b4", "#ea7ccc"],
93
- gradientOffset: 1,
94
- barBorderRadius: "",
95
- yAxisLabelShow: !0,
96
- yAxisSplitLineType: "solid",
97
- xAxisSplitLineType: "solid",
98
- legendItemGap: 10,
99
- legendItemWidth: 25,
100
- legendItemHeight: 14,
101
- showBarBackground: !1,
102
- legendType: "",
103
- legendFontSize: "12px",
104
- xAxisLabelFontSize: "12px",
105
- yAxisLabelFontSize: "12px",
106
- graphicType: "ecanBar",
107
- tooltipPosition: "",
108
- isShowMarkLine: !1,
109
- markLineType: "average",
110
- legendFormatter: "{name}",
111
- legendWidth: null,
112
- legendHeight: null,
113
- legendTextWidth: null,
114
- legendScroll: !1,
115
- yAxisName: "",
116
- xAxisName: "",
117
- defaultRangeValue: !1,
118
- startValue: "",
119
- endValue: "",
120
- xAxisMaxValue: null,
121
- yAxisMaxValue: null,
122
- colorsType: "默认"
123
- }, Lo = {
124
- name: "折线图",
125
- type: "line",
126
- width: "400px",
127
- height: "400px",
128
- colors: ["#FFBF53", "#04B1C2", "#F07474", "#C55784", "#9A5FB3", "#CF62D7", "#5E78EA", "#51B3F0", "#69D4DC", "#49B788", "#9CCC66", "#C18C00"],
129
- colorsType: "默认",
130
- legendShow: !0,
131
- legendOrient: "horizontal",
132
- legendTop: "top",
133
- legendLeft: "center",
134
- legendCustomPosition: !1,
135
- legendTextStyleColor: "#333",
136
- legendTextStyleFontSize: "12px",
137
- legendTextItemGap: 10,
138
- legendTopPadding: 10,
139
- legendBottomPadding: 10,
140
- legendLeftPadding: 10,
141
- legendRightPadding: 10,
142
- titleText: "",
143
- titleSubtext: "",
144
- symbolSize: 4,
145
- lineStyleWidth: 2,
146
- smooth: !1,
147
- xAxisName: "",
148
- xAxisType: "category",
149
- xAxisShow: !0,
150
- xAxisLabelWidth: void 0,
151
- xAxisLabelRotate: 0,
152
- xAxisLabelOverflow: "none",
153
- xAxisLabelInterval: 0,
154
- xAxisSplitLineShow: !0,
155
- xAxisSplitLineStyleColor: "#333",
156
- xAxisLabelColor: "#333",
157
- xAxisLineStyleColor: "#333",
158
- xAxisTickShow: !0,
159
- xAxisLabelFormatter: "{value}",
160
- // 格式化
161
- xAxisMinInterval: 0,
162
- yAxisName: "",
163
- yAxisMinInterval: 0,
164
- yAxisSplitLineShow: !0,
165
- yAxisSplitLineStyleColor: "#333",
166
- yAxisLabelColor: "#333",
167
- yAxisLineStyleColor: "#333",
168
- yAxisLineAlwaysDisplay: !1,
169
- yAxisLabelShow: !0,
170
- yAxisLabelFormatter: "{value}",
171
- yAxisSplitLineType: "solid",
172
- xAxisSplitLineType: "solid",
173
- gridContainLabel: !0,
174
- gridTop: "10%",
175
- gridBottom: "10%",
176
- gridLeft: "5%",
177
- gridRight: "5%",
178
- tooltipShow: !0,
179
- tooltipTextStyleColor: "",
180
- tooltipFormatter: "{marker} {a} {c}",
181
- tooltipBorderColor: "#333",
182
- tooltipBackgroundColor: "#fff",
183
- toolboxShow: !1,
184
- toolboxDownloadShow: !0,
185
- toolboxDataZoomShow: !0,
186
- toolboxInfoShow: !0,
187
- toolboxOrient: "horizontal",
188
- toolboxItemSize: 16,
189
- toolboxItemGap: 8,
190
- toolboxLeft: "right",
191
- toolboxTop: "top",
192
- toolboxIconStyleBorderColor: "#666",
193
- toolboxDownloadUrl: "",
194
- toolboxInfoText: "当前无说明信息",
195
- areaStyleOpacity: 0,
196
- // 新加属性
197
- titleFontSize: "12px",
198
- titleColor: "#333",
199
- fontWeight: 400,
200
- textAlign: "left",
201
- titleLeft: "",
202
- xAxisSplitAreaShow: !1,
203
- xAxisSplitLineInterval: 0,
204
- xAxisLineShow: !0,
205
- yAxisSplitAreaShow: !1,
206
- valueTypeDataFieldNames: { name: "name", value: "value", type: "type" },
207
- keyTypeDataFieldNames: { name: "name", types: [] },
208
- dataFieldConfigType: "value",
209
- graphicConfig: {},
210
- areaGradientShow: !1,
211
- areaGradientColor: "",
212
- isBoundaryGap: !0,
213
- legendItemGap: 10,
214
- legendItemWidth: 25,
215
- legendItemHeight: 14,
216
- legendType: "",
217
- shadowColor: "",
218
- shadowBlur: 0,
219
- shadowOffsetY: 0,
220
- shadowOffsetX: 0,
221
- legendFontSize: "12px",
222
- xAxisLabelFontSize: "12px",
223
- yAxisLabelFontSize: "12px",
224
- graphicType: "ecanLine",
225
- tooltipPosition: "",
226
- isShowMarkLine: !1,
227
- markLineType: "average",
228
- legendFormatter: "{name}",
229
- legendWidth: null,
230
- legendHeight: null,
231
- legendTextWidth: null,
232
- legendScroll: !1,
233
- xAxisMaxValue: null,
234
- yAxisMaxValue: null
235
- }, Oo = {
236
- name: "饼图",
237
- type: "pie",
238
- width: "400px",
239
- height: "400px",
240
- titleText: "",
241
- titleSubtext: "",
242
- colors: ["#FFBF53", "#04B1C2", "#F07474", "#C55784", "#9A5FB3", "#CF62D7", "#5E78EA", "#51B3F0", "#69D4DC", "#49B788", "#9CCC66", "#C18C00"],
243
- colorsType: "默认",
244
- backgroundColor: "",
245
- toolboxDownloadShow: !0,
246
- toolboxDataZoomShow: !0,
247
- toolboxInfoShow: !0,
248
- tooltipShow: !0,
249
- tooltipTextStyleColor: "",
250
- tooltipTrigger: "item",
251
- tooltipFormatter: "{marker} {b} {c} ({d}%)",
252
- tooltipBorderColor: "#333",
253
- tooltipBackgroundColor: "#fff",
254
- legendShow: !0,
255
- legendTextStyleColor: "#333",
256
- legendOrient: "vertical",
257
- legendTop: "top",
258
- legendLeft: "left",
259
- innerRadius: "0%",
260
- outerRadius: "60%",
261
- centerLeft: "50%",
262
- centerTop: "50%",
263
- minAngle: 0,
264
- labelShow: !0,
265
- labelColor: "#333",
266
- isUseLabelColors: !1,
267
- labelFontSize: 12,
268
- labelPosition: "outside",
269
- labelFormatter: "{b}\\n{d}%",
270
- labelLineShow: !0,
271
- labelLineLength: 10,
272
- labelLineLength2: 15,
273
- roseType: "",
274
- gridContainLabel: !0,
275
- gridTop: "10%",
276
- gridBottom: "10%",
277
- gridLeft: "5%",
278
- gridRight: "5%",
279
- toolboxShow: !1,
280
- toolboxOrient: "horizontal",
281
- toolboxItemSize: 16,
282
- toolboxItemGap: 8,
283
- toolboxLeft: "right",
284
- toolboxTop: "top",
285
- toolboxIconStyleBorderColor: "#666",
286
- toolboxDownloadUrl: "",
287
- toolboxInfoText: "当前无说明信息",
288
- titleFontSize: "12px",
289
- titleColor: "#333",
290
- fontWeight: 400,
291
- textAlign: "left",
292
- titleLeft: "",
293
- labelWidth: 100,
294
- labelOverflow: "none",
295
- valueTypeDataFieldNames: { name: "name", value: "value", type: "type" },
296
- dataFieldConfigType: "value",
297
- graphicConfig: {},
298
- legendItemGap: 10,
299
- legendItemWidth: 25,
300
- legendItemHeight: 14,
301
- legendFormatter: "{name}",
302
- legendFontSize: "12px",
303
- graphicType: "ecanPie",
304
- legendWidth: null,
305
- legendHeight: null,
306
- legendTextWidth: null,
307
- legendScroll: !1
308
- }, To = {
309
- name: "自定义图表",
310
- type: "customGraph",
311
- width: "400px",
312
- height: "400px",
313
- option: {},
314
- optionCode: ""
315
- }, _o = {
316
- name: "组合图表",
317
- type: "comboGraph",
318
- width: "400px",
319
- height: "400px",
320
- titleText: "",
321
- titleSubtext: "",
322
- colors: ["#FFBF53", "#04B1C2", "#F07474", "#C55784", "#9A5FB3", "#CF62D7", "#5E78EA", "#51B3F0", "#69D4DC", "#49B788", "#9CCC66", "#C18C00"],
323
- colorsType: "默认",
324
- legendShow: !0,
325
- legendTextStyleColor: "#333",
326
- legendOrient: "horizontal",
327
- legendTop: "top",
328
- legendLeft: "center",
329
- tooltipShow: !0,
330
- tooltipTextStyleColor: "",
331
- tooltipTrigger: "item",
332
- tooltipFormatter: "{marker} {a} {c}",
333
- tooltipBorderColor: "#333",
334
- tooltipBackgroundColor: "#fff",
335
- xAxisLabelInterval: 0,
336
- xAxisSplitLineShow: !0,
337
- xAxisLabelRotate: 0,
338
- xAxisLabelOverflow: "none",
339
- xAxisLabelWidth: void 0,
340
- xAxisSplitLineStyleColor: "#333",
341
- xAxisLabelColor: "#333",
342
- xAxisLineStyleColor: "#333",
343
- xAxisTickShow: !0,
344
- xAxisMinInterval: 0,
345
- yAxisMinInterval: 0,
346
- yAxisSplitLineShow: !0,
347
- yAxisSplitLineStyleColor: "#333",
348
- yAxisLabelColor: "#333",
349
- yAxisLineStyleColor: "#333",
350
- yAxisLineAlwaysDisplay: !1,
351
- yAxisLabelShow: !0,
352
- seriesTypes: [
353
- {
354
- type: "bar",
355
- axisIndex: 0
356
- },
357
- {
358
- type: "line",
359
- axisIndex: 0
360
- }
361
- ],
362
- yAxis: [
363
- {
364
- axisLabelFormatter: "{value}"
365
- },
366
- {
367
- axisLabelFormatter: "{value}"
368
- }
369
- ],
370
- gridContainLabel: !0,
371
- gridTop: "10%",
372
- gridBottom: "10%",
373
- gridLeft: "5%",
374
- gridRight: "5%",
375
- toolboxShow: !1,
376
- toolboxLocation: !1,
377
- toolboxDownloadShow: !0,
378
- toolboxDataZoomShow: !0,
379
- toolboxInfoShow: !0,
380
- toolboxOrient: "horizontal",
381
- toolboxItemSize: 16,
382
- toolboxItemGap: 8,
383
- toolboxLeft: "right",
384
- toolboxTop: "top",
385
- toolboxIconStyleBorderColor: "#666",
386
- toolboxDownloadUrl: "",
387
- toolboxInfoText: "当前无说明信息",
388
- areaStyleOpacity: 0,
389
- symbolSize: 4,
390
- lineStyleWidth: 2,
391
- smooth: !1,
392
- barWidth: "40%"
393
- }, Xe = {
394
- bar: Co,
395
- line: Lo,
396
- pie: Oo,
397
- customGraph: To,
398
- comboGraph: _o
399
- }, Io = {
400
- name: "表格",
401
- type: "table",
402
- size: "medium",
403
- allOverflow: "title",
404
- hoverRow: !0,
405
- hoverColor: "#f5f7fa",
406
- headerCellStyleMethod: "",
407
- rowStyleMethod: "",
408
- boderList: [],
409
- columnDropEnable: !0,
410
- showTotalBool: !1,
411
- totalName: "",
412
- expandAll: !1
413
- }, Ke = (e) => Kt({
414
- loader: e,
415
- delay: 200
416
- }), Do = Tt({
417
- name: "IndicatorLibrary",
418
- components: {
419
- DataList: Ke(() => import("./index-9fb73be3.mjs")),
420
- DataConfig: Ke(() => import("./index-5e52a412.mjs"))
421
- },
422
- props: {
423
- isShowStyleConfig: {
424
- // 是否显示样式配置
425
- type: Boolean,
426
- default: !1
427
- },
428
- sourceType: {
429
- // 数据源类型
430
- type: String,
431
- default: ""
432
- },
433
- indicatorToken: {
434
- // 指标库token
435
- type: String,
436
- default: ""
437
- },
438
- selectedComponent: {
439
- // 当前组件
440
- type: Object,
441
- default: () => {
442
- }
443
- },
444
- request: {
445
- // 外部请求方法
446
- default: null
447
- },
448
- renderUsedComponentList: {
449
- // 当前画布上渲染的组件
450
- type: Array,
451
- default: () => []
452
- },
453
- mapAttributeProps: {
454
- type: Object,
455
- default: () => ({
456
- startTime: {
457
- label: "开始时间值",
458
- component: "time-pick"
459
- },
460
- endTime: {
461
- label: "结束时间值",
462
- component: "time-pick"
463
- }
464
- })
465
- },
466
- pageConfig: {
467
- type: Object,
468
- default: () => {
469
- }
470
- },
471
- isIframeMode: {
472
- type: Boolean,
473
- default: !1
474
- }
475
- },
476
- setup(e, { expose: t, emit: o }) {
477
- const n = G(), i = G(!1), r = H(() => e.sourceType), l = H(() => e.indicatorToken || ""), a = H(() => e.selectedComponent), g = H(() => e.renderUsedComponentList), s = H(
478
- () => {
479
- var O;
480
- return ((O = _(a)) == null ? void 0 : O.tableColumns) || [];
481
- }
482
- ), d = H(() => e.isShowStyleConfig), u = H(() => {
483
- var O, P;
484
- return (P = (O = _(a)) == null ? void 0 : O.type) == null ? void 0 : P.includes("PivotTable");
485
- });
486
- let f = _(a).graphicConfig ? oe(_(a).graphicConfig) : G({});
487
- f = G(f);
488
- let y = _(a).chartsOptions ? oe(_(a).chartsOptions) : G(oe(Xe.line));
489
- y = G(y);
490
- let A = _(a).tableOptions ? oe(_(a).tableOptions) : G(oe(Io));
491
- A = G(A);
492
- const v = G([]), m = (O) => {
493
- v.value = O;
494
- }, L = (O) => {
495
- f.value = {
496
- ..._(f),
497
- ..._(O)
498
- };
499
- }, I = (O, P = !0) => {
500
- P ? y.value = {
501
- ..._(y),
502
- ..._(O)
503
- } : y.value = {
504
- ..._(O)
505
- };
506
- }, N = (O) => {
507
- A.value = {
508
- ..._(A),
509
- ..._(O)
510
- };
511
- }, $ = () => v, z = () => {
512
- i.value = !0, _(a).graphicConfig && (f.value = oe(_(a).graphicConfig)), _(a).chartsOptions && (y.value = oe(_(a).chartsOptions || Xe.line)), Jt(() => {
513
- i.value = !1;
514
- });
515
- }, B = () => ({
516
- graphicConfig: _(f),
517
- chartsOptions: _(y),
518
- tableOptions: _(A),
519
- tableColumns: _(s),
520
- columnsConfigMap: _(a).columnsConfigMap
521
- }), j = () => ({
522
- ..._(n).getSaveData(),
523
- graphicConfig: _(f)
524
- });
525
- window.getIndicatorData = B, window.getPivotGraphicData = j, e.request && M(Dt, e.request), M(lo, {
526
- setDataList: m,
527
- getDataList: $
528
- });
529
- const D = (O) => {
530
- o("updateUsedComponent", O);
531
- }, b = (O, P) => {
532
- o("updateComponentsConfig", O, { controlList: P });
533
- };
534
- return M(wo, u), M(Ao, e.isIframeMode), M(so, a), M(Et, f), M($t, y), M(po, A), M(xo, r), M(uo, d), M(Nt, l), M(co, L), M(ho, I), M(yo, N), M(go, g), M(mo, D), M(bo, b), M(So, e.mapAttributeProps), M(vo, e.pageConfig), t({
535
- graphicConfig: f,
536
- chartsOptions: y,
537
- updateIndicatorData: z
538
- }), {
539
- isUpdate: i,
540
- isPivotTable: u,
541
- dataConfigRef: n
542
- };
543
- }
544
- });
545
- const kt = (e, t) => {
546
- const o = e.__vccOpts || e;
547
- for (const [n, i] of t)
548
- o[n] = i;
549
- return o;
550
- }, No = {
551
- key: 0,
552
- class: "config-modal"
553
- }, Eo = {
554
- key: 0,
555
- class: "config-modal-left"
556
- };
557
- function $o(e, t, o, n, i, r) {
558
- const l = Fe("data-list"), a = Fe("data-config");
559
- return e.isUpdate ? Ze("", !0) : (Me(), je("div", No, [
560
- e.isPivotTable ? Ze("", !0) : (Me(), je("div", Eo, [
561
- Pe(l)
562
- ])),
563
- _t("div", {
564
- class: eo(["config-modal-right", e.isPivotTable ? "full" : ""])
565
- }, [
566
- Pe(a, { ref: "dataConfigRef" }, null, 512)
567
- ], 2)
568
- ]));
569
- }
570
- const ko = /* @__PURE__ */ kt(Do, [["render", $o], ["__scopeId", "data-v-7cad2039"]]), Fo = It(ko), Ft = () => {
571
- }, Ve = Object.assign, Mt = Array.isArray, _e = (e) => typeof e == "function", Mo = (e) => typeof e == "symbol";
572
- let Je;
573
- const Re = () => Je || (Je = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {}), et = (e) => {
574
- const t = new Set(e);
575
- return t.w = 0, t.n = 0, t;
576
- }, jt = (e) => (e.w & X) > 0, Pt = (e) => (e.n & X) > 0;
577
- let ve = 0, X = 1, W;
578
- class jo {
579
- constructor(t, o = null, n) {
580
- this.fn = t, this.scheduler = o, this.active = !0, this.deps = [], this.parent = void 0, function(i, r) {
581
- r && r.active && r.effects.push(i);
582
- }(this, n);
583
- }
584
- run() {
585
- if (!this.active)
586
- return this.fn();
587
- let t = W, o = re;
588
- for (; t; ) {
589
- if (t === this)
590
- return;
591
- t = t.parent;
592
- }
593
- try {
594
- return this.parent = W, W = this, re = !0, X = 1 << ++ve, ve <= 30 ? (({ deps: n }) => {
595
- if (n.length)
596
- for (let i = 0; i < n.length; i++)
597
- n[i].w |= X;
598
- })(this) : tt(this), this.fn();
599
- } finally {
600
- ve <= 30 && ((n) => {
601
- const { deps: i } = n;
602
- if (i.length) {
603
- let r = 0;
604
- for (let l = 0; l < i.length; l++) {
605
- const a = i[l];
606
- jt(a) && !Pt(a) ? a.delete(n) : i[r++] = a, a.w &= ~X, a.n &= ~X;
607
- }
608
- i.length = r;
609
- }
610
- })(this), X = 1 << --ve, W = this.parent, re = o, this.parent = void 0, this.deferStop && this.stop();
611
- }
612
- }
613
- stop() {
614
- W === this ? this.deferStop = !0 : this.active && (tt(this), this.onStop && this.onStop(), this.active = !1);
615
- }
616
- }
617
- function tt(e) {
618
- const { deps: t } = e;
619
- if (t.length) {
620
- for (let o = 0; o < t.length; o++)
621
- t[o].delete(e);
622
- t.length = 0;
623
- }
624
- }
625
- let re = !0;
626
- const ot = [];
627
- function nt(e, t) {
628
- let o = !1;
629
- ve <= 30 ? Pt(e) || (e.n |= X, o = !jt(e)) : o = !e.has(W), o && (e.add(W), W.deps.push(e), process.env.NODE_ENV !== "production" && W.onTrack && W.onTrack(Ve({ effect: W }, t)));
630
- }
631
- function rt(e, t) {
632
- const o = Mt(e) ? e : [...e];
633
- for (const n of o)
634
- n.computed && it(n, t);
635
- for (const n of o)
636
- n.computed || it(n, t);
637
- }
638
- function it(e, t) {
639
- (e !== W || e.allowRecurse) && (process.env.NODE_ENV !== "production" && e.onTrigger && e.onTrigger(Ve({ effect: e }, t)), e.scheduler ? e.scheduler() : e.run());
640
- }
641
- function de(e) {
642
- const t = e && e.__v_raw;
643
- return t ? de(t) : e;
644
- }
645
- function Rt(e) {
646
- return !(!e || e.__v_isRef !== !0);
647
- }
648
- function J(e) {
649
- return Rt(e) ? e.value : e;
650
- }
651
- new Set(Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Mo));
652
- class Po {
653
- constructor(t, o, n, i) {
654
- this._setter = o, this.dep = void 0, this.__v_isRef = !0, this.__v_isReadonly = !1, this._dirty = !0, this.effect = new jo(t, () => {
655
- this._dirty || (this._dirty = !0, function(r, l) {
656
- const a = (r = de(r)).dep;
657
- a && (process.env.NODE_ENV !== "production" ? rt(a, { target: r, type: "set", key: "value", newValue: l }) : rt(a));
658
- }(this));
659
- }), this.effect.computed = this, this.effect.active = this._cacheable = !i, this.__v_isReadonly = n;
660
- }
661
- get value() {
662
- const t = de(this);
663
- var o;
664
- return o = t, re && W && (o = de(o), process.env.NODE_ENV !== "production" ? nt(o.dep || (o.dep = et()), { target: o, type: "get", key: "value" }) : nt(o.dep || (o.dep = et()))), !t._dirty && t._cacheable || (t._dirty = !1, t._value = t.effect.run()), t._value;
665
- }
666
- set value(t) {
667
- this._setter(t);
668
- }
669
- }
670
- const ne = [];
671
- function Ye(e, ...t) {
672
- if (process.env.NODE_ENV === "production")
673
- return;
674
- ot.push(re), re = !1;
675
- const o = ne.length ? ne[ne.length - 1].component : null, n = o && o.appContext.config.warnHandler, i = function() {
676
- let r = ne[ne.length - 1];
677
- if (!r)
678
- return [];
679
- const l = [];
680
- for (; r; ) {
681
- const a = l[0];
682
- a && a.vnode === r ? a.recurseCount++ : l.push({ vnode: r, recurseCount: 0 });
683
- const g = r.component && r.component.parent;
684
- r = g && g.vnode;
685
- }
686
- return l;
687
- }();
688
- if (n)
689
- qe(n, o, 11, [e + t.join(""), o && o.proxy, i.map(({ vnode: r }) => `at <${ut(o, r.type)}>`).join(`
690
- `), i]);
691
- else {
692
- const r = [`[Vue warn]: ${e}`, ...t];
693
- i.length && r.push(`
694
- `, ...function(l) {
695
- const a = [];
696
- return l.forEach((g, s) => {
697
- a.push(...s === 0 ? [] : [`
698
- `], ...function({ vnode: d, recurseCount: u }) {
699
- const f = u > 0 ? `... (${u} recursive calls)` : "", y = !!d.component && d.component.parent == null, A = ` at <${ut(d.component, d.type, y)}`, v = ">" + f;
700
- return d.props ? [A, ...Ro(d.props), v] : [A + v];
701
- }(g));
702
- }), a;
703
- }(i)), console.warn(...r);
704
- }
705
- (function() {
706
- const r = ot.pop();
707
- re = r === void 0 || r;
708
- })();
709
- }
710
- function Ro(e) {
711
- const t = [], o = Object.keys(e);
712
- return o.slice(0, 3).forEach((n) => {
713
- t.push(...zt(n, e[n]));
714
- }), o.length > 3 && t.push(" ..."), t;
715
- }
716
- function zt(e, t, o) {
717
- return typeof t == "string" ? (t = JSON.stringify(t), o ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? o ? t : [`${e}=${t}`] : Rt(t) ? (t = zt(e, de(t.value), !0), o ? t : [`${e}=Ref<`, t, ">"]) : _e(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = de(t), o ? t : [`${e}=`, t]);
718
- }
719
- const at = { sp: "serverPrefetch hook", bc: "beforeCreate hook", c: "created hook", bm: "beforeMount hook", m: "mounted hook", bu: "beforeUpdate hook", u: "updated", bum: "beforeUnmount hook", um: "unmounted hook", a: "activated hook", da: "deactivated hook", ec: "errorCaptured hook", rtc: "renderTracked hook", rtg: "renderTriggered hook", 0: "setup function", 1: "render function", 2: "watcher getter", 3: "watcher callback", 4: "watcher cleanup function", 5: "native event handler", 6: "component event handler", 7: "vnode hook", 8: "directive hook", 9: "transition hook", 10: "app errorHandler", 11: "app warnHandler", 12: "ref function", 13: "async component loader", 14: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core" };
720
- function qe(e, t, o, n) {
721
- let i;
722
- try {
723
- i = n ? e(...n) : e();
724
- } catch (r) {
725
- (function(l, a, g, s = !0) {
726
- const d = a ? a.vnode : null;
727
- if (a) {
728
- let u = a.parent;
729
- const f = a.proxy, y = process.env.NODE_ENV !== "production" ? at[g] : g;
730
- for (; u; ) {
731
- const v = u.ec;
732
- if (v) {
733
- for (let m = 0; m < v.length; m++)
734
- if (v[m](l, f, y) === !1)
735
- return;
736
- }
737
- u = u.parent;
738
- }
739
- const A = a.appContext.config.errorHandler;
740
- if (A)
741
- return void qe(A, null, 10, [l, f, y]);
742
- }
743
- (function(u, f, y, A = !0) {
744
- if (process.env.NODE_ENV !== "production") {
745
- const m = at[f];
746
- if (y && (v = y, ne.push(v)), Ye("Unhandled error" + (m ? ` during execution of ${m}` : "")), y && ne.pop(), A)
747
- throw u;
748
- console.error(u);
749
- } else
750
- console.error(u);
751
- var v;
752
- })(l, g, d, s);
753
- })(r, t, o);
754
- }
755
- return i;
756
- }
757
- let Te = !1, ze = !1;
758
- const V = [];
759
- let K = 0;
760
- const ue = [];
761
- let Y = null, Q = 0;
762
- const zo = Promise.resolve();
763
- function Bo(e) {
764
- V.length && V.includes(e, Te && e.allowRecurse ? K + 1 : K) || (e.id == null ? V.push(e) : V.splice(function(t) {
765
- let o = K + 1, n = V.length;
766
- for (; o < n; ) {
767
- const i = o + n >>> 1, r = V[i], l = Ae(r);
768
- l < t || l === t && r.pre ? o = i + 1 : n = i;
769
- }
770
- return o;
771
- }(e.id), 0, e), Bt());
772
- }
773
- function Bt() {
774
- Te || ze || (ze = !0, zo.then(Gt));
775
- }
776
- const Ae = (e) => e.id == null ? 1 / 0 : e.id, Go = (e, t) => {
777
- const o = Ae(e) - Ae(t);
778
- if (o === 0) {
779
- if (e.pre && !t.pre)
780
- return -1;
781
- if (t.pre && !e.pre)
782
- return 1;
783
- }
784
- return o;
785
- };
786
- function Gt(e) {
787
- ze = !1, Te = !0, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), V.sort(Go);
788
- const t = process.env.NODE_ENV !== "production" ? (o) => lt(e, o) : Ft;
789
- try {
790
- for (K = 0; K < V.length; K++) {
791
- const o = V[K];
792
- if (o && o.active !== !1) {
793
- if (process.env.NODE_ENV !== "production" && t(o))
794
- continue;
795
- qe(o, null, 14);
796
- }
797
- }
798
- } finally {
799
- K = 0, V.length = 0, function(o) {
800
- if (ue.length) {
801
- const n = [...new Set(ue)];
802
- if (ue.length = 0, Y)
803
- return void Y.push(...n);
804
- for (Y = n, process.env.NODE_ENV !== "production" && (o = o || /* @__PURE__ */ new Map()), Y.sort((i, r) => Ae(i) - Ae(r)), Q = 0; Q < Y.length; Q++)
805
- process.env.NODE_ENV !== "production" && lt(o, Y[Q]) || Y[Q]();
806
- Y = null, Q = 0;
807
- }
808
- }(e), Te = !1, (V.length || ue.length) && Gt(e);
809
- }
810
- }
811
- function lt(e, t) {
812
- if (e.has(t)) {
813
- const o = e.get(t);
814
- if (o > 100) {
815
- const n = t.ownerInstance, i = n && Ut(n.type);
816
- return Ye(`Maximum recursive updates exceeded${i ? ` in component <${i}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`), !0;
817
- }
818
- e.set(t, o + 1);
819
- } else
820
- e.set(t, 1);
821
- }
822
- const me = /* @__PURE__ */ new Set();
823
- process.env.NODE_ENV !== "production" && (Re().__VUE_HMR_RUNTIME__ = { createRecord: De(function(e, t) {
824
- return Oe.has(e) ? !1 : (Oe.set(e, { initialDef: be(t), instances: /* @__PURE__ */ new Set() }), !0);
825
- }), rerender: De(function(e, t) {
826
- const o = Oe.get(e);
827
- o && (o.initialDef.render = t, [...o.instances].forEach((n) => {
828
- t && (n.render = t, be(n.type).render = t), n.renderCache = [], n.update();
829
- }));
830
- }), reload: De(function(e, t) {
831
- const o = Oe.get(e);
832
- if (!o)
833
- return;
834
- t = be(t), st(o.initialDef, t);
835
- const n = [...o.instances];
836
- for (const r of n) {
837
- const l = be(r.type);
838
- me.has(l) || (l !== o.initialDef && st(l, t), me.add(l)), r.appContext.propsCache.delete(r.type), r.appContext.emitsCache.delete(r.type), r.appContext.optionsCache.delete(r.type), r.ceReload ? (me.add(l), r.ceReload(t.styles), me.delete(l)) : r.parent ? Bo(r.parent.update) : r.appContext.reload ? r.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn("[HMR] Root or manually mounted instance modified. Full reload required.");
839
- }
840
- i = () => {
841
- for (const r of n)
842
- me.delete(be(r.type));
843
- }, Mt(i) ? ue.push(...i) : Y && Y.includes(i, i.allowRecurse ? Q + 1 : Q) || ue.push(i), Bt();
844
- var i;
845
- }) });
846
- const Oe = /* @__PURE__ */ new Map();
847
- function be(e) {
848
- return _e(t = e) && "__vccOpts" in t ? e.__vccOpts : e;
849
- var t;
850
- }
851
- function st(e, t) {
852
- Ve(e, t);
853
- for (const o in e)
854
- o === "__file" || o in t || delete e[o];
855
- }
856
- function De(e) {
857
- return (t, o) => {
858
- try {
859
- return e(t, o);
860
- } catch (n) {
861
- console.error(n), console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.");
862
- }
863
- };
864
- }
865
- let Ne;
866
- process.env.NODE_ENV;
867
- let ct = "__VUE_INSTANCE_SETTERS__";
868
- (Ne = Re()[ct]) || (Ne = Re()[ct] = []), Ne.push((e) => e);
869
- const Uo = /(?:^|[-_])(\w)/g, Wo = (e) => e.replace(Uo, (t) => t.toUpperCase()).replace(/[-_]/g, "");
870
- function Ut(e, t = !0) {
871
- return _e(e) ? e.displayName || e.name : e.name || t && e.__name;
872
- }
873
- function ut(e, t, o = !1) {
874
- let n = Ut(t);
875
- if (!n && t.__file) {
876
- const i = t.__file.match(/([^/\\]+)\.\w+$/);
877
- i && (n = i[1]);
878
- }
879
- if (!n && e && e.parent) {
880
- const i = (r) => {
881
- for (const l in r)
882
- if (r[l] === t)
883
- return l;
884
- };
885
- n = i(e.components || e.parent.type.components) || i(e.appContext.components);
886
- }
887
- return n ? Wo(n) : o ? "App" : "Anonymous";
888
- }
889
- const ie = (e, t) => function(o, n, i = !1) {
890
- let r, l;
891
- const a = _e(o);
892
- return a ? (r = o, l = process.env.NODE_ENV !== "production" ? () => {
893
- console.warn("Write operation failed: computed value is readonly");
894
- } : Ft) : (r = o.get, l = o.set), new Po(r, l, a || !l, i);
895
- }(e, 0, !1);
896
- function Ho(e) {
897
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
898
- }
899
- var dt, pt = { exports: {} };
900
- function Vo() {
901
- return dt || (dt = 1, pt.exports = function() {
902
- var e = 1e3, t = 6e4, o = 36e5, n = "millisecond", i = "second", r = "minute", l = "hour", a = "day", g = "week", s = "month", d = "quarter", u = "year", f = "date", y = "Invalid Date", A = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|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, m = { 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(S) {
903
- var h = ["th", "st", "nd", "rd"], c = S % 100;
904
- return "[" + S + (h[(c - 20) % 10] || h[c] || h[0]) + "]";
905
- } }, L = function(S, h, c) {
906
- var x = String(S);
907
- return !x || x.length >= h ? S : "" + Array(h + 1 - x.length).join(c) + S;
908
- }, I = { s: L, z: function(S) {
909
- var h = -S.utcOffset(), c = Math.abs(h), x = Math.floor(c / 60), p = c % 60;
910
- return (h <= 0 ? "+" : "-") + L(x, 2, "0") + ":" + L(p, 2, "0");
911
- }, m: function S(h, c) {
912
- if (h.date() < c.date())
913
- return -S(c, h);
914
- var x = 12 * (c.year() - h.year()) + (c.month() - h.month()), p = h.clone().add(x, s), w = c - p < 0, C = h.clone().add(x + (w ? -1 : 1), s);
915
- return +(-(x + (c - p) / (w ? p - C : C - p)) || 0);
916
- }, a: function(S) {
917
- return S < 0 ? Math.ceil(S) || 0 : Math.floor(S);
918
- }, p: function(S) {
919
- return { M: s, y: u, w: g, d: a, D: f, h: l, m: r, s: i, ms: n, Q: d }[S] || String(S || "").toLowerCase().replace(/s$/, "");
920
- }, u: function(S) {
921
- return S === void 0;
922
- } }, N = "en", $ = {};
923
- $[N] = m;
924
- var z = "$isDayjsObject", B = function(S) {
925
- return S instanceof O || !(!S || !S[z]);
926
- }, j = function S(h, c, x) {
927
- var p;
928
- if (!h)
929
- return N;
930
- if (typeof h == "string") {
931
- var w = h.toLowerCase();
932
- $[w] && (p = w), c && ($[w] = c, p = w);
933
- var C = h.split("-");
934
- if (!p && C.length > 1)
935
- return S(C[0]);
936
- } else {
937
- var T = h.name;
938
- $[T] = h, p = T;
939
- }
940
- return !x && p && (N = p), p || !x && N;
941
- }, D = function(S, h) {
942
- if (B(S))
943
- return S.clone();
944
- var c = typeof h == "object" ? h : {};
945
- return c.date = S, c.args = arguments, new O(c);
946
- }, b = I;
947
- b.l = j, b.i = B, b.w = function(S, h) {
948
- return D(S, { locale: h.$L, utc: h.$u, x: h.$x, $offset: h.$offset });
949
- };
950
- var O = function() {
951
- function S(c) {
952
- this.$L = j(c.locale, null, !0), this.parse(c), this.$x = this.$x || c.x || {}, this[z] = !0;
953
- }
954
- var h = S.prototype;
955
- return h.parse = function(c) {
956
- this.$d = function(x) {
957
- var p = x.date, w = x.utc;
958
- if (p === null)
959
- return /* @__PURE__ */ new Date(NaN);
960
- if (b.u(p))
961
- return /* @__PURE__ */ new Date();
962
- if (p instanceof Date)
963
- return new Date(p);
964
- if (typeof p == "string" && !/Z$/i.test(p)) {
965
- var C = p.match(A);
966
- if (C) {
967
- var T = C[2] - 1 || 0, E = (C[7] || "0").substring(0, 3);
968
- return w ? new Date(Date.UTC(C[1], T, C[3] || 1, C[4] || 0, C[5] || 0, C[6] || 0, E)) : new Date(C[1], T, C[3] || 1, C[4] || 0, C[5] || 0, C[6] || 0, E);
969
- }
970
- }
971
- return new Date(p);
972
- }(c), this.init();
973
- }, h.init = function() {
974
- var c = this.$d;
975
- this.$y = c.getFullYear(), this.$M = c.getMonth(), this.$D = c.getDate(), this.$W = c.getDay(), this.$H = c.getHours(), this.$m = c.getMinutes(), this.$s = c.getSeconds(), this.$ms = c.getMilliseconds();
976
- }, h.$utils = function() {
977
- return b;
978
- }, h.isValid = function() {
979
- return this.$d.toString() !== y;
980
- }, h.isSame = function(c, x) {
981
- var p = D(c);
982
- return this.startOf(x) <= p && p <= this.endOf(x);
983
- }, h.isAfter = function(c, x) {
984
- return D(c) < this.startOf(x);
985
- }, h.isBefore = function(c, x) {
986
- return this.endOf(x) < D(c);
987
- }, h.$g = function(c, x, p) {
988
- return b.u(c) ? this[x] : this.set(p, c);
989
- }, h.unix = function() {
990
- return Math.floor(this.valueOf() / 1e3);
991
- }, h.valueOf = function() {
992
- return this.$d.getTime();
993
- }, h.startOf = function(c, x) {
994
- var p = this, w = !!b.u(x) || x, C = b.p(c), T = function(te, U) {
995
- var Z = b.w(p.$u ? Date.UTC(p.$y, U, te) : new Date(p.$y, U, te), p);
996
- return w ? Z : Z.endOf(a);
997
- }, E = function(te, U) {
998
- return b.w(p.toDate()[te].apply(p.toDate("s"), (w ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(U)), p);
999
- }, k = this.$W, F = this.$M, R = this.$D, se = "set" + (this.$u ? "UTC" : "");
1000
- switch (C) {
1001
- case u:
1002
- return w ? T(1, 0) : T(31, 11);
1003
- case s:
1004
- return w ? T(1, F) : T(0, F + 1);
1005
- case g:
1006
- var ee = this.$locale().weekStart || 0, xe = (k < ee ? k + 7 : k) - ee;
1007
- return T(w ? R - xe : R + (6 - xe), F);
1008
- case a:
1009
- case f:
1010
- return E(se + "Hours", 0);
1011
- case l:
1012
- return E(se + "Minutes", 1);
1013
- case r:
1014
- return E(se + "Seconds", 2);
1015
- case i:
1016
- return E(se + "Milliseconds", 3);
1017
- default:
1018
- return this.clone();
1019
- }
1020
- }, h.endOf = function(c) {
1021
- return this.startOf(c, !1);
1022
- }, h.$set = function(c, x) {
1023
- var p, w = b.p(c), C = "set" + (this.$u ? "UTC" : ""), T = (p = {}, p[a] = C + "Date", p[f] = C + "Date", p[s] = C + "Month", p[u] = C + "FullYear", p[l] = C + "Hours", p[r] = C + "Minutes", p[i] = C + "Seconds", p[n] = C + "Milliseconds", p)[w], E = w === a ? this.$D + (x - this.$W) : x;
1024
- if (w === s || w === u) {
1025
- var k = this.clone().set(f, 1);
1026
- k.$d[T](E), k.init(), this.$d = k.set(f, Math.min(this.$D, k.daysInMonth())).$d;
1027
- } else
1028
- T && this.$d[T](E);
1029
- return this.init(), this;
1030
- }, h.set = function(c, x) {
1031
- return this.clone().$set(c, x);
1032
- }, h.get = function(c) {
1033
- return this[b.p(c)]();
1034
- }, h.add = function(c, x) {
1035
- var p, w = this;
1036
- c = Number(c);
1037
- var C = b.p(x), T = function(F) {
1038
- var R = D(w);
1039
- return b.w(R.date(R.date() + Math.round(F * c)), w);
1040
- };
1041
- if (C === s)
1042
- return this.set(s, this.$M + c);
1043
- if (C === u)
1044
- return this.set(u, this.$y + c);
1045
- if (C === a)
1046
- return T(1);
1047
- if (C === g)
1048
- return T(7);
1049
- var E = (p = {}, p[r] = t, p[l] = o, p[i] = e, p)[C] || 1, k = this.$d.getTime() + c * E;
1050
- return b.w(k, this);
1051
- }, h.subtract = function(c, x) {
1052
- return this.add(-1 * c, x);
1053
- }, h.format = function(c) {
1054
- var x = this, p = this.$locale();
1055
- if (!this.isValid())
1056
- return p.invalidDate || y;
1057
- var w = c || "YYYY-MM-DDTHH:mm:ssZ", C = b.z(this), T = this.$H, E = this.$m, k = this.$M, F = p.weekdays, R = p.months, se = p.meridiem, ee = function(U, Z, ge, Ce) {
1058
- return U && (U[Z] || U(x, w)) || ge[Z].slice(0, Ce);
1059
- }, xe = function(U) {
1060
- return b.s(T % 12 || 12, U, "0");
1061
- }, te = se || function(U, Z, ge) {
1062
- var Ce = U < 12 ? "AM" : "PM";
1063
- return ge ? Ce.toLowerCase() : Ce;
1064
- };
1065
- return w.replace(v, function(U, Z) {
1066
- return Z || function(ge) {
1067
- switch (ge) {
1068
- case "YY":
1069
- return String(x.$y).slice(-2);
1070
- case "YYYY":
1071
- return b.s(x.$y, 4, "0");
1072
- case "M":
1073
- return k + 1;
1074
- case "MM":
1075
- return b.s(k + 1, 2, "0");
1076
- case "MMM":
1077
- return ee(p.monthsShort, k, R, 3);
1078
- case "MMMM":
1079
- return ee(R, k);
1080
- case "D":
1081
- return x.$D;
1082
- case "DD":
1083
- return b.s(x.$D, 2, "0");
1084
- case "d":
1085
- return String(x.$W);
1086
- case "dd":
1087
- return ee(p.weekdaysMin, x.$W, F, 2);
1088
- case "ddd":
1089
- return ee(p.weekdaysShort, x.$W, F, 3);
1090
- case "dddd":
1091
- return F[x.$W];
1092
- case "H":
1093
- return String(T);
1094
- case "HH":
1095
- return b.s(T, 2, "0");
1096
- case "h":
1097
- return xe(1);
1098
- case "hh":
1099
- return xe(2);
1100
- case "a":
1101
- return te(T, E, !0);
1102
- case "A":
1103
- return te(T, E, !1);
1104
- case "m":
1105
- return String(E);
1106
- case "mm":
1107
- return b.s(E, 2, "0");
1108
- case "s":
1109
- return String(x.$s);
1110
- case "ss":
1111
- return b.s(x.$s, 2, "0");
1112
- case "SSS":
1113
- return b.s(x.$ms, 3, "0");
1114
- case "Z":
1115
- return C;
1116
- }
1117
- return null;
1118
- }(U) || C.replace(":", "");
1119
- });
1120
- }, h.utcOffset = function() {
1121
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1122
- }, h.diff = function(c, x, p) {
1123
- var w, C = this, T = b.p(x), E = D(c), k = (E.utcOffset() - this.utcOffset()) * t, F = this - E, R = function() {
1124
- return b.m(C, E);
1125
- };
1126
- switch (T) {
1127
- case u:
1128
- w = R() / 12;
1129
- break;
1130
- case s:
1131
- w = R();
1132
- break;
1133
- case d:
1134
- w = R() / 3;
1135
- break;
1136
- case g:
1137
- w = (F - k) / 6048e5;
1138
- break;
1139
- case a:
1140
- w = (F - k) / 864e5;
1141
- break;
1142
- case l:
1143
- w = F / o;
1144
- break;
1145
- case r:
1146
- w = F / t;
1147
- break;
1148
- case i:
1149
- w = F / e;
1150
- break;
1151
- default:
1152
- w = F;
1153
- }
1154
- return p ? w : b.a(w);
1155
- }, h.daysInMonth = function() {
1156
- return this.endOf(s).$D;
1157
- }, h.$locale = function() {
1158
- return $[this.$L];
1159
- }, h.locale = function(c, x) {
1160
- if (!c)
1161
- return this.$L;
1162
- var p = this.clone(), w = j(c, x, !0);
1163
- return w && (p.$L = w), p;
1164
- }, h.clone = function() {
1165
- return b.w(this.$d, this);
1166
- }, h.toDate = function() {
1167
- return new Date(this.valueOf());
1168
- }, h.toJSON = function() {
1169
- return this.isValid() ? this.toISOString() : null;
1170
- }, h.toISOString = function() {
1171
- return this.$d.toISOString();
1172
- }, h.toString = function() {
1173
- return this.$d.toUTCString();
1174
- }, S;
1175
- }(), P = O.prototype;
1176
- return D.prototype = P, [["$ms", n], ["$s", i], ["$m", r], ["$H", l], ["$W", a], ["$M", s], ["$y", u], ["$D", f]].forEach(function(S) {
1177
- P[S[1]] = function(h) {
1178
- return this.$g(h, S[0], S[1]);
1179
- };
1180
- }), D.extend = function(S, h) {
1181
- return S.$i || (S(h, O, D), S.$i = !0), D;
1182
- }, D.locale = j, D.isDayjs = B, D.unix = function(S) {
1183
- return D(1e3 * S);
1184
- }, D.en = $[N], D.Ls = $, D.p = {}, D;
1185
- }()), pt.exports;
1186
- }
1187
- var Yo = Ho(Vo()), Wt = typeof global == "object" && global && global.Object === Object && global, qo = typeof self == "object" && self && self.Object === Object && self, q = Wt || qo || Function("return this")(), he = q.Symbol, Ht = Object.prototype, Zo = Ht.hasOwnProperty, Qo = Ht.toString, Se = he ? he.toStringTag : void 0, Xo = Object.prototype.toString, ft = he ? he.toStringTag : void 0;
1188
- function Ie(e) {
1189
- return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : ft && ft in Object(e) ? function(t) {
1190
- var o = Zo.call(t, Se), n = t[Se];
1191
- try {
1192
- t[Se] = void 0;
1193
- var i = !0;
1194
- } catch {
1195
- }
1196
- var r = Qo.call(t);
1197
- return i && (o ? t[Se] = n : delete t[Se]), r;
1198
- }(e) : function(t) {
1199
- return Xo.call(t);
1200
- }(e);
1201
- }
1202
- function Vt(e) {
1203
- return e != null && typeof e == "object";
1204
- }
1205
- function Yt(e) {
1206
- var t = typeof e;
1207
- return e != null && (t == "object" || t == "function");
1208
- }
1209
- function Ko(e) {
1210
- if (!Yt(e))
1211
- return !1;
1212
- var t = Ie(e);
1213
- return t == "[object Function]" || t == "[object GeneratorFunction]" || t == "[object AsyncFunction]" || t == "[object Proxy]";
1214
- }
1215
- var ht, Ee = q["__core-js_shared__"], yt = (ht = /[^.]+$/.exec(Ee && Ee.keys && Ee.keys.IE_PROTO || "")) ? "Symbol(src)_1." + ht : "", Jo = Function.prototype.toString;
1216
- function ae(e) {
1217
- if (e != null) {
1218
- try {
1219
- return Jo.call(e);
1220
- } catch {
1221
- }
1222
- try {
1223
- return e + "";
1224
- } catch {
1225
- }
1226
- }
1227
- return "";
1228
- }
1229
- var en = /^\[object .+?Constructor\]$/, tn = Function.prototype, on = Object.prototype, nn = tn.toString, rn = on.hasOwnProperty, an = RegExp("^" + nn.call(rn).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
1230
- function ln(e) {
1231
- return !(!Yt(e) || (t = e, yt && yt in t)) && (Ko(e) ? an : en).test(ae(e));
1232
- var t;
1233
- }
1234
- function le(e, t) {
1235
- var o = function(n, i) {
1236
- return n == null ? void 0 : n[i];
1237
- }(e, t);
1238
- return ln(o) ? o : void 0;
1239
- }
1240
- var Be = le(q, "WeakMap");
1241
- (function() {
1242
- try {
1243
- var e = le(Object, "defineProperty");
1244
- return e({}, "", {}), e;
1245
- } catch {
1246
- }
1247
- })();
1248
- function xt(e) {
1249
- return Vt(e) && Ie(e) == "[object Arguments]";
1250
- }
1251
- var qt = Object.prototype, sn = qt.hasOwnProperty, cn = qt.propertyIsEnumerable;
1252
- xt(function() {
1253
- return arguments;
1254
- }());
1255
- var Zt = typeof exports == "object" && exports && !exports.nodeType && exports, gt = Zt && typeof module == "object" && module && !module.nodeType && module, mt = gt && gt.exports === Zt ? q.Buffer : void 0;
1256
- mt && mt.isBuffer;
1257
- var Qt = typeof exports == "object" && exports && !exports.nodeType && exports, we = Qt && typeof module == "object" && module && !module.nodeType && module, $e = we && we.exports === Qt && Wt.process, ye = function() {
1258
- try {
1259
- var e = we && we.require && we.require("util").types;
1260
- return e || $e && $e.binding && $e.binding("util");
1261
- } catch {
1262
- }
1263
- }();
1264
- ye && ye.isTypedArray;
1265
- le(Object, "create");
1266
- var Ge = le(q, "Map"), Ue = le(q, "DataView"), We = le(q, "Promise"), He = le(q, "Set"), bt = "[object Map]", St = "[object Promise]", vt = "[object Set]", wt = "[object WeakMap]", At = "[object DataView]", un = ae(Ue), dn = ae(Ge), pn = ae(We), fn = ae(He), hn = ae(Be), ce = Ie;
1267
- (Ue && ce(new Ue(new ArrayBuffer(1))) != At || Ge && ce(new Ge()) != bt || We && ce(We.resolve()) != St || He && ce(new He()) != vt || Be && ce(new Be()) != wt) && (ce = function(e) {
1268
- var t = Ie(e), o = t == "[object Object]" ? e.constructor : void 0, n = o ? ae(o) : "";
1269
- if (n)
1270
- switch (n) {
1271
- case un:
1272
- return At;
1273
- case dn:
1274
- return bt;
1275
- case pn:
1276
- return St;
1277
- case fn:
1278
- return vt;
1279
- case hn:
1280
- return wt;
1281
- }
1282
- return t;
1283
- });
1284
- q.Uint8Array;
1285
- var Ct = he ? he.prototype : void 0;
1286
- Ct && Ct.valueOf;
1287
- ye && ye.isMap;
1288
- ye && ye.isSet;
1289
- const Xt = (e, t) => {
1290
- const o = Object.assign({ dayjs: Yo }, t);
1291
- let n = "";
1292
- const i = [];
1293
- for (const a in o)
1294
- n += `${a},`, i.push(o[a]);
1295
- n = n.replace(/,$/, "");
1296
- const r = `function (${n}){return ${e}}`;
1297
- let l;
1298
- try {
1299
- l = Function(`"use strict";return (${r})`)()(...i);
1300
- } catch {
1301
- return e;
1302
- }
1303
- return l;
1304
- }, pe = (e = "", { textData: t, codeData: o } = {}, { useNewline: n = !1, useSpace: i = !1 } = {}) => {
1305
- const r = window.config || {}, l = Object.assign(Object.assign({}, r), t), a = String(e || "").match(/\{(.+?)\}/g);
1306
- if (a == null || a.length === 0)
1307
- return e;
1308
- for (let g = 0; g < a.length; g++) {
1309
- const s = a[g];
1310
- let d = s.slice(1, -1).trim();
1311
- const u = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, f = d.match(u);
1312
- for (let y = 0; y < f.length; y++) {
1313
- const A = f[y], v = l[A];
1314
- v != null && typeof v != "function" && (d = d.replace(A, v));
1315
- }
1316
- (/\(.*\)/g.test(d) || /[+/\\*]/g.test(d)) && (d = Xt(d, o)), e = e.replace(s, d);
1317
- }
1318
- return n && (e = e == null ? void 0 : e.replace(/\n|\\n/g, "<br/>")), i && (e = e == null ? void 0 : e.replace(/\s{2,}?/g, "&nbsp;&nbsp;")), e = e.replace(/Qfw\((.*?)\)/, (g, s) => t != null && t.Qfw ? t == null ? void 0 : t.Qfw(s) : s);
1319
- }, yn = (e, t) => {
1320
- if (typeof e == "string" && typeof t == "string")
1321
- return e.toLocaleLowerCase().includes(t.toLocaleLowerCase());
1322
- if (typeof e == "string" && Array.isArray(t)) {
1323
- const o = t.length;
1324
- for (let n = 0; n < o; n++) {
1325
- const i = t[n];
1326
- if (typeof i == "string" && e.toLocaleLowerCase().includes(i.toLocaleLowerCase()))
1327
- return !0;
1328
- }
1329
- }
1330
- return !1;
1331
- }, ke = (e, t) => Object.prototype.hasOwnProperty.call(e, t);
1332
- function xn(e) {
1333
- let t = "", o = "", n = "", i = "";
1334
- e.indexOf(".") > -1 ? (o = e.split(".")[0], n = e.split(".")[1]) : o = e;
1335
- let r = 0, l = 0;
1336
- for (l = o.length - 1; l >= 0; )
1337
- r % 3 == 0 && r !== 0 ? o[l] === "-" ? t += o[l] : t += "," + o[l] : t += o[l], l--, r++;
1338
- return t = t.split("").reverse().join(""), i = e.indexOf(".") > -1 ? t + "." + n : t, i;
1339
- }
1340
- const gn = (e = [], t, o = !1) => {
1341
- let { name: n = "name", types: i = [] } = t || {};
1342
- n = (n == null ? void 0 : n.trim()) || n;
1343
- const r = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map(), a = e.length, g = i.length;
1344
- if (a !== 1 || o)
1345
- for (let u = 0; u < a; u++) {
1346
- const f = e[u], y = f[n];
1347
- r.add(y);
1348
- for (let A = 0; A < g; A++) {
1349
- const v = i[A], { label: m, value: L } = v, I = Object.assign(Object.assign({}, f), { value: f[L] });
1350
- if (l.has(m)) {
1351
- const N = l.get(m);
1352
- N.push(I), l.set(m, N);
1353
- } else
1354
- l.set(m, [I]);
1355
- }
1356
- }
1357
- else {
1358
- const u = [];
1359
- for (let y = 0; y < g; y++) {
1360
- const A = i[y], { label: v, value: m } = A, L = Object.assign(Object.assign({}, e[0]), { value: e[0][m] });
1361
- r.add(v), u.push(L);
1362
- }
1363
- const f = e[0][n] || "";
1364
- l.set(f, u);
1365
- }
1366
- const s = Array.from(r), d = [];
1367
- for (const [u, f] of l)
1368
- d.push({ name: u, data: f });
1369
- return { dimensions: s, dataset: d };
1370
- }, mn = (e, t) => {
1371
- let { name: o = "name", value: n = "value", type: i = "type" } = t || {};
1372
- o = o == null ? void 0 : o.trim(), n = n == null ? void 0 : n.trim(), i = i == null ? void 0 : i.trim();
1373
- const r = /* @__PURE__ */ new Map(), l = e.length;
1374
- for (let s = 0; s < l; s++) {
1375
- const d = e[s], u = d[o] || "", f = d[n] || "", y = d[i] || "";
1376
- if (r.has(y)) {
1377
- const A = r.get(y);
1378
- A.push(Object.assign({ name: u, value: f }, d)), r.set(y, A);
1379
- } else
1380
- r.set(y, [Object.assign({ name: u, value: f }, d)]);
1381
- }
1382
- const a = [], g = [];
1383
- for (const [s, d] of r)
1384
- if (g.push({ name: s, data: d }), d == null ? void 0 : d.length)
1385
- if (a.length)
1386
- for (const u of d)
1387
- a.includes(u.name) || a.push(u.name);
1388
- else
1389
- a.push(...d.map((u) => u.name));
1390
- return { dimensions: a, dataset: g };
1391
- }, fe = (e, t) => {
1392
- var o;
1393
- if (e == null)
1394
- return t;
1395
- const n = e.match(/\{.*\}/g);
1396
- if (n == null || n.length === 0)
1397
- return t;
1398
- const i = n.length;
1399
- for (let r = 0; r < i; r++) {
1400
- const l = n[r];
1401
- if (l == null || l === "")
1402
- break;
1403
- let a = (o = l.slice(1, -1)) === null || o === void 0 ? void 0 : o.trim();
1404
- a = a == null ? void 0 : a.replace(/value/g, t);
1405
- try {
1406
- let g = a;
1407
- (/\(.*\)/g.test(a) || /[+/\\*]/g.test(a)) && (g = Xt(a)), e = e.replace(l, g);
1408
- } catch {
1409
- e = e.replace(l, a);
1410
- }
1411
- }
1412
- return e;
1413
- };
1414
- function bn(e) {
1415
- return e.isShowMarkLine ? { markLine: { data: [{ type: e.markLineType }] } } : {};
1416
- }
1417
- const Sn = (e, t, o) => {
1418
- const n = e.yAxisLabelFormatter, i = e.xAxisLabelFormatter, { dimensions: r = [], dataset: l = [] } = t, a = ie(() => {
1419
- const { gradientShow: s, gradientColors: d, gradientOffset: u, barBorderRadius: f } = e, y = l, A = y.length, v = [];
1420
- for (let m = 0; m < A; m++) {
1421
- const L = Object.assign(Object.assign({}, y[m]), { type: "bar", barWidth: e.barWidth, showBackground: e.showBarBackground }), { isStack: I, stackColumns: N } = e;
1422
- if (I && N.includes(y[m].name || !N) && (L.stack = "stack"), L.label = { show: e.labelShow, fontSize: e.labelFontSize, position: e.labelPosition, color: e.labelColor, width: e.labelWidth, overflow: e.labelOverflow, formatter: ($) => {
1423
- let z = "", B = e.labelFormatter;
1424
- B === "" && (B = "{c}");
1425
- const { seriesName: j, name: D, value: b, data: O } = $ || {};
1426
- return z += pe(B, { textData: Object.assign({ name: D, value: b, a: j, b: D, c: b || 0 }, O) }, { useNewline: !0, useSpace: !0 }), z;
1427
- } }, L.itemStyle = {}, s && (L.itemStyle = { color: { x: e.isUseHorizontalAxis ? 1 : 0, y: 0, x2: 0, y2: e.isUseHorizontalAxis ? 0 : 1, colorStops: [{ offset: 0, color: e.colors[m] }, { offset: u, color: d[m] }, { offset: 1, color: d[m] }] } }), f) {
1428
- const $ = f.split(",");
1429
- if ($ != null && $.length) {
1430
- const z = [];
1431
- for (const B of $) {
1432
- const j = parseFloat(B);
1433
- isNaN(j) || z.push(j);
1434
- }
1435
- L.itemStyle.barBorderRadius = z;
1436
- }
1437
- }
1438
- e.isShowMarkLine && (L.markLine = { data: [{ type: e.markLineType }] }), v.push(L);
1439
- }
1440
- return v;
1441
- }), g = ie(() => r.map((s) => {
1442
- let d = {};
1443
- return d = s && typeof s == "object" ? Object.assign(Object.assign({}, s), { textStyle: { fontSize: o } }) : { value: s, textStyle: { fontSize: o } }, d;
1444
- }));
1445
- return { tooltip: { trigger: "axis", show: e.tooltipShow, formatter: (s) => {
1446
- const d = s.length;
1447
- let u = "", f = e.tooltipFormatter;
1448
- f === "" && (f = "{marker} {a} {c}");
1449
- for (let y = 0; y < d; y++) {
1450
- const { marker: A, seriesName: v, name: m, value: L, data: I } = s[y] || {};
1451
- if (y === 0) {
1452
- let N = m;
1453
- typeof m != "string" || m[0] !== "0" || isNaN(+m) || (N = (+m).toString()), u += `${fe(i, N)}<br/>`;
1454
- }
1455
- u += pe(f, { textData: Object.assign({ marker: A, name: m, value: L, Qfw: xn, a: v, b: m, c: L || 0 }, I) }, { useNewline: !0, useSpace: !0 }), u += "<br/>";
1456
- }
1457
- return u;
1458
- }, textStyle: { color: e.tooltipTextStyleColor, fontSize: o }, position: e.tooltipPosition || void 0, backgroundColor: e.tooltipBackgroundColor || "#fff" }, legend: { type: e.legendScroll ? "scroll" : "plain", width: e.legendWidth, height: e.legendHeight, show: e.legendShow, orient: e.legendOrient, top: e.legendTop, left: e.legendLeft, textStyle: { rich: { text: { width: e.legendTextWidth, color: e.legendTextStyleColor, fontSize: e.legendFontSize } } }, itemHeight: e.legendItemHeight, itemWidth: e.legendItemWidth, itemGap: e.legendItemGap, data: l.map((s, d) => ({ name: s.name, itemStyle: { color: e.colors[d] }, icon: e.legendType })), formatter: (s) => ((d = "", u) => {
1459
- var f;
1460
- const y = d.match(/\{(.+?)\}/g), A = ((f = d.split(`
1461
- `)) === null || f === void 0 ? void 0 : f.length) - 1;
1462
- let v = "";
1463
- if (A)
1464
- for (let L = 0; L < A; L++)
1465
- v += `
1466
- `;
1467
- let m = d;
1468
- if (y != null && y.length) {
1469
- for (const L of y) {
1470
- const I = pe(L, { textData: u }, { useNewline: !1, useSpace: !1 });
1471
- I && (m = m.replace(L, I));
1472
- }
1473
- return `${v}{text|${m}}`;
1474
- }
1475
- return d;
1476
- })(e.legendFormatter, { name: s }) }, xAxis: { type: e.isUseHorizontalAxis ? "value" : "category", data: e.isUseHorizontalAxis ? null : J(g), inverse: e.isUseHorizontalAxis ? e.xAxisInverse : e.axisInverse, minInterval: e.xAxisMinInterval, splitLine: { show: e.xAxisSplitLineShow, lineStyle: { color: e.xAxisSplitLineStyleColor, type: e.xAxisSplitLineType }, interval: e.xAxisSplitLineInterval }, splitArea: { show: e.xAxisSplitAreaShow }, axisLabel: { color: e.xAxisLabelColor, interval: e.xAxisLabelInterval || 0, rotate: e.xAxisLabelRotate, width: e.xAxisLabelWidth, overflow: e.xAxisLabelOverflow, fontSize: e.xAxisLabelFontSize, formatter: (s) => (typeof s != "string" || s[0] !== "0" || isNaN(+s) || (s = (+s).toString()), fe(i, s)) }, axisLine: { show: e.xAxisLineShow, lineStyle: { color: e.xAxisLineStyleColor } }, axisTick: { show: e.xAxisTickShow }, name: e.xAxisName, nameTextStyle: { fontSize: e.xAxisLabelFontSize, color: e.xAxisLabelColor, align: "left" }, max: e.xAxisMaxValue || null }, yAxis: { type: e.isUseHorizontalAxis ? "category" : "value", data: e.isUseHorizontalAxis ? J(r) : null, inverse: e.isUseHorizontalAxis ? e.axisInverse : e.yAxisInverse, minInterval: e.yAxisMinInterval, splitLine: { show: e.yAxisSplitLineShow, lineStyle: { color: e.yAxisSplitLineStyleColor, type: e.yAxisSplitLineType } }, splitArea: { show: e.yAxisSplitAreaShow }, axisLabel: { show: e.yAxisLabelShow, fontSize: e.yAxisLabelFontSize, color: e.yAxisLabelColor, rotate: e.yAxisLabelRotate, width: e.yAxisLabelWidth, overflow: e.yAxisLabelOverflow, formatter: (s) => fe(n, s) }, axisLine: { show: e.yAxisLineAlwaysDisplay, lineStyle: { color: e.yAxisLineStyleColor } }, name: e.yAxisName, nameTextStyle: { fontSize: e.yAxisLabelFontSize, color: e.yAxisLabelColor, align: "right" }, max: e.yAxisMaxValue || null }, series: J(a) };
1477
- }, vn = (e, t, o) => {
1478
- const n = e.yAxisLabelFormatter, i = e.xAxisLabelFormatter, { dimensions: r = [], dataset: l = [] } = t, a = ie(() => r.map((s) => {
1479
- let d = {};
1480
- return d = s && typeof s == "object" ? Object.assign(Object.assign({}, s), { textStyle: { fontSize: o } }) : { value: s, textStyle: { fontSize: o } }, d;
1481
- })), g = ie(() => {
1482
- const s = [], d = l.length;
1483
- for (let u = 0; u < d; u++) {
1484
- const f = {};
1485
- e.shadowColor && (f.shadowColor = e.shadowColor, f.shadowBlur = e.shadowBlur, f.shadowOffsetY = e.shadowOffsetY, f.shadowOffsetX = e.shadowOffsetX), s.push(Object.assign(Object.assign(Object.assign({ type: "line" }, l[u]), { symbolSize: e.symbolSize, smooth: e.smooth, areaStyle: { color: e.areaGradientShow ? { type: "linear", x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: e.colors[u] }, { offset: 1, color: e.areaGradientColor || "transparent" }], global: !1 } : e.colors[u], opacity: e.areaStyleOpacity }, lineStyle: Object.assign({ width: e.lineStyleWidth }, f) }), bn(e)));
1486
- }
1487
- return s;
1488
- });
1489
- return { tooltip: { trigger: "axis", show: e.tooltipShow, formatter: (s) => {
1490
- const d = s.length;
1491
- let u = "", f = e.tooltipFormatter;
1492
- f === "" && (f = "{marker} {a} {c}");
1493
- for (let y = 0; y < d; y++) {
1494
- const { marker: A, seriesName: v, name: m, value: L, data: I } = s[y] || {};
1495
- y === 0 && (u += `${m}<br/>`), u += pe(f, { textData: Object.assign({ marker: A, name: m, value: L, a: v, b: m, c: L }, I) }, { useNewline: !0, useSpace: !0 }), u += "<br/>";
1496
- }
1497
- return u;
1498
- }, textStyle: { color: e.tooltipTextStyleColor, fontSize: o.value }, position: e.tooltipPosition || void 0, backgroundColor: e.tooltipBackgroundColor || "#fff" }, xAxis: { name: e.xAxisName, type: "category", data: J(a), minInterval: e.xAxisMinInterval, splitLine: { show: e.xAxisSplitLineShow, lineStyle: { color: e.xAxisSplitLineStyleColor } }, axisLabel: { color: e.xAxisLabelColor, interval: e.xAxisLabelInterval || 0, rotate: e.xAxisLabelRotate, width: e.xAxisLabelWidth, overflow: e.xAxisLabelOverflow, formatter: (s) => fe(i, s) }, axisLine: { lineStyle: { color: e.xAxisLineStyleColor } }, axisTick: { show: e.xAxisTickShow } }, yAxis: { type: "value", name: e.yAxisName, minInterval: e.yAxisMinInterval, splitLine: { show: e.yAxisSplitLineShow, lineStyle: { color: e.yAxisSplitLineStyleColor } }, axisLabel: { fontSize: o, color: e.yAxisLabelColor, formatter: (s) => fe(n, s) }, axisLine: { show: e.yAxisLineAlwaysDisplay, lineStyle: { color: e.yAxisLineStyleColor } } }, legend: { show: e.legendShow, orient: e.legendOrient, top: e.legendTop, left: e.legendLeft, textStyle: { fontSize: o } }, series: J(g) };
1499
- }, wn = (e, t, o) => {
1500
- const { dataset: n = [] } = t;
1501
- let { data: i = [] } = n[0] || {};
1502
- if (Array.isArray(e.colors)) {
1503
- const l = e.isUseLabelColors, a = e.colors;
1504
- i = i.map((g, s) => Object.assign({ label: l ? { color: a[s] } : {} }, g));
1505
- }
1506
- return { title: { text: e.titleText, subtext: e.titleSubtext, textStyle: { fontSize: e.titleFontSize, fontWeight: e.fontWeight, color: e.titleColor }, left: e.textAlign || "center" }, tooltip: { show: e.tooltipShow, trigger: e.tooltipTrigger, formatter: (l) => {
1507
- const { marker: a, seriesName: g, name: s, value: d, percent: u, data: f } = l || {};
1508
- return pe(e.tooltipFormatter, { textData: Object.assign({ marker: a, name: s, value: d, percent: u, a: g, b: s, c: d, d: u }, f) }, { useNewline: !0, useSpace: !0 });
1509
- }, textStyle: { color: e.tooltipTextStyleColor || "#333" }, backgroundColor: e.tooltipBackgroundColor || "#fff", borderColor: e.tooltipBorderColor || "#eee" }, legend: { show: e.legendShow, orient: e.legendOrient, top: e.legendTop, left: e.legendLeft, textStyle: { color: e.legendTextStyleColor, fontSize: o === 18 ? o : e.labelFontSize } }, series: [{ data: i, type: "pie", radius: [e.innerRadius, e.outerRadius], center: [e.centerLeft, e.centerTop], roseType: e.roseType, avoidLabelOverlap: !1, minAngle: e.minAngle, label: { show: e.labelPosition !== "center" && e.labelShow, color: e.labelColor, fontSize: o === 18 ? o : e.labelFontSize, position: e.labelPosition, formatter: (r = e.labelFormatter, r.replace(/\\n/g, `
1510
- `)) }, labelLine: { show: e.labelLineShow, length: e.labelLineLength, length2: e.labelLineLength2 }, emphasis: { itemStyle: { shadowBlur: 10, shadowOffsetX: 0, shadowColor: "rgba(0, 0, 0, 0.5)" }, label: {} } }] };
1511
- var r;
1512
- }, An = (e, t, o) => {
1513
- const { dimensions: n = [], dataset: i = [] } = t, r = ie(() => n.map((g) => {
1514
- let s = {};
1515
- return s = g && typeof g == "object" ? Object.assign(Object.assign({}, g), { textStyle: { fontSize: o } }) : { value: g, textStyle: { fontSize: o } }, s;
1516
- })), l = ie(() => {
1517
- const g = [], s = i.length, d = e.seriesTypes;
1518
- for (let u = 0; u < s; u++) {
1519
- const f = d[u], { type: y, axisIndex: A } = f || {};
1520
- let v = Object.assign({ type: y, yAxisIndex: A }, i[u]);
1521
- if (y === "line") {
1522
- const m = {};
1523
- e.shadowColor && (m.shadowColor = e.shadowColor, m.shadowBlur = e.shadowBlur, m.shadowOffsetY = e.shadowOffsetY, m.shadowOffsetX = e.shadowOffsetX), v = Object.assign(Object.assign({}, v), { symbolSize: e.symbolSize, smooth: e.smooth, itemStyle: { color: e.colors[u] }, areaStyle: { color: e.areaGradientShow ? { type: "linear", x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: e.colors[u] }, { offset: 1, color: e.areaGradientColor || "transparent" }], global: !1 } : e.colors[u], opacity: e.areaStyleOpacity }, lineStyle: Object.assign({ width: e.lineStyleWidth }, m) });
1524
- }
1525
- if (y === "bar") {
1526
- const { gradientShow: m, gradientColors: L, gradientOffset: I } = e, N = {};
1527
- if (e.barBorderRadius) {
1528
- const $ = e.barBorderRadius.split(",");
1529
- if ($ != null && $.length) {
1530
- const z = [];
1531
- for (const B of $) {
1532
- const j = parseFloat(B);
1533
- isNaN(j) || z.push(j);
1534
- }
1535
- N.borderRadius = z;
1536
- }
1537
- }
1538
- m && (N.color = { x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: e.colors[u] }, { offset: I, color: L[u] }, { offset: 1, color: L[u] }] }), v = Object.assign(Object.assign({}, v), { barWidth: e.barWidth, itemStyle: N });
1539
- }
1540
- e.isShowMarkLine && (v.markLine = { data: [{ type: e.markLineType }] }), g.push(v);
1541
- }
1542
- return g;
1543
- }), a = ie(() => {
1544
- const g = e.yAxis;
1545
- return g == null ? void 0 : g.map((s, d) => ({ type: "value", minInterval: e.yAxisMinInterval, splitLine: { show: d === 0 ? e.yAxisLeftSplitLineShow : e.yAxisRightSplitLineShow, lineStyle: { color: e.yAxisSplitLineStyleColor, type: d === 0 ? e.yAxisLeftSplitLineType : e.yAxisRightSplitLineType } }, splitArea: { show: e.yAxisSplitAreaShow }, axisLabel: { fontSize: o, show: e.yAxisLabelShow, color: e.yAxisLabelColor, formatter: (u) => fe(s.axisLabelFormatter, u) }, axisLine: { show: e.yAxisLineAlwaysDisplay, lineStyle: { color: e.yAxisLineStyleColor } }, name: d === 0 ? e.yAxisLeftName : e.yAxisRightName, nameTextStyle: { fontSize: e.yAxisLabelFontSize, color: e.yAxisLabelColor, align: d === 0 ? "right" : "left" }, max: e.yAxisMaxValue || null }));
1546
- });
1547
- return { legend: { show: e.legendShow, orient: e.legendOrient, top: e.legendTop, left: e.legendLeft, textStyle: { color: e.legendTextStyleColor, fontSize: o } }, tooltip: { trigger: "axis", show: e.tooltipShow, formatter: (g) => {
1548
- const s = g.length;
1549
- let d = "", u = e.tooltipFormatter;
1550
- u === "" && (u = "{marker} {a} {c}");
1551
- const f = e.seriesTypes;
1552
- for (let y = 0; y < s; y++) {
1553
- const A = f[y], { tooltipFormatter: v } = A || {}, { marker: m, seriesName: L, name: I, value: N, data: $ } = g[y] || {};
1554
- y === 0 && (d += `${I}<br/>`), d += pe(v || u, { textData: Object.assign({ marker: m, name: I, value: N, seriesName: L, a: L, b: I, c: N }, $) }, { useNewline: !0, useSpace: !0 }), d += "<br/>";
1555
- }
1556
- return d;
1557
- }, textStyle: { color: e.tooltipTextStyleColor || "#333", fontSize: o }, backgroundColor: e.tooltipBackgroundColor || "#fff", borderColor: e.tooltipBorderColor || "#eee" }, xAxis: { name: e.xAxisName, minInterval: e.xAxisMinInterval, type: "category", data: J(r), splitLine: { show: e.xAxisSplitLineShow, lineStyle: { color: e.xAxisSplitLineStyleColor } }, axisLabel: { color: e.xAxisLabelColor, interval: e.xAxisLabelInterval || 0, rotate: e.xAxisLabelRotate, width: e.xAxisLabelWidth, overflow: e.xAxisLabelOverflow }, axisLine: { lineStyle: { color: e.xAxisLineStyleColor } }, axisTick: { show: e.xAxisTickShow } }, yAxis: J(a), series: J(l) };
1558
- }, Cn = (e, t, o = 12) => Object.assign(Object.assign({}, ((n) => ({ title: { text: n.titleText, subtext: n.titleSubtext, textStyle: { fontSize: n.titleFontSize, fontWeight: n.fontWeight, color: n.titleColor }, left: n.textAlign || "center" }, grid: { top: n.gridTop, bottom: n.gridBottom, left: n.gridLeft, right: n.gridRight, containLabel: n.gridContainLabel }, color: n.colors }))(e)), ((n, i, r) => {
1559
- switch (n.type) {
1560
- case "bar":
1561
- return Sn(n, i, r);
1562
- case "line":
1563
- return vn(n, i, r);
1564
- case "pie":
1565
- return wn(n, i, r);
1566
- case "comboGraph":
1567
- return An(n, i, r);
1568
- default:
1569
- return {};
1570
- }
1571
- })(e, t, o)), Ln = (e = {}) => {
1572
- const t = (r = {}) => {
1573
- const { label: l, name: a, location: g, show: s, indexCode: d, typeGuid: u } = r;
1574
- return {
1575
- label: l,
1576
- columnName: a,
1577
- location: g,
1578
- show: s,
1579
- calcType: "COLUMN",
1580
- hrpIndexCode: d,
1581
- typeGuid: u
1582
- };
1583
- }, o = (r) => {
1584
- ke(r, "dataType") && (r.fieldType === "DATE" && (r.label = r.fieldName, r.dataType === "component" && (r.fieldValue = "${" + r.fieldValue + "}")), delete r.dataType), ke(r, "activeKey") && delete r.activeKey, ke(r, "radioValue") && delete r.radioValue;
1585
- }, n = (r) => {
1586
- const l = [];
1587
- return r != null && r.length && r.forEach((a) => {
1588
- if (a.join && a.conditions) {
1589
- const g = !a.conditions.some((s) => s.join && s.conditions);
1590
- a.conditions.forEach((s, d) => {
1591
- o(s), g ? d < a.conditions.length - 1 ? l.push({
1592
- join: a.join,
1593
- ...s
1594
- }) : l.push(s) : s.join && s.conditions ? l.push({
1595
- conditions: n([s]),
1596
- join: a.join
1597
- }) : l.push(s);
1598
- });
1599
- } else
1600
- o(a), l.push(a);
1601
- }), l;
1602
- }, i = (r = {}) => {
1603
- const {
1604
- label: l,
1605
- name: a,
1606
- location: g,
1607
- show: s,
1608
- indexCode: d,
1609
- calcType: u = "COLUMN",
1610
- builtInFormula: f,
1611
- builtInValueSource: y,
1612
- builtInCalcWay: A,
1613
- formula: v,
1614
- conditions: m,
1615
- aggregate: L
1616
- } = r;
1617
- let I;
1618
- return m && (I = n(m)), {
1619
- label: l.trim(),
1620
- columnName: a,
1621
- location: g,
1622
- show: s,
1623
- calcType: u,
1624
- hrpIndexCode: d,
1625
- aggregate: L,
1626
- builtInFormula: f,
1627
- builtInValueSource: y,
1628
- builtInCalcWay: A,
1629
- formula: v,
1630
- conditions: I
1631
- };
1632
- };
1633
- return async () => {
1634
- const { graphicConfig: r, type: l, request: a, isGroupTable: g } = e;
1635
- let {
1636
- source: s,
1637
- dataViewId: d,
1638
- plugin: u = "1",
1639
- // 插件类型
1640
- layer: f,
1641
- // 后台图表类型,值分0,1
1642
- chartType: y,
1643
- // 前端图表类型,实测没用
1644
- classificationList: A = [],
1645
- seriesList: v = [],
1646
- leftAxisList: m = [],
1647
- rightAxisList: L = [],
1648
- queryColumnList: I = [],
1649
- indicators: N = [],
1650
- // controlList = [],
1651
- dataSourceId: $,
1652
- // 所属数据源ID
1653
- idxLibMode: z,
1654
- // 指标库模式, source= INDICATOR_LIB时候必填, NORMAL_YEAR_TABLE = 普通年表, WITH_DATE_DIM_TABLE = 带有时间维度表
1655
- preview: B = !1,
1656
- // 预览开关
1657
- sqlConditions: j = [],
1658
- rowHeaderList: D = []
1659
- } = r || {};
1660
- f == null && (yn(l, ["table", "card"]) ? f = "1" : f = "2");
1661
- let b;
1662
- if (Array.isArray(A) && A.length > 0) {
1663
- const c = A.length;
1664
- for (let x = 0; x < c; x++) {
1665
- const p = A[x] || {}, { label: w = "", name: C = "", show: T = !1, sort: E, customGroup: k, conditions: F, typeGuid: R } = p;
1666
- if (T || c === 1) {
1667
- b = {
1668
- label: w.trim(),
1669
- columnName: C,
1670
- show: T,
1671
- sort: E,
1672
- customGroup: k,
1673
- typeGuid: R,
1674
- conditions: n(F)
1675
- };
1676
- break;
1677
- }
1678
- }
1679
- }
1680
- let O;
1681
- if (Array.isArray(v) && v.length > 0) {
1682
- const c = v.length;
1683
- for (let x = 0; x < c; x++) {
1684
- const p = v[x] || {}, { label: w = "", name: C = "", show: T = !1, sort: E, customGroup: k, conditions: F, typeGuid: R } = p;
1685
- if (T || c === 1) {
1686
- O = {
1687
- label: w.trim(),
1688
- columnName: C,
1689
- show: T,
1690
- sort: E,
1691
- customGroup: k,
1692
- conditions: n(F),
1693
- typeGuid: R
1694
- };
1695
- break;
1696
- }
1697
- }
1698
- }
1699
- const P = [];
1700
- if (Array.isArray(D) && D.length > 0) {
1701
- const c = D.length;
1702
- for (let x = 0; x < c; x++) {
1703
- const p = D[x] || {}, { label: w = "", name: C = "", show: T = !1, sort: E, customGroup: k, conditions: F, typeGuid: R } = p;
1704
- P.push({
1705
- typeGuid: R,
1706
- label: w.trim(),
1707
- columnName: C,
1708
- show: T,
1709
- sort: E,
1710
- customGroup: k,
1711
- conditions: n(F)
1712
- });
1713
- }
1714
- }
1715
- const S = [];
1716
- I == null || I.forEach((c) => {
1717
- S.push(t(c));
1718
- });
1719
- const h = [];
1720
- if (m == null || m.forEach((c) => {
1721
- c.location = "LEFT", h.push(i(c));
1722
- }), L == null || L.forEach((c) => {
1723
- c.location = "RIGHT", h.push(i(c));
1724
- }), N == null || N.forEach((c) => {
1725
- c.location = "LEFT", h.push(i(c));
1726
- }), g || l === "card") {
1727
- if (y = "grouptable", h.length === 0 || P.length === 0)
1728
- return;
1729
- } else {
1730
- if (f === "1" && S.length === 0)
1731
- return;
1732
- if (f === "2" && h.length === 0)
1733
- return;
1734
- }
1735
- try {
1736
- return await a.post(`${ao}/diagram`, {
1737
- source: s,
1738
- dataViewId: d,
1739
- plugin: u,
1740
- layer: f,
1741
- chartType: y,
1742
- classification: b,
1743
- series: O,
1744
- indicatorList: h,
1745
- queryColumns: S,
1746
- pageFlag: !0,
1747
- sqlConditions: j,
1748
- rowHeaders: P,
1749
- dataSourceId: $,
1750
- idxLibMode: z,
1751
- preview: B
1752
- });
1753
- } catch (c) {
1754
- console.error(c);
1755
- }
1756
- };
1757
- }, On = Tt({
1758
- name: "ChartGraph",
1759
- components: {
1760
- ASpin: io
1761
- },
1762
- props: {
1763
- graphicConfig: {
1764
- // 指标库配置
1765
- type: Object,
1766
- default: () => {
1767
- }
1768
- },
1769
- chartsOptions: {
1770
- // 图表配置
1771
- type: Object,
1772
- default: () => {
1773
- }
1774
- }
1775
- },
1776
- setup(e, { expose: t }) {
1777
- const o = H(() => e.chartsOptions ? _(e.chartsOptions) : g), n = H(() => e.graphicConfig ? _(e.graphicConfig) : a), i = Le(Dt);
1778
- let r = null;
1779
- const l = Le(Nt) || "", a = Le(Et) || {}, g = Le($t) || {}, s = G(null), d = G(null), u = G(), f = G(!1), y = G(!1), A = H(() => y.value ? fo : 12), v = G({}), m = G(), L = H(() => {
1780
- const b = _(o.value);
1781
- return (b == null ? void 0 : b.type) === "customGraph" ? m.value : Cn(b, _(v), A.value);
1782
- }), I = (b = [], O, P = !1) => {
1783
- const S = P ? O : null;
1784
- v.value = gn(b, S);
1785
- }, N = (b = [], O) => {
1786
- v.value = mn(b, O);
1787
- }, $ = async () => {
1788
- var b, O, P;
1789
- try {
1790
- const S = Ln({
1791
- graphicConfig: _(n.value),
1792
- type: (b = _(o.value)) == null ? void 0 : b.type,
1793
- request: i,
1794
- indicatorToken: l
1795
- });
1796
- f.value = !0;
1797
- const h = await S(), { columns: c = [], rows: x = [] } = ((O = h == null ? void 0 : h.data) == null ? void 0 : O.data) ?? {};
1798
- if (((P = _(o.value)) == null ? void 0 : P.type) === "pie") {
1799
- let p = [];
1800
- if (c.length > 0) {
1801
- const w = c[0], C = c[1];
1802
- p = x.map((T) => ({
1803
- name: T[w],
1804
- value: T[C]
1805
- }));
1806
- }
1807
- N(p);
1808
- } else {
1809
- let p;
1810
- c.length > 0 && (p = {
1811
- name: c[0],
1812
- types: c.slice(1).map((w) => ({
1813
- label: w,
1814
- value: w
1815
- }))
1816
- }), I(x, p, !0);
1817
- }
1818
- } catch (S) {
1819
- console.error(S);
1820
- } finally {
1821
- f.value = !1;
1822
- }
1823
- }, z = {
1824
- title: {
1825
- text: "暂无数据",
1826
- x: "center",
1827
- y: "center",
1828
- textStyle: {
1829
- fontSize: 14,
1830
- fontWeight: "normal"
1831
- }
1832
- }
1833
- }, B = () => {
1834
- _(v).dataset.length === 0 ? u.value.setOption(z, !0) : u.value.setOption(L.value, !0);
1835
- }, j = () => {
1836
- _(o.value).type !== "customGraph" && $();
1837
- }, D = () => {
1838
- var b;
1839
- (b = u.value) == null || b.resize();
1840
- };
1841
- return Qe(
1842
- L,
1843
- () => {
1844
- B();
1845
- },
1846
- {
1847
- deep: !0
1848
- }
1849
- ), Qe(
1850
- () => _(o.value).optionCode,
1851
- (b) => {
1852
- try {
1853
- const O = eval;
1854
- m.value = O(b);
1855
- } catch (O) {
1856
- console.error(O);
1857
- }
1858
- },
1859
- {
1860
- immediate: !0
1861
- }
1862
- ), to(() => {
1863
- d.value && (r = new ResizeObserver(D), r.observe(d.value)), u.value = ro.init(s.value);
1864
- }), oo(() => {
1865
- u.value.dispose(), r && (r.disconnect(), r = null);
1866
- }), t({
1867
- refreshData: j
1868
- }), {
1869
- echartRef: s,
1870
- loading: f
1871
- };
1872
- }
1873
- });
1874
- const Tn = {
1875
- class: "ecan-chart-graph",
1876
- ref: "chartWrapRef"
1877
- }, _n = {
1878
- style: { width: "100%", height: "100%" },
1879
- ref: "echartRef"
1880
- };
1881
- function In(e, t, o, n, i, r) {
1882
- const l = Fe("a-spin");
1883
- return Me(), je("div", Tn, [
1884
- Pe(l, {
1885
- spinning: e.loading,
1886
- wrapperClassName: "chart-spin",
1887
- tip: "数据加载中..."
1888
- }, {
1889
- default: no(() => [
1890
- _t("div", _n, null, 512)
1891
- ]),
1892
- _: 1
1893
- }, 8, ["spinning"])
1894
- ], 512);
1895
- }
1896
- const Dn = /* @__PURE__ */ kt(On, [["render", In], ["__scopeId", "data-v-845f7ab1"]]), Nn = It(Dn), Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1897
- __proto__: null,
1898
- EcanChartGraph: Nn,
1899
- EcanIndicatorLibrary: Fo
1900
- }, Symbol.toStringTag, { value: "Module" })), En = (e, t) => {
1901
- const { request: o } = t;
1902
- e.provide("$request", o), Object.keys(Lt).forEach((n) => {
1903
- const i = Lt[n];
1904
- i.install && e.use(i);
1905
- });
1906
- }, Rn = {
1907
- install: En
1908
- };
1909
- export {
1910
- jn as C,
1911
- lo as D,
1912
- Fo as E,
1913
- Et as G,
1914
- Nt as I,
1915
- So as M,
1916
- vo as P,
1917
- Dt as R,
1918
- so as S,
1919
- po as T,
1920
- co as U,
1921
- kt as _,
1922
- ao as a,
1923
- xo as b,
1924
- Pn as c,
1925
- go as d,
1926
- mo as e,
1927
- $t as f,
1928
- ho as g,
1929
- yo as h,
1930
- Mn as i,
1931
- wo as j,
1932
- bo as k,
1933
- Dn as l,
1934
- ke as m,
1935
- uo as n,
1936
- Ao as o,
1937
- Xe as p,
1938
- Rn as q,
1939
- Nn as r,
1940
- Ln as u,
1941
- yn as y
1942
- };
1943
- //# sourceMappingURL=index-8470f8f5.mjs.map