vue-data-ui 3.7.15 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -43
- package/dist/{Arrow-9T8aUCDR.js → Arrow-pvqmWZAQ.js} +1 -1
- package/dist/{BaseDraggableDialog-DZVSjhEw.js → BaseDraggableDialog-BYwNgX3M.js} +2 -2
- package/dist/{BaseIcon-Dl4VBlHV.js → BaseIcon-CALhpING.js} +8 -4
- package/dist/{ColorPicker-BrMbLQds.js → ColorPicker-B_9b0REv.js} +2 -2
- package/dist/{DataTable-Ho3Bf5oq.js → DataTable-Ca1twcf7.js} +2 -2
- package/dist/{Legend-DSyOOSJ1.js → Legend-Djkw4FGq.js} +2 -2
- package/dist/{NonSvgPenAndPaper-MX5IsudW.js → NonSvgPenAndPaper-DCQPVA4M.js} +3 -3
- package/dist/{PackageVersion-BAF3mEBQ.js → PackageVersion-B9RA2_BM.js} +1 -1
- package/dist/{PenAndPaper-kymjF6_b.js → PenAndPaper-DscVdZ1u.js} +3 -3
- package/dist/{Shape-rPzC8L-O.js → Shape-BEGGcaL8.js} +1 -1
- package/dist/{Slicer-DScoMPmj.js → Slicer-DaUi0o8i.js} +2 -2
- package/dist/{SlicerPreview-B1QUTxTZ.js → SlicerPreview-Bk-h_ANq.js} +2 -2
- package/dist/{SparkTooltip-reDvtQYF.js → SparkTooltip-BWdCP-h3.js} +1 -1
- package/dist/{Title-Hk29BxeL.js → Title-CgkWUXeV.js} +1 -1
- package/dist/{Tooltip-De7i-i20.js → Tooltip-OHx7yHlS.js} +1 -1
- package/dist/{UserOptions-DgscxIaa.js → UserOptions-ChRXLqps.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +5 -0
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BG68zYm5.js → dom-to-png-VQEAYRVr.js} +1 -1
- package/dist/{img-BYzbY8TZ.js → img-CwrkWkkl.js} +1 -1
- package/dist/{lib-DUaaQGCv.js → lib-qMPkcvmh.js} +194 -179
- package/dist/{pdf--SSvtzbF.js → pdf-BMMrFX8S.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +147 -6
- package/dist/types/vue-ui-dag.d.ts +16 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DBJqy2aF.js → useAutoSizeLabelsInsideViewbox-CY90KinM.js} +1 -1
- package/dist/{useNestedProp-CVGae3Qt.js → useNestedProp-DOOBu_sL.js} +269 -185
- package/dist/usePanZoom-DMfuOfaC.js +135 -0
- package/dist/{usePrinter-BdVu83IN.js → usePrinter-CjGh4mFJ.js} +2 -2
- package/dist/vue-data-ui-BgQPEjgE.js +351 -0
- package/dist/vue-data-ui.js +202 -216
- package/dist/{vue-ui-3d-bar-Cg4nzpjZ.js → vue-ui-3d-bar-BHcSmBFt.js} +6 -6
- package/dist/{vue-ui-accordion-B3SlkXqV.js → vue-ui-accordion-BWfQ8Imt.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BGA_e57_.js → vue-ui-age-pyramid-CKtsF5IW.js} +25 -25
- package/dist/{vue-ui-annotator-BHmNl_oD.js → vue-ui-annotator-DQmmDTg7.js} +7 -7
- package/dist/{vue-ui-bullet-B8Td03RZ.js → vue-ui-bullet-CZKHPSsG.js} +7 -7
- package/dist/{vue-ui-candlestick-aRpv_WG-.js → vue-ui-candlestick-DW7yeLnE.js} +39 -39
- package/dist/{vue-ui-carousel-table-yjrmp9Q4.js → vue-ui-carousel-table-Bv0TZYW1.js} +4 -4
- package/dist/{vue-ui-chestnut-mlal6Cjv.js → vue-ui-chestnut-BUqGBycr.js} +5 -5
- package/dist/{vue-ui-chord-Ddbwnzl7.js → vue-ui-chord-Awtzhq_0.js} +8 -8
- package/dist/{vue-ui-circle-pack-DUw81Lbf.js → vue-ui-circle-pack-WTa2Mj2O.js} +37 -37
- package/dist/vue-ui-cursor-D6_m463R.js +252 -0
- package/dist/vue-ui-dag-tle30Ehr.js +2727 -0
- package/dist/{vue-ui-dashboard-BzIopzfw.js → vue-ui-dashboard-BLgMwKmT.js} +68 -68
- package/dist/vue-ui-digits-DIZ8pi6C.js +200 -0
- package/dist/{vue-ui-donut-D-uqv9-W.js → vue-ui-donut-DY8Q-PAg.js} +88 -88
- package/dist/{vue-ui-donut-evolution-C25j-w7G.js → vue-ui-donut-evolution-DGnq03PX.js} +85 -85
- package/dist/{vue-ui-dumbbell-DaBN6kZz.js → vue-ui-dumbbell-xRMH2Mlv.js} +33 -33
- package/dist/{vue-ui-flow-LBrbktKK.js → vue-ui-flow-C0a8rOyT.js} +42 -42
- package/dist/{vue-ui-funnel-StsSjaZJ.js → vue-ui-funnel-D6krkF1a.js} +19 -19
- package/dist/{vue-ui-galaxy-DATC0Ww1.js → vue-ui-galaxy-BCkJt9OE.js} +59 -59
- package/dist/{vue-ui-gauge-BuSVuoeo.js → vue-ui-gauge-BaH-VYAi.js} +25 -25
- package/dist/{vue-ui-gizmo-B4Du388h.js → vue-ui-gizmo-BnCONs1t.js} +3 -3
- package/dist/{vue-ui-heatmap-C7jHSpqL.js → vue-ui-heatmap-BYoD6XaS.js} +67 -67
- package/dist/{vue-ui-history-plot-CMGhB2Zv.js → vue-ui-history-plot-BZBtIBsY.js} +43 -43
- package/dist/{vue-ui-horizontal-bar-BlG3kfkk.js → vue-ui-horizontal-bar-DsDDKUa6.js} +69 -69
- package/dist/{vue-ui-kpi-CTUnzHcT.js → vue-ui-kpi-Dn750UNZ.js} +3 -3
- package/dist/{vue-ui-mini-loader-DYMh6g7y.js → vue-ui-mini-loader-44NP38K0.js} +2 -2
- package/dist/{vue-ui-molecule-BNwKqzIg.js → vue-ui-molecule-C994_mOK.js} +53 -53
- package/dist/{vue-ui-mood-radar-Bpfe33cj.js → vue-ui-mood-radar-BI2SAtcM.js} +7 -7
- package/dist/{vue-ui-nested-donuts-CG6vyTLr.js → vue-ui-nested-donuts-CSF_bA-I.js} +38 -38
- package/dist/{vue-ui-onion-BNrW85xB.js → vue-ui-onion-L5ULuI3B.js} +38 -38
- package/dist/{vue-ui-parallel-coordinate-plot-prQ8DLgP.js → vue-ui-parallel-coordinate-plot-CYetuoa5.js} +43 -43
- package/dist/{vue-ui-quadrant-mFM3WtKm.js → vue-ui-quadrant-Diwm1-e6.js} +8 -8
- package/dist/{vue-ui-quick-chart-CmJEoZEj.js → vue-ui-quick-chart-YBj4Iyk6.js} +51 -51
- package/dist/{vue-ui-radar-MheG5gvf.js → vue-ui-radar-D76Mi-4u.js} +41 -41
- package/dist/{vue-ui-rating-BAfHKHmb.js → vue-ui-rating-CJjSt6-z.js} +2 -2
- package/dist/{vue-ui-relation-circle-BPZDXdVc.js → vue-ui-relation-circle-BlYazckd.js} +19 -19
- package/dist/{vue-ui-ridgeline-BPDURc5t.js → vue-ui-ridgeline-DW8JqGxN.js} +8 -8
- package/dist/{vue-ui-rings-ByeUycTV.js → vue-ui-rings-De3shW_r.js} +37 -37
- package/dist/{vue-ui-scatter-HkSLoM2F.js → vue-ui-scatter-oDhPqRJq.js} +8 -8
- package/dist/{vue-ui-skeleton-DtciU6S2.js → vue-ui-skeleton-BUIXG_mY.js} +3 -3
- package/dist/vue-ui-smiley-Cni8Q56U.js +377 -0
- package/dist/{vue-ui-spark-trend-lSw8HYoA.js → vue-ui-spark-trend-D1Zt5np6.js} +16 -16
- package/dist/{vue-ui-sparkbar-DZlTPWdS.js → vue-ui-sparkbar-CdmXCSnj.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Cwl9Ksz2.js → vue-ui-sparkgauge-Dn2PQhZj.js} +17 -17
- package/dist/{vue-ui-sparkhistogram-Bq2DS4V0.js → vue-ui-sparkhistogram-nrkglHJk.js} +4 -4
- package/dist/{vue-ui-sparkline-DbkCbelr.js → vue-ui-sparkline-tz8fAf2C.js} +31 -31
- package/dist/{vue-ui-sparkstackbar-DWDEh2j6.js → vue-ui-sparkstackbar-BQPSsF5Q.js} +3 -3
- package/dist/{vue-ui-stackbar-BhbkdK0G.js → vue-ui-stackbar-DMO3YIQp.js} +9 -9
- package/dist/{vue-ui-stackline-DqKYCBDP.js → vue-ui-stackline-BQo4KoIK.js} +55 -55
- package/dist/{vue-ui-strip-plot-BUbyj8j8.js → vue-ui-strip-plot-CJpmLgCV.js} +28 -28
- package/dist/{vue-ui-table-B1bx46AB.js → vue-ui-table-Cp4ee_1a.js} +5 -5
- package/dist/{vue-ui-table-heatmap-kuly5Mc1.js → vue-ui-table-heatmap-1qpMxFyu.js} +5 -5
- package/dist/{vue-ui-table-sparkline-B9YLMDpp.js → vue-ui-table-sparkline-wSJjRJc4.js} +4 -4
- package/dist/{vue-ui-thermometer-DGM9Cnnw.js → vue-ui-thermometer-DA8pG0Tr.js} +19 -19
- package/dist/{vue-ui-timer-C1uo5WJb.js → vue-ui-timer-Bc0J-YWP.js} +12 -12
- package/dist/{vue-ui-tiremarks-B-xq7Ivj.js → vue-ui-tiremarks-DqYsca6Q.js} +6 -6
- package/dist/{vue-ui-treemap-VI1FYNqD.js → vue-ui-treemap-BQsPzEFA.js} +51 -51
- package/dist/{vue-ui-waffle-WdacXwVf.js → vue-ui-waffle-5wkXlR4p.js} +69 -69
- package/dist/{vue-ui-wheel-C7yfIwbK.js → vue-ui-wheel-CkZko1RX.js} +6 -6
- package/dist/{vue-ui-word-cloud-BlNxODSZ.js → vue-ui-word-cloud-52bv_Ba-.js} +41 -41
- package/dist/{vue-ui-world-vfrFZPI1.js → vue-ui-world-oIyf91PY.js} +6 -6
- package/dist/{vue-ui-xy-DHN5H4Ln.js → vue-ui-xy-DIEBv1b8.js} +75 -75
- package/dist/{vue-ui-xy-canvas-B3oAOFin.js → vue-ui-xy-canvas-pnm8ar87.js} +127 -127
- package/package.json +4 -3
- package/dist/usePanZoom-DZtyJi5q.js +0 -127
- package/dist/vue-data-ui-BcTiYl7u.js +0 -337
- package/dist/vue-ui-cursor-CIynd5w9.js +0 -229
- package/dist/vue-ui-digits-BDVx5bMH.js +0 -154
- package/dist/vue-ui-smiley-B8k0b8-R.js +0 -852
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { unref as
|
|
2
|
-
const
|
|
3
|
-
dataset:
|
|
4
|
-
datasetAttribute:
|
|
5
|
-
datasetAttributeEmpty:
|
|
6
|
-
datasetSerieAttribute:
|
|
7
|
-
notBuildable:
|
|
8
|
-
attributeWrongValue:
|
|
1
|
+
import { unref as tt, isRef as nt, toRaw as ft } from "vue";
|
|
2
|
+
const ht = "#COMP# dataset prop is either missing, undefined or empty.", Ft = "#COMP# dataset is missing the '#ATTR#' attribute.", dt = "#COMP# dataset '#ATTR#' attribute cannot be empty.", gt = "#COMP# dataset #KEY# item at index #INDX# is missing the '#ATTR#' attribute.", pt = "#COMP# : Chart could not be built. Dataset is not formatted correctly", Et = "#COMP# : A wrong value was provided to the #ATTR# attribute (#KEY# is not a valid value).", At = {
|
|
3
|
+
dataset: ht,
|
|
4
|
+
datasetAttribute: Ft,
|
|
5
|
+
datasetAttributeEmpty: dt,
|
|
6
|
+
datasetSerieAttribute: gt,
|
|
7
|
+
notBuildable: pt,
|
|
8
|
+
attributeWrongValue: Et
|
|
9
9
|
};
|
|
10
|
-
function
|
|
10
|
+
function Yt(t, n, e, o, r, s = 1.99999, c = 2, i = 1.45, l = 360, u = 105.25, a = 0) {
|
|
11
11
|
const { series: f } = t;
|
|
12
12
|
if (!f || f.length === 0)
|
|
13
13
|
return [];
|
|
@@ -62,13 +62,13 @@ function kt(t, n, e, o, r, s = 1.99999, c = 2, i = 1.45, l = 360, u = 105.25, a
|
|
|
62
62
|
}
|
|
63
63
|
return F;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function et([t, n], [e, o]) {
|
|
66
66
|
return [t + e, n + o];
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function rt([[t, n], [e, o]], [r, s]) {
|
|
69
69
|
return [t * r + n * s, e * r + o * s];
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function yt(t) {
|
|
72
72
|
return [
|
|
73
73
|
[Math.cos(t), -Math.sin(t)],
|
|
74
74
|
[Math.sin(t), Math.cos(t)]
|
|
@@ -76,14 +76,14 @@ function At(t) {
|
|
|
76
76
|
}
|
|
77
77
|
function Z([t, n], [e, o], [r, s], c, i = 360, l = 2, u = !1) {
|
|
78
78
|
s = s % (l * Math.PI);
|
|
79
|
-
const a =
|
|
80
|
-
|
|
79
|
+
const a = yt(c), [f, h] = et(
|
|
80
|
+
rt(a, [
|
|
81
81
|
e * Math.cos(r),
|
|
82
82
|
o * Math.sin(r)
|
|
83
83
|
]),
|
|
84
84
|
[t, n]
|
|
85
|
-
), [F, d] =
|
|
86
|
-
|
|
85
|
+
), [F, d] = et(
|
|
86
|
+
rt(a, [
|
|
87
87
|
e * Math.cos(r + s),
|
|
88
88
|
o * Math.sin(r + s)
|
|
89
89
|
]),
|
|
@@ -105,12 +105,12 @@ function Z([t, n], [e, o], [r, s], c, i = 360, l = 2, u = !1) {
|
|
|
105
105
|
].join(" ")}`
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function xt({ defaultConfig: t, userConfig: n }) {
|
|
109
109
|
const e = { ...t };
|
|
110
110
|
return Object.keys(e).forEach((o) => {
|
|
111
111
|
if (Object.hasOwn(n, o)) {
|
|
112
112
|
const r = n[o];
|
|
113
|
-
r === null ? e[o] = null : ["boolean", "function"].includes(typeof r) ? e[o] = r : ["string", "number"].includes(typeof r) ?
|
|
113
|
+
r === null ? e[o] = null : ["boolean", "function"].includes(typeof r) ? e[o] = r : ["string", "number"].includes(typeof r) ? lt(r) && (e[o] = r) : Array.isArray(e[o]) ? mt({ userConfig: n, key: o }) && (e[o] = r) : bt({ userConfig: n, key: o }) && (e[o] = xt({
|
|
114
114
|
defaultConfig: e[o],
|
|
115
115
|
userConfig: r
|
|
116
116
|
}));
|
|
@@ -122,25 +122,25 @@ function yt({ defaultConfig: t, userConfig: n }) {
|
|
|
122
122
|
}
|
|
123
123
|
}), e;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function mt({ userConfig: t, key: n }) {
|
|
126
126
|
return Object.hasOwn(t, n) && Array.isArray(t[n]) && t[n].length >= 0;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function bt({ userConfig: t, key: n }) {
|
|
129
129
|
return Object.hasOwn(t, n) && !Array.isArray(t[n]) && typeof t[n] == "object";
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function lt(t) {
|
|
132
132
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(t);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Ht(t) {
|
|
135
135
|
return ![void 0, NaN, 1 / 0, -1 / 0].includes(t);
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
return
|
|
137
|
+
function Ut(t, n = 0) {
|
|
138
|
+
return lt(t) ? t : n;
|
|
139
139
|
}
|
|
140
140
|
function A(t, n = 0) {
|
|
141
141
|
return isNaN(t) ? n : t;
|
|
142
142
|
}
|
|
143
|
-
const
|
|
143
|
+
const st = [
|
|
144
144
|
"#1f77b4",
|
|
145
145
|
"#aec7e8",
|
|
146
146
|
"#ff7f0e",
|
|
@@ -182,7 +182,7 @@ const rt = [
|
|
|
182
182
|
"#ce6dbd",
|
|
183
183
|
"#de9ed6"
|
|
184
184
|
];
|
|
185
|
-
function
|
|
185
|
+
function Gt(t = "default") {
|
|
186
186
|
switch (t) {
|
|
187
187
|
case "hack":
|
|
188
188
|
return v.hack;
|
|
@@ -199,8 +199,8 @@ function Ut(t = "default") {
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
const v = {
|
|
202
|
-
default:
|
|
203
|
-
dark:
|
|
202
|
+
default: st,
|
|
203
|
+
dark: st,
|
|
204
204
|
celebration: [
|
|
205
205
|
"#D32F2F",
|
|
206
206
|
"#E64A19",
|
|
@@ -363,12 +363,12 @@ const v = {
|
|
|
363
363
|
"#C3C5C5",
|
|
364
364
|
"#A0AC94"
|
|
365
365
|
]
|
|
366
|
-
},
|
|
367
|
-
function
|
|
366
|
+
}, ot = ["00", "03", "05", "08", "0A", "0D", "0F", "12", "14", "17", "1A", "1C", "1F", "21", "24", "26", "29", "2B", "2E", "30", "33", "36", "38", "3B", "3D", "40", "42", "45", "47", "4A", "4D", "4F", "52", "54", "57", "59", "5C", "5E", "61", "63", "66", "69", "6B", "6E", "70", "73", "75", "78", "7A", "7D", "80", "82", "85", "87", "8A", "8C", "8F", "91", "94", "96", "99", "9C", "9E", "A1", "A3", "A6", "A8", "AB", "AD", "B0", "B3", "B5", "B8", "BA", "BD", "BF", "C2", "C4", "C7", "C9", "CC", "CF", "D1", "D4", "D6", "D9", "DB", "DE", "E0", "E3", "E6", "E8", "EB", "ED", "F0", "F2", "F5", "F7", "FA", "FC", "FF"];
|
|
367
|
+
function ut(t) {
|
|
368
368
|
const n = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i, e = /^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i, o = /^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)$/i, r = /^hsla?\((\d+),\s*([\d.]+)%,\s*([\d.]+)%(?:,\s*([\d.]+))?\)$/i;
|
|
369
369
|
if (t == null || typeof t == "number" && isNaN(t))
|
|
370
370
|
return null;
|
|
371
|
-
if (t =
|
|
371
|
+
if (t = nt?.(t) ? tt(t) : t, t = It(t), Array.isArray(t)) {
|
|
372
372
|
const [i, l, u, a = 1] = t;
|
|
373
373
|
t = `rgba(${i},${l},${u},${a})`;
|
|
374
374
|
} else if (typeof t == "object")
|
|
@@ -395,7 +395,7 @@ function lt(t) {
|
|
|
395
395
|
} else if (s = t.match(r)) {
|
|
396
396
|
const [, i, l, u, a] = s;
|
|
397
397
|
c = a ? parseFloat(a) : 1;
|
|
398
|
-
const [f, h, F] =
|
|
398
|
+
const [f, h, F] = Mt(Number(i), Number(l), Number(u));
|
|
399
399
|
return `#${G(f)}${G(h)}${G(F)}${G(Math.round(c * 255))}`;
|
|
400
400
|
}
|
|
401
401
|
return null;
|
|
@@ -404,7 +404,7 @@ function G(t) {
|
|
|
404
404
|
const n = Number(t).toString(16);
|
|
405
405
|
return n.length === 1 ? "0" + n : n;
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function Mt(t, n, e, o = 1) {
|
|
408
408
|
t /= 360, n /= 100, e /= 100;
|
|
409
409
|
let r, s, c;
|
|
410
410
|
if (n === 0)
|
|
@@ -420,7 +420,7 @@ function bt(t, n, e, o = 1) {
|
|
|
420
420
|
o
|
|
421
421
|
];
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function vt(t, n) {
|
|
424
424
|
const e = t.length === 9 ? t.substring(0, 7) : t, o = t.length === 9 ? t.substring(7, 9) : null, r = (f) => ({
|
|
425
425
|
r: parseInt(f.substring(1, 3), 16),
|
|
426
426
|
g: parseInt(f.substring(3, 5), 16),
|
|
@@ -465,7 +465,7 @@ function Gt(t, n) {
|
|
|
465
465
|
const u = c(l);
|
|
466
466
|
return `#${(u.r << 16 | u.g << 8 | u.b).toString(16).padStart(6, "0")}` + (o || "");
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function Ct({
|
|
469
469
|
centerX: t,
|
|
470
470
|
centerY: n,
|
|
471
471
|
outerPoints: e,
|
|
@@ -484,14 +484,14 @@ function Mt({
|
|
|
484
484
|
coordinates: l
|
|
485
485
|
};
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function Xt({
|
|
488
488
|
plot: t,
|
|
489
489
|
radius: n,
|
|
490
490
|
sides: e,
|
|
491
491
|
rotation: o = 0
|
|
492
492
|
}) {
|
|
493
493
|
const r = t.x, s = t.y, c = e / 2;
|
|
494
|
-
return
|
|
494
|
+
return Ct({
|
|
495
495
|
centerX: r,
|
|
496
496
|
centerY: s,
|
|
497
497
|
outerPoints: c,
|
|
@@ -499,7 +499,7 @@ function vt({
|
|
|
499
499
|
rotation: o
|
|
500
500
|
});
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function $t({
|
|
503
503
|
centerX: t,
|
|
504
504
|
centerY: n,
|
|
505
505
|
innerCirclePoints: e,
|
|
@@ -514,13 +514,13 @@ function Ct({
|
|
|
514
514
|
}
|
|
515
515
|
return l;
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function jt({
|
|
518
518
|
plot: t,
|
|
519
519
|
radius: n,
|
|
520
520
|
apexes: e = 5
|
|
521
521
|
}) {
|
|
522
522
|
const o = t.x, r = t.y, s = e, c = n * 3.5 / s, l = c * 2;
|
|
523
|
-
return
|
|
523
|
+
return $t({
|
|
524
524
|
centerX: o,
|
|
525
525
|
centerY: r,
|
|
526
526
|
innerCirclePoints: s,
|
|
@@ -528,7 +528,7 @@ function Xt({
|
|
|
528
528
|
outerRadius: l
|
|
529
529
|
});
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function Kt({ series: t }) {
|
|
532
532
|
if (!Array.isArray(t) || t.length === 0) return "";
|
|
533
533
|
const n = Array.from(
|
|
534
534
|
new Map(
|
|
@@ -566,7 +566,7 @@ function jt({ series: t }) {
|
|
|
566
566
|
function X(t) {
|
|
567
567
|
return t * Math.PI / 180;
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function Wt(t) {
|
|
570
570
|
if (t) {
|
|
571
571
|
let n = t, e = 1;
|
|
572
572
|
if (n.startsWith("rgba")) {
|
|
@@ -588,21 +588,21 @@ function K(t) {
|
|
|
588
588
|
function Q(t) {
|
|
589
589
|
return !!t && (t.__v_isRef || t.__v_isReactive || t.__v_isReadonly || t.effect || t.dep || t.deps || t.subs);
|
|
590
590
|
}
|
|
591
|
-
function
|
|
592
|
-
return t === "" ? "#000000" : t === "transparent" ? "#FFFFFF00" :
|
|
591
|
+
function it(t) {
|
|
592
|
+
return t === "" ? "#000000" : t === "transparent" ? "#FFFFFF00" : ut(t) ?? t;
|
|
593
593
|
}
|
|
594
594
|
function q(t, n = /* @__PURE__ */ new WeakSet()) {
|
|
595
|
-
const e =
|
|
595
|
+
const e = ft(t);
|
|
596
596
|
if (!K(e) || n.has(e)) return e;
|
|
597
597
|
n.add(e);
|
|
598
598
|
for (const o in e) {
|
|
599
|
-
const r =
|
|
599
|
+
const r = nt(e[o]) ? tt(e[o]) : e[o];
|
|
600
600
|
if (o === "color" || o === "backgroundColor") {
|
|
601
|
-
typeof r == "string" && (e[o] =
|
|
601
|
+
typeof r == "string" && (e[o] = it(r));
|
|
602
602
|
continue;
|
|
603
603
|
}
|
|
604
604
|
if (o === "stroke") {
|
|
605
|
-
typeof r == "string" ? e[o] =
|
|
605
|
+
typeof r == "string" ? e[o] = it(r) : K(r) && !Q(r) && q(r, n);
|
|
606
606
|
continue;
|
|
607
607
|
}
|
|
608
608
|
if (Array.isArray(r)) {
|
|
@@ -614,7 +614,7 @@ function q(t, n = /* @__PURE__ */ new WeakSet()) {
|
|
|
614
614
|
}
|
|
615
615
|
return e;
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function Vt(t) {
|
|
618
618
|
const n = t?.length ?? 0;
|
|
619
619
|
if (n < 2) return { x1: 0, y1: 0, x2: 0, y2: 0, slope: 0, trend: 0 };
|
|
620
620
|
let e = 0, o = 0, r = 0, s = 0;
|
|
@@ -627,17 +627,17 @@ function Wt(t) {
|
|
|
627
627
|
const x = n * y - F * F || 1, E = (n * p - F * d) / x, C = (d - E * F) / n, R = C, O = E * (n - 1) + C, m = Math.max(Math.abs(R), Math.abs(d / n), Math.abs(O), 1e-9), $ = (O - R) / m;
|
|
628
628
|
return { x1: u, y1: f, x2: a, y2: h, slope: i, trend: $ };
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function _t(t) {
|
|
631
631
|
const n = Math.floor(t.length / 2), e = [...t].sort((o, r) => o - r);
|
|
632
632
|
return t.length % 2 !== 0 ? e[n] : (e[n - 1] + e[n]) / 2;
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function zt(t) {
|
|
635
635
|
let n = [];
|
|
636
636
|
for (let e = 0; e < t.length; e += 1)
|
|
637
637
|
n.push(`${A(t[e].x)},${A(t[e].y)} `);
|
|
638
638
|
return n.join(" ").trim();
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function Zt(t) {
|
|
641
641
|
if (t.length < 2) return "0,0";
|
|
642
642
|
const n = t.length - 1, e = [`${A(t[0].x)},${A(t[0].y)}`], o = [], r = [], s = [], c = [];
|
|
643
643
|
for (let i = 0; i < n; i += 1)
|
|
@@ -656,7 +656,7 @@ function zt(t) {
|
|
|
656
656
|
}
|
|
657
657
|
return e.join(" ");
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function Qt(t, n = 0.2) {
|
|
660
660
|
function e(c, i) {
|
|
661
661
|
const l = i.x - c.x, u = i.y - c.y;
|
|
662
662
|
return {
|
|
@@ -677,7 +677,7 @@ function Zt(t, n = 0.2) {
|
|
|
677
677
|
""
|
|
678
678
|
);
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function qt() {
|
|
681
681
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(t) {
|
|
682
682
|
const n = Math.random() * 16 | 0;
|
|
683
683
|
return (t == "x" ? n : n & 3 | 8).toString(16);
|
|
@@ -690,7 +690,7 @@ function W(t, n = !1, e = 16, o = !1) {
|
|
|
690
690
|
function V(t, n = 16, e = 16) {
|
|
691
691
|
return t.center.endY > t.cy ? t.center.endY + e : t.center.endY < t.cy ? t.center.endY - n : t.center.endY;
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function Jt({
|
|
694
694
|
initX: t,
|
|
695
695
|
initY: n,
|
|
696
696
|
offset: e,
|
|
@@ -703,7 +703,7 @@ function qt({
|
|
|
703
703
|
y: n + e * Math.sin(s)
|
|
704
704
|
};
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function Dt(t) {
|
|
707
707
|
const n = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
708
708
|
n.setAttribute("d", t);
|
|
709
709
|
const e = n.getTotalLength();
|
|
@@ -719,20 +719,20 @@ function $t(t) {
|
|
|
719
719
|
const { x: i, y: l } = n.getPointAtLength(s);
|
|
720
720
|
return { x: i, y: l };
|
|
721
721
|
}
|
|
722
|
-
function
|
|
723
|
-
const { x: u } =
|
|
722
|
+
function tn(t, n = !1, e = 16, o = 16, r = !1, s = !1, c = 0, i = 12, l = !1) {
|
|
723
|
+
const { x: u } = Dt(t.path), a = `${W(t).x},${V(t, e, o) - 4} `;
|
|
724
724
|
let f = "", h, F;
|
|
725
725
|
u > t.cx ? (h = W(t).x - i, F = V(t, e, o) - 4, f = `${h},${F}`) : u < t.cx ? (h = W(t).x + i, F = V(t, e, o) - 4, f = `${h},${F}`) : (h = W(t).x + i, F = V(t, e, o) - 4, f = `${h},${F}`);
|
|
726
726
|
const d = ` ${t.center.endX},${t.center.endY}`;
|
|
727
727
|
return l ? s ? `M${f} Q${f} ${d}` : `M${a} Q${f} ${d}` : `M${s ? "" : a}${f}${d}`;
|
|
728
728
|
}
|
|
729
|
-
function
|
|
729
|
+
function nn(t) {
|
|
730
730
|
return ![null, void 0, NaN].includes(t);
|
|
731
731
|
}
|
|
732
|
-
function
|
|
732
|
+
function en(t, n) {
|
|
733
733
|
return [...t].map((e) => e[n]).reduce((e, o) => e + o, 0);
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function rn(t, n = !0, e = !1) {
|
|
736
736
|
if (!t.length) return "M0,0";
|
|
737
737
|
let o = "";
|
|
738
738
|
return t.forEach((r) => {
|
|
@@ -740,15 +740,15 @@ function en(t, n = !0, e = !1) {
|
|
|
740
740
|
o += `${r.x},${r.y} `;
|
|
741
741
|
}), e ? o.trim() : `M${o}${n ? "Z" : ""}`;
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function sn({ csvContent: t, title: n = "vue-data-ui" }) {
|
|
744
744
|
const e = encodeURI(t), o = document.createElement("a");
|
|
745
745
|
o.setAttribute("href", e), o.setAttribute("download", `${n}.csv`), document.body.appendChild(o), o.click(), o.remove(), window.URL.revokeObjectURL(e);
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function on(t) {
|
|
748
748
|
return `data:text/csv;charset=utf-8,${t.map((n) => n.join(",")).join(`
|
|
749
749
|
`)}`;
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function cn(t, n) {
|
|
752
752
|
if (!/^#([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t))
|
|
753
753
|
return console.warn("lightenHexColor : Invalid hex color format"), "#000000";
|
|
754
754
|
let e = t.replace("#", "");
|
|
@@ -760,7 +760,7 @@ function on(t, n) {
|
|
|
760
760
|
}
|
|
761
761
|
return u;
|
|
762
762
|
}
|
|
763
|
-
function
|
|
763
|
+
function an(t, n) {
|
|
764
764
|
if (!/^#([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t))
|
|
765
765
|
return console.warn("darkenHexColor: Invalid hex color format"), "#000000";
|
|
766
766
|
let e = t.replace("#", "");
|
|
@@ -777,7 +777,7 @@ function z(t, n) {
|
|
|
777
777
|
let r;
|
|
778
778
|
return n ? o < 1.5 ? r = 1 : o < 3 ? r = 2 : o < 7 ? r = 5 : r = 10 : o <= 1 ? r = 1 : o <= 2 ? r = 2 : o <= 5 ? r = 5 : r = 10, r * Math.pow(10, e);
|
|
779
779
|
}
|
|
780
|
-
function
|
|
780
|
+
function ln(t, n, e, o = !1) {
|
|
781
781
|
const r = o ? n - t : z(n - t, !1), s = o ? r / (e - 1) : z(r / (e - 1), !0), c = Math.floor(t / s) * s, i = Math.ceil(n / s) * s, l = [];
|
|
782
782
|
for (let u = c; u <= i; u += s)
|
|
783
783
|
l.push(u);
|
|
@@ -788,7 +788,7 @@ function an(t, n, e, o = !1) {
|
|
|
788
788
|
ticks: l
|
|
789
789
|
};
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function un(t, n, e, o = !1) {
|
|
792
792
|
const r = o ? n - t : z(n - t, !1), s = o ? r / (e - 1) : z(r / (e - 1), !0), c = Math.floor(t / s) * s, i = Math.ceil(n / s) * s;
|
|
793
793
|
let l = [], u = c;
|
|
794
794
|
for (; u <= i; )
|
|
@@ -800,7 +800,7 @@ function ln(t, n, e, o = !1) {
|
|
|
800
800
|
ticks: l
|
|
801
801
|
};
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function fn(t, n, e, o, r) {
|
|
804
804
|
const s = (h) => {
|
|
805
805
|
let F = parseInt(h.substring(1, 3), 16), d = parseInt(h.substring(3, 5), 16), p = parseInt(h.substring(5, 7), 16), y = 1;
|
|
806
806
|
return h.length === 9 && (y = parseInt(h.substring(7, 9), 16) / 255), { r: F, g: d, b: p, a: y };
|
|
@@ -820,11 +820,11 @@ function un(t, n, e, o, r) {
|
|
|
820
820
|
}, f = i.a + (l.a - i.a) * u;
|
|
821
821
|
return c({ ...a, a: f });
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function hn({ p: t = "", v: n, s: e = "", r: o = 0, space: r = !1, isAnimating: s = !1, regex: c = /[^%]/g, replacement: i = "-", locale: l = null }) {
|
|
824
824
|
const u = l ? Number(Number(n).toFixed(o)).toLocaleString(l) : Number(Number(n).toFixed(o)).toLocaleString(), a = u === 1 / 0 ? "∞" : u === -1 / 0 ? "-∞" : u, f = `${t ?? ""}${r ? " " : ""}${[void 0, null].includes(n) ? "-" : a}${r ? " " : ""}${e ?? ""}`;
|
|
825
825
|
return s ? f.replace(c, i) : f;
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function Fn({ source: t, length: n = 3 }) {
|
|
828
828
|
if (!t && t !== 0)
|
|
829
829
|
return "";
|
|
830
830
|
t = String(t);
|
|
@@ -840,26 +840,26 @@ function hn({ source: t, length: n = 3 }) {
|
|
|
840
840
|
}), o.join().replaceAll(",", "").toUpperCase();
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function dn(t) {
|
|
844
844
|
return !!t && typeof t == "function";
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function gn(t) {
|
|
847
847
|
return typeof t.apply(null, arguments) == "string";
|
|
848
848
|
}
|
|
849
|
-
function
|
|
849
|
+
function pn(t) {
|
|
850
850
|
return Array.isArray(t) ? t.length === 0 : t ? Object.keys(t).length === 0 : !0;
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function En({ componentName: t, type: n, property: e = "", index: o = "", key: r = "", warn: s = !0, debug: c = !0 }) {
|
|
853
853
|
if (!c) return;
|
|
854
854
|
const i = `
|
|
855
|
-
> ${
|
|
855
|
+
> ${At[n].replace("#COMP#", t).replace("#ATTR#", e).replace("#INDX#", o).replace("#KEY#", r)}
|
|
856
856
|
`;
|
|
857
857
|
if (s)
|
|
858
858
|
console.warn(i);
|
|
859
859
|
else
|
|
860
860
|
throw new Error(i);
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function St({ points: t, a: n, b: e, angleStep: o, startX: r, startY: s }) {
|
|
863
863
|
const c = [];
|
|
864
864
|
for (let i = 0; i < t; i++) {
|
|
865
865
|
const l = o * i, u = n + e * l, a = u * Math.cos(l) + r, f = u * Math.sin(l) + s;
|
|
@@ -867,13 +867,13 @@ function Dt({ points: t, a: n, b: e, angleStep: o, startX: r, startY: s }) {
|
|
|
867
867
|
}
|
|
868
868
|
return c;
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function Rt(t) {
|
|
871
871
|
let n = 1 / 0, e = 1 / 0, o = -1 / 0, r = -1 / 0;
|
|
872
872
|
for (const s of t)
|
|
873
873
|
s.x < n && (n = s.x), s.y < e && (e = s.y), s.x > o && (o = s.x), s.y > r && (r = s.y);
|
|
874
874
|
return { minX: n, minY: e, maxX: o, maxY: r, width: o - n || 1, height: r - e || 1 };
|
|
875
875
|
}
|
|
876
|
-
function
|
|
876
|
+
function Bt(t) {
|
|
877
877
|
if (!t.length) return "";
|
|
878
878
|
let n = `M${t[0].x} ${t[0].y}`;
|
|
879
879
|
for (let e = 1; e < t.length - 2; e += 2) {
|
|
@@ -882,7 +882,7 @@ function Rt(t) {
|
|
|
882
882
|
}
|
|
883
883
|
return n;
|
|
884
884
|
}
|
|
885
|
-
function
|
|
885
|
+
function An({
|
|
886
886
|
maxPoints: t,
|
|
887
887
|
a: n = 6,
|
|
888
888
|
b: e = 6,
|
|
@@ -893,19 +893,19 @@ function En({
|
|
|
893
893
|
boxHeight: i,
|
|
894
894
|
padding: l = 12
|
|
895
895
|
}) {
|
|
896
|
-
const u =
|
|
896
|
+
const u = St({ points: t, a: n, b: e, angleStep: o, startX: 0, startY: 0 }), { minX: a, minY: f, maxX: h, maxY: F, width: d, height: p } = Rt(u), y = (a + h) / 2, x = (f + F) / 2, E = Math.max(1, c - 2 * l), C = Math.max(1, i - 2 * l), R = Math.min(E / d, C / p), O = r - y * R, L = s - x * R;
|
|
897
897
|
return function($) {
|
|
898
898
|
const M = Math.max(2, Math.min(Math.round($), u.length)), D = u.slice(0, M).map((g) => ({ x: g.x * R + O, y: g.y * R + L }));
|
|
899
|
-
return
|
|
899
|
+
return Bt(D);
|
|
900
900
|
};
|
|
901
901
|
}
|
|
902
|
-
function
|
|
902
|
+
function yn({ datasetObject: t, requiredAttributes: n }) {
|
|
903
903
|
let e = [];
|
|
904
904
|
return n.forEach((o) => {
|
|
905
905
|
Object.hasOwn(t, o) || e.push(o);
|
|
906
906
|
}), e;
|
|
907
907
|
}
|
|
908
|
-
const
|
|
908
|
+
const ct = {
|
|
909
909
|
ALICEBLUE: "#F0F8FF",
|
|
910
910
|
ANTIQUEWHITE: "#FAEBD7",
|
|
911
911
|
AQUA: "#00FFFF",
|
|
@@ -1048,16 +1048,16 @@ const it = {
|
|
|
1048
1048
|
YELLOWGREEN: "#9ACD32",
|
|
1049
1049
|
REBECCAPURPLE: "#663399"
|
|
1050
1050
|
};
|
|
1051
|
-
function
|
|
1052
|
-
const n =
|
|
1051
|
+
function It(t) {
|
|
1052
|
+
const n = nt?.(t) ? tt(t) : t;
|
|
1053
1053
|
if (typeof n != "string") return n;
|
|
1054
1054
|
const e = n.trim();
|
|
1055
1055
|
if (e === "" || e[0] === "#") return e;
|
|
1056
1056
|
if (e.toLowerCase() === "transparent") return "#FFFFFF00";
|
|
1057
1057
|
const o = e.toUpperCase(), r = o.replace(/GRAY/g, "GREY");
|
|
1058
|
-
return
|
|
1058
|
+
return ct[o] || ct[r] || e;
|
|
1059
1059
|
}
|
|
1060
|
-
const
|
|
1060
|
+
const J = "http://www.w3.org/2000/svg";
|
|
1061
1061
|
function xn(t) {
|
|
1062
1062
|
if (t.length < 2)
|
|
1063
1063
|
return 0;
|
|
@@ -1077,9 +1077,13 @@ function mn({ content: t, fontSize: n, fill: e, x: o, y: r }) {
|
|
|
1077
1077
|
(c, i) => `<tspan x="${o}" y="${r + i * n}" fill="${e}">${c}</tspan>`
|
|
1078
1078
|
).join("");
|
|
1079
1079
|
}
|
|
1080
|
-
function bn({ content: t, fontSize: n, fill: e, x: o }) {
|
|
1081
|
-
|
|
1082
|
-
`)
|
|
1080
|
+
function bn({ content: t, fontSize: n, fill: e, x: o, autoOffset: r = !1 }) {
|
|
1081
|
+
const s = t.split(`
|
|
1082
|
+
`), c = r ? (s.length - 1) * n / 2 : 0;
|
|
1083
|
+
return s.map((i, l) => {
|
|
1084
|
+
const u = l === 0 ? -c : n;
|
|
1085
|
+
return `<tspan x="${o}" dy="${u}" fill="${e}">${i}</tspan>`;
|
|
1086
|
+
}).join("");
|
|
1083
1087
|
}
|
|
1084
1088
|
function Mn({
|
|
1085
1089
|
content: t,
|
|
@@ -1102,7 +1106,7 @@ function Mn({
|
|
|
1102
1106
|
}), i;
|
|
1103
1107
|
}
|
|
1104
1108
|
function Cn(t) {
|
|
1105
|
-
return t.length ? t.map((n) =>
|
|
1109
|
+
return t.length ? t.map((n) => ut(n)) : [];
|
|
1106
1110
|
}
|
|
1107
1111
|
function $n(t, n = null) {
|
|
1108
1112
|
const e = t.replace(/[\p{P}\p{S}]+/gu, " ").trim(), c = (/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Thai}\p{Script=Lao}\p{Script=Khmer}\p{Script=Tibetan}\p{Script=Myanmar}\p{Script=Devanagari}]/u.test(t) ? [...e] : e.split(/\s+/)).filter((i) => i.trim().length > 0).reduce((i, l) => (i[l] ? i[l] += 1 : i[l] = 1, i), {});
|
|
@@ -1191,7 +1195,7 @@ function Bn(t) {
|
|
|
1191
1195
|
![void 0, null, 1 / 0, -1 / 0].includes(o) && !isNaN(o) && (n[r] = (n[r] || 0) + o);
|
|
1192
1196
|
}), n), []);
|
|
1193
1197
|
}
|
|
1194
|
-
function
|
|
1198
|
+
function Lt(t, { value: n, config: e }) {
|
|
1195
1199
|
let o = !1, r = n;
|
|
1196
1200
|
if (typeof t == "function")
|
|
1197
1201
|
try {
|
|
@@ -1205,7 +1209,7 @@ function It(t, { value: n, config: e }) {
|
|
|
1205
1209
|
};
|
|
1206
1210
|
}
|
|
1207
1211
|
function In(t, n, e, o) {
|
|
1208
|
-
const { isValid: r, value: s } =
|
|
1212
|
+
const { isValid: r, value: s } = Lt(t, { value: n, config: o });
|
|
1209
1213
|
return r ? s : e;
|
|
1210
1214
|
}
|
|
1211
1215
|
function Ln(t, n) {
|
|
@@ -1260,7 +1264,7 @@ function Nn(t, n = [], e = !1) {
|
|
|
1260
1264
|
return r(t);
|
|
1261
1265
|
}
|
|
1262
1266
|
function On(t, n = 100) {
|
|
1263
|
-
return t.length === 9 ? t.substring(0, 7) +
|
|
1267
|
+
return t.length === 9 ? t.substring(0, 7) + ot[n] : t + ot[n];
|
|
1264
1268
|
}
|
|
1265
1269
|
function wn({ series: t, center: n, maxRadius: e, hasGhost: o = !1 }) {
|
|
1266
1270
|
const s = 360 / (t.length - (o ? 1 : 0));
|
|
@@ -1388,7 +1392,7 @@ function _(t) {
|
|
|
1388
1392
|
Object.prototype.hasOwnProperty.call(t, e) && (n[e] = _(t[e]));
|
|
1389
1393
|
return n;
|
|
1390
1394
|
}
|
|
1391
|
-
function
|
|
1395
|
+
function Nt(t) {
|
|
1392
1396
|
const n = [];
|
|
1393
1397
|
let e = [];
|
|
1394
1398
|
for (const o of t)
|
|
@@ -1405,7 +1409,7 @@ function Gn(t, n) {
|
|
|
1405
1409
|
}
|
|
1406
1410
|
function vn(t, n) {
|
|
1407
1411
|
if (!t[0]) return [-10, -10, "", -10, -10].toString();
|
|
1408
|
-
const e =
|
|
1412
|
+
const e = Nt(t);
|
|
1409
1413
|
return e.length ? e.map((o) => {
|
|
1410
1414
|
const r = { x: o[0].x, y: n }, s = { x: o.at(-1).x, y: n }, c = [];
|
|
1411
1415
|
return o.forEach((i) => {
|
|
@@ -1413,7 +1417,7 @@ function vn(t, n) {
|
|
|
1413
1417
|
}), [r.x, r.y, ...c, s.x, s.y].toString();
|
|
1414
1418
|
}).join(";") : "";
|
|
1415
1419
|
}
|
|
1416
|
-
function
|
|
1420
|
+
function Ot(t) {
|
|
1417
1421
|
const n = [];
|
|
1418
1422
|
let e = [];
|
|
1419
1423
|
for (const o of t)
|
|
@@ -1439,7 +1443,7 @@ function Xn(t) {
|
|
|
1439
1443
|
return n.trim();
|
|
1440
1444
|
}
|
|
1441
1445
|
function jn(t) {
|
|
1442
|
-
const n =
|
|
1446
|
+
const n = Ot(t);
|
|
1443
1447
|
if (!n.length) return "";
|
|
1444
1448
|
let e = "";
|
|
1445
1449
|
for (const [o, r] of n.entries()) {
|
|
@@ -1496,17 +1500,17 @@ function Kn(t, n, e = !1, o = !0) {
|
|
|
1496
1500
|
function Wn(t) {
|
|
1497
1501
|
return t.toString().toLowerCase().replace(/\s+/g, "-").replace(/[^\w\-]+/g, "").replace(/\-\-+/g, "-").replace(/^-+/, "").replace(/-+$/, "");
|
|
1498
1502
|
}
|
|
1499
|
-
function
|
|
1503
|
+
function wt(t) {
|
|
1500
1504
|
return t && typeof t == "object" && !Array.isArray(t) && Object.keys(t).length === 0 ? null : t;
|
|
1501
1505
|
}
|
|
1502
|
-
function
|
|
1506
|
+
function at(t) {
|
|
1503
1507
|
if (Array.isArray(t))
|
|
1504
|
-
return t.map(
|
|
1508
|
+
return t.map(at);
|
|
1505
1509
|
if (t && typeof t == "object" && !Array.isArray(t)) {
|
|
1506
1510
|
const n = {};
|
|
1507
1511
|
for (const e in t)
|
|
1508
|
-
Object.hasOwn(t, e) && (n[e] =
|
|
1509
|
-
return
|
|
1512
|
+
Object.hasOwn(t, e) && (n[e] = at(t[e]));
|
|
1513
|
+
return wt(n);
|
|
1510
1514
|
}
|
|
1511
1515
|
return t;
|
|
1512
1516
|
}
|
|
@@ -1793,14 +1797,14 @@ function ee(t, { delta: n = 1, delay: e = 20, disableTransitions: o = !0 } = {})
|
|
|
1793
1797
|
});
|
|
1794
1798
|
}, e);
|
|
1795
1799
|
}
|
|
1796
|
-
function
|
|
1800
|
+
function Tt(t) {
|
|
1797
1801
|
let n = null, e = null;
|
|
1798
1802
|
return (...o) => {
|
|
1799
1803
|
const r = JSON.stringify(o);
|
|
1800
1804
|
return r === n || (n = r, e = t(...o)), e;
|
|
1801
1805
|
};
|
|
1802
1806
|
}
|
|
1803
|
-
const re =
|
|
1807
|
+
const re = Tt((t, n, e, o, r, s, c, i) => {
|
|
1804
1808
|
if (t)
|
|
1805
1809
|
return o.length <= 2 ? o.map((E, C) => ({ text: E, absoluteIndex: C })) : o.map((E, C) => ({ text: C === 0 || C === o.length - 1 || c != null && C === c ? E : "", absoluteIndex: C }));
|
|
1806
1810
|
if (!n)
|
|
@@ -1842,93 +1846,104 @@ function se(t) {
|
|
|
1842
1846
|
function oe(t) {
|
|
1843
1847
|
return String(t).replaceAll("&", "&").replaceAll('"', """).replaceAll("<", "<").replaceAll(">", ">");
|
|
1844
1848
|
}
|
|
1849
|
+
function ie(t) {
|
|
1850
|
+
if (!t || typeof t != "string")
|
|
1851
|
+
return null;
|
|
1852
|
+
const n = document.createElementNS(J, "svg");
|
|
1853
|
+
n.setAttribute("xmlns", J);
|
|
1854
|
+
const e = document.createElementNS(J, "path");
|
|
1855
|
+
e.setAttribute("d", t), n.appendChild(e);
|
|
1856
|
+
const o = e.getTotalLength(), r = e.getPointAtLength(o / 2);
|
|
1857
|
+
return { x: r.x, y: r.y };
|
|
1858
|
+
}
|
|
1845
1859
|
export {
|
|
1846
|
-
|
|
1860
|
+
Un as $,
|
|
1847
1861
|
Xn as A,
|
|
1848
|
-
|
|
1862
|
+
zt as B,
|
|
1849
1863
|
ne as C,
|
|
1850
|
-
|
|
1864
|
+
lt as D,
|
|
1851
1865
|
Hn as E,
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1866
|
+
Fn as F,
|
|
1867
|
+
Mn as G,
|
|
1868
|
+
$n as H,
|
|
1869
|
+
Qn as I,
|
|
1870
|
+
_n as J,
|
|
1871
|
+
zn as K,
|
|
1872
|
+
Gt as L,
|
|
1873
|
+
ln as M,
|
|
1874
|
+
un as N,
|
|
1875
|
+
Ht as O,
|
|
1876
|
+
Ut as P,
|
|
1877
|
+
Pn as Q,
|
|
1878
|
+
re as R,
|
|
1879
|
+
Dn as S,
|
|
1880
|
+
A as T,
|
|
1881
|
+
Kn as U,
|
|
1882
|
+
vn as V,
|
|
1883
|
+
Gn as W,
|
|
1884
|
+
J as X,
|
|
1885
|
+
te as Y,
|
|
1886
|
+
gn as Z,
|
|
1887
|
+
mn as _,
|
|
1874
1888
|
In as a,
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1889
|
+
Ln as a0,
|
|
1890
|
+
Rn as a1,
|
|
1891
|
+
Yt as a2,
|
|
1892
|
+
tn as a3,
|
|
1893
|
+
V as a4,
|
|
1894
|
+
W as a5,
|
|
1895
|
+
wn as a6,
|
|
1896
|
+
Jt as a7,
|
|
1897
|
+
bn as a8,
|
|
1898
|
+
Vn as a9,
|
|
1899
|
+
Nn as aa,
|
|
1900
|
+
nn as ab,
|
|
1887
1901
|
en as ac,
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1902
|
+
at as ad,
|
|
1903
|
+
An as ae,
|
|
1904
|
+
Yn as af,
|
|
1905
|
+
_ as ag,
|
|
1906
|
+
rn as ah,
|
|
1907
|
+
Sn as ai,
|
|
1908
|
+
Tn as aj,
|
|
1909
|
+
Kt as ak,
|
|
1910
|
+
Qt as al,
|
|
1911
|
+
xn as am,
|
|
1912
|
+
fn as an,
|
|
1913
|
+
kn as ao,
|
|
1914
|
+
_t as ap,
|
|
1915
|
+
qn as aq,
|
|
1916
|
+
Bn as ar,
|
|
1917
|
+
Wn as as,
|
|
1918
|
+
Jn as at,
|
|
1905
1919
|
oe as au,
|
|
1906
1920
|
se as av,
|
|
1907
1921
|
ee as aw,
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1922
|
+
ot as ax,
|
|
1923
|
+
ie as ay,
|
|
1924
|
+
jt as b,
|
|
1925
|
+
qt as c,
|
|
1926
|
+
hn as d,
|
|
1927
|
+
Xt as e,
|
|
1913
1928
|
Zn as f,
|
|
1914
|
-
|
|
1915
|
-
|
|
1929
|
+
En as g,
|
|
1930
|
+
vt as h,
|
|
1916
1931
|
v as i,
|
|
1917
1932
|
Cn as j,
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1933
|
+
yn as k,
|
|
1934
|
+
ut as l,
|
|
1935
|
+
Vt as m,
|
|
1936
|
+
cn as n,
|
|
1937
|
+
pn as o,
|
|
1938
|
+
st as p,
|
|
1939
|
+
sn as q,
|
|
1940
|
+
an as r,
|
|
1926
1941
|
On as s,
|
|
1927
|
-
|
|
1928
|
-
|
|
1942
|
+
xt as t,
|
|
1943
|
+
on as u,
|
|
1929
1944
|
q as v,
|
|
1930
|
-
|
|
1931
|
-
|
|
1945
|
+
Wt as w,
|
|
1946
|
+
dn as x,
|
|
1932
1947
|
jn as y,
|
|
1933
|
-
|
|
1948
|
+
Zt as z
|
|
1934
1949
|
};
|