vue-data-ui 3.26.5 → 3.27.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/dist/{Arrow-BQbcOtfC.js → Arrow-DKO1l8oR.js} +1 -1
- package/dist/{BaseDraggableDialog-BCFCiP_6.js → BaseDraggableDialog-C50TEJFv.js} +2 -2
- package/dist/{BaseIcon-CIK6Sqo3.js → BaseIcon-Cx9FD751.js} +1 -1
- package/dist/{BaseLegendToggle-Doa5rYP2.js → BaseLegendToggle-CP3sddwv.js} +1 -1
- package/dist/{BaseZoomControls-BGQM8B5F.js → BaseZoomControls-vNi8YykO.js} +2 -2
- package/dist/{ColorPicker-Cb7qpvFt.js → ColorPicker-hmC2bvwS.js} +2 -2
- package/dist/{DataTable-B6LDCXBz.js → DataTable-CjF_An2h.js} +2 -2
- package/dist/{HillActions-CwdgCb7Q.js → HillActions-DqqGB33u.js} +1 -1
- package/dist/{Legend-D9FGXIbQ.js → Legend-CulFgjUY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-9T4MSwXC.js → NonSvgPenAndPaper-BK1v_MfW.js} +3 -3
- package/dist/{PackageVersion-CslTvFsC.js → PackageVersion-D7H9nfK0.js} +1 -1
- package/dist/{PenAndPaper-C1EcBgJW.js → PenAndPaper-CNiuGw6k.js} +3 -3
- package/dist/{Shape-BZgQLgu5.js → Shape-DSwamtmO.js} +1 -1
- package/dist/{SlicerPreview-DyYv_G-_.js → SlicerPreview-k5YerMA9.js} +12 -12
- package/dist/{SparkTooltip-D4cRlyuq.js → SparkTooltip-D35KVv6N.js} +6 -6
- package/dist/{Title-Bd98RysU.js → Title-BMCuINbv.js} +1 -1
- package/dist/{Tooltip-DmQeI5WE.js → Tooltip-C4ZTwkLF.js} +1 -1
- package/dist/{UserOptions-B_yBcZ1-.js → UserOptions-CORYQiif.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-hill.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-label.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-B_RJohlM.js → dom-to-png-CBusMkua.js} +1 -1
- package/dist/{exposedLib-C-JlvWAt.js → exposedLib-UNxZlnAS.js} +10 -10
- package/dist/{img-KURaWjZI.js → img-Bb5rHcpO.js} +1 -1
- package/dist/{labelUtils-DShv2Mbg.js → labelUtils-Ccn9kK7T.js} +1 -1
- package/dist/{lib-TWIH5fGr.js → lib-D4wK6ljP.js} +127 -133
- package/dist/{package-DbTqd5lc.js → package-DmQufM0G.js} +1 -1
- package/dist/{pdf-CLl24Afl.js → pdf-BzIQHx-F.js} +1 -1
- package/dist/{render-common-CKv-jztN.js → render-common-BtfjXdkJ.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/vue-data-ui.d.ts +212 -59
- package/dist/types/vue-ui-stackbar.d.ts +10 -0
- package/dist/{useConfig-DObkR9Aa.js → useConfig-D_6ZrPMD.js} +82 -0
- package/dist/{useNestedProp-BxOdWM0c.js → useNestedProp-DR_8JPol.js} +1 -1
- package/dist/{useObjectBindings-CPmyIJxB.js → useObjectBindings-DvasYMGu.js} +2 -2
- package/dist/{usePrinter-8Y1Rju0Y.js → usePrinter-DdW2GSm0.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-C3G5Zdl5.js → vue-data-ui-Df7WV80w.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-Cl6-fBV8.js → vue-ui-3d-bar-CJjNPwhG.js} +463 -463
- package/dist/{vue-ui-accordion-AyyZDab3.js → vue-ui-accordion-CaoNWreI.js} +4 -4
- package/dist/{vue-ui-age-pyramid-DOtWAL8s.js → vue-ui-age-pyramid-BYcM0uIP.js} +22 -22
- package/dist/{vue-ui-annotator-BCVjlojM.js → vue-ui-annotator-BmqjDjRF.js} +10 -10
- package/dist/{vue-ui-bullet-B_1Ctjvq.js → vue-ui-bullet-DBOAvpBB.js} +18 -18
- package/dist/vue-ui-bump-rPYwDJ4o.js +1242 -0
- package/dist/{vue-ui-candlestick-KvhjbAxt.js → vue-ui-candlestick-WQHIQNv_.js} +625 -625
- package/dist/{vue-ui-carousel-table-ArMiO0cG.js → vue-ui-carousel-table-Dojcvt49.js} +106 -106
- package/dist/{vue-ui-chestnut-DSM0U27X.js → vue-ui-chestnut-BdhEByUf.js} +65 -65
- package/dist/{vue-ui-chord-64akfaem.js → vue-ui-chord-MF4xF5az.js} +46 -46
- package/dist/{vue-ui-circle-pack-CaR_aNEh.js → vue-ui-circle-pack-BwDim7G8.js} +26 -26
- package/dist/{vue-ui-cursor-DCgqYZiz.js → vue-ui-cursor-w_5cbpSb.js} +61 -61
- package/dist/{vue-ui-dag-8uKK0Rlp.js → vue-ui-dag-D2EUqeDN.js} +65 -65
- package/dist/{vue-ui-dashboard-DeccYtSY.js → vue-ui-dashboard-BLnVXosj.js} +70 -70
- package/dist/{vue-ui-digits-BvK7bVuJ.js → vue-ui-digits-zSqwYWHm.js} +4 -4
- package/dist/{vue-ui-donut-8joMj08Z.js → vue-ui-donut-ZYZfqIhi.js} +117 -117
- package/dist/{vue-ui-donut-evolution-DgITf95R.js → vue-ui-donut-evolution-DtLbWi3h.js} +216 -216
- package/dist/vue-ui-donut-nLDLZwig.js +2427 -0
- package/dist/{vue-ui-dumbbell-U2L4ZYhB.js → vue-ui-dumbbell-Qgn3wRyI.js} +20 -20
- package/dist/{vue-ui-flow-DD20fJu_.js → vue-ui-flow-iSH6dyGw.js} +109 -109
- package/dist/vue-ui-funnel-Cc2z2zS5.js +749 -0
- package/dist/{vue-ui-galaxy-VZFZnHPv.js → vue-ui-galaxy-GhuBSU0o.js} +267 -267
- package/dist/vue-ui-gauge-BAjBO13a.js +934 -0
- package/dist/{vue-ui-geo-DeDQ6ubl.js → vue-ui-geo-mwTtvIHY.js} +19 -19
- package/dist/{vue-ui-gizmo-D5oUKIsP.js → vue-ui-gizmo-B5vOOrZX.js} +4 -4
- package/dist/vue-ui-heatmap-fimkY1nN.js +1613 -0
- package/dist/{vue-ui-hill-DONFacXR.js → vue-ui-hill-DPfTt3UE.js} +18 -18
- package/dist/{vue-ui-history-plot-BMy_y9S6.js → vue-ui-history-plot-B1WgzqTb.js} +53 -53
- package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +1723 -0
- package/dist/{vue-ui-kpi-Bol0OWs3.js → vue-ui-kpi-D-p0CSQh.js} +4 -4
- package/dist/{vue-ui-label-cwjXaEDQ.js → vue-ui-label-r3-QloJL.js} +65 -65
- package/dist/{vue-ui-mini-loader-kdpasmXb.js → vue-ui-mini-loader-CnrBGAtM.js} +3 -3
- package/dist/vue-ui-molecule-BhdAYX_H.js +941 -0
- package/dist/vue-ui-mood-radar-CdlnPrQf.js +1111 -0
- package/dist/{vue-ui-nested-donuts-ZmGGEvRk.js → vue-ui-nested-donuts-DceVEyUc.js} +341 -341
- package/dist/{vue-ui-onion-D6IKPpL-.js → vue-ui-onion-_L0uEATI.js} +209 -209
- package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +1444 -0
- package/dist/{vue-ui-quadrant-CueHa1Pm.js → vue-ui-quadrant-CDDFLRcX.js} +55 -55
- package/dist/{vue-ui-quick-chart-C8ZxX1Zw.js → vue-ui-quick-chart-Dom257hl.js} +377 -377
- package/dist/vue-ui-radar-BLdri1bA.js +1386 -0
- package/dist/{vue-ui-rating-V_OnJN9Y.js → vue-ui-rating-C_iTttXB.js} +25 -25
- package/dist/vue-ui-relation-circle-BmxTSgjd.js +905 -0
- package/dist/vue-ui-ridgeline-CsUrcVmL.js +1630 -0
- package/dist/{vue-ui-rings-Bf9IKwDr.js → vue-ui-rings-D_GPkgbD.js} +318 -318
- package/dist/vue-ui-scatter-D_C-IhnW.js +2418 -0
- package/dist/{vue-ui-skeleton-dyXWT6JX.js → vue-ui-skeleton-t7e6KEZ2.js} +60 -60
- package/dist/{vue-ui-smiley-w6nH1I0E.js → vue-ui-smiley-Dl95YWVo.js} +14 -14
- package/dist/{vue-ui-spark-trend-Bso9bwmY.js → vue-ui-spark-trend-pkZA7u5V.js} +20 -20
- package/dist/{vue-ui-sparkbar-CL06Yt56.js → vue-ui-sparkbar-Ds7OJjhG.js} +77 -77
- package/dist/{vue-ui-sparkgauge-BHDM5Hbr.js → vue-ui-sparkgauge-US1M88qc.js} +6 -6
- package/dist/vue-ui-sparkhistogram-FISVpSvv.js +589 -0
- package/dist/{vue-ui-sparkline-znaswFQj.js → vue-ui-sparkline-DvE1dHcs.js} +37 -37
- package/dist/{vue-ui-sparkstackbar-BOzVoWoa.js → vue-ui-sparkstackbar-CWtF9eG-.js} +39 -39
- package/dist/vue-ui-stackbar-fMgrHzZe.js +3273 -0
- package/dist/{vue-ui-stackline-qcLrNL09.js → vue-ui-stackline-CSMuUup2.js} +303 -303
- package/dist/vue-ui-strip-plot-TGD2UFHS.js +1752 -0
- package/dist/{vue-ui-table-D295mJIf.js → vue-ui-table-BCEIbg8-.js} +14 -14
- package/dist/{vue-ui-table-heatmap-CXeMKqKz.js → vue-ui-table-heatmap-CvUcFWMf.js} +9 -9
- package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +738 -0
- package/dist/vue-ui-thermometer-BYFAZCzh.js +758 -0
- package/dist/{vue-ui-timer-BULpjYiI.js → vue-ui-timer-BKr8RVnn.js} +10 -10
- package/dist/{vue-ui-tiremarks-B7bTeU8h.js → vue-ui-tiremarks-BYu3cEoy.js} +35 -35
- package/dist/{vue-ui-treemap-DkqDz9W4.js → vue-ui-treemap-BR3rX5_L.js} +50 -50
- package/dist/{vue-ui-waffle-Cn7WBzqh.js → vue-ui-waffle-mP8g5aQk.js} +275 -275
- package/dist/{vue-ui-wheel-Cy7kBvEx.js → vue-ui-wheel-CZsSO2R6.js} +187 -187
- package/dist/{vue-ui-word-cloud-tRqc2ZMR.js → vue-ui-word-cloud-CJ30onqy.js} +35 -35
- package/dist/{vue-ui-world-B755-zji.js → vue-ui-world-BZ09DOiF.js} +498 -498
- package/dist/{vue-ui-xy-BiHIJ7rK.js → vue-ui-xy-C3h54loZ.js} +405 -405
- package/dist/{vue-ui-xy-canvas-DGuMC_Rf.js → vue-ui-xy-canvas-BwgK8drp.js} +165 -165
- package/dist/{vue-ui-xy-DWYTZz_v.js → vue-ui-xy-jemv5dsf.js} +288 -288
- package/dist/{vue_ui_stackbar-DdjDL6aq.js → vue_ui_stackbar-yQyvT4Su.js} +46 -0
- package/package.json +1 -1
- package/dist/vue-ui-bump-kOK6x4al.js +0 -1242
- package/dist/vue-ui-donut-CvbfzzdT.js +0 -2427
- package/dist/vue-ui-funnel-Cx8hVlZV.js +0 -749
- package/dist/vue-ui-gauge-Copa7G58.js +0 -934
- package/dist/vue-ui-heatmap-BukWtNsd.js +0 -1613
- package/dist/vue-ui-horizontal-bar-bcPSs999.js +0 -1723
- package/dist/vue-ui-molecule-BiAI5lbh.js +0 -941
- package/dist/vue-ui-mood-radar-f4xXkiBs.js +0 -1111
- package/dist/vue-ui-parallel-coordinate-plot-BbfModz3.js +0 -1444
- package/dist/vue-ui-radar-BcD7Zqvb.js +0 -1386
- package/dist/vue-ui-relation-circle-DlN4r83K.js +0 -905
- package/dist/vue-ui-ridgeline-BlQnTWXi.js +0 -1630
- package/dist/vue-ui-scatter-arPbS9MH.js +0 -2418
- package/dist/vue-ui-sparkhistogram-3Tw8PEms.js +0 -589
- package/dist/vue-ui-stackbar-BTOvMsP8.js +0 -2755
- package/dist/vue-ui-strip-plot-BLNaCPm8.js +0 -1752
- package/dist/vue-ui-table-sparkline-BYuwQrwA.js +0 -738
- package/dist/vue-ui-thermometer-BwJ0oF-H.js +0 -758
|
@@ -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 = Ge(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") {
|
|
@@ -503,38 +503,29 @@ function de(e, t = {
|
|
|
503
503
|
let r = ue(n.red, n.green, n.blue);
|
|
504
504
|
return (n.alpha < 1 ? n.alpha * r + (1 - n.alpha) * 1 : r) > .3 ? t?.dark ?? "#000000" : t?.light ?? "#FFFFFF";
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function fe(e) {
|
|
507
507
|
return typeof e == "object" && !!e && Object.prototype.toString.call(e) === "[object Object]" && (e.constructor === Object || e.constructor == null);
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function pe(e) {
|
|
510
510
|
return !!e && (e.__v_isRef || e.__v_isReactive || e.__v_isReadonly || e.effect || e.dep || e.deps || e.subs);
|
|
511
511
|
}
|
|
512
|
-
function
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
if (!M(a) || i.has(a)) return a;
|
|
518
|
-
i.add(a);
|
|
519
|
-
for (let t in a) {
|
|
520
|
-
let r = e(a[t]) ? n(a[t]) : a[t];
|
|
521
|
-
if (t === "backgroundColor" || t === "cold" || t === "color" || t === "emptyFill" || t === "fill" || t === "handleFill" || t === "hot" || t === "medianCircleFill") {
|
|
522
|
-
typeof r == "string" && (a[t] = P(r));
|
|
523
|
-
continue;
|
|
524
|
-
}
|
|
525
|
-
if (t === "stroke") {
|
|
526
|
-
typeof r == "string" ? a[t] = P(r) : M(r) && !N(r) && F(r, i);
|
|
527
|
-
continue;
|
|
528
|
-
}
|
|
529
|
-
if (Array.isArray(r)) {
|
|
530
|
-
for (let e of r) M(e) && !N(e) && F(e, i);
|
|
531
|
-
continue;
|
|
512
|
+
function me(r, i = /* @__PURE__ */ new WeakSet()) {
|
|
513
|
+
let a = (r) => {
|
|
514
|
+
if (e(r)) {
|
|
515
|
+
let e = n(r);
|
|
516
|
+
return typeof e == "string" ? b(e) ?? r : (a(e), r);
|
|
532
517
|
}
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
518
|
+
if (typeof r == "string") return b(r) ?? r;
|
|
519
|
+
if (!r || typeof r != "object" || pe(r)) return r;
|
|
520
|
+
let o = t(r);
|
|
521
|
+
if (!fe(o) && !Array.isArray(o) || i.has(o)) return r;
|
|
522
|
+
i.add(o);
|
|
523
|
+
for (let e of Object.keys(o)) o[e] = a(o[e]);
|
|
524
|
+
return r;
|
|
525
|
+
}, o = t(r);
|
|
526
|
+
return a(o), o;
|
|
536
527
|
}
|
|
537
|
-
function
|
|
528
|
+
function he(e) {
|
|
538
529
|
let t = e?.length ?? 0;
|
|
539
530
|
if (t < 2) return {
|
|
540
531
|
x1: 0,
|
|
@@ -558,7 +549,7 @@ function fe(e) {
|
|
|
558
549
|
trend: (x - b) / S
|
|
559
550
|
};
|
|
560
551
|
}
|
|
561
|
-
function
|
|
552
|
+
function ge(e) {
|
|
562
553
|
if (!Array.isArray(e) || e.length === 0) return null;
|
|
563
554
|
let t = e.filter(Number.isFinite);
|
|
564
555
|
if (t.length === 0) return null;
|
|
@@ -567,18 +558,18 @@ function pe(e) {
|
|
|
567
558
|
let n = Math.floor(t.length / 2);
|
|
568
559
|
return t.length % 2 == 1 ? t[n] : t[n - 1] / 2 + t[n] / 2;
|
|
569
560
|
}
|
|
570
|
-
function
|
|
561
|
+
function _e(e) {
|
|
571
562
|
if (!Array.isArray(e) || e.length === 0) return null;
|
|
572
563
|
let t = 0, n = 0;
|
|
573
564
|
for (let r of e) Number.isFinite(r) && (n += 1, t = t * ((n - 1) / n) + r / n);
|
|
574
565
|
return n === 0 ? null : t;
|
|
575
566
|
}
|
|
576
|
-
function
|
|
567
|
+
function ve(e) {
|
|
577
568
|
let t = [];
|
|
578
569
|
for (let n = 0; n < e.length; n += 1) t.push(`${h(e[n].x)},${h(e[n].y)} `);
|
|
579
570
|
return t.join(" ").trim();
|
|
580
571
|
}
|
|
581
|
-
function
|
|
572
|
+
function M(e, t = null) {
|
|
582
573
|
let n = (e) => e && e.value !== null && e.value !== void 0 && Number.isFinite(e.x) && Number.isFinite(e.y), r = [], i = [];
|
|
583
574
|
for (let t of e) n(t) ? i.push(t) : (i.length && r.push(i), i = []);
|
|
584
575
|
return i.length && r.push(i), r.map((e) => {
|
|
@@ -591,7 +582,7 @@ function ge(e, t = null) {
|
|
|
591
582
|
return t != null && (n.unshift(`${h(e[0].x)},${h(t)}`), n.push(`${h(e.at(-1).x)},${h(t)}`)), n.join(" ");
|
|
592
583
|
}).filter(Boolean).join(";");
|
|
593
584
|
}
|
|
594
|
-
function
|
|
585
|
+
function N(e) {
|
|
595
586
|
if (e.length < 2) return "0,0";
|
|
596
587
|
let t = e.length - 1, n = [`${h(e[0].x)},${h(e[0].y)}`], r = [], i = [], a = [], o = [];
|
|
597
588
|
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];
|
|
@@ -607,7 +598,7 @@ function _e(e) {
|
|
|
607
598
|
}
|
|
608
599
|
return n.join(" ");
|
|
609
600
|
}
|
|
610
|
-
function
|
|
601
|
+
function P(e, t = .2) {
|
|
611
602
|
function n(e, t) {
|
|
612
603
|
let n = t.x - e.x, r = t.y - e.y;
|
|
613
604
|
return {
|
|
@@ -628,7 +619,7 @@ function ve(e, t = .2) {
|
|
|
628
619
|
}
|
|
629
620
|
return e.filter((e) => !!e).reduce((e, t, n, r) => n === 0 ? `${h(t.x)},${h(t.y)} ` : `${e} ${i(t, n, r)} `, "");
|
|
630
621
|
}
|
|
631
|
-
function
|
|
622
|
+
function F() {
|
|
632
623
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
633
624
|
let t = Math.random() * 16 | 0;
|
|
634
625
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
@@ -644,7 +635,7 @@ function I(e, t = !1, n = 16, r = !1) {
|
|
|
644
635
|
function L(e, t = 16, n = 16) {
|
|
645
636
|
return e.center.endY > e.cy ? e.center.endY + n : e.center.endY < e.cy ? e.center.endY - t : e.center.endY;
|
|
646
637
|
}
|
|
647
|
-
function
|
|
638
|
+
function ye({ initX: e, initY: t, offset: n, centerX: r, centerY: i }) {
|
|
648
639
|
let a = Math.atan2(t - i, e - r);
|
|
649
640
|
return {
|
|
650
641
|
x: e + n * Math.cos(a),
|
|
@@ -669,23 +660,23 @@ function R(e) {
|
|
|
669
660
|
y: c
|
|
670
661
|
};
|
|
671
662
|
}
|
|
672
|
-
function
|
|
663
|
+
function be(e, t = !1, n = 16, r = 16, i = !1, a = !1, o = 0, s = 12, c = !1) {
|
|
673
664
|
let { x: l } = R(e.path), u = `${I(e).x},${L(e, n, r) - 4} `, d = "", f, p;
|
|
674
665
|
l > e.cx ? (f = I(e).x - s, p = L(e, n, r) - 4, d = `${f},${p}`) : (e.cx, f = I(e).x + s, p = L(e, n, r) - 4, d = `${f},${p}`);
|
|
675
666
|
let m = ` ${e.center.endX},${e.center.endY}`;
|
|
676
667
|
return c ? a ? `M${d} Q${d} ${m}` : `M${u} Q${d} ${m}` : `M${a ? "" : u}${d}${m}`;
|
|
677
668
|
}
|
|
678
|
-
function
|
|
669
|
+
function xe(e) {
|
|
679
670
|
return ![
|
|
680
671
|
null,
|
|
681
672
|
void 0,
|
|
682
673
|
NaN
|
|
683
674
|
].includes(e);
|
|
684
675
|
}
|
|
685
|
-
function
|
|
676
|
+
function Se(e, t) {
|
|
686
677
|
return [...e].map((e) => e[t]).reduce((e, t) => e + t, 0);
|
|
687
678
|
}
|
|
688
|
-
function
|
|
679
|
+
function Ce(e, t = !0, n = !1) {
|
|
689
680
|
if (!e.length) return "M0,0";
|
|
690
681
|
let r = "";
|
|
691
682
|
return e.forEach((e) => {
|
|
@@ -693,21 +684,21 @@ function we(e, t = !0, n = !1) {
|
|
|
693
684
|
r += `${e.x},${e.y} `;
|
|
694
685
|
}), n ? r.trim() : `M${r}${t ? "Z" : ""}`;
|
|
695
686
|
}
|
|
696
|
-
function
|
|
687
|
+
function we({ csvContent: e, title: t = "vue-data-ui" }) {
|
|
697
688
|
let n = encodeURI(e), r = document.createElement("a");
|
|
698
689
|
r.setAttribute("href", n), r.setAttribute("download", `${t}.csv`), document.body.appendChild(r), r.click(), r.remove(), window.URL.revokeObjectURL(n);
|
|
699
690
|
}
|
|
700
|
-
function
|
|
691
|
+
function Te(e) {
|
|
701
692
|
return `data:text/csv;charset=utf-8,${e.map((e) => e.join(",")).join("\n")}`;
|
|
702
693
|
}
|
|
703
|
-
function
|
|
694
|
+
function Ee(e, t) {
|
|
704
695
|
if (!/^#([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)) return console.warn("lightenHexColor : Invalid hex color format"), "#000000";
|
|
705
696
|
let n = e.replace("#", "");
|
|
706
697
|
n.length === 3 && (n = n.split("").map((e) => e + e).join(""));
|
|
707
698
|
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")}`;
|
|
708
699
|
return n.length === 8 ? l + n.substring(6, 8) : l;
|
|
709
700
|
}
|
|
710
|
-
function
|
|
701
|
+
function De(e, t) {
|
|
711
702
|
if (!/^#([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)) return console.warn("darkenHexColor: Invalid hex color format"), "#000000";
|
|
712
703
|
let n = e.replace("#", "");
|
|
713
704
|
n.length === 3 && (n = n.split("").map((e) => e + e).join(""));
|
|
@@ -718,7 +709,7 @@ function z(e, t) {
|
|
|
718
709
|
let n = Math.floor(Math.log10(e)), r = e / 10 ** n, i;
|
|
719
710
|
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;
|
|
720
711
|
}
|
|
721
|
-
function
|
|
712
|
+
function Oe(e, t, n, r = !1) {
|
|
722
713
|
let i = r ? t - e : z(t - e, !1), a = r ? i / (n - 1) : z(i / (n - 1), !0), o = Math.floor(e / a) * a, s = Math.ceil(t / a) * a, c = [];
|
|
723
714
|
for (let e = o; e <= s; e += a) c.push(e);
|
|
724
715
|
return {
|
|
@@ -728,7 +719,7 @@ function ke(e, t, n, r = !1) {
|
|
|
728
719
|
ticks: c
|
|
729
720
|
};
|
|
730
721
|
}
|
|
731
|
-
function
|
|
722
|
+
function ke(e, t, n, r = !1) {
|
|
732
723
|
let i = r ? t - e : z(t - e, !1), a = r ? i / (n - 1) : z(i / (n - 1), !0), o = Math.floor(e / a) * a, s = Math.ceil(t / a) * a, c = [], l = o;
|
|
733
724
|
for (; l <= s;) l >= e && l <= t && c.push(l), l += a;
|
|
734
725
|
return c[0] !== e && (c[0] = e), c[c.length - 1] !== t && (c[c.length - 1] = t), {
|
|
@@ -738,7 +729,7 @@ function Ae(e, t, n, r = !1) {
|
|
|
738
729
|
ticks: c
|
|
739
730
|
};
|
|
740
731
|
}
|
|
741
|
-
function
|
|
732
|
+
function Ae(e) {
|
|
742
733
|
if (typeof e != "string") return console.error("hexColor must be a string"), "#000000ff";
|
|
743
734
|
let t = e.trim();
|
|
744
735
|
if (!t.startsWith("#")) return console.error("hexColor must start with #"), "#000000ff";
|
|
@@ -751,21 +742,21 @@ function je(e) {
|
|
|
751
742
|
].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");
|
|
752
743
|
}
|
|
753
744
|
var B = (e) => {
|
|
754
|
-
let t =
|
|
745
|
+
let t = Ae(e);
|
|
755
746
|
return {
|
|
756
747
|
r: parseInt(t.substring(1, 3), 16),
|
|
757
748
|
g: parseInt(t.substring(3, 5), 16),
|
|
758
749
|
b: parseInt(t.substring(5, 7), 16),
|
|
759
750
|
a: t.length === 9 ? parseInt(t.substring(7, 9), 16) / 255 : 1
|
|
760
751
|
};
|
|
761
|
-
},
|
|
752
|
+
}, je = ({ r: e, g: t, b: n, a: r = 1 }) => {
|
|
762
753
|
let i = V(r, 0, 1), a = `#${k(e)}${k(t)}${k(n)}`;
|
|
763
754
|
return i < 1 ? `${a}${k(i * 255)}` : a;
|
|
764
755
|
};
|
|
765
756
|
function V(e, t, n) {
|
|
766
757
|
return Math.min(Math.max(e, t), n);
|
|
767
758
|
}
|
|
768
|
-
function
|
|
759
|
+
function Me(e, t, n, r, i) {
|
|
769
760
|
let a = B(e), o = B(t);
|
|
770
761
|
i = Math.min(Math.max(i, n), r);
|
|
771
762
|
let s = (i - n) / (r - n), c = {
|
|
@@ -773,12 +764,12 @@ function Ne(e, t, n, r, i) {
|
|
|
773
764
|
g: Math.round(a.g + (o.g - a.g) * s),
|
|
774
765
|
b: Math.round(a.b + (o.b - a.b) * s)
|
|
775
766
|
}, l = a.a + (o.a - a.a) * s;
|
|
776
|
-
return
|
|
767
|
+
return je({
|
|
777
768
|
...c,
|
|
778
769
|
a: l
|
|
779
770
|
});
|
|
780
771
|
}
|
|
781
|
-
function
|
|
772
|
+
function Ne({ colors: e, ratio: t }) {
|
|
782
773
|
if (!Array.isArray(e)) throw Error("colors must be an array");
|
|
783
774
|
if (!e.length) throw Error("colors must contain at least 1 hex color");
|
|
784
775
|
let n = (e) => Math.round(V(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(V(i, 0, 1) * 255)}`;
|
|
@@ -791,11 +782,11 @@ function Pe({ colors: e, ratio: t }) {
|
|
|
791
782
|
a: u.a + (d.a - u.a) * l
|
|
792
783
|
});
|
|
793
784
|
}
|
|
794
|
-
function
|
|
785
|
+
function Pe({ p: e = "", v: t, s: n = "", r = 0, space: i = !1, isAnimating: a = !1, regex: o = /[^%]/g, replacement: s = "-", locale: c = null }) {
|
|
795
786
|
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 ?? ""}`;
|
|
796
787
|
return a ? d.replace(o, s) : d;
|
|
797
788
|
}
|
|
798
|
-
function
|
|
789
|
+
function Fe({ source: e, length: t = 3 }) {
|
|
799
790
|
if (!e && e !== 0) return "";
|
|
800
791
|
e = String(e);
|
|
801
792
|
let n = e.length > 1 ? e.split(" ") : [e];
|
|
@@ -808,22 +799,22 @@ function Ie({ source: e, length: t = 3 }) {
|
|
|
808
799
|
}), e.join().replaceAll(",", "").toUpperCase();
|
|
809
800
|
}
|
|
810
801
|
}
|
|
811
|
-
function
|
|
802
|
+
function Ie(e) {
|
|
812
803
|
return !!e && typeof e == "function";
|
|
813
804
|
}
|
|
814
|
-
function
|
|
805
|
+
function Le(e) {
|
|
815
806
|
return typeof e.apply(null, arguments) == "string";
|
|
816
807
|
}
|
|
817
|
-
function
|
|
808
|
+
function Re(e) {
|
|
818
809
|
return Array.isArray(e) ? e.length === 0 : !e || Object.keys(e).length === 0;
|
|
819
810
|
}
|
|
820
|
-
function
|
|
811
|
+
function ze({ componentName: e, type: t, property: n = "", index: i = "", key: a = "", warn: o = !0, debug: s = !0 }) {
|
|
821
812
|
if (!s) return;
|
|
822
813
|
let c = `\n> ${r[t].replace("#COMP#", e).replace("#ATTR#", n).replace("#INDX#", i).replace("#KEY#", a)}\n`;
|
|
823
814
|
if (o) console.warn(c);
|
|
824
815
|
else throw Error(c);
|
|
825
816
|
}
|
|
826
|
-
function
|
|
817
|
+
function Be({ points: e, a: t, b: n, angleStep: r, startX: i, startY: a }) {
|
|
827
818
|
let o = [];
|
|
828
819
|
for (let s = 0; s < e; s++) {
|
|
829
820
|
let e = r * s, c = t + n * e, l = c * Math.cos(e) + i, u = c * Math.sin(e) + a;
|
|
@@ -834,7 +825,7 @@ function Ve({ points: e, a: t, b: n, angleStep: r, startX: i, startY: a }) {
|
|
|
834
825
|
}
|
|
835
826
|
return o;
|
|
836
827
|
}
|
|
837
|
-
function
|
|
828
|
+
function Ve(e) {
|
|
838
829
|
let t = Infinity, n = Infinity, r = -Infinity, i = -Infinity;
|
|
839
830
|
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);
|
|
840
831
|
return {
|
|
@@ -846,7 +837,7 @@ function He(e) {
|
|
|
846
837
|
height: i - n || 1
|
|
847
838
|
};
|
|
848
839
|
}
|
|
849
|
-
function
|
|
840
|
+
function He(e) {
|
|
850
841
|
if (!e.length) return "";
|
|
851
842
|
let t = `M${e[0].x} ${e[0].y}`;
|
|
852
843
|
for (let n = 1; n < e.length - 2; n += 2) {
|
|
@@ -855,24 +846,24 @@ function Ue(e) {
|
|
|
855
846
|
}
|
|
856
847
|
return t;
|
|
857
848
|
}
|
|
858
|
-
function
|
|
859
|
-
let l =
|
|
849
|
+
function Ue({ maxPoints: e, a: t = 6, b: n = 6, angleStep: r = .07, startX: i, startY: a, boxWidth: o, boxHeight: s, padding: c = 12 }) {
|
|
850
|
+
let l = Be({
|
|
860
851
|
points: e,
|
|
861
852
|
a: t,
|
|
862
853
|
b: n,
|
|
863
854
|
angleStep: r,
|
|
864
855
|
startX: 0,
|
|
865
856
|
startY: 0
|
|
866
|
-
}), { minX: u, minY: d, maxX: f, maxY: p, width: m, height: h } =
|
|
857
|
+
}), { minX: u, minY: d, maxX: f, maxY: p, width: m, height: h } = Ve(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;
|
|
867
858
|
return function(e) {
|
|
868
859
|
let t = Math.max(2, Math.min(Math.round(e), l.length));
|
|
869
|
-
return
|
|
860
|
+
return He(l.slice(0, t).map((e) => ({
|
|
870
861
|
x: e.x * b + x,
|
|
871
862
|
y: e.y * b + S
|
|
872
863
|
})));
|
|
873
864
|
};
|
|
874
865
|
}
|
|
875
|
-
function
|
|
866
|
+
function We({ datasetObject: e, requiredAttributes: t }) {
|
|
876
867
|
let n = [];
|
|
877
868
|
return t.forEach((t) => {
|
|
878
869
|
Object.hasOwn(e, t) || n.push(t);
|
|
@@ -1021,7 +1012,7 @@ var H = {
|
|
|
1021
1012
|
YELLOWGREEN: "#9ACD32",
|
|
1022
1013
|
REBECCAPURPLE: "#663399"
|
|
1023
1014
|
};
|
|
1024
|
-
function
|
|
1015
|
+
function Ge(t) {
|
|
1025
1016
|
let r = e?.(t) ? n(t) : t;
|
|
1026
1017
|
if (typeof r != "string") return r;
|
|
1027
1018
|
let i = r.trim();
|
|
@@ -1031,7 +1022,7 @@ function Ke(t) {
|
|
|
1031
1022
|
return H[a] || H[o] || i;
|
|
1032
1023
|
}
|
|
1033
1024
|
var U = "http://www.w3.org/2000/svg";
|
|
1034
|
-
function
|
|
1025
|
+
function Ke(e) {
|
|
1035
1026
|
if (e.length < 2) return 0;
|
|
1036
1027
|
let t = 0, n = 0;
|
|
1037
1028
|
for (let r = 1; r < e.length; r++) {
|
|
@@ -1052,7 +1043,7 @@ function W({ content: e, fontSize: t, fill: n, x: r, y: i, translateY: a = !1, s
|
|
|
1052
1043
|
let s = (e ?? "").split("\n"), c = s.length * t, l = a ? (c - t) / 2 : 0;
|
|
1053
1044
|
return s.map((e, a) => `<tspan x="${r}" y="${i - l + a * t}" fill="${n}" stroke="${o}" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" paint-order="stroke fill">${e}</tspan>`).join("");
|
|
1054
1045
|
}
|
|
1055
|
-
function
|
|
1046
|
+
function qe(e) {
|
|
1056
1047
|
return f(e) ? (W({
|
|
1057
1048
|
content: e,
|
|
1058
1049
|
fontSize: 1,
|
|
@@ -1061,11 +1052,11 @@ function Je(e) {
|
|
|
1061
1052
|
y: 0
|
|
1062
1053
|
}).match(/<tspan\b/g) || []).length : 1;
|
|
1063
1054
|
}
|
|
1064
|
-
function
|
|
1055
|
+
function Je({ content: e, fontSize: t, fill: n, x: r, autoOffset: i = !1, stroke: a = "none" }) {
|
|
1065
1056
|
let o = (e ?? "").split("\n"), s = i ? (o.length - 1) * t / 2 : 0;
|
|
1066
1057
|
return o.map((e, i) => `<tspan x="${r}" dy="${i === 0 ? -s : t}" fill="${n}" stroke="${a}" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" paint-order="stroke fill">${e}</tspan>`).join("");
|
|
1067
1058
|
}
|
|
1068
|
-
function
|
|
1059
|
+
function Ye({ content: e, fontSize: t, fill: n, maxWords: r, x: i, y: a, stroke: o = "none" }) {
|
|
1069
1060
|
function s(e, t) {
|
|
1070
1061
|
let n = e.split(" "), r = [];
|
|
1071
1062
|
for (let e = 0; e < n.length; e += t) r.push(n.slice(e, e + t).join(" "));
|
|
@@ -1077,10 +1068,10 @@ function Xe({ content: e, fontSize: t, fill: n, maxWords: r, x: i, y: a, stroke:
|
|
|
1077
1068
|
c += s;
|
|
1078
1069
|
}), c;
|
|
1079
1070
|
}
|
|
1080
|
-
function
|
|
1071
|
+
function Xe(e) {
|
|
1081
1072
|
return e.length ? e.map((e) => b(e)) : [];
|
|
1082
1073
|
}
|
|
1083
|
-
function
|
|
1074
|
+
function Ze(e, t = null) {
|
|
1084
1075
|
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), {});
|
|
1085
1076
|
return Object.keys(r).map((e) => {
|
|
1086
1077
|
let n = e;
|
|
@@ -1090,7 +1081,7 @@ function Qe(e, t = null) {
|
|
|
1090
1081
|
};
|
|
1091
1082
|
});
|
|
1092
1083
|
}
|
|
1093
|
-
function
|
|
1084
|
+
function Qe(e) {
|
|
1094
1085
|
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) => ({
|
|
1095
1086
|
...e,
|
|
1096
1087
|
stackRatio: e.stackRatio === void 0 ? i : e.stackRatio
|
|
@@ -1101,7 +1092,7 @@ function $e(e) {
|
|
|
1101
1092
|
cumulatedStackRatio: o
|
|
1102
1093
|
})), a;
|
|
1103
1094
|
}
|
|
1104
|
-
function
|
|
1095
|
+
function $e(e) {
|
|
1105
1096
|
function t(e, t, n, r) {
|
|
1106
1097
|
let i = n - e, a = r - t;
|
|
1107
1098
|
return Math.sqrt(i * i + a * a);
|
|
@@ -1149,11 +1140,11 @@ function et(e) {
|
|
|
1149
1140
|
}
|
|
1150
1141
|
}), c;
|
|
1151
1142
|
}
|
|
1152
|
-
function
|
|
1143
|
+
function et({ relator: e, adjuster: t, source: n, threshold: r = 0, fallback: i, max: a = 24 }) {
|
|
1153
1144
|
let o = e / (t / n);
|
|
1154
1145
|
return o > a ? a : o < r ? i : o;
|
|
1155
1146
|
}
|
|
1156
|
-
function
|
|
1147
|
+
function tt(e) {
|
|
1157
1148
|
return e.reduce((e, t) => (t.series.forEach((t, n) => {
|
|
1158
1149
|
![
|
|
1159
1150
|
void 0,
|
|
@@ -1163,7 +1154,7 @@ function nt(e) {
|
|
|
1163
1154
|
].includes(t) && !isNaN(t) && (e[n] = (e[n] || 0) + t);
|
|
1164
1155
|
}), e), []);
|
|
1165
1156
|
}
|
|
1166
|
-
function
|
|
1157
|
+
function nt(e, { value: t, config: n }) {
|
|
1167
1158
|
let r = !1, i = t;
|
|
1168
1159
|
if (typeof e == "function") try {
|
|
1169
1160
|
i = e({
|
|
@@ -1178,17 +1169,17 @@ function rt(e, { value: t, config: n }) {
|
|
|
1178
1169
|
value: i
|
|
1179
1170
|
};
|
|
1180
1171
|
}
|
|
1181
|
-
function
|
|
1182
|
-
let { isValid: i, value: a } =
|
|
1172
|
+
function rt(e, t, n, r) {
|
|
1173
|
+
let { isValid: i, value: a } = nt(e, {
|
|
1183
1174
|
value: t,
|
|
1184
1175
|
config: r
|
|
1185
1176
|
});
|
|
1186
1177
|
return i ? a : n;
|
|
1187
1178
|
}
|
|
1188
|
-
function
|
|
1179
|
+
function it(e, t) {
|
|
1189
1180
|
return t.split(".").every((t) => typeof e == "object" && e && t in e ? (e = e[t], !0) : !1);
|
|
1190
1181
|
}
|
|
1191
|
-
function
|
|
1182
|
+
function at(e, t = [], n = !1) {
|
|
1192
1183
|
function r(e) {
|
|
1193
1184
|
return n && e === null ? null : typeof e == "string" && isNaN(Number(e)) || typeof e == "number" && isFinite(e) ? e : 0;
|
|
1194
1185
|
}
|
|
@@ -1204,10 +1195,10 @@ function ot(e, t = [], n = !1) {
|
|
|
1204
1195
|
}
|
|
1205
1196
|
return i(e);
|
|
1206
1197
|
}
|
|
1207
|
-
function
|
|
1198
|
+
function ot(e, t = 100) {
|
|
1208
1199
|
return e.length === 9 ? e.substring(0, 7) + y[t] : e + y[t];
|
|
1209
1200
|
}
|
|
1210
|
-
function
|
|
1201
|
+
function st({ series: e, center: t, maxRadius: n, hasGhost: r = !1 }) {
|
|
1211
1202
|
let i = 360 / (e.length - +!!r);
|
|
1212
1203
|
return e.map((e, r) => {
|
|
1213
1204
|
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);
|
|
@@ -1226,7 +1217,7 @@ function ct({ series: e, center: t, maxRadius: n, hasGhost: r = !1 }) {
|
|
|
1226
1217
|
};
|
|
1227
1218
|
});
|
|
1228
1219
|
}
|
|
1229
|
-
function
|
|
1220
|
+
function ct({ data: e, threshold: t }) {
|
|
1230
1221
|
if (t >= e.length || t < 3) return e;
|
|
1231
1222
|
let n = [], r = (e.length - 2) / (t - 2), i = 0;
|
|
1232
1223
|
n.push(e[i]);
|
|
@@ -1243,7 +1234,7 @@ function lt({ data: e, threshold: t }) {
|
|
|
1243
1234
|
}
|
|
1244
1235
|
return n.push(e[e.length - 1]), n;
|
|
1245
1236
|
}
|
|
1246
|
-
function
|
|
1237
|
+
function lt({ data: e, threshold: t }) {
|
|
1247
1238
|
if (t >= e.length || t < 3) return e;
|
|
1248
1239
|
let n = [], r = (e.length - 2) / (t - 2), i = 0;
|
|
1249
1240
|
n.push(e[i]);
|
|
@@ -1257,7 +1248,7 @@ function ut({ data: e, threshold: t }) {
|
|
|
1257
1248
|
}
|
|
1258
1249
|
return n.push(e[e.length - 1]), n;
|
|
1259
1250
|
}
|
|
1260
|
-
function
|
|
1251
|
+
function ut({ data: e, threshold: t, key: n = "value" }) {
|
|
1261
1252
|
if (t >= e.length || t < 3) return e;
|
|
1262
1253
|
let r = [], i = (e.length - 2) / (t - 2), a = 0;
|
|
1263
1254
|
r.push(e[a]);
|
|
@@ -1271,12 +1262,12 @@ function dt({ data: e, threshold: t, key: n = "value" }) {
|
|
|
1271
1262
|
}
|
|
1272
1263
|
return r.push(e[e.length - 1]), r;
|
|
1273
1264
|
}
|
|
1274
|
-
function
|
|
1265
|
+
function dt({ radius: e, centerX: t, centerY: n, percentage: r }) {
|
|
1275
1266
|
r = Math.max(0, Math.min(1, r));
|
|
1276
1267
|
let i = r * Math.PI;
|
|
1277
1268
|
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();
|
|
1278
1269
|
}
|
|
1279
|
-
function
|
|
1270
|
+
function ft({ svgElement: e, x: t, y: n, offsetY: r = 0, element: i }) {
|
|
1280
1271
|
if (!e || !i) return {
|
|
1281
1272
|
top: 0,
|
|
1282
1273
|
left: 0
|
|
@@ -1289,7 +1280,7 @@ function pt({ svgElement: e, x: t, y: n, offsetY: r = 0, element: i }) {
|
|
|
1289
1280
|
left: o.x + l
|
|
1290
1281
|
};
|
|
1291
1282
|
}
|
|
1292
|
-
function
|
|
1283
|
+
function pt({ svgElement: e, x: t, y: n, element: r, position: i }) {
|
|
1293
1284
|
if (!e || !r) return {
|
|
1294
1285
|
top: 0,
|
|
1295
1286
|
left: 0
|
|
@@ -1332,12 +1323,12 @@ function G(n, r = /* @__PURE__ */ new WeakMap()) {
|
|
|
1332
1323
|
for (let e of Object.keys(i)) a[e] = G(i[e], r);
|
|
1333
1324
|
return a;
|
|
1334
1325
|
}
|
|
1335
|
-
function
|
|
1326
|
+
function mt(e) {
|
|
1336
1327
|
let t = [], n = [];
|
|
1337
1328
|
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);
|
|
1338
1329
|
return n.length && t.push(n), t;
|
|
1339
1330
|
}
|
|
1340
|
-
function
|
|
1331
|
+
function ht(e, t) {
|
|
1341
1332
|
let n = e.filter((e) => !!e);
|
|
1342
1333
|
if (!n[0]) return [
|
|
1343
1334
|
-10,
|
|
@@ -1363,7 +1354,7 @@ function gt(e, t) {
|
|
|
1363
1354
|
i.y
|
|
1364
1355
|
].toString();
|
|
1365
1356
|
}
|
|
1366
|
-
function
|
|
1357
|
+
function gt(e, t) {
|
|
1367
1358
|
if (!e[0]) return [
|
|
1368
1359
|
-10,
|
|
1369
1360
|
-10,
|
|
@@ -1371,7 +1362,7 @@ function _t(e, t) {
|
|
|
1371
1362
|
-10,
|
|
1372
1363
|
-10
|
|
1373
1364
|
].toString();
|
|
1374
|
-
let n =
|
|
1365
|
+
let n = mt(e);
|
|
1375
1366
|
return n.length ? n.map((e) => {
|
|
1376
1367
|
let n = {
|
|
1377
1368
|
x: e[0].x,
|
|
@@ -1391,12 +1382,12 @@ function _t(e, t) {
|
|
|
1391
1382
|
].toString();
|
|
1392
1383
|
}).join(";") : "";
|
|
1393
1384
|
}
|
|
1394
|
-
function
|
|
1385
|
+
function _t(e) {
|
|
1395
1386
|
let t = [], n = [];
|
|
1396
1387
|
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);
|
|
1397
1388
|
return n.length > 1 && t.push(n), t;
|
|
1398
1389
|
}
|
|
1399
|
-
function
|
|
1390
|
+
function vt(e) {
|
|
1400
1391
|
let t = "", n = !1;
|
|
1401
1392
|
for (let r = 0; r < e.length; r++) {
|
|
1402
1393
|
let i = e[r];
|
|
@@ -1418,7 +1409,7 @@ function K(e) {
|
|
|
1418
1409
|
function q(e) {
|
|
1419
1410
|
return `${h(e.x)},${h(e.y)}`;
|
|
1420
1411
|
}
|
|
1421
|
-
function
|
|
1412
|
+
function yt(e, t = []) {
|
|
1422
1413
|
let n = Array.isArray(e) ? e : [], r = n.length, i = /* @__PURE__ */ new Set(), a = r - 1;
|
|
1423
1414
|
for (let e of Array.isArray(t) ? t : []) {
|
|
1424
1415
|
let t = K(e);
|
|
@@ -1458,8 +1449,8 @@ function bt(e, t = []) {
|
|
|
1458
1449
|
}
|
|
1459
1450
|
return u(), o;
|
|
1460
1451
|
}
|
|
1461
|
-
function
|
|
1462
|
-
let t =
|
|
1452
|
+
function bt(e) {
|
|
1453
|
+
let t = _t(e);
|
|
1463
1454
|
if (!t.length) return "";
|
|
1464
1455
|
let n = "";
|
|
1465
1456
|
for (let [e, r] of t.entries()) {
|
|
@@ -1480,7 +1471,7 @@ function xt(e) {
|
|
|
1480
1471
|
}
|
|
1481
1472
|
return n.trim();
|
|
1482
1473
|
}
|
|
1483
|
-
function
|
|
1474
|
+
function xt(e, t) {
|
|
1484
1475
|
if (!Array.isArray(e) || e.length < 2) return [];
|
|
1485
1476
|
let n = t instanceof Set ? t : new Set(t || []), r = (e) => e && e.value !== null && e.value !== void 0 && Number.isFinite(e.x) && Number.isFinite(e.y), i = (e) => `${h(e.x)},${h(e.y)}`, a = [], o = [], s = !1, c = null, l = () => {
|
|
1486
1477
|
o.length >= 3 && a.push({
|
|
@@ -1507,7 +1498,7 @@ function St(e, t) {
|
|
|
1507
1498
|
}
|
|
1508
1499
|
return l(), a;
|
|
1509
1500
|
}
|
|
1510
|
-
function
|
|
1501
|
+
function St(e, t) {
|
|
1511
1502
|
if (!Array.isArray(e) || e.length < 2) return [];
|
|
1512
1503
|
let n = t instanceof Set ? t : new Set(t || []), r = [], i = [], a = !1, o = (e) => `${h(e.x)},${h(e.y)}`, s = () => {
|
|
1513
1504
|
i.length >= 2 && r.push({
|
|
@@ -1529,7 +1520,7 @@ function Ct(e, t) {
|
|
|
1529
1520
|
}
|
|
1530
1521
|
return s(), r;
|
|
1531
1522
|
}
|
|
1532
|
-
function
|
|
1523
|
+
function Ct(e, t) {
|
|
1533
1524
|
if (!Array.isArray(e) || e.length < 2) return [];
|
|
1534
1525
|
let n = t instanceof Set ? t : new Set(t || []), r = e.length - 1, i = [], a = [], o = [];
|
|
1535
1526
|
for (let t = 0; t < r; t += 1) {
|
|
@@ -1558,7 +1549,7 @@ function wt(e, t) {
|
|
|
1558
1549
|
function J(e) {
|
|
1559
1550
|
return e != null && e.value != null && Number.isFinite(e.x) && Number.isFinite(e.y);
|
|
1560
1551
|
}
|
|
1561
|
-
function
|
|
1552
|
+
function wt(e, t) {
|
|
1562
1553
|
let n = e - 1, r = /* @__PURE__ */ new Set(), i = Array.isArray(t) ? t : [];
|
|
1563
1554
|
for (let e of i) {
|
|
1564
1555
|
let t = K(e);
|
|
@@ -1566,7 +1557,7 @@ function Tt(e, t) {
|
|
|
1566
1557
|
}
|
|
1567
1558
|
return r;
|
|
1568
1559
|
}
|
|
1569
|
-
function
|
|
1560
|
+
function Tt(e) {
|
|
1570
1561
|
let t = [], n = [];
|
|
1571
1562
|
for (let r = 0; r < e.length; r += 1) {
|
|
1572
1563
|
let i = e[r];
|
|
@@ -1574,7 +1565,7 @@ function Et(e) {
|
|
|
1574
1565
|
}
|
|
1575
1566
|
return n.length > 1 && t.push(n), t;
|
|
1576
1567
|
}
|
|
1577
|
-
function
|
|
1568
|
+
function Et(e, t) {
|
|
1578
1569
|
let n = t.map((t) => e[t]), r = n.length - 1, i = [], a = [], o = [], s = [];
|
|
1579
1570
|
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];
|
|
1580
1571
|
s[0] = o[0], s[r] = o[r - 1];
|
|
@@ -1589,7 +1580,7 @@ function Dt(e, t) {
|
|
|
1589
1580
|
commands: c
|
|
1590
1581
|
};
|
|
1591
1582
|
}
|
|
1592
|
-
function
|
|
1583
|
+
function Dt(e) {
|
|
1593
1584
|
let t = [];
|
|
1594
1585
|
if (!e.length) return t;
|
|
1595
1586
|
let n = 0, r = e[0];
|
|
@@ -1604,19 +1595,19 @@ function Ot(e) {
|
|
|
1604
1595
|
dashed: r
|
|
1605
1596
|
}), t;
|
|
1606
1597
|
}
|
|
1607
|
-
function
|
|
1598
|
+
function Ot(e, t = []) {
|
|
1608
1599
|
let n = Array.isArray(e) ? e : [];
|
|
1609
1600
|
if (n.length < 2) return [];
|
|
1610
|
-
let r =
|
|
1601
|
+
let r = wt(n.length, t), i = Tt(n);
|
|
1611
1602
|
if (!i.length) return [];
|
|
1612
1603
|
let a = [];
|
|
1613
1604
|
for (let e of i) {
|
|
1614
|
-
let { startCoord: t, commands: i } =
|
|
1605
|
+
let { startCoord: t, commands: i } = Et(n, e), o = Array(i.length);
|
|
1615
1606
|
for (let t = 0; t < i.length; t += 1) {
|
|
1616
1607
|
let n = e[t];
|
|
1617
1608
|
o[t] = r.has(n);
|
|
1618
1609
|
}
|
|
1619
|
-
let s =
|
|
1610
|
+
let s = Dt(o);
|
|
1620
1611
|
for (let r of s) {
|
|
1621
1612
|
let o = r.startEdge, s = `${o === 0 ? t : q(n[e[o]])} ${i.slice(r.startEdge, r.endEdge + 1).join(" ")}`.trim();
|
|
1622
1613
|
a.push({
|
|
@@ -1627,7 +1618,7 @@ function kt(e, t = []) {
|
|
|
1627
1618
|
}
|
|
1628
1619
|
return a;
|
|
1629
1620
|
}
|
|
1630
|
-
function
|
|
1621
|
+
function kt(e, t, n = !1, r = !0) {
|
|
1631
1622
|
function i(e) {
|
|
1632
1623
|
let t = [], n = [];
|
|
1633
1624
|
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);
|
|
@@ -1652,10 +1643,10 @@ function At(e, t, n = !1, r = !0) {
|
|
|
1652
1643
|
return c += ` L${e[n].x},${t} ${r ? "Z" : ""}`, c;
|
|
1653
1644
|
}).filter(Boolean);
|
|
1654
1645
|
}
|
|
1655
|
-
function
|
|
1646
|
+
function At(e) {
|
|
1656
1647
|
return e.toString().toLowerCase().replace(/\s+/g, "-").replace(/[^\p{L}\p{N}_-]+/gu, "").replace(/\-\-+/g, "-").replace(/^-+/, "").replace(/-+$/, "");
|
|
1657
1648
|
}
|
|
1658
|
-
function
|
|
1649
|
+
function jt(e) {
|
|
1659
1650
|
return e && typeof e == "object" && !Array.isArray(e) && Object.keys(e).length === 0 ? null : e;
|
|
1660
1651
|
}
|
|
1661
1652
|
function Y(e) {
|
|
@@ -1663,17 +1654,17 @@ function Y(e) {
|
|
|
1663
1654
|
if (e && typeof e == "object" && !Array.isArray(e)) {
|
|
1664
1655
|
let t = {};
|
|
1665
1656
|
for (let n in e) Object.hasOwn(e, n) && (t[n] = Y(e[n]));
|
|
1666
|
-
return
|
|
1657
|
+
return jt(t);
|
|
1667
1658
|
}
|
|
1668
1659
|
return e;
|
|
1669
1660
|
}
|
|
1670
|
-
function
|
|
1661
|
+
function Mt(e) {
|
|
1671
1662
|
return 1 - (1 - e) ** 3;
|
|
1672
1663
|
}
|
|
1673
|
-
function
|
|
1664
|
+
function Nt(e) {
|
|
1674
1665
|
return e < .5 ? 4 * e * e * e : 1 - (-2 * e + 2) ** 3 / 2;
|
|
1675
1666
|
}
|
|
1676
|
-
function
|
|
1667
|
+
function Pt({ values: e, config: t = {} }) {
|
|
1677
1668
|
let { keepInvalid: n = !0, convertInvalidToZero: r = !1 } = t, i = [], a = 0, o = 0;
|
|
1678
1669
|
function s(e) {
|
|
1679
1670
|
return typeof e != "number" || !Number.isFinite(e);
|
|
@@ -1684,7 +1675,7 @@ function Ft({ values: e, config: t = {} }) {
|
|
|
1684
1675
|
for (let t of e) s(t) ? r && n ? c(0) : !r && n && i.push(t) : c(t);
|
|
1685
1676
|
return i;
|
|
1686
1677
|
}
|
|
1687
|
-
function
|
|
1678
|
+
function Ft({ values: e, config: t = {} }) {
|
|
1688
1679
|
let { keepInvalid: n = !0, convertInvalidToZero: r = !1 } = t, i = [], a = [];
|
|
1689
1680
|
function o(e) {
|
|
1690
1681
|
return typeof e != "number" || !Number.isFinite(e);
|
|
@@ -1697,7 +1688,7 @@ function It({ values: e, config: t = {} }) {
|
|
|
1697
1688
|
for (let t of e) o(t) ? r && n ? s(0) : !r && n && i.push(t) : s(t);
|
|
1698
1689
|
return i;
|
|
1699
1690
|
}
|
|
1700
|
-
function
|
|
1691
|
+
function It({ el: e, bounds: t, currentFontSize: n, minFontSize: r = 6, attempts: i = 200, padding: a = 1 }) {
|
|
1701
1692
|
if (!e || !n) return 0;
|
|
1702
1693
|
let o = n;
|
|
1703
1694
|
e.setAttribute("font-size", o);
|
|
@@ -1707,7 +1698,7 @@ function Lt({ el: e, bounds: t, currentFontSize: n, minFontSize: r = 6, attempts
|
|
|
1707
1698
|
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)););
|
|
1708
1699
|
return o < r && (o = 0, e.setAttribute("font-size", o)), o;
|
|
1709
1700
|
}
|
|
1710
|
-
function
|
|
1701
|
+
function Lt({ value: e, maxDecimals: t = 4, fallbackFormatter: n, removeTrailingZero: r = !0 }) {
|
|
1711
1702
|
if (e === 0) return "0";
|
|
1712
1703
|
let i = Math.abs(e);
|
|
1713
1704
|
if (i >= 1 && typeof n == "function") {
|
|
@@ -1719,18 +1710,18 @@ function Rt({ value: e, maxDecimals: t = 4, fallbackFormatter: n, removeTrailing
|
|
|
1719
1710
|
let o = e.toFixed(a);
|
|
1720
1711
|
return r && (o = o.replace(/(\.\d*?[1-9])0+$/, "$1").replace(/\.0+$/, "")), o;
|
|
1721
1712
|
}
|
|
1722
|
-
function
|
|
1713
|
+
function Rt(e) {
|
|
1723
1714
|
let t = [];
|
|
1724
1715
|
for (let n = 0; n < e; n += 1) t.push(n === 0 ? 0 : n === 1 ? 1 : t[n - 1] + t[n - 2]);
|
|
1725
1716
|
return t;
|
|
1726
1717
|
}
|
|
1727
|
-
function
|
|
1718
|
+
function zt(e, t = 20) {
|
|
1728
1719
|
e = e.replace(/[\r\n]+/g, " ");
|
|
1729
1720
|
let n = e.split(" "), r = "", i = "";
|
|
1730
1721
|
for (let e of n) (r + (r ? " " : "") + e).length <= t ? r += (r ? " " : "") + e : (r && (i += (i ? "\n" : "") + r), r = e);
|
|
1731
1722
|
return r && (i += (i ? "\n" : "") + r), i;
|
|
1732
1723
|
}
|
|
1733
|
-
function
|
|
1724
|
+
function Bt(e) {
|
|
1734
1725
|
return e && ![null, void 0].includes(e.value) && Number.isFinite(e.x) && Number.isFinite(e.y);
|
|
1735
1726
|
}
|
|
1736
1727
|
function X(e, t) {
|
|
@@ -1738,7 +1729,7 @@ function X(e, t) {
|
|
|
1738
1729
|
let n = [], r = [], i = () => {
|
|
1739
1730
|
r.length && (n.push(r), r = []);
|
|
1740
1731
|
};
|
|
1741
|
-
for (let n of e)
|
|
1732
|
+
for (let n of e) Bt(n) ? r.push(n) : t && i();
|
|
1742
1733
|
if (i(), !t) {
|
|
1743
1734
|
let e = n.flat();
|
|
1744
1735
|
n.length = 0, e.length && n.push(e);
|
|
@@ -1768,10 +1759,10 @@ function X(e, t) {
|
|
|
1768
1759
|
}
|
|
1769
1760
|
}), a;
|
|
1770
1761
|
}
|
|
1771
|
-
function
|
|
1762
|
+
function Vt(e, t, n) {
|
|
1772
1763
|
return e + (t - e) * n;
|
|
1773
1764
|
}
|
|
1774
|
-
function
|
|
1765
|
+
function Ht(e) {
|
|
1775
1766
|
let { lineA: t, lineB: n, colorLineA: r, colorLineB: i, smoothA: a = !1, smoothB: o = !1, stepperA: s = !1, stepperB: c = !1, sampleStepPx: l = 2, cutNullValues: u = !0, merge: d = !0 } = e || {};
|
|
1776
1767
|
if (!Array.isArray(t) || !Array.isArray(n) || !t.length || !n.length) return [];
|
|
1777
1768
|
let f = s ? X(t, u) : t, p = c ? X(n, u) : n, m = (e) => Number.isFinite(e);
|
|
@@ -1931,7 +1922,7 @@ function Ut(e) {
|
|
|
1931
1922
|
let { A: D, B: O } = w(S(v, !s && a, x), S(y, !c && o, x));
|
|
1932
1923
|
return d ? E(D, O) : T(D, O);
|
|
1933
1924
|
}
|
|
1934
|
-
function
|
|
1925
|
+
function Ut(e, t, n = {}) {
|
|
1935
1926
|
let r = {
|
|
1936
1927
|
bubbles: !0,
|
|
1937
1928
|
cancelable: !0,
|
|
@@ -1966,7 +1957,7 @@ function Wt(e, t, n = {}) {
|
|
|
1966
1957
|
}) : new Event(t, r);
|
|
1967
1958
|
return e.dispatchEvent(o), o;
|
|
1968
1959
|
}
|
|
1969
|
-
function
|
|
1960
|
+
function Wt(e, { delta: t = 1, delay: n = 20, disableTransitions: r = !0 } = {}) {
|
|
1970
1961
|
if (!e || !(e instanceof HTMLElement)) return;
|
|
1971
1962
|
let i = e.style, a = {
|
|
1972
1963
|
width: i.width,
|
|
@@ -1981,7 +1972,7 @@ function Gt(e, { delta: t = 1, delay: n = 20, disableTransitions: r = !0 } = {})
|
|
|
1981
1972
|
});
|
|
1982
1973
|
}, n);
|
|
1983
1974
|
}
|
|
1984
|
-
function
|
|
1975
|
+
function Gt(e) {
|
|
1985
1976
|
let t = null, n = null;
|
|
1986
1977
|
return (...r) => {
|
|
1987
1978
|
let i = JSON.stringify(r);
|
|
@@ -2006,7 +1997,7 @@ function Z(e, t, n = 0) {
|
|
|
2006
1997
|
function Q(e, t, n = 0) {
|
|
2007
1998
|
return Z(e, t, n).size;
|
|
2008
1999
|
}
|
|
2009
|
-
function
|
|
2000
|
+
function Kt({ configuredModulo: e, visibleTexts: t, allTexts: n, startAbs: r = 0, isZoomed: i = !1 }) {
|
|
2010
2001
|
let a = Math.max(1, Math.trunc(Number(e) || 1));
|
|
2011
2002
|
if (!i || !t.length || !n.length) return a;
|
|
2012
2003
|
let o = Math.max(1, Q(n, a, 0)), s = Math.max(1, Math.round(t.length / o)), c = Math.max(1, t.length), l = /* @__PURE__ */ new Set([
|
|
@@ -2030,7 +2021,7 @@ function qt({ configuredModulo: e, visibleTexts: t, allTexts: n, startAbs: r = 0
|
|
|
2030
2021
|
(i < d || i === d && a < f) && (u = e, d = i, f = a);
|
|
2031
2022
|
}), u;
|
|
2032
2023
|
}
|
|
2033
|
-
var
|
|
2024
|
+
var qt = Gt((e, t, n, r, i, a, o, s) => {
|
|
2034
2025
|
if (e) return r.length <= 2 ? r.map((e, t) => ({
|
|
2035
2026
|
text: e,
|
|
2036
2027
|
absoluteIndex: t
|
|
@@ -2048,12 +2039,15 @@ var $ = Kt((e, t, n, r, i, a, o, s) => {
|
|
|
2048
2039
|
absoluteIndex: t
|
|
2049
2040
|
}));
|
|
2050
2041
|
});
|
|
2051
|
-
function
|
|
2042
|
+
function $(e) {
|
|
2052
2043
|
return String(e).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
|
2053
2044
|
}
|
|
2054
|
-
function
|
|
2045
|
+
function Jt(e) {
|
|
2055
2046
|
return String(e).replaceAll("&", "&").replaceAll("\"", """).replaceAll("<", "<").replaceAll(">", ">");
|
|
2056
2047
|
}
|
|
2048
|
+
function Yt(e) {
|
|
2049
|
+
return String(e).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """).replaceAll("'", "'");
|
|
2050
|
+
}
|
|
2057
2051
|
function Xt(e) {
|
|
2058
2052
|
if (!e || typeof e != "string") return null;
|
|
2059
2053
|
let t = document.createElementNS(U, "svg");
|
|
@@ -2149,4 +2143,4 @@ function on(e, t) {
|
|
|
2149
2143
|
return n;
|
|
2150
2144
|
}
|
|
2151
2145
|
//#endregion
|
|
2152
|
-
export {
|
|
2146
|
+
export { Pe as $, $t, gt as A, f as At, oe as B, ye as Bt, me as C, se as Ct, Te as D, Ie as Dt, rn as E, Ne as Et, P as F, Ee as Ft, yt as G, pt as Gt, xt as H, g as Ht, bt as I, i as It, W as J, ot as Jt, St as K, at as Kt, Ot as L, Ce as Lt, ie as M, lt as Mt, kt as N, ut as Nt, dt as O, p as Ot, N as P, Vt as Pt, De as Q, tt as Qt, Ct as R, on as Rt, b as S, Xt as St, tn as T, Me as Tt, ve as U, Zt as Ut, M as V, y as Vt, vt as W, ft as Wt, F as X, At as Xt, Je as Y, A as Yt, Ze as Z, Se as Zt, Oe as _, nn as _t, an as a, zt as an, ze as at, h as b, _ as bt, qt as c, Jt as ct, he as d, m as dt, v as en, G as et, I as f, Lt as ft, Ke as g, Kt as gt, be as h, Ft as ht, rt as i, Wt as in, Mt as it, st as j, ct as jt, ht as k, en as kt, Ht as l, Rt as lt, ge as m, Pt as mt, Fe as n, l as nn, we as nt, Qe as o, Yt as ot, L as p, Le as pt, Ye as q, Qt as qt, de as r, Ut as rn, Nt as rt, It as s, $ as st, U as t, et as tn, Y as tt, _e as u, R as ut, ke as v, qe as vt, Xe as w, it as wt, ce as x, $e as xt, xe as y, We as yt, Ue as z, Re as zt };
|