vue-data-ui 3.22.8 → 3.22.10
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/dist/{Arrow-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
- package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/BaseIcon-CDTIUIKV.js +483 -0
- package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-CK2-h611.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-D9NvewTT.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-BZ5VnOOS.js → Slicer-WsWTQPKt.js} +368 -363
- package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-3n516NyE.js} +460 -455
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
- package/dist/{UserOptions-16uF1ayB.js → UserOptions-BUQOnoPR.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-bump.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 +1 -1
- 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-geo.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-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
- package/dist/exposedLib-CZbtc2a6.js +25 -0
- package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
- package/dist/{package-gp9pYCfN.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-CLn1VXJ9.js → render-common-DJXFRGhU.js} +10 -10
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/utils.d.ts +40 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-Bx_8d3b_.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
- package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
- package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
- package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
- package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-BUP1JoNs.js} +555 -544
- package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
- package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
- package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/vue-ui-circle-pack-CdBFGYOK.js +1614 -0
- package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-DtQCrMKL.js} +207 -207
- package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
- package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
- package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/vue-ui-gauge-CoL0OzSd.js +926 -0
- package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-CbC5zV3K.js} +66 -61
- package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-CuWssH-D.js} +561 -550
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BdYenScF.js} +3 -3
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
- package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
- package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-B_6GFlaR.js} +336 -331
- package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
- package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
- package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
- package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/vue-ui-rating-CzLGCFWK.js +352 -0
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/{vue-ui-ridgeline-Cp3YP0xe.js → vue-ui-ridgeline-BArLhskj.js} +543 -537
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-KeIPGp9U.js} +426 -423
- package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-C1mYDh4R.js} +120 -107
- package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-EqCqmHmU.js} +145 -140
- package/dist/vue-ui-sparkbar-BPh45vBP.js +398 -0
- package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-CtouPcyW.js} +81 -76
- package/dist/{vue-ui-sparkhistogram-D02ff7ZI.js → vue-ui-sparkhistogram-D4sI0DHN.js} +166 -150
- package/dist/vue-ui-sparkline-BDFZ78Fz.js +1560 -0
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-nMXIY9x8.js} +603 -596
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-BCf5nthl.js} +415 -408
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-Bz7EnsM1.js} +94 -89
- package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-JxNNtb7v.js} +509 -504
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-R9o00A6c.js} +359 -348
- package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-CUt6sU1s.js} +1678 -1652
- package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Do34-UbE.js} +134 -134
- package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
- package/package.json +1 -1
- package/dist/BaseIcon-C2qlyHc7.js +0 -502
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +0 -1238
- package/dist/vue-ui-bullet-CCLnrOLm.js +0 -710
- package/dist/vue-ui-bump-Rq7efdoe.js +0 -1249
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +0 -455
- package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
- package/dist/vue-ui-donut-C3Rt6j-I.js +0 -2410
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
- package/dist/vue-ui-dumbbell-wK7vUB0x.js +0 -1530
- package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
- package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +0 -1683
- package/dist/vue-ui-molecule-CExCqZ08.js +0 -925
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +0 -1487
- package/dist/vue-ui-onion-DwKK9DXn.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +0 -1416
- package/dist/vue-ui-quadrant-ByVg-NBs.js +0 -1978
- package/dist/vue-ui-radar-DE-me6OC.js +0 -1281
- package/dist/vue-ui-rating-CzD3EQ3G.js +0 -343
- package/dist/vue-ui-relation-circle-L7-dTqet.js +0 -924
- package/dist/vue-ui-rings-WzWiEo9W.js +0 -1246
- package/dist/vue-ui-scatter-DwrAydha.js +0 -2413
- package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
- package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
- package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +0 -662
- package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
- package/dist/vue-ui-table-Q3brrivC.js +0 -1338
- package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +0 -1362
- package/dist/vue-ui-xy-canvas-BfgeE3TW.js +0 -1790
|
@@ -231,7 +231,7 @@ var v = {
|
|
|
231
231
|
function b(t) {
|
|
232
232
|
let r = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i, i = /^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i, a = /^rgba?\(\s*([+\-]?\d*\.?\d+%?)(?:\s*,\s*|\s+)([+\-]?\d*\.?\d+%?)(?:\s*,\s*|\s+)([+\-]?\d*\.?\d+%?)(?:\s*(?:,|\/)\s*([+\-]?\d*\.?\d+%?))?\s*\)$/i, o = /^hsla?\(\s*([+\-]?\d*\.?\d+(?:deg)?)(?:\s*,\s*|\s+)([\d.]+)%(?:\s*,\s*|\s+)([\d.]+)%(?:\s*(?:,|\/)\s*([\d.]+%?))?\s*\)$/i, s = /^oklch\(\s*([\d.]+)%?\s*[, ]\s*([\d.]+)%?\s*[, ]\s*([\d.]+)(?:deg)?\s*(?:\/\s*([\d.]+%?)\s*)?\)$/i, c = /^lch\(/i;
|
|
233
233
|
if (t == null || typeof t == "number" && isNaN(t)) return null;
|
|
234
|
-
if (t = e?.(t) ? n(t) : t, t =
|
|
234
|
+
if (t = e?.(t) ? n(t) : t, t = Ue(t), Array.isArray(t)) {
|
|
235
235
|
let [e, n, r, i = 1] = t;
|
|
236
236
|
t = `rgba(${e},${n},${r},${i})`;
|
|
237
237
|
} else if (typeof t == "object") if (Number.isFinite(t.r) && Number.isFinite(t.g) && Number.isFinite(t.b)) {
|
|
@@ -560,15 +560,26 @@ function fe(e) {
|
|
|
560
560
|
};
|
|
561
561
|
}
|
|
562
562
|
function pe(e) {
|
|
563
|
-
|
|
564
|
-
|
|
563
|
+
if (!Array.isArray(e) || e.length === 0) return null;
|
|
564
|
+
let t = e.filter(Number.isFinite);
|
|
565
|
+
if (t.length === 0) return null;
|
|
566
|
+
if (t.length === 1) return t[0];
|
|
567
|
+
t.sort((e, t) => e - t);
|
|
568
|
+
let n = Math.floor(t.length / 2);
|
|
569
|
+
return t.length % 2 == 1 ? t[n] : t[n - 1] / 2 + t[n] / 2;
|
|
565
570
|
}
|
|
566
571
|
function me(e) {
|
|
572
|
+
if (!Array.isArray(e) || e.length === 0) return null;
|
|
573
|
+
let t = 0, n = 0;
|
|
574
|
+
for (let r of e) Number.isFinite(r) && (n += 1, t = t * ((n - 1) / n) + r / n);
|
|
575
|
+
return n === 0 ? null : t;
|
|
576
|
+
}
|
|
577
|
+
function he(e) {
|
|
567
578
|
let t = [];
|
|
568
579
|
for (let n = 0; n < e.length; n += 1) t.push(`${h(e[n].x)},${h(e[n].y)} `);
|
|
569
580
|
return t.join(" ").trim();
|
|
570
581
|
}
|
|
571
|
-
function
|
|
582
|
+
function I(e, t = null) {
|
|
572
583
|
let n = (e) => e && e.value !== null && e.value !== void 0 && Number.isFinite(e.x) && Number.isFinite(e.y), r = [], i = [];
|
|
573
584
|
for (let t of e) n(t) ? i.push(t) : (i.length && r.push(i), i = []);
|
|
574
585
|
return i.length && r.push(i), r.map((e) => {
|
|
@@ -581,7 +592,7 @@ function he(e, t = null) {
|
|
|
581
592
|
return t != null && (n.unshift(`${h(e[0].x)},${h(t)}`), n.push(`${h(e.at(-1).x)},${h(t)}`)), n.join(" ");
|
|
582
593
|
}).filter(Boolean).join(";");
|
|
583
594
|
}
|
|
584
|
-
function
|
|
595
|
+
function L(e) {
|
|
585
596
|
if (e.length < 2) return "0,0";
|
|
586
597
|
let t = e.length - 1, n = [`${h(e[0].x)},${h(e[0].y)}`], r = [], i = [], a = [], o = [];
|
|
587
598
|
for (let n = 0; n < t; n += 1) r[n] = e[n + 1].x - e[n].x, i[n] = e[n + 1].y - e[n].y, a[n] = i[n] / r[n];
|
|
@@ -593,7 +604,7 @@ function I(e) {
|
|
|
593
604
|
}
|
|
594
605
|
return n.join(" ");
|
|
595
606
|
}
|
|
596
|
-
function
|
|
607
|
+
function R(e, t = .2) {
|
|
597
608
|
function n(e, t) {
|
|
598
609
|
let n = t.x - e.x, r = t.y - e.y;
|
|
599
610
|
return {
|
|
@@ -614,7 +625,7 @@ function L(e, t = .2) {
|
|
|
614
625
|
}
|
|
615
626
|
return e.filter((e) => !!e).reduce((e, t, n, r) => n === 0 ? `${h(t.x)},${h(t.y)} ` : `${e} ${i(t, n, r)} `, "");
|
|
616
627
|
}
|
|
617
|
-
function
|
|
628
|
+
function ge() {
|
|
618
629
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
619
630
|
let t = Math.random() * 16 | 0;
|
|
620
631
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
@@ -630,7 +641,7 @@ function z(e, t = !1, n = 16, r = !1) {
|
|
|
630
641
|
function B(e, t = 16, n = 16) {
|
|
631
642
|
return e.center.endY > e.cy ? e.center.endY + n : e.center.endY < e.cy ? e.center.endY - t : e.center.endY;
|
|
632
643
|
}
|
|
633
|
-
function
|
|
644
|
+
function _e({ initX: e, initY: t, offset: n, centerX: r, centerY: i }) {
|
|
634
645
|
let a = Math.atan2(t - i, e - r);
|
|
635
646
|
return {
|
|
636
647
|
x: e + n * Math.cos(a),
|
|
@@ -654,23 +665,23 @@ function V(e) {
|
|
|
654
665
|
y: c
|
|
655
666
|
};
|
|
656
667
|
}
|
|
657
|
-
function
|
|
668
|
+
function ve(e, t = !1, n = 16, r = 16, i = !1, a = !1, o = 0, s = 12, c = !1) {
|
|
658
669
|
let { x: l } = V(e.path), u = `${z(e).x},${B(e, n, r) - 4} `, d = "", f, p;
|
|
659
670
|
l > e.cx ? (f = z(e).x - s, p = B(e, n, r) - 4, d = `${f},${p}`) : (e.cx, f = z(e).x + s, p = B(e, n, r) - 4, d = `${f},${p}`);
|
|
660
671
|
let m = ` ${e.center.endX},${e.center.endY}`;
|
|
661
672
|
return c ? a ? `M${d} Q${d} ${m}` : `M${u} Q${d} ${m}` : `M${a ? "" : u}${d}${m}`;
|
|
662
673
|
}
|
|
663
|
-
function
|
|
674
|
+
function ye(e) {
|
|
664
675
|
return ![
|
|
665
676
|
null,
|
|
666
677
|
void 0,
|
|
667
678
|
NaN
|
|
668
679
|
].includes(e);
|
|
669
680
|
}
|
|
670
|
-
function
|
|
681
|
+
function be(e, t) {
|
|
671
682
|
return [...e].map((e) => e[t]).reduce((e, t) => e + t, 0);
|
|
672
683
|
}
|
|
673
|
-
function
|
|
684
|
+
function xe(e, t = !0, n = !1) {
|
|
674
685
|
if (!e.length) return "M0,0";
|
|
675
686
|
let r = "";
|
|
676
687
|
return e.forEach((e) => {
|
|
@@ -678,21 +689,21 @@ function be(e, t = !0, n = !1) {
|
|
|
678
689
|
r += `${e.x},${e.y} `;
|
|
679
690
|
}), n ? r.trim() : `M${r}${t ? "Z" : ""}`;
|
|
680
691
|
}
|
|
681
|
-
function
|
|
692
|
+
function Se({ csvContent: e, title: t = "vue-data-ui" }) {
|
|
682
693
|
let n = encodeURI(e), r = document.createElement("a");
|
|
683
694
|
r.setAttribute("href", n), r.setAttribute("download", `${t}.csv`), document.body.appendChild(r), r.click(), r.remove(), window.URL.revokeObjectURL(n);
|
|
684
695
|
}
|
|
685
|
-
function
|
|
696
|
+
function Ce(e) {
|
|
686
697
|
return `data:text/csv;charset=utf-8,${e.map((e) => e.join(",")).join("\n")}`;
|
|
687
698
|
}
|
|
688
|
-
function
|
|
699
|
+
function we(e, t) {
|
|
689
700
|
if (!/^#([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)) return console.warn("lightenHexColor : Invalid hex color format"), "#000000";
|
|
690
701
|
let n = e.replace("#", "");
|
|
691
702
|
n.length === 3 && (n = n.split("").map((e) => e + e).join(""));
|
|
692
703
|
let r = parseInt(n.substring(0, 2), 16), i = parseInt(n.substring(2, 4), 16), a = parseInt(n.substring(4, 6), 16), o = Math.min(255, r + (255 - r) * t), s = Math.min(255, i + (255 - i) * t), c = Math.min(255, a + (255 - a) * t), l = `#${Math.round(o).toString(16).padStart(2, "0")}${Math.round(s).toString(16).padStart(2, "0")}${Math.round(c).toString(16).padStart(2, "0")}`;
|
|
693
704
|
return n.length === 8 ? l + n.substring(6, 8) : l;
|
|
694
705
|
}
|
|
695
|
-
function
|
|
706
|
+
function Te(e, t) {
|
|
696
707
|
if (!/^#([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)) return console.warn("darkenHexColor: Invalid hex color format"), "#000000";
|
|
697
708
|
let n = e.replace("#", "");
|
|
698
709
|
n.length === 3 && (n = n.split("").map((e) => e + e).join(""));
|
|
@@ -703,7 +714,7 @@ function H(e, t) {
|
|
|
703
714
|
let n = Math.floor(Math.log10(e)), r = e / 10 ** n, i;
|
|
704
715
|
return i = t ? r < 1.5 ? 1 : r < 3 ? 2 : r < 7 ? 5 : 10 : r <= 1 ? 1 : r <= 2 ? 2 : r <= 5 ? 5 : 10, i * 10 ** n;
|
|
705
716
|
}
|
|
706
|
-
function
|
|
717
|
+
function Ee(e, t, n, r = !1) {
|
|
707
718
|
let i = r ? t - e : H(t - e, !1), a = r ? i / (n - 1) : H(i / (n - 1), !0), o = Math.floor(e / a) * a, s = Math.ceil(t / a) * a, c = [];
|
|
708
719
|
for (let e = o; e <= s; e += a) c.push(e);
|
|
709
720
|
return {
|
|
@@ -713,7 +724,7 @@ function Te(e, t, n, r = !1) {
|
|
|
713
724
|
ticks: c
|
|
714
725
|
};
|
|
715
726
|
}
|
|
716
|
-
function
|
|
727
|
+
function De(e, t, n, r = !1) {
|
|
717
728
|
let i = r ? t - e : H(t - e, !1), a = r ? i / (n - 1) : H(i / (n - 1), !0), o = Math.floor(e / a) * a, s = Math.ceil(t / a) * a, c = [], l = o;
|
|
718
729
|
for (; l <= s;) l >= e && l <= t && c.push(l), l += a;
|
|
719
730
|
return c[0] !== e && (c[0] = e), c[c.length - 1] !== t && (c[c.length - 1] = t), {
|
|
@@ -723,7 +734,7 @@ function Ee(e, t, n, r = !1) {
|
|
|
723
734
|
ticks: c
|
|
724
735
|
};
|
|
725
736
|
}
|
|
726
|
-
function
|
|
737
|
+
function Oe(e) {
|
|
727
738
|
if (typeof e != "string") return console.error("hexColor must be a string"), "#000000ff";
|
|
728
739
|
let t = e.trim();
|
|
729
740
|
if (!t.startsWith("#")) return console.error("hexColor must start with #"), "#000000ff";
|
|
@@ -736,21 +747,21 @@ function De(e) {
|
|
|
736
747
|
].includes(n.length) ? /^[0-9a-fA-F]+$/.test(n) ? n.length === 3 || n.length === 4 ? `#${n.split("").map((e) => e + e).join("")}` : t : (console.error("hexColor contains invalid characters"), "#000000ff") : (console.error("hexColor must be #RGB, #RGBA, #RRGGBB, or #RRGGBBAA"), "#000000ff");
|
|
737
748
|
}
|
|
738
749
|
var U = (e) => {
|
|
739
|
-
let t =
|
|
750
|
+
let t = Oe(e);
|
|
740
751
|
return {
|
|
741
752
|
r: parseInt(t.substring(1, 3), 16),
|
|
742
753
|
g: parseInt(t.substring(3, 5), 16),
|
|
743
754
|
b: parseInt(t.substring(5, 7), 16),
|
|
744
755
|
a: t.length === 9 ? parseInt(t.substring(7, 9), 16) / 255 : 1
|
|
745
756
|
};
|
|
746
|
-
},
|
|
757
|
+
}, ke = ({ r: e, g: t, b: n, a: r = 1 }) => {
|
|
747
758
|
let i = W(r, 0, 1), a = `#${k(e)}${k(t)}${k(n)}`;
|
|
748
759
|
return i < 1 ? `${a}${k(i * 255)}` : a;
|
|
749
760
|
};
|
|
750
761
|
function W(e, t, n) {
|
|
751
762
|
return Math.min(Math.max(e, t), n);
|
|
752
763
|
}
|
|
753
|
-
function
|
|
764
|
+
function Ae(e, t, n, r, i) {
|
|
754
765
|
let a = U(e), o = U(t);
|
|
755
766
|
i = Math.min(Math.max(i, n), r);
|
|
756
767
|
let s = (i - n) / (r - n), c = {
|
|
@@ -758,12 +769,12 @@ function ke(e, t, n, r, i) {
|
|
|
758
769
|
g: Math.round(a.g + (o.g - a.g) * s),
|
|
759
770
|
b: Math.round(a.b + (o.b - a.b) * s)
|
|
760
771
|
}, l = a.a + (o.a - a.a) * s;
|
|
761
|
-
return
|
|
772
|
+
return ke({
|
|
762
773
|
...c,
|
|
763
774
|
a: l
|
|
764
775
|
});
|
|
765
776
|
}
|
|
766
|
-
function
|
|
777
|
+
function je({ colors: e, ratio: t }) {
|
|
767
778
|
if (!Array.isArray(e)) throw Error("colors must be an array");
|
|
768
779
|
if (!e.length) throw Error("colors must contain at least 1 hex color");
|
|
769
780
|
let n = (e) => Math.round(W(e, 0, 255)).toString(16).padStart(2, "0"), r = ({ r: e, g: t, b: r, a: i = 1 }) => `#${n(e)}${n(t)}${n(r)}${n(W(i, 0, 1) * 255)}`;
|
|
@@ -776,11 +787,11 @@ function Ae({ colors: e, ratio: t }) {
|
|
|
776
787
|
a: u.a + (d.a - u.a) * l
|
|
777
788
|
});
|
|
778
789
|
}
|
|
779
|
-
function
|
|
790
|
+
function Me({ p: e = "", v: t, s: n = "", r = 0, space: i = !1, isAnimating: a = !1, regex: o = /[^%]/g, replacement: s = "-", locale: c = null }) {
|
|
780
791
|
let l = c ? Number(Number(t).toFixed(r)).toLocaleString(c) : Number(Number(t).toFixed(r)).toLocaleString(), u = l === Infinity ? "∞" : l === -Infinity ? "-∞" : l, d = `${e ?? ""}${i ? " " : ""}${[void 0, null].includes(t) ? "-" : u}${i ? " " : ""}${n ?? ""}`;
|
|
781
792
|
return a ? d.replace(o, s) : d;
|
|
782
793
|
}
|
|
783
|
-
function
|
|
794
|
+
function Ne({ source: e, length: t = 3 }) {
|
|
784
795
|
if (!e && e !== 0) return "";
|
|
785
796
|
e = String(e);
|
|
786
797
|
let n = e.length > 1 ? e.split(" ") : [e];
|
|
@@ -793,22 +804,22 @@ function Me({ source: e, length: t = 3 }) {
|
|
|
793
804
|
}), e.join().replaceAll(",", "").toUpperCase();
|
|
794
805
|
}
|
|
795
806
|
}
|
|
796
|
-
function
|
|
807
|
+
function Pe(e) {
|
|
797
808
|
return !!e && typeof e == "function";
|
|
798
809
|
}
|
|
799
|
-
function
|
|
810
|
+
function Fe(e) {
|
|
800
811
|
return typeof e.apply(null, arguments) == "string";
|
|
801
812
|
}
|
|
802
|
-
function
|
|
813
|
+
function Ie(e) {
|
|
803
814
|
return Array.isArray(e) ? e.length === 0 : e ? Object.keys(e).length === 0 : !0;
|
|
804
815
|
}
|
|
805
|
-
function
|
|
816
|
+
function Le({ componentName: e, type: t, property: n = "", index: i = "", key: a = "", warn: o = !0, debug: s = !0 }) {
|
|
806
817
|
if (!s) return;
|
|
807
818
|
let c = `\n> ${r[t].replace("#COMP#", e).replace("#ATTR#", n).replace("#INDX#", i).replace("#KEY#", a)}\n`;
|
|
808
819
|
if (o) console.warn(c);
|
|
809
820
|
else throw Error(c);
|
|
810
821
|
}
|
|
811
|
-
function
|
|
822
|
+
function Re({ points: e, a: t, b: n, angleStep: r, startX: i, startY: a }) {
|
|
812
823
|
let o = [];
|
|
813
824
|
for (let s = 0; s < e; s++) {
|
|
814
825
|
let e = r * s, c = t + n * e, l = c * Math.cos(e) + i, u = c * Math.sin(e) + a;
|
|
@@ -819,7 +830,7 @@ function Le({ points: e, a: t, b: n, angleStep: r, startX: i, startY: a }) {
|
|
|
819
830
|
}
|
|
820
831
|
return o;
|
|
821
832
|
}
|
|
822
|
-
function
|
|
833
|
+
function ze(e) {
|
|
823
834
|
let t = Infinity, n = Infinity, r = -Infinity, i = -Infinity;
|
|
824
835
|
for (let a of e) a.x < t && (t = a.x), a.y < n && (n = a.y), a.x > r && (r = a.x), a.y > i && (i = a.y);
|
|
825
836
|
return {
|
|
@@ -831,7 +842,7 @@ function Re(e) {
|
|
|
831
842
|
height: i - n || 1
|
|
832
843
|
};
|
|
833
844
|
}
|
|
834
|
-
function
|
|
845
|
+
function Be(e) {
|
|
835
846
|
if (!e.length) return "";
|
|
836
847
|
let t = `M${e[0].x} ${e[0].y}`;
|
|
837
848
|
for (let n = 1; n < e.length - 2; n += 2) {
|
|
@@ -840,24 +851,24 @@ function ze(e) {
|
|
|
840
851
|
}
|
|
841
852
|
return t;
|
|
842
853
|
}
|
|
843
|
-
function
|
|
844
|
-
let l =
|
|
854
|
+
function Ve({ maxPoints: e, a: t = 6, b: n = 6, angleStep: r = .07, startX: i, startY: a, boxWidth: o, boxHeight: s, padding: c = 12 }) {
|
|
855
|
+
let l = Re({
|
|
845
856
|
points: e,
|
|
846
857
|
a: t,
|
|
847
858
|
b: n,
|
|
848
859
|
angleStep: r,
|
|
849
860
|
startX: 0,
|
|
850
861
|
startY: 0
|
|
851
|
-
}), { minX: u, minY: d, maxX: f, maxY: p, width: m, height: h } =
|
|
862
|
+
}), { minX: u, minY: d, maxX: f, maxY: p, width: m, height: h } = ze(l), g = (u + f) / 2, _ = (d + p) / 2, v = Math.max(1, o - 2 * c), y = Math.max(1, s - 2 * c), b = Math.min(v / m, y / h), x = i - g * b, S = a - _ * b;
|
|
852
863
|
return function(e) {
|
|
853
864
|
let t = Math.max(2, Math.min(Math.round(e), l.length));
|
|
854
|
-
return
|
|
865
|
+
return Be(l.slice(0, t).map((e) => ({
|
|
855
866
|
x: e.x * b + x,
|
|
856
867
|
y: e.y * b + S
|
|
857
868
|
})));
|
|
858
869
|
};
|
|
859
870
|
}
|
|
860
|
-
function
|
|
871
|
+
function He({ datasetObject: e, requiredAttributes: t }) {
|
|
861
872
|
let n = [];
|
|
862
873
|
return t.forEach((t) => {
|
|
863
874
|
Object.hasOwn(e, t) || n.push(t);
|
|
@@ -1006,7 +1017,7 @@ var G = {
|
|
|
1006
1017
|
YELLOWGREEN: "#9ACD32",
|
|
1007
1018
|
REBECCAPURPLE: "#663399"
|
|
1008
1019
|
};
|
|
1009
|
-
function
|
|
1020
|
+
function Ue(t) {
|
|
1010
1021
|
let r = e?.(t) ? n(t) : t;
|
|
1011
1022
|
if (typeof r != "string") return r;
|
|
1012
1023
|
let i = r.trim();
|
|
@@ -1016,7 +1027,7 @@ function He(t) {
|
|
|
1016
1027
|
return G[a] || G[o] || i;
|
|
1017
1028
|
}
|
|
1018
1029
|
var K = "http://www.w3.org/2000/svg";
|
|
1019
|
-
function
|
|
1030
|
+
function We(e) {
|
|
1020
1031
|
if (e.length < 2) return 0;
|
|
1021
1032
|
let t = 0, n = 0;
|
|
1022
1033
|
for (let r = 1; r < e.length; r++) {
|
|
@@ -1037,7 +1048,7 @@ function q({ content: e, fontSize: t, fill: n, x: r, y: i, translateY: a = !1 })
|
|
|
1037
1048
|
let o = e.split("\n"), s = o.length * t, c = a ? (s - t) / 2 : 0;
|
|
1038
1049
|
return o.map((e, a) => `<tspan x="${r}" y="${i - c + a * t}" fill="${n}">${e}</tspan>`).join("");
|
|
1039
1050
|
}
|
|
1040
|
-
function
|
|
1051
|
+
function Ge(e) {
|
|
1041
1052
|
return f(e) ? (q({
|
|
1042
1053
|
content: e,
|
|
1043
1054
|
fontSize: 1,
|
|
@@ -1046,11 +1057,11 @@ function We(e) {
|
|
|
1046
1057
|
y: 0
|
|
1047
1058
|
}).match(/<tspan\b/g) || []).length : 1;
|
|
1048
1059
|
}
|
|
1049
|
-
function
|
|
1060
|
+
function Ke({ content: e, fontSize: t, fill: n, x: r, autoOffset: i = !1 }) {
|
|
1050
1061
|
let a = e.split("\n"), o = i ? (a.length - 1) * t / 2 : 0;
|
|
1051
1062
|
return a.map((e, i) => `<tspan x="${r}" dy="${i === 0 ? -o : t}" fill="${n}">${e}</tspan>`).join("");
|
|
1052
1063
|
}
|
|
1053
|
-
function
|
|
1064
|
+
function qe({ content: e, fontSize: t, fill: n, maxWords: r, x: i, y: a }) {
|
|
1054
1065
|
function o(e, t) {
|
|
1055
1066
|
let n = e.split(" "), r = [];
|
|
1056
1067
|
for (let e = 0; e < n.length; e += t) r.push(n.slice(e, e + t).join(" "));
|
|
@@ -1062,10 +1073,10 @@ function Ke({ content: e, fontSize: t, fill: n, maxWords: r, x: i, y: a }) {
|
|
|
1062
1073
|
s += o;
|
|
1063
1074
|
}), s;
|
|
1064
1075
|
}
|
|
1065
|
-
function
|
|
1076
|
+
function Je(e) {
|
|
1066
1077
|
return e.length ? e.map((e) => b(e)) : [];
|
|
1067
1078
|
}
|
|
1068
|
-
function
|
|
1079
|
+
function Ye(e, t = null) {
|
|
1069
1080
|
let n = e.replace(/[\p{P}\p{S}]+/gu, " ").trim(), r = (/[\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(e) ? [...n] : n.split(/\s+/)).filter((e) => e.trim().length > 0).reduce((e, t) => (e[t] ? e[t] += 1 : e[t] = 1, e), {});
|
|
1070
1081
|
return Object.keys(r).map((e) => {
|
|
1071
1082
|
let n = e;
|
|
@@ -1075,7 +1086,7 @@ function Je(e, t = null) {
|
|
|
1075
1086
|
};
|
|
1076
1087
|
});
|
|
1077
1088
|
}
|
|
1078
|
-
function
|
|
1089
|
+
function Xe(e) {
|
|
1079
1090
|
let t = e.reduce((e, t) => e + (t.stackRatio || 0), 0), n = e.filter((e) => e.stackRatio === void 0).length, r = 1 - t, i = n > 0 ? r / n : 0, a = e.map((e) => ({
|
|
1080
1091
|
...e,
|
|
1081
1092
|
stackRatio: e.stackRatio === void 0 ? i : e.stackRatio
|
|
@@ -1086,7 +1097,7 @@ function Ye(e) {
|
|
|
1086
1097
|
cumulatedStackRatio: o
|
|
1087
1098
|
})), a;
|
|
1088
1099
|
}
|
|
1089
|
-
function
|
|
1100
|
+
function Ze(e) {
|
|
1090
1101
|
function t(e, t, n, r) {
|
|
1091
1102
|
let i = n - e, a = r - t;
|
|
1092
1103
|
return Math.sqrt(i * i + a * a);
|
|
@@ -1136,11 +1147,11 @@ function Xe(e) {
|
|
|
1136
1147
|
}
|
|
1137
1148
|
}), c;
|
|
1138
1149
|
}
|
|
1139
|
-
function
|
|
1150
|
+
function Qe({ relator: e, adjuster: t, source: n, threshold: r = 0, fallback: i, max: a = 24 }) {
|
|
1140
1151
|
let o = e / (t / n);
|
|
1141
1152
|
return o > a ? a : o < r ? i : o;
|
|
1142
1153
|
}
|
|
1143
|
-
function
|
|
1154
|
+
function $e(e) {
|
|
1144
1155
|
return e.reduce((e, t) => (t.series.forEach((t, n) => {
|
|
1145
1156
|
![
|
|
1146
1157
|
void 0,
|
|
@@ -1150,7 +1161,7 @@ function Qe(e) {
|
|
|
1150
1161
|
].includes(t) && !isNaN(t) && (e[n] = (e[n] || 0) + t);
|
|
1151
1162
|
}), e), []);
|
|
1152
1163
|
}
|
|
1153
|
-
function
|
|
1164
|
+
function et(e, { value: t, config: n }) {
|
|
1154
1165
|
let r = !1, i = t;
|
|
1155
1166
|
if (typeof e == "function") try {
|
|
1156
1167
|
i = e({
|
|
@@ -1165,17 +1176,17 @@ function $e(e, { value: t, config: n }) {
|
|
|
1165
1176
|
value: i
|
|
1166
1177
|
};
|
|
1167
1178
|
}
|
|
1168
|
-
function
|
|
1169
|
-
let { isValid: i, value: a } =
|
|
1179
|
+
function tt(e, t, n, r) {
|
|
1180
|
+
let { isValid: i, value: a } = et(e, {
|
|
1170
1181
|
value: t,
|
|
1171
1182
|
config: r
|
|
1172
1183
|
});
|
|
1173
1184
|
return i ? a : n;
|
|
1174
1185
|
}
|
|
1175
|
-
function
|
|
1186
|
+
function nt(e, t) {
|
|
1176
1187
|
return t.split(".").every((t) => typeof e == "object" && e && t in e ? (e = e[t], !0) : !1);
|
|
1177
1188
|
}
|
|
1178
|
-
function
|
|
1189
|
+
function rt(e, t = [], n = !1) {
|
|
1179
1190
|
function r(e) {
|
|
1180
1191
|
return n && e === null ? null : typeof e == "string" && isNaN(Number(e)) || typeof e == "number" && isFinite(e) ? e : 0;
|
|
1181
1192
|
}
|
|
@@ -1190,10 +1201,10 @@ function nt(e, t = [], n = !1) {
|
|
|
1190
1201
|
}
|
|
1191
1202
|
return i(e);
|
|
1192
1203
|
}
|
|
1193
|
-
function
|
|
1204
|
+
function it(e, t = 100) {
|
|
1194
1205
|
return e.length === 9 ? e.substring(0, 7) + y[t] : e + y[t];
|
|
1195
1206
|
}
|
|
1196
|
-
function
|
|
1207
|
+
function at({ series: e, center: t, maxRadius: n, hasGhost: r = !1 }) {
|
|
1197
1208
|
let i = 360 / (e.length - +!!r);
|
|
1198
1209
|
return e.map((e, r) => {
|
|
1199
1210
|
let a = e * n, o = r * i, s = o + i, c = o + i / 2, l = j(o) - j(90), u = j(s) - j(90), d = j(c) - j(90), f = t.x + a * Math.cos(l), p = t.y + a * Math.sin(l), m = t.x + a * Math.cos(u), h = t.y + a * Math.sin(u), g = t.x + a * Math.cos(d), _ = t.y + a * Math.sin(d);
|
|
@@ -1212,7 +1223,7 @@ function it({ series: e, center: t, maxRadius: n, hasGhost: r = !1 }) {
|
|
|
1212
1223
|
};
|
|
1213
1224
|
});
|
|
1214
1225
|
}
|
|
1215
|
-
function
|
|
1226
|
+
function ot({ data: e, threshold: t }) {
|
|
1216
1227
|
if (t >= e.length || t < 3) return e;
|
|
1217
1228
|
let n = [], r = (e.length - 2) / (t - 2), i = 0;
|
|
1218
1229
|
n.push(e[i]);
|
|
@@ -1229,7 +1240,7 @@ function at({ data: e, threshold: t }) {
|
|
|
1229
1240
|
}
|
|
1230
1241
|
return n.push(e[e.length - 1]), n;
|
|
1231
1242
|
}
|
|
1232
|
-
function
|
|
1243
|
+
function st({ data: e, threshold: t }) {
|
|
1233
1244
|
if (t >= e.length || t < 3) return e;
|
|
1234
1245
|
let n = [], r = (e.length - 2) / (t - 2), i = 0;
|
|
1235
1246
|
n.push(e[i]);
|
|
@@ -1243,7 +1254,7 @@ function ot({ data: e, threshold: t }) {
|
|
|
1243
1254
|
}
|
|
1244
1255
|
return n.push(e[e.length - 1]), n;
|
|
1245
1256
|
}
|
|
1246
|
-
function
|
|
1257
|
+
function ct({ data: e, threshold: t, key: n = "value" }) {
|
|
1247
1258
|
if (t >= e.length || t < 3) return e;
|
|
1248
1259
|
let r = [], i = (e.length - 2) / (t - 2), a = 0;
|
|
1249
1260
|
r.push(e[a]);
|
|
@@ -1257,12 +1268,12 @@ function st({ data: e, threshold: t, key: n = "value" }) {
|
|
|
1257
1268
|
}
|
|
1258
1269
|
return r.push(e[e.length - 1]), r;
|
|
1259
1270
|
}
|
|
1260
|
-
function
|
|
1271
|
+
function lt({ radius: e, centerX: t, centerY: n, percentage: r }) {
|
|
1261
1272
|
r = Math.max(0, Math.min(1, r));
|
|
1262
1273
|
let i = r * Math.PI;
|
|
1263
1274
|
return `M ${t},${n} L ${t - e},${n} A ${e},${e} 0 0 1 ${t - e * Math.cos(i)},${n - e * Math.sin(i)} Z`.trim();
|
|
1264
1275
|
}
|
|
1265
|
-
function
|
|
1276
|
+
function ut({ svgElement: e, x: t, y: n, offsetY: r = 0, element: i }) {
|
|
1266
1277
|
if (!e || !i) return {
|
|
1267
1278
|
top: 0,
|
|
1268
1279
|
left: 0
|
|
@@ -1275,7 +1286,7 @@ function lt({ svgElement: e, x: t, y: n, offsetY: r = 0, element: i }) {
|
|
|
1275
1286
|
left: o.x + l
|
|
1276
1287
|
};
|
|
1277
1288
|
}
|
|
1278
|
-
function
|
|
1289
|
+
function dt({ svgElement: e, x: t, y: n, element: r, position: i }) {
|
|
1279
1290
|
if (!e || !r) return {
|
|
1280
1291
|
top: 0,
|
|
1281
1292
|
left: 0
|
|
@@ -1307,12 +1318,12 @@ function J(e) {
|
|
|
1307
1318
|
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = J(e[n]));
|
|
1308
1319
|
return t;
|
|
1309
1320
|
}
|
|
1310
|
-
function
|
|
1321
|
+
function ft(e) {
|
|
1311
1322
|
let t = [], n = [];
|
|
1312
1323
|
for (let r of e) !r || r.value == null || Number.isNaN(r.x) || Number.isNaN(r.y) ? (n.length && t.push(n), n = []) : n.push(r);
|
|
1313
1324
|
return n.length && t.push(n), t;
|
|
1314
1325
|
}
|
|
1315
|
-
function
|
|
1326
|
+
function pt(e, t) {
|
|
1316
1327
|
let n = e.filter((e) => !!e);
|
|
1317
1328
|
if (!n[0]) return [
|
|
1318
1329
|
-10,
|
|
@@ -1338,7 +1349,7 @@ function ft(e, t) {
|
|
|
1338
1349
|
i.y
|
|
1339
1350
|
].toString();
|
|
1340
1351
|
}
|
|
1341
|
-
function
|
|
1352
|
+
function mt(e, t) {
|
|
1342
1353
|
if (!e[0]) return [
|
|
1343
1354
|
-10,
|
|
1344
1355
|
-10,
|
|
@@ -1346,7 +1357,7 @@ function pt(e, t) {
|
|
|
1346
1357
|
-10,
|
|
1347
1358
|
-10
|
|
1348
1359
|
].toString();
|
|
1349
|
-
let n =
|
|
1360
|
+
let n = ft(e);
|
|
1350
1361
|
return n.length ? n.map((e) => {
|
|
1351
1362
|
let n = {
|
|
1352
1363
|
x: e[0].x,
|
|
@@ -1366,12 +1377,12 @@ function pt(e, t) {
|
|
|
1366
1377
|
].toString();
|
|
1367
1378
|
}).join(";") : "";
|
|
1368
1379
|
}
|
|
1369
|
-
function
|
|
1380
|
+
function ht(e) {
|
|
1370
1381
|
let t = [], n = [];
|
|
1371
1382
|
for (let r of e) r.value == null || Number.isNaN(r.x) || Number.isNaN(r.y) ? (n.length > 1 && t.push(n), n = []) : n.push(r);
|
|
1372
1383
|
return n.length > 1 && t.push(n), t;
|
|
1373
1384
|
}
|
|
1374
|
-
function
|
|
1385
|
+
function gt(e) {
|
|
1375
1386
|
let t = "", n = !1;
|
|
1376
1387
|
for (let r = 0; r < e.length; r++) {
|
|
1377
1388
|
let i = e[r];
|
|
@@ -1393,7 +1404,7 @@ function Y(e) {
|
|
|
1393
1404
|
function X(e) {
|
|
1394
1405
|
return `${h(e.x)},${h(e.y)}`;
|
|
1395
1406
|
}
|
|
1396
|
-
function
|
|
1407
|
+
function _t(e, t = []) {
|
|
1397
1408
|
let n = Array.isArray(e) ? e : [], r = n.length, i = /* @__PURE__ */ new Set(), a = r - 1;
|
|
1398
1409
|
for (let e of Array.isArray(t) ? t : []) {
|
|
1399
1410
|
let t = Y(e);
|
|
@@ -1433,8 +1444,8 @@ function gt(e, t = []) {
|
|
|
1433
1444
|
}
|
|
1434
1445
|
return u(), o;
|
|
1435
1446
|
}
|
|
1436
|
-
function
|
|
1437
|
-
let t =
|
|
1447
|
+
function vt(e) {
|
|
1448
|
+
let t = ht(e);
|
|
1438
1449
|
if (!t.length) return "";
|
|
1439
1450
|
let n = "";
|
|
1440
1451
|
for (let [e, r] of t.entries()) {
|
|
@@ -1454,7 +1465,7 @@ function _t(e) {
|
|
|
1454
1465
|
function Z(e) {
|
|
1455
1466
|
return e != null && e.value != null && Number.isFinite(e.x) && Number.isFinite(e.y);
|
|
1456
1467
|
}
|
|
1457
|
-
function
|
|
1468
|
+
function yt(e, t) {
|
|
1458
1469
|
let n = e - 1, r = /* @__PURE__ */ new Set(), i = Array.isArray(t) ? t : [];
|
|
1459
1470
|
for (let e of i) {
|
|
1460
1471
|
let t = Y(e);
|
|
@@ -1462,7 +1473,7 @@ function vt(e, t) {
|
|
|
1462
1473
|
}
|
|
1463
1474
|
return r;
|
|
1464
1475
|
}
|
|
1465
|
-
function
|
|
1476
|
+
function bt(e) {
|
|
1466
1477
|
let t = [], n = [];
|
|
1467
1478
|
for (let r = 0; r < e.length; r += 1) {
|
|
1468
1479
|
let i = e[r];
|
|
@@ -1470,7 +1481,7 @@ function yt(e) {
|
|
|
1470
1481
|
}
|
|
1471
1482
|
return n.length > 1 && t.push(n), t;
|
|
1472
1483
|
}
|
|
1473
|
-
function
|
|
1484
|
+
function xt(e, t) {
|
|
1474
1485
|
let n = t.map((t) => e[t]), r = n.length - 1, i = [], a = [], o = [], s = [];
|
|
1475
1486
|
for (let e = 0; e < r; e += 1) i[e] = n[e + 1].x - n[e].x, a[e] = n[e + 1].y - n[e].y, o[e] = a[e] / i[e];
|
|
1476
1487
|
s[0] = o[0], s[r] = o[r - 1];
|
|
@@ -1485,7 +1496,7 @@ function bt(e, t) {
|
|
|
1485
1496
|
commands: c
|
|
1486
1497
|
};
|
|
1487
1498
|
}
|
|
1488
|
-
function
|
|
1499
|
+
function St(e) {
|
|
1489
1500
|
let t = [];
|
|
1490
1501
|
if (!e.length) return t;
|
|
1491
1502
|
let n = 0, r = e[0];
|
|
@@ -1500,19 +1511,19 @@ function xt(e) {
|
|
|
1500
1511
|
dashed: r
|
|
1501
1512
|
}), t;
|
|
1502
1513
|
}
|
|
1503
|
-
function
|
|
1514
|
+
function Ct(e, t = []) {
|
|
1504
1515
|
let n = Array.isArray(e) ? e : [];
|
|
1505
1516
|
if (n.length < 2) return [];
|
|
1506
|
-
let r =
|
|
1517
|
+
let r = yt(n.length, t), i = bt(n);
|
|
1507
1518
|
if (!i.length) return [];
|
|
1508
1519
|
let a = [];
|
|
1509
1520
|
for (let e of i) {
|
|
1510
|
-
let { startCoord: t, commands: i } =
|
|
1521
|
+
let { startCoord: t, commands: i } = xt(n, e), o = Array(i.length);
|
|
1511
1522
|
for (let t = 0; t < i.length; t += 1) {
|
|
1512
1523
|
let n = e[t];
|
|
1513
1524
|
o[t] = r.has(n);
|
|
1514
1525
|
}
|
|
1515
|
-
let s =
|
|
1526
|
+
let s = St(o);
|
|
1516
1527
|
for (let r of s) {
|
|
1517
1528
|
let o = r.startEdge, s = `${o === 0 ? t : X(n[e[o]])} ${i.slice(r.startEdge, r.endEdge + 1).join(" ")}`.trim();
|
|
1518
1529
|
a.push({
|
|
@@ -1523,7 +1534,7 @@ function St(e, t = []) {
|
|
|
1523
1534
|
}
|
|
1524
1535
|
return a;
|
|
1525
1536
|
}
|
|
1526
|
-
function
|
|
1537
|
+
function wt(e, t, n = !1, r = !0) {
|
|
1527
1538
|
function i(e) {
|
|
1528
1539
|
let t = [], n = [];
|
|
1529
1540
|
for (let r of e) !r || r.value == null || Number.isNaN(r.x) || Number.isNaN(r.y) ? (n.length > 1 && t.push(n), n = []) : n.push(r);
|
|
@@ -1544,10 +1555,10 @@ function Ct(e, t, n = !1, r = !0) {
|
|
|
1544
1555
|
return c += ` L${e[n].x},${t} ${r ? "Z" : ""}`, c;
|
|
1545
1556
|
}).filter(Boolean);
|
|
1546
1557
|
}
|
|
1547
|
-
function
|
|
1558
|
+
function Tt(e) {
|
|
1548
1559
|
return e.toString().toLowerCase().replace(/\s+/g, "-").replace(/[^\p{L}\p{N}_-]+/gu, "").replace(/\-\-+/g, "-").replace(/^-+/, "").replace(/-+$/, "");
|
|
1549
1560
|
}
|
|
1550
|
-
function
|
|
1561
|
+
function Et(e) {
|
|
1551
1562
|
return e && typeof e == "object" && !Array.isArray(e) && Object.keys(e).length === 0 ? null : e;
|
|
1552
1563
|
}
|
|
1553
1564
|
function Q(e) {
|
|
@@ -1555,14 +1566,14 @@ function Q(e) {
|
|
|
1555
1566
|
if (e && typeof e == "object" && !Array.isArray(e)) {
|
|
1556
1567
|
let t = {};
|
|
1557
1568
|
for (let n in e) Object.hasOwn(e, n) && (t[n] = Q(e[n]));
|
|
1558
|
-
return
|
|
1569
|
+
return Et(t);
|
|
1559
1570
|
}
|
|
1560
1571
|
return e;
|
|
1561
1572
|
}
|
|
1562
|
-
function
|
|
1573
|
+
function Dt(e) {
|
|
1563
1574
|
return 1 - (1 - e) ** 3;
|
|
1564
1575
|
}
|
|
1565
|
-
function
|
|
1576
|
+
function Ot({ values: e, config: t = {} }) {
|
|
1566
1577
|
let { keepInvalid: n = !0, convertInvalidToZero: r = !1 } = t, i = [], a = 0, o = 0;
|
|
1567
1578
|
function s(e) {
|
|
1568
1579
|
return typeof e != "number" || !Number.isFinite(e);
|
|
@@ -1573,20 +1584,20 @@ function Dt({ values: e, config: t = {} }) {
|
|
|
1573
1584
|
for (let t of e) s(t) ? r && n ? c(0) : !r && n && i.push(t) : c(t);
|
|
1574
1585
|
return i;
|
|
1575
1586
|
}
|
|
1576
|
-
function
|
|
1587
|
+
function kt({ values: e, config: t = {} }) {
|
|
1577
1588
|
let { keepInvalid: n = !0, convertInvalidToZero: r = !1 } = t, i = [], a = [];
|
|
1578
1589
|
function o(e) {
|
|
1579
1590
|
return typeof e != "number" || !Number.isFinite(e);
|
|
1580
1591
|
}
|
|
1581
1592
|
function s(e) {
|
|
1582
1593
|
a.push(e), a.sort((e, t) => e - t);
|
|
1583
|
-
let t = a.length, n = t
|
|
1594
|
+
let t = a.length, n = Math.floor(t / 2);
|
|
1584
1595
|
t % 2 == 1 ? i.push(a[n]) : i.push((a[n - 1] + a[n]) / 2);
|
|
1585
1596
|
}
|
|
1586
1597
|
for (let t of e) o(t) ? r && n ? s(0) : !r && n && i.push(t) : s(t);
|
|
1587
1598
|
return i;
|
|
1588
1599
|
}
|
|
1589
|
-
function
|
|
1600
|
+
function At({ el: e, bounds: t, currentFontSize: n, minFontSize: r = 6, attempts: i = 200, padding: a = 1 }) {
|
|
1590
1601
|
if (!e || !n) return 0;
|
|
1591
1602
|
let o = n;
|
|
1592
1603
|
e.setAttribute("font-size", o);
|
|
@@ -1596,7 +1607,7 @@ function kt({ el: e, bounds: t, currentFontSize: n, minFontSize: r = 6, attempts
|
|
|
1596
1607
|
for (; g-- > 0 && o > r && (o--, e.setAttribute("font-size", o), h = e.getBBox(), !(h.x >= d + a && h.y >= f + a && h.x + h.width <= p - a && h.y + h.height <= m - a)););
|
|
1597
1608
|
return o < r && (o = 0, e.setAttribute("font-size", o)), o;
|
|
1598
1609
|
}
|
|
1599
|
-
function
|
|
1610
|
+
function jt({ value: e, maxDecimals: t = 4, fallbackFormatter: n, removeTrailingZero: r = !0 }) {
|
|
1600
1611
|
if (e === 0) return "0";
|
|
1601
1612
|
let i = Math.abs(e);
|
|
1602
1613
|
if (i >= 1 && typeof n == "function") {
|
|
@@ -1608,18 +1619,18 @@ function At({ value: e, maxDecimals: t = 4, fallbackFormatter: n, removeTrailing
|
|
|
1608
1619
|
let o = e.toFixed(a);
|
|
1609
1620
|
return r && (o = o.replace(/(\.\d*?[1-9])0+$/, "$1").replace(/\.0+$/, "")), o;
|
|
1610
1621
|
}
|
|
1611
|
-
function
|
|
1622
|
+
function Mt(e) {
|
|
1612
1623
|
let t = [];
|
|
1613
1624
|
for (let n = 0; n < e; n += 1) t.push(n === 0 ? 0 : n === 1 ? 1 : t[n - 1] + t[n - 2]);
|
|
1614
1625
|
return t;
|
|
1615
1626
|
}
|
|
1616
|
-
function
|
|
1627
|
+
function Nt(e, t = 20) {
|
|
1617
1628
|
e = e.replace(/[\r\n]+/g, " ");
|
|
1618
1629
|
let n = e.split(" "), r = "", i = "";
|
|
1619
1630
|
for (let e of n) (r + (r ? " " : "") + e).length <= t ? r += (r ? " " : "") + e : (r && (i += (i ? "\n" : "") + r), r = e);
|
|
1620
1631
|
return r && (i += (i ? "\n" : "") + r), i;
|
|
1621
1632
|
}
|
|
1622
|
-
function
|
|
1633
|
+
function Pt(e) {
|
|
1623
1634
|
let { lineA: t, lineB: n, colorLineA: r, colorLineB: i, smoothA: a = !1, smoothB: o = !1, sampleStepPx: s = 2, cutNullValues: c = !0, merge: l = !0 } = e || {};
|
|
1624
1635
|
if (!Array.isArray(t) || !Array.isArray(n) || !t.length || !n.length) return [];
|
|
1625
1636
|
let u = (e) => Number.isFinite(e);
|
|
@@ -1767,7 +1778,7 @@ function Nt(e) {
|
|
|
1767
1778
|
let { A: y, B: b } = g(m(t, a), m(n, o));
|
|
1768
1779
|
return l ? v(y, b) : _(y, b);
|
|
1769
1780
|
}
|
|
1770
|
-
function
|
|
1781
|
+
function Ft(e, t, n = {}) {
|
|
1771
1782
|
let r = {
|
|
1772
1783
|
bubbles: !0,
|
|
1773
1784
|
cancelable: !0,
|
|
@@ -1802,7 +1813,7 @@ function $(e, t, n = {}) {
|
|
|
1802
1813
|
}) : new Event(t, r);
|
|
1803
1814
|
return e.dispatchEvent(o), o;
|
|
1804
1815
|
}
|
|
1805
|
-
function
|
|
1816
|
+
function It(e, { delta: t = 1, delay: n = 20, disableTransitions: r = !0 } = {}) {
|
|
1806
1817
|
if (!e || !(e instanceof HTMLElement)) return;
|
|
1807
1818
|
let i = e.style, a = {
|
|
1808
1819
|
width: i.width,
|
|
@@ -1817,14 +1828,14 @@ function Pt(e, { delta: t = 1, delay: n = 20, disableTransitions: r = !0 } = {})
|
|
|
1817
1828
|
});
|
|
1818
1829
|
}, n);
|
|
1819
1830
|
}
|
|
1820
|
-
function
|
|
1831
|
+
function Lt(e) {
|
|
1821
1832
|
let t = null, n = null;
|
|
1822
1833
|
return (...r) => {
|
|
1823
1834
|
let i = JSON.stringify(r);
|
|
1824
1835
|
return i === t ? n : (t = i, n = e(...r), n);
|
|
1825
1836
|
};
|
|
1826
1837
|
}
|
|
1827
|
-
var
|
|
1838
|
+
var Rt = Lt((e, t, n, r, i, a, o, s) => {
|
|
1828
1839
|
if (e) return r.length <= 2 ? r.map((e, t) => ({
|
|
1829
1840
|
text: e,
|
|
1830
1841
|
absoluteIndex: t
|
|
@@ -1866,13 +1877,13 @@ var It = Ft((e, t, n, r, i, a, o, s) => {
|
|
|
1866
1877
|
absoluteIndex: t
|
|
1867
1878
|
}));
|
|
1868
1879
|
});
|
|
1869
|
-
function
|
|
1880
|
+
function zt(e) {
|
|
1870
1881
|
return String(e).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
|
1871
1882
|
}
|
|
1872
|
-
function
|
|
1883
|
+
function $(e) {
|
|
1873
1884
|
return String(e).replaceAll("&", "&").replaceAll("\"", """).replaceAll("<", "<").replaceAll(">", ">");
|
|
1874
1885
|
}
|
|
1875
|
-
function
|
|
1886
|
+
function Bt(e) {
|
|
1876
1887
|
if (!e || typeof e != "string") return null;
|
|
1877
1888
|
let t = document.createElementNS(K, "svg");
|
|
1878
1889
|
t.setAttribute("xmlns", K);
|
|
@@ -1884,13 +1895,13 @@ function zt(e) {
|
|
|
1884
1895
|
y: i.y
|
|
1885
1896
|
};
|
|
1886
1897
|
}
|
|
1887
|
-
function
|
|
1898
|
+
function Vt(e, t = "(", n = ")") {
|
|
1888
1899
|
return `${t}${e}${n}`;
|
|
1889
1900
|
}
|
|
1890
|
-
function
|
|
1901
|
+
function Ht(e, t) {
|
|
1891
1902
|
return t <= 1 ? "0%" : `${e * 100 / (t - 1)}%`;
|
|
1892
1903
|
}
|
|
1893
|
-
function
|
|
1904
|
+
function Ut(e, t, n) {
|
|
1894
1905
|
if (!n || !Number.isFinite(e) || !Number.isFinite(t)) return null;
|
|
1895
1906
|
if (n.createSVGPoint && n.getScreenCTM) {
|
|
1896
1907
|
let r = n.createSVGPoint();
|
|
@@ -1910,10 +1921,10 @@ function Ht(e, t, n) {
|
|
|
1910
1921
|
y: r.top + t
|
|
1911
1922
|
};
|
|
1912
1923
|
}
|
|
1913
|
-
function
|
|
1924
|
+
function Wt(e) {
|
|
1914
1925
|
return e != null && Number.isFinite(Number(e));
|
|
1915
1926
|
}
|
|
1916
|
-
function
|
|
1927
|
+
function Gt(e, t = 1) {
|
|
1917
1928
|
if (!e.length) return "";
|
|
1918
1929
|
if (e.length === 1) return `${e[0].x} ${e[0].y}`;
|
|
1919
1930
|
let n = [`${e[0].x} ${e[0].y}`];
|
|
@@ -1929,7 +1940,7 @@ function Wt(e, t = 1) {
|
|
|
1929
1940
|
}
|
|
1930
1941
|
return n.join(" ");
|
|
1931
1942
|
}
|
|
1932
|
-
function
|
|
1943
|
+
function Kt(e, t = 1) {
|
|
1933
1944
|
return !e || typeof window > "u" ? Promise.resolve(null) : new Promise((n) => {
|
|
1934
1945
|
let r = new window.Image();
|
|
1935
1946
|
r.onload = () => {
|
|
@@ -1942,11 +1953,11 @@ function Gt(e, t = 1) {
|
|
|
1942
1953
|
}, r.onerror = () => n(null), r.src = e;
|
|
1943
1954
|
});
|
|
1944
1955
|
}
|
|
1945
|
-
function
|
|
1956
|
+
function qt(e, t) {
|
|
1946
1957
|
let n = Math.floor(Number(t));
|
|
1947
1958
|
if (!Number.isFinite(n) || n <= 0) return [];
|
|
1948
1959
|
let r = b(e);
|
|
1949
1960
|
return r ? Array.from({ length: n }, (e, t) => A(r, t / n)) : (console.error(`Vue Data Ui - createColorWheel - Invalid starting color: ${r}`), []);
|
|
1950
1961
|
}
|
|
1951
1962
|
//#endregion
|
|
1952
|
-
export {
|
|
1963
|
+
export { Dt as $, at as A, Ie as At, he as B, A as Bt, Je as C, f as Ct, lt as D, we as Dt, Ce as E, ct as Et, vt as F, ut as Ft, Ke as G, v as Gt, _t as H, be as Ht, Ct as I, dt as It, Te as J, Ft as Jt, ge as K, Qe as Kt, Ve as L, rt as Lt, wt as M, y as Mt, L as N, g as Nt, pt as O, i as Ot, R as P, Vt as Pt, Se as Q, oe as R, Ht as Rt, F as S, Wt as St, qt as T, st as Tt, qe as U, $e as Ut, gt as V, Tt as Vt, q as W, Ut as Wt, J as X, Nt as Xt, Me as Y, It as Yt, Q as Z, De as _, nt as _t, Xe as a, m as at, ce as b, Pe as bt, Pt as c, Ot as ct, z as d, Ge as dt, Le as et, B as f, He as ft, Ee as g, se as gt, We as h, Bt as ht, tt as i, V as it, ie as j, _e as jt, mt as k, xe as kt, me as l, kt as lt, ve as m, Ze as mt, Ne as n, $ as nt, At as o, jt as ot, pe as p, _ as pt, Ye as q, l as qt, de as r, Mt as rt, Rt as s, Fe as st, K as t, zt as tt, fe as u, Kt as ut, ye as v, Ae as vt, Gt as w, ot as wt, b as x, p as xt, h as y, je as yt, I as z, it as zt };
|